Show / Hide Table of Contents

Class DiagnosticSetting

Manages a Diagnostic Setting for an existing Resource.

Inheritance
System.Object
Resource
CustomResource
DiagnosticSetting
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Azure.Monitoring
Assembly: Pulumi.Azure.dll
Syntax
public class DiagnosticSetting : CustomResource

Constructors

View Source

DiagnosticSetting(String, DiagnosticSettingArgs, CustomResourceOptions)

Create a DiagnosticSetting resource with the given unique name, arguments, and options.

Declaration
public DiagnosticSetting(string name, DiagnosticSettingArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

DiagnosticSettingArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

EventhubAuthorizationRuleId

Specifies the ID of an Event Hub Namespace Authorization Rule used to send Diagnostics Data. Changing this forces a new resource to be created.

Declaration
public Output<string> EventhubAuthorizationRuleId { get; }
Property Value
Type Description
Output<System.String>
View Source

EventhubName

Specifies the name of the Event Hub where Diagnostics Data should be sent. Changing this forces a new resource to be created.

Declaration
public Output<string> EventhubName { get; }
Property Value
Type Description
Output<System.String>
View Source

LogAnalyticsDestinationType

When set to 'Dedicated' logs sent to a Log Analytics workspace will go into resource specific tables, instead of the legacy AzureDiagnostics table.

Declaration
public Output<string> LogAnalyticsDestinationType { get; }
Property Value
Type Description
Output<System.String>
View Source

LogAnalyticsWorkspaceId

Specifies the ID of a Log Analytics Workspace where Diagnostics Data should be sent. Changing this forces a new resource to be created.

Declaration
public Output<string> LogAnalyticsWorkspaceId { get; }
Property Value
Type Description
Output<System.String>
View Source

Logs

One or more log blocks as defined below.

Declaration
public Output<ImmutableArray<DiagnosticSettingLog>> Logs { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableArray<DiagnosticSettingLog>>
View Source

Metrics

One or more metric blocks as defined below.

Declaration
public Output<ImmutableArray<DiagnosticSettingMetric>> Metrics { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableArray<DiagnosticSettingMetric>>
View Source

Name

Specifies the name of the Diagnostic Setting. Changing this forces a new resource to be created.

Declaration
public Output<string> Name { get; }
Property Value
Type Description
Output<System.String>
View Source

StorageAccountId

With this parameter you can specify a storage account which should be used to send the logs to. Parameter must be a valid Azure Resource ID. Changing this forces a new resource to be created.

Declaration
public Output<string> StorageAccountId { get; }
Property Value
Type Description
Output<System.String>
View Source

TargetResourceId

The ID of an existing Resource on which to configure Diagnostic Settings. Changing this forces a new resource to be created.

Declaration
public Output<string> TargetResourceId { get; }
Property Value
Type Description
Output<System.String>

Methods

View Source

Get(String, Input<String>, DiagnosticSettingState, CustomResourceOptions)

Get an existing DiagnosticSetting resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static DiagnosticSetting Get(string name, Input<string> id, DiagnosticSettingState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

DiagnosticSettingState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
DiagnosticSetting
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.