Open ld0614 opened 4 months ago
@ld0614 Unfortunately currently the async copy blob rest api doesn't support DestBlobType parameter. Therefore, the PSH cmdlet is not able to support it. Please find more details in https://learn.microsoft.com/en-us/rest/api/storageservices/copy-blob?tabs=microsoft-entra-id
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @xgithubtriage.
Description of the new feature
Currently Copy-AzStorageBlob has the parameter DestBlobType which enables the conversion of page blobs to block blobs and vice versa.
Due to a bug in Copy-AzStorageBlob (#25105) it is currently only possible to migrate between page and block blobs synchronously. While -AsJob will be fixed, it would be nice if there was feature parity between these 2 cmdlets.
The parameter is useful when converting VM disks into block blobs. We use this to archive old VMs in a cost effective way by storing them in archival storage. As page blobs can't be archived we must first convert them to block blobs.
Proposed implementation details (optional)
Implement it the same way that Copy-AzStorageBlob does it (if possible)