Bylaw

Gallery › Synapse › Azure built-in policies

Configure Synapse Workspaces to mandate Microsoft Entra-only identities for authentication

Converted Initiative Version 1.0.0

Require and configure Microsoft Entra-only authentication for Synapse Workspaces, disabling local authentication methods. This allows access exclusively via Microsoft Entra identities, enhancing security with modern authentication enhancements including MFA, SSO, and secret-less programmatic access with managed identities.

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

Azure Policy JSONWorkspaceAadOnlyAuthenticationEnforcement_Modify.json · 53 lines
{
  "properties": {
    "displayName": "Configure Synapse Workspaces to mandate Microsoft Entra-only identities for authentication",
    "policyType": "BuiltIn",
    "description": "Require and configure Microsoft Entra-only authentication for Synapse Workspaces, disabling local authentication methods. This allows access exclusively via Microsoft Entra identities, enhancing security with modern authentication enhancements including MFA, SSO, and secret-less programmatic access with managed identities.",
    "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": [
          "Modify",
          "Disabled"
        ],
        "defaultValue": "Modify"
      }
    },
    "policyDefinitions": [
      {
        "policyDefinitionReferenceId": "SynapseWorkspaceCreationAadOnlyAuthentication",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/c3624673-d2ff-48e0-b28c-5de1c6767c3c",
        "definitionVersion": "1.*.*",
        "parameters": {
          "effect": {
            "value": "[parameters('effect')]"
          }
        }
      },
      {
        "policyDefinitionReferenceId": "SynapseWorkspaceDisableAadOnlyAuthentication",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/738949be-6fd2-46b9-b969-99b53712b192",
        "definitionVersion": "1.*.*",
        "parameters": {
          "effect": {
            "value": "[parameters('effect')]"
          }
        }
      }
    ],
    "versions": [
      "1.0.0"
    ]
  },
  "id": "/providers/Microsoft.Authorization/policySetDefinitions/6cccc75e-6b5c-4e63-8b4a-8427bc49fe5f",
  "name": "6cccc75e-6b5c-4e63-8b4a-8427bc49fe5f"
}
Bylaw6cccc75e-6b5c-4e63-8b4a-8427bc49fe5f.bylaw.ps1 · 36 lines
# Converted from WorkspaceAadOnlyAuthenticationEnforcement_Modify.json by ConvertTo-Bylaw.
Initiative '6cccc75e-6b5c-4e63-8b4a-8427bc49fe5f' {

    Properties @{
        DisplayName   = 'Configure Synapse Workspaces to mandate Microsoft Entra-only identities for authentication'
        Description   = 'Require and configure Microsoft Entra-only authentication for Synapse Workspaces, disabling local authentication methods. This allows access exclusively via Microsoft Entra identities, enhancing security with modern authentication enhancements including MFA, SSO, and secret-less programmatic access with managed identities.'
        Version       = '1.0.0'
        Category      = 'Synapse'
        PolicyVersion = '1.0.0'
    }

    Parameter Effect @{
        AllowedValues = @('Modify', 'Disabled')
        Default       = 'Modify'
        DisplayName   = 'Effect'
        Description   = 'Enable or disable the execution of the policy'
    }

    PolicyDefinition @{
        Id          = 'c3624673-d2ff-48e0-b28c-5de1c6767c3c'
        ReferenceId = 'SynapseWorkspaceCreationAadOnlyAuthentication'
        Version     = '1.*.*'
        Parameters  = @{
            effect = (Param Effect)
        }
    }

    PolicyDefinition @{
        Id          = '738949be-6fd2-46b9-b969-99b53712b192'
        ReferenceId = 'SynapseWorkspaceDisableAadOnlyAuthentication'
        Version     = '1.*.*'
        Parameters  = @{
            effect = (Param Effect)
        }
    }
}

Members (2)

Source: built-in-policies/policySetDefinitions/Synapse/WorkspaceAadOnlyAuthenticationEnforcement_Modify.json in Azure/azure-policy, under the MIT licence.