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
377 stars 173 forks source link

[WebToolsE2E] After successfully deploying a webapp project using azd, I get an error when opening any container app: "No registered resource provider found for location 'eastus2' and API version '2024-02-02-preview' for type 'managedEnvironments/dotNetComponents'." #3892

Closed v-sherryfan closed 1 month ago

v-sherryfan commented 1 month ago

REGRESSION INFO: Also repro on azd 1.8.2 and 1.9.0

INSTALL STEPS

  1. Clean machine: Win11 x64 23h2 ENU
  2. Install SDK 8.0.300
  3. Install Docker Desktop for Windows
  4. Install azd version [1.10.0-beta.1-daily.3772744]

REPRO STEPS

  1. Open CMD, create and deploy a mvc project using following code
    dotnet new mvc -o mvc
    cd mvc
    azd init
    azd up
  2. After deployment successful, open the resource group in Azure Portal and then go to any Container App image

ACTUAL

No registered resource provider found for location 'eastus2' and API version '2024-02-02-preview' for type 'managedEnvironments/dotNetComponents'. The supported api-versions are '2023-11-02-preview, 2024-02-02-preview'. The supported locations are 'northcentralusstage, westus2, southeastasia, swedencentral, canadacentral, westeurope, northeurope, eastus, eastus2, eastasia, australiaeast, germanywestcentral, japaneast, uksouth, westus, centralus, northcentralus, southcentralus, koreacentral, brazilsouth, westus3, francecentral, southafricanorth, norwayeast, switzerlandnorth, uaenorth, canadaeast, westcentralus, ukwest, centralindia, italynorth, polandcentral, centraluseuap, eastus2euap'. image

EXPECTED

No errors when opening any container app

kenuw commented 1 month ago

We also started seeing this yesterday after some container app deployments. No errors when we deploy but we see the same error message in the Azure portal but for westus2.

chinadragon0515 commented 1 month ago

This error message does not have any function impact, and we have fixed it, let us know if anyone still see the issue.

rajeshkamal5050 commented 1 month ago

This error message does not have any function impact, and we have fixed it, let us know if anyone still see the issue.

This isn't an azd issue. Something on ACA service which seems to have been fixed. Also, the flow isn't Aspire its azd's simplified/easy init detecting .NET services/projects.

Rita003 commented 1 month ago

Not repro on azd version 1.10.0-beta.1-daily.3787247 + 17.10 GA (include aspire 8.0.0)