last sync: 2020-Jul-02 13:28:37 UTC

Azure Policy

Public network access should be disabled for MySQL servers

Policy DisplayName Public network access should be disabled for MySQL servers
Policy Id d9844e8a-1437-4aeb-a32c-0c992f056095
Policy Category SQL
Policy Description This policy audits MySQL servers in your environment with public network access enabled. For more details, visit https://go.microsoft.com/fwlink/?linkid=2120014.
Policy Mode Indexed
Policy Type BuiltIn
Policy in Preview FALSE
Policy Deprecated FALSE
Policy Effect Default: Audit
Allowed: (Audit,Disabled)
Roles used none
Policy Changes
Date/Time (UTC ymd) (i) Change Change detail
2020-04-28 14:50:57 add: Policy d9844e8a-1437-4aeb-a32c-0c992f056095
Used in Policy Initiative(s) none
Policy Rule
{
  "properties": {
    "displayName": "Public network access should be disabled for MySQL servers",
    "policyType": "BuiltIn",
    "mode": "Indexed",
    "description": "This policy audits MySQL servers in your environment with public network access enabled. For more details, visit https://go.microsoft.com/fwlink/?linkid=2120014.",
    "metadata": {
      "version": "1.0.0",
      "category": "SQL"
    },
    "parameters": {
      "effect": {
        "type": "String",
        "metadata": {
          "displayName": "Effect",
          "description": "Enable or disable the execution of the policy"
        },
        "allowedValues": [
          "Audit",
          "Disabled"
        ],
        "defaultValue": "Audit"
      }
    },
    "policyRule": {
      "if": {
        "allOf": [
          {
            "field": "type",
            "equals": "Microsoft.DBforMySQL/servers"
          },
          {
            "field": "Microsoft.DBforMySQL/servers/publicNetworkAccess",
            "notEquals": "Disabled"
          }
        ]
      },
      "then": {
      "effect": "[parameters('effect')]"
      }
    }
  },
  "id": "/providers/Microsoft.Authorization/policyDefinitions/d9844e8a-1437-4aeb-a32c-0c992f056095",
  "type": "Microsoft.Authorization/policyDefinitions",
  "name": "d9844e8a-1437-4aeb-a32c-0c992f056095"
}