You need to copy specific blobs from Container1 to Container2 when a new video is uploaded. What should you do?

Last Updated on November 19, 2021 by Admin 3

You develop an app that allows users to upload photos and videos to Azure storage. The app uses a storage REST API call to upload the media to a blob storage account named Account1. You have blob storage containers named Container1 and Container2.

Uploading of videos occurs on an irregular basis.

You need to copy specific blobs from Container1 to Container2 when a new video is uploaded.

What should you do?

  • Copy blobs to Container2 by using the Put Blob operation of the Blob Service REST API
  • Create an Event Grid topic that uses the Start-AzureStorageBlobCopy cmdlet
  • Use AzCopy with the Snapshot switch to copy blobs to Container2
  • Download the blob to a virtual machine and then upload the blob to Container2
Explanation:

The Start-AzureStorageBlobCopy cmdlet starts to copy a blob.
Example 1: Copy a named blob
C:\PS>Start-AzureStorageBlobCopy -SrcBlob “ContosoPlanning2015” -DestContainer “ContosoArchives” -SrcContainer “ContosoUploads”

This command starts the copy operation of the blob named ContosoPlanning2015 from the container named ContosoUploads to the container named ContosoArchives.

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments