geeksk
geeksk

Reputation: 11

If the scope of an Azure Policy with DeployIfNotExist effect is resource group, will it be able to deploy resources?

DeployIfNotExists policy at Subscription level

In this Question's Answer, it was mentioned "Azure Policy is capable of deploying resources at the Subscription level". Does this mean Azure Policy can deploy resources only when the scope is a subscription/management? If the scope is a resource group then deployment won't work?

Upvotes: 1

Views: 1005

Answers (1)

Kamil Wiecek
Kamil Wiecek

Reputation: 213

DeployIfNotExist effect can deploy at Subscription and at RG scope. You define it in deploymentScope attribute. RG is a default one. Details can be found https://learn.microsoft.com/en-us/azure/governance/policy/concepts/effects#deployifnotexists

Upvotes: 1

Related Questions