1 00:00:00,700 --> 00:00:01,740 Hey, Cloud Gurus. 2 00:00:01,740 --> 00:00:04,750 Welcome to this lesson on archiving data, 3 00:00:04,750 --> 00:00:08,343 and specifically accomplishing that with Azure Blob storage. 4 00:00:10,280 --> 00:00:11,990 In the next few minutes, we're going to talk a little bit 5 00:00:11,990 --> 00:00:14,310 about access tiers. 6 00:00:14,310 --> 00:00:16,950 We're going to look at the tier breakdown, 7 00:00:16,950 --> 00:00:19,570 some considerations when choosing tiers, 8 00:00:19,570 --> 00:00:21,700 and wrap it up with a review. 9 00:00:21,700 --> 00:00:22,783 So let's get started. 10 00:00:25,580 --> 00:00:27,680 There are 3 access tiers available to you 11 00:00:27,680 --> 00:00:29,710 in Azure Blob storage. 12 00:00:29,710 --> 00:00:31,510 The first is Hot, 13 00:00:31,510 --> 00:00:35,350 and this is optimized for frequently accessed data. 14 00:00:35,350 --> 00:00:38,120 This is what your storage account will be set to by default 15 00:00:38,120 --> 00:00:41,890 because it assumes that you're working with day-to-day data. 16 00:00:41,890 --> 00:00:43,610 From there we have Cool, 17 00:00:43,610 --> 00:00:46,417 which is optimized for infrequently accessed data 18 00:00:46,417 --> 00:00:48,763 that's stored for at least a month. 19 00:00:50,110 --> 00:00:51,720 And finally, Archive, 20 00:00:51,720 --> 00:00:54,773 which is optimized for data that is rarely accessed. 21 00:00:56,930 --> 00:01:00,150 If we break these down a little bit starting with Hot, 22 00:01:00,150 --> 00:01:01,770 we have no minimum time there 23 00:01:01,770 --> 00:01:04,810 because like I said, this is your day-to-day data. 24 00:01:04,810 --> 00:01:08,140 This is where you're operating on a continual basis. 25 00:01:08,140 --> 00:01:11,030 Storage costs here are the highest, 26 00:01:11,030 --> 00:01:14,630 but it's access costs are the lowest of the three, 27 00:01:14,630 --> 00:01:17,493 and it's used for active or staging data. 28 00:01:18,890 --> 00:01:21,130 Stepping down from there, we have Cool, 29 00:01:21,130 --> 00:01:24,710 and that has a minimum time of 30 days. 30 00:01:24,710 --> 00:01:26,370 There is an early deletion penalty 31 00:01:26,370 --> 00:01:28,700 if you take it out before that 30 days, 32 00:01:28,700 --> 00:01:30,583 but we'll get more to that in a moment. 33 00:01:31,720 --> 00:01:34,740 It's storage cost is lower compared to the Hot 34 00:01:34,740 --> 00:01:39,070 and it's access cost is higher compared to Hot storage. 35 00:01:39,070 --> 00:01:41,893 And so it falls in the middle between Hot and Archive. 36 00:01:42,770 --> 00:01:45,460 It's going to be about half the storage cost 37 00:01:45,460 --> 00:01:47,120 compared to the Hot tier, 38 00:01:47,120 --> 00:01:52,080 and about twice the read/write access cost compared to Hot. 39 00:01:52,080 --> 00:01:55,490 And so its wheelhouse is really short-term data, 40 00:01:55,490 --> 00:01:58,203 making it great for short-term backup and recovery. 41 00:01:59,560 --> 00:02:01,100 Finally, we have Archive, 42 00:02:01,100 --> 00:02:04,130 which has a minimum time of 180 days. 43 00:02:04,130 --> 00:02:08,340 It's storage cost is extremely cheap compared to the others, 44 00:02:08,340 --> 00:02:11,430 but it's access cost is the highest. 45 00:02:11,430 --> 00:02:14,130 It becomes very expensive to move or delete data 46 00:02:14,130 --> 00:02:15,340 in this tier, 47 00:02:15,340 --> 00:02:17,960 because it's meant to be left there for a long time, 48 00:02:17,960 --> 00:02:20,310 making it great for long-term backup 49 00:02:20,310 --> 00:02:22,563 or compliance and regulatory purposes. 50 00:02:25,600 --> 00:02:28,940 There are some considerations for working with these tiers. 51 00:02:28,940 --> 00:02:31,560 One, you can set Hot and Cool access tiers 52 00:02:31,560 --> 00:02:32,810 at the account level, 53 00:02:32,810 --> 00:02:36,110 but Archive has to be set at the blob level. 54 00:02:36,110 --> 00:02:38,280 Two, there is some lower availability 55 00:02:38,280 --> 00:02:41,470 associated with the Cool access tier compared to Hot. 56 00:02:41,470 --> 00:02:42,810 And that's the trade-off you get 57 00:02:42,810 --> 00:02:44,823 for having a lower storage cost. 58 00:02:45,900 --> 00:02:48,750 As mentioned before, there is an early deletion penalty 59 00:02:48,750 --> 00:02:52,200 if you have blobs in the Cool or Archive access tiers 60 00:02:52,200 --> 00:02:54,800 and move or delete them before the minimum time. 61 00:02:54,800 --> 00:02:57,003 You will incur an early deletion fee. 62 00:02:58,480 --> 00:03:01,140 Archive data is stored offline, 63 00:03:01,140 --> 00:03:04,580 and so it is not as simple to move data within that tier 64 00:03:04,580 --> 00:03:07,170 back and forth between the other tiers. 65 00:03:07,170 --> 00:03:10,460 In order to retrieve it, it has to be rehydrated. 66 00:03:10,460 --> 00:03:11,530 And you can think about this 67 00:03:11,530 --> 00:03:14,660 kind of like your blobs being zipped and stored offline. 68 00:03:14,660 --> 00:03:16,370 It's going to take a long amount of time 69 00:03:16,370 --> 00:03:18,833 to bring it back online on a different tier. 70 00:03:20,230 --> 00:03:22,350 Your redundancy options are a little bit different 71 00:03:22,350 --> 00:03:27,350 with the Archive tier only supporting LRS, GRS, and RA-GRS, 72 00:03:29,330 --> 00:03:32,183 but Hot and Cool have access to all of the options. 73 00:03:33,030 --> 00:03:35,750 And you need to keep in mind, storage limits. 74 00:03:35,750 --> 00:03:38,840 Data storage limits are set at the account level, 75 00:03:38,840 --> 00:03:40,970 not per access tier. 76 00:03:40,970 --> 00:03:43,750 So you can put everything in one access tier if you want, 77 00:03:43,750 --> 00:03:46,290 or spread them across all three. 78 00:03:46,290 --> 00:03:49,263 It's all using the same limit of your storage account. 79 00:03:50,770 --> 00:03:52,770 From here, let's jump over to the Azure portal 80 00:03:52,770 --> 00:03:55,353 and take a look at setting these access tiers. 81 00:03:57,280 --> 00:03:58,960 Here we are in the Azure portal, 82 00:03:58,960 --> 00:04:00,970 and I'm simply using the Cloud Playground 83 00:04:00,970 --> 00:04:04,010 included with A Cloud Guru subscriptions. 84 00:04:04,010 --> 00:04:06,080 We have a number of containers here, 85 00:04:06,080 --> 00:04:07,740 one for a landing zone, 86 00:04:07,740 --> 00:04:10,670 a curated zone, and a production zone. 87 00:04:10,670 --> 00:04:13,140 If we open up this landing zone folder, 88 00:04:13,140 --> 00:04:16,370 there is a testdata.json blob here, 89 00:04:16,370 --> 00:04:19,360 and you can see that the access tier is Hot, 90 00:04:19,360 --> 00:04:22,400 and that is inferred from the account level, 91 00:04:22,400 --> 00:04:24,920 which we'll take a look at in a moment. 92 00:04:24,920 --> 00:04:27,920 But if we wanted to change that level for this blob, 93 00:04:27,920 --> 00:04:30,170 we can click our 3 dots over here 94 00:04:30,170 --> 00:04:32,053 and come to Change Tier. 95 00:04:33,170 --> 00:04:38,030 From there, we can change it from Hot to Cool or Archive. 96 00:04:38,030 --> 00:04:40,290 And remember, you can only change it to Archive 97 00:04:40,290 --> 00:04:41,890 at this level. 98 00:04:41,890 --> 00:04:43,840 You can't do that at the account level. 99 00:04:45,240 --> 00:04:48,003 So let's change it to Cool and click Save. 100 00:04:49,200 --> 00:04:50,510 And it's just that easy. 101 00:04:50,510 --> 00:04:53,680 You can change those back and forth as you want, 102 00:04:53,680 --> 00:04:55,680 but keep in mind the early deletion penalties 103 00:04:55,680 --> 00:04:58,820 if you move it out of the Cool or Archive tiers 104 00:04:58,820 --> 00:05:01,480 before those minimum time limits. 105 00:05:01,480 --> 00:05:04,920 Let's pop back out to our list of containers. 106 00:05:04,920 --> 00:05:09,920 And if we come down in this left column to Configuration, 107 00:05:10,000 --> 00:05:13,460 and this is the configuration of our storage account. 108 00:05:13,460 --> 00:05:14,990 We click on that. 109 00:05:14,990 --> 00:05:19,070 Here you can see our default blob access tier. 110 00:05:19,070 --> 00:05:20,030 And now you can understand 111 00:05:20,030 --> 00:05:22,800 why it said that Hot was inferred. 112 00:05:22,800 --> 00:05:25,943 That is the default level that is set on our account. 113 00:05:27,010 --> 00:05:29,550 And so you can choose either Cool or Hot, 114 00:05:29,550 --> 00:05:33,223 and as mentioned, you cannot choose Archive from here. 115 00:05:35,323 --> 00:05:36,960 And by way of review, 116 00:05:36,960 --> 00:05:40,433 Hot access tier is for frequently used data. 117 00:05:41,290 --> 00:05:44,400 Cool access tier is for infrequently used data 118 00:05:44,400 --> 00:05:47,140 that will be stored at least 30 days. 119 00:05:47,140 --> 00:05:50,570 And Archive access tier is for long-term storage 120 00:05:50,570 --> 00:05:52,963 of 180 days or more. 121 00:05:53,910 --> 00:05:55,320 Thank you for joining me for this lesson 122 00:05:55,320 --> 00:05:58,650 around archiving data in Azure Blob storage. 123 00:05:58,650 --> 00:06:01,100 when you're ready I'll see you in the next video.