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:
- 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.
- 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