{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/azure-networking-services/json-schema/azure-networking-services-dscp-configuration-schema.json",
  "title": "DscpConfiguration",
  "description": "Differentiated Services Code Point configuration for any given network interface",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/azure-networking-services-dscpconfiguration-api-openapi.yml#/components/schemas/DscpConfiguration",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/DscpConfigurationPropertiesFormat",
      "description": "Properties of the network interface.",
      "x-ms-client-flatten": true
    },
    "etag": {
      "type": "string",
      "description": "A unique read-only string that changes whenever the resource is updated.",
      "readOnly": true
    }
  },
  "allOf": [
    {
      "$ref": "#/$defs/Resource"
    }
  ],
  "$defs": {
    "AccessMode": {
      "type": "string",
      "description": "The access mode of the private link service.",
      "enum": [
        "Default",
        "Restricted"
      ],
      "x-ms-enum": {
        "name": "AccessMode",
        "modelAsString": true,
        "values": [
          {
            "name": "Default",
            "value": "Default",
            "description": "Allows unrestricted access to the private link service."
          },
          {
            "name": "Restricted",
            "value": "Restricted",
            "description": "Limits access to subscriptions which are inside visibility list only."
          }
        ]
      }
    },
    "ApplicationGatewayBackendAddressPool": {
      "type": "object",
      "description": "Backend Address Pool of an application gateway.",
      "properties": {
        "properties": {
          "$ref": "#/$defs/ApplicationGatewayBackendAddressPoolPropertiesFormat",
          "description": "Properties of the application gateway backend address pool.",
          "x-ms-client-flatten": true
        },
        "name": {
          "type": "string",
          "description": "Name of the backend address pool that is unique within an Application Gateway."
        },
        "etag": {
          "type": "string",
          "description": "A unique read-only string that changes whenever the resource is updated.",
          "readOnly": true
        },
        "type": {
          "type": "string",
          "description": "Type of the resource.",
          "readOnly": true
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/SubResource"
        }
      ]
    },
    "ApplicationGatewayIPConfiguration": {
      "type": "object",
      "description": "IP configuration of an application gateway. Currently 1 public and 1 private IP configuration is allowed.",
      "properties": {
        "properties": {
          "$ref": "#/$defs/ApplicationGatewayIPConfigurationPropertiesFormat",
          "description": "Properties of the application gateway IP configuration.",
          "x-ms-client-flatten": true
        },
        "name": {
          "type": "string",
          "description": "Name of the IP configuration that is unique within an Application Gateway."
        },
        "etag": {
          "type": "string",
          "description": "A unique read-only string that changes whenever the resource is updated.",
          "readOnly": true
        },
        "type": {
          "type": "string",
          "description": "Type of the resource.",
          "readOnly": true
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/SubResource"
        }
      ]
    },
    "ApplicationSecurityGroup": {
      "type": "object",
      "description": "An application security group in a resource group.",
      "properties": {
        "properties": {
          "$ref": "#/$defs/ApplicationSecurityGroupPropertiesFormat",
          "description": "Properties of the application security group.",
          "x-ms-client-flatten": true
        },
        "etag": {
          "type": "string",
          "description": "A unique read-only string that changes whenever the resource is updated.",
          "readOnly": true
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/Resource"
        }
      ]
    },
    "ApplicationSecurityGroupPropertiesFormat": {
      "type": "object",
      "description": "Application security group properties.",
      "properties": {
        "resourceGuid": {
          "type": "string",
          "description": "The resource GUID property of the application security group resource. It uniquely identifies a resource, even if the user changes its name or migrate the resource across subscriptions or resource groups.",
          "readOnly": true
        },
        "provisioningState": {
          "$ref": "#/$defs/ProvisioningState",
          "description": "The provisioning state of the application security group resource.",
          "readOnly": true
        }
      }
    },
    "ApprovalReference": {
      "type": "object",
      "description": "Reference to an existing approved private endpoint used to inherit its connection approval state.",
      "properties": {
        "privateEndpointId": {
          "type": "string",
          "format": "arm-id",
          "description": "The ARM resource id of an existing approved private endpoint whose approval state is inherited by this connection.",
          "x-ms-arm-id-details": {
            "allowedResources": [
              {
                "type": "Microsoft.Network/privateEndpoints"
              }
            ]
          }
        }
      }
    },
    "BackendAddressPool": {
      "type": "object",
      "description": "Pool of backend IP addresses.",
      "properties": {
        "properties": {
          "$ref": "#/$defs/BackendAddressPoolPropertiesFormat",
          "description": "Properties of load balancer backend address pool.",
          "x-ms-client-flatten": true
        },
        "etag": {
          "type": "string",
          "description": "A unique read-only string that changes whenever the resource is updated.",
          "readOnly": true
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/SubResourceModel"
        }
      ]
    },
    "CustomDnsConfigPropertiesFormat": {
      "type": "object",
      "description": "Contains custom Dns resolution configuration from customer.",
      "properties": {
        "fqdn": {
          "type": "string",
          "description": "Fqdn that resolves to private endpoint ip address."
        },
        "ipAddresses": {
          "type": "array",
          "description": "A list of private ip addresses of the private endpoint.",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "DdosSettings": {
      "type": "object",
      "description": "Contains the DDoS protection settings of the public IP.",
      "properties": {
        "protectionMode": {
          "$ref": "#/$defs/DdosSettingsProtectionMode",
          "description": "The DDoS protection mode of the public IP"
        },
        "ddosCustomPolicy": {
          "$ref": "#/$defs/SubResource",
          "description": "The DDoS custom policy associated with the public IP."
        },
        "ddosProtectionPlan": {
          "$ref": "#/$defs/SubResource",
          "description": "The DDoS protection plan associated with the public IP. Can only be set if ProtectionMode is Enabled"
        }
      }
    },
    "DdosSettingsProtectionMode": {
      "type": "string",
      "description": "The DDoS protection mode of the public IP",
      "enum": [
        "VirtualNetworkInherited",
        "Enabled",
        "Disabled"
      ],
      "x-ms-enum": {
        "name": "DdosSettingsProtectionMode",
        "modelAsString": true,
        "values": [
          {
            "name": "VirtualNetworkInherited",
            "value": "VirtualNetworkInherited",
            "description": "VirtualNetworkInherited"
          },
          {
            "name": "Enabled",
            "value": "Enabled",
            "description": "Enabled"
          },
          {
            "name": "Disabled",
            "value": "Disabled",
            "description": "Disabled"
          }
        ]
      }
    },
    "Delegation": {
      "type": "object",
      "description": "Details the service to which the subnet is delegated.",
      "properties": {
        "properties": {
          "$ref": "#/$defs/ServiceDelegationPropertiesFormat",
          "description": "Properties of the subnet.",
          "x-ms-client-flatten": true
        },
        "name": {
          "type": "string",
          "description": "The name of the resource that is unique within a subnet. This name can be used to access the resource."
        },
        "etag": {
          "type": "string",
          "description": "A unique read-only string that changes whenever the resource is updated.",
          "readOnly": true
        },
        "type": {
          "type": "string",
          "description": "Resource type."
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/SubResource"
        }
      ]
    },
    "DeleteOptions": {
      "type": "string",
      "description": "Specify what happens to the public IP address when the VM using it is deleted",
      "enum": [
        "Delete",
        "Detach"
      ],
      "x-ms-enum": {
        "name": "DeleteOptions",
        "modelAsString": true,
        "values": [
          {
            "name": "Delete",
            "value": "Delete",
            "description": "Delete"
          },
          {
            "name": "Detach",
            "value": "Detach",
            "description": "Detach"
          }
        ]
      }
    },
    "DisablePeeringRoute": {
      "type": "string",
      "description": "Whether to disable the routes learned by peering on the route table.",
      "enum": [
        "None",
        "All"
      ],
      "x-ms-enum": {
        "name": "DisablePeeringRoute",
        "modelAsString": true,
        "values": [
          {
            "name": "None",
            "value": "None",
            "description": "Peering routes are enabled."
          },
          {
            "name": "All",
            "value": "All",
            "description": "All peering routes are disabled."
          }
        ]
      }
    },
    "DscpConfigurationPropertiesFormat": {
      "type": "object",
      "description": "Differentiated Services Code Point configuration properties.",
      "properties": {
        "markings": {
          "type": "array",
          "description": "List of markings to be used in the configuration.",
          "items": {
            "type": "integer",
            "format": "int32"
          }
        },
        "sourceIpRanges": {
          "type": "array",
          "description": "Source IP ranges.",
          "items": {
            "$ref": "#/$defs/QosIpRange"
          }
        },
        "destinationIpRanges": {
          "type": "array",
          "description": "Destination IP ranges.",
          "items": {
            "$ref": "#/$defs/QosIpRange"
          }
        },
        "sourcePortRanges": {
          "type": "array",
          "description": "Sources port ranges.",
          "items": {
            "$ref": "#/$defs/QosPortRange"
          }
        },
        "destinationPortRanges": {
          "type": "array",
          "description": "Destination port ranges.",
          "items": {
            "$ref": "#/$defs/QosPortRange"
          }
        },
        "protocol": {
          "$ref": "#/$defs/ProtocolType",
          "description": "RNM supported protocol types."
        },
        "qosDefinitionCollection": {
          "type": "array",
          "description": "QoS object definitions",
          "items": {
            "$ref": "#/$defs/QosDefinition"
          }
        },
        "qosCollectionId": {
          "type": "string",
          "description": "Qos Collection ID generated by RNM.",
          "readOnly": true
        },
        "associatedNetworkInterfaces": {
          "type": "array",
          "description": "Associated Network Interfaces to the DSCP Configuration.",
          "items": {
            "$ref": "#/$defs/NetworkInterface"
          },
          "readOnly": true
        },
        "resourceGuid": {
          "type": "string",
          "description": "The resource GUID property of the DSCP Configuration resource.",
          "readOnly": true
        },
        "provisioningState": {
          "$ref": "#/$defs/ProvisioningState",
          "description": "The provisioning state of the DSCP Configuration resource.",
          "readOnly": true
        }
      }
    },
    "ExtendedLocation": {
      "type": "object",
      "description": "ExtendedLocation complex type.",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the extended location."
        },
        "type": {
          "$ref": "#/$defs/ExtendedLocationTypes",
          "description": "The type of the extended location."
        }
      }
    },
    "FlowLog": {
      "type": "object",
      "description": "A flow log resource.",
      "properties": {
        "properties": {
          "$ref": "#/$defs/FlowLogPropertiesFormat",
          "description": "Properties of the flow log.",
          "x-ms-client-flatten": true
        },
        "etag": {
          "type": "string",
          "description": "A unique read-only string that changes whenever the resource is updated.",
          "readOnly": true
        },
        "identity": {
          "$ref": "#/$defs/ManagedServiceIdentity",
          "description": "FlowLog resource Managed Identity"
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/Resource"
        }
      ]
    },
    "FrontendIPConfiguration": {
      "type": "object",
      "description": "Frontend IP address of the load balancer.",
      "properties": {
        "properties": {
          "$ref": "#/$defs/FrontendIPConfigurationPropertiesFormat",
          "description": "Properties of the load balancer probe.",
          "x-ms-client-flatten": true
        },
        "etag": {
          "type": "string",
          "description": "A unique read-only string that changes whenever the resource is updated.",
          "readOnly": true
        },
        "zones": {
          "type": "array",
          "description": "A list of availability zones denoting the IP allocated for the resource needs to come from.",
          "items": {
            "type": "string"
          }
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/SubResourceModel"
        }
      ]
    },
    "IPAllocationMethod": {
      "type": "string",
      "description": "IP address allocation method.",
      "enum": [
        "Static",
        "Dynamic"
      ],
      "x-ms-enum": {
        "name": "IPAllocationMethod",
        "modelAsString": true,
        "values": [
          {
            "name": "Static",
            "value": "Static",
            "description": "Static"
          },
          {
            "name": "Dynamic",
            "value": "Dynamic",
            "description": "Dynamic"
          }
        ]
      }
    },
    "IPConfiguration": {
      "type": "object",
      "description": "IP configuration.",
      "properties": {
        "properties": {
          "$ref": "#/$defs/IPConfigurationPropertiesFormat",
          "description": "Properties of the IP configuration.",
          "x-ms-client-flatten": true
        },
        "name": {
          "type": "string",
          "description": "The name of the resource that is unique within a resource group. This name can be used to access the resource."
        },
        "etag": {
          "type": "string",
          "description": "A unique read-only string that changes whenever the resource is updated.",
          "readOnly": true
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/SubResource"
        }
      ]
    },
    "IPConfigurationProfile": {
      "type": "object",
      "description": "IP configuration profile child resource.",
      "properties": {
        "properties": {
          "$ref": "#/$defs/IPConfigurationProfilePropertiesFormat",
          "description": "Properties of the IP configuration profile.",
          "x-ms-client-flatten": true
        },
        "name": {
          "type": "string",
          "description": "The name of the resource. This name can be used to access the resource."
        },
        "type": {
          "type": "string",
          "description": "Sub Resource type.",
          "readOnly": true
        },
        "etag": {
          "type": "string",
          "description": "A unique read-only string that changes whenever the resource is updated.",
          "readOnly": true
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/SubResource"
        }
      ]
    },
    "IPConfigurationProfilePropertiesFormat": {
      "type": "object",
      "description": "IP configuration profile properties.",
      "properties": {
        "subnet": {
          "$ref": "#/$defs/Subnet",
          "description": "The reference to the subnet resource to create a container network interface ip configuration."
        },
        "provisioningState": {
          "$ref": "#/$defs/ProvisioningState",
          "description": "The provisioning state of the IP configuration profile resource.",
          "readOnly": true
        }
      }
    },
    "IPConfigurationPropertiesFormat": {
      "type": "object",
      "description": "Properties of IP configuration.",
      "properties": {
        "privateIPAddress": {
          "type": "string",
          "description": "The private IP address of the IP configuration."
        },
        "privateIPAllocationMethod": {
          "$ref": "#/$defs/IPAllocationMethod",
          "description": "The private IP address allocation method."
        },
        "subnet": {
          "$ref": "#/$defs/Subnet",
          "description": "The reference to the subnet resource."
        },
        "publicIPAddress": {
          "$ref": "#/$defs/PublicIPAddress",
          "description": "The reference to the public IP resource."
        },
        "provisioningState": {
          "$ref": "#/$defs/ProvisioningState",
          "description": "The provisioning state of the IP configuration resource.",
          "readOnly": true
        }
      }
    },
    "IPVersion": {
      "type": "string",
      "description": "IP address version.",
      "enum": [
        "IPv4",
        "IPv6"
      ],
      "x-ms-enum": {
        "name": "IPVersion",
        "modelAsString": true,
        "values": [
          {
            "name": "IPv4",
            "value": "IPv4",
            "description": "IPv4"
          },
          {
            "name": "IPv6",
            "value": "IPv6",
            "description": "IPv6"
          }
        ]
      }
    },
    "InboundNatRule": {
      "type": "object",
      "description": "Inbound NAT rule of the load balancer.",
      "properties": {
        "properties": {
          "$ref": "#/$defs/InboundNatRulePropertiesFormat",
          "description": "Properties of load balancer inbound NAT rule.",
          "x-ms-client-flatten": true
        },
        "etag": {
          "type": "string",
          "description": "A unique read-only string that changes whenever the resource is updated.",
          "readOnly": true
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/SubResourceModel"
        }
      ]
    },
    "IpTag": {
      "type": "object",
      "description": "Contains the IpTag associated with the object.",
      "properties": {
        "ipTagType": {
          "type": "string",
          "description": "The IP tag type. Example: FirstPartyUsage."
        },
        "tag": {
          "type": "string",
          "description": "The value of the IP tag associated with the public IP. Example: SQL."
        },
        "firstPartyServiceTagId": {
          "type": "string",
          "format": "arm-id",
          "description": "The resource ID of the first party service tag associated with the IP tag.",
          "x-ms-arm-id-details": {
            "allowedResources": [
              {
                "type": "Microsoft.Network/firstPartyServiceTags"
              }
            ]
          }
        }
      }
    },
    "IpamPoolPrefixAllocation": {
      "type": "object",
      "description": "IpamPool prefix allocation reference.",
      "properties": {
        "pool": {
          "$ref": "#/$defs/IpamPoolPrefixAllocationPool",
          "x-ms-client-flatten": true
        },
        "numberOfIpAddresses": {
          "type": "string",
          "description": "Number of IP addresses to allocate."
        },
        "allocatedAddressPrefixes": {
          "type": "array",
          "description": "List of assigned IP address prefixes in the IpamPool of the associated resource.",
          "items": {
            "type": "string"
          },
          "readOnly": true
        }
      }
    },
    "IpamPoolPrefixAllocationPool": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "arm-id",
          "description": "Resource id of the associated Azure IpamPool resource."
        }
      }
    },
    "ManagedServiceIdentity": {
      "type": "object",
      "description": "Identity for the resource.",
      "properties": {
        "principalId": {
          "type": "string",
          "description": "The principal id of the system assigned identity. This property will only be provided for a system assigned identity.",
          "readOnly": true
        },
        "tenantId": {
          "type": "string",
          "description": "The tenant id of the system assigned identity. This property will only be provided for a system assigned identity.",
          "readOnly": true
        },
        "type": {
          "$ref": "#/$defs/ResourceIdentityType",
          "description": "The type of identity used for the resource. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned identities. The type 'None' will remove any identities from the virtual machine."
        },
        "userAssignedIdentities": {
          "type": "object",
          "description": "The list of user identities associated with resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.",
          "additionalProperties": {
            "$ref": "#/$defs/ManagedServiceIdentityUserAssignedIdentities"
          }
        }
      }
    },
    "Nat64State": {
      "type": "string",
      "description": "Whether Nat64 is enabled for the NAT gateway resource.",
      "enum": [
        "None",
        "Enabled",
        "Disabled"
      ],
      "x-ms-enum": {
        "name": "Nat64State",
        "modelAsString": true,
        "values": [
          {
            "name": "None",
            "value": "None",
            "description": "Nat64 Property is not set."
          },
          {
            "name": "Enabled",
            "value": "Enabled",
            "description": "Nat64 is enabled."
          },
          {
            "name": "Disabled",
            "value": "Disabled",
            "description": "Nat64 is disabled."
          }
        ]
      }
    },
    "NatGateway": {
      "type": "object",
      "description": "Nat Gateway resource.",
      "properties": {
        "properties": {
          "$ref": "#/$defs/NatGatewayPropertiesFormat",
          "description": "Nat Gateway properties.",
          "x-ms-client-flatten": true
        },
        "sku": {
          "$ref": "#/$defs/NatGatewaySku",
          "description": "The nat gateway SKU."
        },
        "zones": {
          "type": "array",
          "description": "A list of availability zones denoting the zone in which Nat Gateway should be deployed.",
          "items": {
            "type": "string"
          }
        },
        "etag": {
          "type": "string",
          "description": "A unique read-only string that changes whenever the resource is updated.",
          "readOnly": true
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/Resource"
        }
      ]
    },
    "NatGatewayPropertiesFormat": {
      "type": "object",
      "description": "Nat Gateway properties.",
      "properties": {
        "idleTimeoutInMinutes": {
          "type": "integer",
          "format": "int32",
          "description": "The idle timeout of the nat gateway."
        },
        "publicIpAddresses": {
          "type": "array",
          "description": "An array of public ip addresses V4 associated with the nat gateway resource.",
          "items": {
            "$ref": "#/$defs/SubResource"
          }
        },
        "publicIpAddressesV6": {
          "type": "array",
          "description": "An array of public ip addresses V6 associated with the nat gateway resource.",
          "items": {
            "$ref": "#/$defs/SubResource"
          }
        },
        "publicIpPrefixes": {
          "type": "array",
          "description": "An array of public ip prefixes V4 associated with the nat gateway resource.",
          "items": {
            "$ref": "#/$defs/SubResource"
          }
        },
        "publicIpPrefixesV6": {
          "type": "array",
          "description": "An array of public ip prefixes V6 associated with the nat gateway resource.",
          "items": {
            "$ref": "#/$defs/SubResource"
          }
        },
        "subnets": {
          "type": "array",
          "description": "An array of references to the subnets using this nat gateway resource.",
          "items": {
            "$ref": "#/$defs/SubResource"
          },
          "readOnly": true
        },
        "sourceVirtualNetwork": {
          "$ref": "#/$defs/SubResource",
          "description": "A reference to the source virtual network using this nat gateway resource."
        },
        "serviceGateway": {
          "$ref": "#/$defs/SubResource",
          "description": "Reference to an existing service gateway."
        },
        "nat64": {
          "$ref": "#/$defs/Nat64State",
          "description": "Whether Nat64 is enabled for the NAT gateway resource."
        },
        "resourceGuid": {
          "type": "string",
          "description": "The resource GUID property of the NAT gateway resource.",
          "readOnly": true
        },
        "provisioningState": {
          "$ref": "#/$defs/ProvisioningState",
          "description": "The provisioning state of the NAT gateway resource.",
          "readOnly": true
        }
      }
    },
    "NatGatewaySku": {
      "type": "object",
      "description": "SKU of nat gateway.",
      "properties": {
        "name": {
          "$ref": "#/$defs/NatGatewaySkuName",
          "description": "Name of Nat Gateway SKU."
        }
      }
    },
    "NatGatewaySkuName": {
      "type": "string",
      "description": "Name of Nat Gateway SKU.",
      "enum": [
        "Standard",
        "StandardV2"
      ],
      "x-ms-enum": {
        "name": "NatGatewaySkuName",
        "modelAsString": true,
        "values": [
          {
            "name": "Standard",
            "value": "Standard",
            "description": "Standard"
          },
          {
            "name": "StandardV2",
            "value": "StandardV2",
            "description": "StandardV2"
          }
        ]
      }
    },
    "NetworkInterface": {
      "type": "object",
      "description": "A network interface in a resource group.",
      "properties": {
        "properties": {
          "$ref": "#/$defs/NetworkInterfacePropertiesFormat",
          "description": "Properties of the network interface.",
          "x-ms-client-flatten": true
        },
        "extendedLocation": {
          "$ref": "#/$defs/ExtendedLocation",
          "description": "The extended location of the network interface."
        },
        "etag": {
          "type": "string",
          "description": "A unique read-only string that changes whenever the resource is updated.",
          "readOnly": true
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/Resource"
        }
      ]
    },
    "NetworkInterfaceAuxiliaryMode": {
      "type": "string",
      "description": "Auxiliary mode of Network Interface resource.",
      "enum": [
        "None",
        "MaxConnections",
        "Floating",
        "AcceleratedConnections"
      ],
      "x-ms-enum": {
        "name": "NetworkInterfaceAuxiliaryMode",
        "modelAsString": true,
        "values": [
          {
            "name": "None",
            "value": "None",
            "description": "None"
          },
          {
            "name": "MaxConnections",
            "value": "MaxConnections",
            "description": "MaxConnections"
          },
          {
            "name": "Floating",
            "value": "Floating",
            "description": "Floating"
          },
          {
            "name": "AcceleratedConnections",
            "value": "AcceleratedConnections",
            "description": "AcceleratedConnections"
          }
        ]
      }
    },
    "NetworkInterfaceAuxiliarySku": {
      "type": "string",
      "description": "Auxiliary sku of Network Interface resource.",
      "enum": [
        "None",
        "A1",
        "A2",
        "A4",
        "A8"
      ],
      "x-ms-enum": {
        "name": "NetworkInterfaceAuxiliarySku",
        "modelAsString": true,
        "values": [
          {
            "name": "None",
            "value": "None",
            "description": "None"
          },
          {
            "name": "A1",
            "value": "A1",
            "description": "A1"
          },
          {
            "name": "A2",
            "value": "A2",
            "description": "A2"
          },
          {
            "name": "A4",
            "value": "A4",
            "description": "A4"
          },
          {
            "name": "A8",
            "value": "A8",
            "description": "A8"
          }
        ]
      }
    },
    "NetworkInterfaceDnsSettings": {
      "type": "object",
      "description": "DNS settings of a network interface.",
      "properties": {
        "dnsServers": {
          "type": "array",
          "description": "List of DNS servers IP addresses. Use 'AzureProvidedDNS' to switch to azure provided DNS resolution. 'AzureProvidedDNS' value cannot be combined with other IPs, it must be the only value in dnsServers collection.",
          "items": {
            "type": "string"
          }
        },
        "appliedDnsServers": {
          "type": "array",
          "description": "If the VM that uses this NIC is part of an Availability Set, then this list will have the union of all DNS servers from all NICs that are part of the Availability Set. This property is what is configured on each of those VMs.",
          "items": {
            "type": "string"
          },
          "readOnly": true
        },
        "internalDnsNameLabel": {
          "type": "string",
          "description": "Relative DNS name for this NIC used for internal communications between VMs in the same virtual network."
        },
        "internalFqdn": {
          "type": "string",
          "description": "Fully qualified DNS name supporting internal communications between VMs in the same virtual network.",
          "readOnly": true
        },
        "internalDomainNameSuffix": {
          "type": "string",
          "description": "Even if internalDnsNameLabel is not specified, a DNS entry is created for the primary NIC of the VM. This DNS name can be constructed by concatenating the VM name with the value of internalDomainNameSuffix.",
          "readOnly": true
        }
      }
    },
    "NetworkInterfaceIPConfiguration": {
      "type": "object",
      "description": "IPConfiguration in a network interface.",
      "properties": {
        "properties": {
          "$ref": "#/$defs/NetworkInterfaceIPConfigurationPropertiesFormat",
          "description": "Network interface IP configuration properties.",
          "x-ms-client-flatten": true
        },
        "etag": {
          "type": "string",
          "description": "A unique read-only string that changes whenever the resource is updated.",
          "readOnly": true
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/SubResourceModel"
        }
      ]
    },
    "NetworkInterfaceIPConfigurationPrivateLinkConnectionProperties": {
      "type": "object",
      "description": "PrivateLinkConnection properties for the network interface.",
      "properties": {
        "groupId": {
          "type": "string",
          "description": "The group ID for current private link connection.",
          "readOnly": true
        },
        "requiredMemberName": {
          "type": "string",
          "description": "The required member name for current private link connection.",
          "readOnly": true
        },
        "fqdns": {
          "type": "array",
          "description": "List of FQDNs for current private link connection.",
          "items": {
            "type": "string"
          },
          "readOnly": true
        }
      }
    },
    "NetworkInterfaceIPConfigurationPropertiesFormat": {
      "type": "object",
      "description": "Properties of IP configuration.",
      "properties": {
        "gatewayLoadBalancer": {
          "$ref": "#/$defs/SubResource",
          "description": "The reference to gateway load balancer frontend IP."
        },
        "virtualNetworkTaps": {
          "type": "array",
          "description": "The reference to Virtual Network Taps.",
          "items": {
            "$ref": "#/$defs/VirtualNetworkTap"
          }
        },
        "applicationGatewayBackendAddressPools": {
          "type": "array",
          "description": "The reference to ApplicationGatewayBackendAddressPool resource.",
          "items": {
            "$ref": "#/$defs/ApplicationGatewayBackendAddressPool"
          }
        },
        "loadBalancerBackendAddressPools": {
          "type": "array",
          "description": "The reference to LoadBalancerBackendAddressPool resource.",
          "items": {
            "$ref": "#/$defs/BackendAddressPool"
          }
        },
        "loadBalancerInboundNatRules": {
          "type": "array",
          "description": "A list of references of LoadBalancerInboundNatRules.",
          "items": {
            "$ref": "#/$defs/InboundNatRule"
          }
        },
        "privateIPAddress": {
          "type": "string",
          "description": "Private IP address of the IP configuration. It can be a single IP address or a CIDR block in the format <address>/<prefix-length>."
        },
        "privateIPAddressPrefixLength": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32",
          "description": "The private IP address prefix length. If specified and the allocation method is dynamic, the service will allocate a CIDR block instead of a single IP address.",
          "minimum": 1,
          "maximum": 128
        },
        "privateIPAllocationMethod": {
          "$ref": "#/$defs/IPAllocationMethod",
          "description": "The private IP address allocation method."
        },
        "privateIPAddressVersion": {
          "$ref": "#/$defs/IPVersion",
          "description": "Whether the specific IP configuration is IPv4 or IPv6. Default is IPv4."
        },
        "subnet": {
          "$ref": "#/$defs/Subnet",
          "description": "Subnet bound to the IP configuration."
        },
        "primary": {
          "type": "boolean",
          "description": "Whether this is a primary customer address on the network interface."
        },
        "publicIPAddress": {
          "$ref": "#/$defs/PublicIPAddress",
          "description": "Public IP address bound to the IP configuration."
        },
        "applicationSecurityGroups": {
          "type": "array",
          "description": "Application security groups in which the IP configuration is included.",
          "items": {
            "$ref": "#/$defs/ApplicationSecurityGroup"
          }
        },
        "provisioningState": {
          "$ref": "#/$defs/ProvisioningState",
          "description": "The provisioning state of the network interface IP configuration.",
          "readOnly": true
        },
        "privateLinkConnectionProperties": {
          "$ref": "#/$defs/NetworkInterfaceIPConfigurationPrivateLinkConnectionProperties",
          "description": "PrivateLinkConnection properties for the network interface.",
          "readOnly": true
        }
      }
    },
    "NetworkInterfaceMigrationPhase": {
      "type": "string",
      "description": "Migration phase of Network Interface resource.",
      "enum": [
        "None",
        "Prepare",
        "Commit",
        "Abort",
        "Committed"
      ],
      "x-ms-enum": {
        "name": "NetworkInterfaceMigrationPhase",
        "modelAsString": true,
        "values": [
          {
            "name": "None",
            "value": "None",
            "description": "None"
          },
          {
            "name": "Prepare",
            "value": "Prepare",
            "description": "Prepare"
          },
          {
            "name": "Commit",
            "value": "Commit",
            "description": "Commit"
          },
          {
            "name": "Abort",
            "value": "Abort",
            "description": "Abort"
          },
          {
            "name": "Committed",
            "value": "Committed",
            "description": "Committed"
          }
        ]
      }
    },
    "NetworkInterfaceNicType": {
      "type": "string",
      "description": "Type of Network Interface resource.",
      "enum": [
        "Standard",
        "Elastic"
      ],
      "x-ms-enum": {
        "name": "NetworkInterfaceNicType",
        "modelAsString": true,
        "values": [
          {
            "name": "Standard",
            "value": "Standard",
            "description": "Standard"
          },
          {
            "name": "Elastic",
            "value": "Elastic",
            "description": "Elastic"
          }
        ]
      }
    },
    "NetworkInterfacePropertiesFormat": {
      "type": "object",
      "description": "NetworkInterface properties.",
      "properties": {
        "virtualMachine": {
          "$ref": "#/$defs/SubResource",
          "description": "The reference to a virtual machine.",
          "readOnly": true
        },
        "networkSecurityGroup": {
          "$ref": "#/$defs/NetworkSecurityGroup",
          "description": "The reference to the NetworkSecurityGroup resource."
        },
        "privateEndpoint": {
          "$ref": "#/$defs/PrivateEndpoint",
          "description": "A reference to the private endpoint to which the network interface is linked.",
          "readOnly": true
        },
        "ipConfigurations": {
          "type": "array",
          "description": "A list of IPConfigurations of the network interface.",
          "items": {
            "$ref": "#/$defs/NetworkInterfaceIPConfiguration"
          }
        },
        "tapConfigurations": {
          "type": "array",
          "description": "A list of TapConfigurations of the network interface.",
          "items": {
            "$ref": "#/$defs/NetworkInterfaceTapConfiguration"
          },
          "readOnly": true
        },
        "dnsSettings": {
          "$ref": "#/$defs/NetworkInterfaceDnsSettings",
          "description": "The DNS settings in network interface."
        },
        "macAddress": {
          "type": "string",
          "description": "The MAC address of the network interface.",
          "readOnly": true
        },
        "primary": {
          "type": "boolean",
          "description": "Whether this is a primary network interface on a virtual machine.",
          "readOnly": true
        },
        "vnetEncryptionSupported": {
          "type": "boolean",
          "description": "Whether the virtual machine this nic is attached to supports encryption.",
          "readOnly": true
        },
        "defaultOutboundConnectivityEnabled": {
          "type": "boolean",
          "description": "Whether default outbound connectivity for nic was configured or not.",
          "readOnly": true
        },
        "enableAcceleratedNetworking": {
          "type": "boolean",
          "description": "If the network interface is configured for accelerated networking. Not applicable to VM sizes which require accelerated networking."
        },
        "disableTcpStateTracking": {
          "type": "boolean",
          "description": "Indicates whether to disable tcp state tracking."
        },
        "enableIPForwarding": {
          "type": "boolean",
          "description": "Indicates whether IP forwarding is enabled on this network interface."
        },
        "hostedWorkloads": {
          "type": "array",
          "description": "A list of references to linked BareMetal resources.",
          "items": {
            "type": "string"
          },
          "readOnly": true
        },
        "dscpConfiguration": {
          "$ref": "#/$defs/SubResource",
          "description": "A reference to the dscp configuration to which the network interface is linked.",
          "readOnly": true
        },
        "resourceGuid": {
          "type": "string",
          "description": "The resource GUID property of the network interface resource.",
          "readOnly": true
        },
        "provisioningState": {
          "$ref": "#/$defs/ProvisioningState",
          "description": "The provisioning state of the network interface resource.",
          "readOnly": true
        },
        "workloadType": {
          "type": "string",
          "description": "WorkloadType of the NetworkInterface for BareMetal resources"
        },
        "nicType": {
          "$ref": "#/$defs/NetworkInterfaceNicType",
          "description": "Type of Network Interface resource."
        },
        "privateLinkService": {
          "$ref": "#/$defs/PrivateLinkService",
          "description": "Privatelinkservice of the network interface resource."
        },
        "migrationPhase": {
          "$ref": "#/$defs/NetworkInterfaceMigrationPhase",
          "description": "Migration phase of Network Interface resource."
        },
        "auxiliaryMode": {
          "$ref": "#/$defs/NetworkInterfaceAuxiliaryMode",
          "description": "Auxiliary mode of Network Interface resource."
        },
        "auxiliarySku": {
          "$ref": "#/$defs/NetworkInterfaceAuxiliarySku",
          "description": "Auxiliary sku of Network Interface resource."
        }
      }
    },
    "NetworkInterfaceTapConfiguration": {
      "type": "object",
      "description": "Tap configuration in a Network Interface.",
      "properties": {
        "properties": {
          "$ref": "#/$defs/NetworkInterfaceTapConfigurationPropertiesFormat",
          "description": "Properties of the Virtual Network Tap configuration.",
          "x-ms-client-flatten": true
        },
        "etag": {
          "type": "string",
          "description": "A unique read-only string that changes whenever the resource is updated.",
          "readOnly": true
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/SubResourceModel"
        }
      ]
    },
    "NetworkInterfaceTapConfigurationPropertiesFormat": {
      "type": "object",
      "description": "Properties of Virtual Network Tap configuration.",
      "properties": {
        "virtualNetworkTap": {
          "$ref": "#/$defs/VirtualNetworkTap",
          "description": "The reference to the Virtual Network Tap resource."
        },
        "provisioningState": {
          "$ref": "#/$defs/ProvisioningState",
          "description": "The provisioning state of the network interface tap configuration resource.",
          "readOnly": true
        }
      }
    },
    "NetworkSecurityGroup": {
      "type": "object",
      "description": "NetworkSecurityGroup resource.",
      "properties": {
        "properties": {
          "$ref": "#/$defs/NetworkSecurityGroupPropertiesFormat",
          "description": "Properties of the network security group.",
          "x-ms-client-flatten": true
        },
        "etag": {
          "type": "string",
          "description": "A unique read-only string that changes whenever the resource is updated.",
          "readOnly": true
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/Resource"
        }
      ]
    },
    "NetworkSecurityGroupPropertiesFormat": {
      "type": "object",
      "description": "Network Security Group resource.",
      "properties": {
        "flushConnection": {
          "type": "boolean",
          "description": "When enabled, flows created from Network Security Group connections will be re-evaluated when rules are updates. Initial enablement will trigger re-evaluation."
        },
        "securityRules": {
          "type": "array",
          "description": "A collection of security rules of the network security group.",
          "items": {
            "$ref": "#/$defs/SecurityRule"
          }
        },
        "defaultSecurityRules": {
          "type": "array",
          "description": "The default security rules of network security group.",
          "items": {
            "$ref": "#/$defs/SecurityRule"
          },
          "readOnly": true
        },
        "networkInterfaces": {
          "type": "array",
          "description": "A collection of references to network interfaces.",
          "items": {
            "$ref": "#/$defs/NetworkInterface"
          },
          "readOnly": true
        },
        "subnets": {
          "type": "array",
          "description": "A collection of references to subnets.",
          "items": {
            "$ref": "#/$defs/Subnet"
          },
          "readOnly": true
        },
        "flowLogs": {
          "type": "array",
          "description": "A collection of references to flow log resources.",
          "items": {
            "$ref": "#/$defs/FlowLog"
          },
          "readOnly": true
        },
        "resourceGuid": {
          "type": "string",
          "description": "The resource GUID property of the network security group resource.",
          "readOnly": true
        },
        "provisioningState": {
          "$ref": "#/$defs/ProvisioningState",
          "description": "The provisioning state of the network security group resource.",
          "readOnly": true
        }
      }
    },
    "PrivateEndpoint": {
      "type": "object",
      "description": "Private endpoint resource.",
      "properties": {
        "properties": {
          "$ref": "#/$defs/PrivateEndpointProperties",
          "description": "Properties of the private endpoint.",
          "x-ms-client-flatten": true
        },
        "extendedLocation": {
          "$ref": "#/$defs/ExtendedLocation",
          "description": "The extended location of the load balancer."
        },
        "etag": {
          "type": "string",
          "description": "A unique read-only string that changes whenever the resource is updated.",
          "readOnly": true
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/Resource"
        }
      ]
    },
    "PrivateEndpointBillingSku": {
      "type": "string",
      "description": "The billing sku of the private endpoint.",
      "enum": [
        "PayAsYouGo",
        "Fixed"
      ],
      "x-ms-enum": {
        "name": "PrivateEndpointBillingSku",
        "modelAsString": true,
        "values": [
          {
            "name": "PayAsYouGo",
            "value": "PayAsYouGo",
            "description": "PayAsYouGo sku is the default price for private endpoints."
          },
          {
            "name": "Fixed",
            "value": "Fixed",
            "description": "Fixed sku is best for high data processing private endpoints."
          }
        ]
      }
    },
    "PrivateEndpointConnection": {
      "type": "object",
      "description": "PrivateEndpointConnection resource.",
      "properties": {
        "properties": {
          "$ref": "#/$defs/PrivateEndpointConnectionProperties",
          "description": "Properties of the private end point connection.",
          "x-ms-client-flatten": true
        },
        "etag": {
          "type": "string",
          "description": "A unique read-only string that changes whenever the resource is updated.",
          "readOnly": true
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/SubResourceModel"
        }
      ]
    },
    "PrivateEndpointConnectionProperties": {
      "type": "object",
      "description": "Properties of the PrivateEndpointConnectProperties.",
      "properties": {
        "privateEndpoint": {
          "$ref": "#/$defs/PrivateEndpoint",
          "description": "The resource of private end point.",
          "readOnly": true
        },
        "privateLinkServiceConnectionState": {
          "$ref": "#/$defs/PrivateLinkServiceConnectionState",
          "description": "A collection of information about the state of the connection between service consumer and provider."
        },
        "provisioningState": {
          "$ref": "#/$defs/ProvisioningState",
          "description": "The provisioning state of the private endpoint connection resource.",
          "readOnly": true
        },
        "linkIdentifier": {
          "type": "string",
          "description": "The consumer link id.",
          "readOnly": true
        },
        "privateEndpointLocation": {
          "type": "string",
          "description": "The location of the private endpoint.",
          "readOnly": true
        }
      }
    },
    "PrivateEndpointIPConfiguration": {
      "type": "object",
      "description": "An IP Configuration of the private endpoint.",
      "properties": {
        "properties": {
          "$ref": "#/$defs/PrivateEndpointIPConfigurationProperties",
          "description": "Properties of private endpoint IP configurations.",
          "x-ms-client-flatten": true
        },
        "name": {
          "type": "string",
          "description": "The name of the resource that is unique within a resource group."
        },
        "type": {
          "type": "string",
          "description": "The resource type.",
          "readOnly": true
        },
        "etag": {
          "type": "string",
          "description": "A unique read-only string that changes whenever the resource is updated.",
          "readOnly": true
        }
      }
    },
    "PrivateEndpointIPConfigurationProperties": {
      "type": "object",
      "description": "Properties of an IP Configuration of the private endpoint.",
      "properties": {
        "groupId": {
          "type": "string",
          "description": "The ID of a group obtained from the remote resource that this private endpoint should connect to."
        },
        "memberName": {
          "type": "string",
          "description": "The member name of a group obtained from the remote resource that this private endpoint should connect to."
        },
        "privateIPAddress": {
          "type": "string",
          "description": "A private ip address obtained from the private endpoint's subnet."
        }
      }
    },
    "PrivateEndpointProperties": {
      "type": "object",
      "description": "Properties of the private endpoint.",
      "properties": {
        "subnet": {
          "$ref": "#/$defs/Subnet",
          "description": "The ID of the subnet from which the private IP will be allocated."
        },
        "networkInterfaces": {
          "type": "array",
          "description": "An array of references to the network interfaces created for this private endpoint.",
          "items": {
            "$ref": "#/$defs/NetworkInterface"
          },
          "readOnly": true
        },
        "provisioningState": {
          "$ref": "#/$defs/ProvisioningState",
          "description": "The provisioning state of the private endpoint resource.",
          "readOnly": true
        },
        "ipVersionType": {
          "type": "string",
          "description": "Specifies the IP version type for the private IPs of the private endpoint. If not defined, this defaults to IPv4.",
          "default": "IPv4",
          "enum": [
            "IPv4",
            "IPv6",
            "DualStack"
          ],
          "x-ms-enum": {
            "name": "PrivateEndpointIPVersionType",
            "modelAsString": true,
            "values": [
              {
                "name": "IPv4",
                "value": "IPv4",
                "description": "Indicates that the Private IPs of the private endpoint will be IPv4 only."
              },
              {
                "name": "IPv6",
                "value": "IPv6",
                "description": "Indicates that the Private IPs of the private endpoint will be IPv6 only."
              },
              {
                "name": "DualStack",
                "value": "DualStack",
                "description": "Indicates that the Private IPs of the private endpoint can be both IPv4 and IPv6."
              }
            ]
          }
        },
        "privateLinkServiceConnections": {
          "type": "array",
          "description": "A grouping of information about the connection to the remote resource.",
          "items": {
            "$ref": "#/$defs/PrivateLinkServiceConnection"
          }
        },
        "manualPrivateLinkServiceConnections": {
          "type": "array",
          "description": "A grouping of information about the connection to the remote resource. Used when the network admin does not have access to approve connections to the remote resource.",
          "items": {
            "$ref": "#/$defs/PrivateLinkServiceConnection"
          }
        },
        "customDnsConfigs": {
          "type": "array",
          "description": "An array of custom dns configurations.",
          "items": {
            "$ref": "#/$defs/CustomDnsConfigPropertiesFormat"
          }
        },
        "applicationSecurityGroups": {
          "type": "array",
          "description": "Application security groups in which the private endpoint IP configuration is included.",
          "items": {
            "$ref": "#/$defs/ApplicationSecurityGroup"
          }
        },
        "ipConfigurations": {
          "type": "array",
          "description": "A list of IP configurations of the private endpoint. This will be used to map to the First Party Service's endpoints.",
          "items": {
            "$ref": "#/$defs/PrivateEndpointIPConfiguration"
          }
        },
        "customNetworkInterfaceName": {
          "type": "string",
          "description": "The custom name of the network interface attached to the private endpoint."
        },
        "billingSku": {
          "$ref": "#/$defs/PrivateEndpointBillingSku",
          "description": "The billing sku of the private endpoint."
        }
      }
    },
    "PrivateLinkService": {
      "type": "object",
      "description": "Private link service resource.",
      "properties": {
        "properties": {
          "$ref": "#/$defs/PrivateLinkServiceProperties",
          "description": "Properties of the private link service.",
          "x-ms-client-flatten": true
        },
        "extendedLocation": {
          "$ref": "#/$defs/ExtendedLocation",
          "description": "The extended location of the load balancer."
        },
        "etag": {
          "type": "string",
          "description": "A unique read-only string that changes whenever the resource is updated.",
          "readOnly": true
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/Resource"
        }
      ]
    },
    "PrivateLinkServiceConnection": {
      "type": "object",
      "description": "PrivateLinkServiceConnection resource.",
      "properties": {
        "properties": {
          "$ref": "#/$defs/PrivateLinkServiceConnectionProperties",
          "description": "Properties of the private link service connection.",
          "x-ms-client-flatten": true
        },
        "name": {
          "type": "string",
          "description": "The name of the resource that is unique within a resource group. This name can be used to access the resource."
        },
        "type": {
          "type": "string",
          "description": "The resource type.",
          "readOnly": true
        },
        "etag": {
          "type": "string",
          "description": "A unique read-only string that changes whenever the resource is updated.",
          "readOnly": true
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/SubResource"
        }
      ]
    },
    "PrivateLinkServiceConnectionProperties": {
      "type": "object",
      "description": "Properties of the PrivateLinkServiceConnection.",
      "properties": {
        "provisioningState": {
          "$ref": "#/$defs/ProvisioningState",
          "description": "The provisioning state of the private link service connection resource.",
          "readOnly": true
        },
        "privateLinkServiceId": {
          "type": "string",
          "description": "The resource id of private link service."
        },
        "groupIds": {
          "type": "array",
          "description": "The ID(s) of the group(s) obtained from the remote resource that this private endpoint should connect to.",
          "items": {
            "type": "string"
          }
        },
        "requestMessage": {
          "type": "string",
          "description": "A message passed to the owner of the remote resource with this connection request. Restricted to 140 chars."
        },
        "privateLinkServiceConnectionState": {
          "$ref": "#/$defs/PrivateLinkServiceConnectionState",
          "description": "A collection of read-only information about the state of the connection to the remote resource."
        },
        "approvalReference": {
          "$ref": "#/$defs/ApprovalReference",
          "description": "A reference to an existing approved private endpoint whose connection approval state should be inherited by this connection at creation time."
        }
      }
    },
    "PrivateLinkServiceConnectionState": {
      "type": "object",
      "description": "A collection of information about the state of the connection between service consumer and provider.",
      "properties": {
        "status": {
          "type": "string",
          "description": "Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service."
        },
        "description": {
          "type": "string",
          "description": "The reason for approval/rejection of the connection."
        },
        "actionsRequired": {
          "type": "string",
          "description": "A message indicating if changes on the service provider require any updates on the consumer."
        }
      }
    },
    "PrivateLinkServiceIpConfiguration": {
      "type": "object",
      "description": "The private link service ip configuration.",
      "properties": {
        "properties": {
          "$ref": "#/$defs/PrivateLinkServiceIpConfigurationProperties",
          "description": "Properties of the private link service ip configuration.",
          "x-ms-client-flatten": true
        },
        "name": {
          "type": "string",
          "description": "The name of private link service ip configuration."
        },
        "etag": {
          "type": "string",
          "description": "A unique read-only string that changes whenever the resource is updated.",
          "readOnly": true
        },
        "type": {
          "type": "string",
          "description": "The resource type.",
          "readOnly": true
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/SubResource"
        }
      ]
    },
    "PrivateLinkServiceIpConfigurationProperties": {
      "type": "object",
      "description": "Properties of private link service IP configuration.",
      "properties": {
        "privateIPAddress": {
          "type": "string",
          "description": "The private IP address of the IP configuration."
        },
        "privateIPAllocationMethod": {
          "$ref": "#/$defs/IPAllocationMethod",
          "description": "The private IP address allocation method."
        },
        "subnet": {
          "$ref": "#/$defs/Subnet",
          "description": "The reference to the subnet resource."
        },
        "primary": {
          "type": "boolean",
          "description": "Whether the ip configuration is primary or not."
        },
        "provisioningState": {
          "$ref": "#/$defs/ProvisioningState",
          "description": "The provisioning state of the private link service IP configuration resource.",
          "readOnly": true
        },
        "privateIPAddressVersion": {
          "$ref": "#/$defs/IPVersion",
          "description": "Whether the specific IP configuration is IPv4 or IPv6. Default is IPv4."
        }
      }
    },
    "PrivateLinkServiceProperties": {
      "type": "object",
      "description": "Properties of the private link service.",
      "properties": {
        "loadBalancerFrontendIpConfigurations": {
          "type": "array",
          "description": "An array of references to the load balancer IP configurations.",
          "items": {
            "$ref": "#/$defs/FrontendIPConfiguration"
          }
        },
        "ipConfigurations": {
          "type": "array",
          "description": "An array of private link service IP configurations.",
          "items": {
            "$ref": "#/$defs/PrivateLinkServiceIpConfiguration"
          }
        },
        "destinationIPAddress": {
          "type": "string",
          "description": "The destination IP address of the private link service."
        },
        "accessMode": {
          "$ref": "#/$defs/AccessMode",
          "description": "The access mode of the private link service."
        },
        "networkInterfaces": {
          "type": "array",
          "description": "An array of references to the network interfaces created for this private link service.",
          "items": {
            "$ref": "#/$defs/NetworkInterface"
          },
          "readOnly": true
        },
        "provisioningState": {
          "$ref": "#/$defs/ProvisioningState",
          "description": "The provisioning state of the private link service resource.",
          "readOnly": true
        },
        "privateEndpointConnections": {
          "type": "array",
          "description": "An array of list about connections to the private endpoint.",
          "items": {
            "$ref": "#/$defs/PrivateEndpointConnection"
          },
          "readOnly": true
        },
        "visibility": {
          "$ref": "#/$defs/PrivateLinkServicePropertiesVisibility",
          "description": "The visibility list of the private link service."
        },
        "autoApproval": {
          "$ref": "#/$defs/PrivateLinkServicePropertiesAutoApproval",
          "description": "The auto-approval list of the private link service."
        },
        "fqdns": {
          "type": "array",
          "description": "The list of Fqdn.",
          "items": {
            "type": "string"
          }
        },
        "alias": {
          "type": "string",
          "description": "The alias of the private link service.",
          "readOnly": true
        },
        "enableProxyProtocol": {
          "type": "boolean",
          "description": "Whether the private link service is enabled for proxy protocol or not."
        }
      }
    },
    "PrivateLinkServicePropertiesAutoApproval": {
      "type": "object",
      "description": "The auto-approval list of the private link service.",
      "allOf": [
        {
          "$ref": "#/$defs/ResourceSet"
        }
      ]
    },
    "PrivateLinkServicePropertiesVisibility": {
      "type": "object",
      "description": "The visibility list of the private link service.",
      "allOf": [
        {
          "$ref": "#/$defs/ResourceSet"
        }
      ]
    },
    "ProtocolType": {
      "type": "string",
      "description": "RNM supported protocol types.",
      "enum": [
        "DoNotUse",
        "Icmp",
        "Tcp",
        "Udp",
        "Gre",
        "Esp",
        "Ah",
        "Vxlan",
        "All"
      ],
      "x-ms-enum": {
        "name": "ProtocolType",
        "modelAsString": true,
        "values": [
          {
            "name": "DoNotUse",
            "value": "DoNotUse",
            "description": "DoNotUse"
          },
          {
            "name": "Icmp",
            "value": "Icmp",
            "description": "Icmp"
          },
          {
            "name": "Tcp",
            "value": "Tcp",
            "description": "Tcp"
          },
          {
            "name": "Udp",
            "value": "Udp",
            "description": "Udp"
          },
          {
            "name": "Gre",
            "value": "Gre",
            "description": "Gre"
          },
          {
            "name": "Esp",
            "value": "Esp",
            "description": "Esp"
          },
          {
            "name": "Ah",
            "value": "Ah",
            "description": "Ah"
          },
          {
            "name": "Vxlan",
            "value": "Vxlan",
            "description": "Vxlan"
          },
          {
            "name": "All",
            "value": "All",
            "description": "All"
          }
        ]
      }
    },
    "ProvisioningState": {
      "type": "string",
      "description": "Provisioning states of a resource.",
      "enum": [
        "Failed",
        "Succeeded",
        "Canceled",
        "Creating",
        "Updating",
        "Deleting"
      ],
      "x-ms-enum": {
        "name": "ProvisioningState",
        "modelAsString": true,
        "values": [
          {
            "name": "Failed",
            "value": "Failed",
            "description": "Failed"
          },
          {
            "name": "Succeeded",
            "value": "Succeeded",
            "description": "Succeeded"
          },
          {
            "name": "Canceled",
            "value": "Canceled",
            "description": "Canceled"
          },
          {
            "name": "Creating",
            "value": "Creating",
            "description": "Creating"
          },
          {
            "name": "Updating",
            "value": "Updating",
            "description": "Updating"
          },
          {
            "name": "Deleting",
            "value": "Deleting",
            "description": "Deleting"
          }
        ]
      }
    },
    "PublicIPAddress": {
      "type": "object",
      "description": "Public IP address resource.",
      "properties": {
        "properties": {
          "$ref": "#/$defs/PublicIPAddressPropertiesFormat",
          "description": "Public IP address properties.",
          "x-ms-client-flatten": true
        },
        "extendedLocation": {
          "$ref": "#/$defs/ExtendedLocation",
          "description": "The extended location of the public ip address."
        },
        "sku": {
          "$ref": "#/$defs/PublicIPAddressSku",
          "description": "The public IP address SKU."
        },
        "etag": {
          "type": "string",
          "description": "A unique read-only string that changes whenever the resource is updated.",
          "readOnly": true
        },
        "zones": {
          "type": "array",
          "description": "A list of availability zones denoting the IP allocated for the resource needs to come from.",
          "items": {
            "type": "string"
          }
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/Resource"
        }
      ]
    },
    "PublicIPAddressDnsSettings": {
      "type": "object",
      "description": "Contains FQDN of the DNS record associated with the public IP address.",
      "properties": {
        "domainNameLabel": {
          "type": "string",
          "description": "The domain name label. The concatenation of the domain name label and the regionalized DNS zone make up the fully qualified domain name associated with the public IP address. If a domain name label is specified, an A DNS record is created for the public IP in the Microsoft Azure DNS system."
        },
        "domainNameLabelScope": {
          "$ref": "#/$defs/PublicIpAddressDnsSettingsDomainNameLabelScope",
          "description": "The domain name label scope. If a domain name label and a domain name label scope are specified, an A DNS record is created for the public IP in the Microsoft Azure DNS system with a hashed value includes in FQDN."
        },
        "fqdn": {
          "type": "string",
          "description": "The Fully Qualified Domain Name of the A DNS record associated with the public IP. This is the concatenation of the domainNameLabel and the regionalized DNS zone."
        },
        "reverseFqdn": {
          "type": "string",
          "description": "The reverse FQDN. A user-visible, fully qualified domain name that resolves to this public IP address. If the reverseFqdn is specified, then a PTR DNS record is created pointing from the IP address in the in-addr.arpa domain to the reverse FQDN."
        }
      }
    },
    "PublicIPAddressMigrationPhase": {
      "type": "string",
      "description": "Migration phase of Public IP Address.",
      "enum": [
        "None",
        "Prepare",
        "Commit",
        "Abort",
        "Committed"
      ],
      "x-ms-enum": {
        "name": "PublicIPAddressMigrationPhase",
        "modelAsString": true,
        "values": [
          {
            "name": "None",
            "value": "None",
            "description": "None"
          },
          {
            "name": "Prepare",
            "value": "Prepare",
            "description": "Prepare"
          },
          {
            "name": "Commit",
            "value": "Commit",
            "description": "Commit"
          },
          {
            "name": "Abort",
            "value": "Abort",
            "description": "Abort"
          },
          {
            "name": "Committed",
            "value": "Committed",
            "description": "Committed"
          }
        ]
      }
    },
    "PublicIPAddressPropertiesFormat": {
      "type": "object",
      "description": "Public IP address properties.",
      "properties": {
        "publicIPAllocationMethod": {
          "$ref": "#/$defs/IPAllocationMethod",
          "description": "The public IP address allocation method."
        },
        "publicIPAddressVersion": {
          "$ref": "#/$defs/IPVersion",
          "description": "The public IP address version."
        },
        "ipConfiguration": {
          "$ref": "#/$defs/IPConfiguration",
          "description": "The IP configuration associated with the public IP address.",
          "readOnly": true
        },
        "dnsSettings": {
          "$ref": "#/$defs/PublicIPAddressDnsSettings",
          "description": "The FQDN of the DNS record associated with the public IP address."
        },
        "ddosSettings": {
          "$ref": "#/$defs/DdosSettings",
          "description": "The DDoS protection custom policy associated with the public IP address."
        },
        "ipTags": {
          "type": "array",
          "description": "The list of tags associated with the public IP address.",
          "items": {
            "$ref": "#/$defs/IpTag"
          }
        },
        "ipAddress": {
          "type": "string",
          "description": "The IP address associated with the public IP address resource."
        },
        "publicIPPrefix": {
          "$ref": "#/$defs/SubResource",
          "description": "The Public IP Prefix this Public IP Address should be allocated from."
        },
        "idleTimeoutInMinutes": {
          "type": "integer",
          "format": "int32",
          "description": "The idle timeout of the public IP address."
        },
        "resourceGuid": {
          "type": "string",
          "description": "The resource GUID property of the public IP address resource.",
          "readOnly": true
        },
        "provisioningState": {
          "$ref": "#/$defs/ProvisioningState",
          "description": "The provisioning state of the public IP address resource.",
          "readOnly": true
        },
        "servicePublicIPAddress": {
          "$ref": "#/$defs/PublicIPAddress",
          "description": "The service public IP address of the public IP address resource."
        },
        "natGateway": {
          "$ref": "#/$defs/NatGateway",
          "description": "The NatGateway for the Public IP address."
        },
        "migrationPhase": {
          "$ref": "#/$defs/PublicIPAddressMigrationPhase",
          "description": "Migration phase of Public IP Address."
        },
        "linkedPublicIPAddress": {
          "$ref": "#/$defs/PublicIPAddress",
          "description": "The linked public IP address of the public IP address resource."
        },
        "deleteOption": {
          "$ref": "#/$defs/DeleteOptions",
          "description": "Specify what happens to the public IP address when the VM using it is deleted"
        },
        "upgradedToV2": {
          "type": "boolean",
          "description": "Whether the public IP address SKU has been upgraded from Standard to StandardV2.",
          "readOnly": true
        }
      }
    },
    "PublicIPAddressSku": {
      "type": "object",
      "description": "SKU of a public IP address.",
      "properties": {
        "name": {
          "$ref": "#/$defs/PublicIPAddressSkuName",
          "description": "Name of a public IP address SKU."
        },
        "tier": {
          "$ref": "#/$defs/PublicIPAddressSkuTier",
          "description": "Tier of a public IP address SKU."
        }
      }
    },
    "PublicIPAddressSkuName": {
      "type": "string",
      "description": "Name of a public IP address SKU.",
      "enum": [
        "Basic",
        "Standard",
        "StandardV2"
      ],
      "x-ms-enum": {
        "name": "PublicIPAddressSkuName",
        "modelAsString": true,
        "values": [
          {
            "name": "Basic",
            "value": "Basic",
            "description": "Basic"
          },
          {
            "name": "Standard",
            "value": "Standard",
            "description": "Standard"
          },
          {
            "name": "StandardV2",
            "value": "StandardV2",
            "description": "StandardV2"
          }
        ]
      }
    },
    "PublicIPAddressSkuTier": {
      "type": "string",
      "description": "Tier of a public IP address SKU.",
      "enum": [
        "Regional",
        "Global"
      ],
      "x-ms-enum": {
        "name": "PublicIPAddressSkuTier",
        "modelAsString": true,
        "values": [
          {
            "name": "Regional",
            "value": "Regional",
            "description": "Regional"
          },
          {
            "name": "Global",
            "value": "Global",
            "description": "Global"
          }
        ]
      }
    },
    "PublicIpAddressDnsSettingsDomainNameLabelScope": {
      "type": "string",
      "description": "The domain name label scope. If a domain name label and a domain name label scope are specified, an A DNS record is created for the public IP in the Microsoft Azure DNS system with a hashed value includes in FQDN.",
      "enum": [
        "TenantReuse",
        "SubscriptionReuse",
        "ResourceGroupReuse",
        "NoReuse"
      ],
      "x-ms-enum": {
        "name": "PublicIpAddressDnsSettingsDomainNameLabelScope",
        "modelAsString": false,
        "values": [
          {
            "name": "TenantReuse",
            "value": "TenantReuse",
            "description": "TenantReuse"
          },
          {
            "name": "SubscriptionReuse",
            "value": "SubscriptionReuse",
            "description": "SubscriptionReuse"
          },
          {
            "name": "ResourceGroupReuse",
            "value": "ResourceGroupReuse",
            "description": "ResourceGroupReuse"
          },
          {
            "name": "NoReuse",
            "value": "NoReuse",
            "description": "NoReuse"
          }
        ]
      }
    },
    "QosDefinition": {
      "type": "object",
      "description": "Quality of Service defines the traffic configuration between endpoints. Mandatory to have one marking.",
      "properties": {
        "markings": {
          "type": "array",
          "description": "List of markings to be used in the configuration.",
          "items": {
            "type": "integer",
            "format": "int32"
          }
        },
        "sourceIpRanges": {
          "type": "array",
          "description": "Source IP ranges.",
          "items": {
            "$ref": "#/$defs/QosIpRange"
          }
        },
        "destinationIpRanges": {
          "type": "array",
          "description": "Destination IP ranges.",
          "items": {
            "$ref": "#/$defs/QosIpRange"
          }
        },
        "sourcePortRanges": {
          "type": "array",
          "description": "Sources port ranges.",
          "items": {
            "$ref": "#/$defs/QosPortRange"
          }
        },
        "destinationPortRanges": {
          "type": "array",
          "description": "Destination port ranges.",
          "items": {
            "$ref": "#/$defs/QosPortRange"
          }
        },
        "protocol": {
          "$ref": "#/$defs/ProtocolType",
          "description": "RNM supported protocol types."
        }
      }
    },
    "QosIpRange": {
      "type": "object",
      "description": "Qos Traffic Profiler IP Range properties.",
      "properties": {
        "startIP": {
          "type": "string",
          "description": "Start IP Address."
        },
        "endIP": {
          "type": "string",
          "description": "End IP Address."
        }
      }
    },
    "QosPortRange": {
      "type": "object",
      "description": "Qos Traffic Profiler Port range properties.",
      "properties": {
        "start": {
          "type": "integer",
          "format": "int32",
          "description": "Qos Port Range start."
        },
        "end": {
          "type": "integer",
          "format": "int32",
          "description": "Qos Port Range end."
        }
      }
    },
    "Resource": {
      "type": "object",
      "description": "Common resource representation.",
      "properties": {
        "id": {
          "type": "string",
          "description": "Resource ID."
        },
        "name": {
          "type": "string",
          "description": "Resource name.",
          "readOnly": true
        },
        "type": {
          "type": "string",
          "description": "Resource type.",
          "readOnly": true
        },
        "location": {
          "type": "string",
          "description": "Resource location."
        },
        "tags": {
          "type": "object",
          "description": "Resource tags.",
          "additionalProperties": {
            "type": "string"
          }
        }
      },
      "x-ms-azure-resource": true
    },
    "ResourceNavigationLink": {
      "type": "object",
      "description": "ResourceNavigationLink resource.",
      "properties": {
        "properties": {
          "$ref": "#/$defs/ResourceNavigationLinkFormat",
          "description": "Resource navigation link properties format.",
          "x-ms-client-flatten": true
        },
        "name": {
          "type": "string",
          "description": "Name of the resource that is unique within a resource group. This name can be used to access the resource."
        },
        "id": {
          "type": "string",
          "description": "Resource navigation link identifier.",
          "readOnly": true
        },
        "etag": {
          "type": "string",
          "description": "A unique read-only string that changes whenever the resource is updated.",
          "readOnly": true
        },
        "type": {
          "type": "string",
          "description": "Resource type.",
          "readOnly": true
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/SubResource"
        }
      ]
    },
    "ResourceNavigationLinkFormat": {
      "type": "object",
      "description": "Properties of ResourceNavigationLink.",
      "properties": {
        "linkedResourceType": {
          "type": "string",
          "description": "Resource type of the linked resource."
        },
        "link": {
          "type": "string",
          "description": "Link to the external resource."
        },
        "provisioningState": {
          "$ref": "#/$defs/ProvisioningState",
          "description": "The provisioning state of the resource navigation link resource.",
          "readOnly": true
        }
      }
    },
    "ResourceSet": {
      "type": "object",
      "description": "The base resource set for visibility and auto-approval.",
      "properties": {
        "subscriptions": {
          "type": "array",
          "description": "The list of subscriptions.",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "Route": {
      "type": "object",
      "description": "Route resource.",
      "properties": {
        "properties": {
          "$ref": "#/$defs/RoutePropertiesFormat",
          "description": "Properties of the route.",
          "x-ms-client-flatten": true
        },
        "etag": {
          "type": "string",
          "description": "A unique read-only string that changes whenever the resource is updated.",
          "readOnly": true
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/SubResourceModel"
        }
      ]
    },
    "RouteNextHopEcmp": {
      "type": "object",
      "description": "The next hop definition for ECMP routes containing multiple next hop IP addresses.",
      "properties": {
        "nextHopIpAddresses": {
          "type": "array",
          "description": "List of next hop IP addresses for ECMP routing. Must contain between 2 and 64 IP addresses.",
          "minItems": 2,
          "maxItems": 64,
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "nextHopIpAddresses"
      ]
    },
    "RouteNextHopType": {
      "type": "string",
      "description": "The type of Azure hop the packet should be sent to.",
      "enum": [
        "VirtualNetworkGateway",
        "VnetLocal",
        "Internet",
        "VirtualAppliance",
        "VirtualApplianceEcmp",
        "None"
      ],
      "x-ms-enum": {
        "name": "RouteNextHopType",
        "modelAsString": true,
        "values": [
          {
            "name": "VirtualNetworkGateway",
            "value": "VirtualNetworkGateway",
            "description": "VirtualNetworkGateway"
          },
          {
            "name": "VnetLocal",
            "value": "VnetLocal",
            "description": "VnetLocal"
          },
          {
            "name": "Internet",
            "value": "Internet",
            "description": "Internet"
          },
          {
            "name": "VirtualAppliance",
            "value": "VirtualAppliance",
            "description": "VirtualAppliance"
          },
          {
            "name": "VirtualApplianceEcmp",
            "value": "VirtualApplianceEcmp",
            "description": "Routes traffic to virtual appliances using Equal-Cost Multi-Path (ECMP) routing with multiple next hop IP addresses."
          },
          {
            "name": "None",
            "value": "None",
            "description": "No next hop type."
          }
        ]
      }
    },
    "RoutePropertiesFormat": {
      "type": "object",
      "description": "Route resource.",
      "properties": {
        "addressPrefix": {
          "type": "string",
          "description": "The destination CIDR to which the route applies."
        },
        "nextHopType": {
          "$ref": "#/$defs/RouteNextHopType",
          "description": "The type of Azure hop the packet should be sent to."
        },
        "nextHopIpAddress": {
          "type": "string",
          "description": "The IP address packets should be forwarded to. Next hop values are only allowed in routes where the next hop type is VirtualAppliance."
        },
        "nextHop": {
          "$ref": "#/$defs/RouteNextHopEcmp",
          "description": "The next hop definition containing ECMP next hop IP addresses. Only allowed when nextHopType is VirtualApplianceEcmp."
        },
        "provisioningState": {
          "$ref": "#/$defs/ProvisioningState",
          "description": "The provisioning state of the route resource.",
          "readOnly": true
        },
        "hasBgpOverride": {
          "type": "boolean",
          "description": "A value indicating whether this route overrides overlapping BGP routes regardless of LPM.",
          "readOnly": true
        }
      },
      "required": [
        "nextHopType"
      ]
    },
    "RouteTable": {
      "type": "object",
      "description": "Route table resource.",
      "properties": {
        "properties": {
          "$ref": "#/$defs/RouteTablePropertiesFormat",
          "description": "Properties of the route table.",
          "x-ms-client-flatten": true
        },
        "etag": {
          "type": "string",
          "description": "A unique read-only string that changes whenever the resource is updated.",
          "readOnly": true
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/Resource"
        }
      ]
    },
    "RouteTablePropertiesFormat": {
      "type": "object",
      "description": "Route Table resource.",
      "properties": {
        "routes": {
          "type": "array",
          "description": "Collection of routes contained within a route table.",
          "items": {
            "$ref": "#/$defs/Route"
          }
        },
        "subnets": {
          "type": "array",
          "description": "A collection of references to subnets.",
          "items": {
            "$ref": "#/$defs/Subnet"
          },
          "readOnly": true
        },
        "disableBgpRoutePropagation": {
          "type": "boolean",
          "description": "Whether to disable the routes learned by BGP on that route table. True means disable."
        },
        "disablePeeringRoute": {
          "$ref": "#/$defs/DisablePeeringRoute",
          "description": "Whether to disable the routes learned by peering on the route table. 'None' means peering routes are enabled, 'All' means all peering routes are disabled."
        },
        "provisioningState": {
          "$ref": "#/$defs/ProvisioningState",
          "description": "The provisioning state of the route table resource.",
          "readOnly": true
        },
        "resourceGuid": {
          "type": "string",
          "description": "The resource GUID property of the route table.",
          "readOnly": true
        }
      }
    },
    "SecurityRule": {
      "type": "object",
      "description": "Network security rule.",
      "properties": {
        "properties": {
          "$ref": "#/$defs/SecurityRulePropertiesFormat",
          "description": "Properties of the security rule.",
          "x-ms-client-flatten": true
        },
        "etag": {
          "type": "string",
          "description": "A unique read-only string that changes whenever the resource is updated.",
          "readOnly": true
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/SubResourceModel"
        }
      ]
    },
    "SecurityRuleAccess": {
      "type": "string",
      "description": "Whether network traffic is allowed or denied.",
      "enum": [
        "Allow",
        "Deny"
      ],
      "x-ms-enum": {
        "name": "SecurityRuleAccess",
        "modelAsString": true,
        "values": [
          {
            "name": "Allow",
            "value": "Allow",
            "description": "Allow"
          },
          {
            "name": "Deny",
            "value": "Deny",
            "description": "Deny"
          }
        ]
      }
    },
    "SecurityRuleDirection": {
      "type": "string",
      "description": "The direction of the rule. The direction specifies if rule will be evaluated on incoming or outgoing traffic.",
      "enum": [
        "Inbound",
        "Outbound"
      ],
      "x-ms-enum": {
        "name": "SecurityRuleDirection",
        "modelAsString": true,
        "values": [
          {
            "name": "Inbound",
            "value": "Inbound",
            "description": "Inbound"
          },
          {
            "name": "Outbound",
            "value": "Outbound",
            "description": "Outbound"
          }
        ]
      }
    },
    "SecurityRulePropertiesFormat": {
      "type": "object",
      "description": "Security rule resource.",
      "properties": {
        "description": {
          "type": "string",
          "description": "A description for this rule. Restricted to 140 chars."
        },
        "protocol": {
          "$ref": "#/$defs/SecurityRuleProtocol",
          "description": "Network protocol this rule applies to."
        },
        "sourcePortRange": {
          "type": "string",
          "description": "The source port or range. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports."
        },
        "destinationPortRange": {
          "type": "string",
          "description": "The destination port or range. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports."
        },
        "sourceAddressPrefix": {
          "type": "string",
          "description": "The CIDR or source IP range. Asterisk '*' can also be used to match all source IPs. Default tags such as 'VirtualNetwork', 'AzureLoadBalancer' and 'Internet' can also be used. If this is an ingress rule, specifies where network traffic originates from."
        },
        "sourceAddressPrefixes": {
          "type": "array",
          "description": "The CIDR or source IP ranges.",
          "items": {
            "type": "string"
          }
        },
        "sourceApplicationSecurityGroups": {
          "type": "array",
          "description": "The application security group specified as source.",
          "items": {
            "$ref": "#/$defs/ApplicationSecurityGroup"
          }
        },
        "destinationAddressPrefix": {
          "type": "string",
          "description": "The destination address prefix. CIDR or destination IP range. Asterisk '*' can also be used to match all source IPs. Default tags such as 'VirtualNetwork', 'AzureLoadBalancer' and 'Internet' can also be used."
        },
        "destinationAddressPrefixes": {
          "type": "array",
          "description": "The destination address prefixes. CIDR or destination IP ranges.",
          "items": {
            "type": "string"
          }
        },
        "destinationApplicationSecurityGroups": {
          "type": "array",
          "description": "The application security group specified as destination.",
          "items": {
            "$ref": "#/$defs/ApplicationSecurityGroup"
          }
        },
        "sourcePortRanges": {
          "type": "array",
          "description": "The source port ranges.",
          "items": {
            "type": "string"
          }
        },
        "destinationPortRanges": {
          "type": "array",
          "description": "The destination port ranges.",
          "items": {
            "type": "string"
          }
        },
        "access": {
          "$ref": "#/$defs/SecurityRuleAccess",
          "description": "The network traffic is allowed or denied."
        },
        "priority": {
          "type": "integer",
          "format": "int32",
          "description": "The priority of the rule. The value can be between 100 and 4096. The priority number must be unique for each rule in the collection. The lower the priority number, the higher the priority of the rule."
        },
        "direction": {
          "$ref": "#/$defs/SecurityRuleDirection",
          "description": "The direction of the rule. The direction specifies if rule will be evaluated on incoming or outgoing traffic."
        },
        "provisioningState": {
          "$ref": "#/$defs/ProvisioningState",
          "description": "The provisioning state of the security rule resource.",
          "readOnly": true
        }
      },
      "required": [
        "protocol",
        "access",
        "priority",
        "direction"
      ]
    },
    "SecurityRuleProtocol": {
      "type": "string",
      "description": "Network protocol this rule applies to.",
      "enum": [
        "Tcp",
        "Udp",
        "Icmp",
        "Esp",
        "*",
        "Ah"
      ],
      "x-ms-enum": {
        "name": "SecurityRuleProtocol",
        "modelAsString": true,
        "values": [
          {
            "name": "Tcp",
            "value": "Tcp",
            "description": "Tcp"
          },
          {
            "name": "Udp",
            "value": "Udp",
            "description": "Udp"
          },
          {
            "name": "Icmp",
            "value": "Icmp",
            "description": "Icmp"
          },
          {
            "name": "Esp",
            "value": "Esp",
            "description": "Esp"
          },
          {
            "name": "Asterisk",
            "value": "*",
            "description": "*"
          },
          {
            "name": "Ah",
            "value": "Ah",
            "description": "Ah"
          }
        ]
      }
    },
    "ServiceAssociationLink": {
      "type": "object",
      "description": "ServiceAssociationLink resource.",
      "properties": {
        "properties": {
          "$ref": "#/$defs/ServiceAssociationLinkPropertiesFormat",
          "description": "Resource navigation link properties format.",
          "x-ms-client-flatten": true
        },
        "name": {
          "type": "string",
          "description": "Name of the resource that is unique within a resource group. This name can be used to access the resource."
        },
        "etag": {
          "type": "string",
          "description": "A unique read-only string that changes whenever the resource is updated.",
          "readOnly": true
        },
        "type": {
          "type": "string",
          "description": "Resource type.",
          "readOnly": true
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/SubResource"
        }
      ]
    },
    "ServiceAssociationLinkPropertiesFormat": {
      "type": "object",
      "description": "Properties of ServiceAssociationLink.",
      "properties": {
        "linkedResourceType": {
          "type": "string",
          "description": "Resource type of the linked resource."
        },
        "link": {
          "type": "string",
          "description": "Link to the external resource."
        },
        "provisioningState": {
          "$ref": "#/$defs/ProvisioningState",
          "description": "The provisioning state of the service association link resource.",
          "readOnly": true
        },
        "allowDelete": {
          "type": "boolean",
          "description": "If true, the resource can be deleted."
        },
        "locations": {
          "type": "array",
          "description": "A list of locations.",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "ServiceDelegationPropertiesFormat": {
      "type": "object",
      "description": "Properties of a service delegation.",
      "properties": {
        "serviceName": {
          "type": "string",
          "description": "The name of the service to whom the subnet should be delegated (e.g. Microsoft.Sql/servers)."
        },
        "actions": {
          "type": "array",
          "description": "The actions permitted to the service upon delegation.",
          "items": {
            "type": "string"
          },
          "readOnly": true
        },
        "provisioningState": {
          "$ref": "#/$defs/ProvisioningState",
          "description": "The provisioning state of the service delegation resource.",
          "readOnly": true
        }
      }
    },
    "ServiceEndpointPolicy": {
      "type": "object",
      "description": "Service End point policy resource.",
      "properties": {
        "properties": {
          "$ref": "#/$defs/ServiceEndpointPolicyPropertiesFormat",
          "description": "Properties of the service end point policy.",
          "x-ms-client-flatten": true
        },
        "etag": {
          "type": "string",
          "description": "A unique read-only string that changes whenever the resource is updated.",
          "readOnly": true
        },
        "kind": {
          "type": "string",
          "description": "Kind of service endpoint policy. This is metadata used for the Azure portal experience.",
          "readOnly": true
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/Resource"
        }
      ]
    },
    "ServiceEndpointPropertiesFormat": {
      "type": "object",
      "description": "The service endpoint properties.",
      "properties": {
        "service": {
          "type": "string",
          "description": "The type of the endpoint service."
        },
        "networkIdentifier": {
          "$ref": "#/$defs/SubResource",
          "description": "SubResource as network identifier."
        },
        "locations": {
          "type": "array",
          "description": "A list of locations.",
          "items": {
            "type": "string"
          }
        },
        "provisioningState": {
          "$ref": "#/$defs/ProvisioningState",
          "description": "The provisioning state of the service endpoint resource.",
          "readOnly": true
        }
      }
    },
    "SharingScope": {
      "type": "string",
      "description": "Set this property to Tenant to allow sharing subnet with other subscriptions in your AAD tenant. This property can only be set if defaultOutboundAccess is set to false, both properties can only be set if subnet is empty.",
      "enum": [
        "Tenant",
        "DelegatedServices"
      ],
      "x-ms-enum": {
        "name": "SharingScope",
        "modelAsString": true,
        "values": [
          {
            "name": "Tenant",
            "value": "Tenant",
            "description": "Tenant"
          },
          {
            "name": "DelegatedServices",
            "value": "DelegatedServices",
            "description": "DelegatedServices"
          }
        ]
      }
    },
    "SubResource": {
      "type": "object",
      "description": "Reference to another subresource.",
      "properties": {
        "id": {
          "type": "string",
          "description": "Resource ID."
        }
      }
    },
    "SubResourceModel": {
      "type": "object",
      "description": "Reference to another subresource.",
      "properties": {
        "name": {
          "type": "string",
          "description": "Name of the resource."
        },
        "type": {
          "type": "string",
          "description": "Resource type.",
          "readOnly": true
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/SubResource"
        }
      ],
      "x-ms-azure-resource": true
    },
    "Subnet": {
      "type": "object",
      "description": "Subnet in a virtual network resource.",
      "properties": {
        "properties": {
          "$ref": "#/$defs/SubnetPropertiesFormat",
          "description": "Properties of the subnet.",
          "x-ms-client-flatten": true
        },
        "etag": {
          "type": "string",
          "description": "A unique read-only string that changes whenever the resource is updated.",
          "readOnly": true
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/SubResourceModel"
        }
      ]
    },
    "SubnetPropertiesFormat": {
      "type": "object",
      "description": "Properties of the subnet.",
      "properties": {
        "addressPrefix": {
          "type": "string",
          "description": "The address prefix for the subnet."
        },
        "addressPrefixes": {
          "type": "array",
          "description": "List of address prefixes for the subnet.",
          "items": {
            "type": "string"
          }
        },
        "networkSecurityGroup": {
          "$ref": "#/$defs/NetworkSecurityGroup",
          "description": "The reference to the NetworkSecurityGroup resource."
        },
        "routeTable": {
          "$ref": "#/$defs/RouteTable",
          "description": "The reference to the RouteTable resource."
        },
        "natGateway": {
          "$ref": "#/$defs/SubResource",
          "description": "Nat gateway associated with this subnet."
        },
        "serviceEndpoints": {
          "type": "array",
          "description": "An array of service endpoints.",
          "items": {
            "$ref": "#/$defs/ServiceEndpointPropertiesFormat"
          }
        },
        "serviceEndpointPolicies": {
          "type": "array",
          "description": "An array of service endpoint policies.",
          "items": {
            "$ref": "#/$defs/ServiceEndpointPolicy"
          }
        },
        "privateEndpoints": {
          "type": "array",
          "description": "An array of references to private endpoints.",
          "items": {
            "$ref": "#/$defs/PrivateEndpoint"
          },
          "readOnly": true
        },
        "ipConfigurations": {
          "type": "array",
          "description": "An array of references to the network interface IP configurations using subnet.",
          "items": {
            "$ref": "#/$defs/IPConfiguration"
          },
          "readOnly": true
        },
        "ipConfigurationProfiles": {
          "type": "array",
          "description": "Array of IP configuration profiles which reference this subnet.",
          "items": {
            "$ref": "#/$defs/IPConfigurationProfile"
          },
          "readOnly": true
        },
        "ipAllocations": {
          "type": "array",
          "description": "Array of IpAllocation which reference this subnet.",
          "items": {
            "$ref": "#/$defs/SubResource"
          }
        },
        "resourceNavigationLinks": {
          "type": "array",
          "description": "An array of references to the external resources using subnet.",
          "items": {
            "$ref": "#/$defs/ResourceNavigationLink"
          },
          "readOnly": true
        },
        "serviceAssociationLinks": {
          "type": "array",
          "description": "An array of references to services injecting into this subnet.",
          "items": {
            "$ref": "#/$defs/ServiceAssociationLink"
          },
          "readOnly": true
        },
        "delegations": {
          "type": "array",
          "description": "An array of references to the delegations on the subnet.",
          "items": {
            "$ref": "#/$defs/Delegation"
          }
        },
        "purpose": {
          "type": "string",
          "description": "A read-only string identifying the intention of use for this subnet based on delegations and other user-defined properties.",
          "readOnly": true
        },
        "provisioningState": {
          "$ref": "#/$defs/ProvisioningState",
          "description": "The provisioning state of the subnet resource.",
          "readOnly": true
        },
        "privateEndpointNetworkPolicies": {
          "type": "string",
          "description": "Enable or Disable apply network policies on private end point in the subnet.",
          "default": "Disabled",
          "enum": [
            "Enabled",
            "Disabled",
            "NetworkSecurityGroupEnabled",
            "RouteTableEnabled"
          ],
          "x-ms-enum": {
            "name": "VirtualNetworkPrivateEndpointNetworkPolicies",
            "modelAsString": true,
            "values": [
              {
                "name": "Enabled",
                "value": "Enabled",
                "description": "Enabled"
              },
              {
                "name": "Disabled",
                "value": "Disabled",
                "description": "Disabled"
              },
              {
                "name": "NetworkSecurityGroupEnabled",
                "value": "NetworkSecurityGroupEnabled",
                "description": "NetworkSecurityGroupEnabled"
              },
              {
                "name": "RouteTableEnabled",
                "value": "RouteTableEnabled",
                "description": "RouteTableEnabled"
              }
            ]
          }
        },
        "privateLinkServiceNetworkPolicies": {
          "type": "string",
          "description": "Enable or Disable apply network policies on private link service in the subnet.",
          "default": "Enabled",
          "enum": [
            "Enabled",
            "Disabled"
          ],
          "x-ms-enum": {
            "name": "VirtualNetworkPrivateLinkServiceNetworkPolicies",
            "modelAsString": true,
            "values": [
              {
                "name": "Enabled",
                "value": "Enabled",
                "description": "Enabled"
              },
              {
                "name": "Disabled",
                "value": "Disabled",
                "description": "Disabled"
              }
            ]
          }
        },
        "applicationGatewayIPConfigurations": {
          "type": "array",
          "description": "Application gateway IP configurations of virtual network resource.",
          "items": {
            "$ref": "#/$defs/ApplicationGatewayIPConfiguration"
          }
        },
        "sharingScope": {
          "$ref": "#/$defs/SharingScope",
          "description": "Set this property to Tenant to allow sharing subnet with other subscriptions in your AAD tenant. This property can only be set if defaultOutboundAccess is set to false, both properties can only be set if subnet is empty."
        },
        "defaultOutboundAccess": {
          "type": "boolean",
          "description": "Set this property to false to disable default outbound connectivity for all VMs in the subnet."
        },
        "ipamPoolPrefixAllocations": {
          "type": "array",
          "description": "A list of IPAM Pools for allocating IP address prefixes.",
          "items": {
            "$ref": "#/$defs/IpamPoolPrefixAllocation"
          }
        },
        "serviceGateway": {
          "$ref": "#/$defs/SubResource",
          "description": "Reference to an existing service gateway."
        }
      }
    },
    "VirtualNetworkTap": {
      "type": "object",
      "description": "Virtual Network Tap resource.",
      "properties": {
        "properties": {
          "$ref": "#/$defs/VirtualNetworkTapPropertiesFormat",
          "description": "Virtual Network Tap Properties.",
          "x-ms-client-flatten": true
        },
        "etag": {
          "type": "string",
          "description": "A unique read-only string that changes whenever the resource is updated.",
          "readOnly": true
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/Resource"
        }
      ]
    }
  }
}