Security in cloud environments is critical, and the Azure cloud provides different tools and services to help build a secure cloud environment for the application. In this recipe, we will look at one of these services: network security groups (NSGs). An NSG is a stateful firewall that can be attached to a virtual machine or subnet in order to restrict the traffic flowing through the virtual machine or subnet. In this recipe, we will outline how to define and provision an NSG on the Azure cloud.
Deploying network security groups
Getting ready
The Ansible control machine must be connected to the internet, with reachability to the Azure public API endpoints. The Azure account should be configured as outlined in the previous recipes...