{"record":{"id":"048f696ea1d7c9b4","repo":"quarkusio/quarkus","slug":"please-config-the-resourcegroup-in-pom-xml","errorCode":null,"errorMessage":"Please config the <resourceGroup> in pom.xml.","messagePattern":"Please config the <resourceGroup> in pom\\.xml\\.","errorType":"validation","errorClass":"BuildException","httpStatus":null,"severity":"error","filePath":"extensions/azure-functions/deployment/src/main/java/io/quarkus/azure/functions/deployment/AzureFunctionsDeployCommand.java","lineNumber":175,"sourceCode":"                }\n            };\n            OperationThreadContext ctx = OperationThreadContext.current();\n            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        /*","sourceCodeStart":157,"sourceCodeEnd":193,"githubUrl":"https://github.com/quarkusio/quarkus/blob/e1c734241f34c7919086ceb4c9262b4a58f6de44/extensions/azure-functions/deployment/src/main/java/io/quarkus/azure/functions/deployment/AzureFunctionsDeployCommand.java#L157-L193","documentation":"The Azure resource group is required for deployment; validateParameters throws BuildException with EMPTY_RESOURCE_GROUP when config.resourceGroup() is blank. The resource group identifies where the function app and its app service plan are created in Azure.","triggerScenarios":"quarkus:deploy without <resourceGroup> in the azure-functions plugin configuration and no command-line override.","commonSituations":" appName configured but resourceGroup forgotten in a new project; property removed during refactor; deploying from a module whose pom lacks the full configuration block.","solutions":["Add <resourceGroup>my-resource-group</resourceGroup> to the plugin configuration in pom.xml","Or pass -DresourceGroup=my-resource-group to the deploy command","Create/verify the resource group exists in your subscription (az group create -n my-resource-group -l eastus)"],"exampleFix":"<!-- before -->\n<configuration>\n  <appName>my-quarkus-func</appName>\n</configuration>\n<!-- after -->\n<configuration>\n  <appName>my-quarkus-func</appName>\n  <resourceGroup>my-rg</resourceGroup>\n</configuration>","handlingStrategy":"validation","validationCode":"if (resourceGroup == null || resourceGroup.isBlank()) {\n  throw new IllegalArgumentException(\"<resourceGroup> must be configured before quarkus:deploy\");\n}","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Configure resourceGroup alongside appName in the pom plugin block","Verify the resource group exists with az group show before deploy","Template deployment properties so new projects cannot omit required fields"],"tags":["azure-functions","configuration","maven-plugin"],"backgroundTag":"missing-config-property","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"}