Gallery › Mobile Network › Azure built-in policies
[Deprecated]: SIM Group should use customer-managed keys to encrypt data at rest
Converted Policy Audit Deny Disabled Mode Indexed Version 1.1.0-deprecated Deprecated
This policy is deprecated because the Microsoft.MobileNetwork resource provider has been decommissioned with no replacement. We recommend you remove all assignments of this policy and all references to it from initiatives. Learn more about policy definition deprecation at aka.ms/policydefdeprecation.
ConvertTo-Bylaw converted this policy, and proved that the file compiles back to the same definition.
Azure Policy JSONConfigureSIMGroupwithCMK_Audit.json · 52 lines
{
"properties": {
"displayName": "[Deprecated]: SIM Group should use customer-managed keys to encrypt data at rest",
"policyType": "BuiltIn",
"mode": "Indexed",
"description": "This policy is deprecated because the Microsoft.MobileNetwork resource provider has been decommissioned with no replacement. We recommend you remove all assignments of this policy and all references to it from initiatives. Learn more about policy definition deprecation at aka.ms/policydefdeprecation.",
"metadata": {
"category": "Mobile Network",
"version": "1.1.0-deprecated",
"deprecated": true
},
"version": "1.1.0",
"parameters": {
"effect": {
"type": "String",
"metadata": {
"displayName": "Effect",
"description": "Enable or disable the execution of the policy"
},
"allowedValues": [
"Audit",
"Deny",
"Disabled"
],
"defaultValue": "Disabled"
}
},
"policyRule": {
"if": {
"allOf": [
{
"field": "type",
"equals": "Microsoft.MobileNetwork/simGroups"
},
{
"value": "[length(field('Microsoft.MobileNetwork/simGroups/encryptionKey.keyUrl'))]",
"equals": "0"
}
]
},
"then": {
"effect": "[parameters('effect')]"
}
},
"versions": [
"1.1.0",
"1.0.0"
]
},
"id": "/providers/Microsoft.Authorization/policyDefinitions/45c4e9bd-ad6b-4634-9566-c2dad2f03cbf",
"name": "45c4e9bd-ad6b-4634-9566-c2dad2f03cbf"
}Bylaw45c4e9bd-ad6b-4634-9566-c2dad2f03cbf.bylaw.ps1 · 29 lines
# Converted from ConfigureSIMGroupwithCMK_Audit.json by ConvertTo-Bylaw.
Policy '45c4e9bd-ad6b-4634-9566-c2dad2f03cbf' {
Properties @{
DisplayName = '[Deprecated]: SIM Group should use customer-managed keys to encrypt data at rest'
Description = 'This policy is deprecated because the Microsoft.MobileNetwork resource provider has been decommissioned with no replacement. We recommend you remove all assignments of this policy and all references to it from initiatives. Learn more about policy definition deprecation at aka.ms/policydefdeprecation.'
Category = 'Mobile Network'
Version = '1.1.0-deprecated'
Deprecated = $true
PolicyVersion = '1.1.0'
Mode = 'Indexed'
}
Parameter Effect @{
AllowedValues = @('Audit', 'Deny', 'Disabled')
Default = 'Disabled'
DisplayName = 'Effect'
Description = 'Enable or disable the execution of the policy'
}
Resource 'Microsoft.MobileNetwork/simGroups' {
Require 'encryptionKey.keyUrl is as required' {
Arm '[length(field(''Microsoft.MobileNetwork/simGroups/encryptionKey.keyUrl''))]' | Must -Not -Be '0'
}
}
Effect (Param Effect)
}Source: built-in-policies/policyDefinitions/Mobile Network/ConfigureSIMGroupwithCMK_Audit.json in Azure/azure-policy, under the MIT licence.
Bylaw