microsoft / vscode-azurefunctions

Azure Functions extension for VS Code
https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-azurefunctions
MIT License
290 stars 133 forks source link

An error occurs when creating a Flex Consumption Function App which name contains upper case letter #4234

Open v-ruizh opened 2 months ago

v-ruizh commented 2 months ago

OS: Win 10 Build Version: 20240809.1 Regression: Not a Regression

Repro Steps:

  1. Create a Flex Consumption Function App which name contains upper case letter.
  2. Check whether succeeds to create a Flex Consumption Function App which name contains upper case letter.

Expect: Succeed to create a Flex Consumption Function App which name contains upper case letter.

Actual:

  1. An error occurs when creating a Flex Consumption Function App which name contains upper case letter. image image
  2. Refresh the Azure view, the Flex Consumption Function App shows in Azure view. image

More Info: This issue does not reproduce if creating a Flex Consumption Function App which name contains upper case letter from portal.

nturinski commented 2 months ago

Based off of the output, it seems like we're letting the character pass our validation, but then it's failing when the SDK sends the request to the service.

We're getting back that error, but it seems like it's going on with creation anyway which is very weird behavior, but I'm not sure if it's something that we can control on our end.

We'll either have to wait for it to be fixed by the service and/or SDK or try/catch for this behavior and stifle the error since it seems to be inaccurate (I don't really want to do that though)