Giter Club home page Giter Club logo

azureresourceinventory's Introduction

ArtifactType Language Platform Tags
Excel spreedcheet with the full Azure environment
Powershell
Windows
Powershell, Azure, Inventory, Excel Report, Customer Engineer

Azure Grinder

Azure Grinder inventory is a powerful script writen in powershell to generate an Excel report of any Azure Environment you have read access (Virtual Machines, AKS Clusters, SQL DBs, Event Hubs, etc.).

This project is intend to help Cloud Admins and anyone that might need an easy and fast way to build a full Excel Report of an Azure Environment.

Overview

Resources and Resource Providers

Until this documentation Azure Grinder inventory was able to collect Azure Security Center (Unhealth only), Azure Advisor, 22 Azure resource types from 15 different Azure resource providers and this list are increasing fast.

Resource Provider Resource Type
microsoft.advisor recommendations
microsoft.security assessments
microsoft.compute virtualmachines
microsoft.compute availabilitysets
microsoft.compute virtualmachinescalesets
microsoft.compute disks
microsoft.storage storageaccounts
microsoft.network virtualnetworks
microsoft.network virtualnetworks
microsoft.network virtualnetworkgateways
microsoft.network publicipaddresses
microsoft.network loadbalancers
microsoft.sqlvirtualmachine sqlvirtualmachines
microsoft.sql servers/databases
microsoft.dbformysql servers
microsoft.dbforpostgresql servers
microsoft.web serverfarms
microsoft.automation automationaccounts/runbooks
microsoft.eventhub namespaces
microsoft.operationalinsights workspaces
microsoft.containerservice managedclusters
microsoft.containerinstance containergroups
microsoft.web sites
microsoft.sql servers

Getting Started

These instructions will get you a copy of the project up and running on your local machine or CloudShell.

Prerequisites

You can use Azure Grinder in both in Cloudshell and Powershell Desktop.

What things you need to run the script

1. Install-Module ImportExcel
2. Az CLI 
3. az extension add --name resource-graph

To install Azure CLI go to Microsoft Docs and follow the instructions to install.

By default Azure Grinder will call to install both ImportExcel module and resource-graph extension but you need to have the right privileges during the script execution.

Special Thanks for Doug Finke, the Author of Powershell ImportExcel Module.

Important: Azure Grinder Inventory has not been tested in a Mac OS yet. If you have a Mac please share the results with Us.

Important 2: If you're running the script inside Azure CloudShell the final Excel will not have Auto-fit columns and you will see warnings during the script execution but your inventory will be the same. It occurs because ImportExcel needs libgdiplus and libc6-dev libraries but it's not possible to install in Azure CloudShell (If you know how to do that please tell us ;) ).

CloudShell Warnings

Running the script

  • Its really simple to use Azure Grinder Inventory. It's all writen in one script and all that you need to do is to call this script in PowerShell.

  • Run "AzureGrinder.ps1". In Azure CloudShell you're already authenticated. In PowerShell Desktop you will be redirected to Azure sign-in page.

  • If you have privileges in multiple tenants you can specify the desired one by using "-TenantID" parameter or Azure Grinder will scan all your tenants ID and ask you to choose one.

Tenants Menu

  • After properly authenticated and with the TENANT selected, the Azure Grinder Inventory will perform all the work of extracting and creating the inventory.

  • The duration will vary according to the number of subscriptions and resources. In our tests we managed to generate in 5 minutes the inventory of a Tenant with 15 subscriptions and about 12000 resources.

  • Azure Grinder uses "C:\AzureGrinder" as default folder for PowerShell Desktop in Windows and "$HOME/AzureGrinder" for Azure CloudShell to save the final Excel file.

  • This file will have the name "AzureGrinder_Report_yyyy-MM-dd_HH_mm.xlsx" where "yyyy-MM-dd_HH_mm" are the date and time that this inventory was created.

Grinder Final File CloudShell

Grinder Final File Desktop

Versioning and changelog

We use SemVer for versioning. For the versions available, see the tags on this repository.

We also keep the CHANGELOG.md file in repository to Document version changes and updates.

Authors

The main authors of this project are:

  1. Claudio Merola ([email protected]).
  2. Renato Gregio ([email protected])

Contributing

Please read our CONTRIBUTING.md which outlines all of our policies, procedures, and requirements for contributing to this project.

azureresourceinventory's People

Contributors

renatogregio avatar claudio-merola avatar

Stargazers

EUCLIDES PEREIRA NOVAES SILVA avatar

Watchers

James Cloos avatar EUCLIDES PEREIRA NOVAES SILVA 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.