Cannot create new listener in Application gateway with Azure Powershell RRS feed

  • Question

  • hey guys

     I'm trying to add a new listener to an Azure Application Gateway, but I'm getting the following error:

    Set-AzureRMApplicationGateway: Object reference not set to an instance of an object.

    I'm using the following cmdlet:

    $waf = Get-AzureRmApplicationGateway -name WAF -ResourceGroupName WAF


    $doPool =  Get-AzureRmApplicationGatewayBackendAddressPool -ApplicationGateway $waf -Name doPool


    $feportconfig = Get-AzureRmApplicationGatewayFrontendIPConfig  -ApplicationGateway $waf -Name myAGFrontendIPConfig


    $cert = Get-AzureRmApplicationGatewaySslCertificate -Name 443 -ApplicationGateway $waf


    $port443 = Get-AzureRmApplicationGatewayFrontendPort -ApplicationGateway $waf -Name 443


    $waf = Add-AzureRmApplicationGatewayHttpListener -ApplicationGateway $waf -Name  dolistener443 -Protocol https -FrontendIpConfiguration $feportconfig  -FrontendPort  $port443 -SslCertificate $cert


    $UpdatedAppGw = Set-AzureRmApplicationGateway -ApplicationGateway $waf


    • Moved by Dave PatrickMVP Thursday, January 10, 2019 9:45 PM not reporting forums application issues
    Thursday, January 10, 2019 3:53 PM


All replies