You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
6. To copy a page blob snapshot to block blob, use the [Get-AzStorageBlob](/powershell/module/az.storage/get-azstorageblob) and [Copy-AzStorageBlob](/powershell/module/az.storage/copy-azstorageblob) command with `-DestBlobType` parameter as `Block`.
61
+
62
+
```powershell
63
+
$containerName = '<source container name>'
64
+
$srcPageBlobName = '<source page blob name>'
65
+
$srcPageBlobSnapshotTime = '<snapshot time of source page blob>'
> The `-StandardBlobTier` parameter is optional. If you omit that parameter, then the destination blob infers its tier from the [default account access tier setting](access-tiers-overview.md#default-account-access-tier-setting). To change the tier after you've created a block blob, see [Change a blob's tier](access-tiers-online-manage.md#change-a-blobs-tier).
62
76
@@ -88,6 +102,17 @@ To convert blobs, copy them to a new location by using PowerShell, Azure CLI, or
4. To copy a page blob snapshot to block blob, use the [az storage blob copy start](/cli/azure/storage/blob/copy#az-storage-blob-copy-start) command and set the `--destination-blob-type` parameter to `blockBlob` along with source page blob snapshot uri.
> The `--tier` parameter is optional. If you omit that parameter, then the destination blob infers its tier from the [default account access tier setting](access-tiers-overview.md#default-account-access-tier-setting). To change the tier after you've created a block blob, see [Change a blob's tier](access-tiers-online-manage.md#change-a-blobs-tier).
93
118
@@ -110,9 +135,10 @@ azcopy copy 'https://<storage-account-name>.<blob or dfs>.core.windows.net/<cont
110
135
> The optional `--metadata` parameter overwrites any existing metadata. Therefore, if you specify metadata by using this parameter, then none of the original metadata from the source blob will be copied to the destination blob.
111
136
112
137
---
113
-
114
138
## See also
115
139
116
140
-[Hot, Cool, and Archive access tiers for blob data](access-tiers-overview.md)
117
141
-[Set a blob's access tier](access-tiers-online-manage.md)
118
142
-[Best practices for using blob access tiers](access-tiers-best-practices.md)
0 commit comments