last sync: 2020-Jul-15 14:17:33 UTC

Azure Policy

[Preview]: Manage certificates issued by a non-integrated CA

Policy DisplayName [Preview]: Manage certificates issued by a non-integrated CA
Policy Id a22f4a40-01d3-4c7d-8071-da157eeff341
Policy Category Key Vault
Policy Description This policy manages certificates are issued by a specified non-integrated Certificate Authority.
Policy Mode Microsoft.KeyVault.Data
Policy Type BuiltIn
Policy in Preview True
Policy Deprecated FALSE
Policy Effect Default: audit
Allowed: (audit,deny,disabled)
Roles used none
Policy Changes
Date/Time (UTC ymd) (i) Change Change detail
2019-11-19 11:26:09 change: DisplayName previous DisplayName: [Preview]: Certificates should be issued by an approved custom Certificate Authority provider
Used in Policy Initiative(s) none
Policy Rule
{
  "properties": {
  "displayName": "[Preview]: Manage certificates issued by a non-integrated CA",
    "policyType": "BuiltIn",
    "mode": "Microsoft.KeyVault.Data",
    "description": "This policy manages certificates are issued by a specified non-integrated Certificate Authority.",
    "metadata": {
      "version": "1.0.1-preview",
      "category": "Key Vault",
      "preview": true
    },
    "parameters": {
      "caCommonName": {
        "type": "String",
        "metadata": {
        "displayName": "[Preview]: The common name of the certificate authority",
          "description": "The common name (CN) of the Certificate Authority (CA) provider. For example, for an issuer CN = Contoso, OU = .., DC = .., you can specify Contoso"
        }
      },
      "effect": {
        "type": "String",
        "metadata": {
        "displayName": "[Preview]: Effect",
          "description": "'Audit' allows a non-compliant resource to be created, but flags it as non-compliant. 'Deny' blocks the resource creation. 'Disable' turns off the policy."
        },
        "allowedValues": [
          "audit",
          "deny",
          "disabled"
        ],
        "defaultValue": "audit"
      }
    },
    "policyRule": {
      "if": {
        "field": "Microsoft.KeyVault.Data/vaults/certificates/issuer.commonName",
      "notContains": "[parameters('caCommonName')]"
      },
      "then": {
      "effect": "[parameters('effect')]"
      }
    }
  },
  "id": "/providers/Microsoft.Authorization/policyDefinitions/a22f4a40-01d3-4c7d-8071-da157eeff341",
  "type": "Microsoft.Authorization/policyDefinitions",
  "name": "a22f4a40-01d3-4c7d-8071-da157eeff341"
}