Skip to content

Commit 4bbc0c1

Browse files
committed
best practices
1 parent 6b6a4ae commit 4bbc0c1

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

101-batchaccount-with-storage/azuredeploy.json

+8-8
Original file line numberDiff line numberDiff line change
@@ -35,36 +35,36 @@
3535
},
3636
"resources": [
3737
{
38+
"comments": "This storage account is used to associate to a batch account",
3839
"type": "Microsoft.Storage/storageAccounts",
40+
"apiVersion": "2019-06-01",
3941
"name": "[variables('storageAccountname')]",
40-
"apiVersion": "2016-01-01",
4142
"location": "[parameters('location')]",
42-
"comments": "This storage account is used to associate to a batch account",
4343
"sku": {
4444
"name": "[parameters('storageAccountsku')]"
4545
},
46-
"kind": "Storage",
46+
"kind": "StorageV2",
4747
"tags": {
4848
"ObjectName": "[variables('storageAccountName')]"
4949
},
5050
"properties": {}
5151
},
5252
{
5353
"type": "Microsoft.Batch/batchAccounts",
54+
"apiVersion": "2019-08-01",
5455
"name": "[parameters('batchAccountName')]",
55-
"apiVersion": "2015-12-01",
5656
"location": "[parameters('location')]",
57+
"dependsOn": [
58+
"[resourceId('Microsoft.Storage/storageAccounts', variables('storageAccountName'))]"
59+
],
5760
"tags": {
5861
"ObjectName": "[parameters('batchAccountName')]"
5962
},
6063
"properties": {
6164
"autoStorage": {
6265
"storageAccountId": "[resourceId('Microsoft.Storage/storageAccounts', variables('storageAccountName'))]"
6366
}
64-
},
65-
"dependsOn": [
66-
"[resourceId('Microsoft.Storage/storageAccounts', variables('storageAccountName'))]"
67-
]
67+
}
6868
}
6969
],
7070
"outputs": {

101-batchaccount-with-storage/metadata.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"description": "This template creates a Batch Account and a storage account.",
66
"summary": "Create a Batch Account using a template and s storage account associated with the batch account.",
77
"githubUsername": "zechariahks",
8-
"dateUpdated": "2017-08-28"
8+
"dateUpdated": "2020-05-11"
99
}
1010

1111

0 commit comments

Comments
 (0)