共用方式為


New-AzDeviceSecurityGroupThresholdCustomAlertRuleObject

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

語法

Default (預設值)

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
預設值:None
支援萬用字元:False
不要顯示:False
別名:AzContext, AzureRmContext, AzureCredential

參數集

(All)
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-Enabled

是否啟用規則。

參數屬性

類型:Boolean
預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:True
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-MaxThreshold

最大臨界值。

參數屬性

類型:Int32
預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:True
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-MinThreshold

最低閾值。

參數屬性

類型:Int32
預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:True
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-Type

規則類型。

參數屬性

類型:String
預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:True
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

CommonParameters

此 Cmdlet 支援常見參數:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 如需詳細資訊,請參閱 about_CommonParameters

輸入

None

輸出

PSThresholdCustomAlertRule