Skip to content

Commit 3fb6d96

Browse files
committed
fix(vm): pass blob_type='block' to upload_blob to fix Unsupported BlobType error
1 parent c28574a commit 3fb6d96

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/azure-cli/azure/cli/command_modules/vm

src/azure-cli/azure/cli/command_modules/vm/custom.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6675,7 +6675,7 @@ def vm_cp(cmd, source, destination, storage_account=None, container_name='azvmcp
66756675
if dest_vm:
66766676
# UPLOAD: Local -> VM
66776677
logger.info("Uploading local file to bridge storage...")
6678-
upload_blob(cmd, blob_client, file_path=source)
6678+
upload_blob(cmd, blob_client, file_path=source, blob_type='block')
66796679

66806680
# Get SAS with READ permission (2 hours expiry)
66816681
sas_token = create_short_lived_blob_sas_v2(cmd, sa_name, container_name, blob_name, account_key=account_key)

0 commit comments

Comments
 (0)