I was able to pull in a json with invoke-webrequest.
When I look at $x.y.z.ipaddress, it displays two values. one is our public and one backup. How can I assign the public IP to $PubIP There is an object $x.y.z.networkType that defines the public vs backup.
something like...
$PubIP = $x.y.z.ipaddress(Where $x.y.z.networktype = public)
$BkpIP = $x.y.z.ipaddress(Where $x.y.z.networktype = backup)
Thank you!