Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
List of Access Keys from Output Values after ARM Template Deployment
"variables": {
"storageAccount": {
"name": "my-storage-account"
"resourceId": "[resourceId('Microsoft.Storage/storageAccounts', variables('storageAccount').name)]",
"apiVersion": "[providers('Microsoft.Storage', 'storageAccounts').apiVersions[0]]"
"resources": [],
"outputs": {
"storageAccountKey": {
"type": "string",
"value": "[listKeys(variables('resourceId'), variables('apiVersion')).keys[0].value]"
"storageAccountEndpoint": {
"type": "string",
"value": "[concat('DefaultEndpointsProtocol=https;AccountName=', variables('storageAccount').name, ';AccountKey=', listKeys(variables('resourceId'), variables('apiVersion')).keys[0].value, ';')]"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.