Skip to content

[AspireE2E] Failed to select or search Azure subscription with error " Could not find color or style 'Prod'." when deploying aspire project to Azure #13955

@jinzhao1127

Description

@jinzhao1127

INSTALL STEPS

  1. Clean machine: Win11 x64 25h2 ENU
  2. Install SDK 10.0.102
  3. Install Aspire.Cli 13.1.0 iex "& { $(irm https://aspire.dev/install.ps1) }"
  4. Install Azure CLI

REPRO STEPS

  1. Open CMD and create an Aspire Starter App (ASP.NET Core/Blazor)
     dotnet new aspire-starter -o aspire01
     cd aspire01/aspire01.AppHost
    
  2. Run aspire add azure-appcontainers
  3. Open AppHost.cs file, adding following line to configure the Azure App Container environment
    builder.AddAzureContainerAppEnvironment("env");
  4. Run aspire deploy.
  5. Select Azure tenant as Microsoft
  6. Use the down arrow key to select the Azure subscription or type to search

Note

  1. This issue does not repro when azd up the aspire app use the dotnet CLI

ACTUAL
"An unexpected error occurred: Could not find color or style 'Prod'. " error occurs when down arrow key to DevDiv Test labs V2 or type to search
Image

MicrosoftTeams-video.mp4

EXPECTED
I can select the Azure subscription successfully.

Metadata

Metadata

Assignees

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions