你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ExtendedServerBlobAuditingPolicy.IsAzureMonitorTargetEnabled 属性

定义

获取或设置指定是否将审核事件发送到 Azure Monitor。 若要将事件发送到 Azure Monitor,请将“State”指定为“Enabled”,将“IsAzureMonitorTargetEnabled”指定为 true。

使用 REST API 配置审核时,还应在数据库上创建具有“SQLSecurityAuditEvents”诊断日志类别的诊断设置。 请注意,对于服务器级别审核,应将“master”数据库用作 {databaseName}。

诊断设置 URI 格式:PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview

有关详细信息,请参阅 诊断设置 REST API诊断设置 PowerShell

[Newtonsoft.Json.JsonProperty(PropertyName="properties.isAzureMonitorTargetEnabled")]
public bool? IsAzureMonitorTargetEnabled { get; set; }
[<Newtonsoft.Json.JsonProperty(PropertyName="properties.isAzureMonitorTargetEnabled")>]
member this.IsAzureMonitorTargetEnabled : Nullable<bool> with get, set
Public Property IsAzureMonitorTargetEnabled As Nullable(Of Boolean)

属性值

属性
Newtonsoft.Json.JsonPropertyAttribute

适用于