Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Latest Storage SDK does not work with Azure Storage Emulator 5.9 #7208

Closed
Plasma opened this issue Aug 8, 2019 · 14 comments

Comments

@Plasma
Copy link

commented Aug 8, 2019

Describe the bug
Recently installed Microsoft.Azure.Storage.Blob NuGet 11.0.0 https://www.nuget.org/packages/Microsoft.Azure.Storage.Blob/

The Storage Emulator locally version 5.9 (latest, have even re-installed).

C:\Program Files (x86)\Microsoft SDKs\Azure\Storage Emulator>AzureStorageEmulator.exe status
Windows Azure Storage Emulator 5.9.0.0 command line tool
IsRunning: True
BlobEndpoint: http://127.0.0.1:10000/
QueueEndpoint: http://127.0.0.1:10001/
TableEndpoint: http://127.0.0.1:10002/

Exception or Stack Trace

Microsoft.Azure.Storage.StorageException: Storage Exception (Request Id: 117143b0-1cef-400f-8e9c-2c9470c989e6): {"ErrorCode":"VersionNotSupportedByEmulator","ErrorMessage":"The REST version of this request is not supported by this release of the Storage Emulator. Please upgrade the storage emulator to the latest version. Refer to the following URL for more information: http://go.microsoft.com/fwlink/?LinkId=392237\nRequestId:117143b0-1cef-400f-8e9c-2c9470c989e6\nTime:2019-08-08T06:52:00.3785996Z","AdditionalDetails":{"VersionAttempted":"2019-02-02"}} ---> Microsoft.Azure.Storage.StorageException: The REST version of this request is not supported by this release of the Storage Emulator. Please upgrade the storage emulator to the latest version. Refer to the following URL for more information: http://go.microsoft.com/fwlink/?LinkId=392237

To Reproduce
Try using Storage Emulator with latest SDK.

@triage-new-issues triage-new-issues bot added the triage label Aug 8, 2019

@longzheng

This comment has been minimized.

Copy link

commented Aug 8, 2019

Looks like the latest version of the SDK is now targeting 2019-02-02 which is not supported by either the Azure Storage Emulator or Azurite

https://github.com/Azure/azure-storage-net/blame/bbb7da62bc49ee79e07cf607d2202c9778b83d56/Lib/Common/Shared/Protocol/Constants.cs#L1493

@msftbot

This comment has been minimized.

Copy link

commented Aug 8, 2019

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @xgithub

1 similar comment
@msftbot

This comment has been minimized.

Copy link

commented Aug 8, 2019

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @xgithub

@amishra-dev

This comment has been minimized.

Copy link
Member

commented Aug 9, 2019

Hi @Plasma @longzheng
10.0.* was the last supported version of the SDK for Azure Storage emulator. We will not be extending Azure Storage Emulator to support SDK version 11. I will update the readme to reflect this status.

I will follow up with the Azurite team and post the response here for the support of 02-02-2019 REST API.

@BrianVallelunga

This comment has been minimized.

Copy link

commented Aug 9, 2019

@amishra-dev, Is the storage emulator being discontinued? If so, that's a pity as it's a very useful tool. Personally, I'd like to see some of the core services (blob, Cosmos, Service Bus) integrated into a single Docker image that I could download. It would really ease development work.

@amishra-dev

This comment has been minimized.

Copy link
Member

commented Aug 10, 2019

@BrianVallelunga that is correct. Development of Storage Emulator is being discontinued, Azurite is the way foward for us.
Filed the feature request in Azurite. Azure/Azurite#249

@riverar

This comment has been minimized.

Copy link

commented Aug 10, 2019

@amishra-dev I'm confused, isn't Storage Emulator part of Visual Studio lifecycle? You can't just kill it with no notice right?

@nlysaght

This comment has been minimized.

Copy link

commented Aug 12, 2019

Azurite just supports blob storage only, so we still need the Storage Emulator for Table and Queue storage. So is it only the Blob portion of Azure Storage Emulator that is being retired or the whole emulator? Is there an official announcement that you folks in MS are going to be making around this issue, because this is going to cause a lot of trouble for a lot of people.

@amishra-dev

This comment has been minimized.

Copy link
Member

commented Aug 12, 2019

Its not killed, we will continue to support Azure Storage Emulator. We believe Azurite is a better solution for our customer for future releases of the service and we will add support for future versions only in Azurite.

@Plasma

This comment has been minimized.

Copy link
Author

commented Aug 12, 2019

Hey @amishra-dev ; to be clear, .NET Storage SDK 11+ will not be supported by Azure Storage Emulator now or in the future?

We've been using the emulator since it was released, so just want to know if we now delete it from our stack and replace it with something else.

Thanks

@XiaoningLiu

This comment has been minimized.

Copy link
Member

commented Aug 13, 2019

Hi,

Azurite will update and catch up latest storage features and API versions covering blob & queue. Now, we are working on Azurite Queue implementation, and planning to have a release for queue within several weeks. After that, we will start working on blob feature parity catch up. In the meantime, Azurite is an open source project, contribution are welcome.

For Table Storage would recommend using the emualtor from Cosmos team. They are also working on cross platform support.
https://docs.microsoft.com/en-us/azure/cosmos-db/local-emulator

@pemari-msft

This comment has been minimized.

Copy link

commented Aug 15, 2019

Hi all, thanks for your feedback. We are still supporting the older, Windows-only Storage Emulator, but new features won't be able to be added to it. We'll release a new version in the coming days that will fix the latest api-versions to ensure you are unblocked ASAP and we apologize for the confusion.

The Azurite emulator is an open-source, cross-platform emulator that we've chosen to invest in in response to customer feedback. Azurite will support Blobs and Queues, and the CosmosDB emulator is the way forward for Table emulation. Azurite is our officially recommended solution, and as such, all new Storage Service releases will also have a corresponding Azurite release on day 1.

Please let me know if you have any questions regarding the above -- we are working on some official documentation that outlines the above and we'll be posting it shortly.

@longzheng

This comment has been minimized.

Copy link

commented Aug 15, 2019

@pemari-msft thanks and when you do release the emulator update, it would be very helpful if you could please update the release notes as well (which are quite out of date) to document the API version for future reference.

https://docs.microsoft.com/en-us/azure/storage/common/storage-use-emulator

@macux

This comment has been minimized.

Copy link

commented Aug 17, 2019

So basically the solution for now is to downgrade the SDK to 10.0.3, I've confirmed this works for queues on 5.9 of the emulator. Is there a specific version or issue(s) we should watch to know when Azurite is ready to support all services for the v11 SDK? I don't want to upgrade until I can test in dev and CI end to end, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
10 participants
You can’t perform that action at this time.