- Subnet for VPN Zone
- Know the subnet for trust
- DNS name to use for untrust interface (dynamic peering)
- Trust subnet range
- From Azure home enter in resource groups and click on resource groups.

- From Resource Groups search for the resource group you created in the previous step and select it.

- From the resource group click on create and type in network interface.
- Enter in a name.
- Change virtual network to the virtual network you created when you built this resource group.
- Under subnet click on edit subnet.
- Change the name to VPN.
- It should select the next available /24 out of your pool.

- Click save.

- Click review + create
- Click create.
- From the Azure resource group cick on the VPN network interface.
- Click on Edit accelerated network.
- Select enabled and check the box to confirm you have validated the operating system supports.

- Shut down the PA VM if it is running.
- Click on the PA VM in the resource group.
- On the left side select network settings.

- Click on Attach network interface and select the created VPN interface
- You will now see it connected after a couple of minutes.

- Start the PA again.
This will allow dynamic peering of IPSec tunnel via DNS name on untrust.
- From the resource group click on the Network Interface that ends in eth1. This is the unttrust interface used by PA.

- On the left toolbar select IP Configurations.
- Click on the ipconfig-untrust interface.

- Select Associate public IP address.
- Click on create a public ip address under the dropdown.
- Give it a logical name
- Change assignment to static.
- Click Ok

- After a minute the ipconfig-untrust should populate with an external address.
- From resource group you will see a new Public IP address, click on that, and you will see the DNS record that was created.


- You can validate it works by pinging or nslookup. Please note it will not return any pings.
By default Azure will send all traffic to .1 on the subnet which is their gateway. We want to have all trust traffic go to the Palo Alto interface (trust subnet .4 by default).
- From the resource group click on create.
- Search for route table in the box.

- Select create route table.
- Under the basics enter in a logical name.

- Click next.
- Enter in any tags that are required.
- Click next.
- Review and press create. This will take a couple of minutes.

- From the resource group click on the newly created route table.
- On the left screen click on routes and select add.
- Enter in a logical route name
- Destination type will be IP address.
- Destination IP will be 0.0.0.0/0
- Next hop type is Virtual appliance.
- Next hop address is the PA's IP address for trust (interface2 from the resource group)
- Click Add.

- Click on Subnets in the left side of the screen.
- Click on Associate.
- Find your Virtual Network in the drop down box.
- Subnet should be trust.
- Click ok.

- Overview should now show a route pointing to trust interface and trust associated under subnets.
