1 00:00:00,840 --> 00:00:05,670 Troubleshoot Azure VM Extension Issues. Now recall that we service 2 00:00:05,670 --> 00:00:09,640 our VMs in Azure by using the extension model, 3 00:00:09,640 --> 00:00:15,350 which we can do in any of several ways in Azure Resource Manager. I want 4 00:00:15,350 --> 00:00:19,940 to show you how we can use Azure PowerShell, first of all, to verify 5 00:00:19,940 --> 00:00:25,140 that the Azure VM agent is correctly installed, and this is really the 6 00:00:25,140 --> 00:00:29,560 Azure VM's lifeline to Azure Resource Manager, so it's pretty important. 7 00:00:29,560 --> 00:00:34,610 We can do a Get‑AzVM, passing in the resource group name and the VM 8 00:00:34,610 --> 00:00:38,470 name, and then all of the magic happens with that ‑Status switch 9 00:00:38,470 --> 00:00:40,040 parameter. 10 00:00:40,040 --> 00:00:45,850 We can do the same thing with the Azure CLI by running az vm 11 00:00:45,850 --> 00:00:50,900 extension show. Again, resource group VM name, but it's a little 12 00:00:50,900 --> 00:00:54,300 bit different here in as much as you can, and should, 13 00:00:54,300 --> 00:00:57,640 specifically mention extension names. 14 00:00:57,640 --> 00:01:02,940 Now the questions that you might have as an AZ‑801 student are: am I really 15 00:01:02,940 --> 00:01:06,430 going to see PowerShell and CLI on my exam, and I can answer 16 00:01:06,430 --> 00:01:11,030 enthusiastically, yes. If I were studying for the exam today, 17 00:01:11,030 --> 00:01:14,190 I would probably put more of my effort on mastering 18 00:01:14,190 --> 00:01:17,240 the PowerShell than the Azure CLI, 19 00:01:17,240 --> 00:01:20,580 but you may very well see a little bit of CLI on your exam. I 20 00:01:20,580 --> 00:01:24,240 like to advise students, in general, that on the Microsoft 21 00:01:24,240 --> 00:01:26,890 Associate and Expert certification exams, 22 00:01:26,890 --> 00:01:31,340 Microsoft is assuming that you have intermediate‑level PowerShell skills 23 00:01:31,340 --> 00:01:36,500 and at least late‑beginner Azure CLI, all right? Lastly, you can, if you 24 00:01:36,500 --> 00:01:39,430 have access to the file system of your Azure VMs, 25 00:01:39,430 --> 00:01:43,030 you can take a look at local extension files and particularly look 26 00:01:43,030 --> 00:01:46,890 up log files. Those default extension log folders are 27 00:01:46,890 --> 00:01:52,250 C:\WindowsAzure\Logs\Plugins, and C:\Packages\Plugins. It's a good 28 00:01:52,250 --> 00:01:56,780 idea for you to know where those paths are so that if you're 29 00:01:56,780 --> 00:02:03,000 troubleshooting extension misbehavior, you can get as much log data out of the VM as possible.