Managed Disk vs un managed Disk
- Un managed disks have account limits in terms of TB (500 TB in as storage account)
- In Managed disks upgrading from Standard to Premium is seamless. (For unmanaged disks => Create a new storage account in premium tier, copy the VHDS to the new storage account and link it back to vm)
- A Managed disk will have a predictable performance. In the case of unmanaged disks only premium storage gives you predictable performance. There are IOPS limits of 20000 IOPS for the storage account.
- Managed disks have better availability SLA’s
Creating a Storage Account
- Powershell:
- Ensure you are connected to Azure if not use the following cmdlet
Connect-AzAccount - To Create a storage account we need to know Azure Storage account cmd lets
- Refer Here for the whole commands of storage
- Use Powershell help
Get-Command '*-AzStorageAccount*' Get-Help -Online New-AzStorageAccount - Creating a Storage account
$rgName = "LearningStorage" $accountName = "qtstoragefromps" $rg = New-AzResourceGroup -Name $rgName -Location 'centralus' $storageAccount = New-AzStorageAccount -ResourceGroupName $rg.ResourceGroupName -Location $rg.Location -Name $accountName -SkuName Premium_LRS -Kind StorageV2 -AccessTier Hot- Removing the Storage created
Remove-AzResourceGroup -Name LearningStorage - Ensure you are connected to Azure if not use the following cmdlet
- CLI
- Ensure you are logged in the cli to azure if not
az login- Finding the right command Refer Here
- Creating a resource group
az group create --location 'centralus' --name 'qtstoragefromcli'- Creating a storage account
az storage account create --name 'qtstoragecli' --resource-group 'qtstoragefromcli' --access-tier Hot --kind StorageV2 --sku Premium_LRS- Viewing storage accounts
az storage account list az storage account show --name qtstoragecli- Delete the resource group
az group delete --name qtstoragefromcli
