danielsollondon / azvmimagebuilder

Azure VM Image Builder
180 stars 153 forks source link

Generic error when submitting the template #92

Closed belnet-ict closed 3 years ago

belnet-ict commented 3 years ago

Hello, I followed the following solution: https://github.com/danielsollondon/azvmimagebuilder/tree/master/solutions/14_Building_Images_WVD

Unfortunately I came across the following error when I tried to submit the template :

New-AzResourceGroupDeployment -ResourceGroupName $imageResourceGroup -TemplateFile $templateFilePath2 -api-version "2020-02-14" -imageTemplateName $imageTemplateName -svclocation $location
New-AzResourceGroupDeployment : 16:27:33 - The deployment 'armTemplateWVD2' failed with error(s). Showing 1 out of 1
error(s).
Status Message: Internal error occurred. This is a generic error. To identify possible causes, go to
https://aka.ms/azvmimagebuilderts. (Code:InternalOperationError)
CorrelationId: c37e2a33-eed1-4976-a2aa-c9508f435568
At line:1 char:1
+ New-AzResourceGroupDeployment -ResourceGroupName $imageResourceGroup  ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [New-AzResourceGroupDeployment], Exception
    + FullyQualifiedErrorId : Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.NewAzureResourceGroupDep
   loymentCmdlet

DeploymentName          : armTemplateWVD2
ResourceGroupName       : rg-wvd-aib
ProvisioningState       : Failed
Timestamp               : 20/01/2021 15:27:32
Mode                    : Incremental
TemplateLink            :
Parameters              :
                          Name                 Type                       Value
                          ===================  =========================  ==========
                          imageTemplateName    String                     wvdWin10O365ImageTemplate
                          api-version          String                     2020-02-14
                          svclocation          String                     westeurope

Outputs                 :
DeploymentDebugLogLevel :

It's a generic error and there is not much information. How could I get more information to debug this?

Thank you

neleshgoel commented 3 years ago

Hello,

Facing similar issue, template deployment was working fine till few hours back but now for almost last 2 hours i also face the same issue.

[error]At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.

[error]Details:

##[error]InternalOperationError: Internal error occurred. This is a generic error. To identify possible causes, go to https://aka.ms/azvmimagebuilderts.

[error]Check out the troubleshooting guide to see if your issue is addressed: https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/deploy/azure-resource-group-deployment?view=azure-devops#troubleshooting

[error]Task failed while creating or updating the template deployment.

Also when i try to delete the previously create image template, it fails with below error : rhel: Error cleaning up resource group 'IT_rg-aib_rhel' in customer subscription, Error executing first party operation: Error during first party operation execution: Future#WaitForCompletion: the number of retries has been exceeded: StatusCode=409 -- Original Error: Code="ResourceGroupDeletionBlocked" Message="Deletion of resource group 'IT_rg-aib_rhel' failed as resources with identifiers 'Microsoft.Storage/storageAccounts/xxxxxxxxxxx' could not be deleted. The provisioning state of the resource group will be rolled back. Please check audit logs for more details." Details=[{"AdditionalInfo":null,"Code":null,"Details":null,"Message":"{\"error\":{\"code\":\"StorageAccountOperationInProgress\",\"message\":\"An operation is currently performing on this storage account that requires exclusive access.\"}}","Target":"/subscriptions/xxxxxxxxxxxx/resourceGroups/IT_rg-aib_rhel/providers/Microsoft.Storage/storageAccounts/xxxxxxxxxxx"}] (Code: InternalOperationError)

Also is i check the image template i see below error :

"provisioningError": { "message": "Internal error occurred. This is a generic error. To identify possible causes, go to https://aka.ms/azvmimagebuilderts.", "provisioningErrorCode": "NoCustomizerScript"

Appreciate the help !!

Regards, Nelesh

rfolkers commented 3 years ago

Yesterday I experienced the same issue, but today everything works again. I believe it was as a result of a service interuption in West EU with creating storage accounts, https://app.azure.com/h/PK0_-BD0/79df4b

neleshgoel commented 3 years ago

Indeed issue is now fixed, i also believe issue yesterday was caused due to service interruption in WestEU with Storage Accounts.

belnet-ict commented 3 years ago

Yes, the issue is fixed now. Thanks for your information