Class GetInsights
Inheritance
System.Object
GetInsights
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Azure.AppInsights
Assembly: Pulumi.Azure.dll
Syntax
public static class GetInsights
Methods
View SourceInvokeAsync(GetInsightsArgs, InvokeOptions)
Use this data source to access information about an existing Application Insights component.
{{% examples %}}
Example Usage
{{% example %}}
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(Azure.AppInsights.GetInsights.InvokeAsync(new Azure.AppInsights.GetInsightsArgs
{
Name = "production",
ResourceGroupName = "networking",
}));
this.ApplicationInsightsInstrumentationKey = example.Apply(example => example.InstrumentationKey);
}
[Output("applicationInsightsInstrumentationKey")]
public Output<string> ApplicationInsightsInstrumentationKey { get; set; }
}
{{% /example %}} {{% /examples %}}
Declaration
public static Task<GetInsightsResult> InvokeAsync(GetInsightsArgs args, InvokeOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetInsightsArgs | args | |
| InvokeOptions | options |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GetInsightsResult> |