Azure 应用程序网关-Add-AzureRmApplicationGatewayProbeConfig 与 Add-AzureRmApplicationGatewayBackendHttpSettings?

Azure Application Gateway - Add-AzureRmApplicationGatewayProbeConfig vs Add-AzureRmApplicationGatewayBackendHttpSettings?

我正在尝试设置 Azure 应用程序网关,如下所示

$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

我无法理解 Add-AzureRmApplicationGatewayProbeConfig 和 Add-AzureRmApplicationGatewayBackendHttpSettings 之间的区别,并且 Microsoft 文档没有帮助。

Add-AzureRmApplicationGatewayProbeConfig 和 Add-AzureRmApplicationGatewayBackendHttpSettings 究竟有什么作用?

应用程序网关Add-AzureRmApplicationGatewayProbeConfig cmdlet adds a health probe to an Application Gateway. The Add-AzureRmApplicationGatewayBackendHttpSettings cmdlet adds back-end HTTP settings。他们正在添加两种不同的东西。添加HTTP设置时,需要关联一个health probe,用于监控后端的健康状况。

但是,这两个 cmdlet 都依赖于过时版本的 Azure PowerShell---AzureRM PowerShell。

要开始使用 Az PowerShell 模块,请参阅 Install Azure PowerShell. To learn how to migrate to the Az PowerShell module, see Migrate Azure PowerShell from AzureRM to Az

阅读有关 Azure PowerShell examples for Azure Application Gateway (AG)

的更多信息