UploadBlobFile

Uploads a file to a Blob service.

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

Container name

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

Relative address

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

Blob name

Name of the blob to upload to. If the blob already exists, its data will be overwritten. If the blob does not exist, please specify Blob type.

File path

The path to the source file in the local file system. If uploading to a page blob, data must be a multiple of 512 bytes.

Blob type

The type of the blob to create. Required if blob does not exist. If the blob exists, this property is ignored.

Lease id

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

If match ETag

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

If none match ETag

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

If 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 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.

If append position equal

Specifies the byte offset to check for when committing a block to an append blob. The append will succeed only if the end position is equal to this number.

If max size less than or equal

Specifies the maximum size in bytes allowed for an append blob when a new block is committed. The append will succeed only if the size of the blob after the append operation is less than or equal to the specified size.

Store blob content MD5

Specifies if an MD5 hash will be calculated and stored in blob's ContentMD5 property when uploading a blob.

Encryption policy

Specifies client side encryption policy for performing envelope encryption/decryption of Azure blobs. Specify Client id and Client key of an application registered with Azure Active Directory and authorized to use the key or secret. Key or secret id specifies the URL of a key in a Key Vault used for blob encryption.


Also See

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.blobrequestoptions?view=azure-dotnet

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

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

https://docs.microsoft.com/en-us/dotnet/api/microsoft.azure.storage.blob.cloudappendblob.uploadfromfile?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