backups: Add an azure backup vm
Related to T3889
Test Plan
Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
+ create
Terraform will perform the following actions:
# azurerm_network_interface.backup-interface["backup01"] will be created
+ resource "azurerm_network_interface" "backup-interface" {
+ applied_dns_servers = (known after apply)
+ dns_servers = (known after apply)
+ enable_accelerated_networking = false
+ enable_ip_forwarding = false
+ id = (known after apply)
+ internal_dns_name_label = (known after apply)
+ internal_domain_name_suffix = (known after apply)
+ location = "westeurope"
+ mac_address = (known after apply)
+ name = "backup01-interface"
+ private_ip_address = (known after apply)
+ private_ip_addresses = (known after apply)
+ resource_group_name = (known after apply)
+ virtual_machine_id = (known after apply)
+ ip_configuration {
+ gateway_load_balancer_frontend_ip_configuration_id = (known after apply)
+ name = "backupNicConfiguration"
+ primary = (known after apply)
+ private_ip_address = (known after apply)
+ private_ip_address_allocation = "Dynamic"
+ private_ip_address_version = "IPv4"
+ subnet_id = "/subscriptions/49b7f681-8efc-4689-8524-870fc0c1db09/resourceGroups/swh-resource/providers/Microsoft.Network/virtualNetworks/swh-vnet/subnets/default"
}
}
# azurerm_network_interface_security_group_association.backup-interface-sga["backup01"] will be created
+ resource "azurerm_network_interface_security_group_association" "backup-interface-sga" {
+ id = (known after apply)
+ network_interface_id = (known after apply)
+ network_security_group_id = "/subscriptions/49b7f681-8efc-4689-8524-870fc0c1db09/resourceGroups/swh-resource/providers/Microsoft.Network/networkSecurityGroups/worker-nsg"
}
# azurerm_resource_group.euwest-admin will be created
+ resource "azurerm_resource_group" "euwest-admin" {
+ id = (known after apply)
+ location = "westeurope"
+ name = "euwest-admin"
+ tags = {
+ "environment" = "SWH Admin"
}
}
# azurerm_virtual_machine.backup-server["backup01"] will be created
+ resource "azurerm_virtual_machine" "backup-server" {
+ availability_set_id = (known after apply)
+ delete_data_disks_on_termination = false
+ delete_os_disk_on_termination = false
+ id = (known after apply)
+ license_type = (known after apply)
+ location = "westeurope"
+ name = "backup01"
+ network_interface_ids = (known after apply)
+ resource_group_name = "euwest-servers"
+ tags = {
+ "environment" = "Backup"
}
+ vm_size = "Standard_B2s"
+ boot_diagnostics {
+ enabled = true
+ storage_uri = "https://swhresourcediag966.blob.core.windows.net"
}
+ identity {
+ identity_ids = (known after apply)
+ principal_id = (known after apply)
+ type = (known after apply)
}
+ os_profile {
+ admin_username = "tmpadmin"
+ computer_name = "backup01"
+ custom_data = (known after apply)
}
+ os_profile_linux_config {
+ disable_password_authentication = true
+ ssh_keys {
+ key_data = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDZarzgHrzUYspvrgSI6fszrALo92BDys7QOkJgUfZa9t9m4g7dUANNtwBiqIbqijAQPmB1zKgG6QTZC5rJkRy6KqXCW/+Qeedw/FWIbuI7jOD5WxnglbEQgvPkkB8kf1xIF7icRfWcQmK2je/3sFd9yS4/+jftNMPPXkBCxYm74onMenyllA1akA8FLyujLu6MNA1D8iLLXvz6pBDTT4GZ5/bm3vSE6Go8Xbuyu4SCtYZSHaHC2lXZ6Hhi6dbli4d3OwkUWz+YhFGaEra5Fx45Iig4UCL6kXPkvL/oSc9KGerpT//Xj9qz1K7p/IrBS8+eA4X69bHYYV0UZKDADZSn ardumont@yavin4"
+ path = "/home/tmpadmin/.ssh/authorized_keys"
}
+ ssh_keys {
+ key_data = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDZ1TCpfzrvxLhEMhxjbxqPDCwY0nazIr1cyIbhGD2bUdAbZqVMdNtr7MeDnlLIKrIPJWuvltauvLNkYU0iLc1jMntdBCBM3hgXjmTyDtc8XvXseeBp5tDqccYNR/cnDUuweNcL5tfeu5kzaAg3DFi5Dsncs5hQK5KQ8CPKWcacPjEk4ir9gdFrtKG1rZmg/wi7YbfxrJYWzb171hdV13gSgyXdsG5UAFsNyxsKSztulcLKxvbmDgYbzytr38FK2udRk7WuqPbtEAW1zV4yrBXBSB/uw8EAMi+wwvLTwyUcEl4u0CTlhREljUx8LhYrsQUCrBcmoPAmlnLCD5Q9XrGH nicolasd@darboux id_rsa.inria.pub"
+ path = "/home/tmpadmin/.ssh/authorized_keys"
}
+ ssh_keys {
+ key_data = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAII5oO0jj/IeV04osZ/iaKBZdnuqdziJD3x1VOhtK9tZY vsellier@swh-vs1"
+ path = "/home/tmpadmin/.ssh/authorized_keys"
}
}
+ storage_data_disk {
+ caching = "None"
+ create_option = "Empty"
+ disk_size_gb = 200
+ lun = 1
+ managed_disk_id = (known after apply)
+ managed_disk_type = "Standard_LRS"
+ name = "backup01-datadisk01"
+ write_accelerator_enabled = false
}
+ storage_image_reference {
+ offer = "debian-11"
+ publisher = "debian"
+ sku = "11"
+ version = "latest"
}
+ storage_os_disk {
+ caching = (known after apply)
+ create_option = "FromImage"
+ disk_size_gb = 32
+ managed_disk_id = (known after apply)
+ managed_disk_type = "Standard_LRS"
+ name = "backup01-osdisk"
+ os_type = (known after apply)
+ write_accelerator_enabled = false
}
}
Plan: 4 to add, 0 to change, 0 to destroy.
Migrated from D7220 (view on Phabricator)