login to tenant Install-Module AzImport-Module AzConnect-AzAccount change subscriptions Set-AzContext -Subscription “5cf7452e-….” Create a new Resource Group container $ResourceGroupName = “allen-tf-sandbox”$location = “southafricanorth”New-AzResourceGroup -Name $ResourceGroupName-Location $location -Tag @{CustomerName=”Customer01″;AutoShutdownSchedule=”None”; `Environment=”sandbox”;} st.acc variables $StorageAccName = ‘devopssandboxterraf01’$StorageType = ‘Standard_LRS’ create your storage account New-AzStorageAccount -ResourceGroupName $ResourceGroupName-Name $StorageAccName -Type $StorageType-Location $location -Tag @{CustomerName=”Customer01″;AutoShutdownSchedule=”None”; `Environment=”sandbox”;} create your container $azstorageacc = Get-AzStorageAccount… Continue reading Storage Account + Container + Get account keys
Tag: storage account
Provision a Storage Account
This script deploys a simple Azure storage account v2 with LRS.