Getting a list of all available commands
Becoming familiar with all of the available commands in Microsoft Graph PowerShell can help you effectively manage Microsoft services. This recipe guides you through how to list all the commands available in your environment using the Microsoft Graph PowerShell module.
Getting ready
Follow the guidance in the Setting up PowerShell recipe from Chapter 1, Microsoft 365 Setup and Basic Administration, to connect to your Microsoft 365 tenant via PowerShell. Ensure you have administrative privileges in your system.
How to do it…
- After you’ve opened PowerShell and connected to your tenant, run the following cmdlet:
Get-Command -Module Microsoft.Graph*
- Review the output in the PowerShell window (a small sample of which is shown in Figure 3.1) to see all the cmdlets available in the Microsoft Graph and Microsoft Graph Beta PowerShell modules.
Figure 3.1 – Output of the Get-Command...