12

Microsoft Graph PowerShell Preview - Now on PowerShell Gallery - Microsoft 365 D...

 3 years ago
source link: https://developer.microsoft.com/en-us/microsoft-365/blogs/microsoft-graph-powershell-preview-now-on-powershell-gallery/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
Microsoft 365 Office Microsoft Graph

Microsoft Graph PowerShell Preview – Now on PowerShell Gallery

Published January 20, 2020April 8, 2021 | 6 Shares

The Microsoft Graph PowerShell Preview 0.1.1 is now available on the PowerShell Gallery.

Install

You can install the package using:

Install-Module Microsoft.Graph

Although this new version is now called just Microsoft.Graph, without the beta suffix, for the moment it still targets the Beta APIs only. Future updates of this module will allow you to select between targeting the V1 or the Beta API. Details on how to uninstall the old version are provided in the GitHub repo.

Discover

You can use the following command to discover the commands that are included in the Microsoft Graph modules.

get-command -Module Microsoft.Graph.*

Check out the samples in our GitHub repository for examples of what you can do.

Prefixed

Based on community feedback the Microsoft Graph module has introduced a prefix to all the Microsoft Graph cmdlets to reduce the chance of conflicts with existing modules. Now, instead of calling:

Get-User

the new command is,

Get-MgUser

What’s Changed

More details on the changes that have gone into this release can be found in our GitHub milestones.

Join the Microsoft 365 Developer Program

Start building secure, intelligent solutions with Microsoft 365 today.

Join Now


Recommend

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK