getInsights

Use this data source to access information about an existing Application Insights component.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.appinsights.AppinsightsFunctions;
import com.pulumi.azure.appinsights.inputs.GetInsightsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var example = AppinsightsFunctions.getInsights(GetInsightsArgs.builder()
.name("production")
.resourceGroupName("networking")
.build());
ctx.export("applicationInsightsInstrumentationKey", example.applyValue(getInsightsResult -> getInsightsResult.instrumentationKey()));
}
}

Return

A collection of values returned by getInsights.

Parameters

argument

A collection of arguments for invoking getInsights.


suspend fun getInsights(name: String, resourceGroupName: String): GetInsightsResult

Return

A collection of values returned by getInsights.

See also

Parameters

name

Specifies the name of the Application Insights component.

resourceGroupName

Specifies the name of the resource group the Application Insights component is located in.


suspend fun getInsights(argument: suspend GetInsightsPlainArgsBuilder.() -> Unit): GetInsightsResult

Return

A collection of values returned by getInsights.

See also

Parameters

argument

Builder for com.pulumi.azure.appinsights.kotlin.inputs.GetInsightsPlainArgs.