-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set-AzureRmApplicationGateway throws "Object reference not set to an instance of an object" the first time it runs after "Add-AzureRmApplicationGatewayHttpListener" #3800
Comments
@DeepakRajendranMsft Can you take a look? |
I am also getting this error with trying to finalize my add-azurermapplicationgatewayrequestroutingrule changes with Set-AzureRmApplicationGateway -ApplicationGateway $AppGw1 on azurerm.netwrok version 4.2.1 |
Also happens after Set-AzureRmApplicationGatewayHttpListener -ApplicationGateway $agw -Name API -SslCertificate $cert -Protocol Https |
any update? |
I'm also experiencing this. Does anyone know of a solution or work around? |
Also experiencing this after a AzureRmApplicationGatewayRequestRoutingRule is there any progress on this issue? |
@akshaysngupta Can you take a look at this issue? |
This is the sequence of cmdlets that reproduces this error
New-AzureRmApplicationGateway resets the $fePort.Id to an empty string which causes Null reference exception. Line 290 in cb13d2d
Line 168 in cb13d2d
Workaround: Will update the issue with fix timeline. |
Any update on a fix for this? |
Fixed by #8576 |
Cmdlet(s)
$appgateway = Add-AzureRmApplicationGatewayHttpListener -ApplicationGateway $appgw -Name $backendAddressPoolName -FrontendIPConfiguration $fipconfig01 -FrontendPort $fp01 `
-Protocol Https -HostName $hostName -RequireServerNameIndication true -SslCertificate $cert
$UpdatedAppGw = Set-AzureRmApplicationGateway -ApplicationGateway $appgateway
PowerShell Version
5.1.14393.953
Module Version
OS Version
10.0.14393.953
Description
I am trying to add new HTTP listener to already existing Azure Application Gateway. After successfully running the cmdlet "Add-AzureRmApplicationGatewayHttpListener", the application gateway needs to be updated by running the cmdlet "Set-AzureRmApplicationGateway". It is here where the cmdlet throws "Object reference not set to an instance of an object" error the first time it is run. On retry, it successfully gets updated. I have tried the process repeatedly by deleting and adding the listeners, and this scenario is seen on every try.
Debug Output
Set-AzureRmApplicationGateway : Object reference not set to an instance of an object.
At line:94 char:29
Script/Steps for Reproduction
The text was updated successfully, but these errors were encountered: