Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Hands-On Linux Administration on Azure

You're reading from   Hands-On Linux Administration on Azure Explore the essential Linux administration skills you need to deploy and manage Azure-based workloads

Arrow left icon
Product type Paperback
Published in Aug 2018
Publisher Packt
ISBN-13 9781789130966
Length 410 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Frederik Vos Frederik Vos
Author Profile Icon Frederik Vos
Frederik Vos
Arrow right icon
View More author details
Toc

Table of Contents (18) Chapters Close

Title Page
Packt Upsell
Contributors
Preface
1. Exploring the Azure Cloud 2. Getting Started with the Azure Cloud FREE CHAPTER 3. Basic Linux Administration 4. Managing Azure 5. Advanced Linux Administration 6. Managing Linux Security and Identities 7. Deploying Your Virtual Machines 8. Exploring Continuous Configuration Automation 9. Container Virtualization in Azure 10. Working with Azure Kubernetes Service 11. Troubleshooting and Monitoring Your Workloads 1. Assessments 2. Other Books You May Enjoy Index

Accessing your system


Troubleshooting workloads in Azure is not always that different from troubleshooting in other environments. In this section, there are some tips and tricks that hopefully will help you in your daily job.

No remote access

You played with firewall rules or access control lists and now you are not able to log in remotely.

The first thing you can try is to run a command in the virtual machine. Go in the Azure portal to your virtual machine and select Run command:

 Or use the command-line, for instance: 

az vm run-command invoke --name <vm name> \
  --command-id RunShellScript \
  --scripts hostnamectl \
  --resource-group <resource group>

As you can see, it's not necessary for a script; every Linux command will work. PowerShell is also an option, but instead of providing remote commands, you have to create a local script:

Invoke-AzureRmVMRunCommand `
  -VMName <vm name> -ResourceGroupName ResourceGroup `
  -CommandId RunShellScript `
  -ScriptPath '/<path...
lock icon The rest of the chapter is locked
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 $15.99/month. Cancel anytime
Visually different images