-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Azure.AppService.WebProbe failing while healthCheckPath being set. #1906
Comments
I had the same issue before. A workaround is to avoid using the This I think it is a bug, on the line
|
From what I can see so far, the rule is expecting the value to be boolean true, where actually the healthCheckPath property is expecting a value of type string. So your valid value is not honored currently. I'll wait for @BernieWhite to confirm that this is the case and I'll put together an PR. |
I have a double on the necessity of having two rules Is there any reason we have these 2 rules instead of consolidating them into 1? |
@vinhent Thanks for reporting the issue. This is a bug. @yzhu228 and @BenjaminEngeset are correct, the rule is checking for
Line 115 should be updated to be: return $Assert.HasFieldValue($TargetObject, 'Properties.siteConfig.healthCheckPath'); In this rule we are checking that a health probe is configured. @yzhu228 In regard to your question about why is there two rules. This is because while using a dedicated health check path (such as Providing two rules give the customer an opportunity to suppress this rule for cases where a dedicated endpoint is not possible but still required a health check to be configured. |
Description of the issue
I am getting a failed on
healthCheckPath
while it's set to a path.To Reproduce
Steps to reproduce the issue:
Expected behaviour
Test should pass since a value is set in healthCheckPath.
Error output
Module in use and version:
Captured output from
$PSVersionTable
:Additional context
The text was updated successfully, but these errors were encountered: