Coder Social home page Coder Social logo

m365inventory's Introduction

M365Inventory

Purpose

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.

Requirements

The following items are required for the tool to function

Modules

  1. Azure RM module
  2. Sharepoint management shell: https://www.microsoft.com/en-us/download/details.aspx?id=35588
  3. Azure AD Module: Install-Module AzureAD
  4. MS Online module: Install-Module MSOnline
  5. Sharepoint Online module: Install-Module Microsoft.Online.SharePoint.PowerShell
  6. Microsoft Teams Module: Install-Module MicrosoftTeams
  7. PowerApps Modules" Install-Module -Name Microsoft.PowerApps.Administration.PowerShell & Install-Module -Name Microsoft.PowerApps.PowerShell -AllowClobber
  8. PowerApps Plan 2 license or trial license: This is required for the powerapps/flow admin actions
  9. Office 365 Global Administrator: Due to the extent of actions we take, a lot of items that are touched will require global admin permissions.
  10. PowerBi Module: Install-Module -Name MicrosoftPowerBIMgmt

Graph API

In order to retrieve Graph reports, a graph api application is needed:

  1. Login to Portal.Azure.Com
  2. Navigate to "Azure Active Directory" > "App Registrations"
  3. Click "New Application Registration"
  4. Give your application a friendly name, Select application type "native", and enter a redirect URL and click create
  5. Click on the App > Required Permissions
  6. Click Add and select the** "Microsoft Graph"** API
  7. Grant the App the "Read All Usage Reports" permission
  8. 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...

m365inventory's People

Contributors

toasterlabs 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.