azure-native.appplatform.MonitoringSetting
Explore with Pulumi AI
Monitoring Setting resource Azure REST API version: 2023-05-01-preview. Prior API version in Azure Native 1.x: 2020-07-01.
Other available API versions: 2023-07-01-preview, 2023-09-01-preview, 2023-11-01-preview, 2023-12-01, 2024-01-01-preview, 2024-05-01-preview.
Example Usage
MonitoringSettings_UpdatePut
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() => 
{
    var monitoringSetting = new AzureNative.AppPlatform.MonitoringSetting("monitoringSetting", new()
    {
        Properties = new AzureNative.AppPlatform.Inputs.MonitoringSettingPropertiesArgs
        {
            AppInsightsInstrumentationKey = "00000000-0000-0000-0000-000000000000",
            AppInsightsSamplingRate = 10,
            TraceEnabled = true,
        },
        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.NewMonitoringSetting(ctx, "monitoringSetting", &appplatform.MonitoringSettingArgs{
			Properties: &appplatform.MonitoringSettingPropertiesArgs{
				AppInsightsInstrumentationKey: pulumi.String("00000000-0000-0000-0000-000000000000"),
				AppInsightsSamplingRate:       pulumi.Float64(10),
				TraceEnabled:                  pulumi.Bool(true),
			},
			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.MonitoringSetting;
import com.pulumi.azurenative.appplatform.MonitoringSettingArgs;
import com.pulumi.azurenative.appplatform.inputs.MonitoringSettingPropertiesArgs;
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 monitoringSetting = new MonitoringSetting("monitoringSetting", MonitoringSettingArgs.builder()
            .properties(MonitoringSettingPropertiesArgs.builder()
                .appInsightsInstrumentationKey("00000000-0000-0000-0000-000000000000")
                .appInsightsSamplingRate(10)
                .traceEnabled(true)
                .build())
            .resourceGroupName("myResourceGroup")
            .serviceName("myservice")
            .build());
    }
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const monitoringSetting = new azure_native.appplatform.MonitoringSetting("monitoringSetting", {
    properties: {
        appInsightsInstrumentationKey: "00000000-0000-0000-0000-000000000000",
        appInsightsSamplingRate: 10,
        traceEnabled: true,
    },
    resourceGroupName: "myResourceGroup",
    serviceName: "myservice",
});
import pulumi
import pulumi_azure_native as azure_native
monitoring_setting = azure_native.appplatform.MonitoringSetting("monitoringSetting",
    properties={
        "app_insights_instrumentation_key": "00000000-0000-0000-0000-000000000000",
        "app_insights_sampling_rate": 10,
        "trace_enabled": True,
    },
    resource_group_name="myResourceGroup",
    service_name="myservice")
resources:
  monitoringSetting:
    type: azure-native:appplatform:MonitoringSetting
    properties:
      properties:
        appInsightsInstrumentationKey: 00000000-0000-0000-0000-000000000000
        appInsightsSamplingRate: 10
        traceEnabled: true
      resourceGroupName: myResourceGroup
      serviceName: myservice
Create MonitoringSetting Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new MonitoringSetting(name: string, args: MonitoringSettingArgs, opts?: CustomResourceOptions);@overload
def MonitoringSetting(resource_name: str,
                      args: MonitoringSettingArgs,
                      opts: Optional[ResourceOptions] = None)
@overload
def MonitoringSetting(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      resource_group_name: Optional[str] = None,
                      service_name: Optional[str] = None,
                      properties: Optional[MonitoringSettingPropertiesArgs] = None)func NewMonitoringSetting(ctx *Context, name string, args MonitoringSettingArgs, opts ...ResourceOption) (*MonitoringSetting, error)public MonitoringSetting(string name, MonitoringSettingArgs args, CustomResourceOptions? opts = null)
public MonitoringSetting(String name, MonitoringSettingArgs args)
public MonitoringSetting(String name, MonitoringSettingArgs args, CustomResourceOptions options)
type: azure-native:appplatform:MonitoringSetting
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 MonitoringSettingArgs
- 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 MonitoringSettingArgs
- 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 MonitoringSettingArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MonitoringSettingArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MonitoringSettingArgs
- 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 monitoringSettingResource = new AzureNative.AppPlatform.MonitoringSetting("monitoringSettingResource", new()
{
    ResourceGroupName = "string",
    ServiceName = "string",
    Properties = new AzureNative.AppPlatform.Inputs.MonitoringSettingPropertiesArgs
    {
        AppInsightsInstrumentationKey = "string",
        AppInsightsSamplingRate = 0,
        Error = new AzureNative.AppPlatform.Inputs.ErrorArgs
        {
            Code = "string",
            Message = "string",
        },
        TraceEnabled = false,
    },
});
example, err := appplatform.NewMonitoringSetting(ctx, "monitoringSettingResource", &appplatform.MonitoringSettingArgs{
	ResourceGroupName: pulumi.String("string"),
	ServiceName:       pulumi.String("string"),
	Properties: &appplatform.MonitoringSettingPropertiesArgs{
		AppInsightsInstrumentationKey: pulumi.String("string"),
		AppInsightsSamplingRate:       pulumi.Float64(0),
		Error: &appplatform.ErrorArgs{
			Code:    pulumi.String("string"),
			Message: pulumi.String("string"),
		},
		TraceEnabled: pulumi.Bool(false),
	},
})
var monitoringSettingResource = new MonitoringSetting("monitoringSettingResource", MonitoringSettingArgs.builder()
    .resourceGroupName("string")
    .serviceName("string")
    .properties(MonitoringSettingPropertiesArgs.builder()
        .appInsightsInstrumentationKey("string")
        .appInsightsSamplingRate(0)
        .error(ErrorArgs.builder()
            .code("string")
            .message("string")
            .build())
        .traceEnabled(false)
        .build())
    .build());
monitoring_setting_resource = azure_native.appplatform.MonitoringSetting("monitoringSettingResource",
    resource_group_name="string",
    service_name="string",
    properties={
        "app_insights_instrumentation_key": "string",
        "app_insights_sampling_rate": 0,
        "error": {
            "code": "string",
            "message": "string",
        },
        "trace_enabled": False,
    })
const monitoringSettingResource = new azure_native.appplatform.MonitoringSetting("monitoringSettingResource", {
    resourceGroupName: "string",
    serviceName: "string",
    properties: {
        appInsightsInstrumentationKey: "string",
        appInsightsSamplingRate: 0,
        error: {
            code: "string",
            message: "string",
        },
        traceEnabled: false,
    },
});
type: azure-native:appplatform:MonitoringSetting
properties:
    properties:
        appInsightsInstrumentationKey: string
        appInsightsSamplingRate: 0
        error:
            code: string
            message: string
        traceEnabled: false
    resourceGroupName: string
    serviceName: string
MonitoringSetting 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 MonitoringSetting resource accepts the following input properties:
- ResourceGroup stringName 
- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- ServiceName string
- The name of the Service resource.
- Properties
Pulumi.Azure Native. App Platform. Inputs. Monitoring Setting Properties 
- Properties of the Monitoring Setting resource
- ResourceGroup stringName 
- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- ServiceName string
- The name of the Service resource.
- Properties
MonitoringSetting Properties Args 
- Properties of the Monitoring Setting resource
- resourceGroup StringName 
- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName String
- The name of the Service resource.
- properties
MonitoringSetting Properties 
- Properties of the Monitoring Setting resource
- resourceGroup stringName 
- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName string
- The name of the Service resource.
- properties
MonitoringSetting Properties 
- Properties of the Monitoring Setting resource
- resource_group_ strname 
- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- service_name str
- The name of the Service resource.
- properties
MonitoringSetting Properties Args 
- Properties of the Monitoring Setting resource
- resourceGroup StringName 
- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serviceName String
- The name of the Service resource.
- properties Property Map
- Properties of the Monitoring Setting resource
Outputs
All input properties are implicitly available as output properties. Additionally, the MonitoringSetting resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource.
- SystemData Pulumi.Azure Native. App Platform. Outputs. System Data Response 
- Metadata pertaining to creation and last modification of the resource.
- Type string
- The type of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource.
- SystemData SystemData Response 
- Metadata pertaining to creation and last modification of the resource.
- Type string
- The type of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource.
- systemData SystemData Response 
- Metadata pertaining to creation and last modification of the resource.
- type String
- The type of the resource.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the resource.
- systemData SystemData Response 
- Metadata pertaining to creation and last modification of the resource.
- type string
- The type of the resource.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The name of the resource.
- system_data SystemData Response 
- Metadata pertaining to creation and last modification of the resource.
- type str
- The type of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource.
- systemData Property Map
- Metadata pertaining to creation and last modification of the resource.
- type String
- The type of the resource.
Supporting Types
ApplicationInsightsAgentVersionsResponse, ApplicationInsightsAgentVersionsResponseArgs          
- Java string
- Indicates the version of application insight java agent
- Java string
- Indicates the version of application insight java agent
- java String
- Indicates the version of application insight java agent
- java string
- Indicates the version of application insight java agent
- java str
- Indicates the version of application insight java agent
- java String
- Indicates the version of application insight java agent
Error, ErrorArgs  
ErrorResponse, ErrorResponseArgs    
MonitoringSettingProperties, MonitoringSettingPropertiesArgs      
- AppInsights stringInstrumentation Key 
- Target application insight instrumentation key, null or whitespace include empty will disable monitoringSettings
- AppInsights doubleSampling Rate 
- Indicates the sampling rate of application insight agent, should be in range [0.0, 100.0]
- Error
Pulumi.Azure Native. App Platform. Inputs. Error 
- Error when apply Monitoring Setting changes.
- TraceEnabled bool
- Indicates whether enable the trace functionality, which will be deprecated since api version 2020-11-01-preview. Please leverage appInsightsInstrumentationKey to indicate if monitoringSettings enabled or not
- AppInsights stringInstrumentation Key 
- Target application insight instrumentation key, null or whitespace include empty will disable monitoringSettings
- AppInsights float64Sampling Rate 
- Indicates the sampling rate of application insight agent, should be in range [0.0, 100.0]
- Error Error
- Error when apply Monitoring Setting changes.
- TraceEnabled bool
- Indicates whether enable the trace functionality, which will be deprecated since api version 2020-11-01-preview. Please leverage appInsightsInstrumentationKey to indicate if monitoringSettings enabled or not
- appInsights StringInstrumentation Key 
- Target application insight instrumentation key, null or whitespace include empty will disable monitoringSettings
- appInsights DoubleSampling Rate 
- Indicates the sampling rate of application insight agent, should be in range [0.0, 100.0]
- error Error
- Error when apply Monitoring Setting changes.
- traceEnabled Boolean
- Indicates whether enable the trace functionality, which will be deprecated since api version 2020-11-01-preview. Please leverage appInsightsInstrumentationKey to indicate if monitoringSettings enabled or not
- appInsights stringInstrumentation Key 
- Target application insight instrumentation key, null or whitespace include empty will disable monitoringSettings
- appInsights numberSampling Rate 
- Indicates the sampling rate of application insight agent, should be in range [0.0, 100.0]
- error Error
- Error when apply Monitoring Setting changes.
- traceEnabled boolean
- Indicates whether enable the trace functionality, which will be deprecated since api version 2020-11-01-preview. Please leverage appInsightsInstrumentationKey to indicate if monitoringSettings enabled or not
- app_insights_ strinstrumentation_ key 
- Target application insight instrumentation key, null or whitespace include empty will disable monitoringSettings
- app_insights_ floatsampling_ rate 
- Indicates the sampling rate of application insight agent, should be in range [0.0, 100.0]
- error Error
- Error when apply Monitoring Setting changes.
- trace_enabled bool
- Indicates whether enable the trace functionality, which will be deprecated since api version 2020-11-01-preview. Please leverage appInsightsInstrumentationKey to indicate if monitoringSettings enabled or not
- appInsights StringInstrumentation Key 
- Target application insight instrumentation key, null or whitespace include empty will disable monitoringSettings
- appInsights NumberSampling Rate 
- Indicates the sampling rate of application insight agent, should be in range [0.0, 100.0]
- error Property Map
- Error when apply Monitoring Setting changes.
- traceEnabled Boolean
- Indicates whether enable the trace functionality, which will be deprecated since api version 2020-11-01-preview. Please leverage appInsightsInstrumentationKey to indicate if monitoringSettings enabled or not
MonitoringSettingPropertiesResponse, MonitoringSettingPropertiesResponseArgs        
- ProvisioningState string
- State of the Monitoring Setting.
- AppInsights Pulumi.Agent Versions Azure Native. App Platform. Inputs. Application Insights Agent Versions Response 
- Indicates the versions of application insight agent
- AppInsights stringInstrumentation Key 
- Target application insight instrumentation key, null or whitespace include empty will disable monitoringSettings
- AppInsights doubleSampling Rate 
- Indicates the sampling rate of application insight agent, should be in range [0.0, 100.0]
- Error
Pulumi.Azure Native. App Platform. Inputs. Error Response 
- Error when apply Monitoring Setting changes.
- TraceEnabled bool
- Indicates whether enable the trace functionality, which will be deprecated since api version 2020-11-01-preview. Please leverage appInsightsInstrumentationKey to indicate if monitoringSettings enabled or not
- ProvisioningState string
- State of the Monitoring Setting.
- AppInsights ApplicationAgent Versions Insights Agent Versions Response 
- Indicates the versions of application insight agent
- AppInsights stringInstrumentation Key 
- Target application insight instrumentation key, null or whitespace include empty will disable monitoringSettings
- AppInsights float64Sampling Rate 
- Indicates the sampling rate of application insight agent, should be in range [0.0, 100.0]
- Error
ErrorResponse 
- Error when apply Monitoring Setting changes.
- TraceEnabled bool
- Indicates whether enable the trace functionality, which will be deprecated since api version 2020-11-01-preview. Please leverage appInsightsInstrumentationKey to indicate if monitoringSettings enabled or not
- provisioningState String
- State of the Monitoring Setting.
- appInsights ApplicationAgent Versions Insights Agent Versions Response 
- Indicates the versions of application insight agent
- appInsights StringInstrumentation Key 
- Target application insight instrumentation key, null or whitespace include empty will disable monitoringSettings
- appInsights DoubleSampling Rate 
- Indicates the sampling rate of application insight agent, should be in range [0.0, 100.0]
- error
ErrorResponse 
- Error when apply Monitoring Setting changes.
- traceEnabled Boolean
- Indicates whether enable the trace functionality, which will be deprecated since api version 2020-11-01-preview. Please leverage appInsightsInstrumentationKey to indicate if monitoringSettings enabled or not
- provisioningState string
- State of the Monitoring Setting.
- appInsights ApplicationAgent Versions Insights Agent Versions Response 
- Indicates the versions of application insight agent
- appInsights stringInstrumentation Key 
- Target application insight instrumentation key, null or whitespace include empty will disable monitoringSettings
- appInsights numberSampling Rate 
- Indicates the sampling rate of application insight agent, should be in range [0.0, 100.0]
- error
ErrorResponse 
- Error when apply Monitoring Setting changes.
- traceEnabled boolean
- Indicates whether enable the trace functionality, which will be deprecated since api version 2020-11-01-preview. Please leverage appInsightsInstrumentationKey to indicate if monitoringSettings enabled or not
- provisioning_state str
- State of the Monitoring Setting.
- app_insights_ Applicationagent_ versions Insights Agent Versions Response 
- Indicates the versions of application insight agent
- app_insights_ strinstrumentation_ key 
- Target application insight instrumentation key, null or whitespace include empty will disable monitoringSettings
- app_insights_ floatsampling_ rate 
- Indicates the sampling rate of application insight agent, should be in range [0.0, 100.0]
- error
ErrorResponse 
- Error when apply Monitoring Setting changes.
- trace_enabled bool
- Indicates whether enable the trace functionality, which will be deprecated since api version 2020-11-01-preview. Please leverage appInsightsInstrumentationKey to indicate if monitoringSettings enabled or not
- provisioningState String
- State of the Monitoring Setting.
- appInsights Property MapAgent Versions 
- Indicates the versions of application insight agent
- appInsights StringInstrumentation Key 
- Target application insight instrumentation key, null or whitespace include empty will disable monitoringSettings
- appInsights NumberSampling Rate 
- Indicates the sampling rate of application insight agent, should be in range [0.0, 100.0]
- error Property Map
- Error when apply Monitoring Setting changes.
- traceEnabled Boolean
- Indicates whether enable the trace functionality, which will be deprecated since api version 2020-11-01-preview. Please leverage appInsightsInstrumentationKey to indicate if monitoringSettings enabled or not
SystemDataResponse, SystemDataResponseArgs      
- CreatedAt string
- The timestamp of resource creation (UTC).
- CreatedBy string
- The identity that created the resource.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource modification (UTC).
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- The type of identity that last modified the resource.
- CreatedAt string
- The timestamp of resource creation (UTC).
- CreatedBy string
- The identity that created the resource.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource modification (UTC).
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- The type of identity that last modified the resource.
- createdAt String
- The timestamp of resource creation (UTC).
- createdBy String
- The identity that created the resource.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource modification (UTC).
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- The type of identity that last modified the resource.
- createdAt string
- The timestamp of resource creation (UTC).
- createdBy string
- The identity that created the resource.
- createdBy stringType 
- The type of identity that created the resource.
- lastModified stringAt 
- The timestamp of resource modification (UTC).
- lastModified stringBy 
- The identity that last modified the resource.
- lastModified stringBy Type 
- The type of identity that last modified the resource.
- created_at str
- The timestamp of resource creation (UTC).
- created_by str
- The identity that created the resource.
- created_by_ strtype 
- The type of identity that created the resource.
- last_modified_ strat 
- The timestamp of resource modification (UTC).
- last_modified_ strby 
- The identity that last modified the resource.
- last_modified_ strby_ type 
- The type of identity that last modified the resource.
- createdAt String
- The timestamp of resource creation (UTC).
- createdBy String
- The identity that created the resource.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource modification (UTC).
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- The type of identity that last modified the resource.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:appplatform:MonitoringSetting default /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/monitoringSettings/default 
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0