0% found this document useful (0 votes)
25 views

05 Implementing An Azure Policy

The document outlines steps to implement an Azure policy by assigning a policy definition, creating an initiative definition, and checking for compliance. It describes assigning a policy to restrict resource locations, creating an initiative adding that policy, and reviewing compliance status.

Uploaded by

Faisal Mansoori
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views

05 Implementing An Azure Policy

The document outlines steps to implement an Azure policy by assigning a policy definition, creating an initiative definition, and checking for compliance. It describes assigning a policy to restrict resource locations, creating an initiative adding that policy, and reviewing compliance status.

Uploaded by

Faisal Mansoori
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 12

Lesson 02 Demo 05

Implementing an Azure Policy

Objective: To implement an Azure Policy

Tools required: Azure Account

Prerequisites: None

Steps to be followed:

1. Assign a Policy
2. Create and assign Initiative Definition
3. Check for compliance

Step 1: Assign a Policy


1.1 On the Azure portal, search for and select Policy.
1.2 Select Assignments on the left side of the Azure Policy page.
1.3 Select Assign Policy from the top of the Policy | Assignments page.

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.

2.7 Select Review + Create, and then create.


Step 3: Check for compliance
3.1 Return to the Azure Policy service page.
3.2 Select Compliance.
3.3 Review the status of your policy and your definition.

After completing this demo, you will be able to successfully implement Azure policy to apply
compliance and regulatory settings for your organization.

You might also like