How to get Application Gateway Backend Health Status with healthprobelog through Powershell

Murali R 245 Reputation points
2023-09-29T16:32:15.5133333+00:00

Hi Team,

My request is for the status of Application Gateway Backend Health with the healthprobelog and create a Automation Runbook with the same.

Firstly, i have used Azure CLI with the following command and i get the result of the server address, Health Status and HealthProbeLog

az network application-gateway show-backend-health --resource-group "your resource group name" --name "your app gw name"

Result:

User's image

Secondly, i have used Windows Powershell with the following command and i can receive healthprobelog status

Get-AzApplicationGatewayBackendHealth -Name "your app gw name" -ResourceGroupName "your resource group name" | Select -ExpandProperty BackendAddressPoolsText

Result:

User's image

I would be requiring the help on Powershell script to get the result of healthprobelog in Application Gateway Backend

With regards,

Murali

Azure Application Gateway
Azure Application Gateway
An Azure service that provides a platform-managed, scalable, and highly available application delivery controller as a service.
1,166 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,628 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,906 questions
{count} votes

Accepted answer
  1. ChaitanyaNaykodi-MSFT 27,366 Reputation points Microsoft Employee
    2023-09-29T22:59:05.6966667+00:00

    @Murali R

    Thank you for reaching out.

    Based on my understanding of your question above. I understand that in Get-AzApplicationGatewayBackendHealth command healthProbeLog property is missing.

    I was able to reproduce the issue on my end and I have logged it as bug under Azure PowerShell repo here.

    https://github.com/Azure/azure-powershell/issues/22883

    Please let me know if you have any additional requirements here. Thank you!


    ​​Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.