Set-AzApplicationGatewayFrontendPort
Módosítja az application gateway előtérbeli portját.
Syntax
Set-AzApplicationGatewayFrontendPort
-ApplicationGateway <PSApplicationGateway>
-Name <String>
-Port <Int32>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
A Set-AzApplicationGatewayFrontendPort parancsmag módosítja az application gateway előtérportját.
Példák
1. példa: Application Gateway előtérport beállítása 80-ra
$AppGw = Get-AzApplicationGateway -Name "ApplicationGateway01" -ResourceGroupName "ResourceGroup01"
$AppGw = Set-AzApplicationGatewayFrontendPort -ApplicationGateway $AppGw -Name "FrontEndPort01" -Port 80
Az első parancs lekéri az ApplicationGateway01 nevű application gatewayt, amely a ResourceGroup01 nevű erőforráscsoporthoz tartozik, és a $AppGw változóban tárolja. A második parancs módosítja az átjárót $AppGw, hogy a FrontEndPort01 nevű előtérbeli porthoz a 80-at használja.
Paraméterek
-ApplicationGateway
Megadja azt az Application Gateway-objektumot, amellyel ez a parancsmag társítja az előtérportot.
Type: | PSApplicationGateway |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-DefaultProfile
Az Azure-ral való kommunikációhoz használt hitelesítő adatok, fiók, bérlő és előfizetés.
Type: | IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
Megadja a módosítani kívánt előtér-port nevét.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Port
Megadja az előtérbeli porthoz használandó portszámot.
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |