We recommend using Azure Native.
azure.appplatform.SpringCloudElasticApplicationPerformanceMonitoring
Explore with Pulumi AI
NOTE: This resource is only applicable for Spring Cloud Service enterprise tier
Manages a Spring Cloud Application Performance Monitoring resource for Elastic.
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 exampleSpringCloudService = new azure.appplatform.SpringCloudService("example", {
name: "example",
location: example.location,
resourceGroupName: example.name,
skuName: "E0",
});
const exampleSpringCloudElasticApplicationPerformanceMonitoring = new azure.appplatform.SpringCloudElasticApplicationPerformanceMonitoring("example", {
name: "example",
springCloudServiceId: exampleSpringCloudService.id,
globallyEnabled: true,
applicationPackages: [
"org.example",
"org.another.example",
],
serviceName: "example-service-name",
serverUrl: "http://127.0.0.1:8200",
});
import pulumi
import pulumi_azure as azure
example = azure.core.ResourceGroup("example",
name="example",
location="West Europe")
example_spring_cloud_service = azure.appplatform.SpringCloudService("example",
name="example",
location=example.location,
resource_group_name=example.name,
sku_name="E0")
example_spring_cloud_elastic_application_performance_monitoring = azure.appplatform.SpringCloudElasticApplicationPerformanceMonitoring("example",
name="example",
spring_cloud_service_id=example_spring_cloud_service.id,
globally_enabled=True,
application_packages=[
"org.example",
"org.another.example",
],
service_name="example-service-name",
server_url="http://127.0.0.1:8200")
package main
import (
"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
}
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.NewSpringCloudElasticApplicationPerformanceMonitoring(ctx, "example", &appplatform.SpringCloudElasticApplicationPerformanceMonitoringArgs{
Name: pulumi.String("example"),
SpringCloudServiceId: exampleSpringCloudService.ID(),
GloballyEnabled: pulumi.Bool(true),
ApplicationPackages: pulumi.StringArray{
pulumi.String("org.example"),
pulumi.String("org.another.example"),
},
ServiceName: pulumi.String("example-service-name"),
ServerUrl: pulumi.String("http://127.0.0.1:8200"),
})
if err != nil {
return err
}
return nil
})
}
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 exampleSpringCloudService = new Azure.AppPlatform.SpringCloudService("example", new()
{
Name = "example",
Location = example.Location,
ResourceGroupName = example.Name,
SkuName = "E0",
});
var exampleSpringCloudElasticApplicationPerformanceMonitoring = new Azure.AppPlatform.SpringCloudElasticApplicationPerformanceMonitoring("example", new()
{
Name = "example",
SpringCloudServiceId = exampleSpringCloudService.Id,
GloballyEnabled = true,
ApplicationPackages = new[]
{
"org.example",
"org.another.example",
},
ServiceName = "example-service-name",
ServerUrl = "http://127.0.0.1:8200",
});
});
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.appplatform.SpringCloudService;
import com.pulumi.azure.appplatform.SpringCloudServiceArgs;
import com.pulumi.azure.appplatform.SpringCloudElasticApplicationPerformanceMonitoring;
import com.pulumi.azure.appplatform.SpringCloudElasticApplicationPerformanceMonitoringArgs;
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 exampleSpringCloudService = new SpringCloudService("exampleSpringCloudService", SpringCloudServiceArgs.builder()
.name("example")
.location(example.location())
.resourceGroupName(example.name())
.skuName("E0")
.build());
var exampleSpringCloudElasticApplicationPerformanceMonitoring = new SpringCloudElasticApplicationPerformanceMonitoring("exampleSpringCloudElasticApplicationPerformanceMonitoring", SpringCloudElasticApplicationPerformanceMonitoringArgs.builder()
.name("example")
.springCloudServiceId(exampleSpringCloudService.id())
.globallyEnabled(true)
.applicationPackages(
"org.example",
"org.another.example")
.serviceName("example-service-name")
.serverUrl("http://127.0.0.1:8200")
.build());
}
}
resources:
example:
type: azure:core:ResourceGroup
properties:
name: example
location: West Europe
exampleSpringCloudService:
type: azure:appplatform:SpringCloudService
name: example
properties:
name: example
location: ${example.location}
resourceGroupName: ${example.name}
skuName: E0
exampleSpringCloudElasticApplicationPerformanceMonitoring:
type: azure:appplatform:SpringCloudElasticApplicationPerformanceMonitoring
name: example
properties:
name: example
springCloudServiceId: ${exampleSpringCloudService.id}
globallyEnabled: true
applicationPackages:
- org.example
- org.another.example
serviceName: example-service-name
serverUrl: http://127.0.0.1:8200
Create SpringCloudElasticApplicationPerformanceMonitoring Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SpringCloudElasticApplicationPerformanceMonitoring(name: string, args: SpringCloudElasticApplicationPerformanceMonitoringArgs, opts?: CustomResourceOptions);
@overload
def SpringCloudElasticApplicationPerformanceMonitoring(resource_name: str,
args: SpringCloudElasticApplicationPerformanceMonitoringArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SpringCloudElasticApplicationPerformanceMonitoring(resource_name: str,
opts: Optional[ResourceOptions] = None,
application_packages: Optional[Sequence[str]] = None,
server_url: Optional[str] = None,
service_name: Optional[str] = None,
spring_cloud_service_id: Optional[str] = None,
globally_enabled: Optional[bool] = None,
name: Optional[str] = None)
func NewSpringCloudElasticApplicationPerformanceMonitoring(ctx *Context, name string, args SpringCloudElasticApplicationPerformanceMonitoringArgs, opts ...ResourceOption) (*SpringCloudElasticApplicationPerformanceMonitoring, error)
public SpringCloudElasticApplicationPerformanceMonitoring(string name, SpringCloudElasticApplicationPerformanceMonitoringArgs args, CustomResourceOptions? opts = null)
public SpringCloudElasticApplicationPerformanceMonitoring(String name, SpringCloudElasticApplicationPerformanceMonitoringArgs args)
public SpringCloudElasticApplicationPerformanceMonitoring(String name, SpringCloudElasticApplicationPerformanceMonitoringArgs args, CustomResourceOptions options)
type: azure:appplatform:SpringCloudElasticApplicationPerformanceMonitoring
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args SpringCloudElasticApplicationPerformanceMonitoringArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args SpringCloudElasticApplicationPerformanceMonitoringArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args SpringCloudElasticApplicationPerformanceMonitoringArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SpringCloudElasticApplicationPerformanceMonitoringArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SpringCloudElasticApplicationPerformanceMonitoringArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var springCloudElasticApplicationPerformanceMonitoringResource = new Azure.AppPlatform.SpringCloudElasticApplicationPerformanceMonitoring("springCloudElasticApplicationPerformanceMonitoringResource", new()
{
ApplicationPackages = new[]
{
"string",
},
ServerUrl = "string",
ServiceName = "string",
SpringCloudServiceId = "string",
GloballyEnabled = false,
Name = "string",
});
example, err := appplatform.NewSpringCloudElasticApplicationPerformanceMonitoring(ctx, "springCloudElasticApplicationPerformanceMonitoringResource", &appplatform.SpringCloudElasticApplicationPerformanceMonitoringArgs{
ApplicationPackages: pulumi.StringArray{
pulumi.String("string"),
},
ServerUrl: pulumi.String("string"),
ServiceName: pulumi.String("string"),
SpringCloudServiceId: pulumi.String("string"),
GloballyEnabled: pulumi.Bool(false),
Name: pulumi.String("string"),
})
var springCloudElasticApplicationPerformanceMonitoringResource = new SpringCloudElasticApplicationPerformanceMonitoring("springCloudElasticApplicationPerformanceMonitoringResource", SpringCloudElasticApplicationPerformanceMonitoringArgs.builder()
.applicationPackages("string")
.serverUrl("string")
.serviceName("string")
.springCloudServiceId("string")
.globallyEnabled(false)
.name("string")
.build());
spring_cloud_elastic_application_performance_monitoring_resource = azure.appplatform.SpringCloudElasticApplicationPerformanceMonitoring("springCloudElasticApplicationPerformanceMonitoringResource",
application_packages=["string"],
server_url="string",
service_name="string",
spring_cloud_service_id="string",
globally_enabled=False,
name="string")
const springCloudElasticApplicationPerformanceMonitoringResource = new azure.appplatform.SpringCloudElasticApplicationPerformanceMonitoring("springCloudElasticApplicationPerformanceMonitoringResource", {
applicationPackages: ["string"],
serverUrl: "string",
serviceName: "string",
springCloudServiceId: "string",
globallyEnabled: false,
name: "string",
});
type: azure:appplatform:SpringCloudElasticApplicationPerformanceMonitoring
properties:
applicationPackages:
- string
globallyEnabled: false
name: string
serverUrl: string
serviceName: string
springCloudServiceId: string
SpringCloudElasticApplicationPerformanceMonitoring Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The SpringCloudElasticApplicationPerformanceMonitoring resource accepts the following input properties:
- Application
Packages List<string> - Specifies a list of the packages which should be used to determine whether a stack trace frame is an in-app frame or a library frame. This is a comma separated list of package names.
- Server
Url string - Specifies the server URL. The URL must be fully qualified, including protocol (http or https) and port.
- Service
Name string - Specifies the service name which is used to keep all the errors and transactions of your service together and is the primary filter in the Elastic APM user interface.
- Spring
Cloud stringService Id - The ID of the Spring Cloud Service. Changing this forces a new resource to be created.
- Globally
Enabled bool - Specifies whether the Spring Cloud Application Performance Monitoring resource for Application Insights is enabled globally. Defaults to
false
. - Name string
- The name which should be used for this Spring Cloud Application Performance Monitoring resource for Elastic. Changing this forces a new resource to be created.
- Application
Packages []string - Specifies a list of the packages which should be used to determine whether a stack trace frame is an in-app frame or a library frame. This is a comma separated list of package names.
- Server
Url string - Specifies the server URL. The URL must be fully qualified, including protocol (http or https) and port.
- Service
Name string - Specifies the service name which is used to keep all the errors and transactions of your service together and is the primary filter in the Elastic APM user interface.
- Spring
Cloud stringService Id - The ID of the Spring Cloud Service. Changing this forces a new resource to be created.
- Globally
Enabled bool - Specifies whether the Spring Cloud Application Performance Monitoring resource for Application Insights is enabled globally. Defaults to
false
. - Name string
- The name which should be used for this Spring Cloud Application Performance Monitoring resource for Elastic. Changing this forces a new resource to be created.
- application
Packages List<String> - Specifies a list of the packages which should be used to determine whether a stack trace frame is an in-app frame or a library frame. This is a comma separated list of package names.
- server
Url String - Specifies the server URL. The URL must be fully qualified, including protocol (http or https) and port.
- service
Name String - Specifies the service name which is used to keep all the errors and transactions of your service together and is the primary filter in the Elastic APM user interface.
- spring
Cloud StringService Id - The ID of the Spring Cloud Service. Changing this forces a new resource to be created.
- globally
Enabled Boolean - Specifies whether the Spring Cloud Application Performance Monitoring resource for Application Insights is enabled globally. Defaults to
false
. - name String
- The name which should be used for this Spring Cloud Application Performance Monitoring resource for Elastic. Changing this forces a new resource to be created.
- application
Packages string[] - Specifies a list of the packages which should be used to determine whether a stack trace frame is an in-app frame or a library frame. This is a comma separated list of package names.
- server
Url string - Specifies the server URL. The URL must be fully qualified, including protocol (http or https) and port.
- service
Name string - Specifies the service name which is used to keep all the errors and transactions of your service together and is the primary filter in the Elastic APM user interface.
- spring
Cloud stringService Id - The ID of the Spring Cloud Service. Changing this forces a new resource to be created.
- globally
Enabled boolean - Specifies whether the Spring Cloud Application Performance Monitoring resource for Application Insights is enabled globally. Defaults to
false
. - name string
- The name which should be used for this Spring Cloud Application Performance Monitoring resource for Elastic. Changing this forces a new resource to be created.
- application_
packages Sequence[str] - Specifies a list of the packages which should be used to determine whether a stack trace frame is an in-app frame or a library frame. This is a comma separated list of package names.
- server_
url str - Specifies the server URL. The URL must be fully qualified, including protocol (http or https) and port.
- service_
name str - Specifies the service name which is used to keep all the errors and transactions of your service together and is the primary filter in the Elastic APM user interface.
- spring_
cloud_ strservice_ id - The ID of the Spring Cloud Service. Changing this forces a new resource to be created.
- globally_
enabled bool - Specifies whether the Spring Cloud Application Performance Monitoring resource for Application Insights is enabled globally. Defaults to
false
. - name str
- The name which should be used for this Spring Cloud Application Performance Monitoring resource for Elastic. Changing this forces a new resource to be created.
- application
Packages List<String> - Specifies a list of the packages which should be used to determine whether a stack trace frame is an in-app frame or a library frame. This is a comma separated list of package names.
- server
Url String - Specifies the server URL. The URL must be fully qualified, including protocol (http or https) and port.
- service
Name String - Specifies the service name which is used to keep all the errors and transactions of your service together and is the primary filter in the Elastic APM user interface.
- spring
Cloud StringService Id - The ID of the Spring Cloud Service. Changing this forces a new resource to be created.
- globally
Enabled Boolean - Specifies whether the Spring Cloud Application Performance Monitoring resource for Application Insights is enabled globally. Defaults to
false
. - name String
- The name which should be used for this Spring Cloud Application Performance Monitoring resource for Elastic. Changing this forces a new resource to be created.
Outputs
All input properties are implicitly available as output properties. Additionally, the SpringCloudElasticApplicationPerformanceMonitoring resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing SpringCloudElasticApplicationPerformanceMonitoring Resource
Get an existing SpringCloudElasticApplicationPerformanceMonitoring resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: SpringCloudElasticApplicationPerformanceMonitoringState, opts?: CustomResourceOptions): SpringCloudElasticApplicationPerformanceMonitoring
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
application_packages: Optional[Sequence[str]] = None,
globally_enabled: Optional[bool] = None,
name: Optional[str] = None,
server_url: Optional[str] = None,
service_name: Optional[str] = None,
spring_cloud_service_id: Optional[str] = None) -> SpringCloudElasticApplicationPerformanceMonitoring
func GetSpringCloudElasticApplicationPerformanceMonitoring(ctx *Context, name string, id IDInput, state *SpringCloudElasticApplicationPerformanceMonitoringState, opts ...ResourceOption) (*SpringCloudElasticApplicationPerformanceMonitoring, error)
public static SpringCloudElasticApplicationPerformanceMonitoring Get(string name, Input<string> id, SpringCloudElasticApplicationPerformanceMonitoringState? state, CustomResourceOptions? opts = null)
public static SpringCloudElasticApplicationPerformanceMonitoring get(String name, Output<String> id, SpringCloudElasticApplicationPerformanceMonitoringState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Application
Packages List<string> - Specifies a list of the packages which should be used to determine whether a stack trace frame is an in-app frame or a library frame. This is a comma separated list of package names.
- Globally
Enabled bool - Specifies whether the Spring Cloud Application Performance Monitoring resource for Application Insights is enabled globally. Defaults to
false
. - Name string
- The name which should be used for this Spring Cloud Application Performance Monitoring resource for Elastic. Changing this forces a new resource to be created.
- Server
Url string - Specifies the server URL. The URL must be fully qualified, including protocol (http or https) and port.
- Service
Name string - Specifies the service name which is used to keep all the errors and transactions of your service together and is the primary filter in the Elastic APM user interface.
- Spring
Cloud stringService Id - The ID of the Spring Cloud Service. Changing this forces a new resource to be created.
- Application
Packages []string - Specifies a list of the packages which should be used to determine whether a stack trace frame is an in-app frame or a library frame. This is a comma separated list of package names.
- Globally
Enabled bool - Specifies whether the Spring Cloud Application Performance Monitoring resource for Application Insights is enabled globally. Defaults to
false
. - Name string
- The name which should be used for this Spring Cloud Application Performance Monitoring resource for Elastic. Changing this forces a new resource to be created.
- Server
Url string - Specifies the server URL. The URL must be fully qualified, including protocol (http or https) and port.
- Service
Name string - Specifies the service name which is used to keep all the errors and transactions of your service together and is the primary filter in the Elastic APM user interface.
- Spring
Cloud stringService Id - The ID of the Spring Cloud Service. Changing this forces a new resource to be created.
- application
Packages List<String> - Specifies a list of the packages which should be used to determine whether a stack trace frame is an in-app frame or a library frame. This is a comma separated list of package names.
- globally
Enabled Boolean - Specifies whether the Spring Cloud Application Performance Monitoring resource for Application Insights is enabled globally. Defaults to
false
. - name String
- The name which should be used for this Spring Cloud Application Performance Monitoring resource for Elastic. Changing this forces a new resource to be created.
- server
Url String - Specifies the server URL. The URL must be fully qualified, including protocol (http or https) and port.
- service
Name String - Specifies the service name which is used to keep all the errors and transactions of your service together and is the primary filter in the Elastic APM user interface.
- spring
Cloud StringService Id - The ID of the Spring Cloud Service. Changing this forces a new resource to be created.
- application
Packages string[] - Specifies a list of the packages which should be used to determine whether a stack trace frame is an in-app frame or a library frame. This is a comma separated list of package names.
- globally
Enabled boolean - Specifies whether the Spring Cloud Application Performance Monitoring resource for Application Insights is enabled globally. Defaults to
false
. - name string
- The name which should be used for this Spring Cloud Application Performance Monitoring resource for Elastic. Changing this forces a new resource to be created.
- server
Url string - Specifies the server URL. The URL must be fully qualified, including protocol (http or https) and port.
- service
Name string - Specifies the service name which is used to keep all the errors and transactions of your service together and is the primary filter in the Elastic APM user interface.
- spring
Cloud stringService Id - The ID of the Spring Cloud Service. Changing this forces a new resource to be created.
- application_
packages Sequence[str] - Specifies a list of the packages which should be used to determine whether a stack trace frame is an in-app frame or a library frame. This is a comma separated list of package names.
- globally_
enabled bool - Specifies whether the Spring Cloud Application Performance Monitoring resource for Application Insights is enabled globally. Defaults to
false
. - name str
- The name which should be used for this Spring Cloud Application Performance Monitoring resource for Elastic. Changing this forces a new resource to be created.
- server_
url str - Specifies the server URL. The URL must be fully qualified, including protocol (http or https) and port.
- service_
name str - Specifies the service name which is used to keep all the errors and transactions of your service together and is the primary filter in the Elastic APM user interface.
- spring_
cloud_ strservice_ id - The ID of the Spring Cloud Service. Changing this forces a new resource to be created.
- application
Packages List<String> - Specifies a list of the packages which should be used to determine whether a stack trace frame is an in-app frame or a library frame. This is a comma separated list of package names.
- globally
Enabled Boolean - Specifies whether the Spring Cloud Application Performance Monitoring resource for Application Insights is enabled globally. Defaults to
false
. - name String
- The name which should be used for this Spring Cloud Application Performance Monitoring resource for Elastic. Changing this forces a new resource to be created.
- server
Url String - Specifies the server URL. The URL must be fully qualified, including protocol (http or https) and port.
- service
Name String - Specifies the service name which is used to keep all the errors and transactions of your service together and is the primary filter in the Elastic APM user interface.
- spring
Cloud StringService Id - The ID of the Spring Cloud Service. Changing this forces a new resource to be created.
Import
Spring Cloud Application Performance Monitoring resource for Elastic can be imported using the resource id
, e.g.
$ pulumi import azure:appplatform/springCloudElasticApplicationPerformanceMonitoring:SpringCloudElasticApplicationPerformanceMonitoring example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.AppPlatform/spring/service1/apms/apm1
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurerm
Terraform Provider.