Giter Club home page Giter Club logo

myenv's Introduction

Azure NSG Checker

Introduction

This Python script automates the process of checking Network Security Group (NSG) details for specified subnets within the Azure environment. It eliminates the need for manual checks on the Azure portal, providing convenience and efficiency.

Script Initiative

  • Automated Subnet Verification: The script automatically verifies whether the requested subnets belong to the Azure environment.
  • Efficient NSG Exploration: Eliminates manual exploration on the Azure portal by fetching NSG details programmatically.
  • Comprehensive Details: Provides information on VNet, Resource Group, Subnet Range, global rules, default rules, and custom rules associated with the NSG.

Script Benefits

  • Streamlined Data Collection: Easily gather NSG data by simply entering the requested subnets.
  • Automated Environment Check: No manual verification needed to determine if entered subnets are within the Azure environment.
  • Quick Insights: Obtain comprehensive NSG details with just a single click.
  • Reduced Manual Effort: Eliminates the need for frequent logins to the Azure portal for NSG details.

Script Usage

  1. Installation: Install required Azure packages and Azure CLI.

  2. Run Script: Execute the Python script in the terminal.

  3. Enter Subnet: Input the requested subnet(s) when prompted (format: x.x.x.x/x). (*Note - there are some specific subnet range are belong to Azure Cloud so for that filteration we use python RE module) image

  4. Retrieve Details: Hit Enter to fetch NSG details (may take some time for searching across subscriptions).

  5. Outcome: Receive details of NSG associated with the specified subnet(s).

[Watch the video

Prerequisites

  • Azure CLI: Install Azure CLI on your system.
  • Python 3.11 or lower: Ensure Python is installed.
  • VS Code: Install Visual Studio Code.
  • Python Packages: Install required packages using pip:
    • pip install re
    • pip install azure.identity
    • pip install azure.mgmt.network
    • pip install azure.mgmt.subscription
    • pip install tabulate

Azure Account Connection

  1. Run the following command in the command prompt: -'AZ login'

myenv's People

Contributors

kaustubhparab71 avatar

Watchers

 avatar

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.