Set-AzApplicationGatewayCustomError
Bir uygulama ağ geçidinde özel bir hata Güncelleştirmeler.
Syntax
Set-AzApplicationGatewayCustomError
-ApplicationGateway <PSApplicationGateway>
-StatusCode <String>
-CustomErrorPageUrl <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
Set-AzApplicationGatewayCustomError cmdlet'i bir uygulama ağ geçidinde özel bir hatayı güncelleştirir.
Örnekler
Örnek 1: Bir uygulama ağ geçidinde özel hata Güncelleştirmeler
$customError502Url = "https://mycustomerrorpages.blob.core.windows.net/errorpages/502.htm"
$updatedgateway = Set-AzApplicationGatewayCustomError -ApplicationGateway $appgw -StatusCode HttpStatus502 -CustomErrorPageUrl $customError502Url
Bu komut, uygulama ağ geçidi $appgw http durum kodu 502'nin özel hatasını güncelleştirir ve güncelleştirilmiş ağ geçidini döndürür.
Parametreler
-ApplicationGateway
The Application Gateway
Type: | PSApplicationGateway |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-CustomErrorPageUrl
Uygulama ağ geçidi müşteri hatasının hata sayfası URL'si.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
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 |
-StatusCode
Uygulama ağ geçidi müşteri hatasının durum kodu.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Girişler
Çıkışlar
PSApplicationGatewayCustomError
İ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