In this Azure article, we will discuss Azure storage account and how to create Azure storage accounts using Azure Portal and PowerShell.
Table of Contents
Azure storage account
An Azure storage account is something that contains all the Azure storage data objects. The Azure storage data objects are like blobs, files, queues, tables, and disks, etc.
Once you store the data inside the Azure storage account that becomes more secure, scalable, durable, and highly available.
Azure storage account helps you provide a unique namespace for your Azure storage data and another important thing is that with the help of the unique namespace your Azure storage data is accessible from anywhere in the world over HTTP or HTTPS.
Azure storage account types
There are different types of storage accounts provided by Microsoft like General-purpose v2 accounts, General-purpose v1 accounts, BlockBlobStorage accounts, FileStorage accounts, BlobStorage accounts, etc.
How to create a storage account in Azure Portal
Follow the below steps to create the storage account
Step-1: Login to the Azure portal (https://portal.azure.com/)
Step-2: Search for the Storage accounts (classic) and select it.
Step-3: Click on the + Add button from the Storage accounts (classic) window.
Step-4: On the Create storage account window, Provide the below details in the Basics tab.
- Subscription: Select your subscription details.
- Resource group: Select your existing resource group or you can create a new one by clicking on the Create new link.
- Storage account name: Provide a valid name for your storage account.
- Location: Select the location you belong to.
- Performance: Select the Standard option.
- Account kind: You can use the default option or you can choose the appropriate option.
- Replication: You can use the default option or you can choose the appropriate option.
- Access tier(default): You can select the default Hot option or Cool option.
Click on the Next: Networking > button to go to the Networking tab.
On the networking tab keep the default option as it is. Click on the Next : Tags > button to go to the Tags tab
On the Tags tab no need to change anything click on the Next: Review + Create> button.
Click on the Create button to create the storage account.
Now you can see it is deployed successfully
How to create a storage account in Azure using PowerShell
You can use the below PowerShell cmdlet to create a storage account using PowerShell.
$resourceGroup = 'newresgroup' $location = 'East US' New-AzStorageAccount -ResourceGroupName $resourceGroup ` -Name mynewstroageaccount890 ` -Location $location ` -SkuName Standard_RAGRS ` -Kind StorageV2
The name should be a unique name with all lowercase letters.
After executing the above PowerShell script, the storage account has been created successfully. See the below screenshot.
The SkuName parameter can be anything from below based on your business needs
Locally redundant storage as Standard_LRS, Zone-redundant storage (ZRS) as the Standard_ZRS, Geo-redundant storage (GRS) as the Standard_GRS, Read-access geo-redundant storage (GRS) as the Standard_RAGRS, etc
Now you can log in to the Azure portal and verify if the storage account got created
How to Delete a storage account using PowerShell
You can delete a storage account using PowerShell which deletes the entire account with all data in the account.
You can use the below cmdlet to delete the Storage account.
Remove-AzStorageAccount -Name mynewstroageaccount890 -ResourceGroupName newresgroup
Once you will run the above cmdlet, you will get the below Confirm popup, click on the Yes button to confirm for deletion.
Now you can see the storage account got deleted and it is no longer available in the Azure portal.
You can also like following the below articles
In this article, we discussed Azure storage accounts, Azure storage account types, and how to create Azure storage accounts using Azure Portal and PowerShell. Thanks for reading this article !!!