你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
New-AzDeviceSecurityGroupAllowlistCustomAlertRuleObject
为设备安全组创建新的允许列表自定义警报规则(IoT 安全性)
语法
New-AzDeviceSecurityGroupAllowlistCustomAlertRuleObject
-Enabled <Boolean>
-Type <String>
-AllowlistValue <String[]>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
说明
New-AzDeviceSecurityGroupAllowlistCustomAlertRuleObject cmdlet 为 IoT 安全解决方案中的设备安全组创建新的允许自定义警报规则列表。
示例
示例 1
New-AzDeviceSecurityGroupAllowlistCustomAlertRuleObject -Enabled $false -Type "LocalUserNotAllowed" -AllowlistValue @()
RuleType: "LocalUserNotAllowed"
DisplayName: "Login by a local user that isn't allowed"
Description: "Get an alert when a local user that isn't allowed logins to the device"
IsEnabled: false
ValueType: "String"
AllowlistValues: []
从“LocalUserNotAllowed”类型创建新的允许列表自定义警报,状态设置为禁用
参数
-AllowlistValue
允许列表值。
Type: | String[] |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DefaultProfile
用于与 Azure 通信的凭据、帐户、租户和订阅。
Type: | IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Enabled
是否启用规则。
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Type
规则类型。
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
输入
None
输出
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈