As a final step, we can use NSGs and ASGs to create new rules with better control. This approach allows us to have better control of traffic, limiting incoming traffic not only to a specific subnet, but only if the resource is also part of the ASG.
Creating rules with an NSG and an ASG
Getting ready
Before you start, open your browser and go to the Azure portal: https://portal.azure.com. Locate the previously created NSG.
How to do it...
To create a rule using both an ASG and an NSG, we must follow these steps:
- In the NSG blade, find Inbound security rules. Select Add...