Giter VIP home page Giter VIP logo

ksabour / aznetworktool Goto Github PK

View Code? Open in Web Editor NEW

This project forked from michelin/aznetworktool

0.0 0.0 0.0 43 KB

AzNetworkTool extends Azure CLI, it extends Azure CLI to ease daily network operations in Azure. It can display to which Azure Resource(s) an IP address belong, available subnets inside VNET and available address space (do not overlap with existing VNETs) during VNET creation.

License: Apache License 2.0

Shell 79.48% Python 20.52%

aznetworktool's Introduction

AzNetworkTool CLI

AzNetworkTool CLI extends Azure CLI for network operationnal needs.

This CLI helps us daily to:

  • Find to which of our Azure resource(s) belong an IP Address, whether public or private. NIC, (I|E)LB, Redis & Public IPs supported.
  • Find available subnets in a virtual network.
  • Find an address space when we to create a virtual Network that not overlap with existing virtual networks. Useful when we need to peer Virtual Networks.

Installation

git clone https://github.com/michelin/AzNetworkTool.git

Prerequisites

Usage

./AzNetworkTool

AzNetworkTool
Version: 0.1.0

Usage: AzNetworkTool [command]

Commands:
  what-is-this-ip                 Get Azure Resource associated to a public or private IP address.
  vnet-available-subnets          Get available subnets inside a VNET
  vnet-addrespace-wo-overlap      Get available VNET address spaces that will not overlap with existings
  *                               Help

What Is This Ip

  • Check if an IP address is used. If so, which resource is using it
./AzNetworkTool what-is-this-ip 10.224.192.53
	-> NIC found:
049118e2-4814-401b-a34d-a67a35abc6a9	myresource_group	myapp-privateendpoint.nic.458ed4c9-85de-412a-bd6c-8361f1aad10c	10.224.192.53

./AzNetworkTool what-is-this-ip 10.224.100.165
	-> Redis found:
52cfe19f-528c-4e57-9a6e-019f546af4d2	myresource_group	myapp2-redis	10.224.100.165

./AzNetworkTool what-is-this-ip 10.224.255.253
IP not found!

Available Subnets inside a Virtual Network

  • Find available subnets inside a Virtual Network.
$ ./AzNetworkTool vnet-available-subnets /subscriptions/<SUBSCRIPTIONID>/resourceGroups/<RESOURCEGROUP>/providers/Microsoft.Network/virtualNetworks/<VIRTUALNETWORKNAME>
Available ranges - processing in progress ...
['10.224.195.72/29', '10.224.195.96/27', '10.224.118.0/23']

Available Address Spaces that will not overlap with existing VNETs

  • Get available VNET address spaces that will not overlap with existings. 10.224.0.0/24 is here the address range of an Azure Virtual Datacenter
$ ./AzNetworkTool vnet-addrespace-wo-overlap 10.224.0.0/24

Available Address Space for Virtual Networks - processing in progress ...
['10.224.96.128/26', '10.224.208.0/20', '10.224.224.0/19']

Source

AzNetworkTool is based on Brot and Games CLI.

aznetworktool's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.