SpringCloudApplicationInsightsApplicationPerformanceMonitoringArgs

data class SpringCloudApplicationInsightsApplicationPerformanceMonitoringArgs(val connectionString: Output<String>? = null, val globallyEnabled: Output<Boolean>? = null, val name: Output<String>? = null, val roleInstance: Output<String>? = null, val roleName: Output<String>? = null, val samplingPercentage: Output<Int>? = null, val samplingRequestsPerSecond: Output<Int>? = null, val springCloudServiceId: Output<String>? = null) : ConvertibleToJava<SpringCloudApplicationInsightsApplicationPerformanceMonitoringArgs>

Note: This resource is only applicable for Spring Cloud Service enterprise tier Manages a Spring Cloud Application Performance Monitoring resource for Application Insights. !>Note: Azure Spring Apps is now deprecated and will be retired on 2028-05-31 - as such the azure.appplatform.SpringCloudApplicationInsightsApplicationPerformanceMonitoring resource is deprecated and will be removed in a future major version of the AzureRM Provider. See https://aka.ms/asaretirement for more information.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = new azure.core.ResourceGroup("example", {
name: "example",
location: "West Europe",
});
const exampleInsights = new azure.appinsights.Insights("example", {
name: "example",
location: example.location,
resourceGroupName: example.name,
applicationType: "web",
});
const exampleSpringCloudService = new azure.appplatform.SpringCloudService("example", {
name: "example",
location: example.location,
resourceGroupName: example.name,
skuName: "E0",
});
const exampleSpringCloudApplicationInsightsApplicationPerformanceMonitoring = new azure.appplatform.SpringCloudApplicationInsightsApplicationPerformanceMonitoring("example", {
name: "example",
springCloudServiceId: exampleSpringCloudService.id,
connectionString: exampleInsights.instrumentationKey,
globallyEnabled: true,
roleName: "test-role",
roleInstance: "test-instance",
samplingPercentage: 50,
samplingRequestsPerSecond: 10,
});
import pulumi
import pulumi_azure as azure
example = azure.core.ResourceGroup("example",
name="example",
location="West Europe")
example_insights = azure.appinsights.Insights("example",
name="example",
location=example.location,
resource_group_name=example.name,
application_type="web")
example_spring_cloud_service = azure.appplatform.SpringCloudService("example",
name="example",
location=example.location,
resource_group_name=example.name,
sku_name="E0")
example_spring_cloud_application_insights_application_performance_monitoring = azure.appplatform.SpringCloudApplicationInsightsApplicationPerformanceMonitoring("example",
name="example",
spring_cloud_service_id=example_spring_cloud_service.id,
connection_string=example_insights.instrumentation_key,
globally_enabled=True,
role_name="test-role",
role_instance="test-instance",
sampling_percentage=50,
sampling_requests_per_second=10)
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = new Azure.Core.ResourceGroup("example", new()
{
Name = "example",
Location = "West Europe",
});
var exampleInsights = new Azure.AppInsights.Insights("example", new()
{
Name = "example",
Location = example.Location,
ResourceGroupName = example.Name,
ApplicationType = "web",
});
var exampleSpringCloudService = new Azure.AppPlatform.SpringCloudService("example", new()
{
Name = "example",
Location = example.Location,
ResourceGroupName = example.Name,
SkuName = "E0",
});
var exampleSpringCloudApplicationInsightsApplicationPerformanceMonitoring = new Azure.AppPlatform.SpringCloudApplicationInsightsApplicationPerformanceMonitoring("example", new()
{
Name = "example",
SpringCloudServiceId = exampleSpringCloudService.Id,
ConnectionString = exampleInsights.InstrumentationKey,
GloballyEnabled = true,
RoleName = "test-role",
RoleInstance = "test-instance",
SamplingPercentage = 50,
SamplingRequestsPerSecond = 10,
});
});
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appinsights"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appplatform"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
Name: pulumi.String("example"),
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
exampleInsights, err := appinsights.NewInsights(ctx, "example", &appinsights.InsightsArgs{
Name: pulumi.String("example"),
Location: example.Location,
ResourceGroupName: example.Name,
ApplicationType: pulumi.String("web"),
})
if err != nil {
return err
}
exampleSpringCloudService, err := appplatform.NewSpringCloudService(ctx, "example", &appplatform.SpringCloudServiceArgs{
Name: pulumi.String("example"),
Location: example.Location,
ResourceGroupName: example.Name,
SkuName: pulumi.String("E0"),
})
if err != nil {
return err
}
_, err = appplatform.NewSpringCloudApplicationInsightsApplicationPerformanceMonitoring(ctx, "example", &appplatform.SpringCloudApplicationInsightsApplicationPerformanceMonitoringArgs{
Name: pulumi.String("example"),
SpringCloudServiceId: exampleSpringCloudService.ID(),
ConnectionString: exampleInsights.InstrumentationKey,
GloballyEnabled: pulumi.Bool(true),
RoleName: pulumi.String("test-role"),
RoleInstance: pulumi.String("test-instance"),
SamplingPercentage: pulumi.Int(50),
SamplingRequestsPerSecond: pulumi.Int(10),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.appinsights.Insights;
import com.pulumi.azure.appinsights.InsightsArgs;
import com.pulumi.azure.appplatform.SpringCloudService;
import com.pulumi.azure.appplatform.SpringCloudServiceArgs;
import com.pulumi.azure.appplatform.SpringCloudApplicationInsightsApplicationPerformanceMonitoring;
import com.pulumi.azure.appplatform.SpringCloudApplicationInsightsApplicationPerformanceMonitoringArgs;
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) {
var example = new ResourceGroup("example", ResourceGroupArgs.builder()
.name("example")
.location("West Europe")
.build());
var exampleInsights = new Insights("exampleInsights", InsightsArgs.builder()
.name("example")
.location(example.location())
.resourceGroupName(example.name())
.applicationType("web")
.build());
var exampleSpringCloudService = new SpringCloudService("exampleSpringCloudService", SpringCloudServiceArgs.builder()
.name("example")
.location(example.location())
.resourceGroupName(example.name())
.skuName("E0")
.build());
var exampleSpringCloudApplicationInsightsApplicationPerformanceMonitoring = new SpringCloudApplicationInsightsApplicationPerformanceMonitoring("exampleSpringCloudApplicationInsightsApplicationPerformanceMonitoring", SpringCloudApplicationInsightsApplicationPerformanceMonitoringArgs.builder()
.name("example")
.springCloudServiceId(exampleSpringCloudService.id())
.connectionString(exampleInsights.instrumentationKey())
.globallyEnabled(true)
.roleName("test-role")
.roleInstance("test-instance")
.samplingPercentage(50)
.samplingRequestsPerSecond(10)
.build());
}
}
resources:
example:
type: azure:core:ResourceGroup
properties:
name: example
location: West Europe
exampleInsights:
type: azure:appinsights:Insights
name: example
properties:
name: example
location: ${example.location}
resourceGroupName: ${example.name}
applicationType: web
exampleSpringCloudService:
type: azure:appplatform:SpringCloudService
name: example
properties:
name: example
location: ${example.location}
resourceGroupName: ${example.name}
skuName: E0
exampleSpringCloudApplicationInsightsApplicationPerformanceMonitoring:
type: azure:appplatform:SpringCloudApplicationInsightsApplicationPerformanceMonitoring
name: example
properties:
name: example
springCloudServiceId: ${exampleSpringCloudService.id}
connectionString: ${exampleInsights.instrumentationKey}
globallyEnabled: true
roleName: test-role
roleInstance: test-instance
samplingPercentage: 50
samplingRequestsPerSecond: 10

API Providers

This resource uses the following Azure API Providers:

  • Microsoft.AppPlatform: 2024-01-01-preview

Import

Spring Cloud Application Performance Monitoring resource for Application Insights can be imported using the resource id, e.g.

$ pulumi import azure:appplatform/springCloudApplicationInsightsApplicationPerformanceMonitoring:SpringCloudApplicationInsightsApplicationPerformanceMonitoring example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.AppPlatform/spring/service1/apms/apm1

Constructors

constructor(connectionString: Output<String>? = null, globallyEnabled: Output<Boolean>? = null, name: Output<String>? = null, roleInstance: Output<String>? = null, roleName: Output<String>? = null, samplingPercentage: Output<Int>? = null, samplingRequestsPerSecond: Output<Int>? = null, springCloudServiceId: Output<String>? = null)

Properties

Link copied to clipboard
val connectionString: Output<String>? = null

The instrumentation key used to push data to Application Insights.

Link copied to clipboard
val globallyEnabled: Output<Boolean>? = null

Specifies whether the Spring Cloud Application Performance Monitoring resource for Application Insights is enabled globally. Defaults to false.

Link copied to clipboard
val name: Output<String>? = null

The name which should be used for this Spring Cloud Application Performance Monitoring resource for Application Insights. Changing this forces a new resource to be created.

Link copied to clipboard
val roleInstance: Output<String>? = null

Specifies the cloud role instance.

Link copied to clipboard
val roleName: Output<String>? = null

Specifies the cloud role name used to label the component on the application map.

Link copied to clipboard
val samplingPercentage: Output<Int>? = null

Specifies the percentage for fixed-percentage sampling.

Link copied to clipboard
val samplingRequestsPerSecond: Output<Int>? = null

Specifies the number of requests per second for the rate-limited sampling.

Link copied to clipboard
val springCloudServiceId: Output<String>? = null

The ID of the Spring Cloud Service. Changing this forces a new resource to be created.

Functions

Link copied to clipboard
open override fun toJava(): SpringCloudApplicationInsightsApplicationPerformanceMonitoringArgs