Gallery › Data Factory › Azure Community Policy
Prevent-DataFactory-ManagedSSISRuntime
Converted Policy Audit Deny Disabled Mode All Version 1.0.0
Prevent creation of Managed SSIS runtime for Azure Data Factory
ConvertTo-Bylaw converted this policy, and proved that the file compiles back to the same definition.
Azure Policy JSONazurepolicy.json · 53 lines
{
"name": "3d8b4ada-c3de-441e-aef0-338dcb293151",
"type": "Microsoft.Authorization/policyDefinitions",
"properties": {
"displayName": "Prevent-DataFactory-ManagedSSISRuntime",
"description": "Prevent creation of Managed SSIS runtime for Azure Data Factory",
"metadata": {
"category": "Data Factory",
"version": "1.0.0"
},
"mode": "All",
"parameters": {
"effect": {
"type": "String",
"metadata": {
"displayName": "Effect",
"description": "Deny, Audit or Disabled the execution of the Policy"
},
"allowedValues": [
"Deny",
"Audit",
"Disabled"
],
"defaultValue": "Audit"
}
},
"policyRule": {
"if": {
"allOf": [
{
"field": "type",
"equals": "Microsoft.DataFactory/factories/integrationruntimes"
},
{
"allOf": [
{
"field": "Microsoft.DataFactory/factories/integrationruntimes/type",
"equals": "Managed"
},
{
"field": "Microsoft.DataFactory/factories/integrationruntimes/typeProperties.ssisProperties",
"exists": true
}
]
}
]
},
"then": {
"effect": "[parameters('effect')]"
}
}
}
}Bylaw3d8b4ada-c3de-441e-aef0-338dcb293151.bylaw.ps1 · 31 lines
# Converted from azurepolicy.json by ConvertTo-Bylaw.
Policy '3d8b4ada-c3de-441e-aef0-338dcb293151' {
Properties @{
DisplayName = 'Prevent-DataFactory-ManagedSSISRuntime'
Description = 'Prevent creation of Managed SSIS runtime for Azure Data Factory'
Category = 'Data Factory'
Version = '1.0.0'
Mode = 'All'
}
Parameter Effect @{
AllowedValues = @('Deny', 'Audit', 'Disabled')
Default = 'Audit'
DisplayName = 'Effect'
Description = 'Deny, Audit or Disabled the execution of the Policy'
}
Resource 'Microsoft.DataFactory/factories/integrationruntimes' {
When {
Field 'Microsoft.DataFactory/factories/integrationruntimes/type' | Must -Be 'Managed'
}
Require 'typeProperties.ssisProperties does not exist' {
Field typeProperties.ssisProperties | Must -Not -Exist
}
}
Effect (Param Effect)
}Source: policyDefinitions/Data Factory/prevent-datafactory-managedssisruntime/azurepolicy.json in Azure/Community-Policy, under the MIT licence.
Bylaw