Azure CLI: Getting Started

This course is packed full of practical examples that show how the Azure CLI, a cross-platform, open source command line tool, can be used to manage Virtual Machines, storage accounts, web apps, databases, ARM deployments, and more.
Course info
Rating
(16)
Level
Beginner
Updated
Nov 6, 2017
Duration
2h 32m
Table of contents
Description
Course info
Rating
(16)
Level
Beginner
Updated
Nov 6, 2017
Duration
2h 32m
Description

The Azure CLI is a cross-platform, open source command line tool that makes it really easy to create and manage your Azure resources right from the command prompt. In this course, Azure CLI: Getting Started, you'll learn everything you need to become an effective user of this powerful tool. First, you'll discover how easy it is to create, manage, and delete all kinds of Azure resources both from the command prompt and even from the browser with the cloud shell. Then, you'll delve into practical examples of how you can use the Azure CLI for all kinds of common real-world resource management scenarios, such as creating Virtual Machines, backing up databases, and initiating deployments with ARM templates. Finally, you'll explore how to securely automate the Azure API by creating service principals with access only to specific resources. When you're finished with this course, you'll be able to quickly and easily write automated scripts to manage and maintain your own Azure infrastructure.

About the author
About the author

Mark Heath is a software developer based in Southampton, England, working for NICE Systems as a software architect creating cloud based digital evidence management systems for the police. He is the creator of NAudio, an open source audio framework for .NET.

More from the author
More courses by Mark Heath
Section Introduction Transcripts
Section Introduction Transcripts

Course Overview
Hi, my name's Mark Heath, and welcome to my course, Azure CLI: Getting Started. I'm a Microsoft MVP and I work as a cloud architect. The Azure CLI is a powerful cross-platform, open-source utility that makes it really easy to manage your Azure resources directly from the command line. In this course I will show you everything you need to know to get started using the Azure CLI and introduce you to some of its powerful features like query filters. And this course is packed full of practical examples of how you can use the Azure CLI for all kinds of common, real-world resource management scenarios, such as creating virtual machines, backing up databases, initiating deployment with ARM templates, and setting you web apps up to sync their code from GitHub. By the end of this course you'll be able to quickly and easily create automated scripts to manage and maintain your own Azure infrastructure. Azure CLIs cross platform, so you'll be able to follow along and try out the demos for yourself, whether you're a Windows, Linux, or Mac OS user. So, I hope you'll join me on this journey to learn about the Azure CLI, with the Azure CLI: Getting Started course, at Pluralsight.

Introducing the Azure CLI
Hi, my name's Mark Heath, and welcome to this course on getting started with the Azure CLI. So, what is the Azure CLI? Well, the Azure CLI is a cross-platform, command-line interface for managing Azure resources. And by cross-platform we mean you can use it on Linux, Mac OS, and of course Windows. And you can also use it in a web browser, thanks to the Cloud Shell. So, what can you use it for? Well, you can use it for all your Azure resource management needs, whether that's creating new resources, so, for example, if I wanted to create a new SQL database, or for querying things about existing resources, like what's the value of this secret in my key vault. I can use it for updating existing resources. Maybe I've got a web app and I want to change the value of one of its app settings. And of course you can use it to delete resources that you no longer need. So, for example, getting rid of a virtual machine that you're no longer using in order to save money. So in this course I want to introduce you to the power and capabilities of the Azure CLI. And we'll do that by actually seeing it in action, putting it to use to create, query, update and delete all kinds of Azure resources. And so in this course you're going to see lots of practical examples of commands that you can use in your own day-to-day management of Azure resources. And so what we're going to next in this module is we're going to see how we can get it installed and get started with it, but I also want to explain a bit more about why you might to use it. So let's start off by considering the various ways Azure offers to manage our resources, and then we'll see why the Azure CLI is such a great tool to have at your disposal.

Managing Virtual Machines
Hi, Mark Heath here, and in this module we'll see how we can use the Azure CLI to manage virtual machines. Now, although I'm a big fan of what's known as serverless architectures, there's no denying that virtual machines still play an extremely important part in the cloud infrastructure for many companies. And deploying and managing virtual machines is often a nontrivial task. When you create a virtual machine you'll need to decide which image you're going to start from, will it be Linux or Windows? Or maybe you want an image with some preinstalled software, like SQL Server, WordPress, or Elasticsearch. You'll need to decide what sort of disk and how many disks you want. You'll also need to decide how much CPU and RAM you need. You've also got to think about networking. Does your VM need a public IP address? What ports are you going to open? And what network security group roles should it have? And what virtual network are you going to put it on? And once it's up and running you'll likely want to configure it by automating the deployment of additional software on the virtual machine, or to stop it overnight to save some money. Or to get a hold of the credentials you need to remote desktop or SSH into it. And the good news is, is that the Azure CLI has got the capability to manage all of these tasks and more. And so in this module we're going to explore some of the capabilities that the Azure CLI has to offer for creating and managing VMs.