Gallery › Backup › Azure built-in policies
Multi-User Authorization (MUA) must be enabled for Recovery Services Vaults.
Converted Policy Audit Disabled Mode Indexed Version 1.0.1
This policy audits if Multi-User Authorization (MUA) is enabled for Recovery Services Vaults. MUA helps in securing your Recovery Services Vaults by adding an additional layer of protection to critical operations. To learn more, visit https://aka.ms/MUAforRSV.
ConvertTo-Bylaw converted this policy, and proved that the file compiles back to the same definition.
Azure Policy JSONAzBackupRecoveryServicesVault_MUA_Audit.json · 50 lines
{
"properties": {
"displayName": "Multi-User Authorization (MUA) must be enabled for Recovery Services Vaults.",
"policyType": "BuiltIn",
"mode": "Indexed",
"description": "This policy audits if Multi-User Authorization (MUA) is enabled for Recovery Services Vaults. MUA helps in securing your Recovery Services Vaults by adding an additional layer of protection to critical operations. To learn more, visit https://aka.ms/MUAforRSV.",
"metadata": {
"version": "1.0.1",
"category": "Backup"
},
"version": "1.0.1",
"parameters": {
"effect": {
"metadata": {
"description": "Enable or disable the execution of the policy.",
"displayName": "Effect"
},
"defaultValue": "Audit",
"type": "String",
"allowedValues": [
"Audit",
"Disabled"
]
}
},
"policyRule": {
"then": {
"effect": "[parameters('effect')]"
},
"if": {
"allOf": [
{
"field": "type",
"equals": "Microsoft.RecoveryServices/vaults"
},
{
"field": "Microsoft.RecoveryServices/vaults/securitySettings.multiUserAuthorization",
"notEquals": "Enabled"
}
]
}
},
"versions": [
"1.0.1",
"1.0.0-PREVIEW"
]
},
"id": "/providers/Microsoft.Authorization/policyDefinitions/c7031eab-0fc0-4cd9-acd0-4497bd66d91a",
"name": "c7031eab-0fc0-4cd9-acd0-4497bd66d91a"
}Bylawc7031eab-0fc0-4cd9-acd0-4497bd66d91a.bylaw.ps1 · 28 lines
# Converted from AzBackupRecoveryServicesVault_MUA_Audit.json by ConvertTo-Bylaw.
Policy 'c7031eab-0fc0-4cd9-acd0-4497bd66d91a' {
Properties @{
DisplayName = 'Multi-User Authorization (MUA) must be enabled for Recovery Services Vaults.'
Description = 'This policy audits if Multi-User Authorization (MUA) is enabled for Recovery Services Vaults. MUA helps in securing your Recovery Services Vaults by adding an additional layer of protection to critical operations. To learn more, visit https://aka.ms/MUAforRSV.'
Version = '1.0.1'
Category = 'Backup'
PolicyVersion = '1.0.1'
Mode = 'Indexed'
}
Parameter Effect @{
AllowedValues = @('Audit', 'Disabled')
Default = 'Audit'
DisplayName = 'Effect'
Description = 'Enable or disable the execution of the policy.'
}
Resource 'Microsoft.RecoveryServices/vaults' {
Require 'securitySettings.multiUserAuthorization is Enabled' {
Field securitySettings.multiUserAuthorization | Must -Be 'Enabled'
}
}
Effect (Param Effect)
}Source: built-in-policies/policyDefinitions/Backup/AzBackupRecoveryServicesVault_MUA_Audit.json in Azure/azure-policy, under the MIT licence.
Bylaw