Azure Policies Flashcards
What are Azure Policies?
Azure Policy helps to enforce organizational standards and to assess compliance at-scale
What are some common uses with Azure Policies?
Implementing governance for: Resource consistency Regulatory compliance Security Cost Management
Are Azure Policy Data and Objects encrypted at rest by default, or must be manually enabled?
They are encrypted by default
What are Azure Policy Definitions?
Azure Policy evaluates resources in Azure by comparing the properties of those resources to business rules. These business rules, described in JSON format, are known as Policy Definitions
What are Policy Initiatives?
It’s a collection of policy definitions that are tailored toward achieving a singular overarching goal. Initiative definitions simplify managing and assigning policy definitions. (sometimes called a policySet)
Once your business rules have been formed, the policy definition or initiative is assigned to any scope of resources that Azure supports, such as WHAT?
Management groups
Subscriptions
Resource groups
Individual resources
Azure Policy uses WHAT format to form the logic the evaluation uses to determine whether a resource is compliant or not?
JSON Format
Resources are evaluated at specific times during the resource lifecycle, the policy assignment lifecycle, and for regular ongoing compliance evaluation. What are the times or events that cause a resource to be evaluated?
A resource is created, updated, or deleted in a scope with a policy assignment.
A policy or initiative is newly assigned to a scope or an existing one updated.
During the standard compliance evaluation cycle, which occurs once every 24 hours.
Business rules for handling non-compliant resources vary widely between organizations. Examples of how an organization wants the platform to respond to a non-compliant resource include:
Deny the resource change Log the change to the resource Alter the resource before the change Alter the resource after the change Deploy related compliant resources
What are some key PowerShell Azure Policy Commands?
Get-AZResourceGroup -Name ‘’
New-AZPolicyAssignment -Name ‘’ -DisplayName ‘’ -Scope ‘’
Get-AZResourceDefinition