Provisioning an Azure storage account using PowerShell
PowerShell is a scripting language used to programmatically manage various tasks. In this recipe, we will learn how to provision an Azure storage account using PowerShell.
Getting ready
Before you start, you need to log in to the Azure subscription from the PowerShell console. To do this, execute the following command in a new PowerShell window:
Connect-AzAccount
Then, follow the instructions to log in to the Azure account.
How to do it…
The steps for this recipe are as follows:
- Execute the following command in a PowerShell window to create a new resource group. If you want to create the Azure storage account in an existing resource group, this step isn't required:
New-AzResourceGroup -Name Packtade-powershell -Location 'East US'
You should get the following output:
Figure 1.5 – Creating a new resource group
- Execute the following command...