Share via


Preparing for Deploying Microsoft Dynamics NAV on Microsoft Azure

You must perform the following prerequisites before you deploy Dynamics NAV on Microsoft Azure virtual machines:

Setting Up the Azure Subscription

Perform the following tasks to create an Azure subscription and prepare the subscription for deploying Dynamics NAV. You only have to perform these tasks one time.

Task Description
Sign up for a Microsoft account. You use a Microsoft account to sign in to the Azure management portal.

For more information, see How to: Sign Up for a Microsoft Account.
Sign up for an Azure subscription. The Azure subscription gives you access to the Azure management portal.

For more information, see How to: Sign Up for a Microsoft Azure Subscription.
Create an Azure storage account in the data center where you want to add your virtual machines. An Azure storage account provides access to the Azure Blob, Table, and Queue services in a geographic region. To create a storage account, you use the Azure management portal. For more information, see How to Create a Storage Account. Tip: Make a note of the name that you use for the storage account because you will use it when you deploy Dynamics NAV.
Prepare an Azure image for Dynamics NAV. You will create Azure virtual machines for Dynamics NAV deployment based on an Azure image.

You can use an image from the Azure Image Gallery, or create your own image. If you use an image from the Azure Image, then no action is needed for this prerequisite.

For more information, see Preparing a Microsoft Azure Virtual Machine Image for Microsoft Dynamics NAV.

Preparing the Provisioning Computer

Perform the following tasks on the computer that you will use to create the Azure virtual machines and deploy Dynamics NAV. You will use this computer to run the Azure provisioning scripts for Dynamics NAV. You only have to perform these tasks one time.

Task Description
Install Windows PowerShell 3.0. By default, Windows 8 and Windows Server 2012 include Windows PowerShell 3.0 and its prerequisites. If Windows PowerShell 3.0 is not installed, then you can download from Installing Windows PowerShell.
Install the Windows PowerShell Integrated Scripting Environment (ISE). This is an optional requirement. Windows PowerShell Integrated Scripting Environment (ISE) enables you to run commands, and write and debug scripts in a single graphical user interface. You can use Windows PowerShell ISE to run the sample scripts that are available with Dynamics NAV.

For more information, see Windows PowerShell 3.0 Integrated Scripting Environment (ISE). Note: This is an optional requirement. However, many of the procedures in this guide use Windows PowerShell ISE because of its ease of use.
Install the Azure PowerShell module. For more information, see How to: Install the Microsoft Azure Cmdlets Module.
Download and import publish settings and subscription information. To configure the connectivity between the provisioning computer and Azure, you download and import the PublishSettings file. For more information, see How to: Download and Import Publish Settings and Subscription Information.
Copy the Microsoft Dynamics NAV Provisioning Tools for Microsoft Azure to the computer. The Microsoft Dynamics NAV Provisioning Tools for Microsoft Azure are included on the Dynamics NAV installation media in the WindowsPowerShellScripts\Cloud folder. Copy the Cloud folder and its contents to a location on the provisioning computer, such as C:\Cloud.

For more information, see How to: Install the Microsoft Dynamics NAV Provisioning Tools for Microsoft Azure.
Obtain a security certificate PFX file and password for client services. This security certificate will be stored at the hosted service level on Azure. The security certificate is used to establish a trusted connection between clients and Dynamics NAV services, such as SOAP and OData. You can use the sample certificate that is provided with Dynamics NAV, or you can obtain your own certificate. If you decide to use the sample certificate, then no action is required for this task.

- The sample certificate is called MyAzure.pfx and is located in the Cloud\HowTo folder.
- For information about how to obtain your own certificate, see Using Certificates to Secure a Remote RoleTailored Client Connection.
Obtain a security certificate PFX file and password for configuring SSL for the Microsoft Dynamics NAV Web client. The example scripts of the provisioning tools configure HTTPS on the Dynamics NAV Web Server to help secure Microsoft Dynamics NAV Web client connections. If you do not have a certificate, the provisioning tools will automatically generate and implement a certificate. In this case, no action is required for this task
Obtain a security certificate PFX file and password for ClickOnce installation of the Microsoft Dynamics NAV Windows client. This requirement is optional. The certificate is used to sign the ClickOnce installation of the Microsoft Dynamics NAV Windows client to indicate to end users that the publisher is verified. You can use the sample certificate that is provided with Dynamics NAV, or you can obtain your own certificate.

- The sample certificate is called ClickOnceSignature.pfx and is located in the Cloud\HowTo folder.
- For more information about certificates, see Using Certificates to Secure a Remote RoleTailored Client Connection.
Install the Microsoft Windows HTTP Services Certificate Configuration Tool. This tool enables administrators to install and configure client certificates. For more information, see Windows HTTP Services Certificate Configuration Tool.
Install the makecert.exe tool (Certificate Creation Tool) for creating an SSL certificate for the Microsoft Dynamics NAV Web client deployment. The makecert.exe generates certificates for testing. It is available with Microsoft Visual Studio and Microsoft Windows SDK. For more information, see Certificate Creation Tool (Makecert.exe) in the MSDN Library. Note: The makecert.exe tool is only required if you do not already have an SSL certificate.
Download and install the Manifest Generation and Editing Tool (mage.exe) version 4.0 or later versions. The Manifest Generation and Editing Tool is included with .NET Framework 4 and .NET Framework 4.5, which are part of the Windows SDK for Windows 7, Windows 8, Windows 8.1, and Windows Server 2012.

- By default, Windows 8 and Windows Server 2012 include the Windows SDK, so no action is required.
- For information about how to download and install Windows SDK for Windows 8.1, see the https://go.microsoft.com/fwlink/?LinkID=397438
- For information about how to download and install Windows SDK for Windows 7, see Microsoft Windows SDK for Windows 7 and .NET Framework 4. Note: The installation of Windows SDK can fail on some computers and Windows versions. If this occurs, as a workaround, install the Windows SDK on another computer, and then copy the mage.exe file to the provisioning computer.
Dynamics NAV license. You must have a valid license. A demonstration license (Cronus.flf) is available on the Dynamics NAV installation media (DVD).

Creating a Backup of the Application Database

If you will deploy your own application database instead of the CRONUS International Ltd. demonstration database, then you must create a backup of the database, and store it in a location that can be accessed from the provisioning computer. You must perform this task for each Dynamics NAV application database that you want to deploy on Azure.

For more information, see How to: Export Your Solution to a Database Backup File.

Installing Control Add-ins and Server-Side Files

If the Dynamics NAV application that you are deploying on Azure includes control add-ins or additional files that will run on the Microsoft Dynamics NAV Server, copy these files to a location that can be accessed from the provisioning computer, and then modify the deployment scripts to install the files.

For more information, see How to: Install Control Add-Ins and Support Files for Your Solution

See Also

Planning and Preparing
Deploying Microsoft Dynamics NAV Using the Example Scripts
Deploying and Managing Microsoft Dynamics NAV on Microsoft Azure