Azure DevOps tasks for Microsoft: Azure DevOps Pipelines is a cloud service that you can use to automatically build, test and deploy your code to (m)any…
Azure DevOps Pipelines is a cloud service that you can use to automatically build, test and deploy your code to (m)any environments. Since Apr 2019 you can use new Azure DevOps tasks for Microsoft Dynamics 365 to upload and deploy your application deployable package to LCS environments. This blog describes how to set up Azure DevOps to build and deploy code for Microsoft Dynamics 365 to LCS environment. Prerequisites There are a few things that must be in place before you can start. Configure your LCS project to link with Azure DevOps (Visual Studio Team Services) https://docs.microsoft.com/en-us/dynamics365/unified-operations/dev-itpro/lifecycle-services/support-experience Install the Dynamics 365 Unified Operations Tools into your Azure DevOps from Visual Studio Marketplace https://marketplace.visualstudio.com/items?itemName=Dyn365FinOps.dynamics365-finops-tools Have access to Azure AAD administration for your organization with enough permissions to register a new application https://docs.microsoft.com/en-us/azure/active-directory/develop/quickstart-register-app Have a user account with username and password and enough permissions in your LCS project. It won’t work with a user that has the multi-factor authentication enabled. Enable the build system To enable the build system, you will need a dedicated build agent and a build agent pool for your LCS project. Detailed info how to set up build and test environment can be found here https://docs.microsoft.com/en-us/dynamics365/unified-operations/dev-itpro/perf-test/continuous-build-test-automation Build Agent Pool Setup An agent pool organizes your build agents into a logical collection. The agent pool can be assigned to one or more Azure DevOps Pipelines across your organization. For our purpose, we consider having at minimum one agent pool for LCS project. Find more about agent pools here https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/pools-queues?view=azure-devops To create a new Agent Pool, go to