Product Manual, TNSR 19.02
(continued from previous page)
--ip-forward \
--accelerated-network
10. Create the LAN Network Interface.
$ az network nic create \
-g TNSR-Resource-Group \
--vnet-name TNSR-VNet \
--subnet TNSR-LAN-Subnet \
-n TNSR-LAN-nic \
--ip-forward \
--accelerated-network
11. Choose the VM Size to be used. To get a list of sizes that are able to run TNSR, run the following command
and export a variable called TNSR_SIZE with it.
$ az vm list-sizes \
--query "[?numberOfCores >= \`4\`] | [?memoryInMb >= \`8192\`].name | sort(@)
˓→" \
--output tsv
$ export TNSR_SIZE=<FILL DESIRED SIZE HERE>
# EXAMPLE:
$ export TNSR_SIZE="Standard_DS4_v2"
12. Choose the TNSR image URN to be used from the list obtained with the following command and export a
variable called TNSR_URN with it.
$ az vm image list \
--publisher Netgate \
--all \
--query "[?contains(offer,'tnsr')].{Sku:sku, Version:version Urn:urn}" \
--output table
$ export TNSR_URN="netgate:netgate-tnsr-azure-fw-vpn-router:netgate-tnsr:20.02.2"
13. Export a variable called TNSR_SSH_KEY containing a path to a valid SSH public key.
$ export TNSR_SSH_KEY="~/.ssh/id_rsa.pub"
14. Accept Azure Marketplace terms so that the image can be used to create VMs.
$ az vm image terms accept --urn ${TNSR_URN}
Note: Previous versions of Azure CLI used the command $ az vm image accept-terms --urn
${TNSR_URN}
15. Create a Storage Account.
$ az storage account create -n tnsrsa -g TNSR-Resource-Group
16. Create the TNSR Virtual Machine.
1.2. Cloud Platforms 52