Set-AzApplicationGatewayRoutingRule
Bir uygulama ağ geçidi için yönlendirme kuralını değiştirir.
Syntax
Set-AzApplicationGatewayRoutingRule
-ApplicationGateway <PSApplicationGateway>
-Name <String>
-RuleType <String>
-Priority <Int32>
[-BackendSettings <PSApplicationGatewayBackendSettings>]
[-Listener <PSApplicationGatewayListener>]
[-BackendAddressPool <PSApplicationGatewayBackendAddressPool>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Set-AzApplicationGatewayRoutingRule
-ApplicationGateway <PSApplicationGateway>
-Name <String>
-RuleType <String>
-Priority <Int32>
[-BackendSettingsId <String>]
[-ListenerId <String>]
[-BackendAddressPoolId <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
Set-AzApplicationGatewayRoutingRule cmdlet'i bir yönlendirme kuralını değiştirir.
Örnekler
Örnek 1: Yönlendirme kuralını güncelleştirme
$AppGw = Get-AzApplicationGateway -Name "ApplicationGateway01" -ResourceGroupName "ResourceGroup01"
$AppGw = Set-AzApplicationGatewayRoutingRule -ApplicationGateway $AppGw -Name "Rule01" -RuleType Basic -Priority 100 -BackendSettings $Setting -Listener $Listener -BackendAddressPool $Pool
İlk komut ApplicationGateway01 adlı uygulama ağ geçidini alır ve $AppGw değişkeninde depolar. İkinci komut, uygulama ağ geçidinin yönlendirme kuralını $Setting değişkeninde belirtilen arka uç ayarlarını, $Listener değişkeninde belirtilen dinleyiciyi ve $Pool değişkeninde belirtilen bir arka uç adres havuzunu kullanacak şekilde değiştirir.
Parametreler
-ApplicationGateway
applicationGateway
Type: | PSApplicationGateway |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-BackendAddressPool
Application gateway BackendAddressPool
Type: | PSApplicationGatewayBackendAddressPool |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-BackendAddressPoolId
Uygulama ağ geçidi BackendAddressPool kimliği
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-BackendSettings
Uygulama ağ geçidi Arka Ucu Ayarlar
Type: | PSApplicationGatewayBackendSettings |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-BackendSettingsId
Uygulama ağ geçidi arka ucu kimliği Ayarlar
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DefaultProfile
Azure ile iletişim için kullanılan kimlik bilgileri, hesap, kiracı ve abonelik.
Type: | IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Listener
Application Gateway Dinleyicisi
Type: | PSApplicationGatewayListener |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ListenerId
Uygulama ağ geçidi dinleyicisinin kimliği
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
Yönlendirme Kuralının adı
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Priority
Kuralın önceliği
Type: | Nullable<T>[Int32] |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-RuleType
Kural türü
Type: | String |
Accepted values: | Basic, PathBasedRouting |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Girişler
Çıkışlar
İlişkili Bağlantılar
Azure PowerShell
Geri Bildirim
https://aka.ms/ContentUserFeedback.
Çok yakında: 2024 boyunca, içerik için geri bildirim mekanizması olarak GitHub Sorunları’nı kullanımdan kaldıracak ve yeni bir geri bildirim sistemiyle değiştireceğiz. Daha fazla bilgi için bkz.Gönderin ve geri bildirimi görüntüleyin