1. Packages
  2. Azure Native v1
  3. API Docs
  4. appplatform
  5. MonitoringSetting
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

azure-native.appplatform.MonitoringSetting

Explore with Pulumi AI

azure-native-v1 logo
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

    Monitoring Setting resource API Version: 2020-07-01.

    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",
                TraceEnabled = true,
            },
            ResourceGroupName = "myResourceGroup",
            ServiceName = "myservice",
        });
    
    });
    
    package main
    
    import (
    	appplatform "github.com/pulumi/pulumi-azure-native-sdk/appplatform"
    	"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"),
    				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 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(Map.ofEntries(
                    Map.entry("appInsightsInstrumentationKey", "00000000-0000-0000-0000-000000000000"),
                    Map.entry("traceEnabled", true)
                ))
                .resourceGroupName("myResourceGroup")
                .serviceName("myservice")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    monitoring_setting = azure_native.appplatform.MonitoringSetting("monitoringSetting",
        properties=azure_native.appplatform.MonitoringSettingPropertiesArgs(
            app_insights_instrumentation_key="00000000-0000-0000-0000-000000000000",
            trace_enabled=True,
        ),
        resource_group_name="myResourceGroup",
        service_name="myservice")
    
    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",
            traceEnabled: true,
        },
        resourceGroupName: "myResourceGroup",
        serviceName: "myservice",
    });
    
    resources:
      monitoringSetting:
        type: azure-native:appplatform:MonitoringSetting
        properties:
          properties:
            appInsightsInstrumentationKey: 00000000-0000-0000-0000-000000000000
            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 = 
        {
            { "appInsightsInstrumentationKey", "string" },
            { "error", 
            {
                { "code", "string" },
                { "message", "string" },
            } },
            { "traceEnabled", false },
        },
    });
    
    example, err := appplatform.NewMonitoringSetting(ctx, "monitoringSettingResource", &appplatform.MonitoringSettingArgs{
    	ResourceGroupName: "string",
    	ServiceName:       "string",
    	Properties: map[string]interface{}{
    		"appInsightsInstrumentationKey": "string",
    		"error": map[string]interface{}{
    			"code":    "string",
    			"message": "string",
    		},
    		"traceEnabled": false,
    	},
    })
    
    var monitoringSettingResource = new MonitoringSetting("monitoringSettingResource", MonitoringSettingArgs.builder()
        .resourceGroupName("string")
        .serviceName("string")
        .properties(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
        .build());
    
    monitoring_setting_resource = azure_native.appplatform.MonitoringSetting("monitoringSettingResource",
        resource_group_name=string,
        service_name=string,
        properties={
            appInsightsInstrumentationKey: string,
            error: {
                code: string,
                message: string,
            },
            traceEnabled: False,
        })
    
    const monitoringSettingResource = new azure_native.appplatform.MonitoringSetting("monitoringSettingResource", {
        resourceGroupName: "string",
        serviceName: "string",
        properties: {
            appInsightsInstrumentationKey: "string",
            error: {
                code: "string",
                message: "string",
            },
            traceEnabled: false,
        },
    });
    
    type: azure-native:appplatform:MonitoringSetting
    properties:
        properties:
            appInsightsInstrumentationKey: string
            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

    The MonitoringSetting resource accepts the following input properties:

    ResourceGroupName string
    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.AzureNative.AppPlatform.Inputs.MonitoringSettingProperties
    Properties of the Monitoring Setting resource
    ResourceGroupName string
    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 MonitoringSettingPropertiesArgs
    Properties of the Monitoring Setting resource
    resourceGroupName String
    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 MonitoringSettingProperties
    Properties of the Monitoring Setting resource
    resourceGroupName string
    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 MonitoringSettingProperties
    Properties of the Monitoring Setting resource
    resource_group_name str
    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 MonitoringSettingPropertiesArgs
    Properties of the Monitoring Setting resource
    resourceGroupName String
    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.
    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.
    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.
    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.
    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.
    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.
    type String
    The type of the resource.

    Supporting Types

    Error, ErrorArgs

    Code string
    The code of error.
    Message string
    The message of error.
    Code string
    The code of error.
    Message string
    The message of error.
    code String
    The code of error.
    message String
    The message of error.
    code string
    The code of error.
    message string
    The message of error.
    code str
    The code of error.
    message str
    The message of error.
    code String
    The code of error.
    message String
    The message of error.

    ErrorResponse, ErrorResponseArgs

    Code string
    The code of error.
    Message string
    The message of error.
    Code string
    The code of error.
    Message string
    The message of error.
    code String
    The code of error.
    message String
    The message of error.
    code string
    The code of error.
    message string
    The message of error.
    code str
    The code of error.
    message str
    The message of error.
    code String
    The code of error.
    message String
    The message of error.

    MonitoringSettingProperties, MonitoringSettingPropertiesArgs

    AppInsightsInstrumentationKey string
    Target application insight instrumentation key
    Error Pulumi.AzureNative.AppPlatform.Inputs.Error
    Error when apply Monitoring Setting changes.
    TraceEnabled bool
    Indicates whether enable the trace functionality
    AppInsightsInstrumentationKey string
    Target application insight instrumentation key
    Error Error
    Error when apply Monitoring Setting changes.
    TraceEnabled bool
    Indicates whether enable the trace functionality
    appInsightsInstrumentationKey String
    Target application insight instrumentation key
    error Error
    Error when apply Monitoring Setting changes.
    traceEnabled Boolean
    Indicates whether enable the trace functionality
    appInsightsInstrumentationKey string
    Target application insight instrumentation key
    error Error
    Error when apply Monitoring Setting changes.
    traceEnabled boolean
    Indicates whether enable the trace functionality
    app_insights_instrumentation_key str
    Target application insight instrumentation key
    error Error
    Error when apply Monitoring Setting changes.
    trace_enabled bool
    Indicates whether enable the trace functionality
    appInsightsInstrumentationKey String
    Target application insight instrumentation key
    error Property Map
    Error when apply Monitoring Setting changes.
    traceEnabled Boolean
    Indicates whether enable the trace functionality

    MonitoringSettingPropertiesResponse, MonitoringSettingPropertiesResponseArgs

    ProvisioningState string
    State of the Monitoring Setting.
    AppInsightsInstrumentationKey string
    Target application insight instrumentation key
    Error Pulumi.AzureNative.AppPlatform.Inputs.ErrorResponse
    Error when apply Monitoring Setting changes.
    TraceEnabled bool
    Indicates whether enable the trace functionality
    ProvisioningState string
    State of the Monitoring Setting.
    AppInsightsInstrumentationKey string
    Target application insight instrumentation key
    Error ErrorResponse
    Error when apply Monitoring Setting changes.
    TraceEnabled bool
    Indicates whether enable the trace functionality
    provisioningState String
    State of the Monitoring Setting.
    appInsightsInstrumentationKey String
    Target application insight instrumentation key
    error ErrorResponse
    Error when apply Monitoring Setting changes.
    traceEnabled Boolean
    Indicates whether enable the trace functionality
    provisioningState string
    State of the Monitoring Setting.
    appInsightsInstrumentationKey string
    Target application insight instrumentation key
    error ErrorResponse
    Error when apply Monitoring Setting changes.
    traceEnabled boolean
    Indicates whether enable the trace functionality
    provisioning_state str
    State of the Monitoring Setting.
    app_insights_instrumentation_key str
    Target application insight instrumentation key
    error ErrorResponse
    Error when apply Monitoring Setting changes.
    trace_enabled bool
    Indicates whether enable the trace functionality
    provisioningState String
    State of the Monitoring Setting.
    appInsightsInstrumentationKey String
    Target application insight instrumentation key
    error Property Map
    Error when apply Monitoring Setting changes.
    traceEnabled Boolean
    Indicates whether enable the trace functionality

    Import

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

    $ pulumi import azure-native:appplatform:MonitoringSetting default /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/monitoringSettings/default 
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    azure-native-v1 pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native-v1 logo
    These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
    Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi