Gallery › App Configuration › Azure built-in policies
Public network access on App Configuration should be SecuredByPerimeter
Converted Policy Audit Deny Disabled Mode Indexed Version 1.0.0
Setting the public network access property to SecuredByPerimeter improves security by ensuring your App Configuration can only be accessed via Network Security Perimeter Rules.
ConvertTo-Bylaw converted this policy, and proved that the file compiles back to the same definition.
Azure Policy JSONPublicNetworkAccess_SecuredByPerimeter_Audit.json · 50 lines
{
"properties": {
"displayName": "Public network access on App Configuration should be SecuredByPerimeter",
"policyType": "BuiltIn",
"mode": "Indexed",
"description": "Setting the public network access property to SecuredByPerimeter improves security by ensuring your App Configuration can only be accessed via Network Security Perimeter Rules.",
"metadata": {
"version": "1.0.0",
"category": "App Configuration"
},
"version": "1.0.0",
"parameters": {
"effect": {
"type": "String",
"metadata": {
"displayName": "Effect",
"description": "Enable or disable the execution of the policy"
},
"allowedValues": [
"Audit",
"Deny",
"Disabled"
],
"defaultValue": "Audit"
}
},
"policyRule": {
"if": {
"allOf": [
{
"field": "type",
"equals": "Microsoft.AppConfiguration/configurationStores"
},
{
"field": "Microsoft.AppConfiguration/configurationStores/publicNetworkAccess",
"notEquals": "SecuredByPerimeter"
}
]
},
"then": {
"effect": "[parameters('effect')]"
}
},
"versions": [
"1.0.0"
]
},
"id": "/providers/Microsoft.Authorization/policyDefinitions/05f397c0-4504-4e68-ae17-80ef283f6a5d",
"name": "05f397c0-4504-4e68-ae17-80ef283f6a5d"
}Bylaw05f397c0-4504-4e68-ae17-80ef283f6a5d.bylaw.ps1 · 28 lines
# Converted from PublicNetworkAccess_SecuredByPerimeter_Audit.json by ConvertTo-Bylaw.
Policy '05f397c0-4504-4e68-ae17-80ef283f6a5d' {
Properties @{
DisplayName = 'Public network access on App Configuration should be SecuredByPerimeter'
Description = 'Setting the public network access property to SecuredByPerimeter improves security by ensuring your App Configuration can only be accessed via Network Security Perimeter Rules.'
Version = '1.0.0'
Category = 'App Configuration'
PolicyVersion = '1.0.0'
Mode = 'Indexed'
}
Parameter Effect @{
AllowedValues = @('Audit', 'Deny', 'Disabled')
Default = 'Audit'
DisplayName = 'Effect'
Description = 'Enable or disable the execution of the policy'
}
Resource 'Microsoft.AppConfiguration/configurationStores' {
Require 'publicNetworkAccess is SecuredByPerimeter' {
Field publicNetworkAccess | Must -Be 'SecuredByPerimeter'
}
}
Effect (Param Effect)
}Source: built-in-policies/policyDefinitions/App Configuration/PublicNetworkAccess_SecuredByPerimeter_Audit.json in Azure/azure-policy, under the MIT licence.
Bylaw