Using public IP addresses with network interfaces and virtual machines

In this recipe, we will create a virtual machine and network interface using the public IP we created in the recipe, Working with public IP addresses. After creating a virtual machine with the public network interface, we will log into it using SSH. We have already seen how to create a virtual machine in the recipe, Creating an Azure virtual machine. We will also learn how this Ansible task differs from what we learned in the first recipe, Creating an Azure virtual machine.

Get Ansible 2 Cloud Automation Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.