An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
Hi @GOMES Emerson ,
Thank you for reaching out to Microsoft Q&A for this question. I am sorry for the delayed response.
I see that you are trying to use Azure Policy to deploy resources. I would instead advise using ARM template to deploy the resources using Azure Portal, PowerShell or CLI - please see this link for details - Deploy a local ARM template. The requirement here is to deploy resources and Azure Policy is not a good choice for it.
Azure Policy is mainly used for enforcing compliance and standard at-scale, so that the overall state of the environment can be evaluated and remediated. Every policy assignment is done to a scope (ManagementGroup, Subscription, ResourceGroup) - which would enforce the policy roles on the resources in this scope. The use case mentioned in the question requires cross-scope deployment, which is not going to be easy to achieve (If not impossible - I haven't tested it yet).
Please let me know if you have any questions.
---
Please 'Accept as answer' if it helped so that it can help others in the community looking for help on similar topics.