From the course: Microsoft Azure Fundamentals (AZ-900) Cert Prep by Microsoft Press
Unlock this course with a free trial
Join today to access over 24,900 courses taught by industry experts.
Describe Azure policy - Azure Tutorial
From the course: Microsoft Azure Fundamentals (AZ-900) Cert Prep by Microsoft Press
Describe Azure policy
- [Instructor] Azure Policy is another service that helps with governance. Azure Policy enables you to define and enforce rules when Azure resources are created and managed. These rules are defined as, you guessed it, as policies, and they could be rules such as requiring that all VMs be a certain size, all resources have to be in a certain region, or maybe that if a particular resource type is deployed, another type of resource must be deployed along with it. There are six effects that can be applied in a policy. The first is the append effect, and this adds additional properties to a resource. So just a few minutes ago we were talking about tags. You could create an Azure Policy that automatically adds a tag to specific types of resources. The next effect is audit, and this simply logs a warning if the policy is not complied with. The audit if not exists effect specifies that an additional resource type must exist along…