dotnet / aspire

Tools, templates, and packages to accelerate building observable, production-ready apps
https://learn.microsoft.com/dotnet/aspire
MIT License
3.91k stars 475 forks source link

Azurite Emulator for .NET9 Requires Image Version Bump #6692

Closed jsedlak closed 2 days ago

jsedlak commented 6 days ago

Is there an existing issue for this?

Describe the bug

Upon updating an Aspire project that uses Azure Storage, and specifically the RunAsEmulator method, the following error is encountered.

'The API version 2025-01-05 is not supported by Azurite. Please upgrade Azurite to latest version and retry. If you are using Azurite in Visual Studio, please check you have installed latest Visual Studio patch. Azurite command line parameter "--skipApiVersionCheck" or Visual Studio Code configuration "Skip Api Version Check" can skip this error.

Potentially Important Detail: This particular project uses Azure Storage for clustering in Microsoft Orleans, and it is in that project where the error occurs.

The RunAsEmulator method specifies the default image version is 3.32.0.

Manually specifying 3.33.0 resolves the error.

Expected Behavior

Using RunAsEmulator should work with defaults in .NET9 without specifying an image version.

Steps To Reproduce

  1. Create an Aspire Project with an AppHost
  2. Add an Orleans Silo
  3. Map Orleans to use Azure Storage, running as an emulator (azurite) for clustering and grain storage
  4. Run the project

Exceptions (if any)

The API version 2025-01-05 is not supported by Azurite. Please upgrade Azurite to latest version and retry. If you are using Azurite in Visual Studio, please check you have installed latest Visual Studio patch. Azurite command line parameter "--skipApiVersionCheck" or Visual Studio Code configuration "Skip Api Version Check" can skip this error.

.NET Version info

.NET 9 SDK Version: 9.0.100

Anything else?

No response

adityamandaleeka commented 2 days ago

This is fixed in main with https://github.com/dotnet/aspire/pull/6670

joperezr commented 2 days ago

We will ship this in 9.1. Closing.