@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.
Getting the properties of a dependency with Azure policy
Plodie
20
Reputation points
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?