Microsoft Dynamics365 Finance & Operations ALM Tools
This repo contains Powershell scripts and documentation to setup automated releases of Microsoft Dynamics365 Finance & Operations Enterprise Edition ERP system using Release capabilities in VSTS.
This provides open examples on how we can leverage VSTS Release Management capabilities in our Implementations or DevOps practices. Continuous Delivery is a critical component to providing a stream of value to your end users be they your customers, business partners, or back office employees.
How to setup automated deployments
To use this repo effectively, download the DeploymentScripts folder. Update the DefaultTopologyData.xml with output from your target environment. This can be retrieved manually using AxUpdateInstaller.exe or you can look for recent LCS-powered deployments in your Service drive:\DeployablePackages directory.
Also be advised that this has only been tested on Demo and Standard Acceptance Test topologies. This is not possible for use with your Production instance, and to mark a package as a Release Candidate you must deploy it once from LCS.
These scripts do not replace LCS, it simply helps your development team provide a continuous stream of value to stakeholders until such time as you have a Release Candidate. From there, you must use LCS to push to Production.
Go to your VSTS project where your automated builds are running (note - the builds are setup automatically when you deploy a Build environment topology in LCS).
Attach the release definition to your build artifact. Depending on your branching design, this could be Trunk or some other branch you have created. Next, optionally create a Release from every new artifact.
Visit the Tasks section and update the Agent phase. Ensure that you set the Agent Queue to be the queue you created in the first step. Also, ensure that the Agent.Name property is that of your TEST enviornment as you don't want this to accidentally run on your Build server.
Add a Delete Files task. Feel free to name it as you wish, and select the Source folder you wish to purge. In this example, I'm using D:\Deployment directory as the D:\ drive is often SSD storage.
Add a Download Build Artifacts task. I've set my exammple to download the DeploymentScripts task. (Note - I've added a custom step to upload these scripts from source control to the DeploymentTasks artifact in the Trunk Build definition)