Share via


AIProjectTelemetry.GetApplicationInsightsConnectionStringAsync Method

Definition

Gets the Application Insights connection string associated with the Project's Application Insights resource.

public System.Threading.Tasks.Task<string> GetApplicationInsightsConnectionStringAsync();
member this.GetApplicationInsightsConnectionStringAsync : unit -> System.Threading.Tasks.Task<string>
Public Function GetApplicationInsightsConnectionStringAsync () As Task(Of String)

Returns

The Application Insights connection string if the resource was enabled for the Project.

Exceptions

Thrown if an Application Insights connection does not exist for this project.

Thrown if the connection does not use API Key credentials or the API key is missing.

Applies to