Overview
In Microsoft Dynamics 365 Finance and Operations,
development and customization can be done within development environment and
deployed to UAT / Production environment. In this blog we are going to discuss
how these changes can be deployed to UAT / Production environment
What is a deployable package?
Let’s first define what a development environment package or a deployable package is, before we dive into the deployment process. A deployable package is a collection of customizations and extensions that have been developed in a development environment. This package contains the code, metadata, and configurations that can then deploy to the UAT or Production environment.
Steps for deploying changes using Lifecycle Services
Step 1: Create Deployable package and save it in a
folder.
Before
creating a deployment package, it is recommended to perform a full build of the
required models.
This ensures that all changes and customizations are included in the deployment
package.
In Microsoft Visual Studio, select Extensions >Dynamics 365 >
Build Models > Full Build and select all models. Alternatively,
select only the models that have been modified or customized.
Select the packages that contain your models, and then select
a location in which to create the deployable package.
Step 2: Go to https://lcs.dynamics.com and
enter your credentials
Step 3: Click on your implementation project. Then go
to Asset Library using 3 bars icon as shown in the below screenshot.
Step 4: Go to Software deployable package Tab
in Asset Library. Then add the new package here which we have created from dev
environment.
Step 5: As we can see in below screenshot, we need to give name for uploading our package into Asset Library first. Then the package will be eligible to deploy to UAT or Production.
Step 7: Now go to navbar Maintain and click on Apply updates
Step 8: Provide unique name for you Package. Such as
write package name with date and then select the package uploaded in
asset library and click on Apply
Step 10: After successful deployment we can check the Activity status completed or Rollback. If we get any errors during the deployment, it will be rollback and we need to fix it in development environment. Afterwards the whole process of deployment will repeat.
Step 12: To initiate package deployment on production, navigate to production environment details page and select Maintain>Update Environment, and then select our package and mention the production downtime.
To ensure a successful deployment, it’s important to follow these best practices:
- Always test the deployment in a non-production environment first.
- Include all the required models and packages in the deployable package.
- Properly configure the target environment so that it can meet the requirements of the customizations and extensions.
- Take a backup of the target environment before deploying the package.
- Monitor the deployment progress and resolve any issues that arise during the deployment process.
No comments:
Post a Comment