- Notifications
You must be signed in to change notification settings - Fork 492
Description
Describe the bug
When running ARI in Automation mode, it fails when running dependencies from the ThreadJob module, even though it has been successfully added to the runtime environment.
The output csv file is saved to the storage account but contains no data.
To Reproduce
Script executed by my runbook:
Import-Module AzureResourceInventory
Invoke-ARI -TenantID -SubscriptionID -Automation -StorageAccount saari -StorageContainer ari -IncludeCosts -SkipDiagram -SkipPolicy -SkipVMDetails -SkipAdvisory
Also tried Importing the Thread-Job module manually (Import-Module ThreadJob) before calling Invoke-ARI to no avail.
Executing the same command from VSCode (without the Automation and StorageAccount switches) runs just fine and I can get all the contents I need on the CSV file.
Expected behavior
No output errors and CSV file containing data written to the container on my storage account.
Screenshots
Environment
Runtime Environment Powershell 7.4
Azure cloud special setting
None
Additional context
None