https://github.com/devlooped/cloudstorageaccount
Brings back the CloudStorageAccount for Azure Storage v12+
https://github.com/devlooped/cloudstorageaccount
azure cosmosdb storage
Last synced: 11 months ago
JSON representation
Brings back the CloudStorageAccount for Azure Storage v12+
- Host: GitHub
- URL: https://github.com/devlooped/cloudstorageaccount
- Owner: devlooped
- License: mit
- Created: 2022-04-23T23:49:04.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2025-07-14T00:32:36.000Z (12 months ago)
- Last Synced: 2025-07-14T02:53:48.165Z (12 months ago)
- Topics: azure, cosmosdb, storage
- Language: C#
- Homepage: https://clarius.org/CloudStorageAccount
- Size: 217 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: readme.md
- Changelog: changelog.md
- License: license.txt
Awesome Lists containing this project
README
 CloudStorageAccount
============
[](https://www.nuget.org/packages/Devlooped.CloudStorageAccount)
[](https://www.nuget.org/packages/Devlooped.CloudStorageAccount)
[](https://github.com/devlooped/CloudStorageAccount/blob/main/license.txt)
[](https://github.com/devlooped/CloudStorageAccount/actions)
CloudStorageAccount for Azure Storage v12+.
# Overview
*This project uses [SponsorLink](https://github.com/devlooped#sponsorlink)
and may issue IDE-only warnings if no active sponsorship is detected.*
The new unified Azure Storage and Tables client libraries do away with the
[CloudStorageAccount](https://docs.microsoft.com/en-us/dotnet/api/microsoft.azure.storage.cloudstorageaccount?view=azure-dotnet)
that was typically used. This makes migration a bit painful, as noted in:
* [Azure.Data.Tables](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/tables/Azure.Data.Tables/MigrationGuide.md) migration guide
* [Azure.Storage.Blobs](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Blobs/AzureStorageNetMigrationV12.md) migration guide
This package provides a (mostly) drop-in replacement, with source code brought (and updated)
from the [original location](https://github.com/Azure/azure-storage-net/blob/master/Lib/Common/CloudStorageAccount.cs).
Just replace the old namespace `Microsoft.Azure.Storage` with `Devlooped` and you're mostly done.
In addition to the legacy, backwards-compatible APIs so projects compile right away with this
package when upgrading to v12 client libraries, there are a few newer APIs that are more aligned
with the new APIs, such as:
* CloudStorageAccount.CreateBlobServiceClient (extension method)
* CloudStorageAccount.CreateQueueServiceClient (extension method)
* CloudStorageAccount.CreateTableServiceClient (extension method)
These make it more explicit that you're creating instances of the new service clients.
## Usage
```csharp
var account = CloudStorageAccount.DevelopmentStorageAccount;
var tableService = account.CreateTableServiceClient();
// legacy invocation works too: account.CreateCloudTableClient();
// Can also access the endpoints for each service:
Console.WriteLine(account.BlobEndpoint);
Console.WriteLine(account.QueueEndpoint);
Console.WriteLine(account.TableEndpoint);
```
## Dogfooding
[](https://pkg.kzu.app/index.json)
[](https://github.com/devlooped/CloudStorageAccount/actions)
We also produce CI packages from branches and pull requests so you can dogfood builds as quickly as they are produced.
The CI feed is `https://pkg.kzu.app/index.json`.
The versioning scheme for packages is:
- PR builds: *42.42.42-pr*`[NUMBER]`
- Branch builds: *42.42.42-*`[BRANCH]`.`[COMMITS]`
# Sponsors
[](https://github.com/clarius)
[](https://github.com/MFB-Technologies-Inc)
[](https://github.com/torutek-gh)
[](https://github.com/drivenet)
[](https://github.com/Keflon)
[](https://github.com/tbolon)
[](https://github.com/kfrancis)
[](https://github.com/twenzel)
[](https://github.com/unoplatform)
[](https://github.com/dansiegel)
[](https://github.com/rbnswartz)
[](https://github.com/jfoshee)
[](https://github.com/Mrxx99)
[](https://github.com/eajhnsn1)
[](https://github.com/IxTechnologies)
[](https://github.com/davidjenni)
[](https://github.com/Jonathan-Hickey)
[](https://github.com/akunzai)
[](https://github.com/KenBonny)
[](https://github.com/SimonCropp)
[](https://github.com/agileworks-eu)
[](https://github.com/sorahex)
[](https://github.com/arsdragonfly)
[](https://github.com/vezel-dev)
[](https://github.com/ChilliCream)
[](https://github.com/4OTC)
[](https://github.com/v-limo)
[](https://github.com/jordansjones)
[](https://github.com/DominicSchell)
[](https://github.com/sponsors/devlooped)
[Learn more about GitHub Sponsors](https://github.com/sponsors)