Azure DevOps tasks for Microsoft Dynamics

In the previous part, we looked on the Azure DevOps build pipeline and how it can be used to build a software deployable package (Part 1). In this part, I…

In the previous part, we looked on the Azure DevOps build pipeline and how it can be used to build a software deployable package ( Part 1 ). In this part, I will discuss Azure DevOps tasks for the release pipeline that can be used to upload the software deployable package to a project’s asset library in LCS and to deploy the asset into your LCS environment. Before we start, please make sure that you have done all the prerequisites discussed in the first part. You can find more about Azure DevOps tasks for LCS here https://community.dynamics.com/365/financeandoperations/b/newdynamicsax/posts/first-azure-devops-task-released https://community.dynamics.com/365/financeandoperations/b/newdynamicsax/posts/azure-devops-task-to-deploy-code Enable the release system To enable the release system, a new application registration for Azure DevOps must be created in your organization’s Azure Active Directory. This will allow your Azure DevOps to connect to the LCS environment. Detailed information about registering application in Microsoft AAD can be found here https://docs.microsoft.com/en-us/azure/active-directory/develop/quickstart-register-app You will also need to grant admin consent for users in your organization’s directory. https://docs.microsoft.com/en-us/azure/active-directory/manage-apps/configure-user-consent#grant-admin-consent-when-registering-an-app-in-the-azure-portal Go to the Application Registrations in your organization’s Azure Active Directory and click on New registration button. Provide a name for your application. Select supported account types and provide a redirect URI. The selected application type must be Public client (mobile & desktop). For redirect URI, you can use any value. Now, you must add permission to allow your application to start using Dynamics Lifecycle services. Go to Manage -> API permissions and click on Add a permission button. Then search for Dynamics Lifecycle services. Grant permission for your application to use this API. An