Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets
/// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists/{dnsResolverDomainListName}"
/// </remarks>
[global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzDnsResolverDomainList_CreateExpanded", SupportsShouldProcess = true)]
[Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.CmdletBreakingChange("16.0.0", "2.0.0", "2026/05/01", ChangeDescription="The parameter 'Domain' is no longer mandatory. Domain lists will support bulk upload via the new cmdlet 'Invoke-AzDnsResolverBulkDnsResolverDomainList'.")]
[Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PreviewMessage("*****************************************************************************************\r\n* This cmdlet will undergo a breaking change in Az v16.0.0, to be released in May 2026. *\r\n* At least one change applies to this cmdlet. *\r\n* See all possible breaking changes at https://go.microsoft.com/fwlink/?linkid=2333486 *\r\n**************************************************************************************************")]
[global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList))]
[global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Creates or updates a DNS resolver domain list.")]
Expand Down
30 changes: 30 additions & 0 deletions src/DnsResolver/DnsResolver.Autorest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,4 +129,34 @@ directive:
set:
preview-announcement:
preview-message: "*****************************************************************************************\\r\\n* This cmdlet will undergo a breaking change in Az v16.0.0, to be released in May 2026. *\\r\\n* At least one change applies to this cmdlet. *\\r\\n* See all possible breaking changes at https://go.microsoft.com/fwlink/?linkid=2333486 *\\r\\n**************************************************************************************************"
# Breaking change: ActionBlockResponseCode parameter removed in 2025-10-01-preview
- where:
verb: New|Update
subject: PolicyDnsSecurityRule
set:
Comment on lines +132 to +136
Copy link

Copilot AI Apr 2, 2026

Choose a reason for hiding this comment

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

The where.subject: PolicyDnsSecurityRule selector does not match the actual generated cmdlet subject (DnsResolverPolicyDnsSecurityRule), so these breaking-change directives (and the existing preview-announcement selector that also uses PolicyDnsSecurityRule) won't apply to New-AzDnsResolverPolicyDnsSecurityRule / Update-AzDnsResolverPolicyDnsSecurityRule. Update the subject matcher (e.g., DnsResolverPolicyDnsSecurityRule, or a regex that matches the generated subject) so the intended breaking-change annotations are emitted on those cmdlets.

Copilot uses AI. Check for mistakes.
breaking-change:
change-description: The parameter 'ActionBlockResponseCode' has been removed. The block response code is no longer configurable in API version 2025-10-01-preview.
deprecated-by-version: 2.0.0
deprecated-by-azversion: 16.0.0
change-effective-date: 2026/05/01
# Breaking change: DnsResolverDomainList parameter no longer mandatory
- where:
verb: New
subject: PolicyDnsSecurityRule
set:
breaking-change:
change-description: The parameter 'DnsResolverDomainList' is no longer mandatory. DNS security rules will support managed domain lists as an alternative to user-defined domain lists.
deprecated-by-version: 2.0.0
deprecated-by-azversion: 16.0.0
change-effective-date: 2026/05/01
# Breaking change: Domain parameter no longer mandatory
- where:
verb: New
subject: DnsResolverDomainList
set:
breaking-change:
change-description: The parameter 'Domain' is no longer mandatory. Domain lists will support bulk upload via the new cmdlet 'Invoke-AzDnsResolverBulkDnsResolverDomainList'.
deprecated-by-version: 2.0.0
deprecated-by-azversion: 16.0.0
change-effective-date: 2026/05/01
```
4 changes: 4 additions & 0 deletions src/DnsResolver/DnsResolver/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
- Additional information about change #1
-->
## Upcoming Release
* Added announcement for upcoming breaking changes as part of the 2025-10-01-preview API migration:
- Removed parameter `ActionBlockResponseCode` from `New-AzDnsResolverPolicyDnsSecurityRule` and `Update-AzDnsResolverPolicyDnsSecurityRule`. The block response code is no longer configurable.
- Parameter `DnsResolverDomainList` is no longer mandatory on `New-AzDnsResolverPolicyDnsSecurityRule`. DNS security rules will support managed domain lists as an alternative to user-defined domain lists.
- Parameter `Domain` is no longer mandatory on `New-AzDnsResolverDomainList`. Domain lists will support bulk upload via the new cmdlet `Invoke-AzDnsResolverBulkDnsResolverDomainList`, which will be introduced in the upcoming release.
Copy link

Copilot AI Apr 2, 2026

Choose a reason for hiding this comment

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

The changelog mentions that Invoke-AzDnsResolverBulkDnsResolverDomainList “will be introduced in the upcoming release”, but there’s no such cmdlet implementation in this PR/repo (only this mention). To avoid misleading users, consider rephrasing to reference the specific planned Az/module version (e.g., Az v16.0.0 / module 2.0.0) or “a future release”, consistent with the breaking-change effective date in the AutoRest config.

Suggested change
- Parameter `Domain` is no longer mandatory on `New-AzDnsResolverDomainList`. Domain lists will support bulk upload via the new cmdlet `Invoke-AzDnsResolverBulkDnsResolverDomainList`, which will be introduced in the upcoming release.
- Parameter `Domain` is no longer mandatory on `New-AzDnsResolverDomainList`. Domain lists will support bulk upload via the new cmdlet `Invoke-AzDnsResolverBulkDnsResolverDomainList`, which is planned for a future release.

Copilot uses AI. Check for mistakes.

## Version 1.2.1
* Preannounced breaking changes. Please refer to https://go.microsoft.com/fwlink/?linkid=2333229
Expand Down
Loading