I'm trying to move blob from one container to another with in the same storage account. I'm using Java SDK for it.
My code:
StorageSharedKeyCredential credential = new StorageSharedKeyCredential("accountname", "accountkey");
BlobServiceClient blobServiceClient = new BlobServiceClientBuilder().endpoint("storageaccountendpoint").credential(credential).buildClient();
BlobContainerClient blobContainerClient = blobServiceClient.getBlobContainerClient("failed");
BlobClient dst = blobContainerClient.getBlobClient("https://xxxstorage.blob.core.windows.net/success/");
BlobClient src = blobContainerClient.getBlobClient("https://xxxstorage.blob.core.windows.net/failed/Graphs.jpeg");
dst.beginCopy(src.getBlobUrl(), null);
I have to move the blob from failed container to success container. But I'm facing 500 internal server error.
What can I try next?