azure-native.appplatform.MonitoringSetting
Explore with Pulumi AI
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:
- Resource
Group 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.
- Service
Name string - The name of the Service resource.
- Properties
Pulumi.
Azure Native. App Platform. Inputs. Monitoring Setting Properties - Properties of the Monitoring Setting resource
- Resource
Group 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.
- Service
Name string - The name of the Service resource.
- Properties
Monitoring
Setting Properties Args - Properties of the Monitoring Setting resource
- resource
Group 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.
- service
Name String - The name of the Service resource.
- properties
Monitoring
Setting Properties - Properties of the Monitoring Setting resource
- resource
Group 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.
- service
Name string - The name of the Service resource.
- properties
Monitoring
Setting 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
Monitoring
Setting Properties Args - Properties of the Monitoring Setting resource
- resource
Group 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.
- service
Name 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:
Supporting Types
Error, ErrorArgs
ErrorResponse, ErrorResponseArgs
MonitoringSettingProperties, MonitoringSettingPropertiesArgs
- App
Insights stringInstrumentation Key - Target application insight instrumentation key
- Error
Pulumi.
Azure Native. App Platform. Inputs. Error - Error when apply Monitoring Setting changes.
- Trace
Enabled bool - Indicates whether enable the trace functionality
- App
Insights stringInstrumentation Key - Target application insight instrumentation key
- Error Error
- Error when apply Monitoring Setting changes.
- Trace
Enabled bool - Indicates whether enable the trace functionality
- app
Insights StringInstrumentation Key - Target application insight instrumentation key
- error Error
- Error when apply Monitoring Setting changes.
- trace
Enabled Boolean - Indicates whether enable the trace functionality
- app
Insights stringInstrumentation Key - Target application insight instrumentation key
- error Error
- Error when apply Monitoring Setting changes.
- trace
Enabled boolean - Indicates whether enable the trace functionality
- app_
insights_ strinstrumentation_ key - Target application insight instrumentation key
- error Error
- Error when apply Monitoring Setting changes.
- trace_
enabled bool - Indicates whether enable the trace functionality
- app
Insights StringInstrumentation Key - Target application insight instrumentation key
- error Property Map
- Error when apply Monitoring Setting changes.
- trace
Enabled Boolean - Indicates whether enable the trace functionality
MonitoringSettingPropertiesResponse, MonitoringSettingPropertiesResponseArgs
- Provisioning
State string - State of the Monitoring Setting.
- App
Insights stringInstrumentation Key - Target application insight instrumentation key
- Error
Pulumi.
Azure Native. App Platform. Inputs. Error Response - Error when apply Monitoring Setting changes.
- Trace
Enabled bool - Indicates whether enable the trace functionality
- Provisioning
State string - State of the Monitoring Setting.
- App
Insights stringInstrumentation Key - Target application insight instrumentation key
- Error
Error
Response - Error when apply Monitoring Setting changes.
- Trace
Enabled bool - Indicates whether enable the trace functionality
- provisioning
State String - State of the Monitoring Setting.
- app
Insights StringInstrumentation Key - Target application insight instrumentation key
- error
Error
Response - Error when apply Monitoring Setting changes.
- trace
Enabled Boolean - Indicates whether enable the trace functionality
- provisioning
State string - State of the Monitoring Setting.
- app
Insights stringInstrumentation Key - Target application insight instrumentation key
- error
Error
Response - Error when apply Monitoring Setting changes.
- trace
Enabled boolean - Indicates whether enable the trace functionality
- provisioning_
state str - State of the Monitoring Setting.
- app_
insights_ strinstrumentation_ key - Target application insight instrumentation key
- error
Error
Response - Error when apply Monitoring Setting changes.
- trace_
enabled bool - Indicates whether enable the trace functionality
- provisioning
State String - State of the Monitoring Setting.
- app
Insights StringInstrumentation Key - Target application insight instrumentation key
- error Property Map
- Error when apply Monitoring Setting changes.
- trace
Enabled 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