Error on implementing Agent Policies from Google cli

While trying to implement Ops Agent from Google cloud cli, I am facing the below issue:

gcloud beta compute instances
ops-agents policies update ops-agents-policy-safe-rollout
–clear-zones
ERROR: (gcloud.beta.compute.instances.ops-agents.policies.update) NOT_FOUND: Requested entity was not found.

I am following the documentation from the below link:

Managing Agent Policies | Operations Suite | Google Cloud

Please advice.

Hi

I understand you are not able to install the Ops Agent. Please let me know if I have misunderstood.

Please, I would like to ask you a few questions to further understand your issue.

  • Did you face this error in other instances?

  • Are using VPC-SC or a private network?

  • Have you tried installing the latest version of the Ops agent by following this documentation?

Please note that there are a few limitations to take into consideration. You could also take a look at these Troubleshooting documentation.