In this blog i am going to explain the step by step process to create release pipeline from artifacts sources and deploy changes to target environment

Create Azure DevOps Pipelines with Application ID and Client Secret

The first step is to register an App in your Azure’s services 

Go to the Azure Portal https://portal.azure.com

Search for App Registration, click New Registration

Provide the name, keep other fields with default value and click Register

Once the App is created, go to API Permissions, click Add a Permission>Select Dynamics CRM>Add Permission >Grant Admin Consent for <tenant>

Pipeline

 Go to Certificates and secrets tab from the left-hand menu and click on + New client secret button.look for client secret value Copy the value into a notepad as this will be needed later and you won’t be able to get it once navigate away from this page.

Come back to overview, and copy the Application (client) ID and Directory (tenant) ID in the same notepad. You will need these 3 values while creating service connection

Next step is to give Security role to App Users.

Go to https://admin.powerplatform.microsoft.com/ and select environments and then select our enviroment and then click on settings icon and then click on Users & Permissions and choose application users and click +New app user and add app and select Bussiness unit and then edit the security roles and add the system administrar role and then click on Create.Repeat all the steps above for the destination environment.

Create Service Connection with Application ID and Client Secret

Go to your Azure DevOps Project, click Project Settings.
Under Pipelines, click Service Connections >New Service Connection>Select Power Platform
Select Authentication method as Application ID and client secret
Go to make.powerapps.com> Select your Source environment(i.e.crmonce) >Go to Settings>Session details>copy the Instance url and paste it under Server Url

Paste Tenant Id, Application Id and Client Secret as saved earlier
Save the Service Connection with the name “Test”

Repeat all the steps above for the destination environment (i.e.Future Crmonce)

Create Release Pipeline

Visit your Azure DevOps team, From Left navigation, click Releases >New Release Pipeline >Start with Empty Job

 Add the Artifact created in the Build pipeline

Select your project and build pipeline

Under Stages>Stage 1>Click Job

Add the task Power Platform Tool installer

Add the task Power Platform Import Solution

 

Service Connection – Select the service connection you created for Prod (i.e.Future crmonce)

Solution Input File – Select clicking 3 dots, select the managed zip file for Prod

Save the pipeline and create a Release and deploy a Release pipeline

 

Check the Solution has been deployed properly to Production (i.e.Future crmonce)

Reference Video :-

For any help or queries contact us on info@crmonce.com or +91 9014146800

We have started a new online retail store    Please Visit.