last sync: 2020-Jul-10 14:05:01 UTC

Azure Policy

Allowed virtual machine size SKUs

Policy DisplayName Allowed virtual machine size SKUs
Policy Id cccc23c7-8427-4f53-ad12-b6a63eb452b3
Policy Category Compute
Policy Description This policy enables you to specify a set of virtual machine size SKUs that your organization can deploy.
Policy Mode Indexed
Policy Type BuiltIn
Policy in Preview FALSE
Policy Deprecated FALSE
Policy Effect Fixed: Deny
Roles used none
Policy Changes
Date/Time (UTC ymd) (i) Change Change detail
2020-05-09 14:57:51 change: DisplayName previous DisplayName: Allowed virtual machine SKUs
Used in Policy Initiative(s) none
Policy Rule
{
  "properties": {
    "displayName": "Allowed virtual machine size SKUs",
    "policyType": "BuiltIn",
    "mode": "Indexed",
    "description": "This policy enables you to specify a set of virtual machine size SKUs that your organization can deploy.",
    "metadata": {
      "version": "1.0.1",
      "category": "Compute"
    },
    "parameters": {
      "listOfAllowedSKUs": {
        "type": "Array",
        "metadata": {
          "description": "The list of size SKUs that can be specified for virtual machines.",
          "displayName": "Allowed Size SKUs",
          "strongType": "VMSKUs"
        }
      }
    },
    "policyRule": {
      "if": {
        "allOf": [
          {
            "field": "type",
            "equals": "Microsoft.Compute/virtualMachines"
          },
          {
            "not": {
              "field": "Microsoft.Compute/virtualMachines/sku.name",
            "in": "[parameters('listOfAllowedSKUs')]"
            }
          }
        ]
      },
      "then": {
        "effect": "Deny"
      }
    }
  },
  "id": "/providers/Microsoft.Authorization/policyDefinitions/cccc23c7-8427-4f53-ad12-b6a63eb452b3",
  "type": "Microsoft.Authorization/policyDefinitions",
  "name": "cccc23c7-8427-4f53-ad12-b6a63eb452b3"
}