Gallery › VirtualEnclaves › Azure built-in policies
[Preview]: Control the use of Key Vault in a Virtual Enclave
Converted Initiative Version 1.0.0-preview Preview
This initiative deploys Azure policies for Key Vaults ensuring boundary protection of this resource while it operates within the logically separated structure of Azure Virtual Enclaves. https://aka.ms/VirtualEnclaves
ConvertTo-Bylaw converted this initiative, and proved that the file compiles back to the same definition.
Azure Policy JSONKeyVaultInitiative.json · 30 lines
{
"properties": {
"displayName": "[Preview]: Control the use of Key Vault in a Virtual Enclave",
"policyType": "BuiltIn",
"description": "This initiative deploys Azure policies for Key Vaults ensuring boundary protection of this resource while it operates within the logically separated structure of Azure Virtual Enclaves. https://aka.ms/VirtualEnclaves",
"metadata": {
"version": "1.0.0-preview",
"category": "VirtualEnclaves",
"preview": true
},
"version": "1.0.0-preview",
"policyDefinitions": [
{
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/405c5871-3e91-4644-8a63-58e19d68ff5b",
"policyDefinitionReferenceId": "KeyVaultShouldDisablePublicNetworkAccess",
"definitionVersion": "1.*.*"
},
{
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/1e66c121-a66a-4b1f-9b83-0fd99bf0fc2d",
"policyDefinitionReferenceId": "KeyVaultShouldEnableSoftDelete",
"definitionVersion": "3.*.*"
}
],
"versions": [
"1.0.0-PREVIEW"
]
},
"id": "/providers/Microsoft.Authorization/policySetDefinitions/4f4dba0f-a5ee-494b-8df7-f9727dea6f37",
"name": "4f4dba0f-a5ee-494b-8df7-f9727dea6f37"
}Bylaw4f4dba0f-a5ee-494b-8df7-f9727dea6f37.bylaw.ps1 · 24 lines
# Converted from KeyVaultInitiative.json by ConvertTo-Bylaw.
Initiative '4f4dba0f-a5ee-494b-8df7-f9727dea6f37' {
Properties @{
DisplayName = '[Preview]: Control the use of Key Vault in a Virtual Enclave'
Description = 'This initiative deploys Azure policies for Key Vaults ensuring boundary protection of this resource while it operates within the logically separated structure of Azure Virtual Enclaves. https://aka.ms/VirtualEnclaves'
Version = '1.0.0-preview'
Category = 'VirtualEnclaves'
Preview = $true
PolicyVersion = '1.0.0-preview'
}
PolicyDefinition @{
Id = '405c5871-3e91-4644-8a63-58e19d68ff5b'
ReferenceId = 'KeyVaultShouldDisablePublicNetworkAccess'
Version = '1.*.*'
}
PolicyDefinition @{
Id = '1e66c121-a66a-4b1f-9b83-0fd99bf0fc2d'
ReferenceId = 'KeyVaultShouldEnableSoftDelete'
Version = '3.*.*'
}
}Members (2)
Source: built-in-policies/policySetDefinitions/VirtualEnclaves/KeyVaultInitiative.json in Azure/azure-policy, under the MIT licence.
Bylaw