Get-AzureRmSqlServerAdvancedThreatProtectionPolicy
取得伺服器的進階威脅防護原則。
警告
自 2024 年 2 月 29 日起,AzureRM PowerShell 模組已正式淘汰。 建議使用者從 AzureRM 遷移至 Az PowerShell 模組,以確保持續支援和更新。
雖然 AzureRM 模組可能仍可運作,但不再維護或支援它,但會根據用戶的判斷權和風險放置任何繼續使用。 如需轉換至 Az 模組的指引,請參閱我們的 移轉資源 。
語法
Get-AzureRmSqlServerAdvancedThreatProtectionPolicy
[-InputObject <AzureSqlServerModel>]
-ServerName <String>
[-ResourceGroupName] <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
Get-AzureRmSqlServerAdvancedThreatProtectionPolicy Cmdlet 會重試伺服器的進階威脅防護原則。
範例
範例 1 - 取得伺服器進階威脅防護
PS C:\> Get-AzureRmSqlServerAdvancedThreatProtectionPolicy `
-ResourceGroupName "ResourceGroup01" `
-ServerName "Server01"
ResourceGroupName : ResourceGroup01
ServerName : Server01
IsEnabled : True
範例 2 - 從伺服器資源取得伺服器進階威脅防護
PS C:\> Get-AzureRmSqlServer `
-ResourceGroupName "ResourceGroup01" `
-ServerName "Server01" `
| Get-AzureRmSqlServerAdvancedThreatProtectionPolicy
ResourceGroupName : ResourceGroup01
ServerName : Server01
IsEnabled : True
參數
-DefaultProfile
用於與 Azure 通訊的認證、帳戶、租用戶和訂用帳戶。
類型: | IAzureContextContainer |
別名: | AzureRmContext, AzureCredential |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-InputObject
要與進階威脅防護原則作業搭配使用的伺服器物件
類型: | AzureSqlServerModel |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | True |
接受萬用字元: | False |
-ResourceGroupName
資源群組的名稱。
類型: | String |
Position: | 0 |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |
-ServerName
SQL 資料庫 伺服器名稱。
類型: | String |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |
輸入
參數:InputObject (ByValue)
輸出
Microsoft.Azure.Commands.Sql.AdvancedThreatProtection.Model.ServerAdvancedThreatProtectionPolicyModel