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

Install Microsoft.Graph module in Azure Automation - fails #465

Closed
LeonArmston opened this issue Nov 16, 2020 · 2 comments
Closed

Install Microsoft.Graph module in Azure Automation - fails #465

LeonArmston opened this issue Nov 16, 2020 · 2 comments
Assignees
Labels
Bug: Documentation enhancement New feature or request
Milestone

Comments

@LeonArmston
Copy link

This might be more of a future feature request but I've been trying to install Microsoft.Graph into Azure Automation and getting the following:

Import module failed
Microsoft.Graph
Error importing the module Microsoft.Graph. Import failed with the following error: Orchestrator.Shared.AsyncModuleImport.ModuleImportException: An error occurred during module validation. When importing the module to an internal PowerShell session, it was not able to be loaded by PowerShell. There is likely an issue with the contents of the module that results in PowerShell's not being able to load it. Please verify that the module imports successfully in a local PowerShell session, correct any issues, and then try importing again.

Installed by selecting Deploy to Azure Automation in the PowerShell Gallery
https://www.powershellgallery.com/packages/Microsoft.Graph/1.1.0

It seems to start installing and takes about 10 minutes installing the related modules i.e. Microsoft.Graph.Applications then fails on Microsoft.Graph at the end with the error message above. I wonder due to the MS Graph modules collection being about 900MB whether it times out?

I was unable to import Microsoft.Graph from the Azure Automation modules gallery either by selecting Import on the Microsoft.Graph module.

Anyone had any success using Microsoft.Graph in Azure Automation?

@ghost ghost added the ToTriage label Nov 16, 2020
@LeonArmston LeonArmston changed the title Allow install from Module gallery in Azure Automation Install Microsoft.graph module in Azure Automation - fails Nov 16, 2020
@LeonArmston LeonArmston changed the title Install Microsoft.graph module in Azure Automation - fails Install Microsoft.Graph module in Azure Automation - fails Nov 16, 2020
@peombwa
Copy link
Member

peombwa commented Nov 18, 2020

The roll-up/meta-module (Microsoft.Graph) doesn't support Azure Automation since it does not export any command. You should instead only import the service modules you are interested individually. A full list of all service modules can be found here https://github.com/microsoftgraph/msgraph-sdk-powershell/wiki/MS-Graph-PowerShell-Modules#service-modules.

Note to self: We should add AzureAutomationNotSupported tag in PSData to disable the Deploy to Azure Automation button for Microsoft.Graph meta-module.

@peombwa peombwa added Bug: Documentation enhancement New feature or request and removed ToTriage labels Nov 18, 2020
@peombwa peombwa self-assigned this Nov 18, 2020
@peombwa peombwa added this to the 1.2.0 milestone Nov 18, 2020
@LeonArmston
Copy link
Author

The roll-up/meta-module (Microsoft.Graph) doesn't support Azure Automation since it does not export any command. You should instead only import the service modules you are interested individually. A full list of all service modules can be found here https://github.com/microsoftgraph/msgraph-sdk-powershell/wiki/MS-Graph-PowerShell-Modules#service-modules.

Note to self: We should add AzureAutomationNotSupported tag in PSData to disable the Deploy to Azure Automation button for Microsoft.Graph meta-module.

Thanks Peter

I will look into just using the service modules I require individually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug: Documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants