Skip to content

'NoneType' object has no attribute 'get' using az load test update #32748

@JljHook

Description

@JljHook

Describe the bug

az cli version: 2.83.0
Trying to update load test. Command fails.
Command:
az load test update --test-id xxxx --display-name "Load Test - Invoice Creation Deletion" --description "JMeter load test for Invoice Creation and Deletion for Core and Public" --load-test-resource yyyyyy --resource-group xxxx --load-test-config-file jmeter-loadtest.config.yaml

Related command

az load test update --test-id xxxx --display-name "Load Test - Invoice Creation Deletion" --description "JMeter load test for Invoice Creation and Deletion for Core and Public" --load-test-resource yyyyyy --resource-group xxxx --load-test-config-file jmeter-loadtest.config.yaml

Errors

Error:
The command failed with an unexpected error. Here is the traceback:
'NoneType' object has no attribute 'get'
Traceback (most recent call last):
File "/opt/homebrew/Cellar/azure-cli/2.83.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.83.0/libexec/lib/python3.13/site-packages/azure/cli/core/commands/init.py", line 669, in execute
raise ex
File "/opt/homebrew/Cellar/azure-cli/2.83.0/libexec/lib/python3.13/site-packages/azure/cli/core/commands/init.py", line 737, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/azure-cli/2.83.0/libexec/lib/python3.13/site-packages/azure/cli/core/commands/init.py", line 706, in _run_job
result = cmd_copy(params)
File "/opt/homebrew/Cellar/azure-cli/2.83.0/libexec/lib/python3.13/site-packages/azure/cli/core/commands/init.py", line 336, in call
return self.handler(*args, **kwargs)
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/azure-cli/2.83.0/libexec/lib/python3.13/site-packages/azure/cli/core/commands/command_operation.py", line 120, in handler
return op(**command_args)

Issue script & Debug output

cli.azext_load.data_plane.load_test.custom: Uploading files to test load-test-invoice-creation-deletion
urllib3.connectionpool: https://fb1e0d61-0501-44af-9e65-e3e2cf4c1663.northeurope.cnt-prod.loadtesting.azure.com:443 "GET /tests/load-test-invoice-creation-deletion/files?api-version=2025-03-01-preview HTTP/1.1" 200 12
cli.azure.cli.core.azclierror: Traceback (most recent call last):
File "/opt/homebrew/Cellar/azure-cli/2.83.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.83.0/libexec/lib/python3.13/site-packages/azure/cli/core/commands/init.py", line 669, in execute
raise ex
File "/opt/homebrew/Cellar/azure-cli/2.83.0/libexec/lib/python3.13/site-packages/azure/cli/core/commands/init.py", line 737, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/azure-cli/2.83.0/libexec/lib/python3.13/site-packages/azure/cli/core/commands/init.py", line 706, in _run_job
result = cmd_copy(params)
File "/opt/homebrew/Cellar/azure-cli/2.83.0/libexec/lib/python3.13/site-packages/azure/cli/core/commands/init.py", line 336, in call
return self.handler(*args, **kwargs)
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/azure-cli/2.83.0/libexec/lib/python3.13/site-packages/azure/cli/core/commands/command_operation.py", line 120, in handler
return op(**command_args)
File "/Users/user.user/.azure/cliextensions/load/azext_load/data_plane/load_test/custom.py", line 277, in update_test
upload_files_helper(
~~~~~~~~~~~~~~~~~~~^
client, test_id, yaml, test_plan, load_test_config_file, not custom_no_wait, body.get("kind")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/Users/user.user/.azure/cliextensions/load/azext_load/data_plane/utils/utils.py", line 962, in upload_files_helper
upload_properties_file_helper(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
client=client,
^^^^^^^^^^^^^^
test_id=test_id, yaml_data=yaml_data,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
load_test_config_file=load_test_config_file, existing_test_files=files, wait=wait)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/user.user/.azure/cliextensions/load/azext_load/data_plane/utils/utils.py", line 854, in upload_properties_file_helper
if yaml_data and yaml_data.get("properties", {}).get("userPropertyFile") is not None:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'get'

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: 'NoneType' object has no attribute 'get'
Traceback (most recent call last):
File "/opt/homebrew/Cellar/azure-cli/2.83.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.83.0/libexec/lib/python3.13/site-packages/azure/cli/core/commands/init.py", line 669, in execute
raise ex
File "/opt/homebrew/Cellar/azure-cli/2.83.0/libexec/lib/python3.13/site-packages/azure/cli/core/commands/init.py", line 737, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/azure-cli/2.83.0/libexec/lib/python3.13/site-packages/azure/cli/core/commands/init.py", line 706, in _run_job
result = cmd_copy(params)
File "/opt/homebrew/Cellar/azure-cli/2.83.0/libexec/lib/python3.13/site-packages/azure/cli/core/commands/init.py", line 336, in call
return self.handler(*args, **kwargs)
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/azure-cli/2.83.0/libexec/lib/python3.13/site-packages/azure/cli/core/commands/command_operation.py", line 120, in handler
return op(**command_args)
File "/Users/user.user/.azure/cliextensions/load/azext_load/data_plane/load_test/custom.py", line 277, in update_test
upload_files_helper(
~~~~~~~~~~~~~~~~~~~^
client, test_id, yaml, test_plan, load_test_config_file, not custom_no_wait, body.get("kind")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/Users/user.user/.azure/cliextensions/load/azext_load/data_plane/utils/utils.py", line 962, in upload_files_helper
upload_properties_file_helper(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
client=client,
^^^^^^^^^^^^^^
test_id=test_id, yaml_data=yaml_data,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
load_test_config_file=load_test_config_file, existing_test_files=files, wait=wait)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/user.user/.azure/cliextensions/load/azext_load/data_plane/utils/utils.py", line 854, in upload_properties_file_helper
if yaml_data and yaml_data.get("properties", {}).get("userPropertyFile") is not None:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'get'
az_command_data_logger: 'NoneType' object has no attribute 'get'
Traceback (most recent call last):
File "/opt/homebrew/Cellar/azure-cli/2.83.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.83.0/libexec/lib/python3.13/site-packages/azure/cli/core/commands/init.py", line 669, in execute
raise ex
File "/opt/homebrew/Cellar/azure-cli/2.83.0/libexec/lib/python3.13/site-packages/azure/cli/core/commands/init.py", line 737, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/azure-cli/2.83.0/libexec/lib/python3.13/site-packages/azure/cli/core/commands/init.py", line 706, in _run_job
result = cmd_copy(params)
File "/opt/homebrew/Cellar/azure-cli/2.83.0/libexec/lib/python3.13/site-packages/azure/cli/core/commands/init.py", line 336, in call
return self.handler(*args, **kwargs)
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/azure-cli/2.83.0/libexec/lib/python3.13/site-packages/azure/cli/core/commands/command_operation.py", line 120, in handler
return op(**command_args)
File "/Users/user.user/.azure/cliextensions/load/azext_load/data_plane/load_test/custom.py", line 277, in update_test
upload_files_helper(
~~~~~~~~~~~~~~~~~~~^
client, test_id, yaml, test_plan, load_test_config_file, not custom_no_wait, body.get("kind")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/Users/user.user/.azure/cliextensions/load/azext_load/data_plane/utils/utils.py", line 962, in upload_files_helper
upload_properties_file_helper(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
client=client,
^^^^^^^^^^^^^^
test_id=test_id, yaml_data=yaml_data,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
load_test_config_file=load_test_config_file, existing_test_files=files, wait=wait)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/user.user/.azure/cliextensions/load/azext_load/data_plane/utils/utils.py", line 854, in upload_properties_file_helper
if yaml_data and yaml_data.get("properties", {}).get("userPropertyFile") is not None:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'get'
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 0x1073af880>]
az_command_data_logger: exit code: 1
cli.main: Command ran in 0.997 seconds (init: 0.123, invoke: 0.874)
telemetry.main: Begin splitting cli events and extra events, total events: 1
telemetry.client: Accumulated 0 events. Flush the clients.
telemetry.main: Finish splitting cli events and extra events, cli events: 1
telemetry.save: Save telemetry record of length 8511 in cache file under /Users/user.user/.azure/telemetry/20260205180432634
telemetry.main: Begin creating telemetry upload process.
telemetry.process: Creating upload process: "/opt/homebrew/Cellar/azure-cli/2.83.0/libexec/bin/python /opt/homebrew/Cellar/azure-cli/2.83.0/libexec/lib/python3.13/site-packages/azure/cli/telemetry/init.py /Users/user.user/.azure /Users/user.user/.azure/telemetry/20260205180432634"
telemetry.process: Return from creating process 34506
telemetry.main: Finish creating telemetry upload process.

Expected behavior

Load test is updated

Environment Summary

azure-cli 2.83.0

core 2.83.0
telemetry 1.1.0

Extensions:
front-door 2.0.0
load 2.1.0
monitor-control-service 1.2.0

Dependencies:
msal 1.35.0b1
azure-mgmt-resource 23.3.0

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Service AttentionThis issue is responsible by Azure service team.bugThis 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.load testing

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions