Skip to content

Latest commit

 

History

History
130 lines (70 loc) · 1.89 KB

HowTo.md

File metadata and controls

130 lines (70 loc) · 1.89 KB

How to run Azure Resource Inventory


Installing prerequisites



By running the script with administrative rights, it should be able to install all the prerequisites and runs smoothly, but if you prefers we can run the following commands just to make sure everything is set to run the script:


  1. Install Azure CLI:

Download and install Azure CLI (https://learn.microsoft.com/en-us/cli/azure/install-azure-cli)


  1. Make sure the execution of scripts is allowed:

Set-ExecutionPolicy -ExecutionPolicy Unrestricted

  1. Install Azure CLI Extensions:

az extension add --name resource-graph

  1. Install Import-Excel Powershell Module:

Install-Module -Name ImportExcel

  1. Download the Azure Resource Inventory Files:

ARI Files


  1. Extract the Files:

ARI Extract


  1. Unblock the main file:

ARI Extract


Running the script



There are several parameters that can be used in the script, but just running the script without any parameter is enough to generate a standard Excel spreadsheet.


No Parameters


Tenants



If you have permissions on more than one tenant, the script will prompt which Tenants do you want to run the inventory against:


Tenants


If can also select which Tenant do you want to run the inventory against:


TenantID


Network Topology



Draw.io .XML file will be put in the "C:\AzureResourceInventory" folder:


ARI Files


Now you just need to open draw.io and open the file:


Draw.Io Open