Forked from gregjhogan/arm-template-hashtable-lookup.json
Created
August 31, 2016 18:08
-
-
Save DustinVenegas/ac423081bf1aeb43f58b7786f13beabb to your computer and use it in GitHub Desktop.
ARM template SKU lookup
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": { | |
"sku": { | |
"type": "string", | |
"defaultValue": "B1" | |
} | |
}, | |
"variables": { | |
"tiers": { | |
"F": "Free", | |
"B": "Basic", | |
"S": "Standard", | |
"P": "Premium" | |
}, | |
"tier": "[variables('tiers')[toUpper(substring(parameters('sku'), 0, 1))]]" | |
}, | |
"resources": [], | |
"outputs": { | |
"tier": { | |
"value": "[variables('tier')]", | |
"type" : "string" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment