How to tag ARO resources using Azure policy?

Solution Verified - Updated -

Environment

  • Azure Red Hat OpenShift 4(ARO)

Issue

  • How to use Azure Policy to tag the resources in an ARO cluster's resource group?
  • How to tag ARO resources after the cluster is created?
  • How to define tags in ARO for grouping resources and for managing resource access and cost?
  • Azure policy requirements reject the resource provision operation if the Azure tags are not declared at the time of resource provision.

Resolution

  • The doc shows how to use Azure Policy to tag the resources in an ARO cluster's resource group at the time of installing a new cluster.
  • To tag resources in an existing cluster, find the name of the managed resource group and apply the policy to the existing managed resource group. There is no need to install a new cluster to tag resources.
  • The Azure policy tagging features will tag any resource that is deployed in the managed resource group. This would include any resource that supports having a tag associated with it.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments