# Connect the security group to the network interface resource "azurerm_network_interface_security_group_association" "main" { network_interface_id = azurerm_network_interface.main.id network_security_group_id = azurerm_network_security_group.nsg.id }
[root@srv1 ~]# cat variables.tf variable "prefix" { default = "azvmlab" description = "The prefix which should be used for all resources in this example" }
variable "location" { default = "eastasia" description = "The Azure Region in which all resources in this example should be created." }
admin_username = "adminuser" computer_name = "azvmlab-vm" public_ip_address = "20.205.35.219" [root@srv1 azure-vm]# terraform output admin_username = "adminuser" computer_name = "azvmlab-vm" public_ip_address = "20.205.35.219" [root@srv1 ~]# az vm list --resource-group azvmlab-resources --show-details -o table Name ResourceGroup PowerState PublicIps Fqdns Location Zones ---------- ----------------- ------------ ------------- ------- ---------- ------- azvmlab-vm azvmlab-resources VM running 20.205.35.219 eastasia [root@srv1 azure-vm]# ssh adminuser@20.205.35.219 The authenticity of host '20.205.35.219 (20.205.35.219)' can't be established. ECDSA key fingerprint is SHA256:6DA/ljluFG5cYpgxuDrutNGDsA7SwPPyRzZ2S1ewrpY. ECDSA key fingerprint is MD5:46:67:ff:6c:87:53:30:d1:ae:67:a3:39:5f:00:bf:3b. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '20.205.35.219' (ECDSA) to the list of known hosts.
While OpenLogic support is not including with this image, OpenLogic does offer Silver (12x5) & Gold (24x7) support options and consulting for enterprise and/or mission critical systems as well as over 400 open-source packages. If interested, email info@perforce.com or call +1 612.517.2100.
[adminuser@azvmlab-vm ~]$ hostnamectl Static hostname: azvmlab-vm Icon name: computer-vm Chassis: vm Machine ID: ee6f639ed7044de08fbcaa46cf045b35 Boot ID: 2dce38ac9edd44db9107e451b054a7a6 Virtualization: microsoft Operating System: CentOS Linux 7 (Core) CPE OS Name: cpe:/o:centos:centos:7 Kernel: Linux 3.10.0-1160.76.1.el7.x86_64 Architecture: x86-64