SkillAgentSearch skills...

ARI

Azure Resource Inventory - It's a Powerful tool to create EXCEL inventory from Azure Resources with low effort

Install / Use

/learn @microsoft/ARI

README


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

<div align="center">

Azure Resource Inventory (ARI)

<img src="images/ARI_Logo.png" width="300">

A powerful PowerShell module for generating comprehensive Azure environment reports

GitHub GitHub repo size GitHub last commit GitHub top language Azure

</div>

📋 Table of Contents

🔍 Overview

Azure Resource Inventory (ARI) is a comprehensive PowerShell module that generates detailed Excel reports of any Azure environment you have read access to. It is designed for Cloud Administrators and technical professionals who need an easy and fast way to document their Azure environments.

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

✨ Key Features

  • Complete Resource Documentation: Detailed inventory of all Azure resources
  • Interactive Excel Reports: Well-formatted spreadsheets with resources organized by type
  • Visual Network Diagrams: Generate interactive topology maps of your Azure environment
  • Security Analysis: Integration with Azure Security Center (optional)
  • Cross-Platform Support: Works on Windows, Linux, Mac, and Azure Cloud Shell
  • Automation-Ready: Can be deployed via Azure Automation Accounts
  • Low-Impact: Read-only operations with no changes to your environment

🚀 Getting Started

Prerequisites

  • PowerShell 7.0+ (required)
  • Azure Account with read access to resources you want to inventory
  • Administrator privileges during script execution (for module installation)

Installation

Install the module directly from PowerShell Gallery:

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

Quick Start

To generate a basic inventory report:

Import-Module AzureResourceInventory
<p align="center"> <img src="images/ImportingARI.gif" width="700"> </p>
Invoke-ARI
<p align="center"> <img src="images/RunningARI.gif" width="700"> </p>

📖 Usage Guide

Basic Commands

Run ARI with specific tenant:

Invoke-ARI -TenantID <Azure-Tenant-ID>

Scope to specific subscription:

Invoke-ARI -TenantID <Azure-Tenant-ID> -SubscriptionID <Subscription-ID>

Include resource tags in the report:

Invoke-ARI -TenantID <Azure-Tenant-ID> -IncludeTags

Common Scenarios

Run in Azure Cloud Shell:

Invoke-ARI -Debug

Include Security Center Data:

Invoke-ARI -TenantID <Azure-Tenant-ID> -SubscriptionID <Subscription-ID> -SecurityCenter

Skip Azure Advisor Data Collection:

Invoke-ARI -TenantID <Azure-Tenant-ID> -SubscriptionID <Subscription-ID> -SkipAdvisory

Skip Network Diagram Generation:

Invoke-ARI -TenantID <Azure-Tenant-ID> -SkipDiagram

Automation Account Integration

If you want to automatically run ARI, there is a way to do it using Automation Accounts:

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

See the Automation Guide for implementation details.

📝 Parameters Reference

| Parameter | Description | Usage | |-----------|-------------|-------| | Core Parameters | | | | TenantID | Specify the tenant ID for inventory | -TenantID <ID> | | SubscriptionID | Specify subscription(s) to inventory | -SubscriptionID <ID> | | ResourceGroup | Limit inventory to specific resource group(s) | -ResourceGroup <NAME> | | Authentication | | | | AppId | Application ID for service principal auth | -AppId <ID> | | Secret | Secret for service principal authentication | -Secret <VALUE> | | CertificatePath | Certificate path for service principal | -CertificatePath <PATH> | | DeviceLogin | Use device login authentication | -DeviceLogin | | Scope Control | | | | ManagementGroup | Inventory all subscriptions in management group | -ManagementGroup <ID> | | TagKey | Filter resources by tag key | -TagKey <NAME> | | TagValue | Filter resources by tag value | -TagValue <NAME> | | Content Options | | | | SecurityCenter | Include Security Center data | -SecurityCenter | | IncludeTags | Include resource tags | -IncludeTags | | SkipPolicy | Skip Azure Policy collection | -SkipPolicy | | SkipVMDetails | Skip Azure VM Extra Details collection | -SkipVMDetails | | SkipAdvisory | Skip Azure Advisory collection | -SkipAdvisory | | IncludeCosts | Includes Azure Cost details for the Subscriptions (Requires the module Az.CostManagement) | -IncludeCosts | | SkipVMDetails | Skip extra details for the VM Families (Quota, vCPUs and memory) | -SkipVMDetails | | Output Options | | | | ReportName | Custom report filename | -ReportName <NAME> | | ReportDir | Custom directory for report | -ReportDir "<Path>" | | Lite | Use lightweight Excel generation (no charts) | -Lite | | Diagram Options | | | | SkipDiagram | Skip diagram creation | -SkipDiagram | | DiagramFullEnvironment | Include all network components in diagram | -DiagramFullEnvironment | | Other Options | | | | Debug | Run in debug mode | -Debug | | NoAutoUpdate | Skip the auto update of the ARI Module | -NoAutoUpdate | | AzureEnvironment | Specify Azure cloud environment | -AzureEnvironment <NAME> | | Automation | Run using Automation Account | -Automation | | StorageAccount | Storage account for automation output | -StorageAccount <NAME> | | StorageContainer | Storage container for automation output | -StorageContainer <NAME> |

📊 Output Examples

Excel Report

<p align="center"> <img src="images/ARIv3ExcelExample.png" width="800"> </p>

Network Topology View

To view the XML files in draw.io format, open them at https://draw.io.

<p align="center"> <img src="images/DrawioImage.png" width="700"> </p>

Interactive features show resource details on hover:

<p align="center"> <img src="images/ARIv3DrawioHover.png" width="400"> <img src="images/ARIv3DrawioPeer.png" width="400"> </p>

Organization View

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

Resources View

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

⚠️ Important Notes

Very Important: ARI will not upgrade existing PowerShell modules. Ensure you have the required modules installed.

CloudShell Limitation: When running in Azure CloudShell, the Excel output will not have auto-fit columns and you may see warnings during execution. The inventory results will still be correct.

<p align="center"> <img src="images/cloudshell-warning-lib.png" width="600"> </p>

Our Test Environment

| Tool | Version | |------|---------| | Windows | 11 22H2 | | PowerShell | 7.4.4 |

Output Details

  • Default output location:
    • Windows: C:\AzureResourceInventory\
    • Linux/CloudShell: $HOME/AzureResourceInventory/
  • Output filename format: AzureResourceInventory_Report_yyyy-MM-dd_HH_mm.xlsx
  • Diagram filename format: AzureResourceInventory_Diagram_yyyy-MM-dd_HH_mm.xml (Draw.io format)

👥 Authors & Acknowledgments

Special thanks to Doug Finke, the author of PowerShell ImportExcel module.

🤝 Contributing

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

📜 License

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

Licensed under the MIT License - see the LICENSE file for details.


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.

Related Skills

View on GitHub
GitHub Stars1.6k
CategoryOperations
Updated1d ago
Forks495

Languages

PowerShell

Security Score

100/100

Audited on Mar 27, 2026

No findings