IIS -Web server setup
- Go to “Server Manager” and add the following roles & features:






Go to “IIS Manager”
Go to “Feature Delegation” and change features as follows:


For an example we can add the following sites as follows:
AuthorizationServerMulti
GstNirvana


- Edit the site bindings as follows:

- AuthorizationServerMulti

- GstNirvana

- Assign “Full Control” rights for “Everyone” group on “App_Data” folders of site.

- Install complete “Web Deploy 3.6” from following URL:
https://www.microsoft.com/en-us/download/details.aspx?id=43717
- a) Configure “Management Service” as follows: (Windows Server version)


-
- Configure “Management Service” as follows: (Windows non- Server version)
In Non-server versions of windows, the “Web Deployment Agent Service” should run in background for web deploy.

- Configure “Management Service Delegation” as follows:


Log in to the Azure portal, open the VM and select the “Networking” section & add following two inbound port rule in firewall entries:
- http - Port 80
- WebDeploy - Port 8172

- To use the in-built web publishing wizard in Visual Studio, the virtual machine must be configured with a DNS name. from the Azure portal, navigate to the “Overview” page of your virtual machine, under “DNS name”, click “Configure”, provide a globally unique DNS name. (A green tick appears when the name is validated.) & click Save to save the configuration:

- Follow the following article to setup publish profiles in Visual Studio projects:
https://github.com/aspnet/Tooling/blob/AspNetVMs/docs/publish-web-app-from-visual-studio.md