If you intend to use the WindowsAzure.Storage library with .Net Core you’ll hit a “compatibility wall” trying to make it work.

So how can we use .Net Core to Create Azure Blob Storage SAS Keys?

1. Add the System.Security.Cryptography.Algorithms dependency
2. Create a StorageEntitySas class to hold the SAS key
3. Create the following methods
4. Call the GetSharedAccessSignature method.

Find a full working sample here: https://github.com/cmendible/dotnetcore.samples/tree/master/cloud.design.patterns/valet.key/valet.key.server

Hope it helps!!!

Leave a Reply

Your email address will not be published. Required fields are marked *