From 8afc22bbad42d3843240811676f7ff90275a267f Mon Sep 17 00:00:00 2001 From: Giz Date: Tue, 7 Feb 2023 00:33:17 -0800 Subject: [PATCH] Bug : classic fw private ranges reverts to default when doing get & set (#20855) * Bug : classic fw private ranges reverts to default when doing get & set * Added change log --------- Co-authored-by: Gizachew Eshetie Co-authored-by: Beisi Zhou --- src/Network/Network/ChangeLog.md | 1 + src/Network/Network/Models/AzureFirewall/PSAzureFirewall.cs | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Network/Network/ChangeLog.md b/src/Network/Network/ChangeLog.md index 4ccee2592458..1add3c5300a6 100644 --- a/src/Network/Network/ChangeLog.md +++ b/src/Network/Network/ChangeLog.md @@ -19,6 +19,7 @@ ---> ## Upcoming Release +* Fixed a bug that reverts classic fw private ranges to default when doing get & set ## Version 5.4.0 * Fixed a bug that does not enable to set Perform SNAT to Always diff --git a/src/Network/Network/Models/AzureFirewall/PSAzureFirewall.cs b/src/Network/Network/Models/AzureFirewall/PSAzureFirewall.cs index 2a36fe57ab77..b03576bd7af7 100644 --- a/src/Network/Network/Models/AzureFirewall/PSAzureFirewall.cs +++ b/src/Network/Network/Models/AzureFirewall/PSAzureFirewall.cs @@ -66,8 +66,10 @@ public string[] PrivateRange set { if (value != null) + { ValidatePrivateRange(value); - privateRange = value; + privateRange = value; + } } }