你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Get-AzNetworkManagerSecurityAdminRuleCollection
获取网络管理器中的安全管理员规则集合。
语法
Get-AzNetworkManagerSecurityAdminRuleCollection
[-Name <String>]
-SecurityAdminConfigurationName <String>
-NetworkManagerName <String>
-ResourceGroupName <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzNetworkManagerSecurityAdminRuleCollection
-Name <String>
-SecurityAdminConfigurationName <String>
-NetworkManagerName <String>
-ResourceGroupName <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
说明
Get-AzNetworkManagerSecurityAdminRuleCollection cmdlet 获取网络管理器中的安全管理员规则集合。
示例
示例 1
Get-AzNetworkManagerSecurityAdminRuleCollection -Name "TestRC" -SecurityAdminConfigurationName "TestSecConfig" -NetworkManagerName "TestNMName" -ResourceGroupName "TestRG"
Name : TestRC
Description : Sample rule Collection Description
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/TestRG/providers/Microsoft.Network/networkManagers/TestNMName/securityAdminConfigurations/TestSecConfig/ruleCollections/TestRC
Type : Microsoft.Network/networkManagers/securityAdminConfigurations/ruleCollections
Etag : "00000000-0000-0000-0000-000000000000"
ProvisioningState : Succeeded
AppliesToGroups : [
{
"NetworkGroupId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/TestRG/providers/Microsoft.Network/networkManagers/TestNMName/networkGroups/testng"
}
]
SystemData : {
"CreatedBy": "00000000-0000-0000-0000-000000000000",
"CreatedByType": "Application",
"CreatedAt": "2021-10-18T04:06:01",
"LastModifiedBy": "00000000-0000-0000-0000-000000000000",
"LastModifiedByType": "Application",
"LastModifiedAt": "2021-10-18T04:06:03"
}
获取具有安全管理员配置的规则集合。
示例 2
Get-AzNetworkManagerSecurityAdminRuleCollection -SecurityAdminConfigurationName "TestSecConfig" -NetworkManagerName "TestNMName" -ResourceGroupName "TestRG"
Name : TestRC
Description : Sample rule Collection Description
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/TestRG/providers/Microsoft.Network/networkManagers/TestNMName/securityAdminConfigurations/TestSecConfig/ruleCollections/TestRC
Type : Microsoft.Network/networkManagers/securityAdminConfigurations/ruleCollections
Etag : "00000000-0000-0000-0000-000000000000"
ProvisioningState : Succeeded
AppliesToGroups : [
{
"NetworkGroupId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/TestRG/providers/Microsoft.Network/networkManagers/TestNMName/networkGroups/testng"
}
]
SystemData : {
"CreatedBy": "00000000-0000-0000-0000-000000000000",
"CreatedByType": "Application",
"CreatedAt": "2021-10-18T04:06:01",
"LastModifiedBy": "00000000-0000-0000-0000-000000000000",
"LastModifiedByType": "Application",
"LastModifiedAt": "2021-10-18T04:06:03"
}
Name : TestRC2
Description : Sample rule Collection Description
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/TestRG/providers/Microsoft.Network/networkManagers/TestNMName/securityAdminConfigurations/TestSecConfig/ruleCollections/TestRC2
Type : Microsoft.Network/networkManagers/securityAdminConfigurations/ruleCollections
Etag : "00000000-0000-0000-0000-000000000000"
ProvisioningState : Succeeded
AppliesToGroups : [
{
"NetworkGroupId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/TestRG/providers/Microsoft.Network/networkManagers/TestNMName/networkGroups/testng"
}
]
SystemData : {
"CreatedBy": "00000000-0000-0000-0000-000000000000",
"CreatedByType": "Application",
"CreatedAt": "2021-10-18T04:06:01",
"LastModifiedBy": "00000000-0000-0000-0000-000000000000",
"LastModifiedByType": "Application",
"LastModifiedAt": "2021-10-18T04:06:03"
}
获取安全管理员配置中的所有规则集合。
参数
-DefaultProfile
用于与 Azure 通信的凭据、帐户、租户和订阅。
类型: | IAzureContextContainer |
别名: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-Name
资源名称。
类型: | String |
别名: | ResourceName |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | True |
-NetworkManagerName
网络管理器名称。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | True |
-ResourceGroupName
资源组名称。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | True |
-SecurityAdminConfigurationName
网络管理器安全管理员配置名称。
类型: | String |
别名: | ConfigName |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | True |
输入
输出
PSNetworkManagerSecurityAdminRuleCollection