Azure Container Registry · JSON Structure

Azure Container Registry Network Rule Set Structure

The network rule set for a container registry.

Type: object Properties: 3 Required: 1
AzureContainer ImagesContainersDockerRegistry

NetworkRuleSet is a JSON Structure definition published by Azure Container Registry, describing 3 properties, of which 1 is required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

defaultAction ipRules virtualNetworkRules

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/azure-container-registry/refs/heads/main/json-structure/azure-container-registry-network-rule-set-structure.json",
  "description": "The network rule set for a container registry.",
  "type": "object",
  "properties": {
    "defaultAction": {
      "default": "Allow",
      "description": "The default action of allow or deny when no other rules match.",
      "enum": [
        "Allow",
        "Deny"
      ],
      "type": "string",
      "x-ms-enum": {
        "modelAsString": true,
        "name": "DefaultAction"
      }
    },
    "ipRules": {
      "description": "The IP ACL rules.",
      "items": {
        "$ref": "#/definitions/IPRule"
      },
      "type": "array"
    },
    "virtualNetworkRules": {
      "description": "The virtual network rules.",
      "items": {
        "$ref": "#/definitions/VirtualNetworkRule"
      },
      "type": "array"
    }
  },
  "required": [
    "defaultAction"
  ],
  "name": "NetworkRuleSet"
}