Plugin Title | Resources Allowed Locations |
Cloud | AZURE |
Category | Azure Policy |
Description | Ensures deployed resources and resource groups belong to the list set in the allowed locations for resource groups policy |
More Info | Setting allowed locations for a service helps ensure the service can only be deployed in expected locations. |
AZURE Link | https://docs.microsoft.com/en-us/azure/governance/policy/assign-policy-portal |
Recommended Action | Ensure that all services contain policy definitions that defined allowed locations. |
- Log into the Microsoft Azure Management Console.
- Select the "Search resources, services, and docs" option at the top and search for Policy.
- On the "Policy" page, scroll down the left navigation panel and choose "Assignments" under "Authoring."
- On the "Policy - Assignments" page, check the "Policies" listed and if there are no "Policies" for "Resources Allowed Locations" then the selected "Assignment" don't have any "Resources Allowed Locations" policy.
- Repeat steps number 2 - 4 to check different "Policy - Assignments."
- Navigate to "Policy", scroll down the left navigation panel and choose "Assignemts" and on the "Policy - Assignments" page click on the "Assign Policy" at the top to assign "Resource Allowed Location" policy.
- On the "Assign Policy" page, select the "Scope" accordingly and click on the "..." dots icon to select the "Policy definition" under the "Basics" option.
- On the "Available Definitions" page, click on the "Search" box at the tab and search for "Allowed locations for resource groups" and click on the "Select" button at the bottom.
- Provide the "Description" accordingly and click on the "Next" button at the bottom.
- On the "Parameters" tab, select the "Allowed location" from the dropdown menu accordingly and click on the "Next" button.
- On the "Remediation" page, click on the checkbox next to the "Create a Managed Identity" and select the "Managed Identity Location" accordingly.
- Click on the "Review + Create" button to create the specific "Resources Allowed Locations" policy.
- Repeat steps number 6 - 12 to ensure that all services contain policy definitions that defined allowed locations.