< Back
Get-AzurePublicIpList
Post
NAME Get-AzurePublicIpList
SYNOPSIS
Get a list of the Azure Public IP addresses/subnets per region.
SYNTAX
Get-AzurePublicIpList [[-Region] <String>] [-XmlFilePath <String>] [-DownloadUrl <String>] [-ListRegions]
[<CommonParameters>]
DESCRIPTION
Get a list of the Azure Public IP addresses/subnets per region.
The script scrapes the Microsoft download page to find the URL
to the current Azure Public IP list xml file. Then it downloads
the file to a temporary location and outputs the list of IP
addresses and subnets for each region selected.
PARAMETERS
-Region <String>
Enter the Azure region by name. Use the ListRegions switch to get
a list of available regions by name.
Wildcards are acceptable.
Required? false
Position? 1
Default value *
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-XmlFilePath <String>
Enter a temporary path to store the XML file.
Required? false
Position? named
Default value C:\\Temp\\AzurePublicIpList.xml
Accept pipeline input? false
Accept wildcard characters? false
-DownloadUrl <String>
The URL has been pre-populated from the Azure documentation website.
https://azure.microsoft.com/en-us/docum ... networking
Required? false
Position? named
Default value https://www.microsoft.com/en-us/downloa ... x?id=41653
Accept pipeline input? false
Accept wildcard characters? false
-ListRegions [<SwitchParameter>]
Get a list of the region names.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
NOTES
Created by: Jason Wasser @wasserja
Modified: 9/9/2016 08:50:05 AM
Version: 0.9999
Changelog
* set Region default parameter to * so that first run actually produces output.
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Get-AzurePublicIpList -ListRegions
Name
----
europewest
useast
useast2
uswest
usnorth
europenorth
uscentral
asiaeast
asiasoutheast
ussouth
japanwest
japaneast
brazilsouth
australiaeast
australiasoutheast
indiacentral
indiawest
indiasouth
List the available regions by name
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Get-AzurePublicIpList -Region useast
Location Subnet
-------- ------
useast 23.96.0.0/18
useast 23.96.64.0/28
useast 23.96.64.64/26
useast 23.96.64.128/27
useast 23.96.64.160/28
useast 23.96.80.0/20
useast 23.96.96.0/19
useast 23.100.16.0/20
Get a list of subnets from region useast.
RELATED LINKS
https://azure.microsoft.com/en-us/docum ... networking
https://gallery.technet.microsoft.com/s ... t-928b0a0d
SYNOPSIS
Get a list of the Azure Public IP addresses/subnets per region.
SYNTAX
Get-AzurePublicIpList [[-Region] <String>] [-XmlFilePath <String>] [-DownloadUrl <String>] [-ListRegions]
[<CommonParameters>]
DESCRIPTION
Get a list of the Azure Public IP addresses/subnets per region.
The script scrapes the Microsoft download page to find the URL
to the current Azure Public IP list xml file. Then it downloads
the file to a temporary location and outputs the list of IP
addresses and subnets for each region selected.
PARAMETERS
-Region <String>
Enter the Azure region by name. Use the ListRegions switch to get
a list of available regions by name.
Wildcards are acceptable.
Required? false
Position? 1
Default value *
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-XmlFilePath <String>
Enter a temporary path to store the XML file.
Required? false
Position? named
Default value C:\\Temp\\AzurePublicIpList.xml
Accept pipeline input? false
Accept wildcard characters? false
-DownloadUrl <String>
The URL has been pre-populated from the Azure documentation website.
https://azure.microsoft.com/en-us/docum ... networking
Required? false
Position? named
Default value https://www.microsoft.com/en-us/downloa ... x?id=41653
Accept pipeline input? false
Accept wildcard characters? false
-ListRegions [<SwitchParameter>]
Get a list of the region names.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
NOTES
Created by: Jason Wasser @wasserja
Modified: 9/9/2016 08:50:05 AM
Version: 0.9999
Changelog
* set Region default parameter to * so that first run actually produces output.
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Get-AzurePublicIpList -ListRegions
Name
----
europewest
useast
useast2
uswest
usnorth
europenorth
uscentral
asiaeast
asiasoutheast
ussouth
japanwest
japaneast
brazilsouth
australiaeast
australiasoutheast
indiacentral
indiawest
indiasouth
List the available regions by name
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Get-AzurePublicIpList -Region useast
Location Subnet
-------- ------
useast 23.96.0.0/18
useast 23.96.64.0/28
useast 23.96.64.64/26
useast 23.96.64.128/27
useast 23.96.64.160/28
useast 23.96.80.0/20
useast 23.96.96.0/19
useast 23.100.16.0/20
Get a list of subnets from region useast.
RELATED LINKS
https://azure.microsoft.com/en-us/docum ... networking
https://gallery.technet.microsoft.com/s ... t-928b0a0d