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

Azure Policy definition

Azure Container Instance container group should deploy into a virtual network

Name Azure Container Instance container group should deploy into a virtual network
Azure Portal
Id 8af8f826-edcb-4178-b35f-851ea6fea615
Version 1.0.0
details on versioning
Category Container Instance
Microsoft docs
Description Secure communication between your containers with Azure Virtual Networks. When you specify a virtual network, resources within the virtual network can securely and privately communicate with each other.
Mode Indexed
Type BuiltIn
Preview FALSE
Deprecated FALSE
Effect Default: Audit
Allowed: (Audit, Disabled, Deny)
Used RBAC Role none
History
Date/Time (UTC ymd) (i) Change type Change detail
2021-03-09 14:37:41 add 8af8f826-edcb-4178-b35f-851ea6fea615
Used in Initiatives none
JSON
{
  "properties": {
    "displayName": "Azure Container Instance container group should deploy into a virtual network",
    "policyType": "BuiltIn",
    "mode": "Indexed",
    "description": "Secure communication between your containers with Azure Virtual Networks. When you specify a virtual network, resources within the virtual network can securely and privately communicate with each other.",
    "metadata": {
      "version": "1.0.0",
      "category": "Container Instance"
    },
    "parameters": {
      "effect": {
        "type": "String",
        "metadata": {
          "displayName": "Effect",
          "description": "Enable or disable the execution of the policy"
        },
        "allowedValues": [
          "Audit",
          "Disabled",
          "Deny"
        ],
        "defaultValue": "Audit"
      }
    },
    "policyRule": {
      "if": {
        "allOf": [
          {
            "field": "type",
            "equals": "Microsoft.ContainerInstance/containerGroups"
          },
          {
            "field": "Microsoft.ContainerInstance/containerGroups/networkProfile.id",
            "exists": false
          }
        ]
      },
      "then": {
      "effect": "[parameters('effect')]"
      }
    }
  },
  "id": "/providers/Microsoft.Authorization/policyDefinitions/8af8f826-edcb-4178-b35f-851ea6fea615",
  "type": "Microsoft.Authorization/policyDefinitions",
  "name": "8af8f826-edcb-4178-b35f-851ea6fea615"
}