azure-native.insights.DiagnosticSetting
Explore with Pulumi AI
The diagnostic setting resource. API Version: 2017-05-01-preview.
Example Usage
Creates or Updates the diagnostic setting
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var diagnosticSetting = new AzureNative.Insights.DiagnosticSetting("diagnosticSetting", new()
{
EventHubAuthorizationRuleId = "/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourceGroups/montest/providers/microsoft.eventhub/namespaces/mynamespace/eventhubs/myeventhub/authorizationrules/myrule",
EventHubName = "myeventhub",
LogAnalyticsDestinationType = "Dedicated",
Logs = new[]
{
new AzureNative.Insights.Inputs.LogSettingsArgs
{
Category = "WorkflowRuntime",
Enabled = true,
RetentionPolicy = new AzureNative.Insights.Inputs.RetentionPolicyArgs
{
Days = 0,
Enabled = false,
},
},
},
Metrics = new[]
{
new AzureNative.Insights.Inputs.MetricSettingsArgs
{
Category = "WorkflowMetrics",
Enabled = true,
RetentionPolicy = new AzureNative.Insights.Inputs.RetentionPolicyArgs
{
Days = 0,
Enabled = false,
},
},
},
Name = "mysetting",
ResourceUri = "subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6",
StorageAccountId = "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/apptest/providers/Microsoft.Storage/storageAccounts/appteststorage1",
WorkspaceId = "",
});
});
package main
import (
insights "github.com/pulumi/pulumi-azure-native-sdk/insights"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := insights.NewDiagnosticSetting(ctx, "diagnosticSetting", &insights.DiagnosticSettingArgs{
EventHubAuthorizationRuleId: pulumi.String("/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourceGroups/montest/providers/microsoft.eventhub/namespaces/mynamespace/eventhubs/myeventhub/authorizationrules/myrule"),
EventHubName: pulumi.String("myeventhub"),
LogAnalyticsDestinationType: pulumi.String("Dedicated"),
Logs: []insights.LogSettingsArgs{
{
Category: pulumi.String("WorkflowRuntime"),
Enabled: pulumi.Bool(true),
RetentionPolicy: {
Days: pulumi.Int(0),
Enabled: pulumi.Bool(false),
},
},
},
Metrics: []insights.MetricSettingsArgs{
{
Category: pulumi.String("WorkflowMetrics"),
Enabled: pulumi.Bool(true),
RetentionPolicy: {
Days: pulumi.Int(0),
Enabled: pulumi.Bool(false),
},
},
},
Name: pulumi.String("mysetting"),
ResourceUri: pulumi.String("subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6"),
StorageAccountId: pulumi.String("/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/apptest/providers/Microsoft.Storage/storageAccounts/appteststorage1"),
WorkspaceId: pulumi.String(""),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.insights.DiagnosticSetting;
import com.pulumi.azurenative.insights.DiagnosticSettingArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var diagnosticSetting = new DiagnosticSetting("diagnosticSetting", DiagnosticSettingArgs.builder()
.eventHubAuthorizationRuleId("/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourceGroups/montest/providers/microsoft.eventhub/namespaces/mynamespace/eventhubs/myeventhub/authorizationrules/myrule")
.eventHubName("myeventhub")
.logAnalyticsDestinationType("Dedicated")
.logs(Map.ofEntries(
Map.entry("category", "WorkflowRuntime"),
Map.entry("enabled", true),
Map.entry("retentionPolicy", Map.ofEntries(
Map.entry("days", 0),
Map.entry("enabled", false)
))
))
.metrics(Map.ofEntries(
Map.entry("category", "WorkflowMetrics"),
Map.entry("enabled", true),
Map.entry("retentionPolicy", Map.ofEntries(
Map.entry("days", 0),
Map.entry("enabled", false)
))
))
.name("mysetting")
.resourceUri("subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6")
.storageAccountId("/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/apptest/providers/Microsoft.Storage/storageAccounts/appteststorage1")
.workspaceId("")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
diagnostic_setting = azure_native.insights.DiagnosticSetting("diagnosticSetting",
event_hub_authorization_rule_id="/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourceGroups/montest/providers/microsoft.eventhub/namespaces/mynamespace/eventhubs/myeventhub/authorizationrules/myrule",
event_hub_name="myeventhub",
log_analytics_destination_type="Dedicated",
logs=[{
"category": "WorkflowRuntime",
"enabled": True,
"retentionPolicy": azure_native.insights.RetentionPolicyArgs(
days=0,
enabled=False,
),
}],
metrics=[{
"category": "WorkflowMetrics",
"enabled": True,
"retentionPolicy": azure_native.insights.RetentionPolicyArgs(
days=0,
enabled=False,
),
}],
name="mysetting",
resource_uri="subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6",
storage_account_id="/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/apptest/providers/Microsoft.Storage/storageAccounts/appteststorage1",
workspace_id="")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const diagnosticSetting = new azure_native.insights.DiagnosticSetting("diagnosticSetting", {
eventHubAuthorizationRuleId: "/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourceGroups/montest/providers/microsoft.eventhub/namespaces/mynamespace/eventhubs/myeventhub/authorizationrules/myrule",
eventHubName: "myeventhub",
logAnalyticsDestinationType: "Dedicated",
logs: [{
category: "WorkflowRuntime",
enabled: true,
retentionPolicy: {
days: 0,
enabled: false,
},
}],
metrics: [{
category: "WorkflowMetrics",
enabled: true,
retentionPolicy: {
days: 0,
enabled: false,
},
}],
name: "mysetting",
resourceUri: "subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6",
storageAccountId: "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/apptest/providers/Microsoft.Storage/storageAccounts/appteststorage1",
workspaceId: "",
});
resources:
diagnosticSetting:
type: azure-native:insights:DiagnosticSetting
properties:
eventHubAuthorizationRuleId: /subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourceGroups/montest/providers/microsoft.eventhub/namespaces/mynamespace/eventhubs/myeventhub/authorizationrules/myrule
eventHubName: myeventhub
logAnalyticsDestinationType: Dedicated
logs:
- category: WorkflowRuntime
enabled: true
retentionPolicy:
days: 0
enabled: false
metrics:
- category: WorkflowMetrics
enabled: true
retentionPolicy:
days: 0
enabled: false
name: mysetting
resourceUri: subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6
storageAccountId: /subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/apptest/providers/Microsoft.Storage/storageAccounts/appteststorage1
workspaceId:
Create DiagnosticSetting Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DiagnosticSetting(name: string, args: DiagnosticSettingArgs, opts?: CustomResourceOptions);
@overload
def DiagnosticSetting(resource_name: str,
args: DiagnosticSettingArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DiagnosticSetting(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_uri: Optional[str] = None,
event_hub_authorization_rule_id: Optional[str] = None,
event_hub_name: Optional[str] = None,
log_analytics_destination_type: Optional[str] = None,
logs: Optional[Sequence[LogSettingsArgs]] = None,
metrics: Optional[Sequence[MetricSettingsArgs]] = None,
name: Optional[str] = None,
service_bus_rule_id: Optional[str] = None,
storage_account_id: Optional[str] = None,
workspace_id: Optional[str] = None)
func NewDiagnosticSetting(ctx *Context, name string, args DiagnosticSettingArgs, opts ...ResourceOption) (*DiagnosticSetting, error)
public DiagnosticSetting(string name, DiagnosticSettingArgs args, CustomResourceOptions? opts = null)
public DiagnosticSetting(String name, DiagnosticSettingArgs args)
public DiagnosticSetting(String name, DiagnosticSettingArgs args, CustomResourceOptions options)
type: azure-native:insights:DiagnosticSetting
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args DiagnosticSettingArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args DiagnosticSettingArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args DiagnosticSettingArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DiagnosticSettingArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DiagnosticSettingArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var azure_nativeDiagnosticSettingResource = new AzureNative.Insights.DiagnosticSetting("azure-nativeDiagnosticSettingResource", new()
{
ResourceUri = "string",
EventHubAuthorizationRuleId = "string",
EventHubName = "string",
LogAnalyticsDestinationType = "string",
Logs = new[]
{
{
{ "enabled", false },
{ "category", "string" },
{ "retentionPolicy",
{
{ "days", 0 },
{ "enabled", false },
} },
},
},
Metrics = new[]
{
{
{ "enabled", false },
{ "category", "string" },
{ "retentionPolicy",
{
{ "days", 0 },
{ "enabled", false },
} },
{ "timeGrain", "string" },
},
},
Name = "string",
ServiceBusRuleId = "string",
StorageAccountId = "string",
WorkspaceId = "string",
});
example, err := insights.NewDiagnosticSetting(ctx, "azure-nativeDiagnosticSettingResource", &insights.DiagnosticSettingArgs{
ResourceUri: "string",
EventHubAuthorizationRuleId: "string",
EventHubName: "string",
LogAnalyticsDestinationType: "string",
Logs: []map[string]interface{}{
map[string]interface{}{
"enabled": false,
"category": "string",
"retentionPolicy": map[string]interface{}{
"days": 0,
"enabled": false,
},
},
},
Metrics: []map[string]interface{}{
map[string]interface{}{
"enabled": false,
"category": "string",
"retentionPolicy": map[string]interface{}{
"days": 0,
"enabled": false,
},
"timeGrain": "string",
},
},
Name: "string",
ServiceBusRuleId: "string",
StorageAccountId: "string",
WorkspaceId: "string",
})
var azure_nativeDiagnosticSettingResource = new DiagnosticSetting("azure-nativeDiagnosticSettingResource", DiagnosticSettingArgs.builder()
.resourceUri("string")
.eventHubAuthorizationRuleId("string")
.eventHubName("string")
.logAnalyticsDestinationType("string")
.logs(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.metrics(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.name("string")
.serviceBusRuleId("string")
.storageAccountId("string")
.workspaceId("string")
.build());
azure_native_diagnostic_setting_resource = azure_native.insights.DiagnosticSetting("azure-nativeDiagnosticSettingResource",
resource_uri=string,
event_hub_authorization_rule_id=string,
event_hub_name=string,
log_analytics_destination_type=string,
logs=[{
enabled: False,
category: string,
retentionPolicy: {
days: 0,
enabled: False,
},
}],
metrics=[{
enabled: False,
category: string,
retentionPolicy: {
days: 0,
enabled: False,
},
timeGrain: string,
}],
name=string,
service_bus_rule_id=string,
storage_account_id=string,
workspace_id=string)
const azure_nativeDiagnosticSettingResource = new azure_native.insights.DiagnosticSetting("azure-nativeDiagnosticSettingResource", {
resourceUri: "string",
eventHubAuthorizationRuleId: "string",
eventHubName: "string",
logAnalyticsDestinationType: "string",
logs: [{
enabled: false,
category: "string",
retentionPolicy: {
days: 0,
enabled: false,
},
}],
metrics: [{
enabled: false,
category: "string",
retentionPolicy: {
days: 0,
enabled: false,
},
timeGrain: "string",
}],
name: "string",
serviceBusRuleId: "string",
storageAccountId: "string",
workspaceId: "string",
});
type: azure-native:insights:DiagnosticSetting
properties:
eventHubAuthorizationRuleId: string
eventHubName: string
logAnalyticsDestinationType: string
logs:
- category: string
enabled: false
retentionPolicy:
days: 0
enabled: false
metrics:
- category: string
enabled: false
retentionPolicy:
days: 0
enabled: false
timeGrain: string
name: string
resourceUri: string
serviceBusRuleId: string
storageAccountId: string
workspaceId: string
DiagnosticSetting Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The DiagnosticSetting resource accepts the following input properties:
- Resource
Uri string - The identifier of the resource.
- string
- The resource Id for the event hub authorization rule.
- Event
Hub stringName - The name of the event hub. If none is specified, the default event hub will be selected.
- Log
Analytics stringDestination Type - 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: _. Possible values are: Dedicated and null (null is default.)
- Logs
List<Pulumi.
Azure Native. Insights. Inputs. Log Settings> - The list of logs settings.
- Metrics
List<Pulumi.
Azure Native. Insights. Inputs. Metric Settings> - The list of metric settings.
- Name string
- The name of the diagnostic setting.
- Service
Bus stringRule Id - The service bus rule Id of the diagnostic setting. This is here to maintain backwards compatibility.
- Storage
Account stringId - The resource ID of the storage account to which you would like to send Diagnostic Logs.
- Workspace
Id string - 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
- Resource
Uri string - The identifier of the resource.
- string
- The resource Id for the event hub authorization rule.
- Event
Hub stringName - The name of the event hub. If none is specified, the default event hub will be selected.
- Log
Analytics stringDestination Type - 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: _. Possible values are: Dedicated and null (null is default.)
- Logs
[]Log
Settings Args - The list of logs settings.
- Metrics
[]Metric
Settings Args - The list of metric settings.
- Name string
- The name of the diagnostic setting.
- Service
Bus stringRule Id - The service bus rule Id of the diagnostic setting. This is here to maintain backwards compatibility.
- Storage
Account stringId - The resource ID of the storage account to which you would like to send Diagnostic Logs.
- Workspace
Id string - 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
- resource
Uri String - The identifier of the resource.
- String
- The resource Id for the event hub authorization rule.
- event
Hub StringName - The name of the event hub. If none is specified, the default event hub will be selected.
- log
Analytics StringDestination Type - 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: _. Possible values are: Dedicated and null (null is default.)
- logs
List<Log
Settings> - The list of logs settings.
- metrics
List<Metric
Settings> - The list of metric settings.
- name String
- The name of the diagnostic setting.
- service
Bus StringRule Id - The service bus rule Id of the diagnostic setting. This is here to maintain backwards compatibility.
- storage
Account StringId - The resource ID of the storage account to which you would like to send Diagnostic Logs.
- workspace
Id String - 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
- resource
Uri string - The identifier of the resource.
- string
- The resource Id for the event hub authorization rule.
- event
Hub stringName - The name of the event hub. If none is specified, the default event hub will be selected.
- log
Analytics stringDestination Type - 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: _. Possible values are: Dedicated and null (null is default.)
- logs
Log
Settings[] - The list of logs settings.
- metrics
Metric
Settings[] - The list of metric settings.
- name string
- The name of the diagnostic setting.
- service
Bus stringRule Id - The service bus rule Id of the diagnostic setting. This is here to maintain backwards compatibility.
- storage
Account stringId - The resource ID of the storage account to which you would like to send Diagnostic Logs.
- workspace
Id string - 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
- resource_
uri str - The identifier of the resource.
- str
- The resource Id for the event hub authorization rule.
- event_
hub_ strname - The name of the event hub. If none is specified, the default event hub will be selected.
- log_
analytics_ strdestination_ type - 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: _. Possible values are: Dedicated and null (null is default.)
- logs
Sequence[Log
Settings Args] - The list of logs settings.
- metrics
Sequence[Metric
Settings Args] - The list of metric settings.
- name str
- The name of the diagnostic setting.
- service_
bus_ strrule_ id - The service bus rule Id of the diagnostic setting. This is here to maintain backwards compatibility.
- storage_
account_ strid - The resource ID of the storage account to which you would like to send Diagnostic Logs.
- workspace_
id str - 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
- resource
Uri String - The identifier of the resource.
- String
- The resource Id for the event hub authorization rule.
- event
Hub StringName - The name of the event hub. If none is specified, the default event hub will be selected.
- log
Analytics StringDestination Type - 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: _. Possible values are: Dedicated and null (null is default.)
- logs List<Property Map>
- The list of logs settings.
- metrics List<Property Map>
- The list of metric settings.
- name String
- The name of the diagnostic setting.
- service
Bus StringRule Id - The service bus rule Id of the diagnostic setting. This is here to maintain backwards compatibility.
- storage
Account StringId - The resource ID of the storage account to which you would like to send Diagnostic Logs.
- workspace
Id String - 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
Outputs
All input properties are implicitly available as output properties. Additionally, the DiagnosticSetting resource produces the following output properties:
Supporting Types
LogSettings, LogSettingsArgs
- Enabled bool
- a value indicating whether this log is enabled.
- Category string
- 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.
- Retention
Policy Pulumi.Azure Native. Insights. Inputs. Retention Policy - the retention policy for this log.
- Enabled bool
- a value indicating whether this log is enabled.
- Category string
- 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.
- Retention
Policy RetentionPolicy - the retention policy for this log.
- enabled Boolean
- a value indicating whether this log is enabled.
- category String
- 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.
- retention
Policy RetentionPolicy - the retention policy for this log.
- enabled boolean
- a value indicating whether this log is enabled.
- category string
- 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.
- retention
Policy RetentionPolicy - the retention policy for this log.
- enabled bool
- a value indicating whether this log is enabled.
- category str
- 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.
- retention_
policy RetentionPolicy - the retention policy for this log.
- enabled Boolean
- a value indicating whether this log is enabled.
- category String
- 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.
- retention
Policy Property Map - the retention policy for this log.
LogSettingsResponse, LogSettingsResponseArgs
- Enabled bool
- a value indicating whether this log is enabled.
- Category string
- 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.
- Retention
Policy Pulumi.Azure Native. Insights. Inputs. Retention Policy Response - the retention policy for this log.
- Enabled bool
- a value indicating whether this log is enabled.
- Category string
- 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.
- Retention
Policy RetentionPolicy Response - the retention policy for this log.
- enabled Boolean
- a value indicating whether this log is enabled.
- category String
- 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.
- retention
Policy RetentionPolicy Response - the retention policy for this log.
- enabled boolean
- a value indicating whether this log is enabled.
- category string
- 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.
- retention
Policy RetentionPolicy Response - the retention policy for this log.
- enabled bool
- a value indicating whether this log is enabled.
- category str
- 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.
- retention_
policy RetentionPolicy Response - the retention policy for this log.
- enabled Boolean
- a value indicating whether this log is enabled.
- category String
- 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.
- retention
Policy Property Map - the retention policy for this log.
MetricSettings, MetricSettingsArgs
- Enabled bool
- a value indicating whether this category is enabled.
- Category string
- 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.
- Retention
Policy Pulumi.Azure Native. Insights. Inputs. Retention Policy - the retention policy for this category.
- Time
Grain string - the timegrain of the metric in ISO8601 format.
- Enabled bool
- a value indicating whether this category is enabled.
- Category string
- 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.
- Retention
Policy RetentionPolicy - the retention policy for this category.
- Time
Grain string - the timegrain of the metric in ISO8601 format.
- enabled Boolean
- a value indicating whether this category is enabled.
- category String
- 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.
- retention
Policy RetentionPolicy - the retention policy for this category.
- time
Grain String - the timegrain of the metric in ISO8601 format.
- enabled boolean
- a value indicating whether this category is enabled.
- category string
- 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.
- retention
Policy RetentionPolicy - the retention policy for this category.
- time
Grain string - the timegrain of the metric in ISO8601 format.
- enabled bool
- a value indicating whether this category is enabled.
- category str
- 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.
- retention_
policy RetentionPolicy - the retention policy for this category.
- time_
grain str - the timegrain of the metric in ISO8601 format.
- enabled Boolean
- a value indicating whether this category is enabled.
- category String
- 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.
- retention
Policy Property Map - the retention policy for this category.
- time
Grain String - the timegrain of the metric in ISO8601 format.
MetricSettingsResponse, MetricSettingsResponseArgs
- Enabled bool
- a value indicating whether this category is enabled.
- Category string
- 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.
- Retention
Policy Pulumi.Azure Native. Insights. Inputs. Retention Policy Response - the retention policy for this category.
- Time
Grain string - the timegrain of the metric in ISO8601 format.
- Enabled bool
- a value indicating whether this category is enabled.
- Category string
- 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.
- Retention
Policy RetentionPolicy Response - the retention policy for this category.
- Time
Grain string - the timegrain of the metric in ISO8601 format.
- enabled Boolean
- a value indicating whether this category is enabled.
- category String
- 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.
- retention
Policy RetentionPolicy Response - the retention policy for this category.
- time
Grain String - the timegrain of the metric in ISO8601 format.
- enabled boolean
- a value indicating whether this category is enabled.
- category string
- 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.
- retention
Policy RetentionPolicy Response - the retention policy for this category.
- time
Grain string - the timegrain of the metric in ISO8601 format.
- enabled bool
- a value indicating whether this category is enabled.
- category str
- 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.
- retention_
policy RetentionPolicy Response - the retention policy for this category.
- time_
grain str - the timegrain of the metric in ISO8601 format.
- enabled Boolean
- a value indicating whether this category is enabled.
- category String
- 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.
- retention
Policy Property Map - the retention policy for this category.
- time
Grain String - the timegrain of the metric in ISO8601 format.
RetentionPolicy, RetentionPolicyArgs
RetentionPolicyResponse, RetentionPolicyResponseArgs
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:insights:DiagnosticSetting mysetting /subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6/diagnosticSettings/mysetting
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0