Skip to content

az vm image list --output table #33220

@shoaibz90

Description

@shoaibz90

Describe the bug

The command failed with an unexpected error. Here is the traceback:
Extra data: line 1 column 4 (char 3)
Traceback (most recent call last):
File "/opt/homebrew/Cellar/azure-cli/2.85.0/libexec/lib/python3.13/site-packages/knack/cli.py", line 233, in invoke
cmd_result = self.invocation.execute(args)
File "/opt/homebrew/Cellar/azure-cli/2.85.0/libexec/lib/python3.13/site-packages/azure/cli/core/commands/init.py", line 677, in execute
raise ex
File "/opt/homebrew/Cellar/azure-cli/2.85.0/libexec/lib/python3.13/site-packages/azure/cli/core/commands/init.py", line 820, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/azure-cli/2.85.0/libexec/lib/python3.13/site-packages/azure/cli/core/commands/init.py", line 789, in _run_job
result = cmd_copy(params)
File "/opt/homebrew/Cellar/azure-cli/2.85.0/libexec/lib/python3.13/site-packages/azure/cli/core/commands/init.py", line 335, in call
return self.handler(*args, **kwargs)
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/azure-cli/2.85.0/libexec/lib/python3.13/site-packages/azure/cli/core/commands/command_operation.py", line 120, in handler
return op(**command_args)
File "/opt/homebrew/Cellar/azure-cli/2.85.0/libexec/lib/python3.13/site-packages/azure/cli/command_modules/vm/custom.py", line 2700, in list_vm_images
all_images = load_images_from_aliases_doc(cmd.cli_ctx, publisher_name, offer, sku, architecture)
File "/opt/homebrew/Cellar/azure-cli/2.85.0/libexec/lib/python3.13/site-packages/azure/cli/command_modules/vm/_actions.py", line 196, in load_images_from_aliases_doc
dic = json.loads(response.content.decode())
File "/opt/homebrew/Cellar/python@3.13/3.13.13/Frameworks/Python.framework/Versions/3.13/lib/python3.13/json/init.py", line 352, in loads
return _default_decoder.decode(s)
~~~~~~~~~~~~~~~~~~~~~~~^^^
File "/opt/homebrew/Cellar/python@3.13/3.13.13/Frameworks/Python.framework/Versions/3.13/lib/python3.13/json/decoder.py", line 348, in decode
raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 1 column 4 (char 3)

==================
az vm create
--resource-group azure-cli-demo
--name azure-cli-vm
--image Ubuntu2204
--vnet-name azure-cli-vnet
--subnet example-subnet
--generate-ssh-keys
--output table
The default value of '--size' will be changed to 'Standard_D2s_v5' from 'Standard_DS1_v2' in a future release.
Extra data: line 1 column 4 (char 3)
shoib@Shoiburs-MacBook-Air Downloads % az upgrade
This command is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
You already have the latest azure-cli version: 2.85.0
Upgrade finished.

Related command

az vm create
--resource-group azure-cli-demo
--name azure-cli-vm
--image Ubuntu2204
--vnet-name azure-cli-vnet
--subnet example-subnet
--generate-ssh-keys
--output table
The default value of '--size' will be changed to 'Standard_D2s_v5' from 'Standard_DS1_v2' in a future release.
Extra data: line 1 column 4 (char 3)
shoib@Shoiburs-MacBook-Air Downloads % az upgrade
This command is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
You already have the latest azure-cli version: 2.85.0
Upgrade finished.

Errors

az vm create
--resource-group azure-cli-demo
--name azure-cli-vm
--image Ubuntu2204
--vnet-name azure-cli-vnet
--subnet example-subnet
--generate-ssh-keys
--output table
The default value of '--size' will be changed to 'Standard_D2s_v5' from 'Standard_DS1_v2' in a future release.
Extra data: line 1 column 4 (char 3)
shoib@Shoiburs-MacBook-Air Downloads % az upgrade
This command is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
You already have the latest azure-cli version: 2.85.0
Upgrade finished.

Issue script & Debug output

az vm create
--resource-group azure-cli-demo
--name azure-cli-vm
--image Ubuntu2204
--vnet-name azure-cli-vnet
--subnet example-subnet
--generate-ssh-keys
--output table
The default value of '--size' will be changed to 'Standard_D2s_v5' from 'Standard_DS1_v2' in a future release.
Extra data: line 1 column 4 (char 3)
shoib@Shoiburs-MacBook-Air Downloads % az upgrade
This command is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
You already have the latest azure-cli version: 2.85.0
Upgrade finished.

Expected behavior

az vm create
--resource-group azure-cli-demo
--name azure-cli-vm
--image Ubuntu2204
--vnet-name azure-cli-vnet
--subnet example-subnet
--generate-ssh-keys
--output table
The default value of '--size' will be changed to 'Standard_D2s_v5' from 'Standard_DS1_v2' in a future release.
Extra data: line 1 column 4 (char 3)
shoib@Shoiburs-MacBook-Air Downloads % az upgrade
This command is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
You already have the latest azure-cli version: 2.85.0
Upgrade finished.

Environment Summary

azure-cli 2.85.0

core 2.85.0
telemetry 1.1.0

Dependencies:
msal 1.35.1
azure-mgmt-resource 24.0.0

Python location '/opt/homebrew/Cellar/azure-cli/2.85.0/libexec/bin/python'
Config directory '/Users/shoib/.azure'
Extensions directory '/Users/shoib/.azure/cliextensions'

Python (Darwin) 3.13.13 (main, Apr 7 2026, 18:19:01) [Clang 17.0.0 (clang-1700.6.4.2)]

Legal docs and information: aka.ms/AzureCliLegal

Your CLI is up-to-date.

Additional context

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions