last sync: 2021-May-10 15:04:35 UTC

Azure Policy definition

Bot Service should have isolated mode enabled

Name Bot Service should have isolated mode enabled
Azure Portal
Id 52152f42-0dda-40d9-976e-abb1acdd611e
Version 1.0.0
details on versioning
Category Bot Service
Microsoft docs
Description Bots should be set to 'isolated only' mode. This setting configures Bot Service channels that require traffic over the public internet to be disabled.
Mode Indexed
Type BuiltIn
Preview FALSE
Deprecated FALSE
Effect Default: audit
Allowed: (audit, deny, disabled)
Used RBAC Role none
History
Date/Time (UTC ymd) (i) Change type Change detail
2021-05-04 14:34:06 add 52152f42-0dda-40d9-976e-abb1acdd611e
Used in Initiatives none
JSON
{
  "properties": {
    "displayName": "Bot Service should have isolated mode enabled",
    "policyType": "BuiltIn",
    "mode": "Indexed",
    "description": "Bots should be set to 'isolated only' mode. This setting configures Bot Service channels that require traffic over the public internet to be disabled.",
    "metadata": {
      "version": "1.0.0",
      "category": "Bot Service"
    },
    "parameters": {
      "effect": {
        "type": "String",
        "metadata": {
          "displayName": "Effect",
          "description": "The desired effect of the policy."
        },
        "allowedValues": [
          "audit",
          "deny",
          "disabled"
        ],
        "defaultValue": "audit"
      }
    },
    "policyRule": {
      "if": {
        "allOf": [
          {
            "field": "type",
            "equals": "Microsoft.BotService/botServices"
          },
          {
            "field": "Microsoft.BotService/botServices/isIsolated",
            "notEquals": "true"
          }
        ]
      },
      "then": {
      "effect": "[parameters('effect')]"
      }
    }
  },
  "id": "/providers/Microsoft.Authorization/policyDefinitions/52152f42-0dda-40d9-976e-abb1acdd611e",
  "type": "Microsoft.Authorization/policyDefinitions",
  "name": "52152f42-0dda-40d9-976e-abb1acdd611e"
}