question

Gordonmcw avatar image
0 Votes"
Gordonmcw asked vipullag-MSFT commented

ARM fails to reference image version in shared image gallery?

Hi everyone,

First time I am seeing this issue. It looks like I cannot provision new session hosts because Azure cannot find a deployment template for my image version in my shared image gallery. Here's the full error

{"details":[{"code":"InvalidTemplateDeployment","message":"{\"error\":{\"code\":\"InvalidTemplateDeployment\",\"details\":[{\"code\":\"InvalidParameter\",\"target\":\"imageReference\",\"message\":\"In region centralus, the following list of Shared Image Gallery images referenced from the deployment template were not found: /subscriptions/subscription id/resourceGroups/resource group/providers/Microsoft.Compute/galleries/shared image gallery/images/image definition/versions/22.2.22. Please check that at least one image has been replicated to centralus or that the ‘exclude from latest’ flag is set to false.

Please refer to https://docs.microsoft.com/en-us/azure/virtual-machines/windows/shared-image-galleries for instructions on creating and deleting such images.\"}],\"message\":\"The template deployment 'AddVMsToHostPool-335e21e1-9768-4e85-8a64-ad27bd8070a5-deployment' is not valid according to the validation procedure. The tracking id is 'e100a21b-619f-4cf7-af51-0f3f9c375f4c'. See inner errors for details.\"},\"details\":{\"code\":\"InvalidTemplateDeployment\",\"message\":\"The template deployment 'AddVMsToHostPool-335e21e1-9768-4e85-8a64-ad27bd8070a5-deployment' is not valid according to the validation procedure. The tracking id is 'e100a21b-619f-4cf7-af51-0f3f9c375f4c'. See inner errors for details.\",\"details\":[{\"code\":\"InvalidParameter\",\"target\":\"imageReference\",\"message\":\"In region centralus, the following list of Shared Image Gallery images referenced from the deployment template were not found: /subscriptions/subscription id/resourceGroups/resource group/providers/Microsoft.Compute/galleries/shared image gallery/images/image definition/versions/22.2.22. Please check that at least one image has been replicated to centralus or that the ‘exclude from latest’ flag is set to false. Please refer to https://docs.microsoft.com/en-us/azure/virtual-machines/windows/shared-image-galleries for instructions on creating and deleting such images.\"}]}}","target":null}]}

I have confirmed that exclude from latest is not set, and I have used this image definition many times in the past. Is this a service issue?










azure-virtual-desktop
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

It looks like if I make a new host pool from this image it validates properly. I am wondering if there is some corruption with the host pool's metadata? I can't think of another reason why ARM would suddenly not be able to fetch templates it needs to deploy images.

0 Votes 0 ·

@Gordonmcw

Firstly, apologies for the delay in responding here and any inconvenience this issue may have caused.
This issue needs deeper investigation. Support team will be able to check and help on this. I would recommend you to open a azure support case.

If you don't have the ability to open a technical support ticket, please let me know I can help you on that.

0 Votes 0 ·

0 Answers