Skip to content

Commit 30d471c

Browse files
Gizachew-EshetieGizachew Eshetiewyunchi-ms
authored
Breaking changes preannouncement (#19363)
Co-authored-by: Gizachew Eshetie <[email protected]> Co-authored-by: Yunchi Wang <[email protected]>
1 parent ac01552 commit 30d471c

File tree

5 files changed

+12
-0
lines changed

5 files changed

+12
-0
lines changed

src/Network/Network/AzureFirewall/GetAzureFirewallCommand.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,12 @@
2020
using Microsoft.Azure.Management.Network;
2121
using Microsoft.Azure.Management.Network.Models;
2222
using Microsoft.Rest.Azure;
23+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2324

2425
namespace Microsoft.Azure.Commands.Network
2526
{
27+
[CmdletOutputBreakingChange(typeof(PSAzureFirewallHubIpAddresses), DeprecatedOutputProperties = new[] { "publicIPAddresses" })]
28+
[CmdletOutputBreakingChange(typeof(PSAzureFirewall), DeprecatedOutputProperties = new[] { "IdentifyTopFatFlow" })]
2629
[Cmdlet(VerbsCommon.Get, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "Firewall"), OutputType(typeof(PSAzureFirewall), typeof(IEnumerable<PSAzureFirewall>))]
2730
public class GetAzureFirewallCommand : AzureFirewallBaseCmdlet
2831
{

src/Network/Network/AzureFirewall/NewAzureFirewallCommand.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626

2727
namespace Microsoft.Azure.Commands.Network
2828
{
29+
[CmdletOutputBreakingChange(typeof(PSAzureFirewallHubIpAddresses), DeprecatedOutputProperties = new[] { "publicIPAddresses" })]
30+
[CmdletOutputBreakingChange(typeof(PSAzureFirewall), DeprecatedOutputProperties = new[] { "IdentifyTopFatFlow" })]
2931
[Cmdlet(VerbsCommon.New, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "Firewall", SupportsShouldProcess = true, DefaultParameterSetName = DefaultParameterSet), OutputType(typeof(PSAzureFirewall))]
3032
public class NewAzureFirewallCommand : AzureFirewallBaseCmdlet
3133

@@ -232,6 +234,7 @@ public class NewAzureFirewallCommand : AzureFirewallBaseCmdlet
232234
)]
233235
public SwitchParameter AllowActiveFTP { get; set; }
234236

237+
[CmdletParameterBreakingChange("IdentifyTopFatFlow", ReplaceMentCmdletParameterName = "EnableFatFlowLogging")]
235238
[Parameter(
236239
Mandatory = false,
237240
HelpMessage = "Identify Top Fat Flows. By default it is false."

src/Network/Network/AzureFirewall/SetAzureFirewallCommand.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,13 @@
1717
using Microsoft.Azure.Commands.Network.Models;
1818
using Microsoft.Azure.Commands.ResourceManager.Common.Tags;
1919
using Microsoft.Azure.Management.Network;
20+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2021
using MNM = Microsoft.Azure.Management.Network.Models;
2122

2223
namespace Microsoft.Azure.Commands.Network
2324
{
25+
[CmdletOutputBreakingChange(typeof(PSAzureFirewallHubIpAddresses), DeprecatedOutputProperties = new[] { "publicIPAddresses" })]
26+
[CmdletOutputBreakingChange(typeof(PSAzureFirewall), DeprecatedOutputProperties = new[] { "IdentifyTopFatFlow" })]
2427
[Cmdlet(VerbsCommon.Set, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "Firewall", SupportsShouldProcess = true), OutputType(typeof(PSAzureFirewall))]
2528
public class SetAzureFirewallCommand : AzureFirewallBaseCmdlet
2629
{

src/Network/Network/AzureFirewall/VirtualHub/NewAzureFirewallHubIpAddress.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,11 @@
1515
using System.Linq;
1616
using System.Management.Automation;
1717
using Microsoft.Azure.Commands.Network.Models;
18+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
1819

1920
namespace Microsoft.Azure.Commands.Network
2021
{
22+
[CmdletOutputBreakingChange(typeof(PSAzureFirewallHubIpAddresses), DeprecatedOutputProperties = new[] { "publicIPAddresses" })]
2123
[Cmdlet(VerbsCommon.New, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "FirewallHubIpAddress"), OutputType(typeof(PSAzureFirewallHubIpAddresses))]
2224
public class NewAzureFirewallHubIpAddress : AzureFirewallBaseCmdlet
2325
{

src/Network/Network/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
--->
2020

2121
## Upcoming Release
22+
* Added breaking change notification for `Get-AzFirewall`, `New-AzFirewall`, `Set-AzFirewall` and `New-AzFirewallHubIpAddress`
2223

2324
## Version 4.20.0
2425
* Fixed a bug that removes existing resource tags during a Set-AzFirewallPolicy command

0 commit comments

Comments
 (0)