From 92ec3ee1705d45fd3057efcaabaa8982780aaf89 Mon Sep 17 00:00:00 2001 From: Yunchi Wang <54880216+wyunchi-ms@users.noreply.github.com> Date: Thu, 20 Apr 2023 15:43:49 +0800 Subject: [PATCH] Fix issue for Update-AzCustomIpPrefix (#21609) --- .../BYOIP/CustomIpPrefix/UpdateAzureCustomIpPrefixCommand.cs | 5 +---- src/Network/Network/ChangeLog.md | 5 ++--- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/Network/Network/BYOIP/CustomIpPrefix/UpdateAzureCustomIpPrefixCommand.cs b/src/Network/Network/BYOIP/CustomIpPrefix/UpdateAzureCustomIpPrefixCommand.cs index 5e02a717b77c..9e49bff891f8 100644 --- a/src/Network/Network/BYOIP/CustomIpPrefix/UpdateAzureCustomIpPrefixCommand.cs +++ b/src/Network/Network/BYOIP/CustomIpPrefix/UpdateAzureCustomIpPrefixCommand.cs @@ -154,10 +154,7 @@ public override void Execute() customIpPrefixToUpdate.Cidr = this.Cidr; } - if (NoInternetAdvertise) - { - customIpPrefixToUpdate.NoInternetAdvertise = true; - } + customIpPrefixToUpdate.NoInternetAdvertise = NoInternetAdvertise; var sdkModel = NetworkResourceManagerProfile.Mapper.Map(customIpPrefixToUpdate); diff --git a/src/Network/Network/ChangeLog.md b/src/Network/Network/ChangeLog.md index 6fbe55dbc37d..94e4aa6e093e 100644 --- a/src/Network/Network/ChangeLog.md +++ b/src/Network/Network/ChangeLog.md @@ -19,9 +19,8 @@ ---> ## Upcoming Release -* Updated `New-AzVirtualHub`, `Get-AzVirtualHub`, and `Update-AzVirtualHub` to include VirtualRouterAutoScaleConfiguration. - - Added `New-AzVirtualRouterAutoScaleConfiguration`. -* Updated default formatting on all Network-related objects. +* Onboarded `Microsoft.HardwareSecurityModules/cloudHsmClusters` to private link cmdlets +* Fixed the issue for `Update-AzCustomIpPrefix` that `NoInternetAdvertise` will should be set to false if not provided ## Version 5.6.0 * Updated `New-AzLoadBalancer` and `Set-AzLoadBalancer` to validate surface level parameters for global tier load balancers