azure-policy
azure-policy copied to clipboard
Alias request: Microsoft.Storage/storageAccounts/encryption.KeySource
Scenario Need to use Azure Policy to deny creation of Storage Accounts with Microsoft Controlled Keys
Definition
{
"properties": {
"displayName": "Only allow creation of Storage accounts with client controlled keys",
"description": "Only allow creation of Storage accounts with client controlled keys",
"parameters": {
},
"policyRule": {
"if": {
"allOf": [
{
"field": "type",
"equals": "Microsoft.Storage/storageAccounts"
},
{
"not": {
"allOf": [
{
"field": "Microsoft.Storage/storageAccounts/encryption.KeySource",
"equals": "Microsoft.Storage"
}
]
}
}
]
},
"then": {
"effect": "deny"
}
}
}
}
The aliases below this property (and other storageAccounts properties) have been added. Please give it a try.