{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-front-door/json-schema/microsoft-azure-front-door-front-door-schema.json",
  "title": "FrontDoor",
  "description": "Front Door represents a collection of backend endpoints to route traffic to along with rules that specify how traffic is sent there.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-front-door-frontdoors-api-openapi.yml#/components/schemas/FrontDoor",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/FrontDoorProperties",
      "description": "Properties of the Front Door Load Balancer",
      "x-ms-client-flatten": true
    }
  },
  "allOf": [
    {
      "$ref": "#/$defs/Resource"
    }
  ],
  "$defs": {
    "Backend": {
      "type": "object",
      "description": "Backend address of a frontDoor load balancer.",
      "properties": {
        "address": {
          "type": "string",
          "description": "Location of the backend (IP address or FQDN)"
        },
        "privateLinkAlias": {
          "type": "string",
          "description": "The Alias of the Private Link resource. Populating this optional field indicates that this backend is 'Private'"
        },
        "privateLinkResourceId": {
          "type": "string",
          "description": "The Resource Id of the Private Link resource. Populating this optional field indicates that this backend is 'Private'"
        },
        "privateLinkLocation": {
          "type": "string",
          "description": "The location of the Private Link resource. Required only if 'privateLinkResourceId' is populated"
        },
        "privateEndpointStatus": {
          "$ref": "#/$defs/PrivateEndpointStatus",
          "description": "The Approval status for the connection to the Private Link",
          "readOnly": true
        },
        "privateLinkApprovalMessage": {
          "type": "string",
          "description": "A custom message to be included in the approval request to connect to the Private Link"
        },
        "httpPort": {
          "type": "integer",
          "format": "int32",
          "description": "The HTTP TCP port number. Must be between 1 and 65535.",
          "minimum": 1,
          "maximum": 65535
        },
        "httpsPort": {
          "type": "integer",
          "format": "int32",
          "description": "The HTTPS TCP port number. Must be between 1 and 65535.",
          "minimum": 1,
          "maximum": 65535
        },
        "enabledState": {
          "$ref": "#/$defs/BackendEnabledState",
          "description": "Whether to enable use of this backend. Permitted values are 'Enabled' or 'Disabled'"
        },
        "priority": {
          "type": "integer",
          "format": "int32",
          "description": "Priority to use for load balancing. Higher priorities will not be used for load balancing if any lower priority backend is healthy.",
          "minimum": 1,
          "maximum": 5
        },
        "weight": {
          "type": "integer",
          "format": "int32",
          "description": "Weight of this endpoint for load balancing purposes.",
          "minimum": 1,
          "maximum": 1000
        },
        "backendHostHeader": {
          "type": "string",
          "description": "The value to use as the host header sent to the backend. If blank or unspecified, this defaults to the incoming host."
        }
      }
    },
    "BackendEnabledState": {
      "type": "string",
      "description": "Whether to enable use of this backend. Permitted values are 'Enabled' or 'Disabled'",
      "enum": [
        "Enabled",
        "Disabled"
      ],
      "x-ms-enum": {
        "name": "BackendEnabledState",
        "modelAsString": true,
        "values": [
          {
            "name": "Enabled",
            "value": "Enabled",
            "description": "Enabled"
          },
          {
            "name": "Disabled",
            "value": "Disabled",
            "description": "Disabled"
          }
        ]
      }
    },
    "BackendPool": {
      "type": "object",
      "description": "A backend pool is a collection of backends that can be routed to.",
      "properties": {
        "properties": {
          "$ref": "#/$defs/BackendPoolProperties",
          "description": "Properties of the Front Door Backend Pool",
          "x-ms-client-flatten": true
        },
        "name": {
          "type": "string",
          "description": "Resource name."
        },
        "type": {
          "type": "string",
          "description": "Resource type.",
          "readOnly": true
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/SubResource"
        }
      ]
    },
    "BackendPoolProperties": {
      "type": "object",
      "description": "The JSON object that contains the properties required to create a Backend Pool.",
      "properties": {
        "resourceState": {
          "$ref": "#/$defs/FrontDoorResourceState",
          "title": "Resource status of the Front Door or Front Door SubResource.",
          "description": "Resource status.",
          "readOnly": true
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/BackendPoolUpdateParameters"
        }
      ]
    },
    "BackendPoolUpdateParameters": {
      "type": "object",
      "description": "A collection of backends that can be routed to.",
      "properties": {
        "backends": {
          "type": "array",
          "description": "The set of backends for this pool",
          "items": {
            "$ref": "#/$defs/Backend"
          }
        },
        "loadBalancingSettings": {
          "$ref": "#/$defs/SubResource",
          "description": "Load balancing settings for a backend pool"
        },
        "healthProbeSettings": {
          "$ref": "#/$defs/SubResource",
          "description": "L7 health probe settings for a backend pool"
        }
      }
    },
    "BackendPoolsSettings": {
      "type": "object",
      "description": "Settings that apply to all backend pools.",
      "properties": {
        "enforceCertificateNameCheck": {
          "type": "string",
          "description": "Whether to enforce certificate name check on HTTPS requests to all backend pools. No effect on non-HTTPS requests.",
          "default": "Enabled",
          "enum": [
            "Enabled",
            "Disabled"
          ],
          "x-ms-enum": {
            "name": "EnforceCertificateNameCheckEnabledState",
            "modelAsString": true,
            "values": [
              {
                "name": "Enabled",
                "value": "Enabled",
                "description": "Enabled"
              },
              {
                "name": "Disabled",
                "value": "Disabled",
                "description": "Disabled"
              }
            ]
          }
        },
        "sendRecvTimeoutSeconds": {
          "type": "integer",
          "format": "int32",
          "description": "Send and receive timeout on forwarding request to the backend. When timeout is reached, the request fails and returns.",
          "minimum": 16
        }
      }
    },
    "BasicResource": {
      "type": "object",
      "description": "Common resource representation.",
      "properties": {
        "id": {
          "type": "string",
          "description": "Resource ID.",
          "readOnly": true
        },
        "name": {
          "type": "string",
          "description": "Resource name.",
          "readOnly": true
        },
        "type": {
          "type": "string",
          "description": "Resource type.",
          "readOnly": true
        }
      },
      "x-ms-azure-resource": true
    },
    "BasicResourceWithSettableIDName": {
      "type": "object",
      "description": "Common resource representation.",
      "properties": {
        "id": {
          "type": "string",
          "description": "Resource ID."
        },
        "name": {
          "type": "string",
          "description": "Resource name."
        },
        "type": {
          "type": "string",
          "description": "Resource type.",
          "readOnly": true
        }
      },
      "x-ms-azure-resource": true
    },
    "CustomHttpsConfiguration": {
      "type": "object",
      "description": "Https settings for a domain",
      "properties": {
        "certificateSource": {
          "$ref": "#/$defs/FrontDoorCertificateSource",
          "description": "Defines the source of the SSL certificate"
        },
        "protocolType": {
          "$ref": "#/$defs/FrontDoorTlsProtocolType",
          "description": "Defines the TLS extension protocol that is used for secure delivery"
        },
        "minimumTlsVersion": {
          "$ref": "#/$defs/MinimumTLSVersion",
          "description": "The minimum TLS version required from the clients to establish an SSL handshake with Front Door."
        },
        "keyVaultCertificateSourceParameters": {
          "$ref": "#/$defs/KeyVaultCertificateSourceParameters",
          "description": "KeyVault certificate source parameters (if certificateSource=AzureKeyVault)",
          "x-ms-client-flatten": true
        },
        "frontDoorCertificateSourceParameters": {
          "$ref": "#/$defs/FrontDoorCertificateSourceParameters",
          "description": "Parameters required for enabling SSL with Front Door-managed certificates (if certificateSource=FrontDoor)",
          "x-ms-client-flatten": true
        }
      },
      "required": [
        "certificateSource",
        "protocolType",
        "minimumTlsVersion"
      ]
    },
    "CustomHttpsProvisioningState": {
      "type": "string",
      "description": "Provisioning status of Custom Https of the frontendEndpoint.",
      "enum": [
        "Enabling",
        "Enabled",
        "Disabling",
        "Disabled",
        "Failed"
      ],
      "x-ms-enum": {
        "name": "CustomHttpsProvisioningState",
        "modelAsString": true,
        "values": [
          {
            "name": "Enabling",
            "value": "Enabling",
            "description": "Enabling"
          },
          {
            "name": "Enabled",
            "value": "Enabled",
            "description": "Enabled"
          },
          {
            "name": "Disabling",
            "value": "Disabling",
            "description": "Disabling"
          },
          {
            "name": "Disabled",
            "value": "Disabled",
            "description": "Disabled"
          },
          {
            "name": "Failed",
            "value": "Failed",
            "description": "Failed"
          }
        ]
      }
    },
    "CustomHttpsProvisioningSubstate": {
      "type": "string",
      "description": "Provisioning substate shows the progress of custom HTTPS enabling/disabling process step by step.",
      "enum": [
        "SubmittingDomainControlValidationRequest",
        "PendingDomainControlValidationREquestApproval",
        "DomainControlValidationRequestApproved",
        "DomainControlValidationRequestRejected",
        "DomainControlValidationRequestTimedOut",
        "IssuingCertificate",
        "DeployingCertificate",
        "CertificateDeployed",
        "DeletingCertificate",
        "CertificateDeleted"
      ],
      "x-ms-enum": {
        "name": "CustomHttpsProvisioningSubstate",
        "modelAsString": true,
        "values": [
          {
            "name": "SubmittingDomainControlValidationRequest",
            "value": "SubmittingDomainControlValidationRequest",
            "description": "SubmittingDomainControlValidationRequest"
          },
          {
            "name": "PendingDomainControlValidationREquestApproval",
            "value": "PendingDomainControlValidationREquestApproval",
            "description": "PendingDomainControlValidationREquestApproval"
          },
          {
            "name": "DomainControlValidationRequestApproved",
            "value": "DomainControlValidationRequestApproved",
            "description": "DomainControlValidationRequestApproved"
          },
          {
            "name": "DomainControlValidationRequestRejected",
            "value": "DomainControlValidationRequestRejected",
            "description": "DomainControlValidationRequestRejected"
          },
          {
            "name": "DomainControlValidationRequestTimedOut",
            "value": "DomainControlValidationRequestTimedOut",
            "description": "DomainControlValidationRequestTimedOut"
          },
          {
            "name": "IssuingCertificate",
            "value": "IssuingCertificate",
            "description": "IssuingCertificate"
          },
          {
            "name": "DeployingCertificate",
            "value": "DeployingCertificate",
            "description": "DeployingCertificate"
          },
          {
            "name": "CertificateDeployed",
            "value": "CertificateDeployed",
            "description": "CertificateDeployed"
          },
          {
            "name": "DeletingCertificate",
            "value": "DeletingCertificate",
            "description": "DeletingCertificate"
          },
          {
            "name": "CertificateDeleted",
            "value": "CertificateDeleted",
            "description": "CertificateDeleted"
          }
        ]
      }
    },
    "FrontDoorCertificateSource": {
      "type": "string",
      "description": "Defines the source of the SSL certificate",
      "enum": [
        "AzureKeyVault",
        "FrontDoor"
      ],
      "x-ms-enum": {
        "name": "FrontDoorCertificateSource",
        "modelAsString": true,
        "values": [
          {
            "name": "AzureKeyVault",
            "value": "AzureKeyVault",
            "description": "AzureKeyVault"
          },
          {
            "name": "FrontDoor",
            "value": "FrontDoor",
            "description": "FrontDoor"
          }
        ]
      }
    },
    "FrontDoorCertificateSourceParameters": {
      "type": "object",
      "description": "Parameters required for enabling SSL with Front Door-managed certificates",
      "properties": {
        "certificateType": {
          "$ref": "#/$defs/FrontDoorCertificateType",
          "description": "Defines the type of the certificate used for secure connections to a frontendEndpoint"
        }
      }
    },
    "FrontDoorCertificateType": {
      "type": "string",
      "description": "Defines the type of the certificate used for secure connections to a frontendEndpoint",
      "enum": [
        "Dedicated"
      ],
      "x-ms-enum": {
        "name": "FrontDoorCertificateType",
        "modelAsString": true,
        "values": [
          {
            "name": "Dedicated",
            "value": "Dedicated",
            "description": "Dedicated"
          }
        ]
      }
    },
    "FrontDoorEnabledState": {
      "type": "string",
      "description": "Operational status of the Front Door load balancer. Permitted values are 'Enabled' or 'Disabled'",
      "enum": [
        "Enabled",
        "Disabled"
      ],
      "x-ms-enum": {
        "name": "FrontDoorEnabledState",
        "modelAsString": true,
        "values": [
          {
            "name": "Enabled",
            "value": "Enabled",
            "description": "Enabled"
          },
          {
            "name": "Disabled",
            "value": "Disabled",
            "description": "Disabled"
          }
        ]
      }
    },
    "FrontDoorProperties": {
      "type": "object",
      "description": "The JSON object that contains the properties required to create an endpoint.",
      "properties": {
        "resourceState": {
          "$ref": "#/$defs/FrontDoorResourceState",
          "title": "Resource status of the Front Door or Front Door SubResource.",
          "description": "Resource status of the Front Door.",
          "readOnly": true
        },
        "provisioningState": {
          "type": "string",
          "description": "Provisioning state of the Front Door.",
          "readOnly": true
        },
        "cname": {
          "type": "string",
          "description": "The host that each frontendEndpoint must CNAME to.",
          "readOnly": true
        },
        "frontdoorId": {
          "type": "string",
          "description": "The Id of the frontdoor.",
          "readOnly": true
        },
        "rulesEngines": {
          "type": "array",
          "description": "Rules Engine Configurations available to routing rules.",
          "items": {
            "$ref": "#/$defs/RulesEngine"
          },
          "readOnly": true
        },
        "extendedProperties": {
          "type": "object",
          "description": "Key-Value pair representing additional properties for frontdoor.",
          "additionalProperties": {
            "type": "string"
          },
          "readOnly": true
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/FrontDoorUpdateParameters"
        }
      ]
    },
    "FrontDoorProtocol": {
      "type": "string",
      "description": "Accepted protocol schemes.",
      "enum": [
        "Http",
        "Https"
      ],
      "x-ms-enum": {
        "name": "FrontDoorProtocol",
        "modelAsString": true,
        "values": [
          {
            "name": "Http",
            "value": "Http",
            "description": "Http"
          },
          {
            "name": "Https",
            "value": "Https",
            "description": "Https"
          }
        ]
      }
    },
    "FrontDoorResourceState": {
      "type": "string",
      "description": "Resource status of the Front Door or Front Door SubResource.",
      "enum": [
        "Creating",
        "Enabling",
        "Enabled",
        "Disabling",
        "Disabled",
        "Deleting",
        "Migrating",
        "Migrated"
      ],
      "x-ms-enum": {
        "name": "FrontDoorResourceState",
        "modelAsString": true,
        "values": [
          {
            "name": "Creating",
            "value": "Creating",
            "description": "Creating"
          },
          {
            "name": "Enabling",
            "value": "Enabling",
            "description": "Enabling"
          },
          {
            "name": "Enabled",
            "value": "Enabled",
            "description": "Enabled"
          },
          {
            "name": "Disabling",
            "value": "Disabling",
            "description": "Disabling"
          },
          {
            "name": "Disabled",
            "value": "Disabled",
            "description": "Disabled"
          },
          {
            "name": "Deleting",
            "value": "Deleting",
            "description": "Deleting"
          },
          {
            "name": "Migrating",
            "value": "Migrating",
            "description": "Migrating"
          },
          {
            "name": "Migrated",
            "value": "Migrated",
            "description": "Migrated"
          }
        ]
      }
    },
    "FrontDoorTlsProtocolType": {
      "type": "string",
      "description": "Defines the TLS extension protocol that is used for secure delivery",
      "enum": [
        "ServerNameIndication"
      ],
      "x-ms-enum": {
        "name": "FrontDoorTlsProtocolType",
        "modelAsString": true,
        "values": [
          {
            "name": "ServerNameIndication",
            "value": "ServerNameIndication",
            "description": "ServerNameIndication"
          }
        ]
      }
    },
    "FrontDoorUpdateParameters": {
      "type": "object",
      "description": "The properties needed to update a Front Door",
      "properties": {
        "friendlyName": {
          "type": "string",
          "description": "A friendly name for the frontDoor"
        },
        "routingRules": {
          "type": "array",
          "description": "Routing rules associated with this Front Door.",
          "items": {
            "$ref": "#/$defs/RoutingRule"
          }
        },
        "loadBalancingSettings": {
          "type": "array",
          "description": "Load balancing settings associated with this Front Door instance.",
          "items": {
            "$ref": "#/$defs/LoadBalancingSettingsModel"
          }
        },
        "healthProbeSettings": {
          "type": "array",
          "description": "Health probe settings associated with this Front Door instance.",
          "items": {
            "$ref": "#/$defs/HealthProbeSettingsModel"
          }
        },
        "backendPools": {
          "type": "array",
          "description": "Backend pools available to routing rules.",
          "items": {
            "$ref": "#/$defs/BackendPool"
          }
        },
        "frontendEndpoints": {
          "type": "array",
          "description": "Frontend endpoints available to routing rules.",
          "items": {
            "$ref": "#/$defs/FrontendEndpoint"
          }
        },
        "backendPoolsSettings": {
          "$ref": "#/$defs/BackendPoolsSettings",
          "description": "Settings for all backendPools"
        },
        "enabledState": {
          "$ref": "#/$defs/FrontDoorEnabledState",
          "description": "Operational status of the Front Door load balancer. Permitted values are 'Enabled' or 'Disabled'"
        }
      }
    },
    "FrontendEndpoint": {
      "type": "object",
      "description": "A frontend endpoint used for routing.",
      "properties": {
        "properties": {
          "$ref": "#/$defs/FrontendEndpointProperties",
          "description": "Properties of the Frontend endpoint",
          "x-ms-client-flatten": true
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/BasicResourceWithSettableIDName"
        }
      ]
    },
    "FrontendEndpointProperties": {
      "type": "object",
      "description": "The JSON object that contains the properties required to create a frontend endpoint.",
      "properties": {
        "resourceState": {
          "$ref": "#/$defs/FrontDoorResourceState",
          "title": "Resource status of the Front Door or Front Door SubResource.",
          "description": "Resource status.",
          "readOnly": true
        },
        "customHttpsProvisioningState": {
          "$ref": "#/$defs/CustomHttpsProvisioningState",
          "description": "Provisioning status of Custom Https of the frontendEndpoint.",
          "readOnly": true
        },
        "customHttpsProvisioningSubstate": {
          "$ref": "#/$defs/CustomHttpsProvisioningSubstate",
          "description": "Provisioning substate shows the progress of custom HTTPS enabling/disabling process step by step.",
          "readOnly": true
        },
        "customHttpsConfiguration": {
          "$ref": "#/$defs/CustomHttpsConfiguration",
          "description": "The configuration specifying how to enable HTTPS",
          "readOnly": true
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/FrontendEndpointUpdateParameters"
        }
      ]
    },
    "FrontendEndpointUpdateParameters": {
      "type": "object",
      "description": "Frontend endpoint used in routing rule",
      "properties": {
        "hostName": {
          "type": "string",
          "description": "The host name of the frontendEndpoint. Must be a domain name."
        },
        "sessionAffinityEnabledState": {
          "$ref": "#/$defs/SessionAffinityEnabledState",
          "description": "Whether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled'"
        },
        "sessionAffinityTtlSeconds": {
          "type": "integer",
          "format": "int32",
          "description": "UNUSED. This field will be ignored. The TTL to use in seconds for session affinity, if applicable."
        },
        "webApplicationFirewallPolicyLink": {
          "$ref": "#/$defs/FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink",
          "description": "Defines the Web Application Firewall policy for each host (if applicable)"
        }
      }
    },
    "FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink": {
      "type": "object",
      "description": "Defines the Web Application Firewall policy for each host (if applicable)",
      "properties": {
        "id": {
          "type": "string",
          "description": "Resource ID."
        }
      }
    },
    "HeaderAction": {
      "type": "object",
      "description": "An action that can manipulate an http header.",
      "properties": {
        "headerActionType": {
          "$ref": "#/$defs/HeaderActionType",
          "description": "Which type of manipulation to apply to the header."
        },
        "headerName": {
          "type": "string",
          "description": "The name of the header this action will apply to."
        },
        "value": {
          "type": "string",
          "description": "The value to update the given header name with. This value is not used if the actionType is Delete."
        }
      },
      "required": [
        "headerActionType",
        "headerName"
      ]
    },
    "HeaderActionType": {
      "type": "string",
      "description": "Which type of manipulation to apply to the header.",
      "enum": [
        "Append",
        "Delete",
        "Overwrite"
      ],
      "x-ms-enum": {
        "name": "HeaderActionType",
        "modelAsString": true,
        "values": [
          {
            "name": "Append",
            "value": "Append",
            "description": "Append"
          },
          {
            "name": "Delete",
            "value": "Delete",
            "description": "Delete"
          },
          {
            "name": "Overwrite",
            "value": "Overwrite",
            "description": "Overwrite"
          }
        ]
      }
    },
    "HealthProbeEnabled": {
      "type": "string",
      "description": "Whether to enable health probes to be made against backends defined under backendPools. Health probes can only be disabled if there is a single enabled backend in single enabled backend pool.",
      "enum": [
        "Enabled",
        "Disabled"
      ],
      "x-ms-enum": {
        "name": "HealthProbeEnabled",
        "modelAsString": true,
        "values": [
          {
            "name": "Enabled",
            "value": "Enabled",
            "description": "Enabled"
          },
          {
            "name": "Disabled",
            "value": "Disabled",
            "description": "Disabled"
          }
        ]
      }
    },
    "HealthProbeSettingsModel": {
      "type": "object",
      "description": "Load balancing settings for a backend pool",
      "properties": {
        "properties": {
          "$ref": "#/$defs/HealthProbeSettingsProperties",
          "description": "Properties of the health probe settings",
          "x-ms-client-flatten": true
        },
        "name": {
          "type": "string",
          "description": "Resource name."
        },
        "type": {
          "type": "string",
          "description": "Resource type.",
          "readOnly": true
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/SubResource"
        }
      ]
    },
    "HealthProbeSettingsProperties": {
      "type": "object",
      "description": "The JSON object that contains the properties required to create a health probe settings.",
      "properties": {
        "resourceState": {
          "$ref": "#/$defs/FrontDoorResourceState",
          "title": "Resource status of the Front Door or Front Door SubResource.",
          "description": "Resource status.",
          "readOnly": true
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/HealthProbeSettingsUpdateParameters"
        }
      ]
    },
    "HealthProbeSettingsUpdateParameters": {
      "type": "object",
      "description": "L7 health probe settings for a backend pool",
      "properties": {
        "path": {
          "type": "string",
          "description": "The path to use for the health probe. Default is /"
        },
        "protocol": {
          "$ref": "#/$defs/FrontDoorProtocol",
          "description": "Protocol scheme to use for this probe"
        },
        "intervalInSeconds": {
          "type": "integer",
          "format": "int32",
          "description": "The number of seconds between health probes."
        },
        "healthProbeMethod": {
          "type": "string",
          "description": "Configures which HTTP method to use to probe the backends defined under backendPools.",
          "default": "HEAD",
          "enum": [
            "GET",
            "HEAD"
          ],
          "x-ms-enum": {
            "name": "FrontDoorHealthProbeMethod",
            "modelAsString": true,
            "values": [
              {
                "name": "GET",
                "value": "GET",
                "description": "GET"
              },
              {
                "name": "HEAD",
                "value": "HEAD",
                "description": "HEAD"
              }
            ]
          }
        },
        "enabledState": {
          "$ref": "#/$defs/HealthProbeEnabled",
          "description": "Whether to enable health probes to be made against backends defined under backendPools. Health probes can only be disabled if there is a single enabled backend in single enabled backend pool."
        }
      }
    },
    "KeyVaultCertificateSourceParameters": {
      "type": "object",
      "description": "Parameters required for bring-your-own-certification via Key Vault",
      "properties": {
        "vault": {
          "$ref": "#/$defs/KeyVaultCertificateSourceParametersVault",
          "description": "The Key Vault containing the SSL certificate"
        },
        "secretName": {
          "type": "string",
          "description": "The name of the Key Vault secret representing the full certificate PFX"
        },
        "secretVersion": {
          "type": "string",
          "description": "The version of the Key Vault secret representing the full certificate PFX"
        }
      }
    },
    "KeyVaultCertificateSourceParametersVault": {
      "type": "object",
      "description": "The Key Vault containing the SSL certificate",
      "properties": {
        "id": {
          "type": "string",
          "description": "Resource ID."
        }
      }
    },
    "LoadBalancingSettingsModel": {
      "type": "object",
      "description": "Load balancing settings for a backend pool",
      "properties": {
        "properties": {
          "$ref": "#/$defs/LoadBalancingSettingsProperties",
          "description": "Properties of the load balancing settings",
          "x-ms-client-flatten": true
        },
        "name": {
          "type": "string",
          "description": "Resource name."
        },
        "type": {
          "type": "string",
          "description": "Resource type.",
          "readOnly": true
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/SubResource"
        }
      ]
    },
    "LoadBalancingSettingsProperties": {
      "type": "object",
      "description": "The JSON object that contains the properties required to create load balancing settings",
      "properties": {
        "resourceState": {
          "$ref": "#/$defs/FrontDoorResourceState",
          "title": "Resource status of the Front Door or Front Door SubResource.",
          "description": "Resource status.",
          "readOnly": true
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/LoadBalancingSettingsUpdateParameters"
        }
      ]
    },
    "LoadBalancingSettingsUpdateParameters": {
      "type": "object",
      "description": "Round-Robin load balancing settings for a backend pool",
      "properties": {
        "sampleSize": {
          "type": "integer",
          "format": "int32",
          "description": "The number of samples to consider for load balancing decisions"
        },
        "successfulSamplesRequired": {
          "type": "integer",
          "format": "int32",
          "description": "The number of samples within the sample period that must succeed"
        },
        "additionalLatencyMilliseconds": {
          "type": "integer",
          "format": "int32",
          "description": "The additional latency in milliseconds for probes to fall into the lowest latency bucket"
        }
      }
    },
    "MatchProcessingBehavior": {
      "type": "string",
      "description": "If this rule is a match should the rules engine continue running the remaining rules or stop. If not present, defaults to Continue.",
      "enum": [
        "Continue",
        "Stop"
      ],
      "x-ms-enum": {
        "name": "MatchProcessingBehavior",
        "modelAsString": true,
        "values": [
          {
            "name": "Continue",
            "value": "Continue",
            "description": "Continue"
          },
          {
            "name": "Stop",
            "value": "Stop",
            "description": "Stop"
          }
        ]
      }
    },
    "MinimumTLSVersion": {
      "type": "string",
      "description": "The minimum TLS version required from the clients to establish an SSL handshake with Front Door.",
      "enum": [
        "1.0",
        "1.2"
      ],
      "x-ms-enum": {
        "name": "MinimumTLSVersion",
        "modelAsString": true,
        "values": [
          {
            "name": "1.0",
            "value": "1.0",
            "description": "1.0"
          },
          {
            "name": "1.2",
            "value": "1.2",
            "description": "1.2"
          }
        ]
      }
    },
    "PrivateEndpointStatus": {
      "type": "string",
      "description": "The Approval status for the connection to the Private Link",
      "enum": [
        "Pending",
        "Approved",
        "Rejected",
        "Disconnected",
        "Timeout"
      ],
      "x-ms-enum": {
        "name": "PrivateEndpointStatus",
        "modelAsString": true,
        "values": [
          {
            "name": "Pending",
            "value": "Pending",
            "description": "Pending"
          },
          {
            "name": "Approved",
            "value": "Approved",
            "description": "Approved"
          },
          {
            "name": "Rejected",
            "value": "Rejected",
            "description": "Rejected"
          },
          {
            "name": "Disconnected",
            "value": "Disconnected",
            "description": "Disconnected"
          },
          {
            "name": "Timeout",
            "value": "Timeout",
            "description": "Timeout"
          }
        ]
      }
    },
    "Resource": {
      "type": "object",
      "description": "Common resource representation.",
      "properties": {
        "id": {
          "type": "string",
          "description": "Resource ID.",
          "readOnly": true
        },
        "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
    },
    "RouteConfiguration": {
      "type": "object",
      "description": "Base class for all types of Route.",
      "properties": {
        "@odata.type": {
          "type": "string"
        }
      },
      "required": [
        "@odata.type"
      ]
    },
    "RoutingRule": {
      "type": "object",
      "description": "A routing rule represents a specification for traffic to treat and where to send it, along with health probe information.",
      "properties": {
        "properties": {
          "$ref": "#/$defs/RoutingRuleProperties",
          "description": "Properties of the Front Door Routing Rule",
          "x-ms-client-flatten": true
        },
        "name": {
          "type": "string",
          "description": "Resource name."
        },
        "type": {
          "type": "string",
          "description": "Resource type.",
          "readOnly": true
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/SubResource"
        }
      ]
    },
    "RoutingRuleEnabledState": {
      "type": "string",
      "description": "Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'",
      "enum": [
        "Enabled",
        "Disabled"
      ],
      "x-ms-enum": {
        "name": "RoutingRuleEnabledState",
        "modelAsString": true,
        "values": [
          {
            "name": "Enabled",
            "value": "Enabled",
            "description": "Enabled"
          },
          {
            "name": "Disabled",
            "value": "Disabled",
            "description": "Disabled"
          }
        ]
      }
    },
    "RoutingRuleProperties": {
      "type": "object",
      "description": "The JSON object that contains the properties required to create a routing rule.",
      "properties": {
        "resourceState": {
          "$ref": "#/$defs/FrontDoorResourceState",
          "title": "Resource status of the Front Door or Front Door SubResource.",
          "description": "Resource status.",
          "readOnly": true
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/RoutingRuleUpdateParameters"
        }
      ]
    },
    "RoutingRuleUpdateParameters": {
      "type": "object",
      "description": "Routing rules to apply to an endpoint",
      "properties": {
        "frontendEndpoints": {
          "type": "array",
          "description": "Frontend endpoints associated with this rule",
          "items": {
            "$ref": "#/$defs/SubResource"
          }
        },
        "acceptedProtocols": {
          "type": "array",
          "description": "Protocol schemes to match for this rule",
          "items": {
            "$ref": "#/$defs/FrontDoorProtocol"
          }
        },
        "patternsToMatch": {
          "type": "array",
          "description": "The route patterns of the rule.",
          "items": {
            "type": "string"
          }
        },
        "enabledState": {
          "$ref": "#/$defs/RoutingRuleEnabledState",
          "description": "Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'"
        },
        "routeConfiguration": {
          "$ref": "#/$defs/RouteConfiguration",
          "description": "A reference to the routing configuration."
        },
        "rulesEngine": {
          "$ref": "#/$defs/SubResource",
          "description": "A reference to a specific Rules Engine Configuration to apply to this route."
        },
        "webApplicationFirewallPolicyLink": {
          "$ref": "#/$defs/RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink",
          "description": "Defines the Web Application Firewall policy for each routing rule (if applicable)"
        }
      }
    },
    "RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink": {
      "type": "object",
      "description": "Defines the Web Application Firewall policy for each routing rule (if applicable)",
      "properties": {
        "id": {
          "type": "string",
          "description": "Resource ID."
        }
      }
    },
    "RulesEngine": {
      "type": "object",
      "description": "A rules engine configuration containing a list of rules that will run to modify the runtime behavior of the request and response.",
      "properties": {
        "properties": {
          "$ref": "#/$defs/RulesEngineProperties",
          "description": "Properties of the Rules Engine Configuration.",
          "x-ms-client-flatten": true
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/BasicResource"
        }
      ]
    },
    "RulesEngineAction": {
      "type": "object",
      "description": "One or more actions that will execute, modifying the request and/or response.",
      "properties": {
        "requestHeaderActions": {
          "type": "array",
          "description": "A list of header actions to apply from the request from AFD to the origin.",
          "items": {
            "$ref": "#/$defs/HeaderAction"
          }
        },
        "responseHeaderActions": {
          "type": "array",
          "description": "A list of header actions to apply from the response from AFD to the client.",
          "items": {
            "$ref": "#/$defs/HeaderAction"
          }
        },
        "routeConfigurationOverride": {
          "$ref": "#/$defs/RouteConfiguration",
          "description": "Override the route configuration."
        }
      }
    },
    "RulesEngineMatchCondition": {
      "type": "object",
      "description": "Define a match condition",
      "properties": {
        "rulesEngineMatchVariable": {
          "$ref": "#/$defs/RulesEngineMatchVariable",
          "description": "Match Variable"
        },
        "selector": {
          "type": "string",
          "description": "Name of selector in RequestHeader or RequestBody to be matched"
        },
        "rulesEngineOperator": {
          "$ref": "#/$defs/RulesEngineOperator",
          "description": "Describes operator to apply to the match condition."
        },
        "negateCondition": {
          "type": "boolean",
          "description": "Describes if this is negate condition or not"
        },
        "rulesEngineMatchValue": {
          "type": "array",
          "description": "Match values to match against. The operator will apply to each value in here with OR semantics. If any of them match the variable with the given operator this match condition is considered a match.",
          "items": {
            "type": "string"
          }
        },
        "transforms": {
          "type": "array",
          "description": "List of transforms",
          "items": {
            "$ref": "#/$defs/Transform"
          }
        }
      },
      "required": [
        "rulesEngineMatchVariable",
        "rulesEngineOperator",
        "rulesEngineMatchValue"
      ]
    },
    "RulesEngineMatchVariable": {
      "type": "string",
      "description": "Match Variable",
      "enum": [
        "IsMobile",
        "RemoteAddr",
        "RequestMethod",
        "QueryString",
        "PostArgs",
        "RequestUri",
        "RequestPath",
        "RequestFilename",
        "RequestFilenameExtension",
        "RequestHeader",
        "RequestBody",
        "RequestScheme"
      ],
      "x-ms-enum": {
        "name": "RulesEngineMatchVariable",
        "modelAsString": true,
        "values": [
          {
            "name": "IsMobile",
            "value": "IsMobile",
            "description": "IsMobile"
          },
          {
            "name": "RemoteAddr",
            "value": "RemoteAddr",
            "description": "RemoteAddr"
          },
          {
            "name": "RequestMethod",
            "value": "RequestMethod",
            "description": "RequestMethod"
          },
          {
            "name": "QueryString",
            "value": "QueryString",
            "description": "QueryString"
          },
          {
            "name": "PostArgs",
            "value": "PostArgs",
            "description": "PostArgs"
          },
          {
            "name": "RequestUri",
            "value": "RequestUri",
            "description": "RequestUri"
          },
          {
            "name": "RequestPath",
            "value": "RequestPath",
            "description": "RequestPath"
          },
          {
            "name": "RequestFilename",
            "value": "RequestFilename",
            "description": "RequestFilename"
          },
          {
            "name": "RequestFilenameExtension",
            "value": "RequestFilenameExtension",
            "description": "RequestFilenameExtension"
          },
          {
            "name": "RequestHeader",
            "value": "RequestHeader",
            "description": "RequestHeader"
          },
          {
            "name": "RequestBody",
            "value": "RequestBody",
            "description": "RequestBody"
          },
          {
            "name": "RequestScheme",
            "value": "RequestScheme",
            "description": "RequestScheme"
          }
        ]
      }
    },
    "RulesEngineOperator": {
      "type": "string",
      "description": "Describes operator to apply to the match condition.",
      "enum": [
        "Any",
        "IPMatch",
        "GeoMatch",
        "Equal",
        "Contains",
        "LessThan",
        "GreaterThan",
        "LessThanOrEqual",
        "GreaterThanOrEqual",
        "BeginsWith",
        "EndsWith"
      ],
      "x-ms-enum": {
        "name": "RulesEngineOperator",
        "modelAsString": true,
        "values": [
          {
            "name": "Any",
            "value": "Any",
            "description": "Any"
          },
          {
            "name": "IPMatch",
            "value": "IPMatch",
            "description": "IPMatch"
          },
          {
            "name": "GeoMatch",
            "value": "GeoMatch",
            "description": "GeoMatch"
          },
          {
            "name": "Equal",
            "value": "Equal",
            "description": "Equal"
          },
          {
            "name": "Contains",
            "value": "Contains",
            "description": "Contains"
          },
          {
            "name": "LessThan",
            "value": "LessThan",
            "description": "LessThan"
          },
          {
            "name": "GreaterThan",
            "value": "GreaterThan",
            "description": "GreaterThan"
          },
          {
            "name": "LessThanOrEqual",
            "value": "LessThanOrEqual",
            "description": "LessThanOrEqual"
          },
          {
            "name": "GreaterThanOrEqual",
            "value": "GreaterThanOrEqual",
            "description": "GreaterThanOrEqual"
          },
          {
            "name": "BeginsWith",
            "value": "BeginsWith",
            "description": "BeginsWith"
          },
          {
            "name": "EndsWith",
            "value": "EndsWith",
            "description": "EndsWith"
          }
        ]
      }
    },
    "RulesEngineProperties": {
      "type": "object",
      "description": "The JSON object that contains the properties required to create a Rules Engine Configuration.",
      "properties": {
        "resourceState": {
          "$ref": "#/$defs/FrontDoorResourceState",
          "title": "Resource status of the Front Door or Front Door SubResource.",
          "description": "Resource status.",
          "readOnly": true
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/RulesEngineUpdateParameters"
        }
      ]
    },
    "RulesEngineRule": {
      "type": "object",
      "description": "Contains a list of match conditions, and an action on how to modify the request/response. If multiple rules match, the actions from one rule that conflict with a previous rule overwrite for a singular action, or append in the case of headers manipulation.",
      "properties": {
        "name": {
          "type": "string",
          "description": "A name to refer to this specific rule."
        },
        "priority": {
          "type": "integer",
          "format": "int32",
          "description": "A priority assigned to this rule."
        },
        "action": {
          "$ref": "#/$defs/RulesEngineAction",
          "description": "Actions to perform on the request and response if all of the match conditions are met."
        },
        "matchConditions": {
          "type": "array",
          "description": "A list of match conditions that must meet in order for the actions of this rule to run. Having no match conditions means the actions will always run.",
          "items": {
            "$ref": "#/$defs/RulesEngineMatchCondition"
          }
        },
        "matchProcessingBehavior": {
          "$ref": "#/$defs/MatchProcessingBehavior",
          "description": "If this rule is a match should the rules engine continue running the remaining rules or stop. If not present, defaults to Continue."
        }
      },
      "required": [
        "name",
        "priority",
        "action"
      ]
    },
    "RulesEngineUpdateParameters": {
      "type": "object",
      "description": "Rules Engine Configuration to apply to a Routing Rule.",
      "properties": {
        "rules": {
          "type": "array",
          "description": "A list of rules that define a particular Rules Engine Configuration.",
          "items": {
            "$ref": "#/$defs/RulesEngineRule"
          }
        }
      }
    },
    "SessionAffinityEnabledState": {
      "type": "string",
      "description": "Whether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled'",
      "enum": [
        "Enabled",
        "Disabled"
      ],
      "x-ms-enum": {
        "name": "SessionAffinityEnabledState",
        "modelAsString": true,
        "values": [
          {
            "name": "Enabled",
            "value": "Enabled",
            "description": "Enabled"
          },
          {
            "name": "Disabled",
            "value": "Disabled",
            "description": "Disabled"
          }
        ]
      }
    },
    "SubResource": {
      "type": "object",
      "description": "Reference to another subresource.",
      "properties": {
        "id": {
          "type": "string",
          "description": "Resource ID."
        }
      }
    },
    "Transform": {
      "type": "string",
      "description": "Describes what transforms are applied before matching",
      "enum": [
        "Lowercase",
        "Uppercase",
        "Trim",
        "UrlDecode",
        "UrlEncode",
        "RemoveNulls"
      ],
      "x-ms-enum": {
        "name": "Transform",
        "modelAsString": true,
        "values": [
          {
            "name": "Lowercase",
            "value": "Lowercase",
            "description": "Lowercase"
          },
          {
            "name": "Uppercase",
            "value": "Uppercase",
            "description": "Uppercase"
          },
          {
            "name": "Trim",
            "value": "Trim",
            "description": "Trim"
          },
          {
            "name": "UrlDecode",
            "value": "UrlDecode",
            "description": "UrlDecode"
          },
          {
            "name": "UrlEncode",
            "value": "UrlEncode",
            "description": "UrlEncode"
          },
          {
            "name": "RemoveNulls",
            "value": "RemoveNulls",
            "description": "RemoveNulls"
          }
        ]
      }
    }
  }
}