/AzureDatacenterIPOrNo

Microsoft Azure Datacenter IP Or No contains PowerShell module to show how you can work with public IP list from https://www.microsoft.com/en-us/download/details.aspx?id=56519

Primary LanguagePowerShellMIT LicenseMIT

Azure Datacenter IP Or No

AzureDatacenterIPOrNo

This repository contains PowerShell Module AzureDatacenterIPOrNo. It contains cmdlet: Get-AzureDatacenterIPOrNo for checking if IP is from Azure IP Ranges and Service Tags – Public Cloud list.

Usage

You can install this module directly from PowerShell gallery:

Install-Module -Name AzureDatacenterIPOrNo

Then you can use it for verifying the possible Azure IP address:

# Update the Azure IP address list from internet
> Get-AzureDatacenterIPOrNo -IP 13.104.157.130 -UpdateCache

Updating cache...

IpRange       : 13.104.157.128/25
Source        : ServiceTags_Public_20230515
Ip            : 13.104.157.130
Region        : westindia
SystemService : 

# Make another request
> Get-AzureDatacenterIPOrNo -IP 13.107.246.10

Region              Ip
------              --
Not Public Azure IP 13.107.246.10

# Check IPv6 address
> Get-AzureDatacenterIPOrNo -IP "2603:1040:0800:0000:0000:0000:0000:0001"

IpRange       : 2603:1040:800::/46
Source        : ServiceTags_Public_20230515
Ip            : 2603:1040:0800:0000:0000:0000:0000:0001
Region        : westindia
SystemService :