Skip to content

Praveen Kumar Sreeram's Blog

Azure for developers

  • Home
  • Azure
  • Azure Data FActory
  • Azure Functions
  • Application Insights
  • Trainings
    • Azure Administration with DevOps
    • Azure DevOps – Online Training
    • Azure for Developers (Az-204)
    • Azure for Administrators (Az-104)
    • Azure for Data Engineers
    • Azure Data Factory
    • Learn Terraform with Azure
  • Azure Interview Questions
  • Azure DevOps
  • About
    • Contact
  • Microsoft Azure – Tips
December 28, 2016 Azure

Create a Storage Account and learn how to access It Programmatically

Praveen Kumar Sreeram's avatarPosted by Praveen Kumar Sreeram

Introduction

Please have a look at the following articles to understand more about the basics of Storage Account.

  • Azure Storage – Basics
  • Azure Resource Manage Template: Create A Storage Account Using Blank Template

Let’s start by creating a new Storage Account and understand the properties of the Storage Account while creating the same.

Navigate to the Azure Management portal and go to Storage Accounts blade as shown below.

1_add

Click on Add button in the above blade to navigate to the Create Storage Account blade as shown below.

Advertisements
1_createstorageaccount

Please provide the following details.

Field NameDescription
NameName of the Storage Account
URL<Storage Account Name>.core.windows.net
Deployment ModelSelect Resource Manager – Recommended by Microsoft
Account KindSelect General Purpose – This is used for creating and storing Blobs / Tables / Queues. (We will learn about how to create these programmatically in the upcoming articles.)
PerformanceSelect Standard. (Premium is only for storing VHDs for Virtual Machines)
ReplicationSelect LRS
Storage Service EncryptionDisabled (If you select Enabled, all the data that you write to the Storage will be in encrypted format and will be decrypted automatically when you read it. There might be a slight performance hit if you choose Enabled.
SubscriptionChoose the required Subscription
Resource GroupChoose the required Resource Group – Please make sure that the Applications, Virtual Machines that access this storage account are in the same Resource Group to reduce the latency issues.
LocationChoose the required Data Center Location – Please make sure that the Applications, Virtual Machines that access this storage account are in the same Location to reduce the latency issues.
Advertisements

Once you are ready click on Create button to create the Storage Account. After a few seconds, the Storage Account gets created as shown below.

2_addedsuccessfully

Clicking on the storage account, you will be taken to its details page as shown below.

3_storageoverview
Advertisements

Now that we have created the Storage Account successfully we need to understand how to access it programmatically.

Before we learn about the APIs related to Storage account we need to understand few basics about the details that are required for programmatic access of the service.

  • Storage Service End Point – Each Storage Account name is unique within azure and it has a unique URL in the format <storageaccountname>.core.windowsazure.net
  • Access Keys – As these URLs are publicly accessible, we need a mechanism to securely access the resources. These Access Keys are used for authentication purposes for the applications that access the Storage accounts and its services likes Blobs, Queues and File Shares.
  • Nuget Package – We can use Storage package to Connect, Read and Write to the Storage Services.

In order to view the Access Keys, navigate to the Access Keys blade as shown below.

Advertisements
4_accesskeys

We need to provide a ConnectionString to the Storage Account as an input to the WindowAzure.Storage library functions.

Click on the ellipses that are available in the keys shown below.

5_viewconnectionstring

Now, click on the View Connection String to open the actual connection string shown below.

6_connectionstring

The connection String has the following

Advertisements
  • DefaultEndPointsProtocol – The protocol that is used while connecting to the Storage Account end point. In most of the cases, you don’t need to change this.
  • Account name – It’s just the name of the Storage Account – You just need to replace it with the name of your Storage Account
  • AccountKey – Use one of the keys available in the Access Keys tab.

Summary: we have learnt the following

  • Create a new Storage Account using Azure Management Portal
  • Attributes of Storage Account
  • Components required for access the Storage Account services programmatically.
  • Access Keys
  • Connection String for the Storage Account

Hope you enjoyed reading the article. Your feedback is appreciated.

Do you like this article? If you want to get more updates about these kind of articles, you can join my Learning Groups

WhatsApp

Telegram

Advertisements
Advertisements
Advertisements

Share this:

  • Click to share on X (Opens in new window) X
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on WhatsApp (Opens in new window) WhatsApp
  • Click to share on Pinterest (Opens in new window) Pinterest
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Tumblr (Opens in new window) Tumblr
  • Click to share on Pocket (Opens in new window) Pocket
  • Click to share on Telegram (Opens in new window) Telegram
  • Click to email a link to a friend (Opens in new window) Email
  • Click to print (Opens in new window) Print
Like Loading...

Related

AzureStorage Account

Post navigation

Previous Post

Azure App Service API Apps Configure Swashbuckle

Next Post

Azure Storage Create Container Programmatically using C#.Net Storage Client Library

5 comments

  1. Pingback: Azure Storage Account Create Container Programmatically using C#.Net Storage Client Library – Praveen Kumar Sreeram's Blog
  2. Pingback: Azure Storage Account Why Two Access Keys – Praveen Kumar Sreeram's Blog
  3. Pingback: Azure Storage Account – Create Block Blob Programmatically using C#.Net – Praveen Kumar Sreeram's Blog
  4. Pingback: Azure Storage Account Configure CDN End Point – Praveen Kumar Sreeram's Blog
  5. Pingback: Azure Storage Account – Configure Security using Shared Access Signature – Praveen Kumar Sreeram's Blog

Leave a comment Cancel reply

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 151 other subscribers
Follow Praveen Kumar Sreeram's Blog on WordPress.com

Overview of Azure Bicep

Azure Bicep – Hello World

Enter your email address to follow this blog and receive notifications of new posts by email.

Join 151 other subscribers

Azure Serverless Computing Cookbook

Azure Serverless Computing Cookbook by Praveen Kumar Sreeam - Third Edition
  • Azure - Assign API Permissions to Managed Identity using PowerShell
  • Azure DevOps - Failed to delete branch. Force push permission is required to delete branches
  • Azure DevOps – Tips and Tricks - 12– How to restrict direct commits to a branch using branch Policies
  • Azure App Service - Interview Questions
  • Azure Data Factory - All about publish branch adf_publish
  • Azure Data Factory - How to Retrieve the Latest File in Each Folder
  • Azure DevOps – Tips and Tricks – 6 – Resolve Merge Conflicts using Pull Request Merge Conflicts Azure DevOps Extension
  • Azure DevOps - Tips and Tricks - 10 - Manage environment specific configurations using Replace Tokens – Azure DevOps Marketplace extension
  • Azure Scale up and Scale Out
  • Create Sitecore Web Experience Platform 8.2 on Azure Platform as a Service
Advertisements

Blog Stats

  • 846,161 hits

Archives

  • February 2025 (1)
  • December 2024 (6)
  • November 2024 (1)
  • October 2024 (1)
  • March 2024 (3)
  • February 2023 (3)
  • November 2022 (7)
  • October 2022 (6)
  • September 2022 (3)
  • June 2022 (1)
  • May 2022 (3)
  • April 2022 (4)
  • February 2022 (6)
  • January 2022 (2)
  • December 2021 (1)
  • August 2021 (1)
  • May 2021 (1)
  • April 2021 (7)
  • February 2021 (1)
  • September 2020 (3)
  • August 2020 (1)
  • July 2020 (5)
  • June 2020 (7)
  • September 2019 (1)
  • October 2017 (1)
  • May 2017 (1)
  • March 2017 (14)
  • February 2017 (1)
  • January 2017 (2)
  • December 2016 (19)
  • November 2016 (31)
  • October 2016 (19)

Categories

  • .Net Core (3)
  • App Service (7)
  • Application Insights (5)
  • ASP.NET Core 3.1 (3)
  • Azure (141)
  • Azure Data FActory (10)
  • Azure DevOps (44)
  • Azure DevOps Interview Questions (1)
  • Azure Functions (8)
  • Azure Interview Questions (1)
  • Sitecore (10)
  • Tips & Tricks (25)
Advertisements

Follow me on Twitter

My Tweets

Blogs I Follow

  • Azure Cloud | John Lokerse
  • Common Man Tips for Power Platform, Dynamics CRM,Azure
  • Thomas Thornton Blog
  • somasundaram82
  • Praveen Kumar Sreeram's Blog
  • Big Data Analytics
  • Cloud and DevOps Space
  • Modern Enterprise IT - Think Hybrid, Think Cloud
  • Exercising Sitecore
  • salt and sitecore
  • Manohara Prasad
  • Sitecore Architecture
  • Kireet Tssk's Blog
  • Srikaracharya's blog
  • Sravani Reddy's Blog
  • ADITYA CIVIL WORKS
  • Karim Vaes
  • Build5Nines

Recent Posts

  • Azure Storage Account – Disaster Recovery: Planned Failover February 13, 2025
  • Azure – Assign API Permissions to Managed Identity using PowerShell December 29, 2024
  • Azure SQL Database – Configure Job using Elastic Agents December 29, 2024
  • Create Database-Scoped Users for Microsoft Entra Security Groups December 27, 2024
  • Implementing Inheritance in Azure Bicep: A Workaround Using Global and Module-Specific Tags December 23, 2024
Advertisements
Advertisements
Advertisements
Website Powered by WordPress.com.
Azure Cloud | John Lokerse

Common Man Tips for Power Platform, Dynamics CRM,Azure

Venkata Subbarao Polisetty - Microsoft MVP,C# Corner MVP

Thomas Thornton Blog

Empowering Developers with Azure, Azure DevOps, GitHub & Terraform Insights

somasundaram82

Praveen Kumar Sreeram's Blog

Azure for developers

Big Data Analytics

Occasional observations from a vet of many database, Big Data and BI battles

Cloud and DevOps Space

This website contains blogs about Microsoft Cloud i.e Azure and DevOps concepts.

Modern Enterprise IT - Think Hybrid, Think Cloud

Azure, Azure AD, Office 365

Exercising Sitecore

Sitecore, Sitecore Personalization, Sitecore Analytics, xDB, WFFM - Sitecore MVP & .NET Developer Blog

salt and sitecore

Don't give up on your dreams.......keep sleeping.

Manohara Prasad

Sitecore Architecture

Grant's Sitecore Rants

Kireet Tssk's Blog

Srikaracharya's blog

It is not about being best.. It is about being better than yesterday.

Sravani Reddy's Blog

It's all about sharing knowlege

ADITYA CIVIL WORKS

Help you in finding

Karim Vaes

The insights of a Quirky Tech Enthousiast on his journey through the fast paced IT landscape.

Build5Nines

Cloud, DevOps & SRE Guidance

Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
  • Comment
  • Reblog
  • Subscribe Subscribed
    • Praveen Kumar Sreeram's Blog
    • Join 151 other subscribers
    • Already have a WordPress.com account? Log in now.
    • Praveen Kumar Sreeram's Blog
    • Subscribe Subscribed
    • Sign up
    • Log in
    • Copy shortlink
    • Report this content
    • View post in Reader
    • Manage subscriptions
    • Collapse this bar
 

Loading Comments...
 

    %d