Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/Network/Network/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

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

## Version 4.16.0
* Added support for retrieving the state of packet capture even when the provisioning state of the packet capture was failure
Expand Down
6 changes: 6 additions & 0 deletions src/Network/Network/Models/PSPublicIpPrefix.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ public string PublicIpAddressesText
get { return JsonConvert.SerializeObject(PublicIpAddresses, Formatting.Indented, new JsonSerializerSettings() { NullValueHandling = NullValueHandling.Ignore }); }
}

[JsonIgnore]
public string CustomIpPrefixText
{
get { return JsonConvert.SerializeObject(CustomIpPrefix, Formatting.Indented, new JsonSerializerSettings() { NullValueHandling = NullValueHandling.Ignore }); }
}

[JsonIgnore]
public string IpTagsText
{
Expand Down
4 changes: 4 additions & 0 deletions src/Network/Network/Network.format.ps1xml
Original file line number Diff line number Diff line change
Expand Up @@ -1756,6 +1756,10 @@
<Label>PublicIpAddresses</Label>
<PropertyName>PublicIpAddressesText</PropertyName>
</ListItem>
<ListItem>
<Label>CustomIpPrefix</Label>
<PropertyName>CustomIpPrefixText</PropertyName>
</ListItem>
<ListItem>
<Label>ExtendedLocation</Label>
<PropertyName>ExtendedLocationText</PropertyName>
Expand Down