Tuesday, November 20, 2018

Install Application Deployable package on a Development Environment - Dynamics 365 Finance and Operations


Purpose
This post describes how Custom code can be deployed on end user's D365 F&O Development environment using Application Deployable package downloaded from Microsoft Dynamics Lifecycle Services (LCS).


Note: Applying Package on customer place require system downtime. at the time of applying package on customer environment, All relevant services will be stopped, and user will not be able to use your environments. So this activity should be planned accordingly.

An Application deployable package is a package that contains customizations and extensions to your application. you would have to use command line to install an AOT Deployable package on development or demo environment, for the same follow the instructions as given below:

1.    Click on Application Deployable package, this will download the package as a compressed file in the virtual machine (VM).

2.  On the virtual machine (VM), download the zip file for the deployable package. Make sure that the zip file is stored in a non-user folder.

Note: After download the zip file, right-click it, and then select Properties. Then, in the Properties dialog box, on the General tab, select Unblock to unlock the files.

3.    Extract the files.



4.  Run the following command.

       Command:    AXUpdateInstaller.exe devinstall



The devinstall option installs the AOT deployable package on the VM. As of Microsoft Dynamics 365 for Finance and Operations, Enterprise edition with platform update 12, the devinstall option doesn't require that you should be an administrator on the VM.

Note: This command doesn't run database synchronization. So database synchronization must be execute from Microsoft Visual Studio once deployable package is installed.

To know about, how to Create Application Deployable package in Dynamics 365 F&O Click here.
To know about, how to Upload and Release Application Deployable package Click here.


In case if you face any difficulty or having any query or concern, please feel free to reach me at my personal  email-  daxmanish@outlook.com

Monday, November 19, 2018

Create Deployable Package in Development Environment - Dynamics 365 Finance and Operation



This page describes how an Application Deployment package can be created  in Microsoft Dynamics 365 for Finance and Operations using Visual Studio dev tools, which is required to deliver the custom code to End customers .

What is Application Deployable package – A deployable package is generated from application metadata and source code. Deployable package is created in a development or build environment. which can consist one or multiple AOT Packages.  Application Deployable package are used to share developed functionalities (custom code) to end customers.

Create Deployable Package in Development Environment:

1.    Deployable packages can be created using the Visual Studio dev tools, or by the build automation process that are available on build environments. These deployable packages are referred to as Application Deployable Packages or AOT Deployable Packages. here we are going to cover creation of Deployable package using Microsoft Visual Studio dev tools, for this select Dynamics 365 > Deploy > Create Deployment Package 

Select the package/s that contain/s custom code, and then select the location where Deployable package should be created. press the Create button.






     2.    Deployable package is created and saved at mentioned location and ready to be used.


     3.    After a Deployable package is created, sign in to Microsoft Dynamics Lifecycle Services       (LCS), and then in LCS project, click on  Asset Library tile.


4.  Upload the Deployable package in Asset Library that you created using above steps in LCS.  

To get more information on How to Upload and Release Deployable Package in Asset  Library - Click here

In case if you have any query or concern, please feel free to reach me at my personal  email-  daxmanish@outlook.com

Upload and Release Deployable package in Asset library - Dynamics 365 Finance and Operation

Purpose

Once the Package is created (Pls have a look on the previous blog for more information on how to "Create Deployable Package in development environment") now its time Upload and Release Package in Microsoft Dynamics LifeCycle Services (LCS).

Supported environment: All environment are supported except production environment. In case of production environment request should be submitted to Microsoft to apply package.

Important: Regardless of the project type, if you have a build environment, you can only use LCS to apply Binary updates and Data upgrade packages. You can't use LCS to apply an Application Deployable package.

Prerequisite Steps:
·         Make sure that the package which should be applied is valid.  A package must pass validation before it can be applied in an environment by using the following procedures. The status of the package will be updated in the Asset library to indicate whether the package is valid. We require validation to help guarantee that production environments aren't affected by packages that don't meet the guidelines.

There are three types of validations:
o    Basic package format validations
o    Platform version checks
o    Types of packages
   
·         Make sure that the package is applied in a sandbox environment before it's applied in the production environment. 

For an application (AOT) deployable package that results from an X++ hotfix, or from application customizations and extensions, create the deployable package in your development or build environment, and then upload it to the Asset library.

Follow the below steps to upload Deployable package into Microsoft Dynamics LifeCycle services (LCS). 

Sign in LCS and Click the Asset Library as defined in previous part of this blog:

  1. Deployable package can be uploaded in Asset Library using (+) sign in     LCS under  Software Deployable package.


2.    Upload Deployable package file on the clicking of “Add a file” button.


3.    Browse and upload Deployable package file, which was created from Visual studio in earlier steps:


4.    Once package file is uploaded, successful upload will be visible on the screen, now press ‘confirm” button to upload the file in asset library on LCS:


5.    Deployable package is uploaded on LCS but it is not valid as shown below Valid check box is unchecked: so validate the package on the basis of defined validation on the Prerequisite section.


6.    Once validation is successful, click Release candidate. This will mark “Valid” to the package along with other Released details ie. Asset ID, Package Id, Platform version and Platform build etc. 


7.    Once package is released, package will be visible in Shared asset library too, so that package could be imported in other available projects in the LCS as well.


Once the package is uploaded and released, now its time to apply it on End customer development environment:

To get more information on how to Install Application Deployable package on Development Environment. Click here

To get more information on How to Create Application Deploayable package - Click here


In case if you have any query or concern, please feel free to reach me at my personal  email-  daxmanish@outlook.com