共用方式為


ProvisioningDeploymentOptions.DefaultCredentialProvider Property

Definition

Gets or sets a factory function to create new instances of TokenCredential to use when DefaultArmCredential or DefaultClientCredential are not provided. It defaults to returning new DefaultAzureCredential instances.

public Func<Azure.Core.TokenCredential> DefaultCredentialProvider { get; set; }
member this.DefaultCredentialProvider : Func<Azure.Core.TokenCredential> with get, set
Public Property DefaultCredentialProvider As Func(Of TokenCredential)

Property Value

Remarks

Check out DefaultAzureCredential and the Azure.Identity library for more information on getting started with TokenCredential.

Applies to