last sync: 2021-Mar-03 15:53:01 UTC

Azure Policy definition

[Preview]: Azure Data Factory integration runtime should have a limit for number of cores

Name [Preview]: Azure Data Factory integration runtime should have a limit for number of cores
Azure Portal
Id 85bb39b5-2f66-49f8-9306-77da3ac5130f
Version 1.0.0-preview
details on versioning
Category Data Factory
Microsoft docs
Description To manage your resources and costs, limit the number of cores for an integration runtime.
Mode All
Type BuiltIn
Preview True
Deprecated FALSE
Effect Default: Audit
Allowed: (Audit, Deny, Disabled)
Used RBAC Role none
History
Date/Time (UTC ymd) (i) Change type Change detail
2021-02-10 14:43:58 add 85bb39b5-2f66-49f8-9306-77da3ac5130f
Used in Initiatives none
Json
{
  "properties": {
  "displayName": "[Preview]: Azure Data Factory integration runtime should have a limit for number of cores",
    "policyType": "BuiltIn",
    "mode": "All",
    "description": "To manage your resources and costs, limit the number of cores for an integration runtime.",
    "metadata": {
      "version": "1.0.0-preview",
      "category": "Data Factory",
      "preview": true
    },
    "parameters": {
      "effect": {
        "type": "String",
        "metadata": {
        "displayName": "[Preview]: Effect",
          "description": "Enable or disable the execution of the policy"
        },
        "allowedValues": [
          "Audit",
          "Deny",
          "Disabled"
        ],
        "defaultValue": "Audit"
      },
      "maxCores": {
        "type": "Integer",
        "metadata": {
        "displayName": "[Preview]: Allowed max number of cores",
          "description": "The max number of cores allowed for dataflow."
        },
        "defaultValue": 32
      }
    },
    "policyRule": {
      "if": {
        "allOf": [
          {
            "field": "type",
            "equals": "Microsoft.DataFactory/factories/integrationRuntimes"
          },
          {
            "field": "Microsoft.DataFactory/factories/integrationruntimes/type",
            "equals": "Managed"
          },
          {
            "field": "Microsoft.DataFactory/factories/integrationRuntimes/Managed.typeProperties.computeProperties.dataFlowProperties.coreCount",
            "exists": "true"
          },
          {
            "field": "Microsoft.DataFactory/factories/integrationRuntimes/Managed.typeProperties.computeProperties.dataFlowProperties.coreCount",
          "greater": "[parameters('maxCores')]"
          }
        ]
      },
      "then": {
      "effect": "[parameters('effect')]"
      }
    }
  },
  "id": "/providers/Microsoft.Authorization/policyDefinitions/85bb39b5-2f66-49f8-9306-77da3ac5130f",
  "type": "Microsoft.Authorization/policyDefinitions",
  "name": "85bb39b5-2f66-49f8-9306-77da3ac5130f"
}