Azure Storage Common client library for .NET
Server Version: 2019-02-02
Azure Storage is a Microsoft-managed service providing cloud storage that is highly available, secure, durable, scalable, and redundant. Azure Storage includes Azure Blobs (objects), Azure Data Lake Storage Gen2, Azure Files, and Azure Queues.
The Azure.Storage.Common library provides infrastructure shared by the other Azure Storage client libraries.
Source code | Package (NuGet) | API reference documentation | REST API documentation | Product documentation
Getting started
Install the package
Install the Azure Storage client library for .NET you'd like to use with
NuGet and the Azure.Storage.Common
client library will be included:
dotnet add package Azure.Storage.Blobs --version 12.0.0-preview.4
dotnet add package Azure.Storage.Queues --version 12.0.0-preview.4
dotnet add package Azure.Storage.Files.Shares --version 12.0.0-preview.4
Prerequisites
You need an Azure subscription and a Storage Account to use this package.
To create a new Storage Account, you can use the Azure Portal, Azure PowerShell, or the Azure CLI. Here's an example using the Azure CLI:
az storage account create --name MyStorageAccount --resource-group MyResourceGroup --location westus --sku Standard_LRS
Key concepts
The Azure Storage Common client library contains shared infrastructure like authentication credentials and RequestFailedException.
Examples
Please see the examples for Blobs, Queues, and Files.
Troubleshooting
All Azure Storage services will throw a RequestFailedException
with helpful ErrorCode
s.
Next steps
Get started with our Common samples and then continue on with our Blobs, Queues, and Files samples.
Contributing
See the Storage CONTRIBUTING.md for details on building, testing, and contributing to these libraries.
This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit cla.microsoft.com.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.