-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Open
Labels
Auto-AssignAuto assign by botAuto assign by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamThe command of the issue is owned by Azure CLI teamBreaking ChangeComputeaz vm/vmss/image/disk/snapshotaz vm/vmss/image/disk/snapshotbugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.
Milestone
Description
Describe the bug
Since 2.81, changing the OS disk for a VM throws an 'id' key error.
Reverting back to azure-cli tools 2.80, things work again.
Using the Debian/Ubuntu packaging source from https://packages.microsoft.com/repos/azure-cli
Related command
az vm update --debug --subscription 2b159a4b-3012-479e-95da-087f1bb06ef5 --resource-group pkr-Resource-Group-20251219083639 --name pkr-vm-20251219083639 --os-disk pkr-disk-temp
Errors
2025-12-19T08:45:30Z: ==> azure-arm.main: ERROR: The command failed with an unexpected error. Here is the traceback:
2025-12-19T08:45:30Z: ==> azure-arm.main: ERROR: 'id'
2025-12-19T08:45:30Z: ==> azure-arm.main: Traceback (most recent call last):
2025-12-19T08:45:30Z: ==> azure-arm.main: File "/opt/az/lib/python3.13/site-packages/knack/cli.py", line 233, in invoke
2025-12-19T08:45:30Z: ==> azure-arm.main: cmd_result = self.invocation.execute(args)
2025-12-19T08:45:30Z: ==> azure-arm.main: File "/opt/az/lib/python3.13/site-packages/azure/cli/core/commands/__init__.py", line 666, in execute
2025-12-19T08:45:30Z: ==> azure-arm.main: raise ex
2025-12-19T08:45:30Z: ==> azure-arm.main: File "/opt/az/lib/python3.13/site-packages/azure/cli/core/commands/__init__.py", line 734, in _run_jobs_serially
2025-12-19T08:45:30Z: ==> azure-arm.main: results.append(self._run_job(expanded_arg, cmd_copy))
2025-12-19T08:45:30Z: ==> azure-arm.main: ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
2025-12-19T08:45:30Z: ==> azure-arm.main: File "/opt/az/lib/python3.13/site-packages/azure/cli/core/commands/__init__.py", line 703, in _run_job
2025-12-19T08:45:30Z: ==> azure-arm.main: result = cmd_copy(params)
2025-12-19T08:45:30Z: ==> azure-arm.main: File "/opt/az/lib/python3.13/site-packages/azure/cli/core/commands/__init__.py", line 336, in __call__
2025-12-19T08:45:30Z: ==> azure-arm.main: return self.handler(*args, **kwargs)
2025-12-19T08:45:30Z: ==> azure-arm.main: ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
2025-12-19T08:45:30Z: ==> azure-arm.main: File "/opt/az/lib/python3.13/site-packages/azure/cli/core/commands/command_operation.py", line 239, in handler
2025-12-19T08:45:30Z: ==> azure-arm.main: result = cached_put(self.cmd, setter, **setterargs)
2025-12-19T08:45:30Z: ==> azure-arm.main: File "/opt/az/lib/python3.13/site-packages/azure/cli/core/commands/__init__.py", line 455, in cached_put
2025-12-19T08:45:30Z: ==> azure-arm.main: return _put_operation()
2025-12-19T08:45:30Z: ==> azure-arm.main: File "/opt/az/lib/python3.13/site-packages/azure/cli/core/commands/__init__.py", line 449, in _put_operation
2025-12-19T08:45:30Z: ==> azure-arm.main: result = operation(**kwargs)
2025-12-19T08:45:30Z: ==> azure-arm.main: File "/opt/az/lib/python3.13/site-packages/azure/cli/command_modules/vm/custom.py", line 1776, in update_vm
2025-12-19T08:45:30Z: ==> azure-arm.main: vm_id_parsed = parse_resource_id(vm["id"])
2025-12-19T08:45:30Z: ==> azure-arm.main: ~~^^^^^^
2025-12-19T08:45:30Z: ==> azure-arm.main: KeyError: 'id'
Issue script & Debug output
alex@hanzawa:~/src/radnac$ az vm update --debug --subscription 2b159a4b-3012-479e-95da-087f1bb06ef5 --resource-group pkr-Resource-Group-20251219083639 --name pkr-vm-20251219083639 --os-disk pkr-disk-temp
cli.knack.cli: Command arguments: ['vm', 'update', '--debug', '--subscription', '2b159a4b-3012-479e-95da-087f1bb06ef5', '--resource-group', 'pkr-Resource-Group-20251219083639', '--name', 'pkr-vm-20251219083639', '--os-disk', 'pkr-disk-temp']
cli.knack.cli: __init__ debug log:
Enable color in terminal.
cli.knack.cli: Event: Cli.PreExecute []
cli.knack.cli: Event: CommandParser.OnGlobalArgumentsCreate [<function CLILogging.on_global_arguments at 0x7f74fa854fe0>, <function OutputProducer.on_global_arguments at 0x7f74fa5c4c20>, <function CLIQuery.on_global_arguments at 0x7f74fa5eed40>]
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableCreate []
cli.azure.cli.core: Modules found from index for 'vm': ['azure.cli.command_modules.vm']
cli.azure.cli.core: Loading command modules:
cli.azure.cli.core: Name Load Time Groups Commands
cli.azure.cli.core: vm 0.182 60 223
cli.azure.cli.core: Total (1) 0.182 60 223
cli.azure.cli.core: These extensions are not installed and will be skipped: ['azext_ai_examples', 'azext_next']
cli.azure.cli.core: Loading extensions:
cli.azure.cli.core: Name Load Time Groups Commands Directory
cli.azure.cli.core: Total (0) 0.000 0 0
cli.azure.cli.core: Loaded 60 groups, 223 commands.
cli.azure.cli.core: Found a match in the command table.
cli.azure.cli.core: Raw command : vm update
cli.azure.cli.core: Command table: vm update
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableTruncate [<function AzCliLogging.init_command_file_logging at 0x7f74f94eb420>]
cli.azure.cli.core.azlogging: metadata file logging enabled - writing logs to '/home/alex/.azure/commands/2025-12-19.08-47-48.vm_update.1744416.log'.
az_command_data_logger: command args: vm update --debug --subscription {} --resource-group {} --name {} --os-disk {}
cli.knack.cli: Event: CommandInvoker.OnPreArgumentLoad [<function register_global_subscription_argument.<locals>.add_subscription_parameter at 0x7f74f9548720>]
cli.azure.cli.core.profiles._shared: Traceback (most recent call last):
File "/opt/az/lib/python3.13/site-packages/azure/cli/core/profiles/_shared.py", line 454, in _get_attr
op = import_module(full_mod_path)
File "/opt/az/lib/python3.13/importlib/__init__.py", line 88, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
File "<frozen importlib._bootstrap>", line 1310, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
File "<frozen importlib._bootstrap>", line 1324, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'azure.mgmt.compute.v2024_03_03'
cli.knack.cli: Event: CommandInvoker.OnPostArgumentLoad []
cli.knack.cli: Event: CommandInvoker.OnPostCommandTableCreate [<function register_ids_argument.<locals>.add_ids_arguments at 0x7f74f954aa20>, <function register_cache_arguments.<locals>.add_cache_arguments at 0x7f74f954ac00>, <function register_upcoming_breaking_change_info.<locals>.update_breaking_change_info at 0x7f74f954aca0>]
cli.knack.cli: Event: CommandInvoker.OnCommandTableLoaded []
cli.knack.cli: Event: CommandInvoker.OnPreParseArgs []
cli.knack.cli: Event: CommandInvoker.OnPostParseArgs [<function OutputProducer.handle_output_argument at 0x7f74fa5c4cc0>, <function CLIQuery.handle_query_parameter at 0x7f74fa5eede0>, <function register_ids_argument.<locals>.parse_ids_arguments at 0x7f74f954aac0>]
cli.azure.cli.core.auth.persistence: build_persistence: location='/home/alex/.azure/msal_token_cache.json', encrypt=False
cli.azure.cli.core.auth.binary_cache: load: /home/alex/.azure/msal_http_cache.bin
urllib3.util.retry: Converted retries value: 1 -> Retry(total=1, connect=None, read=None, redirect=None, status=None)
msal.authority: Initializing with Entra authority: https://login.microsoftonline.com/db366a68-e72e-4ffa-84db-6de69587b731
msal.authority: openid_config("https://login.microsoftonline.com/db366a68-e72e-4ffa-84db-6de69587b731/v2.0/.well-known/openid-configuration") = {'token_endpoint': 'https://login.microsoftonline.com/db366a68-e72e-4ffa-84db-6de69587b731/oauth2/v2.0/token', 'token_endpoint_auth_methods_supported': ['client_secret_post', 'private_key_jwt', 'client_secret_basic', 'self_signed_tls_client_auth'], 'jwks_uri': 'https://login.microsoftonline.com/db366a68-e72e-4ffa-84db-6de69587b731/discovery/v2.0/keys', 'response_modes_supported': ['query', 'fragment', 'form_post'], 'subject_types_supported': ['pairwise'], 'id_token_signing_alg_values_supported': ['RS256'], 'response_types_supported': ['code', 'id_token', 'code id_token', 'id_token token'], 'scopes_supported': ['openid', 'profile', 'email', 'offline_access'], 'issuer': 'https://login.microsoftonline.com/db366a68-e72e-4ffa-84db-6de69587b731/v2.0', 'request_uri_parameter_supported': False, 'userinfo_endpoint': 'https://graph.microsoft.com/oidc/userinfo', 'authorization_endpoint': 'https://login.microsoftonline.com/db366a68-e72e-4ffa-84db-6de69587b731/oauth2/v2.0/authorize', 'device_authorization_endpoint': 'https://login.microsoftonline.com/db366a68-e72e-4ffa-84db-6de69587b731/oauth2/v2.0/devicecode', 'http_logout_supported': True, 'frontchannel_logout_supported': True, 'end_session_endpoint': 'https://login.microsoftonline.com/db366a68-e72e-4ffa-84db-6de69587b731/oauth2/v2.0/logout', 'claims_supported': ['sub', 'iss', 'cloud_instance_name', 'cloud_instance_host_name', 'cloud_graph_host_name', 'msgraph_host', 'aud', 'exp', 'iat', 'auth_time', 'acr', 'nonce', 'preferred_username', 'name', 'tid', 'ver', 'at_hash', 'c_hash', 'email'], 'kerberos_endpoint': 'https://login.microsoftonline.com/db366a68-e72e-4ffa-84db-6de69587b731/kerberos', 'mtls_endpoint_aliases': {'token_endpoint': 'https://mtlsauth.microsoft.com/db366a68-e72e-4ffa-84db-6de69587b731/oauth2/v2.0/token'}, 'tls_client_certificate_bound_access_tokens': True, 'tenant_region_scope': 'EU', 'cloud_instance_name': 'microsoftonline.com', 'cloud_graph_host_name': 'graph.windows.net', 'msgraph_host': 'graph.microsoft.com', 'rbac_url': 'https://pas.windows.net'}
msal.application: Broker enabled? None
cli.azure.cli.core.auth.credential_adaptor: CredentialAdaptor.get_token: scopes=('https://management.core.windows.net//.default',), kwargs={}
cli.azure.cli.core.auth.msal_credentials: UserCredential.acquire_token: scopes=['https://management.core.windows.net//.default'], claims_challenge=None, kwargs={}
msal.application: Cache hit an AT
msal.telemetry: Generate or reuse correlation_id: 814cfd35-0b09-4da9-a163-0b7693047cc6
cli.azure.cli.core.sdk.policies: Request URL: 'https://management.azure.com/subscriptions/2b159a4b-3012-479e-95da-087f1bb06ef5/resourceGroups/pkr-Resource-Group-20251219083639/providers/Microsoft.Compute/virtualMachines/pkr-vm-20251219083639?api-version=2025-04-01'
cli.azure.cli.core.sdk.policies: Request method: 'GET'
cli.azure.cli.core.sdk.policies: Request headers:
cli.azure.cli.core.sdk.policies: 'Accept': 'application/json'
cli.azure.cli.core.sdk.policies: 'x-ms-client-request-id': 'a163c196-dca6-11f0-8000-04421ac993c8'
cli.azure.cli.core.sdk.policies: 'CommandName': 'vm update'
cli.azure.cli.core.sdk.policies: 'ParameterSetName': '--debug --subscription --resource-group --name --os-disk'
cli.azure.cli.core.sdk.policies: 'User-Agent': 'AZURECLI/2.81.0 (DEB) azsdk-python-core/1.35.0 Python/3.13.9 (Linux-6.12.41+deb13-amd64-x86_64-with-glibc2.41)'
cli.azure.cli.core.sdk.policies: 'Authorization': '*****'
cli.azure.cli.core.sdk.policies: Request body:
cli.azure.cli.core.sdk.policies: This request has no body
urllib3.connectionpool: Starting new HTTPS connection (1): management.azure.com:443
urllib3.connectionpool: https://management.azure.com:443 "GET /subscriptions/2b159a4b-3012-479e-95da-087f1bb06ef5/resourceGroups/pkr-Resource-Group-20251219083639/providers/Microsoft.Compute/virtualMachines/pkr-vm-20251219083639?api-version=2025-04-01 HTTP/1.1" 200 2722
cli.azure.cli.core.sdk.policies: Response status: 200
cli.azure.cli.core.sdk.policies: Response headers:
cli.azure.cli.core.sdk.policies: 'Cache-Control': 'no-cache'
cli.azure.cli.core.sdk.policies: 'Pragma': 'no-cache'
cli.azure.cli.core.sdk.policies: 'Content-Length': '2722'
cli.azure.cli.core.sdk.policies: 'Content-Type': 'application/json; charset=utf-8'
cli.azure.cli.core.sdk.policies: 'Expires': '-1'
cli.azure.cli.core.sdk.policies: 'ETag': '"2"'
cli.azure.cli.core.sdk.policies: 'x-ms-ratelimit-remaining-resource': 'Microsoft.Compute/LowCostGetSubscriptionMaximum;23999,Microsoft.Compute/LowCostGetResource;35'
cli.azure.cli.core.sdk.policies: 'x-ms-need-to-refresh-epl-cache': 'False'
cli.azure.cli.core.sdk.policies: 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains'
cli.azure.cli.core.sdk.policies: 'x-ms-request-id': '3fa0b688-bc58-45ef-bbdd-7b7e78dddcf3'
cli.azure.cli.core.sdk.policies: 'x-ms-ratelimit-remaining-subscription-reads': '249'
cli.azure.cli.core.sdk.policies: 'x-ms-ratelimit-remaining-subscription-global-reads': '3749'
cli.azure.cli.core.sdk.policies: 'x-ms-correlation-request-id': 'b16c4e12-bd93-4245-9beb-a77a3c90aac6'
cli.azure.cli.core.sdk.policies: 'x-ms-routing-request-id': 'UKSOUTH:20251219T084748Z:b16c4e12-bd93-4245-9beb-a77a3c90aac6'
cli.azure.cli.core.sdk.policies: 'X-Content-Type-Options': 'nosniff'
cli.azure.cli.core.sdk.policies: 'X-Cache': 'CONFIG_NOCACHE'
cli.azure.cli.core.sdk.policies: 'X-MSEdge-Ref': 'Ref A: 22DE4ADA77054E3CB76014AD2CC81451 Ref B: AMS231022012035 Ref C: 2025-12-19T08:47:48Z'
cli.azure.cli.core.sdk.policies: 'Date': 'Fri, 19 Dec 2025 08:47:48 GMT'
cli.azure.cli.core.sdk.policies: Response content:
cli.azure.cli.core.sdk.policies: {
"name": "pkr-vm-20251219083639",
"id": "/subscriptions/2b159a4b-3012-479e-95da-087f1bb06ef5/resourceGroups/pkr-Resource-Group-20251219083639/providers/Microsoft.Compute/virtualMachines/pkr-vm-20251219083639",
"type": "Microsoft.Compute/virtualMachines",
"location": "uksouth",
"properties": {
"hardwareProfile": {
"vmSize": "Standard_B2als_v2"
},
"provisioningState": "Succeeded",
"vmId": "e38b922b-e437-4b99-b61f-d59397e0f8e1",
"storageProfile": {
"imageReference": {
"publisher": "Canonical",
"offer": "ubuntu-24_04-lts",
"sku": "server",
"version": "latest",
"exactVersion": "24.04.202512170"
},
"osDisk": {
"osType": "Linux",
"name": "pkr-disk",
"createOption": "FromImage",
"caching": "ReadWrite",
"managedDisk": {
"storageAccountType": "Standard_LRS",
"id": "/subscriptions/2b159a4b-3012-479e-95da-087f1bb06ef5/resourceGroups/pkr-Resource-Group-20251219083639/providers/Microsoft.Compute/disks/pkr-disk"
},
"deleteOption": "Detach",
"diskSizeGB": 30
},
"dataDisks": [],
"diskControllerType": "SCSI"
},
"osProfile": {
"computerName": "pkr-vm-20251219083639",
"adminUsername": "packer",
"linuxConfiguration": {
"disablePasswordAuthentication": true,
"ssh": {
"publicKeys": [
{
"path": "/home/packer/.ssh/authorized_keys",
"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCVL+AzVyd8He2V8SJ8aSlfIy94TsTiCw3/b41R1G8TlaQ9NmibIaxtXb2AAEXPvbfb6PUri2vFq+hDXeSWbltnVqs/z3fXCpVDlWPtSJZ/KCe25k/kR4XZ3InwGRfJHJqYDwus9mqsaqXuDh2M128LT06AIcCYX2bXVSQsZ7kQNwZ7cDaZNXsmEG9OnCfYWBoVYwn72nvHbl0Vx0UO7r41rutwNdPUN1rBgvvCLtKZSEa8WBKToRT2Df+miQLB61TqotpkgNnrgj4nDiply199D+Jg5o+6MGVKBE5hijo5EyCMFACMOPlzzvwfozp6xslJ9uu3Ksh/x3Rwb8drTF5P packer Azure Deployment2025-12-19T08:36:40Z"
}
]
},
"provisionVMAgent": true,
"patchSettings": {
"patchMode": "ImageDefault",
"assessmentMode": "ImageDefault"
}
},
"secrets": [],
"allowExtensionOperations": true,
"requireGuestProvisionSignal": true
},
"networkProfile": {"networkInterfaces":[{"id":"/subscriptions/2b159a4b-3012-479e-95da-087f1bb06ef5/resourceGroups/pkr-Resource-Group-20251219083639/providers/Microsoft.Network/networkInterfaces/pkrnihid55ktr6y"}]},
"diagnosticsProfile": {
"bootDiagnostics": {
"enabled": false
}
},
"timeCreated": "2025-12-19T08:38:23.5444715+00:00"
},
"etag": "\"2\""
}
cli.azure.cli.core.azclierror: Traceback (most recent call last):
File "/opt/az/lib/python3.13/site-packages/knack/cli.py", line 233, in invoke
cmd_result = self.invocation.execute(args)
File "/opt/az/lib/python3.13/site-packages/azure/cli/core/commands/__init__.py", line 666, in execute
raise ex
File "/opt/az/lib/python3.13/site-packages/azure/cli/core/commands/__init__.py", line 734, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.13/site-packages/azure/cli/core/commands/__init__.py", line 703, in _run_job
result = cmd_copy(params)
File "/opt/az/lib/python3.13/site-packages/azure/cli/core/commands/__init__.py", line 336, in __call__
return self.handler(*args, **kwargs)
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.13/site-packages/azure/cli/core/commands/command_operation.py", line 239, in handler
result = cached_put(self.cmd, setter, **setterargs)
File "/opt/az/lib/python3.13/site-packages/azure/cli/core/commands/__init__.py", line 455, in cached_put
return _put_operation()
File "/opt/az/lib/python3.13/site-packages/azure/cli/core/commands/__init__.py", line 449, in _put_operation
result = operation(**kwargs)
File "/opt/az/lib/python3.13/site-packages/azure/cli/command_modules/vm/custom.py", line 1776, in update_vm
vm_id_parsed = parse_resource_id(vm["id"])
~~^^^^^^
KeyError: 'id'
cli.azure.cli.core.azclierror: The command failed with an unexpected error. Here is the traceback:
az_command_data_logger: The command failed with an unexpected error. Here is the traceback:
cli.azure.cli.core.azclierror: 'id'
Traceback (most recent call last):
File "/opt/az/lib/python3.13/site-packages/knack/cli.py", line 233, in invoke
cmd_result = self.invocation.execute(args)
File "/opt/az/lib/python3.13/site-packages/azure/cli/core/commands/__init__.py", line 666, in execute
raise ex
File "/opt/az/lib/python3.13/site-packages/azure/cli/core/commands/__init__.py", line 734, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.13/site-packages/azure/cli/core/commands/__init__.py", line 703, in _run_job
result = cmd_copy(params)
File "/opt/az/lib/python3.13/site-packages/azure/cli/core/commands/__init__.py", line 336, in __call__
return self.handler(*args, **kwargs)
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.13/site-packages/azure/cli/core/commands/command_operation.py", line 239, in handler
result = cached_put(self.cmd, setter, **setterargs)
File "/opt/az/lib/python3.13/site-packages/azure/cli/core/commands/__init__.py", line 455, in cached_put
return _put_operation()
File "/opt/az/lib/python3.13/site-packages/azure/cli/core/commands/__init__.py", line 449, in _put_operation
result = operation(**kwargs)
File "/opt/az/lib/python3.13/site-packages/azure/cli/command_modules/vm/custom.py", line 1776, in update_vm
vm_id_parsed = parse_resource_id(vm["id"])
~~^^^^^^
KeyError: 'id'
az_command_data_logger: 'id'
Traceback (most recent call last):
File "/opt/az/lib/python3.13/site-packages/knack/cli.py", line 233, in invoke
cmd_result = self.invocation.execute(args)
File "/opt/az/lib/python3.13/site-packages/azure/cli/core/commands/__init__.py", line 666, in execute
raise ex
File "/opt/az/lib/python3.13/site-packages/azure/cli/core/commands/__init__.py", line 734, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.13/site-packages/azure/cli/core/commands/__init__.py", line 703, in _run_job
result = cmd_copy(params)
File "/opt/az/lib/python3.13/site-packages/azure/cli/core/commands/__init__.py", line 336, in __call__
return self.handler(*args, **kwargs)
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.13/site-packages/azure/cli/core/commands/command_operation.py", line 239, in handler
result = cached_put(self.cmd, setter, **setterargs)
File "/opt/az/lib/python3.13/site-packages/azure/cli/core/commands/__init__.py", line 455, in cached_put
return _put_operation()
File "/opt/az/lib/python3.13/site-packages/azure/cli/core/commands/__init__.py", line 449, in _put_operation
result = operation(**kwargs)
File "/opt/az/lib/python3.13/site-packages/azure/cli/command_modules/vm/custom.py", line 1776, in update_vm
vm_id_parsed = parse_resource_id(vm["id"])
~~^^^^^^
KeyError: 'id'
To check existing issues, please visit: https://github.com/Azure/azure-cli/issues
cli.knack.cli: Event: Cli.PostExecute [<function AzCliLogging.deinit_cmd_metadata_logging at 0x7f74f94eb6a0>]
az_command_data_logger: exit code: 1
cli.__main__: Command ran in 0.645 seconds (init: 0.110, invoke: 0.535)
Expected behavior
Does not throw a KeyError, instead changes the OS disk.
Environment Summary
alex@hanzawa:~/src/radnac$ az --version
azure-cli 2.81.0
core 2.81.0
telemetry 1.1.0
Extensions:
connectedmachine 1.0.0
custom-providers 0.2.1
gallery-service-artifact 1.0.0b1
monitor-control-service 1.2.0
resource-graph 2.1.1
serial-console 1.0.0b2
ssh 2.0.6
Dependencies:
msal 1.34.0b1
azure-mgmt-resource 23.3.0
Python location '/opt/az/bin/python3'
Config directory '/home/alex/.azure'
Extensions directory '/home/alex/.azure/cliextensions'
Python (Linux) 3.13.9 (main, Nov 26 2025, 00:44:45) [GCC 12.2.0]
Legal docs and information: aka.ms/AzureCliLegal
Your CLI is up-to-date.
Additional context
No response
Metadata
Metadata
Assignees
Labels
Auto-AssignAuto assign by botAuto assign by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamThe command of the issue is owned by Azure CLI teamBreaking ChangeComputeaz vm/vmss/image/disk/snapshotaz vm/vmss/image/disk/snapshotbugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.