-
Notifications
You must be signed in to change notification settings - Fork 404
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
Automation - Invoke-ARI command was found, but the module could not be loaded #238
Comments
Hello @farreciado The automation test pane streamed any error or issue besides the one you mentioned? The account seems to be correctly configured and the runbook line is correct. Did you configured the runtime with powershell version 5.1? Can you test to change the runbook line to: "Import-Module AzureResourceInventory"? Just to see what is the error message. |
Hi @Claudio-Merola , I left that single line, now the output is Let me know further tests, thanks. |
That is odd, are you using Runtime Environments, Hybrid Workers or the regular AA Runtime? |
Regular runtime, an Azure Automation resource with 3-4 runbooks, used for little things, no configuration beyond what's minimum required May be worth trying in a separate one? |
I would suggest to remove the "PowershellGet" module first and see how it goes as apparently that is the module that is giving issues (and it is not really necessary for the script to run) |
I did, but no difference. I created a new runtime without adding the PowershellGet module. Fails again, showing this warning I tried to uninstall AzureRM to avoid such conflict, with no success. |
That error should not prevent the Runbook to complete the execution and create the Excel file. Anyways I updated some components in the module and not with the version 3.5.12 it should work in the automation (even with Runtime 7.4) Can you test it? |
Hello @Claudio-Merola I still have problem, even that you release version. |
Hello
I tried to run ARI in a run book on Azure Automation where I have other runbooks working. Followed the steps to configure a runtime, added needed modules etc.
Runbook it's just one line
Invoke-ARI -TenantID "TENANT_ID" -Automation -SkipDiagram -SkipAPIs -StorageAccount "STORAGE_NAME" -StorageContainer "reports" -Debug
When I test the code in test pane, I got this message:
The 'Invoke-ARI' command was found in the module 'AzureResourceInventory', but the module could not be loaded. For more information, run 'Import-Module AzureResourceInventory'.
After checking other issues here, I tried downgrading the Az module version to 8.0, but didn't help.
Packages installed
The text was updated successfully, but these errors were encountered: