Gallery › Synapse › Azure built-in policies
Azure Synapse workspaces should disable public network access
Converted Policy Audit Deny Disabled Mode Indexed Version 1.0.0
Disabling public network access improves security by ensuring that the Synapse workspace isn't exposed on the public internet. Creating private endpoints can limit exposure of your Synapse workspaces. Learn more at: https://docs.microsoft.com/azure/synapse-analytics/security/connectivity-settings.
ConvertTo-Bylaw converted this policy, and proved that the file compiles back to the same definition.
Azure Policy JSONWorkspacePublicNetworkAccess_Deny.json · 50 lines
{
"properties": {
"displayName": "Azure Synapse workspaces should disable public network access",
"description": "Disabling public network access improves security by ensuring that the Synapse workspace isn't exposed on the public internet. Creating private endpoints can limit exposure of your Synapse workspaces. Learn more at: https://docs.microsoft.com/azure/synapse-analytics/security/connectivity-settings.",
"policyType": "BuiltIn",
"mode": "Indexed",
"metadata": {
"version": "1.0.0",
"category": "Synapse"
},
"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.Synapse/workspaces"
},
{
"field": "Microsoft.Synapse/workspaces/publicNetworkAccess",
"notEquals": "Disabled"
}
]
},
"then": {
"effect": "[parameters('effect')]"
}
},
"versions": [
"1.0.0"
]
},
"id": "/providers/Microsoft.Authorization/policyDefinitions/38d8df46-cf4e-4073-8e03-48c24b29de0d",
"name": "38d8df46-cf4e-4073-8e03-48c24b29de0d"
}Bylaw38d8df46-cf4e-4073-8e03-48c24b29de0d.bylaw.ps1 · 28 lines
# Converted from WorkspacePublicNetworkAccess_Deny.json by ConvertTo-Bylaw.
Policy '38d8df46-cf4e-4073-8e03-48c24b29de0d' {
Properties @{
DisplayName = 'Azure Synapse workspaces should disable public network access'
Description = 'Disabling public network access improves security by ensuring that the Synapse workspace isn''t exposed on the public internet. Creating private endpoints can limit exposure of your Synapse workspaces. Learn more at: https://docs.microsoft.com/azure/synapse-analytics/security/connectivity-settings.'
Version = '1.0.0'
Category = 'Synapse'
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.Synapse/workspaces' {
Require 'publicNetworkAccess is Disabled' {
Field publicNetworkAccess | Must -Be 'Disabled'
}
}
Effect (Param Effect)
}Source: built-in-policies/policyDefinitions/Synapse/WorkspacePublicNetworkAccess_Deny.json in Azure/azure-policy, under the MIT licence.
Bylaw