initial file creation
This commit is contained in:
35
quickstart/101-azure-virtual-desktop/sig.tf
Normal file
35
quickstart/101-azure-virtual-desktop/sig.tf
Normal file
@ -0,0 +1,35 @@
|
||||
resource "azurerm_resource_group" "sigrg" {
|
||||
location = var.deploy_location
|
||||
name = "${var.prefix}-rg"
|
||||
}
|
||||
|
||||
# Creates Shared Image Gallery
|
||||
# https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/shared_image_gallery
|
||||
resource "azurerm_shared_image_gallery" "sig" {
|
||||
name = "AVDTFsig"
|
||||
resource_group_name = azurerm_resource_group.rg.name
|
||||
location = azurerm_resource_group.rg.location
|
||||
description = "Shared images"
|
||||
|
||||
tags = {
|
||||
Environment = "Demo"
|
||||
Tech = "Terraform"
|
||||
}
|
||||
}
|
||||
|
||||
#Creates image definition
|
||||
# https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/shared_image
|
||||
resource "azurerm_shared_image" "example" {
|
||||
name = "avd-image"
|
||||
gallery_name = azurerm_shared_image_gallery.sig.name
|
||||
resource_group_name = azurerm_resource_group.rg.name
|
||||
location = azurerm_resource_group.rg.location
|
||||
os_type = "Windows"
|
||||
|
||||
identifier {
|
||||
publisher = "MicrosoftWindowsDesktop"
|
||||
offer = "office-365"
|
||||
sku = "20h2-evd-o365pp"
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user