{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-load-balancer/json-schema/microsoft-azure-load-balancer-load-balancer-schema.json",
  "title": "LoadBalancer",
  "description": "LoadBalancer resource.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-load-balancer-load-balancers-api-openapi.yml#/components/schemas/LoadBalancer",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/LoadBalancerPropertiesFormat",
      "description": "Properties of load balancer.",
      "x-ms-client-flatten": true
    },
    "etag": {
      "type": "string",
      "description": "A unique read-only string that changes whenever the resource is updated.",
      "readOnly": true
    },
    "extendedLocation": {
      "$ref": "#/$defs/ExtendedLocation",
      "description": "The extended location of the load balancer."
    },
    "sku": {
      "$ref": "#/$defs/LoadBalancerSku",
      "description": "The load balancer SKU."
    }
  },
  "allOf": [
    {
      "$ref": "#/$defs/Resource"
    }
  ],
  "$defs": {
    "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"
        }
      ]
    },
    "BackendAddressPoolPropertiesFormat": {
      "type": "object",
      "description": "Properties of the backend address pool.",
      "properties": {
        "location": {
          "type": "string",
          "description": "The location of the backend address pool."
        },
        "tunnelInterfaces": {
          "type": "array",
          "description": "An array of gateway load balancer tunnel interfaces.",
          "items": {
            "$ref": "#/$defs/GatewayLoadBalancerTunnelInterface"
          }
        },
        "loadBalancerBackendAddresses": {
          "type": "array",
          "description": "An array of backend addresses.",
          "items": {
            "$ref": "#/$defs/LoadBalancerBackendAddress"
          }
        },
        "backendIPConfigurations": {
          "type": "array",
          "description": "An array of references to IP addresses defined in network interfaces.",
          "items": {
            "$ref": "#/$defs/NetworkInterfaceIPConfiguration"
          },
          "readOnly": true
        },
        "loadBalancingRules": {
          "type": "array",
          "description": "An array of references to load balancing rules that use this backend address pool.",
          "items": {
            "$ref": "#/$defs/SubResource"
          },
          "readOnly": true
        },
        "outboundRule": {
          "$ref": "#/$defs/SubResource",
          "description": "A reference to an outbound rule that uses this backend address pool.",
          "readOnly": true
        },
        "outboundRules": {
          "type": "array",
          "description": "An array of references to outbound rules that use this backend address pool.",
          "items": {
            "$ref": "#/$defs/SubResource"
          },
          "readOnly": true
        },
        "inboundNatRules": {
          "type": "array",
          "description": "An array of references to inbound NAT rules that use this backend address pool.",
          "items": {
            "$ref": "#/$defs/SubResource"
          },
          "readOnly": true
        },
        "provisioningState": {
          "$ref": "#/$defs/ProvisioningState",
          "description": "The provisioning state of the backend address pool resource.",
          "readOnly": true
        },
        "drainPeriodInSeconds": {
          "type": "integer",
          "format": "int32",
          "description": "Amount of seconds Load Balancer waits for before sending RESET to client and backend address."
        },
        "virtualNetwork": {
          "$ref": "#/$defs/SubResource",
          "description": "A reference to a virtual network."
        },
        "syncMode": {
          "$ref": "#/$defs/SyncMode",
          "description": "Backend address synchronous mode for the backend pool"
        }
      }
    },
    "DdosFrontendIpConfigurationSettings": {
      "type": "object",
      "description": "DDoS protection settings for a frontend IP configuration.",
      "properties": {
        "ddosCustomPolicy": {
          "$ref": "#/$defs/SubResource",
          "description": "The reference to the DDoS Custom Policy resource."
        }
      }
    },
    "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."
        }
      }
    },
    "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"
        }
      ]
    },
    "FrontendIPConfigurationPropertiesFormat": {
      "type": "object",
      "description": "Properties of Frontend IP Configuration of the load balancer.",
      "properties": {
        "inboundNatRules": {
          "type": "array",
          "description": "An array of references to inbound rules that use this frontend IP.",
          "items": {
            "$ref": "#/$defs/SubResource"
          },
          "readOnly": true
        },
        "inboundNatPools": {
          "type": "array",
          "description": "An array of references to inbound pools that use this frontend IP.",
          "items": {
            "$ref": "#/$defs/SubResource"
          },
          "readOnly": true
        },
        "outboundRules": {
          "type": "array",
          "description": "An array of references to outbound rules that use this frontend IP.",
          "items": {
            "$ref": "#/$defs/SubResource"
          },
          "readOnly": true
        },
        "loadBalancingRules": {
          "type": "array",
          "description": "An array of references to load balancing rules that use this frontend IP.",
          "items": {
            "$ref": "#/$defs/SubResource"
          },
          "readOnly": true
        },
        "privateIPAddress": {
          "type": "string",
          "description": "The private IP address of the IP configuration."
        },
        "privateIPAllocationMethod": {
          "$ref": "#/$defs/IPAllocationMethod",
          "description": "The Private IP allocation method."
        },
        "privateIPAddressVersion": {
          "$ref": "#/$defs/IPVersion",
          "description": "Whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4."
        },
        "subnet": {
          "$ref": "#/$defs/Subnet",
          "description": "The reference to the subnet resource."
        },
        "publicIPAddress": {
          "$ref": "#/$defs/PublicIPAddress",
          "description": "The reference to the Public IP resource."
        },
        "publicIPPrefix": {
          "$ref": "#/$defs/SubResource",
          "description": "The reference to the Public IP Prefix resource."
        },
        "gatewayLoadBalancer": {
          "$ref": "#/$defs/SubResource",
          "description": "The reference to gateway load balancer frontend IP."
        },
        "provisioningState": {
          "$ref": "#/$defs/ProvisioningState",
          "description": "The provisioning state of the frontend IP configuration resource.",
          "readOnly": true
        },
        "ddosSettings": {
          "$ref": "#/$defs/DdosFrontendIpConfigurationSettings",
          "description": "The DDoS protection settings associated with the frontend IP configuration."
        },
        "enableConnectionTracking": {
          "type": "boolean",
          "description": "Enables UDP flow tracking for traffic associated with the frontend IP configuration. When enabled, packets belonging to the same UDP flow are consistently directed to the same backend instance. This setting applies to all associated load balancing rules and takes precedence over rule-level enableConnectionTracking settings."
        }
      }
    },
    "GatewayLoadBalancerTunnelInterface": {
      "type": "object",
      "description": "Gateway load balancer tunnel interface of a load balancer backend address pool.",
      "properties": {
        "port": {
          "type": "integer",
          "format": "int32",
          "description": "Port of gateway load balancer tunnel interface."
        },
        "identifier": {
          "type": "integer",
          "format": "int32",
          "description": "Identifier of gateway load balancer tunnel interface."
        },
        "protocol": {
          "$ref": "#/$defs/GatewayLoadBalancerTunnelProtocol",
          "description": "Protocol of gateway load balancer tunnel interface."
        },
        "type": {
          "$ref": "#/$defs/GatewayLoadBalancerTunnelInterfaceType",
          "description": "Traffic type of gateway load balancer tunnel interface."
        }
      }
    },
    "GatewayLoadBalancerTunnelInterfaceType": {
      "type": "string",
      "description": "Traffic type of gateway load balancer tunnel interface.",
      "enum": [
        "None",
        "Internal",
        "External"
      ],
      "x-ms-enum": {
        "name": "GatewayLoadBalancerTunnelInterfaceType",
        "modelAsString": true,
        "values": [
          {
            "name": "None",
            "value": "None",
            "description": "None"
          },
          {
            "name": "Internal",
            "value": "Internal",
            "description": "Internal"
          },
          {
            "name": "External",
            "value": "External",
            "description": "External"
          }
        ]
      }
    },
    "GatewayLoadBalancerTunnelProtocol": {
      "type": "string",
      "description": "Protocol of gateway load balancer tunnel interface.",
      "enum": [
        "None",
        "Native",
        "VXLAN"
      ],
      "x-ms-enum": {
        "name": "GatewayLoadBalancerTunnelProtocol",
        "modelAsString": true,
        "values": [
          {
            "name": "None",
            "value": "None",
            "description": "None"
          },
          {
            "name": "Native",
            "value": "Native",
            "description": "Native"
          },
          {
            "name": "VXLAN",
            "value": "VXLAN",
            "description": "VXLAN"
          }
        ]
      }
    },
    "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"
          }
        ]
      }
    },
    "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"
          }
        ]
      }
    },
    "InboundNatPool": {
      "type": "object",
      "description": "Inbound NAT pool of the load balancer.",
      "properties": {
        "properties": {
          "$ref": "#/$defs/InboundNatPoolPropertiesFormat",
          "description": "Properties of load balancer inbound nat pool.",
          "x-ms-client-flatten": true
        },
        "name": {
          "type": "string",
          "description": "The name of the resource that is unique within the set of inbound NAT pools used by the load balancer. 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": "Type of the resource.",
          "readOnly": true
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/SubResource"
        }
      ]
    },
    "InboundNatPoolPropertiesFormat": {
      "type": "object",
      "description": "Properties of Inbound NAT pool.",
      "properties": {
        "frontendIPConfiguration": {
          "$ref": "#/$defs/SubResource",
          "description": "A reference to frontend IP addresses."
        },
        "protocol": {
          "$ref": "#/$defs/TransportProtocol",
          "description": "The reference to the transport protocol used by the inbound NAT pool."
        },
        "frontendPortRangeStart": {
          "type": "integer",
          "format": "int32",
          "description": "The first port number in the range of external ports that will be used to provide Inbound Nat to NICs associated with a load balancer. Acceptable values range between 1 and 65534."
        },
        "frontendPortRangeEnd": {
          "type": "integer",
          "format": "int32",
          "description": "The last port number in the range of external ports that will be used to provide Inbound Nat to NICs associated with a load balancer. Acceptable values range between 1 and 65535."
        },
        "backendPort": {
          "type": "integer",
          "format": "int32",
          "description": "The port used for internal connections on the endpoint. Acceptable values are between 1 and 65535."
        },
        "idleTimeoutInMinutes": {
          "type": "integer",
          "format": "int32",
          "description": "The timeout for the TCP idle connection. The value can be set between 4 and 30 minutes. The default value is 4 minutes. This element is only used when the protocol is set to TCP."
        },
        "enableFloatingIP": {
          "type": "boolean",
          "description": "Configures a virtual machine's endpoint for the floating IP capability required to configure a SQL AlwaysOn Availability Group. This setting is required when using the SQL AlwaysOn Availability Groups in SQL server. This setting can't be changed after you create the endpoint."
        },
        "enableTcpReset": {
          "type": "boolean",
          "description": "Receive bidirectional TCP Reset on TCP flow idle timeout or unexpected connection termination. This element is only used when the protocol is set to TCP."
        },
        "provisioningState": {
          "$ref": "#/$defs/ProvisioningState",
          "description": "The provisioning state of the inbound NAT pool resource.",
          "readOnly": true
        }
      },
      "required": [
        "protocol",
        "frontendPortRangeStart",
        "frontendPortRangeEnd",
        "backendPort"
      ]
    },
    "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"
        }
      ]
    },
    "InboundNatRulePropertiesFormat": {
      "type": "object",
      "description": "Properties of the inbound NAT rule.",
      "properties": {
        "frontendIPConfiguration": {
          "$ref": "#/$defs/SubResource",
          "description": "A reference to frontend IP addresses."
        },
        "backendIPConfiguration": {
          "$ref": "#/$defs/NetworkInterfaceIPConfiguration",
          "description": "A reference to a private IP address defined on a network interface of a VM. Traffic sent to the frontend port of each of the frontend IP configurations is forwarded to the backend IP.",
          "readOnly": true
        },
        "protocol": {
          "$ref": "#/$defs/TransportProtocol",
          "description": "The reference to the transport protocol used by the load balancing rule."
        },
        "frontendPort": {
          "type": "integer",
          "format": "int32",
          "description": "The port for the external endpoint. Port numbers for each rule must be unique within the Load Balancer. Acceptable values range from 1 to 65534."
        },
        "backendPort": {
          "type": "integer",
          "format": "int32",
          "description": "The port used for the internal endpoint. Acceptable values range from 1 to 65535."
        },
        "idleTimeoutInMinutes": {
          "type": "integer",
          "format": "int32",
          "description": "The timeout for the TCP idle connection. The value can be set between 4 and 30 minutes. The default value is 4 minutes. This element is only used when the protocol is set to TCP."
        },
        "enableFloatingIP": {
          "type": "boolean",
          "description": "Configures a virtual machine's endpoint for the floating IP capability required to configure a SQL AlwaysOn Availability Group. This setting is required when using the SQL AlwaysOn Availability Groups in SQL server. This setting can't be changed after you create the endpoint."
        },
        "enableTcpReset": {
          "type": "boolean",
          "description": "Receive bidirectional TCP Reset on TCP flow idle timeout or unexpected connection termination. This element is only used when the protocol is set to TCP."
        },
        "frontendPortRangeStart": {
          "type": "integer",
          "format": "int32",
          "description": "The port range start for the external endpoint. This property is used together with BackendAddressPool and FrontendPortRangeEnd. Individual inbound NAT rule port mappings will be created for each backend address from BackendAddressPool. Acceptable values range from 1 to 65534."
        },
        "frontendPortRangeEnd": {
          "type": "integer",
          "format": "int32",
          "description": "The port range end for the external endpoint. This property is used together with BackendAddressPool and FrontendPortRangeStart. Individual inbound NAT rule port mappings will be created for each backend address from BackendAddressPool. Acceptable values range from 1 to 65534."
        },
        "backendAddressPool": {
          "$ref": "#/$defs/SubResource",
          "description": "A reference to backendAddressPool resource."
        },
        "provisioningState": {
          "$ref": "#/$defs/ProvisioningState",
          "description": "The provisioning state of the inbound NAT rule resource.",
          "readOnly": true
        }
      }
    },
    "LoadBalancerBackendAddress": {
      "type": "object",
      "description": "Load balancer backend addresses.",
      "properties": {
        "properties": {
          "$ref": "#/$defs/LoadBalancerBackendAddressPropertiesFormat",
          "description": "Properties of load balancer backend address pool.",
          "x-ms-client-flatten": true
        },
        "name": {
          "type": "string",
          "description": "Name of the backend address."
        }
      }
    },
    "LoadBalancerBackendAddressAdminState": {
      "type": "string",
      "description": "A list of administrative states which once set can override health probe so that Load Balancer will always forward new connections to backend, or deny new connections and reset existing connections.",
      "enum": [
        "None",
        "Up",
        "Down"
      ],
      "x-ms-enum": {
        "name": "LoadBalancerBackendAddressAdminState",
        "modelAsString": true,
        "values": [
          {
            "name": "None",
            "value": "None",
            "description": "None"
          },
          {
            "name": "Up",
            "value": "Up",
            "description": "Up"
          },
          {
            "name": "Down",
            "value": "Down",
            "description": "Down"
          }
        ]
      }
    },
    "LoadBalancerBackendAddressPropertiesFormat": {
      "type": "object",
      "description": "Properties of the load balancer backend addresses.",
      "properties": {
        "virtualNetwork": {
          "$ref": "#/$defs/SubResource",
          "description": "Reference to an existing virtual network."
        },
        "subnet": {
          "$ref": "#/$defs/SubResource",
          "description": "Reference to an existing subnet."
        },
        "ipAddress": {
          "type": "string",
          "description": "IP Address belonging to the referenced virtual network."
        },
        "networkInterfaceIPConfiguration": {
          "$ref": "#/$defs/SubResource",
          "description": "Reference to IP address defined in network interfaces.",
          "readOnly": true
        },
        "loadBalancerFrontendIPConfiguration": {
          "$ref": "#/$defs/SubResource",
          "description": "Reference to the frontend ip address configuration defined in regional loadbalancer."
        },
        "inboundNatRulesPortMapping": {
          "type": "array",
          "description": "Collection of inbound NAT rule port mappings.",
          "items": {
            "$ref": "#/$defs/NatRulePortMapping"
          },
          "readOnly": true
        },
        "adminState": {
          "$ref": "#/$defs/LoadBalancerBackendAddressAdminState",
          "description": "A list of administrative states which once set can override health probe so that Load Balancer will always forward new connections to backend, or deny new connections and reset existing connections."
        }
      }
    },
    "LoadBalancerMode": {
      "type": "string",
      "description": "The load balancer mode. Set to `Advanced` to enable additional capabilities on a Standard SKU load balancer. Advanced mode must be specified at creation and cannot be changed afterward.",
      "enum": [
        "Advanced"
      ],
      "x-ms-enum": {
        "name": "LoadBalancerMode",
        "modelAsString": true,
        "values": [
          {
            "name": "Advanced",
            "value": "Advanced",
            "description": "Advanced mode, which enables additional capabilities on a Standard SKU load balancer."
          }
        ]
      }
    },
    "LoadBalancerOutboundRuleProtocol": {
      "type": "string",
      "description": "The protocol for the outbound rule in load balancer.",
      "enum": [
        "Tcp",
        "Udp",
        "All"
      ],
      "x-ms-enum": {
        "name": "LoadBalancerOutboundRuleProtocol",
        "modelAsString": true,
        "values": [
          {
            "name": "Tcp",
            "value": "Tcp",
            "description": "Tcp"
          },
          {
            "name": "Udp",
            "value": "Udp",
            "description": "Udp"
          },
          {
            "name": "All",
            "value": "All",
            "description": "All"
          }
        ]
      }
    },
    "LoadBalancerPropertiesFormat": {
      "type": "object",
      "description": "Properties of the load balancer.",
      "properties": {
        "frontendIPConfigurations": {
          "type": "array",
          "description": "Object representing the frontend IPs to be used for the load balancer.",
          "items": {
            "$ref": "#/$defs/FrontendIPConfiguration"
          }
        },
        "backendAddressPools": {
          "type": "array",
          "description": "Collection of backend address pools used by a load balancer.",
          "items": {
            "$ref": "#/$defs/BackendAddressPool"
          }
        },
        "loadBalancingRules": {
          "type": "array",
          "description": "Object collection representing the load balancing rules Gets the provisioning.",
          "items": {
            "$ref": "#/$defs/LoadBalancingRule"
          }
        },
        "probes": {
          "type": "array",
          "description": "Collection of probe objects used in the load balancer.",
          "items": {
            "$ref": "#/$defs/Probe"
          }
        },
        "inboundNatRules": {
          "type": "array",
          "description": "Collection of inbound NAT Rules used by a load balancer. Defining inbound NAT rules on your load balancer is mutually exclusive with defining an inbound NAT pool. Inbound NAT pools are referenced from virtual machine scale sets. NICs that are associated with individual virtual machines cannot reference an Inbound NAT pool. They have to reference individual inbound NAT rules.",
          "items": {
            "$ref": "#/$defs/InboundNatRule"
          }
        },
        "inboundNatPools": {
          "type": "array",
          "description": "Defines an external port range for inbound NAT to a single backend port on NICs associated with a load balancer. Inbound NAT rules are created automatically for each NIC associated with the Load Balancer using an external port from this range. Defining an Inbound NAT pool on your Load Balancer is mutually exclusive with defining inbound NAT rules. Inbound NAT pools are referenced from virtual machine scale sets. NICs that are associated with individual virtual machines cannot reference an inbound NAT pool. They have to reference individual inbound NAT rules.",
          "items": {
            "$ref": "#/$defs/InboundNatPool"
          }
        },
        "outboundRules": {
          "type": "array",
          "description": "The outbound rules.",
          "items": {
            "$ref": "#/$defs/OutboundRule"
          }
        },
        "resourceGuid": {
          "type": "string",
          "description": "The resource GUID property of the load balancer resource.",
          "readOnly": true
        },
        "provisioningState": {
          "$ref": "#/$defs/ProvisioningState",
          "description": "The provisioning state of the load balancer resource.",
          "readOnly": true
        },
        "scope": {
          "$ref": "#/$defs/LoadBalancerScope",
          "description": "Indicates the scope of the load balancer: external (Public) or internal (Private)."
        },
        "mode": {
          "$ref": "#/$defs/LoadBalancerMode",
          "description": "The load balancer mode. Set to `Advanced` to enable additional capabilities on a Standard SKU load balancer. Advanced mode must be specified at creation and cannot be changed afterward.",
          "x-ms-mutability": [
            "read",
            "create"
          ]
        }
      }
    },
    "LoadBalancerScope": {
      "type": "string",
      "description": "Indicates the scope of the load balancer: external (Public) or internal (Private).",
      "enum": [
        "Public",
        "Private"
      ],
      "x-ms-enum": {
        "name": "LoadBalancerScope",
        "modelAsString": true,
        "values": [
          {
            "name": "Public",
            "value": "Public",
            "description": "Public"
          },
          {
            "name": "Private",
            "value": "Private",
            "description": "Private"
          }
        ]
      }
    },
    "LoadBalancerSku": {
      "type": "object",
      "description": "SKU of a load balancer.",
      "properties": {
        "name": {
          "$ref": "#/$defs/LoadBalancerSkuName",
          "description": "Name of a load balancer SKU."
        },
        "tier": {
          "$ref": "#/$defs/LoadBalancerSkuTier",
          "description": "Tier of a load balancer SKU."
        }
      }
    },
    "LoadBalancerSkuName": {
      "type": "string",
      "description": "Name of a load balancer SKU.",
      "enum": [
        "Basic",
        "Standard",
        "Gateway",
        "Service"
      ],
      "x-ms-enum": {
        "name": "LoadBalancerSkuName",
        "modelAsString": true,
        "values": [
          {
            "name": "Basic",
            "value": "Basic",
            "description": "Basic"
          },
          {
            "name": "Standard",
            "value": "Standard",
            "description": "Standard"
          },
          {
            "name": "Gateway",
            "value": "Gateway",
            "description": "Gateway"
          },
          {
            "name": "Service",
            "value": "Service",
            "description": "Service load balancer SKU."
          }
        ]
      }
    },
    "LoadBalancerSkuTier": {
      "type": "string",
      "description": "Tier of a load balancer SKU.",
      "enum": [
        "Regional",
        "Global"
      ],
      "x-ms-enum": {
        "name": "LoadBalancerSkuTier",
        "modelAsString": true,
        "values": [
          {
            "name": "Regional",
            "value": "Regional",
            "description": "Regional"
          },
          {
            "name": "Global",
            "value": "Global",
            "description": "Global"
          }
        ]
      }
    },
    "LoadBalancingRule": {
      "type": "object",
      "description": "A load balancing rule for a load balancer.",
      "properties": {
        "properties": {
          "$ref": "#/$defs/LoadBalancingRulePropertiesFormat",
          "description": "Properties of load balancer load balancing 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"
        }
      ]
    },
    "LoadBalancingRulePropertiesFormat": {
      "type": "object",
      "description": "Properties of the load balancer.",
      "properties": {
        "frontendIPConfiguration": {
          "$ref": "#/$defs/SubResource",
          "description": "A reference to frontend IP addresses."
        },
        "backendAddressPool": {
          "$ref": "#/$defs/SubResource",
          "description": "A reference to a pool of DIPs. Inbound traffic is randomly load balanced across IPs in the backend IPs."
        },
        "backendAddressPools": {
          "type": "array",
          "description": "An array of references to pool of DIPs.",
          "items": {
            "$ref": "#/$defs/SubResource"
          }
        },
        "probe": {
          "$ref": "#/$defs/SubResource",
          "description": "The reference to the load balancer probe used by the load balancing rule."
        },
        "protocol": {
          "$ref": "#/$defs/TransportProtocol",
          "description": "The reference to the transport protocol used by the load balancing rule."
        },
        "loadDistribution": {
          "$ref": "#/$defs/LoadDistribution",
          "description": "The load distribution policy for this rule."
        },
        "frontendPort": {
          "type": "integer",
          "format": "int32",
          "description": "The port for the external endpoint. Port numbers for each rule must be unique within the Load Balancer. Acceptable values are between 0 and 65534. Note that value 0 enables \"Any Port\"."
        },
        "backendPort": {
          "type": "integer",
          "format": "int32",
          "description": "The port used for internal connections on the endpoint. Acceptable values are between 0 and 65535. Note that value 0 enables \"Any Port\"."
        },
        "idleTimeoutInMinutes": {
          "type": "integer",
          "format": "int32",
          "description": "The timeout for the TCP idle connection. The value can be set between 4 and 30 minutes. The default value is 4 minutes. This element is only used when the protocol is set to TCP."
        },
        "enableFloatingIP": {
          "type": "boolean",
          "description": "Configures a virtual machine's endpoint for the floating IP capability required to configure a SQL AlwaysOn Availability Group. This setting is required when using the SQL AlwaysOn Availability Groups in SQL server. This setting can't be changed after you create the endpoint."
        },
        "enableTcpReset": {
          "type": "boolean",
          "description": "Receive bidirectional TCP Reset on TCP flow idle timeout or unexpected connection termination. This element is only used when the protocol is set to TCP."
        },
        "disableOutboundSnat": {
          "type": "boolean",
          "description": "Configures SNAT for the VMs in the backend pool to use the publicIP address specified in the frontend of the load balancing rule."
        },
        "enableConnectionTracking": {
          "type": "boolean",
          "description": "Enables UDP flow tracking for the load balancing rule. This property is retained for rule-level configuration compatibility. When enableConnectionTracking is specified on the associated frontend IP configuration, the frontend setting takes precedence."
        },
        "provisioningState": {
          "$ref": "#/$defs/ProvisioningState",
          "description": "The provisioning state of the load balancing rule resource.",
          "readOnly": true
        }
      },
      "required": [
        "protocol",
        "frontendPort"
      ]
    },
    "LoadDistribution": {
      "type": "string",
      "description": "The load distribution policy for this rule.",
      "enum": [
        "Default",
        "SourceIP",
        "SourceIPProtocol"
      ],
      "x-ms-enum": {
        "name": "LoadDistribution",
        "modelAsString": true,
        "values": [
          {
            "name": "Default",
            "value": "Default",
            "description": "Default"
          },
          {
            "name": "SourceIP",
            "value": "SourceIP",
            "description": "SourceIP"
          },
          {
            "name": "SourceIPProtocol",
            "value": "SourceIPProtocol",
            "description": "SourceIPProtocol"
          }
        ]
      }
    },
    "NatRulePortMapping": {
      "type": "object",
      "description": "Individual port mappings for inbound NAT rule created for backend pool.",
      "properties": {
        "inboundNatRuleName": {
          "type": "string",
          "description": "Name of inbound NAT rule."
        },
        "frontendPort": {
          "type": "integer",
          "format": "int32",
          "description": "Frontend port."
        },
        "backendPort": {
          "type": "integer",
          "format": "int32",
          "description": "Backend port."
        }
      }
    },
    "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"
        }
      ]
    },
    "OutboundRule": {
      "type": "object",
      "description": "Outbound rule of the load balancer.",
      "properties": {
        "properties": {
          "$ref": "#/$defs/OutboundRulePropertiesFormat",
          "description": "Properties of load balancer outbound 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"
        }
      ]
    },
    "OutboundRulePropertiesFormat": {
      "type": "object",
      "description": "Outbound rule of the load balancer.",
      "properties": {
        "allocatedOutboundPorts": {
          "type": "integer",
          "format": "int32",
          "description": "The number of outbound ports to be used for NAT."
        },
        "frontendIPConfigurations": {
          "type": "array",
          "description": "The Frontend IP addresses of the load balancer.",
          "items": {
            "$ref": "#/$defs/SubResource"
          }
        },
        "backendAddressPool": {
          "$ref": "#/$defs/SubResource",
          "description": "A reference to a pool of DIPs. Outbound traffic is randomly load balanced across IPs in the backend IPs."
        },
        "provisioningState": {
          "$ref": "#/$defs/ProvisioningState",
          "description": "The provisioning state of the outbound rule resource.",
          "readOnly": true
        },
        "protocol": {
          "$ref": "#/$defs/LoadBalancerOutboundRuleProtocol",
          "description": "The protocol for the outbound rule in load balancer."
        },
        "enableTcpReset": {
          "type": "boolean",
          "description": "Receive bidirectional TCP Reset on TCP flow idle timeout or unexpected connection termination. This element is only used when the protocol is set to TCP."
        },
        "idleTimeoutInMinutes": {
          "type": "integer",
          "format": "int32",
          "description": "The timeout for the TCP idle connection."
        }
      },
      "required": [
        "frontendIPConfigurations",
        "backendAddressPool",
        "protocol"
      ]
    },
    "Probe": {
      "type": "object",
      "description": "A load balancer probe.",
      "properties": {
        "properties": {
          "$ref": "#/$defs/ProbePropertiesFormat",
          "description": "Properties of 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
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/SubResourceModel"
        }
      ]
    },
    "ProbeNoHealthyBackendsBehavior": {
      "type": "string",
      "description": "Determines how new connections are handled by the load balancer when all backend instances are probed down.",
      "enum": [
        "AllProbedDown",
        "AllProbedUp"
      ],
      "x-ms-enum": {
        "name": "ProbeNoHealthyBackendsBehavior",
        "modelAsString": true,
        "values": [
          {
            "name": "AllProbedDown",
            "value": "AllProbedDown",
            "description": "No new flows will be sent to the backend pool."
          },
          {
            "name": "AllProbedUp",
            "value": "AllProbedUp",
            "description": "When all backend instances are probed down, incoming packets will be sent to all instances."
          }
        ]
      }
    },
    "ProbePropertiesFormat": {
      "type": "object",
      "description": "Load balancer probe resource.",
      "properties": {
        "loadBalancingRules": {
          "type": "array",
          "description": "The load balancer rules that use this probe.",
          "items": {
            "$ref": "#/$defs/SubResource"
          },
          "readOnly": true
        },
        "protocol": {
          "$ref": "#/$defs/ProbeProtocol",
          "description": "The protocol of the end point. If 'Tcp' is specified, a received ACK is required for the probe to be successful. If 'Http' or 'Https' is specified, a 200 OK response from the specifies URI is required for the probe to be successful."
        },
        "port": {
          "type": "integer",
          "format": "int32",
          "description": "The port for communicating the probe. Possible values range from 1 to 65535, inclusive."
        },
        "intervalInSeconds": {
          "type": "integer",
          "format": "int32",
          "description": "The interval, in seconds, for how frequently to probe the endpoint for health status. Typically, the interval is slightly less than half the allocated timeout period (in seconds) which allows two full probes before taking the instance out of rotation. The default value is 15, the minimum value is 5."
        },
        "noHealthyBackendsBehavior": {
          "$ref": "#/$defs/ProbeNoHealthyBackendsBehavior",
          "description": "Determines how new connections are handled by the load balancer when all backend instances are probed down."
        },
        "numberOfProbes": {
          "type": "integer",
          "format": "int32",
          "description": "The number of probes where if no response, will result in stopping further traffic from being delivered to the endpoint. This values allows endpoints to be taken out of rotation faster or slower than the typical times used in Azure."
        },
        "probeThreshold": {
          "type": "integer",
          "format": "int32",
          "description": "The number of consecutive successful or failed probes in order to allow or deny traffic from being delivered to this endpoint. After failing the number of consecutive probes equal to this value, the endpoint will be taken out of rotation and require the same number of successful consecutive probes to be placed back in rotation."
        },
        "requestPath": {
          "type": "string",
          "description": "The URI used for requesting health status from the VM. Path is required if a protocol is set to http. Otherwise, it is not allowed. There is no default value."
        },
        "provisioningState": {
          "$ref": "#/$defs/ProvisioningState",
          "description": "The provisioning state of the probe resource.",
          "readOnly": true
        }
      },
      "required": [
        "protocol",
        "port"
      ]
    },
    "ProbeProtocol": {
      "type": "string",
      "description": "The protocol of the end point. If 'Tcp' is specified, a received ACK is required for the probe to be successful. If 'Http' or 'Https' is specified, a 200 OK response from the specifies URI is required for the probe to be successful.",
      "enum": [
        "Http",
        "Tcp",
        "Https"
      ],
      "x-ms-enum": {
        "name": "ProbeProtocol",
        "modelAsString": true,
        "values": [
          {
            "name": "Http",
            "value": "Http",
            "description": "Http"
          },
          {
            "name": "Tcp",
            "value": "Tcp",
            "description": "Tcp"
          },
          {
            "name": "Https",
            "value": "Https",
            "description": "Https"
          }
        ]
      }
    },
    "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"
        }
      ]
    },
    "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
    },
    "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"
        }
      ]
    },
    "SyncMode": {
      "type": "string",
      "description": "Backend address synchronous mode for the backend pool",
      "enum": [
        "Automatic",
        "Manual"
      ],
      "x-ms-enum": {
        "name": "SyncMode",
        "modelAsString": true,
        "values": [
          {
            "name": "Automatic",
            "value": "Automatic",
            "description": "Automatic"
          },
          {
            "name": "Manual",
            "value": "Manual",
            "description": "Manual"
          }
        ]
      }
    },
    "TransportProtocol": {
      "type": "string",
      "description": "The transport protocol for the endpoint.",
      "enum": [
        "Udp",
        "Tcp",
        "All",
        "Quic"
      ],
      "x-ms-enum": {
        "name": "TransportProtocol",
        "modelAsString": true,
        "values": [
          {
            "name": "Udp",
            "value": "Udp",
            "description": "Udp"
          },
          {
            "name": "Tcp",
            "value": "Tcp",
            "description": "Tcp"
          },
          {
            "name": "All",
            "value": "All",
            "description": "All"
          },
          {
            "name": "Quic",
            "value": "Quic",
            "description": "Quic"
          }
        ]
      }
    }
  }
}