Skip to content

Latest commit

 

History

History
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
azure
azure-resource-manager
modules-microsoft.resources-deploymentScripts-copyBlob-0.9
json
bicep

Copy a file from a uri to a blob storage container

Azure Public Test Date Azure Public Test Result

Azure US Gov Last Test Date Azure US Gov Last Test Result

Best Practice Check Cred Scan Check

Bicep Version

Deploy To Azure Deploy To Azure US Gov Visualize

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.

Parameters

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: