Skip to content

[AAZ Runtime] subresource list command show nothing when property not exist #31222

@necusjz

Description

@necusjz

Describe the bug

The “subresource” list command in generated code for an array property throws an error if the property is not present in the return payload. I believe this is incorrect behavior: it should return empty or empty array, not error out.

Related command

all aaz subcommands

Errors

resource not found

Issue script & Debug output

n/a

Expected behavior

return empty

Environment Summary

azure-cli 2.71.0

core 2.71.0
telemetry 1.1.0

Extensions:
ip-group 0.1.1
virtual-network-manager 2.0.0
ip-group 1.0.0 (dev) C:\Users\ethanyang\workspace\azdev\azure-cli-extensions\src\ip-group

Dependencies:
msal 1.32.0
azure-mgmt-resource 23.1.1

Python location 'C:\Users\ethanyang\workspace\azdev\venv\Scripts\python.exe'
Config directory 'C:\Users\ethanyang.azure'
Extensions directory 'C:\Users\ethanyang.azure\cliextensions'
Development extension sources:
C:\Users\ethanyang\workspace\azdev\azure-cli-extensions

Python (Windows) 3.11.9 (tags/v3.11.9:de54cf5, Apr 2 2024, 10:12:12) [MSC v.1938 64 bit (AMD64)]

Additional context

No response

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions