{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-functions/json-schema/microsoft-azure-functions-function-app-stack-collection-schema.json",
  "title": "FunctionAppStackCollection",
  "description": "Collection of Function app Stacks",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-functions-provider-api-openapi.yml#/components/schemas/FunctionAppStackCollection",
  "type": "object",
  "properties": {
    "value": {
      "type": "array",
      "description": "The FunctionAppStack items on this page",
      "items": {
        "$ref": "#/$defs/FunctionAppStack"
      }
    },
    "nextLink": {
      "type": "string",
      "format": "uri",
      "description": "The link to the next page of items"
    }
  },
  "required": [
    "value"
  ],
  "$defs": {
    "AppInsightsWebAppStackSettings": {
      "type": "object",
      "description": "App Insights Web App stack settings.",
      "properties": {
        "isSupported": {
          "type": "boolean",
          "description": "<code>true</code> if remote Application Insights is supported for the stack; otherwise, <code>false</code>.",
          "readOnly": true
        },
        "isDefaultOff": {
          "type": "boolean",
          "description": "<code>true</code> if Application Insights is disabled by default for the stack; otherwise, <code>false</code>.",
          "readOnly": true
        }
      }
    },
    "FunctionAppMajorVersion": {
      "type": "object",
      "description": "Function App stack major version.",
      "properties": {
        "displayText": {
          "type": "string",
          "description": "Function App stack major version (display only).",
          "readOnly": true
        },
        "value": {
          "type": "string",
          "description": "Function App stack major version name.",
          "readOnly": true
        },
        "minorVersions": {
          "type": "array",
          "description": "Minor versions associated with the major version.",
          "items": {
            "$ref": "#/$defs/FunctionAppMinorVersion"
          },
          "readOnly": true,
          "x-ms-identifiers": [
            "value"
          ]
        }
      }
    },
    "FunctionAppMinorVersion": {
      "type": "object",
      "description": "Function App stack minor version.",
      "properties": {
        "displayText": {
          "type": "string",
          "description": "Function App stack (display only).",
          "readOnly": true
        },
        "value": {
          "type": "string",
          "description": "Function App stack name.",
          "readOnly": true
        },
        "stackSettings": {
          "$ref": "#/$defs/FunctionAppRuntimes",
          "description": "Settings associated with the minor version.",
          "readOnly": true
        }
      }
    },
    "FunctionAppRuntimeSettings": {
      "type": "object",
      "description": "Function App runtime settings.",
      "properties": {
        "runtimeVersion": {
          "type": "string",
          "description": "Function App stack minor version (runtime only).",
          "readOnly": true
        },
        "remoteDebuggingSupported": {
          "type": "boolean",
          "description": "<code>true</code> if remote debugging is supported for the stack; otherwise, <code>false</code>.",
          "readOnly": true
        },
        "appInsightsSettings": {
          "$ref": "#/$defs/AppInsightsWebAppStackSettings",
          "description": "Application Insights settings associated with the minor version.",
          "readOnly": true
        },
        "gitHubActionSettings": {
          "$ref": "#/$defs/GitHubActionWebAppStackSettings",
          "description": "GitHub Actions settings associated with the minor version.",
          "readOnly": true
        },
        "appSettingsDictionary": {
          "type": "object",
          "description": "Application settings associated with the minor version.",
          "additionalProperties": {
            "type": "string"
          },
          "readOnly": true
        },
        "siteConfigPropertiesDictionary": {
          "$ref": "#/$defs/SiteConfigPropertiesDictionary",
          "description": "Configuration settings associated with the minor version.",
          "readOnly": true
        },
        "supportedFunctionsExtensionVersions": {
          "type": "array",
          "description": "List of supported Functions extension versions.",
          "items": {
            "type": "string"
          },
          "readOnly": true
        },
        "isPreview": {
          "type": "boolean",
          "description": "<code>true</code> if the stack is in preview; otherwise, <code>false</code>.",
          "readOnly": true
        },
        "isDeprecated": {
          "type": "boolean",
          "description": "<code>true</code> if the stack is deprecated; otherwise, <code>false</code>.",
          "readOnly": true
        },
        "isHidden": {
          "type": "boolean",
          "description": "<code>true</code> if the stack should be hidden; otherwise, <code>false</code>.",
          "readOnly": true
        },
        "endOfLifeDate": {
          "type": "string",
          "format": "date-time",
          "description": "End-of-life date for the minor version.",
          "readOnly": true
        },
        "isAutoUpdate": {
          "type": "boolean",
          "description": "<code>true</code> if the stack version is auto-updated; otherwise, <code>false</code>.",
          "readOnly": true
        },
        "isEarlyAccess": {
          "type": "boolean",
          "description": "<code>true</code> if the minor version is early-access; otherwise, <code>false</code>.",
          "readOnly": true
        },
        "isDefault": {
          "type": "boolean",
          "description": "<code>true</code> if the minor version the default; otherwise, <code>false</code>.",
          "readOnly": true
        }
      }
    },
    "FunctionAppRuntimes": {
      "type": "object",
      "description": "Function App stack runtimes.",
      "properties": {
        "linuxRuntimeSettings": {
          "$ref": "#/$defs/FunctionAppRuntimeSettings",
          "description": "Linux-specific settings associated with the minor version.",
          "readOnly": true
        },
        "windowsRuntimeSettings": {
          "$ref": "#/$defs/FunctionAppRuntimeSettings",
          "description": "Windows-specific settings associated with the minor version.",
          "readOnly": true
        }
      }
    },
    "FunctionAppStack": {
      "type": "object",
      "description": "Function App Stack.",
      "properties": {
        "location": {
          "type": "string",
          "description": "Function App stack location.",
          "readOnly": true
        },
        "properties": {
          "$ref": "#/$defs/FunctionAppStackProperties",
          "description": "FunctionAppStack resource specific properties",
          "x-ms-client-flatten": true
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/ProxyOnlyResource"
        }
      ]
    },
    "FunctionAppStackProperties": {
      "type": "object",
      "description": "FunctionAppStack resource specific properties",
      "properties": {
        "displayText": {
          "type": "string",
          "description": "Function App stack (display only).",
          "readOnly": true
        },
        "value": {
          "type": "string",
          "description": "Function App stack name.",
          "readOnly": true
        },
        "majorVersions": {
          "type": "array",
          "description": "List of major versions available.",
          "items": {
            "$ref": "#/$defs/FunctionAppMajorVersion"
          },
          "readOnly": true,
          "x-ms-identifiers": [
            "value"
          ]
        },
        "preferredOs": {
          "$ref": "#/$defs/StackPreferredOs",
          "description": "Function App stack preferred OS.",
          "readOnly": true
        }
      }
    },
    "GitHubActionWebAppStackSettings": {
      "type": "object",
      "description": "GitHub Actions Web App stack settings.",
      "properties": {
        "isSupported": {
          "type": "boolean",
          "description": "<code>true</code> if GitHub Actions is supported for the stack; otherwise, <code>false</code>.",
          "readOnly": true
        },
        "supportedVersion": {
          "type": "string",
          "description": "The minor version that is supported for GitHub Actions.",
          "readOnly": true
        }
      }
    },
    "ProxyOnlyResource": {
      "type": "object",
      "description": "Azure proxy only resource. This resource is not tracked by Azure Resource Manager.",
      "properties": {
        "id": {
          "type": "string",
          "description": "Resource Id.",
          "readOnly": true
        },
        "name": {
          "type": "string",
          "description": "Resource Name.",
          "readOnly": true
        },
        "kind": {
          "type": "string",
          "description": "Kind of resource."
        },
        "type": {
          "type": "string",
          "description": "Resource type.",
          "readOnly": true
        }
      }
    },
    "SiteConfigPropertiesDictionary": {
      "type": "object",
      "description": "Site config properties dictionary.",
      "properties": {
        "use32BitWorkerProcess": {
          "type": "boolean",
          "description": "<code>true</code> if use32BitWorkerProcess should be set to true for the stack; otherwise, <code>false</code>.",
          "readOnly": true
        },
        "linuxFxVersion": {
          "type": "string",
          "description": "LinuxFxVersion configuration setting.",
          "readOnly": true
        },
        "javaVersion": {
          "type": "string",
          "description": "JavaVersion configuration setting.",
          "readOnly": true
        },
        "powerShellVersion": {
          "type": "string",
          "description": "PowerShellVersion configuration setting.",
          "readOnly": true
        }
      }
    },
    "StackPreferredOs": {
      "type": "string",
      "description": "Function App stack preferred OS.",
      "enum": [
        "Windows",
        "Linux"
      ],
      "x-ms-enum": {
        "name": "StackPreferredOs",
        "modelAsString": false
      }
    }
  }
}