Currently, I am setting up a Hybrid Environment in Azure along with the existing Data Center.
I have configured the Site-to-Site connection between Azure HUB-VNET & On-Prem using Virtual Gateway. Communication between Azure HUB-VNET & On-Prem is working.
I have the following Hub-Spoke model
vnet-hub-poc-hubspoke is the Hub VNET
with an Azure Firewall
Hub VNET is peered with Prod VNET
Prod VNET is configured as shown below
also peered with HUB VNET
I have following VMs created in the Prod VNET
with Routing Table configured
I have create a DNS Zone in Azure
# Create DNS Zone
domainName="northeasttechnie.xyz"
az network dns zone create -g $rgName -n $domainName
az network dns record-set a add-record -g $rgName -z $domainName -n www -a $vmIP
Questions:
I tried to add my custom server instead of the Azure DNS with IP address 168.63.129.16 as below.
To add your custom DNS, Make sure you need to set up VPN before using the custom dns otherwise machine deployed in vnet to network from being unable to connect on-premises domain controllers.
To configure an azure vpn, In your virtual machine gateway -> point to site configuration -> authentication as active directory as below.
https://login.microsoftonline.com/<tenantID>/
once your vpn is created in enterprise application, your azure vpn application id as Audience
https://sts.windows.net/<tenantID>/
and saveThen, refresh and download the vpn client in desktop and install the azurevpnclient import your downloaded file and automatically displayed the details as below.
when I tried and add my custom server it added successfully and vpn also connected like below.
Also, please check this document: Ref1, Ref2 & Q&A which gives some points