question

AdamMcGill-9847 avatar image
0 Votes"
AdamMcGill-9847 asked suvasara-MSFT edited

PowerShell/AZ: Application Gateway Backend Pool, remove FQDN target from backend

Azure/AZ; Anyone have any experience removing a backend addresspool target /FQDN from a application gateway.

Adding one:
Add-AzApplicationGatewayBackendAddressPool -ApplicationGateway $AppGw -Name "Test" -BackendFqdns "Computer1-nic" .

Based on docs there is no parameter to remove the FQDN/ target with Remove-AzApplicationGatewayBackendAddressPool -ApplicationGateway $AppGw -Name "Test" .

I don't want to remove the whole backend pool, just a target on the backend pool. Looked at the set command with removing one of the fqdn from the list and setting it, no change.

windows-server-powershellazure-application-gateway
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

suvasara-MSFT avatar image
0 Votes"
suvasara-MSFT answered suvasara-MSFT edited

@AdamMcGill-9847 , From the documentation it looks like SET option should work here. But using this option might replace the existing FQDN's with the provided one causing an outage. So, AFAIK there is no PS command available today to remove the specific backend target. You can provide your feedback here in this feedback section and upvote your ask on this PS limitation.


Please do not forget to "Accept the answer" wherever the information provided helps you to help others in the community.



5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.