1
1
---
2
- reviewed : 2023-09-10
2
+ reviewed : 2024-02-17
3
3
severity : Important
4
4
pillar : Security
5
- category : Design
5
+ category : SE:01 Security baseline
6
6
resource : All resources
7
7
online version : https://azure.github.io/PSRule.Rules.Azure/en/rules/Azure.Resource.AllowedRegions/
8
8
---
@@ -27,15 +27,15 @@ Some resources, particularly those related to preview services or features, may
27
27
## RECOMMENDATION
28
28
29
29
Consider deploying resources to allowed regions to align with your organizational requirements.
30
- Also consider using Azure Policy to enforce allowed regions.
30
+ Also consider using Azure Policy to enforce allowed regions at runtime .
31
31
32
32
## EXAMPLES
33
33
34
34
### Configure with Azure template
35
35
36
36
To deploy resources that pass this rule:
37
37
38
- - Set the ` location ` property to an allowed region. OR
38
+ - Set the ` location ` property to an allowed region. _ OR _
39
39
- Instead of hard coding the location, use a parameter to allow the location to be specified at deployment time.
40
40
41
41
For example:
@@ -67,7 +67,7 @@ For example:
67
67
68
68
To deploy resources that pass this rule:
69
69
70
- - Set the ` location ` property to an allowed region. OR
70
+ - Set the ` location ` property to an allowed region. _ OR _
71
71
- Instead of hard coding the location, use a parameter to allow the location to be specified at deployment time.
72
72
73
73
For example:
@@ -101,6 +101,10 @@ resource storageAccount 'Microsoft.Storage/storageAccounts@2023-01-01' = {
101
101
This rule requires one or more allowed regions to be configured.
102
102
By default, all regions are allowed.
103
103
104
+ ### Rule configuration
105
+
106
+ <!-- module:config rule AZURE_RESOURCE_ALLOWED_LOCATIONS -->
107
+
104
108
To configure this rule set the ` AZURE_RESOURCE_ALLOWED_LOCATIONS ` configuration value to a set of allowed regions.
105
109
106
110
For example:
@@ -125,6 +129,6 @@ configuration:
125
129
126
130
# # LINKS
127
131
128
- - [Regulatory compliance ](https://learn.microsoft.com/azure/well-architected/security/design-regulatory-compliance )
132
+ - [SE:01 Security baseline ](https://learn.microsoft.com/azure/well-architected/security/establish-baseline )
129
133
- [Data residency in Azure](https://azure.microsoft.com/explore/global-infrastructure/data-residency/#overview)
130
134
- [Azure geographies](https://azure.microsoft.com/explore/global-infrastructure/geographies/#geographies)
0 commit comments