閱讀英文

共用方式為


New-AzDeviceSecurityGroupThresholdCustomAlertRuleObject

為裝置安全組建立新的閾值自訂警示規則 (IoT 安全性)

語法

New-AzDeviceSecurityGroupThresholdCustomAlertRuleObject
   -MinThreshold <Int32>
   -MaxThreshold <Int32>
   -Enabled <Boolean>
   -Type <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

New-AzDeviceSecurityGroupThresholdCustomAlertRuleObject Cmdlet 會為 IoT 安全性解決方案中的裝置安全組建立新的閾值自定義警示規則清單。

範例

範例 1

New-AzDeviceSecurityGroupThresholdCustomAlertRuleObject -MinThreshold 0 -MaxThreshold 10 -Enabled $true -Type "SomeRuleType"

RuleType: "SomeRuleType"
DisplayName: "Display name for some rule type"
Description: "Description for some rule type"
IsEnabled: false
MinThreshold: 0
MaxThreshold: 10

從類型 「SomeRuleType」 建立新的閾值自定義警示規則,並針對最小值和最大閾值啟用狀態的 ant 值

參數

-DefaultProfile

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

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

-Enabled

已啟用規則。

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

-MaxThreshold

最大臨界值。

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

-MinThreshold

最小臨界值。

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

-Type

規則類型:

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

輸入

None

輸出

PSThresholdCustomAlertRule