License server peering
Some applications deployed in Schoolyear AVD require access to license servers running on your organization’s internal network. To enable this connectivity, you need to establish VNet peering between the Schoolyear AVD’s VNet and your license server network.
All Schoolyear exams use a single VNet to deploy the session hosts to. You can leverage Azure VNet peering to connect Schoolyear AVD’s VNET with your license server. Afterward, all deployed exams will have access to your license server.
This guide walks you through setting up VNet peering and testing the connection to ensure your licensed applications can activate properly during exams. This guide also assumes you have your license server already set up and running inside a resource group in a separate subscription in your Azure tenant. Setting up license servers is outside the scope of this guide, as that is different for every application.
The general solution for this problem in Azure is VNet peering. VNet peering allows 2 VNets, either in the same subscription or different, to communicate as if they were a single unified VNet and for their traffic to flow freely internally using Azure internal network backbone.
Step 1: Locate your Schoolyear AVD VNet
Section titled “Step 1: Locate your Schoolyear AVD VNet”First, you need to find your Schoolyear AVD VNet.
When you installed the Schoolyear AVD add-on, it created three resource groups.
One of these resource groups (default: rg-sy-exams-network
) contains the VNet that all deployed exams use to deploy the session hosts.
This is the VNet that we will peer to the license server VNet.
Go inside the resource group and select the VNet.
Step 2: Create VNet peering
Section titled “Step 2: Create VNet peering”-
In the Azure Portal, navigate to your Schoolyear Exams Network VNet.
-
In the left menu, select Settings -> Peerings.
-
Click + Add to create a new peering.
-
Configure the peering with these settings:
- Peering link name:
sy-exams-network-to-license-server
- Peering link name:
-
Under subscription:
- Select the subscription your license server VNet belongs to.
-
Under Virtual network:
- Select the virtual network your license server belongs to.
-
Under Remote virtual network peering settings:
- Make sure that Allow the peered virtual network to access
vnet-sy
is selected.
- Make sure that Allow the peered virtual network to access
-
Under Local virtual network peering settings:
- Make sure that Allow
vnet-sy
to access the peered virtual network is selected.
- Make sure that Allow
-
Click Add to create the peering.
Step 3: Create a test VM
Section titled “Step 3: Create a test VM”To verify the peering works correctly, create a test VM in the Schoolyear Exams network and test connectivity to your license server.
-
In the Azure Portal, navigate to your Schoolyear Exams network resource group and click + Create a resource.
-
Search for Virtual Machine and click Create.
-
Configure the VM:
- Subscription: Your Schoolyear AVD subscription
- Resource group: Your Schoolyear AVD Resource Group
- Virtual machine name:
avd-connectivity-test
- Region: Same region as your Schoolyear AVD deployment
- Image: Windows Server 2022 Datacenter
- Size: Standard_B2s (sufficient for testing)
-
Under Administrator account:
- Username:
testadmin
- Password: Create a secure password
- Username:
-
Under Inbound port rules:
- Public inbound ports: Allow selected ports
- Select inbound ports: RDP (3389)
-
Click Next: Disks, then Next: Networking.
-
Under Networking:
- Virtual network: Select your Schoolyear Exams network
- Subnet: Select the
sessionhosts
subnet - Public IP: Create new
-
Click Review + create, then Create.
-
Wait for the deployment to complete.
Step 4: Test connectivity with ping
Section titled “Step 4: Test connectivity with ping”Once your test VM is deployed, test connectivity to your license server.
-
Connect to your test VM via RDP using the public IP address and credentials you created.
-
Open Command Prompt as administrator.
-
Test basic network connectivity to your license server:
Terminal window ping [LICENSE_SERVER_IP]Replace
[LICENSE_SERVER_IP]
with your license server’s actual IP address. -
If
ping
succeeds, test port connectivity usingtelnet
:Terminal window telnet [LICENSE_SERVER_IP] [PORT]Replace
[PORT]
with your license server’s port (e.g., 27000 for FlexNet). -
If
telnet
connects successfully, the connection is working. PressCtrl+]
then typequit
to exittelnet
.
Step 5: Test application-specific connectivity
Section titled “Step 5: Test application-specific connectivity”For a more thorough test, verify that your licensed application can actually reach the license server.
-
On your test VM, install the client portion of your licensed application (if possible).
-
Configure the application to point to your license server’s IP address.
-
Attempt to start the application or run a license check command.
-
Verify that the application can successfully authenticate with the license server.
Step 6: Clean up test resources
Section titled “Step 6: Clean up test resources”After successful testing, clean up the test VM to avoid unnecessary costs.
-
In the Azure Portal, navigate to your test VM (
avd-connectivity-test
). -
Click Delete and confirm the deletion.
-
Also delete associated resources like:
- Network interface
- Public IP address
- OS disk
- Network security group (if created specifically for the test VM)
Troubleshooting
Section titled “Troubleshooting”If connectivity tests fail, check these common issues:
- Peering Status: Ensure both peering connections show “Connected” status in the Azure Portal.
- Network Security Groups: Check that NSG rules allow traffic between the networks on the required ports.
- License Server Configuration: Some license servers may need to be configured to accept connections from the new network range.
- Firewall Rules: Windows Firewall or third-party firewalls on the license server may block connections from the AVD network.