Skip to content

[DO NOT MERGE] Add DisableCnameChainValidation to DNS security rule cmdlets#29507

Draft
argagnej wants to merge 1 commit intoAzure:joyer/dnsresolver-migrate-v4from
argagnej:dnsresolver/disable-cname-chain-validation
Draft

[DO NOT MERGE] Add DisableCnameChainValidation to DNS security rule cmdlets#29507
argagnej wants to merge 1 commit intoAzure:joyer/dnsresolver-migrate-v4from
argagnej:dnsresolver/disable-cname-chain-validation

Conversation

@argagnej
Copy link
Copy Markdown

@argagnej argagnej commented May 6, 2026

Description

Adds the \DisableCnameChainValidation\ parameter to \New-AzDnsResolverPolicyDnsSecurityRule\ and \Update-AzDnsResolverPolicyDnsSecurityRule\ cmdlets. When set, the DNS resolver will not validate the full CNAME chain against domain lists and will match only on the queried domain name.

Changes

  • Updated API version references from \2025-10-01-preview\ to \2026-07-01-preview\
  • Re-recorded security rule tests against post-merge test Frontend environment (cert-based auth)
  • Added \postMergeTestHelper.ps1\ — HTTP pipeline handler for routing tests to the test Frontend
  • Updated examples with \DisableCnameChainValidation\ usage
  • Updated ChangeLog

Testing

All 8 security rule tests pass in both record and playback modes:

  • \New-AzDnsResolverPolicyDnsSecurityRule\ (2 tests: basic create + with DisableCnameChainValidation)
  • \Get-AzDnsResolverPolicyDnsSecurityRule\ (2 tests)
  • \Update-AzDnsResolverPolicyDnsSecurityRule\ (2 tests: priority update + DisableCnameChainValidation)
  • \Remove-AzDnsResolverPolicyDnsSecurityRule\ (2 tests)

- Add DisableCnameChainValidation parameter to New-AzDnsResolverPolicyDnsSecurityRule
  and Update-AzDnsResolverPolicyDnsSecurityRule
- Update API version references from 2025-10-01-preview to 2026-07-01-preview
- Re-record security rule tests against post-merge test Frontend environment
- Add postMergeTestHelper.ps1 for cert-based auth test routing
- Update examples and ChangeLog

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@azure-client-tools-bot-prd
Copy link
Copy Markdown

Thanks for your contribution! The pull request validation has started. Please revisit this comment for updated status.

@argagnej argagnej changed the title Add DisableCnameChainValidation to DNS security rule cmdlets [DO NOT MERGE] Add DisableCnameChainValidation to DNS security rule cmdlets May 6, 2026
@argagnej argagnej marked this pull request as draft May 6, 2026 00:16
@VeryEarly
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown
Contributor

Azure Pipelines successfully started running 3 pipeline(s).

-->
## Upcoming Release
* Upgraded API version from 2023-07-01-preview to 2025-10-01-preview
* Upgraded API version from 2023-07-01-preview to 2026-07-01-preview
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Arpit I think your changes will need to be in a seperate change set, will be after this one gets released

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

These changes will liekly be in 1.2.5, yours will be in a version afterwards

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.

3 participants