For system, network and cloud administrators
In order to create a new Azure resource group, remember you’ll also have to mention a location.
New-AzResourceGroup -Name yourresourcegroupname -Location westeurope
In order to display the properties of a managed disk, in PowerShell session type:
Get-AzDisk -ResourceGroupName yourresourcegroup -Name yourdiskname
In order to create a managed disk, you’ll first need a configuration for that disk. In the following example, we’re creating a new variable called diskConfig which holds the commands for creating that initial disk configuration. After that being declared, the New-AzDisk command will actually create the disk. In PowerShell session type:
$diskConfig = New-AzDiskConfig `
-Location westeurope `
-CreateOption Empty `
-DiskSizeGB 32 `
-Sku Standard_LRS`
New-AzDisk `
-ResourceGroupName yourresourcegroup `
-DiskName yourdiskname `
-Disk $diskConfig
Check disk performance SKU a particular disk is using by typing in your PowerShell session:
(Get-AzDisk -ResourceGroupName yourresourcegroup -DiskName yourdiskname).Sku