Azure - Manage Blob Storage - Part #1 - Set up Env


Problem Definition

How to set up development environment to manage Blob data files in Azure.

Prerequisites

Access to Azure Portal - http://portal.azure.com
Azure General Purpose Storage Account
Microsoft Visual Studio(Fo this demo used Visual Studio Community for Mac)

Create General purpose storage account 


  • Log in to Azure Portal 
  • Look for "Storage Accounts"


  • Click "Add"

  • Choose your settings as you want them to be used. Concentrate on the name for Storage Account, Account Kind, Replication, Performance and Storage Group name.


  • Click create and wait for it to finish. Once done it will start appearing under your storage accounts.

  • In the next step we will extract the key\connection information to set up our Visual Studio



  • Click on any key Connection String and copy it.
  • Install Nuget Package for "WindowsAzure.Storage" it will install dependent packages. 
  • Following image displays references required for Azure account.

  • Create a new console project and copy your key either to your configuration file or to code it self. For this this demo I am adding it directly to code.
  • In order to make things easier I have created a separate class adding the following code to your class will enable you successfully establish a connection with your Azure account.

  • Sample code class will be added to end of this series.

Resources

https://docs.microsoft.com/en-us/azure/storage/blobs/storage-quickstart-blobs-dotnet?tabs=macos

Comments

Popular posts from this blog

Azure - Manage Blob Storage - Part #5 - Create Folder Structure and upload a file to folder using an Existing Container using C#

Sharepoint and REST - WebClient - Get List Data

Azure - Manage Blob Storage - Part #7 - Add Metadata to an Existing Container using C#