Git Product home page Git Product logo

azureautomationusingmenu's Introduction

MENU DRIVEN AZURE AUTOMATION

Menu Driven program is written keep in mind Task which we do regulary on our Azure subscripitons , at times it is difficult to get commands , syntax and parameters. So these menu driven task provides us automation for our subscription management. Depending on Task we want to perform we provide required Menu List number for that task. Program will ask us input relevant to task we want to perform if required. There is no need remember any command line. This has helped me keep my subscription clean and manageable. Hence sharing this menu drive script as reusuable script which you can program according to your needs.

Script is named menuscript.txt located in Script folder , after downloading script file you can rename this script to menuscript.sh before running in your environment

IT IS RECOMMENDED WE RUN THIS MENU DRIVEN SCRIPT IN AZURE CLOUD SHELL AS IT HAS ALL RELEVANT CLIENT BINARIES INSTALLED TO RUN SCRIPT ALONG WITH AZURE CLI. ALSO BY USING AZURE CLI WE ARE USING LATEST CLIENT TOOLS.

FIRST LOOK OF MENU

MENU

ENTER 1 TO LIST ALL RESOURCE GROUPS IN YOUR SUBSCRIPTION

list

ENTER 2 TO LIST EMPTY RESOURCE GROUPS IN YOUR SUBSCRIPTION

ASK FOR DELETION OF EMPTY RESOURCE GROUP IF NOT REQUIRED

empty

ENTER 3 TO LIST RESOURCE GROUP WHICH ALREADY HAVE LOCKED ON THEM

WE CAN HAVE MINIMUM CANNOTDELETE LOCK TO PROTECT PRODUCTION RESOURCE GROUPS FOR ANY ACCIDENTAL DELETION

lock

ENTER 4 TO CREATE RESOURCE GROUP AND DEPLOYMENT USING TEMPLATE FILE AND PARAMETER FILE

FOR TESTING azuredeploy.json and azuredeploy.parameter.json FILES ARE PROVIDED IN SCRIPT FOLDER

deployment

ENTER 5 TO VIEW ROLE ASSIGNMENT OF USER , GROUP OR SPN

FOR USER AND GROUP YOU CAN PROVIDE INPUT AT [email protected] OR [email protected]

ALTERNATIVELY YOU CAN PROVIDE OBJECT ID FOR USER , GROUP OR SPN

view

ENTER 6 FOR ROLE ASSIGNMENT OF USER , GROUP OR SPN

FOR USER AND GROUP YOU CAN PROVIDE INPUT AT [email protected] OR [email protected]

ALTERNATIVELY YOU CAN PROVIDE OBJECT ID FOR USER , GROUP OR SPN

ENTER OWNER , CONTRIBUTOR OR RELEVANT ROLE GROUP PERMISSION'S YOU WANT TO ASSIGN TO USER GROUP OR SPN

roleassign

ENTER 7 TO DELETE RESOURCE GROUP

WE NEED TO INPUT RESOURCEGROUPNAME TO DELETE

delete

ENTER 8 TO APPLY TAGS TO ALL RESOURCE GROUPS

IN THIS SCRIPT I HAVE USED TAGS ENV AND COSTCENTER FOR EACH RESOURCE GROUP

tags

FINALLY ENTER 9 TO EXIT MENU DRIVEN PROGRAM

exit

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.