Skip to content
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

Open
Softgrider opened this issue Jul 30, 2019 · 3 comments
Open

How to install Module in Azure Cloud Shell #55

Softgrider opened this issue Jul 30, 2019 · 3 comments

Comments

@Softgrider
Copy link

Softgrider commented Jul 30, 2019

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

@Softgrider Softgrider changed the title -Module in Azure Cloud Shell How to install Module in Azure Cloud Shell Jul 30, 2019
@rohitramu
Copy link
Contributor

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.

@JasonRBeer
Copy link

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.

@martinisoft1
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants