ARM fails to reference image version in shared image gallery?

Gordon 11 Reputation points
2022-02-22T17:25:55.547+00:00

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://learn.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://learn.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
Azure Virtual Desktop
A Microsoft desktop and app virtualization service that runs on Azure. Previously known as Windows Virtual Desktop.
1,835 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.