CopyBlob

Copies a blob to a destination within the storage account.

Properties

Azure Storage Credential

  • Account Name - The name of your Azure storage account.
  • Access Key - Your Azure account access key.
  • EndpointSuffix - To create a connection string for a storage service in a specific region.
  • BlobStorageUri - The Uri to the location of the Blob storage you want to access.
    • PrimaryUri and SecondaryUri settings available
  • FileStorageUri - The Uri to the location of the File storage you want to access.
    • PrimaryUri and SecondaryUri settings available
  • TableStorageUri - The Uri to the location of the Table storage you want to access.
    • PrimaryUri and SecondaryUri settings available
  • QueueStorageUri - The Uri to the location of the Queue storage you want to access.
    • PrimaryUri and SecondaryUri settings available

Target container name

The container name of the target blob. To access the root container, specify $root as the name.

Target relative address

The relative address for the target blob, e.g. folder/subfolder.

Target blob name

Name of the target blob. The source and target blobs have to be of the same type.

Target lease id

Specifies a lease id that must match the lease on a blob. Required if there is a lease on the blob.

Source uri

A string with the source blob or file uri. If the source is a blob in another account, it must either be public or must be authenticated via a shared access signature (SAS). The source and target blobs have to be of the same type. If source if file, the uri must include a valid SAS token. Please specify either Source uri or Source container name and Source blob name.

Source Azure Storage credential

Azure Storage credentials of the account where the source blob exists. Please specify this if the source blob exists in a different storage that the target blob or use source blob uri property.

Source container name

The container name of the source blob. To access the root container, specify $root as the name. Please specify either Source uri or Source container name and Source blob name.

Source relative address

The relative address for the source blob, e.g. folder/subfolder. Please specify either Source uri or Source container name and Source blob name.

Source blob name

Name of the source blob. The source and target blobs have to be of the same type. Please specify either Source uri or Source container name and Source blob name.

Source access conditions:

If match source ETag

ETag value for a condition specifying that the given ETag must match source blob's ETag. Do not use simultaneously with If none match ETag or If modified since time.

If none match source ETag

ETag value for a condition specifying that the given ETag must not match source blob's ETag. Do not use simultaneously with If match ETag or If not modified since time.

If source modified since time

Specifies a DateTime value in ISO 8061 format for a condition specifying a time since which the blob has been modified. Do not use simultaneously with If not modified since time or If match ETag.

If source not modified since time

Specifies a DateTime value in ISO 8061 format for a condition specifying a time since which the blob has not been modified. Do not use simultaneously with If modified since time or If none match ETag.

Target access conditions:

If match target ETag

ETag value for a condition specifying that the given ETag must match target blob's ETag. Do not use simultaneously with If none match ETag or If modified since time.

If none match target ETag

ETag value for a condition specifying that the given ETag must not match target blob's ETag. Do not use simultaneously with If match ETag or If not modified since time.

If target modified since time

Specifies a DateTime value in ISO 8061 format for a condition specifying a time since which the blob has been modified. Do not use simultaneously with If not modified since time or If match ETag.

If target not modified since time

Specifies a DateTime value in ISO 8061 format for a condition specifying a time since which the blob has not been modified. Do not use simultaneously with If modified since time or If none match ETag.


Please refer to the following Azure API reference documentation:

Configure Azure Storage connection strings:

https://docs.microsoft.com/en-us/azure/storage/common/storage-configure-connection-string

https://docs.microsoft.com/en-us/dotnet/api/microsoft.azure.storage.auth.storagecredentials.-ctor?view=azure-dotnet#Microsoft_Azure_Storage_Auth_StorageCredentials__ctor_System_String_System_String_

https://docs.microsoft.com/en-us/dotnet/api/microsoft.azure.storage.cloudstorageaccount.-ctor?view=azure-dotnet#Microsoft_Azure_Storage_CloudStorageAccount__ctor_Microsoft_Azure_Storage_Auth_StorageCredentials_System_String_System_Boolean_

https://docs.microsoft.com/en-us/dotnet/api/microsoft.azure.storage.cloudstorageaccount.-ctor?view=azure-dotnet#Microsoft_Azure_Storage_CloudStorageAccount__ctor_Microsoft_Azure_Storage_Auth_StorageCredentials_Microsoft_Azure_Storage_StorageUri_Microsoft_Azure_Storage_StorageUri_Microsoft_Azure_Storage_StorageUri_Microsoft_Azure_Storage_StorageUri_

Documentation to assist in setting properties:

https://docs.microsoft.com/en-us/dotnet/api/microsoft.azure.storage.accesscondition?view=azure-dotnet

https://docs.microsoft.com/en-us/dotnet/api/microsoft.azure.storage.blob.cloudblob.startcopy?view=azure-dotnet

https://docs.microsoft.com/en-us/dotnet/api/microsoft.azure.storage.blob.cloudblobclient.getcontainerreference?view=azure-dotnet

https://docs.microsoft.com/en-us/dotnet/api/microsoft.azure.storage.blob.cloudblobcontainer.getdirectoryreference?view=azure-dotnet

https://docs.microsoft.com/en-us/dotnet/api/microsoft.azure.storage.blob.cloudblobcontainer.getblobreference?view=azure-dotnet

https://docs.microsoft.com/en-us/dotnet/api/microsoft.azure.storage.blob.cloudblobdirectory.getblobreference?view=azure-dotnet