<PackageReference Include="Azure.Core" Version="1.53.0" />

Azure.Identity.AzurePipelinesCredential

Credential which authenticates using an Azure Pipelines service connection. For usage instructions, see Authenticating in Azure Pipelines with service connections.

Protected constructor for mocking.

public AzurePipelinesCredential(string tenantId, string clientId, string serviceConnectionId, string systemAccessToken, AzurePipelinesCredentialOptions options = null)

Creates a new instance of the AzurePipelinesCredential.