Skip to content

Commit

Permalink
Fix issue for Update-AzCustomIpPrefix (#21609)
Browse files Browse the repository at this point in the history
  • Loading branch information
wyunchi-ms authored Apr 20, 2023
1 parent fd72e96 commit 92ec3ee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<MNM.CustomIpPrefix>(customIpPrefixToUpdate);

Expand Down
5 changes: 2 additions & 3 deletions src/Network/Network/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 92ec3ee

Please sign in to comment.