-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for PowerShell Graph SDK #22
Comments
Attempting to automatically load Microsoft.Graph (or sub-modules such as Microsoft.Graph.Authentication) within the .Net Interactive extension OnLoadAsync results in the following error:
Importing the module directly in a Polyglot Notebook PowerShell codeblock works successfully though. This appears to be a known issue with PowerShell loading modules that require specific PowerShell features (possibly PowerShell remoting for backwards compatibility with Windows PowerShell). Continuing to research this for the time being. |
Potential reference issue on .Net Interactive repo: Powershell module not importing or cant find #1720 |
Testing with an internal preview build of PowerShell v2 SDK for Microsoft Graph, I was able to get the authentication module to load dynamically in the OnLoadAsync method. Awaiting public preview release of that before continuing forward. |
Using PowerShell v2 SDK preview 1, able to import Microsoft.Graph meta-module, but run into issues with Microsoft.Graph.Core NuGet dependency. Appears to be a package mismatch as .Net v5 SDK uses 3.X while PowerShell v2 SDK preview 1 uses 2.X. Opened issue for PowerShell v2 SDK to target Microsoft.Graph.Core to target 3.X, currently under consideration. |
Add integration with PowerShell code blocks to call Microsoft Graph SDK
The text was updated successfully, but these errors were encountered: