Test Azure images on HyperV Gen1 and Gen2
Related: rhbz#1896264
This commit is contained in:
parent
24f297859c
commit
1eb51b7bab
4 changed files with 22 additions and 2 deletions
|
|
@ -34,6 +34,10 @@ variable "TEST_ID" {
|
|||
type = string
|
||||
}
|
||||
|
||||
variable "HYPER_V_GEN" {
|
||||
type = string
|
||||
}
|
||||
|
||||
# Use existing resource group
|
||||
data "azurerm_resource_group" "testResourceGroup" {
|
||||
name = var.RESOURCE_GROUP
|
||||
|
|
@ -56,6 +60,7 @@ resource "azurerm_image" "testimage" {
|
|||
name = join("-", ["image", var.TEST_ID])
|
||||
location = data.azurerm_resource_group.testResourceGroup.location
|
||||
resource_group_name = data.azurerm_resource_group.testResourceGroup.name
|
||||
hyper_v_generation = var.HYPER_V_GEN
|
||||
|
||||
os_disk {
|
||||
os_type = "Linux"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue