ARI icon indicating copy to clipboard operation
ARI copied to clipboard

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

Open weekendclimber opened this issue 1 year ago • 5 comments

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

weekendclimber avatar Sep 09 '24 18:09 weekendclimber

@weekendclimber

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

Can you try this version?

Claudio-Merola avatar Sep 12 '24 19:09 Claudio-Merola

I will give it a go tomorrow and report back.

weekendclimber avatar Sep 12 '24 23:09 weekendclimber

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: 

weekendclimber avatar Sep 13 '24 22:09 weekendclimber

@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)

Claudio-Merola avatar Sep 16 '24 11:09 Claudio-Merola

This Issue is stale and may be automatically close soon.

github-actions[bot] avatar Oct 16 '24 14:10 github-actions[bot]