For system, network and cloud administrators

How to delete all Azure managed disks that start with a pattern using Azure PowerShell

In order to remove all Azure managed disks that start with the name disk, in your PowerShell session type:

Get-AzDisk -ResourceGroupName yourgroupresource -Name 'disk*' | Remove-AzDisk -Force -Verbose


How to retrieve properties of a newly created Azure managed disk using Azure PowerShell

In order to display the properties of a managed disk, in PowerShell session type:

Get-AzDisk -ResourceGroupName yourresourcegroup -Name yourdiskname

How to check Azure disk performance SKU using Azure PowerShell

Check disk performance SKU a particular disk is using by typing in your PowerShell session:

(Get-AzDisk -ResourceGroupName yourresourcegroup -DiskName yourdiskname).Sku

How to update the size of an Azure managed disk using Azure PowerShell

It comes helpful to know how to update the size of a newly created disk in Azure. So, in your PowerShell session type:

New-AzDiskUpdateConfig -DiskSizeGB 64 | Update-AzDisk -ResourceGroupName yourresourcegroup -DiskName thenameofyourdisk

Verify:

Get-AzDisk -ResourceGroupName yourresourcegroup -Name thenameofyourdisk