次の方法で共有


New-AzDeviceSecurityGroupThresholdCustomAlertRuleObject

デバイス セキュリティ グループの新しいしきい値カスタム アラート ルールを作成する (IoT セキュリティ)

構文

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

説明

New-AzDeviceSecurityGroupThresholdCustomAlertRuleObject コマンドレットは、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
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
既定値:None
必須:False
Accept pipeline input:False
Accept wildcard characters:False

-Enabled

ルールが有効になっています。

型:Boolean
Position:Named
既定値:None
必須:True
Accept pipeline input:False
Accept wildcard characters:False

-MaxThreshold

最大しきい値。

型:Int32
Position:Named
既定値:None
必須:True
Accept pipeline input:False
Accept wildcard characters:False

-MinThreshold

最小しきい値。

型:Int32
Position:Named
既定値:None
必須:True
Accept pipeline input:False
Accept wildcard characters:False

-Type

ルールの種類。

型:String
Position:Named
既定値:None
必須:True
Accept pipeline input:False
Accept wildcard characters:False

入力

None

出力

PSThresholdCustomAlertRule