Home

Awesome


ArtifactType: Excel spreadsheet with the full Azure environment Language: Powershell Platform: Windows / Linux / Mac Tags: Powershell, Azure, Inventory, Excel Report, Customer Engineer

GitHub GitHub repo size Azure

GitHub last commit GitHub top language

<br/> <p align="center"> <img src="images/ARI_Logo.png"> </p>

Azure Resource Inventory

Azure Resource inventory (ARI) is a powerful powershell module that generates an Excel report of any Azure Environment you have read access.

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.

<br/>

What's new ?

<br/> <br/>

Azure Resource Inventory Overview

<br/> <p align="center"> <img src="images/ARIv35-Overview.png"> </p> <br/> <p align="center"> <img src="images/ARIv3ExcelExample.png"> </p>

Network Topology View

<br/> <p align="center"> <img src="images/DrawioImage.png"> </p> <br/> <br/> <p align="center"> <img src="images/ARIv3DrawioHover.png"> </p> <br/> <br/> <p align="center"> <img src="images/ARIv3DrawioPeer.png"> </p> <br/> <br/>

Organization View

<br/> <p align="center"> <img src="images/DrawioOrganization.png"> </p> <br/>

Resources View

<br/> <p align="center"> <img src="images/drawiosubs.png"> </p> <br/>

Version 3.5

<br/>

Among the many improvements, there are two that will considerable change the way we use the script and type of data we are reporting:

<br/>

1) Azure Resource Inventory (Powershell Module)

<br/>

We expect this change will positively change the experience of installing and executing ARI:

<br/>

Installing ARI:

Install-Module -Name AzureResourceInventory
<br/> <p align="center"> <img src="images/InstallARI.gif"> </p> <br/>

Now to run the script just execute "Invoke-ARI" with the regular parameters:

Invoke-ARI 
<br/> <p align="center"> <img src="images/RunningARI.gif"> </p> <br/>

2) Automation is now fully integrated within the ARI Module

<br/>

The process to run Azure Resource Inventory using Automation Accounts was changed to fully integrate with the new ARI Module

<br/> <p align="center"> <img src="images/Automation.png"> </p> <br/>

The required steps are present in the: Automation Guide.

<br/> <br/>

3) Azure Rest API

<br/>

We are finally incorporating Azure REST API data into ARI.

At this time we are only including:

We expect this will open doors for extra types of data to be included in the script in the future.

<br/> <br/>

3) Parameters

ParameterDescription
TenantIDSpecify the tenant ID you want to create a Resource Inventory.-TenantID <ID>
SubscriptionIDSpecifies Subscription(s) to be inventoried.-SubscriptionID <ID>
ManagementGroupSpecifies the Management Group to be inventoried(all Subscriptions on it)-ManagementGroup <ID>
LiteSpecifies to use only the Import-Excel module and don't create the charts (using Excel's API)-Lite
SecurityCenterInclude Security Center Data.-SecurityCenter
SkipAdvisoryDo not collect Azure Advisory.-SkipAdvisory
AutomationRequired when running the script with Automation Account-Automation
OverviewUsed to change the Overview Sheet Charts (Available values are: 1 and 2)-Overview
StorageAccountStorage Account Name (Required when running the script with Automation Account)-StorageAccount
StorageContainerStorage Account Container Name (Required when running the script with Automation Account)-StorageContainer
IncludeTagsInclude Resource Tags.-IncludeTags
DebugRun in a Debug mode.-Debug
DiagramFullEnvironmentNetwork Diagram of the entire environment-DiagramFullEnvironment
DiagramCreate a Draw.IO Diagram.-Diagram
SkipDiagramTo skip the diagrams creation-SkipDiagram
DeviceLoginAuthenticating on Azure using the Device login approach-DeviceLogin
AzureEnvironmentChoose between Azure environments <br> > Registered Azure Clouds. Use az cloud list to get the list-AzureEnvironment <NAME>
ReportNameChange the Default Name of the report. Default name: AzureResourceInventory-ReportName <NAME>
ReportDirChange the Default path of the report.-ReportDir "<Path>"
OnlineUse Online Modules. Scan Modules diretly in GitHub ARI Repository-Online
ResourceGroupSpecifies one unique Resource Group to be inventoried, This parameter requires the -SubscriptionID to work.-ResourceGroup <NAME>
TagKeySpecifies the tag key to be inventoried, This parameter requires the -SubscriptionID to work.-TagKey <NAME>
TagValueSpecifies the tag value be inventoried, This parameter requires the -SubscriptionID to work.-TagValue <NAME>
QuotaUsageQuota Usage-QuotaUsage

Examples

<br/>

Getting Started

<br/>

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

<br/>

Supportability

Even the script might work in almost all environments. Some components (i.e the Topology Diagram) use some APIs and components only present in Windows environment.

<br/>

Our Test Environment:

ToolVersion
Windows11 22H2
Powershell7.4.4
<br/>

Prerequisites

Since the script is a Powershell Module, and we fully migrated az cli to powershell. No extra requirements are needed.

Just install the AzureResourceInventory Module and all the required modules will be automatically installed as well.

By default Azure Resource Inventory will call to install the required Powershell modules but you must have administrator privileges during the script execution.

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

<br/> <br/>

:warning: Warnings

<br/>

<span style="color:red">Very Important:</span> Azure Resource Inventory will not upgrade the current version of the Powershell modules.

<br/>

<span style="color:red">Important:</span> 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 the results of your inventory will not be changed :)

CloudShell Warnings

<br/>

Running the script

<br/> <br/>

RunningARI

<br/>

Tenants Menu

<br/>

Versioning and changelog

<br/>

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.

<br/>

Authors

The main authors of this project are:

  1. Claudio Merola (claudio.merola@microsoft.com)
  2. Renato Gregio
<br/> <br/>

Contributing

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

<br/> <br/>
<br/>

About the tool

<br/>

Copyright (c) 2018 Microsoft Corporation. All rights reserved.

<br/>

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

<br/>
<br/>

Trademarks

<br/>

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.

<br/>