Copiar blob entre contas de armazenamento
Estou tentando copiar um blob de uma conta de armazenamento para outra (em um local diferente).
Estou usando o seguinte código:
var sourceContainer = sourceClient.GetContainerReference(containerId);
var sourceBlob = sourceContainer.GetBlockBlobReference(blobId);
if (await sourceBlob.ExistsAsync().ConfigureAwait(false))
{
var targetContainer = targetClient.GetContainerReference(containerId);
await targetContainer.CreateIfNotExistsAsync().ConfigureAwait(false);
var targetBlob = targetContainer.GetBlockBlobReference(blobId);
await targetBlob.DeleteIfExistsAsync().ConfigureAwait(false);
await targetBlob.StartCopyAsync(sourceBlob).ConfigureAwait(false);
}
e recebo um erro "Não encontrado". Eu entendo que o blob de origem realmente existe. Estou usando o comando errado? Há algo que estou faltando em relação à cópia entre contas de armazenamento?