what is the replacement for Microsoft.Azure.Storage.Blob library

Vish Pothaganti 41 Reputation points
2020-11-30T13:49:44.957+00:00

As mentioned in the guidelines in https://learn.microsoft.com/en-us/sharepoint/dev/apis/migration-api-overview. To create a MigrationJob it requires to use Microsoft.Azure.Storage.Blob library and it is flagged as deprecated on nuget and flagged as legacy on all microsoft documentations.

What library should be used in place of Microsoft.Azure.Storage.Blob

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,734 questions
0 comments No comments
{count} votes

Accepted answer
  1. Michael Taylor 54,401 Reputation points
    2020-11-30T15:17:09.863+00:00

    The Azure SDK is migrating to Azure.* as documented here. Not all functionality for the SDK has been migrated yet so you need to look at what you're using to see if you can switch to the new library.

    In your case you are not relying on Azure Storage directly but rather using a library that relies on Azure storage. Therefore you cannot update that library to the new package because the namespaces are different. Therefore you'll have to continue referencing the deprecated packages (which won't break your build) until the SharePoint team updates their packages to use the newer client libraries. However if you also need to work with Azure then consider using the newer library yourself while letting the SharePoint library continue to use the older library. They shouldn't conflict.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Amos Wu-MSFT 4,051 Reputation points
    2020-12-01T01:40:36.83+00:00

    You could find the Suggested Alternatives in Microsoft.Azure.Storage.Blob's homepage in NuGet.
    https://www.nuget.org/packages/Microsoft.Azure.Storage.Blob/
    The Suggested Alternatives is Azure.Storage.Blobs.
    43845-image.png


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.