New-AzDeviceSecurityGroupTimeWindowRuleObject
為裝置安全組建立新的時間範圍規則 (IoT 安全性)
語法
New-AzDeviceSecurityGroupTimeWindowRuleObject
-TimeWindowSize <TimeSpan>
-MinThreshold <Int32>
-MaxThreshold <Int32>
-Enabled <Boolean>
-Type <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
New-AzDeviceSecurityGroupTimeWindowRuleObject Cmdlet 會為IoT安全性解決方案中的裝置安全組建立新的時間範圍警示規則清單。
範例
範例 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"
從 「ActiveConnectionsNotInAllowedRange」 類型建立新的時間範圍規則
參數
-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 |
-TimeWindowSize
時間範圍大小。
類型: | TimeSpan |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-Type
規則類型。
類型: | String |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
輸入
None