arm-artifacts/shared-templates/storage-account.json
{ "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "parameters": { "storageAccountType": { "type": "string", "defaultValue": "Standard_LRS", "allowedValues": [ "Standard_LRS", "Standard_ZRS", "Standard_GRS", "Standard_RAGRS", "Premium_LRS" ] }, "storageAccountName": { "type": "string", "minLength": 1 }, "storageAccountLocation": { "type": "string", "defaultValue": "[resourceGroup().location]" }, "tagValues": { "type": "object", "defaultValue": {} } }, "variables": { "ownerRoleId": "[concat('/subscriptions/', subscription().subscriptionId, '/providers/Microsoft.Authorization/roleDefinitions/', '8e3af657-a8ff-443c-a75c-2fe8c4bcb635')]", "localTags": { "displayName": "storageAccountName" }, "tags": "[union(parameters('tagValues'), variables('localTags'))]" }, "resources": [ { "name": "[parameters('storageAccountName')]", "type": "Microsoft.Storage/storageAccounts", "location": "[resourceGroup().location]", "apiVersion": "2018-07-01", "sku": { "name": "[parameters('storageAccountType')]" }, "dependsOn": [], "tags": "[variables('tags')]", "kind": "StorageV2" }, ], "outputs": { "storageAccountKey": { "type": "string", "value": "[listKeys(parameters('storageAccountName'), '2019-04-01').keys[0].value]" }, "storageAccountConnectionString": { "type": "string", "value": "[concat('DefaultEndpointsProtocol=https;AccountName=',parameters('storageAccountName'),';AccountKey=', listKeys(parameters('storageAccountName'), '2019-04-01').keys[0].value)]" } } } |