Skip to content

Add VerifyClientAuthMode support to Application Gateway client auth configuration#29861

Open
paraboys wants to merge 2 commits into
Azure:mainfrom
paraboys:verifyclientauthmode-clean
Open

Add VerifyClientAuthMode support to Application Gateway client auth configuration#29861
paraboys wants to merge 2 commits into
Azure:mainfrom
paraboys:verifyclientauthmode-clean

Conversation

@paraboys

@paraboys paraboys commented Jul 20, 2026

Copy link
Copy Markdown

Description

This PR fixes an Application Gateway client authentication configuration issue by preserving VerifyClientAuthMode during PowerShell ↔ SDK model conversions.

Changes

  • Added VerifyClientAuthMode to PSApplicationGatewayClientAuthConfiguration.
  • Updated AutoMapper mappings in NetworkResourceManagerProfile for both PowerShell → SDK and SDK → PowerShell conversions.
  • Updated ChangeLog.md with the release note for this fix.

Mandatory Checklist

  • General release

  • Public preview

  • Private preview

  • Engineering build

  • No need for a release

  • Check this box to confirm: I have read the Submitting Changes section of CONTRIBUTING.md and reviewed the following information:

  • SHOULD update ChangeLog.md file(s) appropriately
    • Updated src/Network/Network/ChangeLog.md.
  • SHOULD regenerate markdown help files if there is cmdlet API change.
    • Not applicable (no cmdlet API change).
  • SHOULD have proper test coverage for changes in pull request.
    • No new tests added. Existing behavior was fixed by preserving model mappings.
  • SHOULD NOT adjust version of module manually in pull request.
    • Confirmed.

Copilot AI review requested due to automatic review settings July 20, 2026 16:36
@azure-pipelines

Copy link
Copy Markdown
Contributor
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request updates the Az.Network module’s Application Gateway client authentication configuration model and its AutoMapper conversions to ensure VerifyClientAuthMode survives PowerShell ↔ SDK object transformations.

Changes:

  • Added VerifyClientAuthMode to PSApplicationGatewayClientAuthConfiguration.
  • Updated AutoMapper mappings in NetworkResourceManagerProfile for both CNM → MNM and MNM → CNM conversions.
  • Added a release note entry describing the fix (with a wording issue noted in review comments).

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
src/Network/Network/Models/PSApplicationGatewayClientAuthConfiguration.cs Adds the missing VerifyClientAuthMode property to the PowerShell model.
src/Network/Network/Common/NetworkResourceManagerProfile.cs Maps VerifyClientAuthMode in both directions to preserve it across conversions.
src/Network/Network/ChangeLog.md Documents the fix in release notes (needs a small correction to accurately describe the prior behavior).

Comment thread src/Network/Network/ChangeLog.md Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings July 21, 2026 09:14

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

## Upcoming Release
* Updated the API version of `Microsoft.HardwareSecurityModules/cloudHsmClusters` to `2025-03-31` for Private Link Common Cmdlets
* Onboarded `Microsoft.HardwareSecurityModules/paymentHsmClusters` to Private Link Common Cmdlets
* Fixed an issue where `VerifyClientAuthMode` was not preserved during PowerShell and SDK model conversions for Application Gateway client authentication configuration
Comment on lines +1457 to 1460
.ForMember(
dest => dest.VerifyClientAuthMode,
opt => opt.MapFrom(src => src.VerifyClientAuthMode)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants