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

Azure Policy

MySQL server should use a virtual network service endpoint

Policy DisplayName MySQL server should use a virtual network service endpoint
Policy Id 3375856c-3824-4e0e-ae6a-79e011dd4c47
Policy Category SQL
Policy Description This policy audits MySQL servers not configured to use a virtual network service endpoint. For more details, visit https://aka.ms/mysqlvnet.
Policy Mode Indexed
Policy Type BuiltIn
Policy in Preview FALSE
Policy Deprecated FALSE
Policy Effect Default: AuditIfNotExists
Allowed: (AuditIfNotExists,Disabled)
Roles used none
Policy Changes
Date/Time (UTC ymd) (i) Change Change detail
2020-02-27 09:26:21 add: Policy 3375856c-3824-4e0e-ae6a-79e011dd4c47
Used in Policy Initiative(s) none
Policy Rule
{
  "properties": {
    "displayName": "MySQL server should use a virtual network service endpoint",
    "policyType": "BuiltIn",
    "mode": "Indexed",
    "description": "This policy audits MySQL servers not configured to use a virtual network service endpoint. For more details, visit https://aka.ms/mysqlvnet.",
    "metadata": {
      "version": "1.0.1",
      "category": "SQL"
    },
    "parameters": {
      "effect": {
        "type": "String",
        "metadata": {
          "displayName": "Effect",
          "description": "Enable or disable the execution of the policy"
        },
        "allowedValues": [
          "AuditIfNotExists",
          "Disabled"
        ],
        "defaultValue": "AuditIfNotExists"
      }
    },
    "policyRule": {
      "if": {
        "field": "type",
        "equals": "Microsoft.DBforMySQL/servers"
      },
      "then": {
      "effect": "[parameters('effect')]",
        "details": {
          "type": "Microsoft.DBforMySQL/servers/virtualNetworkRules",
          "existenceCondition": {
            "field": "Microsoft.DBforMySQL/servers/virtualNetworkRules/virtualNetworkSubnetId",
            "exists": "true"
          }
        }
      }
    }
  },
  "id": "/providers/Microsoft.Authorization/policyDefinitions/3375856c-3824-4e0e-ae6a-79e011dd4c47",
  "type": "Microsoft.Authorization/policyDefinitions",
  "name": "3375856c-3824-4e0e-ae6a-79e011dd4c47"
}