SOP Task
SOP Task
com
2. Scope: - Affected area Azure portal- Policy and Resource Group and Resources.
4. Procedure: -
page 1 of 7
Texiio Global Pvt Ltd… www.texiio.com
Once you are on the policy assignment, ensure you are on the subscription, then
you can choose any exclusions you might want to put in place.
This could be useful to allow a specific resource group to bypass the policy.
Here you can choose the policy definition to apply from the built-in policies, or
you can create your own custom policy.
For this policy, we'll use a built-in policy called "Allowed Locations".
page 2 of 7
Texiio Global Pvt Ltd… www.texiio.com
Now enter a description that makes sense, such as "India Location Only" Leave
the enforcement enabled, and then select "Next."
On the next page, select the allowed location option and select the locations to
Policy then hit the Next button.
page 3 of 7
Texiio Global Pvt Ltd… www.texiio.com
Once the policy is created, wait about 10 minutes to ensure the policy is applied.
Then try to create a resource such as a Virtual Machine in any region other than
the allowed regions in your policy.
And when you try to create the resource, you get a validation error which shows
the error message you created.
With this in mind, you've now learned the first way you can use policy to control
your subscription.
Using an appropriate built-in policy and applying it with the parameters you
desire.
page 4 of 7
Texiio Global Pvt Ltd… www.texiio.com
In this image we changed the location to ‘Central India’ which is related to policy
definition.
page 5 of 7
Texiio Global Pvt Ltd… www.texiio.com
After Click Review button the New Virtual Machine is created in ‘Central India’
Location.
page 6 of 7
Texiio Global Pvt Ltd… www.texiio.com
page 7 of 7