Forked from gregjhogan/arm-template-convert-to-bool.json
Created
August 31, 2016 18:08
-
-
Save DustinVenegas/3d12d036a93192dc0fed1b5e7b83217d to your computer and use it in GitHub Desktop.
ARM template convert to bool
This file contains 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
{ | |
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", | |
"contentVersion": "1.0.0", | |
"parameters": { | |
"authActiveDirectoryClientId": { | |
"type": "string", | |
"defaultValue": "" | |
} | |
}, | |
"variables": { | |
"convertToBool": [ | |
false, | |
true | |
], | |
"authEnabled": "[variables('convertToBool')[length(take(parameters('authActiveDirectoryClientId'), 1))]]" | |
}, | |
"resources": [], | |
"outputs": { | |
"authEnabled": { | |
"value": "[variables('authEnabled')]", | |
"type" : "bool" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment