microsoft / ARI

Azure Resource Inventory - It's a Powerful tool to create EXCEL inventory from Azure Resources with low effort
MIT License
1.07k stars 390 forks source link

Automation Account Script receiving 404 for URL in $Script:RawRepo #216

Open weekendclimber opened 2 weeks ago

weekendclimber commented 2 weeks ago

Version: 3.1.9

See the error message below. The value of the variable is: 'https://raw.githubusercontent.com/microsoft/ARI/main'

Receiving a 404 even trying to access from a browser or other methods.

image

Claudio-Merola commented 2 weeks ago

@weekendclimber

We released a new version of the script, now as a Powershell Module.

Can you try this version?

weekendclimber commented 2 weeks ago

I will give it a go tomorrow and report back.

weekendclimber commented 2 weeks ago

That is still throwing some errors and the output does not get generated. Here is my command in the runbook:

image

Here is the error output:

9/13/2024, 3:42:49 PM - Warning: TenantId 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' contains more than one active subscription. First one will be selected for further use. To select another subscription, use Set-AzContext.
9/13/2024, 3:42:49 PM - Warning: To override which subscription Connect-AzAccount selects by default, use `Update-AzConfig -DefaultSubscriptionForLogin 00000000-0000-0000-0000-000000000000`. Go to https://go.microsoft.com/fwlink/?linkid=2200610 for more information.
9/13/2024, 3:47:28 PM - Error: 
OperationStopped: 
Line |
  28 |      $DataBricks = $Resources | Where-Object { $_.TYPE -eq 'microsoft. …
     |      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Exception of type 'System.OutOfMemoryException' was thrown.

9/13/2024, 3:47:30 PM - Error: 
OperationStopped: 
Line |
  31 |      $DocIntelligence = $Resources | Where-Object {$_.TYPE -eq 'micros …
     |      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Exception of type 'System.OutOfMemoryException' was thrown.

9/13/2024, 3:47:35 PM - Error: 

9/13/2024, 3:50:29 PM - Error: 
Claudio-Merola commented 1 week ago

@weekendclimber

"Exception of type 'System.OutOfMemoryException' was thrown"

That happens due to the computer power in the regular Automation Account being too small for that environment.

Use "Hybrid Runbook Workers" with more memory and computing power to run the Runbook. (https://learn.microsoft.com/en-us/azure/automation/automation-hybrid-runbook-worker)