你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
New-AzSecurityAutomationRuleObject
创建安全自动化规则对象
语法
New-AzSecurityAutomationRuleObject
-PropertyJPath <String>
-Operator <String>
-ExpectedValue <String>
-PropertyType <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
说明
创建安全自动化规则对象
示例
示例 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
要使用的有效比较器运算符。 不区分大小写的比较将应用于 String 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