Skip to content

[Network] Fix #33981: az network application-gateway show: Bump parent Application Gateway API version to 2025-07-01 so Managed HSM SSL certificate fields are preserved - #7

Merged
a0x1ab merged 2 commits into
agent-assist/azure-azure-cli-issue-33981-ef9e71dface1from
copilot/implement-azure-cli-33981
Aug 25, 2026
Merged

[Network] Fix #33981: az network application-gateway show: Bump parent Application Gateway API version to 2025-07-01 so Managed HSM SSL certificate fields are preserved#7
a0x1ab merged 2 commits into
agent-assist/azure-azure-cli-issue-33981-ef9e71dface1from
copilot/implement-azure-cli-33981

Conversation

Copilot AI commented Aug 25, 2026

Copy link
Copy Markdown

Description

Fixes Azure#33981.

Related command
az network application-gateway show / az network application-gateway create / az network application-gateway update

Description

The parent application_gateway AAZ operations (show, create, update) were using API version 2024-10-01, while the ssl_cert sub-group already used 2025-07-01. This mismatch caused sslCertificates[].properties.hsm.keyId and hsm.publicCertData (Managed HSM–backed certificate fields, introduced in 2025-07-01) to be silently dropped on any GET or PUT round-trip through the parent resource.

  • _show.py / _create.py / _update.py: Bumped _aaz_info["version"], the resources entry, and all api-version query parameters from 2024-10-012025-07-01.
  • Response schema (_show.py, _create.py, _update.py): Added sslCertificates[].properties.hsm (AAZObjectType) with hsm.key_id (keyId) and hsm.public_cert_data (publicCertData) to match the schema already present in the ssl_cert sub-group.

Testing Guide

New unit tests in test_network_unit_tests.py:

  • test_application_gateway_parent_api_version — asserts all three operations declare 2025-07-01 in _aaz_info and resources.
  • test_application_gateway_show_ssl_cert_hsm_schema — introspects the built ApplicationGatewaysGet response schema at runtime, asserting hsm, key_id, and public_cert_data are present under ssl_certificates.Element.properties.

History Notes

[Network] az network application-gateway show: Bump API version to 2025-07-01 so Managed HSM SSL certificate fields (hsm.keyId / hsm.publicCertData) are preserved on show/create/update

Generation source

Azure/aaz#1071

…M SSL certificate fields

Co-authored-by: a0x1ab <59631311+a0x1ab@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix API version mismatch for application gateway SSL certificates [Network] az network application-gateway show: Bump parent Application Gateway API version to 2025-07-01 so Managed HSM SSL certificate fields are preserved Aug 25, 2026
Copilot AI requested a review from a0x1ab August 25, 2026 10:01
@a0x1ab

a0x1ab commented Aug 25, 2026

Copy link
Copy Markdown
Owner

Started the required durable Azure/aaz source task: https://github.com/a0x1ab/aaz/tasks/c95c9662-845c-4da3-89aa-62ba2419ccef

@a0x1ab a0x1ab changed the title [Network] az network application-gateway show: Bump parent Application Gateway API version to 2025-07-01 so Managed HSM SSL certificate fields are preserved [Network] Fix #33981: az network application-gateway show: Bump parent Application Gateway API version to 2025-07-01 so Managed HSM SSL certificate fields are preserved Aug 25, 2026
@a0x1ab
a0x1ab marked this pull request as ready for review August 25, 2026 10:20
@a0x1ab
a0x1ab merged commit 6dd2eaa into agent-assist/azure-azure-cli-issue-33981-ef9e71dface1 Aug 25, 2026
@a0x1ab
a0x1ab deleted the copilot/implement-azure-cli-33981 branch August 25, 2026 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants