microsoft / vscode-azurefunctions

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

An error occurs when creating a containerized function app with East Asia location #4090

Open v-ruizh opened 3 months ago

v-ruizh commented 3 months ago

OS: All Build Version: v1.14.2-alpha.0 Regression: Not a Regression

Repro Steps:

  1. Create a JavaScript containerized project.
  2. Create a containerized function app with East Asia location.
  3. Check whether succeeds to create a containerized function app with East Asia location.

Expect: Succeed to create a containerized function app with East Asia location.

Actual: An error occurs when creating a containerized function app with East Asia location. image The new created function app is broken. image

More Info:

  1. All function apps which created with East Asia location will change to broken in Azure view after creating the above containerized function app.
  2. This issue does not reproduce when creating a regular function app with East Asia location.
  3. This issue also reproduces on the current released function extension V1.14.1.
motm32 commented 3 months ago

All function apps which created with East Asia location will change to broken in Azure view after creating the above containerized function app.

Thanks for filing this issue! Could you provide some clarification or screenshots on how all functions apps created with the East Asia location break?

v-ruizh commented 3 months ago

All function apps which created with East Asia location will change to broken in Azure view after creating the above containerized function app.

Thanks for filing this issue! Could you provide some clarification or screenshots on how all functions apps created with the East Asia location break?

All functions apps created with the East Asia location will break with "Error", such as the below screenshot. image

motm32 commented 2 months ago

I tested this and found that I am able to successfully create a containerized function app in East Asia would you be able to test it again to see if this is still occuring?

v-ruizh commented 2 months ago

I tested this and found that I am able to successfully create a containerized function app in East Asia would you be able to test it again to see if this is still occuring?

  1. Verified this issue on the latest main branch Functions extension build. The below error still pops up after creating a containerized function app with East Asia location successfully. image Note: The above new containerized function app doesn't show in Azure view after creating it. But it works well after refresh the Azure view, it's not broken now. image
  2. Other function apps which created with East Asia location will still change to broken after creating a containerized function app with East Asia location. image Note: The broken function apps will recover after deleting the new created containerized function app with East Asia location. image
motm32 commented 2 months ago

Update on this:

This seems to be an issue with not only East Asia but within any location. If a containerized function app is created in the same location as a normal function app (or App Service) the UI will break. After some investigation it seems like out list call is broken so it is an issue with the sdk or the service side. We can work around this by doing a get call instead.