Getting the properties of a dependency with Azure policy

Plodie 20 Reputation points
2023-03-06T14:40:21.0133333+00:00

Is there a way to check and act on the properties of a service in Azure policies? Let me elaborate on the question.

Let's say I deploy an Azure Machine Learning service and need to use a policy to check if the storage specified in the configuration has a specific tag assigned. To do this, I need to access, for example, the target storage account's properties via its resource ID and find out if it has the specified tag and I need to do this with a policy definition, not by programming.

Is this possible?

Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
836 questions
{count} votes

1 answer

Sort by: Most helpful
  1. SwathiDhanwada-MSFT 18,556 Reputation points
    2023-03-24T07:20:07.6333333+00:00

    @Plodie Welcome to Microsoft Q&A Platform and thanks for your query. I don't think it's possible to retrieve the resource id of any resource within policy definition and reverify it. You can only check if the properties of specific resource mentioned in the policy definition.

    0 comments No comments