Skip to content

Commit

Permalink
Changes per Zijie
Browse files Browse the repository at this point in the history
  • Loading branch information
TomArcherMsft committed Jul 6, 2023
1 parent 61bd196 commit e93d4e4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 14 deletions.
19 changes: 10 additions & 9 deletions quickstart/101-vm-cluster-windows/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,16 @@ resource "random_password" "password" {
# For more information about Verified Modules, see
# https://github.com/azure/terraform-azure-modules/
module "windows_server" {
count = 3 # Define 3 Windows Server VMs
source = "Azure/compute/azurerm"
resource_group_name = azurerm_resource_group.rg.name
vnet_subnet_id = module.network.vnet_subnets[0]
is_windows_image = true
vm_hostname = "vm-${random_string.windows_server_vm_hostname.result}-${count.index}"
admin_password = random_password.password.result
vm_os_simple = "WindowsServer"
public_ip_dns = ["${random_pet.windows_server_public_ip_dns.id}-${count.index}"]
count = 3 # Define 3 Windows Server VMs
source = "Azure/compute/azurerm"
resource_group_name = azurerm_resource_group.rg.name
vnet_subnet_id = module.network.vnet_subnets[0]
is_windows_image = true
vm_hostname = "vm-${random_string.windows_server_vm_hostname.result}-${count.index}"
delete_os_disk_on_termination = true
admin_password = random_password.password.result
vm_os_simple = "WindowsServer"
public_ip_dns = ["${random_pet.windows_server_public_ip_dns.id}-${count.index}"]
}

# The following module is a Terraform Verified Module.
Expand Down
6 changes: 1 addition & 5 deletions quickstart/101-vm-cluster-windows/providers.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,5 @@ terraform {
}
}
provider "azurerm" {
features {
resource_group {
prevent_deletion_if_contains_resources = false
}
}
features {}
}

0 comments on commit e93d4e4

Please sign in to comment.