AzureServiceTags
This PowerShell module lets you query Microsoft’s Azure IP Ranges and Service Tags JSON for Azure cloud (Public, China, Government, Germany). It features auto-completion of all service names, regions and clouds. You can also query for a IPv4 or IPv6 address or CIDR and get all the overlapping addressprefixes in return :)
Install-Module -Name AzureServiceTagsGet-AzureServiceTag -Cloud Public -Region norway* | Select-Object -ExpandProperty AddressPrefixesGet-AzureServiceTag -Cloud Public -Region '^(?!.*euap)((east|west|central|northcentral|southcentral|westcentral|southeast)us\d*|usstage[ec])$'Returns Azure Service Tag entries for a given cloud. You can filter on service name and/or region.
| Name | Type | Required | Description |
|---|---|---|---|
Cloud |
String |
No | Azure cloud to query. Valid values: Public, China, AzureGovernment, AzureGermany. Defaults to Public. |
Name |
String |
No | Filter on servicetags by match/regexp, or tab for full list of services (argument completion) |
Region |
String |
No | Filter for region, or tab for list of possible values for the given cloud |
Looks up Azure region/system service information by IP address or CIDR (IPv4/IPv6) and returns matching Azure addressPrefixes (with match type). Supports pipeline input.
| Name | Type | Required | Description |
|---|---|---|---|
Address |
String[] |
No | One or more IPs/CIDRs to query (IPv4/IPv6). Accepts pipeline input. Aliases: IP, IPs, Prefix, CIDR |
Cloud |
String |
No | Azure cloud to query. Valid values: Public, China, AzureGovernment, AzureGermany. Defaults to Public. |
