Gallery › Network › Azure Landing Zones Library
Public network access should be disabled for PaaS services
Converted Initiative Version 5.3.0
This policy initiative is a group of policies that prevents creation of Azure PaaS services with exposed public endpoints
ConvertTo-Bylaw converted this initiative, and proved that the file compiles back to the same definition.
Azure Policy JSONDeny-PublicPaaSEndpoints.alz_policy_set_definition.json · 1016 lines
{
"name": "Deny-PublicPaaSEndpoints",
"properties": {
"description": "This policy initiative is a group of policies that prevents creation of Azure PaaS services with exposed public endpoints",
"displayName": "Public network access should be disabled for PaaS services",
"metadata": {
"alzCloudEnvironments": [
"AzureCloud"
],
"category": "Network",
"source": "https://github.com/Azure/Enterprise-Scale/",
"version": "5.3.0"
},
"parameters": {
"ACRPublicIpDenyEffect": {
"allowedValues": [
"Audit",
"Deny",
"Disabled"
],
"defaultValue": "Deny",
"metadata": {
"description": "This policy denies the creation of Azure Container Registries with exposed public endpoints ",
"displayName": "Public network access on Azure Container Registry disabled"
},
"type": "String"
},
"AFSPublicIpDenyEffect": {
"allowedValues": [
"Audit",
"Deny",
"Disabled"
],
"defaultValue": "Deny",
"metadata": {
"description": "This policy denies the creation of Azure File Sync instances with exposed public endpoints ",
"displayName": "Public network access on Azure File Sync disabled"
},
"type": "String"
},
"AKSPublicIpDenyEffect": {
"allowedValues": [
"Audit",
"Deny",
"Disabled"
],
"defaultValue": "Deny",
"metadata": {
"description": "This policy denies the creation of Azure Kubernetes Service non-private clusters",
"displayName": "Public network access on AKS API should be disabled"
},
"type": "String"
},
"ApiManPublicIpDenyEffect": {
"allowedValues": [
"AuditIfNotExists",
"Disabled"
],
"defaultValue": "AuditIfNotExists",
"metadata": {
"description": "This policy denies creation of API Management services with exposed public endpoints",
"displayName": "Public network access should be disabled for API Management services"
},
"type": "String"
},
"AppConfigPublicIpDenyEffect": {
"allowedValues": [
"Audit",
"Deny",
"Disabled"
],
"defaultValue": "Deny",
"metadata": {
"description": "This policy denies creation of App Configuration with exposed public endpoints",
"displayName": "Public network access should be disabled for App Configuration"
},
"type": "String"
},
"AsPublicIpDenyEffect": {
"allowedValues": [
"Audit",
"Deny",
"Disabled"
],
"defaultValue": "Deny",
"metadata": {
"description": "This policy denies creation of App Service apps with exposed public endpoints",
"displayName": "Public network access should be disabled for App Service apps"
},
"type": "String"
},
"AsePublicIpDenyEffect": {
"allowedValues": [
"Audit",
"Deny",
"Disabled"
],
"defaultValue": "Deny",
"metadata": {
"description": "This policy denies creation of App Service Environment apps with exposed public endpoints",
"displayName": "Public network access should be disabled for App Service Environment apps"
},
"type": "String"
},
"AsrVaultDenyEffect": {
"allowedValues": [
"Audit",
"Deny",
"Disabled"
],
"defaultValue": "Deny",
"metadata": {
"description": "This policy denies creation of Azure Recovery Services vaults with exposed public endpoints",
"displayName": "Azure Recovery Services vaults should disable public network access"
},
"type": "String"
},
"AutomationPublicIpDenyEffect": {
"allowedValues": [
"Audit",
"Deny",
"Disabled"
],
"defaultValue": "Deny",
"metadata": {
"description": "This policy denies creation of Automation accounts with exposed public endpoints. Bots should be set to 'isolated only' mode",
"displayName": "Public network access should be disabled for Automation accounts"
},
"type": "String"
},
"BatchPublicIpDenyEffect": {
"allowedValues": [
"Audit",
"Deny",
"Disabled"
],
"defaultValue": "Deny",
"metadata": {
"description": "This policy denies creation of Azure Batch Instances with exposed public endpoints",
"displayName": "Public network access should be disabled for Azure Batch Instances"
},
"type": "String"
},
"BotServicePublicIpDenyEffect": {
"allowedValues": [
"Audit",
"Deny",
"Disabled"
],
"defaultValue": "Deny",
"metadata": {
"description": "This policy denies creation of Bot Service with exposed public endpoints. Bots should be set to 'isolated only' mode",
"displayName": "Public network access should be disabled for Bot Service"
},
"type": "String"
},
"ContainerAppsEnvironmentDenyEffect": {
"allowedValues": [
"Audit",
"Deny",
"Disabled"
],
"defaultValue": "Deny",
"metadata": {
"description": "This policy denies creation of Container Apps Environment with exposed public endpoints",
"displayName": "Container Apps environment should disable public network access"
},
"type": "String"
},
"CosmosPublicIpDenyEffect": {
"allowedValues": [
"Audit",
"Deny",
"Disabled"
],
"defaultValue": "Deny",
"metadata": {
"description": "This policy denies that Cosmos database accounts are created with out public network access is disabled.",
"displayName": "Public network access should be disabled for CosmosDB"
},
"type": "String"
},
"FunctionAppSlotPublicIpDenyEffect": {
"allowedValues": [
"Audit",
"Deny",
"Disabled"
],
"defaultValue": "Deny",
"metadata": {
"description": "This policy denies creation of Function apps with exposed public endpoints",
"displayName": "Public network access should be disabled for Function apps"
},
"type": "String"
},
"FunctionPublicIpDenyEffect": {
"allowedValues": [
"Audit",
"Deny",
"Disabled"
],
"defaultValue": "Deny",
"metadata": {
"description": "This policy denies creation of Function apps with exposed public endpoints",
"displayName": "Public network access should be disabled for Function apps"
},
"type": "String"
},
"KeyVaultPublicIpDenyEffect": {
"allowedValues": [
"Audit",
"Deny",
"Disabled"
],
"defaultValue": "Deny",
"metadata": {
"description": "This policy denies creation of Key Vaults with IP Firewall exposed to all public endpoints",
"displayName": "Public network access should be disabled for KeyVault"
},
"type": "String"
},
"MariaDbPublicIpDenyEffect": {
"allowedValues": [
"Audit",
"Deny",
"Disabled"
],
"defaultValue": "Deny",
"metadata": {
"description": "This policy denies creation of Azure MariaDB with exposed public endpoints",
"displayName": "Public network access should be disabled for Azure MariaDB"
},
"type": "String"
},
"MlPublicIpDenyEffect": {
"allowedValues": [
"Audit",
"Deny",
"Disabled"
],
"defaultValue": "Deny",
"metadata": {
"description": "This policy denies creation of Azure Machine Learning with exposed public endpoints",
"displayName": "Public network access should be disabled for Azure Machine Learning"
},
"type": "String"
},
"MySQLFlexPublicIpDenyEffect": {
"allowedValues": [
"Audit",
"Deny",
"Disabled"
],
"defaultValue": "Deny",
"metadata": {
"description": "This policy denies creation of MySql Flexible Server DB accounts with exposed public endpoints",
"displayName": "Public network access should be disabled for MySQL Flexible Server"
},
"type": "String"
},
"PostgreSQLFlexPublicIpDenyEffect": {
"allowedValues": [
"Audit",
"Deny",
"Disabled"
],
"defaultValue": "Deny",
"metadata": {
"description": "This policy denies creation of PostgreSQL Flexible DB accounts with exposed public endpoints",
"displayName": "Public network access should be disabled for PostgreSql Flexible Server"
},
"type": "String"
},
"RedisCachePublicIpDenyEffect": {
"allowedValues": [
"Audit",
"Deny",
"Disabled"
],
"defaultValue": "Deny",
"metadata": {
"description": "This policy denies creation of Azure Cache for Redis with exposed public endpoints",
"displayName": "Public network access should be disabled for Azure Cache for Redis"
},
"type": "String"
},
"SqlServerPublicIpDenyEffect": {
"allowedValues": [
"Audit",
"Deny",
"Disabled"
],
"defaultValue": "Deny",
"metadata": {
"description": "This policy denies creation of Sql servers with exposed public endpoints",
"displayName": "Public network access on Azure SQL Database should be disabled"
},
"type": "String"
},
"StoragePublicIpDenyEffect": {
"allowedValues": [
"Audit",
"Deny",
"Disabled"
],
"defaultValue": "Deny",
"metadata": {
"description": "This policy denies creation of storage accounts with IP Firewall exposed to all public endpoints",
"displayName": "Public network access onStorage accounts should be disabled"
},
"type": "String"
},
"adfPublicNetworkAccess": {
"allowedValues": [
"Audit",
"Deny",
"Disabled"
],
"defaultValue": "Deny",
"type": "string"
},
"adxPublicNetworkAccess": {
"allowedValues": [
"Audit",
"Deny",
"Disabled"
],
"defaultValue": "Deny",
"type": "string"
},
"appSlotsPublicNetworkAccess": {
"allowedValues": [
"Audit",
"Deny",
"Disabled"
],
"defaultValue": "Deny",
"type": "string"
},
"avdHostPoolPublicNetworkAccess": {
"allowedValues": [
"Audit",
"Deny",
"Disabled"
],
"defaultValue": "Deny",
"type": "string"
},
"avdWorkspacePublicNetworkAccess": {
"allowedValues": [
"Audit",
"Deny",
"Disabled"
],
"defaultValue": "Deny",
"type": "string"
},
"cognitiveSearchPublicNetworkAccess": {
"allowedValues": [
"Audit",
"Deny",
"Disabled"
],
"defaultValue": "Deny",
"type": "string"
},
"cognitiveServicesNetworkAccess": {
"allowedValues": [
"Audit",
"Deny",
"Disabled"
],
"defaultValue": "Deny",
"type": "string"
},
"cognitiveServicesPublicNetworkAccess": {
"allowedValues": [
"Audit",
"Deny",
"Disabled"
],
"defaultValue": "Deny",
"type": "string"
},
"containerAppsPublicNetworkAccess": {
"allowedValues": [
"Audit",
"Deny",
"Disabled"
],
"defaultValue": "Deny",
"type": "string"
},
"eventGridPublicNetworkAccess": {
"allowedValues": [
"Audit",
"Deny",
"Disabled"
],
"defaultValue": "Deny",
"type": "string"
},
"eventGridTopicPublicNetworkAccess": {
"allowedValues": [
"Audit",
"Deny",
"Disabled"
],
"defaultValue": "Deny",
"type": "string"
},
"eventHubNamespacesPublicNetworkAccess": {
"allowedValues": [
"Audit",
"Deny",
"Disabled"
],
"defaultValue": "Deny",
"type": "string"
},
"grafanaPublicNetworkAccess": {
"allowedValues": [
"Audit",
"Deny",
"Disabled"
],
"defaultValue": "Deny",
"type": "string"
},
"keyVaultManagedHsmDisablePublicNetwork": {
"allowedValues": [
"Audit",
"Deny",
"Disabled"
],
"defaultValue": "Deny",
"type": "string"
},
"logicAppPublicNetworkAccessEffect": {
"allowedValues": [
"Audit",
"Deny",
"Disabled"
],
"defaultValue": "Deny",
"type": "String"
},
"managedDiskPublicNetworkAccess": {
"allowedValues": [
"Audit",
"Deny",
"Disabled"
],
"defaultValue": "Audit",
"type": "string"
},
"mySqlPublicNetworkAccess": {
"allowedValues": [
"Audit",
"Deny",
"Disabled"
],
"defaultValue": "Deny",
"type": "string"
},
"postgreSqlPublicNetworkAccess": {
"allowedValues": [
"Audit",
"Deny",
"Disabled"
],
"defaultValue": "Deny",
"metadata": {
"description": "This policy denies creation of PostgreSQL DB accounts with exposed public endpoints",
"displayName": "Public network access should be disabled for PostgreSQL servers"
},
"type": "string"
},
"serviceBusDisablePublicNetworkAccess": {
"allowedValues": [
"Audit",
"Deny",
"Disabled"
],
"defaultValue": "Deny",
"type": "string"
},
"sqlManagedPublicNetworkAccess": {
"allowedValues": [
"Audit",
"Deny",
"Disabled"
],
"defaultValue": "Deny",
"type": "string"
},
"storageAccountsPublicAccess": {
"allowedValues": [
"Audit",
"Deny",
"Disabled"
],
"defaultValue": "Deny",
"type": "string"
},
"synapsePublicNetworkAccess": {
"allowedValues": [
"Audit",
"Deny",
"Disabled"
],
"defaultValue": "Deny",
"type": "string"
}
},
"policyDefinitions": [
{
"definitionVersion": "1.*.*",
"groupNames": [],
"parameters": {
"effect": {
"value": "[parameters('CosmosPublicIpDenyEffect')]"
}
},
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/797b37f7-06b8-444c-b1ad-fc62867f335a",
"policyDefinitionReferenceId": "CosmosDenyPaasPublicIP"
},
{
"definitionVersion": "1.*.*",
"groupNames": [],
"parameters": {
"effect": {
"value": "[parameters('KeyVaultPublicIpDenyEffect')]"
}
},
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/405c5871-3e91-4644-8a63-58e19d68ff5b",
"policyDefinitionReferenceId": "KeyVaultDenyPaasPublicIP"
},
{
"definitionVersion": "1.*.*",
"groupNames": [],
"parameters": {
"effect": {
"value": "[parameters('SqlServerPublicIpDenyEffect')]"
}
},
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/1b8ca024-1d5c-4dec-8995-b1a932b41780",
"policyDefinitionReferenceId": "SqlServerDenyPaasPublicIP"
},
{
"definitionVersion": "1.*.*",
"groupNames": [],
"parameters": {
"effect": {
"value": "[parameters('StoragePublicIpDenyEffect')]"
}
},
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/b2982f36-99f2-4db5-8eff-283140c09693",
"policyDefinitionReferenceId": "StorageDenyPaasPublicIP"
},
{
"definitionVersion": "1.*.*",
"groupNames": [],
"parameters": {
"effect": {
"value": "[parameters('AKSPublicIpDenyEffect')]"
}
},
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/040732e8-d947-40b8-95d6-854c95024bf8",
"policyDefinitionReferenceId": "AKSDenyPaasPublicIP"
},
{
"definitionVersion": "1.*.*",
"groupNames": [],
"parameters": {
"effect": {
"value": "[parameters('ACRPublicIpDenyEffect')]"
}
},
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/0fdf0491-d080-4575-b627-ad0e843cba0f",
"policyDefinitionReferenceId": "ACRDenyPaasPublicIP"
},
{
"definitionVersion": "1.*.*",
"groupNames": [],
"parameters": {
"effect": {
"value": "[parameters('AFSPublicIpDenyEffect')]"
}
},
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/21a8cd35-125e-4d13-b82d-2e19b7208bb7",
"policyDefinitionReferenceId": "AFSDenyPaasPublicIP"
},
{
"definitionVersion": "3.*.*",
"groupNames": [],
"parameters": {
"effect": {
"value": "[parameters('PostgreSQLFlexPublicIpDenyEffect')]"
}
},
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/5e1de0e3-42cb-4ebc-a86d-61d0c619ca48",
"policyDefinitionReferenceId": "PostgreSQLFlexDenyPublicIP"
},
{
"definitionVersion": "2.*.*",
"groupNames": [],
"parameters": {
"effect": {
"value": "[parameters('postgreSqlPublicNetworkAccess')]"
}
},
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/b52376f7-9612-48a1-81cd-1ffe4b61032c",
"policyDefinitionReferenceId": "Deny-PostgreSql-Public-Network-Access"
},
{
"definitionVersion": "2.*.*",
"groupNames": [],
"parameters": {
"effect": {
"value": "[parameters('MySQLFlexPublicIpDenyEffect')]"
}
},
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/c9299215-ae47-4f50-9c54-8a392f68a052",
"policyDefinitionReferenceId": "MySQLFlexDenyPublicIP"
},
{
"definitionVersion": "1.*.*",
"groupNames": [],
"parameters": {
"effect": {
"value": "[parameters('BatchPublicIpDenyEffect')]"
}
},
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/74c5a0ae-5e48-4738-b093-65e23a060488",
"policyDefinitionReferenceId": "BatchDenyPublicIP"
},
{
"definitionVersion": "2.*.*",
"groupNames": [],
"parameters": {
"effect": {
"value": "[parameters('MariaDbPublicIpDenyEffect')]"
}
},
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/fdccbe47-f3e3-4213-ad5d-ea459b2fa077",
"policyDefinitionReferenceId": "MariaDbDenyPublicIP"
},
{
"definitionVersion": "2.*.*",
"groupNames": [],
"parameters": {
"effect": {
"value": "[parameters('MlPublicIpDenyEffect')]"
}
},
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/438c38d2-3772-465a-a9cc-7a6666a275ce",
"policyDefinitionReferenceId": "MlDenyPublicIP"
},
{
"definitionVersion": "1.*.*",
"groupNames": [],
"parameters": {
"effect": {
"value": "[parameters('RedisCachePublicIpDenyEffect')]"
}
},
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/470baccb-7e51-4549-8b1a-3e5be069f663",
"policyDefinitionReferenceId": "RedisCacheDenyPublicIP"
},
{
"definitionVersion": "1.*.*",
"groupNames": [],
"parameters": {
"effect": {
"value": "[parameters('BotServicePublicIpDenyEffect')]"
}
},
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/5e8168db-69e3-4beb-9822-57cb59202a9d",
"policyDefinitionReferenceId": "BotServiceDenyPublicIP"
},
{
"definitionVersion": "1.*.*",
"groupNames": [],
"parameters": {
"effect": {
"value": "[parameters('AutomationPublicIpDenyEffect')]"
}
},
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/955a914f-bf86-4f0e-acd5-e0766b0efcb6",
"policyDefinitionReferenceId": "AutomationDenyPublicIP"
},
{
"definitionVersion": "1.*.*",
"groupNames": [],
"parameters": {
"effect": {
"value": "[parameters('AppConfigPublicIpDenyEffect')]"
}
},
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/3d9f5e4c-9947-4579-9539-2a7695fbc187",
"policyDefinitionReferenceId": "AppConfigDenyPublicIP"
},
{
"definitionVersion": "1.*.*",
"groupNames": [],
"parameters": {
"effect": {
"value": "[parameters('FunctionPublicIpDenyEffect')]"
}
},
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/969ac98b-88a8-449f-883c-2e9adb123127",
"policyDefinitionReferenceId": "FunctionDenyPublicIP"
},
{
"definitionVersion": "1.*.*",
"groupNames": [],
"parameters": {
"effect": {
"value": "[parameters('FunctionAppSlotPublicIpDenyEffect')]"
}
},
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/11c82d0c-db9f-4d7b-97c5-f3f9aa957da2",
"policyDefinitionReferenceId": "FunctionAppSlotsDenyPublicIP"
},
{
"definitionVersion": "3.*.*",
"groupNames": [],
"parameters": {
"effect": {
"value": "[parameters('AsePublicIpDenyEffect')]"
}
},
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/2d048aca-6479-4923-88f5-e2ac295d9af3",
"policyDefinitionReferenceId": "AseDenyPublicIP"
},
{
"definitionVersion": "1.*.*",
"groupNames": [],
"parameters": {
"effect": {
"value": "[parameters('AsPublicIpDenyEffect')]"
}
},
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/1b5ef780-c53c-4a64-87f3-bb9c8c8094ba",
"policyDefinitionReferenceId": "AsDenyPublicIP"
},
{
"definitionVersion": "1.*.*",
"groupNames": [],
"parameters": {
"effect": {
"value": "[parameters('ApiManPublicIpDenyEffect')]"
}
},
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/df73bd95-24da-4a4f-96b9-4e8b94b402bd",
"policyDefinitionReferenceId": "ApiManDenyPublicIP"
},
{
"definitionVersion": "1.*.*",
"groupNames": [],
"parameters": {
"effect": {
"value": "[parameters('ContainerAppsEnvironmentDenyEffect')]"
}
},
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/d074ddf8-01a5-4b5e-a2b8-964aed452c0a",
"policyDefinitionReferenceId": "ContainerAppsEnvironmentDenyPublicIP"
},
{
"definitionVersion": "1.*.*",
"groupNames": [],
"parameters": {
"effect": {
"value": "[parameters('containerAppsPublicNetworkAccess')]"
}
},
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/783ea2a8-b8fd-46be-896a-9ae79643a0b1",
"policyDefinitionReferenceId": "Deny-ContainerApps-Public-Network-Access"
},
{
"definitionVersion": "1.*.*-preview",
"groupNames": [],
"parameters": {
"effect": {
"value": "[parameters('AsrVaultDenyEffect')]"
}
},
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/9ebbbba3-4d65-4da9-bb67-b22cfaaff090",
"policyDefinitionReferenceId": "AsrVaultDenyPublicIP"
},
{
"definitionVersion": "1.*.*",
"groupNames": [],
"parameters": {
"effect": {
"value": "[parameters('logicAppPublicNetworkAccessEffect')]"
}
},
"policyDefinitionId": "/providers/Microsoft.Management/managementGroups/contoso/providers/Microsoft.Authorization/policyDefinitions/Deny-LogicApp-Public-Network",
"policyDefinitionReferenceId": "Deny-LogicApp-Public-Network-Access"
},
{
"definitionVersion": "1.*.*",
"groupNames": [],
"parameters": {
"effect": {
"value": "[parameters('appSlotsPublicNetworkAccess')]"
}
},
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/701a595d-38fb-4a66-ae6d-fb3735217622",
"policyDefinitionReferenceId": "Deny-AppSlots-Public"
},
{
"definitionVersion": "1.*.*",
"groupNames": [],
"parameters": {
"effect": {
"value": "[parameters('cognitiveSearchPublicNetworkAccess')]"
}
},
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/ee980b6d-0eca-4501-8d54-f6290fd512c3",
"policyDefinitionReferenceId": "Deny-CognitiveSearch-PublicEndpoint"
},
{
"definitionVersion": "2.*.*",
"groupNames": [],
"parameters": {
"effect": {
"value": "[parameters('managedDiskPublicNetworkAccess')]"
}
},
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/8405fdab-1faf-48aa-b702-999c9c172094",
"policyDefinitionReferenceId": "Deny-ManagedDisk-Public-Network-Access"
},
{
"definitionVersion": "1.*.*",
"groupNames": [],
"parameters": {
"effect": {
"value": "[parameters('adxPublicNetworkAccess')]"
}
},
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/43bc7be6-5e69-4b0d-a2bb-e815557ca673",
"policyDefinitionReferenceId": "Deny-ADX-Public-Network-Access"
},
{
"definitionVersion": "1.*.*",
"groupNames": [],
"parameters": {
"effect": {
"value": "[parameters('adfPublicNetworkAccess')]"
}
},
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/1cf164be-6819-4a50-b8fa-4bcaa4f98fb6",
"policyDefinitionReferenceId": "Deny-Adf-Public-Network-Access"
},
{
"definitionVersion": "1.*.*",
"groupNames": [],
"parameters": {
"effect": {
"value": "[parameters('eventGridPublicNetworkAccess')]"
}
},
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/f8f774be-6aee-492a-9e29-486ef81f3a68",
"policyDefinitionReferenceId": "Deny-EventGrid-Public-Network-Access"
},
{
"definitionVersion": "1.*.*",
"groupNames": [],
"parameters": {
"effect": {
"value": "[parameters('eventGridTopicPublicNetworkAccess')]"
}
},
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/1adadefe-5f21-44f7-b931-a59b54ccdb45",
"policyDefinitionReferenceId": "Deny-EventGrid-Topic-Public-Network-Access"
},
{
"definitionVersion": "1.*.*",
"groupNames": [],
"parameters": {
"effect": {
"value": "[parameters('eventHubNamespacesPublicNetworkAccess')]"
}
},
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/0602787f-9896-402a-a6e1-39ee63ee435e",
"policyDefinitionReferenceId": "Deny-EH-Public-Network-Access"
},
{
"definitionVersion": "1.*.*-preview",
"groupNames": [],
"parameters": {
"effect": {
"value": "[parameters('keyVaultManagedHsmDisablePublicNetwork')]"
}
},
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/19ea9d63-adee-4431-a95e-1913c6c1c75f",
"policyDefinitionReferenceId": "Deny-KV-Hms-PublicNetwork"
},
{
"definitionVersion": "2.*.*",
"groupNames": [],
"parameters": {
"effect": {
"value": "[parameters('mySqlPublicNetworkAccess')]"
}
},
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/d9844e8a-1437-4aeb-a32c-0c992f056095",
"policyDefinitionReferenceId": "Deny-MySql-Public-Network-Access"
},
{
"definitionVersion": "3.*.*",
"groupNames": [],
"parameters": {
"effect": {
"value": "[parameters('cognitiveServicesPublicNetworkAccess')]"
}
},
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/0725b4dd-7e76-479c-a735-68e7ee23d5ca",
"policyDefinitionReferenceId": "Deny-Cognitive-Services-Public-Network-Access"
},
{
"definitionVersion": "3.*.*",
"groupNames": [],
"parameters": {
"effect": {
"value": "[parameters('cognitiveServicesNetworkAccess')]"
}
},
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/037eea7a-bd0a-46c5-9a66-03aea78705d3",
"policyDefinitionReferenceId": "Deny-Cognitive-Services-Network-Access"
},
{
"definitionVersion": "1.*.*",
"groupNames": [],
"parameters": {
"effect": {
"value": "[parameters('serviceBusDisablePublicNetworkAccess')]"
}
},
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/cbd11fd3-3002-4907-b6c8-579f0e700e13",
"policyDefinitionReferenceId": "Deny-Sb-PublicEndpoint"
},
{
"definitionVersion": "1.*.*",
"groupNames": [],
"parameters": {
"effect": {
"value": "[parameters('sqlManagedPublicNetworkAccess')]"
}
},
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/9dfea752-dd46-4766-aed1-c355fa93fb91",
"policyDefinitionReferenceId": "Deny-Sql-Managed-Public-Endpoint"
},
{
"definitionVersion": "3.*.*-preview",
"groupNames": [],
"parameters": {
"effect": {
"value": "[parameters('storageAccountsPublicAccess')]"
}
},
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/4fa4b6c0-31ca-4c0d-b10d-24b96f62a751",
"policyDefinitionReferenceId": "Deny-Storage-Public-Access"
},
{
"definitionVersion": "1.*.*",
"groupNames": [],
"parameters": {
"effect": {
"value": "[parameters('synapsePublicNetworkAccess')]"
}
},
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/38d8df46-cf4e-4073-8e03-48c24b29de0d",
"policyDefinitionReferenceId": "Deny-Synapse-Public-Network-Access"
},
{
"definitionVersion": "1.*.*",
"groupNames": [],
"parameters": {
"effect": {
"value": "[parameters('avdWorkspacePublicNetworkAccess')]"
}
},
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/87ac3038-c07a-4b92-860d-29e270a4f3cd",
"policyDefinitionReferenceId": "Deny-Workspace-PublicNetworkAccess"
},
{
"definitionVersion": "1.*.*",
"groupNames": [],
"parameters": {
"effect": {
"value": "[parameters('avdHostPoolPublicNetworkAccess')]"
}
},
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/c25dcf31-878f-4eba-98eb-0818fdc6a334",
"policyDefinitionReferenceId": "Deny-Hostpool-PublicNetworkAccess"
},
{
"definitionVersion": "1.*.*",
"groupNames": [],
"parameters": {
"effect": {
"value": "[parameters('grafanaPublicNetworkAccess')]"
}
},
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/e8775d5a-73b7-4977-a39b-833ef0114628",
"policyDefinitionReferenceId": "Deny-Grafana-PublicNetworkAccess"
}
],
"policyType": "Custom"
},
"type": "Microsoft.Authorization/policySetDefinitions"
}BylawDeny-PublicPaaSEndpoints.bylaw.ps1 · 689 lines
# Converted from Deny-PublicPaaSEndpoints.alz_policy_set_definition.json by ConvertTo-Bylaw.
Initiative 'Deny-PublicPaaSEndpoints' {
Properties @{
DisplayName = 'Public network access should be disabled for PaaS services'
Description = 'This policy initiative is a group of policies that prevents creation of Azure PaaS services with exposed public endpoints'
Category = 'Network'
Version = '5.3.0'
Metadata = [ordered]@{ alzCloudEnvironments = @('AzureCloud'); source = 'https://github.com/Azure/Enterprise-Scale/' }
}
Parameter ACRPublicIpDenyEffect @{
AllowedValues = @('Audit', 'Deny', 'Disabled')
Default = 'Deny'
DisplayName = 'Public network access on Azure Container Registry disabled'
Description = 'This policy denies the creation of Azure Container Registries with exposed public endpoints '
JsonName = 'ACRPublicIpDenyEffect'
}
Parameter AFSPublicIpDenyEffect @{
AllowedValues = @('Audit', 'Deny', 'Disabled')
Default = 'Deny'
DisplayName = 'Public network access on Azure File Sync disabled'
Description = 'This policy denies the creation of Azure File Sync instances with exposed public endpoints '
JsonName = 'AFSPublicIpDenyEffect'
}
Parameter AKSPublicIpDenyEffect @{
AllowedValues = @('Audit', 'Deny', 'Disabled')
Default = 'Deny'
DisplayName = 'Public network access on AKS API should be disabled'
Description = 'This policy denies the creation of Azure Kubernetes Service non-private clusters'
JsonName = 'AKSPublicIpDenyEffect'
}
Parameter ApiManPublicIpDenyEffect @{
AllowedValues = @('AuditIfNotExists', 'Disabled')
Default = 'AuditIfNotExists'
DisplayName = 'Public network access should be disabled for API Management services'
Description = 'This policy denies creation of API Management services with exposed public endpoints'
JsonName = 'ApiManPublicIpDenyEffect'
}
Parameter AppConfigPublicIpDenyEffect @{
AllowedValues = @('Audit', 'Deny', 'Disabled')
Default = 'Deny'
DisplayName = 'Public network access should be disabled for App Configuration'
Description = 'This policy denies creation of App Configuration with exposed public endpoints'
JsonName = 'AppConfigPublicIpDenyEffect'
}
Parameter AsPublicIpDenyEffect @{
AllowedValues = @('Audit', 'Deny', 'Disabled')
Default = 'Deny'
DisplayName = 'Public network access should be disabled for App Service apps'
Description = 'This policy denies creation of App Service apps with exposed public endpoints'
JsonName = 'AsPublicIpDenyEffect'
}
Parameter AsePublicIpDenyEffect @{
AllowedValues = @('Audit', 'Deny', 'Disabled')
Default = 'Deny'
DisplayName = 'Public network access should be disabled for App Service Environment apps'
Description = 'This policy denies creation of App Service Environment apps with exposed public endpoints'
JsonName = 'AsePublicIpDenyEffect'
}
Parameter AsrVaultDenyEffect @{
AllowedValues = @('Audit', 'Deny', 'Disabled')
Default = 'Deny'
DisplayName = 'Azure Recovery Services vaults should disable public network access'
Description = 'This policy denies creation of Azure Recovery Services vaults with exposed public endpoints'
JsonName = 'AsrVaultDenyEffect'
}
Parameter AutomationPublicIpDenyEffect @{
AllowedValues = @('Audit', 'Deny', 'Disabled')
Default = 'Deny'
DisplayName = 'Public network access should be disabled for Automation accounts'
Description = 'This policy denies creation of Automation accounts with exposed public endpoints. Bots should be set to ''isolated only'' mode'
JsonName = 'AutomationPublicIpDenyEffect'
}
Parameter BatchPublicIpDenyEffect @{
AllowedValues = @('Audit', 'Deny', 'Disabled')
Default = 'Deny'
DisplayName = 'Public network access should be disabled for Azure Batch Instances'
Description = 'This policy denies creation of Azure Batch Instances with exposed public endpoints'
JsonName = 'BatchPublicIpDenyEffect'
}
Parameter BotServicePublicIpDenyEffect @{
AllowedValues = @('Audit', 'Deny', 'Disabled')
Default = 'Deny'
DisplayName = 'Public network access should be disabled for Bot Service'
Description = 'This policy denies creation of Bot Service with exposed public endpoints. Bots should be set to ''isolated only'' mode'
JsonName = 'BotServicePublicIpDenyEffect'
}
Parameter ContainerAppsEnvironmentDenyEffect @{
AllowedValues = @('Audit', 'Deny', 'Disabled')
Default = 'Deny'
DisplayName = 'Container Apps environment should disable public network access'
Description = 'This policy denies creation of Container Apps Environment with exposed public endpoints'
JsonName = 'ContainerAppsEnvironmentDenyEffect'
}
Parameter CosmosPublicIpDenyEffect @{
AllowedValues = @('Audit', 'Deny', 'Disabled')
Default = 'Deny'
DisplayName = 'Public network access should be disabled for CosmosDB'
Description = 'This policy denies that Cosmos database accounts are created with out public network access is disabled.'
JsonName = 'CosmosPublicIpDenyEffect'
}
Parameter FunctionAppSlotPublicIpDenyEffect @{
AllowedValues = @('Audit', 'Deny', 'Disabled')
Default = 'Deny'
DisplayName = 'Public network access should be disabled for Function apps'
Description = 'This policy denies creation of Function apps with exposed public endpoints'
JsonName = 'FunctionAppSlotPublicIpDenyEffect'
}
Parameter FunctionPublicIpDenyEffect @{
AllowedValues = @('Audit', 'Deny', 'Disabled')
Default = 'Deny'
DisplayName = 'Public network access should be disabled for Function apps'
Description = 'This policy denies creation of Function apps with exposed public endpoints'
JsonName = 'FunctionPublicIpDenyEffect'
}
Parameter KeyVaultPublicIpDenyEffect @{
AllowedValues = @('Audit', 'Deny', 'Disabled')
Default = 'Deny'
DisplayName = 'Public network access should be disabled for KeyVault'
Description = 'This policy denies creation of Key Vaults with IP Firewall exposed to all public endpoints'
JsonName = 'KeyVaultPublicIpDenyEffect'
}
Parameter MariaDbPublicIpDenyEffect @{
AllowedValues = @('Audit', 'Deny', 'Disabled')
Default = 'Deny'
DisplayName = 'Public network access should be disabled for Azure MariaDB'
Description = 'This policy denies creation of Azure MariaDB with exposed public endpoints'
JsonName = 'MariaDbPublicIpDenyEffect'
}
Parameter MlPublicIpDenyEffect @{
AllowedValues = @('Audit', 'Deny', 'Disabled')
Default = 'Deny'
DisplayName = 'Public network access should be disabled for Azure Machine Learning'
Description = 'This policy denies creation of Azure Machine Learning with exposed public endpoints'
JsonName = 'MlPublicIpDenyEffect'
}
Parameter MySQLFlexPublicIpDenyEffect @{
AllowedValues = @('Audit', 'Deny', 'Disabled')
Default = 'Deny'
DisplayName = 'Public network access should be disabled for MySQL Flexible Server'
Description = 'This policy denies creation of MySql Flexible Server DB accounts with exposed public endpoints'
JsonName = 'MySQLFlexPublicIpDenyEffect'
}
Parameter PostgreSQLFlexPublicIpDenyEffect @{
AllowedValues = @('Audit', 'Deny', 'Disabled')
Default = 'Deny'
DisplayName = 'Public network access should be disabled for PostgreSql Flexible Server'
Description = 'This policy denies creation of PostgreSQL Flexible DB accounts with exposed public endpoints'
JsonName = 'PostgreSQLFlexPublicIpDenyEffect'
}
Parameter RedisCachePublicIpDenyEffect @{
AllowedValues = @('Audit', 'Deny', 'Disabled')
Default = 'Deny'
DisplayName = 'Public network access should be disabled for Azure Cache for Redis'
Description = 'This policy denies creation of Azure Cache for Redis with exposed public endpoints'
JsonName = 'RedisCachePublicIpDenyEffect'
}
Parameter SqlServerPublicIpDenyEffect @{
AllowedValues = @('Audit', 'Deny', 'Disabled')
Default = 'Deny'
DisplayName = 'Public network access on Azure SQL Database should be disabled'
Description = 'This policy denies creation of Sql servers with exposed public endpoints'
JsonName = 'SqlServerPublicIpDenyEffect'
}
Parameter StoragePublicIpDenyEffect @{
AllowedValues = @('Audit', 'Deny', 'Disabled')
Default = 'Deny'
DisplayName = 'Public network access onStorage accounts should be disabled'
Description = 'This policy denies creation of storage accounts with IP Firewall exposed to all public endpoints'
JsonName = 'StoragePublicIpDenyEffect'
}
Parameter AdfPublicNetworkAccess @{
Type = 'string'
AllowedValues = @('Audit', 'Deny', 'Disabled')
Default = 'Deny'
}
Parameter AdxPublicNetworkAccess @{
Type = 'string'
AllowedValues = @('Audit', 'Deny', 'Disabled')
Default = 'Deny'
}
Parameter AppSlotsPublicNetworkAccess @{
Type = 'string'
AllowedValues = @('Audit', 'Deny', 'Disabled')
Default = 'Deny'
}
Parameter AvdHostPoolPublicNetworkAccess @{
Type = 'string'
AllowedValues = @('Audit', 'Deny', 'Disabled')
Default = 'Deny'
}
Parameter AvdWorkspacePublicNetworkAccess @{
Type = 'string'
AllowedValues = @('Audit', 'Deny', 'Disabled')
Default = 'Deny'
}
Parameter CognitiveSearchPublicNetworkAccess @{
Type = 'string'
AllowedValues = @('Audit', 'Deny', 'Disabled')
Default = 'Deny'
}
Parameter CognitiveServicesNetworkAccess @{
Type = 'string'
AllowedValues = @('Audit', 'Deny', 'Disabled')
Default = 'Deny'
}
Parameter CognitiveServicesPublicNetworkAccess @{
Type = 'string'
AllowedValues = @('Audit', 'Deny', 'Disabled')
Default = 'Deny'
}
Parameter ContainerAppsPublicNetworkAccess @{
Type = 'string'
AllowedValues = @('Audit', 'Deny', 'Disabled')
Default = 'Deny'
}
Parameter EventGridPublicNetworkAccess @{
Type = 'string'
AllowedValues = @('Audit', 'Deny', 'Disabled')
Default = 'Deny'
}
Parameter EventGridTopicPublicNetworkAccess @{
Type = 'string'
AllowedValues = @('Audit', 'Deny', 'Disabled')
Default = 'Deny'
}
Parameter EventHubNamespacesPublicNetworkAccess @{
Type = 'string'
AllowedValues = @('Audit', 'Deny', 'Disabled')
Default = 'Deny'
}
Parameter GrafanaPublicNetworkAccess @{
Type = 'string'
AllowedValues = @('Audit', 'Deny', 'Disabled')
Default = 'Deny'
}
Parameter KeyVaultManagedHsmDisablePublicNetwork @{
Type = 'string'
AllowedValues = @('Audit', 'Deny', 'Disabled')
Default = 'Deny'
}
Parameter LogicAppPublicNetworkAccessEffect @{
AllowedValues = @('Audit', 'Deny', 'Disabled')
Default = 'Deny'
}
Parameter ManagedDiskPublicNetworkAccess @{
Type = 'string'
AllowedValues = @('Audit', 'Deny', 'Disabled')
Default = 'Audit'
}
Parameter MySqlPublicNetworkAccess @{
Type = 'string'
AllowedValues = @('Audit', 'Deny', 'Disabled')
Default = 'Deny'
}
Parameter PostgreSqlPublicNetworkAccess @{
Type = 'string'
AllowedValues = @('Audit', 'Deny', 'Disabled')
Default = 'Deny'
DisplayName = 'Public network access should be disabled for PostgreSQL servers'
Description = 'This policy denies creation of PostgreSQL DB accounts with exposed public endpoints'
}
Parameter ServiceBusDisablePublicNetworkAccess @{
Type = 'string'
AllowedValues = @('Audit', 'Deny', 'Disabled')
Default = 'Deny'
}
Parameter SqlManagedPublicNetworkAccess @{
Type = 'string'
AllowedValues = @('Audit', 'Deny', 'Disabled')
Default = 'Deny'
}
Parameter StorageAccountsPublicAccess @{
Type = 'string'
AllowedValues = @('Audit', 'Deny', 'Disabled')
Default = 'Deny'
}
Parameter SynapsePublicNetworkAccess @{
Type = 'string'
AllowedValues = @('Audit', 'Deny', 'Disabled')
Default = 'Deny'
}
PolicyDefinition @{
Id = '797b37f7-06b8-444c-b1ad-fc62867f335a'
ReferenceId = 'CosmosDenyPaasPublicIP'
Version = '1.*.*'
Parameters = @{
effect = (Param CosmosPublicIpDenyEffect)
}
}
PolicyDefinition @{
Id = '405c5871-3e91-4644-8a63-58e19d68ff5b'
ReferenceId = 'KeyVaultDenyPaasPublicIP'
Version = '1.*.*'
Parameters = @{
effect = (Param KeyVaultPublicIpDenyEffect)
}
}
PolicyDefinition @{
Id = '1b8ca024-1d5c-4dec-8995-b1a932b41780'
ReferenceId = 'SqlServerDenyPaasPublicIP'
Version = '1.*.*'
Parameters = @{
effect = (Param SqlServerPublicIpDenyEffect)
}
}
PolicyDefinition @{
Id = 'b2982f36-99f2-4db5-8eff-283140c09693'
ReferenceId = 'StorageDenyPaasPublicIP'
Version = '1.*.*'
Parameters = @{
effect = (Param StoragePublicIpDenyEffect)
}
}
PolicyDefinition @{
Id = '040732e8-d947-40b8-95d6-854c95024bf8'
ReferenceId = 'AKSDenyPaasPublicIP'
Version = '1.*.*'
Parameters = @{
effect = (Param AKSPublicIpDenyEffect)
}
}
PolicyDefinition @{
Id = '0fdf0491-d080-4575-b627-ad0e843cba0f'
ReferenceId = 'ACRDenyPaasPublicIP'
Version = '1.*.*'
Parameters = @{
effect = (Param ACRPublicIpDenyEffect)
}
}
PolicyDefinition @{
Id = '21a8cd35-125e-4d13-b82d-2e19b7208bb7'
ReferenceId = 'AFSDenyPaasPublicIP'
Version = '1.*.*'
Parameters = @{
effect = (Param AFSPublicIpDenyEffect)
}
}
PolicyDefinition @{
Id = '5e1de0e3-42cb-4ebc-a86d-61d0c619ca48'
ReferenceId = 'PostgreSQLFlexDenyPublicIP'
Version = '3.*.*'
Parameters = @{
effect = (Param PostgreSQLFlexPublicIpDenyEffect)
}
}
PolicyDefinition @{
Id = 'b52376f7-9612-48a1-81cd-1ffe4b61032c'
ReferenceId = 'Deny-PostgreSql-Public-Network-Access'
Version = '2.*.*'
Parameters = @{
effect = (Param PostgreSqlPublicNetworkAccess)
}
}
PolicyDefinition @{
Id = 'c9299215-ae47-4f50-9c54-8a392f68a052'
ReferenceId = 'MySQLFlexDenyPublicIP'
Version = '2.*.*'
Parameters = @{
effect = (Param MySQLFlexPublicIpDenyEffect)
}
}
PolicyDefinition @{
Id = '74c5a0ae-5e48-4738-b093-65e23a060488'
ReferenceId = 'BatchDenyPublicIP'
Version = '1.*.*'
Parameters = @{
effect = (Param BatchPublicIpDenyEffect)
}
}
PolicyDefinition @{
Id = 'fdccbe47-f3e3-4213-ad5d-ea459b2fa077'
ReferenceId = 'MariaDbDenyPublicIP'
Version = '2.*.*'
Parameters = @{
effect = (Param MariaDbPublicIpDenyEffect)
}
}
PolicyDefinition @{
Id = '438c38d2-3772-465a-a9cc-7a6666a275ce'
ReferenceId = 'MlDenyPublicIP'
Version = '2.*.*'
Parameters = @{
effect = (Param MlPublicIpDenyEffect)
}
}
PolicyDefinition @{
Id = '470baccb-7e51-4549-8b1a-3e5be069f663'
ReferenceId = 'RedisCacheDenyPublicIP'
Version = '1.*.*'
Parameters = @{
effect = (Param RedisCachePublicIpDenyEffect)
}
}
PolicyDefinition @{
Id = '5e8168db-69e3-4beb-9822-57cb59202a9d'
ReferenceId = 'BotServiceDenyPublicIP'
Version = '1.*.*'
Parameters = @{
effect = (Param BotServicePublicIpDenyEffect)
}
}
PolicyDefinition @{
Id = '955a914f-bf86-4f0e-acd5-e0766b0efcb6'
ReferenceId = 'AutomationDenyPublicIP'
Version = '1.*.*'
Parameters = @{
effect = (Param AutomationPublicIpDenyEffect)
}
}
PolicyDefinition @{
Id = '3d9f5e4c-9947-4579-9539-2a7695fbc187'
ReferenceId = 'AppConfigDenyPublicIP'
Version = '1.*.*'
Parameters = @{
effect = (Param AppConfigPublicIpDenyEffect)
}
}
PolicyDefinition @{
Id = '969ac98b-88a8-449f-883c-2e9adb123127'
ReferenceId = 'FunctionDenyPublicIP'
Version = '1.*.*'
Parameters = @{
effect = (Param FunctionPublicIpDenyEffect)
}
}
PolicyDefinition @{
Id = '11c82d0c-db9f-4d7b-97c5-f3f9aa957da2'
ReferenceId = 'FunctionAppSlotsDenyPublicIP'
Version = '1.*.*'
Parameters = @{
effect = (Param FunctionAppSlotPublicIpDenyEffect)
}
}
PolicyDefinition @{
Id = '2d048aca-6479-4923-88f5-e2ac295d9af3'
ReferenceId = 'AseDenyPublicIP'
Version = '3.*.*'
Parameters = @{
effect = (Param AsePublicIpDenyEffect)
}
}
PolicyDefinition @{
Id = '1b5ef780-c53c-4a64-87f3-bb9c8c8094ba'
ReferenceId = 'AsDenyPublicIP'
Version = '1.*.*'
Parameters = @{
effect = (Param AsPublicIpDenyEffect)
}
}
PolicyDefinition @{
Id = 'df73bd95-24da-4a4f-96b9-4e8b94b402bd'
ReferenceId = 'ApiManDenyPublicIP'
Version = '1.*.*'
Parameters = @{
effect = (Param ApiManPublicIpDenyEffect)
}
}
PolicyDefinition @{
Id = 'd074ddf8-01a5-4b5e-a2b8-964aed452c0a'
ReferenceId = 'ContainerAppsEnvironmentDenyPublicIP'
Version = '1.*.*'
Parameters = @{
effect = (Param ContainerAppsEnvironmentDenyEffect)
}
}
PolicyDefinition @{
Id = '783ea2a8-b8fd-46be-896a-9ae79643a0b1'
ReferenceId = 'Deny-ContainerApps-Public-Network-Access'
Version = '1.*.*'
Parameters = @{
effect = (Param ContainerAppsPublicNetworkAccess)
}
}
PolicyDefinition @{
Id = '9ebbbba3-4d65-4da9-bb67-b22cfaaff090'
ReferenceId = 'AsrVaultDenyPublicIP'
Version = '1.*.*-preview'
Parameters = @{
effect = (Param AsrVaultDenyEffect)
}
}
PolicyDefinition @{
Id = '/providers/Microsoft.Management/managementGroups/contoso/providers/Microsoft.Authorization/policyDefinitions/Deny-LogicApp-Public-Network'
ReferenceId = 'Deny-LogicApp-Public-Network-Access'
Version = '1.*.*'
Parameters = @{
effect = (Param LogicAppPublicNetworkAccessEffect)
}
}
PolicyDefinition @{
Id = '701a595d-38fb-4a66-ae6d-fb3735217622'
ReferenceId = 'Deny-AppSlots-Public'
Version = '1.*.*'
Parameters = @{
effect = (Param AppSlotsPublicNetworkAccess)
}
}
PolicyDefinition @{
Id = 'ee980b6d-0eca-4501-8d54-f6290fd512c3'
ReferenceId = 'Deny-CognitiveSearch-PublicEndpoint'
Version = '1.*.*'
Parameters = @{
effect = (Param CognitiveSearchPublicNetworkAccess)
}
}
PolicyDefinition @{
Id = '8405fdab-1faf-48aa-b702-999c9c172094'
ReferenceId = 'Deny-ManagedDisk-Public-Network-Access'
Version = '2.*.*'
Parameters = @{
effect = (Param ManagedDiskPublicNetworkAccess)
}
}
PolicyDefinition @{
Id = '43bc7be6-5e69-4b0d-a2bb-e815557ca673'
ReferenceId = 'Deny-ADX-Public-Network-Access'
Version = '1.*.*'
Parameters = @{
effect = (Param AdxPublicNetworkAccess)
}
}
PolicyDefinition @{
Id = '1cf164be-6819-4a50-b8fa-4bcaa4f98fb6'
ReferenceId = 'Deny-Adf-Public-Network-Access'
Version = '1.*.*'
Parameters = @{
effect = (Param AdfPublicNetworkAccess)
}
}
PolicyDefinition @{
Id = 'f8f774be-6aee-492a-9e29-486ef81f3a68'
ReferenceId = 'Deny-EventGrid-Public-Network-Access'
Version = '1.*.*'
Parameters = @{
effect = (Param EventGridPublicNetworkAccess)
}
}
PolicyDefinition @{
Id = '1adadefe-5f21-44f7-b931-a59b54ccdb45'
ReferenceId = 'Deny-EventGrid-Topic-Public-Network-Access'
Version = '1.*.*'
Parameters = @{
effect = (Param EventGridTopicPublicNetworkAccess)
}
}
PolicyDefinition @{
Id = '0602787f-9896-402a-a6e1-39ee63ee435e'
ReferenceId = 'Deny-EH-Public-Network-Access'
Version = '1.*.*'
Parameters = @{
effect = (Param EventHubNamespacesPublicNetworkAccess)
}
}
PolicyDefinition @{
Id = '19ea9d63-adee-4431-a95e-1913c6c1c75f'
ReferenceId = 'Deny-KV-Hms-PublicNetwork'
Version = '1.*.*-preview'
Parameters = @{
effect = (Param KeyVaultManagedHsmDisablePublicNetwork)
}
}
PolicyDefinition @{
Id = 'd9844e8a-1437-4aeb-a32c-0c992f056095'
ReferenceId = 'Deny-MySql-Public-Network-Access'
Version = '2.*.*'
Parameters = @{
effect = (Param MySqlPublicNetworkAccess)
}
}
PolicyDefinition @{
Id = '0725b4dd-7e76-479c-a735-68e7ee23d5ca'
ReferenceId = 'Deny-Cognitive-Services-Public-Network-Access'
Version = '3.*.*'
Parameters = @{
effect = (Param CognitiveServicesPublicNetworkAccess)
}
}
PolicyDefinition @{
Id = '037eea7a-bd0a-46c5-9a66-03aea78705d3'
ReferenceId = 'Deny-Cognitive-Services-Network-Access'
Version = '3.*.*'
Parameters = @{
effect = (Param CognitiveServicesNetworkAccess)
}
}
PolicyDefinition @{
Id = 'cbd11fd3-3002-4907-b6c8-579f0e700e13'
ReferenceId = 'Deny-Sb-PublicEndpoint'
Version = '1.*.*'
Parameters = @{
effect = (Param ServiceBusDisablePublicNetworkAccess)
}
}
PolicyDefinition @{
Id = '9dfea752-dd46-4766-aed1-c355fa93fb91'
ReferenceId = 'Deny-Sql-Managed-Public-Endpoint'
Version = '1.*.*'
Parameters = @{
effect = (Param SqlManagedPublicNetworkAccess)
}
}
PolicyDefinition @{
Id = '4fa4b6c0-31ca-4c0d-b10d-24b96f62a751'
ReferenceId = 'Deny-Storage-Public-Access'
Version = '3.*.*-preview'
Parameters = @{
effect = (Param StorageAccountsPublicAccess)
}
}
PolicyDefinition @{
Id = '38d8df46-cf4e-4073-8e03-48c24b29de0d'
ReferenceId = 'Deny-Synapse-Public-Network-Access'
Version = '1.*.*'
Parameters = @{
effect = (Param SynapsePublicNetworkAccess)
}
}
PolicyDefinition @{
Id = '87ac3038-c07a-4b92-860d-29e270a4f3cd'
ReferenceId = 'Deny-Workspace-PublicNetworkAccess'
Version = '1.*.*'
Parameters = @{
effect = (Param AvdWorkspacePublicNetworkAccess)
}
}
PolicyDefinition @{
Id = 'c25dcf31-878f-4eba-98eb-0818fdc6a334'
ReferenceId = 'Deny-Hostpool-PublicNetworkAccess'
Version = '1.*.*'
Parameters = @{
effect = (Param AvdHostPoolPublicNetworkAccess)
}
}
PolicyDefinition @{
Id = 'e8775d5a-73b7-4977-a39b-833ef0114628'
ReferenceId = 'Deny-Grafana-PublicNetworkAccess'
Version = '1.*.*'
Parameters = @{
effect = (Param GrafanaPublicNetworkAccess)
}
}
}Members (45)
- Azure Cosmos DB should disable public network access
- Azure Key Vault should disable public network access
- Public network access on Azure SQL Database should be disabled
- Storage accounts should disable public network access
- Azure Kubernetes Service Private Clusters should be enabled
- Public network access should be disabled for Container registries
- Public network access should be disabled for Azure File Sync
- Public network access should be disabled for PostgreSQL flexible servers
- Public network access should be disabled for PostgreSQL servers
- Public network access should be disabled for MySQL flexible servers
- Public network access should be disabled for Batch accounts
- Public network access should be disabled for MariaDB servers
- Azure Machine Learning Workspaces should disable public network access
- Azure Cache for Redis should disable public network access
- Bot Service should have public network access disabled
- Automation accounts should disable public network access
- App Configuration should disable public network access
- Function apps should disable public network access
- Function app slots should disable public network access
- App Service Environment apps should not be reachable over public internet
- App Service apps should disable public network access
- API Management should disable public network access to the service configuration endpoints
- Container Apps environment should disable public network access
- Container Apps should disable external network access
- Azure Recovery Services vaults should disable public network access
- Logic apps should disable public network access
- App Service app slots should disable public network access
- Azure AI Search services should disable public network access
- Managed disks should disable public network access
- Public network access on Azure Data Explorer should be disabled
- Public network access on Azure Data Factory should be disabled
- Azure Event Grid domains should disable public network access
- Azure Event Grid topics should disable public network access
- Event Hub Namespaces should disable public network access
- [Preview]: Azure Key Vault Managed HSM should disable public network access
- Public network access should be disabled for MySQL servers
- [Deprecated]: Cognitive Services accounts should disable public network access
- Azure AI Services resources should restrict network access
- Service Bus Namespaces should disable public network access
- Azure SQL Managed Instances should disable public network access
- Storage account public access should be disallowed
- Azure Synapse workspaces should disable public network access
- Azure Virtual Desktop workspaces should disable public network access
- Azure Virtual Desktop hostpools should disable public network access
- Azure Managed Grafana workspaces should disable public network access
Source: policy_set_definitions/Deny-PublicPaaSEndpoints.alz_policy_set_definition.json in Azure/Azure-Landing-Zones-Library, under the MIT licence.
Bylaw