Get-AzNetworkManagerSecurityUserRule
Hämtar en säkerhetsanvändarregel i en nätverkshanterare.
Syntax
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
Cmdletarna Get-AzNetworkManagerSecurityUserRule hämtar säkerhetsanvändarregeln i en nätverkshanterare.
Exempel
Exempel 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"
}
Hämtar en säkerhetsanvändarregel i en regelvals.
Exempel 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"
}
Hämtar alla regler i en säkerhetsanvändarregelsamling.
Parametrar
-DefaultProfile
Autentiseringsuppgifter, konto, klientorganisation och prenumeration som används för kommunikation med Azure.
Typ: | IAzureContextContainer |
Alias: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | False |
Godkänn pipeline-indata: | False |
Godkänn jokertecken: | False |
-Name
Resursnamnet.
Typ: | String |
Alias: | ResourceName |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | True |
Godkänn pipeline-indata: | True |
Godkänn jokertecken: | True |
-NetworkManagerName
Namnet på nätverkshanteraren.
Typ: | String |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | True |
Godkänn pipeline-indata: | True |
Godkänn jokertecken: | True |
-ResourceGroupName
Resursgruppens namn.
Typ: | String |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | True |
Godkänn pipeline-indata: | True |
Godkänn jokertecken: | False |
-ResourceId
NetworkManager SecurityUserRule-ID
Typ: | String |
Alias: | SecurityUserRuleId |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | True |
Godkänn pipeline-indata: | True |
Godkänn jokertecken: | False |
-RuleCollectionName
Samlingsnamnet för nätverkshanterarens säkerhetsanvändarregel.
Typ: | String |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | True |
Godkänn pipeline-indata: | True |
Godkänn jokertecken: | True |
-SecurityUserConfigurationName
Konfigurationsnamnet för nätverkshanterarens säkerhetsanvändare.
Typ: | String |
Alias: | ConfigName |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | True |
Godkänn pipeline-indata: | True |
Godkänn jokertecken: | True |
Indata
Utdata
Microsoft.Azure.Commands.Network.Models.NetworkManager.PSNetworkManagerSecurityBaseUserRule
Relaterade länkar
Azure PowerShell