danielsollondon / azvmimagebuilder

Azure VM Image Builder
180 stars 153 forks source link

Get-AzImageBuilderTemplate returns Internal error occurred. This is a generic error. #129

Closed ChristianVerhoeven closed 1 year ago

ChristianVerhoeven commented 1 year ago

Hi,

I'm automating the Azure Image Build process using Azure DevOps pipelines, this takes a couple of steps.

  1. Run Invoke-AzResourceAction to start the image build process for a specific template
  2. use Get-AzImageBuilderTemplate with a while loop to continuously get the run

At first I thought that a 30 second wait was giving connection timeouts due to to many calls or something, and a run takes a while so increasing it to 5 minutes was a logical step.

But it seems that after about 25 minutes (so 5 calls with Get-AzImageBuilderTemplate) it only keeps returning Internal error occurred. This is a generic error. The build is still running and will complete successfully, but I am unable to get the status and checking the LastRunStatusRunState.

The while loop is doing a Get-AzImageBuilderTemplate every 5 minutes, stores it in a variable while LastRunStatusRunState -eq "Running".

Can someone help me figure out what is going here, Doing a simple get should not only 'suddenly' return a error.

Thanks in advance.

ChristianVerhoeven commented 1 year ago

Some additional information While writing this issue and running the Get-AzImageBuilderTemplate again gives a result back again (still LastRunStatusRunState = Running) so it seems to be a sort of inaccessibility issue for a short while (5 tot 10 minutes).

ChristianVerhoeven commented 1 year ago

@danielsollondon I saw that this is the wrong GitHub project, issue can be closed