-
Notifications
You must be signed in to change notification settings - Fork 72
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
How to install Module in Azure Cloud Shell #55
Comments
Thanks for raising this issue @Softgrider. We are still working on CloudShell support. The specific error you have come across is due to a conflict of dependencies between what the Intune module requires and what is pre-loaded in CloudShell. |
I'm experiencing this same issue in Azure Functions. It is a V2 function and is using PowerShell 6. It looks like this is the same problem that @rohitramu stated above. |
I would like to execute cmdlets from this Module from within the "Deployment Scripts" Resource from within an ARM or Bicep Template. Is it safe to assume that these scripts are executed in the same environment as the Cloud Shell and therefore would be subject to the same issue? In the mean time is there any news on when we can expect this to work? I also see that the Desk version of the module is installed when running "install-module -name microsoft.graph.intune". Every cmdlet errors out with "Could not convert string to DateTimeOffset: 1619773997. Path 'expires_on', line 1, position 2937." thanks in advance... Martijn. |
Hello,
i've installed the module in https://shell.azure.com with install-module -name microsoft.graph.intune.
PS Azure:> get-module -name microsoft.graph.intune -ListAvailable
ModuleType Version Name PSEdition ExportedCommands
Binary 6.1907.1.0 Microsoft.Graph.Intune Desk {Set-MSGraphAlias, ......
It installs the desk version, and not the core version.
Running a cmdlet throws the error:
Could not load file or assembly 'Microsoft.IdentityModel.Clients.ActiveDirectory, Version=5.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. Could not find or load a specific file. (Exception from HRESULT: 0x80131621)
How do I install the module in the Cloud Shell?
Regards from Germany
Frank
The text was updated successfully, but these errors were encountered: