vscode-azurefunctions
vscode-azurefunctions copied to clipboard
Can't use a resource group named with a single character
Repro steps:
- Right-click on a subscription
- "Create Function App in Azure..."
- 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)
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
Issue is now being tracked at https://github.com/Azure/azure-rest-api-specs/issues/17168