last sync: 2021-Jan-15 16:07:21 UTC

Azure Policy definition

Guest Configuration extension should be deployed to Azure virtual machines with system assigned managed identity

Name Guest Configuration extension should be deployed to Azure virtual machines with system assigned managed identity
Azure Portal
Id d26f7642-7545-4e18-9b75-8c9bbdee3a9a
Version 1.0.0
details on versioning
Category Security Center
Microsoft docs
Description The Guest Configuration extension requires a system assigned managed identity. This policy will report instances of the extension as non-compliant when the machine where it is installed does not have a system assigned managed identity.
Mode Indexed
Type BuiltIn
Preview FALSE
Deprecated FALSE
Effect Default: AuditIfNotExists
Allowed: (AuditIfNotExists, Disabled)
Used RBAC Role none
History
Date/Time (UTC ymd) (i) Change type Change detail
2020-12-11 15:42:52 add d26f7642-7545-4e18-9b75-8c9bbdee3a9a
Used in Initiatives
Initiative DisplayName Initiative Id Initiative Category State
Enable Monitoring in Azure Security Center 1f3afdf9-d0c9-4c3d-847f-89da613e70a8 Security Center GA
Json
{
  "properties": {
    "displayName": "Guest Configuration extension should be deployed to Azure virtual machines with system assigned managed identity",
    "policyType": "BuiltIn",
    "mode": "Indexed",
    "description": "The Guest Configuration extension requires a system assigned managed identity. This policy will report instances of the extension as non-compliant when the machine where it is installed does not have a system assigned managed identity.",
    "metadata": {
      "version": "1.0.0",
      "category": "Security Center"
    },
    "parameters": {
      "effect": {
        "type": "String",
        "metadata": {
          "displayName": "Effect",
          "description": "Enable or disable the execution of the policy"
        },
        "allowedValues": [
          "AuditIfNotExists",
          "Disabled"
        ],
        "defaultValue": "AuditIfNotExists"
      }
    },
    "policyRule": {
      "if": {
        "allOf": [
          {
            "field": "type",
            "equals": "Microsoft.Compute/virtualMachines/extensions"
          },
          {
            "field": "Microsoft.Compute/virtualMachines/extensions/publisher",
            "equals": "Microsoft.GuestConfiguration"
          }
        ]
      },
      "then": {
      "effect": "[parameters('effect')]",
        "details": {
          "type": "Microsoft.Compute/virtualMachines",
        "name": "[first(split(field('fullName'), '/'))]",
          "existenceCondition": {
            "field": "identity.type",
            "contains": "SystemAssigned"
          }
        }
      }
    }
  },
  "id": "/providers/Microsoft.Authorization/policyDefinitions/d26f7642-7545-4e18-9b75-8c9bbdee3a9a",
  "type": "Microsoft.Authorization/policyDefinitions",
  "name": "d26f7642-7545-4e18-9b75-8c9bbdee3a9a"
}