< Back
Test-AzureUtilDatacenterIPRange
Post
NAME Test-AzureUtilDatacenterIPRange
SYNOPSIS
Test whether the specific public IP address that it is Azure public IP address.
SYNTAX
Test-AzureUtilDatacenterIPRange [-IPAddress] <String> [[-XmlFilePath] <String>] [-IgnoreCache] [<CommonParameters>]
DESCRIPTION
This cmdlet provides quick test to see if the specified IP address is Azure's public IP address.
PARAMETERS
-IPAddress <String>
Specify the public IP address you want to check.
Required? true
Position? 1
Default value
Accept pipeline input? false
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 >Test-AzureUtilDatacenterIPRange -IPAddress '13.73.24.96'
True
---- Example Description ----
In this example, test the public IP address "13.73.24.96" then confirmed it is Azure's public IP address.
-------------------------- EXAMPLE 2 --------------------------
PS >$xmlFilePath = 'C:\\PublicIPs_20170616.xml'
PS > Test-AzureUtilDatacenterIPRange -IPAddress '40.112.124.10' -XmlFilePath $xmlFilePath
True
---- Example Description ----
In this example, test the public IP address "40.112.124.10" using the local XML file then confirmed it is Azure's
public IP address.
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
Test whether the specific public IP address that it is Azure public IP address.
SYNTAX
Test-AzureUtilDatacenterIPRange [-IPAddress] <String> [[-XmlFilePath] <String>] [-IgnoreCache] [<CommonParameters>]
DESCRIPTION
This cmdlet provides quick test to see if the specified IP address is Azure's public IP address.
PARAMETERS
-IPAddress <String>
Specify the public IP address you want to check.
Required? true
Position? 1
Default value
Accept pipeline input? false
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 >Test-AzureUtilDatacenterIPRange -IPAddress '13.73.24.96'
True
---- Example Description ----
In this example, test the public IP address "13.73.24.96" then confirmed it is Azure's public IP address.
-------------------------- EXAMPLE 2 --------------------------
PS >$xmlFilePath = 'C:\\PublicIPs_20170616.xml'
PS > Test-AzureUtilDatacenterIPRange -IPAddress '40.112.124.10' -XmlFilePath $xmlFilePath
True
---- Example Description ----
In this example, test the public IP address "40.112.124.10" using the local XML file then confirmed it is Azure's
public IP address.
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