Bearbeiten

Freigeben über


Update Lifecycle Services Connection authentication tasks to MSAL in Azure Pipelines

By default, new versions of the Microsoft Azure DevOps tasks for Dynamics 365 support the Microsoft Authentication Library (MSAL) and use it by default for authentication.

Update existing service connections

For existing service connections, the Authentication Endpoint setting must be updated to https://login.microsoftonline.com/organizations. If you're using a national cloud, learn more in National clouds to find your relevant endpoint. The correct authentication endpoint is set by default when you create a new service connection. The setting must be updated only for national clouds.

Dynamics Lifecycle Services API Endpoint – Provide the endpoint. If your Lifecycle Services project is deployed in local geographies, ensure you're using the correct Lifecycle Services API endpoint address. Use the correct endpoint, learn more in Supported geographies and endpoints.

For more information about how to set up a connection, see Create an Lifecycle Services connection in Azure Pipelines.

Add the MSAL.PS install task to a pipeline

[!NOTE] This isn't required anymore with the latest versions of the tasks.

To add the MSAL.PS install task to the build of your YML or Classic pipeline, search the task list for Install MSAL.PS to enable authentication. There are no options or settings for this task. Make sure that this install task is run on every agent before you run any task that requires authentication with Microsoft Dynamics Lifecycle Services,

Note

The MSAL.PS libraries must be installed on every agent that runs tasks that require authentication with Lifecycle Services. If your pipeline consists of multiple stages, each stage might be run on a different agent. Therefore, each stage must ensure that the libraries are installed.

Update existing tasks

To update the existing tasks so that they use the new MSAL authentication, you must update the task versions. For more information about how to update task versions, see Task types & usage. The following table shows the tasks that use authentication. It also shows the earliest version of each task that uses MSAL.

Task name Minimum version that uses MSAL
Dynamics Lifecycle Services Asset Download 1.* or later
Dynamics Lifecycle Services Asset Upload 1.* or later
Dynamics Lifecycle Services Asset Deployment 2.* or later