[Reference feedback]: az vm list-sizes --ids parameter does not work
Type of issue
Code doesn't work
Reference command name
az vm list-sizes --ids {vmId}
Feedback
The documentation has --ids as an optional parameter for 'az vm list-sizes' but when it's used it returns the following error.
(NoRegisteredProviderFound) No registered resource provider found for location 'TsetVM' and API version '2022-11-01' for type 'locations/vmSizes'. The supported api-versions are '2015-05-01-preview, 2015-06-15, 2016-03-30, 2016-04-30-preview, 2016-08-30, 2017-03-30, 2017-12-01, 2018-04-01, 2018-06-01, 2018-10-01, 2019-03-01, 2019-07-01, 2019-12-01, 2020-06-01, 2020-12-01, 2021-03-01, 2021-04-01, 2021-07-01, 2021-11-01, 2022-03-01, 2022-08-01, 2022-11-01, 2023-03-01, 2023-07-01, 2023-09-01, 2024-03-01, 2024-07-01'. The supported locations are 'eastus, eastus2, westus, centralus, northcentralus, southcentralus, northeurope, westeurope, eastasia, southeastasia, japaneast, japanwest, australiaeast, australiasoutheast, australiacentral, brazilsouth, southindia, centralindia, westindia, canadacentral, canadaeast, westus2, westcentralus, uksouth, ukwest, koreacentral, koreasouth, francecentral, southafricanorth, uaenorth, switzerlandnorth, germanywestcentral, norwayeast, jioindiawest, westus3, swedencentral, qatarcentral, polandcentral, italynorth, israelcentral, spaincentral, mexicocentral, newzealandnorth'. Code: NoRegisteredProviderFound
Page URL
https://learn.microsoft.com/en-us/cli/azure/vm?view=azure-cli-latest#az-vm-list-sizes
Content source URL
https://github.com/MicrosoftDocs/azure-docs-cli/blob/main/latest/docs-ref-autogen/vm.yml
Author
@dbradish-microsoft
Document Id
3f79be78-ce75-ad31-304b-bad7d475ec9e
Hi @cwhitley-MSFT,
This is a known issue.
Please follow https://github.com/Azure/azure-cli/issues/23985#issue-1383263012 to get temporary workaround.
If you feel that further discussion is needed, please add a comment with the text /clibot unresolve to reopen the issue.
Thank you for opening this issue, we will look into it.
Hi @cwhitley-MSFT,
This is a known issue.
Please follow #23985 (comment) to get temporary workaround.
If you feel that further discussion is needed, please add a comment with the text
/clibot unresolveto reopen the issue.
This is happening in public cloud. Not sovereign cloud. /clibot unresolve
/clibot unresolve
@cwhitley-MSFT , I just used the following in a learn module as an alternative for az vm list-sizes --ids {vmId}.
az vm list-vm-resize-options --resource-group $rgName --name $vmName --output table
I'm not sure if my alternative gets you to where you want to go, but thought I'd share anyway.