diff --git a/services/active-directory/terraform/infrastructure/activeDirectoryInstances.tf b/services/active-directory/terraform/infrastructure/activeDirectoryInstances.tf index 855e79ad..ee045300 100644 --- a/services/active-directory/terraform/infrastructure/activeDirectoryInstances.tf +++ b/services/active-directory/terraform/infrastructure/activeDirectoryInstances.tf @@ -93,6 +93,23 @@ resource "azurerm_windows_virtual_machine" "active-directory-instance" { } } +# Install IIS web server to the virtual machine +resource "azurerm_virtual_machine_extension" "ad-domain-services" { + name = "ad-extension-${random_string.active-directory-random-string[0].result}" + virtual_machine_id = azurerm_windows_virtual_machine.active-directory-instance[count.index].id + publisher = "Microsoft.Compute" + type = "CustomScriptExtension" + type_handler_version = "2.0" + auto_upgrade_minor_version = true + count = sum([var.active-directory-instance-count]) + + settings = <