简体   繁体   中英

How to access the ASP.net website deployed in Windows Azure VM (IIS Server)

I have installd IIS server in windows azure virtual machine using ARM template also deployed one application. But when I am accessing the DNS name/Public IP of my VM the default IIS server is coming. I am unable to access my website.

Please give some idea how to access the deployed website using DNS name or public IP.

I am following the below github template for application deployment:

https://github.com/Azure/azure-quickstart-templates/tree/master/201-web-app-vm-dsc

In case you are using Visual Studio 2012 or higher, you can create PublishProfile and use the Publish feature in order to deploy your Web App to Azure service. Refer to the Build->Publish menu item.

I don't know if your website is reachable on port 80 but you have to setup a VM endpoint if you want your site to be published on another port than the default one.

Hope it helps !

If you're using the sample quickstart "as is" the problem is likely that you're missing the virtual application in the path (it's probably not the best sample). If you're hitting the VM using an URI like this:

http://your-dns-name.westus.cloudapp.azure.com

You need to add the web app path onto the end, eg

http://your-dns-name.westus.cloudapp.azure.com/webapplication

You can double check the name of the web application by using IIS Manager on the VM, but I think that should be the default name for that quickstart sample.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM