Azure / Azure/azure-powershell

Example 01 is not complete

Open
#24,603 3 comments 0 reactions 0 assignees View on GitHub
act-quality-productivity-squad customer-reported Doc - Reference Network - Application Gateway Service Attention
Dominant language
C#
Stars
4.8k
Forks
4.3k
Avg merge
2d 17h
Merged PRs (30d)
51

Description

### Type of issue

Code doesn't work

### Feedback

If you execute the commands on the example 01, you will find out that the code does not work as there is no mention on how to populate the variable $FIP01. Even if this is described in plain text below, there is no mention on what command to use. Making this code hard to follow unless you have a lot of experience.

Lets make this easier for our readers just by adding the missing step on how to populate this variable:

$AppGw = Get-AzApplicationGateway -Name "App-Gw-01" -ResourceGroupName "RG01"

$FIP01= Get-AzApplicationGatewayFrontendIPConfig -Name "appGwPublicFrontendIpIPv4" -ApplicationGateway $AppGw

$AppGw = Set-AzApplicationGatewayHttpListener -ApplicationGateway $AppGw -Name "Listener01" -Protocol Http -FrontendIpConfiguration $FIP01 -RequireServerNameIndication "True"

As you can see this simple detail can make that just copy paste code, goes from not working, to actually returning results.

Thanks in advance team.

### Page URL
https://learn.microsoft.com/en-us/powershell/module/az.network/set-azapplicationgatewayhttplistener?view=azps-11.5.0

### Content source URL
https://github.com/Azure/azure-powershell/blob/main/src/Network/Network/help/Set-AzApplicationGatewayHttpListener.md
### Author

@mikefrobbins

### Document Id

3ce7900a-65c7-802a-7d0e-12c202fa2b24

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.