IISと.NET4.5をインストールするようにする!
resource "azurerm_virtual_machine_extension" "CustomInstall" {
name = "CustomInstall"
location = var.location
resource_group_name = azurerm_resource_group.resource_group.name
virtual_machine_name = azurerm_virtual_machine.main.name
publisher = "Microsoft.Azure.Extensions"
type = "CustomScript"
type_handler_version = "2.0"
settings = <<SETTINGS
{
"commandToExecute": "powershell Add-WindowsFeature Web-Server,Web-Asp-Net45,NET-Framework-Features"
}
SETTINGS
tags = {
environment = "Production"
}
}
https://www.terraform.io/docs/providers/azurerm/r/virtual_machine.html
