< Back
Get-AzureUtilDatacenterIPRangeInfo
Post
NAME Get-AzureUtilDatacenterIPRangeInfo
SYNOPSIS
Get the Azure datacenter IP address range information of specified public IP address.
SYNTAX
Get-AzureUtilDatacenterIPRangeInfo [-IPAddress] <String[]> [[-XmlFilePath] <String>] [-IgnoreCache]
[<CommonParameters>]
DESCRIPTION
This cmdlet provides quick lookup the Azure datacenter IP address range information from the specified public IP
address.
PARAMETERS
-IPAddress <String[]>
Specify the public IP address you want to check.
Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-XmlFilePath <String>
Specify the file path of Azure datacenter IP address range XML file. The latest XML file is can download from
https://www.microsoft.com/en-us/downloa ... x?id=41653. This parameter is optional.
Required? false
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-IgnoreCache [<SwitchParameter>]
If you specify this switch parameter, the cached IP range data will not be used and the latest IP range XML
will always be downloaded. By default, this cmdlet is cache the downloaded IP range XML. This parameter is
ignored if this parameter and the XmlFilePath parameter are specified at the same time.
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
System.Management.Automation.PSObject
-------------------------- EXAMPLE 1 --------------------------
PS >Get-AzureUtilDatacenterIPRangeInfo -IPAddress '13.73.24.96'
IPAddress RegionName IPRange
--------- ---------- -------
13.73.24.96 japaneast 13.73.0.0/19
---- Example Description ----
In this example, get the region and IP address range information of the public IP address "13.73.24.96".
-------------------------- EXAMPLE 2 --------------------------
PS >'13.73.24.96','40.112.124.10','13.88.13.238' | Get-AzureUtilDatacenterIPRangeInfo
IPAddress RegionName IPRange
--------- ---------- -------
13.73.24.96 japaneast 13.73.0.0/19
40.112.124.10 europewest 40.112.124.0/24
13.88.13.238 uswest 13.88.0.0/19
---- Example Description ----
In this example, get the region and IP address range information of the public IPs via piping.
-------------------------- EXAMPLE 3 --------------------------
PS >$xmlFilePath = 'C:\\PublicIPs_20170616.xml'
PS > '13.73.24.96' | Get-AzureUtilDatacenterIPRangeInfo -XmlFilePath $xmlFilePath
IPAddress RegionName IPRange
--------- ---------- -------
13.73.24.96 japaneast 13.73.0.0/19
---- Example Description ----
In this example, get the region and IP address range information of the public IP address "13.73.24.96" using the
local XML file. You can get the region and IP address range information on offline if use the local XML file.
RELATED LINKS
PowerShell Gallery: https://www.powershellgallery.com/packages/AzureUtil/
GitHub: https://github.com/tksh164/AzureUtil-PowerShellModule
Microsoft Azure Datacenter IP Ranges: https://www.microsoft.com/en-us/downloa ... x?id=41653
SYNOPSIS
Get the Azure datacenter IP address range information of specified public IP address.
SYNTAX
Get-AzureUtilDatacenterIPRangeInfo [-IPAddress] <String[]> [[-XmlFilePath] <String>] [-IgnoreCache]
[<CommonParameters>]
DESCRIPTION
This cmdlet provides quick lookup the Azure datacenter IP address range information from the specified public IP
address.
PARAMETERS
-IPAddress <String[]>
Specify the public IP address you want to check.
Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-XmlFilePath <String>
Specify the file path of Azure datacenter IP address range XML file. The latest XML file is can download from
https://www.microsoft.com/en-us/downloa ... x?id=41653. This parameter is optional.
Required? false
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-IgnoreCache [<SwitchParameter>]
If you specify this switch parameter, the cached IP range data will not be used and the latest IP range XML
will always be downloaded. By default, this cmdlet is cache the downloaded IP range XML. This parameter is
ignored if this parameter and the XmlFilePath parameter are specified at the same time.
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
System.Management.Automation.PSObject
-------------------------- EXAMPLE 1 --------------------------
PS >Get-AzureUtilDatacenterIPRangeInfo -IPAddress '13.73.24.96'
IPAddress RegionName IPRange
--------- ---------- -------
13.73.24.96 japaneast 13.73.0.0/19
---- Example Description ----
In this example, get the region and IP address range information of the public IP address "13.73.24.96".
-------------------------- EXAMPLE 2 --------------------------
PS >'13.73.24.96','40.112.124.10','13.88.13.238' | Get-AzureUtilDatacenterIPRangeInfo
IPAddress RegionName IPRange
--------- ---------- -------
13.73.24.96 japaneast 13.73.0.0/19
40.112.124.10 europewest 40.112.124.0/24
13.88.13.238 uswest 13.88.0.0/19
---- Example Description ----
In this example, get the region and IP address range information of the public IPs via piping.
-------------------------- EXAMPLE 3 --------------------------
PS >$xmlFilePath = 'C:\\PublicIPs_20170616.xml'
PS > '13.73.24.96' | Get-AzureUtilDatacenterIPRangeInfo -XmlFilePath $xmlFilePath
IPAddress RegionName IPRange
--------- ---------- -------
13.73.24.96 japaneast 13.73.0.0/19
---- Example Description ----
In this example, get the region and IP address range information of the public IP address "13.73.24.96" using the
local XML file. You can get the region and IP address range information on offline if use the local XML file.
RELATED LINKS
PowerShell Gallery: https://www.powershellgallery.com/packages/AzureUtil/
GitHub: https://github.com/tksh164/AzureUtil-PowerShellModule
Microsoft Azure Datacenter IP Ranges: https://www.microsoft.com/en-us/downloa ... x?id=41653