{"id":3974,"date":"2020-01-20T14:24:21","date_gmt":"2020-01-20T21:24:21","guid":{"rendered":"https:\/\/developer.microsoft.com\/en-us\/office\/blogs\/?p=3974"},"modified":"2020-01-20T14:24:21","modified_gmt":"2020-01-20T21:24:21","slug":"microsoft-graph-powershell-preview-now-on-powershell-gallery","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/microsoft-graph-powershell-preview-now-on-powershell-gallery\/","title":{"rendered":"Microsoft Graph PowerShell Preview &#8211; Now on PowerShell Gallery"},"content":{"rendered":"<p>The Microsoft Graph PowerShell Preview 0.1.1 is now available on the <a href=\"https:\/\/www.powershellgallery.com\/packages\/Microsoft.Graph\">PowerShell Gallery<\/a>.<\/p>\n<h3>Install<\/h3>\n<p>You can install the package using:<\/p>\n<p><code>Install-Module Microsoft.Graph<\/code><\/p>\n<p>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 <a href=\"https:\/\/github.com\/microsoftgraph\/msgraph-sdk-powershell\/blob\/dev\/samples\/0-InstallModule.ps1\">GitHub repo<\/a>.<\/p>\n<h3>Discover<\/h3>\n<p>You can use the following command to discover the commands that are included in the Microsoft Graph modules.<\/p>\n<p><code>get-command -Module Microsoft.Graph.*<\/code><\/p>\n<p>Check out the <a href=\"https:\/\/github.com\/microsoftgraph\/msgraph-sdk-powershell\/blob\/dev\/samples\">samples<\/a> in our GitHub repository for examples of what you can do.<\/p>\n<h3>Prefixed<\/h3>\n<p>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:<\/p>\n<p><code>Get-User<\/code><\/p>\n<p>the new command is,<\/p>\n<p><code>Get-MgUser<\/code><\/p>\n<h3>What&#8217;s Changed<\/h3>\n<p>More details on the changes that have gone into this release can be found in our GitHub <a href=\"https:\/\/github.com\/microsoftgraph\/msgraph-sdk-powershell\/milestone\/7?closed=1\">milestones<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Microsoft Graph PowerShell Preview 0.1.1 is now available on the PowerShell Gallery.<\/p>\n","protected":false},"author":69114,"featured_media":25159,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[3,11],"tags":[76],"class_list":["post-3974","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-microsoft-graph","category-office-add-ins","tag-powershell"],"acf":[],"blog_post_summary":"<p>The Microsoft Graph PowerShell Preview 0.1.1 is now available on the PowerShell Gallery.<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/posts\/3974","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/users\/69114"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/comments?post=3974"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/posts\/3974\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/media\/25159"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/media?parent=3974"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/categories?post=3974"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/tags?post=3974"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}