Share via


Azure VM subdomain

Question

Tuesday, April 16, 2019 2:25 PM

I have VM in Azure, and it has Public IP with DNS myapp11.westeurope.cloudapp.azure.com.

Is it possible to create subdomain subdomain1.myapp11.westeurope.cloudapp.azure.com for that VM using only Azure (maybe DNS zone resource) without buying the subdomain from DNS provider?

Thanks

1+2+3+4+...=-1/12

All replies (8)

Tuesday, April 16, 2019 2:51 PM âś…Answered

Hi,

Ah OK.  Unfortunately, you would need a custom domain then for that to work like that.  

Thanks,

Matt


Tuesday, April 16, 2019 2:30 PM

Hi,

What you're referring to here is sub domain delegation (this will treat myapp11.westeurope.cloudapp.azure.com as a top level domain and allow you to create A records against it).  This can be achieved in Azure with the below link:

/en-us/azure/dns/delegate-subdomain

I hope that helps!

Thanks,

Matt


Tuesday, April 16, 2019 2:41 PM

Thanks for the answer. Are you sure about that? I have tried that already and it does not work for me.

Also, in Prerequisites section it says:

To delegate an Azure DNS subdomain, you must first delegate your public domain to Azure DNS. See Delegate a domain to Azure DNS for instructions on how to configure your name servers for delegation.

And link Delegate a domain to Azure DNS  is mentioning buying a domain.

1+2+3+4+...=-1/12


Tuesday, April 16, 2019 2:46 PM

Ah apologies, I didnt fully read the domain name that you had referred to.  You want to delegate out of Azure and not into it and so that link is not valid.

I dont think you'll be able to delegate an Azure DNS zone. 

What are you aiming to do with the VM and what is the requirement for the separate domain?


Tuesday, April 16, 2019 2:48 PM

I want to have one website accessible at myapp11.westeurope.cloudapp.azure.com and another on the samo VM at URL api.myapp11.westeurope.cloudapp.azure.com.

1+2+3+4+...=-1/12


Tuesday, April 16, 2019 3:13 PM

OK. Thank you.

1+2+3+4+...=-1/12


Tuesday, April 16, 2019 3:38 PM | 1 vote

If one of the replies above helped, please 'Mark as answer' so that it can help others in the MSDN community.

Karishma Tiwari - MSFT


Thursday, April 18, 2019 6:42 AM

Refer this -  https://blogs.msdn.microsoft.com/waws/2014/10/01/mapping-a-custom-subdomain-to-an-azure-website/