Azure runbook restart during execution

%3CLINGO-SUB%20id%3D%22lingo-sub-2800264%22%20slang%3D%22en-US%22%3EAzure%20runbook%20restart%20during%20execution%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2800264%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20a%20runbook%20to%20read%20all%20site%20collections%20from%20multi%20geolocation%20and%20get%20sca.%20There%20are%20more%20than%20200000%20site%20collection%20which%20needs%20to%20be%20processed.%20I%20am%20calling%20a%20child%20runbook%20from%20the%20partent%20runbook%20to%20get%20SCAs%20in%20batch%20of%20500%20site%20collections%20each.%20There%20should%20be%20around%20450~500%20child%20runbook%20jobs%20created%20during%20the%20excution%20of%20parent%20runbook.%3C%2FP%3E%3CP%3EWhile%20I%20am%20executing%20the%20parent%20runbook%2C%20it%20is%20getting%20restarted%20from%20the%20begning%20during%20its%20execution.%20The%20total%20duration%20of%20execution%20of%20parent%20runbook%20in%20only%2030%20mins.%3C%2FP%3E%3CP%3ECan%20anyone%20will%20help%20me%20in%20understaning%20why%20the%20parent%20runbook%20execution%20is%20getting%20resatrted%20from%20the%20begning%20in%20between%3F%20Does%20a%20fair%20share%20limit%20has%20to%20do%20with%20the%20restart%20of%20parent%20runbook%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERegards%2C%3C%2FP%3E%3CP%3ERatnesh%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2800264%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%20Automation%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EAzure%20Runbooks%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
New Contributor

Hello,

 

I have a runbook to read all site collections from multi geolocation and get sca. There are more than 200000 site collection which needs to be processed. I am calling a child runbook from the partent runbook to get SCAs in batch of 500 site collections each. There should be around 450~500 child runbook jobs created during the excution of parent runbook.

While I am executing the parent runbook, it is getting restarted from the begning during its execution. The total duration of execution of parent runbook in only 30 mins.

Can anyone will help me in understaning why the parent runbook execution is getting resatrted from the begning in between? Does a fair share limit has to do with the restart of parent runbook?

 

Regards,

Ratnesh

 

1 Reply
You are probably reaching Azure Automation memory limits for jobs running in Automation sandboxes. You can try to either optimize your scripts to consume less memory or use Hybrid Workers. See references below:

https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/azure-subscription-service-...

https://docs.microsoft.com/en-us/azure/automation/automation-windows-hrw-install