This tool is meant to give a graphical interface to a variety of powershell scripts with the purpose to create an inventory of a Microsoft 365 tenant, and Azure resources deployed.
The following items are required for the tool to function
- Azure RM module
- Sharepoint management shell: https://www.microsoft.com/en-us/download/details.aspx?id=35588
- Azure AD Module: Install-Module AzureAD
- MS Online module: Install-Module MSOnline
- Sharepoint Online module: Install-Module Microsoft.Online.SharePoint.PowerShell
- Microsoft Teams Module: Install-Module MicrosoftTeams
- PowerApps Modules" Install-Module -Name Microsoft.PowerApps.Administration.PowerShell & Install-Module -Name Microsoft.PowerApps.PowerShell -AllowClobber
- PowerApps Plan 2 license or trial license: This is required for the powerapps/flow admin actions
- Office 365 Global Administrator: Due to the extent of actions we take, a lot of items that are touched will require global admin permissions.
- PowerBi Module: Install-Module -Name MicrosoftPowerBIMgmt
In order to retrieve Graph reports, a graph api application is needed:
- Login to Portal.Azure.Com
- Navigate to "Azure Active Directory" > "App Registrations"
- Click "New Application Registration"
- Give your application a friendly name, Select application type "native", and enter a redirect URL and click create
- Click on the App > Required Permissions
- Click Add and select the** "Microsoft Graph"** API
- Grant the App the "Read All Usage Reports" permission
- Copy the Application ID
*Note: The redirect URI does not have to be a valid URI. I typically use "urn:" for this field.
Once the Graph application has been created, authorization to the tenant must be granted. In order to do this, adapt the following URI:
https://login.microsoftonline.com/common/adminconsent?client_id=&state=12345&redirect_uri=
And paste it a browser window. You will be prompted to login, and grant permissions. Be aware that, because the redirect URI is garbage, the webpage will go to a 401 or you can hit accept eternally without anything happening...