Publishing a web API to Windows virtual machine on Azure
In this section, we will deploy the published PacktContacts
web API to the virtual machine created on Windows Azure. We will be creating a Windows Server 2012 R2 Data Center as the virtual machine.
An Azure free trial account is sufficient. Go through the following steps to deploy the PacktContacts
web API:
- To create an Azure virtual machine, follow the steps mentioned at https://docs.microsoft.com/en-us/azure/virtual-machines/virtual-machines-windows-hero-tutorial to create a Windows Server 2012 R2 Datacenter.
- After creating the VM, establish a remote desktop connection to deploy the application.
- As it is a Windows server, we will be deploying the
PacktContacts
web API on IIS on this VM. Since it's a newly created machine, IIS won't be configured; to configure it, read through https://docs.microsoft.com/en-us/azure/virtual-machines/virtual-machines-windows-hero-role?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json. - After IIS is configured...