Azure / azure-dev

A developer CLI that reduces the time it takes for you to get started on Azure. The Azure Developer CLI (azd) provides a set of developer-friendly commands that map to key stages in your workflow - code, build, deploy, monitor, repeat.
https://aka.ms/azd
MIT License
395 stars 190 forks source link

[AzureTools][Aspire] Fail to publish the project using azd with the location "East US STG (eastusstg)" or "South Central US STG (southcentralusstg)" #4184

Closed v-mengwe closed 1 week ago

v-mengwe commented 1 month ago

Clean machine: Win11 x64 23h2 ENU VS Version: VS 17.12.0 Preview 2.0 [35205.153.main] Aspire Version: 8.1.1-preview.1.24405.5 azd Version: 1.9.5 Apply NuGet Feeds

REPRO STEPS:

  1. Create an Aspire starter project
  2. Open Command Prompt and navigate to the solution path of this project.
  3. Run 'azd init', select 'Use code in the current directory' -> Confirm and continue initializing my app, type a new environment, press enter
  4. Run 'azd up', and select Subscription to Azure Tools Manual Testing 1/WTE and select Location to "East US STG (eastusstg)", press enter.
  5. Check whether succeeds to publish the project.

Expect:

  1. Succeed to publish the project without any error.
  2. It would be better to hide or remove unsupported locations if these locations are not supported

Actual: Fail to publish the project with an error. image

More Info:

  1. This issue also reproduces for the location "South Central US STG (southcentralusstg)".
  2. No location "East US STG (eastusstg)" or "South Central US STG (southcentralusstg)" in the dropdown list when publish the project using VS.
v-mengwe commented 1 month ago

From the bug https://devdiv.visualstudio.com/DevDiv/_workitems/edit/2183586

rajeshkamal5050 commented 1 month ago

@vhvb1989 @ellismg can we hide these staging locations which are not valid for deployment?

v-mengwe commented 1 week ago

Verified on the azd version 1.10.0-beta.1-pr.4097989, no "East US STG (eastusstg)" or "South Central US STG (southcentralusstg)" location shows for now. image @rajeshkamal5050 Another issue need to confirm with you, the "East US STG (eastusstg)" or "South Central US STG (southcentralusstg)" location still shows when publish the AppHost project in VS, do we need to open a new bug in Azure/azure-dev? image

hemarina commented 1 week ago

Chatted with @ellismg and confirmed that we don't own the change/code in VS. Will create this issue on VS side.

v-mengwe commented 1 week ago

Got it, thanks for the update.

rajeshkamal5050 commented 1 week ago

Chatted with @ellismg and confirmed that we don't own the change/code in VS. Will create this issue on VS side.

@anvillan @abpiskunov can you create an issue on VS side for this?

anvillan commented 1 week ago

@rajeshkamal5050

We already have bug 2183586 in area path DevDiv\Web Tools\Web\Aspire