Skip to content

Commit 92ec3ee

Browse files
authored
Fix issue for Update-AzCustomIpPrefix (#21609)
1 parent fd72e96 commit 92ec3ee

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

src/Network/Network/BYOIP/CustomIpPrefix/UpdateAzureCustomIpPrefixCommand.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,7 @@ public override void Execute()
154154
customIpPrefixToUpdate.Cidr = this.Cidr;
155155
}
156156

157-
if (NoInternetAdvertise)
158-
{
159-
customIpPrefixToUpdate.NoInternetAdvertise = true;
160-
}
157+
customIpPrefixToUpdate.NoInternetAdvertise = NoInternetAdvertise;
161158

162159
var sdkModel = NetworkResourceManagerProfile.Mapper.Map<MNM.CustomIpPrefix>(customIpPrefixToUpdate);
163160

src/Network/Network/ChangeLog.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,8 @@
1919
--->
2020

2121
## Upcoming Release
22-
* Updated `New-AzVirtualHub`, `Get-AzVirtualHub`, and `Update-AzVirtualHub` to include VirtualRouterAutoScaleConfiguration.
23-
- Added `New-AzVirtualRouterAutoScaleConfiguration`.
24-
* Updated default formatting on all Network-related objects.
22+
* Onboarded `Microsoft.HardwareSecurityModules/cloudHsmClusters` to private link cmdlets
23+
* Fixed the issue for `Update-AzCustomIpPrefix` that `NoInternetAdvertise` will should be set to false if not provided
2524

2625
## Version 5.6.0
2726
* Updated `New-AzLoadBalancer` and `Set-AzLoadBalancer` to validate surface level parameters for global tier load balancers

0 commit comments

Comments
 (0)