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
When creating an environment from an ARM template using the DevTest Labs portal, the default value of bool parameters is not set if defaultValue is false (it works fine if defaultValue is true).
This example allows to reproduce the issue:
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"boolParam1": {
"type": "bool",
"defaultValue": true,
"metadata": {
"description": "Portal will set the default value to true as expected."
}
},
"boolParam2": {
"type": "bool",
"defaultValue": false,
"metadata": {
"description": "Portal will not set the default value."
}
}
},
"variables": {
},
"resources": [
],
"outputs": {
}
}
When creating an environment from an ARM template using the DevTest Labs portal, the default value of bool parameters is not set if
defaultValue
isfalse
(it works fine ifdefaultValue
istrue
).This example allows to reproduce the issue:
The default value is always set as expected when loading the template with https://portal.azure.com/#create/Microsoft.Template/.
Picture of the issue (parameter
boolParam2
is not set):The text was updated successfully, but these errors were encountered: