Repository navigation
Description
Describe the bug
See Azure/azure-sdk-for-python#50097 for issue, details, and screenshots. At first, I thought it was SDK related, but debugging confirmed it to be caused by some post processing the AZ CLI does in AzCliCommandInvoker.
This does not happen for the deployments package. The TSP defines the config type as this: https://github.com/Azure/azure-rest-api-specs/blob/cde14dc6e822421cb8946e22a5424e8867582700/specification/resources/resource-manager/Microsoft.Resources/deployments/models.tsp#L1311
Deployment stacks, the affected package, defines the type as this: azure-rest-api-specs/specification/resources/resource-manager/Microsoft.Resources/deploymentStacks/m…
model Example
{
config?: Record<DeploymentExtensionConfigItem> // this is fine
}
model DeploymentExtensionConfig is Record<DeploymentExtensionConfigItem>
model DeploymentExtension
{
config?: DeploymentExtensionConfig // model "is record" causes additional properties not to display in CLI outputs.
}Related command
az stack group create
Errors
N/A, display issue
Issue script & Debug output
N/A, related to AzCommandInvoker response post-processing.
Expected behavior
The additional properties should show in this case.
Environment Summary
azure-cli 2.93.0
core 2.93.0
telemetry 1.1.0
Extensions:
azure-devops 1.0.10
blueprint 1.0.0b3
virtual-wan 1.0.1
Dependencies:
msal 1.39.0
azure-mgmt-resource 24.0.0
Python location 'C:\Program Files\Microsoft SDKs\Azure\CLI2\python.exe'
Config directory 'C:\Users\kylealbert.azure'
Extensions directory 'C:\Users\kylealbert.azure\cliextensions'
Python (Windows) 3.14.10 (tags/v3.14.10:b703b2c, Oct 25 2026, 17:36:52) [MSC v.1944 64 bit (AMD64)]
Additional context
No response
Activity
torreymicrosoft commentedon Nov 23, 2026
Thanks Kyle Albert (@kalbert312) for the detailed write-up and for tracing this past the SDK.
I checked this against the Azure CLI 2.93.0 source (the latest release) and its bundled azure-mgmt-resource-deploymentstacks 1.0.0 and azure-core 1.39.0. I ran the CLI's own
todictlocally on a stack the SDK deserialized from a sample response (I didn't call Azure):dict(config)andas_dict()return it), buttodictgivesconfig: {}, with or withoutremove_additional_prop_layer.todictonly walks azure-core'sattribute_list(), which lists declared attributes, andDeploymentExtensionConfigdeclares none.Record<>onextensionConfigskeeps its keys (each value becomes{}), and the deployments SDK's msrest model keepsconfig.todictonly runs on the command result, so the request looks unaffected.devstill has the sametodict, and I couldn't find another issue or PR for this.So the change looks like it belongs in azure-cli-core's
todictrather than the stacks SDK or spec. As a workaround,az restreturns the raw response (I checked the syntax in--helpon 2.93.0 but didn't run it against Azure):If you've seen this outside
az stack, please add the command here.AI was leveraged to draft this first-pass triage reply from the Azure ARM Deployments team, and mistakes may have been made. I'm a real person on the team: if anything here is wrong or misses your point, reply on the thread and feel free to tag me (Torrey Trahanovsky (@torreymicrosoft)).
microsoft-github-policy-service commentedon Nov 23, 2026
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @Azure/deployments-owners, @Azure/act-identity-squad.
microsoft-github-policy-service commentedon Nov 23, 2026
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @Azure/deployments-owners, @Azure/act-identity-squad.
microsoft-github-policy-service commentedon Nov 23, 2026
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @Azure/deployments-owners, @Azure/act-identity-squad.
yonzhan commentedon Nov 23, 2026
az stack