last sync: 2021-May-05 13:56:08 UTC

Azure Policy definition

[Preview]: Azure Data Factory should use a Git repository for source control

Name [Preview]: Azure Data Factory should use a Git repository for source control
Azure Portal
Id 77d40665-3120-4348-b539-3192ec808307
Version 1.0.0-preview
details on versioning
Category Data Factory
Microsoft docs
Description Enable source control on data factories, to gain capabilities such as change tracking, collaboration, continuous integration, and deployment.
Mode Indexed
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 77d40665-3120-4348-b539-3192ec808307
Used in Initiatives none
JSON
{
  "properties": {
  "displayName": "[Preview]: Azure Data Factory should use a Git repository for source control",
    "policyType": "BuiltIn",
    "mode": "Indexed",
    "description": "Enable source control on data factories, to gain capabilities such as change tracking, collaboration, continuous integration, and deployment.",
    "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"
      }
    },
    "policyRule": {
      "if": {
        "allOf": [
          {
            "field": "type",
            "equals": "Microsoft.DataFactory/factories"
          },
          {
            "anyOf": [
              {
                "field": "Microsoft.DataFactory/factories/repoConfiguration.repositoryName",
                "exists": "false"
              },
              {
                "field": "Microsoft.DataFactory/factories/repoConfiguration.repositoryName",
                "equals": ""
              }
            ]
          }
        ]
      },
      "then": {
      "effect": "[parameters('effect')]"
      }
    }
  },
  "id": "/providers/Microsoft.Authorization/policyDefinitions/77d40665-3120-4348-b539-3192ec808307",
  "type": "Microsoft.Authorization/policyDefinitions",
  "name": "77d40665-3120-4348-b539-3192ec808307"
}