-
Notifications
You must be signed in to change notification settings - Fork 212
Description
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?