-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
Function Get-AutopilotDevice() throwing error: Invoke-MgGraphRequest: The pipeline has been stopped. #6
Comments
How are you connecting to Graph in the script? |
App-based authentication |
Can you provide steps for me to replicate? |
Wrapping Get-WindowsAutoPilotInfoCommunity as function in script. Retrieving appid, appsecret and grouptag from AzureKeyVault after user authentication $AutopilotParams = @{ Using default $Name variable "localhost" as the script is run on the machine being imported. |
It seems to be a clash with the latest version of az.accounts and microsoft.graph.authentication modules. |
thank you.. will raise a ticket |
In the meantime, if you rollback the az.accounts module, it should start working again |
will run a test with az.accounts version 2.12.3 |
Using az.accounts v2.12.3 with microsoft.graph.authentication v2.0.0 did not work. Downgraded microsoft.graph.authentication to v1.28.0 and az.accounts v2.12.3 is working for me. Will test other versions also and report the issue. |
The Function Get-AutopilotDevice() is throwing an error: Invoke-MgGraphRequest: The pipeline has been stopped.
its with line 304 https://github.com/andrew-s-taylor/WindowsAutopilotInfo/blob/7fe10613188b71c6319331eb24cd2ed79258a519/Community%20Version/get-windowsautopilotinfocommunity.ps1#L304C13-L304C89
The text was updated successfully, but these errors were encountered: