Gallery › Data Factory › Azure built-in policies
SQL Server Integration Services integration runtimes on Azure Data Factory should be joined to a virtual network
Converted Policy Audit Deny Disabled Mode All Version 2.3.0
Azure Virtual Network deployment provides enhanced security and isolation for your SQL Server Integration Services integration runtimes on Azure Data Factory, as well as subnets, access control policies, and other features to further restrict access.
ConvertTo-Bylaw converted this policy, and proved that the file compiles back to the same definition.
Azure Policy JSONSSISIR_JoinVirtualNetwork_Audit.json · 71 lines
{
"properties": {
"displayName": "SQL Server Integration Services integration runtimes on Azure Data Factory should be joined to a virtual network",
"policyType": "BuiltIn",
"mode": "All",
"description": "Azure Virtual Network deployment provides enhanced security and isolation for your SQL Server Integration Services integration runtimes on Azure Data Factory, as well as subnets, access control policies, and other features to further restrict access.",
"metadata": {
"version": "2.3.0",
"category": "Data Factory"
},
"version": "2.3.0",
"parameters": {
"effect": {
"type": "string",
"defaultValue": "Audit",
"allowedValues": [
"Audit",
"Deny",
"Disabled"
],
"metadata": {
"displayName": "Effect",
"description": "The effect determines what happens when the policy rule is evaluated to match."
}
}
},
"policyRule": {
"if": {
"allOf": [
{
"field": "type",
"equals": "Microsoft.DataFactory/factories/integrationRuntimes"
},
{
"field": "Microsoft.DataFactory/factories/integrationruntimes/type",
"equals": "Managed"
},
{
"field": "Microsoft.DataFactory/factories/integrationruntimes/typeProperties.ssisProperties",
"exists": "true"
},
{
"allOf": [
{
"field": "Microsoft.DataFactory/factories/integrationRuntimes/Managed.typeProperties.computeProperties.vnetProperties.vnetId",
"exists": "false"
},
{
"field": "Microsoft.DataFactory/factories/integrationRuntimes/Managed.typeProperties.computeProperties.vNetProperties.subnetId",
"exists": "false"
},
{
"field": "Microsoft.DataFactory/factories/integrationRuntimes/Managed.typeProperties.customerVirtualNetwork.subnetId",
"exists": "false"
}
]
}
]
},
"then": {
"effect": "[parameters('effect')]"
}
},
"versions": [
"2.3.0",
"2.2.0"
]
},
"id": "/providers/Microsoft.Authorization/policyDefinitions/0088bc63-6dee-4a9c-9d29-91cfdc848952",
"name": "0088bc63-6dee-4a9c-9d29-91cfdc848952"
}Bylaw0088bc63-6dee-4a9c-9d29-91cfdc848952.bylaw.ps1 · 36 lines
# Converted from SSISIR_JoinVirtualNetwork_Audit.json by ConvertTo-Bylaw.
Policy '0088bc63-6dee-4a9c-9d29-91cfdc848952' {
Properties @{
DisplayName = 'SQL Server Integration Services integration runtimes on Azure Data Factory should be joined to a virtual network'
Description = 'Azure Virtual Network deployment provides enhanced security and isolation for your SQL Server Integration Services integration runtimes on Azure Data Factory, as well as subnets, access control policies, and other features to further restrict access.'
Version = '2.3.0'
Category = 'Data Factory'
PolicyVersion = '2.3.0'
Mode = 'All'
}
Parameter Effect @{
Type = 'string'
AllowedValues = @('Audit', 'Deny', 'Disabled')
Default = 'Audit'
DisplayName = 'Effect'
Description = 'The effect determines what happens when the policy rule is evaluated to match.'
}
Resource 'Microsoft.DataFactory/factories/integrationRuntimes' {
When {
Field 'Microsoft.DataFactory/factories/integrationruntimes/type' | Must -Be 'Managed'
Field typeProperties.ssisProperties | Must -Exist
Field Managed.typeProperties.computeProperties.vNetProperties.vNetId | Must -Not -Exist
Field Managed.typeProperties.computeProperties.vNetProperties.subnetId | Must -Not -Exist
}
Require 'Managed.typeProperties.customerVirtualNetwork.subnetId exists' {
Field Managed.typeProperties.customerVirtualNetwork.subnetId | Must -Exist
}
}
Effect (Param Effect)
}Source: built-in-policies/policyDefinitions/Data Factory/SSISIR_JoinVirtualNetwork_Audit.json in Azure/azure-policy, under the MIT licence.
Bylaw