共用方式為


New-AzSecurityAutomationRuleObject

建立安全性自動化規則物件

語法

New-AzSecurityAutomationRuleObject
   -PropertyJPath <String>
   -Operator <String>
   -ExpectedValue <String>
   -PropertyType <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

建立安全性自動化規則物件

範例

範例 1

New-AzSecurityAutomationRuleObject -PropertyJPath 'properties.metadata.severity'  -PropertyType 'String' -Operator 'Equals'  -ExpectedValue 'High'

建立安全性自動化規則物件,以篩選具有「高」嚴重性的訊息

參數

-DefaultProfile

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

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

-ExpectedValue

預期的值

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

-Operator

要使用的有效比較子運算符。 字串 PropertyType 將套用不區分大小寫的比較

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

-PropertyJPath

應檢查之實體模型屬性的 JPath

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

-PropertyType

比較作數的數據類型(字串、整數、浮點數或布爾值 [true/false]]

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

輸入

None

輸出