vdc/Modules/StorageAccounts/2.0
Jorge Cotillo d2d89cb8df removed files 2019-08-28 11:30:44 -07:00
..
Pipeline ASE sql archetype (#71) 2019-07-05 14:33:50 -07:00
Policy ASE sql archetype (#71) 2019-07-05 14:33:50 -07:00
RBAC ASE sql archetype (#71) 2019-07-05 14:33:50 -07:00
Scripts ASE sql archetype (#71) 2019-07-05 14:33:50 -07:00
Tests removed files 2019-08-28 11:30:44 -07:00
deploy.json Jcotillo/ntier iaas fixes (#110) 2019-08-26 01:06:06 -07:00
readme.md ASE sql archetype (#71) 2019-07-05 14:33:50 -07:00

readme.md

StorageAccount

This module is used to deploy an Azure Storage Account, with resource lock and the ability to deploy 1 or more Blob Containers. Optional ACLS can also be configured on the Storage Account too.

The default parameter values are based on the needs of deploying a diagnostic storage account.

Resources

  • Microsoft.Storage/storageAccounts
  • Microsoft.Storage/storageAccounts/providers/locks
  • Microsoft.Storage/storageAccounts/blobServices/containers

Parameters

Parameter Name Default Value Description
storageAccountName Required. Name of the Storage account.
storageAccountKind StorageV2 Optional. Type of Storage Account to create.
storageAccountSku Standard_GRS Optional. Storage Account Sku Name.
storageAccountAccessTier Hot Optional. Storage Account Access Tier.
lockForDeletion true Optional. Switch to lock storage from deletion.
utcYear [utcNow('yyyy')] Optional. Year data used to generate a SAS token. Default is the current year.
vNetId Optional. Virtual Network Identifier used to create a service endpoint.
networkAcls Optional. Network ACLs, this value contains IPs to whitelist and/or Subnet information.
blobContainers Optional. Blob containers to create.

Parameter Usage: blobContainers

The blobContainer parameter accepts a JSON Array of object with "name" property in each to specify the name of the Blob Containers to create.

Here's an example of specifying a single Blob Container named "one":

[{"name": "one"}]

Here's an example of specifying multiple Blob Containers to create:

[{"name": "one"}, {"name": "two"}]

Outputs

Output Name Description
storageAccountResourceId The Resource id of the Storage Account.
storageAccountName The Name of the Storage Account.
storageAccountResourceGroup The name of the Resource Group the Storage Account was created in.
storageAccountSasToken The SAS Token for the Storage Account.
The SAS Token generated is set to expire 100 years from the value of the utcYear parameter.
storageAccountAccessKey The Access Key for the Storage Account.

Considerations

This is a generic module for deploying a Storage Account. Any customization for different storage needs (such as a diagnostic or other storage account) need to be done through the Archetype.

Additional resources