
Introduction
DevOps has evolved through the collaboration of two important aspects of Software Development, Development and Operations, ensuring that what is developed by the team is deployed to the respective servers with minimal or no issues in an automated manner.
Problem Implementation
I had been working as deployment lead for a project wherein we has two different Office 365 tenants with almost 50+ instances of Dynamics CRM and 4+ Teams working over different aspects of the project including:
- Bug Fixes
- Sprint Development
- UAT Issue resolution
- Solution Upgrade
In this type of setup, as a deployment lead it was next to impossible to manage each and every deployment manually, given that the responsibilities included:
- Creating a patch for team
- Adding the components post validation with work items
- Exporting the solution and importing manually to different environments
- And multiple validation activities to ensure 100% success
The above process was error prone due to multiple reasons and a one was no proper tracking of code which had been pushed by developers in multiple releases.
After multiple discussions and brain storming it was decided to implement DevOps to automate this entire process.
Pre-requisite
- Account of Azure DevOps
- Visual Studio
- Basic knowledge of Dynamics CRM
- Solution Packager
- PowerShell scripts
Implementation Steps
- Create a class library project in Visual studio, will be using the same for Plugins in Dynamics CRM
- Adding an Existing Website – CRM Solutions folder, which will be holding the different solutions exported out from Dynamics CRM
- Created a sub folder – Scripts to hold and perform actions over the exported solutions

- Along the same lines create another folder which will be used for holding – Web Resources from Dynamics CRM
- And another Class Library project for Custom Workflow activities if you have any







sumit desaiPosted Jan 5, 2022, 12:00 PM
Thanks a lot, Sumit to share this information. However, is it possible to achieve patch deployment in a similar way? if so, please suggest
Zeph Thabiso LekotaPosted Jan 18, 2021, 10:32 AM
Hello Sumit, thanks for sharing this article. I have a fairly limited experience with DevOps and I want to build a model for CI & CD for on premise CRM implementation. I have a question below that I need your clarity on. There is a Power DevOps extension available to achieve the same objective with PowerShell script on the agent jobs, is there a specific reason why you chose to use the PowerShell scripts if you have an option of leveraging from the existing tools in the devops market? https://marketplace.visualstudio.com/items?itemName=WaelHamze.xrm-ci-framework-build-tasks
Aniket MalvankarPosted Nov 18, 2020, 9:00 PM
Can you add power shell scrip for export
dotnet developerPosted Oct 11, 2020, 3:01 PM
How did you handle conflicts, e.g. a bug fix on form to add a new field and a feature development to change couple of fields and js, business rule on same form.