Skip to content

Instantly share code, notes, and snippets.

@johnlokerse
Created February 20, 2022 14:46
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/4c8487c74c653abae52aaa2fb80d6018 to your computer and use it in GitHub Desktop.
Save johnlokerse/4c8487c74c653abae52aaa2fb80d6018 to your computer and use it in GitHub Desktop.
var amountOfAccounts = 3
var baseName = uniqueString(resourceGroup().id)
resource myStorageAccount 'Microsoft.Storage/storageAccounts@2021-06-01' = [for i in range(0, amountOfAccounts): {
name: '${baseName}stg${i}'
kind: 'StorageV2'
location: resourceGroup().location
sku: {
name: 'Standard_LRS'
}
}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment