共用方式為


Get-AzSqlServerAdvancedThreatProtectionSetting

取得伺服器的進階威脅防護設定。

語法

Get-AzSqlServerAdvancedThreatProtectionSetting
   -ServerName <String>
   [-ResourceGroupName] <String>
   [-DefaultProfile <IAzureContextContainer>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

Get-AzSqlServerAdvancedThreatProtectionSetting Cmdlet 會取得 Azure SQL Server 的進階威脅防護設定。 若要使用此 Cmdlet,請指定 ResourceGroupNameServerName 參數,以識別此 Cmdlet 取得設定的伺服器。

範例

範例 1:取得伺服器的進階威脅防護設定

Get-AzSqlServerAdvancedThreatProtectionSetting -ResourceGroupName "ResourceGroup11" -ServerName "Server01"

ResourceGroupName             : ResourceGroup11
ServerName                    : Server01
AdvancedThreatProtectionState : Enabled

此命令會取得伺服器名為 Server01 的進階威脅防護設定。 伺服器會指派給資源群組 ResourceGroup11。

參數

-Confirm

執行 Cmdlet 之前先提示您確認。

類型:SwitchParameter
別名:cf
Position:Named
預設值:False
必要:False
接受管線輸入:False
接受萬用字元:False

-DefaultProfile

用於與 azure 通訊的認證、帳戶、租用戶和訂用帳戶

類型:IAzureContextContainer
別名:AzContext, AzureRmContext, AzureCredential
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-ResourceGroupName

指定伺服器所屬的資源群組名稱。

類型:String
Position:0
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

-ServerName

指定伺服器的名稱。

類型:String
Position:Named
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

-WhatIf

顯示執行 Cmdlet 後會發生的情況。 未執行 Cmdlet。

類型:SwitchParameter
別名:wi
Position:Named
預設值:False
必要:False
接受管線輸入:False
接受萬用字元:False

輸入

String

輸出

Microsoft.Azure.Commands.Sql.ThreatDetection.Model.ServerAdvancedThreatProtectionSettingsModel