Gallery › Synapse › Azure built-in policies
Azure Synapse workspaces should allow outbound data traffic only to approved targets
Converted Policy Audit Deny Disabled Mode Indexed Version 1.0.0
Increase security of your Synapse workspace by allowing outbound data traffic only to approved targets. This helps prevention against data exfiltration by validating the target before sending data.
ConvertTo-Bylaw converted this policy, and proved that the file compiles back to the same definition.
Azure Policy JSONWorkspace_RestrictOutboundDataTraffic_Audit.json · 50 lines
{
"properties": {
"displayName": "Azure Synapse workspaces should allow outbound data traffic only to approved targets",
"policyType": "BuiltIn",
"mode": "Indexed",
"description": "Increase security of your Synapse workspace by allowing outbound data traffic only to approved targets. This helps prevention against data exfiltration by validating the target before sending data.",
"metadata": {
"version": "1.0.0",
"category": "Synapse"
},
"version": "1.0.0",
"parameters": {
"effect": {
"type": "String",
"defaultValue": "Audit",
"allowedValues": [
"Audit",
"Disabled",
"Deny"
],
"metadata": {
"displayName": "Effect",
"description": "Enable or disable the execution of the policy"
}
}
},
"policyRule": {
"if": {
"allOf": [
{
"field": "type",
"equals": "Microsoft.Synapse/workspaces"
},
{
"field": "Microsoft.Synapse/workspaces/managedVirtualNetworkSettings.preventDataExfiltration",
"notEquals": "true"
}
]
},
"then": {
"effect": "[parameters('effect')]"
}
},
"versions": [
"1.0.0"
]
},
"id": "/providers/Microsoft.Authorization/policyDefinitions/3484ce98-c0c5-4c83-994b-c5ac24785218",
"name": "3484ce98-c0c5-4c83-994b-c5ac24785218"
}Bylaw3484ce98-c0c5-4c83-994b-c5ac24785218.bylaw.ps1 · 28 lines
# Converted from Workspace_RestrictOutboundDataTraffic_Audit.json by ConvertTo-Bylaw.
Policy '3484ce98-c0c5-4c83-994b-c5ac24785218' {
Properties @{
DisplayName = 'Azure Synapse workspaces should allow outbound data traffic only to approved targets'
Description = 'Increase security of your Synapse workspace by allowing outbound data traffic only to approved targets. This helps prevention against data exfiltration by validating the target before sending data.'
Version = '1.0.0'
Category = 'Synapse'
PolicyVersion = '1.0.0'
Mode = 'Indexed'
}
Parameter Effect @{
AllowedValues = @('Audit', 'Disabled', 'Deny')
Default = 'Audit'
DisplayName = 'Effect'
Description = 'Enable or disable the execution of the policy'
}
Resource 'Microsoft.Synapse/workspaces' {
Require 'managedVirtualNetworkSettings.preventDataExfiltration is true' {
Field managedVirtualNetworkSettings.preventDataExfiltration | Must -Be 'true'
}
}
Effect (Param Effect)
}Source: built-in-policies/policyDefinitions/Synapse/Workspace_RestrictOutboundDataTraffic_Audit.json in Azure/azure-policy, under the MIT licence.
Bylaw