description | page_type | products | urlFragment | languages | ||||
---|---|---|---|---|---|---|---|---|
This module downloads a file from a uri and copies it to an Azure storageAccount blob container. The storageAccount must already exist and the source file must already be staged to the uri. |
sample |
|
modules-microsoft.resources-deploymentScripts-copyBlob-0.9 |
|
This module will copy a file from a provided uri into a blob storage container. The storageAccount must already exist and the file staged to the uri.
Note the module must have a target scope of the resourceGroup where the existing storageAccount is located.
The principal used to deploy the module must have permissions to get the storageAccount keys or a storageAccount key must be provided.
Name | Type | Required | Description |
---|---|---|---|
location | string | No | Location of the deploymentScript resource ( default = resourceGroup().location ) |
storageAccountName | string | Yes | Name of the existing storageAccount to copy the file to. |
containerName | string | Yes | Container for the blob. Currently the container will be created so the principal deploying the module must have permission to create the container. |
contentUri | string | Yes | Uri to the source file including sasToken if necessary. |
storageAccountKey | string | No | storageAccountKey used for permission to copy the blob, if not provided, the module will attempt to retrieve the key. |
Tags: