Skip to content

Commit 72d8b00

Browse files
authored
Address issues with R/o aliases (#1388)
* Address issues with R/o aliases * address comments and shown example * Added full list of readonly aliases * Update README.md
1 parent 48a80ed commit 72d8b00

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

README.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,4 +310,39 @@ Currently Azure Policy supports only alphanumeric characters for property and al
310310
- `redisConfiguration.preferred-data-archive-auth-method`
311311
- `redisConfiguration.preferred-data-persistence-auth-method`
312312

313+
### Read only aliases
314+
315+
In rare instances, aliases for read-only properties have be generated (request for R/O are not supported at this time). These aliases are strictly meant for auditing purposes, since the read-only nature does not allow for modification post resource/configuration deployment. If a policy with a modify or DINE effect targets this alias, the compliance results will show non-compliance. However, when remediated the read-only properties are not evaluated. This causes the resource to evaluate as compliant and not remediate. In most cases, if remediation is manually triggered, the system is not allowed to alter the read-only property.
316+
317+
Some examples of read-only aliases:
318+
- `Microsoft.Authorization/roleAssignmentScheduleInstances/*`
319+
- `Microsoft.BotService/botServices/networkSecurityPerimeterConfigurations/*`
320+
- `Microsoft.Cache/Redis/privateEndpointConnections[*]`
321+
- `Microsoft.Cache/Redis/privateEndpointConnections[*].privateLinkServiceConnectionState.status`
322+
- `Microsoft.Cache/Redis/privateEndpointConnections[*].provisioningState`
323+
- `Microsoft.Compute/virtualMachines/provisioningState`
324+
- `Microsoft.DocumentDB/databaseAccounts/networkSecurityPerimeterConfigurations/networkSecurityPerimeter.id`
325+
- `Microsoft.DocumentDB/databaseAccounts/networkSecurityPerimeterConfigurations/profile.name`
326+
- `Microsoft.DocumentDB/databaseAccounts/networkSecurityPerimeterConfigurations/resourceAssociation.accessMode`
327+
- `Microsoft.EventHub/namespaces/networkSecurityPerimeterConfigurations/networkSecurityPerimeter.id`
328+
- `Microsoft.EventHub/namespaces/networkSecurityPerimeterConfigurations/resourceAssociation.accessMode`
329+
- `Microsoft.EventHub/namespaces/networkSecurityPerimeterConfigurations/profile.name`
330+
- `Microsoft.KeyVault/vaults/networkSecurityPerimeterConfigurations/networkSecurityPerimeter.id`
331+
- `Microsoft.KeyVault/vaults/networkSecurityPerimeterConfigurations/resourceAssociation.accessMode`
332+
- `Microsoft.KeyVault/vaults/networkSecurityPerimeterConfigurations/profile.name`
333+
- `Microsoft.Sql/servers/networkSecurityPerimeterConfigurations/networkSecurityPerimeter.id`
334+
- `Microsoft.Sql/servers/networkSecurityPerimeterConfigurations/resourceAssociation.accessMode`
335+
- `Microsoft.Sql/servers/networkSecurityPerimeterConfigurations/profile.name`
336+
- `Microsoft.Storage/storageAccounts/primaryEndpoints`
337+
- `Microsoft.Storage/storageAccounts/primaryEndpoints.web`
338+
- `Microsoft.Storage/storageAccounts/primaryEndpoints.blob`
339+
- `Microsoft.Storage/storageAccounts/primaryEndpoints.queue`
340+
- `Microsoft.Storage/storageAccounts/primaryEndpoints.table`
341+
- `Microsoft.Storage/storageAccounts/primaryEndpoints.file`
342+
- `Microsoft.Storage/storageAccounts/networkSecurityPerimeterConfigurations/networkSecurityPerimeter.id`
343+
- `Microsoft.Storage/storageAccounts/networkSecurityPerimeterConfigurations/resourceAssociation.accessMode`
344+
- `Microsoft.Storage/storageAccounts/networkSecurityPerimeterConfigurations/profile.name`
345+
346+
347+
313348
*This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.*

0 commit comments

Comments
 (0)