Skip to content

Instantly share code, notes, and snippets.

@bmoore-msft
Created June 27, 2017 16:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bmoore-msft/73246e41659206be031e8b2fe78eef1c to your computer and use it in GitHub Desktop.
Save bmoore-msft/73246e41659206be031e8b2fe78eef1c to your computer and use it in GitHub Desktop.
AzureRM deployment template using listKeys on a storageAccount
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": { },
"variables": {
"storeName": "[concat('store', uniqueString(resourceGroup().id))]"
},
"resources": [
{
"name": "[variables('storeName')]",
"type": "Microsoft.Storage/storageAccounts",
"location": "[resourceGroup().location]",
"apiVersion": "2017-06-01",
"sku": {
"name": "Standard_LRS"
},
"dependsOn": [],
"kind": "Storage"
}
],
"outputs": {
"keys": {
"type": "string",
"value": "[listKeys(variables('storeName'), '2017-06-01').keys[0].value]"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment