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 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",
app_insights_sampling_rate=10,
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",
appInsightsSamplingRate: 10,
traceEnabled: true,
},
resourceGroupName: "myResourceGroup",
serviceName: "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=azure_native.appplatform.MonitoringSettingPropertiesArgs(
app_insights_instrumentation_key="string",
app_insights_sampling_rate=0,
error=azure_native.appplatform.ErrorArgs(
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
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:
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource.
- System
Data 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.
- System
Data 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.
- system
Data 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.
- system
Data 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.
- system
Data 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
- App
Insights stringInstrumentation Key - Target application insight instrumentation key, null or whitespace include empty will disable monitoringSettings
- App
Insights 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.
- 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
- App
Insights stringInstrumentation Key - Target application insight instrumentation key, null or whitespace include empty will disable monitoringSettings
- App
Insights 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.
- 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
- app
Insights StringInstrumentation Key - Target application insight instrumentation key, null or whitespace include empty will disable monitoringSettings
- app
Insights 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.
- trace
Enabled 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 stringInstrumentation Key - Target application insight instrumentation key, null or whitespace include empty will disable monitoringSettings
- app
Insights 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.
- trace
Enabled 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
- app
Insights StringInstrumentation Key - Target application insight instrumentation key, null or whitespace include empty will disable monitoringSettings
- app
Insights 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.
- trace
Enabled 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
- Provisioning
State string - State of the Monitoring Setting.
- App
Insights Pulumi.Agent Versions Azure Native. App Platform. Inputs. Application Insights Agent Versions Response - Indicates the versions of application insight agent
- App
Insights stringInstrumentation Key - Target application insight instrumentation key, null or whitespace include empty will disable monitoringSettings
- App
Insights 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.
- 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
- Provisioning
State string - State of the Monitoring Setting.
- App
Insights ApplicationAgent Versions Insights Agent Versions Response - Indicates the versions of application insight agent
- App
Insights stringInstrumentation Key - Target application insight instrumentation key, null or whitespace include empty will disable monitoringSettings
- App
Insights float64Sampling Rate - Indicates the sampling rate of application insight agent, should be in range [0.0, 100.0]
- Error
Error
Response - 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
- provisioning
State String - State of the Monitoring Setting.
- app
Insights ApplicationAgent Versions Insights Agent Versions Response - Indicates the versions of application insight agent
- app
Insights StringInstrumentation Key - Target application insight instrumentation key, null or whitespace include empty will disable monitoringSettings
- app
Insights DoubleSampling Rate - Indicates the sampling rate of application insight agent, should be in range [0.0, 100.0]
- error
Error
Response - Error when apply Monitoring Setting changes.
- trace
Enabled 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 string - State of the Monitoring Setting.
- app
Insights ApplicationAgent Versions Insights Agent Versions Response - Indicates the versions of application insight agent
- app
Insights stringInstrumentation Key - Target application insight instrumentation key, null or whitespace include empty will disable monitoringSettings
- app
Insights numberSampling Rate - Indicates the sampling rate of application insight agent, should be in range [0.0, 100.0]
- error
Error
Response - Error when apply Monitoring Setting changes.
- trace
Enabled 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
Error
Response - 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
- provisioning
State String - State of the Monitoring Setting.
- app
Insights Property MapAgent Versions - Indicates the versions of application insight agent
- app
Insights StringInstrumentation Key - Target application insight instrumentation key, null or whitespace include empty will disable monitoringSettings
- app
Insights 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.
- trace
Enabled 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
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource modification (UTC).
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource modification (UTC).
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource modification (UTC).
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource modification (UTC).
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified 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.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource modification (UTC).
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified 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