Get-AzNetworkManagerActiveSecurityAdminRule
Lista as Regras de Administração de Segurança Ativa do NetworkManager no gerenciador de rede.
Sintaxe
Get-AzNetworkManagerActiveSecurityAdminRule
-NetworkManagerName <String>
-ResourceGroupName <String>
[-Region <String[]>]
[-SkipToken <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
O cmdlet Get-AzNetworkManagerActiveSecurityAdminRule lista as Regras de Administração de Segurança Ativa do NetworkManager no gerenciador de rede.
Exemplos
Exemplo 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 :
Lista as regras de administração de segurança ativa do NetworkManager no gerenciador de rede para a região centraluseuap.
Parâmetros
-DefaultProfile
As credenciais, a conta, o locatário e a assinatura usados para comunicação com o Azure.
Tipo: | IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Necessário: | False |
Aceitar entrada de pipeline: | False |
Aceitar carateres universais: | False |
-NetworkManagerName
O nome do gestor de rede.
Tipo: | String |
Position: | Named |
Default value: | None |
Necessário: | True |
Aceitar entrada de pipeline: | True |
Aceitar carateres universais: | True |
-Region
Lista de regiões.
Tipo: | String[] |
Position: | Named |
Default value: | None |
Necessário: | False |
Aceitar entrada de pipeline: | True |
Aceitar carateres universais: | False |
-ResourceGroupName
O nome do grupo de recursos.
Tipo: | String |
Position: | Named |
Default value: | None |
Necessário: | True |
Aceitar entrada de pipeline: | True |
Aceitar carateres universais: | True |
-SkipToken
SkipToken.
Tipo: | String |
Position: | Named |
Default value: | None |
Necessário: | False |
Aceitar entrada de pipeline: | True |
Aceitar carateres universais: | False |
Entradas
System.String[]
Saídas
Microsoft.Azure.Commands.Network.Models.NetworkManager.PSNetworkManagerActiveSecurityAdminRuleListResult