ApmArgs

data class ApmArgs(val apmName: Output<String>? = null, val properties: Output<ApmPropertiesArgs>? = null, val resourceGroupName: Output<String>? = null, val serviceName: Output<String>? = null) : ConvertibleToJava<ApmArgs>

APM Resource object Uses Azure REST API version 2024-01-01-preview. In version 2.x of the Azure Native provider, it used API version 2023-05-01-preview. Other available API versions: 2023-05-01-preview, 2023-07-01-preview, 2023-09-01-preview, 2023-11-01-preview, 2023-12-01, 2024-05-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native appplatform [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

Example Usage

Apms_CreateOrUpdate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var apm = new AzureNative.AppPlatform.Apm("apm", new()
{
ApmName = "myappinsights",
Properties = new AzureNative.AppPlatform.Inputs.ApmPropertiesArgs
{
Properties =
{
{ "any-string", "any-string" },
{ "sampling-rate", "12.0" },
},
Secrets =
{
{ "connection-string", "XXXXXXXXXXXXXXXXX=XXXXXXXXXXXXX-XXXXXXXXXXXXXXXXXXX;XXXXXXXXXXXXXXXXX=XXXXXXXXXXXXXXXXXXX" },
},
Type = "ApplicationInsights",
},
ResourceGroupName = "myResourceGroup",
ServiceName = "myservice",
});
});
package main
import (
appplatform "github.com/pulumi/pulumi-azure-native-sdk/appplatform/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := appplatform.NewApm(ctx, "apm", &appplatform.ApmArgs{
ApmName: pulumi.String("myappinsights"),
Properties: &appplatform.ApmPropertiesArgs{
Properties: pulumi.StringMap{
"any-string": pulumi.String("any-string"),
"sampling-rate": pulumi.String("12.0"),
},
Secrets: pulumi.StringMap{
"connection-string": pulumi.String("XXXXXXXXXXXXXXXXX=XXXXXXXXXXXXX-XXXXXXXXXXXXXXXXXXX;XXXXXXXXXXXXXXXXX=XXXXXXXXXXXXXXXXXXX"),
},
Type: pulumi.String("ApplicationInsights"),
},
ResourceGroupName: pulumi.String("myResourceGroup"),
ServiceName: pulumi.String("myservice"),
})
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.azurenative.appplatform.Apm;
import com.pulumi.azurenative.appplatform.ApmArgs;
import com.pulumi.azurenative.appplatform.inputs.ApmPropertiesArgs;
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 apm = new Apm("apm", ApmArgs.builder()
.apmName("myappinsights")
.properties(ApmPropertiesArgs.builder()
.properties(Map.ofEntries(
Map.entry("any-string", "any-string"),
Map.entry("sampling-rate", "12.0")
))
.secrets(Map.of("connection-string", "XXXXXXXXXXXXXXXXX=XXXXXXXXXXXXX-XXXXXXXXXXXXXXXXXXX;XXXXXXXXXXXXXXXXX=XXXXXXXXXXXXXXXXXXX"))
.type("ApplicationInsights")
.build())
.resourceGroupName("myResourceGroup")
.serviceName("myservice")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:appplatform:Apm myappinsights /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apms/{apmName}

Constructors

Link copied to clipboard
constructor(apmName: Output<String>? = null, properties: Output<ApmPropertiesArgs>? = null, resourceGroupName: Output<String>? = null, serviceName: Output<String>? = null)

Properties

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

The name of the APM

Link copied to clipboard
val properties: Output<ApmPropertiesArgs>? = null

Properties of an APM

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

The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

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

The name of the Service resource.

Functions

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