File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
articles/virtual-machines Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -43,10 +43,10 @@ az vm list-skus --resource-type virtualMachines --location $region --query "[?na
43
43
44
44
``` powershell
45
45
# Example value is southeastasia
46
- region = "<yourLocation>"
46
+ $ region = "<yourLocation>"
47
47
# Example value is Standard_E64s_v3
48
- vmSize = "<yourVMSize>"
49
- $sku = (Get-AzComputeResourceSku | where {$_.Locations.Contains ($region) -and ($_.Name -eq $vmSize) -and $_.LocationInfo[0].ZoneDetails.Count -gt 0})
48
+ $ vmSize = "<yourVMSize>"
49
+ $sku = (Get-AzComputeResourceSku | where {$_.Locations -icontains ($region) -and ($_.Name -eq $vmSize) -and $_.LocationInfo[0].ZoneDetails.Count -gt 0})
50
50
if($sku){$sku[0].LocationInfo[0].ZoneDetails} Else {Write-host "$vmSize is not supported with Ultra Disk in $region region"}
51
51
```
52
52
@@ -79,10 +79,10 @@ az vm list-skus --resource-type virtualMachines --location $region --query "[?na
79
79
80
80
``` powershell
81
81
# Example value is westus
82
- region = "<yourLocation>"
82
+ $ region = "<yourLocation>"
83
83
# Example value is Standard_E64s_v3
84
- vmSize = "<yourVMSize>"
85
- (Get-AzComputeResourceSku | where {$_.Locations.Contains ($region) -and ($_.Name -eq $vmSize) })[0].Capabilities
84
+ $ vmSize = "<yourVMSize>"
85
+ (Get-AzComputeResourceSku | where {$_.Locations -icontains ($region) -and ($_.Name -eq $vmSize) })[0].Capabilities
86
86
```
87
87
88
88
The response will be similar to the following form, ` UltraSSDAvailable True ` indicates whether the VM size supports Ultra Disks in this region.
You can’t perform that action at this time.
0 commit comments