diff --git a/provider/cmd/pulumi-resource-azure-native/schema.json b/provider/cmd/pulumi-resource-azure-native/schema.json
index 549d59a24ae1..ff68b3032a4e 100644
--- a/provider/cmd/pulumi-resource-azure-native/schema.json
+++ b/provider/cmd/pulumi-resource-azure-native/schema.json
@@ -421144,6 +421144,181 @@
"webhookResourceId"
]
},
+ "azure-native:monitor:AutoscaleNotification": {
+ "description": "Autoscale notification.",
+ "properties": {
+ "email": {
+ "type": "object",
+ "$ref": "#/types/azure-native:monitor:EmailNotification",
+ "description": "the email notification."
+ },
+ "operation": {
+ "$ref": "#/types/azure-native:monitor:OperationType",
+ "description": "the operation associated with the notification and its value must be \"scale\""
+ },
+ "webhooks": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "$ref": "#/types/azure-native:monitor:WebhookNotification"
+ },
+ "description": "the collection of webhook notifications."
+ }
+ },
+ "type": "object",
+ "required": [
+ "operation"
+ ]
+ },
+ "azure-native:monitor:AutoscaleNotificationResponse": {
+ "description": "Autoscale notification.",
+ "properties": {
+ "email": {
+ "type": "object",
+ "$ref": "#/types/azure-native:monitor:EmailNotificationResponse",
+ "description": "the email notification."
+ },
+ "operation": {
+ "type": "string",
+ "description": "the operation associated with the notification and its value must be \"scale\""
+ },
+ "webhooks": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "$ref": "#/types/azure-native:monitor:WebhookNotificationResponse"
+ },
+ "description": "the collection of webhook notifications."
+ }
+ },
+ "type": "object",
+ "required": [
+ "operation"
+ ]
+ },
+ "azure-native:monitor:AutoscaleProfile": {
+ "description": "Autoscale profile.",
+ "properties": {
+ "capacity": {
+ "type": "object",
+ "$ref": "#/types/azure-native:monitor:ScaleCapacity",
+ "description": "the number of instances that can be used during this profile."
+ },
+ "fixedDate": {
+ "type": "object",
+ "$ref": "#/types/azure-native:monitor:TimeWindow",
+ "description": "the specific date-time for the profile. This element is not used if the Recurrence element is used."
+ },
+ "name": {
+ "type": "string",
+ "description": "the name of the profile."
+ },
+ "recurrence": {
+ "type": "object",
+ "$ref": "#/types/azure-native:monitor:Recurrence",
+ "description": "the repeating times at which this profile begins. This element is not used if the FixedDate element is used."
+ },
+ "rules": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "$ref": "#/types/azure-native:monitor:ScaleRule"
+ },
+ "description": "the collection of rules that provide the triggers and parameters for the scaling action. A maximum of 10 rules can be specified."
+ }
+ },
+ "type": "object",
+ "required": [
+ "capacity",
+ "name",
+ "rules"
+ ]
+ },
+ "azure-native:monitor:AutoscaleProfileResponse": {
+ "description": "Autoscale profile.",
+ "properties": {
+ "capacity": {
+ "type": "object",
+ "$ref": "#/types/azure-native:monitor:ScaleCapacityResponse",
+ "description": "the number of instances that can be used during this profile."
+ },
+ "fixedDate": {
+ "type": "object",
+ "$ref": "#/types/azure-native:monitor:TimeWindowResponse",
+ "description": "the specific date-time for the profile. This element is not used if the Recurrence element is used."
+ },
+ "name": {
+ "type": "string",
+ "description": "the name of the profile."
+ },
+ "recurrence": {
+ "type": "object",
+ "$ref": "#/types/azure-native:monitor:RecurrenceResponse",
+ "description": "the repeating times at which this profile begins. This element is not used if the FixedDate element is used."
+ },
+ "rules": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "$ref": "#/types/azure-native:monitor:ScaleRuleResponse"
+ },
+ "description": "the collection of rules that provide the triggers and parameters for the scaling action. A maximum of 10 rules can be specified."
+ }
+ },
+ "type": "object",
+ "required": [
+ "capacity",
+ "name",
+ "rules"
+ ]
+ },
+ "azure-native:monitor:AutoscaleSettingResponse": {
+ "description": "A setting that contains all of the configuration for the automatic scaling of a resource.",
+ "properties": {
+ "enabled": {
+ "type": "boolean",
+ "description": "the enabled flag. Specifies whether automatic scaling is enabled for the resource. The default value is 'false'.",
+ "default": false
+ },
+ "name": {
+ "type": "string",
+ "description": "the name of the autoscale setting."
+ },
+ "notifications": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "$ref": "#/types/azure-native:monitor:AutoscaleNotificationResponse"
+ },
+ "description": "the collection of notifications."
+ },
+ "predictiveAutoscalePolicy": {
+ "type": "object",
+ "$ref": "#/types/azure-native:monitor:PredictiveAutoscalePolicyResponse",
+ "description": "the predictive autoscale policy mode."
+ },
+ "profiles": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "$ref": "#/types/azure-native:monitor:AutoscaleProfileResponse"
+ },
+ "description": "the collection of automatic scaling profiles that specify different scaling parameters for different time periods. A maximum of 20 profiles can be specified."
+ },
+ "targetResourceLocation": {
+ "type": "string",
+ "description": "the location of the resource that the autoscale setting should be added to."
+ },
+ "targetResourceUri": {
+ "type": "string",
+ "description": "the resource identifier of the resource that the autoscale setting should be added to."
+ }
+ },
+ "type": "object",
+ "required": [
+ "profiles"
+ ]
+ },
"azure-native:monitor:AzureAppPushReceiver": {
"description": "The Azure mobile App push notification receiver.",
"properties": {
@@ -421463,6 +421638,30 @@
},
"type": "object"
},
+ "azure-native:monitor:ComparisonOperationType": {
+ "description": "the operator that is used to compare the metric data and the threshold.",
+ "type": "string",
+ "enum": [
+ {
+ "value": "Equals"
+ },
+ {
+ "value": "NotEquals"
+ },
+ {
+ "value": "GreaterThan"
+ },
+ {
+ "value": "GreaterThanOrEqual"
+ },
+ {
+ "value": "LessThan"
+ },
+ {
+ "value": "LessThanOrEqual"
+ }
+ ]
+ },
"azure-native:monitor:ConcurrencyConfiguration": {
"description": "Concurrent publishing configuration.",
"properties": {
@@ -421702,6 +421901,46 @@
}
]
},
+ "azure-native:monitor:DiagnosticSettingsCategoryResourceResponse": {
+ "description": "The diagnostic settings category resource.",
+ "properties": {
+ "categoryGroups": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "the collection of what category groups are supported."
+ },
+ "categoryType": {
+ "type": "string",
+ "description": "The type of the diagnostic settings category."
+ },
+ "id": {
+ "type": "string",
+ "description": "Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
+ },
+ "name": {
+ "type": "string",
+ "description": "The name of the resource"
+ },
+ "systemData": {
+ "type": "object",
+ "$ref": "#/types/azure-native:monitor:SystemDataResponse",
+ "description": "The system metadata related to this resource."
+ },
+ "type": {
+ "type": "string",
+ "description": "The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or \"Microsoft.Storage/storageAccounts\""
+ }
+ },
+ "type": "object",
+ "required": [
+ "id",
+ "name",
+ "systemData",
+ "type"
+ ]
+ },
"azure-native:monitor:Dimension": {
"description": "Dimension splitting and filtering definition",
"properties": {
@@ -421773,6 +422012,52 @@
"values"
]
},
+ "azure-native:monitor:EmailNotification": {
+ "description": "Email notification of an autoscale event.",
+ "properties": {
+ "customEmails": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "the custom e-mails list. This value can be null or empty, in which case this attribute will be ignored."
+ },
+ "sendToSubscriptionAdministrator": {
+ "type": "boolean",
+ "description": "a value indicating whether to send email to subscription administrator.",
+ "default": false
+ },
+ "sendToSubscriptionCoAdministrators": {
+ "type": "boolean",
+ "description": "a value indicating whether to send email to subscription co-administrators.",
+ "default": false
+ }
+ },
+ "type": "object"
+ },
+ "azure-native:monitor:EmailNotificationResponse": {
+ "description": "Email notification of an autoscale event.",
+ "properties": {
+ "customEmails": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "the custom e-mails list. This value can be null or empty, in which case this attribute will be ignored."
+ },
+ "sendToSubscriptionAdministrator": {
+ "type": "boolean",
+ "description": "a value indicating whether to send email to subscription administrator.",
+ "default": false
+ },
+ "sendToSubscriptionCoAdministrators": {
+ "type": "boolean",
+ "description": "a value indicating whether to send email to subscription co-administrators.",
+ "default": false
+ }
+ },
+ "type": "object"
+ },
"azure-native:monitor:EmailReceiver": {
"description": "An email receiver.",
"properties": {
@@ -422418,6 +422703,58 @@
}
]
},
+ "azure-native:monitor:LogSettings": {
+ "description": "Part of MultiTenantDiagnosticSettings. Specifies the settings for a particular log.",
+ "properties": {
+ "category": {
+ "type": "string",
+ "description": "Name of a Diagnostic Log category for a resource type this setting is applied to. To obtain the list of Diagnostic Log categories for a resource, first perform a GET diagnostic settings operation."
+ },
+ "categoryGroup": {
+ "type": "string",
+ "description": "Name of a Diagnostic Log category group for a resource type this setting is applied to. To obtain the list of Diagnostic Log categories for a resource, first perform a GET diagnostic settings operation."
+ },
+ "enabled": {
+ "type": "boolean",
+ "description": "a value indicating whether this log is enabled."
+ },
+ "retentionPolicy": {
+ "type": "object",
+ "$ref": "#/types/azure-native:monitor:RetentionPolicy",
+ "description": "the retention policy for this log."
+ }
+ },
+ "type": "object",
+ "required": [
+ "enabled"
+ ]
+ },
+ "azure-native:monitor:LogSettingsResponse": {
+ "description": "Part of MultiTenantDiagnosticSettings. Specifies the settings for a particular log.",
+ "properties": {
+ "category": {
+ "type": "string",
+ "description": "Name of a Diagnostic Log category for a resource type this setting is applied to. To obtain the list of Diagnostic Log categories for a resource, first perform a GET diagnostic settings operation."
+ },
+ "categoryGroup": {
+ "type": "string",
+ "description": "Name of a Diagnostic Log category group for a resource type this setting is applied to. To obtain the list of Diagnostic Log categories for a resource, first perform a GET diagnostic settings operation."
+ },
+ "enabled": {
+ "type": "boolean",
+ "description": "a value indicating whether this log is enabled."
+ },
+ "retentionPolicy": {
+ "type": "object",
+ "$ref": "#/types/azure-native:monitor:RetentionPolicyResponse",
+ "description": "the retention policy for this log."
+ }
+ },
+ "type": "object",
+ "required": [
+ "enabled"
+ ]
+ },
"azure-native:monitor:LogicAppReceiver": {
"description": "A logic app receiver.",
"properties": {
@@ -422558,6 +422895,257 @@
}
]
},
+ "azure-native:monitor:ManagementGroupLogSettings": {
+ "description": "Part of Management Group diagnostic setting. Specifies the settings for a particular log.",
+ "properties": {
+ "category": {
+ "type": "string",
+ "description": "Name of a Management Group Diagnostic Log category for a resource type this setting is applied to."
+ },
+ "categoryGroup": {
+ "type": "string",
+ "description": "Name of a Management Group Diagnostic Log category group for a resource type this setting is applied to."
+ },
+ "enabled": {
+ "type": "boolean",
+ "description": "a value indicating whether this log is enabled."
+ }
+ },
+ "type": "object",
+ "required": [
+ "enabled"
+ ]
+ },
+ "azure-native:monitor:ManagementGroupLogSettingsResponse": {
+ "description": "Part of Management Group diagnostic setting. Specifies the settings for a particular log.",
+ "properties": {
+ "category": {
+ "type": "string",
+ "description": "Name of a Management Group Diagnostic Log category for a resource type this setting is applied to."
+ },
+ "categoryGroup": {
+ "type": "string",
+ "description": "Name of a Management Group Diagnostic Log category group for a resource type this setting is applied to."
+ },
+ "enabled": {
+ "type": "boolean",
+ "description": "a value indicating whether this log is enabled."
+ }
+ },
+ "type": "object",
+ "required": [
+ "enabled"
+ ]
+ },
+ "azure-native:monitor:MetricSettings": {
+ "description": "Part of MultiTenantDiagnosticSettings. Specifies the settings for a particular metric.",
+ "properties": {
+ "category": {
+ "type": "string",
+ "description": "Name of a Diagnostic Metric category for a resource type this setting is applied to. To obtain the list of Diagnostic metric categories for a resource, first perform a GET diagnostic settings operation."
+ },
+ "enabled": {
+ "type": "boolean",
+ "description": "a value indicating whether this category is enabled."
+ },
+ "retentionPolicy": {
+ "type": "object",
+ "$ref": "#/types/azure-native:monitor:RetentionPolicy",
+ "description": "the retention policy for this category."
+ },
+ "timeGrain": {
+ "type": "string",
+ "description": "the timegrain of the metric in ISO8601 format."
+ }
+ },
+ "type": "object",
+ "required": [
+ "enabled"
+ ]
+ },
+ "azure-native:monitor:MetricSettingsResponse": {
+ "description": "Part of MultiTenantDiagnosticSettings. Specifies the settings for a particular metric.",
+ "properties": {
+ "category": {
+ "type": "string",
+ "description": "Name of a Diagnostic Metric category for a resource type this setting is applied to. To obtain the list of Diagnostic metric categories for a resource, first perform a GET diagnostic settings operation."
+ },
+ "enabled": {
+ "type": "boolean",
+ "description": "a value indicating whether this category is enabled."
+ },
+ "retentionPolicy": {
+ "type": "object",
+ "$ref": "#/types/azure-native:monitor:RetentionPolicyResponse",
+ "description": "the retention policy for this category."
+ },
+ "timeGrain": {
+ "type": "string",
+ "description": "the timegrain of the metric in ISO8601 format."
+ }
+ },
+ "type": "object",
+ "required": [
+ "enabled"
+ ]
+ },
+ "azure-native:monitor:MetricStatisticType": {
+ "description": "the metric statistic type. How the metrics from multiple instances are combined.",
+ "type": "string",
+ "enum": [
+ {
+ "value": "Average"
+ },
+ {
+ "value": "Min"
+ },
+ {
+ "value": "Max"
+ },
+ {
+ "value": "Sum"
+ },
+ {
+ "value": "Count"
+ }
+ ]
+ },
+ "azure-native:monitor:MetricTrigger": {
+ "description": "The trigger that results in a scaling action.",
+ "properties": {
+ "dimensions": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "$ref": "#/types/azure-native:monitor:ScaleRuleMetricDimension"
+ },
+ "description": "List of dimension conditions. For example: [{\"DimensionName\":\"AppName\",\"Operator\":\"Equals\",\"Values\":[\"App1\"]},{\"DimensionName\":\"Deployment\",\"Operator\":\"Equals\",\"Values\":[\"default\"]}]."
+ },
+ "dividePerInstance": {
+ "type": "boolean",
+ "description": "a value indicating whether metric should divide per instance."
+ },
+ "metricName": {
+ "type": "string",
+ "description": "the name of the metric that defines what the rule monitors."
+ },
+ "metricNamespace": {
+ "type": "string",
+ "description": "the namespace of the metric that defines what the rule monitors."
+ },
+ "metricResourceLocation": {
+ "type": "string",
+ "description": "the location of the resource the rule monitors."
+ },
+ "metricResourceUri": {
+ "type": "string",
+ "description": "the resource identifier of the resource the rule monitors."
+ },
+ "operator": {
+ "$ref": "#/types/azure-native:monitor:ComparisonOperationType",
+ "description": "the operator that is used to compare the metric data and the threshold."
+ },
+ "statistic": {
+ "$ref": "#/types/azure-native:monitor:MetricStatisticType",
+ "description": "the metric statistic type. How the metrics from multiple instances are combined."
+ },
+ "threshold": {
+ "type": "number",
+ "description": "the threshold of the metric that triggers the scale action."
+ },
+ "timeAggregation": {
+ "$ref": "#/types/azure-native:monitor:TimeAggregationType",
+ "description": "time aggregation type. How the data that is collected should be combined over time. The default value is Average."
+ },
+ "timeGrain": {
+ "type": "string",
+ "description": "the granularity of metrics the rule monitors. Must be one of the predefined values returned from metric definitions for the metric. Must be between 12 hours and 1 minute."
+ },
+ "timeWindow": {
+ "type": "string",
+ "description": "the range of time in which instance data is collected. This value must be greater than the delay in metric collection, which can vary from resource-to-resource. Must be between 12 hours and 5 minutes."
+ }
+ },
+ "type": "object",
+ "required": [
+ "metricName",
+ "metricResourceUri",
+ "operator",
+ "statistic",
+ "threshold",
+ "timeAggregation",
+ "timeGrain",
+ "timeWindow"
+ ]
+ },
+ "azure-native:monitor:MetricTriggerResponse": {
+ "description": "The trigger that results in a scaling action.",
+ "properties": {
+ "dimensions": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "$ref": "#/types/azure-native:monitor:ScaleRuleMetricDimensionResponse"
+ },
+ "description": "List of dimension conditions. For example: [{\"DimensionName\":\"AppName\",\"Operator\":\"Equals\",\"Values\":[\"App1\"]},{\"DimensionName\":\"Deployment\",\"Operator\":\"Equals\",\"Values\":[\"default\"]}]."
+ },
+ "dividePerInstance": {
+ "type": "boolean",
+ "description": "a value indicating whether metric should divide per instance."
+ },
+ "metricName": {
+ "type": "string",
+ "description": "the name of the metric that defines what the rule monitors."
+ },
+ "metricNamespace": {
+ "type": "string",
+ "description": "the namespace of the metric that defines what the rule monitors."
+ },
+ "metricResourceLocation": {
+ "type": "string",
+ "description": "the location of the resource the rule monitors."
+ },
+ "metricResourceUri": {
+ "type": "string",
+ "description": "the resource identifier of the resource the rule monitors."
+ },
+ "operator": {
+ "type": "string",
+ "description": "the operator that is used to compare the metric data and the threshold."
+ },
+ "statistic": {
+ "type": "string",
+ "description": "the metric statistic type. How the metrics from multiple instances are combined."
+ },
+ "threshold": {
+ "type": "number",
+ "description": "the threshold of the metric that triggers the scale action."
+ },
+ "timeAggregation": {
+ "type": "string",
+ "description": "time aggregation type. How the data that is collected should be combined over time. The default value is Average."
+ },
+ "timeGrain": {
+ "type": "string",
+ "description": "the granularity of metrics the rule monitors. Must be one of the predefined values returned from metric definitions for the metric. Must be between 12 hours and 1 minute."
+ },
+ "timeWindow": {
+ "type": "string",
+ "description": "the range of time in which instance data is collected. This value must be greater than the delay in metric collection, which can vary from resource-to-resource. Must be between 12 hours and 5 minutes."
+ }
+ },
+ "type": "object",
+ "required": [
+ "metricName",
+ "metricResourceUri",
+ "operator",
+ "statistic",
+ "threshold",
+ "timeAggregation",
+ "timeGrain",
+ "timeWindow"
+ ]
+ },
"azure-native:monitor:MetricsResponse": {
"description": "Information about metrics for the workspace",
"properties": {
@@ -422685,6 +423273,15 @@
"receiver"
]
},
+ "azure-native:monitor:OperationType": {
+ "description": "the operation associated with the notification and its value must be \"scale\"",
+ "type": "string",
+ "enum": [
+ {
+ "value": "Scale"
+ }
+ ]
+ },
"azure-native:monitor:OtlpReceiver": {
"description": "OTLP Receiver.",
"properties": {
@@ -422948,6 +423545,55 @@
}
]
},
+ "azure-native:monitor:PredictiveAutoscalePolicy": {
+ "description": "The parameters for enabling predictive autoscale.",
+ "properties": {
+ "scaleLookAheadTime": {
+ "type": "string",
+ "description": "the amount of time to specify by which instances are launched in advance. It must be between 1 minute and 60 minutes in ISO 8601 format."
+ },
+ "scaleMode": {
+ "$ref": "#/types/azure-native:monitor:PredictiveAutoscalePolicyScaleMode",
+ "description": "the predictive autoscale mode"
+ }
+ },
+ "type": "object",
+ "required": [
+ "scaleMode"
+ ]
+ },
+ "azure-native:monitor:PredictiveAutoscalePolicyResponse": {
+ "description": "The parameters for enabling predictive autoscale.",
+ "properties": {
+ "scaleLookAheadTime": {
+ "type": "string",
+ "description": "the amount of time to specify by which instances are launched in advance. It must be between 1 minute and 60 minutes in ISO 8601 format."
+ },
+ "scaleMode": {
+ "type": "string",
+ "description": "the predictive autoscale mode"
+ }
+ },
+ "type": "object",
+ "required": [
+ "scaleMode"
+ ]
+ },
+ "azure-native:monitor:PredictiveAutoscalePolicyScaleMode": {
+ "description": "the predictive autoscale mode",
+ "type": "string",
+ "enum": [
+ {
+ "value": "Disabled"
+ },
+ {
+ "value": "ForecastOnly"
+ },
+ {
+ "value": "Enabled"
+ }
+ ]
+ },
"azure-native:monitor:PrivateEndpointConnectionResponse": {
"description": "The Private Endpoint Connection resource.",
"properties": {
@@ -423274,6 +423920,148 @@
"to"
]
},
+ "azure-native:monitor:Recurrence": {
+ "description": "The repeating times at which this profile begins. This element is not used if the FixedDate element is used.",
+ "properties": {
+ "frequency": {
+ "$ref": "#/types/azure-native:monitor:RecurrenceFrequency",
+ "description": "the recurrence frequency. How often the schedule profile should take effect. This value must be Week, meaning each week will have the same set of profiles. For example, to set a daily schedule, set **schedule** to every day of the week. The frequency property specifies that the schedule is repeated weekly."
+ },
+ "schedule": {
+ "type": "object",
+ "$ref": "#/types/azure-native:monitor:RecurrentSchedule",
+ "description": "the scheduling constraints for when the profile begins."
+ }
+ },
+ "type": "object",
+ "required": [
+ "frequency",
+ "schedule"
+ ]
+ },
+ "azure-native:monitor:RecurrenceFrequency": {
+ "description": "the recurrence frequency. How often the schedule profile should take effect. This value must be Week, meaning each week will have the same set of profiles. For example, to set a daily schedule, set **schedule** to every day of the week. The frequency property specifies that the schedule is repeated weekly.",
+ "type": "string",
+ "enum": [
+ {
+ "value": "None"
+ },
+ {
+ "value": "Second"
+ },
+ {
+ "value": "Minute"
+ },
+ {
+ "value": "Hour"
+ },
+ {
+ "value": "Day"
+ },
+ {
+ "value": "Week"
+ },
+ {
+ "value": "Month"
+ },
+ {
+ "value": "Year"
+ }
+ ]
+ },
+ "azure-native:monitor:RecurrenceResponse": {
+ "description": "The repeating times at which this profile begins. This element is not used if the FixedDate element is used.",
+ "properties": {
+ "frequency": {
+ "type": "string",
+ "description": "the recurrence frequency. How often the schedule profile should take effect. This value must be Week, meaning each week will have the same set of profiles. For example, to set a daily schedule, set **schedule** to every day of the week. The frequency property specifies that the schedule is repeated weekly."
+ },
+ "schedule": {
+ "type": "object",
+ "$ref": "#/types/azure-native:monitor:RecurrentScheduleResponse",
+ "description": "the scheduling constraints for when the profile begins."
+ }
+ },
+ "type": "object",
+ "required": [
+ "frequency",
+ "schedule"
+ ]
+ },
+ "azure-native:monitor:RecurrentSchedule": {
+ "description": "The scheduling constraints for when the profile begins.",
+ "properties": {
+ "days": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "the collection of days that the profile takes effect on. Possible values are Sunday through Saturday."
+ },
+ "hours": {
+ "type": "array",
+ "items": {
+ "type": "integer"
+ },
+ "description": "A collection of hours that the profile takes effect on. Values supported are 0 to 23 on the 24-hour clock (AM/PM times are not supported)."
+ },
+ "minutes": {
+ "type": "array",
+ "items": {
+ "type": "integer"
+ },
+ "description": "A collection of minutes at which the profile takes effect at."
+ },
+ "timeZone": {
+ "type": "string",
+ "description": "the timezone for the hours of the profile. Some examples of valid time zones are: Dateline Standard Time, UTC-11, Hawaiian Standard Time, Alaskan Standard Time, Pacific Standard Time (Mexico), Pacific Standard Time, US Mountain Standard Time, Mountain Standard Time (Mexico), Mountain Standard Time, Central America Standard Time, Central Standard Time, Central Standard Time (Mexico), Canada Central Standard Time, SA Pacific Standard Time, Eastern Standard Time, US Eastern Standard Time, Venezuela Standard Time, Paraguay Standard Time, Atlantic Standard Time, Central Brazilian Standard Time, SA Western Standard Time, Pacific SA Standard Time, Newfoundland Standard Time, E. South America Standard Time, Argentina Standard Time, SA Eastern Standard Time, Greenland Standard Time, Montevideo Standard Time, Bahia Standard Time, UTC-02, Mid-Atlantic Standard Time, Azores Standard Time, Cape Verde Standard Time, Morocco Standard Time, UTC, GMT Standard Time, Greenwich Standard Time, W. Europe Standard Time, Central Europe Standard Time, Romance Standard Time, Central European Standard Time, W. Central Africa Standard Time, Namibia Standard Time, Jordan Standard Time, GTB Standard Time, Middle East Standard Time, Egypt Standard Time, Syria Standard Time, E. Europe Standard Time, South Africa Standard Time, FLE Standard Time, Turkey Standard Time, Israel Standard Time, Kaliningrad Standard Time, Libya Standard Time, Arabic Standard Time, Arab Standard Time, Belarus Standard Time, Russian Standard Time, E. Africa Standard Time, Iran Standard Time, Arabian Standard Time, Azerbaijan Standard Time, Russia Time Zone 3, Mauritius Standard Time, Georgian Standard Time, Caucasus Standard Time, Afghanistan Standard Time, West Asia Standard Time, Ekaterinburg Standard Time, Pakistan Standard Time, India Standard Time, Sri Lanka Standard Time, Nepal Standard Time, Central Asia Standard Time, Bangladesh Standard Time, N. Central Asia Standard Time, Myanmar Standard Time, SE Asia Standard Time, North Asia Standard Time, China Standard Time, North Asia East Standard Time, Singapore Standard Time, W. Australia Standard Time, Taipei Standard Time, Ulaanbaatar Standard Time, Tokyo Standard Time, Korea Standard Time, Yakutsk Standard Time, Cen. Australia Standard Time, AUS Central Standard Time, E. Australia Standard Time, AUS Eastern Standard Time, West Pacific Standard Time, Tasmania Standard Time, Magadan Standard Time, Vladivostok Standard Time, Russia Time Zone 10, Central Pacific Standard Time, Russia Time Zone 11, New Zealand Standard Time, UTC+12, Fiji Standard Time, Kamchatka Standard Time, Tonga Standard Time, Samoa Standard Time, Line Islands Standard Time"
+ }
+ },
+ "type": "object",
+ "required": [
+ "days",
+ "hours",
+ "minutes",
+ "timeZone"
+ ]
+ },
+ "azure-native:monitor:RecurrentScheduleResponse": {
+ "description": "The scheduling constraints for when the profile begins.",
+ "properties": {
+ "days": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "the collection of days that the profile takes effect on. Possible values are Sunday through Saturday."
+ },
+ "hours": {
+ "type": "array",
+ "items": {
+ "type": "integer"
+ },
+ "description": "A collection of hours that the profile takes effect on. Values supported are 0 to 23 on the 24-hour clock (AM/PM times are not supported)."
+ },
+ "minutes": {
+ "type": "array",
+ "items": {
+ "type": "integer"
+ },
+ "description": "A collection of minutes at which the profile takes effect at."
+ },
+ "timeZone": {
+ "type": "string",
+ "description": "the timezone for the hours of the profile. Some examples of valid time zones are: Dateline Standard Time, UTC-11, Hawaiian Standard Time, Alaskan Standard Time, Pacific Standard Time (Mexico), Pacific Standard Time, US Mountain Standard Time, Mountain Standard Time (Mexico), Mountain Standard Time, Central America Standard Time, Central Standard Time, Central Standard Time (Mexico), Canada Central Standard Time, SA Pacific Standard Time, Eastern Standard Time, US Eastern Standard Time, Venezuela Standard Time, Paraguay Standard Time, Atlantic Standard Time, Central Brazilian Standard Time, SA Western Standard Time, Pacific SA Standard Time, Newfoundland Standard Time, E. South America Standard Time, Argentina Standard Time, SA Eastern Standard Time, Greenland Standard Time, Montevideo Standard Time, Bahia Standard Time, UTC-02, Mid-Atlantic Standard Time, Azores Standard Time, Cape Verde Standard Time, Morocco Standard Time, UTC, GMT Standard Time, Greenwich Standard Time, W. Europe Standard Time, Central Europe Standard Time, Romance Standard Time, Central European Standard Time, W. Central Africa Standard Time, Namibia Standard Time, Jordan Standard Time, GTB Standard Time, Middle East Standard Time, Egypt Standard Time, Syria Standard Time, E. Europe Standard Time, South Africa Standard Time, FLE Standard Time, Turkey Standard Time, Israel Standard Time, Kaliningrad Standard Time, Libya Standard Time, Arabic Standard Time, Arab Standard Time, Belarus Standard Time, Russian Standard Time, E. Africa Standard Time, Iran Standard Time, Arabian Standard Time, Azerbaijan Standard Time, Russia Time Zone 3, Mauritius Standard Time, Georgian Standard Time, Caucasus Standard Time, Afghanistan Standard Time, West Asia Standard Time, Ekaterinburg Standard Time, Pakistan Standard Time, India Standard Time, Sri Lanka Standard Time, Nepal Standard Time, Central Asia Standard Time, Bangladesh Standard Time, N. Central Asia Standard Time, Myanmar Standard Time, SE Asia Standard Time, North Asia Standard Time, China Standard Time, North Asia East Standard Time, Singapore Standard Time, W. Australia Standard Time, Taipei Standard Time, Ulaanbaatar Standard Time, Tokyo Standard Time, Korea Standard Time, Yakutsk Standard Time, Cen. Australia Standard Time, AUS Central Standard Time, E. Australia Standard Time, AUS Eastern Standard Time, West Pacific Standard Time, Tasmania Standard Time, Magadan Standard Time, Vladivostok Standard Time, Russia Time Zone 10, Central Pacific Standard Time, Russia Time Zone 11, New Zealand Standard Time, UTC+12, Fiji Standard Time, Kamchatka Standard Time, Tonga Standard Time, Samoa Standard Time, Line Islands Standard Time"
+ }
+ },
+ "type": "object",
+ "required": [
+ "days",
+ "hours",
+ "minutes",
+ "timeZone"
+ ]
+ },
"azure-native:monitor:ResourceMap": {
"description": "Resource map for schema in azure monitor.",
"properties": {
@@ -423310,6 +424098,42 @@
"to"
]
},
+ "azure-native:monitor:RetentionPolicy": {
+ "description": "Specifies the retention policy for the log.",
+ "properties": {
+ "days": {
+ "type": "integer",
+ "description": "the number of days for the retention in days. A value of 0 will retain the events indefinitely."
+ },
+ "enabled": {
+ "type": "boolean",
+ "description": "a value indicating whether the retention policy is enabled."
+ }
+ },
+ "type": "object",
+ "required": [
+ "days",
+ "enabled"
+ ]
+ },
+ "azure-native:monitor:RetentionPolicyResponse": {
+ "description": "Specifies the retention policy for the log.",
+ "properties": {
+ "days": {
+ "type": "integer",
+ "description": "the number of days for the retention in days. A value of 0 will retain the events indefinitely."
+ },
+ "enabled": {
+ "type": "boolean",
+ "description": "a value indicating whether the retention policy is enabled."
+ }
+ },
+ "type": "object",
+ "required": [
+ "days",
+ "enabled"
+ ]
+ },
"azure-native:monitor:RuleResolveConfiguration": {
"description": "TBD. Relevant only for rules of the kind LogAlert.",
"properties": {
@@ -423338,6 +424162,252 @@
},
"type": "object"
},
+ "azure-native:monitor:ScaleAction": {
+ "description": "The parameters for the scaling action.",
+ "properties": {
+ "cooldown": {
+ "type": "string",
+ "description": "the amount of time to wait since the last scaling action before this action occurs. It must be between 1 week and 1 minute in ISO 8601 format."
+ },
+ "direction": {
+ "$ref": "#/types/azure-native:monitor:ScaleDirection",
+ "description": "the scale direction. Whether the scaling action increases or decreases the number of instances."
+ },
+ "type": {
+ "$ref": "#/types/azure-native:monitor:ScaleType",
+ "description": "the type of action that should occur when the scale rule fires."
+ },
+ "value": {
+ "type": "string",
+ "description": "the number of instances that are involved in the scaling action. This value must be 1 or greater. The default value is 1.",
+ "default": "1"
+ }
+ },
+ "type": "object",
+ "required": [
+ "cooldown",
+ "direction",
+ "type"
+ ]
+ },
+ "azure-native:monitor:ScaleActionResponse": {
+ "description": "The parameters for the scaling action.",
+ "properties": {
+ "cooldown": {
+ "type": "string",
+ "description": "the amount of time to wait since the last scaling action before this action occurs. It must be between 1 week and 1 minute in ISO 8601 format."
+ },
+ "direction": {
+ "type": "string",
+ "description": "the scale direction. Whether the scaling action increases or decreases the number of instances."
+ },
+ "type": {
+ "type": "string",
+ "description": "the type of action that should occur when the scale rule fires."
+ },
+ "value": {
+ "type": "string",
+ "description": "the number of instances that are involved in the scaling action. This value must be 1 or greater. The default value is 1.",
+ "default": "1"
+ }
+ },
+ "type": "object",
+ "required": [
+ "cooldown",
+ "direction",
+ "type"
+ ]
+ },
+ "azure-native:monitor:ScaleCapacity": {
+ "description": "The number of instances that can be used during this profile.",
+ "properties": {
+ "default": {
+ "type": "string",
+ "description": "the number of instances that will be set if metrics are not available for evaluation. The default is only used if the current instance count is lower than the default."
+ },
+ "maximum": {
+ "type": "string",
+ "description": "the maximum number of instances for the resource. The actual maximum number of instances is limited by the cores that are available in the subscription."
+ },
+ "minimum": {
+ "type": "string",
+ "description": "the minimum number of instances for the resource."
+ }
+ },
+ "type": "object",
+ "required": [
+ "default",
+ "maximum",
+ "minimum"
+ ]
+ },
+ "azure-native:monitor:ScaleCapacityResponse": {
+ "description": "The number of instances that can be used during this profile.",
+ "properties": {
+ "default": {
+ "type": "string",
+ "description": "the number of instances that will be set if metrics are not available for evaluation. The default is only used if the current instance count is lower than the default."
+ },
+ "maximum": {
+ "type": "string",
+ "description": "the maximum number of instances for the resource. The actual maximum number of instances is limited by the cores that are available in the subscription."
+ },
+ "minimum": {
+ "type": "string",
+ "description": "the minimum number of instances for the resource."
+ }
+ },
+ "type": "object",
+ "required": [
+ "default",
+ "maximum",
+ "minimum"
+ ]
+ },
+ "azure-native:monitor:ScaleDirection": {
+ "description": "the scale direction. Whether the scaling action increases or decreases the number of instances.",
+ "type": "string",
+ "enum": [
+ {
+ "value": "None"
+ },
+ {
+ "value": "Increase"
+ },
+ {
+ "value": "Decrease"
+ }
+ ]
+ },
+ "azure-native:monitor:ScaleRule": {
+ "description": "A rule that provide the triggers and parameters for the scaling action.",
+ "properties": {
+ "metricTrigger": {
+ "type": "object",
+ "$ref": "#/types/azure-native:monitor:MetricTrigger",
+ "description": "the trigger that results in a scaling action."
+ },
+ "scaleAction": {
+ "type": "object",
+ "$ref": "#/types/azure-native:monitor:ScaleAction",
+ "description": "the parameters for the scaling action."
+ }
+ },
+ "type": "object",
+ "required": [
+ "metricTrigger",
+ "scaleAction"
+ ]
+ },
+ "azure-native:monitor:ScaleRuleMetricDimension": {
+ "description": "Specifies an auto scale rule metric dimension.",
+ "properties": {
+ "dimensionName": {
+ "type": "string",
+ "description": "Name of the dimension."
+ },
+ "operator": {
+ "oneOf": [
+ {
+ "type": "string"
+ },
+ {
+ "$ref": "#/types/azure-native:monitor:ScaleRuleMetricDimensionOperationType"
+ }
+ ],
+ "description": "the dimension operator. Only 'Equals' and 'NotEquals' are supported. 'Equals' being equal to any of the values. 'NotEquals' being not equal to all of the values"
+ },
+ "values": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "list of dimension values. For example: [\"App1\",\"App2\"]."
+ }
+ },
+ "type": "object",
+ "required": [
+ "dimensionName",
+ "operator",
+ "values"
+ ]
+ },
+ "azure-native:monitor:ScaleRuleMetricDimensionOperationType": {
+ "description": "the dimension operator. Only 'Equals' and 'NotEquals' are supported. 'Equals' being equal to any of the values. 'NotEquals' being not equal to all of the values",
+ "type": "string",
+ "enum": [
+ {
+ "value": "Equals"
+ },
+ {
+ "value": "NotEquals"
+ }
+ ]
+ },
+ "azure-native:monitor:ScaleRuleMetricDimensionResponse": {
+ "description": "Specifies an auto scale rule metric dimension.",
+ "properties": {
+ "dimensionName": {
+ "type": "string",
+ "description": "Name of the dimension."
+ },
+ "operator": {
+ "type": "string",
+ "description": "the dimension operator. Only 'Equals' and 'NotEquals' are supported. 'Equals' being equal to any of the values. 'NotEquals' being not equal to all of the values"
+ },
+ "values": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "list of dimension values. For example: [\"App1\",\"App2\"]."
+ }
+ },
+ "type": "object",
+ "required": [
+ "dimensionName",
+ "operator",
+ "values"
+ ]
+ },
+ "azure-native:monitor:ScaleRuleResponse": {
+ "description": "A rule that provide the triggers and parameters for the scaling action.",
+ "properties": {
+ "metricTrigger": {
+ "type": "object",
+ "$ref": "#/types/azure-native:monitor:MetricTriggerResponse",
+ "description": "the trigger that results in a scaling action."
+ },
+ "scaleAction": {
+ "type": "object",
+ "$ref": "#/types/azure-native:monitor:ScaleActionResponse",
+ "description": "the parameters for the scaling action."
+ }
+ },
+ "type": "object",
+ "required": [
+ "metricTrigger",
+ "scaleAction"
+ ]
+ },
+ "azure-native:monitor:ScaleType": {
+ "description": "the type of action that should occur when the scale rule fires.",
+ "type": "string",
+ "enum": [
+ {
+ "value": "ChangeCount"
+ },
+ {
+ "value": "PercentChangeCount"
+ },
+ {
+ "value": "ExactCount"
+ },
+ {
+ "value": "ServiceAllowedNextValue"
+ }
+ ]
+ },
"azure-native:monitor:ScheduledQueryRuleCriteria": {
"description": "The rule criteria that defines the conditions of the scheduled query rule.",
"properties": {
@@ -423611,6 +424681,48 @@
}
]
},
+ "azure-native:monitor:SubscriptionLogSettings": {
+ "description": "Part of Subscription diagnostic setting. Specifies the settings for a particular log.",
+ "properties": {
+ "category": {
+ "type": "string",
+ "description": "Name of a Subscription Diagnostic Log category for a resource type this setting is applied to."
+ },
+ "categoryGroup": {
+ "type": "string",
+ "description": "Name of a Subscription Diagnostic Log category group for a resource type this setting is applied to."
+ },
+ "enabled": {
+ "type": "boolean",
+ "description": "a value indicating whether this log is enabled."
+ }
+ },
+ "type": "object",
+ "required": [
+ "enabled"
+ ]
+ },
+ "azure-native:monitor:SubscriptionLogSettingsResponse": {
+ "description": "Part of Subscription diagnostic setting. Specifies the settings for a particular log.",
+ "properties": {
+ "category": {
+ "type": "string",
+ "description": "Name of a Subscription Diagnostic Log category for a resource type this setting is applied to."
+ },
+ "categoryGroup": {
+ "type": "string",
+ "description": "Name of a Subscription Diagnostic Log category group for a resource type this setting is applied to."
+ },
+ "enabled": {
+ "type": "boolean",
+ "description": "a value indicating whether this log is enabled."
+ }
+ },
+ "type": "object",
+ "required": [
+ "enabled"
+ ]
+ },
"azure-native:monitor:SyslogProtocol": {
"description": "Protocol to parse syslog messages. Default rfc3164",
"type": "string",
@@ -423747,6 +424859,74 @@
}
]
},
+ "azure-native:monitor:TimeAggregationType": {
+ "description": "time aggregation type. How the data that is collected should be combined over time. The default value is Average.",
+ "type": "string",
+ "enum": [
+ {
+ "value": "Average"
+ },
+ {
+ "value": "Minimum"
+ },
+ {
+ "value": "Maximum"
+ },
+ {
+ "value": "Total"
+ },
+ {
+ "value": "Count"
+ },
+ {
+ "value": "Last"
+ }
+ ]
+ },
+ "azure-native:monitor:TimeWindow": {
+ "description": "A specific date-time for the profile.",
+ "properties": {
+ "end": {
+ "type": "string",
+ "description": "the end time for the profile in ISO 8601 format."
+ },
+ "start": {
+ "type": "string",
+ "description": "the start time for the profile in ISO 8601 format."
+ },
+ "timeZone": {
+ "type": "string",
+ "description": "the timezone of the start and end times for the profile. Some examples of valid time zones are: Dateline Standard Time, UTC-11, Hawaiian Standard Time, Alaskan Standard Time, Pacific Standard Time (Mexico), Pacific Standard Time, US Mountain Standard Time, Mountain Standard Time (Mexico), Mountain Standard Time, Central America Standard Time, Central Standard Time, Central Standard Time (Mexico), Canada Central Standard Time, SA Pacific Standard Time, Eastern Standard Time, US Eastern Standard Time, Venezuela Standard Time, Paraguay Standard Time, Atlantic Standard Time, Central Brazilian Standard Time, SA Western Standard Time, Pacific SA Standard Time, Newfoundland Standard Time, E. South America Standard Time, Argentina Standard Time, SA Eastern Standard Time, Greenland Standard Time, Montevideo Standard Time, Bahia Standard Time, UTC-02, Mid-Atlantic Standard Time, Azores Standard Time, Cape Verde Standard Time, Morocco Standard Time, UTC, GMT Standard Time, Greenwich Standard Time, W. Europe Standard Time, Central Europe Standard Time, Romance Standard Time, Central European Standard Time, W. Central Africa Standard Time, Namibia Standard Time, Jordan Standard Time, GTB Standard Time, Middle East Standard Time, Egypt Standard Time, Syria Standard Time, E. Europe Standard Time, South Africa Standard Time, FLE Standard Time, Turkey Standard Time, Israel Standard Time, Kaliningrad Standard Time, Libya Standard Time, Arabic Standard Time, Arab Standard Time, Belarus Standard Time, Russian Standard Time, E. Africa Standard Time, Iran Standard Time, Arabian Standard Time, Azerbaijan Standard Time, Russia Time Zone 3, Mauritius Standard Time, Georgian Standard Time, Caucasus Standard Time, Afghanistan Standard Time, West Asia Standard Time, Ekaterinburg Standard Time, Pakistan Standard Time, India Standard Time, Sri Lanka Standard Time, Nepal Standard Time, Central Asia Standard Time, Bangladesh Standard Time, N. Central Asia Standard Time, Myanmar Standard Time, SE Asia Standard Time, North Asia Standard Time, China Standard Time, North Asia East Standard Time, Singapore Standard Time, W. Australia Standard Time, Taipei Standard Time, Ulaanbaatar Standard Time, Tokyo Standard Time, Korea Standard Time, Yakutsk Standard Time, Cen. Australia Standard Time, AUS Central Standard Time, E. Australia Standard Time, AUS Eastern Standard Time, West Pacific Standard Time, Tasmania Standard Time, Magadan Standard Time, Vladivostok Standard Time, Russia Time Zone 10, Central Pacific Standard Time, Russia Time Zone 11, New Zealand Standard Time, UTC+12, Fiji Standard Time, Kamchatka Standard Time, Tonga Standard Time, Samoa Standard Time, Line Islands Standard Time"
+ }
+ },
+ "type": "object",
+ "required": [
+ "end",
+ "start"
+ ]
+ },
+ "azure-native:monitor:TimeWindowResponse": {
+ "description": "A specific date-time for the profile.",
+ "properties": {
+ "end": {
+ "type": "string",
+ "description": "the end time for the profile in ISO 8601 format."
+ },
+ "start": {
+ "type": "string",
+ "description": "the start time for the profile in ISO 8601 format."
+ },
+ "timeZone": {
+ "type": "string",
+ "description": "the timezone of the start and end times for the profile. Some examples of valid time zones are: Dateline Standard Time, UTC-11, Hawaiian Standard Time, Alaskan Standard Time, Pacific Standard Time (Mexico), Pacific Standard Time, US Mountain Standard Time, Mountain Standard Time (Mexico), Mountain Standard Time, Central America Standard Time, Central Standard Time, Central Standard Time (Mexico), Canada Central Standard Time, SA Pacific Standard Time, Eastern Standard Time, US Eastern Standard Time, Venezuela Standard Time, Paraguay Standard Time, Atlantic Standard Time, Central Brazilian Standard Time, SA Western Standard Time, Pacific SA Standard Time, Newfoundland Standard Time, E. South America Standard Time, Argentina Standard Time, SA Eastern Standard Time, Greenland Standard Time, Montevideo Standard Time, Bahia Standard Time, UTC-02, Mid-Atlantic Standard Time, Azores Standard Time, Cape Verde Standard Time, Morocco Standard Time, UTC, GMT Standard Time, Greenwich Standard Time, W. Europe Standard Time, Central Europe Standard Time, Romance Standard Time, Central European Standard Time, W. Central Africa Standard Time, Namibia Standard Time, Jordan Standard Time, GTB Standard Time, Middle East Standard Time, Egypt Standard Time, Syria Standard Time, E. Europe Standard Time, South Africa Standard Time, FLE Standard Time, Turkey Standard Time, Israel Standard Time, Kaliningrad Standard Time, Libya Standard Time, Arabic Standard Time, Arab Standard Time, Belarus Standard Time, Russian Standard Time, E. Africa Standard Time, Iran Standard Time, Arabian Standard Time, Azerbaijan Standard Time, Russia Time Zone 3, Mauritius Standard Time, Georgian Standard Time, Caucasus Standard Time, Afghanistan Standard Time, West Asia Standard Time, Ekaterinburg Standard Time, Pakistan Standard Time, India Standard Time, Sri Lanka Standard Time, Nepal Standard Time, Central Asia Standard Time, Bangladesh Standard Time, N. Central Asia Standard Time, Myanmar Standard Time, SE Asia Standard Time, North Asia Standard Time, China Standard Time, North Asia East Standard Time, Singapore Standard Time, W. Australia Standard Time, Taipei Standard Time, Ulaanbaatar Standard Time, Tokyo Standard Time, Korea Standard Time, Yakutsk Standard Time, Cen. Australia Standard Time, AUS Central Standard Time, E. Australia Standard Time, AUS Eastern Standard Time, West Pacific Standard Time, Tasmania Standard Time, Magadan Standard Time, Vladivostok Standard Time, Russia Time Zone 10, Central Pacific Standard Time, Russia Time Zone 11, New Zealand Standard Time, UTC+12, Fiji Standard Time, Kamchatka Standard Time, Tonga Standard Time, Samoa Standard Time, Line Islands Standard Time"
+ }
+ },
+ "type": "object",
+ "required": [
+ "end",
+ "start"
+ ]
+ },
"azure-native:monitor:UdpReceiver": {
"description": "Receiver using UDP as transport protocol.",
"properties": {
@@ -423892,6 +425072,40 @@
"phoneNumber"
]
},
+ "azure-native:monitor:WebhookNotification": {
+ "description": "Webhook notification of an autoscale event.",
+ "properties": {
+ "properties": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ },
+ "description": "a property bag of settings. This value can be empty."
+ },
+ "serviceUri": {
+ "type": "string",
+ "description": "the service address to receive the notification."
+ }
+ },
+ "type": "object"
+ },
+ "azure-native:monitor:WebhookNotificationResponse": {
+ "description": "Webhook notification of an autoscale event.",
+ "properties": {
+ "properties": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ },
+ "description": "a property bag of settings. This value can be empty."
+ },
+ "serviceUri": {
+ "type": "string",
+ "description": "the service address to receive the notification."
+ }
+ },
+ "type": "object"
+ },
"azure-native:monitor:WebhookReceiver": {
"description": "A webhook receiver.",
"properties": {
@@ -767047,6 +768261,139 @@
}
]
},
+ "azure-native:monitor:AutoscaleSetting": {
+ "description": "The autoscale setting resource.\n\nUses Azure REST API version 2021-05-01-preview.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n### Create or update an autoscale setting\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing AzureNative = Pulumi.AzureNative;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var autoscaleSetting = new AzureNative.Monitor.AutoscaleSetting(\"autoscaleSetting\", new()\n {\n AutoscaleSettingName = \"MySetting\",\n Enabled = true,\n Location = \"West US\",\n Notifications = new[]\n {\n new AzureNative.Monitor.Inputs.AutoscaleNotificationArgs\n {\n Email = new AzureNative.Monitor.Inputs.EmailNotificationArgs\n {\n CustomEmails = new[]\n {\n \"gu@ms.com\",\n \"ge@ns.net\",\n },\n SendToSubscriptionAdministrator = true,\n SendToSubscriptionCoAdministrators = true,\n },\n Operation = AzureNative.Monitor.OperationType.Scale,\n Webhooks = new[]\n {\n new AzureNative.Monitor.Inputs.WebhookNotificationArgs\n {\n Properties = null,\n ServiceUri = \"http://myservice.com\",\n },\n },\n },\n },\n PredictiveAutoscalePolicy = new AzureNative.Monitor.Inputs.PredictiveAutoscalePolicyArgs\n {\n ScaleMode = AzureNative.Monitor.PredictiveAutoscalePolicyScaleMode.Enabled,\n },\n Profiles = new[]\n {\n new AzureNative.Monitor.Inputs.AutoscaleProfileArgs\n {\n Capacity = new AzureNative.Monitor.Inputs.ScaleCapacityArgs\n {\n Default = \"1\",\n Maximum = \"10\",\n Minimum = \"1\",\n },\n FixedDate = new AzureNative.Monitor.Inputs.TimeWindowArgs\n {\n End = \"2015-03-05T14:30:00Z\",\n Start = \"2015-03-05T14:00:00Z\",\n TimeZone = \"UTC\",\n },\n Name = \"adios\",\n Rules = new[]\n {\n new AzureNative.Monitor.Inputs.ScaleRuleArgs\n {\n MetricTrigger = new AzureNative.Monitor.Inputs.MetricTriggerArgs\n {\n DividePerInstance = false,\n MetricName = \"Percentage CPU\",\n MetricResourceUri = \"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc\",\n Operator = AzureNative.Monitor.ComparisonOperationType.GreaterThan,\n Statistic = AzureNative.Monitor.MetricStatisticType.Average,\n Threshold = 10,\n TimeAggregation = AzureNative.Monitor.TimeAggregationType.Average,\n TimeGrain = \"PT1M\",\n TimeWindow = \"PT5M\",\n },\n ScaleAction = new AzureNative.Monitor.Inputs.ScaleActionArgs\n {\n Cooldown = \"PT5M\",\n Direction = AzureNative.Monitor.ScaleDirection.Increase,\n Type = AzureNative.Monitor.ScaleType.ChangeCount,\n Value = \"1\",\n },\n },\n new AzureNative.Monitor.Inputs.ScaleRuleArgs\n {\n MetricTrigger = new AzureNative.Monitor.Inputs.MetricTriggerArgs\n {\n DividePerInstance = false,\n MetricName = \"Percentage CPU\",\n MetricResourceUri = \"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc\",\n Operator = AzureNative.Monitor.ComparisonOperationType.GreaterThan,\n Statistic = AzureNative.Monitor.MetricStatisticType.Average,\n Threshold = 15,\n TimeAggregation = AzureNative.Monitor.TimeAggregationType.Average,\n TimeGrain = \"PT2M\",\n TimeWindow = \"PT5M\",\n },\n ScaleAction = new AzureNative.Monitor.Inputs.ScaleActionArgs\n {\n Cooldown = \"PT6M\",\n Direction = AzureNative.Monitor.ScaleDirection.Decrease,\n Type = AzureNative.Monitor.ScaleType.ChangeCount,\n Value = \"2\",\n },\n },\n },\n },\n new AzureNative.Monitor.Inputs.AutoscaleProfileArgs\n {\n Capacity = new AzureNative.Monitor.Inputs.ScaleCapacityArgs\n {\n Default = \"1\",\n Maximum = \"10\",\n Minimum = \"1\",\n },\n Name = \"saludos\",\n Recurrence = new AzureNative.Monitor.Inputs.RecurrenceArgs\n {\n Frequency = AzureNative.Monitor.RecurrenceFrequency.Week,\n Schedule = new AzureNative.Monitor.Inputs.RecurrentScheduleArgs\n {\n Days = new[]\n {\n \"1\",\n },\n Hours = new[]\n {\n 5,\n },\n Minutes = new[]\n {\n 15,\n },\n TimeZone = \"UTC\",\n },\n },\n Rules = new[]\n {\n new AzureNative.Monitor.Inputs.ScaleRuleArgs\n {\n MetricTrigger = new AzureNative.Monitor.Inputs.MetricTriggerArgs\n {\n DividePerInstance = false,\n MetricName = \"Percentage CPU\",\n MetricResourceUri = \"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc\",\n Operator = AzureNative.Monitor.ComparisonOperationType.GreaterThan,\n Statistic = AzureNative.Monitor.MetricStatisticType.Average,\n Threshold = 10,\n TimeAggregation = AzureNative.Monitor.TimeAggregationType.Average,\n TimeGrain = \"PT1M\",\n TimeWindow = \"PT5M\",\n },\n ScaleAction = new AzureNative.Monitor.Inputs.ScaleActionArgs\n {\n Cooldown = \"PT5M\",\n Direction = AzureNative.Monitor.ScaleDirection.Increase,\n Type = AzureNative.Monitor.ScaleType.ChangeCount,\n Value = \"1\",\n },\n },\n new AzureNative.Monitor.Inputs.ScaleRuleArgs\n {\n MetricTrigger = new AzureNative.Monitor.Inputs.MetricTriggerArgs\n {\n DividePerInstance = false,\n MetricName = \"Percentage CPU\",\n MetricResourceUri = \"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc\",\n Operator = AzureNative.Monitor.ComparisonOperationType.GreaterThan,\n Statistic = AzureNative.Monitor.MetricStatisticType.Average,\n Threshold = 15,\n TimeAggregation = AzureNative.Monitor.TimeAggregationType.Average,\n TimeGrain = \"PT2M\",\n TimeWindow = \"PT5M\",\n },\n ScaleAction = new AzureNative.Monitor.Inputs.ScaleActionArgs\n {\n Cooldown = \"PT6M\",\n Direction = AzureNative.Monitor.ScaleDirection.Decrease,\n Type = AzureNative.Monitor.ScaleType.ChangeCount,\n Value = \"2\",\n },\n },\n },\n },\n },\n ResourceGroupName = \"TestingMetricsScaleSet\",\n Tags = \n {\n { \"key1\", \"value1\" },\n { \"key2\", \"value2\" },\n },\n TargetResourceUri = \"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc\",\n });\n\n});\n\n\n```\n\n```go\npackage main\n\nimport (\n\tmonitor \"github.com/pulumi/pulumi-azure-native-sdk/monitor/v2\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := monitor.NewAutoscaleSetting(ctx, \"autoscaleSetting\", \u0026monitor.AutoscaleSettingArgs{\n\t\t\tAutoscaleSettingName: pulumi.String(\"MySetting\"),\n\t\t\tEnabled: pulumi.Bool(true),\n\t\t\tLocation: pulumi.String(\"West US\"),\n\t\t\tNotifications: monitor.AutoscaleNotificationArray{\n\t\t\t\t\u0026monitor.AutoscaleNotificationArgs{\n\t\t\t\t\tEmail: \u0026monitor.EmailNotificationArgs{\n\t\t\t\t\t\tCustomEmails: pulumi.StringArray{\n\t\t\t\t\t\t\tpulumi.String(\"gu@ms.com\"),\n\t\t\t\t\t\t\tpulumi.String(\"ge@ns.net\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t\tSendToSubscriptionAdministrator: pulumi.Bool(true),\n\t\t\t\t\t\tSendToSubscriptionCoAdministrators: pulumi.Bool(true),\n\t\t\t\t\t},\n\t\t\t\t\tOperation: monitor.OperationTypeScale,\n\t\t\t\t\tWebhooks: monitor.WebhookNotificationArray{\n\t\t\t\t\t\t\u0026monitor.WebhookNotificationArgs{\n\t\t\t\t\t\t\tProperties: pulumi.StringMap{},\n\t\t\t\t\t\t\tServiceUri: pulumi.String(\"http://myservice.com\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tPredictiveAutoscalePolicy: \u0026monitor.PredictiveAutoscalePolicyArgs{\n\t\t\t\tScaleMode: monitor.PredictiveAutoscalePolicyScaleModeEnabled,\n\t\t\t},\n\t\t\tProfiles: monitor.AutoscaleProfileArray{\n\t\t\t\t\u0026monitor.AutoscaleProfileArgs{\n\t\t\t\t\tCapacity: \u0026monitor.ScaleCapacityArgs{\n\t\t\t\t\t\tDefault: pulumi.String(\"1\"),\n\t\t\t\t\t\tMaximum: pulumi.String(\"10\"),\n\t\t\t\t\t\tMinimum: pulumi.String(\"1\"),\n\t\t\t\t\t},\n\t\t\t\t\tFixedDate: \u0026monitor.TimeWindowArgs{\n\t\t\t\t\t\tEnd: pulumi.String(\"2015-03-05T14:30:00Z\"),\n\t\t\t\t\t\tStart: pulumi.String(\"2015-03-05T14:00:00Z\"),\n\t\t\t\t\t\tTimeZone: pulumi.String(\"UTC\"),\n\t\t\t\t\t},\n\t\t\t\t\tName: pulumi.String(\"adios\"),\n\t\t\t\t\tRules: monitor.ScaleRuleArray{\n\t\t\t\t\t\t\u0026monitor.ScaleRuleArgs{\n\t\t\t\t\t\t\tMetricTrigger: \u0026monitor.MetricTriggerArgs{\n\t\t\t\t\t\t\t\tDividePerInstance: pulumi.Bool(false),\n\t\t\t\t\t\t\t\tMetricName: pulumi.String(\"Percentage CPU\"),\n\t\t\t\t\t\t\t\tMetricResourceUri: pulumi.String(\"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc\"),\n\t\t\t\t\t\t\t\tOperator: monitor.ComparisonOperationTypeGreaterThan,\n\t\t\t\t\t\t\t\tStatistic: monitor.MetricStatisticTypeAverage,\n\t\t\t\t\t\t\t\tThreshold: pulumi.Float64(10),\n\t\t\t\t\t\t\t\tTimeAggregation: monitor.TimeAggregationTypeAverage,\n\t\t\t\t\t\t\t\tTimeGrain: pulumi.String(\"PT1M\"),\n\t\t\t\t\t\t\t\tTimeWindow: pulumi.String(\"PT5M\"),\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tScaleAction: \u0026monitor.ScaleActionArgs{\n\t\t\t\t\t\t\t\tCooldown: pulumi.String(\"PT5M\"),\n\t\t\t\t\t\t\t\tDirection: monitor.ScaleDirectionIncrease,\n\t\t\t\t\t\t\t\tType: monitor.ScaleTypeChangeCount,\n\t\t\t\t\t\t\t\tValue: pulumi.String(\"1\"),\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\u0026monitor.ScaleRuleArgs{\n\t\t\t\t\t\t\tMetricTrigger: \u0026monitor.MetricTriggerArgs{\n\t\t\t\t\t\t\t\tDividePerInstance: pulumi.Bool(false),\n\t\t\t\t\t\t\t\tMetricName: pulumi.String(\"Percentage CPU\"),\n\t\t\t\t\t\t\t\tMetricResourceUri: pulumi.String(\"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc\"),\n\t\t\t\t\t\t\t\tOperator: monitor.ComparisonOperationTypeGreaterThan,\n\t\t\t\t\t\t\t\tStatistic: monitor.MetricStatisticTypeAverage,\n\t\t\t\t\t\t\t\tThreshold: pulumi.Float64(15),\n\t\t\t\t\t\t\t\tTimeAggregation: monitor.TimeAggregationTypeAverage,\n\t\t\t\t\t\t\t\tTimeGrain: pulumi.String(\"PT2M\"),\n\t\t\t\t\t\t\t\tTimeWindow: pulumi.String(\"PT5M\"),\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tScaleAction: \u0026monitor.ScaleActionArgs{\n\t\t\t\t\t\t\t\tCooldown: pulumi.String(\"PT6M\"),\n\t\t\t\t\t\t\t\tDirection: monitor.ScaleDirectionDecrease,\n\t\t\t\t\t\t\t\tType: monitor.ScaleTypeChangeCount,\n\t\t\t\t\t\t\t\tValue: pulumi.String(\"2\"),\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\t\u0026monitor.AutoscaleProfileArgs{\n\t\t\t\t\tCapacity: \u0026monitor.ScaleCapacityArgs{\n\t\t\t\t\t\tDefault: pulumi.String(\"1\"),\n\t\t\t\t\t\tMaximum: pulumi.String(\"10\"),\n\t\t\t\t\t\tMinimum: pulumi.String(\"1\"),\n\t\t\t\t\t},\n\t\t\t\t\tName: pulumi.String(\"saludos\"),\n\t\t\t\t\tRecurrence: \u0026monitor.RecurrenceArgs{\n\t\t\t\t\t\tFrequency: monitor.RecurrenceFrequencyWeek,\n\t\t\t\t\t\tSchedule: \u0026monitor.RecurrentScheduleArgs{\n\t\t\t\t\t\t\tDays: pulumi.StringArray{\n\t\t\t\t\t\t\t\tpulumi.String(\"1\"),\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tHours: pulumi.IntArray{\n\t\t\t\t\t\t\t\tpulumi.Int(5),\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tMinutes: pulumi.IntArray{\n\t\t\t\t\t\t\t\tpulumi.Int(15),\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tTimeZone: pulumi.String(\"UTC\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t\tRules: monitor.ScaleRuleArray{\n\t\t\t\t\t\t\u0026monitor.ScaleRuleArgs{\n\t\t\t\t\t\t\tMetricTrigger: \u0026monitor.MetricTriggerArgs{\n\t\t\t\t\t\t\t\tDividePerInstance: pulumi.Bool(false),\n\t\t\t\t\t\t\t\tMetricName: pulumi.String(\"Percentage CPU\"),\n\t\t\t\t\t\t\t\tMetricResourceUri: pulumi.String(\"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc\"),\n\t\t\t\t\t\t\t\tOperator: monitor.ComparisonOperationTypeGreaterThan,\n\t\t\t\t\t\t\t\tStatistic: monitor.MetricStatisticTypeAverage,\n\t\t\t\t\t\t\t\tThreshold: pulumi.Float64(10),\n\t\t\t\t\t\t\t\tTimeAggregation: monitor.TimeAggregationTypeAverage,\n\t\t\t\t\t\t\t\tTimeGrain: pulumi.String(\"PT1M\"),\n\t\t\t\t\t\t\t\tTimeWindow: pulumi.String(\"PT5M\"),\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tScaleAction: \u0026monitor.ScaleActionArgs{\n\t\t\t\t\t\t\t\tCooldown: pulumi.String(\"PT5M\"),\n\t\t\t\t\t\t\t\tDirection: monitor.ScaleDirectionIncrease,\n\t\t\t\t\t\t\t\tType: monitor.ScaleTypeChangeCount,\n\t\t\t\t\t\t\t\tValue: pulumi.String(\"1\"),\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\u0026monitor.ScaleRuleArgs{\n\t\t\t\t\t\t\tMetricTrigger: \u0026monitor.MetricTriggerArgs{\n\t\t\t\t\t\t\t\tDividePerInstance: pulumi.Bool(false),\n\t\t\t\t\t\t\t\tMetricName: pulumi.String(\"Percentage CPU\"),\n\t\t\t\t\t\t\t\tMetricResourceUri: pulumi.String(\"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc\"),\n\t\t\t\t\t\t\t\tOperator: monitor.ComparisonOperationTypeGreaterThan,\n\t\t\t\t\t\t\t\tStatistic: monitor.MetricStatisticTypeAverage,\n\t\t\t\t\t\t\t\tThreshold: pulumi.Float64(15),\n\t\t\t\t\t\t\t\tTimeAggregation: monitor.TimeAggregationTypeAverage,\n\t\t\t\t\t\t\t\tTimeGrain: pulumi.String(\"PT2M\"),\n\t\t\t\t\t\t\t\tTimeWindow: pulumi.String(\"PT5M\"),\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tScaleAction: \u0026monitor.ScaleActionArgs{\n\t\t\t\t\t\t\t\tCooldown: pulumi.String(\"PT6M\"),\n\t\t\t\t\t\t\t\tDirection: monitor.ScaleDirectionDecrease,\n\t\t\t\t\t\t\t\tType: monitor.ScaleTypeChangeCount,\n\t\t\t\t\t\t\t\tValue: pulumi.String(\"2\"),\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tResourceGroupName: pulumi.String(\"TestingMetricsScaleSet\"),\n\t\t\tTags: pulumi.StringMap{\n\t\t\t\t\"key1\": pulumi.String(\"value1\"),\n\t\t\t\t\"key2\": pulumi.String(\"value2\"),\n\t\t\t},\n\t\t\tTargetResourceUri: pulumi.String(\"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n\n```\n\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azurenative.monitor.AutoscaleSetting;\nimport com.pulumi.azurenative.monitor.AutoscaleSettingArgs;\nimport com.pulumi.azurenative.monitor.inputs.AutoscaleNotificationArgs;\nimport com.pulumi.azurenative.monitor.inputs.EmailNotificationArgs;\nimport com.pulumi.azurenative.monitor.inputs.PredictiveAutoscalePolicyArgs;\nimport com.pulumi.azurenative.monitor.inputs.AutoscaleProfileArgs;\nimport com.pulumi.azurenative.monitor.inputs.ScaleCapacityArgs;\nimport com.pulumi.azurenative.monitor.inputs.TimeWindowArgs;\nimport com.pulumi.azurenative.monitor.inputs.RecurrenceArgs;\nimport com.pulumi.azurenative.monitor.inputs.RecurrentScheduleArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var autoscaleSetting = new AutoscaleSetting(\"autoscaleSetting\", AutoscaleSettingArgs.builder()\n .autoscaleSettingName(\"MySetting\")\n .enabled(true)\n .location(\"West US\")\n .notifications(AutoscaleNotificationArgs.builder()\n .email(EmailNotificationArgs.builder()\n .customEmails( \n \"gu@ms.com\",\n \"ge@ns.net\")\n .sendToSubscriptionAdministrator(true)\n .sendToSubscriptionCoAdministrators(true)\n .build())\n .operation(\"Scale\")\n .webhooks(WebhookNotificationArgs.builder()\n .properties()\n .serviceUri(\"http://myservice.com\")\n .build())\n .build())\n .predictiveAutoscalePolicy(PredictiveAutoscalePolicyArgs.builder()\n .scaleMode(\"Enabled\")\n .build())\n .profiles( \n AutoscaleProfileArgs.builder()\n .capacity(ScaleCapacityArgs.builder()\n .default_(\"1\")\n .maximum(\"10\")\n .minimum(\"1\")\n .build())\n .fixedDate(TimeWindowArgs.builder()\n .end(\"2015-03-05T14:30:00Z\")\n .start(\"2015-03-05T14:00:00Z\")\n .timeZone(\"UTC\")\n .build())\n .name(\"adios\")\n .rules( \n ScaleRuleArgs.builder()\n .metricTrigger(MetricTriggerArgs.builder()\n .dividePerInstance(false)\n .metricName(\"Percentage CPU\")\n .metricResourceUri(\"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc\")\n .operator(\"GreaterThan\")\n .statistic(\"Average\")\n .threshold(10)\n .timeAggregation(\"Average\")\n .timeGrain(\"PT1M\")\n .timeWindow(\"PT5M\")\n .build())\n .scaleAction(ScaleActionArgs.builder()\n .cooldown(\"PT5M\")\n .direction(\"Increase\")\n .type(\"ChangeCount\")\n .value(\"1\")\n .build())\n .build(),\n ScaleRuleArgs.builder()\n .metricTrigger(MetricTriggerArgs.builder()\n .dividePerInstance(false)\n .metricName(\"Percentage CPU\")\n .metricResourceUri(\"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc\")\n .operator(\"GreaterThan\")\n .statistic(\"Average\")\n .threshold(15)\n .timeAggregation(\"Average\")\n .timeGrain(\"PT2M\")\n .timeWindow(\"PT5M\")\n .build())\n .scaleAction(ScaleActionArgs.builder()\n .cooldown(\"PT6M\")\n .direction(\"Decrease\")\n .type(\"ChangeCount\")\n .value(\"2\")\n .build())\n .build())\n .build(),\n AutoscaleProfileArgs.builder()\n .capacity(ScaleCapacityArgs.builder()\n .default_(\"1\")\n .maximum(\"10\")\n .minimum(\"1\")\n .build())\n .name(\"saludos\")\n .recurrence(RecurrenceArgs.builder()\n .frequency(\"Week\")\n .schedule(RecurrentScheduleArgs.builder()\n .days(\"1\")\n .hours(5)\n .minutes(15)\n .timeZone(\"UTC\")\n .build())\n .build())\n .rules( \n ScaleRuleArgs.builder()\n .metricTrigger(MetricTriggerArgs.builder()\n .dividePerInstance(false)\n .metricName(\"Percentage CPU\")\n .metricResourceUri(\"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc\")\n .operator(\"GreaterThan\")\n .statistic(\"Average\")\n .threshold(10)\n .timeAggregation(\"Average\")\n .timeGrain(\"PT1M\")\n .timeWindow(\"PT5M\")\n .build())\n .scaleAction(ScaleActionArgs.builder()\n .cooldown(\"PT5M\")\n .direction(\"Increase\")\n .type(\"ChangeCount\")\n .value(\"1\")\n .build())\n .build(),\n ScaleRuleArgs.builder()\n .metricTrigger(MetricTriggerArgs.builder()\n .dividePerInstance(false)\n .metricName(\"Percentage CPU\")\n .metricResourceUri(\"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc\")\n .operator(\"GreaterThan\")\n .statistic(\"Average\")\n .threshold(15)\n .timeAggregation(\"Average\")\n .timeGrain(\"PT2M\")\n .timeWindow(\"PT5M\")\n .build())\n .scaleAction(ScaleActionArgs.builder()\n .cooldown(\"PT6M\")\n .direction(\"Decrease\")\n .type(\"ChangeCount\")\n .value(\"2\")\n .build())\n .build())\n .build())\n .resourceGroupName(\"TestingMetricsScaleSet\")\n .tags(Map.ofEntries(\n Map.entry(\"key1\", \"value1\"),\n Map.entry(\"key2\", \"value2\")\n ))\n .targetResourceUri(\"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc\")\n .build());\n\n }\n}\n\n```\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure_native from \"@pulumi/azure-native\";\n\nconst autoscaleSetting = new azure_native.monitor.AutoscaleSetting(\"autoscaleSetting\", {\n autoscaleSettingName: \"MySetting\",\n enabled: true,\n location: \"West US\",\n notifications: [{\n email: {\n customEmails: [\n \"gu@ms.com\",\n \"ge@ns.net\",\n ],\n sendToSubscriptionAdministrator: true,\n sendToSubscriptionCoAdministrators: true,\n },\n operation: azure_native.monitor.OperationType.Scale,\n webhooks: [{\n properties: {},\n serviceUri: \"http://myservice.com\",\n }],\n }],\n predictiveAutoscalePolicy: {\n scaleMode: azure_native.monitor.PredictiveAutoscalePolicyScaleMode.Enabled,\n },\n profiles: [\n {\n capacity: {\n \"default\": \"1\",\n maximum: \"10\",\n minimum: \"1\",\n },\n fixedDate: {\n end: \"2015-03-05T14:30:00Z\",\n start: \"2015-03-05T14:00:00Z\",\n timeZone: \"UTC\",\n },\n name: \"adios\",\n rules: [\n {\n metricTrigger: {\n dividePerInstance: false,\n metricName: \"Percentage CPU\",\n metricResourceUri: \"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc\",\n operator: azure_native.monitor.ComparisonOperationType.GreaterThan,\n statistic: azure_native.monitor.MetricStatisticType.Average,\n threshold: 10,\n timeAggregation: azure_native.monitor.TimeAggregationType.Average,\n timeGrain: \"PT1M\",\n timeWindow: \"PT5M\",\n },\n scaleAction: {\n cooldown: \"PT5M\",\n direction: azure_native.monitor.ScaleDirection.Increase,\n type: azure_native.monitor.ScaleType.ChangeCount,\n value: \"1\",\n },\n },\n {\n metricTrigger: {\n dividePerInstance: false,\n metricName: \"Percentage CPU\",\n metricResourceUri: \"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc\",\n operator: azure_native.monitor.ComparisonOperationType.GreaterThan,\n statistic: azure_native.monitor.MetricStatisticType.Average,\n threshold: 15,\n timeAggregation: azure_native.monitor.TimeAggregationType.Average,\n timeGrain: \"PT2M\",\n timeWindow: \"PT5M\",\n },\n scaleAction: {\n cooldown: \"PT6M\",\n direction: azure_native.monitor.ScaleDirection.Decrease,\n type: azure_native.monitor.ScaleType.ChangeCount,\n value: \"2\",\n },\n },\n ],\n },\n {\n capacity: {\n \"default\": \"1\",\n maximum: \"10\",\n minimum: \"1\",\n },\n name: \"saludos\",\n recurrence: {\n frequency: azure_native.monitor.RecurrenceFrequency.Week,\n schedule: {\n days: [\"1\"],\n hours: [5],\n minutes: [15],\n timeZone: \"UTC\",\n },\n },\n rules: [\n {\n metricTrigger: {\n dividePerInstance: false,\n metricName: \"Percentage CPU\",\n metricResourceUri: \"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc\",\n operator: azure_native.monitor.ComparisonOperationType.GreaterThan,\n statistic: azure_native.monitor.MetricStatisticType.Average,\n threshold: 10,\n timeAggregation: azure_native.monitor.TimeAggregationType.Average,\n timeGrain: \"PT1M\",\n timeWindow: \"PT5M\",\n },\n scaleAction: {\n cooldown: \"PT5M\",\n direction: azure_native.monitor.ScaleDirection.Increase,\n type: azure_native.monitor.ScaleType.ChangeCount,\n value: \"1\",\n },\n },\n {\n metricTrigger: {\n dividePerInstance: false,\n metricName: \"Percentage CPU\",\n metricResourceUri: \"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc\",\n operator: azure_native.monitor.ComparisonOperationType.GreaterThan,\n statistic: azure_native.monitor.MetricStatisticType.Average,\n threshold: 15,\n timeAggregation: azure_native.monitor.TimeAggregationType.Average,\n timeGrain: \"PT2M\",\n timeWindow: \"PT5M\",\n },\n scaleAction: {\n cooldown: \"PT6M\",\n direction: azure_native.monitor.ScaleDirection.Decrease,\n type: azure_native.monitor.ScaleType.ChangeCount,\n value: \"2\",\n },\n },\n ],\n },\n ],\n resourceGroupName: \"TestingMetricsScaleSet\",\n tags: {\n key1: \"value1\",\n key2: \"value2\",\n },\n targetResourceUri: \"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc\",\n});\n\n```\n\n```python\nimport pulumi\nimport pulumi_azure_native as azure_native\n\nautoscale_setting = azure_native.monitor.AutoscaleSetting(\"autoscaleSetting\",\n autoscale_setting_name=\"MySetting\",\n enabled=True,\n location=\"West US\",\n notifications=[{\n \"email\": {\n \"custom_emails\": [\n \"gu@ms.com\",\n \"ge@ns.net\",\n ],\n \"send_to_subscription_administrator\": True,\n \"send_to_subscription_co_administrators\": True,\n },\n \"operation\": azure_native.monitor.OperationType.SCALE,\n \"webhooks\": [{\n \"properties\": {},\n \"service_uri\": \"http://myservice.com\",\n }],\n }],\n predictive_autoscale_policy={\n \"scale_mode\": azure_native.monitor.PredictiveAutoscalePolicyScaleMode.ENABLED,\n },\n profiles=[\n {\n \"capacity\": {\n \"default\": \"1\",\n \"maximum\": \"10\",\n \"minimum\": \"1\",\n },\n \"fixed_date\": {\n \"end\": \"2015-03-05T14:30:00Z\",\n \"start\": \"2015-03-05T14:00:00Z\",\n \"time_zone\": \"UTC\",\n },\n \"name\": \"adios\",\n \"rules\": [\n {\n \"metric_trigger\": {\n \"divide_per_instance\": False,\n \"metric_name\": \"Percentage CPU\",\n \"metric_resource_uri\": \"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc\",\n \"operator\": azure_native.monitor.ComparisonOperationType.GREATER_THAN,\n \"statistic\": azure_native.monitor.MetricStatisticType.AVERAGE,\n \"threshold\": 10,\n \"time_aggregation\": azure_native.monitor.TimeAggregationType.AVERAGE,\n \"time_grain\": \"PT1M\",\n \"time_window\": \"PT5M\",\n },\n \"scale_action\": {\n \"cooldown\": \"PT5M\",\n \"direction\": azure_native.monitor.ScaleDirection.INCREASE,\n \"type\": azure_native.monitor.ScaleType.CHANGE_COUNT,\n \"value\": \"1\",\n },\n },\n {\n \"metric_trigger\": {\n \"divide_per_instance\": False,\n \"metric_name\": \"Percentage CPU\",\n \"metric_resource_uri\": \"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc\",\n \"operator\": azure_native.monitor.ComparisonOperationType.GREATER_THAN,\n \"statistic\": azure_native.monitor.MetricStatisticType.AVERAGE,\n \"threshold\": 15,\n \"time_aggregation\": azure_native.monitor.TimeAggregationType.AVERAGE,\n \"time_grain\": \"PT2M\",\n \"time_window\": \"PT5M\",\n },\n \"scale_action\": {\n \"cooldown\": \"PT6M\",\n \"direction\": azure_native.monitor.ScaleDirection.DECREASE,\n \"type\": azure_native.monitor.ScaleType.CHANGE_COUNT,\n \"value\": \"2\",\n },\n },\n ],\n },\n {\n \"capacity\": {\n \"default\": \"1\",\n \"maximum\": \"10\",\n \"minimum\": \"1\",\n },\n \"name\": \"saludos\",\n \"recurrence\": {\n \"frequency\": azure_native.monitor.RecurrenceFrequency.WEEK,\n \"schedule\": {\n \"days\": [\"1\"],\n \"hours\": [5],\n \"minutes\": [15],\n \"time_zone\": \"UTC\",\n },\n },\n \"rules\": [\n {\n \"metric_trigger\": {\n \"divide_per_instance\": False,\n \"metric_name\": \"Percentage CPU\",\n \"metric_resource_uri\": \"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc\",\n \"operator\": azure_native.monitor.ComparisonOperationType.GREATER_THAN,\n \"statistic\": azure_native.monitor.MetricStatisticType.AVERAGE,\n \"threshold\": 10,\n \"time_aggregation\": azure_native.monitor.TimeAggregationType.AVERAGE,\n \"time_grain\": \"PT1M\",\n \"time_window\": \"PT5M\",\n },\n \"scale_action\": {\n \"cooldown\": \"PT5M\",\n \"direction\": azure_native.monitor.ScaleDirection.INCREASE,\n \"type\": azure_native.monitor.ScaleType.CHANGE_COUNT,\n \"value\": \"1\",\n },\n },\n {\n \"metric_trigger\": {\n \"divide_per_instance\": False,\n \"metric_name\": \"Percentage CPU\",\n \"metric_resource_uri\": \"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc\",\n \"operator\": azure_native.monitor.ComparisonOperationType.GREATER_THAN,\n \"statistic\": azure_native.monitor.MetricStatisticType.AVERAGE,\n \"threshold\": 15,\n \"time_aggregation\": azure_native.monitor.TimeAggregationType.AVERAGE,\n \"time_grain\": \"PT2M\",\n \"time_window\": \"PT5M\",\n },\n \"scale_action\": {\n \"cooldown\": \"PT6M\",\n \"direction\": azure_native.monitor.ScaleDirection.DECREASE,\n \"type\": azure_native.monitor.ScaleType.CHANGE_COUNT,\n \"value\": \"2\",\n },\n },\n ],\n },\n ],\n resource_group_name=\"TestingMetricsScaleSet\",\n tags={\n \"key1\": \"value1\",\n \"key2\": \"value2\",\n },\n target_resource_uri=\"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc\")\n\n```\n\n```yaml\nresources:\n autoscaleSetting:\n type: azure-native:monitor:AutoscaleSetting\n properties:\n autoscaleSettingName: MySetting\n enabled: true\n location: West US\n notifications:\n - email:\n customEmails:\n - gu@ms.com\n - ge@ns.net\n sendToSubscriptionAdministrator: true\n sendToSubscriptionCoAdministrators: true\n operation: Scale\n webhooks:\n - properties: {}\n serviceUri: http://myservice.com\n predictiveAutoscalePolicy:\n scaleMode: Enabled\n profiles:\n - capacity:\n default: '1'\n maximum: '10'\n minimum: '1'\n fixedDate:\n end: 2015-03-05T14:30:00Z\n start: 2015-03-05T14:00:00Z\n timeZone: UTC\n name: adios\n rules:\n - metricTrigger:\n dividePerInstance: false\n metricName: Percentage CPU\n metricResourceUri: /subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc\n operator: GreaterThan\n statistic: Average\n threshold: 10\n timeAggregation: Average\n timeGrain: PT1M\n timeWindow: PT5M\n scaleAction:\n cooldown: PT5M\n direction: Increase\n type: ChangeCount\n value: '1'\n - metricTrigger:\n dividePerInstance: false\n metricName: Percentage CPU\n metricResourceUri: /subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc\n operator: GreaterThan\n statistic: Average\n threshold: 15\n timeAggregation: Average\n timeGrain: PT2M\n timeWindow: PT5M\n scaleAction:\n cooldown: PT6M\n direction: Decrease\n type: ChangeCount\n value: '2'\n - capacity:\n default: '1'\n maximum: '10'\n minimum: '1'\n name: saludos\n recurrence:\n frequency: Week\n schedule:\n days:\n - '1'\n hours:\n - 5\n minutes:\n - 15\n timeZone: UTC\n rules:\n - metricTrigger:\n dividePerInstance: false\n metricName: Percentage CPU\n metricResourceUri: /subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc\n operator: GreaterThan\n statistic: Average\n threshold: 10\n timeAggregation: Average\n timeGrain: PT1M\n timeWindow: PT5M\n scaleAction:\n cooldown: PT5M\n direction: Increase\n type: ChangeCount\n value: '1'\n - metricTrigger:\n dividePerInstance: false\n metricName: Percentage CPU\n metricResourceUri: /subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc\n operator: GreaterThan\n statistic: Average\n threshold: 15\n timeAggregation: Average\n timeGrain: PT2M\n timeWindow: PT5M\n scaleAction:\n cooldown: PT6M\n direction: Decrease\n type: ChangeCount\n value: '2'\n resourceGroupName: TestingMetricsScaleSet\n tags:\n key1: value1\n key2: value2\n targetResourceUri: /subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc\n\n```\n\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nAn existing resource can be imported using its type token, name, and identifier, e.g.\n\n```sh\n$ pulumi import azure-native:monitor:AutoscaleSetting MySetting /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/autoscalesettings/{autoscaleSettingName} \n```\n",
+ "properties": {
+ "azureApiVersion": {
+ "type": "string",
+ "description": "The Azure API version of the resource."
+ },
+ "location": {
+ "type": "string",
+ "description": "Resource location"
+ },
+ "name": {
+ "type": "string",
+ "description": "Azure resource name"
+ },
+ "properties": {
+ "type": "object",
+ "$ref": "#/types/azure-native:monitor:AutoscaleSettingResponse",
+ "description": "The autoscale setting of the resource."
+ },
+ "systemData": {
+ "type": "object",
+ "$ref": "#/types/azure-native:monitor:SystemDataResponse",
+ "description": "The system metadata related to the response."
+ },
+ "tags": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ },
+ "description": "Gets or sets a list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater in length than 128 characters and a value no greater in length than 256 characters."
+ },
+ "type": {
+ "type": "string",
+ "description": "Azure resource type"
+ }
+ },
+ "type": "object",
+ "required": [
+ "azureApiVersion",
+ "location",
+ "name",
+ "properties",
+ "systemData",
+ "type"
+ ],
+ "inputProperties": {
+ "autoscaleSettingName": {
+ "type": "string",
+ "description": "The autoscale setting name.",
+ "willReplaceOnChanges": true
+ },
+ "enabled": {
+ "type": "boolean",
+ "description": "the enabled flag. Specifies whether automatic scaling is enabled for the resource. The default value is 'false'.",
+ "default": false
+ },
+ "location": {
+ "type": "string",
+ "description": "Resource location",
+ "willReplaceOnChanges": true
+ },
+ "name": {
+ "type": "string",
+ "description": "the name of the autoscale setting."
+ },
+ "notifications": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "$ref": "#/types/azure-native:monitor:AutoscaleNotification"
+ },
+ "description": "the collection of notifications."
+ },
+ "predictiveAutoscalePolicy": {
+ "type": "object",
+ "$ref": "#/types/azure-native:monitor:PredictiveAutoscalePolicy",
+ "description": "the predictive autoscale policy mode."
+ },
+ "profiles": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "$ref": "#/types/azure-native:monitor:AutoscaleProfile"
+ },
+ "description": "the collection of automatic scaling profiles that specify different scaling parameters for different time periods. A maximum of 20 profiles can be specified."
+ },
+ "resourceGroupName": {
+ "type": "string",
+ "description": "The name of the resource group. The name is case insensitive.",
+ "willReplaceOnChanges": true
+ },
+ "tags": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ },
+ "description": "Gets or sets a list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater in length than 128 characters and a value no greater in length than 256 characters."
+ },
+ "targetResourceLocation": {
+ "type": "string",
+ "description": "the location of the resource that the autoscale setting should be added to."
+ },
+ "targetResourceUri": {
+ "type": "string",
+ "description": "the resource identifier of the resource that the autoscale setting should be added to."
+ }
+ },
+ "requiredInputs": [
+ "profiles",
+ "resourceGroupName"
+ ],
+ "aliases": [
+ {
+ "type": "azure-native:insights/v20221001:AutoscaleSetting"
+ },
+ {
+ "type": "azure-native:insights:AutoscaleSetting"
+ },
+ {
+ "type": "azure-native:monitor/v20140401:AutoscaleSetting"
+ },
+ {
+ "type": "azure-native:monitor/v20150401:AutoscaleSetting"
+ },
+ {
+ "type": "azure-native:monitor/v20210501preview:AutoscaleSetting"
+ },
+ {
+ "type": "azure-native:monitor/v20221001:AutoscaleSetting"
+ }
+ ]
+ },
"azure-native:monitor:AzureMonitorWorkspace": {
"description": "An Azure Monitor Workspace definition.\n\nUses Azure REST API version 2023-10-01-preview. In version 2.x of the Azure Native provider, it used API version 2023-04-03.\n\nOther available API versions: 2023-04-03. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native monitor [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n### Creates an Azure Monitor Workspace\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing AzureNative = Pulumi.AzureNative;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var azureMonitorWorkspace = new AzureNative.Monitor.AzureMonitorWorkspace(\"azureMonitorWorkspace\", new()\n {\n AzureMonitorWorkspaceName = \"myAzureMonitorWorkspace\",\n Location = \"eastus\",\n ResourceGroupName = \"myResourceGroup\",\n });\n\n});\n\n\n```\n\n```go\npackage main\n\nimport (\n\tmonitor \"github.com/pulumi/pulumi-azure-native-sdk/monitor/v2\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := monitor.NewAzureMonitorWorkspace(ctx, \"azureMonitorWorkspace\", \u0026monitor.AzureMonitorWorkspaceArgs{\n\t\t\tAzureMonitorWorkspaceName: pulumi.String(\"myAzureMonitorWorkspace\"),\n\t\t\tLocation: pulumi.String(\"eastus\"),\n\t\t\tResourceGroupName: pulumi.String(\"myResourceGroup\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n\n```\n\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azurenative.monitor.AzureMonitorWorkspace;\nimport com.pulumi.azurenative.monitor.AzureMonitorWorkspaceArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var azureMonitorWorkspace = new AzureMonitorWorkspace(\"azureMonitorWorkspace\", AzureMonitorWorkspaceArgs.builder()\n .azureMonitorWorkspaceName(\"myAzureMonitorWorkspace\")\n .location(\"eastus\")\n .resourceGroupName(\"myResourceGroup\")\n .build());\n\n }\n}\n\n```\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure_native from \"@pulumi/azure-native\";\n\nconst azureMonitorWorkspace = new azure_native.monitor.AzureMonitorWorkspace(\"azureMonitorWorkspace\", {\n azureMonitorWorkspaceName: \"myAzureMonitorWorkspace\",\n location: \"eastus\",\n resourceGroupName: \"myResourceGroup\",\n});\n\n```\n\n```python\nimport pulumi\nimport pulumi_azure_native as azure_native\n\nazure_monitor_workspace = azure_native.monitor.AzureMonitorWorkspace(\"azureMonitorWorkspace\",\n azure_monitor_workspace_name=\"myAzureMonitorWorkspace\",\n location=\"eastus\",\n resource_group_name=\"myResourceGroup\")\n\n```\n\n```yaml\nresources:\n azureMonitorWorkspace:\n type: azure-native:monitor:AzureMonitorWorkspace\n properties:\n azureMonitorWorkspaceName: myAzureMonitorWorkspace\n location: eastus\n resourceGroupName: myResourceGroup\n\n```\n\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nAn existing resource can be imported using its type token, name, and identifier, e.g.\n\n```sh\n$ pulumi import azure-native:monitor:AzureMonitorWorkspace myAzureMonitorWorkspace /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Monitor/accounts/{azureMonitorWorkspaceName} \n```\n",
"properties": {
@@ -767166,6 +768513,277 @@
}
]
},
+ "azure-native:monitor:DiagnosticSetting": {
+ "description": "The diagnostic setting resource.\n\nUses Azure REST API version 2021-05-01-preview.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n### Creates or Updates the diagnostic setting\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing AzureNative = Pulumi.AzureNative;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var diagnosticSetting = new AzureNative.Monitor.DiagnosticSetting(\"diagnosticSetting\", new()\n {\n EventHubAuthorizationRuleId = \"/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourceGroups/montest/providers/microsoft.eventhub/namespaces/mynamespace/authorizationrules/myrule\",\n EventHubName = \"myeventhub\",\n LogAnalyticsDestinationType = \"Dedicated\",\n Logs = new[]\n {\n new AzureNative.Monitor.Inputs.LogSettingsArgs\n {\n CategoryGroup = \"allLogs\",\n Enabled = true,\n RetentionPolicy = new AzureNative.Monitor.Inputs.RetentionPolicyArgs\n {\n Days = 0,\n Enabled = false,\n },\n },\n },\n MarketplacePartnerId = \"/subscriptions/abcdeabc-1234-1234-ab12-123a1234567a/resourceGroups/test-rg/providers/Microsoft.Datadog/monitors/dd1\",\n Metrics = new[]\n {\n new AzureNative.Monitor.Inputs.MetricSettingsArgs\n {\n Category = \"WorkflowMetrics\",\n Enabled = true,\n RetentionPolicy = new AzureNative.Monitor.Inputs.RetentionPolicyArgs\n {\n Days = 0,\n Enabled = false,\n },\n },\n },\n Name = \"mysetting\",\n ResourceUri = \"subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6\",\n StorageAccountId = \"/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/apptest/providers/Microsoft.Storage/storageAccounts/appteststorage1\",\n WorkspaceId = \"\",\n });\n\n});\n\n\n```\n\n```go\npackage main\n\nimport (\n\tmonitor \"github.com/pulumi/pulumi-azure-native-sdk/monitor/v2\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := monitor.NewDiagnosticSetting(ctx, \"diagnosticSetting\", \u0026monitor.DiagnosticSettingArgs{\n\t\t\tEventHubAuthorizationRuleId: pulumi.String(\"/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourceGroups/montest/providers/microsoft.eventhub/namespaces/mynamespace/authorizationrules/myrule\"),\n\t\t\tEventHubName: pulumi.String(\"myeventhub\"),\n\t\t\tLogAnalyticsDestinationType: pulumi.String(\"Dedicated\"),\n\t\t\tLogs: monitor.LogSettingsArray{\n\t\t\t\t\u0026monitor.LogSettingsArgs{\n\t\t\t\t\tCategoryGroup: pulumi.String(\"allLogs\"),\n\t\t\t\t\tEnabled: pulumi.Bool(true),\n\t\t\t\t\tRetentionPolicy: \u0026monitor.RetentionPolicyArgs{\n\t\t\t\t\t\tDays: pulumi.Int(0),\n\t\t\t\t\t\tEnabled: pulumi.Bool(false),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tMarketplacePartnerId: pulumi.String(\"/subscriptions/abcdeabc-1234-1234-ab12-123a1234567a/resourceGroups/test-rg/providers/Microsoft.Datadog/monitors/dd1\"),\n\t\t\tMetrics: monitor.MetricSettingsArray{\n\t\t\t\t\u0026monitor.MetricSettingsArgs{\n\t\t\t\t\tCategory: pulumi.String(\"WorkflowMetrics\"),\n\t\t\t\t\tEnabled: pulumi.Bool(true),\n\t\t\t\t\tRetentionPolicy: \u0026monitor.RetentionPolicyArgs{\n\t\t\t\t\t\tDays: pulumi.Int(0),\n\t\t\t\t\t\tEnabled: pulumi.Bool(false),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tName: pulumi.String(\"mysetting\"),\n\t\t\tResourceUri: pulumi.String(\"subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6\"),\n\t\t\tStorageAccountId: pulumi.String(\"/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/apptest/providers/Microsoft.Storage/storageAccounts/appteststorage1\"),\n\t\t\tWorkspaceId: pulumi.String(\"\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n\n```\n\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azurenative.monitor.DiagnosticSetting;\nimport com.pulumi.azurenative.monitor.DiagnosticSettingArgs;\nimport com.pulumi.azurenative.monitor.inputs.LogSettingsArgs;\nimport com.pulumi.azurenative.monitor.inputs.RetentionPolicyArgs;\nimport com.pulumi.azurenative.monitor.inputs.MetricSettingsArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var diagnosticSetting = new DiagnosticSetting(\"diagnosticSetting\", DiagnosticSettingArgs.builder()\n .eventHubAuthorizationRuleId(\"/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourceGroups/montest/providers/microsoft.eventhub/namespaces/mynamespace/authorizationrules/myrule\")\n .eventHubName(\"myeventhub\")\n .logAnalyticsDestinationType(\"Dedicated\")\n .logs(LogSettingsArgs.builder()\n .categoryGroup(\"allLogs\")\n .enabled(true)\n .retentionPolicy(RetentionPolicyArgs.builder()\n .days(0)\n .enabled(false)\n .build())\n .build())\n .marketplacePartnerId(\"/subscriptions/abcdeabc-1234-1234-ab12-123a1234567a/resourceGroups/test-rg/providers/Microsoft.Datadog/monitors/dd1\")\n .metrics(MetricSettingsArgs.builder()\n .category(\"WorkflowMetrics\")\n .enabled(true)\n .retentionPolicy(RetentionPolicyArgs.builder()\n .days(0)\n .enabled(false)\n .build())\n .build())\n .name(\"mysetting\")\n .resourceUri(\"subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6\")\n .storageAccountId(\"/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/apptest/providers/Microsoft.Storage/storageAccounts/appteststorage1\")\n .workspaceId(\"\")\n .build());\n\n }\n}\n\n```\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure_native from \"@pulumi/azure-native\";\n\nconst diagnosticSetting = new azure_native.monitor.DiagnosticSetting(\"diagnosticSetting\", {\n eventHubAuthorizationRuleId: \"/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourceGroups/montest/providers/microsoft.eventhub/namespaces/mynamespace/authorizationrules/myrule\",\n eventHubName: \"myeventhub\",\n logAnalyticsDestinationType: \"Dedicated\",\n logs: [{\n categoryGroup: \"allLogs\",\n enabled: true,\n retentionPolicy: {\n days: 0,\n enabled: false,\n },\n }],\n marketplacePartnerId: \"/subscriptions/abcdeabc-1234-1234-ab12-123a1234567a/resourceGroups/test-rg/providers/Microsoft.Datadog/monitors/dd1\",\n metrics: [{\n category: \"WorkflowMetrics\",\n enabled: true,\n retentionPolicy: {\n days: 0,\n enabled: false,\n },\n }],\n name: \"mysetting\",\n resourceUri: \"subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6\",\n storageAccountId: \"/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/apptest/providers/Microsoft.Storage/storageAccounts/appteststorage1\",\n workspaceId: \"\",\n});\n\n```\n\n```python\nimport pulumi\nimport pulumi_azure_native as azure_native\n\ndiagnostic_setting = azure_native.monitor.DiagnosticSetting(\"diagnosticSetting\",\n event_hub_authorization_rule_id=\"/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourceGroups/montest/providers/microsoft.eventhub/namespaces/mynamespace/authorizationrules/myrule\",\n event_hub_name=\"myeventhub\",\n log_analytics_destination_type=\"Dedicated\",\n logs=[{\n \"category_group\": \"allLogs\",\n \"enabled\": True,\n \"retention_policy\": {\n \"days\": 0,\n \"enabled\": False,\n },\n }],\n marketplace_partner_id=\"/subscriptions/abcdeabc-1234-1234-ab12-123a1234567a/resourceGroups/test-rg/providers/Microsoft.Datadog/monitors/dd1\",\n metrics=[{\n \"category\": \"WorkflowMetrics\",\n \"enabled\": True,\n \"retention_policy\": {\n \"days\": 0,\n \"enabled\": False,\n },\n }],\n name=\"mysetting\",\n resource_uri=\"subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6\",\n storage_account_id=\"/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/apptest/providers/Microsoft.Storage/storageAccounts/appteststorage1\",\n workspace_id=\"\")\n\n```\n\n```yaml\nresources:\n diagnosticSetting:\n type: azure-native:monitor:DiagnosticSetting\n properties:\n eventHubAuthorizationRuleId: /subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourceGroups/montest/providers/microsoft.eventhub/namespaces/mynamespace/authorizationrules/myrule\n eventHubName: myeventhub\n logAnalyticsDestinationType: Dedicated\n logs:\n - categoryGroup: allLogs\n enabled: true\n retentionPolicy:\n days: 0\n enabled: false\n marketplacePartnerId: /subscriptions/abcdeabc-1234-1234-ab12-123a1234567a/resourceGroups/test-rg/providers/Microsoft.Datadog/monitors/dd1\n metrics:\n - category: WorkflowMetrics\n enabled: true\n retentionPolicy:\n days: 0\n enabled: false\n name: mysetting\n resourceUri: subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6\n storageAccountId: /subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/apptest/providers/Microsoft.Storage/storageAccounts/appteststorage1\n workspaceId: \"\"\n\n```\n\n{{% /example %}}\n{{% example %}}\n### Creates or Updates the diagnostic setting for category\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing AzureNative = Pulumi.AzureNative;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var diagnosticSetting = new AzureNative.Monitor.DiagnosticSetting(\"diagnosticSetting\", new()\n {\n EventHubAuthorizationRuleId = \"/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourceGroups/montest/providers/microsoft.eventhub/namespaces/mynamespace/authorizationrules/myrule\",\n EventHubName = \"myeventhub\",\n LogAnalyticsDestinationType = \"Dedicated\",\n Logs = new[]\n {\n new AzureNative.Monitor.Inputs.LogSettingsArgs\n {\n Category = \"WorkflowRuntime\",\n Enabled = true,\n RetentionPolicy = new AzureNative.Monitor.Inputs.RetentionPolicyArgs\n {\n Days = 0,\n Enabled = false,\n },\n },\n },\n MarketplacePartnerId = \"/subscriptions/abcdeabc-1234-1234-ab12-123a1234567a/resourceGroups/test-rg/providers/Microsoft.Datadog/monitors/dd1\",\n Metrics = new[]\n {\n new AzureNative.Monitor.Inputs.MetricSettingsArgs\n {\n Category = \"WorkflowMetrics\",\n Enabled = true,\n RetentionPolicy = new AzureNative.Monitor.Inputs.RetentionPolicyArgs\n {\n Days = 0,\n Enabled = false,\n },\n },\n },\n Name = \"mysetting\",\n ResourceUri = \"subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6\",\n StorageAccountId = \"/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/apptest/providers/Microsoft.Storage/storageAccounts/appteststorage1\",\n WorkspaceId = \"\",\n });\n\n});\n\n\n```\n\n```go\npackage main\n\nimport (\n\tmonitor \"github.com/pulumi/pulumi-azure-native-sdk/monitor/v2\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := monitor.NewDiagnosticSetting(ctx, \"diagnosticSetting\", \u0026monitor.DiagnosticSettingArgs{\n\t\t\tEventHubAuthorizationRuleId: pulumi.String(\"/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourceGroups/montest/providers/microsoft.eventhub/namespaces/mynamespace/authorizationrules/myrule\"),\n\t\t\tEventHubName: pulumi.String(\"myeventhub\"),\n\t\t\tLogAnalyticsDestinationType: pulumi.String(\"Dedicated\"),\n\t\t\tLogs: monitor.LogSettingsArray{\n\t\t\t\t\u0026monitor.LogSettingsArgs{\n\t\t\t\t\tCategory: pulumi.String(\"WorkflowRuntime\"),\n\t\t\t\t\tEnabled: pulumi.Bool(true),\n\t\t\t\t\tRetentionPolicy: \u0026monitor.RetentionPolicyArgs{\n\t\t\t\t\t\tDays: pulumi.Int(0),\n\t\t\t\t\t\tEnabled: pulumi.Bool(false),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tMarketplacePartnerId: pulumi.String(\"/subscriptions/abcdeabc-1234-1234-ab12-123a1234567a/resourceGroups/test-rg/providers/Microsoft.Datadog/monitors/dd1\"),\n\t\t\tMetrics: monitor.MetricSettingsArray{\n\t\t\t\t\u0026monitor.MetricSettingsArgs{\n\t\t\t\t\tCategory: pulumi.String(\"WorkflowMetrics\"),\n\t\t\t\t\tEnabled: pulumi.Bool(true),\n\t\t\t\t\tRetentionPolicy: \u0026monitor.RetentionPolicyArgs{\n\t\t\t\t\t\tDays: pulumi.Int(0),\n\t\t\t\t\t\tEnabled: pulumi.Bool(false),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tName: pulumi.String(\"mysetting\"),\n\t\t\tResourceUri: pulumi.String(\"subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6\"),\n\t\t\tStorageAccountId: pulumi.String(\"/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/apptest/providers/Microsoft.Storage/storageAccounts/appteststorage1\"),\n\t\t\tWorkspaceId: pulumi.String(\"\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n\n```\n\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azurenative.monitor.DiagnosticSetting;\nimport com.pulumi.azurenative.monitor.DiagnosticSettingArgs;\nimport com.pulumi.azurenative.monitor.inputs.LogSettingsArgs;\nimport com.pulumi.azurenative.monitor.inputs.RetentionPolicyArgs;\nimport com.pulumi.azurenative.monitor.inputs.MetricSettingsArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var diagnosticSetting = new DiagnosticSetting(\"diagnosticSetting\", DiagnosticSettingArgs.builder()\n .eventHubAuthorizationRuleId(\"/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourceGroups/montest/providers/microsoft.eventhub/namespaces/mynamespace/authorizationrules/myrule\")\n .eventHubName(\"myeventhub\")\n .logAnalyticsDestinationType(\"Dedicated\")\n .logs(LogSettingsArgs.builder()\n .category(\"WorkflowRuntime\")\n .enabled(true)\n .retentionPolicy(RetentionPolicyArgs.builder()\n .days(0)\n .enabled(false)\n .build())\n .build())\n .marketplacePartnerId(\"/subscriptions/abcdeabc-1234-1234-ab12-123a1234567a/resourceGroups/test-rg/providers/Microsoft.Datadog/monitors/dd1\")\n .metrics(MetricSettingsArgs.builder()\n .category(\"WorkflowMetrics\")\n .enabled(true)\n .retentionPolicy(RetentionPolicyArgs.builder()\n .days(0)\n .enabled(false)\n .build())\n .build())\n .name(\"mysetting\")\n .resourceUri(\"subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6\")\n .storageAccountId(\"/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/apptest/providers/Microsoft.Storage/storageAccounts/appteststorage1\")\n .workspaceId(\"\")\n .build());\n\n }\n}\n\n```\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure_native from \"@pulumi/azure-native\";\n\nconst diagnosticSetting = new azure_native.monitor.DiagnosticSetting(\"diagnosticSetting\", {\n eventHubAuthorizationRuleId: \"/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourceGroups/montest/providers/microsoft.eventhub/namespaces/mynamespace/authorizationrules/myrule\",\n eventHubName: \"myeventhub\",\n logAnalyticsDestinationType: \"Dedicated\",\n logs: [{\n category: \"WorkflowRuntime\",\n enabled: true,\n retentionPolicy: {\n days: 0,\n enabled: false,\n },\n }],\n marketplacePartnerId: \"/subscriptions/abcdeabc-1234-1234-ab12-123a1234567a/resourceGroups/test-rg/providers/Microsoft.Datadog/monitors/dd1\",\n metrics: [{\n category: \"WorkflowMetrics\",\n enabled: true,\n retentionPolicy: {\n days: 0,\n enabled: false,\n },\n }],\n name: \"mysetting\",\n resourceUri: \"subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6\",\n storageAccountId: \"/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/apptest/providers/Microsoft.Storage/storageAccounts/appteststorage1\",\n workspaceId: \"\",\n});\n\n```\n\n```python\nimport pulumi\nimport pulumi_azure_native as azure_native\n\ndiagnostic_setting = azure_native.monitor.DiagnosticSetting(\"diagnosticSetting\",\n event_hub_authorization_rule_id=\"/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourceGroups/montest/providers/microsoft.eventhub/namespaces/mynamespace/authorizationrules/myrule\",\n event_hub_name=\"myeventhub\",\n log_analytics_destination_type=\"Dedicated\",\n logs=[{\n \"category\": \"WorkflowRuntime\",\n \"enabled\": True,\n \"retention_policy\": {\n \"days\": 0,\n \"enabled\": False,\n },\n }],\n marketplace_partner_id=\"/subscriptions/abcdeabc-1234-1234-ab12-123a1234567a/resourceGroups/test-rg/providers/Microsoft.Datadog/monitors/dd1\",\n metrics=[{\n \"category\": \"WorkflowMetrics\",\n \"enabled\": True,\n \"retention_policy\": {\n \"days\": 0,\n \"enabled\": False,\n },\n }],\n name=\"mysetting\",\n resource_uri=\"subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6\",\n storage_account_id=\"/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/apptest/providers/Microsoft.Storage/storageAccounts/appteststorage1\",\n workspace_id=\"\")\n\n```\n\n```yaml\nresources:\n diagnosticSetting:\n type: azure-native:monitor:DiagnosticSetting\n properties:\n eventHubAuthorizationRuleId: /subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourceGroups/montest/providers/microsoft.eventhub/namespaces/mynamespace/authorizationrules/myrule\n eventHubName: myeventhub\n logAnalyticsDestinationType: Dedicated\n logs:\n - category: WorkflowRuntime\n enabled: true\n retentionPolicy:\n days: 0\n enabled: false\n marketplacePartnerId: /subscriptions/abcdeabc-1234-1234-ab12-123a1234567a/resourceGroups/test-rg/providers/Microsoft.Datadog/monitors/dd1\n metrics:\n - category: WorkflowMetrics\n enabled: true\n retentionPolicy:\n days: 0\n enabled: false\n name: mysetting\n resourceUri: subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6\n storageAccountId: /subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/apptest/providers/Microsoft.Storage/storageAccounts/appteststorage1\n workspaceId: \"\"\n\n```\n\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nAn existing resource can be imported using its type token, name, and identifier, e.g.\n\n```sh\n$ pulumi import azure-native:monitor:DiagnosticSetting mysetting /{resourceUri}/providers/Microsoft.Insights/diagnosticSettings/{name} \n```\n",
+ "properties": {
+ "azureApiVersion": {
+ "type": "string",
+ "description": "The Azure API version of the resource."
+ },
+ "eventHubAuthorizationRuleId": {
+ "type": "string",
+ "description": "The resource Id for the event hub authorization rule."
+ },
+ "eventHubName": {
+ "type": "string",
+ "description": "The name of the event hub. If none is specified, the default event hub will be selected."
+ },
+ "logAnalyticsDestinationType": {
+ "type": "string",
+ "description": "A string indicating whether the export to Log Analytics should use the default destination type, i.e. AzureDiagnostics, or use a destination type constructed as follows: \u003cnormalized service identity\u003e_\u003cnormalized category name\u003e. Possible values are: Dedicated and null (null is default.)"
+ },
+ "logs": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "$ref": "#/types/azure-native:monitor:LogSettingsResponse"
+ },
+ "description": "The list of logs settings."
+ },
+ "marketplacePartnerId": {
+ "type": "string",
+ "description": "The full ARM resource ID of the Marketplace resource to which you would like to send Diagnostic Logs."
+ },
+ "metrics": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "$ref": "#/types/azure-native:monitor:MetricSettingsResponse"
+ },
+ "description": "The list of metric settings."
+ },
+ "name": {
+ "type": "string",
+ "description": "The name of the resource"
+ },
+ "serviceBusRuleId": {
+ "type": "string",
+ "description": "The service bus rule Id of the diagnostic setting. This is here to maintain backwards compatibility."
+ },
+ "storageAccountId": {
+ "type": "string",
+ "description": "The resource ID of the storage account to which you would like to send Diagnostic Logs."
+ },
+ "systemData": {
+ "type": "object",
+ "$ref": "#/types/azure-native:monitor:SystemDataResponse",
+ "description": "The system metadata related to this resource."
+ },
+ "type": {
+ "type": "string",
+ "description": "The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or \"Microsoft.Storage/storageAccounts\""
+ },
+ "workspaceId": {
+ "type": "string",
+ "description": "The full ARM resource ID of the Log Analytics workspace to which you would like to send Diagnostic Logs. Example: /subscriptions/4b9e8510-67ab-4e9a-95a9-e2f1e570ea9c/resourceGroups/insights-integration/providers/Microsoft.OperationalInsights/workspaces/viruela2"
+ }
+ },
+ "type": "object",
+ "required": [
+ "azureApiVersion",
+ "name",
+ "systemData",
+ "type"
+ ],
+ "inputProperties": {
+ "eventHubAuthorizationRuleId": {
+ "type": "string",
+ "description": "The resource Id for the event hub authorization rule."
+ },
+ "eventHubName": {
+ "type": "string",
+ "description": "The name of the event hub. If none is specified, the default event hub will be selected."
+ },
+ "logAnalyticsDestinationType": {
+ "type": "string",
+ "description": "A string indicating whether the export to Log Analytics should use the default destination type, i.e. AzureDiagnostics, or use a destination type constructed as follows: \u003cnormalized service identity\u003e_\u003cnormalized category name\u003e. Possible values are: Dedicated and null (null is default.)"
+ },
+ "logs": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "$ref": "#/types/azure-native:monitor:LogSettings"
+ },
+ "description": "The list of logs settings."
+ },
+ "marketplacePartnerId": {
+ "type": "string",
+ "description": "The full ARM resource ID of the Marketplace resource to which you would like to send Diagnostic Logs."
+ },
+ "metrics": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "$ref": "#/types/azure-native:monitor:MetricSettings"
+ },
+ "description": "The list of metric settings."
+ },
+ "name": {
+ "type": "string",
+ "description": "The name of the diagnostic setting.",
+ "willReplaceOnChanges": true
+ },
+ "resourceUri": {
+ "type": "string",
+ "description": "The identifier of the resource.",
+ "willReplaceOnChanges": true
+ },
+ "serviceBusRuleId": {
+ "type": "string",
+ "description": "The service bus rule Id of the diagnostic setting. This is here to maintain backwards compatibility."
+ },
+ "storageAccountId": {
+ "type": "string",
+ "description": "The resource ID of the storage account to which you would like to send Diagnostic Logs."
+ },
+ "workspaceId": {
+ "type": "string",
+ "description": "The full ARM resource ID of the Log Analytics workspace to which you would like to send Diagnostic Logs. Example: /subscriptions/4b9e8510-67ab-4e9a-95a9-e2f1e570ea9c/resourceGroups/insights-integration/providers/Microsoft.OperationalInsights/workspaces/viruela2"
+ }
+ },
+ "requiredInputs": [
+ "resourceUri"
+ ],
+ "aliases": [
+ {
+ "type": "azure-native:insights/v20210501preview:DiagnosticSetting"
+ },
+ {
+ "type": "azure-native:insights:DiagnosticSetting"
+ },
+ {
+ "type": "azure-native:monitor/v20170501preview:DiagnosticSetting"
+ },
+ {
+ "type": "azure-native:monitor/v20210501preview:DiagnosticSetting"
+ }
+ ]
+ },
+ "azure-native:monitor:ManagementGroupDiagnosticSetting": {
+ "description": "The management group diagnostic setting resource.\n\nUses Azure REST API version 2021-05-01-preview.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n### Creates or Updates the management group diagnostic setting\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing AzureNative = Pulumi.AzureNative;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var managementGroupDiagnosticSetting = new AzureNative.Monitor.ManagementGroupDiagnosticSetting(\"managementGroupDiagnosticSetting\", new()\n {\n EventHubAuthorizationRuleId = \"/subscriptions/fb9f25f9-5785-4510-a38f-a62f188eb9f8/resourceGroups/montest/providers/microsoft.eventhub/namespaces/mynamespace/authorizationrules/myrule\",\n EventHubName = \"myeventhub\",\n Logs = new[]\n {\n new AzureNative.Monitor.Inputs.ManagementGroupLogSettingsArgs\n {\n CategoryGroup = \"allLogs\",\n Enabled = true,\n },\n },\n ManagementGroupId = \"testChildMG7\",\n MarketplacePartnerId = \"/subscriptions/abcdeabc-1234-1234-ab12-123a1234567a/resourceGroups/test-rg/providers/Microsoft.Datadog/monitors/dd1\",\n Name = \"setting1\",\n StorageAccountId = \"/subscriptions/bfaef57f-297e-4210-bfe5-27c18cc671f7/resourceGroups/FuncAppRunners/providers/Microsoft.Storage/storageAccounts/testpersonalb6a5\",\n WorkspaceId = \"/subscriptions/9cf7cc0a-0ba1-4624-bc82-97e1ee25dc45/resourceGroups/mgTest/providers/Microsoft.OperationalInsights/workspaces/mgTestWorkspace\",\n });\n\n});\n\n\n```\n\n```go\npackage main\n\nimport (\n\tmonitor \"github.com/pulumi/pulumi-azure-native-sdk/monitor/v2\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := monitor.NewManagementGroupDiagnosticSetting(ctx, \"managementGroupDiagnosticSetting\", \u0026monitor.ManagementGroupDiagnosticSettingArgs{\n\t\t\tEventHubAuthorizationRuleId: pulumi.String(\"/subscriptions/fb9f25f9-5785-4510-a38f-a62f188eb9f8/resourceGroups/montest/providers/microsoft.eventhub/namespaces/mynamespace/authorizationrules/myrule\"),\n\t\t\tEventHubName: pulumi.String(\"myeventhub\"),\n\t\t\tLogs: monitor.ManagementGroupLogSettingsArray{\n\t\t\t\t\u0026monitor.ManagementGroupLogSettingsArgs{\n\t\t\t\t\tCategoryGroup: pulumi.String(\"allLogs\"),\n\t\t\t\t\tEnabled: pulumi.Bool(true),\n\t\t\t\t},\n\t\t\t},\n\t\t\tManagementGroupId: pulumi.String(\"testChildMG7\"),\n\t\t\tMarketplacePartnerId: pulumi.String(\"/subscriptions/abcdeabc-1234-1234-ab12-123a1234567a/resourceGroups/test-rg/providers/Microsoft.Datadog/monitors/dd1\"),\n\t\t\tName: pulumi.String(\"setting1\"),\n\t\t\tStorageAccountId: pulumi.String(\"/subscriptions/bfaef57f-297e-4210-bfe5-27c18cc671f7/resourceGroups/FuncAppRunners/providers/Microsoft.Storage/storageAccounts/testpersonalb6a5\"),\n\t\t\tWorkspaceId: pulumi.String(\"/subscriptions/9cf7cc0a-0ba1-4624-bc82-97e1ee25dc45/resourceGroups/mgTest/providers/Microsoft.OperationalInsights/workspaces/mgTestWorkspace\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n\n```\n\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azurenative.monitor.ManagementGroupDiagnosticSetting;\nimport com.pulumi.azurenative.monitor.ManagementGroupDiagnosticSettingArgs;\nimport com.pulumi.azurenative.monitor.inputs.ManagementGroupLogSettingsArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var managementGroupDiagnosticSetting = new ManagementGroupDiagnosticSetting(\"managementGroupDiagnosticSetting\", ManagementGroupDiagnosticSettingArgs.builder()\n .eventHubAuthorizationRuleId(\"/subscriptions/fb9f25f9-5785-4510-a38f-a62f188eb9f8/resourceGroups/montest/providers/microsoft.eventhub/namespaces/mynamespace/authorizationrules/myrule\")\n .eventHubName(\"myeventhub\")\n .logs(ManagementGroupLogSettingsArgs.builder()\n .categoryGroup(\"allLogs\")\n .enabled(true)\n .build())\n .managementGroupId(\"testChildMG7\")\n .marketplacePartnerId(\"/subscriptions/abcdeabc-1234-1234-ab12-123a1234567a/resourceGroups/test-rg/providers/Microsoft.Datadog/monitors/dd1\")\n .name(\"setting1\")\n .storageAccountId(\"/subscriptions/bfaef57f-297e-4210-bfe5-27c18cc671f7/resourceGroups/FuncAppRunners/providers/Microsoft.Storage/storageAccounts/testpersonalb6a5\")\n .workspaceId(\"/subscriptions/9cf7cc0a-0ba1-4624-bc82-97e1ee25dc45/resourceGroups/mgTest/providers/Microsoft.OperationalInsights/workspaces/mgTestWorkspace\")\n .build());\n\n }\n}\n\n```\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure_native from \"@pulumi/azure-native\";\n\nconst managementGroupDiagnosticSetting = new azure_native.monitor.ManagementGroupDiagnosticSetting(\"managementGroupDiagnosticSetting\", {\n eventHubAuthorizationRuleId: \"/subscriptions/fb9f25f9-5785-4510-a38f-a62f188eb9f8/resourceGroups/montest/providers/microsoft.eventhub/namespaces/mynamespace/authorizationrules/myrule\",\n eventHubName: \"myeventhub\",\n logs: [{\n categoryGroup: \"allLogs\",\n enabled: true,\n }],\n managementGroupId: \"testChildMG7\",\n marketplacePartnerId: \"/subscriptions/abcdeabc-1234-1234-ab12-123a1234567a/resourceGroups/test-rg/providers/Microsoft.Datadog/monitors/dd1\",\n name: \"setting1\",\n storageAccountId: \"/subscriptions/bfaef57f-297e-4210-bfe5-27c18cc671f7/resourceGroups/FuncAppRunners/providers/Microsoft.Storage/storageAccounts/testpersonalb6a5\",\n workspaceId: \"/subscriptions/9cf7cc0a-0ba1-4624-bc82-97e1ee25dc45/resourceGroups/mgTest/providers/Microsoft.OperationalInsights/workspaces/mgTestWorkspace\",\n});\n\n```\n\n```python\nimport pulumi\nimport pulumi_azure_native as azure_native\n\nmanagement_group_diagnostic_setting = azure_native.monitor.ManagementGroupDiagnosticSetting(\"managementGroupDiagnosticSetting\",\n event_hub_authorization_rule_id=\"/subscriptions/fb9f25f9-5785-4510-a38f-a62f188eb9f8/resourceGroups/montest/providers/microsoft.eventhub/namespaces/mynamespace/authorizationrules/myrule\",\n event_hub_name=\"myeventhub\",\n logs=[{\n \"category_group\": \"allLogs\",\n \"enabled\": True,\n }],\n management_group_id=\"testChildMG7\",\n marketplace_partner_id=\"/subscriptions/abcdeabc-1234-1234-ab12-123a1234567a/resourceGroups/test-rg/providers/Microsoft.Datadog/monitors/dd1\",\n name=\"setting1\",\n storage_account_id=\"/subscriptions/bfaef57f-297e-4210-bfe5-27c18cc671f7/resourceGroups/FuncAppRunners/providers/Microsoft.Storage/storageAccounts/testpersonalb6a5\",\n workspace_id=\"/subscriptions/9cf7cc0a-0ba1-4624-bc82-97e1ee25dc45/resourceGroups/mgTest/providers/Microsoft.OperationalInsights/workspaces/mgTestWorkspace\")\n\n```\n\n```yaml\nresources:\n managementGroupDiagnosticSetting:\n type: azure-native:monitor:ManagementGroupDiagnosticSetting\n properties:\n eventHubAuthorizationRuleId: /subscriptions/fb9f25f9-5785-4510-a38f-a62f188eb9f8/resourceGroups/montest/providers/microsoft.eventhub/namespaces/mynamespace/authorizationrules/myrule\n eventHubName: myeventhub\n logs:\n - categoryGroup: allLogs\n enabled: true\n managementGroupId: testChildMG7\n marketplacePartnerId: /subscriptions/abcdeabc-1234-1234-ab12-123a1234567a/resourceGroups/test-rg/providers/Microsoft.Datadog/monitors/dd1\n name: setting1\n storageAccountId: /subscriptions/bfaef57f-297e-4210-bfe5-27c18cc671f7/resourceGroups/FuncAppRunners/providers/Microsoft.Storage/storageAccounts/testpersonalb6a5\n workspaceId: /subscriptions/9cf7cc0a-0ba1-4624-bc82-97e1ee25dc45/resourceGroups/mgTest/providers/Microsoft.OperationalInsights/workspaces/mgTestWorkspace\n\n```\n\n{{% /example %}}\n{{% example %}}\n### Creates or Updates the management group diagnostic setting for category\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing AzureNative = Pulumi.AzureNative;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var managementGroupDiagnosticSetting = new AzureNative.Monitor.ManagementGroupDiagnosticSetting(\"managementGroupDiagnosticSetting\", new()\n {\n EventHubAuthorizationRuleId = \"/subscriptions/fb9f25f9-5785-4510-a38f-a62f188eb9f8/resourceGroups/montest/providers/microsoft.eventhub/namespaces/mynamespace/authorizationrules/myrule\",\n EventHubName = \"myeventhub\",\n Logs = new[]\n {\n new AzureNative.Monitor.Inputs.ManagementGroupLogSettingsArgs\n {\n Category = \"Administrative\",\n Enabled = true,\n },\n new AzureNative.Monitor.Inputs.ManagementGroupLogSettingsArgs\n {\n Category = \"Policy\",\n Enabled = true,\n },\n },\n ManagementGroupId = \"testChildMG7\",\n MarketplacePartnerId = \"/subscriptions/abcdeabc-1234-1234-ab12-123a1234567a/resourceGroups/test-rg/providers/Microsoft.Datadog/monitors/dd1\",\n Name = \"setting1\",\n StorageAccountId = \"/subscriptions/bfaef57f-297e-4210-bfe5-27c18cc671f7/resourceGroups/FuncAppRunners/providers/Microsoft.Storage/storageAccounts/testpersonalb6a5\",\n WorkspaceId = \"/subscriptions/9cf7cc0a-0ba1-4624-bc82-97e1ee25dc45/resourceGroups/mgTest/providers/Microsoft.OperationalInsights/workspaces/mgTestWorkspace\",\n });\n\n});\n\n\n```\n\n```go\npackage main\n\nimport (\n\tmonitor \"github.com/pulumi/pulumi-azure-native-sdk/monitor/v2\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := monitor.NewManagementGroupDiagnosticSetting(ctx, \"managementGroupDiagnosticSetting\", \u0026monitor.ManagementGroupDiagnosticSettingArgs{\n\t\t\tEventHubAuthorizationRuleId: pulumi.String(\"/subscriptions/fb9f25f9-5785-4510-a38f-a62f188eb9f8/resourceGroups/montest/providers/microsoft.eventhub/namespaces/mynamespace/authorizationrules/myrule\"),\n\t\t\tEventHubName: pulumi.String(\"myeventhub\"),\n\t\t\tLogs: monitor.ManagementGroupLogSettingsArray{\n\t\t\t\t\u0026monitor.ManagementGroupLogSettingsArgs{\n\t\t\t\t\tCategory: pulumi.String(\"Administrative\"),\n\t\t\t\t\tEnabled: pulumi.Bool(true),\n\t\t\t\t},\n\t\t\t\t\u0026monitor.ManagementGroupLogSettingsArgs{\n\t\t\t\t\tCategory: pulumi.String(\"Policy\"),\n\t\t\t\t\tEnabled: pulumi.Bool(true),\n\t\t\t\t},\n\t\t\t},\n\t\t\tManagementGroupId: pulumi.String(\"testChildMG7\"),\n\t\t\tMarketplacePartnerId: pulumi.String(\"/subscriptions/abcdeabc-1234-1234-ab12-123a1234567a/resourceGroups/test-rg/providers/Microsoft.Datadog/monitors/dd1\"),\n\t\t\tName: pulumi.String(\"setting1\"),\n\t\t\tStorageAccountId: pulumi.String(\"/subscriptions/bfaef57f-297e-4210-bfe5-27c18cc671f7/resourceGroups/FuncAppRunners/providers/Microsoft.Storage/storageAccounts/testpersonalb6a5\"),\n\t\t\tWorkspaceId: pulumi.String(\"/subscriptions/9cf7cc0a-0ba1-4624-bc82-97e1ee25dc45/resourceGroups/mgTest/providers/Microsoft.OperationalInsights/workspaces/mgTestWorkspace\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n\n```\n\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azurenative.monitor.ManagementGroupDiagnosticSetting;\nimport com.pulumi.azurenative.monitor.ManagementGroupDiagnosticSettingArgs;\nimport com.pulumi.azurenative.monitor.inputs.ManagementGroupLogSettingsArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var managementGroupDiagnosticSetting = new ManagementGroupDiagnosticSetting(\"managementGroupDiagnosticSetting\", ManagementGroupDiagnosticSettingArgs.builder()\n .eventHubAuthorizationRuleId(\"/subscriptions/fb9f25f9-5785-4510-a38f-a62f188eb9f8/resourceGroups/montest/providers/microsoft.eventhub/namespaces/mynamespace/authorizationrules/myrule\")\n .eventHubName(\"myeventhub\")\n .logs( \n ManagementGroupLogSettingsArgs.builder()\n .category(\"Administrative\")\n .enabled(true)\n .build(),\n ManagementGroupLogSettingsArgs.builder()\n .category(\"Policy\")\n .enabled(true)\n .build())\n .managementGroupId(\"testChildMG7\")\n .marketplacePartnerId(\"/subscriptions/abcdeabc-1234-1234-ab12-123a1234567a/resourceGroups/test-rg/providers/Microsoft.Datadog/monitors/dd1\")\n .name(\"setting1\")\n .storageAccountId(\"/subscriptions/bfaef57f-297e-4210-bfe5-27c18cc671f7/resourceGroups/FuncAppRunners/providers/Microsoft.Storage/storageAccounts/testpersonalb6a5\")\n .workspaceId(\"/subscriptions/9cf7cc0a-0ba1-4624-bc82-97e1ee25dc45/resourceGroups/mgTest/providers/Microsoft.OperationalInsights/workspaces/mgTestWorkspace\")\n .build());\n\n }\n}\n\n```\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure_native from \"@pulumi/azure-native\";\n\nconst managementGroupDiagnosticSetting = new azure_native.monitor.ManagementGroupDiagnosticSetting(\"managementGroupDiagnosticSetting\", {\n eventHubAuthorizationRuleId: \"/subscriptions/fb9f25f9-5785-4510-a38f-a62f188eb9f8/resourceGroups/montest/providers/microsoft.eventhub/namespaces/mynamespace/authorizationrules/myrule\",\n eventHubName: \"myeventhub\",\n logs: [\n {\n category: \"Administrative\",\n enabled: true,\n },\n {\n category: \"Policy\",\n enabled: true,\n },\n ],\n managementGroupId: \"testChildMG7\",\n marketplacePartnerId: \"/subscriptions/abcdeabc-1234-1234-ab12-123a1234567a/resourceGroups/test-rg/providers/Microsoft.Datadog/monitors/dd1\",\n name: \"setting1\",\n storageAccountId: \"/subscriptions/bfaef57f-297e-4210-bfe5-27c18cc671f7/resourceGroups/FuncAppRunners/providers/Microsoft.Storage/storageAccounts/testpersonalb6a5\",\n workspaceId: \"/subscriptions/9cf7cc0a-0ba1-4624-bc82-97e1ee25dc45/resourceGroups/mgTest/providers/Microsoft.OperationalInsights/workspaces/mgTestWorkspace\",\n});\n\n```\n\n```python\nimport pulumi\nimport pulumi_azure_native as azure_native\n\nmanagement_group_diagnostic_setting = azure_native.monitor.ManagementGroupDiagnosticSetting(\"managementGroupDiagnosticSetting\",\n event_hub_authorization_rule_id=\"/subscriptions/fb9f25f9-5785-4510-a38f-a62f188eb9f8/resourceGroups/montest/providers/microsoft.eventhub/namespaces/mynamespace/authorizationrules/myrule\",\n event_hub_name=\"myeventhub\",\n logs=[\n {\n \"category\": \"Administrative\",\n \"enabled\": True,\n },\n {\n \"category\": \"Policy\",\n \"enabled\": True,\n },\n ],\n management_group_id=\"testChildMG7\",\n marketplace_partner_id=\"/subscriptions/abcdeabc-1234-1234-ab12-123a1234567a/resourceGroups/test-rg/providers/Microsoft.Datadog/monitors/dd1\",\n name=\"setting1\",\n storage_account_id=\"/subscriptions/bfaef57f-297e-4210-bfe5-27c18cc671f7/resourceGroups/FuncAppRunners/providers/Microsoft.Storage/storageAccounts/testpersonalb6a5\",\n workspace_id=\"/subscriptions/9cf7cc0a-0ba1-4624-bc82-97e1ee25dc45/resourceGroups/mgTest/providers/Microsoft.OperationalInsights/workspaces/mgTestWorkspace\")\n\n```\n\n```yaml\nresources:\n managementGroupDiagnosticSetting:\n type: azure-native:monitor:ManagementGroupDiagnosticSetting\n properties:\n eventHubAuthorizationRuleId: /subscriptions/fb9f25f9-5785-4510-a38f-a62f188eb9f8/resourceGroups/montest/providers/microsoft.eventhub/namespaces/mynamespace/authorizationrules/myrule\n eventHubName: myeventhub\n logs:\n - category: Administrative\n enabled: true\n - category: Policy\n enabled: true\n managementGroupId: testChildMG7\n marketplacePartnerId: /subscriptions/abcdeabc-1234-1234-ab12-123a1234567a/resourceGroups/test-rg/providers/Microsoft.Datadog/monitors/dd1\n name: setting1\n storageAccountId: /subscriptions/bfaef57f-297e-4210-bfe5-27c18cc671f7/resourceGroups/FuncAppRunners/providers/Microsoft.Storage/storageAccounts/testpersonalb6a5\n workspaceId: /subscriptions/9cf7cc0a-0ba1-4624-bc82-97e1ee25dc45/resourceGroups/mgTest/providers/Microsoft.OperationalInsights/workspaces/mgTestWorkspace\n\n```\n\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nAn existing resource can be imported using its type token, name, and identifier, e.g.\n\n```sh\n$ pulumi import azure-native:monitor:ManagementGroupDiagnosticSetting setting1 /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Insights/diagnosticSettings/{name} \n```\n",
+ "properties": {
+ "azureApiVersion": {
+ "type": "string",
+ "description": "The Azure API version of the resource."
+ },
+ "eventHubAuthorizationRuleId": {
+ "type": "string",
+ "description": "The resource Id for the event hub authorization rule."
+ },
+ "eventHubName": {
+ "type": "string",
+ "description": "The name of the event hub. If none is specified, the default event hub will be selected."
+ },
+ "logs": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "$ref": "#/types/azure-native:monitor:ManagementGroupLogSettingsResponse"
+ },
+ "description": "The list of logs settings."
+ },
+ "marketplacePartnerId": {
+ "type": "string",
+ "description": "The full ARM resource ID of the Marketplace resource to which you would like to send Diagnostic Logs."
+ },
+ "name": {
+ "type": "string",
+ "description": "The name of the resource"
+ },
+ "serviceBusRuleId": {
+ "type": "string",
+ "description": "The service bus rule Id of the diagnostic setting. This is here to maintain backwards compatibility."
+ },
+ "storageAccountId": {
+ "type": "string",
+ "description": "The resource ID of the storage account to which you would like to send Diagnostic Logs."
+ },
+ "systemData": {
+ "type": "object",
+ "$ref": "#/types/azure-native:monitor:SystemDataResponse",
+ "description": "The system metadata related to this resource."
+ },
+ "type": {
+ "type": "string",
+ "description": "The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or \"Microsoft.Storage/storageAccounts\""
+ },
+ "workspaceId": {
+ "type": "string",
+ "description": "The full ARM resource ID of the Log Analytics workspace to which you would like to send Diagnostic Logs. Example: /subscriptions/4b9e8510-67ab-4e9a-95a9-e2f1e570ea9c/resourceGroups/insights-integration/providers/Microsoft.OperationalInsights/workspaces/viruela2"
+ }
+ },
+ "type": "object",
+ "required": [
+ "azureApiVersion",
+ "name",
+ "systemData",
+ "type"
+ ],
+ "inputProperties": {
+ "eventHubAuthorizationRuleId": {
+ "type": "string",
+ "description": "The resource Id for the event hub authorization rule."
+ },
+ "eventHubName": {
+ "type": "string",
+ "description": "The name of the event hub. If none is specified, the default event hub will be selected."
+ },
+ "logs": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "$ref": "#/types/azure-native:monitor:ManagementGroupLogSettings"
+ },
+ "description": "The list of logs settings."
+ },
+ "managementGroupId": {
+ "type": "string",
+ "description": "The management group id.",
+ "willReplaceOnChanges": true
+ },
+ "marketplacePartnerId": {
+ "type": "string",
+ "description": "The full ARM resource ID of the Marketplace resource to which you would like to send Diagnostic Logs."
+ },
+ "name": {
+ "type": "string",
+ "description": "The name of the diagnostic setting.",
+ "willReplaceOnChanges": true
+ },
+ "serviceBusRuleId": {
+ "type": "string",
+ "description": "The service bus rule Id of the diagnostic setting. This is here to maintain backwards compatibility."
+ },
+ "storageAccountId": {
+ "type": "string",
+ "description": "The resource ID of the storage account to which you would like to send Diagnostic Logs."
+ },
+ "workspaceId": {
+ "type": "string",
+ "description": "The full ARM resource ID of the Log Analytics workspace to which you would like to send Diagnostic Logs. Example: /subscriptions/4b9e8510-67ab-4e9a-95a9-e2f1e570ea9c/resourceGroups/insights-integration/providers/Microsoft.OperationalInsights/workspaces/viruela2"
+ }
+ },
+ "requiredInputs": [
+ "managementGroupId"
+ ],
+ "aliases": [
+ {
+ "type": "azure-native:insights/v20200101preview:ManagementGroupDiagnosticSetting"
+ },
+ {
+ "type": "azure-native:insights/v20210501preview:ManagementGroupDiagnosticSetting"
+ },
+ {
+ "type": "azure-native:insights:ManagementGroupDiagnosticSetting"
+ },
+ {
+ "type": "azure-native:monitor/v20200101preview:ManagementGroupDiagnosticSetting"
+ },
+ {
+ "type": "azure-native:monitor/v20210501preview:ManagementGroupDiagnosticSetting"
+ }
+ ]
+ },
"azure-native:monitor:PipelineGroup": {
"description": "A pipeline group definition.\n\nUses Azure REST API version 2024-10-01-preview. In version 2.x of the Azure Native provider, it used API version 2023-10-01-preview.\n\nOther available API versions: 2023-10-01-preview. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native monitor [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n### Create a PipelineGroup instance using UDP receiver\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing AzureNative = Pulumi.AzureNative;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var pipelineGroup = new AzureNative.Monitor.PipelineGroup(\"pipelineGroup\", new()\n {\n ExtendedLocation = new AzureNative.Monitor.Inputs.AzureResourceManagerCommonTypesExtendedLocationArgs\n {\n Name = \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.extendedlocation/customlocations/myTestCustomLocation\",\n Type = AzureNative.Monitor.ExtendedLocationType.CustomLocation,\n },\n Location = \"eastus2\",\n PipelineGroupName = \"plGroup1\",\n Properties = new AzureNative.Monitor.Inputs.PipelineGroupPropertiesArgs\n {\n Exporters = new[]\n {\n new AzureNative.Monitor.Inputs.ExporterArgs\n {\n AzureMonitorWorkspaceLogs = new AzureNative.Monitor.Inputs.AzureMonitorWorkspaceLogsExporterArgs\n {\n Api = new AzureNative.Monitor.Inputs.AzureMonitorWorkspaceLogsApiConfigArgs\n {\n DataCollectionEndpointUrl = \"https://logs-myingestion-eb0s.eastus-1.ingest.monitor.azure.com\",\n DataCollectionRule = \"dcr-00000000000000000000000000000000\",\n Schema = new AzureNative.Monitor.Inputs.SchemaMapArgs\n {\n RecordMap = new[]\n {\n new AzureNative.Monitor.Inputs.RecordMapArgs\n {\n From = \"body\",\n To = \"Body\",\n },\n new AzureNative.Monitor.Inputs.RecordMapArgs\n {\n From = \"severity_text\",\n To = \"SeverityText\",\n },\n new AzureNative.Monitor.Inputs.RecordMapArgs\n {\n From = \"time_unix_nano\",\n To = \"TimeGenerated\",\n },\n },\n },\n Stream = \"Custom-MyTableRawData_CL\",\n },\n Concurrency = new AzureNative.Monitor.Inputs.ConcurrencyConfigurationArgs\n {\n BatchQueueSize = 100,\n WorkerCount = 4,\n },\n },\n Name = \"my-workspace-logs-exporter1\",\n Type = AzureNative.Monitor.ExporterType.AzureMonitorWorkspaceLogs,\n },\n },\n Processors = new() { },\n Receivers = new[]\n {\n new AzureNative.Monitor.Inputs.ReceiverArgs\n {\n Name = \"udp-receiver1\",\n Type = AzureNative.Monitor.ReceiverType.UDP,\n Udp = new AzureNative.Monitor.Inputs.UdpReceiverArgs\n {\n Encoding = AzureNative.Monitor.StreamEncodingType.Utf_8,\n Endpoint = \"0.0.0.0:518\",\n },\n },\n },\n Service = new AzureNative.Monitor.Inputs.ServiceArgs\n {\n Pipelines = new[]\n {\n new AzureNative.Monitor.Inputs.PipelineArgs\n {\n Exporters = new[]\n {\n \"my-workspace-logs-exporter1\",\n },\n Name = \"MyPipelineForLogs1\",\n Processors = new() { },\n Receivers = new[]\n {\n \"udp-receiver1\",\n },\n Type = AzureNative.Monitor.PipelineType.Logs,\n },\n },\n },\n },\n ResourceGroupName = \"myResourceGroup\",\n Tags = \n {\n { \"tag1\", \"A\" },\n { \"tag2\", \"B\" },\n },\n });\n\n});\n\n\n```\n\n```go\npackage main\n\nimport (\n\tmonitor \"github.com/pulumi/pulumi-azure-native-sdk/monitor/v2\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := monitor.NewPipelineGroup(ctx, \"pipelineGroup\", \u0026monitor.PipelineGroupArgs{\n\t\t\tExtendedLocation: \u0026monitor.AzureResourceManagerCommonTypesExtendedLocationArgs{\n\t\t\t\tName: pulumi.String(\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.extendedlocation/customlocations/myTestCustomLocation\"),\n\t\t\t\tType: pulumi.String(monitor.ExtendedLocationTypeCustomLocation),\n\t\t\t},\n\t\t\tLocation: pulumi.String(\"eastus2\"),\n\t\t\tPipelineGroupName: pulumi.String(\"plGroup1\"),\n\t\t\tProperties: \u0026monitor.PipelineGroupPropertiesArgs{\n\t\t\t\tExporters: monitor.ExporterArray{\n\t\t\t\t\t\u0026monitor.ExporterArgs{\n\t\t\t\t\t\tAzureMonitorWorkspaceLogs: \u0026monitor.AzureMonitorWorkspaceLogsExporterArgs{\n\t\t\t\t\t\t\tApi: \u0026monitor.AzureMonitorWorkspaceLogsApiConfigArgs{\n\t\t\t\t\t\t\t\tDataCollectionEndpointUrl: pulumi.String(\"https://logs-myingestion-eb0s.eastus-1.ingest.monitor.azure.com\"),\n\t\t\t\t\t\t\t\tDataCollectionRule: pulumi.String(\"dcr-00000000000000000000000000000000\"),\n\t\t\t\t\t\t\t\tSchema: \u0026monitor.SchemaMapArgs{\n\t\t\t\t\t\t\t\t\tRecordMap: monitor.RecordMapArray{\n\t\t\t\t\t\t\t\t\t\t\u0026monitor.RecordMapArgs{\n\t\t\t\t\t\t\t\t\t\t\tFrom: pulumi.String(\"body\"),\n\t\t\t\t\t\t\t\t\t\t\tTo: pulumi.String(\"Body\"),\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\u0026monitor.RecordMapArgs{\n\t\t\t\t\t\t\t\t\t\t\tFrom: pulumi.String(\"severity_text\"),\n\t\t\t\t\t\t\t\t\t\t\tTo: pulumi.String(\"SeverityText\"),\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\u0026monitor.RecordMapArgs{\n\t\t\t\t\t\t\t\t\t\t\tFrom: pulumi.String(\"time_unix_nano\"),\n\t\t\t\t\t\t\t\t\t\t\tTo: pulumi.String(\"TimeGenerated\"),\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tStream: pulumi.String(\"Custom-MyTableRawData_CL\"),\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tConcurrency: \u0026monitor.ConcurrencyConfigurationArgs{\n\t\t\t\t\t\t\t\tBatchQueueSize: pulumi.Int(100),\n\t\t\t\t\t\t\t\tWorkerCount: pulumi.Int(4),\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t\tName: pulumi.String(\"my-workspace-logs-exporter1\"),\n\t\t\t\t\t\tType: pulumi.String(monitor.ExporterTypeAzureMonitorWorkspaceLogs),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tProcessors: monitor.ProcessorArray{},\n\t\t\t\tReceivers: monitor.ReceiverArray{\n\t\t\t\t\t\u0026monitor.ReceiverArgs{\n\t\t\t\t\t\tName: pulumi.String(\"udp-receiver1\"),\n\t\t\t\t\t\tType: pulumi.String(monitor.ReceiverTypeUDP),\n\t\t\t\t\t\tUdp: \u0026monitor.UdpReceiverArgs{\n\t\t\t\t\t\t\tEncoding: pulumi.String(monitor.StreamEncodingType_Utf_8),\n\t\t\t\t\t\t\tEndpoint: pulumi.String(\"0.0.0.0:518\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tService: \u0026monitor.ServiceArgs{\n\t\t\t\t\tPipelines: monitor.PipelineArray{\n\t\t\t\t\t\t\u0026monitor.PipelineArgs{\n\t\t\t\t\t\t\tExporters: pulumi.StringArray{\n\t\t\t\t\t\t\t\tpulumi.String(\"my-workspace-logs-exporter1\"),\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tName: pulumi.String(\"MyPipelineForLogs1\"),\n\t\t\t\t\t\t\tProcessors: pulumi.StringArray{},\n\t\t\t\t\t\t\tReceivers: pulumi.StringArray{\n\t\t\t\t\t\t\t\tpulumi.String(\"udp-receiver1\"),\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tType: pulumi.String(monitor.PipelineTypeLogs),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tResourceGroupName: pulumi.String(\"myResourceGroup\"),\n\t\t\tTags: pulumi.StringMap{\n\t\t\t\t\"tag1\": pulumi.String(\"A\"),\n\t\t\t\t\"tag2\": pulumi.String(\"B\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n\n```\n\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azurenative.monitor.PipelineGroup;\nimport com.pulumi.azurenative.monitor.PipelineGroupArgs;\nimport com.pulumi.azurenative.monitor.inputs.AzureResourceManagerCommonTypesExtendedLocationArgs;\nimport com.pulumi.azurenative.monitor.inputs.PipelineGroupPropertiesArgs;\nimport com.pulumi.azurenative.monitor.inputs.ServiceArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var pipelineGroup = new PipelineGroup(\"pipelineGroup\", PipelineGroupArgs.builder()\n .extendedLocation(AzureResourceManagerCommonTypesExtendedLocationArgs.builder()\n .name(\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.extendedlocation/customlocations/myTestCustomLocation\")\n .type(\"CustomLocation\")\n .build())\n .location(\"eastus2\")\n .pipelineGroupName(\"plGroup1\")\n .properties(PipelineGroupPropertiesArgs.builder()\n .exporters(ExporterArgs.builder()\n .azureMonitorWorkspaceLogs(AzureMonitorWorkspaceLogsExporterArgs.builder()\n .api(AzureMonitorWorkspaceLogsApiConfigArgs.builder()\n .dataCollectionEndpointUrl(\"https://logs-myingestion-eb0s.eastus-1.ingest.monitor.azure.com\")\n .dataCollectionRule(\"dcr-00000000000000000000000000000000\")\n .schema(SchemaMapArgs.builder()\n .recordMap( \n RecordMapArgs.builder()\n .from(\"body\")\n .to(\"Body\")\n .build(),\n RecordMapArgs.builder()\n .from(\"severity_text\")\n .to(\"SeverityText\")\n .build(),\n RecordMapArgs.builder()\n .from(\"time_unix_nano\")\n .to(\"TimeGenerated\")\n .build())\n .build())\n .stream(\"Custom-MyTableRawData_CL\")\n .build())\n .concurrency(ConcurrencyConfigurationArgs.builder()\n .batchQueueSize(100)\n .workerCount(4)\n .build())\n .build())\n .name(\"my-workspace-logs-exporter1\")\n .type(\"AzureMonitorWorkspaceLogs\")\n .build())\n .processors()\n .receivers(ReceiverArgs.builder()\n .name(\"udp-receiver1\")\n .type(\"UDP\")\n .udp(UdpReceiverArgs.builder()\n .encoding(\"utf-8\")\n .endpoint(\"0.0.0.0:518\")\n .build())\n .build())\n .service(ServiceArgs.builder()\n .pipelines(PipelineArgs.builder()\n .exporters(\"my-workspace-logs-exporter1\")\n .name(\"MyPipelineForLogs1\")\n .processors()\n .receivers(\"udp-receiver1\")\n .type(\"Logs\")\n .build())\n .build())\n .build())\n .resourceGroupName(\"myResourceGroup\")\n .tags(Map.ofEntries(\n Map.entry(\"tag1\", \"A\"),\n Map.entry(\"tag2\", \"B\")\n ))\n .build());\n\n }\n}\n\n```\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure_native from \"@pulumi/azure-native\";\n\nconst pipelineGroup = new azure_native.monitor.PipelineGroup(\"pipelineGroup\", {\n extendedLocation: {\n name: \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.extendedlocation/customlocations/myTestCustomLocation\",\n type: azure_native.monitor.ExtendedLocationType.CustomLocation,\n },\n location: \"eastus2\",\n pipelineGroupName: \"plGroup1\",\n properties: {\n exporters: [{\n azureMonitorWorkspaceLogs: {\n api: {\n dataCollectionEndpointUrl: \"https://logs-myingestion-eb0s.eastus-1.ingest.monitor.azure.com\",\n dataCollectionRule: \"dcr-00000000000000000000000000000000\",\n schema: {\n recordMap: [\n {\n from: \"body\",\n to: \"Body\",\n },\n {\n from: \"severity_text\",\n to: \"SeverityText\",\n },\n {\n from: \"time_unix_nano\",\n to: \"TimeGenerated\",\n },\n ],\n },\n stream: \"Custom-MyTableRawData_CL\",\n },\n concurrency: {\n batchQueueSize: 100,\n workerCount: 4,\n },\n },\n name: \"my-workspace-logs-exporter1\",\n type: azure_native.monitor.ExporterType.AzureMonitorWorkspaceLogs,\n }],\n processors: [],\n receivers: [{\n name: \"udp-receiver1\",\n type: azure_native.monitor.ReceiverType.UDP,\n udp: {\n encoding: azure_native.monitor.StreamEncodingType.Utf_8,\n endpoint: \"0.0.0.0:518\",\n },\n }],\n service: {\n pipelines: [{\n exporters: [\"my-workspace-logs-exporter1\"],\n name: \"MyPipelineForLogs1\",\n processors: [],\n receivers: [\"udp-receiver1\"],\n type: azure_native.monitor.PipelineType.Logs,\n }],\n },\n },\n resourceGroupName: \"myResourceGroup\",\n tags: {\n tag1: \"A\",\n tag2: \"B\",\n },\n});\n\n```\n\n```python\nimport pulumi\nimport pulumi_azure_native as azure_native\n\npipeline_group = azure_native.monitor.PipelineGroup(\"pipelineGroup\",\n extended_location={\n \"name\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.extendedlocation/customlocations/myTestCustomLocation\",\n \"type\": azure_native.monitor.ExtendedLocationType.CUSTOM_LOCATION,\n },\n location=\"eastus2\",\n pipeline_group_name=\"plGroup1\",\n properties={\n \"exporters\": [{\n \"azure_monitor_workspace_logs\": {\n \"api\": {\n \"data_collection_endpoint_url\": \"https://logs-myingestion-eb0s.eastus-1.ingest.monitor.azure.com\",\n \"data_collection_rule\": \"dcr-00000000000000000000000000000000\",\n \"schema\": {\n \"record_map\": [\n {\n \"from_\": \"body\",\n \"to\": \"Body\",\n },\n {\n \"from_\": \"severity_text\",\n \"to\": \"SeverityText\",\n },\n {\n \"from_\": \"time_unix_nano\",\n \"to\": \"TimeGenerated\",\n },\n ],\n },\n \"stream\": \"Custom-MyTableRawData_CL\",\n },\n \"concurrency\": {\n \"batch_queue_size\": 100,\n \"worker_count\": 4,\n },\n },\n \"name\": \"my-workspace-logs-exporter1\",\n \"type\": azure_native.monitor.ExporterType.AZURE_MONITOR_WORKSPACE_LOGS,\n }],\n \"processors\": [],\n \"receivers\": [{\n \"name\": \"udp-receiver1\",\n \"type\": azure_native.monitor.ReceiverType.UDP,\n \"udp\": {\n \"encoding\": azure_native.monitor.StreamEncodingType.UTF_8,\n \"endpoint\": \"0.0.0.0:518\",\n },\n }],\n \"service\": {\n \"pipelines\": [{\n \"exporters\": [\"my-workspace-logs-exporter1\"],\n \"name\": \"MyPipelineForLogs1\",\n \"processors\": [],\n \"receivers\": [\"udp-receiver1\"],\n \"type\": azure_native.monitor.PipelineType.LOGS,\n }],\n },\n },\n resource_group_name=\"myResourceGroup\",\n tags={\n \"tag1\": \"A\",\n \"tag2\": \"B\",\n })\n\n```\n\n```yaml\nresources:\n pipelineGroup:\n type: azure-native:monitor:PipelineGroup\n properties:\n extendedLocation:\n name: /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.extendedlocation/customlocations/myTestCustomLocation\n type: CustomLocation\n location: eastus2\n pipelineGroupName: plGroup1\n properties:\n exporters:\n - azureMonitorWorkspaceLogs:\n api:\n dataCollectionEndpointUrl: https://logs-myingestion-eb0s.eastus-1.ingest.monitor.azure.com\n dataCollectionRule: dcr-00000000000000000000000000000000\n schema:\n recordMap:\n - from: body\n to: Body\n - from: severity_text\n to: SeverityText\n - from: time_unix_nano\n to: TimeGenerated\n stream: Custom-MyTableRawData_CL\n concurrency:\n batchQueueSize: 100\n workerCount: 4\n name: my-workspace-logs-exporter1\n type: AzureMonitorWorkspaceLogs\n processors: []\n receivers:\n - name: udp-receiver1\n type: UDP\n udp:\n encoding: utf-8\n endpoint: 0.0.0.0:518\n service:\n pipelines:\n - exporters:\n - my-workspace-logs-exporter1\n name: MyPipelineForLogs1\n processors: []\n receivers:\n - udp-receiver1\n type: Logs\n resourceGroupName: myResourceGroup\n tags:\n tag1: A\n tag2: B\n\n```\n\n{{% /example %}}\n{{% example %}}\n### Create a PipelineGroup instance using a UDP receiver with json array mapper\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing AzureNative = Pulumi.AzureNative;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var pipelineGroup = new AzureNative.Monitor.PipelineGroup(\"pipelineGroup\", new()\n {\n ExtendedLocation = new AzureNative.Monitor.Inputs.AzureResourceManagerCommonTypesExtendedLocationArgs\n {\n Name = \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.extendedlocation/customlocations/myTestCustomLocation\",\n Type = AzureNative.Monitor.ExtendedLocationType.CustomLocation,\n },\n Location = \"eastus2\",\n PipelineGroupName = \"plGroup1\",\n Properties = new AzureNative.Monitor.Inputs.PipelineGroupPropertiesArgs\n {\n Exporters = new[]\n {\n new AzureNative.Monitor.Inputs.ExporterArgs\n {\n AzureMonitorWorkspaceLogs = new AzureNative.Monitor.Inputs.AzureMonitorWorkspaceLogsExporterArgs\n {\n Api = new AzureNative.Monitor.Inputs.AzureMonitorWorkspaceLogsApiConfigArgs\n {\n DataCollectionEndpointUrl = \"https://logs-myingestion-eb0s.eastus-1.ingest.monitor.azure.com\",\n DataCollectionRule = \"dcr-00000000000000000000000000000000\",\n Schema = new AzureNative.Monitor.Inputs.SchemaMapArgs\n {\n RecordMap = new[]\n {\n new AzureNative.Monitor.Inputs.RecordMapArgs\n {\n From = \"body\",\n To = \"Body\",\n },\n new AzureNative.Monitor.Inputs.RecordMapArgs\n {\n From = \"severity_text\",\n To = \"SeverityText\",\n },\n new AzureNative.Monitor.Inputs.RecordMapArgs\n {\n From = \"time_unix_nano\",\n To = \"TimeGenerated\",\n },\n },\n },\n Stream = \"Custom-MyTableRawData_CL\",\n },\n Concurrency = new AzureNative.Monitor.Inputs.ConcurrencyConfigurationArgs\n {\n BatchQueueSize = 100,\n WorkerCount = 4,\n },\n },\n Name = \"my-workspace-logs-exporter1\",\n Type = AzureNative.Monitor.ExporterType.AzureMonitorWorkspaceLogs,\n },\n },\n Processors = new() { },\n Receivers = new[]\n {\n new AzureNative.Monitor.Inputs.ReceiverArgs\n {\n Name = \"udp-receiver1\",\n Type = AzureNative.Monitor.ReceiverType.UDP,\n Udp = new AzureNative.Monitor.Inputs.UdpReceiverArgs\n {\n Encoding = AzureNative.Monitor.StreamEncodingType.Utf_8,\n Endpoint = \"0.0.0.0:518\",\n JsonArrayMapper = new AzureNative.Monitor.Inputs.JsonArrayMapperArgs\n {\n DestinationField = new AzureNative.Monitor.Inputs.JsonMapperDestinationFieldArgs\n {\n Destination = AzureNative.Monitor.JsonMapperElement.Attributes,\n },\n Keys = new[]\n {\n \"key1\",\n \"key2\",\n \"key3\",\n },\n SourceField = new AzureNative.Monitor.Inputs.JsonMapperSourceFieldArgs\n {\n FieldName = \"field1\",\n },\n },\n },\n },\n },\n Service = new AzureNative.Monitor.Inputs.ServiceArgs\n {\n Pipelines = new[]\n {\n new AzureNative.Monitor.Inputs.PipelineArgs\n {\n Exporters = new[]\n {\n \"my-workspace-logs-exporter1\",\n },\n Name = \"MyPipelineForLogs1\",\n Processors = new() { },\n Receivers = new[]\n {\n \"udp-receiver1\",\n },\n Type = AzureNative.Monitor.PipelineType.Logs,\n },\n },\n },\n },\n ResourceGroupName = \"myResourceGroup\",\n Tags = \n {\n { \"tag1\", \"A\" },\n { \"tag2\", \"B\" },\n },\n });\n\n});\n\n\n```\n\n```go\npackage main\n\nimport (\n\tmonitor \"github.com/pulumi/pulumi-azure-native-sdk/monitor/v2\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := monitor.NewPipelineGroup(ctx, \"pipelineGroup\", \u0026monitor.PipelineGroupArgs{\n\t\t\tExtendedLocation: \u0026monitor.AzureResourceManagerCommonTypesExtendedLocationArgs{\n\t\t\t\tName: pulumi.String(\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.extendedlocation/customlocations/myTestCustomLocation\"),\n\t\t\t\tType: pulumi.String(monitor.ExtendedLocationTypeCustomLocation),\n\t\t\t},\n\t\t\tLocation: pulumi.String(\"eastus2\"),\n\t\t\tPipelineGroupName: pulumi.String(\"plGroup1\"),\n\t\t\tProperties: \u0026monitor.PipelineGroupPropertiesArgs{\n\t\t\t\tExporters: monitor.ExporterArray{\n\t\t\t\t\t\u0026monitor.ExporterArgs{\n\t\t\t\t\t\tAzureMonitorWorkspaceLogs: \u0026monitor.AzureMonitorWorkspaceLogsExporterArgs{\n\t\t\t\t\t\t\tApi: \u0026monitor.AzureMonitorWorkspaceLogsApiConfigArgs{\n\t\t\t\t\t\t\t\tDataCollectionEndpointUrl: pulumi.String(\"https://logs-myingestion-eb0s.eastus-1.ingest.monitor.azure.com\"),\n\t\t\t\t\t\t\t\tDataCollectionRule: pulumi.String(\"dcr-00000000000000000000000000000000\"),\n\t\t\t\t\t\t\t\tSchema: \u0026monitor.SchemaMapArgs{\n\t\t\t\t\t\t\t\t\tRecordMap: monitor.RecordMapArray{\n\t\t\t\t\t\t\t\t\t\t\u0026monitor.RecordMapArgs{\n\t\t\t\t\t\t\t\t\t\t\tFrom: pulumi.String(\"body\"),\n\t\t\t\t\t\t\t\t\t\t\tTo: pulumi.String(\"Body\"),\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\u0026monitor.RecordMapArgs{\n\t\t\t\t\t\t\t\t\t\t\tFrom: pulumi.String(\"severity_text\"),\n\t\t\t\t\t\t\t\t\t\t\tTo: pulumi.String(\"SeverityText\"),\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\u0026monitor.RecordMapArgs{\n\t\t\t\t\t\t\t\t\t\t\tFrom: pulumi.String(\"time_unix_nano\"),\n\t\t\t\t\t\t\t\t\t\t\tTo: pulumi.String(\"TimeGenerated\"),\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tStream: pulumi.String(\"Custom-MyTableRawData_CL\"),\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tConcurrency: \u0026monitor.ConcurrencyConfigurationArgs{\n\t\t\t\t\t\t\t\tBatchQueueSize: pulumi.Int(100),\n\t\t\t\t\t\t\t\tWorkerCount: pulumi.Int(4),\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t\tName: pulumi.String(\"my-workspace-logs-exporter1\"),\n\t\t\t\t\t\tType: pulumi.String(monitor.ExporterTypeAzureMonitorWorkspaceLogs),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tProcessors: monitor.ProcessorArray{},\n\t\t\t\tReceivers: monitor.ReceiverArray{\n\t\t\t\t\t\u0026monitor.ReceiverArgs{\n\t\t\t\t\t\tName: pulumi.String(\"udp-receiver1\"),\n\t\t\t\t\t\tType: pulumi.String(monitor.ReceiverTypeUDP),\n\t\t\t\t\t\tUdp: \u0026monitor.UdpReceiverArgs{\n\t\t\t\t\t\t\tEncoding: pulumi.String(monitor.StreamEncodingType_Utf_8),\n\t\t\t\t\t\t\tEndpoint: pulumi.String(\"0.0.0.0:518\"),\n\t\t\t\t\t\t\tJsonArrayMapper: \u0026monitor.JsonArrayMapperArgs{\n\t\t\t\t\t\t\t\tDestinationField: \u0026monitor.JsonMapperDestinationFieldArgs{\n\t\t\t\t\t\t\t\t\tDestination: pulumi.String(monitor.JsonMapperElementAttributes),\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tKeys: pulumi.StringArray{\n\t\t\t\t\t\t\t\t\tpulumi.String(\"key1\"),\n\t\t\t\t\t\t\t\t\tpulumi.String(\"key2\"),\n\t\t\t\t\t\t\t\t\tpulumi.String(\"key3\"),\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tSourceField: \u0026monitor.JsonMapperSourceFieldArgs{\n\t\t\t\t\t\t\t\t\tFieldName: pulumi.String(\"field1\"),\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tService: \u0026monitor.ServiceArgs{\n\t\t\t\t\tPipelines: monitor.PipelineArray{\n\t\t\t\t\t\t\u0026monitor.PipelineArgs{\n\t\t\t\t\t\t\tExporters: pulumi.StringArray{\n\t\t\t\t\t\t\t\tpulumi.String(\"my-workspace-logs-exporter1\"),\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tName: pulumi.String(\"MyPipelineForLogs1\"),\n\t\t\t\t\t\t\tProcessors: pulumi.StringArray{},\n\t\t\t\t\t\t\tReceivers: pulumi.StringArray{\n\t\t\t\t\t\t\t\tpulumi.String(\"udp-receiver1\"),\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tType: pulumi.String(monitor.PipelineTypeLogs),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tResourceGroupName: pulumi.String(\"myResourceGroup\"),\n\t\t\tTags: pulumi.StringMap{\n\t\t\t\t\"tag1\": pulumi.String(\"A\"),\n\t\t\t\t\"tag2\": pulumi.String(\"B\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n\n```\n\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azurenative.monitor.PipelineGroup;\nimport com.pulumi.azurenative.monitor.PipelineGroupArgs;\nimport com.pulumi.azurenative.monitor.inputs.AzureResourceManagerCommonTypesExtendedLocationArgs;\nimport com.pulumi.azurenative.monitor.inputs.PipelineGroupPropertiesArgs;\nimport com.pulumi.azurenative.monitor.inputs.ServiceArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var pipelineGroup = new PipelineGroup(\"pipelineGroup\", PipelineGroupArgs.builder()\n .extendedLocation(AzureResourceManagerCommonTypesExtendedLocationArgs.builder()\n .name(\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.extendedlocation/customlocations/myTestCustomLocation\")\n .type(\"CustomLocation\")\n .build())\n .location(\"eastus2\")\n .pipelineGroupName(\"plGroup1\")\n .properties(PipelineGroupPropertiesArgs.builder()\n .exporters(ExporterArgs.builder()\n .azureMonitorWorkspaceLogs(AzureMonitorWorkspaceLogsExporterArgs.builder()\n .api(AzureMonitorWorkspaceLogsApiConfigArgs.builder()\n .dataCollectionEndpointUrl(\"https://logs-myingestion-eb0s.eastus-1.ingest.monitor.azure.com\")\n .dataCollectionRule(\"dcr-00000000000000000000000000000000\")\n .schema(SchemaMapArgs.builder()\n .recordMap( \n RecordMapArgs.builder()\n .from(\"body\")\n .to(\"Body\")\n .build(),\n RecordMapArgs.builder()\n .from(\"severity_text\")\n .to(\"SeverityText\")\n .build(),\n RecordMapArgs.builder()\n .from(\"time_unix_nano\")\n .to(\"TimeGenerated\")\n .build())\n .build())\n .stream(\"Custom-MyTableRawData_CL\")\n .build())\n .concurrency(ConcurrencyConfigurationArgs.builder()\n .batchQueueSize(100)\n .workerCount(4)\n .build())\n .build())\n .name(\"my-workspace-logs-exporter1\")\n .type(\"AzureMonitorWorkspaceLogs\")\n .build())\n .processors()\n .receivers(ReceiverArgs.builder()\n .name(\"udp-receiver1\")\n .type(\"UDP\")\n .udp(UdpReceiverArgs.builder()\n .encoding(\"utf-8\")\n .endpoint(\"0.0.0.0:518\")\n .jsonArrayMapper(JsonArrayMapperArgs.builder()\n .destinationField(JsonMapperDestinationFieldArgs.builder()\n .destination(\"attributes\")\n .build())\n .keys( \n \"key1\",\n \"key2\",\n \"key3\")\n .sourceField(JsonMapperSourceFieldArgs.builder()\n .fieldName(\"field1\")\n .build())\n .build())\n .build())\n .build())\n .service(ServiceArgs.builder()\n .pipelines(PipelineArgs.builder()\n .exporters(\"my-workspace-logs-exporter1\")\n .name(\"MyPipelineForLogs1\")\n .processors()\n .receivers(\"udp-receiver1\")\n .type(\"Logs\")\n .build())\n .build())\n .build())\n .resourceGroupName(\"myResourceGroup\")\n .tags(Map.ofEntries(\n Map.entry(\"tag1\", \"A\"),\n Map.entry(\"tag2\", \"B\")\n ))\n .build());\n\n }\n}\n\n```\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure_native from \"@pulumi/azure-native\";\n\nconst pipelineGroup = new azure_native.monitor.PipelineGroup(\"pipelineGroup\", {\n extendedLocation: {\n name: \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.extendedlocation/customlocations/myTestCustomLocation\",\n type: azure_native.monitor.ExtendedLocationType.CustomLocation,\n },\n location: \"eastus2\",\n pipelineGroupName: \"plGroup1\",\n properties: {\n exporters: [{\n azureMonitorWorkspaceLogs: {\n api: {\n dataCollectionEndpointUrl: \"https://logs-myingestion-eb0s.eastus-1.ingest.monitor.azure.com\",\n dataCollectionRule: \"dcr-00000000000000000000000000000000\",\n schema: {\n recordMap: [\n {\n from: \"body\",\n to: \"Body\",\n },\n {\n from: \"severity_text\",\n to: \"SeverityText\",\n },\n {\n from: \"time_unix_nano\",\n to: \"TimeGenerated\",\n },\n ],\n },\n stream: \"Custom-MyTableRawData_CL\",\n },\n concurrency: {\n batchQueueSize: 100,\n workerCount: 4,\n },\n },\n name: \"my-workspace-logs-exporter1\",\n type: azure_native.monitor.ExporterType.AzureMonitorWorkspaceLogs,\n }],\n processors: [],\n receivers: [{\n name: \"udp-receiver1\",\n type: azure_native.monitor.ReceiverType.UDP,\n udp: {\n encoding: azure_native.monitor.StreamEncodingType.Utf_8,\n endpoint: \"0.0.0.0:518\",\n jsonArrayMapper: {\n destinationField: {\n destination: azure_native.monitor.JsonMapperElement.Attributes,\n },\n keys: [\n \"key1\",\n \"key2\",\n \"key3\",\n ],\n sourceField: {\n fieldName: \"field1\",\n },\n },\n },\n }],\n service: {\n pipelines: [{\n exporters: [\"my-workspace-logs-exporter1\"],\n name: \"MyPipelineForLogs1\",\n processors: [],\n receivers: [\"udp-receiver1\"],\n type: azure_native.monitor.PipelineType.Logs,\n }],\n },\n },\n resourceGroupName: \"myResourceGroup\",\n tags: {\n tag1: \"A\",\n tag2: \"B\",\n },\n});\n\n```\n\n```python\nimport pulumi\nimport pulumi_azure_native as azure_native\n\npipeline_group = azure_native.monitor.PipelineGroup(\"pipelineGroup\",\n extended_location={\n \"name\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.extendedlocation/customlocations/myTestCustomLocation\",\n \"type\": azure_native.monitor.ExtendedLocationType.CUSTOM_LOCATION,\n },\n location=\"eastus2\",\n pipeline_group_name=\"plGroup1\",\n properties={\n \"exporters\": [{\n \"azure_monitor_workspace_logs\": {\n \"api\": {\n \"data_collection_endpoint_url\": \"https://logs-myingestion-eb0s.eastus-1.ingest.monitor.azure.com\",\n \"data_collection_rule\": \"dcr-00000000000000000000000000000000\",\n \"schema\": {\n \"record_map\": [\n {\n \"from_\": \"body\",\n \"to\": \"Body\",\n },\n {\n \"from_\": \"severity_text\",\n \"to\": \"SeverityText\",\n },\n {\n \"from_\": \"time_unix_nano\",\n \"to\": \"TimeGenerated\",\n },\n ],\n },\n \"stream\": \"Custom-MyTableRawData_CL\",\n },\n \"concurrency\": {\n \"batch_queue_size\": 100,\n \"worker_count\": 4,\n },\n },\n \"name\": \"my-workspace-logs-exporter1\",\n \"type\": azure_native.monitor.ExporterType.AZURE_MONITOR_WORKSPACE_LOGS,\n }],\n \"processors\": [],\n \"receivers\": [{\n \"name\": \"udp-receiver1\",\n \"type\": azure_native.monitor.ReceiverType.UDP,\n \"udp\": {\n \"encoding\": azure_native.monitor.StreamEncodingType.UTF_8,\n \"endpoint\": \"0.0.0.0:518\",\n \"json_array_mapper\": {\n \"destination_field\": {\n \"destination\": azure_native.monitor.JsonMapperElement.ATTRIBUTES,\n },\n \"keys\": [\n \"key1\",\n \"key2\",\n \"key3\",\n ],\n \"source_field\": {\n \"field_name\": \"field1\",\n },\n },\n },\n }],\n \"service\": {\n \"pipelines\": [{\n \"exporters\": [\"my-workspace-logs-exporter1\"],\n \"name\": \"MyPipelineForLogs1\",\n \"processors\": [],\n \"receivers\": [\"udp-receiver1\"],\n \"type\": azure_native.monitor.PipelineType.LOGS,\n }],\n },\n },\n resource_group_name=\"myResourceGroup\",\n tags={\n \"tag1\": \"A\",\n \"tag2\": \"B\",\n })\n\n```\n\n```yaml\nresources:\n pipelineGroup:\n type: azure-native:monitor:PipelineGroup\n properties:\n extendedLocation:\n name: /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.extendedlocation/customlocations/myTestCustomLocation\n type: CustomLocation\n location: eastus2\n pipelineGroupName: plGroup1\n properties:\n exporters:\n - azureMonitorWorkspaceLogs:\n api:\n dataCollectionEndpointUrl: https://logs-myingestion-eb0s.eastus-1.ingest.monitor.azure.com\n dataCollectionRule: dcr-00000000000000000000000000000000\n schema:\n recordMap:\n - from: body\n to: Body\n - from: severity_text\n to: SeverityText\n - from: time_unix_nano\n to: TimeGenerated\n stream: Custom-MyTableRawData_CL\n concurrency:\n batchQueueSize: 100\n workerCount: 4\n name: my-workspace-logs-exporter1\n type: AzureMonitorWorkspaceLogs\n processors: []\n receivers:\n - name: udp-receiver1\n type: UDP\n udp:\n encoding: utf-8\n endpoint: 0.0.0.0:518\n jsonArrayMapper:\n destinationField:\n destination: attributes\n keys:\n - key1\n - key2\n - key3\n sourceField:\n fieldName: field1\n service:\n pipelines:\n - exporters:\n - my-workspace-logs-exporter1\n name: MyPipelineForLogs1\n processors: []\n receivers:\n - udp-receiver1\n type: Logs\n resourceGroupName: myResourceGroup\n tags:\n tag1: A\n tag2: B\n\n```\n\n{{% /example %}}\n{{% example %}}\n### Create a PipelineGroup instance using a syslog receiver\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing AzureNative = Pulumi.AzureNative;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var pipelineGroup = new AzureNative.Monitor.PipelineGroup(\"pipelineGroup\", new()\n {\n ExtendedLocation = new AzureNative.Monitor.Inputs.AzureResourceManagerCommonTypesExtendedLocationArgs\n {\n Name = \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.extendedlocation/customlocations/myTestCustomLocation\",\n Type = AzureNative.Monitor.ExtendedLocationType.CustomLocation,\n },\n Location = \"eastus2\",\n PipelineGroupName = \"plGroup1\",\n Properties = new AzureNative.Monitor.Inputs.PipelineGroupPropertiesArgs\n {\n Exporters = new[]\n {\n new AzureNative.Monitor.Inputs.ExporterArgs\n {\n AzureMonitorWorkspaceLogs = new AzureNative.Monitor.Inputs.AzureMonitorWorkspaceLogsExporterArgs\n {\n Api = new AzureNative.Monitor.Inputs.AzureMonitorWorkspaceLogsApiConfigArgs\n {\n DataCollectionEndpointUrl = \"https://logs-myingestion-eb0s.eastus-1.ingest.monitor.azure.com\",\n DataCollectionRule = \"dcr-00000000000000000000000000000000\",\n Schema = new AzureNative.Monitor.Inputs.SchemaMapArgs\n {\n RecordMap = new[]\n {\n new AzureNative.Monitor.Inputs.RecordMapArgs\n {\n From = \"body\",\n To = \"Body\",\n },\n new AzureNative.Monitor.Inputs.RecordMapArgs\n {\n From = \"severity_text\",\n To = \"SeverityText\",\n },\n new AzureNative.Monitor.Inputs.RecordMapArgs\n {\n From = \"time_unix_nano\",\n To = \"TimeGenerated\",\n },\n },\n },\n Stream = \"Custom-MyTableRawData_CL\",\n },\n Concurrency = new AzureNative.Monitor.Inputs.ConcurrencyConfigurationArgs\n {\n BatchQueueSize = 100,\n WorkerCount = 4,\n },\n },\n Name = \"my-workspace-logs-exporter1\",\n Type = AzureNative.Monitor.ExporterType.AzureMonitorWorkspaceLogs,\n },\n },\n Processors = new[]\n {\n new AzureNative.Monitor.Inputs.ProcessorArgs\n {\n Name = \"batch-processor1\",\n Type = AzureNative.Monitor.ProcessorType.Batch,\n },\n },\n Receivers = new[]\n {\n new AzureNative.Monitor.Inputs.ReceiverArgs\n {\n Name = \"syslog-receiver1\",\n Syslog = new AzureNative.Monitor.Inputs.SyslogReceiverArgs\n {\n Endpoint = \"0.0.0.0:514\",\n },\n Type = AzureNative.Monitor.ReceiverType.Syslog,\n },\n },\n Service = new AzureNative.Monitor.Inputs.ServiceArgs\n {\n Pipelines = new[]\n {\n new AzureNative.Monitor.Inputs.PipelineArgs\n {\n Exporters = new[]\n {\n \"my-workspace-logs-exporter1\",\n },\n Name = \"MyPipelineForLogs1\",\n Processors = new[]\n {\n \"batch-processor1\",\n },\n Receivers = new[]\n {\n \"syslog-receiver1\",\n },\n Type = AzureNative.Monitor.PipelineType.Logs,\n },\n },\n },\n },\n ResourceGroupName = \"myResourceGroup\",\n Tags = \n {\n { \"tag1\", \"A\" },\n { \"tag2\", \"B\" },\n },\n });\n\n});\n\n\n```\n\n```go\npackage main\n\nimport (\n\tmonitor \"github.com/pulumi/pulumi-azure-native-sdk/monitor/v2\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := monitor.NewPipelineGroup(ctx, \"pipelineGroup\", \u0026monitor.PipelineGroupArgs{\n\t\t\tExtendedLocation: \u0026monitor.AzureResourceManagerCommonTypesExtendedLocationArgs{\n\t\t\t\tName: pulumi.String(\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.extendedlocation/customlocations/myTestCustomLocation\"),\n\t\t\t\tType: pulumi.String(monitor.ExtendedLocationTypeCustomLocation),\n\t\t\t},\n\t\t\tLocation: pulumi.String(\"eastus2\"),\n\t\t\tPipelineGroupName: pulumi.String(\"plGroup1\"),\n\t\t\tProperties: \u0026monitor.PipelineGroupPropertiesArgs{\n\t\t\t\tExporters: monitor.ExporterArray{\n\t\t\t\t\t\u0026monitor.ExporterArgs{\n\t\t\t\t\t\tAzureMonitorWorkspaceLogs: \u0026monitor.AzureMonitorWorkspaceLogsExporterArgs{\n\t\t\t\t\t\t\tApi: \u0026monitor.AzureMonitorWorkspaceLogsApiConfigArgs{\n\t\t\t\t\t\t\t\tDataCollectionEndpointUrl: pulumi.String(\"https://logs-myingestion-eb0s.eastus-1.ingest.monitor.azure.com\"),\n\t\t\t\t\t\t\t\tDataCollectionRule: pulumi.String(\"dcr-00000000000000000000000000000000\"),\n\t\t\t\t\t\t\t\tSchema: \u0026monitor.SchemaMapArgs{\n\t\t\t\t\t\t\t\t\tRecordMap: monitor.RecordMapArray{\n\t\t\t\t\t\t\t\t\t\t\u0026monitor.RecordMapArgs{\n\t\t\t\t\t\t\t\t\t\t\tFrom: pulumi.String(\"body\"),\n\t\t\t\t\t\t\t\t\t\t\tTo: pulumi.String(\"Body\"),\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\u0026monitor.RecordMapArgs{\n\t\t\t\t\t\t\t\t\t\t\tFrom: pulumi.String(\"severity_text\"),\n\t\t\t\t\t\t\t\t\t\t\tTo: pulumi.String(\"SeverityText\"),\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\u0026monitor.RecordMapArgs{\n\t\t\t\t\t\t\t\t\t\t\tFrom: pulumi.String(\"time_unix_nano\"),\n\t\t\t\t\t\t\t\t\t\t\tTo: pulumi.String(\"TimeGenerated\"),\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tStream: pulumi.String(\"Custom-MyTableRawData_CL\"),\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tConcurrency: \u0026monitor.ConcurrencyConfigurationArgs{\n\t\t\t\t\t\t\t\tBatchQueueSize: pulumi.Int(100),\n\t\t\t\t\t\t\t\tWorkerCount: pulumi.Int(4),\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t\tName: pulumi.String(\"my-workspace-logs-exporter1\"),\n\t\t\t\t\t\tType: pulumi.String(monitor.ExporterTypeAzureMonitorWorkspaceLogs),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tProcessors: monitor.ProcessorArray{\n\t\t\t\t\t\u0026monitor.ProcessorArgs{\n\t\t\t\t\t\tName: pulumi.String(\"batch-processor1\"),\n\t\t\t\t\t\tType: pulumi.String(monitor.ProcessorTypeBatch),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tReceivers: monitor.ReceiverArray{\n\t\t\t\t\t\u0026monitor.ReceiverArgs{\n\t\t\t\t\t\tName: pulumi.String(\"syslog-receiver1\"),\n\t\t\t\t\t\tSyslog: \u0026monitor.SyslogReceiverArgs{\n\t\t\t\t\t\t\tEndpoint: pulumi.String(\"0.0.0.0:514\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t\tType: pulumi.String(monitor.ReceiverTypeSyslog),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tService: \u0026monitor.ServiceArgs{\n\t\t\t\t\tPipelines: monitor.PipelineArray{\n\t\t\t\t\t\t\u0026monitor.PipelineArgs{\n\t\t\t\t\t\t\tExporters: pulumi.StringArray{\n\t\t\t\t\t\t\t\tpulumi.String(\"my-workspace-logs-exporter1\"),\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tName: pulumi.String(\"MyPipelineForLogs1\"),\n\t\t\t\t\t\t\tProcessors: pulumi.StringArray{\n\t\t\t\t\t\t\t\tpulumi.String(\"batch-processor1\"),\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tReceivers: pulumi.StringArray{\n\t\t\t\t\t\t\t\tpulumi.String(\"syslog-receiver1\"),\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tType: pulumi.String(monitor.PipelineTypeLogs),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tResourceGroupName: pulumi.String(\"myResourceGroup\"),\n\t\t\tTags: pulumi.StringMap{\n\t\t\t\t\"tag1\": pulumi.String(\"A\"),\n\t\t\t\t\"tag2\": pulumi.String(\"B\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n\n```\n\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azurenative.monitor.PipelineGroup;\nimport com.pulumi.azurenative.monitor.PipelineGroupArgs;\nimport com.pulumi.azurenative.monitor.inputs.AzureResourceManagerCommonTypesExtendedLocationArgs;\nimport com.pulumi.azurenative.monitor.inputs.PipelineGroupPropertiesArgs;\nimport com.pulumi.azurenative.monitor.inputs.ServiceArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var pipelineGroup = new PipelineGroup(\"pipelineGroup\", PipelineGroupArgs.builder()\n .extendedLocation(AzureResourceManagerCommonTypesExtendedLocationArgs.builder()\n .name(\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.extendedlocation/customlocations/myTestCustomLocation\")\n .type(\"CustomLocation\")\n .build())\n .location(\"eastus2\")\n .pipelineGroupName(\"plGroup1\")\n .properties(PipelineGroupPropertiesArgs.builder()\n .exporters(ExporterArgs.builder()\n .azureMonitorWorkspaceLogs(AzureMonitorWorkspaceLogsExporterArgs.builder()\n .api(AzureMonitorWorkspaceLogsApiConfigArgs.builder()\n .dataCollectionEndpointUrl(\"https://logs-myingestion-eb0s.eastus-1.ingest.monitor.azure.com\")\n .dataCollectionRule(\"dcr-00000000000000000000000000000000\")\n .schema(SchemaMapArgs.builder()\n .recordMap( \n RecordMapArgs.builder()\n .from(\"body\")\n .to(\"Body\")\n .build(),\n RecordMapArgs.builder()\n .from(\"severity_text\")\n .to(\"SeverityText\")\n .build(),\n RecordMapArgs.builder()\n .from(\"time_unix_nano\")\n .to(\"TimeGenerated\")\n .build())\n .build())\n .stream(\"Custom-MyTableRawData_CL\")\n .build())\n .concurrency(ConcurrencyConfigurationArgs.builder()\n .batchQueueSize(100)\n .workerCount(4)\n .build())\n .build())\n .name(\"my-workspace-logs-exporter1\")\n .type(\"AzureMonitorWorkspaceLogs\")\n .build())\n .processors(ProcessorArgs.builder()\n .name(\"batch-processor1\")\n .type(\"Batch\")\n .build())\n .receivers(ReceiverArgs.builder()\n .name(\"syslog-receiver1\")\n .syslog(SyslogReceiverArgs.builder()\n .endpoint(\"0.0.0.0:514\")\n .build())\n .type(\"Syslog\")\n .build())\n .service(ServiceArgs.builder()\n .pipelines(PipelineArgs.builder()\n .exporters(\"my-workspace-logs-exporter1\")\n .name(\"MyPipelineForLogs1\")\n .processors(\"batch-processor1\")\n .receivers(\"syslog-receiver1\")\n .type(\"Logs\")\n .build())\n .build())\n .build())\n .resourceGroupName(\"myResourceGroup\")\n .tags(Map.ofEntries(\n Map.entry(\"tag1\", \"A\"),\n Map.entry(\"tag2\", \"B\")\n ))\n .build());\n\n }\n}\n\n```\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure_native from \"@pulumi/azure-native\";\n\nconst pipelineGroup = new azure_native.monitor.PipelineGroup(\"pipelineGroup\", {\n extendedLocation: {\n name: \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.extendedlocation/customlocations/myTestCustomLocation\",\n type: azure_native.monitor.ExtendedLocationType.CustomLocation,\n },\n location: \"eastus2\",\n pipelineGroupName: \"plGroup1\",\n properties: {\n exporters: [{\n azureMonitorWorkspaceLogs: {\n api: {\n dataCollectionEndpointUrl: \"https://logs-myingestion-eb0s.eastus-1.ingest.monitor.azure.com\",\n dataCollectionRule: \"dcr-00000000000000000000000000000000\",\n schema: {\n recordMap: [\n {\n from: \"body\",\n to: \"Body\",\n },\n {\n from: \"severity_text\",\n to: \"SeverityText\",\n },\n {\n from: \"time_unix_nano\",\n to: \"TimeGenerated\",\n },\n ],\n },\n stream: \"Custom-MyTableRawData_CL\",\n },\n concurrency: {\n batchQueueSize: 100,\n workerCount: 4,\n },\n },\n name: \"my-workspace-logs-exporter1\",\n type: azure_native.monitor.ExporterType.AzureMonitorWorkspaceLogs,\n }],\n processors: [{\n name: \"batch-processor1\",\n type: azure_native.monitor.ProcessorType.Batch,\n }],\n receivers: [{\n name: \"syslog-receiver1\",\n syslog: {\n endpoint: \"0.0.0.0:514\",\n },\n type: azure_native.monitor.ReceiverType.Syslog,\n }],\n service: {\n pipelines: [{\n exporters: [\"my-workspace-logs-exporter1\"],\n name: \"MyPipelineForLogs1\",\n processors: [\"batch-processor1\"],\n receivers: [\"syslog-receiver1\"],\n type: azure_native.monitor.PipelineType.Logs,\n }],\n },\n },\n resourceGroupName: \"myResourceGroup\",\n tags: {\n tag1: \"A\",\n tag2: \"B\",\n },\n});\n\n```\n\n```python\nimport pulumi\nimport pulumi_azure_native as azure_native\n\npipeline_group = azure_native.monitor.PipelineGroup(\"pipelineGroup\",\n extended_location={\n \"name\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.extendedlocation/customlocations/myTestCustomLocation\",\n \"type\": azure_native.monitor.ExtendedLocationType.CUSTOM_LOCATION,\n },\n location=\"eastus2\",\n pipeline_group_name=\"plGroup1\",\n properties={\n \"exporters\": [{\n \"azure_monitor_workspace_logs\": {\n \"api\": {\n \"data_collection_endpoint_url\": \"https://logs-myingestion-eb0s.eastus-1.ingest.monitor.azure.com\",\n \"data_collection_rule\": \"dcr-00000000000000000000000000000000\",\n \"schema\": {\n \"record_map\": [\n {\n \"from_\": \"body\",\n \"to\": \"Body\",\n },\n {\n \"from_\": \"severity_text\",\n \"to\": \"SeverityText\",\n },\n {\n \"from_\": \"time_unix_nano\",\n \"to\": \"TimeGenerated\",\n },\n ],\n },\n \"stream\": \"Custom-MyTableRawData_CL\",\n },\n \"concurrency\": {\n \"batch_queue_size\": 100,\n \"worker_count\": 4,\n },\n },\n \"name\": \"my-workspace-logs-exporter1\",\n \"type\": azure_native.monitor.ExporterType.AZURE_MONITOR_WORKSPACE_LOGS,\n }],\n \"processors\": [{\n \"name\": \"batch-processor1\",\n \"type\": azure_native.monitor.ProcessorType.BATCH,\n }],\n \"receivers\": [{\n \"name\": \"syslog-receiver1\",\n \"syslog\": {\n \"endpoint\": \"0.0.0.0:514\",\n },\n \"type\": azure_native.monitor.ReceiverType.SYSLOG,\n }],\n \"service\": {\n \"pipelines\": [{\n \"exporters\": [\"my-workspace-logs-exporter1\"],\n \"name\": \"MyPipelineForLogs1\",\n \"processors\": [\"batch-processor1\"],\n \"receivers\": [\"syslog-receiver1\"],\n \"type\": azure_native.monitor.PipelineType.LOGS,\n }],\n },\n },\n resource_group_name=\"myResourceGroup\",\n tags={\n \"tag1\": \"A\",\n \"tag2\": \"B\",\n })\n\n```\n\n```yaml\nresources:\n pipelineGroup:\n type: azure-native:monitor:PipelineGroup\n properties:\n extendedLocation:\n name: /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.extendedlocation/customlocations/myTestCustomLocation\n type: CustomLocation\n location: eastus2\n pipelineGroupName: plGroup1\n properties:\n exporters:\n - azureMonitorWorkspaceLogs:\n api:\n dataCollectionEndpointUrl: https://logs-myingestion-eb0s.eastus-1.ingest.monitor.azure.com\n dataCollectionRule: dcr-00000000000000000000000000000000\n schema:\n recordMap:\n - from: body\n to: Body\n - from: severity_text\n to: SeverityText\n - from: time_unix_nano\n to: TimeGenerated\n stream: Custom-MyTableRawData_CL\n concurrency:\n batchQueueSize: 100\n workerCount: 4\n name: my-workspace-logs-exporter1\n type: AzureMonitorWorkspaceLogs\n processors:\n - name: batch-processor1\n type: Batch\n receivers:\n - name: syslog-receiver1\n syslog:\n endpoint: 0.0.0.0:514\n type: Syslog\n service:\n pipelines:\n - exporters:\n - my-workspace-logs-exporter1\n name: MyPipelineForLogs1\n processors:\n - batch-processor1\n receivers:\n - syslog-receiver1\n type: Logs\n resourceGroupName: myResourceGroup\n tags:\n tag1: A\n tag2: B\n\n```\n\n{{% /example %}}\n{{% example %}}\n### Create a PipelineGroup instance using a syslog receiver and cache.\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing AzureNative = Pulumi.AzureNative;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var pipelineGroup = new AzureNative.Monitor.PipelineGroup(\"pipelineGroup\", new()\n {\n ExtendedLocation = new AzureNative.Monitor.Inputs.AzureResourceManagerCommonTypesExtendedLocationArgs\n {\n Name = \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.extendedlocation/customlocations/myTestCustomLocation\",\n Type = AzureNative.Monitor.ExtendedLocationType.CustomLocation,\n },\n Location = \"eastus2\",\n PipelineGroupName = \"plGroup1\",\n Properties = new AzureNative.Monitor.Inputs.PipelineGroupPropertiesArgs\n {\n Exporters = new[]\n {\n new AzureNative.Monitor.Inputs.ExporterArgs\n {\n AzureMonitorWorkspaceLogs = new AzureNative.Monitor.Inputs.AzureMonitorWorkspaceLogsExporterArgs\n {\n Api = new AzureNative.Monitor.Inputs.AzureMonitorWorkspaceLogsApiConfigArgs\n {\n DataCollectionEndpointUrl = \"https://logs-myingestion-eb0s.eastus-1.ingest.monitor.azure.com\",\n DataCollectionRule = \"dcr-00000000000000000000000000000000\",\n Schema = new AzureNative.Monitor.Inputs.SchemaMapArgs\n {\n RecordMap = new[]\n {\n new AzureNative.Monitor.Inputs.RecordMapArgs\n {\n From = \"body\",\n To = \"Body\",\n },\n new AzureNative.Monitor.Inputs.RecordMapArgs\n {\n From = \"severity_text\",\n To = \"SeverityText\",\n },\n new AzureNative.Monitor.Inputs.RecordMapArgs\n {\n From = \"time_unix_nano\",\n To = \"TimeGenerated\",\n },\n },\n },\n Stream = \"Custom-MyTableRawData_CL\",\n },\n Cache = new AzureNative.Monitor.Inputs.CacheConfigurationArgs\n {\n MaxStorageUsage = 100,\n RetentionPeriod = 10,\n },\n Concurrency = new AzureNative.Monitor.Inputs.ConcurrencyConfigurationArgs\n {\n BatchQueueSize = 100,\n WorkerCount = 4,\n },\n },\n Name = \"my-workspace-logs-exporter1\",\n Type = AzureNative.Monitor.ExporterType.AzureMonitorWorkspaceLogs,\n },\n },\n Processors = new[]\n {\n new AzureNative.Monitor.Inputs.ProcessorArgs\n {\n Name = \"batch-processor1\",\n Type = AzureNative.Monitor.ProcessorType.Batch,\n },\n },\n Receivers = new[]\n {\n new AzureNative.Monitor.Inputs.ReceiverArgs\n {\n Name = \"syslog-receiver1\",\n Syslog = new AzureNative.Monitor.Inputs.SyslogReceiverArgs\n {\n Endpoint = \"0.0.0.0:514\",\n },\n Type = AzureNative.Monitor.ReceiverType.Syslog,\n },\n },\n Service = new AzureNative.Monitor.Inputs.ServiceArgs\n {\n Pipelines = new[]\n {\n new AzureNative.Monitor.Inputs.PipelineArgs\n {\n Exporters = new[]\n {\n \"my-workspace-logs-exporter1\",\n },\n Name = \"MyPipelineForLogs1\",\n Processors = new[]\n {\n \"batch-processor1\",\n },\n Receivers = new[]\n {\n \"syslog-receiver1\",\n },\n Type = AzureNative.Monitor.PipelineType.Logs,\n },\n },\n },\n },\n ResourceGroupName = \"myResourceGroup\",\n Tags = \n {\n { \"tag1\", \"A\" },\n { \"tag2\", \"B\" },\n },\n });\n\n});\n\n\n```\n\n```go\npackage main\n\nimport (\n\tmonitor \"github.com/pulumi/pulumi-azure-native-sdk/monitor/v2\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := monitor.NewPipelineGroup(ctx, \"pipelineGroup\", \u0026monitor.PipelineGroupArgs{\n\t\t\tExtendedLocation: \u0026monitor.AzureResourceManagerCommonTypesExtendedLocationArgs{\n\t\t\t\tName: pulumi.String(\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.extendedlocation/customlocations/myTestCustomLocation\"),\n\t\t\t\tType: pulumi.String(monitor.ExtendedLocationTypeCustomLocation),\n\t\t\t},\n\t\t\tLocation: pulumi.String(\"eastus2\"),\n\t\t\tPipelineGroupName: pulumi.String(\"plGroup1\"),\n\t\t\tProperties: \u0026monitor.PipelineGroupPropertiesArgs{\n\t\t\t\tExporters: monitor.ExporterArray{\n\t\t\t\t\t\u0026monitor.ExporterArgs{\n\t\t\t\t\t\tAzureMonitorWorkspaceLogs: \u0026monitor.AzureMonitorWorkspaceLogsExporterArgs{\n\t\t\t\t\t\t\tApi: \u0026monitor.AzureMonitorWorkspaceLogsApiConfigArgs{\n\t\t\t\t\t\t\t\tDataCollectionEndpointUrl: pulumi.String(\"https://logs-myingestion-eb0s.eastus-1.ingest.monitor.azure.com\"),\n\t\t\t\t\t\t\t\tDataCollectionRule: pulumi.String(\"dcr-00000000000000000000000000000000\"),\n\t\t\t\t\t\t\t\tSchema: \u0026monitor.SchemaMapArgs{\n\t\t\t\t\t\t\t\t\tRecordMap: monitor.RecordMapArray{\n\t\t\t\t\t\t\t\t\t\t\u0026monitor.RecordMapArgs{\n\t\t\t\t\t\t\t\t\t\t\tFrom: pulumi.String(\"body\"),\n\t\t\t\t\t\t\t\t\t\t\tTo: pulumi.String(\"Body\"),\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\u0026monitor.RecordMapArgs{\n\t\t\t\t\t\t\t\t\t\t\tFrom: pulumi.String(\"severity_text\"),\n\t\t\t\t\t\t\t\t\t\t\tTo: pulumi.String(\"SeverityText\"),\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\u0026monitor.RecordMapArgs{\n\t\t\t\t\t\t\t\t\t\t\tFrom: pulumi.String(\"time_unix_nano\"),\n\t\t\t\t\t\t\t\t\t\t\tTo: pulumi.String(\"TimeGenerated\"),\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tStream: pulumi.String(\"Custom-MyTableRawData_CL\"),\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tCache: \u0026monitor.CacheConfigurationArgs{\n\t\t\t\t\t\t\t\tMaxStorageUsage: pulumi.Int(100),\n\t\t\t\t\t\t\t\tRetentionPeriod: pulumi.Int(10),\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tConcurrency: \u0026monitor.ConcurrencyConfigurationArgs{\n\t\t\t\t\t\t\t\tBatchQueueSize: pulumi.Int(100),\n\t\t\t\t\t\t\t\tWorkerCount: pulumi.Int(4),\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t\tName: pulumi.String(\"my-workspace-logs-exporter1\"),\n\t\t\t\t\t\tType: pulumi.String(monitor.ExporterTypeAzureMonitorWorkspaceLogs),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tProcessors: monitor.ProcessorArray{\n\t\t\t\t\t\u0026monitor.ProcessorArgs{\n\t\t\t\t\t\tName: pulumi.String(\"batch-processor1\"),\n\t\t\t\t\t\tType: pulumi.String(monitor.ProcessorTypeBatch),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tReceivers: monitor.ReceiverArray{\n\t\t\t\t\t\u0026monitor.ReceiverArgs{\n\t\t\t\t\t\tName: pulumi.String(\"syslog-receiver1\"),\n\t\t\t\t\t\tSyslog: \u0026monitor.SyslogReceiverArgs{\n\t\t\t\t\t\t\tEndpoint: pulumi.String(\"0.0.0.0:514\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t\tType: pulumi.String(monitor.ReceiverTypeSyslog),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tService: \u0026monitor.ServiceArgs{\n\t\t\t\t\tPipelines: monitor.PipelineArray{\n\t\t\t\t\t\t\u0026monitor.PipelineArgs{\n\t\t\t\t\t\t\tExporters: pulumi.StringArray{\n\t\t\t\t\t\t\t\tpulumi.String(\"my-workspace-logs-exporter1\"),\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tName: pulumi.String(\"MyPipelineForLogs1\"),\n\t\t\t\t\t\t\tProcessors: pulumi.StringArray{\n\t\t\t\t\t\t\t\tpulumi.String(\"batch-processor1\"),\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tReceivers: pulumi.StringArray{\n\t\t\t\t\t\t\t\tpulumi.String(\"syslog-receiver1\"),\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tType: pulumi.String(monitor.PipelineTypeLogs),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tResourceGroupName: pulumi.String(\"myResourceGroup\"),\n\t\t\tTags: pulumi.StringMap{\n\t\t\t\t\"tag1\": pulumi.String(\"A\"),\n\t\t\t\t\"tag2\": pulumi.String(\"B\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n\n```\n\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azurenative.monitor.PipelineGroup;\nimport com.pulumi.azurenative.monitor.PipelineGroupArgs;\nimport com.pulumi.azurenative.monitor.inputs.AzureResourceManagerCommonTypesExtendedLocationArgs;\nimport com.pulumi.azurenative.monitor.inputs.PipelineGroupPropertiesArgs;\nimport com.pulumi.azurenative.monitor.inputs.ServiceArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var pipelineGroup = new PipelineGroup(\"pipelineGroup\", PipelineGroupArgs.builder()\n .extendedLocation(AzureResourceManagerCommonTypesExtendedLocationArgs.builder()\n .name(\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.extendedlocation/customlocations/myTestCustomLocation\")\n .type(\"CustomLocation\")\n .build())\n .location(\"eastus2\")\n .pipelineGroupName(\"plGroup1\")\n .properties(PipelineGroupPropertiesArgs.builder()\n .exporters(ExporterArgs.builder()\n .azureMonitorWorkspaceLogs(AzureMonitorWorkspaceLogsExporterArgs.builder()\n .api(AzureMonitorWorkspaceLogsApiConfigArgs.builder()\n .dataCollectionEndpointUrl(\"https://logs-myingestion-eb0s.eastus-1.ingest.monitor.azure.com\")\n .dataCollectionRule(\"dcr-00000000000000000000000000000000\")\n .schema(SchemaMapArgs.builder()\n .recordMap( \n RecordMapArgs.builder()\n .from(\"body\")\n .to(\"Body\")\n .build(),\n RecordMapArgs.builder()\n .from(\"severity_text\")\n .to(\"SeverityText\")\n .build(),\n RecordMapArgs.builder()\n .from(\"time_unix_nano\")\n .to(\"TimeGenerated\")\n .build())\n .build())\n .stream(\"Custom-MyTableRawData_CL\")\n .build())\n .cache(CacheConfigurationArgs.builder()\n .maxStorageUsage(100)\n .retentionPeriod(10)\n .build())\n .concurrency(ConcurrencyConfigurationArgs.builder()\n .batchQueueSize(100)\n .workerCount(4)\n .build())\n .build())\n .name(\"my-workspace-logs-exporter1\")\n .type(\"AzureMonitorWorkspaceLogs\")\n .build())\n .processors(ProcessorArgs.builder()\n .name(\"batch-processor1\")\n .type(\"Batch\")\n .build())\n .receivers(ReceiverArgs.builder()\n .name(\"syslog-receiver1\")\n .syslog(SyslogReceiverArgs.builder()\n .endpoint(\"0.0.0.0:514\")\n .build())\n .type(\"Syslog\")\n .build())\n .service(ServiceArgs.builder()\n .pipelines(PipelineArgs.builder()\n .exporters(\"my-workspace-logs-exporter1\")\n .name(\"MyPipelineForLogs1\")\n .processors(\"batch-processor1\")\n .receivers(\"syslog-receiver1\")\n .type(\"Logs\")\n .build())\n .build())\n .build())\n .resourceGroupName(\"myResourceGroup\")\n .tags(Map.ofEntries(\n Map.entry(\"tag1\", \"A\"),\n Map.entry(\"tag2\", \"B\")\n ))\n .build());\n\n }\n}\n\n```\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure_native from \"@pulumi/azure-native\";\n\nconst pipelineGroup = new azure_native.monitor.PipelineGroup(\"pipelineGroup\", {\n extendedLocation: {\n name: \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.extendedlocation/customlocations/myTestCustomLocation\",\n type: azure_native.monitor.ExtendedLocationType.CustomLocation,\n },\n location: \"eastus2\",\n pipelineGroupName: \"plGroup1\",\n properties: {\n exporters: [{\n azureMonitorWorkspaceLogs: {\n api: {\n dataCollectionEndpointUrl: \"https://logs-myingestion-eb0s.eastus-1.ingest.monitor.azure.com\",\n dataCollectionRule: \"dcr-00000000000000000000000000000000\",\n schema: {\n recordMap: [\n {\n from: \"body\",\n to: \"Body\",\n },\n {\n from: \"severity_text\",\n to: \"SeverityText\",\n },\n {\n from: \"time_unix_nano\",\n to: \"TimeGenerated\",\n },\n ],\n },\n stream: \"Custom-MyTableRawData_CL\",\n },\n cache: {\n maxStorageUsage: 100,\n retentionPeriod: 10,\n },\n concurrency: {\n batchQueueSize: 100,\n workerCount: 4,\n },\n },\n name: \"my-workspace-logs-exporter1\",\n type: azure_native.monitor.ExporterType.AzureMonitorWorkspaceLogs,\n }],\n processors: [{\n name: \"batch-processor1\",\n type: azure_native.monitor.ProcessorType.Batch,\n }],\n receivers: [{\n name: \"syslog-receiver1\",\n syslog: {\n endpoint: \"0.0.0.0:514\",\n },\n type: azure_native.monitor.ReceiverType.Syslog,\n }],\n service: {\n pipelines: [{\n exporters: [\"my-workspace-logs-exporter1\"],\n name: \"MyPipelineForLogs1\",\n processors: [\"batch-processor1\"],\n receivers: [\"syslog-receiver1\"],\n type: azure_native.monitor.PipelineType.Logs,\n }],\n },\n },\n resourceGroupName: \"myResourceGroup\",\n tags: {\n tag1: \"A\",\n tag2: \"B\",\n },\n});\n\n```\n\n```python\nimport pulumi\nimport pulumi_azure_native as azure_native\n\npipeline_group = azure_native.monitor.PipelineGroup(\"pipelineGroup\",\n extended_location={\n \"name\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.extendedlocation/customlocations/myTestCustomLocation\",\n \"type\": azure_native.monitor.ExtendedLocationType.CUSTOM_LOCATION,\n },\n location=\"eastus2\",\n pipeline_group_name=\"plGroup1\",\n properties={\n \"exporters\": [{\n \"azure_monitor_workspace_logs\": {\n \"api\": {\n \"data_collection_endpoint_url\": \"https://logs-myingestion-eb0s.eastus-1.ingest.monitor.azure.com\",\n \"data_collection_rule\": \"dcr-00000000000000000000000000000000\",\n \"schema\": {\n \"record_map\": [\n {\n \"from_\": \"body\",\n \"to\": \"Body\",\n },\n {\n \"from_\": \"severity_text\",\n \"to\": \"SeverityText\",\n },\n {\n \"from_\": \"time_unix_nano\",\n \"to\": \"TimeGenerated\",\n },\n ],\n },\n \"stream\": \"Custom-MyTableRawData_CL\",\n },\n \"cache\": {\n \"max_storage_usage\": 100,\n \"retention_period\": 10,\n },\n \"concurrency\": {\n \"batch_queue_size\": 100,\n \"worker_count\": 4,\n },\n },\n \"name\": \"my-workspace-logs-exporter1\",\n \"type\": azure_native.monitor.ExporterType.AZURE_MONITOR_WORKSPACE_LOGS,\n }],\n \"processors\": [{\n \"name\": \"batch-processor1\",\n \"type\": azure_native.monitor.ProcessorType.BATCH,\n }],\n \"receivers\": [{\n \"name\": \"syslog-receiver1\",\n \"syslog\": {\n \"endpoint\": \"0.0.0.0:514\",\n },\n \"type\": azure_native.monitor.ReceiverType.SYSLOG,\n }],\n \"service\": {\n \"pipelines\": [{\n \"exporters\": [\"my-workspace-logs-exporter1\"],\n \"name\": \"MyPipelineForLogs1\",\n \"processors\": [\"batch-processor1\"],\n \"receivers\": [\"syslog-receiver1\"],\n \"type\": azure_native.monitor.PipelineType.LOGS,\n }],\n },\n },\n resource_group_name=\"myResourceGroup\",\n tags={\n \"tag1\": \"A\",\n \"tag2\": \"B\",\n })\n\n```\n\n```yaml\nresources:\n pipelineGroup:\n type: azure-native:monitor:PipelineGroup\n properties:\n extendedLocation:\n name: /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.extendedlocation/customlocations/myTestCustomLocation\n type: CustomLocation\n location: eastus2\n pipelineGroupName: plGroup1\n properties:\n exporters:\n - azureMonitorWorkspaceLogs:\n api:\n dataCollectionEndpointUrl: https://logs-myingestion-eb0s.eastus-1.ingest.monitor.azure.com\n dataCollectionRule: dcr-00000000000000000000000000000000\n schema:\n recordMap:\n - from: body\n to: Body\n - from: severity_text\n to: SeverityText\n - from: time_unix_nano\n to: TimeGenerated\n stream: Custom-MyTableRawData_CL\n cache:\n maxStorageUsage: 100\n retentionPeriod: 10\n concurrency:\n batchQueueSize: 100\n workerCount: 4\n name: my-workspace-logs-exporter1\n type: AzureMonitorWorkspaceLogs\n processors:\n - name: batch-processor1\n type: Batch\n receivers:\n - name: syslog-receiver1\n syslog:\n endpoint: 0.0.0.0:514\n type: Syslog\n service:\n pipelines:\n - exporters:\n - my-workspace-logs-exporter1\n name: MyPipelineForLogs1\n processors:\n - batch-processor1\n receivers:\n - syslog-receiver1\n type: Logs\n resourceGroupName: myResourceGroup\n tags:\n tag1: A\n tag2: B\n\n```\n\n{{% /example %}}\n{{% example %}}\n### Create a PipelineGroup instance using a syslog receiver and networking configurations.\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing AzureNative = Pulumi.AzureNative;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var pipelineGroup = new AzureNative.Monitor.PipelineGroup(\"pipelineGroup\", new()\n {\n ExtendedLocation = new AzureNative.Monitor.Inputs.AzureResourceManagerCommonTypesExtendedLocationArgs\n {\n Name = \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.extendedlocation/customlocations/myTestCustomLocation\",\n Type = AzureNative.Monitor.ExtendedLocationType.CustomLocation,\n },\n Location = \"eastus2\",\n PipelineGroupName = \"plGroup1\",\n Properties = new AzureNative.Monitor.Inputs.PipelineGroupPropertiesArgs\n {\n Exporters = new[]\n {\n new AzureNative.Monitor.Inputs.ExporterArgs\n {\n AzureMonitorWorkspaceLogs = new AzureNative.Monitor.Inputs.AzureMonitorWorkspaceLogsExporterArgs\n {\n Api = new AzureNative.Monitor.Inputs.AzureMonitorWorkspaceLogsApiConfigArgs\n {\n DataCollectionEndpointUrl = \"https://logs-myingestion-eb0s.eastus-1.ingest.monitor.azure.com\",\n DataCollectionRule = \"dcr-00000000000000000000000000000000\",\n Schema = new AzureNative.Monitor.Inputs.SchemaMapArgs\n {\n RecordMap = new[]\n {\n new AzureNative.Monitor.Inputs.RecordMapArgs\n {\n From = \"body\",\n To = \"Body\",\n },\n new AzureNative.Monitor.Inputs.RecordMapArgs\n {\n From = \"severity_text\",\n To = \"SeverityText\",\n },\n new AzureNative.Monitor.Inputs.RecordMapArgs\n {\n From = \"time_unix_nano\",\n To = \"TimeGenerated\",\n },\n },\n },\n Stream = \"Custom-MyTableRawData_CL\",\n },\n Concurrency = new AzureNative.Monitor.Inputs.ConcurrencyConfigurationArgs\n {\n BatchQueueSize = 100,\n WorkerCount = 4,\n },\n },\n Name = \"my-workspace-logs-exporter1\",\n Type = AzureNative.Monitor.ExporterType.AzureMonitorWorkspaceLogs,\n },\n },\n NetworkingConfigurations = new[]\n {\n new AzureNative.Monitor.Inputs.NetworkingConfigurationArgs\n {\n ExternalNetworkingMode = AzureNative.Monitor.ExternalNetworkingMode.LoadBalancerOnly,\n Host = \"azuremonitorpipeline.contoso.com\",\n Routes = new[]\n {\n new AzureNative.Monitor.Inputs.NetworkingRouteArgs\n {\n Receiver = \"syslog-receiver1\",\n },\n },\n },\n },\n Processors = new() { },\n Receivers = new[]\n {\n new AzureNative.Monitor.Inputs.ReceiverArgs\n {\n Name = \"syslog-receiver1\",\n Syslog = new AzureNative.Monitor.Inputs.SyslogReceiverArgs\n {\n Endpoint = \"0.0.0.0:514\",\n },\n Type = AzureNative.Monitor.ReceiverType.Syslog,\n },\n },\n Service = new AzureNative.Monitor.Inputs.ServiceArgs\n {\n Pipelines = new[]\n {\n new AzureNative.Monitor.Inputs.PipelineArgs\n {\n Exporters = new[]\n {\n \"my-workspace-logs-exporter1\",\n },\n Name = \"MyPipelineForLogs1\",\n Processors = new() { },\n Receivers = new[]\n {\n \"syslog-receiver1\",\n },\n Type = AzureNative.Monitor.PipelineType.Logs,\n },\n },\n },\n },\n ResourceGroupName = \"myResourceGroup\",\n Tags = \n {\n { \"tag1\", \"A\" },\n { \"tag2\", \"B\" },\n },\n });\n\n});\n\n\n```\n\n```go\npackage main\n\nimport (\n\tmonitor \"github.com/pulumi/pulumi-azure-native-sdk/monitor/v2\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := monitor.NewPipelineGroup(ctx, \"pipelineGroup\", \u0026monitor.PipelineGroupArgs{\n\t\t\tExtendedLocation: \u0026monitor.AzureResourceManagerCommonTypesExtendedLocationArgs{\n\t\t\t\tName: pulumi.String(\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.extendedlocation/customlocations/myTestCustomLocation\"),\n\t\t\t\tType: pulumi.String(monitor.ExtendedLocationTypeCustomLocation),\n\t\t\t},\n\t\t\tLocation: pulumi.String(\"eastus2\"),\n\t\t\tPipelineGroupName: pulumi.String(\"plGroup1\"),\n\t\t\tProperties: \u0026monitor.PipelineGroupPropertiesArgs{\n\t\t\t\tExporters: monitor.ExporterArray{\n\t\t\t\t\t\u0026monitor.ExporterArgs{\n\t\t\t\t\t\tAzureMonitorWorkspaceLogs: \u0026monitor.AzureMonitorWorkspaceLogsExporterArgs{\n\t\t\t\t\t\t\tApi: \u0026monitor.AzureMonitorWorkspaceLogsApiConfigArgs{\n\t\t\t\t\t\t\t\tDataCollectionEndpointUrl: pulumi.String(\"https://logs-myingestion-eb0s.eastus-1.ingest.monitor.azure.com\"),\n\t\t\t\t\t\t\t\tDataCollectionRule: pulumi.String(\"dcr-00000000000000000000000000000000\"),\n\t\t\t\t\t\t\t\tSchema: \u0026monitor.SchemaMapArgs{\n\t\t\t\t\t\t\t\t\tRecordMap: monitor.RecordMapArray{\n\t\t\t\t\t\t\t\t\t\t\u0026monitor.RecordMapArgs{\n\t\t\t\t\t\t\t\t\t\t\tFrom: pulumi.String(\"body\"),\n\t\t\t\t\t\t\t\t\t\t\tTo: pulumi.String(\"Body\"),\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\u0026monitor.RecordMapArgs{\n\t\t\t\t\t\t\t\t\t\t\tFrom: pulumi.String(\"severity_text\"),\n\t\t\t\t\t\t\t\t\t\t\tTo: pulumi.String(\"SeverityText\"),\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\u0026monitor.RecordMapArgs{\n\t\t\t\t\t\t\t\t\t\t\tFrom: pulumi.String(\"time_unix_nano\"),\n\t\t\t\t\t\t\t\t\t\t\tTo: pulumi.String(\"TimeGenerated\"),\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tStream: pulumi.String(\"Custom-MyTableRawData_CL\"),\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tConcurrency: \u0026monitor.ConcurrencyConfigurationArgs{\n\t\t\t\t\t\t\t\tBatchQueueSize: pulumi.Int(100),\n\t\t\t\t\t\t\t\tWorkerCount: pulumi.Int(4),\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t\tName: pulumi.String(\"my-workspace-logs-exporter1\"),\n\t\t\t\t\t\tType: pulumi.String(monitor.ExporterTypeAzureMonitorWorkspaceLogs),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tNetworkingConfigurations: monitor.NetworkingConfigurationArray{\n\t\t\t\t\t\u0026monitor.NetworkingConfigurationArgs{\n\t\t\t\t\t\tExternalNetworkingMode: pulumi.String(monitor.ExternalNetworkingModeLoadBalancerOnly),\n\t\t\t\t\t\tHost: pulumi.String(\"azuremonitorpipeline.contoso.com\"),\n\t\t\t\t\t\tRoutes: monitor.NetworkingRouteArray{\n\t\t\t\t\t\t\t\u0026monitor.NetworkingRouteArgs{\n\t\t\t\t\t\t\t\tReceiver: pulumi.String(\"syslog-receiver1\"),\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tProcessors: monitor.ProcessorArray{},\n\t\t\t\tReceivers: monitor.ReceiverArray{\n\t\t\t\t\t\u0026monitor.ReceiverArgs{\n\t\t\t\t\t\tName: pulumi.String(\"syslog-receiver1\"),\n\t\t\t\t\t\tSyslog: \u0026monitor.SyslogReceiverArgs{\n\t\t\t\t\t\t\tEndpoint: pulumi.String(\"0.0.0.0:514\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t\tType: pulumi.String(monitor.ReceiverTypeSyslog),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tService: \u0026monitor.ServiceArgs{\n\t\t\t\t\tPipelines: monitor.PipelineArray{\n\t\t\t\t\t\t\u0026monitor.PipelineArgs{\n\t\t\t\t\t\t\tExporters: pulumi.StringArray{\n\t\t\t\t\t\t\t\tpulumi.String(\"my-workspace-logs-exporter1\"),\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tName: pulumi.String(\"MyPipelineForLogs1\"),\n\t\t\t\t\t\t\tProcessors: pulumi.StringArray{},\n\t\t\t\t\t\t\tReceivers: pulumi.StringArray{\n\t\t\t\t\t\t\t\tpulumi.String(\"syslog-receiver1\"),\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tType: pulumi.String(monitor.PipelineTypeLogs),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tResourceGroupName: pulumi.String(\"myResourceGroup\"),\n\t\t\tTags: pulumi.StringMap{\n\t\t\t\t\"tag1\": pulumi.String(\"A\"),\n\t\t\t\t\"tag2\": pulumi.String(\"B\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n\n```\n\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azurenative.monitor.PipelineGroup;\nimport com.pulumi.azurenative.monitor.PipelineGroupArgs;\nimport com.pulumi.azurenative.monitor.inputs.AzureResourceManagerCommonTypesExtendedLocationArgs;\nimport com.pulumi.azurenative.monitor.inputs.PipelineGroupPropertiesArgs;\nimport com.pulumi.azurenative.monitor.inputs.ServiceArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var pipelineGroup = new PipelineGroup(\"pipelineGroup\", PipelineGroupArgs.builder()\n .extendedLocation(AzureResourceManagerCommonTypesExtendedLocationArgs.builder()\n .name(\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.extendedlocation/customlocations/myTestCustomLocation\")\n .type(\"CustomLocation\")\n .build())\n .location(\"eastus2\")\n .pipelineGroupName(\"plGroup1\")\n .properties(PipelineGroupPropertiesArgs.builder()\n .exporters(ExporterArgs.builder()\n .azureMonitorWorkspaceLogs(AzureMonitorWorkspaceLogsExporterArgs.builder()\n .api(AzureMonitorWorkspaceLogsApiConfigArgs.builder()\n .dataCollectionEndpointUrl(\"https://logs-myingestion-eb0s.eastus-1.ingest.monitor.azure.com\")\n .dataCollectionRule(\"dcr-00000000000000000000000000000000\")\n .schema(SchemaMapArgs.builder()\n .recordMap( \n RecordMapArgs.builder()\n .from(\"body\")\n .to(\"Body\")\n .build(),\n RecordMapArgs.builder()\n .from(\"severity_text\")\n .to(\"SeverityText\")\n .build(),\n RecordMapArgs.builder()\n .from(\"time_unix_nano\")\n .to(\"TimeGenerated\")\n .build())\n .build())\n .stream(\"Custom-MyTableRawData_CL\")\n .build())\n .concurrency(ConcurrencyConfigurationArgs.builder()\n .batchQueueSize(100)\n .workerCount(4)\n .build())\n .build())\n .name(\"my-workspace-logs-exporter1\")\n .type(\"AzureMonitorWorkspaceLogs\")\n .build())\n .networkingConfigurations(NetworkingConfigurationArgs.builder()\n .externalNetworkingMode(\"LoadBalancerOnly\")\n .host(\"azuremonitorpipeline.contoso.com\")\n .routes(NetworkingRouteArgs.builder()\n .receiver(\"syslog-receiver1\")\n .build())\n .build())\n .processors()\n .receivers(ReceiverArgs.builder()\n .name(\"syslog-receiver1\")\n .syslog(SyslogReceiverArgs.builder()\n .endpoint(\"0.0.0.0:514\")\n .build())\n .type(\"Syslog\")\n .build())\n .service(ServiceArgs.builder()\n .pipelines(PipelineArgs.builder()\n .exporters(\"my-workspace-logs-exporter1\")\n .name(\"MyPipelineForLogs1\")\n .processors()\n .receivers(\"syslog-receiver1\")\n .type(\"Logs\")\n .build())\n .build())\n .build())\n .resourceGroupName(\"myResourceGroup\")\n .tags(Map.ofEntries(\n Map.entry(\"tag1\", \"A\"),\n Map.entry(\"tag2\", \"B\")\n ))\n .build());\n\n }\n}\n\n```\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure_native from \"@pulumi/azure-native\";\n\nconst pipelineGroup = new azure_native.monitor.PipelineGroup(\"pipelineGroup\", {\n extendedLocation: {\n name: \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.extendedlocation/customlocations/myTestCustomLocation\",\n type: azure_native.monitor.ExtendedLocationType.CustomLocation,\n },\n location: \"eastus2\",\n pipelineGroupName: \"plGroup1\",\n properties: {\n exporters: [{\n azureMonitorWorkspaceLogs: {\n api: {\n dataCollectionEndpointUrl: \"https://logs-myingestion-eb0s.eastus-1.ingest.monitor.azure.com\",\n dataCollectionRule: \"dcr-00000000000000000000000000000000\",\n schema: {\n recordMap: [\n {\n from: \"body\",\n to: \"Body\",\n },\n {\n from: \"severity_text\",\n to: \"SeverityText\",\n },\n {\n from: \"time_unix_nano\",\n to: \"TimeGenerated\",\n },\n ],\n },\n stream: \"Custom-MyTableRawData_CL\",\n },\n concurrency: {\n batchQueueSize: 100,\n workerCount: 4,\n },\n },\n name: \"my-workspace-logs-exporter1\",\n type: azure_native.monitor.ExporterType.AzureMonitorWorkspaceLogs,\n }],\n networkingConfigurations: [{\n externalNetworkingMode: azure_native.monitor.ExternalNetworkingMode.LoadBalancerOnly,\n host: \"azuremonitorpipeline.contoso.com\",\n routes: [{\n receiver: \"syslog-receiver1\",\n }],\n }],\n processors: [],\n receivers: [{\n name: \"syslog-receiver1\",\n syslog: {\n endpoint: \"0.0.0.0:514\",\n },\n type: azure_native.monitor.ReceiverType.Syslog,\n }],\n service: {\n pipelines: [{\n exporters: [\"my-workspace-logs-exporter1\"],\n name: \"MyPipelineForLogs1\",\n processors: [],\n receivers: [\"syslog-receiver1\"],\n type: azure_native.monitor.PipelineType.Logs,\n }],\n },\n },\n resourceGroupName: \"myResourceGroup\",\n tags: {\n tag1: \"A\",\n tag2: \"B\",\n },\n});\n\n```\n\n```python\nimport pulumi\nimport pulumi_azure_native as azure_native\n\npipeline_group = azure_native.monitor.PipelineGroup(\"pipelineGroup\",\n extended_location={\n \"name\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.extendedlocation/customlocations/myTestCustomLocation\",\n \"type\": azure_native.monitor.ExtendedLocationType.CUSTOM_LOCATION,\n },\n location=\"eastus2\",\n pipeline_group_name=\"plGroup1\",\n properties={\n \"exporters\": [{\n \"azure_monitor_workspace_logs\": {\n \"api\": {\n \"data_collection_endpoint_url\": \"https://logs-myingestion-eb0s.eastus-1.ingest.monitor.azure.com\",\n \"data_collection_rule\": \"dcr-00000000000000000000000000000000\",\n \"schema\": {\n \"record_map\": [\n {\n \"from_\": \"body\",\n \"to\": \"Body\",\n },\n {\n \"from_\": \"severity_text\",\n \"to\": \"SeverityText\",\n },\n {\n \"from_\": \"time_unix_nano\",\n \"to\": \"TimeGenerated\",\n },\n ],\n },\n \"stream\": \"Custom-MyTableRawData_CL\",\n },\n \"concurrency\": {\n \"batch_queue_size\": 100,\n \"worker_count\": 4,\n },\n },\n \"name\": \"my-workspace-logs-exporter1\",\n \"type\": azure_native.monitor.ExporterType.AZURE_MONITOR_WORKSPACE_LOGS,\n }],\n \"networking_configurations\": [{\n \"external_networking_mode\": azure_native.monitor.ExternalNetworkingMode.LOAD_BALANCER_ONLY,\n \"host\": \"azuremonitorpipeline.contoso.com\",\n \"routes\": [{\n \"receiver\": \"syslog-receiver1\",\n }],\n }],\n \"processors\": [],\n \"receivers\": [{\n \"name\": \"syslog-receiver1\",\n \"syslog\": {\n \"endpoint\": \"0.0.0.0:514\",\n },\n \"type\": azure_native.monitor.ReceiverType.SYSLOG,\n }],\n \"service\": {\n \"pipelines\": [{\n \"exporters\": [\"my-workspace-logs-exporter1\"],\n \"name\": \"MyPipelineForLogs1\",\n \"processors\": [],\n \"receivers\": [\"syslog-receiver1\"],\n \"type\": azure_native.monitor.PipelineType.LOGS,\n }],\n },\n },\n resource_group_name=\"myResourceGroup\",\n tags={\n \"tag1\": \"A\",\n \"tag2\": \"B\",\n })\n\n```\n\n```yaml\nresources:\n pipelineGroup:\n type: azure-native:monitor:PipelineGroup\n properties:\n extendedLocation:\n name: /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.extendedlocation/customlocations/myTestCustomLocation\n type: CustomLocation\n location: eastus2\n pipelineGroupName: plGroup1\n properties:\n exporters:\n - azureMonitorWorkspaceLogs:\n api:\n dataCollectionEndpointUrl: https://logs-myingestion-eb0s.eastus-1.ingest.monitor.azure.com\n dataCollectionRule: dcr-00000000000000000000000000000000\n schema:\n recordMap:\n - from: body\n to: Body\n - from: severity_text\n to: SeverityText\n - from: time_unix_nano\n to: TimeGenerated\n stream: Custom-MyTableRawData_CL\n concurrency:\n batchQueueSize: 100\n workerCount: 4\n name: my-workspace-logs-exporter1\n type: AzureMonitorWorkspaceLogs\n networkingConfigurations:\n - externalNetworkingMode: LoadBalancerOnly\n host: azuremonitorpipeline.contoso.com\n routes:\n - receiver: syslog-receiver1\n processors: []\n receivers:\n - name: syslog-receiver1\n syslog:\n endpoint: 0.0.0.0:514\n type: Syslog\n service:\n pipelines:\n - exporters:\n - my-workspace-logs-exporter1\n name: MyPipelineForLogs1\n processors: []\n receivers:\n - syslog-receiver1\n type: Logs\n resourceGroupName: myResourceGroup\n tags:\n tag1: A\n tag2: B\n\n```\n\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nAn existing resource can be imported using its type token, name, and identifier, e.g.\n\n```sh\n$ pulumi import azure-native:monitor:PipelineGroup plGroup1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Monitor/pipelineGroups/{pipelineGroupName} \n```\n",
"properties": {
@@ -767912,6 +769530,123 @@
}
]
},
+ "azure-native:monitor:SubscriptionDiagnosticSetting": {
+ "description": "The subscription diagnostic setting resource.\n\nUses Azure REST API version 2021-05-01-preview.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n### Creates or Updates the subscription diagnostic setting\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing AzureNative = Pulumi.AzureNative;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var subscriptionDiagnosticSetting = new AzureNative.Monitor.SubscriptionDiagnosticSetting(\"subscriptionDiagnosticSetting\", new()\n {\n EventHubAuthorizationRuleId = \"/subscriptions/fb9f25f9-5785-4510-a38f-a62f188eb9f8/resourceGroups/montest/providers/microsoft.eventhub/namespaces/mynamespace/authorizationrules/myrule\",\n EventHubName = \"myeventhub\",\n Logs = new[]\n {\n new AzureNative.Monitor.Inputs.SubscriptionLogSettingsArgs\n {\n CategoryGroup = \"allLogs\",\n Enabled = true,\n },\n },\n MarketplacePartnerId = \"/subscriptions/abcdeabc-1234-1234-ab12-123a1234567a/resourceGroups/test-rg/providers/Microsoft.Datadog/monitors/dd1\",\n Name = \"ds4\",\n StorageAccountId = \"/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/apptest/providers/Microsoft.Storage/storageAccounts/appteststorage1\",\n WorkspaceId = \"\",\n });\n\n});\n\n\n```\n\n```go\npackage main\n\nimport (\n\tmonitor \"github.com/pulumi/pulumi-azure-native-sdk/monitor/v2\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := monitor.NewSubscriptionDiagnosticSetting(ctx, \"subscriptionDiagnosticSetting\", \u0026monitor.SubscriptionDiagnosticSettingArgs{\n\t\t\tEventHubAuthorizationRuleId: pulumi.String(\"/subscriptions/fb9f25f9-5785-4510-a38f-a62f188eb9f8/resourceGroups/montest/providers/microsoft.eventhub/namespaces/mynamespace/authorizationrules/myrule\"),\n\t\t\tEventHubName: pulumi.String(\"myeventhub\"),\n\t\t\tLogs: monitor.SubscriptionLogSettingsArray{\n\t\t\t\t\u0026monitor.SubscriptionLogSettingsArgs{\n\t\t\t\t\tCategoryGroup: pulumi.String(\"allLogs\"),\n\t\t\t\t\tEnabled: pulumi.Bool(true),\n\t\t\t\t},\n\t\t\t},\n\t\t\tMarketplacePartnerId: pulumi.String(\"/subscriptions/abcdeabc-1234-1234-ab12-123a1234567a/resourceGroups/test-rg/providers/Microsoft.Datadog/monitors/dd1\"),\n\t\t\tName: pulumi.String(\"ds4\"),\n\t\t\tStorageAccountId: pulumi.String(\"/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/apptest/providers/Microsoft.Storage/storageAccounts/appteststorage1\"),\n\t\t\tWorkspaceId: pulumi.String(\"\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n\n```\n\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azurenative.monitor.SubscriptionDiagnosticSetting;\nimport com.pulumi.azurenative.monitor.SubscriptionDiagnosticSettingArgs;\nimport com.pulumi.azurenative.monitor.inputs.SubscriptionLogSettingsArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var subscriptionDiagnosticSetting = new SubscriptionDiagnosticSetting(\"subscriptionDiagnosticSetting\", SubscriptionDiagnosticSettingArgs.builder()\n .eventHubAuthorizationRuleId(\"/subscriptions/fb9f25f9-5785-4510-a38f-a62f188eb9f8/resourceGroups/montest/providers/microsoft.eventhub/namespaces/mynamespace/authorizationrules/myrule\")\n .eventHubName(\"myeventhub\")\n .logs(SubscriptionLogSettingsArgs.builder()\n .categoryGroup(\"allLogs\")\n .enabled(true)\n .build())\n .marketplacePartnerId(\"/subscriptions/abcdeabc-1234-1234-ab12-123a1234567a/resourceGroups/test-rg/providers/Microsoft.Datadog/monitors/dd1\")\n .name(\"ds4\")\n .storageAccountId(\"/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/apptest/providers/Microsoft.Storage/storageAccounts/appteststorage1\")\n .workspaceId(\"\")\n .build());\n\n }\n}\n\n```\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure_native from \"@pulumi/azure-native\";\n\nconst subscriptionDiagnosticSetting = new azure_native.monitor.SubscriptionDiagnosticSetting(\"subscriptionDiagnosticSetting\", {\n eventHubAuthorizationRuleId: \"/subscriptions/fb9f25f9-5785-4510-a38f-a62f188eb9f8/resourceGroups/montest/providers/microsoft.eventhub/namespaces/mynamespace/authorizationrules/myrule\",\n eventHubName: \"myeventhub\",\n logs: [{\n categoryGroup: \"allLogs\",\n enabled: true,\n }],\n marketplacePartnerId: \"/subscriptions/abcdeabc-1234-1234-ab12-123a1234567a/resourceGroups/test-rg/providers/Microsoft.Datadog/monitors/dd1\",\n name: \"ds4\",\n storageAccountId: \"/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/apptest/providers/Microsoft.Storage/storageAccounts/appteststorage1\",\n workspaceId: \"\",\n});\n\n```\n\n```python\nimport pulumi\nimport pulumi_azure_native as azure_native\n\nsubscription_diagnostic_setting = azure_native.monitor.SubscriptionDiagnosticSetting(\"subscriptionDiagnosticSetting\",\n event_hub_authorization_rule_id=\"/subscriptions/fb9f25f9-5785-4510-a38f-a62f188eb9f8/resourceGroups/montest/providers/microsoft.eventhub/namespaces/mynamespace/authorizationrules/myrule\",\n event_hub_name=\"myeventhub\",\n logs=[{\n \"category_group\": \"allLogs\",\n \"enabled\": True,\n }],\n marketplace_partner_id=\"/subscriptions/abcdeabc-1234-1234-ab12-123a1234567a/resourceGroups/test-rg/providers/Microsoft.Datadog/monitors/dd1\",\n name=\"ds4\",\n storage_account_id=\"/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/apptest/providers/Microsoft.Storage/storageAccounts/appteststorage1\",\n workspace_id=\"\")\n\n```\n\n```yaml\nresources:\n subscriptionDiagnosticSetting:\n type: azure-native:monitor:SubscriptionDiagnosticSetting\n properties:\n eventHubAuthorizationRuleId: /subscriptions/fb9f25f9-5785-4510-a38f-a62f188eb9f8/resourceGroups/montest/providers/microsoft.eventhub/namespaces/mynamespace/authorizationrules/myrule\n eventHubName: myeventhub\n logs:\n - categoryGroup: allLogs\n enabled: true\n marketplacePartnerId: /subscriptions/abcdeabc-1234-1234-ab12-123a1234567a/resourceGroups/test-rg/providers/Microsoft.Datadog/monitors/dd1\n name: ds4\n storageAccountId: /subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/apptest/providers/Microsoft.Storage/storageAccounts/appteststorage1\n workspaceId: \"\"\n\n```\n\n{{% /example %}}\n{{% example %}}\n### Creates or Updates the subscription diagnostic setting for category\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing AzureNative = Pulumi.AzureNative;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var subscriptionDiagnosticSetting = new AzureNative.Monitor.SubscriptionDiagnosticSetting(\"subscriptionDiagnosticSetting\", new()\n {\n EventHubAuthorizationRuleId = \"/subscriptions/fb9f25f9-5785-4510-a38f-a62f188eb9f8/resourceGroups/montest/providers/microsoft.eventhub/namespaces/mynamespace/authorizationrules/myrule\",\n EventHubName = \"myeventhub\",\n Logs = new[]\n {\n new AzureNative.Monitor.Inputs.SubscriptionLogSettingsArgs\n {\n Category = \"Security\",\n Enabled = true,\n },\n },\n MarketplacePartnerId = \"/subscriptions/abcdeabc-1234-1234-ab12-123a1234567a/resourceGroups/test-rg/providers/Microsoft.Datadog/monitors/dd1\",\n Name = \"ds4\",\n StorageAccountId = \"/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/apptest/providers/Microsoft.Storage/storageAccounts/appteststorage1\",\n WorkspaceId = \"\",\n });\n\n});\n\n\n```\n\n```go\npackage main\n\nimport (\n\tmonitor \"github.com/pulumi/pulumi-azure-native-sdk/monitor/v2\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := monitor.NewSubscriptionDiagnosticSetting(ctx, \"subscriptionDiagnosticSetting\", \u0026monitor.SubscriptionDiagnosticSettingArgs{\n\t\t\tEventHubAuthorizationRuleId: pulumi.String(\"/subscriptions/fb9f25f9-5785-4510-a38f-a62f188eb9f8/resourceGroups/montest/providers/microsoft.eventhub/namespaces/mynamespace/authorizationrules/myrule\"),\n\t\t\tEventHubName: pulumi.String(\"myeventhub\"),\n\t\t\tLogs: monitor.SubscriptionLogSettingsArray{\n\t\t\t\t\u0026monitor.SubscriptionLogSettingsArgs{\n\t\t\t\t\tCategory: pulumi.String(\"Security\"),\n\t\t\t\t\tEnabled: pulumi.Bool(true),\n\t\t\t\t},\n\t\t\t},\n\t\t\tMarketplacePartnerId: pulumi.String(\"/subscriptions/abcdeabc-1234-1234-ab12-123a1234567a/resourceGroups/test-rg/providers/Microsoft.Datadog/monitors/dd1\"),\n\t\t\tName: pulumi.String(\"ds4\"),\n\t\t\tStorageAccountId: pulumi.String(\"/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/apptest/providers/Microsoft.Storage/storageAccounts/appteststorage1\"),\n\t\t\tWorkspaceId: pulumi.String(\"\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n\n```\n\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azurenative.monitor.SubscriptionDiagnosticSetting;\nimport com.pulumi.azurenative.monitor.SubscriptionDiagnosticSettingArgs;\nimport com.pulumi.azurenative.monitor.inputs.SubscriptionLogSettingsArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var subscriptionDiagnosticSetting = new SubscriptionDiagnosticSetting(\"subscriptionDiagnosticSetting\", SubscriptionDiagnosticSettingArgs.builder()\n .eventHubAuthorizationRuleId(\"/subscriptions/fb9f25f9-5785-4510-a38f-a62f188eb9f8/resourceGroups/montest/providers/microsoft.eventhub/namespaces/mynamespace/authorizationrules/myrule\")\n .eventHubName(\"myeventhub\")\n .logs(SubscriptionLogSettingsArgs.builder()\n .category(\"Security\")\n .enabled(true)\n .build())\n .marketplacePartnerId(\"/subscriptions/abcdeabc-1234-1234-ab12-123a1234567a/resourceGroups/test-rg/providers/Microsoft.Datadog/monitors/dd1\")\n .name(\"ds4\")\n .storageAccountId(\"/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/apptest/providers/Microsoft.Storage/storageAccounts/appteststorage1\")\n .workspaceId(\"\")\n .build());\n\n }\n}\n\n```\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure_native from \"@pulumi/azure-native\";\n\nconst subscriptionDiagnosticSetting = new azure_native.monitor.SubscriptionDiagnosticSetting(\"subscriptionDiagnosticSetting\", {\n eventHubAuthorizationRuleId: \"/subscriptions/fb9f25f9-5785-4510-a38f-a62f188eb9f8/resourceGroups/montest/providers/microsoft.eventhub/namespaces/mynamespace/authorizationrules/myrule\",\n eventHubName: \"myeventhub\",\n logs: [{\n category: \"Security\",\n enabled: true,\n }],\n marketplacePartnerId: \"/subscriptions/abcdeabc-1234-1234-ab12-123a1234567a/resourceGroups/test-rg/providers/Microsoft.Datadog/monitors/dd1\",\n name: \"ds4\",\n storageAccountId: \"/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/apptest/providers/Microsoft.Storage/storageAccounts/appteststorage1\",\n workspaceId: \"\",\n});\n\n```\n\n```python\nimport pulumi\nimport pulumi_azure_native as azure_native\n\nsubscription_diagnostic_setting = azure_native.monitor.SubscriptionDiagnosticSetting(\"subscriptionDiagnosticSetting\",\n event_hub_authorization_rule_id=\"/subscriptions/fb9f25f9-5785-4510-a38f-a62f188eb9f8/resourceGroups/montest/providers/microsoft.eventhub/namespaces/mynamespace/authorizationrules/myrule\",\n event_hub_name=\"myeventhub\",\n logs=[{\n \"category\": \"Security\",\n \"enabled\": True,\n }],\n marketplace_partner_id=\"/subscriptions/abcdeabc-1234-1234-ab12-123a1234567a/resourceGroups/test-rg/providers/Microsoft.Datadog/monitors/dd1\",\n name=\"ds4\",\n storage_account_id=\"/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/apptest/providers/Microsoft.Storage/storageAccounts/appteststorage1\",\n workspace_id=\"\")\n\n```\n\n```yaml\nresources:\n subscriptionDiagnosticSetting:\n type: azure-native:monitor:SubscriptionDiagnosticSetting\n properties:\n eventHubAuthorizationRuleId: /subscriptions/fb9f25f9-5785-4510-a38f-a62f188eb9f8/resourceGroups/montest/providers/microsoft.eventhub/namespaces/mynamespace/authorizationrules/myrule\n eventHubName: myeventhub\n logs:\n - category: Security\n enabled: true\n marketplacePartnerId: /subscriptions/abcdeabc-1234-1234-ab12-123a1234567a/resourceGroups/test-rg/providers/Microsoft.Datadog/monitors/dd1\n name: ds4\n storageAccountId: /subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/apptest/providers/Microsoft.Storage/storageAccounts/appteststorage1\n workspaceId: \"\"\n\n```\n\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nAn existing resource can be imported using its type token, name, and identifier, e.g.\n\n```sh\n$ pulumi import azure-native:monitor:SubscriptionDiagnosticSetting ds4 /subscriptions/{subscriptionId}/providers/Microsoft.Insights/diagnosticSettings/{name} \n```\n",
+ "properties": {
+ "azureApiVersion": {
+ "type": "string",
+ "description": "The Azure API version of the resource."
+ },
+ "eventHubAuthorizationRuleId": {
+ "type": "string",
+ "description": "The resource Id for the event hub authorization rule."
+ },
+ "eventHubName": {
+ "type": "string",
+ "description": "The name of the event hub. If none is specified, the default event hub will be selected."
+ },
+ "logs": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "$ref": "#/types/azure-native:monitor:SubscriptionLogSettingsResponse"
+ },
+ "description": "The list of logs settings."
+ },
+ "marketplacePartnerId": {
+ "type": "string",
+ "description": "The full ARM resource ID of the Marketplace resource to which you would like to send Diagnostic Logs."
+ },
+ "name": {
+ "type": "string",
+ "description": "The name of the resource"
+ },
+ "serviceBusRuleId": {
+ "type": "string",
+ "description": "The service bus rule Id of the diagnostic setting. This is here to maintain backwards compatibility."
+ },
+ "storageAccountId": {
+ "type": "string",
+ "description": "The resource ID of the storage account to which you would like to send Diagnostic Logs."
+ },
+ "systemData": {
+ "type": "object",
+ "$ref": "#/types/azure-native:monitor:SystemDataResponse",
+ "description": "The system metadata related to this resource."
+ },
+ "type": {
+ "type": "string",
+ "description": "The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or \"Microsoft.Storage/storageAccounts\""
+ },
+ "workspaceId": {
+ "type": "string",
+ "description": "The full ARM resource ID of the Log Analytics workspace to which you would like to send Diagnostic Logs. Example: /subscriptions/4b9e8510-67ab-4e9a-95a9-e2f1e570ea9c/resourceGroups/insights-integration/providers/Microsoft.OperationalInsights/workspaces/viruela2"
+ }
+ },
+ "type": "object",
+ "required": [
+ "azureApiVersion",
+ "name",
+ "systemData",
+ "type"
+ ],
+ "inputProperties": {
+ "eventHubAuthorizationRuleId": {
+ "type": "string",
+ "description": "The resource Id for the event hub authorization rule."
+ },
+ "eventHubName": {
+ "type": "string",
+ "description": "The name of the event hub. If none is specified, the default event hub will be selected."
+ },
+ "logs": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "$ref": "#/types/azure-native:monitor:SubscriptionLogSettings"
+ },
+ "description": "The list of logs settings."
+ },
+ "marketplacePartnerId": {
+ "type": "string",
+ "description": "The full ARM resource ID of the Marketplace resource to which you would like to send Diagnostic Logs."
+ },
+ "name": {
+ "type": "string",
+ "description": "The name of the diagnostic setting.",
+ "willReplaceOnChanges": true
+ },
+ "serviceBusRuleId": {
+ "type": "string",
+ "description": "The service bus rule Id of the diagnostic setting. This is here to maintain backwards compatibility."
+ },
+ "storageAccountId": {
+ "type": "string",
+ "description": "The resource ID of the storage account to which you would like to send Diagnostic Logs."
+ },
+ "workspaceId": {
+ "type": "string",
+ "description": "The full ARM resource ID of the Log Analytics workspace to which you would like to send Diagnostic Logs. Example: /subscriptions/4b9e8510-67ab-4e9a-95a9-e2f1e570ea9c/resourceGroups/insights-integration/providers/Microsoft.OperationalInsights/workspaces/viruela2"
+ }
+ },
+ "aliases": [
+ {
+ "type": "azure-native:insights/v20170501preview:SubscriptionDiagnosticSetting"
+ },
+ {
+ "type": "azure-native:insights/v20210501preview:SubscriptionDiagnosticSetting"
+ },
+ {
+ "type": "azure-native:insights:SubscriptionDiagnosticSetting"
+ },
+ {
+ "type": "azure-native:monitor/v20170501preview:SubscriptionDiagnosticSetting"
+ },
+ {
+ "type": "azure-native:monitor/v20210501preview:SubscriptionDiagnosticSetting"
+ }
+ ]
+ },
"azure-native:monitor:TenantActionGroup": {
"description": "A tenant action group resource.\n\nUses Azure REST API version 2023-05-01-preview.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n### Create or update a tenant action group\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing AzureNative = Pulumi.AzureNative;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var tenantActionGroup = new AzureNative.Monitor.TenantActionGroup(\"tenantActionGroup\", new()\n {\n AzureAppPushReceivers = new[]\n {\n new AzureNative.Monitor.Inputs.AzureAppPushReceiverArgs\n {\n EmailAddress = \"johndoe@email.com\",\n Name = \"Sample azureAppPush\",\n },\n },\n EmailReceivers = new[]\n {\n new AzureNative.Monitor.Inputs.EmailReceiverArgs\n {\n EmailAddress = \"johndoe@email.com\",\n Name = \"John Doe's email\",\n UseCommonAlertSchema = false,\n },\n new AzureNative.Monitor.Inputs.EmailReceiverArgs\n {\n EmailAddress = \"janesmith@email.com\",\n Name = \"Jane Smith's email\",\n UseCommonAlertSchema = true,\n },\n },\n Enabled = true,\n GroupShortName = \"sample\",\n Location = \"Global\",\n ManagementGroupId = \"72f988bf-86f1-41af-91ab-2d7cd011db47\",\n SmsReceivers = new[]\n {\n new AzureNative.Monitor.Inputs.SmsReceiverArgs\n {\n CountryCode = \"1\",\n Name = \"John Doe's mobile\",\n PhoneNumber = \"2062022299\",\n },\n new AzureNative.Monitor.Inputs.SmsReceiverArgs\n {\n CountryCode = \"1\",\n Name = \"Jane Smith's mobile\",\n PhoneNumber = \"0987654321\",\n },\n },\n Tags = null,\n TenantActionGroupName = \"testTenantActionGroup\",\n VoiceReceivers = new[]\n {\n new AzureNative.Monitor.Inputs.VoiceReceiverArgs\n {\n CountryCode = \"1\",\n Name = \"Sample voice\",\n PhoneNumber = \"2062022299\",\n },\n },\n WebhookReceivers = new[]\n {\n new AzureNative.Monitor.Inputs.WebhookReceiverArgs\n {\n Name = \"Sample webhook 1\",\n ServiceUri = \"http://www.example.com/webhook1\",\n UseCommonAlertSchema = true,\n },\n new AzureNative.Monitor.Inputs.WebhookReceiverArgs\n {\n IdentifierUri = \"http://someidentifier/d7811ba3-7996-4a93-99b6-6b2f3f355f8a\",\n Name = \"Sample webhook 2\",\n ObjectId = \"d3bb868c-fe44-452c-aa26-769a6538c808\",\n ServiceUri = \"http://www.example.com/webhook2\",\n TenantId = \"68a4459a-ccb8-493c-b9da-dd30457d1b84\",\n UseAadAuth = true,\n UseCommonAlertSchema = true,\n },\n },\n });\n\n});\n\n\n```\n\n```go\npackage main\n\nimport (\n\tmonitor \"github.com/pulumi/pulumi-azure-native-sdk/monitor/v2\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := monitor.NewTenantActionGroup(ctx, \"tenantActionGroup\", \u0026monitor.TenantActionGroupArgs{\n\t\t\tAzureAppPushReceivers: monitor.AzureAppPushReceiverArray{\n\t\t\t\t\u0026monitor.AzureAppPushReceiverArgs{\n\t\t\t\t\tEmailAddress: pulumi.String(\"johndoe@email.com\"),\n\t\t\t\t\tName: pulumi.String(\"Sample azureAppPush\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tEmailReceivers: monitor.EmailReceiverArray{\n\t\t\t\t\u0026monitor.EmailReceiverArgs{\n\t\t\t\t\tEmailAddress: pulumi.String(\"johndoe@email.com\"),\n\t\t\t\t\tName: pulumi.String(\"John Doe's email\"),\n\t\t\t\t\tUseCommonAlertSchema: pulumi.Bool(false),\n\t\t\t\t},\n\t\t\t\t\u0026monitor.EmailReceiverArgs{\n\t\t\t\t\tEmailAddress: pulumi.String(\"janesmith@email.com\"),\n\t\t\t\t\tName: pulumi.String(\"Jane Smith's email\"),\n\t\t\t\t\tUseCommonAlertSchema: pulumi.Bool(true),\n\t\t\t\t},\n\t\t\t},\n\t\t\tEnabled: pulumi.Bool(true),\n\t\t\tGroupShortName: pulumi.String(\"sample\"),\n\t\t\tLocation: pulumi.String(\"Global\"),\n\t\t\tManagementGroupId: pulumi.String(\"72f988bf-86f1-41af-91ab-2d7cd011db47\"),\n\t\t\tSmsReceivers: monitor.SmsReceiverArray{\n\t\t\t\t\u0026monitor.SmsReceiverArgs{\n\t\t\t\t\tCountryCode: pulumi.String(\"1\"),\n\t\t\t\t\tName: pulumi.String(\"John Doe's mobile\"),\n\t\t\t\t\tPhoneNumber: pulumi.String(\"2062022299\"),\n\t\t\t\t},\n\t\t\t\t\u0026monitor.SmsReceiverArgs{\n\t\t\t\t\tCountryCode: pulumi.String(\"1\"),\n\t\t\t\t\tName: pulumi.String(\"Jane Smith's mobile\"),\n\t\t\t\t\tPhoneNumber: pulumi.String(\"0987654321\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tTags: pulumi.StringMap{},\n\t\t\tTenantActionGroupName: pulumi.String(\"testTenantActionGroup\"),\n\t\t\tVoiceReceivers: monitor.VoiceReceiverArray{\n\t\t\t\t\u0026monitor.VoiceReceiverArgs{\n\t\t\t\t\tCountryCode: pulumi.String(\"1\"),\n\t\t\t\t\tName: pulumi.String(\"Sample voice\"),\n\t\t\t\t\tPhoneNumber: pulumi.String(\"2062022299\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tWebhookReceivers: monitor.WebhookReceiverArray{\n\t\t\t\t\u0026monitor.WebhookReceiverArgs{\n\t\t\t\t\tName: pulumi.String(\"Sample webhook 1\"),\n\t\t\t\t\tServiceUri: pulumi.String(\"http://www.example.com/webhook1\"),\n\t\t\t\t\tUseCommonAlertSchema: pulumi.Bool(true),\n\t\t\t\t},\n\t\t\t\t\u0026monitor.WebhookReceiverArgs{\n\t\t\t\t\tIdentifierUri: pulumi.String(\"http://someidentifier/d7811ba3-7996-4a93-99b6-6b2f3f355f8a\"),\n\t\t\t\t\tName: pulumi.String(\"Sample webhook 2\"),\n\t\t\t\t\tObjectId: pulumi.String(\"d3bb868c-fe44-452c-aa26-769a6538c808\"),\n\t\t\t\t\tServiceUri: pulumi.String(\"http://www.example.com/webhook2\"),\n\t\t\t\t\tTenantId: pulumi.String(\"68a4459a-ccb8-493c-b9da-dd30457d1b84\"),\n\t\t\t\t\tUseAadAuth: pulumi.Bool(true),\n\t\t\t\t\tUseCommonAlertSchema: pulumi.Bool(true),\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n\n```\n\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azurenative.monitor.TenantActionGroup;\nimport com.pulumi.azurenative.monitor.TenantActionGroupArgs;\nimport com.pulumi.azurenative.monitor.inputs.AzureAppPushReceiverArgs;\nimport com.pulumi.azurenative.monitor.inputs.EmailReceiverArgs;\nimport com.pulumi.azurenative.monitor.inputs.SmsReceiverArgs;\nimport com.pulumi.azurenative.monitor.inputs.VoiceReceiverArgs;\nimport com.pulumi.azurenative.monitor.inputs.WebhookReceiverArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var tenantActionGroup = new TenantActionGroup(\"tenantActionGroup\", TenantActionGroupArgs.builder()\n .azureAppPushReceivers(AzureAppPushReceiverArgs.builder()\n .emailAddress(\"johndoe@email.com\")\n .name(\"Sample azureAppPush\")\n .build())\n .emailReceivers( \n EmailReceiverArgs.builder()\n .emailAddress(\"johndoe@email.com\")\n .name(\"John Doe's email\")\n .useCommonAlertSchema(false)\n .build(),\n EmailReceiverArgs.builder()\n .emailAddress(\"janesmith@email.com\")\n .name(\"Jane Smith's email\")\n .useCommonAlertSchema(true)\n .build())\n .enabled(true)\n .groupShortName(\"sample\")\n .location(\"Global\")\n .managementGroupId(\"72f988bf-86f1-41af-91ab-2d7cd011db47\")\n .smsReceivers( \n SmsReceiverArgs.builder()\n .countryCode(\"1\")\n .name(\"John Doe's mobile\")\n .phoneNumber(\"2062022299\")\n .build(),\n SmsReceiverArgs.builder()\n .countryCode(\"1\")\n .name(\"Jane Smith's mobile\")\n .phoneNumber(\"0987654321\")\n .build())\n .tags()\n .tenantActionGroupName(\"testTenantActionGroup\")\n .voiceReceivers(VoiceReceiverArgs.builder()\n .countryCode(\"1\")\n .name(\"Sample voice\")\n .phoneNumber(\"2062022299\")\n .build())\n .webhookReceivers( \n WebhookReceiverArgs.builder()\n .name(\"Sample webhook 1\")\n .serviceUri(\"http://www.example.com/webhook1\")\n .useCommonAlertSchema(true)\n .build(),\n WebhookReceiverArgs.builder()\n .identifierUri(\"http://someidentifier/d7811ba3-7996-4a93-99b6-6b2f3f355f8a\")\n .name(\"Sample webhook 2\")\n .objectId(\"d3bb868c-fe44-452c-aa26-769a6538c808\")\n .serviceUri(\"http://www.example.com/webhook2\")\n .tenantId(\"68a4459a-ccb8-493c-b9da-dd30457d1b84\")\n .useAadAuth(true)\n .useCommonAlertSchema(true)\n .build())\n .build());\n\n }\n}\n\n```\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure_native from \"@pulumi/azure-native\";\n\nconst tenantActionGroup = new azure_native.monitor.TenantActionGroup(\"tenantActionGroup\", {\n azureAppPushReceivers: [{\n emailAddress: \"johndoe@email.com\",\n name: \"Sample azureAppPush\",\n }],\n emailReceivers: [\n {\n emailAddress: \"johndoe@email.com\",\n name: \"John Doe's email\",\n useCommonAlertSchema: false,\n },\n {\n emailAddress: \"janesmith@email.com\",\n name: \"Jane Smith's email\",\n useCommonAlertSchema: true,\n },\n ],\n enabled: true,\n groupShortName: \"sample\",\n location: \"Global\",\n managementGroupId: \"72f988bf-86f1-41af-91ab-2d7cd011db47\",\n smsReceivers: [\n {\n countryCode: \"1\",\n name: \"John Doe's mobile\",\n phoneNumber: \"2062022299\",\n },\n {\n countryCode: \"1\",\n name: \"Jane Smith's mobile\",\n phoneNumber: \"0987654321\",\n },\n ],\n tags: {},\n tenantActionGroupName: \"testTenantActionGroup\",\n voiceReceivers: [{\n countryCode: \"1\",\n name: \"Sample voice\",\n phoneNumber: \"2062022299\",\n }],\n webhookReceivers: [\n {\n name: \"Sample webhook 1\",\n serviceUri: \"http://www.example.com/webhook1\",\n useCommonAlertSchema: true,\n },\n {\n identifierUri: \"http://someidentifier/d7811ba3-7996-4a93-99b6-6b2f3f355f8a\",\n name: \"Sample webhook 2\",\n objectId: \"d3bb868c-fe44-452c-aa26-769a6538c808\",\n serviceUri: \"http://www.example.com/webhook2\",\n tenantId: \"68a4459a-ccb8-493c-b9da-dd30457d1b84\",\n useAadAuth: true,\n useCommonAlertSchema: true,\n },\n ],\n});\n\n```\n\n```python\nimport pulumi\nimport pulumi_azure_native as azure_native\n\ntenant_action_group = azure_native.monitor.TenantActionGroup(\"tenantActionGroup\",\n azure_app_push_receivers=[{\n \"email_address\": \"johndoe@email.com\",\n \"name\": \"Sample azureAppPush\",\n }],\n email_receivers=[\n {\n \"email_address\": \"johndoe@email.com\",\n \"name\": \"John Doe's email\",\n \"use_common_alert_schema\": False,\n },\n {\n \"email_address\": \"janesmith@email.com\",\n \"name\": \"Jane Smith's email\",\n \"use_common_alert_schema\": True,\n },\n ],\n enabled=True,\n group_short_name=\"sample\",\n location=\"Global\",\n management_group_id=\"72f988bf-86f1-41af-91ab-2d7cd011db47\",\n sms_receivers=[\n {\n \"country_code\": \"1\",\n \"name\": \"John Doe's mobile\",\n \"phone_number\": \"2062022299\",\n },\n {\n \"country_code\": \"1\",\n \"name\": \"Jane Smith's mobile\",\n \"phone_number\": \"0987654321\",\n },\n ],\n tags={},\n tenant_action_group_name=\"testTenantActionGroup\",\n voice_receivers=[{\n \"country_code\": \"1\",\n \"name\": \"Sample voice\",\n \"phone_number\": \"2062022299\",\n }],\n webhook_receivers=[\n {\n \"name\": \"Sample webhook 1\",\n \"service_uri\": \"http://www.example.com/webhook1\",\n \"use_common_alert_schema\": True,\n },\n {\n \"identifier_uri\": \"http://someidentifier/d7811ba3-7996-4a93-99b6-6b2f3f355f8a\",\n \"name\": \"Sample webhook 2\",\n \"object_id\": \"d3bb868c-fe44-452c-aa26-769a6538c808\",\n \"service_uri\": \"http://www.example.com/webhook2\",\n \"tenant_id\": \"68a4459a-ccb8-493c-b9da-dd30457d1b84\",\n \"use_aad_auth\": True,\n \"use_common_alert_schema\": True,\n },\n ])\n\n```\n\n```yaml\nresources:\n tenantActionGroup:\n type: azure-native:monitor:TenantActionGroup\n properties:\n azureAppPushReceivers:\n - emailAddress: johndoe@email.com\n name: Sample azureAppPush\n emailReceivers:\n - emailAddress: johndoe@email.com\n name: John Doe's email\n useCommonAlertSchema: false\n - emailAddress: janesmith@email.com\n name: Jane Smith's email\n useCommonAlertSchema: true\n enabled: true\n groupShortName: sample\n location: Global\n managementGroupId: 72f988bf-86f1-41af-91ab-2d7cd011db47\n smsReceivers:\n - countryCode: '1'\n name: John Doe's mobile\n phoneNumber: '2062022299'\n - countryCode: '1'\n name: Jane Smith's mobile\n phoneNumber: '0987654321'\n tags: {}\n tenantActionGroupName: testTenantActionGroup\n voiceReceivers:\n - countryCode: '1'\n name: Sample voice\n phoneNumber: '2062022299'\n webhookReceivers:\n - name: Sample webhook 1\n serviceUri: http://www.example.com/webhook1\n useCommonAlertSchema: true\n - identifierUri: http://someidentifier/d7811ba3-7996-4a93-99b6-6b2f3f355f8a\n name: Sample webhook 2\n objectId: d3bb868c-fe44-452c-aa26-769a6538c808\n serviceUri: http://www.example.com/webhook2\n tenantId: 68a4459a-ccb8-493c-b9da-dd30457d1b84\n useAadAuth: true\n useCommonAlertSchema: true\n\n```\n\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nAn existing resource can be imported using its type token, name, and identifier, e.g.\n\n```sh\n$ pulumi import azure-native:monitor:TenantActionGroup testTenantActionGroup /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Insights/tenantActionGroups/{tenantActionGroupName} \n```\n",
"properties": {
@@ -1049137,6 +1050872,80 @@
]
}
},
+ "azure-native:monitor:getAutoscaleSetting": {
+ "description": "Gets an autoscale setting\n\nUses Azure REST API version 2021-05-01-preview.",
+ "inputs": {
+ "properties": {
+ "autoscaleSettingName": {
+ "type": "string",
+ "description": "The autoscale setting name.",
+ "willReplaceOnChanges": true
+ },
+ "resourceGroupName": {
+ "type": "string",
+ "description": "The name of the resource group. The name is case insensitive.",
+ "willReplaceOnChanges": true
+ }
+ },
+ "type": "object",
+ "required": [
+ "autoscaleSettingName",
+ "resourceGroupName"
+ ]
+ },
+ "outputs": {
+ "description": "The autoscale setting resource.",
+ "properties": {
+ "azureApiVersion": {
+ "type": "string",
+ "description": "The Azure API version of the resource."
+ },
+ "id": {
+ "type": "string",
+ "description": "Azure resource Id"
+ },
+ "location": {
+ "type": "string",
+ "description": "Resource location"
+ },
+ "name": {
+ "type": "string",
+ "description": "Azure resource name"
+ },
+ "properties": {
+ "type": "object",
+ "$ref": "#/types/azure-native:monitor:AutoscaleSettingResponse",
+ "description": "The autoscale setting of the resource."
+ },
+ "systemData": {
+ "type": "object",
+ "$ref": "#/types/azure-native:monitor:SystemDataResponse",
+ "description": "The system metadata related to the response."
+ },
+ "tags": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ },
+ "description": "Gets or sets a list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater in length than 128 characters and a value no greater in length than 256 characters."
+ },
+ "type": {
+ "type": "string",
+ "description": "Azure resource type"
+ }
+ },
+ "type": "object",
+ "required": [
+ "azureApiVersion",
+ "id",
+ "location",
+ "name",
+ "properties",
+ "systemData",
+ "type"
+ ]
+ }
+ },
"azure-native:monitor:getAzureMonitorWorkspace": {
"description": "Returns the specific Azure Monitor workspace\n\nUses Azure REST API version 2023-10-01-preview.\n\nOther available API versions: 2023-04-03. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native monitor [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.",
"inputs": {
@@ -1049245,6 +1051054,194 @@
]
}
},
+ "azure-native:monitor:getDiagnosticSetting": {
+ "description": "Gets the active diagnostic settings for the specified resource.\n\nUses Azure REST API version 2021-05-01-preview.",
+ "inputs": {
+ "properties": {
+ "name": {
+ "type": "string",
+ "description": "The name of the diagnostic setting.",
+ "willReplaceOnChanges": true
+ },
+ "resourceUri": {
+ "type": "string",
+ "description": "The identifier of the resource.",
+ "willReplaceOnChanges": true
+ }
+ },
+ "type": "object",
+ "required": [
+ "name",
+ "resourceUri"
+ ]
+ },
+ "outputs": {
+ "description": "The diagnostic setting resource.",
+ "properties": {
+ "azureApiVersion": {
+ "type": "string",
+ "description": "The Azure API version of the resource."
+ },
+ "eventHubAuthorizationRuleId": {
+ "type": "string",
+ "description": "The resource Id for the event hub authorization rule."
+ },
+ "eventHubName": {
+ "type": "string",
+ "description": "The name of the event hub. If none is specified, the default event hub will be selected."
+ },
+ "id": {
+ "type": "string",
+ "description": "Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
+ },
+ "logAnalyticsDestinationType": {
+ "type": "string",
+ "description": "A string indicating whether the export to Log Analytics should use the default destination type, i.e. AzureDiagnostics, or use a destination type constructed as follows: \u003cnormalized service identity\u003e_\u003cnormalized category name\u003e. Possible values are: Dedicated and null (null is default.)"
+ },
+ "logs": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "$ref": "#/types/azure-native:monitor:LogSettingsResponse"
+ },
+ "description": "The list of logs settings."
+ },
+ "marketplacePartnerId": {
+ "type": "string",
+ "description": "The full ARM resource ID of the Marketplace resource to which you would like to send Diagnostic Logs."
+ },
+ "metrics": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "$ref": "#/types/azure-native:monitor:MetricSettingsResponse"
+ },
+ "description": "The list of metric settings."
+ },
+ "name": {
+ "type": "string",
+ "description": "The name of the resource"
+ },
+ "serviceBusRuleId": {
+ "type": "string",
+ "description": "The service bus rule Id of the diagnostic setting. This is here to maintain backwards compatibility."
+ },
+ "storageAccountId": {
+ "type": "string",
+ "description": "The resource ID of the storage account to which you would like to send Diagnostic Logs."
+ },
+ "systemData": {
+ "type": "object",
+ "$ref": "#/types/azure-native:monitor:SystemDataResponse",
+ "description": "The system metadata related to this resource."
+ },
+ "type": {
+ "type": "string",
+ "description": "The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or \"Microsoft.Storage/storageAccounts\""
+ },
+ "workspaceId": {
+ "type": "string",
+ "description": "The full ARM resource ID of the Log Analytics workspace to which you would like to send Diagnostic Logs. Example: /subscriptions/4b9e8510-67ab-4e9a-95a9-e2f1e570ea9c/resourceGroups/insights-integration/providers/Microsoft.OperationalInsights/workspaces/viruela2"
+ }
+ },
+ "type": "object",
+ "required": [
+ "azureApiVersion",
+ "id",
+ "name",
+ "systemData",
+ "type"
+ ]
+ }
+ },
+ "azure-native:monitor:getManagementGroupDiagnosticSetting": {
+ "description": "Gets the active management group diagnostic settings for the specified resource.\n\nUses Azure REST API version 2021-05-01-preview.",
+ "inputs": {
+ "properties": {
+ "managementGroupId": {
+ "type": "string",
+ "description": "The management group id.",
+ "willReplaceOnChanges": true
+ },
+ "name": {
+ "type": "string",
+ "description": "The name of the diagnostic setting.",
+ "willReplaceOnChanges": true
+ }
+ },
+ "type": "object",
+ "required": [
+ "managementGroupId",
+ "name"
+ ]
+ },
+ "outputs": {
+ "description": "The management group diagnostic setting resource.",
+ "properties": {
+ "azureApiVersion": {
+ "type": "string",
+ "description": "The Azure API version of the resource."
+ },
+ "eventHubAuthorizationRuleId": {
+ "type": "string",
+ "description": "The resource Id for the event hub authorization rule."
+ },
+ "eventHubName": {
+ "type": "string",
+ "description": "The name of the event hub. If none is specified, the default event hub will be selected."
+ },
+ "id": {
+ "type": "string",
+ "description": "Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
+ },
+ "logs": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "$ref": "#/types/azure-native:monitor:ManagementGroupLogSettingsResponse"
+ },
+ "description": "The list of logs settings."
+ },
+ "marketplacePartnerId": {
+ "type": "string",
+ "description": "The full ARM resource ID of the Marketplace resource to which you would like to send Diagnostic Logs."
+ },
+ "name": {
+ "type": "string",
+ "description": "The name of the resource"
+ },
+ "serviceBusRuleId": {
+ "type": "string",
+ "description": "The service bus rule Id of the diagnostic setting. This is here to maintain backwards compatibility."
+ },
+ "storageAccountId": {
+ "type": "string",
+ "description": "The resource ID of the storage account to which you would like to send Diagnostic Logs."
+ },
+ "systemData": {
+ "type": "object",
+ "$ref": "#/types/azure-native:monitor:SystemDataResponse",
+ "description": "The system metadata related to this resource."
+ },
+ "type": {
+ "type": "string",
+ "description": "The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or \"Microsoft.Storage/storageAccounts\""
+ },
+ "workspaceId": {
+ "type": "string",
+ "description": "The full ARM resource ID of the Log Analytics workspace to which you would like to send Diagnostic Logs. Example: /subscriptions/4b9e8510-67ab-4e9a-95a9-e2f1e570ea9c/resourceGroups/insights-integration/providers/Microsoft.OperationalInsights/workspaces/viruela2"
+ }
+ },
+ "type": "object",
+ "required": [
+ "azureApiVersion",
+ "id",
+ "name",
+ "systemData",
+ "type"
+ ]
+ }
+ },
"azure-native:monitor:getPipelineGroup": {
"description": "Returns the specific pipeline group instance.\n\nUses Azure REST API version 2024-10-01-preview.\n\nOther available API versions: 2023-10-01-preview. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native monitor [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.",
"inputs": {
@@ -1049736,6 +1051733,88 @@
]
}
},
+ "azure-native:monitor:getSubscriptionDiagnosticSetting": {
+ "description": "Gets the active subscription diagnostic settings for the specified resource.\n\nUses Azure REST API version 2021-05-01-preview.",
+ "inputs": {
+ "properties": {
+ "name": {
+ "type": "string",
+ "description": "The name of the diagnostic setting.",
+ "willReplaceOnChanges": true
+ }
+ },
+ "type": "object",
+ "required": [
+ "name"
+ ]
+ },
+ "outputs": {
+ "description": "The subscription diagnostic setting resource.",
+ "properties": {
+ "azureApiVersion": {
+ "type": "string",
+ "description": "The Azure API version of the resource."
+ },
+ "eventHubAuthorizationRuleId": {
+ "type": "string",
+ "description": "The resource Id for the event hub authorization rule."
+ },
+ "eventHubName": {
+ "type": "string",
+ "description": "The name of the event hub. If none is specified, the default event hub will be selected."
+ },
+ "id": {
+ "type": "string",
+ "description": "Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
+ },
+ "logs": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "$ref": "#/types/azure-native:monitor:SubscriptionLogSettingsResponse"
+ },
+ "description": "The list of logs settings."
+ },
+ "marketplacePartnerId": {
+ "type": "string",
+ "description": "The full ARM resource ID of the Marketplace resource to which you would like to send Diagnostic Logs."
+ },
+ "name": {
+ "type": "string",
+ "description": "The name of the resource"
+ },
+ "serviceBusRuleId": {
+ "type": "string",
+ "description": "The service bus rule Id of the diagnostic setting. This is here to maintain backwards compatibility."
+ },
+ "storageAccountId": {
+ "type": "string",
+ "description": "The resource ID of the storage account to which you would like to send Diagnostic Logs."
+ },
+ "systemData": {
+ "type": "object",
+ "$ref": "#/types/azure-native:monitor:SystemDataResponse",
+ "description": "The system metadata related to this resource."
+ },
+ "type": {
+ "type": "string",
+ "description": "The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or \"Microsoft.Storage/storageAccounts\""
+ },
+ "workspaceId": {
+ "type": "string",
+ "description": "The full ARM resource ID of the Log Analytics workspace to which you would like to send Diagnostic Logs. Example: /subscriptions/4b9e8510-67ab-4e9a-95a9-e2f1e570ea9c/resourceGroups/insights-integration/providers/Microsoft.OperationalInsights/workspaces/viruela2"
+ }
+ },
+ "type": "object",
+ "required": [
+ "azureApiVersion",
+ "id",
+ "name",
+ "systemData",
+ "type"
+ ]
+ }
+ },
"azure-native:monitor:getTenantActionGroup": {
"description": "Get a tenant action group.\n\nUses Azure REST API version 2023-05-01-preview.",
"inputs": {
@@ -1049849,6 +1051928,36 @@
]
}
},
+ "azure-native:monitor:listDiagnosticSettingsCategory": {
+ "description": "Lists the diagnostic settings categories for the specified resource.\n\nUses Azure REST API version 2021-05-01-preview.",
+ "inputs": {
+ "properties": {
+ "resourceUri": {
+ "type": "string",
+ "description": "The identifier of the resource.",
+ "willReplaceOnChanges": true
+ }
+ },
+ "type": "object",
+ "required": [
+ "resourceUri"
+ ]
+ },
+ "outputs": {
+ "description": "Represents a collection of diagnostic setting category resources.",
+ "properties": {
+ "value": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "$ref": "#/types/azure-native:monitor:DiagnosticSettingsCategoryResourceResponse"
+ },
+ "description": "The collection of diagnostic settings category resources."
+ }
+ },
+ "type": "object"
+ }
+ },
"azure-native:mysqldiscovery:getMySQLServer": {
"description": "Gets the MySQLServers resource.\n\nUses Azure REST API version 2024-09-30-preview.",
"inputs": {
diff --git a/reports/curationViolations.json b/reports/curationViolations.json
index 430b695846f7..444f081cc4df 100644
--- a/reports/curationViolations.json
+++ b/reports/curationViolations.json
@@ -331,6 +331,10 @@
"ModuleName": "MixedReality",
"Detail": "expected tracking stable but found preview"
},
+ {
+ "ModuleName": "Monitor",
+ "Detail": "expected tracking stable but found preview"
+ },
{
"ModuleName": "MySQLDiscovery",
"Detail": "expected tracking stable but found preview"
diff --git a/reports/flattenedPropertyConflicts.json b/reports/flattenedPropertyConflicts.json
index 18ae6768c352..7136183893ea 100644
--- a/reports/flattenedPropertyConflicts.json
+++ b/reports/flattenedPropertyConflicts.json
@@ -71,6 +71,12 @@
"totalBudget.currency": {},
"totalBudget.value": {}
},
+ "azure-native:monitor/v20210501preview:AutoscaleSetting": {
+ "properties.name": {}
+ },
+ "azure-native:monitor:AutoscaleSetting": {
+ "properties.name": {}
+ },
"azure-native:network/v20180801:P2sVpnServerConfiguration": {
"properties.etag": {},
"properties.name": {}
diff --git a/reports/oldApiVersions.json b/reports/oldApiVersions.json
index fbfe28ebbca3..5a6d93be5592 100644
--- a/reports/oldApiVersions.json
+++ b/reports/oldApiVersions.json
@@ -4,5 +4,8 @@
],
"DBforPostgreSQL": [
"2017-12-01"
+ ],
+ "Monitor": [
+ "2021-05-01-preview"
]
}
\ No newline at end of file
diff --git a/reports/pending.json b/reports/pending.json
index e309735d5608..9e3fbd5c1a70 100644
--- a/reports/pending.json
+++ b/reports/pending.json
@@ -780,6 +780,23 @@
"2024-10-01-preview"
],
"Monitor": [
+ "2021-06-03-preview",
+ "2021-07-01-preview",
+ "2021-08-01",
+ "2021-09-01",
+ "2021-09-01-preview",
+ "2022-04-01",
+ "2022-06-01",
+ "2022-06-15",
+ "2022-08-01-preview",
+ "2022-10-01",
+ "2023-01-01",
+ "2023-01-01-preview",
+ "2023-03-01-preview",
+ "2023-03-11",
+ "2023-03-15-preview",
+ "2023-04-03",
+ "2023-05-01-preview",
"2023-06-01-preview",
"2023-09-01-preview",
"2023-10-01-preview",
diff --git a/reports/tokenPaths.json b/reports/tokenPaths.json
index 393ae978e7aa..6b8e0b55ef02 100644
--- a/reports/tokenPaths.json
+++ b/reports/tokenPaths.json
@@ -8551,6 +8551,10 @@
"azure-native:mongocluster:FirewallRule": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/mongoClusters/{mongoClusterName}/firewallRules/{firewallRuleName}",
"azure-native:mongocluster:MongoCluster": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/mongoClusters/{mongoClusterName}",
"azure-native:mongocluster:PrivateEndpointConnection": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/mongoClusters/{mongoClusterName}/privateEndpointConnections/{privateEndpointConnectionName}",
+ "azure-native:monitor/v20210501preview:AutoscaleSetting": "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/autoscalesettings/{autoscaleSettingName}",
+ "azure-native:monitor/v20210501preview:DiagnosticSetting": "/{resourceUri}/providers/Microsoft.Insights/diagnosticSettings/{name}",
+ "azure-native:monitor/v20210501preview:ManagementGroupDiagnosticSetting": "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Insights/diagnosticSettings/{name}",
+ "azure-native:monitor/v20210501preview:SubscriptionDiagnosticSetting": "/subscriptions/{subscriptionId}/providers/Microsoft.Insights/diagnosticSettings/{name}",
"azure-native:monitor/v20230403:AzureMonitorWorkspace": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Monitor/accounts/{azureMonitorWorkspaceName}",
"azure-native:monitor/v20230501preview:TenantActionGroup": "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Insights/tenantActionGroups/{tenantActionGroupName}",
"azure-native:monitor/v20230601preview:PrivateEndpointConnection": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/privateLinkScopes/{scopeName}/privateEndpointConnections/{privateEndpointConnectionName}",
@@ -8565,12 +8569,16 @@
"azure-native:monitor/v20241001preview:PipelineGroup": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Monitor/pipelineGroups/{pipelineGroupName}",
"azure-native:monitor/v20250101preview:ScheduledQueryRule": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/scheduledQueryRules/{ruleName}",
"azure-native:monitor:ActionGroup": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/actionGroups/{actionGroupName}",
+ "azure-native:monitor:AutoscaleSetting": "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/autoscalesettings/{autoscaleSettingName}",
"azure-native:monitor:AzureMonitorWorkspace": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Monitor/accounts/{azureMonitorWorkspaceName}",
+ "azure-native:monitor:DiagnosticSetting": "/{resourceUri}/providers/Microsoft.Insights/diagnosticSettings/{name}",
+ "azure-native:monitor:ManagementGroupDiagnosticSetting": "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Insights/diagnosticSettings/{name}",
"azure-native:monitor:PipelineGroup": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Monitor/pipelineGroups/{pipelineGroupName}",
"azure-native:monitor:PrivateEndpointConnection": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/privateLinkScopes/{scopeName}/privateEndpointConnections/{privateEndpointConnectionName}",
"azure-native:monitor:PrivateLinkScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/privateLinkScopes/{scopeName}",
"azure-native:monitor:PrivateLinkScopedResource": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/privateLinkScopes/{scopeName}/scopedResources/{name}",
"azure-native:monitor:ScheduledQueryRule": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/scheduledQueryRules/{ruleName}",
+ "azure-native:monitor:SubscriptionDiagnosticSetting": "/subscriptions/{subscriptionId}/providers/Microsoft.Insights/diagnosticSettings/{name}",
"azure-native:monitor:TenantActionGroup": "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Insights/tenantActionGroups/{tenantActionGroupName}",
"azure-native:mysqldiscovery/v20240930preview:MySQLServer": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MySQLDiscovery/MySQLSites/{siteName}/MySQLServers/{serverName}",
"azure-native:mysqldiscovery/v20240930preview:MySQLSite": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MySQLDiscovery/MySQLSites/{siteName}",
diff --git a/sdk/dotnet/Monitor/AutoscaleSetting.cs b/sdk/dotnet/Monitor/AutoscaleSetting.cs
new file mode 100644
index 000000000000..8cd16f62b303
--- /dev/null
+++ b/sdk/dotnet/Monitor/AutoscaleSetting.cs
@@ -0,0 +1,206 @@
+// *** WARNING: this file was generated by pulumi. ***
+// *** Do not edit by hand unless you're certain you know what you are doing! ***
+
+using System;
+using System.Collections.Generic;
+using System.Collections.Immutable;
+using System.Threading.Tasks;
+using Pulumi.Serialization;
+
+namespace Pulumi.AzureNative.Monitor
+{
+ ///
+ /// The autoscale setting resource.
+ ///
+ /// Uses Azure REST API version 2021-05-01-preview.
+ ///
+ [AzureNativeResourceType("azure-native:monitor:AutoscaleSetting")]
+ public partial class AutoscaleSetting : global::Pulumi.CustomResource
+ {
+ ///
+ /// The Azure API version of the resource.
+ ///
+ [Output("azureApiVersion")]
+ public Output AzureApiVersion { get; private set; } = null!;
+
+ ///
+ /// Resource location
+ ///
+ [Output("location")]
+ public Output Location { get; private set; } = null!;
+
+ ///
+ /// Azure resource name
+ ///
+ [Output("name")]
+ public Output Name { get; private set; } = null!;
+
+ ///
+ /// The autoscale setting of the resource.
+ ///
+ [Output("properties")]
+ public Output Properties { get; private set; } = null!;
+
+ ///
+ /// The system metadata related to the response.
+ ///
+ [Output("systemData")]
+ public Output SystemData { get; private set; } = null!;
+
+ ///
+ /// Gets or sets a list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater in length than 128 characters and a value no greater in length than 256 characters.
+ ///
+ [Output("tags")]
+ public Output?> Tags { get; private set; } = null!;
+
+ ///
+ /// Azure resource type
+ ///
+ [Output("type")]
+ public Output Type { get; private set; } = null!;
+
+
+ ///
+ /// Create a AutoscaleSetting resource with the given unique name, arguments, and options.
+ ///
+ ///
+ /// The unique name of the resource
+ /// The arguments used to populate this resource's properties
+ /// A bag of options that control this resource's behavior
+ public AutoscaleSetting(string name, AutoscaleSettingArgs args, CustomResourceOptions? options = null)
+ : base("azure-native:monitor:AutoscaleSetting", name, args ?? new AutoscaleSettingArgs(), MakeResourceOptions(options, ""))
+ {
+ }
+
+ private AutoscaleSetting(string name, Input id, CustomResourceOptions? options = null)
+ : base("azure-native:monitor:AutoscaleSetting", name, null, MakeResourceOptions(options, id))
+ {
+ }
+
+ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id)
+ {
+ var defaultOptions = new CustomResourceOptions
+ {
+ Version = Utilities.Version,
+ Aliases =
+ {
+ new global::Pulumi.Alias { Type = "azure-native:insights/v20221001:AutoscaleSetting" },
+ new global::Pulumi.Alias { Type = "azure-native:insights:AutoscaleSetting" },
+ new global::Pulumi.Alias { Type = "azure-native:monitor/v20140401:AutoscaleSetting" },
+ new global::Pulumi.Alias { Type = "azure-native:monitor/v20150401:AutoscaleSetting" },
+ new global::Pulumi.Alias { Type = "azure-native:monitor/v20210501preview:AutoscaleSetting" },
+ new global::Pulumi.Alias { Type = "azure-native:monitor/v20221001:AutoscaleSetting" },
+ },
+ };
+ var merged = CustomResourceOptions.Merge(defaultOptions, options);
+ // Override the ID if one was specified for consistency with other language SDKs.
+ merged.Id = id ?? merged.Id;
+ return merged;
+ }
+ ///
+ /// Get an existing AutoscaleSetting resource's state with the given name, ID, and optional extra
+ /// properties used to qualify the lookup.
+ ///
+ ///
+ /// The unique name of the resulting resource.
+ /// The unique provider ID of the resource to lookup.
+ /// A bag of options that control this resource's behavior
+ public static AutoscaleSetting Get(string name, Input id, CustomResourceOptions? options = null)
+ {
+ return new AutoscaleSetting(name, id, options);
+ }
+ }
+
+ public sealed class AutoscaleSettingArgs : global::Pulumi.ResourceArgs
+ {
+ ///
+ /// The autoscale setting name.
+ ///
+ [Input("autoscaleSettingName")]
+ public Input? AutoscaleSettingName { get; set; }
+
+ ///
+ /// the enabled flag. Specifies whether automatic scaling is enabled for the resource. The default value is 'false'.
+ ///
+ [Input("enabled")]
+ public Input? Enabled { get; set; }
+
+ ///
+ /// Resource location
+ ///
+ [Input("location")]
+ public Input? Location { get; set; }
+
+ ///
+ /// the name of the autoscale setting.
+ ///
+ [Input("name")]
+ public Input? Name { get; set; }
+
+ [Input("notifications")]
+ private InputList? _notifications;
+
+ ///
+ /// the collection of notifications.
+ ///
+ public InputList Notifications
+ {
+ get => _notifications ?? (_notifications = new InputList());
+ set => _notifications = value;
+ }
+
+ ///
+ /// the predictive autoscale policy mode.
+ ///
+ [Input("predictiveAutoscalePolicy")]
+ public Input? PredictiveAutoscalePolicy { get; set; }
+
+ [Input("profiles", required: true)]
+ private InputList? _profiles;
+
+ ///
+ /// the collection of automatic scaling profiles that specify different scaling parameters for different time periods. A maximum of 20 profiles can be specified.
+ ///
+ public InputList Profiles
+ {
+ get => _profiles ?? (_profiles = new InputList());
+ set => _profiles = value;
+ }
+
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ [Input("resourceGroupName", required: true)]
+ public Input ResourceGroupName { get; set; } = null!;
+
+ [Input("tags")]
+ private InputMap? _tags;
+
+ ///
+ /// Gets or sets a list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater in length than 128 characters and a value no greater in length than 256 characters.
+ ///
+ public InputMap Tags
+ {
+ get => _tags ?? (_tags = new InputMap());
+ set => _tags = value;
+ }
+
+ ///
+ /// the location of the resource that the autoscale setting should be added to.
+ ///
+ [Input("targetResourceLocation")]
+ public Input? TargetResourceLocation { get; set; }
+
+ ///
+ /// the resource identifier of the resource that the autoscale setting should be added to.
+ ///
+ [Input("targetResourceUri")]
+ public Input? TargetResourceUri { get; set; }
+
+ public AutoscaleSettingArgs()
+ {
+ Enabled = false;
+ }
+ public static new AutoscaleSettingArgs Empty => new AutoscaleSettingArgs();
+ }
+}
diff --git a/sdk/dotnet/Monitor/DiagnosticSetting.cs b/sdk/dotnet/Monitor/DiagnosticSetting.cs
new file mode 100644
index 000000000000..190d51bb35bb
--- /dev/null
+++ b/sdk/dotnet/Monitor/DiagnosticSetting.cs
@@ -0,0 +1,233 @@
+// *** WARNING: this file was generated by pulumi. ***
+// *** Do not edit by hand unless you're certain you know what you are doing! ***
+
+using System;
+using System.Collections.Generic;
+using System.Collections.Immutable;
+using System.Threading.Tasks;
+using Pulumi.Serialization;
+
+namespace Pulumi.AzureNative.Monitor
+{
+ ///
+ /// The diagnostic setting resource.
+ ///
+ /// Uses Azure REST API version 2021-05-01-preview.
+ ///
+ [AzureNativeResourceType("azure-native:monitor:DiagnosticSetting")]
+ public partial class DiagnosticSetting : global::Pulumi.CustomResource
+ {
+ ///
+ /// The Azure API version of the resource.
+ ///
+ [Output("azureApiVersion")]
+ public Output AzureApiVersion { get; private set; } = null!;
+
+ ///
+ /// The resource Id for the event hub authorization rule.
+ ///
+ [Output("eventHubAuthorizationRuleId")]
+ public Output EventHubAuthorizationRuleId { get; private set; } = null!;
+
+ ///
+ /// The name of the event hub. If none is specified, the default event hub will be selected.
+ ///
+ [Output("eventHubName")]
+ public Output EventHubName { get; private set; } = null!;
+
+ ///
+ /// A string indicating whether the export to Log Analytics should use the default destination type, i.e. AzureDiagnostics, or use a destination type constructed as follows: <normalized service identity>_<normalized category name>. Possible values are: Dedicated and null (null is default.)
+ ///
+ [Output("logAnalyticsDestinationType")]
+ public Output LogAnalyticsDestinationType { get; private set; } = null!;
+
+ ///
+ /// The list of logs settings.
+ ///
+ [Output("logs")]
+ public Output> Logs { get; private set; } = null!;
+
+ ///
+ /// The full ARM resource ID of the Marketplace resource to which you would like to send Diagnostic Logs.
+ ///
+ [Output("marketplacePartnerId")]
+ public Output MarketplacePartnerId { get; private set; } = null!;
+
+ ///
+ /// The list of metric settings.
+ ///
+ [Output("metrics")]
+ public Output> Metrics { get; private set; } = null!;
+
+ ///
+ /// The name of the resource
+ ///
+ [Output("name")]
+ public Output Name { get; private set; } = null!;
+
+ ///
+ /// The service bus rule Id of the diagnostic setting. This is here to maintain backwards compatibility.
+ ///
+ [Output("serviceBusRuleId")]
+ public Output ServiceBusRuleId { get; private set; } = null!;
+
+ ///
+ /// The resource ID of the storage account to which you would like to send Diagnostic Logs.
+ ///
+ [Output("storageAccountId")]
+ public Output StorageAccountId { get; private set; } = null!;
+
+ ///
+ /// The system metadata related to this resource.
+ ///
+ [Output("systemData")]
+ public Output SystemData { get; private set; } = null!;
+
+ ///
+ /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
+ ///
+ [Output("type")]
+ public Output Type { get; private set; } = null!;
+
+ ///
+ /// The full ARM resource ID of the Log Analytics workspace to which you would like to send Diagnostic Logs. Example: /subscriptions/4b9e8510-67ab-4e9a-95a9-e2f1e570ea9c/resourceGroups/insights-integration/providers/Microsoft.OperationalInsights/workspaces/viruela2
+ ///
+ [Output("workspaceId")]
+ public Output WorkspaceId { get; private set; } = null!;
+
+
+ ///
+ /// Create a DiagnosticSetting resource with the given unique name, arguments, and options.
+ ///
+ ///
+ /// The unique name of the resource
+ /// The arguments used to populate this resource's properties
+ /// A bag of options that control this resource's behavior
+ public DiagnosticSetting(string name, DiagnosticSettingArgs args, CustomResourceOptions? options = null)
+ : base("azure-native:monitor:DiagnosticSetting", name, args ?? new DiagnosticSettingArgs(), MakeResourceOptions(options, ""))
+ {
+ }
+
+ private DiagnosticSetting(string name, Input id, CustomResourceOptions? options = null)
+ : base("azure-native:monitor:DiagnosticSetting", name, null, MakeResourceOptions(options, id))
+ {
+ }
+
+ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id)
+ {
+ var defaultOptions = new CustomResourceOptions
+ {
+ Version = Utilities.Version,
+ Aliases =
+ {
+ new global::Pulumi.Alias { Type = "azure-native:insights/v20210501preview:DiagnosticSetting" },
+ new global::Pulumi.Alias { Type = "azure-native:insights:DiagnosticSetting" },
+ new global::Pulumi.Alias { Type = "azure-native:monitor/v20170501preview:DiagnosticSetting" },
+ new global::Pulumi.Alias { Type = "azure-native:monitor/v20210501preview:DiagnosticSetting" },
+ },
+ };
+ var merged = CustomResourceOptions.Merge(defaultOptions, options);
+ // Override the ID if one was specified for consistency with other language SDKs.
+ merged.Id = id ?? merged.Id;
+ return merged;
+ }
+ ///
+ /// Get an existing DiagnosticSetting resource's state with the given name, ID, and optional extra
+ /// properties used to qualify the lookup.
+ ///
+ ///
+ /// The unique name of the resulting resource.
+ /// The unique provider ID of the resource to lookup.
+ /// A bag of options that control this resource's behavior
+ public static DiagnosticSetting Get(string name, Input id, CustomResourceOptions? options = null)
+ {
+ return new DiagnosticSetting(name, id, options);
+ }
+ }
+
+ public sealed class DiagnosticSettingArgs : global::Pulumi.ResourceArgs
+ {
+ ///
+ /// The resource Id for the event hub authorization rule.
+ ///
+ [Input("eventHubAuthorizationRuleId")]
+ public Input? EventHubAuthorizationRuleId { get; set; }
+
+ ///
+ /// The name of the event hub. If none is specified, the default event hub will be selected.
+ ///
+ [Input("eventHubName")]
+ public Input? EventHubName { get; set; }
+
+ ///
+ /// A string indicating whether the export to Log Analytics should use the default destination type, i.e. AzureDiagnostics, or use a destination type constructed as follows: <normalized service identity>_<normalized category name>. Possible values are: Dedicated and null (null is default.)
+ ///
+ [Input("logAnalyticsDestinationType")]
+ public Input? LogAnalyticsDestinationType { get; set; }
+
+ [Input("logs")]
+ private InputList? _logs;
+
+ ///
+ /// The list of logs settings.
+ ///
+ public InputList Logs
+ {
+ get => _logs ?? (_logs = new InputList());
+ set => _logs = value;
+ }
+
+ ///
+ /// The full ARM resource ID of the Marketplace resource to which you would like to send Diagnostic Logs.
+ ///
+ [Input("marketplacePartnerId")]
+ public Input? MarketplacePartnerId { get; set; }
+
+ [Input("metrics")]
+ private InputList? _metrics;
+
+ ///
+ /// The list of metric settings.
+ ///
+ public InputList Metrics
+ {
+ get => _metrics ?? (_metrics = new InputList());
+ set => _metrics = value;
+ }
+
+ ///
+ /// The name of the diagnostic setting.
+ ///
+ [Input("name")]
+ public Input? Name { get; set; }
+
+ ///
+ /// The identifier of the resource.
+ ///
+ [Input("resourceUri", required: true)]
+ public Input ResourceUri { get; set; } = null!;
+
+ ///
+ /// The service bus rule Id of the diagnostic setting. This is here to maintain backwards compatibility.
+ ///
+ [Input("serviceBusRuleId")]
+ public Input? ServiceBusRuleId { get; set; }
+
+ ///
+ /// The resource ID of the storage account to which you would like to send Diagnostic Logs.
+ ///
+ [Input("storageAccountId")]
+ public Input? StorageAccountId { get; set; }
+
+ ///
+ /// The full ARM resource ID of the Log Analytics workspace to which you would like to send Diagnostic Logs. Example: /subscriptions/4b9e8510-67ab-4e9a-95a9-e2f1e570ea9c/resourceGroups/insights-integration/providers/Microsoft.OperationalInsights/workspaces/viruela2
+ ///
+ [Input("workspaceId")]
+ public Input? WorkspaceId { get; set; }
+
+ public DiagnosticSettingArgs()
+ {
+ }
+ public static new DiagnosticSettingArgs Empty => new DiagnosticSettingArgs();
+ }
+}
diff --git a/sdk/dotnet/Monitor/Enums.cs b/sdk/dotnet/Monitor/Enums.cs
index 0b501b781b8c..55a556af4f61 100644
--- a/sdk/dotnet/Monitor/Enums.cs
+++ b/sdk/dotnet/Monitor/Enums.cs
@@ -38,6 +38,41 @@ private AccessMode(string value)
public override string ToString() => _value;
}
+ ///
+ /// the operator that is used to compare the metric data and the threshold.
+ ///
+ [EnumType]
+ public readonly struct ComparisonOperationType : IEquatable
+ {
+ private readonly string _value;
+
+ private ComparisonOperationType(string value)
+ {
+ _value = value ?? throw new ArgumentNullException(nameof(value));
+ }
+
+ public static ComparisonOperationType EqualsValue { get; } = new ComparisonOperationType("Equals");
+ public static ComparisonOperationType NotEquals { get; } = new ComparisonOperationType("NotEquals");
+ public static ComparisonOperationType GreaterThan { get; } = new ComparisonOperationType("GreaterThan");
+ public static ComparisonOperationType GreaterThanOrEqual { get; } = new ComparisonOperationType("GreaterThanOrEqual");
+ public static ComparisonOperationType LessThan { get; } = new ComparisonOperationType("LessThan");
+ public static ComparisonOperationType LessThanOrEqual { get; } = new ComparisonOperationType("LessThanOrEqual");
+
+ public static bool operator ==(ComparisonOperationType left, ComparisonOperationType right) => left.Equals(right);
+ public static bool operator !=(ComparisonOperationType left, ComparisonOperationType right) => !left.Equals(right);
+
+ public static explicit operator string(ComparisonOperationType value) => value._value;
+
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public override bool Equals(object? obj) => obj is ComparisonOperationType other && Equals(other);
+ public bool Equals(ComparisonOperationType other) => string.Equals(_value, other._value, StringComparison.Ordinal);
+
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public override int GetHashCode() => _value?.GetHashCode() ?? 0;
+
+ public override string ToString() => _value;
+ }
+
///
/// The criteria operator. Relevant and required only for rules of the kind LogAlert.
///
@@ -406,6 +441,70 @@ private ManagedServiceIdentityType(string value)
public override string ToString() => _value;
}
+ ///
+ /// the metric statistic type. How the metrics from multiple instances are combined.
+ ///
+ [EnumType]
+ public readonly struct MetricStatisticType : IEquatable
+ {
+ private readonly string _value;
+
+ private MetricStatisticType(string value)
+ {
+ _value = value ?? throw new ArgumentNullException(nameof(value));
+ }
+
+ public static MetricStatisticType Average { get; } = new MetricStatisticType("Average");
+ public static MetricStatisticType Min { get; } = new MetricStatisticType("Min");
+ public static MetricStatisticType Max { get; } = new MetricStatisticType("Max");
+ public static MetricStatisticType Sum { get; } = new MetricStatisticType("Sum");
+ public static MetricStatisticType Count { get; } = new MetricStatisticType("Count");
+
+ public static bool operator ==(MetricStatisticType left, MetricStatisticType right) => left.Equals(right);
+ public static bool operator !=(MetricStatisticType left, MetricStatisticType right) => !left.Equals(right);
+
+ public static explicit operator string(MetricStatisticType value) => value._value;
+
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public override bool Equals(object? obj) => obj is MetricStatisticType other && Equals(other);
+ public bool Equals(MetricStatisticType other) => string.Equals(_value, other._value, StringComparison.Ordinal);
+
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public override int GetHashCode() => _value?.GetHashCode() ?? 0;
+
+ public override string ToString() => _value;
+ }
+
+ ///
+ /// the operation associated with the notification and its value must be "scale"
+ ///
+ [EnumType]
+ public readonly struct OperationType : IEquatable
+ {
+ private readonly string _value;
+
+ private OperationType(string value)
+ {
+ _value = value ?? throw new ArgumentNullException(nameof(value));
+ }
+
+ public static OperationType Scale { get; } = new OperationType("Scale");
+
+ public static bool operator ==(OperationType left, OperationType right) => left.Equals(right);
+ public static bool operator !=(OperationType left, OperationType right) => !left.Equals(right);
+
+ public static explicit operator string(OperationType value) => value._value;
+
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public override bool Equals(object? obj) => obj is OperationType other && Equals(other);
+ public bool Equals(OperationType other) => string.Equals(_value, other._value, StringComparison.Ordinal);
+
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public override int GetHashCode() => _value?.GetHashCode() ?? 0;
+
+ public override string ToString() => _value;
+ }
+
///
/// The type of pipeline
///
@@ -439,6 +538,38 @@ private PipelineType(string value)
public override string ToString() => _value;
}
+ ///
+ /// the predictive autoscale mode
+ ///
+ [EnumType]
+ public readonly struct PredictiveAutoscalePolicyScaleMode : IEquatable
+ {
+ private readonly string _value;
+
+ private PredictiveAutoscalePolicyScaleMode(string value)
+ {
+ _value = value ?? throw new ArgumentNullException(nameof(value));
+ }
+
+ public static PredictiveAutoscalePolicyScaleMode Disabled { get; } = new PredictiveAutoscalePolicyScaleMode("Disabled");
+ public static PredictiveAutoscalePolicyScaleMode ForecastOnly { get; } = new PredictiveAutoscalePolicyScaleMode("ForecastOnly");
+ public static PredictiveAutoscalePolicyScaleMode Enabled { get; } = new PredictiveAutoscalePolicyScaleMode("Enabled");
+
+ public static bool operator ==(PredictiveAutoscalePolicyScaleMode left, PredictiveAutoscalePolicyScaleMode right) => left.Equals(right);
+ public static bool operator !=(PredictiveAutoscalePolicyScaleMode left, PredictiveAutoscalePolicyScaleMode right) => !left.Equals(right);
+
+ public static explicit operator string(PredictiveAutoscalePolicyScaleMode value) => value._value;
+
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public override bool Equals(object? obj) => obj is PredictiveAutoscalePolicyScaleMode other && Equals(other);
+ public bool Equals(PredictiveAutoscalePolicyScaleMode other) => string.Equals(_value, other._value, StringComparison.Ordinal);
+
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public override int GetHashCode() => _value?.GetHashCode() ?? 0;
+
+ public override string ToString() => _value;
+ }
+
///
/// Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.
///
@@ -553,6 +684,139 @@ private ReceiverType(string value)
public override string ToString() => _value;
}
+ ///
+ /// the recurrence frequency. How often the schedule profile should take effect. This value must be Week, meaning each week will have the same set of profiles. For example, to set a daily schedule, set **schedule** to every day of the week. The frequency property specifies that the schedule is repeated weekly.
+ ///
+ [EnumType]
+ public readonly struct RecurrenceFrequency : IEquatable
+ {
+ private readonly string _value;
+
+ private RecurrenceFrequency(string value)
+ {
+ _value = value ?? throw new ArgumentNullException(nameof(value));
+ }
+
+ public static RecurrenceFrequency None { get; } = new RecurrenceFrequency("None");
+ public static RecurrenceFrequency Second { get; } = new RecurrenceFrequency("Second");
+ public static RecurrenceFrequency Minute { get; } = new RecurrenceFrequency("Minute");
+ public static RecurrenceFrequency Hour { get; } = new RecurrenceFrequency("Hour");
+ public static RecurrenceFrequency Day { get; } = new RecurrenceFrequency("Day");
+ public static RecurrenceFrequency Week { get; } = new RecurrenceFrequency("Week");
+ public static RecurrenceFrequency Month { get; } = new RecurrenceFrequency("Month");
+ public static RecurrenceFrequency Year { get; } = new RecurrenceFrequency("Year");
+
+ public static bool operator ==(RecurrenceFrequency left, RecurrenceFrequency right) => left.Equals(right);
+ public static bool operator !=(RecurrenceFrequency left, RecurrenceFrequency right) => !left.Equals(right);
+
+ public static explicit operator string(RecurrenceFrequency value) => value._value;
+
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public override bool Equals(object? obj) => obj is RecurrenceFrequency other && Equals(other);
+ public bool Equals(RecurrenceFrequency other) => string.Equals(_value, other._value, StringComparison.Ordinal);
+
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public override int GetHashCode() => _value?.GetHashCode() ?? 0;
+
+ public override string ToString() => _value;
+ }
+
+ ///
+ /// the scale direction. Whether the scaling action increases or decreases the number of instances.
+ ///
+ [EnumType]
+ public readonly struct ScaleDirection : IEquatable
+ {
+ private readonly string _value;
+
+ private ScaleDirection(string value)
+ {
+ _value = value ?? throw new ArgumentNullException(nameof(value));
+ }
+
+ public static ScaleDirection None { get; } = new ScaleDirection("None");
+ public static ScaleDirection Increase { get; } = new ScaleDirection("Increase");
+ public static ScaleDirection Decrease { get; } = new ScaleDirection("Decrease");
+
+ public static bool operator ==(ScaleDirection left, ScaleDirection right) => left.Equals(right);
+ public static bool operator !=(ScaleDirection left, ScaleDirection right) => !left.Equals(right);
+
+ public static explicit operator string(ScaleDirection value) => value._value;
+
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public override bool Equals(object? obj) => obj is ScaleDirection other && Equals(other);
+ public bool Equals(ScaleDirection other) => string.Equals(_value, other._value, StringComparison.Ordinal);
+
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public override int GetHashCode() => _value?.GetHashCode() ?? 0;
+
+ public override string ToString() => _value;
+ }
+
+ ///
+ /// the dimension operator. Only 'Equals' and 'NotEquals' are supported. 'Equals' being equal to any of the values. 'NotEquals' being not equal to all of the values
+ ///
+ [EnumType]
+ public readonly struct ScaleRuleMetricDimensionOperationType : IEquatable
+ {
+ private readonly string _value;
+
+ private ScaleRuleMetricDimensionOperationType(string value)
+ {
+ _value = value ?? throw new ArgumentNullException(nameof(value));
+ }
+
+ public static ScaleRuleMetricDimensionOperationType EqualsValue { get; } = new ScaleRuleMetricDimensionOperationType("Equals");
+ public static ScaleRuleMetricDimensionOperationType NotEquals { get; } = new ScaleRuleMetricDimensionOperationType("NotEquals");
+
+ public static bool operator ==(ScaleRuleMetricDimensionOperationType left, ScaleRuleMetricDimensionOperationType right) => left.Equals(right);
+ public static bool operator !=(ScaleRuleMetricDimensionOperationType left, ScaleRuleMetricDimensionOperationType right) => !left.Equals(right);
+
+ public static explicit operator string(ScaleRuleMetricDimensionOperationType value) => value._value;
+
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public override bool Equals(object? obj) => obj is ScaleRuleMetricDimensionOperationType other && Equals(other);
+ public bool Equals(ScaleRuleMetricDimensionOperationType other) => string.Equals(_value, other._value, StringComparison.Ordinal);
+
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public override int GetHashCode() => _value?.GetHashCode() ?? 0;
+
+ public override string ToString() => _value;
+ }
+
+ ///
+ /// the type of action that should occur when the scale rule fires.
+ ///
+ [EnumType]
+ public readonly struct ScaleType : IEquatable
+ {
+ private readonly string _value;
+
+ private ScaleType(string value)
+ {
+ _value = value ?? throw new ArgumentNullException(nameof(value));
+ }
+
+ public static ScaleType ChangeCount { get; } = new ScaleType("ChangeCount");
+ public static ScaleType PercentChangeCount { get; } = new ScaleType("PercentChangeCount");
+ public static ScaleType ExactCount { get; } = new ScaleType("ExactCount");
+ public static ScaleType ServiceAllowedNextValue { get; } = new ScaleType("ServiceAllowedNextValue");
+
+ public static bool operator ==(ScaleType left, ScaleType right) => left.Equals(right);
+ public static bool operator !=(ScaleType left, ScaleType right) => !left.Equals(right);
+
+ public static explicit operator string(ScaleType value) => value._value;
+
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public override bool Equals(object? obj) => obj is ScaleType other && Equals(other);
+ public bool Equals(ScaleType other) => string.Equals(_value, other._value, StringComparison.Ordinal);
+
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public override int GetHashCode() => _value?.GetHashCode() ?? 0;
+
+ public override string ToString() => _value;
+ }
+
///
/// The kind of scoped Azure monitor resource.
///
@@ -707,4 +971,39 @@ private TimeAggregation(string value)
public override string ToString() => _value;
}
+
+ ///
+ /// time aggregation type. How the data that is collected should be combined over time. The default value is Average.
+ ///
+ [EnumType]
+ public readonly struct TimeAggregationType : IEquatable
+ {
+ private readonly string _value;
+
+ private TimeAggregationType(string value)
+ {
+ _value = value ?? throw new ArgumentNullException(nameof(value));
+ }
+
+ public static TimeAggregationType Average { get; } = new TimeAggregationType("Average");
+ public static TimeAggregationType Minimum { get; } = new TimeAggregationType("Minimum");
+ public static TimeAggregationType Maximum { get; } = new TimeAggregationType("Maximum");
+ public static TimeAggregationType Total { get; } = new TimeAggregationType("Total");
+ public static TimeAggregationType Count { get; } = new TimeAggregationType("Count");
+ public static TimeAggregationType Last { get; } = new TimeAggregationType("Last");
+
+ public static bool operator ==(TimeAggregationType left, TimeAggregationType right) => left.Equals(right);
+ public static bool operator !=(TimeAggregationType left, TimeAggregationType right) => !left.Equals(right);
+
+ public static explicit operator string(TimeAggregationType value) => value._value;
+
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public override bool Equals(object? obj) => obj is TimeAggregationType other && Equals(other);
+ public bool Equals(TimeAggregationType other) => string.Equals(_value, other._value, StringComparison.Ordinal);
+
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public override int GetHashCode() => _value?.GetHashCode() ?? 0;
+
+ public override string ToString() => _value;
+ }
}
diff --git a/sdk/dotnet/Monitor/GetAutoscaleSetting.cs b/sdk/dotnet/Monitor/GetAutoscaleSetting.cs
new file mode 100644
index 000000000000..1187fd365d74
--- /dev/null
+++ b/sdk/dotnet/Monitor/GetAutoscaleSetting.cs
@@ -0,0 +1,145 @@
+// *** WARNING: this file was generated by pulumi. ***
+// *** Do not edit by hand unless you're certain you know what you are doing! ***
+
+using System;
+using System.Collections.Generic;
+using System.Collections.Immutable;
+using System.Threading.Tasks;
+using Pulumi.Serialization;
+
+namespace Pulumi.AzureNative.Monitor
+{
+ public static class GetAutoscaleSetting
+ {
+ ///
+ /// Gets an autoscale setting
+ ///
+ /// Uses Azure REST API version 2021-05-01-preview.
+ ///
+ public static Task InvokeAsync(GetAutoscaleSettingArgs args, InvokeOptions? options = null)
+ => global::Pulumi.Deployment.Instance.InvokeAsync("azure-native:monitor:getAutoscaleSetting", args ?? new GetAutoscaleSettingArgs(), options.WithDefaults());
+
+ ///
+ /// Gets an autoscale setting
+ ///
+ /// Uses Azure REST API version 2021-05-01-preview.
+ ///
+ public static Output Invoke(GetAutoscaleSettingInvokeArgs args, InvokeOptions? options = null)
+ => global::Pulumi.Deployment.Instance.Invoke("azure-native:monitor:getAutoscaleSetting", args ?? new GetAutoscaleSettingInvokeArgs(), options.WithDefaults());
+
+ ///
+ /// Gets an autoscale setting
+ ///
+ /// Uses Azure REST API version 2021-05-01-preview.
+ ///
+ public static Output Invoke(GetAutoscaleSettingInvokeArgs args, InvokeOutputOptions options)
+ => global::Pulumi.Deployment.Instance.Invoke("azure-native:monitor:getAutoscaleSetting", args ?? new GetAutoscaleSettingInvokeArgs(), options.WithDefaults());
+ }
+
+
+ public sealed class GetAutoscaleSettingArgs : global::Pulumi.InvokeArgs
+ {
+ ///
+ /// The autoscale setting name.
+ ///
+ [Input("autoscaleSettingName", required: true)]
+ public string AutoscaleSettingName { get; set; } = null!;
+
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ [Input("resourceGroupName", required: true)]
+ public string ResourceGroupName { get; set; } = null!;
+
+ public GetAutoscaleSettingArgs()
+ {
+ }
+ public static new GetAutoscaleSettingArgs Empty => new GetAutoscaleSettingArgs();
+ }
+
+ public sealed class GetAutoscaleSettingInvokeArgs : global::Pulumi.InvokeArgs
+ {
+ ///
+ /// The autoscale setting name.
+ ///
+ [Input("autoscaleSettingName", required: true)]
+ public Input AutoscaleSettingName { get; set; } = null!;
+
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ [Input("resourceGroupName", required: true)]
+ public Input ResourceGroupName { get; set; } = null!;
+
+ public GetAutoscaleSettingInvokeArgs()
+ {
+ }
+ public static new GetAutoscaleSettingInvokeArgs Empty => new GetAutoscaleSettingInvokeArgs();
+ }
+
+
+ [OutputType]
+ public sealed class GetAutoscaleSettingResult
+ {
+ ///
+ /// The Azure API version of the resource.
+ ///
+ public readonly string AzureApiVersion;
+ ///
+ /// Azure resource Id
+ ///
+ public readonly string Id;
+ ///
+ /// Resource location
+ ///
+ public readonly string Location;
+ ///
+ /// Azure resource name
+ ///
+ public readonly string Name;
+ ///
+ /// The autoscale setting of the resource.
+ ///
+ public readonly Outputs.AutoscaleSettingResponse Properties;
+ ///
+ /// The system metadata related to the response.
+ ///
+ public readonly Outputs.SystemDataResponse SystemData;
+ ///
+ /// Gets or sets a list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater in length than 128 characters and a value no greater in length than 256 characters.
+ ///
+ public readonly ImmutableDictionary? Tags;
+ ///
+ /// Azure resource type
+ ///
+ public readonly string Type;
+
+ [OutputConstructor]
+ private GetAutoscaleSettingResult(
+ string azureApiVersion,
+
+ string id,
+
+ string location,
+
+ string name,
+
+ Outputs.AutoscaleSettingResponse properties,
+
+ Outputs.SystemDataResponse systemData,
+
+ ImmutableDictionary? tags,
+
+ string type)
+ {
+ AzureApiVersion = azureApiVersion;
+ Id = id;
+ Location = location;
+ Name = name;
+ Properties = properties;
+ SystemData = systemData;
+ Tags = tags;
+ Type = type;
+ }
+ }
+}
diff --git a/sdk/dotnet/Monitor/GetDiagnosticSetting.cs b/sdk/dotnet/Monitor/GetDiagnosticSetting.cs
new file mode 100644
index 000000000000..53a7995b23f1
--- /dev/null
+++ b/sdk/dotnet/Monitor/GetDiagnosticSetting.cs
@@ -0,0 +1,187 @@
+// *** WARNING: this file was generated by pulumi. ***
+// *** Do not edit by hand unless you're certain you know what you are doing! ***
+
+using System;
+using System.Collections.Generic;
+using System.Collections.Immutable;
+using System.Threading.Tasks;
+using Pulumi.Serialization;
+
+namespace Pulumi.AzureNative.Monitor
+{
+ public static class GetDiagnosticSetting
+ {
+ ///
+ /// Gets the active diagnostic settings for the specified resource.
+ ///
+ /// Uses Azure REST API version 2021-05-01-preview.
+ ///
+ public static Task InvokeAsync(GetDiagnosticSettingArgs args, InvokeOptions? options = null)
+ => global::Pulumi.Deployment.Instance.InvokeAsync("azure-native:monitor:getDiagnosticSetting", args ?? new GetDiagnosticSettingArgs(), options.WithDefaults());
+
+ ///
+ /// Gets the active diagnostic settings for the specified resource.
+ ///
+ /// Uses Azure REST API version 2021-05-01-preview.
+ ///
+ public static Output Invoke(GetDiagnosticSettingInvokeArgs args, InvokeOptions? options = null)
+ => global::Pulumi.Deployment.Instance.Invoke("azure-native:monitor:getDiagnosticSetting", args ?? new GetDiagnosticSettingInvokeArgs(), options.WithDefaults());
+
+ ///
+ /// Gets the active diagnostic settings for the specified resource.
+ ///
+ /// Uses Azure REST API version 2021-05-01-preview.
+ ///
+ public static Output Invoke(GetDiagnosticSettingInvokeArgs args, InvokeOutputOptions options)
+ => global::Pulumi.Deployment.Instance.Invoke("azure-native:monitor:getDiagnosticSetting", args ?? new GetDiagnosticSettingInvokeArgs(), options.WithDefaults());
+ }
+
+
+ public sealed class GetDiagnosticSettingArgs : global::Pulumi.InvokeArgs
+ {
+ ///
+ /// The name of the diagnostic setting.
+ ///
+ [Input("name", required: true)]
+ public string Name { get; set; } = null!;
+
+ ///
+ /// The identifier of the resource.
+ ///
+ [Input("resourceUri", required: true)]
+ public string ResourceUri { get; set; } = null!;
+
+ public GetDiagnosticSettingArgs()
+ {
+ }
+ public static new GetDiagnosticSettingArgs Empty => new GetDiagnosticSettingArgs();
+ }
+
+ public sealed class GetDiagnosticSettingInvokeArgs : global::Pulumi.InvokeArgs
+ {
+ ///
+ /// The name of the diagnostic setting.
+ ///
+ [Input("name", required: true)]
+ public Input Name { get; set; } = null!;
+
+ ///
+ /// The identifier of the resource.
+ ///
+ [Input("resourceUri", required: true)]
+ public Input ResourceUri { get; set; } = null!;
+
+ public GetDiagnosticSettingInvokeArgs()
+ {
+ }
+ public static new GetDiagnosticSettingInvokeArgs Empty => new GetDiagnosticSettingInvokeArgs();
+ }
+
+
+ [OutputType]
+ public sealed class GetDiagnosticSettingResult
+ {
+ ///
+ /// The Azure API version of the resource.
+ ///
+ public readonly string AzureApiVersion;
+ ///
+ /// The resource Id for the event hub authorization rule.
+ ///
+ public readonly string? EventHubAuthorizationRuleId;
+ ///
+ /// The name of the event hub. If none is specified, the default event hub will be selected.
+ ///
+ public readonly string? EventHubName;
+ ///
+ /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
+ ///
+ public readonly string Id;
+ ///
+ /// A string indicating whether the export to Log Analytics should use the default destination type, i.e. AzureDiagnostics, or use a destination type constructed as follows: <normalized service identity>_<normalized category name>. Possible values are: Dedicated and null (null is default.)
+ ///
+ public readonly string? LogAnalyticsDestinationType;
+ ///
+ /// The list of logs settings.
+ ///
+ public readonly ImmutableArray Logs;
+ ///
+ /// The full ARM resource ID of the Marketplace resource to which you would like to send Diagnostic Logs.
+ ///
+ public readonly string? MarketplacePartnerId;
+ ///
+ /// The list of metric settings.
+ ///
+ public readonly ImmutableArray Metrics;
+ ///
+ /// The name of the resource
+ ///
+ public readonly string Name;
+ ///
+ /// The service bus rule Id of the diagnostic setting. This is here to maintain backwards compatibility.
+ ///
+ public readonly string? ServiceBusRuleId;
+ ///
+ /// The resource ID of the storage account to which you would like to send Diagnostic Logs.
+ ///
+ public readonly string? StorageAccountId;
+ ///
+ /// The system metadata related to this resource.
+ ///
+ public readonly Outputs.SystemDataResponse SystemData;
+ ///
+ /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
+ ///
+ public readonly string Type;
+ ///
+ /// The full ARM resource ID of the Log Analytics workspace to which you would like to send Diagnostic Logs. Example: /subscriptions/4b9e8510-67ab-4e9a-95a9-e2f1e570ea9c/resourceGroups/insights-integration/providers/Microsoft.OperationalInsights/workspaces/viruela2
+ ///
+ public readonly string? WorkspaceId;
+
+ [OutputConstructor]
+ private GetDiagnosticSettingResult(
+ string azureApiVersion,
+
+ string? eventHubAuthorizationRuleId,
+
+ string? eventHubName,
+
+ string id,
+
+ string? logAnalyticsDestinationType,
+
+ ImmutableArray logs,
+
+ string? marketplacePartnerId,
+
+ ImmutableArray metrics,
+
+ string name,
+
+ string? serviceBusRuleId,
+
+ string? storageAccountId,
+
+ Outputs.SystemDataResponse systemData,
+
+ string type,
+
+ string? workspaceId)
+ {
+ AzureApiVersion = azureApiVersion;
+ EventHubAuthorizationRuleId = eventHubAuthorizationRuleId;
+ EventHubName = eventHubName;
+ Id = id;
+ LogAnalyticsDestinationType = logAnalyticsDestinationType;
+ Logs = logs;
+ MarketplacePartnerId = marketplacePartnerId;
+ Metrics = metrics;
+ Name = name;
+ ServiceBusRuleId = serviceBusRuleId;
+ StorageAccountId = storageAccountId;
+ SystemData = systemData;
+ Type = type;
+ WorkspaceId = workspaceId;
+ }
+ }
+}
diff --git a/sdk/dotnet/Monitor/GetManagementGroupDiagnosticSetting.cs b/sdk/dotnet/Monitor/GetManagementGroupDiagnosticSetting.cs
new file mode 100644
index 000000000000..f4fd46cd466f
--- /dev/null
+++ b/sdk/dotnet/Monitor/GetManagementGroupDiagnosticSetting.cs
@@ -0,0 +1,173 @@
+// *** WARNING: this file was generated by pulumi. ***
+// *** Do not edit by hand unless you're certain you know what you are doing! ***
+
+using System;
+using System.Collections.Generic;
+using System.Collections.Immutable;
+using System.Threading.Tasks;
+using Pulumi.Serialization;
+
+namespace Pulumi.AzureNative.Monitor
+{
+ public static class GetManagementGroupDiagnosticSetting
+ {
+ ///
+ /// Gets the active management group diagnostic settings for the specified resource.
+ ///
+ /// Uses Azure REST API version 2021-05-01-preview.
+ ///
+ public static Task InvokeAsync(GetManagementGroupDiagnosticSettingArgs args, InvokeOptions? options = null)
+ => global::Pulumi.Deployment.Instance.InvokeAsync("azure-native:monitor:getManagementGroupDiagnosticSetting", args ?? new GetManagementGroupDiagnosticSettingArgs(), options.WithDefaults());
+
+ ///
+ /// Gets the active management group diagnostic settings for the specified resource.
+ ///
+ /// Uses Azure REST API version 2021-05-01-preview.
+ ///
+ public static Output Invoke(GetManagementGroupDiagnosticSettingInvokeArgs args, InvokeOptions? options = null)
+ => global::Pulumi.Deployment.Instance.Invoke("azure-native:monitor:getManagementGroupDiagnosticSetting", args ?? new GetManagementGroupDiagnosticSettingInvokeArgs(), options.WithDefaults());
+
+ ///
+ /// Gets the active management group diagnostic settings for the specified resource.
+ ///
+ /// Uses Azure REST API version 2021-05-01-preview.
+ ///
+ public static Output Invoke(GetManagementGroupDiagnosticSettingInvokeArgs args, InvokeOutputOptions options)
+ => global::Pulumi.Deployment.Instance.Invoke("azure-native:monitor:getManagementGroupDiagnosticSetting", args ?? new GetManagementGroupDiagnosticSettingInvokeArgs(), options.WithDefaults());
+ }
+
+
+ public sealed class GetManagementGroupDiagnosticSettingArgs : global::Pulumi.InvokeArgs
+ {
+ ///
+ /// The management group id.
+ ///
+ [Input("managementGroupId", required: true)]
+ public string ManagementGroupId { get; set; } = null!;
+
+ ///
+ /// The name of the diagnostic setting.
+ ///
+ [Input("name", required: true)]
+ public string Name { get; set; } = null!;
+
+ public GetManagementGroupDiagnosticSettingArgs()
+ {
+ }
+ public static new GetManagementGroupDiagnosticSettingArgs Empty => new GetManagementGroupDiagnosticSettingArgs();
+ }
+
+ public sealed class GetManagementGroupDiagnosticSettingInvokeArgs : global::Pulumi.InvokeArgs
+ {
+ ///
+ /// The management group id.
+ ///
+ [Input("managementGroupId", required: true)]
+ public Input ManagementGroupId { get; set; } = null!;
+
+ ///
+ /// The name of the diagnostic setting.
+ ///
+ [Input("name", required: true)]
+ public Input Name { get; set; } = null!;
+
+ public GetManagementGroupDiagnosticSettingInvokeArgs()
+ {
+ }
+ public static new GetManagementGroupDiagnosticSettingInvokeArgs Empty => new GetManagementGroupDiagnosticSettingInvokeArgs();
+ }
+
+
+ [OutputType]
+ public sealed class GetManagementGroupDiagnosticSettingResult
+ {
+ ///
+ /// The Azure API version of the resource.
+ ///
+ public readonly string AzureApiVersion;
+ ///
+ /// The resource Id for the event hub authorization rule.
+ ///
+ public readonly string? EventHubAuthorizationRuleId;
+ ///
+ /// The name of the event hub. If none is specified, the default event hub will be selected.
+ ///
+ public readonly string? EventHubName;
+ ///
+ /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
+ ///
+ public readonly string Id;
+ ///
+ /// The list of logs settings.
+ ///
+ public readonly ImmutableArray Logs;
+ ///
+ /// The full ARM resource ID of the Marketplace resource to which you would like to send Diagnostic Logs.
+ ///
+ public readonly string? MarketplacePartnerId;
+ ///
+ /// The name of the resource
+ ///
+ public readonly string Name;
+ ///
+ /// The service bus rule Id of the diagnostic setting. This is here to maintain backwards compatibility.
+ ///
+ public readonly string? ServiceBusRuleId;
+ ///
+ /// The resource ID of the storage account to which you would like to send Diagnostic Logs.
+ ///
+ public readonly string? StorageAccountId;
+ ///
+ /// The system metadata related to this resource.
+ ///
+ public readonly Outputs.SystemDataResponse SystemData;
+ ///
+ /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
+ ///
+ public readonly string Type;
+ ///
+ /// The full ARM resource ID of the Log Analytics workspace to which you would like to send Diagnostic Logs. Example: /subscriptions/4b9e8510-67ab-4e9a-95a9-e2f1e570ea9c/resourceGroups/insights-integration/providers/Microsoft.OperationalInsights/workspaces/viruela2
+ ///
+ public readonly string? WorkspaceId;
+
+ [OutputConstructor]
+ private GetManagementGroupDiagnosticSettingResult(
+ string azureApiVersion,
+
+ string? eventHubAuthorizationRuleId,
+
+ string? eventHubName,
+
+ string id,
+
+ ImmutableArray logs,
+
+ string? marketplacePartnerId,
+
+ string name,
+
+ string? serviceBusRuleId,
+
+ string? storageAccountId,
+
+ Outputs.SystemDataResponse systemData,
+
+ string type,
+
+ string? workspaceId)
+ {
+ AzureApiVersion = azureApiVersion;
+ EventHubAuthorizationRuleId = eventHubAuthorizationRuleId;
+ EventHubName = eventHubName;
+ Id = id;
+ Logs = logs;
+ MarketplacePartnerId = marketplacePartnerId;
+ Name = name;
+ ServiceBusRuleId = serviceBusRuleId;
+ StorageAccountId = storageAccountId;
+ SystemData = systemData;
+ Type = type;
+ WorkspaceId = workspaceId;
+ }
+ }
+}
diff --git a/sdk/dotnet/Monitor/GetSubscriptionDiagnosticSetting.cs b/sdk/dotnet/Monitor/GetSubscriptionDiagnosticSetting.cs
new file mode 100644
index 000000000000..448a2be08af2
--- /dev/null
+++ b/sdk/dotnet/Monitor/GetSubscriptionDiagnosticSetting.cs
@@ -0,0 +1,161 @@
+// *** WARNING: this file was generated by pulumi. ***
+// *** Do not edit by hand unless you're certain you know what you are doing! ***
+
+using System;
+using System.Collections.Generic;
+using System.Collections.Immutable;
+using System.Threading.Tasks;
+using Pulumi.Serialization;
+
+namespace Pulumi.AzureNative.Monitor
+{
+ public static class GetSubscriptionDiagnosticSetting
+ {
+ ///
+ /// Gets the active subscription diagnostic settings for the specified resource.
+ ///
+ /// Uses Azure REST API version 2021-05-01-preview.
+ ///
+ public static Task InvokeAsync(GetSubscriptionDiagnosticSettingArgs args, InvokeOptions? options = null)
+ => global::Pulumi.Deployment.Instance.InvokeAsync("azure-native:monitor:getSubscriptionDiagnosticSetting", args ?? new GetSubscriptionDiagnosticSettingArgs(), options.WithDefaults());
+
+ ///
+ /// Gets the active subscription diagnostic settings for the specified resource.
+ ///
+ /// Uses Azure REST API version 2021-05-01-preview.
+ ///
+ public static Output Invoke(GetSubscriptionDiagnosticSettingInvokeArgs args, InvokeOptions? options = null)
+ => global::Pulumi.Deployment.Instance.Invoke("azure-native:monitor:getSubscriptionDiagnosticSetting", args ?? new GetSubscriptionDiagnosticSettingInvokeArgs(), options.WithDefaults());
+
+ ///
+ /// Gets the active subscription diagnostic settings for the specified resource.
+ ///
+ /// Uses Azure REST API version 2021-05-01-preview.
+ ///
+ public static Output Invoke(GetSubscriptionDiagnosticSettingInvokeArgs args, InvokeOutputOptions options)
+ => global::Pulumi.Deployment.Instance.Invoke("azure-native:monitor:getSubscriptionDiagnosticSetting", args ?? new GetSubscriptionDiagnosticSettingInvokeArgs(), options.WithDefaults());
+ }
+
+
+ public sealed class GetSubscriptionDiagnosticSettingArgs : global::Pulumi.InvokeArgs
+ {
+ ///
+ /// The name of the diagnostic setting.
+ ///
+ [Input("name", required: true)]
+ public string Name { get; set; } = null!;
+
+ public GetSubscriptionDiagnosticSettingArgs()
+ {
+ }
+ public static new GetSubscriptionDiagnosticSettingArgs Empty => new GetSubscriptionDiagnosticSettingArgs();
+ }
+
+ public sealed class GetSubscriptionDiagnosticSettingInvokeArgs : global::Pulumi.InvokeArgs
+ {
+ ///
+ /// The name of the diagnostic setting.
+ ///
+ [Input("name", required: true)]
+ public Input Name { get; set; } = null!;
+
+ public GetSubscriptionDiagnosticSettingInvokeArgs()
+ {
+ }
+ public static new GetSubscriptionDiagnosticSettingInvokeArgs Empty => new GetSubscriptionDiagnosticSettingInvokeArgs();
+ }
+
+
+ [OutputType]
+ public sealed class GetSubscriptionDiagnosticSettingResult
+ {
+ ///
+ /// The Azure API version of the resource.
+ ///
+ public readonly string AzureApiVersion;
+ ///
+ /// The resource Id for the event hub authorization rule.
+ ///
+ public readonly string? EventHubAuthorizationRuleId;
+ ///
+ /// The name of the event hub. If none is specified, the default event hub will be selected.
+ ///
+ public readonly string? EventHubName;
+ ///
+ /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
+ ///
+ public readonly string Id;
+ ///
+ /// The list of logs settings.
+ ///
+ public readonly ImmutableArray Logs;
+ ///
+ /// The full ARM resource ID of the Marketplace resource to which you would like to send Diagnostic Logs.
+ ///
+ public readonly string? MarketplacePartnerId;
+ ///
+ /// The name of the resource
+ ///
+ public readonly string Name;
+ ///
+ /// The service bus rule Id of the diagnostic setting. This is here to maintain backwards compatibility.
+ ///
+ public readonly string? ServiceBusRuleId;
+ ///
+ /// The resource ID of the storage account to which you would like to send Diagnostic Logs.
+ ///
+ public readonly string? StorageAccountId;
+ ///
+ /// The system metadata related to this resource.
+ ///
+ public readonly Outputs.SystemDataResponse SystemData;
+ ///
+ /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
+ ///
+ public readonly string Type;
+ ///
+ /// The full ARM resource ID of the Log Analytics workspace to which you would like to send Diagnostic Logs. Example: /subscriptions/4b9e8510-67ab-4e9a-95a9-e2f1e570ea9c/resourceGroups/insights-integration/providers/Microsoft.OperationalInsights/workspaces/viruela2
+ ///
+ public readonly string? WorkspaceId;
+
+ [OutputConstructor]
+ private GetSubscriptionDiagnosticSettingResult(
+ string azureApiVersion,
+
+ string? eventHubAuthorizationRuleId,
+
+ string? eventHubName,
+
+ string id,
+
+ ImmutableArray logs,
+
+ string? marketplacePartnerId,
+
+ string name,
+
+ string? serviceBusRuleId,
+
+ string? storageAccountId,
+
+ Outputs.SystemDataResponse systemData,
+
+ string type,
+
+ string? workspaceId)
+ {
+ AzureApiVersion = azureApiVersion;
+ EventHubAuthorizationRuleId = eventHubAuthorizationRuleId;
+ EventHubName = eventHubName;
+ Id = id;
+ Logs = logs;
+ MarketplacePartnerId = marketplacePartnerId;
+ Name = name;
+ ServiceBusRuleId = serviceBusRuleId;
+ StorageAccountId = storageAccountId;
+ SystemData = systemData;
+ Type = type;
+ WorkspaceId = workspaceId;
+ }
+ }
+}
diff --git a/sdk/dotnet/Monitor/Inputs/AutoscaleNotificationArgs.cs b/sdk/dotnet/Monitor/Inputs/AutoscaleNotificationArgs.cs
new file mode 100644
index 000000000000..8e84555ce5d0
--- /dev/null
+++ b/sdk/dotnet/Monitor/Inputs/AutoscaleNotificationArgs.cs
@@ -0,0 +1,47 @@
+// *** WARNING: this file was generated by pulumi. ***
+// *** Do not edit by hand unless you're certain you know what you are doing! ***
+
+using System;
+using System.Collections.Generic;
+using System.Collections.Immutable;
+using System.Threading.Tasks;
+using Pulumi.Serialization;
+
+namespace Pulumi.AzureNative.Monitor.Inputs
+{
+
+ ///
+ /// Autoscale notification.
+ ///
+ public sealed class AutoscaleNotificationArgs : global::Pulumi.ResourceArgs
+ {
+ ///
+ /// the email notification.
+ ///
+ [Input("email")]
+ public Input? Email { get; set; }
+
+ ///
+ /// the operation associated with the notification and its value must be "scale"
+ ///
+ [Input("operation", required: true)]
+ public Input Operation { get; set; } = null!;
+
+ [Input("webhooks")]
+ private InputList? _webhooks;
+
+ ///
+ /// the collection of webhook notifications.
+ ///
+ public InputList Webhooks
+ {
+ get => _webhooks ?? (_webhooks = new InputList());
+ set => _webhooks = value;
+ }
+
+ public AutoscaleNotificationArgs()
+ {
+ }
+ public static new AutoscaleNotificationArgs Empty => new AutoscaleNotificationArgs();
+ }
+}
diff --git a/sdk/dotnet/Monitor/Inputs/AutoscaleProfileArgs.cs b/sdk/dotnet/Monitor/Inputs/AutoscaleProfileArgs.cs
new file mode 100644
index 000000000000..d6fedf0307b3
--- /dev/null
+++ b/sdk/dotnet/Monitor/Inputs/AutoscaleProfileArgs.cs
@@ -0,0 +1,59 @@
+// *** WARNING: this file was generated by pulumi. ***
+// *** Do not edit by hand unless you're certain you know what you are doing! ***
+
+using System;
+using System.Collections.Generic;
+using System.Collections.Immutable;
+using System.Threading.Tasks;
+using Pulumi.Serialization;
+
+namespace Pulumi.AzureNative.Monitor.Inputs
+{
+
+ ///
+ /// Autoscale profile.
+ ///
+ public sealed class AutoscaleProfileArgs : global::Pulumi.ResourceArgs
+ {
+ ///
+ /// the number of instances that can be used during this profile.
+ ///
+ [Input("capacity", required: true)]
+ public Input Capacity { get; set; } = null!;
+
+ ///
+ /// the specific date-time for the profile. This element is not used if the Recurrence element is used.
+ ///
+ [Input("fixedDate")]
+ public Input? FixedDate { get; set; }
+
+ ///
+ /// the name of the profile.
+ ///
+ [Input("name", required: true)]
+ public Input Name { get; set; } = null!;
+
+ ///
+ /// the repeating times at which this profile begins. This element is not used if the FixedDate element is used.
+ ///
+ [Input("recurrence")]
+ public Input? Recurrence { get; set; }
+
+ [Input("rules", required: true)]
+ private InputList? _rules;
+
+ ///
+ /// the collection of rules that provide the triggers and parameters for the scaling action. A maximum of 10 rules can be specified.
+ ///
+ public InputList Rules
+ {
+ get => _rules ?? (_rules = new InputList());
+ set => _rules = value;
+ }
+
+ public AutoscaleProfileArgs()
+ {
+ }
+ public static new AutoscaleProfileArgs Empty => new AutoscaleProfileArgs();
+ }
+}
diff --git a/sdk/dotnet/Monitor/Inputs/EmailNotificationArgs.cs b/sdk/dotnet/Monitor/Inputs/EmailNotificationArgs.cs
new file mode 100644
index 000000000000..1a203a5a011c
--- /dev/null
+++ b/sdk/dotnet/Monitor/Inputs/EmailNotificationArgs.cs
@@ -0,0 +1,49 @@
+// *** WARNING: this file was generated by pulumi. ***
+// *** Do not edit by hand unless you're certain you know what you are doing! ***
+
+using System;
+using System.Collections.Generic;
+using System.Collections.Immutable;
+using System.Threading.Tasks;
+using Pulumi.Serialization;
+
+namespace Pulumi.AzureNative.Monitor.Inputs
+{
+
+ ///
+ /// Email notification of an autoscale event.
+ ///
+ public sealed class EmailNotificationArgs : global::Pulumi.ResourceArgs
+ {
+ [Input("customEmails")]
+ private InputList? _customEmails;
+
+ ///
+ /// the custom e-mails list. This value can be null or empty, in which case this attribute will be ignored.
+ ///
+ public InputList CustomEmails
+ {
+ get => _customEmails ?? (_customEmails = new InputList());
+ set => _customEmails = value;
+ }
+
+ ///
+ /// a value indicating whether to send email to subscription administrator.
+ ///
+ [Input("sendToSubscriptionAdministrator")]
+ public Input? SendToSubscriptionAdministrator { get; set; }
+
+ ///
+ /// a value indicating whether to send email to subscription co-administrators.
+ ///
+ [Input("sendToSubscriptionCoAdministrators")]
+ public Input? SendToSubscriptionCoAdministrators { get; set; }
+
+ public EmailNotificationArgs()
+ {
+ SendToSubscriptionAdministrator = false;
+ SendToSubscriptionCoAdministrators = false;
+ }
+ public static new EmailNotificationArgs Empty => new EmailNotificationArgs();
+ }
+}
diff --git a/sdk/dotnet/Monitor/Inputs/LogSettingsArgs.cs b/sdk/dotnet/Monitor/Inputs/LogSettingsArgs.cs
new file mode 100644
index 000000000000..054fc9aed966
--- /dev/null
+++ b/sdk/dotnet/Monitor/Inputs/LogSettingsArgs.cs
@@ -0,0 +1,47 @@
+// *** WARNING: this file was generated by pulumi. ***
+// *** Do not edit by hand unless you're certain you know what you are doing! ***
+
+using System;
+using System.Collections.Generic;
+using System.Collections.Immutable;
+using System.Threading.Tasks;
+using Pulumi.Serialization;
+
+namespace Pulumi.AzureNative.Monitor.Inputs
+{
+
+ ///
+ /// Part of MultiTenantDiagnosticSettings. Specifies the settings for a particular log.
+ ///
+ public sealed class LogSettingsArgs : global::Pulumi.ResourceArgs
+ {
+ ///
+ /// Name of a Diagnostic Log category for a resource type this setting is applied to. To obtain the list of Diagnostic Log categories for a resource, first perform a GET diagnostic settings operation.
+ ///
+ [Input("category")]
+ public Input? Category { get; set; }
+
+ ///
+ /// Name of a Diagnostic Log category group for a resource type this setting is applied to. To obtain the list of Diagnostic Log categories for a resource, first perform a GET diagnostic settings operation.
+ ///
+ [Input("categoryGroup")]
+ public Input? CategoryGroup { get; set; }
+
+ ///
+ /// a value indicating whether this log is enabled.
+ ///
+ [Input("enabled", required: true)]
+ public Input Enabled { get; set; } = null!;
+
+ ///
+ /// the retention policy for this log.
+ ///
+ [Input("retentionPolicy")]
+ public Input? RetentionPolicy { get; set; }
+
+ public LogSettingsArgs()
+ {
+ }
+ public static new LogSettingsArgs Empty => new LogSettingsArgs();
+ }
+}
diff --git a/sdk/dotnet/Monitor/Inputs/ManagementGroupLogSettingsArgs.cs b/sdk/dotnet/Monitor/Inputs/ManagementGroupLogSettingsArgs.cs
new file mode 100644
index 000000000000..28e98e4a8b1d
--- /dev/null
+++ b/sdk/dotnet/Monitor/Inputs/ManagementGroupLogSettingsArgs.cs
@@ -0,0 +1,41 @@
+// *** WARNING: this file was generated by pulumi. ***
+// *** Do not edit by hand unless you're certain you know what you are doing! ***
+
+using System;
+using System.Collections.Generic;
+using System.Collections.Immutable;
+using System.Threading.Tasks;
+using Pulumi.Serialization;
+
+namespace Pulumi.AzureNative.Monitor.Inputs
+{
+
+ ///
+ /// Part of Management Group diagnostic setting. Specifies the settings for a particular log.
+ ///
+ public sealed class ManagementGroupLogSettingsArgs : global::Pulumi.ResourceArgs
+ {
+ ///
+ /// Name of a Management Group Diagnostic Log category for a resource type this setting is applied to.
+ ///
+ [Input("category")]
+ public Input? Category { get; set; }
+
+ ///
+ /// Name of a Management Group Diagnostic Log category group for a resource type this setting is applied to.
+ ///
+ [Input("categoryGroup")]
+ public Input? CategoryGroup { get; set; }
+
+ ///
+ /// a value indicating whether this log is enabled.
+ ///
+ [Input("enabled", required: true)]
+ public Input Enabled { get; set; } = null!;
+
+ public ManagementGroupLogSettingsArgs()
+ {
+ }
+ public static new ManagementGroupLogSettingsArgs Empty => new ManagementGroupLogSettingsArgs();
+ }
+}
diff --git a/sdk/dotnet/Monitor/Inputs/MetricSettingsArgs.cs b/sdk/dotnet/Monitor/Inputs/MetricSettingsArgs.cs
new file mode 100644
index 000000000000..1c90fa0f73a0
--- /dev/null
+++ b/sdk/dotnet/Monitor/Inputs/MetricSettingsArgs.cs
@@ -0,0 +1,47 @@
+// *** WARNING: this file was generated by pulumi. ***
+// *** Do not edit by hand unless you're certain you know what you are doing! ***
+
+using System;
+using System.Collections.Generic;
+using System.Collections.Immutable;
+using System.Threading.Tasks;
+using Pulumi.Serialization;
+
+namespace Pulumi.AzureNative.Monitor.Inputs
+{
+
+ ///
+ /// Part of MultiTenantDiagnosticSettings. Specifies the settings for a particular metric.
+ ///
+ public sealed class MetricSettingsArgs : global::Pulumi.ResourceArgs
+ {
+ ///
+ /// Name of a Diagnostic Metric category for a resource type this setting is applied to. To obtain the list of Diagnostic metric categories for a resource, first perform a GET diagnostic settings operation.
+ ///
+ [Input("category")]
+ public Input? Category { get; set; }
+
+ ///
+ /// a value indicating whether this category is enabled.
+ ///
+ [Input("enabled", required: true)]
+ public Input Enabled { get; set; } = null!;
+
+ ///
+ /// the retention policy for this category.
+ ///
+ [Input("retentionPolicy")]
+ public Input? RetentionPolicy { get; set; }
+
+ ///
+ /// the timegrain of the metric in ISO8601 format.
+ ///
+ [Input("timeGrain")]
+ public Input? TimeGrain { get; set; }
+
+ public MetricSettingsArgs()
+ {
+ }
+ public static new MetricSettingsArgs Empty => new MetricSettingsArgs();
+ }
+}
diff --git a/sdk/dotnet/Monitor/Inputs/MetricTriggerArgs.cs b/sdk/dotnet/Monitor/Inputs/MetricTriggerArgs.cs
new file mode 100644
index 000000000000..72b3cd5d376d
--- /dev/null
+++ b/sdk/dotnet/Monitor/Inputs/MetricTriggerArgs.cs
@@ -0,0 +1,101 @@
+// *** WARNING: this file was generated by pulumi. ***
+// *** Do not edit by hand unless you're certain you know what you are doing! ***
+
+using System;
+using System.Collections.Generic;
+using System.Collections.Immutable;
+using System.Threading.Tasks;
+using Pulumi.Serialization;
+
+namespace Pulumi.AzureNative.Monitor.Inputs
+{
+
+ ///
+ /// The trigger that results in a scaling action.
+ ///
+ public sealed class MetricTriggerArgs : global::Pulumi.ResourceArgs
+ {
+ [Input("dimensions")]
+ private InputList? _dimensions;
+
+ ///
+ /// List of dimension conditions. For example: [{"DimensionName":"AppName","Operator":"Equals","Values":["App1"]},{"DimensionName":"Deployment","Operator":"Equals","Values":["default"]}].
+ ///
+ public InputList Dimensions
+ {
+ get => _dimensions ?? (_dimensions = new InputList());
+ set => _dimensions = value;
+ }
+
+ ///
+ /// a value indicating whether metric should divide per instance.
+ ///
+ [Input("dividePerInstance")]
+ public Input? DividePerInstance { get; set; }
+
+ ///
+ /// the name of the metric that defines what the rule monitors.
+ ///
+ [Input("metricName", required: true)]
+ public Input MetricName { get; set; } = null!;
+
+ ///
+ /// the namespace of the metric that defines what the rule monitors.
+ ///
+ [Input("metricNamespace")]
+ public Input? MetricNamespace { get; set; }
+
+ ///
+ /// the location of the resource the rule monitors.
+ ///
+ [Input("metricResourceLocation")]
+ public Input? MetricResourceLocation { get; set; }
+
+ ///
+ /// the resource identifier of the resource the rule monitors.
+ ///
+ [Input("metricResourceUri", required: true)]
+ public Input MetricResourceUri { get; set; } = null!;
+
+ ///
+ /// the operator that is used to compare the metric data and the threshold.
+ ///
+ [Input("operator", required: true)]
+ public Input Operator { get; set; } = null!;
+
+ ///
+ /// the metric statistic type. How the metrics from multiple instances are combined.
+ ///
+ [Input("statistic", required: true)]
+ public Input Statistic { get; set; } = null!;
+
+ ///
+ /// the threshold of the metric that triggers the scale action.
+ ///
+ [Input("threshold", required: true)]
+ public Input Threshold { get; set; } = null!;
+
+ ///
+ /// time aggregation type. How the data that is collected should be combined over time. The default value is Average.
+ ///
+ [Input("timeAggregation", required: true)]
+ public Input TimeAggregation { get; set; } = null!;
+
+ ///
+ /// the granularity of metrics the rule monitors. Must be one of the predefined values returned from metric definitions for the metric. Must be between 12 hours and 1 minute.
+ ///
+ [Input("timeGrain", required: true)]
+ public Input TimeGrain { get; set; } = null!;
+
+ ///
+ /// the range of time in which instance data is collected. This value must be greater than the delay in metric collection, which can vary from resource-to-resource. Must be between 12 hours and 5 minutes.
+ ///
+ [Input("timeWindow", required: true)]
+ public Input TimeWindow { get; set; } = null!;
+
+ public MetricTriggerArgs()
+ {
+ }
+ public static new MetricTriggerArgs Empty => new MetricTriggerArgs();
+ }
+}
diff --git a/sdk/dotnet/Monitor/Inputs/PredictiveAutoscalePolicyArgs.cs b/sdk/dotnet/Monitor/Inputs/PredictiveAutoscalePolicyArgs.cs
new file mode 100644
index 000000000000..9040343ffa70
--- /dev/null
+++ b/sdk/dotnet/Monitor/Inputs/PredictiveAutoscalePolicyArgs.cs
@@ -0,0 +1,35 @@
+// *** WARNING: this file was generated by pulumi. ***
+// *** Do not edit by hand unless you're certain you know what you are doing! ***
+
+using System;
+using System.Collections.Generic;
+using System.Collections.Immutable;
+using System.Threading.Tasks;
+using Pulumi.Serialization;
+
+namespace Pulumi.AzureNative.Monitor.Inputs
+{
+
+ ///
+ /// The parameters for enabling predictive autoscale.
+ ///
+ public sealed class PredictiveAutoscalePolicyArgs : global::Pulumi.ResourceArgs
+ {
+ ///
+ /// the amount of time to specify by which instances are launched in advance. It must be between 1 minute and 60 minutes in ISO 8601 format.
+ ///
+ [Input("scaleLookAheadTime")]
+ public Input? ScaleLookAheadTime { get; set; }
+
+ ///
+ /// the predictive autoscale mode
+ ///
+ [Input("scaleMode", required: true)]
+ public Input ScaleMode { get; set; } = null!;
+
+ public PredictiveAutoscalePolicyArgs()
+ {
+ }
+ public static new PredictiveAutoscalePolicyArgs Empty => new PredictiveAutoscalePolicyArgs();
+ }
+}
diff --git a/sdk/dotnet/Monitor/Inputs/RecurrenceArgs.cs b/sdk/dotnet/Monitor/Inputs/RecurrenceArgs.cs
new file mode 100644
index 000000000000..188a3e7452e1
--- /dev/null
+++ b/sdk/dotnet/Monitor/Inputs/RecurrenceArgs.cs
@@ -0,0 +1,35 @@
+// *** WARNING: this file was generated by pulumi. ***
+// *** Do not edit by hand unless you're certain you know what you are doing! ***
+
+using System;
+using System.Collections.Generic;
+using System.Collections.Immutable;
+using System.Threading.Tasks;
+using Pulumi.Serialization;
+
+namespace Pulumi.AzureNative.Monitor.Inputs
+{
+
+ ///
+ /// The repeating times at which this profile begins. This element is not used if the FixedDate element is used.
+ ///
+ public sealed class RecurrenceArgs : global::Pulumi.ResourceArgs
+ {
+ ///
+ /// the recurrence frequency. How often the schedule profile should take effect. This value must be Week, meaning each week will have the same set of profiles. For example, to set a daily schedule, set **schedule** to every day of the week. The frequency property specifies that the schedule is repeated weekly.
+ ///
+ [Input("frequency", required: true)]
+ public Input Frequency { get; set; } = null!;
+
+ ///
+ /// the scheduling constraints for when the profile begins.
+ ///
+ [Input("schedule", required: true)]
+ public Input Schedule { get; set; } = null!;
+
+ public RecurrenceArgs()
+ {
+ }
+ public static new RecurrenceArgs Empty => new RecurrenceArgs();
+ }
+}
diff --git a/sdk/dotnet/Monitor/Inputs/RecurrentScheduleArgs.cs b/sdk/dotnet/Monitor/Inputs/RecurrentScheduleArgs.cs
new file mode 100644
index 000000000000..035db1e627de
--- /dev/null
+++ b/sdk/dotnet/Monitor/Inputs/RecurrentScheduleArgs.cs
@@ -0,0 +1,65 @@
+// *** WARNING: this file was generated by pulumi. ***
+// *** Do not edit by hand unless you're certain you know what you are doing! ***
+
+using System;
+using System.Collections.Generic;
+using System.Collections.Immutable;
+using System.Threading.Tasks;
+using Pulumi.Serialization;
+
+namespace Pulumi.AzureNative.Monitor.Inputs
+{
+
+ ///
+ /// The scheduling constraints for when the profile begins.
+ ///
+ public sealed class RecurrentScheduleArgs : global::Pulumi.ResourceArgs
+ {
+ [Input("days", required: true)]
+ private InputList? _days;
+
+ ///
+ /// the collection of days that the profile takes effect on. Possible values are Sunday through Saturday.
+ ///
+ public InputList Days
+ {
+ get => _days ?? (_days = new InputList());
+ set => _days = value;
+ }
+
+ [Input("hours", required: true)]
+ private InputList? _hours;
+
+ ///
+ /// A collection of hours that the profile takes effect on. Values supported are 0 to 23 on the 24-hour clock (AM/PM times are not supported).
+ ///
+ public InputList Hours
+ {
+ get => _hours ?? (_hours = new InputList());
+ set => _hours = value;
+ }
+
+ [Input("minutes", required: true)]
+ private InputList? _minutes;
+
+ ///
+ /// A collection of minutes at which the profile takes effect at.
+ ///
+ public InputList Minutes
+ {
+ get => _minutes ?? (_minutes = new InputList());
+ set => _minutes = value;
+ }
+
+ ///
+ /// the timezone for the hours of the profile. Some examples of valid time zones are: Dateline Standard Time, UTC-11, Hawaiian Standard Time, Alaskan Standard Time, Pacific Standard Time (Mexico), Pacific Standard Time, US Mountain Standard Time, Mountain Standard Time (Mexico), Mountain Standard Time, Central America Standard Time, Central Standard Time, Central Standard Time (Mexico), Canada Central Standard Time, SA Pacific Standard Time, Eastern Standard Time, US Eastern Standard Time, Venezuela Standard Time, Paraguay Standard Time, Atlantic Standard Time, Central Brazilian Standard Time, SA Western Standard Time, Pacific SA Standard Time, Newfoundland Standard Time, E. South America Standard Time, Argentina Standard Time, SA Eastern Standard Time, Greenland Standard Time, Montevideo Standard Time, Bahia Standard Time, UTC-02, Mid-Atlantic Standard Time, Azores Standard Time, Cape Verde Standard Time, Morocco Standard Time, UTC, GMT Standard Time, Greenwich Standard Time, W. Europe Standard Time, Central Europe Standard Time, Romance Standard Time, Central European Standard Time, W. Central Africa Standard Time, Namibia Standard Time, Jordan Standard Time, GTB Standard Time, Middle East Standard Time, Egypt Standard Time, Syria Standard Time, E. Europe Standard Time, South Africa Standard Time, FLE Standard Time, Turkey Standard Time, Israel Standard Time, Kaliningrad Standard Time, Libya Standard Time, Arabic Standard Time, Arab Standard Time, Belarus Standard Time, Russian Standard Time, E. Africa Standard Time, Iran Standard Time, Arabian Standard Time, Azerbaijan Standard Time, Russia Time Zone 3, Mauritius Standard Time, Georgian Standard Time, Caucasus Standard Time, Afghanistan Standard Time, West Asia Standard Time, Ekaterinburg Standard Time, Pakistan Standard Time, India Standard Time, Sri Lanka Standard Time, Nepal Standard Time, Central Asia Standard Time, Bangladesh Standard Time, N. Central Asia Standard Time, Myanmar Standard Time, SE Asia Standard Time, North Asia Standard Time, China Standard Time, North Asia East Standard Time, Singapore Standard Time, W. Australia Standard Time, Taipei Standard Time, Ulaanbaatar Standard Time, Tokyo Standard Time, Korea Standard Time, Yakutsk Standard Time, Cen. Australia Standard Time, AUS Central Standard Time, E. Australia Standard Time, AUS Eastern Standard Time, West Pacific Standard Time, Tasmania Standard Time, Magadan Standard Time, Vladivostok Standard Time, Russia Time Zone 10, Central Pacific Standard Time, Russia Time Zone 11, New Zealand Standard Time, UTC+12, Fiji Standard Time, Kamchatka Standard Time, Tonga Standard Time, Samoa Standard Time, Line Islands Standard Time
+ ///
+ [Input("timeZone", required: true)]
+ public Input TimeZone { get; set; } = null!;
+
+ public RecurrentScheduleArgs()
+ {
+ }
+ public static new RecurrentScheduleArgs Empty => new RecurrentScheduleArgs();
+ }
+}
diff --git a/sdk/dotnet/Monitor/Inputs/RetentionPolicyArgs.cs b/sdk/dotnet/Monitor/Inputs/RetentionPolicyArgs.cs
new file mode 100644
index 000000000000..3f6132c5b5ec
--- /dev/null
+++ b/sdk/dotnet/Monitor/Inputs/RetentionPolicyArgs.cs
@@ -0,0 +1,35 @@
+// *** WARNING: this file was generated by pulumi. ***
+// *** Do not edit by hand unless you're certain you know what you are doing! ***
+
+using System;
+using System.Collections.Generic;
+using System.Collections.Immutable;
+using System.Threading.Tasks;
+using Pulumi.Serialization;
+
+namespace Pulumi.AzureNative.Monitor.Inputs
+{
+
+ ///
+ /// Specifies the retention policy for the log.
+ ///
+ public sealed class RetentionPolicyArgs : global::Pulumi.ResourceArgs
+ {
+ ///
+ /// the number of days for the retention in days. A value of 0 will retain the events indefinitely.
+ ///
+ [Input("days", required: true)]
+ public Input Days { get; set; } = null!;
+
+ ///
+ /// a value indicating whether the retention policy is enabled.
+ ///
+ [Input("enabled", required: true)]
+ public Input Enabled { get; set; } = null!;
+
+ public RetentionPolicyArgs()
+ {
+ }
+ public static new RetentionPolicyArgs Empty => new RetentionPolicyArgs();
+ }
+}
diff --git a/sdk/dotnet/Monitor/Inputs/ScaleActionArgs.cs b/sdk/dotnet/Monitor/Inputs/ScaleActionArgs.cs
new file mode 100644
index 000000000000..a8e94c1c7eff
--- /dev/null
+++ b/sdk/dotnet/Monitor/Inputs/ScaleActionArgs.cs
@@ -0,0 +1,48 @@
+// *** WARNING: this file was generated by pulumi. ***
+// *** Do not edit by hand unless you're certain you know what you are doing! ***
+
+using System;
+using System.Collections.Generic;
+using System.Collections.Immutable;
+using System.Threading.Tasks;
+using Pulumi.Serialization;
+
+namespace Pulumi.AzureNative.Monitor.Inputs
+{
+
+ ///
+ /// The parameters for the scaling action.
+ ///
+ public sealed class ScaleActionArgs : global::Pulumi.ResourceArgs
+ {
+ ///
+ /// the amount of time to wait since the last scaling action before this action occurs. It must be between 1 week and 1 minute in ISO 8601 format.
+ ///
+ [Input("cooldown", required: true)]
+ public Input Cooldown { get; set; } = null!;
+
+ ///
+ /// the scale direction. Whether the scaling action increases or decreases the number of instances.
+ ///
+ [Input("direction", required: true)]
+ public Input Direction { get; set; } = null!;
+
+ ///
+ /// the type of action that should occur when the scale rule fires.
+ ///
+ [Input("type", required: true)]
+ public Input Type { get; set; } = null!;
+
+ ///
+ /// the number of instances that are involved in the scaling action. This value must be 1 or greater. The default value is 1.
+ ///
+ [Input("value")]
+ public Input? Value { get; set; }
+
+ public ScaleActionArgs()
+ {
+ Value = "1";
+ }
+ public static new ScaleActionArgs Empty => new ScaleActionArgs();
+ }
+}
diff --git a/sdk/dotnet/Monitor/Inputs/ScaleCapacityArgs.cs b/sdk/dotnet/Monitor/Inputs/ScaleCapacityArgs.cs
new file mode 100644
index 000000000000..1080af2fb240
--- /dev/null
+++ b/sdk/dotnet/Monitor/Inputs/ScaleCapacityArgs.cs
@@ -0,0 +1,41 @@
+// *** WARNING: this file was generated by pulumi. ***
+// *** Do not edit by hand unless you're certain you know what you are doing! ***
+
+using System;
+using System.Collections.Generic;
+using System.Collections.Immutable;
+using System.Threading.Tasks;
+using Pulumi.Serialization;
+
+namespace Pulumi.AzureNative.Monitor.Inputs
+{
+
+ ///
+ /// The number of instances that can be used during this profile.
+ ///
+ public sealed class ScaleCapacityArgs : global::Pulumi.ResourceArgs
+ {
+ ///
+ /// the number of instances that will be set if metrics are not available for evaluation. The default is only used if the current instance count is lower than the default.
+ ///
+ [Input("default", required: true)]
+ public Input Default { get; set; } = null!;
+
+ ///
+ /// the maximum number of instances for the resource. The actual maximum number of instances is limited by the cores that are available in the subscription.
+ ///
+ [Input("maximum", required: true)]
+ public Input Maximum { get; set; } = null!;
+
+ ///
+ /// the minimum number of instances for the resource.
+ ///
+ [Input("minimum", required: true)]
+ public Input Minimum { get; set; } = null!;
+
+ public ScaleCapacityArgs()
+ {
+ }
+ public static new ScaleCapacityArgs Empty => new ScaleCapacityArgs();
+ }
+}
diff --git a/sdk/dotnet/Monitor/Inputs/ScaleRuleArgs.cs b/sdk/dotnet/Monitor/Inputs/ScaleRuleArgs.cs
new file mode 100644
index 000000000000..da23cc21d5a0
--- /dev/null
+++ b/sdk/dotnet/Monitor/Inputs/ScaleRuleArgs.cs
@@ -0,0 +1,35 @@
+// *** WARNING: this file was generated by pulumi. ***
+// *** Do not edit by hand unless you're certain you know what you are doing! ***
+
+using System;
+using System.Collections.Generic;
+using System.Collections.Immutable;
+using System.Threading.Tasks;
+using Pulumi.Serialization;
+
+namespace Pulumi.AzureNative.Monitor.Inputs
+{
+
+ ///
+ /// A rule that provide the triggers and parameters for the scaling action.
+ ///
+ public sealed class ScaleRuleArgs : global::Pulumi.ResourceArgs
+ {
+ ///
+ /// the trigger that results in a scaling action.
+ ///
+ [Input("metricTrigger", required: true)]
+ public Input MetricTrigger { get; set; } = null!;
+
+ ///
+ /// the parameters for the scaling action.
+ ///
+ [Input("scaleAction", required: true)]
+ public Input ScaleAction { get; set; } = null!;
+
+ public ScaleRuleArgs()
+ {
+ }
+ public static new ScaleRuleArgs Empty => new ScaleRuleArgs();
+ }
+}
diff --git a/sdk/dotnet/Monitor/Inputs/ScaleRuleMetricDimensionArgs.cs b/sdk/dotnet/Monitor/Inputs/ScaleRuleMetricDimensionArgs.cs
new file mode 100644
index 000000000000..6e2135ad38d2
--- /dev/null
+++ b/sdk/dotnet/Monitor/Inputs/ScaleRuleMetricDimensionArgs.cs
@@ -0,0 +1,47 @@
+// *** WARNING: this file was generated by pulumi. ***
+// *** Do not edit by hand unless you're certain you know what you are doing! ***
+
+using System;
+using System.Collections.Generic;
+using System.Collections.Immutable;
+using System.Threading.Tasks;
+using Pulumi.Serialization;
+
+namespace Pulumi.AzureNative.Monitor.Inputs
+{
+
+ ///
+ /// Specifies an auto scale rule metric dimension.
+ ///
+ public sealed class ScaleRuleMetricDimensionArgs : global::Pulumi.ResourceArgs
+ {
+ ///
+ /// Name of the dimension.
+ ///
+ [Input("dimensionName", required: true)]
+ public Input DimensionName { get; set; } = null!;
+
+ ///
+ /// the dimension operator. Only 'Equals' and 'NotEquals' are supported. 'Equals' being equal to any of the values. 'NotEquals' being not equal to all of the values
+ ///
+ [Input("operator", required: true)]
+ public InputUnion Operator { get; set; } = null!;
+
+ [Input("values", required: true)]
+ private InputList? _values;
+
+ ///
+ /// list of dimension values. For example: ["App1","App2"].
+ ///
+ public InputList Values
+ {
+ get => _values ?? (_values = new InputList());
+ set => _values = value;
+ }
+
+ public ScaleRuleMetricDimensionArgs()
+ {
+ }
+ public static new ScaleRuleMetricDimensionArgs Empty => new ScaleRuleMetricDimensionArgs();
+ }
+}
diff --git a/sdk/dotnet/Monitor/Inputs/SubscriptionLogSettingsArgs.cs b/sdk/dotnet/Monitor/Inputs/SubscriptionLogSettingsArgs.cs
new file mode 100644
index 000000000000..07e9d891a9a0
--- /dev/null
+++ b/sdk/dotnet/Monitor/Inputs/SubscriptionLogSettingsArgs.cs
@@ -0,0 +1,41 @@
+// *** WARNING: this file was generated by pulumi. ***
+// *** Do not edit by hand unless you're certain you know what you are doing! ***
+
+using System;
+using System.Collections.Generic;
+using System.Collections.Immutable;
+using System.Threading.Tasks;
+using Pulumi.Serialization;
+
+namespace Pulumi.AzureNative.Monitor.Inputs
+{
+
+ ///
+ /// Part of Subscription diagnostic setting. Specifies the settings for a particular log.
+ ///
+ public sealed class SubscriptionLogSettingsArgs : global::Pulumi.ResourceArgs
+ {
+ ///
+ /// Name of a Subscription Diagnostic Log category for a resource type this setting is applied to.
+ ///
+ [Input("category")]
+ public Input? Category { get; set; }
+
+ ///
+ /// Name of a Subscription Diagnostic Log category group for a resource type this setting is applied to.
+ ///
+ [Input("categoryGroup")]
+ public Input? CategoryGroup { get; set; }
+
+ ///
+ /// a value indicating whether this log is enabled.
+ ///
+ [Input("enabled", required: true)]
+ public Input Enabled { get; set; } = null!;
+
+ public SubscriptionLogSettingsArgs()
+ {
+ }
+ public static new SubscriptionLogSettingsArgs Empty => new SubscriptionLogSettingsArgs();
+ }
+}
diff --git a/sdk/dotnet/Monitor/Inputs/TimeWindowArgs.cs b/sdk/dotnet/Monitor/Inputs/TimeWindowArgs.cs
new file mode 100644
index 000000000000..4906e7ab2c3f
--- /dev/null
+++ b/sdk/dotnet/Monitor/Inputs/TimeWindowArgs.cs
@@ -0,0 +1,41 @@
+// *** WARNING: this file was generated by pulumi. ***
+// *** Do not edit by hand unless you're certain you know what you are doing! ***
+
+using System;
+using System.Collections.Generic;
+using System.Collections.Immutable;
+using System.Threading.Tasks;
+using Pulumi.Serialization;
+
+namespace Pulumi.AzureNative.Monitor.Inputs
+{
+
+ ///
+ /// A specific date-time for the profile.
+ ///
+ public sealed class TimeWindowArgs : global::Pulumi.ResourceArgs
+ {
+ ///
+ /// the end time for the profile in ISO 8601 format.
+ ///
+ [Input("end", required: true)]
+ public Input End { get; set; } = null!;
+
+ ///
+ /// the start time for the profile in ISO 8601 format.
+ ///
+ [Input("start", required: true)]
+ public Input Start { get; set; } = null!;
+
+ ///
+ /// the timezone of the start and end times for the profile. Some examples of valid time zones are: Dateline Standard Time, UTC-11, Hawaiian Standard Time, Alaskan Standard Time, Pacific Standard Time (Mexico), Pacific Standard Time, US Mountain Standard Time, Mountain Standard Time (Mexico), Mountain Standard Time, Central America Standard Time, Central Standard Time, Central Standard Time (Mexico), Canada Central Standard Time, SA Pacific Standard Time, Eastern Standard Time, US Eastern Standard Time, Venezuela Standard Time, Paraguay Standard Time, Atlantic Standard Time, Central Brazilian Standard Time, SA Western Standard Time, Pacific SA Standard Time, Newfoundland Standard Time, E. South America Standard Time, Argentina Standard Time, SA Eastern Standard Time, Greenland Standard Time, Montevideo Standard Time, Bahia Standard Time, UTC-02, Mid-Atlantic Standard Time, Azores Standard Time, Cape Verde Standard Time, Morocco Standard Time, UTC, GMT Standard Time, Greenwich Standard Time, W. Europe Standard Time, Central Europe Standard Time, Romance Standard Time, Central European Standard Time, W. Central Africa Standard Time, Namibia Standard Time, Jordan Standard Time, GTB Standard Time, Middle East Standard Time, Egypt Standard Time, Syria Standard Time, E. Europe Standard Time, South Africa Standard Time, FLE Standard Time, Turkey Standard Time, Israel Standard Time, Kaliningrad Standard Time, Libya Standard Time, Arabic Standard Time, Arab Standard Time, Belarus Standard Time, Russian Standard Time, E. Africa Standard Time, Iran Standard Time, Arabian Standard Time, Azerbaijan Standard Time, Russia Time Zone 3, Mauritius Standard Time, Georgian Standard Time, Caucasus Standard Time, Afghanistan Standard Time, West Asia Standard Time, Ekaterinburg Standard Time, Pakistan Standard Time, India Standard Time, Sri Lanka Standard Time, Nepal Standard Time, Central Asia Standard Time, Bangladesh Standard Time, N. Central Asia Standard Time, Myanmar Standard Time, SE Asia Standard Time, North Asia Standard Time, China Standard Time, North Asia East Standard Time, Singapore Standard Time, W. Australia Standard Time, Taipei Standard Time, Ulaanbaatar Standard Time, Tokyo Standard Time, Korea Standard Time, Yakutsk Standard Time, Cen. Australia Standard Time, AUS Central Standard Time, E. Australia Standard Time, AUS Eastern Standard Time, West Pacific Standard Time, Tasmania Standard Time, Magadan Standard Time, Vladivostok Standard Time, Russia Time Zone 10, Central Pacific Standard Time, Russia Time Zone 11, New Zealand Standard Time, UTC+12, Fiji Standard Time, Kamchatka Standard Time, Tonga Standard Time, Samoa Standard Time, Line Islands Standard Time
+ ///
+ [Input("timeZone")]
+ public Input? TimeZone { get; set; }
+
+ public TimeWindowArgs()
+ {
+ }
+ public static new TimeWindowArgs Empty => new TimeWindowArgs();
+ }
+}
diff --git a/sdk/dotnet/Monitor/Inputs/WebhookNotificationArgs.cs b/sdk/dotnet/Monitor/Inputs/WebhookNotificationArgs.cs
new file mode 100644
index 000000000000..7bc4a649a6ae
--- /dev/null
+++ b/sdk/dotnet/Monitor/Inputs/WebhookNotificationArgs.cs
@@ -0,0 +1,41 @@
+// *** WARNING: this file was generated by pulumi. ***
+// *** Do not edit by hand unless you're certain you know what you are doing! ***
+
+using System;
+using System.Collections.Generic;
+using System.Collections.Immutable;
+using System.Threading.Tasks;
+using Pulumi.Serialization;
+
+namespace Pulumi.AzureNative.Monitor.Inputs
+{
+
+ ///
+ /// Webhook notification of an autoscale event.
+ ///
+ public sealed class WebhookNotificationArgs : global::Pulumi.ResourceArgs
+ {
+ [Input("properties")]
+ private InputMap? _properties;
+
+ ///
+ /// a property bag of settings. This value can be empty.
+ ///
+ public InputMap Properties
+ {
+ get => _properties ?? (_properties = new InputMap());
+ set => _properties = value;
+ }
+
+ ///
+ /// the service address to receive the notification.
+ ///
+ [Input("serviceUri")]
+ public Input? ServiceUri { get; set; }
+
+ public WebhookNotificationArgs()
+ {
+ }
+ public static new WebhookNotificationArgs Empty => new WebhookNotificationArgs();
+ }
+}
diff --git a/sdk/dotnet/Monitor/ListDiagnosticSettingsCategory.cs b/sdk/dotnet/Monitor/ListDiagnosticSettingsCategory.cs
new file mode 100644
index 000000000000..6d86c4db6645
--- /dev/null
+++ b/sdk/dotnet/Monitor/ListDiagnosticSettingsCategory.cs
@@ -0,0 +1,83 @@
+// *** WARNING: this file was generated by pulumi. ***
+// *** Do not edit by hand unless you're certain you know what you are doing! ***
+
+using System;
+using System.Collections.Generic;
+using System.Collections.Immutable;
+using System.Threading.Tasks;
+using Pulumi.Serialization;
+
+namespace Pulumi.AzureNative.Monitor
+{
+ public static class ListDiagnosticSettingsCategory
+ {
+ ///
+ /// Lists the diagnostic settings categories for the specified resource.
+ ///
+ /// Uses Azure REST API version 2021-05-01-preview.
+ ///
+ public static Task InvokeAsync(ListDiagnosticSettingsCategoryArgs args, InvokeOptions? options = null)
+ => global::Pulumi.Deployment.Instance.InvokeAsync("azure-native:monitor:listDiagnosticSettingsCategory", args ?? new ListDiagnosticSettingsCategoryArgs(), options.WithDefaults());
+
+ ///
+ /// Lists the diagnostic settings categories for the specified resource.
+ ///
+ /// Uses Azure REST API version 2021-05-01-preview.
+ ///
+ public static Output Invoke(ListDiagnosticSettingsCategoryInvokeArgs args, InvokeOptions? options = null)
+ => global::Pulumi.Deployment.Instance.Invoke("azure-native:monitor:listDiagnosticSettingsCategory", args ?? new ListDiagnosticSettingsCategoryInvokeArgs(), options.WithDefaults());
+
+ ///
+ /// Lists the diagnostic settings categories for the specified resource.
+ ///
+ /// Uses Azure REST API version 2021-05-01-preview.
+ ///
+ public static Output Invoke(ListDiagnosticSettingsCategoryInvokeArgs args, InvokeOutputOptions options)
+ => global::Pulumi.Deployment.Instance.Invoke("azure-native:monitor:listDiagnosticSettingsCategory", args ?? new ListDiagnosticSettingsCategoryInvokeArgs(), options.WithDefaults());
+ }
+
+
+ public sealed class ListDiagnosticSettingsCategoryArgs : global::Pulumi.InvokeArgs
+ {
+ ///
+ /// The identifier of the resource.
+ ///
+ [Input("resourceUri", required: true)]
+ public string ResourceUri { get; set; } = null!;
+
+ public ListDiagnosticSettingsCategoryArgs()
+ {
+ }
+ public static new ListDiagnosticSettingsCategoryArgs Empty => new ListDiagnosticSettingsCategoryArgs();
+ }
+
+ public sealed class ListDiagnosticSettingsCategoryInvokeArgs : global::Pulumi.InvokeArgs
+ {
+ ///
+ /// The identifier of the resource.
+ ///
+ [Input("resourceUri", required: true)]
+ public Input ResourceUri { get; set; } = null!;
+
+ public ListDiagnosticSettingsCategoryInvokeArgs()
+ {
+ }
+ public static new ListDiagnosticSettingsCategoryInvokeArgs Empty => new ListDiagnosticSettingsCategoryInvokeArgs();
+ }
+
+
+ [OutputType]
+ public sealed class ListDiagnosticSettingsCategoryResult
+ {
+ ///
+ /// The collection of diagnostic settings category resources.
+ ///
+ public readonly ImmutableArray Value;
+
+ [OutputConstructor]
+ private ListDiagnosticSettingsCategoryResult(ImmutableArray value)
+ {
+ Value = value;
+ }
+ }
+}
diff --git a/sdk/dotnet/Monitor/ManagementGroupDiagnosticSetting.cs b/sdk/dotnet/Monitor/ManagementGroupDiagnosticSetting.cs
new file mode 100644
index 000000000000..bc11db75f289
--- /dev/null
+++ b/sdk/dotnet/Monitor/ManagementGroupDiagnosticSetting.cs
@@ -0,0 +1,204 @@
+// *** WARNING: this file was generated by pulumi. ***
+// *** Do not edit by hand unless you're certain you know what you are doing! ***
+
+using System;
+using System.Collections.Generic;
+using System.Collections.Immutable;
+using System.Threading.Tasks;
+using Pulumi.Serialization;
+
+namespace Pulumi.AzureNative.Monitor
+{
+ ///
+ /// The management group diagnostic setting resource.
+ ///
+ /// Uses Azure REST API version 2021-05-01-preview.
+ ///
+ [AzureNativeResourceType("azure-native:monitor:ManagementGroupDiagnosticSetting")]
+ public partial class ManagementGroupDiagnosticSetting : global::Pulumi.CustomResource
+ {
+ ///
+ /// The Azure API version of the resource.
+ ///
+ [Output("azureApiVersion")]
+ public Output AzureApiVersion { get; private set; } = null!;
+
+ ///
+ /// The resource Id for the event hub authorization rule.
+ ///
+ [Output("eventHubAuthorizationRuleId")]
+ public Output EventHubAuthorizationRuleId { get; private set; } = null!;
+
+ ///
+ /// The name of the event hub. If none is specified, the default event hub will be selected.
+ ///
+ [Output("eventHubName")]
+ public Output EventHubName { get; private set; } = null!;
+
+ ///
+ /// The list of logs settings.
+ ///
+ [Output("logs")]
+ public Output> Logs { get; private set; } = null!;
+
+ ///
+ /// The full ARM resource ID of the Marketplace resource to which you would like to send Diagnostic Logs.
+ ///
+ [Output("marketplacePartnerId")]
+ public Output MarketplacePartnerId { get; private set; } = null!;
+
+ ///
+ /// The name of the resource
+ ///
+ [Output("name")]
+ public Output Name { get; private set; } = null!;
+
+ ///
+ /// The service bus rule Id of the diagnostic setting. This is here to maintain backwards compatibility.
+ ///
+ [Output("serviceBusRuleId")]
+ public Output ServiceBusRuleId { get; private set; } = null!;
+
+ ///
+ /// The resource ID of the storage account to which you would like to send Diagnostic Logs.
+ ///
+ [Output("storageAccountId")]
+ public Output StorageAccountId { get; private set; } = null!;
+
+ ///
+ /// The system metadata related to this resource.
+ ///
+ [Output("systemData")]
+ public Output SystemData { get; private set; } = null!;
+
+ ///
+ /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
+ ///
+ [Output("type")]
+ public Output Type { get; private set; } = null!;
+
+ ///
+ /// The full ARM resource ID of the Log Analytics workspace to which you would like to send Diagnostic Logs. Example: /subscriptions/4b9e8510-67ab-4e9a-95a9-e2f1e570ea9c/resourceGroups/insights-integration/providers/Microsoft.OperationalInsights/workspaces/viruela2
+ ///
+ [Output("workspaceId")]
+ public Output WorkspaceId { get; private set; } = null!;
+
+
+ ///
+ /// Create a ManagementGroupDiagnosticSetting resource with the given unique name, arguments, and options.
+ ///
+ ///
+ /// The unique name of the resource
+ /// The arguments used to populate this resource's properties
+ /// A bag of options that control this resource's behavior
+ public ManagementGroupDiagnosticSetting(string name, ManagementGroupDiagnosticSettingArgs args, CustomResourceOptions? options = null)
+ : base("azure-native:monitor:ManagementGroupDiagnosticSetting", name, args ?? new ManagementGroupDiagnosticSettingArgs(), MakeResourceOptions(options, ""))
+ {
+ }
+
+ private ManagementGroupDiagnosticSetting(string name, Input id, CustomResourceOptions? options = null)
+ : base("azure-native:monitor:ManagementGroupDiagnosticSetting", name, null, MakeResourceOptions(options, id))
+ {
+ }
+
+ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id)
+ {
+ var defaultOptions = new CustomResourceOptions
+ {
+ Version = Utilities.Version,
+ Aliases =
+ {
+ new global::Pulumi.Alias { Type = "azure-native:insights/v20200101preview:ManagementGroupDiagnosticSetting" },
+ new global::Pulumi.Alias { Type = "azure-native:insights/v20210501preview:ManagementGroupDiagnosticSetting" },
+ new global::Pulumi.Alias { Type = "azure-native:insights:ManagementGroupDiagnosticSetting" },
+ new global::Pulumi.Alias { Type = "azure-native:monitor/v20200101preview:ManagementGroupDiagnosticSetting" },
+ new global::Pulumi.Alias { Type = "azure-native:monitor/v20210501preview:ManagementGroupDiagnosticSetting" },
+ },
+ };
+ var merged = CustomResourceOptions.Merge(defaultOptions, options);
+ // Override the ID if one was specified for consistency with other language SDKs.
+ merged.Id = id ?? merged.Id;
+ return merged;
+ }
+ ///
+ /// Get an existing ManagementGroupDiagnosticSetting resource's state with the given name, ID, and optional extra
+ /// properties used to qualify the lookup.
+ ///
+ ///
+ /// The unique name of the resulting resource.
+ /// The unique provider ID of the resource to lookup.
+ /// A bag of options that control this resource's behavior
+ public static ManagementGroupDiagnosticSetting Get(string name, Input id, CustomResourceOptions? options = null)
+ {
+ return new ManagementGroupDiagnosticSetting(name, id, options);
+ }
+ }
+
+ public sealed class ManagementGroupDiagnosticSettingArgs : global::Pulumi.ResourceArgs
+ {
+ ///
+ /// The resource Id for the event hub authorization rule.
+ ///
+ [Input("eventHubAuthorizationRuleId")]
+ public Input? EventHubAuthorizationRuleId { get; set; }
+
+ ///
+ /// The name of the event hub. If none is specified, the default event hub will be selected.
+ ///
+ [Input("eventHubName")]
+ public Input? EventHubName { get; set; }
+
+ [Input("logs")]
+ private InputList? _logs;
+
+ ///
+ /// The list of logs settings.
+ ///
+ public InputList Logs
+ {
+ get => _logs ?? (_logs = new InputList());
+ set => _logs = value;
+ }
+
+ ///
+ /// The management group id.
+ ///
+ [Input("managementGroupId", required: true)]
+ public Input ManagementGroupId { get; set; } = null!;
+
+ ///
+ /// The full ARM resource ID of the Marketplace resource to which you would like to send Diagnostic Logs.
+ ///
+ [Input("marketplacePartnerId")]
+ public Input? MarketplacePartnerId { get; set; }
+
+ ///
+ /// The name of the diagnostic setting.
+ ///
+ [Input("name")]
+ public Input? Name { get; set; }
+
+ ///
+ /// The service bus rule Id of the diagnostic setting. This is here to maintain backwards compatibility.
+ ///
+ [Input("serviceBusRuleId")]
+ public Input? ServiceBusRuleId { get; set; }
+
+ ///
+ /// The resource ID of the storage account to which you would like to send Diagnostic Logs.
+ ///
+ [Input("storageAccountId")]
+ public Input? StorageAccountId { get; set; }
+
+ ///
+ /// The full ARM resource ID of the Log Analytics workspace to which you would like to send Diagnostic Logs. Example: /subscriptions/4b9e8510-67ab-4e9a-95a9-e2f1e570ea9c/resourceGroups/insights-integration/providers/Microsoft.OperationalInsights/workspaces/viruela2
+ ///
+ [Input("workspaceId")]
+ public Input? WorkspaceId { get; set; }
+
+ public ManagementGroupDiagnosticSettingArgs()
+ {
+ }
+ public static new ManagementGroupDiagnosticSettingArgs Empty => new ManagementGroupDiagnosticSettingArgs();
+ }
+}
diff --git a/sdk/dotnet/Monitor/Outputs/AutoscaleNotificationResponse.cs b/sdk/dotnet/Monitor/Outputs/AutoscaleNotificationResponse.cs
new file mode 100644
index 000000000000..5efd60c47457
--- /dev/null
+++ b/sdk/dotnet/Monitor/Outputs/AutoscaleNotificationResponse.cs
@@ -0,0 +1,45 @@
+// *** WARNING: this file was generated by pulumi. ***
+// *** Do not edit by hand unless you're certain you know what you are doing! ***
+
+using System;
+using System.Collections.Generic;
+using System.Collections.Immutable;
+using System.Threading.Tasks;
+using Pulumi.Serialization;
+
+namespace Pulumi.AzureNative.Monitor.Outputs
+{
+
+ ///
+ /// Autoscale notification.
+ ///
+ [OutputType]
+ public sealed class AutoscaleNotificationResponse
+ {
+ ///
+ /// the email notification.
+ ///
+ public readonly Outputs.EmailNotificationResponse? Email;
+ ///
+ /// the operation associated with the notification and its value must be "scale"
+ ///
+ public readonly string Operation;
+ ///
+ /// the collection of webhook notifications.
+ ///
+ public readonly ImmutableArray Webhooks;
+
+ [OutputConstructor]
+ private AutoscaleNotificationResponse(
+ Outputs.EmailNotificationResponse? email,
+
+ string operation,
+
+ ImmutableArray webhooks)
+ {
+ Email = email;
+ Operation = operation;
+ Webhooks = webhooks;
+ }
+ }
+}
diff --git a/sdk/dotnet/Monitor/Outputs/AutoscaleProfileResponse.cs b/sdk/dotnet/Monitor/Outputs/AutoscaleProfileResponse.cs
new file mode 100644
index 000000000000..57604c7f5de7
--- /dev/null
+++ b/sdk/dotnet/Monitor/Outputs/AutoscaleProfileResponse.cs
@@ -0,0 +1,59 @@
+// *** WARNING: this file was generated by pulumi. ***
+// *** Do not edit by hand unless you're certain you know what you are doing! ***
+
+using System;
+using System.Collections.Generic;
+using System.Collections.Immutable;
+using System.Threading.Tasks;
+using Pulumi.Serialization;
+
+namespace Pulumi.AzureNative.Monitor.Outputs
+{
+
+ ///
+ /// Autoscale profile.
+ ///
+ [OutputType]
+ public sealed class AutoscaleProfileResponse
+ {
+ ///
+ /// the number of instances that can be used during this profile.
+ ///
+ public readonly Outputs.ScaleCapacityResponse Capacity;
+ ///
+ /// the specific date-time for the profile. This element is not used if the Recurrence element is used.
+ ///
+ public readonly Outputs.TimeWindowResponse? FixedDate;
+ ///
+ /// the name of the profile.
+ ///
+ public readonly string Name;
+ ///
+ /// the repeating times at which this profile begins. This element is not used if the FixedDate element is used.
+ ///
+ public readonly Outputs.RecurrenceResponse? Recurrence;
+ ///
+ /// the collection of rules that provide the triggers and parameters for the scaling action. A maximum of 10 rules can be specified.
+ ///
+ public readonly ImmutableArray Rules;
+
+ [OutputConstructor]
+ private AutoscaleProfileResponse(
+ Outputs.ScaleCapacityResponse capacity,
+
+ Outputs.TimeWindowResponse? fixedDate,
+
+ string name,
+
+ Outputs.RecurrenceResponse? recurrence,
+
+ ImmutableArray rules)
+ {
+ Capacity = capacity;
+ FixedDate = fixedDate;
+ Name = name;
+ Recurrence = recurrence;
+ Rules = rules;
+ }
+ }
+}
diff --git a/sdk/dotnet/Monitor/Outputs/AutoscaleSettingResponse.cs b/sdk/dotnet/Monitor/Outputs/AutoscaleSettingResponse.cs
new file mode 100644
index 000000000000..dcdf6b335516
--- /dev/null
+++ b/sdk/dotnet/Monitor/Outputs/AutoscaleSettingResponse.cs
@@ -0,0 +1,73 @@
+// *** WARNING: this file was generated by pulumi. ***
+// *** Do not edit by hand unless you're certain you know what you are doing! ***
+
+using System;
+using System.Collections.Generic;
+using System.Collections.Immutable;
+using System.Threading.Tasks;
+using Pulumi.Serialization;
+
+namespace Pulumi.AzureNative.Monitor.Outputs
+{
+
+ ///
+ /// A setting that contains all of the configuration for the automatic scaling of a resource.
+ ///
+ [OutputType]
+ public sealed class AutoscaleSettingResponse
+ {
+ ///
+ /// the enabled flag. Specifies whether automatic scaling is enabled for the resource. The default value is 'false'.
+ ///
+ public readonly bool? Enabled;
+ ///
+ /// the name of the autoscale setting.
+ ///
+ public readonly string? Name;
+ ///
+ /// the collection of notifications.
+ ///
+ public readonly ImmutableArray Notifications;
+ ///
+ /// the predictive autoscale policy mode.
+ ///
+ public readonly Outputs.PredictiveAutoscalePolicyResponse? PredictiveAutoscalePolicy;
+ ///
+ /// the collection of automatic scaling profiles that specify different scaling parameters for different time periods. A maximum of 20 profiles can be specified.
+ ///
+ public readonly ImmutableArray Profiles;
+ ///
+ /// the location of the resource that the autoscale setting should be added to.
+ ///
+ public readonly string? TargetResourceLocation;
+ ///
+ /// the resource identifier of the resource that the autoscale setting should be added to.
+ ///
+ public readonly string? TargetResourceUri;
+
+ [OutputConstructor]
+ private AutoscaleSettingResponse(
+ bool? enabled,
+
+ string? name,
+
+ ImmutableArray notifications,
+
+ Outputs.PredictiveAutoscalePolicyResponse? predictiveAutoscalePolicy,
+
+ ImmutableArray profiles,
+
+ string? targetResourceLocation,
+
+ string? targetResourceUri)
+ {
+ Enabled = enabled;
+ Name = name;
+ Notifications = notifications;
+ PredictiveAutoscalePolicy = predictiveAutoscalePolicy;
+ Profiles = profiles;
+ TargetResourceLocation = targetResourceLocation;
+ TargetResourceUri = targetResourceUri;
+ }
+ }
+}
diff --git a/sdk/dotnet/Monitor/Outputs/DiagnosticSettingsCategoryResourceResponse.cs b/sdk/dotnet/Monitor/Outputs/DiagnosticSettingsCategoryResourceResponse.cs
new file mode 100644
index 000000000000..bbf8603a879d
--- /dev/null
+++ b/sdk/dotnet/Monitor/Outputs/DiagnosticSettingsCategoryResourceResponse.cs
@@ -0,0 +1,66 @@
+// *** WARNING: this file was generated by pulumi. ***
+// *** Do not edit by hand unless you're certain you know what you are doing! ***
+
+using System;
+using System.Collections.Generic;
+using System.Collections.Immutable;
+using System.Threading.Tasks;
+using Pulumi.Serialization;
+
+namespace Pulumi.AzureNative.Monitor.Outputs
+{
+
+ ///
+ /// The diagnostic settings category resource.
+ ///
+ [OutputType]
+ public sealed class DiagnosticSettingsCategoryResourceResponse
+ {
+ ///
+ /// the collection of what category groups are supported.
+ ///
+ public readonly ImmutableArray CategoryGroups;
+ ///
+ /// The type of the diagnostic settings category.
+ ///
+ public readonly string? CategoryType;
+ ///
+ /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
+ ///
+ public readonly string Id;
+ ///
+ /// The name of the resource
+ ///
+ public readonly string Name;
+ ///
+ /// The system metadata related to this resource.
+ ///
+ public readonly Outputs.SystemDataResponse SystemData;
+ ///
+ /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
+ ///
+ public readonly string Type;
+
+ [OutputConstructor]
+ private DiagnosticSettingsCategoryResourceResponse(
+ ImmutableArray categoryGroups,
+
+ string? categoryType,
+
+ string id,
+
+ string name,
+
+ Outputs.SystemDataResponse systemData,
+
+ string type)
+ {
+ CategoryGroups = categoryGroups;
+ CategoryType = categoryType;
+ Id = id;
+ Name = name;
+ SystemData = systemData;
+ Type = type;
+ }
+ }
+}
diff --git a/sdk/dotnet/Monitor/Outputs/EmailNotificationResponse.cs b/sdk/dotnet/Monitor/Outputs/EmailNotificationResponse.cs
new file mode 100644
index 000000000000..0d8250b95f84
--- /dev/null
+++ b/sdk/dotnet/Monitor/Outputs/EmailNotificationResponse.cs
@@ -0,0 +1,45 @@
+// *** WARNING: this file was generated by pulumi. ***
+// *** Do not edit by hand unless you're certain you know what you are doing! ***
+
+using System;
+using System.Collections.Generic;
+using System.Collections.Immutable;
+using System.Threading.Tasks;
+using Pulumi.Serialization;
+
+namespace Pulumi.AzureNative.Monitor.Outputs
+{
+
+ ///
+ /// Email notification of an autoscale event.
+ ///
+ [OutputType]
+ public sealed class EmailNotificationResponse
+ {
+ ///
+ /// the custom e-mails list. This value can be null or empty, in which case this attribute will be ignored.
+ ///
+ public readonly ImmutableArray CustomEmails;
+ ///
+ /// a value indicating whether to send email to subscription administrator.
+ ///
+ public readonly bool? SendToSubscriptionAdministrator;
+ ///
+ /// a value indicating whether to send email to subscription co-administrators.
+ ///
+ public readonly bool? SendToSubscriptionCoAdministrators;
+
+ [OutputConstructor]
+ private EmailNotificationResponse(
+ ImmutableArray customEmails,
+
+ bool? sendToSubscriptionAdministrator,
+
+ bool? sendToSubscriptionCoAdministrators)
+ {
+ CustomEmails = customEmails;
+ SendToSubscriptionAdministrator = sendToSubscriptionAdministrator;
+ SendToSubscriptionCoAdministrators = sendToSubscriptionCoAdministrators;
+ }
+ }
+}
diff --git a/sdk/dotnet/Monitor/Outputs/LogSettingsResponse.cs b/sdk/dotnet/Monitor/Outputs/LogSettingsResponse.cs
new file mode 100644
index 000000000000..bac2298ea5dd
--- /dev/null
+++ b/sdk/dotnet/Monitor/Outputs/LogSettingsResponse.cs
@@ -0,0 +1,52 @@
+// *** WARNING: this file was generated by pulumi. ***
+// *** Do not edit by hand unless you're certain you know what you are doing! ***
+
+using System;
+using System.Collections.Generic;
+using System.Collections.Immutable;
+using System.Threading.Tasks;
+using Pulumi.Serialization;
+
+namespace Pulumi.AzureNative.Monitor.Outputs
+{
+
+ ///
+ /// Part of MultiTenantDiagnosticSettings. Specifies the settings for a particular log.
+ ///
+ [OutputType]
+ public sealed class LogSettingsResponse
+ {
+ ///
+ /// Name of a Diagnostic Log category for a resource type this setting is applied to. To obtain the list of Diagnostic Log categories for a resource, first perform a GET diagnostic settings operation.
+ ///
+ public readonly string? Category;
+ ///
+ /// Name of a Diagnostic Log category group for a resource type this setting is applied to. To obtain the list of Diagnostic Log categories for a resource, first perform a GET diagnostic settings operation.
+ ///
+ public readonly string? CategoryGroup;
+ ///
+ /// a value indicating whether this log is enabled.
+ ///
+ public readonly bool Enabled;
+ ///
+ /// the retention policy for this log.
+ ///
+ public readonly Outputs.RetentionPolicyResponse? RetentionPolicy;
+
+ [OutputConstructor]
+ private LogSettingsResponse(
+ string? category,
+
+ string? categoryGroup,
+
+ bool enabled,
+
+ Outputs.RetentionPolicyResponse? retentionPolicy)
+ {
+ Category = category;
+ CategoryGroup = categoryGroup;
+ Enabled = enabled;
+ RetentionPolicy = retentionPolicy;
+ }
+ }
+}
diff --git a/sdk/dotnet/Monitor/Outputs/ManagementGroupLogSettingsResponse.cs b/sdk/dotnet/Monitor/Outputs/ManagementGroupLogSettingsResponse.cs
new file mode 100644
index 000000000000..3e31c193d8fa
--- /dev/null
+++ b/sdk/dotnet/Monitor/Outputs/ManagementGroupLogSettingsResponse.cs
@@ -0,0 +1,45 @@
+// *** WARNING: this file was generated by pulumi. ***
+// *** Do not edit by hand unless you're certain you know what you are doing! ***
+
+using System;
+using System.Collections.Generic;
+using System.Collections.Immutable;
+using System.Threading.Tasks;
+using Pulumi.Serialization;
+
+namespace Pulumi.AzureNative.Monitor.Outputs
+{
+
+ ///
+ /// Part of Management Group diagnostic setting. Specifies the settings for a particular log.
+ ///
+ [OutputType]
+ public sealed class ManagementGroupLogSettingsResponse
+ {
+ ///
+ /// Name of a Management Group Diagnostic Log category for a resource type this setting is applied to.
+ ///
+ public readonly string? Category;
+ ///
+ /// Name of a Management Group Diagnostic Log category group for a resource type this setting is applied to.
+ ///
+ public readonly string? CategoryGroup;
+ ///
+ /// a value indicating whether this log is enabled.
+ ///
+ public readonly bool Enabled;
+
+ [OutputConstructor]
+ private ManagementGroupLogSettingsResponse(
+ string? category,
+
+ string? categoryGroup,
+
+ bool enabled)
+ {
+ Category = category;
+ CategoryGroup = categoryGroup;
+ Enabled = enabled;
+ }
+ }
+}
diff --git a/sdk/dotnet/Monitor/Outputs/MetricSettingsResponse.cs b/sdk/dotnet/Monitor/Outputs/MetricSettingsResponse.cs
new file mode 100644
index 000000000000..a07c4b8a94f8
--- /dev/null
+++ b/sdk/dotnet/Monitor/Outputs/MetricSettingsResponse.cs
@@ -0,0 +1,52 @@
+// *** WARNING: this file was generated by pulumi. ***
+// *** Do not edit by hand unless you're certain you know what you are doing! ***
+
+using System;
+using System.Collections.Generic;
+using System.Collections.Immutable;
+using System.Threading.Tasks;
+using Pulumi.Serialization;
+
+namespace Pulumi.AzureNative.Monitor.Outputs
+{
+
+ ///
+ /// Part of MultiTenantDiagnosticSettings. Specifies the settings for a particular metric.
+ ///
+ [OutputType]
+ public sealed class MetricSettingsResponse
+ {
+ ///
+ /// Name of a Diagnostic Metric category for a resource type this setting is applied to. To obtain the list of Diagnostic metric categories for a resource, first perform a GET diagnostic settings operation.
+ ///
+ public readonly string? Category;
+ ///
+ /// a value indicating whether this category is enabled.
+ ///
+ public readonly bool Enabled;
+ ///
+ /// the retention policy for this category.
+ ///
+ public readonly Outputs.RetentionPolicyResponse? RetentionPolicy;
+ ///
+ /// the timegrain of the metric in ISO8601 format.
+ ///
+ public readonly string? TimeGrain;
+
+ [OutputConstructor]
+ private MetricSettingsResponse(
+ string? category,
+
+ bool enabled,
+
+ Outputs.RetentionPolicyResponse? retentionPolicy,
+
+ string? timeGrain)
+ {
+ Category = category;
+ Enabled = enabled;
+ RetentionPolicy = retentionPolicy;
+ TimeGrain = timeGrain;
+ }
+ }
+}
diff --git a/sdk/dotnet/Monitor/Outputs/MetricTriggerResponse.cs b/sdk/dotnet/Monitor/Outputs/MetricTriggerResponse.cs
new file mode 100644
index 000000000000..b25f1f4aea66
--- /dev/null
+++ b/sdk/dotnet/Monitor/Outputs/MetricTriggerResponse.cs
@@ -0,0 +1,108 @@
+// *** WARNING: this file was generated by pulumi. ***
+// *** Do not edit by hand unless you're certain you know what you are doing! ***
+
+using System;
+using System.Collections.Generic;
+using System.Collections.Immutable;
+using System.Threading.Tasks;
+using Pulumi.Serialization;
+
+namespace Pulumi.AzureNative.Monitor.Outputs
+{
+
+ ///
+ /// The trigger that results in a scaling action.
+ ///
+ [OutputType]
+ public sealed class MetricTriggerResponse
+ {
+ ///
+ /// List of dimension conditions. For example: [{"DimensionName":"AppName","Operator":"Equals","Values":["App1"]},{"DimensionName":"Deployment","Operator":"Equals","Values":["default"]}].
+ ///
+ public readonly ImmutableArray Dimensions;
+ ///
+ /// a value indicating whether metric should divide per instance.
+ ///
+ public readonly bool? DividePerInstance;
+ ///
+ /// the name of the metric that defines what the rule monitors.
+ ///
+ public readonly string MetricName;
+ ///
+ /// the namespace of the metric that defines what the rule monitors.
+ ///
+ public readonly string? MetricNamespace;
+ ///
+ /// the location of the resource the rule monitors.
+ ///
+ public readonly string? MetricResourceLocation;
+ ///
+ /// the resource identifier of the resource the rule monitors.
+ ///
+ public readonly string MetricResourceUri;
+ ///
+ /// the operator that is used to compare the metric data and the threshold.
+ ///
+ public readonly string Operator;
+ ///
+ /// the metric statistic type. How the metrics from multiple instances are combined.
+ ///
+ public readonly string Statistic;
+ ///
+ /// the threshold of the metric that triggers the scale action.
+ ///
+ public readonly double Threshold;
+ ///
+ /// time aggregation type. How the data that is collected should be combined over time. The default value is Average.
+ ///
+ public readonly string TimeAggregation;
+ ///
+ /// the granularity of metrics the rule monitors. Must be one of the predefined values returned from metric definitions for the metric. Must be between 12 hours and 1 minute.
+ ///
+ public readonly string TimeGrain;
+ ///
+ /// the range of time in which instance data is collected. This value must be greater than the delay in metric collection, which can vary from resource-to-resource. Must be between 12 hours and 5 minutes.
+ ///
+ public readonly string TimeWindow;
+
+ [OutputConstructor]
+ private MetricTriggerResponse(
+ ImmutableArray dimensions,
+
+ bool? dividePerInstance,
+
+ string metricName,
+
+ string? metricNamespace,
+
+ string? metricResourceLocation,
+
+ string metricResourceUri,
+
+ string @operator,
+
+ string statistic,
+
+ double threshold,
+
+ string timeAggregation,
+
+ string timeGrain,
+
+ string timeWindow)
+ {
+ Dimensions = dimensions;
+ DividePerInstance = dividePerInstance;
+ MetricName = metricName;
+ MetricNamespace = metricNamespace;
+ MetricResourceLocation = metricResourceLocation;
+ MetricResourceUri = metricResourceUri;
+ Operator = @operator;
+ Statistic = statistic;
+ Threshold = threshold;
+ TimeAggregation = timeAggregation;
+ TimeGrain = timeGrain;
+ TimeWindow = timeWindow;
+ }
+ }
+}
diff --git a/sdk/dotnet/Monitor/Outputs/PredictiveAutoscalePolicyResponse.cs b/sdk/dotnet/Monitor/Outputs/PredictiveAutoscalePolicyResponse.cs
new file mode 100644
index 000000000000..f29024804e58
--- /dev/null
+++ b/sdk/dotnet/Monitor/Outputs/PredictiveAutoscalePolicyResponse.cs
@@ -0,0 +1,38 @@
+// *** WARNING: this file was generated by pulumi. ***
+// *** Do not edit by hand unless you're certain you know what you are doing! ***
+
+using System;
+using System.Collections.Generic;
+using System.Collections.Immutable;
+using System.Threading.Tasks;
+using Pulumi.Serialization;
+
+namespace Pulumi.AzureNative.Monitor.Outputs
+{
+
+ ///
+ /// The parameters for enabling predictive autoscale.
+ ///
+ [OutputType]
+ public sealed class PredictiveAutoscalePolicyResponse
+ {
+ ///
+ /// the amount of time to specify by which instances are launched in advance. It must be between 1 minute and 60 minutes in ISO 8601 format.
+ ///
+ public readonly string? ScaleLookAheadTime;
+ ///
+ /// the predictive autoscale mode
+ ///
+ public readonly string ScaleMode;
+
+ [OutputConstructor]
+ private PredictiveAutoscalePolicyResponse(
+ string? scaleLookAheadTime,
+
+ string scaleMode)
+ {
+ ScaleLookAheadTime = scaleLookAheadTime;
+ ScaleMode = scaleMode;
+ }
+ }
+}
diff --git a/sdk/dotnet/Monitor/Outputs/RecurrenceResponse.cs b/sdk/dotnet/Monitor/Outputs/RecurrenceResponse.cs
new file mode 100644
index 000000000000..57120997038c
--- /dev/null
+++ b/sdk/dotnet/Monitor/Outputs/RecurrenceResponse.cs
@@ -0,0 +1,38 @@
+// *** WARNING: this file was generated by pulumi. ***
+// *** Do not edit by hand unless you're certain you know what you are doing! ***
+
+using System;
+using System.Collections.Generic;
+using System.Collections.Immutable;
+using System.Threading.Tasks;
+using Pulumi.Serialization;
+
+namespace Pulumi.AzureNative.Monitor.Outputs
+{
+
+ ///
+ /// The repeating times at which this profile begins. This element is not used if the FixedDate element is used.
+ ///
+ [OutputType]
+ public sealed class RecurrenceResponse
+ {
+ ///
+ /// the recurrence frequency. How often the schedule profile should take effect. This value must be Week, meaning each week will have the same set of profiles. For example, to set a daily schedule, set **schedule** to every day of the week. The frequency property specifies that the schedule is repeated weekly.
+ ///
+ public readonly string Frequency;
+ ///
+ /// the scheduling constraints for when the profile begins.
+ ///
+ public readonly Outputs.RecurrentScheduleResponse Schedule;
+
+ [OutputConstructor]
+ private RecurrenceResponse(
+ string frequency,
+
+ Outputs.RecurrentScheduleResponse schedule)
+ {
+ Frequency = frequency;
+ Schedule = schedule;
+ }
+ }
+}
diff --git a/sdk/dotnet/Monitor/Outputs/RecurrentScheduleResponse.cs b/sdk/dotnet/Monitor/Outputs/RecurrentScheduleResponse.cs
new file mode 100644
index 000000000000..bcb9cfa79f91
--- /dev/null
+++ b/sdk/dotnet/Monitor/Outputs/RecurrentScheduleResponse.cs
@@ -0,0 +1,52 @@
+// *** WARNING: this file was generated by pulumi. ***
+// *** Do not edit by hand unless you're certain you know what you are doing! ***
+
+using System;
+using System.Collections.Generic;
+using System.Collections.Immutable;
+using System.Threading.Tasks;
+using Pulumi.Serialization;
+
+namespace Pulumi.AzureNative.Monitor.Outputs
+{
+
+ ///
+ /// The scheduling constraints for when the profile begins.
+ ///
+ [OutputType]
+ public sealed class RecurrentScheduleResponse
+ {
+ ///
+ /// the collection of days that the profile takes effect on. Possible values are Sunday through Saturday.
+ ///
+ public readonly ImmutableArray Days;
+ ///
+ /// A collection of hours that the profile takes effect on. Values supported are 0 to 23 on the 24-hour clock (AM/PM times are not supported).
+ ///
+ public readonly ImmutableArray Hours;
+ ///
+ /// A collection of minutes at which the profile takes effect at.
+ ///
+ public readonly ImmutableArray Minutes;
+ ///
+ /// the timezone for the hours of the profile. Some examples of valid time zones are: Dateline Standard Time, UTC-11, Hawaiian Standard Time, Alaskan Standard Time, Pacific Standard Time (Mexico), Pacific Standard Time, US Mountain Standard Time, Mountain Standard Time (Mexico), Mountain Standard Time, Central America Standard Time, Central Standard Time, Central Standard Time (Mexico), Canada Central Standard Time, SA Pacific Standard Time, Eastern Standard Time, US Eastern Standard Time, Venezuela Standard Time, Paraguay Standard Time, Atlantic Standard Time, Central Brazilian Standard Time, SA Western Standard Time, Pacific SA Standard Time, Newfoundland Standard Time, E. South America Standard Time, Argentina Standard Time, SA Eastern Standard Time, Greenland Standard Time, Montevideo Standard Time, Bahia Standard Time, UTC-02, Mid-Atlantic Standard Time, Azores Standard Time, Cape Verde Standard Time, Morocco Standard Time, UTC, GMT Standard Time, Greenwich Standard Time, W. Europe Standard Time, Central Europe Standard Time, Romance Standard Time, Central European Standard Time, W. Central Africa Standard Time, Namibia Standard Time, Jordan Standard Time, GTB Standard Time, Middle East Standard Time, Egypt Standard Time, Syria Standard Time, E. Europe Standard Time, South Africa Standard Time, FLE Standard Time, Turkey Standard Time, Israel Standard Time, Kaliningrad Standard Time, Libya Standard Time, Arabic Standard Time, Arab Standard Time, Belarus Standard Time, Russian Standard Time, E. Africa Standard Time, Iran Standard Time, Arabian Standard Time, Azerbaijan Standard Time, Russia Time Zone 3, Mauritius Standard Time, Georgian Standard Time, Caucasus Standard Time, Afghanistan Standard Time, West Asia Standard Time, Ekaterinburg Standard Time, Pakistan Standard Time, India Standard Time, Sri Lanka Standard Time, Nepal Standard Time, Central Asia Standard Time, Bangladesh Standard Time, N. Central Asia Standard Time, Myanmar Standard Time, SE Asia Standard Time, North Asia Standard Time, China Standard Time, North Asia East Standard Time, Singapore Standard Time, W. Australia Standard Time, Taipei Standard Time, Ulaanbaatar Standard Time, Tokyo Standard Time, Korea Standard Time, Yakutsk Standard Time, Cen. Australia Standard Time, AUS Central Standard Time, E. Australia Standard Time, AUS Eastern Standard Time, West Pacific Standard Time, Tasmania Standard Time, Magadan Standard Time, Vladivostok Standard Time, Russia Time Zone 10, Central Pacific Standard Time, Russia Time Zone 11, New Zealand Standard Time, UTC+12, Fiji Standard Time, Kamchatka Standard Time, Tonga Standard Time, Samoa Standard Time, Line Islands Standard Time
+ ///
+ public readonly string TimeZone;
+
+ [OutputConstructor]
+ private RecurrentScheduleResponse(
+ ImmutableArray days,
+
+ ImmutableArray hours,
+
+ ImmutableArray minutes,
+
+ string timeZone)
+ {
+ Days = days;
+ Hours = hours;
+ Minutes = minutes;
+ TimeZone = timeZone;
+ }
+ }
+}
diff --git a/sdk/dotnet/Monitor/Outputs/RetentionPolicyResponse.cs b/sdk/dotnet/Monitor/Outputs/RetentionPolicyResponse.cs
new file mode 100644
index 000000000000..d498c73f484c
--- /dev/null
+++ b/sdk/dotnet/Monitor/Outputs/RetentionPolicyResponse.cs
@@ -0,0 +1,38 @@
+// *** WARNING: this file was generated by pulumi. ***
+// *** Do not edit by hand unless you're certain you know what you are doing! ***
+
+using System;
+using System.Collections.Generic;
+using System.Collections.Immutable;
+using System.Threading.Tasks;
+using Pulumi.Serialization;
+
+namespace Pulumi.AzureNative.Monitor.Outputs
+{
+
+ ///
+ /// Specifies the retention policy for the log.
+ ///
+ [OutputType]
+ public sealed class RetentionPolicyResponse
+ {
+ ///
+ /// the number of days for the retention in days. A value of 0 will retain the events indefinitely.
+ ///
+ public readonly int Days;
+ ///
+ /// a value indicating whether the retention policy is enabled.
+ ///
+ public readonly bool Enabled;
+
+ [OutputConstructor]
+ private RetentionPolicyResponse(
+ int days,
+
+ bool enabled)
+ {
+ Days = days;
+ Enabled = enabled;
+ }
+ }
+}
diff --git a/sdk/dotnet/Monitor/Outputs/ScaleActionResponse.cs b/sdk/dotnet/Monitor/Outputs/ScaleActionResponse.cs
new file mode 100644
index 000000000000..c213fd5ed0a5
--- /dev/null
+++ b/sdk/dotnet/Monitor/Outputs/ScaleActionResponse.cs
@@ -0,0 +1,52 @@
+// *** WARNING: this file was generated by pulumi. ***
+// *** Do not edit by hand unless you're certain you know what you are doing! ***
+
+using System;
+using System.Collections.Generic;
+using System.Collections.Immutable;
+using System.Threading.Tasks;
+using Pulumi.Serialization;
+
+namespace Pulumi.AzureNative.Monitor.Outputs
+{
+
+ ///
+ /// The parameters for the scaling action.
+ ///
+ [OutputType]
+ public sealed class ScaleActionResponse
+ {
+ ///
+ /// the amount of time to wait since the last scaling action before this action occurs. It must be between 1 week and 1 minute in ISO 8601 format.
+ ///
+ public readonly string Cooldown;
+ ///
+ /// the scale direction. Whether the scaling action increases or decreases the number of instances.
+ ///
+ public readonly string Direction;
+ ///
+ /// the type of action that should occur when the scale rule fires.
+ ///
+ public readonly string Type;
+ ///
+ /// the number of instances that are involved in the scaling action. This value must be 1 or greater. The default value is 1.
+ ///
+ public readonly string? Value;
+
+ [OutputConstructor]
+ private ScaleActionResponse(
+ string cooldown,
+
+ string direction,
+
+ string type,
+
+ string? value)
+ {
+ Cooldown = cooldown;
+ Direction = direction;
+ Type = type;
+ Value = value;
+ }
+ }
+}
diff --git a/sdk/dotnet/Monitor/Outputs/ScaleCapacityResponse.cs b/sdk/dotnet/Monitor/Outputs/ScaleCapacityResponse.cs
new file mode 100644
index 000000000000..6e860ea4b302
--- /dev/null
+++ b/sdk/dotnet/Monitor/Outputs/ScaleCapacityResponse.cs
@@ -0,0 +1,45 @@
+// *** WARNING: this file was generated by pulumi. ***
+// *** Do not edit by hand unless you're certain you know what you are doing! ***
+
+using System;
+using System.Collections.Generic;
+using System.Collections.Immutable;
+using System.Threading.Tasks;
+using Pulumi.Serialization;
+
+namespace Pulumi.AzureNative.Monitor.Outputs
+{
+
+ ///
+ /// The number of instances that can be used during this profile.
+ ///
+ [OutputType]
+ public sealed class ScaleCapacityResponse
+ {
+ ///
+ /// the number of instances that will be set if metrics are not available for evaluation. The default is only used if the current instance count is lower than the default.
+ ///
+ public readonly string Default;
+ ///
+ /// the maximum number of instances for the resource. The actual maximum number of instances is limited by the cores that are available in the subscription.
+ ///
+ public readonly string Maximum;
+ ///
+ /// the minimum number of instances for the resource.
+ ///
+ public readonly string Minimum;
+
+ [OutputConstructor]
+ private ScaleCapacityResponse(
+ string @default,
+
+ string maximum,
+
+ string minimum)
+ {
+ Default = @default;
+ Maximum = maximum;
+ Minimum = minimum;
+ }
+ }
+}
diff --git a/sdk/dotnet/Monitor/Outputs/ScaleRuleMetricDimensionResponse.cs b/sdk/dotnet/Monitor/Outputs/ScaleRuleMetricDimensionResponse.cs
new file mode 100644
index 000000000000..28d7e98efd4f
--- /dev/null
+++ b/sdk/dotnet/Monitor/Outputs/ScaleRuleMetricDimensionResponse.cs
@@ -0,0 +1,45 @@
+// *** WARNING: this file was generated by pulumi. ***
+// *** Do not edit by hand unless you're certain you know what you are doing! ***
+
+using System;
+using System.Collections.Generic;
+using System.Collections.Immutable;
+using System.Threading.Tasks;
+using Pulumi.Serialization;
+
+namespace Pulumi.AzureNative.Monitor.Outputs
+{
+
+ ///
+ /// Specifies an auto scale rule metric dimension.
+ ///
+ [OutputType]
+ public sealed class ScaleRuleMetricDimensionResponse
+ {
+ ///
+ /// Name of the dimension.
+ ///
+ public readonly string DimensionName;
+ ///
+ /// the dimension operator. Only 'Equals' and 'NotEquals' are supported. 'Equals' being equal to any of the values. 'NotEquals' being not equal to all of the values
+ ///
+ public readonly string Operator;
+ ///
+ /// list of dimension values. For example: ["App1","App2"].
+ ///
+ public readonly ImmutableArray Values;
+
+ [OutputConstructor]
+ private ScaleRuleMetricDimensionResponse(
+ string dimensionName,
+
+ string @operator,
+
+ ImmutableArray values)
+ {
+ DimensionName = dimensionName;
+ Operator = @operator;
+ Values = values;
+ }
+ }
+}
diff --git a/sdk/dotnet/Monitor/Outputs/ScaleRuleResponse.cs b/sdk/dotnet/Monitor/Outputs/ScaleRuleResponse.cs
new file mode 100644
index 000000000000..95241730577f
--- /dev/null
+++ b/sdk/dotnet/Monitor/Outputs/ScaleRuleResponse.cs
@@ -0,0 +1,38 @@
+// *** WARNING: this file was generated by pulumi. ***
+// *** Do not edit by hand unless you're certain you know what you are doing! ***
+
+using System;
+using System.Collections.Generic;
+using System.Collections.Immutable;
+using System.Threading.Tasks;
+using Pulumi.Serialization;
+
+namespace Pulumi.AzureNative.Monitor.Outputs
+{
+
+ ///
+ /// A rule that provide the triggers and parameters for the scaling action.
+ ///
+ [OutputType]
+ public sealed class ScaleRuleResponse
+ {
+ ///
+ /// the trigger that results in a scaling action.
+ ///
+ public readonly Outputs.MetricTriggerResponse MetricTrigger;
+ ///
+ /// the parameters for the scaling action.
+ ///
+ public readonly Outputs.ScaleActionResponse ScaleAction;
+
+ [OutputConstructor]
+ private ScaleRuleResponse(
+ Outputs.MetricTriggerResponse metricTrigger,
+
+ Outputs.ScaleActionResponse scaleAction)
+ {
+ MetricTrigger = metricTrigger;
+ ScaleAction = scaleAction;
+ }
+ }
+}
diff --git a/sdk/dotnet/Monitor/Outputs/SubscriptionLogSettingsResponse.cs b/sdk/dotnet/Monitor/Outputs/SubscriptionLogSettingsResponse.cs
new file mode 100644
index 000000000000..55be733327f9
--- /dev/null
+++ b/sdk/dotnet/Monitor/Outputs/SubscriptionLogSettingsResponse.cs
@@ -0,0 +1,45 @@
+// *** WARNING: this file was generated by pulumi. ***
+// *** Do not edit by hand unless you're certain you know what you are doing! ***
+
+using System;
+using System.Collections.Generic;
+using System.Collections.Immutable;
+using System.Threading.Tasks;
+using Pulumi.Serialization;
+
+namespace Pulumi.AzureNative.Monitor.Outputs
+{
+
+ ///
+ /// Part of Subscription diagnostic setting. Specifies the settings for a particular log.
+ ///
+ [OutputType]
+ public sealed class SubscriptionLogSettingsResponse
+ {
+ ///
+ /// Name of a Subscription Diagnostic Log category for a resource type this setting is applied to.
+ ///
+ public readonly string? Category;
+ ///
+ /// Name of a Subscription Diagnostic Log category group for a resource type this setting is applied to.
+ ///
+ public readonly string? CategoryGroup;
+ ///
+ /// a value indicating whether this log is enabled.
+ ///
+ public readonly bool Enabled;
+
+ [OutputConstructor]
+ private SubscriptionLogSettingsResponse(
+ string? category,
+
+ string? categoryGroup,
+
+ bool enabled)
+ {
+ Category = category;
+ CategoryGroup = categoryGroup;
+ Enabled = enabled;
+ }
+ }
+}
diff --git a/sdk/dotnet/Monitor/Outputs/TimeWindowResponse.cs b/sdk/dotnet/Monitor/Outputs/TimeWindowResponse.cs
new file mode 100644
index 000000000000..621c850eda31
--- /dev/null
+++ b/sdk/dotnet/Monitor/Outputs/TimeWindowResponse.cs
@@ -0,0 +1,45 @@
+// *** WARNING: this file was generated by pulumi. ***
+// *** Do not edit by hand unless you're certain you know what you are doing! ***
+
+using System;
+using System.Collections.Generic;
+using System.Collections.Immutable;
+using System.Threading.Tasks;
+using Pulumi.Serialization;
+
+namespace Pulumi.AzureNative.Monitor.Outputs
+{
+
+ ///
+ /// A specific date-time for the profile.
+ ///
+ [OutputType]
+ public sealed class TimeWindowResponse
+ {
+ ///
+ /// the end time for the profile in ISO 8601 format.
+ ///
+ public readonly string End;
+ ///
+ /// the start time for the profile in ISO 8601 format.
+ ///
+ public readonly string Start;
+ ///
+ /// the timezone of the start and end times for the profile. Some examples of valid time zones are: Dateline Standard Time, UTC-11, Hawaiian Standard Time, Alaskan Standard Time, Pacific Standard Time (Mexico), Pacific Standard Time, US Mountain Standard Time, Mountain Standard Time (Mexico), Mountain Standard Time, Central America Standard Time, Central Standard Time, Central Standard Time (Mexico), Canada Central Standard Time, SA Pacific Standard Time, Eastern Standard Time, US Eastern Standard Time, Venezuela Standard Time, Paraguay Standard Time, Atlantic Standard Time, Central Brazilian Standard Time, SA Western Standard Time, Pacific SA Standard Time, Newfoundland Standard Time, E. South America Standard Time, Argentina Standard Time, SA Eastern Standard Time, Greenland Standard Time, Montevideo Standard Time, Bahia Standard Time, UTC-02, Mid-Atlantic Standard Time, Azores Standard Time, Cape Verde Standard Time, Morocco Standard Time, UTC, GMT Standard Time, Greenwich Standard Time, W. Europe Standard Time, Central Europe Standard Time, Romance Standard Time, Central European Standard Time, W. Central Africa Standard Time, Namibia Standard Time, Jordan Standard Time, GTB Standard Time, Middle East Standard Time, Egypt Standard Time, Syria Standard Time, E. Europe Standard Time, South Africa Standard Time, FLE Standard Time, Turkey Standard Time, Israel Standard Time, Kaliningrad Standard Time, Libya Standard Time, Arabic Standard Time, Arab Standard Time, Belarus Standard Time, Russian Standard Time, E. Africa Standard Time, Iran Standard Time, Arabian Standard Time, Azerbaijan Standard Time, Russia Time Zone 3, Mauritius Standard Time, Georgian Standard Time, Caucasus Standard Time, Afghanistan Standard Time, West Asia Standard Time, Ekaterinburg Standard Time, Pakistan Standard Time, India Standard Time, Sri Lanka Standard Time, Nepal Standard Time, Central Asia Standard Time, Bangladesh Standard Time, N. Central Asia Standard Time, Myanmar Standard Time, SE Asia Standard Time, North Asia Standard Time, China Standard Time, North Asia East Standard Time, Singapore Standard Time, W. Australia Standard Time, Taipei Standard Time, Ulaanbaatar Standard Time, Tokyo Standard Time, Korea Standard Time, Yakutsk Standard Time, Cen. Australia Standard Time, AUS Central Standard Time, E. Australia Standard Time, AUS Eastern Standard Time, West Pacific Standard Time, Tasmania Standard Time, Magadan Standard Time, Vladivostok Standard Time, Russia Time Zone 10, Central Pacific Standard Time, Russia Time Zone 11, New Zealand Standard Time, UTC+12, Fiji Standard Time, Kamchatka Standard Time, Tonga Standard Time, Samoa Standard Time, Line Islands Standard Time
+ ///
+ public readonly string? TimeZone;
+
+ [OutputConstructor]
+ private TimeWindowResponse(
+ string end,
+
+ string start,
+
+ string? timeZone)
+ {
+ End = end;
+ Start = start;
+ TimeZone = timeZone;
+ }
+ }
+}
diff --git a/sdk/dotnet/Monitor/Outputs/WebhookNotificationResponse.cs b/sdk/dotnet/Monitor/Outputs/WebhookNotificationResponse.cs
new file mode 100644
index 000000000000..798ac5415dcf
--- /dev/null
+++ b/sdk/dotnet/Monitor/Outputs/WebhookNotificationResponse.cs
@@ -0,0 +1,38 @@
+// *** WARNING: this file was generated by pulumi. ***
+// *** Do not edit by hand unless you're certain you know what you are doing! ***
+
+using System;
+using System.Collections.Generic;
+using System.Collections.Immutable;
+using System.Threading.Tasks;
+using Pulumi.Serialization;
+
+namespace Pulumi.AzureNative.Monitor.Outputs
+{
+
+ ///
+ /// Webhook notification of an autoscale event.
+ ///
+ [OutputType]
+ public sealed class WebhookNotificationResponse
+ {
+ ///
+ /// a property bag of settings. This value can be empty.
+ ///
+ public readonly ImmutableDictionary? Properties;
+ ///
+ /// the service address to receive the notification.
+ ///
+ public readonly string? ServiceUri;
+
+ [OutputConstructor]
+ private WebhookNotificationResponse(
+ ImmutableDictionary? properties,
+
+ string? serviceUri)
+ {
+ Properties = properties;
+ ServiceUri = serviceUri;
+ }
+ }
+}
diff --git a/sdk/dotnet/Monitor/SubscriptionDiagnosticSetting.cs b/sdk/dotnet/Monitor/SubscriptionDiagnosticSetting.cs
new file mode 100644
index 000000000000..af21c496e4c7
--- /dev/null
+++ b/sdk/dotnet/Monitor/SubscriptionDiagnosticSetting.cs
@@ -0,0 +1,198 @@
+// *** WARNING: this file was generated by pulumi. ***
+// *** Do not edit by hand unless you're certain you know what you are doing! ***
+
+using System;
+using System.Collections.Generic;
+using System.Collections.Immutable;
+using System.Threading.Tasks;
+using Pulumi.Serialization;
+
+namespace Pulumi.AzureNative.Monitor
+{
+ ///
+ /// The subscription diagnostic setting resource.
+ ///
+ /// Uses Azure REST API version 2021-05-01-preview.
+ ///
+ [AzureNativeResourceType("azure-native:monitor:SubscriptionDiagnosticSetting")]
+ public partial class SubscriptionDiagnosticSetting : global::Pulumi.CustomResource
+ {
+ ///
+ /// The Azure API version of the resource.
+ ///
+ [Output("azureApiVersion")]
+ public Output AzureApiVersion { get; private set; } = null!;
+
+ ///
+ /// The resource Id for the event hub authorization rule.
+ ///
+ [Output("eventHubAuthorizationRuleId")]
+ public Output EventHubAuthorizationRuleId { get; private set; } = null!;
+
+ ///
+ /// The name of the event hub. If none is specified, the default event hub will be selected.
+ ///
+ [Output("eventHubName")]
+ public Output EventHubName { get; private set; } = null!;
+
+ ///
+ /// The list of logs settings.
+ ///
+ [Output("logs")]
+ public Output> Logs { get; private set; } = null!;
+
+ ///
+ /// The full ARM resource ID of the Marketplace resource to which you would like to send Diagnostic Logs.
+ ///
+ [Output("marketplacePartnerId")]
+ public Output MarketplacePartnerId { get; private set; } = null!;
+
+ ///
+ /// The name of the resource
+ ///
+ [Output("name")]
+ public Output Name { get; private set; } = null!;
+
+ ///