Bylaw

Gallery › Security Center › Azure Landing Zones Library

Deploy Microsoft Defender for Cloud configuration

Converted Initiative Version 2.4.2

Deploy Microsoft Defender for Cloud configuration

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

Azure Policy JSONDeploy-MDFC-Config_20240319.alz_policy_set_definition.json · 695 lines
{
  "name": "Deploy-MDFC-Config_20240319",
  "properties": {
    "description": "Deploy Microsoft Defender for Cloud configuration",
    "displayName": "Deploy Microsoft Defender for Cloud configuration",
    "metadata": {
      "alzCloudEnvironments": [
        "AzureCloud"
      ],
      "category": "Security Center",
      "replacesPolicy": "Deploy-MDFC-Config",
      "source": "https://github.com/Azure/Enterprise-Scale/",
      "version": "2.4.2"
    },
    "parameters": {
      "ascExportResourceGroupLocation": {
        "metadata": {
          "description": "The location where the resource group and the export to Log Analytics workspace configuration are created.",
          "displayName": "Resource Group location for the export to Log Analytics workspace configuration"
        },
        "type": "String"
      },
      "ascExportResourceGroupName": {
        "metadata": {
          "description": "The resource group name where the export to Log Analytics workspace configuration is created. If you enter a name for a resource group that doesn't exist, it'll be created in the subscription. Note that each resource group can only have one export to Log Analytics workspace configured.",
          "displayName": "Resource Group name for the export to Log Analytics workspace configuration"
        },
        "type": "String"
      },
      "ascForAIIsAIPromptEvidenceEnabled": {
        "allowedValues": [
          "true",
          "false"
        ],
        "defaultValue": "true",
        "metadata": {
          "description": "Enable or disable the AI Prompt Evidence add-on feature",
          "displayName": "AI Prompt Evidence Enabled"
        },
        "type": "String"
      },
      "ascForArmSubPlan": {
        "allowedValues": [
          "PerSubscription",
          "PerApiCall"
        ],
        "defaultValue": "PerSubscription",
        "metadata": {
          "description": "Select a Defender for Resource Manager plan",
          "displayName": "Defender for Resource Manager plans"
        },
        "type": "String"
      },
      "ascForCspmIsAgentlessDiscoveryForKubernetesEnabled": {
        "allowedValues": [
          "true",
          "false"
        ],
        "defaultValue": "true",
        "metadata": {
          "description": "Enable or disable the Agentless Discovery for Kubernetes add-on feature",
          "displayName": "Agentless Discovery for Kubernetes Enabled"
        },
        "type": "String"
      },
      "ascForCspmIsAgentlessVmScanningEnabled": {
        "allowedValues": [
          "true",
          "false"
        ],
        "defaultValue": "true",
        "metadata": {
          "description": "Enable or disable the Agentless VM Scanning add-on feature",
          "displayName": "Agentless VM Scanning Enabled"
        },
        "type": "String"
      },
      "ascForCspmIsContainerRegistriesVulnerabilityAssessmentsEnabled": {
        "allowedValues": [
          "true",
          "false"
        ],
        "defaultValue": "true",
        "metadata": {
          "description": "Enable or disable the Container Registries Vulnerability Assessments add-on feature",
          "displayName": "Container Registries Vulnerability Assessments Enabled"
        },
        "type": "String"
      },
      "ascForCspmIsEntraPermissionsManagementEnabled": {
        "allowedValues": [
          "true",
          "false"
        ],
        "defaultValue": "true",
        "metadata": {
          "description": "Enable or disable the Permissions Management add-on feature",
          "displayName": "Permissions Management Enabled"
        },
        "type": "String"
      },
      "ascForCspmIsSensitiveDataDiscoveryEnabled": {
        "allowedValues": [
          "true",
          "false"
        ],
        "defaultValue": "true",
        "metadata": {
          "description": "Enable or disable the Sensitive Data Discovery add-on feature",
          "displayName": "Sensitive Data Discovery Enabled"
        },
        "type": "String"
      },
      "ascForKeyVaultSubPlan": {
        "allowedValues": [
          "PerTransaction",
          "PerKeyVault"
        ],
        "defaultValue": "PerKeyVault",
        "metadata": {
          "description": "Select a Defender for Key Vault plan",
          "displayName": "Key Vaults bundle's sub plan"
        },
        "type": "String"
      },
      "ascForServersIsAgentlessVmScanningEnabled": {
        "allowedValues": [
          "true",
          "false"
        ],
        "defaultValue": "true",
        "metadata": {
          "description": "Enable or disable the Agentless VM Scanning add-on feature",
          "displayName": "Agentless VM Scanning Enabled"
        },
        "type": "String"
      },
      "ascForServersIsMdeDesignatedSubscriptionEnabled": {
        "allowedValues": [
          "true",
          "false"
        ],
        "defaultValue": "false",
        "metadata": {
          "description": "Enable or disable the MDE Designated Subscription add-on feature",
          "displayName": "MDE Designated Subscription Enabled"
        },
        "type": "String"
      },
      "ascForServersSubPlan": {
        "allowedValues": [
          "P1",
          "P2"
        ],
        "defaultValue": "P2",
        "metadata": {
          "description": "Select a Defender for Servers plan",
          "displayName": "Defender for Servers plans"
        },
        "type": "String"
      },
      "ascForStorageCapGBPerMonthPerStorageAccount": {
        "defaultValue": 5000,
        "metadata": {
          "description": "Limit the GB scanned per month for each storage account within the subscription. Value must be an integer, 10GB or higher. Set to -1 for unlimited scanning",
          "displayName": "Cap GB Per Month Per Storage Account"
        },
        "type": "Integer"
      },
      "ascForStorageIsOnUploadMalwareScanningEnabled": {
        "allowedValues": [
          "true",
          "false"
        ],
        "defaultValue": "true",
        "metadata": {
          "description": "Enable or disable the Malware Scanning add-on feature",
          "displayName": "Malware Scanning Enabled"
        },
        "type": "String"
      },
      "ascForStorageIsSensitiveDataDiscoveryEnabled": {
        "allowedValues": [
          "true",
          "false"
        ],
        "defaultValue": "true",
        "metadata": {
          "description": "Enable or disable the Sensitive Data Threat Detection add-on feature",
          "displayName": "Sensitive Data Threat Detection Enabled"
        },
        "type": "String"
      },
      "attackPathSeverity": {
        "allowedValues": [
          "Critical",
          "High",
          "Medium",
          "Low"
        ],
        "defaultValue": "Critical",
        "metadata": {
          "description": "Defines the minimal attack path severity which will be sent as email notifications",
          "displayName": "Attack path minimal severity"
        },
        "type": "string"
      },
      "createResourceGroup": {
        "allowedValues": [
          true,
          false
        ],
        "defaultValue": true,
        "metadata": {
          "description": "If a resource group does not exists in the scope, a new resource group will be created. If the resource group exists and this flag is set to 'true' the policy will re-deploy the resource group. Please note this will reset any Azure Tag on the resource group.",
          "displayName": "Create resource group"
        },
        "type": "Boolean"
      },
      "emailSecurityContact": {
        "metadata": {
          "description": "Provide email address for Microsoft Defender for Cloud contact details",
          "displayName": "Security contacts email address"
        },
        "type": "string"
      },
      "enableAscForAI": {
        "allowedValues": [
          "DeployIfNotExists",
          "Disabled"
        ],
        "defaultValue": "DeployIfNotExists",
        "metadata": {
          "description": "Enable or disable the execution of the policy",
          "displayName": "Effect"
        },
        "type": "String"
      },
      "enableAscForAppServices": {
        "allowedValues": [
          "DeployIfNotExists",
          "Disabled"
        ],
        "defaultValue": "DeployIfNotExists",
        "metadata": {
          "description": "Enable or disable the execution of the policy",
          "displayName": "Effect"
        },
        "type": "String"
      },
      "enableAscForArm": {
        "allowedValues": [
          "DeployIfNotExists",
          "Disabled"
        ],
        "defaultValue": "DeployIfNotExists",
        "metadata": {
          "description": "Enable or disable the execution of the policy",
          "displayName": "Effect"
        },
        "type": "String"
      },
      "enableAscForContainers": {
        "allowedValues": [
          "DeployIfNotExists",
          "Disabled"
        ],
        "defaultValue": "DeployIfNotExists",
        "metadata": {
          "description": "Enable or disable the execution of the policy",
          "displayName": "Effect"
        },
        "type": "String"
      },
      "enableAscForCosmosDbs": {
        "allowedValues": [
          "DeployIfNotExists",
          "Disabled"
        ],
        "defaultValue": "DeployIfNotExists",
        "metadata": {
          "description": "Enable or disable the execution of the policy",
          "displayName": "Effect"
        },
        "type": "String"
      },
      "enableAscForCspm": {
        "allowedValues": [
          "DeployIfNotExists",
          "Disabled"
        ],
        "defaultValue": "DeployIfNotExists",
        "metadata": {
          "description": "Enable or disable the execution of the policy",
          "displayName": "Effect"
        },
        "type": "String"
      },
      "enableAscForKeyVault": {
        "allowedValues": [
          "DeployIfNotExists",
          "Disabled"
        ],
        "defaultValue": "DeployIfNotExists",
        "metadata": {
          "description": "Enable or disable the execution of the policy",
          "displayName": "Effect"
        },
        "type": "String"
      },
      "enableAscForOssDb": {
        "allowedValues": [
          "DeployIfNotExists",
          "Disabled"
        ],
        "defaultValue": "DeployIfNotExists",
        "metadata": {
          "description": "Enable or disable the execution of the policy",
          "displayName": "Effect"
        },
        "type": "String"
      },
      "enableAscForServers": {
        "allowedValues": [
          "DeployIfNotExists",
          "Disabled"
        ],
        "defaultValue": "DeployIfNotExists",
        "metadata": {
          "description": "Enable or disable the execution of the policy",
          "displayName": "Effect"
        },
        "type": "String"
      },
      "enableAscForServersVulnerabilityAssessments": {
        "allowedValues": [
          "DeployIfNotExists",
          "Disabled"
        ],
        "defaultValue": "DeployIfNotExists",
        "metadata": {
          "description": "Enable or disable the execution of the policy",
          "displayName": "Effect"
        },
        "type": "String"
      },
      "enableAscForSql": {
        "allowedValues": [
          "DeployIfNotExists",
          "Disabled"
        ],
        "defaultValue": "DeployIfNotExists",
        "metadata": {
          "description": "Enable or disable the execution of the policy",
          "displayName": "Effect"
        },
        "type": "String"
      },
      "enableAscForSqlOnVm": {
        "allowedValues": [
          "DeployIfNotExists",
          "Disabled"
        ],
        "defaultValue": "DeployIfNotExists",
        "metadata": {
          "description": "Enable or disable the execution of the policy",
          "displayName": "Effect"
        },
        "type": "String"
      },
      "enableAscForStorage": {
        "allowedValues": [
          "DeployIfNotExists",
          "Disabled"
        ],
        "defaultValue": "DeployIfNotExists",
        "metadata": {
          "description": "Enable or disable the execution of the policy",
          "displayName": "Effect"
        },
        "type": "String"
      },
      "enableTvmCheck": {
        "allowedValues": [
          "DeployIfNotExists",
          "Disabled"
        ],
        "defaultValue": "DeployIfNotExists",
        "metadata": {
          "description": "Enable or disable the execution of the policy",
          "displayName": "Effect"
        },
        "type": "String"
      },
      "logAnalytics": {
        "metadata": {
          "description": "Select Log Analytics workspace from dropdown list. If this workspace is outside of the scope of the assignment you must manually grant 'Log Analytics Contributor' permissions (or similar) to the policy assignment's principal ID.",
          "displayName": "Primary Log Analytics workspace",
          "strongType": "omsWorkspace"
        },
        "type": "String"
      },
      "minimalSeverity": {
        "allowedValues": [
          "High",
          "Medium",
          "Low"
        ],
        "defaultValue": "High",
        "metadata": {
          "description": "Defines the minimal alert severity which will be sent as email notifications",
          "displayName": "Minimal severity"
        },
        "type": "string"
      },
      "vulnerabilityAssessmentProvider": {
        "allowedValues": [
          "default",
          "mdeTvm"
        ],
        "defaultValue": "mdeTvm",
        "metadata": {
          "description": "Select the vulnerability assessment solution to provision to machines.",
          "displayName": "Vulnerability assessment provider type"
        },
        "type": "String"
      }
    },
    "policyDefinitions": [
      {
        "definitionVersion": "1.*.*",
        "groupNames": [],
        "parameters": {
          "effect": {
            "value": "[parameters('enableAscForOssDb')]"
          }
        },
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/44433aa3-7ec2-4002-93ea-65c65ff0310a",
        "policyDefinitionReferenceId": "defenderForOssDb"
      },
      {
        "definitionVersion": "1.*.*",
        "groupNames": [],
        "parameters": {
          "effect": {
            "value": "[parameters('enableAscForServers')]"
          },
          "isAgentlessVmScanningEnabled": {
            "value": "[parameters('ascForServersIsAgentlessVmScanningEnabled')]"
          },
          "isMdeDesignatedSubscriptionEnabled": {
            "value": "[parameters('ascForServersIsMdeDesignatedSubscriptionEnabled')]"
          },
          "subPlan": {
            "value": "[parameters('ascForServersSubPlan')]"
          }
        },
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/5eb6d64a-4086-4d7a-92da-ec51aed0332d",
        "policyDefinitionReferenceId": "defenderForVM"
      },
      {
        "definitionVersion": "4.*.*",
        "groupNames": [],
        "parameters": {
          "effect": {
            "value": "[parameters('enableAscForServersVulnerabilityAssessments')]"
          },
          "vaType": {
            "value": "[parameters('vulnerabilityAssessmentProvider')]"
          }
        },
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/13ce0167-8ca6-4048-8e6b-f996402e3c1b",
        "policyDefinitionReferenceId": "defenderForVMVulnerabilityAssessment"
      },
      {
        "definitionVersion": "1.*.*",
        "groupNames": [],
        "parameters": {
          "effect": {
            "value": "[parameters('enableAscForSqlOnVm')]"
          }
        },
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/50ea7265-7d8c-429e-9a7d-ca1f410191c3",
        "policyDefinitionReferenceId": "defenderForSqlServerVirtualMachines"
      },
      {
        "definitionVersion": "1.*.*",
        "groupNames": [],
        "parameters": {
          "effect": {
            "value": "[parameters('enableAscForAppServices')]"
          }
        },
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/b40e7bcd-a1e5-47fe-b9cf-2f534d0bfb7d",
        "policyDefinitionReferenceId": "defenderForAppServices"
      },
      {
        "definitionVersion": "1.*.*",
        "groupNames": [],
        "parameters": {
          "capGBPerMonthPerStorageAccount": {
            "value": "[parameters('ascForStorageCapGBPerMonthPerStorageAccount')]"
          },
          "effect": {
            "value": "[parameters('enableAscForStorage')]"
          },
          "isOnUploadMalwareScanningEnabled": {
            "value": "[parameters('ascForStorageIsOnUploadMalwareScanningEnabled')]"
          },
          "isSensitiveDataDiscoveryEnabled": {
            "value": "[parameters('ascForStorageIsSensitiveDataDiscoveryEnabled')]"
          }
        },
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/cfdc5972-75b3-4418-8ae1-7f5c36839390",
        "policyDefinitionReferenceId": "defenderForStorageAccountsV2"
      },
      {
        "definitionVersion": "1.*.*",
        "groupNames": [],
        "parameters": {
          "effect": {
            "value": "[parameters('enableAscForContainers')]"
          }
        },
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/c9ddb292-b203-4738-aead-18e2716e858f",
        "policyDefinitionReferenceId": "defenderforContainers"
      },
      {
        "definitionVersion": "4.*.*",
        "groupNames": [],
        "parameters": {
          "effect": {
            "value": "[parameters('enableAscForContainers')]"
          },
          "logAnalyticsWorkspaceResourceId": {
            "value": "[parameters('logAnalytics')]"
          }
        },
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/64def556-fbad-4622-930e-72d1d5589bf5",
        "policyDefinitionReferenceId": "defenderforKubernetes"
      },
      {
        "definitionVersion": "4.*.*",
        "groupNames": [],
        "parameters": {
          "effect": {
            "value": "[parameters('enableAscForContainers')]"
          }
        },
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/a8eff44f-8c92-45c3-a3fb-9880802d67a7",
        "policyDefinitionReferenceId": "azurePolicyForKubernetes"
      },
      {
        "definitionVersion": "1.*.*",
        "groupNames": [],
        "parameters": {
          "effect": {
            "value": "[parameters('enableAscForKeyVault')]"
          },
          "subPlan": {
            "value": "[parameters('ascForKeyVaultSubPlan')]"
          }
        },
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/1f725891-01c0-420a-9059-4fa46cb770b7",
        "policyDefinitionReferenceId": "defenderForKeyVaults"
      },
      {
        "definitionVersion": "1.*.*",
        "groupNames": [],
        "parameters": {
          "effect": {
            "value": "[parameters('enableAscForArm')]"
          },
          "subPlan": {
            "value": "[parameters('ascForArmSubPlan')]"
          }
        },
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/b7021b2b-08fd-4dc0-9de7-3c6ece09faf9",
        "policyDefinitionReferenceId": "defenderForArm"
      },
      {
        "definitionVersion": "1.*.*",
        "groupNames": [],
        "parameters": {
          "effect": {
            "value": "[parameters('enableAscForSql')]"
          }
        },
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/b99b73e7-074b-4089-9395-b7236f094491",
        "policyDefinitionReferenceId": "defenderForSqlPaas"
      },
      {
        "definitionVersion": "1.*.*",
        "groupNames": [],
        "parameters": {
          "effect": {
            "value": "[parameters('enableAscForCosmosDbs')]"
          }
        },
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/82bf5b87-728b-4a74-ba4d-6123845cf542",
        "policyDefinitionReferenceId": "defenderForCosmosDbs"
      },
      {
        "definitionVersion": "1.*.*",
        "groupNames": [],
        "parameters": {
          "effect": {
            "value": "[parameters('enableAscForAI')]"
          },
          "isAIPromptEvidenceEnabled": {
            "value": "[parameters('ascForAIIsAIPromptEvidenceEnabled')]"
          }
        },
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/359a48a3-351a-4618-bb32-f1628645694b",
        "policyDefinitionReferenceId": "defenderForAI"
      },
      {
        "definitionVersion": "1.*.*",
        "groupNames": [],
        "parameters": {
          "effect": {
            "value": "[parameters('enableAscForCspm')]"
          },
          "isAgentlessDiscoveryForKubernetesEnabled": {
            "value": "[parameters('ascForCspmIsAgentlessDiscoveryForKubernetesEnabled')]"
          },
          "isAgentlessVmScanningEnabled": {
            "value": "[parameters('ascForCspmIsAgentlessVmScanningEnabled')]"
          },
          "isContainerRegistriesVulnerabilityAssessmentsEnabled": {
            "value": "[parameters('ascForCspmIsContainerRegistriesVulnerabilityAssessmentsEnabled')]"
          },
          "isEntraPermissionsManagementEnabled": {
            "value": "[parameters('ascForCspmIsEntraPermissionsManagementEnabled')]"
          },
          "isSensitiveDataDiscoveryEnabled": {
            "value": "[parameters('ascForCspmIsSensitiveDataDiscoveryEnabled')]"
          }
        },
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/72f8cee7-2937-403d-84a1-a4e3e57f3c21",
        "policyDefinitionReferenceId": "defenderForCspm"
      },
      {
        "definitionVersion": "1.*.*",
        "groupNames": [],
        "parameters": {
          "attackPathSeverity": {
            "value": "[parameters('attackPathSeverity')]"
          },
          "emailSecurityContact": {
            "value": "[parameters('emailSecurityContact')]"
          },
          "minimalSeverity": {
            "value": "[parameters('minimalSeverity')]"
          }
        },
        "policyDefinitionId": "/providers/Microsoft.Management/managementGroups/contoso/providers/Microsoft.Authorization/policyDefinitions/Deploy-ASC-SecurityContacts",
        "policyDefinitionReferenceId": "securityEmailContact"
      },
      {
        "definitionVersion": "4.*.*",
        "groupNames": [],
        "parameters": {
          "createResourceGroup": {
            "value": "[parameters('createResourceGroup')]"
          },
          "resourceGroupLocation": {
            "value": "[parameters('ascExportResourceGroupLocation')]"
          },
          "resourceGroupName": {
            "value": "[parameters('ascExportResourceGroupName')]"
          },
          "workspaceResourceId": {
            "value": "[parameters('logAnalytics')]"
          }
        },
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/ffb6f416-7bd2-4488-8828-56585fef2be9",
        "policyDefinitionReferenceId": "ascExport"
      },
      {
        "definitionVersion": "1.*.*-preview",
        "groupNames": [],
        "parameters": {
          "effect": {
            "value": "[parameters('enableTvmCheck')]"
          }
        },
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/766e621d-ba95-4e43-a6f2-e945db3d7888",
        "policyDefinitionReferenceId": "migrateToMdeTvm"
      }
    ],
    "policyType": "Custom"
  },
  "type": "Microsoft.Authorization/policySetDefinitions"
}
BylawDeploy-MDFC-Config_20240319.bylaw.ps1 · 411 lines
# Converted from Deploy-MDFC-Config_20240319.alz_policy_set_definition.json by ConvertTo-Bylaw.
Initiative 'Deploy-MDFC-Config_20240319' {

    Properties @{
        DisplayName = 'Deploy Microsoft Defender for Cloud configuration'
        Description = 'Deploy Microsoft Defender for Cloud configuration'
        Category    = 'Security Center'
        Version     = '2.4.2'
        Metadata    = [ordered]@{ alzCloudEnvironments = @('AzureCloud'); replacesPolicy = 'Deploy-MDFC-Config'; source = 'https://github.com/Azure/Enterprise-Scale/' }
    }

    Parameter AscExportResourceGroupLocation @{
        Type        = 'String'
        DisplayName = 'Resource Group location for the export to Log Analytics workspace configuration'
        Description = 'The location where the resource group and the export to Log Analytics workspace configuration are created.'
    }
    Parameter AscExportResourceGroupName @{
        Type        = 'String'
        DisplayName = 'Resource Group name for the export to Log Analytics workspace configuration'
        Description = 'The resource group name where the export to Log Analytics workspace configuration is created. If you enter a name for a resource group that doesn''t exist, it''ll be created in the subscription. Note that each resource group can only have one export to Log Analytics workspace configured.'
    }
    Parameter AscForAIIsAIPromptEvidenceEnabled @{
        AllowedValues = @('true', 'false')
        Default       = 'true'
        DisplayName   = 'AI Prompt Evidence Enabled'
        Description   = 'Enable or disable the AI Prompt Evidence add-on feature'
    }
    Parameter AscForArmSubPlan @{
        AllowedValues = @('PerSubscription', 'PerApiCall')
        Default       = 'PerSubscription'
        DisplayName   = 'Defender for Resource Manager plans'
        Description   = 'Select a Defender for Resource Manager plan'
    }
    Parameter AscForCspmIsAgentlessDiscoveryForKubernetesEnabled @{
        AllowedValues = @('true', 'false')
        Default       = 'true'
        DisplayName   = 'Agentless Discovery for Kubernetes Enabled'
        Description   = 'Enable or disable the Agentless Discovery for Kubernetes add-on feature'
    }
    Parameter AscForCspmIsAgentlessVmScanningEnabled @{
        AllowedValues = @('true', 'false')
        Default       = 'true'
        DisplayName   = 'Agentless VM Scanning Enabled'
        Description   = 'Enable or disable the Agentless VM Scanning add-on feature'
    }
    Parameter AscForCspmIsContainerRegistriesVulnerabilityAssessmentsEnabled @{
        AllowedValues = @('true', 'false')
        Default       = 'true'
        DisplayName   = 'Container Registries Vulnerability Assessments Enabled'
        Description   = 'Enable or disable the Container Registries Vulnerability Assessments add-on feature'
    }
    Parameter AscForCspmIsEntraPermissionsManagementEnabled @{
        AllowedValues = @('true', 'false')
        Default       = 'true'
        DisplayName   = 'Permissions Management Enabled'
        Description   = 'Enable or disable the Permissions Management add-on feature'
    }
    Parameter AscForCspmIsSensitiveDataDiscoveryEnabled @{
        AllowedValues = @('true', 'false')
        Default       = 'true'
        DisplayName   = 'Sensitive Data Discovery Enabled'
        Description   = 'Enable or disable the Sensitive Data Discovery add-on feature'
    }
    Parameter AscForKeyVaultSubPlan @{
        AllowedValues = @('PerTransaction', 'PerKeyVault')
        Default       = 'PerKeyVault'
        DisplayName   = 'Key Vaults bundle''s sub plan'
        Description   = 'Select a Defender for Key Vault plan'
    }
    Parameter AscForServersIsAgentlessVmScanningEnabled @{
        AllowedValues = @('true', 'false')
        Default       = 'true'
        DisplayName   = 'Agentless VM Scanning Enabled'
        Description   = 'Enable or disable the Agentless VM Scanning add-on feature'
    }
    Parameter AscForServersIsMdeDesignatedSubscriptionEnabled @{
        AllowedValues = @('true', 'false')
        Default       = 'false'
        DisplayName   = 'MDE Designated Subscription Enabled'
        Description   = 'Enable or disable the MDE Designated Subscription add-on feature'
    }
    Parameter AscForServersSubPlan @{
        AllowedValues = @('P1', 'P2')
        Default       = 'P2'
        DisplayName   = 'Defender for Servers plans'
        Description   = 'Select a Defender for Servers plan'
    }
    Parameter AscForStorageCapGBPerMonthPerStorageAccount @{
        Type        = 'Integer'
        Default     = 5000
        DisplayName = 'Cap GB Per Month Per Storage Account'
        Description = 'Limit the GB scanned per month for each storage account within the subscription. Value must be an integer, 10GB or higher. Set to -1 for unlimited scanning'
    }
    Parameter AscForStorageIsOnUploadMalwareScanningEnabled @{
        AllowedValues = @('true', 'false')
        Default       = 'true'
        DisplayName   = 'Malware Scanning Enabled'
        Description   = 'Enable or disable the Malware Scanning add-on feature'
    }
    Parameter AscForStorageIsSensitiveDataDiscoveryEnabled @{
        AllowedValues = @('true', 'false')
        Default       = 'true'
        DisplayName   = 'Sensitive Data Threat Detection Enabled'
        Description   = 'Enable or disable the Sensitive Data Threat Detection add-on feature'
    }
    Parameter AttackPathSeverity @{
        Type          = 'string'
        AllowedValues = @('Critical', 'High', 'Medium', 'Low')
        Default       = 'Critical'
        DisplayName   = 'Attack path minimal severity'
        Description   = 'Defines the minimal attack path severity which will be sent as email notifications'
    }
    Parameter CreateResourceGroup @{
        Type          = 'Boolean'
        AllowedValues = @($true, $false)
        Default       = $true
        DisplayName   = 'Create resource group'
        Description   = 'If a resource group does not exists in the scope, a new resource group will be created. If the resource group exists and this flag is set to ''true'' the policy will re-deploy the resource group. Please note this will reset any Azure Tag on the resource group.'
    }
    Parameter EmailSecurityContact @{
        Type        = 'string'
        DisplayName = 'Security contacts email address'
        Description = 'Provide email address for Microsoft Defender for Cloud contact details'
    }
    Parameter EnableAscForAI @{
        AllowedValues = @('DeployIfNotExists', 'Disabled')
        Default       = 'DeployIfNotExists'
        DisplayName   = 'Effect'
        Description   = 'Enable or disable the execution of the policy'
    }
    Parameter EnableAscForAppServices @{
        AllowedValues = @('DeployIfNotExists', 'Disabled')
        Default       = 'DeployIfNotExists'
        DisplayName   = 'Effect'
        Description   = 'Enable or disable the execution of the policy'
    }
    Parameter EnableAscForArm @{
        AllowedValues = @('DeployIfNotExists', 'Disabled')
        Default       = 'DeployIfNotExists'
        DisplayName   = 'Effect'
        Description   = 'Enable or disable the execution of the policy'
    }
    Parameter EnableAscForContainers @{
        AllowedValues = @('DeployIfNotExists', 'Disabled')
        Default       = 'DeployIfNotExists'
        DisplayName   = 'Effect'
        Description   = 'Enable or disable the execution of the policy'
    }
    Parameter EnableAscForCosmosDbs @{
        AllowedValues = @('DeployIfNotExists', 'Disabled')
        Default       = 'DeployIfNotExists'
        DisplayName   = 'Effect'
        Description   = 'Enable or disable the execution of the policy'
    }
    Parameter EnableAscForCspm @{
        AllowedValues = @('DeployIfNotExists', 'Disabled')
        Default       = 'DeployIfNotExists'
        DisplayName   = 'Effect'
        Description   = 'Enable or disable the execution of the policy'
    }
    Parameter EnableAscForKeyVault @{
        AllowedValues = @('DeployIfNotExists', 'Disabled')
        Default       = 'DeployIfNotExists'
        DisplayName   = 'Effect'
        Description   = 'Enable or disable the execution of the policy'
    }
    Parameter EnableAscForOssDb @{
        AllowedValues = @('DeployIfNotExists', 'Disabled')
        Default       = 'DeployIfNotExists'
        DisplayName   = 'Effect'
        Description   = 'Enable or disable the execution of the policy'
    }
    Parameter EnableAscForServers @{
        AllowedValues = @('DeployIfNotExists', 'Disabled')
        Default       = 'DeployIfNotExists'
        DisplayName   = 'Effect'
        Description   = 'Enable or disable the execution of the policy'
    }
    Parameter EnableAscForServersVulnerabilityAssessments @{
        AllowedValues = @('DeployIfNotExists', 'Disabled')
        Default       = 'DeployIfNotExists'
        DisplayName   = 'Effect'
        Description   = 'Enable or disable the execution of the policy'
    }
    Parameter EnableAscForSql @{
        AllowedValues = @('DeployIfNotExists', 'Disabled')
        Default       = 'DeployIfNotExists'
        DisplayName   = 'Effect'
        Description   = 'Enable or disable the execution of the policy'
    }
    Parameter EnableAscForSqlOnVm @{
        AllowedValues = @('DeployIfNotExists', 'Disabled')
        Default       = 'DeployIfNotExists'
        DisplayName   = 'Effect'
        Description   = 'Enable or disable the execution of the policy'
    }
    Parameter EnableAscForStorage @{
        AllowedValues = @('DeployIfNotExists', 'Disabled')
        Default       = 'DeployIfNotExists'
        DisplayName   = 'Effect'
        Description   = 'Enable or disable the execution of the policy'
    }
    Parameter EnableTvmCheck @{
        AllowedValues = @('DeployIfNotExists', 'Disabled')
        Default       = 'DeployIfNotExists'
        DisplayName   = 'Effect'
        Description   = 'Enable or disable the execution of the policy'
    }
    Parameter LogAnalytics @{
        Type        = 'String'
        DisplayName = 'Primary Log Analytics workspace'
        Description = 'Select Log Analytics workspace from dropdown list. If this workspace is outside of the scope of the assignment you must manually grant ''Log Analytics Contributor'' permissions (or similar) to the policy assignment''s principal ID.'
        Metadata    = [ordered]@{ strongType = 'omsWorkspace' }
    }
    Parameter MinimalSeverity @{
        Type          = 'string'
        AllowedValues = @('High', 'Medium', 'Low')
        Default       = 'High'
        DisplayName   = 'Minimal severity'
        Description   = 'Defines the minimal alert severity which will be sent as email notifications'
    }
    Parameter VulnerabilityAssessmentProvider @{
        AllowedValues = @('default', 'mdeTvm')
        Default       = 'mdeTvm'
        DisplayName   = 'Vulnerability assessment provider type'
        Description   = 'Select the vulnerability assessment solution to provision to machines.'
    }

    PolicyDefinition @{
        Id          = '44433aa3-7ec2-4002-93ea-65c65ff0310a'
        ReferenceId = 'defenderForOssDb'
        Version     = '1.*.*'
        Parameters  = @{
            effect = (Param EnableAscForOssDb)
        }
    }

    PolicyDefinition @{
        Id          = '5eb6d64a-4086-4d7a-92da-ec51aed0332d'
        ReferenceId = 'defenderForVM'
        Version     = '1.*.*'
        Parameters  = [ordered]@{
            effect                             = (Param EnableAscForServers)
            isAgentlessVmScanningEnabled       = (Param AscForServersIsAgentlessVmScanningEnabled)
            isMdeDesignatedSubscriptionEnabled = (Param AscForServersIsMdeDesignatedSubscriptionEnabled)
            subPlan                            = (Param AscForServersSubPlan)
        }
    }

    PolicyDefinition @{
        Id          = '13ce0167-8ca6-4048-8e6b-f996402e3c1b'
        ReferenceId = 'defenderForVMVulnerabilityAssessment'
        Version     = '4.*.*'
        Parameters  = [ordered]@{
            effect = (Param EnableAscForServersVulnerabilityAssessments)
            vaType = (Param VulnerabilityAssessmentProvider)
        }
    }

    PolicyDefinition @{
        Id          = '50ea7265-7d8c-429e-9a7d-ca1f410191c3'
        ReferenceId = 'defenderForSqlServerVirtualMachines'
        Version     = '1.*.*'
        Parameters  = @{
            effect = (Param EnableAscForSqlOnVm)
        }
    }

    PolicyDefinition @{
        Id          = 'b40e7bcd-a1e5-47fe-b9cf-2f534d0bfb7d'
        ReferenceId = 'defenderForAppServices'
        Version     = '1.*.*'
        Parameters  = @{
            effect = (Param EnableAscForAppServices)
        }
    }

    PolicyDefinition @{
        Id          = 'cfdc5972-75b3-4418-8ae1-7f5c36839390'
        ReferenceId = 'defenderForStorageAccountsV2'
        Version     = '1.*.*'
        Parameters  = [ordered]@{
            capGBPerMonthPerStorageAccount   = (Param AscForStorageCapGBPerMonthPerStorageAccount)
            effect                           = (Param EnableAscForStorage)
            isOnUploadMalwareScanningEnabled = (Param AscForStorageIsOnUploadMalwareScanningEnabled)
            isSensitiveDataDiscoveryEnabled  = (Param AscForStorageIsSensitiveDataDiscoveryEnabled)
        }
    }

    PolicyDefinition @{
        Id          = 'c9ddb292-b203-4738-aead-18e2716e858f'
        ReferenceId = 'defenderforContainers'
        Version     = '1.*.*'
        Parameters  = @{
            effect = (Param EnableAscForContainers)
        }
    }

    PolicyDefinition @{
        Id          = '64def556-fbad-4622-930e-72d1d5589bf5'
        ReferenceId = 'defenderforKubernetes'
        Version     = '4.*.*'
        Parameters  = [ordered]@{
            effect                          = (Param EnableAscForContainers)
            logAnalyticsWorkspaceResourceId = (Param LogAnalytics)
        }
    }

    PolicyDefinition @{
        Id          = 'a8eff44f-8c92-45c3-a3fb-9880802d67a7'
        ReferenceId = 'azurePolicyForKubernetes'
        Version     = '4.*.*'
        Parameters  = @{
            effect = (Param EnableAscForContainers)
        }
    }

    PolicyDefinition @{
        Id          = '1f725891-01c0-420a-9059-4fa46cb770b7'
        ReferenceId = 'defenderForKeyVaults'
        Version     = '1.*.*'
        Parameters  = [ordered]@{
            effect  = (Param EnableAscForKeyVault)
            subPlan = (Param AscForKeyVaultSubPlan)
        }
    }

    PolicyDefinition @{
        Id          = 'b7021b2b-08fd-4dc0-9de7-3c6ece09faf9'
        ReferenceId = 'defenderForArm'
        Version     = '1.*.*'
        Parameters  = [ordered]@{
            effect  = (Param EnableAscForArm)
            subPlan = (Param AscForArmSubPlan)
        }
    }

    PolicyDefinition @{
        Id          = 'b99b73e7-074b-4089-9395-b7236f094491'
        ReferenceId = 'defenderForSqlPaas'
        Version     = '1.*.*'
        Parameters  = @{
            effect = (Param EnableAscForSql)
        }
    }

    PolicyDefinition @{
        Id          = '82bf5b87-728b-4a74-ba4d-6123845cf542'
        ReferenceId = 'defenderForCosmosDbs'
        Version     = '1.*.*'
        Parameters  = @{
            effect = (Param EnableAscForCosmosDbs)
        }
    }

    PolicyDefinition @{
        Id          = '359a48a3-351a-4618-bb32-f1628645694b'
        ReferenceId = 'defenderForAI'
        Version     = '1.*.*'
        Parameters  = [ordered]@{
            effect                    = (Param EnableAscForAI)
            isAIPromptEvidenceEnabled = (Param AscForAIIsAIPromptEvidenceEnabled)
        }
    }

    PolicyDefinition @{
        Id          = '72f8cee7-2937-403d-84a1-a4e3e57f3c21'
        ReferenceId = 'defenderForCspm'
        Version     = '1.*.*'
        Parameters  = [ordered]@{
            effect                                               = (Param EnableAscForCspm)
            isAgentlessDiscoveryForKubernetesEnabled             = (Param AscForCspmIsAgentlessDiscoveryForKubernetesEnabled)
            isAgentlessVmScanningEnabled                         = (Param AscForCspmIsAgentlessVmScanningEnabled)
            isContainerRegistriesVulnerabilityAssessmentsEnabled = (Param AscForCspmIsContainerRegistriesVulnerabilityAssessmentsEnabled)
            isEntraPermissionsManagementEnabled                  = (Param AscForCspmIsEntraPermissionsManagementEnabled)
            isSensitiveDataDiscoveryEnabled                      = (Param AscForCspmIsSensitiveDataDiscoveryEnabled)
        }
    }

    PolicyDefinition @{
        Id          = '/providers/Microsoft.Management/managementGroups/contoso/providers/Microsoft.Authorization/policyDefinitions/Deploy-ASC-SecurityContacts'
        ReferenceId = 'securityEmailContact'
        Version     = '1.*.*'
        Parameters  = [ordered]@{
            attackPathSeverity   = (Param AttackPathSeverity)
            emailSecurityContact = (Param EmailSecurityContact)
            minimalSeverity      = (Param MinimalSeverity)
        }
    }

    PolicyDefinition @{
        Id          = 'ffb6f416-7bd2-4488-8828-56585fef2be9'
        ReferenceId = 'ascExport'
        Version     = '4.*.*'
        Parameters  = [ordered]@{
            createResourceGroup   = (Param CreateResourceGroup)
            resourceGroupLocation = (Param AscExportResourceGroupLocation)
            resourceGroupName     = (Param AscExportResourceGroupName)
            workspaceResourceId   = (Param LogAnalytics)
        }
    }

    PolicyDefinition @{
        Id          = '766e621d-ba95-4e43-a6f2-e945db3d7888'
        ReferenceId = 'migrateToMdeTvm'
        Version     = '1.*.*-preview'
        Parameters  = @{
            effect = (Param EnableTvmCheck)
        }
    }
}

Members (18)

Source: policy_set_definitions/Deploy-MDFC-Config_20240319.alz_policy_set_definition.json in Azure/Azure-Landing-Zones-Library, under the MIT licence.