{"record":{"id":"3283f75f8f986e0d","repo":"quarkusio/quarkus","slug":"the-value-of-os-is-not-correct-supported-values","errorCode":null,"errorMessage":"The value of <os> is not correct, supported values are: windows, linux and docker.","messagePattern":"The value of <os> is not correct, supported values are: windows, linux and docker\\.","errorType":"validation","errorClass":"BuildException","httpStatus":null,"severity":"error","filePath":"extensions/azure-functions/deployment/src/main/java/io/quarkus/azure/functions/deployment/AzureFunctionsDeployCommand.java","lineNumber":208,"sourceCode":"            throw new BuildException(INVALID_SERVICE_PLAN_RESOURCE_GROUP_NAME);\n        }\n        // slot name\n        /*\n         * if (deploymentSlotSetting != null && StringUtils.isEmpty(deploymentSlotSetting.getName())) {\n         * throw new BuildException(EMPTY_SLOT_NAME);\n         * }\n         * if (deploymentSlotSetting != null && !deploymentSlotSetting.getName().matches(SLOT_NAME_PATTERN)) {\n         * throw new BuildException(String.format(INVALID_SLOT_NAME, SLOT_NAME_PATTERN));\n         * }\n         *\n         */\n        // region\n        if (StringUtils.isNotEmpty(config.region()) && Region.fromName(config.region()).isExpandedValue()) {\n            log.warn(format(EXPANDABLE_REGION_WARNING, config.region()));\n        }\n        // os\n        if (StringUtils.isNotEmpty(config.runtime().os()) && OperatingSystem.fromString(config.runtime().os()) == null) {\n            throw new BuildException(INVALID_OS);\n        }\n        // java version\n        if (StringUtils.isNotEmpty(config.runtime().javaVersion())\n                && !JAVA_VERSION_PATTERN.matcher(config.runtime().javaVersion()).matches()) {\n            log.warn(format(EXPANDABLE_JAVA_VERSION_WARNING, config.runtime().javaVersion()));\n        }\n        // pricing tier\n        if (config.pricingTier().isPresent() && StringUtils.isNotEmpty(config.pricingTier().orElse(null))\n                && PricingTier.fromString(config.pricingTier().orElse(null)).isExpandedValue()) {\n            log.warn(format(EXPANDABLE_PRICING_TIER_WARNING, config.pricingTier().orElse(null)));\n        }\n        // docker image\n        if (OperatingSystem.fromString(config.runtime().os()) == OperatingSystem.DOCKER\n                && StringUtils.isEmpty(config.runtime().image().orElse(null))) {\n            throw new BuildException(EMPTY_IMAGE_NAME);\n        }\n    }\n","sourceCodeStart":190,"sourceCodeEnd":226,"githubUrl":"https://github.com/quarkusio/quarkus/blob/e1c734241f34c7919086ceb4c9262b4a58f6de44/extensions/azure-functions/deployment/src/main/java/io/quarkus/azure/functions/deployment/AzureFunctionsDeployCommand.java#L190-L226","documentation":"Raised by AzureFunctionsDeployCommand.validateParameters when the quarkus.azure-functions.runtime.os setting (azure-functions plugin <os>) is non-empty but OperatingSystem.fromString cannot map it to a known OS. Only windows, linux and docker are recognized; any other spelling or casing aborts deployment during local parameter validation, before Azure is contacted.","triggerScenarios":"Thrown at extensions/azure-functions/deployment/src/main/java/io/quarkus/azure/functions/deployment/AzureFunctionsDeployCommand.java:208 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set the OS to one of the supported values: windows, linux, or docker","Remove the setting entirely to use the default if a specific OS is not required","Check for typos or trailing whitespace in the configuration value"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e1c734241f34c7919086ceb4c9262b4a58f6de44","analyzedAt":"2026-09-05T17:01:29.979Z","contentChangedAt":"2026-09-05T17:01:29.979Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}