{"record":{"id":"8502487ea503d176","repo":"quarkusio/quarkus","slug":"invalid-value-for-appserviceplanname-it-need-to","errorCode":null,"errorMessage":"Invalid value for <appServicePlanName>, it need to match the pattern %s","messagePattern":"Invalid value for <appServicePlanName>, it need to match the pattern (.+?)","errorType":"validation","errorClass":"BuildException","httpStatus":null,"severity":"error","filePath":"extensions/azure-functions/deployment/src/main/java/io/quarkus/azure/functions/deployment/AzureFunctionsDeployCommand.java","lineNumber":183,"sourceCode":"    protected void validateParameters(AzureFunctionsConfig config, String appName) throws BuildException {\n        // app name\n        if (StringUtils.isBlank(appName)) {\n            throw new BuildException(EMPTY_APP_NAME);\n        }\n        if (appName.startsWith(\"-\") || !appName.matches(APP_NAME_PATTERN)) {\n            throw new BuildException(format(INVALID_APP_NAME, appName));\n        }\n        // resource group\n        if (StringUtils.isBlank(config.resourceGroup())) {\n            throw new BuildException(EMPTY_RESOURCE_GROUP);\n        }\n        if (config.resourceGroup().endsWith(\".\") || !config.resourceGroup().matches(RESOURCE_GROUP_PATTERN)) {\n            throw new BuildException(INVALID_RESOURCE_GROUP_NAME);\n        }\n        // asp name & resource group\n        if (StringUtils.isNotEmpty(config.appServicePlanName())\n                && !config.appServicePlanName().matches(APP_SERVICE_PLAN_NAME_PATTERN)) {\n            throw new BuildException(format(INVALID_SERVICE_PLAN_NAME, APP_SERVICE_PLAN_NAME_PATTERN));\n        }\n        if (config.appServicePlanResourceGroup().isPresent()\n                && StringUtils.isNotEmpty(config.appServicePlanResourceGroup().orElse(null))\n                &&\n                (config.appServicePlanResourceGroup().orElse(null).endsWith(\".\")\n                        || !config.appServicePlanResourceGroup().orElse(null).matches(RESOURCE_GROUP_PATTERN))) {\n            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         */","sourceCodeStart":165,"sourceCodeEnd":201,"githubUrl":"https://github.com/quarkusio/quarkus/blob/e1c734241f34c7919086ceb4c9262b4a58f6de44/extensions/azure-functions/deployment/src/main/java/io/quarkus/azure/functions/deployment/AzureFunctionsDeployCommand.java#L165-L201","documentation":"Raised by AzureFunctionsDeployCommand.validateParameters when the App Service plan name set for the deployment does not match APP_SERVICE_PLAN_NAME_PATTERN. The value is validated locally before contacting Azure; a mismatch means the plan name (from the azure-functions plugin configuration or quarkus.azure-functions.app-service-plan.name) contains characters Azure's App Service plan naming rules disallow, and the message interpolates the expected pattern.","triggerScenarios":"Thrown at extensions/azure-functions/deployment/src/main/java/io/quarkus/azure/functions/deployment/AzureFunctionsDeployCommand.java:183 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Adjust the App Service plan name to satisfy the pattern shown in the message","Check the azure-functions-maven-plugin <appServicePlanName> or Gradle extension configuration for typos and illegal characters","If the plan already exists in Azure, use its exact existing name"],"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"}