SubscriptionDiagnosticSettings Class

Definition

The subscription diagnostic settings.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.DiagnosticSetting.Models.Api20210501Preview.SubscriptionDiagnosticSettingsTypeConverter))]
public class SubscriptionDiagnosticSettings : Microsoft.Azure.PowerShell.Cmdlets.Monitor.DiagnosticSetting.Models.Api20210501Preview.ISubscriptionDiagnosticSettings
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.DiagnosticSetting.Models.Api20210501Preview.SubscriptionDiagnosticSettingsTypeConverter))>]
type SubscriptionDiagnosticSettings = class
    interface ISubscriptionDiagnosticSettings
    interface IJsonSerializable
Public Class SubscriptionDiagnosticSettings
Implements ISubscriptionDiagnosticSettings
Inheritance
SubscriptionDiagnosticSettings
Attributes
Implements

Constructors

SubscriptionDiagnosticSettings()

Creates an new SubscriptionDiagnosticSettings instance.

Properties

EventHubAuthorizationRuleId

The resource Id for the event hub authorization rule.

EventHubName

The name of the event hub. If none is specified, the default event hub will be selected.

Log

The list of logs settings.

MarketplacePartnerId

The full ARM resource ID of the Marketplace resource to which you would like to send Diagnostic Logs.

ServiceBusRuleId

The service bus rule Id of the diagnostic setting. This is here to maintain backwards compatibility.

StorageAccountId

The resource ID of the storage account to which you would like to send Diagnostic Logs.

WorkspaceId

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

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of SubscriptionDiagnosticSettings.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of SubscriptionDiagnosticSettings.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.DiagnosticSetting.Models.Api20210501Preview.ISubscriptionDiagnosticSettings.

FromJsonString(String)

Creates a new instance of SubscriptionDiagnosticSettings, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of SubscriptionDiagnosticSettings into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()

Applies to