The following list of images referenced from the deployment template are not found: Publisher: MicrosoftWindowsServer, Offer: WindowsServer, Sku: 2012-R2-Datacenter, Version: latest. Please refer to https://docs.microsoft.com/en-us/azure/virtual-machines/

Integration 0 Reputation points
2025-12-11T12:05:04.7666667+00:00
Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
{count} votes

1 answer

Sort by: Most helpful
  1. Himanshu Shekhar 2,010 Reputation points Microsoft External Staff Moderator
    2025-12-11T12:39:08.1233333+00:00

    Hello @Integration , - Thank you for reaching Microsoft QnA support

    The error message you are encountering indicates that the specified image (Sku: 2012-R2-Datacenter) is not available in the Azure Marketplace. This can happen if the image has been deprecated or is no longer supported. To resolve this issue, you can check for available images using Azure CLI or PowerShell commands.

    Here are some steps you can follow:

    1. Using Azure CLI: You can list available images by running the following command:
    az vm image list --location <LOCATION> --publisher "MicrosoftWindowsServer" --offer "WindowsServer" --all
    

    Replace <LOCATION> with your desired Azure region.

    1. Using Azure PowerShell: You can use the following command to get the available images:
       Get-AzVMImage -Location "<LOCATION>" -PublisherName "MicrosoftWindowsServer" -Offer "WindowsServer" -Skus "2012-R2-Datacenter"
    

    Again, replace <LOCATION> with your desired Azure region.

    If you find that the image is indeed deprecated, you will need to select a different, supported image version for your deployment.

    Find and use Azure Marketplace VM images with Azure PowerShell - https://xtls-v4.hkg1.meaqua.org/en-us/azure/virtual-machines/windows/cli-ps-findimage

    Regards, Himanshu

    0 comments No comments

Your answer

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