Knowledge base

December 21, 2022

Microsoft Graph PowerShell v2 is now available as a public preview

Microsoft today announced that its Graph Powershell SDK v2 is now available in public preview. This gives users access to several new features.

One such feature is the ability to write more robust scripts that are both less error-prone and less ambiguous. V2 allows users to combine both production and preview in any needed script, using v1.0 whenever possible and beta only when necessary.

Then users can choose between the Microsoft.Graph module, to work with only stable APIs, or the Microsoft.Graph.Beta module, to work with APIs that are still being worked on and in preview.

According to the company, users can also further improve scripts by installing only the specific modules their scripts will use instead of the entire SDK.

In addition, v2 provides new verification methods, allowing the user to decide which is most appropriate for their particular use case. These authentication flows include managed identity, client secret credentials, environment variable-based authorization and certificate credentials.

Users can also unlock scenarios with support for success status codes (2xx) so that all 2xx responses can be treated as successful requests. This makes it possible to obtain information from the response text for further use in the script.

Finally, v2 provides users with a migration tool for scripts from v1 users. This tool becomes available only when v2 reaches general availability.

To test out the new version, visit the website. For more information, click here.

Source: sdtimes

Want to know more?

Get in touch

Tech Updates: Microsoft 365, Azure, Cybersecurity & AI – Weekly in Your Mailbox.