Describe the bug
az network application-gateway show
Managed HSM support for Application Gateway SSL certificates was added in API version 2025-07-01 and implemented for the SSL certificate command group under #33263. The SSL certificate commands correctly use 2025-07-01, but the parent Application Gateway GET remains pinned to 2024-10-01.
As a result, retrieving the complete Application Gateway resource through the parent show command can omit the Managed HSM properties under sslCertificates[].properties.hsm.
HSM PR: #33263
Related command
az network application-gateway show \
--resource-group <resource-group> \
--name <application-gateway> \
--debug
Errors
There is no CLI exception. The problem is the API version selected for the parent GET request and the resulting response shape.
- Actual parent GET API version:
2024-10-01
- Minimum API version containing
ApplicationGatewayManagedHsm: 2025-07-01
Issue script & Debug output
The sanitized parent GET request shown by --debug uses:
GET https://management.azure.com/subscriptions/<subscription-id>/resourceGroups/<resource-group>/providers/Microsoft.Network/applicationGateways/<application-gateway>?api-version=2024-10-01
The generated AAZ source in release azure-cli-2.89.1 confirms the mismatch:
src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/application_gateway/_show.py
_aaz_info["version"] = "2024-10-01"
ApplicationGatewaysGet uses 2024-10-01
src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/application_gateway/ssl_cert/_show.py
_aaz_info["version"] = "2025-07-01"
- The response schema includes
hsm.keyId and hsm.publicCertData
The same parent/child API-version mismatch exists for generated Application Gateway create/update versus SSL certificate create/update. Those operations should also be assessed for read-modify-write behavior that could omit HSM properties.
Expected behavior
az network application-gateway show should use an API version that supports Managed HSM, at minimum 2025-07-01, and return these fields when configured:
sslCertificates[].properties.hsm.keyId
sslCertificates[].properties.hsm.publicCertData
Please also verify that parent Application Gateway create/update operations cannot omit or overwrite Managed HSM SSL certificate properties because they use the older API version.
Regression coverage should verify:
- The parent Application Gateway GET request uses the intended API version.
- Managed HSM fields are preserved in the returned model.
- Parent create/update read-modify-write flows preserve HSM-backed SSL certificate configuration.
Environment Summary
azure-cli 2.89.1
Additional context
No response
Describe the bug
az network application-gateway showManaged HSM support for Application Gateway SSL certificates was added in API version
2025-07-01and implemented for the SSL certificate command group under #33263. The SSL certificate commands correctly use2025-07-01, but the parent Application Gateway GET remains pinned to2024-10-01.As a result, retrieving the complete Application Gateway resource through the parent
showcommand can omit the Managed HSM properties undersslCertificates[].properties.hsm.HSM PR: #33263
Related command
Errors
There is no CLI exception. The problem is the API version selected for the parent GET request and the resulting response shape.
2024-10-01ApplicationGatewayManagedHsm:2025-07-01Issue script & Debug output
The sanitized parent GET request shown by
--debuguses:The generated AAZ source in release
azure-cli-2.89.1confirms the mismatch:src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/application_gateway/_show.py_aaz_info["version"] = "2024-10-01"ApplicationGatewaysGetuses2024-10-01src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/application_gateway/ssl_cert/_show.py_aaz_info["version"] = "2025-07-01"hsm.keyIdandhsm.publicCertDataThe same parent/child API-version mismatch exists for generated Application Gateway create/update versus SSL certificate create/update. Those operations should also be assessed for read-modify-write behavior that could omit HSM properties.
Expected behavior
az network application-gateway showshould use an API version that supports Managed HSM, at minimum2025-07-01, and return these fields when configured:Please also verify that parent Application Gateway create/update operations cannot omit or overwrite Managed HSM SSL certificate properties because they use the older API version.
Regression coverage should verify:
Environment Summary
azure-cli 2.89.1
Additional context
No response