Skip to content
This repository has been archived by the owner on May 18, 2023. It is now read-only.

ml4/terraform-azurerm-n-tier-windows

Repository files navigation

terraform-azurerm-n-tier-windows

Terraform child module to manage creation of generic Windows VMs.

Requirements

Name Version
terraform >= 0.15.4
azurerm >= 2.57.0

Providers

Name Version
azurerm >= 2.57.0
local n/a
template n/a

Modules

No modules.

Resources

Name Type
azurerm_network_interface.app resource
azurerm_network_interface.db resource
azurerm_network_interface.web resource
azurerm_public_ip.app resource
azurerm_public_ip.db resource
azurerm_public_ip.web resource
azurerm_resource_group.app resource
azurerm_resource_group.db resource
azurerm_resource_group.web resource
azurerm_windows_virtual_machine.app resource
azurerm_windows_virtual_machine.db resource
azurerm_windows_virtual_machine.web resource
local_file.app_startup_script resource
local_file.database_startup_script resource
local_file.web_startup_script resource
template_file.app_startup_script data source
template_file.database_startup_script data source
template_file.web_startup_script data source

Inputs

Name Description Type Default Required
app set to true to include app tier string false no
app_instance_config n/a
object({
vm_name = string
os_publisher = string
os_offer = string
os_sku = string
os_version = string
os_disk_storage_account_type = string
machine_size = string
admin_username = string
admin_password = string
})
{
"admin_password": "donotusethispassword",
"admin_username": "admin",
"machine_size": "Standard_D2_v4",
"os_disk_storage_account_type": "Standard_LRS",
"os_offer": "WindowsServer",
"os_publisher": "MicrosoftWindowsServer",
"os_sku": "2019-Datacenter",
"os_version": "2019.0.20190410",
"vm_name": "test-web"
}
no
app_startup_script n/a string "" no
common_tags (Optional) Map of common tags for taggable resources. map(string) {} no
database set to true to include database tier string false no
database_startup_script n/a string "" no
db_instance_config n/a
object({
vm_name = string
os_publisher = string
os_offer = string
os_sku = string
os_version = string
os_disk_storage_account_type = string
machine_size = string
admin_username = string
admin_password = string
})
{
"admin_password": "donotusethispassword",
"admin_username": "admin",
"machine_size": "Standard_D2_v4",
"os_disk_storage_account_type": "Standard_LRS",
"os_offer": "WindowsServer",
"os_publisher": "MicrosoftWindowsServer",
"os_sku": "2019-Datacenter",
"os_version": "2019.0.20190410",
"vm_name": "test-web"
}
no
disable_password_authentication Set password auth on or off. Needs to be false for admin_password to be set bool false no
location Location to deploy to string "West Europe" no
prefix Main prefix for all objects string n/a yes
rg_name Resource group name string n/a yes
subnet_id Subnet to deploy to string n/a yes
web set to true to include web tier string false no
web_instance_config windows vm related
object({
vm_name = string
os_publisher = string
os_offer = string
os_sku = string
os_version = string
os_disk_storage_account_type = string
machine_size = string
admin_username = string
admin_password = string
})
{
"admin_password": "donotusethispassword",
"admin_username": "admin",
"machine_size": "Standard_D2_v4",
"os_disk_storage_account_type": "Standard_LRS",
"os_offer": "WindowsServer",
"os_publisher": "MicrosoftWindowsServer",
"os_sku": "2019-Datacenter",
"os_version": "2019.0.20190410",
"vm_name": "test-web"
}
no
web_startup_script // templates string "" no

Outputs

Name Description
database_startup_script startup script when instance boots
web_startup_script startup script when instance boots
windows_app_startup_script startup script when instance boots
windowsvm-web-private_ip_address Azure windows VM: Azure windows VM Web Server private IP address
windowsvm-web-public_ip_address Azure windows VM: Azure windows VM Web Server public IP address

About

Deploy a single Windows VM on Azure

Resources

License

Stars

Watchers

Forks

Packages

No packages published