Skip to content

The latest Azure CLI release (2.89.1) still generates the parent Application Gateway GET command with API version 2024-10-01 #33981

Description

@srijanee

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:

  1. The parent Application Gateway GET request uses the intended API version.
  2. Managed HSM fields are preserved in the returned model.
  3. Parent create/update read-modify-write flows preserve HSM-backed SSL certificate configuration.

Environment Summary

azure-cli 2.89.1

Additional context

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Auto-AssignAuto assign by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamNetworkaz network vnet/lb/nic/dns/etc...act-quality-productivity-squadquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions