diff --git a/nested/storageAccount.json b/nested/storageAccount.json index 93d6887..2438a00 100644 --- a/nested/storageAccount.json +++ b/nested/storageAccount.json @@ -10,6 +10,36 @@ } }, "resources": [ + { + "condition": "[equals(parameters('moodleCommon').fileServerType, 'azurefiles')]", + "type": "Microsoft.Storage/storageAccounts/fileServices", + "apiVersion": "2019-06-01", + "name": "[concat(parameters('moodleCommon').storageAccountName, '/default')]", + "dependsOn": [ + "[resourceId('Microsoft.Storage/storageAccounts', parameters('moodleCommon').storageAccountName)]" + ], + "sku": { + "name": "[parameters('moodleCommon').storageAccountType]" + }, + "properties": { + "cors": { + "corsRules": [] + } + } + }, + { + "condition": "[equals(parameters('moodleCommon').fileServerType, 'azurefiles')]", + "type": "Microsoft.Storage/storageAccounts/fileServices/shares", + "apiVersion": "2019-06-01", + "name": "[concat(parameters('moodleCommon').storageAccountName, '/default/moodle')]", + "dependsOn": [ + "[resourceId('Microsoft.Storage/storageAccounts/fileServices', parameters('moodleCommon').storageAccountName, 'default')]", + "[resourceId('Microsoft.Storage/storageAccounts', parameters('moodleCommon').storageAccountName)]" + ], + "properties": { + "shareQuota": 1024 + } + }, { "condition": "[not(equals(parameters('moodleCommon').fileServerType, 'azurefiles'))]", "type": "Microsoft.Storage/storageAccounts", @@ -74,36 +104,6 @@ "keySource": "Microsoft.Storage" } } - }, - { - "condition": "[equals(parameters('moodleCommon').fileServerType, 'azurefiles')]", - "type": "Microsoft.Storage/storageAccounts/fileServices", - "apiVersion": "2019-06-01", - "name": "[concat(parameters('moodleCommon').storageAccountName, '/default')]", - "dependsOn": [ - "[resourceId('Microsoft.Storage/storageAccounts', parameters('moodleCommon').storageAccountName)]" - ], - "sku": { - "name": "[parameters('moodleCommon').storageAccountType]" - }, - "properties": { - "cors": { - "corsRules": [] - } - } - }, - { - "condition": "[equals(parameters('moodleCommon').fileServerType, 'azurefiles')]", - "type": "Microsoft.Storage/storageAccounts/fileServices/shares", - "apiVersion": "2019-06-01", - "name": "[concat(parameters('moodleCommon').storageAccountName, '/default/moodle')]", - "dependsOn": [ - "[resourceId('Microsoft.Storage/storageAccounts/fileServices', parameters('moodleCommon').storageAccountName, 'default')]", - "[resourceId('Microsoft.Storage/storageAccounts', parameters('moodleCommon').storageAccountName)]" - ], - "properties": { - "shareQuota": 1024 - } } ], "variables": {