Creating and configuring a storage account

Before you can upload any data or files to Azure Storage, a storage account needs to be created. This can be done using the Azure portal, PowerShell, the CLI, ARM templates, or Visual Studio.

In this demonstration, we are going to create a storage account with PowerShell:

  1. First, we need to log in to the Azure account:
Connect-AzAccount
  1. If necessary, select the right subscription:
Select-AzSubscription -SubscriptionId "********-****-****-****-***********"
  1. Create a resource group:
New-AzResourceGroup -Name PacktPubStorageAccount -Location EastUS
  1. Create a storage account. The account name should be unique, so replace this with your own account name:
New-AzStorageAccount -ResourceGroupName PacktPubStorageAccount -AccountName packtpubstorage -Location "East US" -SkuName Standard_GRS -Kind StorageV2 -AccessTier Hot
In this demonstration, we created a new storage account using PowerShell. If you are new to storage accounts, I highly recommend creating a storage account from the Azure portal as well. That way, you will see all of the available storage account types, storage replication types, and access tiers that you can choose from and the different performance tiers (standard or premium), and how these are all connected. You can refer to the following tutorial on creating a storage account from the Azure portal: https://docs.microsoft.com/en-us/azure/storage/common/storage-quickstart-create-account?tabs=azure-portal.

Now that we have created a new storage account, we can install the Azure Storage Explorer tool.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset