Home

VHD to Archive Storage

%3CLINGO-SUB%20id%3D%22lingo-sub-357776%22%20slang%3D%22en-US%22%3EVHD%20to%20Archive%20Storage%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-357776%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20a%20disk%20with%20some%20files%20(About%201%20TB)%20that%20will%20probably%20never%20be%20needed.%20However%20they%20might%20be%20needed%20so%20I%20have%20to%20keep%20them%20somewhere.%20I%20thought%20that%20the%20archive%20storage%20tier%20would%20be%20the%20perfect%20place.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMy%20plan%20was%20to%20detach%20the%20VHD%20from%20the%20VM%20and%20change%20the%20storage%20tier%20from%20hot%20to%20archive.%20If%20I%20ever%20needed%20the%20data%20again%20I%20would%20change%20from%20archive%20back%20to%20hot%20and%20attach%20the%20VHD%20to%20a%20VM.%20However%2C%20after%20detaching%20the%20disk%2C%20when%20I%20tried%20to%20change%20the%20tier%20I%20got%20the%20message%20%22Changing%20the%20access%20tier%20is%20only%20allowed%20on%20block%20blobs%20that%20do%20not%20have%20snapshots%20in%20an%20active%20state.%22%20I%20then%20realized%20that%20the%20VHD%20is%20a%20page%20blob%20and%20it%20appears%20you%20can't%20change%20the%20tier%20on%20a%20page%20blob.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20can't%20be%20the%20only%20one%20who%20wants%20to%20archive%20a%20drive%20(Or%20an%20entire%20VM)%20so%20I%20suspect%20I%20am%20missing%20a%20simple%20solution.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20ideas%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-357776%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EData%20%2B%20Storage%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-508663%22%20slang%3D%22en-US%22%3ERe%3A%20VHD%20to%20Archive%20Storage%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-508663%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F4770%22%20target%3D%22_blank%22%3E%40John%20Twohig%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDid%20you%20ever%20figure%20out%20a%20solution%20for%20this%3F%26nbsp%3B%20(you%20are%20right%2C%20not%20the%20only%20one%20thinking%20about%20something%20like%20this)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDavid%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-359917%22%20slang%3D%22en-US%22%3ERe%3A%20VHD%20to%20Archive%20Storage%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-359917%22%20slang%3D%22en-US%22%3E%3CP%3EDarrick%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EGood%20suggestion%20but%20that%20didn't%20work.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20Azcopy%20documentation%20says%20%22%3CSPAN%3EAzCopy%20v10%20by%20default%20uploads%20data%20into%20block%20blobs.%20However%2C%20if%20a%20source%20file%20has%20vhd%20extension%2C%20AzCopy%20v10%20will%20by%20default%20upload%20it%20to%20a%20page%20blob.%3C%2FSPAN%3E%22%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20documentation%20doesn't%20seem%20to%20be%20correct.%20I%20removed%20the%20vhd%20extension%20and%20used%20Azcopy%20but%20it%20kept%20it%20as%20a%20page%20blob.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-358482%22%20slang%3D%22en-US%22%3ERe%3A%20VHD%20to%20Archive%20Storage%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-358482%22%20slang%3D%22en-US%22%3E%3CP%3EIt%20may%20be%20possible%20to%20perform%20the%20following%20using%20AZcopy%20v10%3A%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fstorage%2Fcommon%2Fstorage-use-azcopy-v10%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fstorage%2Fcommon%2Fstorage-use-azcopy-v10%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E...you%20can%20sync%20a%20Blob%20container%20down%20to%20a%20local%20file%20system%3A%3C%2FP%3E%3CDIV%20class%3D%22codeHeader%22%3E%3CSPAN%20class%3D%22language%22%3EAzCopy%3C%2FSPAN%3E%3C%2FDIV%3E%3CPRE%3E%23%20If%20you're%20using%20Azure%20Active%20Directory%20authentication%20the%20sastoken%20is%20not%20required%0A.%5Cazcopy%20sync%20%22https%3A%2F%2Faccount.blob.core.windows.net%2Fmycontainer1%22%20%22C%3A%5Clocal%5Cpath%22%20--recursive%3Dtrue%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-358445%22%20slang%3D%22en-US%22%3ERe%3A%20VHD%20to%20Archive%20Storage%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-358445%22%20slang%3D%22en-US%22%3E%3CP%3EI%20had%20read%20somewhere%20that%20with%20azcopy%20if%20it%20came%20from%20a%20page%20blob%20the%20new%20copy%20would%20still%20be%20a%20page%20blob%20and%20that%20there%20wasn't%20a%20switch%20in%20azcopy%20to%20change%20from%20page%20to%20block%20blob%20or%20vice%20versa.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHowever%2C%20I%20didn't%20verify%20that%20so%20I%20may%20have%20to%20test%20it%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-358438%22%20slang%3D%22en-US%22%3ERe%3A%20VHD%20to%20Archive%20Storage%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-358438%22%20slang%3D%22en-US%22%3E%3CP%3EI'm%20spit%20balling%20here%2C%20but%20have%20you%20considered%20using%20AZcopy%3F%20You%20can%20use%20it%20transfer%20data%20to%2Ffrom%20different%20storage%20types.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20can%20set%20up%20another%20Azure%20storage%20account%20and%20copy%20the%20data%20from%20your%20page%20blob%20to%20a%20drive%20you%20can%20store%20cold.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-509571%22%20slang%3D%22en-US%22%3ERe%3A%20VHD%20to%20Archive%20Storage%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-509571%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F331400%22%20target%3D%22_blank%22%3E%40davlun%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENot%20really%20a%20good%20one.%20I%20thought%20the%20best%20thing%20to%20do%20was%20to%20copy%20the%20files%20to%20a%20container%20in%20a%20storage%20account%20in%20Azure%20and%20then%20change%20the%20container%20to%20the%20archive%20tier.%20It%20is%20not%20as%20simple%20a%20process%20as%20I%20wanted.%20There%20are%20more%20steps%20and%20more%20chances%20for%20error.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20been%20on%20vacation%20so%20I%20haven't%20moved%20our%20archive%20yet.%20We%20are%20still%20using%20our%20normal%20backup%20process.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-877581%22%20slang%3D%22en-US%22%3ERe%3A%20VHD%20to%20Archive%20Storage%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-877581%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F331400%22%20target%3D%22_blank%22%3E%40davlun%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20is%20how%20I%20have%20implemented%20a%20similar%20scenario.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EScenario%3A%3C%2FP%3E%3CP%3ECopy%20vhd%20file%20from%20one%20subscription%20to%20another%20and%20in%20the%20destination%20subscription%20the%20vhd%20file%20must%20be%20placed%20in%20the%20archive%20tier.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EConsiderations%3A%3CBR%20%2F%3E-%20VHD%20file%20is%20supposed%20to%20be%20page%20blob.%3CBR%20%2F%3E-%26nbsp%3BArchive%20tier%20is%20supported%20for%20block%20blobs%20(page%20blob%20cannot%20be%20changed%20to%20Archive%20tier)%20and%20at%20the%20object%20level%20only.%26nbsp%3B%26nbsp%3B%3CBR%20%2F%3E-%20We%20want%20to%20Archive%20the%20vhd%20file%20in%20the%20destination%20subscription%2C%20so%20we%20have%20to%20copy%20the%20vhd%20file%20as%20block%20blob%20and%20then%20change%20the%20tier%20to%20Archive.%3CBR%20%2F%3E-%20However%20in%20case%20we%20ever%20need%20to%20restore%20the%20vhd%20file%20which%20was%20copied%20as%20block%20blob%2C%20we%20have%20to%20convert%20the%20vhd%20file%20back%20to%20page%20blob%20first%20and%20then%20mount%20it%20as%20a%20disk%20(because%20we%20cannot%20mount%20a%20vhd%20file%20block%20blob%20as%20a%20disk%20to%20a%20VM).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESteps%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E1)%20First%20I%20have%20copied%20the%20vhd%20file%20from%20source%20subscription%20to%20destination%20subscription%20as%20block%20blob%20(parameter%20--blob-type%3Dblockblob)%20with%20AzCopy%20v10.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CDIV%3E%3CDIV%3Eazcopy%20copy%20%22https%3A%2F%2F%3CSOURCE-STORAGE-ACCOUNT-NAME%3E.blob.core.windows.net%2F%3CCONTAINER-NAME%3E%2F%3CBLOB-PATH%3E%3F%3CSOURCE-STORAGE-ACCOUNT-SAS-TOKEN%3E%22%20%22https%3A%2F%2F%3CDESTINATION-STORAGE-ACCOUNT-NAME%3E.blob.core.windows.net%2F%3CCONTAINER-NAME%3E%2F%3CBLOB-PATH%3E%3F%3CDESTINATION-STORAGE-ACCOUNT-SAS-TOKEN%3E%22%20--blob-type%3Dblockblob%3C%2FDESTINATION-STORAGE-ACCOUNT-SAS-TOKEN%3E%3C%2FBLOB-PATH%3E%3C%2FCONTAINER-NAME%3E%3C%2FDESTINATION-STORAGE-ACCOUNT-NAME%3E%3C%2FSOURCE-STORAGE-ACCOUNT-SAS-TOKEN%3E%3C%2FBLOB-PATH%3E%3C%2FCONTAINER-NAME%3E%3C%2FSOURCE-STORAGE-ACCOUNT-NAME%3E%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E2)%20I%20configured%20the%26nbsp%3B%3CSPAN%3ELifecycle%20Management%20to%20automatically%20switch%20files%20in%20a%20given%20container%20to%20the%20Archive%20tier.%20Note%20that%20the%20policy%20only%20executes%20once%20per%20day.%26nbsp%3B%3C%2FSPAN%3E%3CP%3EFor%20details%20on%20how%20to%20manage%20the%20Azure%20Blob%20storage%20lifecycle%20check%20this%3A%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fnam06.safelinks.protection.outlook.com%2F%3Furl%3Dhttps%253A%252F%252Furldefense.proofpoint.com%252Fv2%252Furl%253Fu%253Dhttps-3A__docs.microsoft.com_en-2Dus_azure_storage_blobs_storage-2Dlifecycle-2Dmanagement-2Dconcepts%2526d%253DDwMFAg%2526c%253DeIGjsITfXP_y-DLLX0uEHXJvU8nOHrUK8IrwNKOtkVU%2526r%253DyxFqvV4vPK-LMxtxhaS7m0ZuFJNpKajTRwtmu_RWLY4%2526m%253DN1AqBkCaW9oCFkG3hixSw4vCLBmRlvXdMhcFNNw9O30%2526s%253D92xdOWrBP5H4_qo1q_AGUO-MQKH6DbfLy_2hxAhP1LA%2526e%253D%26amp%3Bdata%3D02%257C01%257CCristiano.Araujo%2540microsoft.com%257C9ca95a22de69494d22b308d740d2bc1e%257C72f988bf86f141af91ab2d7cd011db47%257C1%257C0%257C637049146170653072%26amp%3Bsdata%3Dm8NVVJibnOIqN8pYUh9XHMq9WNrFKSnhpIfTwaS3Gds%253D%26amp%3Breserved%3D0%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fstorage%2Fblobs%2Fstorage-lifecycle-management-concepts%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E3)%26nbsp%3BIn%20case%20we%20need%20to%20restore%20the%20vhd%20file%20which%20was%20copied%20as%20block%20blob%2C%20these%20are%20the%20steps%3A%3C%2FP%3E%3CP%3E-%20Change%20the%20tier%20from%20Archive%20to%20Hot%20for%20example.%3C%2FP%3E%3CP%3E-%20Convert%20the%20vhd%20file%20back%20to%20page%20blob%20with%20below%20command%20(parameter%20--blob-type%3Dpageblob).%3C%2FP%3E%3CP%3E-%20Mount%20it%20as%20a%20disk%20to%20a%20VM.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eazcopy%20copy%20%22https%3A%2F%2F%3CSOURCE-STORAGE-ACCOUNT-NAME%3E.blob.core.windows.net%2F%3CCONTAINER-NAME%3E%2F%3CBLOB-PATH%3E%3F%3CSOURCE-STORAGE-ACCOUNT-SAS-TOKEN%3E%22%20%22https%3A%2F%2F%3CDESTINATION-STORAGE-ACCOUNT-NAME%3E.blob.core.windows.net%2F%3CCONTAINER-NAME%3E%2F%3CBLOB-PATH%3E%3F%3CDESTINATION-STORAGE-ACCOUNT-SAS-TOKEN%3E%22%20--blob-type%3Dpageblob%3C%2FDESTINATION-STORAGE-ACCOUNT-SAS-TOKEN%3E%3C%2FBLOB-PATH%3E%3C%2FCONTAINER-NAME%3E%3C%2FDESTINATION-STORAGE-ACCOUNT-NAME%3E%3C%2FSOURCE-STORAGE-ACCOUNT-SAS-TOKEN%3E%3C%2FBLOB-PATH%3E%3C%2FCONTAINER-NAME%3E%3C%2FSOURCE-STORAGE-ACCOUNT-NAME%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-880280%22%20slang%3D%22en-US%22%3ERe%3A%20VHD%20to%20Archive%20Storage%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-880280%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F415907%22%20target%3D%22_blank%22%3E%40CristianoRosa%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20for%20the%20write%20up!%26nbsp%3B%20I%20could%20not%20find%20a%20solution%20originally%2C%20so%20went%20a%20more%20traditional%20backup%2C%20but%20will%20need%20to%20do%20this%20again%20toward%20the%20end%20of%20the%20year.%26nbsp%3B%20I%20am%20going%20to%20give%20this%20a%20shot%20in%20the%20next%20few%20weeks...%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-880359%22%20slang%3D%22en-US%22%3ERe%3A%20VHD%20to%20Archive%20Storage%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-880359%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F4770%22%20target%3D%22_blank%22%3E%40John%20Twohig%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EWhen%20rehydrating%20a%20blob%20from%20archive%20tier%20to%20the%20hot%20or%20cool%20tier%2C%20how%20will%20I%20know%20when%20rehydration%20is%20complete%3F%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EDuring%20rehydration%2C%20you%20may%20use%20the%20get%20blob%20properties%20operation%20to%20poll%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3EArchive%20Status%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eattribute%20to%20confirm%20when%20the%20tier%20change%20is%20complete.%20The%20status%20reads%20%22rehydrate-pending-to-hot%22%20or%20%22rehydrate-pending-to-cool%22%20depending%20on%20the%20destination%20tier.%20Upon%20completion%2C%20the%20archive%20status%20property%20is%20removed%2C%20and%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3EAccess%20Tier%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eblob%20property%20reflects%20the%20new%20hot%20or%20cool%20tier.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fstorage%2Fblobs%2Fstorage-blob-storage-tiers%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fstorage%2Fblobs%2Fstorage-blob-storage-tiers%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
John Twohig
Contributor

I have a disk with some files (About 1 TB) that will probably never be needed. However they might be needed so I have to keep them somewhere. I thought that the archive storage tier would be the perfect place.

 

My plan was to detach the VHD from the VM and change the storage tier from hot to archive. If I ever needed the data again I would change from archive back to hot and attach the VHD to a VM. However, after detaching the disk, when I tried to change the tier I got the message "Changing the access tier is only allowed on block blobs that do not have snapshots in an active state." I then realized that the VHD is a page blob and it appears you can't change the tier on a page blob.

 

I can't be the only one who wants to archive a drive (Or an entire VM) so I suspect I am missing a simple solution.

 

Any ideas?

9 Replies

I'm spit balling here, but have you considered using AZcopy? You can use it transfer data to/from different storage types.

 

You can set up another Azure storage account and copy the data from your page blob to a drive you can store cold.

I had read somewhere that with azcopy if it came from a page blob the new copy would still be a page blob and that there wasn't a switch in azcopy to change from page to block blob or vice versa. 

 

However, I didn't verify that so I may have to test it 

It may be possible to perform the following using AZcopy v10:

https://docs.microsoft.com/en-us/azure/storage/common/storage-use-azcopy-v10

 

...you can sync a Blob container down to a local file system:

AzCopy
# If you're using Azure Active Directory authentication the sastoken is not required
.\azcopy sync "https://account.blob.core.windows.net/mycontainer1" "C:\local\path" --recursive=true

 

Darrick

 

Good suggestion but that didn't work.

 

The Azcopy documentation says "AzCopy v10 by default uploads data into block blobs. However, if a source file has vhd extension, AzCopy v10 will by default upload it to a page blob.

 

The documentation doesn't seem to be correct. I removed the vhd extension and used Azcopy but it kept it as a page blob. 

 

@John Twohig 

 

Did you ever figure out a solution for this?  (you are right, not the only one thinking about something like this)

 

David

 

@davlun 

 

Not really a good one. I thought the best thing to do was to copy the files to a container in a storage account in Azure and then change the container to the archive tier. It is not as simple a process as I wanted. There are more steps and more chances for error. 

 

I have been on vacation so I haven't moved our archive yet. We are still using our normal backup process. 

@davlun 

 

This is how I have implemented a similar scenario.

 

Scenario:

Copy vhd file from one subscription to another and in the destination subscription the vhd file must be placed in the archive tier.

 

Considerations:
- VHD file is supposed to be page blob.
- Archive tier is supported for block blobs (page blob cannot be changed to Archive tier) and at the object level only.  
- We want to Archive the vhd file in the destination subscription, so we have to copy the vhd file as block blob and then change the tier to Archive.
- However in case we ever need to restore the vhd file which was copied as block blob, we have to convert the vhd file back to page blob first and then mount it as a disk (because we cannot mount a vhd file block blob as a disk to a VM).

 

Steps:

 

1) First I have copied the vhd file from source subscription to destination subscription as block blob (parameter --blob-type=blockblob) with AzCopy v10.

 

azcopy copy "https://<source-storage-account-name>.blob.core.windows.net/<container-name>/<blob-path>?<source-storage-account-SAS-token>" "https://<destination-storage-account-name>.blob.core.windows.net/<container-name>/<blob-path>?<destination-storage-account-SAS-token>" --blob-type=blockblob
 
2) I configured the Lifecycle Management to automatically switch files in a given container to the Archive tier. Note that the policy only executes once per day. 

For details on how to manage the Azure Blob storage lifecycle check this:

https://docs.microsoft.com/en-us/azure/storage/blobs/storage-lifecycle-management-concepts

 

3) In case we need to restore the vhd file which was copied as block blob, these are the steps:

- Change the tier from Archive to Hot for example.

- Convert the vhd file back to page blob with below command (parameter --blob-type=pageblob).

- Mount it as a disk to a VM.

 

azcopy copy "https://<source-storage-account-name>.blob.core.windows.net/<container-name>/<blob-path>?<source-storage-account-SAS-token>" "https://<destination-storage-account-name>.blob.core.windows.net/<container-name>/<blob-path>?<destination-storage-account-SAS-token>" --blob-type=pageblob

 

@CristianoRosa 

 

Thanks for the write up!  I could not find a solution originally, so went a more traditional backup, but will need to do this again toward the end of the year.  I am going to give this a shot in the next few weeks...

@John Twohig 

 

When rehydrating a blob from archive tier to the hot or cool tier, how will I know when rehydration is complete?

During rehydration, you may use the get blob properties operation to poll the Archive Status attribute to confirm when the tier change is complete. The status reads "rehydrate-pending-to-hot" or "rehydrate-pending-to-cool" depending on the destination tier. Upon completion, the archive status property is removed, and the Access Tier blob property reflects the new hot or cool tier.

 

https://docs.microsoft.com/en-us/azure/storage/blobs/storage-blob-storage-tiers

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
38 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
13 Replies