1 00:00:00,940 --> 00:00:03,150 I'd like to start this demo by teaching you how to 2 00:00:03,150 --> 00:00:05,160 resize an Azure virtual machine. 3 00:00:05,160 --> 00:00:08,650 Let's pop open our browser, and I have the portal already up and running, 4 00:00:08,650 --> 00:00:11,260 and let's head on over to the Virtual machines blade. 5 00:00:11,260 --> 00:00:15,120 And I'll probably want to start a machine so we can get to work on it, 6 00:00:15,120 --> 00:00:16,990 so why don't I start up a couple here? 7 00:00:16,990 --> 00:00:19,010 I'll select them in the list and click Start. 8 00:00:19,010 --> 00:00:20,090 While we're waiting, 9 00:00:20,090 --> 00:00:24,520 let's take a look at the storage subsystem of my vm1 machine, 10 00:00:24,520 --> 00:00:26,070 the only one that's actually running. 11 00:00:26,070 --> 00:00:28,750 I'm hesitant operate on this machine because it's 12 00:00:28,750 --> 00:00:32,980 actually the one I'm teaching on, and I don't want it to suddenly go down. 13 00:00:32,980 --> 00:00:36,020 So in the Azure virtual machine Overview page, 14 00:00:36,020 --> 00:00:37,830 we can see just high‑level meta, 15 00:00:37,830 --> 00:00:40,840 including the current size of the virtual machine. 16 00:00:40,840 --> 00:00:43,880 Now I do have a public IP address on this machine, 17 00:00:43,880 --> 00:00:46,410 but I have a decided reason for doing that. 18 00:00:46,410 --> 00:00:48,420 We'll talk about that more in a later demo. 19 00:00:48,420 --> 00:00:50,680 We can see where this VM is placed. 20 00:00:50,680 --> 00:00:51,640 But I'm getting distracted. 21 00:00:51,640 --> 00:00:53,380 Never mind me, never mind me. 22 00:00:53,380 --> 00:00:56,280 For storage stuff, we want to come down under Settings, 23 00:00:56,280 --> 00:00:57,060 Disks, 24 00:00:57,060 --> 00:01:01,000 and then the portal will show us our OS disk, the type of disk it 25 00:01:01,000 --> 00:01:04,010 is, size, the maximum IOPS, the throughput, 26 00:01:04,010 --> 00:01:07,150 the encryption type. So, you can have only one of those, but, of 27 00:01:07,150 --> 00:01:10,480 course, we can have one or more data disks. And I had mentioned that 28 00:01:10,480 --> 00:01:14,480 the VM size not only controls things like the number of data disks 29 00:01:14,480 --> 00:01:18,130 that you can have, but also whether you're allowed to do premium 30 00:01:18,130 --> 00:01:22,770 solid‑state disk storage, which would give you more IOPS and more throughput. 31 00:01:22,770 --> 00:01:25,830 How do we adjust the size of the VM in the Azure portal? Well, 32 00:01:25,830 --> 00:01:27,870 you can see the setting right under Disks. 33 00:01:27,870 --> 00:01:29,990 It's called, appropriately enough, Size. 34 00:01:29,990 --> 00:01:32,740 And let me maximize our screen space here. 35 00:01:32,740 --> 00:01:36,250 You'll want to get comfortable with these controls up here 36 00:01:36,250 --> 00:01:39,900 because these filters will allow you to customize what it 37 00:01:39,900 --> 00:01:41,710 is that you have as an option. 38 00:01:41,710 --> 00:01:47,240 So maybe for vCPUs we know in advance that we want either a fixed number or 39 00:01:47,240 --> 00:01:53,620 maybe a custom number, maybe between 2 and 4 vCPUs. And maybe for RAM, instead 40 00:01:53,620 --> 00:02:00,440 of everything, we want to see maybe a range again of between 8 and say 32 GB 41 00:02:00,440 --> 00:02:03,010 for RAM. And then we can Add filter more. 42 00:02:03,010 --> 00:02:05,250 There's several options to choose from here. 43 00:02:05,250 --> 00:02:10,010 You can choose Generation, Family. Your Ephemeral OS disk is your temp disk, 44 00:02:10,010 --> 00:02:12,000 whether that's allowed and how large it is, 45 00:02:12,000 --> 00:02:12,930 that kind of stuff. 46 00:02:12,930 --> 00:02:16,320 Let me choose Family, and I told you that there are several different 47 00:02:16,320 --> 00:02:19,420 types here, and it's going to default to General purpose. 48 00:02:19,420 --> 00:02:22,070 Now you should know that depending upon your region, 49 00:02:22,070 --> 00:02:24,580 you'll get slightly different runtime costs. 50 00:02:24,580 --> 00:02:27,500 This reflects the fact that different areas of the world 51 00:02:27,500 --> 00:02:29,640 have different costs of doing business. 52 00:02:29,640 --> 00:02:32,260 So if you're like I am, I'm in the East US, 53 00:02:32,260 --> 00:02:36,690 I'll have certain price ranges. And actually, not every VM size may 54 00:02:36,690 --> 00:02:40,610 be available in a particular region, so these are always things to 55 00:02:40,610 --> 00:02:44,000 look at. And you can see here it's looking at the same region that 56 00:02:44,000 --> 00:02:48,890 my vm1 is in, the East US, so it'll only show you those sizes that 57 00:02:48,890 --> 00:02:49,890 are available to you. 58 00:02:49,890 --> 00:02:53,950 You can see in the list here we've got Most used by Azure users, and 59 00:02:53,950 --> 00:02:57,640 then we've got various series and versions down here. 60 00:02:57,640 --> 00:03:00,140 Let me choose Most used by Azure users. 61 00:03:00,140 --> 00:03:00,610 And again, 62 00:03:00,610 --> 00:03:05,520 the idea is that you've got some family keyword and then the number of CPU 63 00:03:05,520 --> 00:03:10,240 cores, so 2, 4. You can see that reflected in the vCPUs column. 64 00:03:10,240 --> 00:03:11,810 M stands for memory. 65 00:03:11,810 --> 00:03:12,110 Again, 66 00:03:12,110 --> 00:03:15,020 I already mentioned this, that you can just look in the docs, 67 00:03:15,020 --> 00:03:18,920 and you can get a full understanding of how those short names 68 00:03:18,920 --> 00:03:21,080 come to be. Number of data disks. 69 00:03:21,080 --> 00:03:24,540 This answers the question specifically, how do you get that number? 70 00:03:24,540 --> 00:03:29,430 The Max IOPS is a relative speed indicator for storage, but that's going to 71 00:03:29,430 --> 00:03:32,430 depend upon whether you've got Premium Storage or not. 72 00:03:32,430 --> 00:03:36,270 Now notice that just about all sizes nowadays support Premium. A big 73 00:03:36,270 --> 00:03:40,310 important implication of premium disks, SSD disks in other words, 74 00:03:40,310 --> 00:03:44,340 over the HDD mechanical type is that the mechanical storage 75 00:03:44,340 --> 00:03:48,880 IOP values represent true maxes, not predictable values, but 76 00:03:48,880 --> 00:03:51,210 burst levels. When you do Premium, 77 00:03:51,210 --> 00:03:55,060 you really can expect to see that max value consistently. 78 00:03:55,060 --> 00:03:59,470 That's one of the value propositions of paying more to get a premium 79 00:03:59,470 --> 00:04:02,710 disk on your virtual machine. Now you should see lastly up here in the 80 00:04:02,710 --> 00:04:05,030 blue that if the VM is currently running, 81 00:04:05,030 --> 00:04:08,440 changing its size will cause it to be restarted. Stopping 82 00:04:08,440 --> 00:04:10,790 the VM may reveal additional sizes. 83 00:04:10,790 --> 00:04:11,040 Again, 84 00:04:11,040 --> 00:04:14,810 I don't want to do this on vm1 because it's the one that I'm actually using, 85 00:04:14,810 --> 00:04:17,280 but we would just choose the new size, 86 00:04:17,280 --> 00:04:21,970 click Save, that VM would restart, and when it comes back from the restart, 87 00:04:21,970 --> 00:04:24,740 it will reflect its current size again. 88 00:04:24,740 --> 00:04:31,000 That's going to be indicated on the Overview page and the Size property, as you can see here.