05 Implementing An Azure Policy
05 Implementing An Azure Policy
Prerequisites: None
Steps to be followed:
1. Assign a Policy
2. Create and assign Initiative Definition
3. Check for compliance
1.4 Notice the Scope, which determines what resources or grouping of resources the policy
assignment gets enforced on.
1.5 Select the Policy definition ellipsis to open the list of available definitions. Take some
time to review the built-in policy definitions.
1.6 Search for and select Allowed locations. This policy enables you to restrict the locations
your organization can specify when deploying resources.
1.7 Move the Parameters tab and use the drop-down to select one or more allowed
locations.
1.8 Click Review + Create and then Create to create the policy.
1.9 Once your policy is created you can see list of applied policies by clicking at the Assignment button,
here you will be getting the list of policies assigned. You will be getting details of the individual policy by
clicking on them.
Step 2: Create and assign an initiative definition
2.1 Return to the Azure Policy page and select Definitions under Authoring.
2.2 Select Initiative definition.
2.3 Provide a Name and a Description.
2.4 Create a new Category and click on next.
2.5 From the right panel, add the Allowed locations policy.
2.6 From the Policy parameters tab, choose the values for locations.
After completing this demo, you will be able to successfully implement Azure policy to apply
compliance and regulatory settings for your organization.