Skip to content

Instantly share code, notes, and snippets.

@gregjhogan
Last active April 10, 2018 18:41
Show Gist options
  • Save gregjhogan/76bb19a384f9cad1336f29a90aea170f to your computer and use it in GitHub Desktop.
Save gregjhogan/76bb19a384f9cad1336f29a90aea170f to your computer and use it in GitHub Desktop.
ARM template SKU lookup
{
"$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