Last active
April 10, 2018 18:41
-
-
Save gregjhogan/76bb19a384f9cad1336f29a90aea170f 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