Skip to content

Instantly share code, notes, and snippets.

@johnlokerse
Created February 20, 2022 14:44
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 johnlokerse/bd4eb649a9d5addc624e11c224819fda to your computer and use it in GitHub Desktop.
Save johnlokerse/bd4eb649a9d5addc624e11c224819fda to your computer and use it in GitHub Desktop.
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"variables": {
"amountOfAccounts": 3,
"baseName": "[uniqueString(resourceGroup().id)]"
},
"resources": [
{
"name": "[concat(variables('baseName'), 'stg', copyIndex())]",
"type": "Microsoft.Storage/storageAccounts",
"apiVersion": "2021-04-01",
"location": "[resourceGroup().location]",
"kind": "StorageV2",
"sku": {
"name": "Standard_LRS"
},
"copy": {
"name": "myStorageAccountLoop",
"count": "[variables('amountOfAccounts')]"
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment