Use this data source to access information about a Platform Image.
data "azurerm_platform_image" "example" {
location = "West Europe"
publisher = "Canonical"
offer = "0001-com-ubuntu-server-focal"
sku = "20_04-lts"
}
output "id" {
value = data.azurerm_platform_image.example.id
}
location
- (Required) Specifies the Location to pull information about this Platform Image from.
publisher
- (Required) Specifies the Publisher associated with the Platform Image.
offer
- (Required) Specifies the Offer associated with the Platform Image.
sku
- (Required) Specifies the SKU of the Platform Image.
version
- (Optional) The version of the Platform Image.
id
- The ID of the Platform Image.The timeouts
block allows you to specify timeouts for certain actions:
read
- (Defaults to 5 minutes) Used when retrieving the Platform Image.