 Hi there and welcome to another edition of Tuesdays with Cora. I'm here with Kay, who is the owner, leader, brain behind our disk many things, many things, many things, many things. Today, and so we're going to do a couple sessions actually. Today we're going to focus on disks, then we're going to focus on images. So tell us a little bit, well first start us off a little bit with what disks are, why you love them. I love the disks. You love the disks. Who doesn't love the disks? Well, who doesn't love them more than storage accounts. There you go. That's right. That's the way to think about it. That's the key. You don't have to manage anything. If you remember working with storage accounts for a long time was a tedious process. You had to manage the blobs and they had to long your eyes and it's like so hard to remember. That's right. You want to remember the name of the disk. So with managed disks you get to do that. You get to kind of up level the disks as a concept up in the arm layer. Right. So then you can take like RBEC conditions on them, RBEC policies on them and you can apply permissions and you can work on them as like top level resources on the same level as virtual machines or anything else. Got it. And the second benefit managed disks offers is offers you high availability compared to storage accounts. Like we've seen in the past the disks can, even though the VMs are in an availability set, they're in like different fall domains. Right. The disks are also spread now. Exactly. So the compute fall domains are aligned with the storage fall domains. Perfect. So that's what managed disks really brings to the table. Oh, that's awesome. And we have a lot of new features that we are bringing to the table. And everyone loves managed disks. Everyone loves managed disks. So we've seen great adoption on managed disks. Yeah, okay. So, okay, great. So that's good background. Yes. Good background on managed disk and sort of the reducing the management cost and giving you high availability. Who doesn't want that stuff? Exactly. Right. So but now you said we've added some new capabilities. Yes, exactly. So walk us through what you've got here. So the first feature I want to talk about is this OS disk swap. So if you remember in the past, a lot of customers have asked us for this. Yes. So what they wanted to do was the VM wasn't working or something happened or they wanted to restore it to a previous backup of the VM. Right. So they would have to delete the VM, take the disk and then attach it to a new VM. Very annoying. Right. What we've made it possible now is to take a VM and just like pass in a new resource ID of a new disk and it just swaps. You can just put in basically another OS disk even without having to change anything else on the VM. Exactly. And then you can add that disk as like a data disk. Exactly. And then do W. Yes. Yeah. Well, that you could do before. Now you can just change the OS disk. Right. Oh, cool. So walk us through this. Let's take a look at this. Yes. I'm intrigued. So it is one command. It is one command. That's what VM for all is. That's okay. We can do it one command. One button. Yes. One button. So here I have a resource group called one OS disk swap RG and I have a VM one. Good name. And then VM one has VM one OS disk attached to it and we'll just take a look at the disks. Right. So here's the disks blade and here's VM one OS disk one. Right. So back to that resource group. You'll see I have another OS disk here. Right. And this was previously attached to another VM. Sure. So right now it's not attached to anything. Exactly. So what I want to do is I want to SSH into this VM and actually show you what's on the disk so that you can actually. So I believe you. Yes. Because otherwise I'll think you're like. That is a big part of it. That is true. Actually I do. You can't just put features out there that don't work. You can try. Yeah. All right. So hopefully our audience doesn't think we put features out there that don't work. All right. So here I am in that VM and I have a file called ASCII dot text. Right. Okay. And Linux has a great tool called cat for printing cat pictures. Right. Great tool comes built in. Right. So you do. But in this case it's going to show. Yes. Exactly. So you get grumpy cat. Right. Isn't that awesome. This is amazing. This is amazing. For something so silly and swapping kind of an OS this is an amazing demo. Well you got to make the demo interesting. You got to make it interesting. You got to make it interesting. People come to this show for jokes. You got to have the jokes. But K they're usually my jokes. You're. Okay well now this is Tuesdays with K. Wow. This is the Tuesdays with K. It took me along. Well Tuesdays with K. Now I'm living. That's it. Good. Please continue. No. K has a nice rhyme to it. It does have a nice ring to it. It does have a nice ring to it. It rhymes as well. That's right. Yes. That's right. Well it took me a long time to come to this show so I wanted to make something special. I kept asking you. You said I have to get the right demo. All right let's make the cat not grumpy. Yes. Also if I'm going to get an IMDb page after this show. You do need to get this. Yes. IMDb is what you're looking for. Well no but if you're on a show a popular show. What's a rhyme debate? There's a score on this show. This is a show. All right now because you haven't done anything. All right. So. You showed a cat picture. Nothing to do with Azure. Yes. Okay but you do need to stop the VM. So this is important. Yes. So you can't just do it on a running VM obviously. Well you could do it on a running VM and we'll just reboot it for you. Oh okay cool. Yeah. So we allowed that as well. So what you need to do is az-vm-update. Oh we got an az-vm-update. Okay got one command. The one command. Is there not a portal way to do this? So portal is coming soon. Oh wow. It is coming soon. Mr. Big Shot. It is coming very soon. Okay. Fine. All right. So az-vm-update. Passing the resource script name. Passing the VM name. Sure. And then the OS disk resource ID for the new disk. And this is the OS disk you were looking at before. So all I need to do is just pass that in. It's a long name for a disk. It is a long name but it's the complete resource ID. That's the only thing. So I'll paste that in here. So our portal will be nice. Portal will be much simpler than this. Not that if you've swapped the disk we can come in here and. You got to restart the VM though right? Yes. So I'm going to start the VM because if you've swapped the disk now. So we're going to come in here and look at, we're going to SSH into the VM and hopefully see the ASCII file has changed. I'm excited to see what the ASCII file will look like. Yes. It is a surprise. It is. I hope it's a cat. There you go. Starting. Starting. Yes. And we'll just. So the OS disk changed. So like this scenario that you'd use this for what would you use this for? So give me kind of a few examples. One example is if the OS disk you had a previous backup of the OS disk. Sure. Right. And something went wrong in the new OS disk. Sure. Right. And you just wanted to go back to. Sure. So it's easily swappable. Got it. So like we're starting from backup or again debugging a specific issue or something like this. Exactly. So make sure the IP address has changed. And the IP address changed because you're not using a reserved IP. Exactly. So I'm using a dynamic. So every time you stop it, it restarts. Yeah. It is still coming up. Okay. So what else? What else? Yes. Oh, on this OS disk? Yeah. What else would you do this for? Yeah. So backup debugging. So those are the two key scenarios that you would use this for. Got it. Okay. And doing cat pictures. And yes. That's the other big one. I want to show off cat pictures. It's a great thing for you to go do. So you're in. Looks like the VM is up. You're in. Hit the password, right? All right. Let's do this up. Enter the right password. Fingers crossed. Oh, no. This thing's like all you're using me for is this stupid cat thing. What's your password? It's the one that I'm entering. Rule number one, when changing OS disks, remember your password. Okay. Well, okay. Let's reset the password. Oh, now we're going to go in and we're going to show another feature, which is resetting the password. When this, when you forget your password, you can now go in and reset it. We can reference to previous Tuesdays and Cori for this, right? We have a previous Tuesday. No, resetting the password reset. All right. Look at that. Now we're going to go and reset the password for the OS disk. We're showing lots of things here. This is going to be great. All right. All right. And so what this is doing is because you swapped your OS disk, you forgot the password on the new one, which is what could happen to many people. Which could happen. But now you're up and running because you have access to this VM, you can go and actually set the reset the password. It's a great capability that we added a few years ago. Yeah. I remember. It's tremendous power. Tremendous power. And then this is in the portal. So this is exposed to the portal. You can just go in and do this. Great. Done. All right. All right. I'm going to be amazed at this. This cat picture really better be worth it. This is pretty this way. We're in. All right. We're in. Right? Bravo. Awesome. So let's do LS. There's another cat. There's another ASCII thing. What do you got? And? Any guess? Happy cat. Happy cat. You're right. Bravo. So the feature worked. So we introduced this new feature and it makes cats happy. Yeah. Yeah. Okay. So you can now swap OSDIS. It is a lot easier to do than what we just walked you through. Today it's available in CLI as we showed. CLI. You can also do it in PowerShell. You can do it in PowerShell. You can swap out the OSDIS. Yeah. You hopefully don't remember. Don't forget your password. Your password. To log back in. But if you do. If you do. Yes. You can even go fix that right in the portal. We showed you all that as if it were planned that K would script this thing. Yes. You can't now take over this show. Whoa. We were going to say you can take over this show. Yeah. It's not going to happen. I got to come back a few more times. You got to remember your password. That's awesome, Kate. Thank you so much for your time. Awesome happy cat. Yes. And we'll see you again soon here to talk a little bit about the image gallery. Oh yeah. There's more features on Manchester. There's more features. Yeah. I was going to cut it. No, no, no. Go. You're almost out of time though just to be clear. So all right. All right. So the next feature I want to show you is called the metric. So a lot of people have been asking us about like how do I get metrics for my disks, right? Yes. So I have disks. The expectation is I should be able to get metrics on the disk. Agreed. Right? So we've always had metrics for CPUs and disks. So these metrics that we've had before, these are the aggregate metrics across all the disks in the VM. Now what we introduced is if you just click on this, this will launch this new Azure Monitor metric experience. Cool. Look at this. So now what you can do is so I'm just going to remove these old metrics. So you can come here and click the virtual machine and then you'll see a list of all the new metrics. So for example, you'll get data disk, QDEPT, data disk, green bytes, right bytes. So now you can actually track these metrics. You can alert on these metrics if you want to. Exactly. Oh, very cool. So you can detect if your disk is being throttled. Yeah. And you can take an action of it. Yeah, of course. Right? And so like for example, the OSDisk disk, right? So I'll just do like OSDisk write bytes for a second and here you can see I ran some workload last night. Just to show this demo. Or are you actually running a real workload? It's called FIO, just a simple FIO. Yeah, so the answer is no. Well, synthetic benchmark. It's synthetic, perfect. Yes. Okay, got it. For the demo purposes. Got it. Right. So, but this Azure Monitor has a really nice integration with open source tools like Grafana because we know our customers use open source tools and they might not always want to come to portal. So what I've done is I've taken that, all that metrics. Yep. And I've created a Grafana dashboard out of it. Oh, cool. Look at this. So if you look at this, so you're looking at all the OSDisk. So you can pump all these metrics out to another tool. Exactly. That's awesome. So you can like input these into your existing dashboard. Yes. Or you can create like entirely new dashboards out of it. And you can customize them like whatever you want. Like for example, the way I did this is if I just went to edit. So if you select the Azure Monitor service as the source, then you'll get a list of all the resource groups in your subscription. Yes. Right. And then you'll get a namespace of which metric you want to look at. Right. And all the resources within that resource group that I picked. Yeah, yeah, yeah. In this case it was just one VM. And you'll get the same list of metrics here as well. Yep. So it is just really easy to add like your metrics to like an open source tool. That's awesome. Grafana dashboard. Okay. That's cool. Awesome. So done with metrics, done with those disks. Yes. Another. Okay, fine. We got one more. Yes. One more. Yes. We got one more. Yes. All right. Go. Another feature that I get asked about a lot. If I had a penny for every day, I got asked about it. Then you probably have about like 12 cents. Yes. Well. So a lot of folks have asked us for move manage disk. Yes. Exactly. Yes. The functionality is now available. So what I want to do is move this VM or this is a managed VM. So along with the manage disk. So the key point is you're moving a VM that happens to use managed disk. Managed disk. Yes. Right. Yep. And you can also move the disks. Sure. Or the managed snapshots or the managed images. Correct. Correct. So what you have to do is just select the move from here. And I want to move to another subscription. Move to another subscription. Right. And I will select my other subscription here. What? And I will create a new resource group. I will go on my mind right now. And I will hit OK. And away you go. And it's going to do its thing validation. Validating. And then it's going to. Sorry. And the things that it's validating. I do know this. Right. The two things that is making sure one backup. If you're using backup right now. That's not supported. Yes. Yes. And then if you're using Key Vault. So like if you're encrypting your disks. Yes. Right now that's not supported. Exactly. But these are things we are adding later. We are adding it. Yep. And Key Vault is coming sooner than backup. Yep. But we do have a workaround for that. We have a limited preview right now about your basis. But I think everyone gets access here. Everyone gets access now. This is available to everybody. Got it. Yeah. This is available to everybody. It's just those two caveats that you need to keep in mind. I see. That's awesome. Other than that. And how long does this take? And is the VM this important question? The VM is not rebooting in this situation. The VM is not rebooting. So it's just like moving the basically the information up at the top. Exactly. But the VM can continue to run. Yep. It's just metadata that's changing from that these resources belong to subscription. But then the virtual network is can be a challenge there. You do have to move the virtual network. And so, fine. And other like resources. Right. And IP and so on. This is going to take a bit of time. Sure. Just go through a bunch of validations and the move. Okay. But it's going to complete soon. I believe it's like five to ten. We'll trust you on that one. Yes. And Happy Cat will happen. Yes. We'll not sit here. We're not going to sit here with you. Yeah. All right. So you showed. Okay. And so are you done now? Yes. You got. Okay. I didn't give you what more stuff. So you showed the resources across subscriptions or across research groups. Yeah. One, two, you showed the ability to swap out an OS disc. Yep. And three, you showed great new metrics for OS. Awesome. That you can now put into both review on the portal but also dump into third party tools as well. Griffin. The power of managed discs. It's awesome. Coming at you. It's awesome. Yep. And all the new features that we're working on. All the new. It's done. Yes. Moving resources. Oh, it's moving. It validated and it successfully said that they can move. If you have questions for us, comments. You've got more things from K. Thank you. Thank you for joining us. Have a good Tuesday. Bye-bye. And you've run this command before. Okay. Yeah. I bet. When I launch this feature. Can you go just make sure that that. Yeah. Oh, it's a different. So that research group doesn't know. It's a different subscription. That's. Yeah. Yeah. Yeah. Yeah. Yeah. Yeah. Yeah. Yeah. Yeah. Yeah. Ava tour. Well, it's all that we started in this business that I had to deal with. Oh, okay. Okay.