Created
June 27, 2017 16:16
-
-
Save bmoore-msft/73246e41659206be031e8b2fe78eef1c to your computer and use it in GitHub Desktop.
AzureRM deployment template using listKeys on a storageAccount
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.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