Open heenafroz opened 1 year ago
Hi @heenafroz the image you are using looks not correct, 20.04 images have different offer names and sku format, could you try below image?
source_image_reference {
publisher = "Canonical"
offer = "0001-com-ubuntu-server-focal"
sku = "20_04-lts"
version = "latest"
}
Ref: https://ubuntu.com/server/docs/find-ubuntu-images-on-azure
Is there an existing issue for this?
Community Note
Terraform Version
Terraform v1.4.6 on windows_amd64
AzureRM Provider Version
3.59.0
Affected Resource(s)/Data Source(s)
azurerm_linux_virtual_machine
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
VM creation with Ubuntu 20.04-LTS
Actual Behaviour
No response
Steps to Reproduce
https://github.com/Azure/azure-powershell/issues/20732 - Issue has already been reported
Important Factoids
No response
References
https://github.com/Azure/azure-powershell/issues/20732 -2023
Instead use below as per https://www.kiloroot.com/where-did-microsoft-put-the-latest-azure-virtual-machine-ubuntu-images/ offer = "0001-com-ubuntu-server-focal" publisher = "Canonical" sku = "20_04-lts-gen2"