Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Hands-On Linux Administration on Azure

You're reading from   Hands-On Linux Administration on Azure Develop, maintain, and automate applications on the Azure cloud platform

Arrow left icon
Product type Paperback
Published in Feb 2020
Publisher Packt
ISBN-13 9781839215520
Length 508 pages
Edition 2nd Edition
Languages
Tools
Arrow right icon
Authors (3):
Arrow left icon
Rithin Skaria Rithin Skaria
Author Profile Icon Rithin Skaria
Rithin Skaria
Frederik Vos Frederik Vos
Author Profile Icon Frederik Vos
Frederik Vos
Kamesh Ganesan Kamesh Ganesan
Author Profile Icon Kamesh Ganesan
Kamesh Ganesan
Arrow right icon
View More author details
Toc

Table of Contents (14) Chapters Close

Preface 1. Chapter 1: Exploring the Microsoft Azure Cloud 2. Chapter 2: Getting Started with the Azure Cloud FREE CHAPTER 3. Chapter 3: Basic Linux Administration 4. Chapter 4: Managing Azure 5. Chapter 5: Advanced Linux Administration 6. Chapter 6: Managing Linux Security and Identities 7. Chapter 7: Deploying Your Virtual Machines 8. Chapter 8: Exploring Continuous Configuration Automation 9. Chapter 9: Container Virtualization in Azure 10. Chapter 10: Working with Azure Kubernetes Service 11. Chapter 11: Troubleshooting and Monitoring Your Workloads 12. Chapter 12: Appendix 13. Index

Deploying a Linux Virtual Machine

We've covered the Linux distributions available in Azure and the level of support you can get. In the previous section, we set up the initial environment by creating the resource group and storage; now it's time to deploy our first virtual machine.

Your First Virtual Machine

The resource group has been created, a storage account has been created in this resource group, and now you are ready to create your first Linux virtual machine in Azure.

In PowerShell, use the following command:

 New-AzVM -Name "UbuntuVM" -Location westus2 '
  -ResourceGroupName MyResource1 '
  -ImageName UbuntuLTS -Size Standard_B1S

The cmdlet will prompt you to provide a username and password for your virtual machine:

To provide username and password in Powershell for your virtual machine
Figure 2.4: Providing user credentials for your virtual machine

In Bash, you can use the following command:

az vm create --name UbuntuVM --resource-group MyResource2...
You have been reading a chapter from
Hands-On Linux Administration on Azure - Second Edition
Published in: Feb 2020
Publisher: Packt
ISBN-13: 9781839215520
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime