Created
July 1, 2020 17:55
-
-
Save booyaa/d9301103219993d77145a204ef66b84b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$WebAppResourceGroup = '...' | |
$WebAppName = '...' | |
$HealthCheckUrl = '/healthcheck' | |
$Resource = Get-AzResource ` | |
-ResourceType Microsoft.Web/sites ` | |
-ResourceGroupName $WebAppResourceGroup ` | |
-ResourceName $WebAppName | |
$Resource.Properties.siteConfig.healthCheckPath = $HealthCheckUrl | |
$$Resource | Set-AzResource -Force |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment