Get-AzApplicationGateway
Obtém um gateway de aplicativo.
Sintaxe
Get-AzApplicationGateway
[-Name <String>]
[-ResourceGroupName <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
O cmdlet Get-AzApplicationGateway obtém um gateway de aplicativo.
Exemplos
Exemplo 1: Obter um gateway de aplicativo especificado
$AppGw = Get-AzApplicationGateway -Name "ApplicationGateway01" -ResourceGroupName "ResourceGroup01"
Sku : Microsoft.Azure.Commands.Network.Models.PSApplicationGatewaySku
SslPolicy :
GatewayIPConfigurations : {appGatewayFrontendIP}
AuthenticationCertificates : {}
SslCertificates : {}
TrustedRootCertificates : {}
FrontendIPConfigurations : {appGatewayFrontendIP}
FrontendPorts : {appGatewayFrontendPort}
Probes : {}
BackendAddressPools : {appGatewayBackendPool}
BackendHttpSettingsCollection : {appGatewayBackendHttpSettings}
HttpListeners : {appGatewayHttpListener}
UrlPathMaps : {}
RequestRoutingRules : {rule1}
RewriteRuleSets : {}
RedirectConfigurations : {}
WebApplicationFirewallConfiguration :
AutoscaleConfiguration :
CustomErrorConfigurations : {}
EnableHttp2 :
EnableFips :
ForceFirewallPolicyAssociation :
Zones : {}
OperationalState : Running
ProvisioningState : Succeeded
Identity :
DefaultPredefinedSslPolicy : AppGwSslPolicy20150501
GatewayIpConfigurationsText : []
AuthenticationCertificatesText : []
SslCertificatesText : []
FrontendIpConfigurationsText : []
FrontendPortsText : []
BackendAddressPoolsText : []
BackendHttpSettingsCollectionText : []
HttpListenersText : []
RewriteRuleSetsText : []
RequestRoutingRulesText : []
ProbesText : []
UrlPathMapsText : []
IdentityText : null
SslPolicyText : null
ResourceGroupName : tjp-rg
Location : westus
ResourceGuid : 00000000-0000-0000-0000-000000000000
Type : Microsoft.Network/applicationGateways
Tag : {}
TagsTable :
Name : ApplicationGateway01
Etag : W/"00000000-0000-0000-0000-000000000000"
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ResourceGroup01/provide
rs/Microsoft.Network/applicationGateways/ApplicationGateway01
Este comando obtém o gateway de aplicativo chamado ApplicationGateway01 que pertence ao grupo de recursos chamado ResourceGroup01 e o armazena na variável $AppGw.
Exemplo 2: Obter uma lista de gateways de aplicativos em um grupo de recursos
$AppGwList = Get-AzApplicationGateway -ResourceGroupName "ResourceGroup01"
Sku : Microsoft.Azure.Commands.Network.Models.PSApplicationGatewaySku
SslPolicy :
GatewayIPConfigurations : {appGatewayFrontendIP}
AuthenticationCertificates : {}
SslCertificates : {}
TrustedRootCertificates : {}
FrontendIPConfigurations : {appGatewayFrontendIP}
FrontendPorts : {appGatewayFrontendPort}
Probes : {}
BackendAddressPools : {appGatewayBackendPool}
BackendHttpSettingsCollection : {appGatewayBackendHttpSettings}
HttpListeners : {appGatewayHttpListener}
UrlPathMaps : {}
RequestRoutingRules : {rule1}
RewriteRuleSets : {}
RedirectConfigurations : {}
WebApplicationFirewallConfiguration :
AutoscaleConfiguration :
CustomErrorConfigurations : {}
EnableHttp2 :
EnableFips :
ForceFirewallPolicyAssociation :
Zones : {}
OperationalState : Running
ProvisioningState : Succeeded
Identity :
DefaultPredefinedSslPolicy : AppGwSslPolicy20150501
GatewayIpConfigurationsText : []
AuthenticationCertificatesText : []
SslCertificatesText : []
FrontendIpConfigurationsText : []
FrontendPortsText : []
BackendAddressPoolsText : []
BackendHttpSettingsCollectionText : []
HttpListenersText : []
RewriteRuleSetsText : []
RequestRoutingRulesText : []
ProbesText : []
UrlPathMapsText : []
IdentityText : null
SslPolicyText : null
ResourceGroupName : tjp-rg
Location : westus
ResourceGuid : 00000000-0000-0000-0000-000000000000
Type : Microsoft.Network/applicationGateways
Tag : {}
TagsTable :
Name : ApplicationGateway01
Etag : W/"00000000-0000-0000-0000-000000000000"
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ResourceGroup01/provide
rs/Microsoft.Network/applicationGateways/ApplicationGateway01
Este comando obtém uma lista de todos os gateways de aplicativo no grupo de recursos chamado ResourceGroup01 e a armazena na variável $AppGwList.
Exemplo 3: Obter uma lista de gateways de aplicativos em uma assinatura
$AppGwList = Get-AzApplicationGateway
Sku : Microsoft.Azure.Commands.Network.Models.PSApplicationGatewaySku
SslPolicy :
GatewayIPConfigurations : {appGatewayFrontendIP}
AuthenticationCertificates : {}
SslCertificates : {}
TrustedRootCertificates : {}
FrontendIPConfigurations : {appGatewayFrontendIP}
FrontendPorts : {appGatewayFrontendPort}
Probes : {}
BackendAddressPools : {appGatewayBackendPool}
BackendHttpSettingsCollection : {appGatewayBackendHttpSettings}
HttpListeners : {appGatewayHttpListener}
UrlPathMaps : {}
RequestRoutingRules : {rule1}
RewriteRuleSets : {}
RedirectConfigurations : {}
WebApplicationFirewallConfiguration :
AutoscaleConfiguration :
CustomErrorConfigurations : {}
EnableHttp2 :
EnableFips :
ForceFirewallPolicyAssociation :
Zones : {}
OperationalState : Running
ProvisioningState : Succeeded
Identity :
DefaultPredefinedSslPolicy : AppGwSslPolicy20150501
GatewayIpConfigurationsText : []
AuthenticationCertificatesText : []
SslCertificatesText : []
FrontendIpConfigurationsText : []
FrontendPortsText : []
BackendAddressPoolsText : []
BackendHttpSettingsCollectionText : []
HttpListenersText : []
RewriteRuleSetsText : []
RequestRoutingRulesText : []
ProbesText : []
UrlPathMapsText : []
IdentityText : null
SslPolicyText : null
ResourceGroupName : tjp-rg
Location : westus
ResourceGuid : 00000000-0000-0000-0000-000000000000
Type : Microsoft.Network/applicationGateways
Tag : {}
TagsTable :
Name : ApplicationGateway01
Etag : W/"00000000-0000-0000-0000-000000000000"
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ResourceGroup01/provide
rs/Microsoft.Network/applicationGateways/ApplicationGateway01
Este comando obtém uma lista de todos os gateways de aplicativos na assinatura e a armazena na variável $AppGwList.
Exemplo 4: Obter uma lista de gateways de aplicativos em uma assinatura usando filtragem
$AppGwList = Get-AzApplicationGateway -Name ApplicationGateway*
Sku : Microsoft.Azure.Commands.Network.Models.PSApplicationGatewaySku
SslPolicy :
GatewayIPConfigurations : {appGatewayFrontendIP}
AuthenticationCertificates : {}
SslCertificates : {}
TrustedRootCertificates : {}
FrontendIPConfigurations : {appGatewayFrontendIP}
FrontendPorts : {appGatewayFrontendPort}
Probes : {}
BackendAddressPools : {appGatewayBackendPool}
BackendHttpSettingsCollection : {appGatewayBackendHttpSettings}
HttpListeners : {appGatewayHttpListener}
UrlPathMaps : {}
RequestRoutingRules : {rule1}
RewriteRuleSets : {}
RedirectConfigurations : {}
WebApplicationFirewallConfiguration :
AutoscaleConfiguration :
CustomErrorConfigurations : {}
EnableHttp2 :
EnableFips :
ForceFirewallPolicyAssociation :
Zones : {}
OperationalState : Running
ProvisioningState : Succeeded
Identity :
DefaultPredefinedSslPolicy : AppGwSslPolicy20150501
GatewayIpConfigurationsText : []
AuthenticationCertificatesText : []
SslCertificatesText : []
FrontendIpConfigurationsText : []
FrontendPortsText : []
BackendAddressPoolsText : []
BackendHttpSettingsCollectionText : []
HttpListenersText : []
RewriteRuleSetsText : []
RequestRoutingRulesText : []
ProbesText : []
UrlPathMapsText : []
IdentityText : null
SslPolicyText : null
ResourceGroupName : tjp-rg
Location : westus
ResourceGuid : 00000000-0000-0000-0000-000000000000
Type : Microsoft.Network/applicationGateways
Tag : {}
TagsTable :
Name : ApplicationGateway01
Etag : W/"00000000-0000-0000-0000-000000000000"
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ResourceGroup01/provide
rs/Microsoft.Network/applicationGateways/ApplicationGateway01
Este comando obtém uma lista de todos os gateways de aplicativos na assinatura que começam com "ApplicationGateway01" e a armazena na variável $AppGwList.
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 |
-Name
Especifica o nome do gateway de aplicativo que esse cmdlet obtém.
Tipo: | String |
Aliases: | ResourceName |
Position: | Named |
Default value: | None |
Necessário: | False |
Aceitar entrada de pipeline: | True |
Aceitar carateres universais: | True |
-ResourceGroupName
Especifica o nome do grupo de recursos que contém o gateway de aplicativo.
Tipo: | String |
Position: | Named |
Default value: | None |
Necessário: | False |
Aceitar entrada de pipeline: | True |
Aceitar carateres universais: | True |
Entradas
Saídas
Ligações Relacionadas
Azure PowerShell