Skip to content

Commit 4b5f9b3

Browse files
gitlwhWeiheng Li
and
Weiheng Li
authored
Fix a bug can't display the customipprefix in publicipprefix. (#17729)
* fix * fix * fix * fix Co-authored-by: Weiheng Li <[email protected]>
1 parent 33bf3f0 commit 4b5f9b3

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

src/Network/Network/ChangeLog.md

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

2121
## Upcoming Release
2222
* Fixed `ArgumentNullException` in `Add-AzureRmRouteConfig` when `RouteTable.Routes` is null.
23+
* Fix bug that can't display CustomIpPrefix in PublicIpPrefix.
2324

2425
## Version 4.16.0
2526
* Added support for retrieving the state of packet capture even when the provisioning state of the packet capture was failure

src/Network/Network/Models/PSPublicIpPrefix.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@ public string PublicIpAddressesText
4545
get { return JsonConvert.SerializeObject(PublicIpAddresses, Formatting.Indented, new JsonSerializerSettings() { NullValueHandling = NullValueHandling.Ignore }); }
4646
}
4747

48+
[JsonIgnore]
49+
public string CustomIpPrefixText
50+
{
51+
get { return JsonConvert.SerializeObject(CustomIpPrefix, Formatting.Indented, new JsonSerializerSettings() { NullValueHandling = NullValueHandling.Ignore }); }
52+
}
53+
4854
[JsonIgnore]
4955
public string IpTagsText
5056
{

src/Network/Network/Network.format.ps1xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1756,6 +1756,10 @@
17561756
<Label>PublicIpAddresses</Label>
17571757
<PropertyName>PublicIpAddressesText</PropertyName>
17581758
</ListItem>
1759+
<ListItem>
1760+
<Label>CustomIpPrefix</Label>
1761+
<PropertyName>CustomIpPrefixText</PropertyName>
1762+
</ListItem>
17591763
<ListItem>
17601764
<Label>ExtendedLocation</Label>
17611765
<PropertyName>ExtendedLocationText</PropertyName>

0 commit comments

Comments
 (0)