A command-line tool to map an IP address to a set of Azure services that use that IP.
Перейти к файлу
Andrea Spadaccini d7c6be897a Update Service Tags ranges to 2024.08.08 2024-04-15 14:29:19 +02:00
data Update Service Tags ranges to 2024.08.08 2024-04-15 14:29:19 +02:00
src feat: sort services by specificity in the output 2022-07-01 16:58:50 +02:00
.gitignore Initial commit 2022-07-01 12:41:07 +00:00
CODE_OF_CONDUCT.md CODE_OF_CONDUCT.md committed 2022-07-01 05:41:13 -07:00
LICENSE LICENSE committed 2022-07-01 05:41:14 -07:00
README.md Update Service Tags ranges to 2024.08.08 2024-04-15 14:29:19 +02:00
SECURITY.md SECURITY.md committed 2022-07-01 05:41:16 -07:00
SUPPORT.md doc: update SUPPORT.md 2022-07-01 15:39:59 +02:00
nuget.config feat: initial commit of the tool 2022-07-01 15:23:35 +02:00

README.md

IP2Azure

This command-line tool allows you to quickly check if a given IPv4 address is used by an Azure service.

It does so by loading the public list of Azure IPs (which is published at https://www.microsoft.com/en-us/download/details.aspx?id=56519) and getting all the services whose published subnets contain the given IP.

A copy of this file is stored in this repository, under the data directory.

For example, from the src directory:

  dotnet run --azureJson ../data/ServiceTags_Public_20240408.json --address 20.51.10.137 -q
20.51.10.137 AzureResourceManager, AzureResourceManager.WestUS2, AzureCloud.westus2, AzureCloud

If the tool finds no matching services, it will only echo back the given IP. Example:

  dotnet run --azureJson ../data/ServiceTags_Public_20240408.json --address 127.0.0.1 -q
127.0.0.1

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.

When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.