From 1c9941da4223a2b409fdbbf814af89e199ac707f Mon Sep 17 00:00:00 2001 From: asift91 Date: Sat, 4 Jul 2020 12:15:30 +0530 Subject: [PATCH] updated --- nested/storageAccount.json | 60 +++++++++++++++++++------------------- 1 file changed, 30 insertions(+), 30 deletions(-) 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": {