Skip to content

Commit 18614e1

Browse files
authored
Merge pull request #114116 from mumian/0506-ds-store
add the sku restriction
2 parents f1e598b + 963a701 commit 18614e1

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

articles/azure-resource-manager/templates/deployment-script-template.md

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ services: azure-resource-manager
55
author: mumian
66
ms.service: azure-resource-manager
77
ms.topic: conceptual
8-
ms.date: 04/30/2020
8+
ms.date: 05/06/2020
99
ms.author: jgao
1010

1111
---
@@ -299,8 +299,8 @@ To see the deploymentScripts resource in the portal, select **Show hidden types*
299299

300300
A storage account and a container instance are needed for script execution and troubleshooting. You have the options to specify an existing storage account, otherwise the storage account along with the container instance are automatically created by the script service. The requirements for using an existing storage account:
301301

302-
- Supported storage account kinds are: General-purpose v2 accounts, General-purpose v1 accounts and fileStorage accounts. For more information, see [Types of storage accounts](../../storage/common/storage-account-overview.md).
303-
- Storage account firewall rules must be turned off. See [Configure Azure Storage firewalls and virtual network](../../storage/common/storage-network-security.md)
302+
- Supported storage account kinds are: general-purpose v2, general-purpose v1 and FileStorage accounts. Only FileStorage supports premium SKU. For more information, see [Types of storage accounts](../../storage/common/storage-account-overview.md).
303+
- Storage account firewall rules are not supported yet. For more information, see [Configure Azure Storage firewalls and virtual networks](../../storage/common/storage-network-security.md).
304304
- Deployment script's user-assigned managed identity must have permissions to manage the storage account, which includes read, create, delete file shares.
305305

306306
To specify an existing storage account, add the following json to the property element of `Microsoft.Resources/deploymentScripts`:
@@ -312,6 +312,16 @@ To specify an existing storage account, add the following json to the property e
312312
},
313313
```
314314

315+
- **storageAccountName**: specify the name of the storage account.
316+
- **storageAccountKey"**: specify one of the storage account keys. You can use the [`listKeys()`](./template-functions-resource.md#listkeys) function to retrieve the key. For example:
317+
318+
```json
319+
"storageAccountSettings": {
320+
"storageAccountName": "[variables('storageAccountName')]",
321+
"storageAccountKey": "[listKeys(resourceId('Microsoft.Storage/storageAccounts', variables('storageAccountName')), '2019-06-01').keys[0].value]"
322+
}
323+
```
324+
315325
See [Sample templates](#sample-templates) for a complete `Microsoft.Resources/deploymentScripts` definition sample.
316326

317327
When an existing storage account is used, the script service creates a file share with a unique name. See [Clean up deployment script resources](#clean-up-deployment-script-resources) for how the script service cleans up the file share.
@@ -331,7 +341,7 @@ The life cycle of these resources is controlled by the following properties in t
331341
- **retentionInterval**: Specify the time interval that a script resource will be retained and after which will be expired and deleted.
332342

333343
> [!NOTE]
334-
> It is not recommended to use the deployment script resources for other purposes.
344+
> It is not recommended to use the storage account and the container instance that are generated by the script service for other purposes. The two resources might be removed depending on the script life cycle.
335345

336346
## Run script more than once
337347

0 commit comments

Comments
 (0)