SubscriptionDiagnosticSettingsResource Class

The subscription diagnostic setting resource.

Variables are only populated by the server, and will be ignored when sending a request.

Inheritance
azure.mgmt.monitor.v2017_05_01_preview.models._models_py3.SubscriptionProxyOnlyResource
SubscriptionDiagnosticSettingsResource

Constructor

SubscriptionDiagnosticSettingsResource(*, location: Optional[str] = None, storage_account_id: Optional[str] = None, service_bus_rule_id: Optional[str] = None, event_hub_authorization_rule_id: Optional[str] = None, event_hub_name: Optional[str] = None, logs: Optional[List[azure.mgmt.monitor.v2017_05_01_preview.models._models_py3.SubscriptionLogSettings]] = None, workspace_id: Optional[str] = None, **kwargs)

Variables

id
str

Azure resource Id.

name
str

Azure resource name.

type
str

Azure resource type.

location
str

Location of the resource.

storage_account_id
str

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

service_bus_rule_id
str

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

event_hub_authorization_rule_id
str

The resource Id for the event hub authorization rule.

event_hub_name
str

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

logs
list[<xref:$>(<xref:python-base-namespace>)SubscriptionLogSettings]

The list of logs settings.

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.