vscode-azurefunctions icon indicating copy to clipboard operation
vscode-azurefunctions copied to clipboard

Can't use a resource group named with a single character

Open algattik opened this issue 5 years ago • 2 comments

Repro steps:

  1. Right-click on a subscription
  2. "Create Function App in Azure..."
  3. Select an existing resource group named "a"

Action: azureFunctions.createFunctionApp Error type: Error Error Message: "resourceGroupName" should satisfy the constraint - "Pattern": /^[-w._()]+[^.]$/

Version: 0.15.0 OS: darwin VS Code Version: 1.31.1

Call Stack
WebApps.Ps [as _beginCreateOrUpdate] (dist/extension.bundle.js:277:2536236)
WebApps.beginCreateOrUpdate (dist/extension.bundle.js:277:2927574)
WebApps.u [as _createOrUpdate] (dist/extension.bundle.js:277:1410440)
module.exports.e.exports.createOrUpdate.Promise (dist/extension.bundle.js:277:2773178)
new Promise (<anonymous>)
WebApps.createOrUpdate (dist/extension.bundle.js:277:2773156)
SiteCreateStep.<anonymous> (dist/extension.bundle.js:277:3360094)
Generator.next (<anonymous>)
o (dist/extension.bundle.js:277:3359369)

algattik avatar Mar 02 '19 07:03 algattik

Investigated this and it's a bug in the azure-arm-website package that we use. We plan to move away from that package onto the new @azure/arm-appservice package so I filed a bug here: https://github.com/Azure/azure-sdk-for-js/issues/1811

ejizba avatar Mar 27 '19 17:03 ejizba

Issue is now being tracked at https://github.com/Azure/azure-rest-api-specs/issues/17168

alexweininger avatar Sep 01 '22 23:09 alexweininger