Azure DNS Zone: How to access the Web application deployed in Azure using FQDN without registering the Domain with the Domain Name Registrars?

Viewed 30

I want to access the Web application deployed in Azure using FQDN without registering the Domain with the Domain Name Registrars

What I have done so far is that

# Create Resource Group
az group create --name $rgName --location $location

# Create Azure Prod VNET
az network vnet create -g $rgName --name $prodVnetName --address-prefixes 10.13.0.0/16  --location $location
az network vnet subnet create -g $rgName --vnet-name $prodVnetName --name Workload1 --address-prefix 10.13.2.0/24

# Create VM in Prod VNet - Workload1 Subnet
prodWorkLoadSubNetID=$(az network vnet subnet show --resource-group $rgName --name "Workload1" --vnet-name $prodVnetName --query id -o tsv)
az vm create --resource-group $rgName --name $VmName --image win2016datacenter --admin-username $VmUser --admin-password $AdminPassword --size Standard_B1s --use-unmanaged-disk --storage-sku Standard_LRS --subnet $prodWorkLoadSubNetID --nsg "" --public-ip-address ""

# Install IIS
Import-Module -Name ServerManager
Install-WindowsFeature -Name Web-Server -IncludeManagementTools 

# Access the Web Application
$vmIP=$(az vm show -d -g $onPremworkloadRG -n $VmName --query privateIps -d --out tsv)
curl $vmIP

# 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
az network dns record-set ns show --resource-group $rgName --zone-name $domainName --name @

# Resolve the FQDN
nslookup www.northeasttechnie.xyz ns1-08.azure-dns.com.

I could resolve the FQDN by passing ns1-08.azure-dns.com. and I am not able to access the FQDN on the browser.

Is there a way for me to access the web application using FQDN without having to register the domain with the Domain Name Registrars?

Note: as well as I don't want to update the Hosts file in windows client machine.

0 Answers
Related