Skip to content

Commit

Permalink
what a dumb hard coded attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcalalang committed Jan 17, 2024
1 parent 66ef1a9 commit c1d6bf1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,13 @@ resource "azurerm_virtual_machine" "active-directory-instance" {

# az vm image list -p nginxinc --all -f nginx_plus_with_nginx_app_protect_developer -s debian
plan {
publisher = "nginxinc"
publisher = var.active-directory-instance-publisher
product = var.active-directory-instance-offer
name = var.active-directory-instance-sku
}

storage_image_reference {
publisher = "nginxinc"
publisher = var.active-directory-instance-publisher
offer = var.active-directory-instance-offer
sku = var.active-directory-instance-sku
version = var.active-directory-instance-version
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ existing_subnet_resource_group = "calalang-networking-rg"

# az vm image list -p MicrosoftWindowsServer --all -f WindowsServer -s 2022-datacenter-g2

active-directory-instance-offer = "WindowsServer"
active-directory-instance-sku = "2022-datacenter-g2"
active-directory-instance-version = "20348.2227.240104"
active-directory-instance-count = 1
active-directory-instance-offer = "WindowsServer"
active-directory-instance-publisher = "MicrosoftWindowsServer"
active-directory-instance-sku = "2022-datacenter-g2"
active-directory-instance-version = "20348.2227.240104"
active-directory-instance-count = 1
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ variable "active-directory-instance-offer" {
type = string
description = "Offer name for Active Directory instance resources"
}
variable "active-directory-instance-publisher" {
type = string
description = "Publisher name for Active Directory instance resources"
}
variable "active-directory-instance-sku" {
type = string
description = "SKU name for Active Directory instance resources"
Expand Down

0 comments on commit c1d6bf1

Please sign in to comment.