Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kolosovpetro/azurestoragesdktraining.az204
Just repo where I practice interaction with Azure Storage SDK such as upload blobs, download blobs, set blob metadata, set blob properties, change access policies using SAS etc.
https://github.com/kolosovpetro/azurestoragesdktraining.az204
azure-blob azure-blob-storage azure-storage
Last synced: 2 days ago
JSON representation
Just repo where I practice interaction with Azure Storage SDK such as upload blobs, download blobs, set blob metadata, set blob properties, change access policies using SAS etc.
- Host: GitHub
- URL: https://github.com/kolosovpetro/azurestoragesdktraining.az204
- Owner: kolosovpetro
- License: mit
- Created: 2022-09-10T21:21:48.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-09-11T09:58:44.000Z (over 2 years ago)
- Last Synced: 2024-11-15T17:44:35.491Z (2 months ago)
- Topics: azure-blob, azure-blob-storage, azure-storage
- Language: C#
- Homepage:
- Size: 4.45 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Practice with Azure Storage SDK
[![Run Build and Test](https://github.com/kolosovpetro/AzureStorageSDKTraining.AZ204/actions/workflows/run-build-and-test-dotnet.yml/badge.svg)](https://github.com/kolosovpetro/AzureStorageSDKTraining.AZ204/actions/workflows/run-build-and-test-dotnet.yml)
Just repo where I practice interaction with Azure Storage SDK such as upload blobs, download blobs, set blob metadata,
set blob properties, change access policies using SAS etc.## Infrastructure provisioning
- Create resource group: `az group create --name "storage-training-rg" --location "centralus"`
- Crate storage
account: `az storage account create --name "storagepkolosov" --resource-group "storage-training-rg" --location "centralus" --sku "Standard_ZRS" --kind "StorageV2"`
- Create
container: `az storage container create --name "containerpkolosov" --account-name "storagepkolosov" --public-access "off"`## Azure storage SDK entities
- `BlobServiceClient` - to manage azure storage account, requires:
- `new StorageSharedKeyCredential(StorageAccountName, StorageAccountKey)`
- `new Uri(BlobServiceEndpoint)`
- `BlobContainerClient` - to manage azure storage container, requires `BlobServiceClient`
- `BlobClient` - to manage particular blob (file), requires `BlobContainerClient`## Required packages
- `dotnet add package Azure.Storage.Blobs`