You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 21, 2023. It is now read-only.
The New-VSCloudWatchAlarm requires a Double for the Threshold parameter. It should accept int and cast.
Steps to reproduce
New-VSCloudWatchAlarm-ComparisonOperator GreaterThanOrEqualToThreshold -EvaluationPeriods 1-LogicalId one -Threshold 1
Expected result
Should create an alarm resource.
Actual result
An error is raised, even if Int32 can be trivially cast to double.
New-VSCloudWatchAlarm: This parameter only accepts the following types: System.Double, Vaporshell.Function, Vaporshell.Condition. The current types of the value are: System.Int32, System.ValueType, System.Object.
Workaround
This issue is, of course, easy to workaround.
New-VSCloudWatchAlarm-ComparisonOperator GreaterThanOrEqualToThreshold -EvaluationPeriods 1-LogicalId one -Threshold ([double]1)
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Description
The New-VSCloudWatchAlarm requires a Double for the Threshold parameter. It should accept int and cast.
Steps to reproduce
Expected result
Should create an alarm resource.
Actual result
An error is raised, even if Int32 can be trivially cast to double.
Workaround
This issue is, of course, easy to workaround.
The text was updated successfully, but these errors were encountered: