Gallery › Azure Edge Hardware Center › Azure built-in policies
Azure Edge Hardware Center devices should have double encryption support enabled
Converted Policy Audit Deny Disabled Mode Indexed Version 2.0.0
Ensure that devices ordered from Azure Edge Hardware Center have double encryption support enabled, to secure the data at rest on the device. This option adds a second layer of data encryption.
ConvertTo-Bylaw converted this policy, and proved that the file compiles back to the same definition.
Azure Policy JSONDoubleEncryption_Audit.json · 54 lines
{
"properties": {
"displayName": "Azure Edge Hardware Center devices should have double encryption support enabled",
"policyType": "BuiltIn",
"mode": "Indexed",
"description": "Ensure that devices ordered from Azure Edge Hardware Center have double encryption support enabled, to secure the data at rest on the device. This option adds a second layer of data encryption.",
"metadata": {
"version": "2.0.0",
"category": "Azure Edge Hardware Center"
},
"version": "2.0.0",
"parameters": {
"effect": {
"type": "String",
"metadata": {
"displayName": "Effect",
"description": "The desired effect of the policy"
},
"allowedValues": [
"Audit",
"Deny",
"Disabled"
],
"defaultValue": "Audit"
}
},
"policyRule": {
"if": {
"allOf": [
{
"field": "type",
"equals": "Microsoft.EdgeOrder/orderItems"
},
{
"field": "Microsoft.EdgeOrder/orderItems/orderItemDetails.preferences.encryptionPreferences.doubleEncryptionStatus",
"notEquals": "Enabled"
},
{
"field": "Microsoft.EdgeOrder/orderItems/orderItemDetails.productDetails.productDoubleEncryptionStatus",
"notEquals": "Enabled"
}
]
},
"then": {
"effect": "[parameters('effect')]"
}
},
"versions": [
"2.0.0"
]
},
"id": "/providers/Microsoft.Authorization/policyDefinitions/08a6b96f-576e-47a2-8511-119a212d344d",
"name": "08a6b96f-576e-47a2-8511-119a212d344d"
}Bylaw08a6b96f-576e-47a2-8511-119a212d344d.bylaw.ps1 · 32 lines
# Converted from DoubleEncryption_Audit.json by ConvertTo-Bylaw.
Policy '08a6b96f-576e-47a2-8511-119a212d344d' {
Properties @{
DisplayName = 'Azure Edge Hardware Center devices should have double encryption support enabled'
Description = 'Ensure that devices ordered from Azure Edge Hardware Center have double encryption support enabled, to secure the data at rest on the device. This option adds a second layer of data encryption.'
Version = '2.0.0'
Category = 'Azure Edge Hardware Center'
PolicyVersion = '2.0.0'
Mode = 'Indexed'
}
Parameter Effect @{
AllowedValues = @('Audit', 'Deny', 'Disabled')
Default = 'Audit'
DisplayName = 'Effect'
Description = 'The desired effect of the policy'
}
Resource 'Microsoft.EdgeOrder/orderItems' {
When {
Field orderItemDetails.preferences.encryptionPreferences.doubleEncryptionStatus | Must -Not -Be 'Enabled'
}
Require 'orderItemDetails.productDetails.productDoubleEncryptionStatus is Enabled' {
Field orderItemDetails.productDetails.productDoubleEncryptionStatus | Must -Be 'Enabled'
}
}
Effect (Param Effect)
}Source: built-in-policies/policyDefinitions/Azure Edge Hardware Center/DoubleEncryption_Audit.json in Azure/azure-policy, under the MIT licence.
Bylaw