共用方式為


Confirm-AzSecurityAutomation

先驗證安全性自動化模型,再建立或更新。 任何驗證錯誤都傳回給用戶端

語法

Confirm-AzSecurityAutomation
       -ResourceGroupName <String>
       -Name <String>
       -Location <String>
       [-Etag <String>]
       [-Tag <Hashtable>]
       [-Description <String>]
       [-IsEnabled <Boolean>]
       -Scope <PSSecurityAutomationScope[]>
       -Source <PSSecurityAutomationSource[]>
       -Action <PSSecurityAutomationAction[]>
       [-DefaultProfile <IAzureContextContainer>]
       [<CommonParameters>]
Confirm-AzSecurityAutomation
       -ResourceId <String>
       -Location <String>
       [-Etag <String>]
       [-Tag <Hashtable>]
       [-Description <String>]
       [-IsEnabled <Boolean>]
       -Scope <PSSecurityAutomationScope[]>
       -Source <PSSecurityAutomationSource[]>
       -Action <PSSecurityAutomationAction[]>
       [-DefaultProfile <IAzureContextContainer>]
       [<CommonParameters>]
Confirm-AzSecurityAutomation
       [-Location <String>]
       [-Etag <String>]
       [-Tag <Hashtable>]
       [-Description <String>]
       [-IsEnabled <Boolean>]
       [-Scope <PSSecurityAutomationScope[]>]
       [-Source <PSSecurityAutomationSource[]>]
       -Action <PSSecurityAutomationAction[]>
       -InputObject <PSSecurityAutomation>
       [-DefaultProfile <IAzureContextContainer>]
       [<CommonParameters>]

Description

先驗證安全性自動化模型,再建立或更新。 任何驗證錯誤都傳回給用戶端

範例

範例 1

Confirm-AzSecurityAutomation -Name 'SampleAutomation' -ResourceGroupName 'SampleResourceGroup' -Description 'Sample security automation' -Scope $scopes -Source $sources -Action $actions

驗證在名為 「SampleResourceGroup」 的資源群組下建立名為 「SampleAutomation」 的安全性自動化

參數

-Action

如果所有已設定的規則評估至少在一個規則集內觸發的動作集合為 true

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

-DefaultProfile

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

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

-Description

安全性自動化描述

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

-Etag

實體標籤用於比較來自相同要求資源的兩個或多個實體

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

-InputObject

Input 物件。

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

-IsEnabled

已啟用規則。

類型:Nullable<T>[Boolean]
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-Location

位置。

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

-Name

資源名稱。

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

-ResourceGroupName

資源組名。

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

-ResourceId

您要叫用命令之安全性資源的識別碼。

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

-Scope

套用安全性自動化邏輯的範圍集合。 支援的範圍是訂用帳戶本身或該訂用帳戶下的資源群組。 自動化只會套用至定義的範圍

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

-Source

評估規則安全性自動化集合的來源事件類型集合

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

-Tag

標籤。

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

輸入

輸出