Use this data source to access the properties of an Azure Platform Image.
data "azurerm_platform_image" "test" { location = "West Europe" publisher = "Canonical" offer = "UbuntuServer" sku = "16.04-LTS" } output "version" { value = "${data.azurerm_platform_image.test.version}" }
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.
© 2018 HashiCorpLicensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/azurerm/d/platform_image.html