{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-functions/json-schema/microsoft-azure-functions-vnet-route-schema.json",
  "title": "VnetRoute",
  "description": "Virtual Network route contract used to pass routing information for a Virtual Network.",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-functions-appserviceplans-api-openapi.yml#/components/schemas/VnetRoute",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/VnetRouteProperties",
      "description": "VnetRoute resource specific properties",
      "x-ms-client-flatten": true
    },
    "kind": {
      "type": "string",
      "description": "Kind of resource."
    }
  },
  "allOf": [
    {
      "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource"
    }
  ],
  "$defs": {
    "RouteType": {
      "type": "string",
      "description": "The type of route this is:\nDEFAULT - By default, every app has routes to the local address ranges specified by RFC1918\nINHERITED - Routes inherited from the real Virtual Network routes\nSTATIC - Static route set on the app only\n\nThese values will be used for syncing an app's routes with those from a Virtual Network.",
      "enum": [
        "DEFAULT",
        "INHERITED",
        "STATIC"
      ],
      "x-ms-enum": {
        "name": "RouteType",
        "modelAsString": true,
        "values": [
          {
            "name": "DEFAULT",
            "value": "DEFAULT"
          },
          {
            "name": "INHERITED",
            "value": "INHERITED"
          },
          {
            "name": "STATIC",
            "value": "STATIC"
          }
        ]
      }
    },
    "VnetRouteProperties": {
      "type": "object",
      "description": "VnetRoute resource specific properties",
      "properties": {
        "startAddress": {
          "type": "string",
          "description": "The starting address for this route. This may also include a CIDR notation, in which case the end address must not be specified."
        },
        "endAddress": {
          "type": "string",
          "description": "The ending address for this route. If the start address is specified in CIDR notation, this must be omitted."
        },
        "routeType": {
          "$ref": "#/$defs/RouteType",
          "description": "The type of route this is:\nDEFAULT - By default, every app has routes to the local address ranges specified by RFC1918\nINHERITED - Routes inherited from the real Virtual Network routes\nSTATIC - Static route set on the app only\n\nThese values will be used for syncing an app's routes with those from a Virtual Network."
        }
      }
    }
  }
}