Bylaw

Gallery › Logic Apps › Azure built-in policies

Logic Apps should be deployed into Integration Service Environment

Converted Policy Audit Deny Disabled Mode Indexed Version 1.0.0

Deploying Logic Apps into Integration Service Environment in a virtual network unlocks advanced Logic Apps networking and security features and provides you with greater control over your network configuration. Learn more at: https://aka.ms/integration-service-environment. Deploying into Integration Service Environment also allows encryption with customer-managed keys which provides enhanced data protection by allowing you to manage your encryption keys. This is often to meet compliance requirements.

ConvertTo-Bylaw converted this policy, and proved that the file compiles back to the same definition.

Azure Policy JSONLogicAppsInISE_AuditDeny.json · 50 lines
{
  "properties": {
    "displayName": "Logic Apps should be deployed into Integration Service Environment",
    "policyType": "BuiltIn",
    "mode": "Indexed",
    "description": "Deploying Logic Apps into Integration Service Environment in a virtual network unlocks advanced Logic Apps networking and security features and provides you with greater control over your network configuration. Learn more at: https://aka.ms/integration-service-environment. Deploying into Integration Service Environment also allows encryption with customer-managed keys which provides enhanced data protection by allowing you to manage your encryption keys. This is often to meet compliance requirements.",
    "metadata": {
      "version": "1.0.0",
      "category": "Logic Apps"
    },
    "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.Logic/workflows"
          },
          {
            "field": "Microsoft.Logic/workflows/integrationServiceEnvironment",
            "exists": "false"
          }
        ]
      },
      "then": {
        "effect": "[parameters('effect')]"
      }
    },
    "versions": [
      "1.0.0"
    ]
  },
  "id": "/providers/Microsoft.Authorization/policyDefinitions/dc595cb1-1cde-45f6-8faf-f88874e1c0e1",
  "name": "dc595cb1-1cde-45f6-8faf-f88874e1c0e1"
}
Bylawdc595cb1-1cde-45f6-8faf-f88874e1c0e1.bylaw.ps1 · 28 lines
# Converted from LogicAppsInISE_AuditDeny.json by ConvertTo-Bylaw.
Policy 'dc595cb1-1cde-45f6-8faf-f88874e1c0e1' {

    Properties @{
        DisplayName   = 'Logic Apps should be deployed into Integration Service Environment'
        Description   = 'Deploying Logic Apps into Integration Service Environment in a virtual network unlocks advanced Logic Apps networking and security features and provides you with greater control over your network configuration. Learn more at: https://aka.ms/integration-service-environment. Deploying into Integration Service Environment also allows encryption with customer-managed keys which provides enhanced data protection by allowing you to manage your encryption keys. This is often to meet compliance requirements.'
        Version       = '1.0.0'
        Category      = 'Logic Apps'
        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.Logic/workflows' {

        Require 'integrationServiceEnvironment exists' {
            Field integrationServiceEnvironment | Must -Exist
        }
    }

    Effect (Param Effect)
}

Source: built-in-policies/policyDefinitions/Logic Apps/LogicAppsInISE_AuditDeny.json in Azure/azure-policy, under the MIT licence.