EXPORT AND IMPORT SOLUTION FROM ONE ENVIRONMENT TO ANOTHER USING CONTINUOUS INTEGRATION AND DEPLOYMENT USING VISUAL STUDIO TEAM SERVICES

Export and Import  Solution from  one environment to another using Continuous Integration and Deployment using visual Studio Team Services
Prerequisites:
1.Dynamics crm source and Destination environment.
2.Visual Studio Online Account.
3.Dynamics 365 Build Tools by Wael Hamze(written in powershell scripts to import and export the solution)
Steps to Follow
1.Create a project or repository in VSTS online(now known as Azure Devops).
AzureDevops1
2.Click on the Repos.
AzureDevops2
REPORT THIS AD

3.Click on Initialize.
AzureDevops3
4.Create Build Definition.It will export the Dynamics 365 solution from the Source Environment.
AzureDevops4

AzureDevops5

REPORT THIS AD
REPORT THIS AD

AzureDevops6
5.Create a empty job and click on the + button and add the task according to the order mentioned
azure
Provide CRM Connection String
Azure 2

REPORT THIS AD
REPORT THIS AD


Azure 3

Azure 4
6.Provide solution name to export even you can mention whether you need to export solution as managed or unmanaged. Generally for Best practices the solution should be exported as Managed.
7.Test the Build Defintion whether solution is exported from the source environment  or not.

REPORT THIS AD
REPORT THIS AD

Azure 5

Azure 6

REPORT THIS AD

Azure 7

Azure 8

Azure 9

REPORT THIS AD
REPORT THIS AD


artifacts
Here Description.zip is the solution name which will be exported from source and stored in artifacts ie drop folder
8.Create Release Definition
Here we will need the artifact from the build definition
Release 1

REPORT THIS AD
REPORT THIS AD


Release 2

Release 3

Release 4

REPORT THIS AD
REPORT THIS AD

Release 5.PNG


Release 7.PNG
Release 8.PNG

REPORT THIS AD
REPORT THIS AD

Click Add
Release 9.PNG
Release 10.PNG
Release 11.PNG

REPORT THIS AD
REPORT THIS AD

Release 12.PNG
Click Add
Release 14.PNG
Release 15.PNG

REPORT THIS AD
REPORT THIS AD

Click Ok
Add another Task ie Publish Customization as given below:
Release 16.PNG
Click Save
  1. Test the operation
Go to build and click on queue after build is successful go to release
Release 18.PNG

REPORT THIS AD
REPORT THIS AD

Build will be Unsuccessful because I have not added Ms crm Tool so go to release -> Tasks and add the task at the top as mentioned in the screenshot and save it
Release 19.PNG
Go and do the testing again ie go to build and click on queue
Release 20.PNG
Release 21.png

REPORT THIS AD
REPORT THIS AD

Click on Queue and go to the current build which is in progress
Release 22.png
After Build is Successful as given below go to Release
Release 23.png
Release 24.png
REPORT THIS AD

Click On Blue Icon ie Target Environment
Release 25.png
Release 26.png
Release 27
Release 28.png
Go to the Target Environment
Release 29

Source Solution is imported Successfully into the Target Environment.

Comments

Popular posts from this blog

Workflow Activity Input and Output Parameters and Data Types in MS CRM 2013/15/16

Get Workflow Guid in Javascript using OData query

Convert Plugin to Sandbox mode,