last sync: 2021-May-17 14:22:45 UTC

Azure Policy definition

Public network access should be disabled for Batch accounts

Name Public network access should be disabled for Batch accounts
Azure Portal
Id 74c5a0ae-5e48-4738-b093-65e23a060488
Version 1.0.0
details on versioning
Category Batch
Microsoft docs
Description Disabling public network access on a Batch account improves security by ensuring your Batch account can only be accessed from a private endpoint. Learn more about disabling public network access at https://docs.microsoft.com/azure/batch/private-connectivity.
Mode Indexed
Type BuiltIn
Preview FALSE
Deprecated FALSE
Effect Default: Audit
Allowed: (Audit, Deny, Disabled)
Used RBAC Role none
History
Date/Time (UTC ymd) (i) Change type Change detail
2021-01-27 16:54:46 add 74c5a0ae-5e48-4738-b093-65e23a060488
Used in Initiatives none
JSON
{
  "properties": {
    "displayName": "Public network access should be disabled for Batch accounts",
    "policyType": "BuiltIn",
    "mode": "Indexed",
    "description": "Disabling public network access on a Batch account improves security by ensuring your Batch account can only be accessed from a private endpoint. Learn more about disabling public network access at https://docs.microsoft.com/azure/batch/private-connectivity.",
    "metadata": {
      "version": "1.0.0",
      "category": "Batch"
    },
    "parameters": {
      "effect": {
        "type": "String",
        "metadata": {
          "displayName": "Effect",
          "description": "The desired effect of the policy"
        },
        "allowedValues": [
          "Audit",
          "Deny",
          "Disabled"
        ],
        "defaultValue": "Audit"
      }
    },
    "policyRule": {
      "if": {
        "allOf": [
          {
            "field": "type",
            "equals": "Microsoft.Batch/batchAccounts"
          },
          {
            "field": "Microsoft.Batch/batchAccounts/publicNetworkAccess",
            "notEquals": "Disabled"
          }
        ]
      },
      "then": {
      "effect": "[parameters('effect')]"
      }
    }
  },
  "id": "/providers/Microsoft.Authorization/policyDefinitions/74c5a0ae-5e48-4738-b093-65e23a060488",
  "type": "Microsoft.Authorization/policyDefinitions",
  "name": "74c5a0ae-5e48-4738-b093-65e23a060488"
}