How to: Install Control Add-Ins and Support Files for Your Solution
If the Dynamics NAV application that you are deploying on Microsoft Azure includes control add-ins or additional files that will run on the Microsoft Dynamics NAV Server, then you must first install these files to the Azure virtual machine. To accomplish this, you customize the HowTo-UploadFilesToVM.ps1 script that is available with the Microsoft Dynamics NAV Provisioning Tools for Microsoft Azure. If you are using the example end-to-end scripts Example-1VM and Example-2VM to deploy Dynamics NAV, perform the following procedure before you run the scripts.
To install control add-ins to the Azure virtual machine
Place the control add-in assembly (.dll) or support files on your provisioning computer.
Open the HowTo-UploadFilesToVM.ps1 script for editing.
The script is located in the Cloud\NAVRemoteAdministration folder of the Microsoft Dynamics NAV Provisioning Tools for Microsoft Azure.
Locate the following command:
# Copy-FileToRemoteMachine -SourceFile 'C:\MyAddin.dll' -DestinationFile 'navnow_install\Service\Add-ins\MyAddin\MyAddin.dll' -Session $psSession
Do the following:
Remove the comment character
Change the value of C:\MyAddin.dll to the path and name of the control add-in or support file that you want to deploy on the Azure virtual machine.
Change the value of MyAddin\MyAddin.dll to the folder and name of the control add-in on the Azure virtual machine.
The C:\Program Files\Microsoft Dynamics NAV\110\Service\Add-ins\ folder is the default folder for control add-ins on the virtual machine that is running Microsoft Dynamics NAV Server.
Add the command for each additional file that you want to upload.
Save the HowTo-UploadFilesToVM.ps1 script.
Preparing for Deploying Microsoft Dynamics NAV on Microsoft Azure
Deploying Microsoft Dynamics NAV Using the Example Scripts
Deploying and Managing Microsoft Dynamics NAV on Microsoft Azure
Extending Microsoft Dynamics NAV Using Control Add-ins