[Doc]: Get-AzVmSize is not properly working for newer VM-series - this should be added to the docs
Type of issue
Missing information
Feedback
The Cmdlet "Get-AzVmSize" has wrong data disk information for newer v6 series VM SKUs.
This could be reproduced with this code snippet:
Get-AzVMSize -Location "westeurope" | Where-Object {($.Name -like "*ds_v6") -and ($.ResourceDiskSizeInMb -eq 0)} | Select-Object Name,ResourceDiskSizeInMB
ResourceDiskSizeInMB will be 0, although these VMs have a data disk (larger than 0).
The Cmdlet is using this API:
https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/vmSizes
According to the API docs (found here: https://learn.microsoft.com/en-us/rest/api/compute/virtual-machine-sizes/list?view=rest-compute-2024-11-04&tabs=HTTP) the API is deprecated. This will be the reason why it does not work with latest SKUs.
Please add a hint to the docs that:
- The Cmdlet will not work correctly with latest VM skus
- One should use Get-AzComputeResourceSku instead as it uses a newer API
Page URL
https://learn.microsoft.com/en-us/powershell/module/az.compute/get-azvmsize?view=azps-13.3.0
Content source URL
https://github.com/Azure/azure-powershell/blob/main/src/Compute/Compute/help/Get-AzVMSize.md
Author
@mikefrobbins
Document Id
9c12b5d4-2e9e-4170-f45b-5e3b136c607f
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @Drewm3, @TravisCragg-MSFT, @nikhilpatel909, @sandeepraichura, @hilaryw29, @GabstaMSFT.
@HaikoHertes thanks for the feedback! We will update the API doc with a clearer explanation.
:bell: Routing this issue to @act-observability-squad.