last sync: 2021-Nov-26 17:15:01 UTC

Azure Policy definition

[Deprecated]: Service Bus should use a virtual network service endpoint

Name [Deprecated]: Service Bus should use a virtual network service endpoint
Azure Portal
Id 235359c5-7c52-4b82-9055-01c75cf9f60e
Version 1.0.0-deprecated
details on versioning
Category Network
Microsoft docs
Description This policy audits any Service Bus not configured to use a virtual network service endpoint. The resource type Microsoft.ServiceBus/namespaces/virtualNetworkRules is deprecated in the latest API version.
Mode Indexed
Type BuiltIn
Preview FALSE
Deprecated True
Effect Default: AuditIfNotExists
Allowed: (AuditIfNotExists, Disabled)
Used RBAC Role none
History
Date/Time (UTC ymd) (i) Change type Change detail
2021-06-22 14:29:30 change Version remains equal, new suffix: deprecated (1.0.0 > 1.0.0-deprecated)
2019-10-11 00:02:54 add 235359c5-7c52-4b82-9055-01c75cf9f60e
Used in Initiatives none
JSON Changes

JSON
{
  "displayName": "[Deprecated]: Service Bus should use a virtual network service endpoint",
  "policyType": "BuiltIn",
  "mode": "Indexed",
  "description": "This policy audits any Service Bus not configured to use a virtual network service endpoint. The resource type Microsoft.ServiceBus/namespaces/virtualNetworkRules is deprecated in the latest API version.",
  "metadata": {
    "version": "1.0.0-deprecated",
    "category": "Network",
    "deprecated": true
  },
  "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.ServiceBus/namespaces"
    },
    "then": {
      "effect": "[parameters('effect')]",
      "details": {
        "type": "Microsoft.ServiceBus/namespaces/virtualNetworkRules",
        "existenceCondition": {
          "field": "Microsoft.ServiceBus/namespaces/virtualNetworkRules/virtualNetworkSubnetId",
          "exists": "true"
        }
      }
    }
  }
}