Get-AzNetworkManagerRoutingRule
Obtém uma regra de roteamento em um gerenciador de rede.
Sintaxe
Get-AzNetworkManagerRoutingRule
-RuleCollectionName <String>
-RoutingConfigurationName <String>
-NetworkManagerName <String>
-ResourceGroupName <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzNetworkManagerRoutingRule
-Name <String>
-RuleCollectionName <String>
-RoutingConfigurationName <String>
-NetworkManagerName <String>
-ResourceGroupName <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzNetworkManagerRoutingRule
-ResourceId <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
Os cmdlets Get-AzNetworkManagerRoutingRule
Exemplos
Exemplo 1
Get-AzNetworkManagerRoutingRule -Name "testRule" -RuleCollectionName "TestRC" -RoutingConfigurationName "TestRoutingConfig" -NetworkManagerName "TestNMName" -ResourceGroupName "TestRG"
Name : testRule
Description : Description
Type : Microsoft.Network/networkManagers/routingConfigurations/ruleCollections/rules
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/TestRG/providers/Microsoft.Network/networkManagers/TestNMName/routingConfigurations/TestRoutingConfig/ruleCollections/TestRC/rules/testRule
Etag : "00000000-0000-0000-0000-000000000000"
ProvisioningState : Succeeded
NextHop : {
"NextHopAddress": "ApiManagement",
"NextHopType": "ServiceTag"
}
Destination : {
"DestinationAddress": "10.0.0.1",
"Type": "AddressPrefix"
}
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"
}
Obtém uma regra de roteamento em uma rollection de regra.
Exemplo 2
Get-AzNetworkManagerRoutingRule -RuleCollectionName "TestRC" -RoutingConfigurationName "TestRoutingConfig" -NetworkManagerName "TestNMName" -ResourceGroupName "TestRG"
Name : testRule
Description : Description
Type : Microsoft.Network/networkManagers/routingConfigurations/ruleCollections/rules
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/TestRG/providers/Microsoft.Network/networkManagers/TestNMName/routingConfigurations/TestRoutingConfig/ruleCollections/TestRC/rules/testRule
Etag : "00000000-0000-0000-0000-000000000000"
ProvisioningState : Succeeded
NextHop : {
"NextHopAddress": "ApiManagement",
"NextHopType": "ServiceTag"
}
Destination : {
"DestinationAddress": "10.0.0.1",
"Type": "AddressPrefix"
}
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/routingConfigurations/ruleCollections/rules
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/TestRG/providers/Microsoft.Network/networkManagers/TestNMName/routingConfigurations/TestRoutingConfig/ruleCollections/TestRC/rules/testRule2
Etag : "00000000-0000-0000-0000-000000000000"
ProvisioningState : Succeeded
NextHop : {
"NextHopAddress": "ApiManagement",
"NextHopType": "ServiceTag"
}
Destination : {
"DestinationAddress": "20.0.0.1",
"Type": "AddressPrefix"
}
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"
}
Obtém todas as regras dentro de uma coleção de regras de roteamento.
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 |
Cargo: | Named |
Valor padrão: | None |
Obrigatório: | False |
Aceitar a entrada de pipeline: | False |
Aceitar caracteres curinga: | False |
-Name
O nome do recurso.
Tipo: | String |
Aliases: | ResourceName |
Cargo: | Named |
Valor padrão: | None |
Obrigatório: | True |
Aceitar a entrada de pipeline: | True |
Aceitar caracteres curinga: | True |
-NetworkManagerName
O nome do gerenciador de rede.
Tipo: | String |
Cargo: | Named |
Valor padrão: | None |
Obrigatório: | True |
Aceitar a entrada de pipeline: | True |
Aceitar caracteres curinga: | True |
-ResourceGroupName
O nome do grupo de recursos.
Tipo: | String |
Cargo: | Named |
Valor padrão: | None |
Obrigatório: | True |
Aceitar a entrada de pipeline: | True |
Aceitar caracteres curinga: | False |
-ResourceId
NetworkManager RoutingRule Id
Tipo: | String |
Aliases: | RoutingRuleId |
Cargo: | Named |
Valor padrão: | None |
Obrigatório: | True |
Aceitar a entrada de pipeline: | True |
Aceitar caracteres curinga: | False |
-RoutingConfigurationName
O nome da configuração de roteamento do gerenciador de rede.
Tipo: | String |
Aliases: | ConfigName |
Cargo: | Named |
Valor padrão: | None |
Obrigatório: | True |
Aceitar a entrada de pipeline: | True |
Aceitar caracteres curinga: | True |
-RuleCollectionName
O nome da coleção de regras de roteamento do gerenciador de rede.
Tipo: | String |
Cargo: | Named |
Valor padrão: | None |
Obrigatório: | True |
Aceitar a entrada de pipeline: | True |
Aceitar caracteres curinga: | True |
Entradas
Saídas
Links Relacionados
Azure PowerShell