Delen via


New-AzDeviceSecurityGroupTimeWindowRuleObject

Nieuwe tijdvensterregel maken voor apparaatbeveiligingsgroep (IoT-beveiliging)

Syntax

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

Description

Met de cmdlet New-AzDeviceSecurityGroupTimeWindowRuleObject maakt u een nieuwe lijst met waarschuwingsregels voor tijdvensters voor apparaatbeveiligingsgroep in ioT-beveiligingsoplossing.

Voorbeelden

Voorbeeld 1

$TimeWindowSize = New-TimeSpan -Minutes 5
New-AzDeviceSecurityGroupTimeWindowRuleObject -TimeWindowSize $TimeWindowSize -MinThreshold 0 -MaxThreshold 30 -Enabled $true -Type "ActiveConnectionsNotInAllowedRange"

RuleType: "ActiveConnectionsNotInAllowedRange"
DisplayName: "Number of active connections is not in allowed range"
Description: "Get an alert when the number of active connections of a device in the time window is not in the allowed range"
IsEnabled: false
MinThreshold: 0
MaxThreshold: 30
TimeWindowSize: "PT5M"

Nieuwe tijdvensterregel maken op basis van het type Active Verbinding maken ionsNotInAllowedRange

Parameters

-DefaultProfile

De referenties, accounts, tenants en abonnementen die worden gebruikt voor communicatie met Azure.

Type:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
standaardwaarde:None
Vereist:False
Accept pipeline input:False
Accept wildcard characters:False

-Enabled

Is regel ingeschakeld.

Type:Boolean
Position:Named
standaardwaarde:None
Vereist:True
Accept pipeline input:False
Accept wildcard characters:False

-MaxThreshold

Maximumdrempel.

Type:Int32
Position:Named
standaardwaarde:None
Vereist:True
Accept pipeline input:False
Accept wildcard characters:False

-MinThreshold

Minimumdrempel.

Type:Int32
Position:Named
standaardwaarde:None
Vereist:True
Accept pipeline input:False
Accept wildcard characters:False

-TimeWindowSize

Tijdvenstergrootte.

Type:TimeSpan
Position:Named
standaardwaarde:None
Vereist:True
Accept pipeline input:False
Accept wildcard characters:False

-Type

Type regel.

Type:String
Position:Named
standaardwaarde:None
Vereist:True
Accept pipeline input:False
Accept wildcard characters:False

Invoerwaarden

None

Uitvoerwaarden

PSTimeWindowCustomAlertRule