Share via


AzureMonitorOptions.Credential Property

Definition

Get or sets the value of TokenCredential. If TokenCredential is not set, AAD authentication is disabled and Instrumentation Key from the Connection String will be used.

public Azure.Core.TokenCredential Credential { get; set; }
member this.Credential : Azure.Core.TokenCredential with get, set
Public Property Credential As TokenCredential

Property Value

Remarks

https://learn.microsoft.com/en-us/azure/azure-monitor/app/sdk-connection-string?tabs=net#is-the-connection-string-a-secret.

Applies to