Get-AzNetworkManagerActiveSecurityAdminRule
Visar networkmanager active security admin rules in network manager (NätverkHantera aktiva säkerhetsadministratörsregler i nätverkshanteraren).
Syntax
Get-AzNetworkManagerActiveSecurityAdminRule
-NetworkManagerName <String>
-ResourceGroupName <String>
[-Region <String[]>]
[-SkipToken <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
Cmdleten Get-AzNetworkManagerActiveSecurityAdminRule listar NetworkManager Active Security Admin Rules i network manager.
Exempel
Exempel 1
$regions = @("centraluseuap")
Get-AzNetworkManagerActiveSecurityAdminRule -NetworkManagerName "TestNMName" -ResourceGroupName "TestRG" -Region $regions -SkipToken "FakeSkipToken"
Value : [
{
"DisplayName": "Sample Rule Name",
"Description": "Description",
"Protocol": "Tcp",
"Sources": [
{
"AddressPrefix": "Internet",
"AddressPrefixType": "ServiceTag"
}
],
"Destinations": [
{
"AddressPrefix": "10.0.0.1",
"AddressPrefixType": "IPPrefix"
}
],
"SourcePortRanges": [
"100"
],
"DestinationPortRanges": [
"99"
],
"Access": "Allow",
"Priority": 100,
"Direction": "Inbound",
"ProvisioningState": "Succeeded",
"Id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/TestRG/providers/Microsoft.Network/networkManagers/TestNMName/securityAdminConfigurations/TestAdminConfig/ruleCollections/TestRuleCollection/rules/TestRule",
"Region": "eastus2euap",
"ConfigurationDisplayName": "sample Config DisplayName",
"ConfigurationDescription": "DESCription",
"RuleCollectionDisplayName": "Sample rule Collection displayName",
"RuleCollectionDescription": "Sample rule Collection Description",
"RuleCollectionAppliesToGroups": [
{
"NetworkGroupId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/TestRG/providers/Microsoft.Network/networkManagers/TestNMName/networkGroups/testNG"
}
],
"RuleGroups": [
{
"Id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/TestRG/providers/Microsoft.Network/networkManagers/TestNMName/networkGroups/testNG",
"DisplayName": "DISplayName",
"Description": "SampleConfigDESCRIption",
"GroupMembers": [
{
"ResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/TestRG/providers/Microsoft.Network/virtualNetworks/testvnet"
}
],
"ConditionalMembership": "",
"ProvisioningState": "Succeeded"
}
]
}
]
SkipToken :
Listar NetworkManager Active Security Admin Rules in network manager for region centraluseuap.
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 |
-NetworkManagerName
Namnet på nätverkshanteraren.
Typ: | String |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | True |
Godkänn pipeline-indata: | True |
Godkänn jokertecken: | True |
-Region
Lista över regioner.
Typ: | String[] |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | False |
Godkänn pipeline-indata: | True |
Godkänn jokertecken: | False |
-ResourceGroupName
Resursgruppens namn.
Typ: | String |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | True |
Godkänn pipeline-indata: | True |
Godkänn jokertecken: | True |
-SkipToken
SkipToken.
Typ: | String |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | False |
Godkänn pipeline-indata: | True |
Godkänn jokertecken: | False |
Indata
System.String[]
Utdata
Microsoft.Azure.Commands.Network.Models.NetworkManager.PSNetworkManagerActiveSecurityAdminRuleListResult
Relaterade länkar
Azure PowerShell