-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Azure Policy Bot
committed
Dec 26, 2023
1 parent
4acb196
commit 3ee64ee
Showing
1 changed file
with
60 additions
and
0 deletions.
There are no files selected for viewing
60 changes: 60 additions & 0 deletions
60
...licies/policyDefinitions/Backup/AzBackuprecoveryServicesVault_RedudancySettings_Deny.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
{ | ||
"properties": { | ||
"displayName": "[Preview]: Do not allow creation of Recovery Services vaults of chosen storage redundancy.", | ||
"description": "Recovery Services vaults can be created with any one of three storage redundancy options today, namely, Locally-redundant Storage, Zone-redundant storage and Geo-redundant storage. If the policies in your organization requires you to block the creation of vaults that belong to a certain redundancy type, you may achieve the same using this Azure policy.", | ||
"policyType": "BuiltIn", | ||
"mode": "Indexed", | ||
"metadata": { | ||
"version": "1.0.0-preview", | ||
"preview": true, | ||
"category": "Backup" | ||
}, | ||
"version": "1.0.0-preview", | ||
"parameters": { | ||
"effect": { | ||
"type": "String", | ||
"metadata": { | ||
"displayName": "Effect", | ||
"description": "Enable or disable the execution of the policy." | ||
}, | ||
"allowedValues": [ | ||
"Deny", | ||
"Disabled" | ||
], | ||
"defaultValue": "Deny" | ||
}, | ||
"BackupStorageRedundancy": { | ||
"type": "String", | ||
"metadata": { | ||
"displayName": "Backup Storage Redundancy", | ||
"description": "Specify the storage redundancy for which creation of Recovery Services vaults should not be allowed by policy." | ||
}, | ||
"allowedValues": [ | ||
"GeoRedundant", | ||
"ZoneRedundant", | ||
"LocallyRedundant" | ||
], | ||
"defaultValue": "GeoRedundant" | ||
} | ||
}, | ||
"policyRule": { | ||
"if": { | ||
"allOf": [ | ||
{ | ||
"field": "type", | ||
"equals": "Microsoft.RecoveryServices/vaults" | ||
}, | ||
{ | ||
"field": "Microsoft.RecoveryServices/vaults/redundancySettings.standardTierStorageRedundancy", | ||
"equals": "[parameters('BackupStorageRedundancy')]" | ||
} | ||
] | ||
}, | ||
"then": { | ||
"effect": "[parameters('effect')]" | ||
} | ||
} | ||
}, | ||
"id": "/providers/Microsoft.Authorization/policyDefinitions/8f09fda1-91a2-4e14-96a2-67c6281158f7", | ||
"name": "8f09fda1-91a2-4e14-96a2-67c6281158f7" | ||
} |