Skip to content

Commit

Permalink
removed iis server from win vm
Browse files Browse the repository at this point in the history
  • Loading branch information
TomArcherMsft committed Nov 25, 2024
1 parent 72b3c4c commit 2b86dd3
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions quickstart/101-backup-vm/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -127,32 +127,6 @@ resource "azurerm_windows_virtual_machine" "main" {
}
}

# Install IIS web server to the virtual machine
resource "azurerm_virtual_machine_extension" "web_server_install" {
name = "${random_string.name.id}-wsi"
virtual_machine_id = azurerm_windows_virtual_machine.main.id
publisher = "Microsoft.Compute"
type = "CustomScriptExtension"
type_handler_version = "1.8"
auto_upgrade_minor_version = true

settings = <<SETTINGS
{
"commandToExecute": "powershell -ExecutionPolicy Unrestricted Install-WindowsFeature -Name Web-Server -IncludeAllSubFeature -IncludeManagementTools"
}
SETTINGS
}

# Generate random text for a unique storage account name
resource "random_id" "random_id" {
keepers = {
# Generate a new ID only when a new resource group is defined
resource_group = azurerm_resource_group.rg.name
}

byte_length = 8
}

resource "random_password" "password" {
length = 20
min_lower = 1
Expand Down

0 comments on commit 2b86dd3

Please sign in to comment.