Dynamics NAV 2013 R2 on Azure – Doing it Manually (step by step)

If at all you do not have an MSDN subscription and you think using PowerShell scripts to host NAV on Azure  is cumbersome, there is a third way: Doing it manually!

In this blog, I’m going to explain how to host NAV on Azure manually step by step.

Step 1 : Sign-up for Windows Azure Subscription

  • Go to http://windows.azure.com and sign-in using your Live ID (Hotmail, outlook, live etc..). If you do not have a Live ID, sign-up for one
  • Click on Sign up now
  • Choose to buy an Azure subscription (Buy Now) or click on Free trial (30 days)
  • Sign up for Azure subscription by filling up the form, verifying your mobile & credit card information etc..

capture11

 

  • Once the Sign-up process is over, it opens your Azure Management Portal with one item called Default Directory

Step 2: Create a Virtual Machine

  • In your Azure management portal, on the left hand side, select Virtual machines (VM) tab and Click on the + New at the bottom to create a new VM. Enter a unique DNS Name (Your VM name ex: navonazure01), Admin user name and password ( which will be used to login to the VM), Region of the VM and click on Create a Virtual Machine.

Creating Virtual Machine from Azure Management Portal

  • After few minutes, you’ll see 3 new items created in your Azure Management Portal. (Click on All Items tab on the left hand side to see all the items.)
  1. Virtual Machine
  2. Cloud Service
  3. Storage Account

Step 3: Login to Virtual Machine

  • In your Azure management portal, under Virtual Machines Tab, select your newly created VM and click on connect at the bottom. This, prompts you to open or save an rdp file.
  • Click on open and connect using remote desktop connection. use the username and password specified while creating the VM in previous step.
  • You should now be able to successfully login to the VM.

Step 4: Download and Install NAV 2013 R2 in the VM

  • Download Microsoft Dynamics NAV 2013 R2 (from PartnerSource for example) install dump.
  • Install NAV 2013 r2 on the VM with components shown in the below image. (you might encounter ocsetup error! watch this video to resolve it.)

Capture3

  • Default parameters for installation (few important parameters are highlighted. You can change them if you want to!):

Untitled5

  •  Installation in process:

Capture6

  •  Once the installation completes, you have successfully installed NAV 2013 r2 on single Azure VM.

 Step 5: Test the installation within the VM

  • Within the VM, check for NAV windows client, development environment, NAV 2013 R2 Administration etc..

Capture8

 

  • Since we have installed web server components as well, within the VM, we should be able to see a web site created under IIS (Internet Information Services) sites and we should be able to open the NAV web client using https://localhost:8080/Dynamicsnav71/webclient [https://localhost:port/servicename/webclient] (the port is 8080 by default when installed in this way. If you’ve used another port for web server while installing, use that port number)

 

Capture9

 Step 6: Access NAV Web Client from outside (Over the internet)

Untitled10

  • click on ADD at the bottom –> Add a stand-alone endpoint –> Next
  • Enter parameters as shown in the below image and finish. (the port is 8080 by default when installed in this way. If you’ve used another port for web server while installing, use that port number)

Capture12

After Step 6, you should be able to access NAV web client from anywhere (Any computer connected to the internet)  using the link https://VMname.cloudapp.net:8080/Servicename/Webclient

  • VMname: Virtual machine name which you gave in Step 2
  • Servicename: DynamicsNAV71 by default

When prompted for username and password, enter the VM user name and password (created in step 2)

===========================

Thanks for reading and I hope you enjoy NAV on Azure.

In my following blog posts, I will explain how we can make the connection to Azure VM more secure for web client, Different user authentications and using windows client to access NAV on Azure using ClickOnce installation.

Comments

  • Anonymous
    October 02, 2014
    Hi there, any chance you can also advise on how to run the Windows Client from a machine across the internet? I was able to create the VM and setup the NAV server and test in internally. I configured web services and tested them from outside azure successfully as well, I just can't get the RTC client to connect. Thanks!

  • Anonymous
    October 10, 2014
    I am currently stick with this too. Web client runs fine over the internet. With OneClick Install I also can download the Windows Cliënt but when it is starting it cannot find the NAV Server. I checked ports, firewall rules andere the endpoints defined in Azure. And the NAV Server specified contains the FQDN and portnumber used of course. NTLM authentication is enabled. No certificaten had been used.Authentication type is "Windows".

  • Anonymous
    October 12, 2014
    Had to chance authentication to NavUserPassword and needed tot use a (self signed) certificate that the user needs to install as 'trusted person'. No problem because not a production system.

  • Anonymous
    October 27, 2014
    Yes. Authentication to NavUserPassword with certificates to secure the client server communication and ClickOnce. Following link has more details: msdn.microsoft.com/.../hh997056(v=nav.80).aspx  

  • Anonymous
    January 04, 2015
    Hi, I configured NAV to use NAV username and password. Now, I do not have permissions to create queries or design code units in the development environment. Any idea why this would happen? I tried setting up an SQL login with the same name as the Nav username, but this still does not work. Anytime I try to save a new query, it tells me I do not have permission. If you can help me out with this problem, I would be very grateful. Thank you, PJK