last sync: 2021-Aug-04 14:59:26 UTC

Azure Policy definition

Azure Media Services accounts that allow access to the legacy v2 API should be blocked

Name Azure Media Services accounts that allow access to the legacy v2 API should be blocked
Azure Portal
Id ccf93279-9c91-4143-a841-8d1f21505455
Version 1.0.0
details on versioning
Category Media Services
Microsoft docs
Description The Media Services legacy v2 API allows requests that cannot be managed using Azure Policy. Media Services resources created using the 2020-05-01 API or later block access to the legacy v2 API.
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-18 14:34:48 add ccf93279-9c91-4143-a841-8d1f21505455
Used in Initiatives none
JSON
{
  "properties": {
    "displayName": "Azure Media Services accounts that allow access to the legacy v2 API should be blocked",
    "policyType": "BuiltIn",
    "mode": "Indexed",
    "description": "The Media Services legacy v2 API allows requests that cannot be managed using Azure Policy. Media Services resources created using the 2020-05-01 API or later block access to the legacy v2 API.",
    "metadata": {
      "version": "1.0.0",
      "category": "Media Services"
    },
    "parameters": {
      "effect": {
        "type": "String",
        "metadata": {
          "displayName": "Effect",
          "description": "Enable or disable the execution of the policy"
        },
        "allowedValues": [
          "Audit",
          "Deny",
          "Disabled"
        ],
        "defaultValue": "Audit"
      }
    },
    "policyRule": {
      "if": {
        "allOf": [
          {
            "field": "type",
            "equals": "Microsoft.Media/mediaservices"
          },
          {
            "field": "Microsoft.Media/mediaservices/encryption.type",
            "exists": "false"
          }
        ]
      },
      "then": {
      "effect": "[parameters('effect')]"
      }
    }
  },
  "id": "/providers/Microsoft.Authorization/policyDefinitions/ccf93279-9c91-4143-a841-8d1f21505455",
  "type": "Microsoft.Authorization/policyDefinitions",
  "name": "ccf93279-9c91-4143-a841-8d1f21505455"
}