opened
rainer37
username_0
--------------------MESSAGE FROM ADMIN, DELETE BEFORE SUBMITTING----------------------

Sorry to hear you had a bad experience with one of the templates :worried: But, in case you're just asking a question, we're happy to help. You can also check if the question might already have been asked here https://github.com/Azure/azure-quickstart-templates/issues?utf8=%E2%9C%93&q=is%3Aissue

We've created an outline of recommended sections to fill out that will help make this Pull Request awesome!

--------------------MESSAGE FROM ADMIN, DELETE BEFORE SUBMITTING----------------------

[Template Name goes here](Template link goes here)
test/arm-ttk testcases Min And Max Value Are Numbers
### Issue Details
I understand this testcase is to ensure using integers for min/max values. Yet, i have a parameter in my template 
```
        "numberOfInstances": {
            "type": "int",
            "defaultValue": 2,
            "minValue": 0,
            "maxValue": 5
        },
```
then i run the deploymentTemplate test, and it gives  me the failures on Min And Max Value Are Numbers saying:
```
[-] Min And Max Value Are Numbers (1182 ms)
numberOfInstances maxValue is not an [int] (it's a [int])
numberOfInstances minValue is not an [int] (it's a [int])
```
I couldn't find any suspicious points in the source code as well, please have a look, thanks!
### Repro steps (*if necessary, delete otherwise*)
1. having a parameter field like the one above in mainTemplate.json
2. run Test-AzTemplate -TemplatePath $youpath -Test "Min And Max Value Are Numbers"
3.
4.
5.
Min And Max Value Are Numbers is not working properly
issue
created
tw3lveparsecs
username_1
i ran into this issue with minValue and found a typo in the code. 
`if ($parameter.psobject.properties.item('minValue')) {
        if ($parameter.minValue -isnot [long] -and $parameter.**maxValue** -isnot [int]) `

changing it to minValue solved the issue for me.
comment
created
bmoore-msft
username_2
should be fixed if you are still seeing it please reactivate...
comment
closed
bmoore-msft
username_2
issue