{"record":{"id":"7a77f9057e34de9b","repo":"quarkusio/quarkus","slug":"the-resourcegroup-only-allow-alphanumeric-charac","errorCode":null,"errorMessage":"The <resourceGroup> only allow alphanumeric characters, periods, underscores, hyphens and parenthesis and cannot end in a period.","messagePattern":"The <resourceGroup> only allow alphanumeric characters, periods, underscores, hyphens and parenthesis and cannot end in a period\\.","errorType":"validation","errorClass":"BuildException","httpStatus":null,"severity":"error","filePath":"extensions/azure-functions/deployment/src/main/java/io/quarkus/azure/functions/deployment/AzureFunctionsDeployCommand.java","lineNumber":178,"sourceCode":"            push.invoke(ctx, dummy);\n        } catch (Exception e) {\n        }\n    }\n\n    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         * }","sourceCodeStart":160,"sourceCodeEnd":196,"githubUrl":"https://github.com/quarkusio/quarkus/blob/e1c734241f34c7919086ceb4c9262b4a58f6de44/extensions/azure-functions/deployment/src/main/java/io/quarkus/azure/functions/deployment/AzureFunctionsDeployCommand.java#L160-L196","documentation":"Raised by AzureFunctionsDeployCommand.validateParameters when the configured Azure resource group name fails the RESOURCE_GROUP_PATTERN check (or ends with a period). Azure resource groups only permit alphanumeric characters, periods, underscores, hyphens and parenthesis and must not terminate with a period; the offending value is the quarkus.azure-functions.app-service-plan.resource group setting (or the azure-functions Maven/Gradle plugin configuration), and deployment is aborted before any Azure API call.","triggerScenarios":"Thrown at extensions/azure-functions/deployment/src/main/java/io/quarkus/azure/functions/deployment/AzureFunctionsDeployCommand.java:178 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Rename the resource group to use only allowed characters: alphanumerics, periods, underscores, hyphens, parenthesis","Remove any trailing period from the resource group name","Verify the name against Azure naming rules if the group already exists in Azure"],"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"}