I am trying to setup the Azure Application Gateway as shown below
$AppGW = Add-AzureRmApplicationGatewayProbeConfig -ApplicationGateway $AppGW  -Name "webprobe" -Protocol "Http" -HostName $webHostname -Path "/" -Interval 60 -Timeout 300 -UnhealthyThreshold 8 
$AppGW = Add-AzureRmApplicationGatewayBackendHttpSettings -ApplicationGateway $AppGW -Name "webPoolPortalSetting" -Port 80 -Protocol "Http" -CookieBasedAffinity "Disabled" -Probe $webPortalProbe -RequestTimeout 180
I couldn't understand the difference between Add-AzureRmApplicationGatewayProbeConfig & Add-AzureRmApplicationGatewayBackendHttpSettings and microsoft documentation is not helpful.
What exactly Add-AzureRmApplicationGatewayProbeConfig & Add-AzureRmApplicationGatewayBackendHttpSettings does?
 
                        
The Add-AzureRmApplicationGatewayProbeConfig cmdlet adds a health probe to an Application Gateway. The Add-AzureRmApplicationGatewayBackendHttpSettings cmdlet adds back-end HTTP settings to an application gateway. They are adding two different things. When you add HTTP settings, you need to associate a health probe that is used to monitor the health of the back end.
But, Both cmdlets rely on an outdated version of Azure PowerShell---
AzureRMPowerShell.To get started with the
AzPowerShell module, see Install Azure PowerShell. To learn how to migrate to theAzPowerShell module, see Migrate Azure PowerShell fromAzureRMtoAz.Read more information about Azure PowerShell examples for Azure Application Gateway (AG)