Hi,
we are deploying Azure Automation Account using Azure pipelines and it work well. But when we try to add Microsoft.Graph module using ARM templates, it fail every time with the following error.
Error importing the module Microsoft.Graph. Import failed with the following error: Orchestrator.Shared.AsyncModuleImport.ModuleImportException: While importing the module, an error occurred while processing the module content. Internal error message: Function Update-MgShareListContentTypeColumnLink cannot be created because function capacity 4096 has been exceeded for this scope.. at Orchestrator.Activities.SetModuleVersion.ExecuteInternal(CodeActivityContext context, String moduleName, ModuleLanguage moduleLanguage, String pythonModuleVersion, String modulePath, Guid accountId, Guid moduleVersionId, Int64 moduleContentByteSize, String storageUri, Int32 moduleVersion) at Orchestrator.Activities.SetModuleVersion.Execute(CodeActivityContext context) at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)
I have tried using Azure hosted VM as well as our self hosted VM's but it fail with the same error.
I did another test and instead of importing the Microsoft.Graph module using a ARM template, i used a inline script
New-AzAutomationModule -name Microsoft.Graph -AutomationAccountName $AutAccount.Name -ResourceGroupName $(resourceGroupName) -ContentLink https://www.powershellgallery.com/api/v2/package/Microsoft.Graph/1.11.0
But it still fail with the same error message.
Any help will be appreciated
Hi,
Here is a part of our json for the automation account modules... i have 39 modules in that json.
I import the Microsoft.,Graph module from another json file