Get-AzNetworkManagerSecurityUserRule
取得網路管理員中的安全性用戶規則。
語法
Get-AzNetworkManagerSecurityUserRule
-RuleCollectionName <String>
-SecurityUserConfigurationName <String>
-NetworkManagerName <String>
-ResourceGroupName <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzNetworkManagerSecurityUserRule
-Name <String>
-RuleCollectionName <String>
-SecurityUserConfigurationName <String>
-NetworkManagerName <String>
-ResourceGroupName <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzNetworkManagerSecurityUserRule
-ResourceId <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
Get-AzNetworkManagerSecurityUserRule Cmdlet 會在網路管理員中取得安全性用戶規則。
範例
範例 1
Get-AzNetworkManagerSecurityUserRule -Name "testRule" -RuleCollectionName "TestRC" -SecurityUserConfigurationName "TestSecConfig" -NetworkManagerName "TestNMName" -ResourceGroupName "TestRG"
Name : testRule
Description : Description
Type : Microsoft.Network/networkManagers/securityUserConfigurations/ruleCollections/rules
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/TestRG/providers/Microsoft.Network/networkManagers/TestNMName/securityUserConfigurations/TestSecConfig/ruleCollections/TestRC/rules/testRule
Etag : "00000000-0000-0000-0000-000000000000"
ProvisioningState : Succeeded
Protocol : Tcp
Direction : Inbound
Sources : [
{
"AddressPrefix": "Internet",
"AddressPrefixType": "ServiceTag"
}
]
Destinations : [
{
"AddressPrefix": "10.0.0.1",
"AddressPrefixType": "IPPrefix"
}
]
SourcePortRanges : [
"100"
]
DestinationPortRanges : [
"99"
]
Access : Allow
Priority : 100
SystemData : {
"CreatedBy": "00000000-0000-0000-0000-000000000000",
"CreatedByType": "Application",
"CreatedAt": "2021-10-18T04:06:05",
"LastModifiedBy": "00000000-0000-0000-0000-000000000000",
"LastModifiedByType": "Application",
"LastModifiedAt": "2021-10-18T04:06:06"
}
取得規則匯總中的安全性用戶規則。
範例 2
Get-AzNetworkManagerSecurityUserRule -RuleCollectionName "TestRC" -SecurityUserConfigurationName "TestSecConfig" -NetworkManagerName "TestNMName" -ResourceGroupName "TestRG"
Name : testRule
Description : Description
Type : Microsoft.Network/networkManagers/securityUserConfigurations/ruleCollections/rules
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/TestRG/providers/Microsoft.Network/networkManagers/TestNMName/securityUserConfigurations/TestSecConfig/ruleCollections/TestRC/rules/testRule
Etag : "00000000-0000-0000-0000-000000000000"
ProvisioningState : Succeeded
Protocol : Tcp
Direction : Inbound
Sources : [
{
"AddressPrefix": "Internet",
"AddressPrefixType": "ServiceTag"
}
]
Destinations : [
{
"AddressPrefix": "10.0.0.1",
"AddressPrefixType": "IPPrefix"
}
]
SourcePortRanges : [
"100"
]
DestinationPortRanges : [
"99"
]
Access : Allow
Priority : 100
SystemData : {
"CreatedBy": "00000000-0000-0000-0000-000000000000",
"CreatedByType": "Application",
"CreatedAt": "2021-10-18T04:06:05",
"LastModifiedBy": "00000000-0000-0000-0000-000000000000",
"LastModifiedByType": "Application",
"LastModifiedAt": "2021-10-18T04:06:06"
}
Name : testRule2
Description : Description
Type : Microsoft.Network/networkManagers/securityUserConfigurations/ruleCollections/rules
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/TestRG/providers/Microsoft.Network/networkManagers/TestNMName/securityUserConfigurations/TestSecConfig/ruleCollections/TestRC/rules/testRule2
Etag : "00000000-0000-0000-0000-000000000000"
ProvisioningState : Succeeded
Protocol : Tcp
Direction : Inbound
Sources : [
{
"AddressPrefix": "Internet",
"AddressPrefixType": "ServiceTag"
}
]
Destinations : [
{
"AddressPrefix": "10.0.0.1",
"AddressPrefixType": "IPPrefix"
}
]
SourcePortRanges : [
"100"
]
DestinationPortRanges : [
"99"
]
Access : Allow
Priority : 100
SystemData : {
"CreatedBy": "00000000-0000-0000-0000-000000000000",
"CreatedByType": "Application",
"CreatedAt": "2021-10-18T04:06:05",
"LastModifiedBy": "00000000-0000-0000-0000-000000000000",
"LastModifiedByType": "Application",
"LastModifiedAt": "2021-10-18T04:06:06"
}
取得安全性用戶規則集合內的所有規則。
參數
-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 |
接受萬用字元: | False |
-ResourceId
NetworkManager SecurityUserRule 標識符
類型: | String |
別名: | SecurityUserRuleId |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |
-RuleCollectionName
網路管理員安全性用戶規則集合名稱。
類型: | String |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | True |
-SecurityUserConfigurationName
網路管理員安全性用戶組態名稱。
類型: | String |
別名: | ConfigName |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | True |
輸入
輸出
Microsoft.Azure.Commands.Network.Models.NetworkManager.PSNetworkManagerSecurityBaseUserRule