Configuration template
Unless you have extensive experience with Azure and ASA/ASAv configurations, use the configuration from the template. Otherwise, your site-to-site VPN might not work as expected.
Fill in the configuration blanks
You need to manually replace the placeholders in the configuration template with the values for your Azure and MacStadium configurations.Get the configuration values
{ azure_network_address } This is the IP address of the virtual network in Azure that needs to have access to MacStadium.- Verify that you’re logged into the Azure portal for your subscription.
- In the search box at the top of the screen, type Virtual networks and select the respective entry in the filtered search results.\

- On the Virtual networks screen, select the virtual network used in your VPN.
- In the network overview, look for the Address space. Use the IP address without the bit notation at the end (e.g. /16).\

- Verify that you’re logged into the Azure portal for your subscription.
- In the search box at the top of the screen, type Virtual networks and select the respective entry in the filtered search results.\

- On the Virtual networks screen, select the virtual network used in your VPN.
- In the network overview, look for the Address space. Use the bit notation at the end (e.g. /16) and convert it to a subnet mask. You can use a CIDR calculator such as this CIDR/Netmask Lookup Tool.\

- You can find the information about your private network in Appendix A of the IP Plan.
This is the name of the private network in MacStadium that needs to be accessed by Azure. By default, this is Private-1. { macstadium_outside_interface } This is the name of the outside interface of your Cisco ASA/ASAv device. By default, this is Outside. { azure_virtual_network_gateway_ip } This is the public IP assigned to the virtual network gateway in Azure.
- Verify that you’re logged into the Azure portal for your subscription.
- In the search box at the top of the screen, type Virtual network gateways and select the respective entry in the filtered search results.\

- On the Virtual network gateways screen, select the gateway for your VPN connection.
- In the network overview, look for the Public IP address.\

- You must have this key saved separately.
Complete the template
- Copy the template into a text editing tool.
- Replace all placeholders with their respective values.
- Delete the remaining commented lines to clean up the template. Commented lines are indicated by ! at the beginning of the line.
- Save your changes.

