Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security, Veeam & DevOps

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form

Azure CLI commands: How to use Azure Command-line Interface

Posted on 12/01/202017/08/2026 Christian By Christian No Comments on Azure CLI commands: How to use Azure Command-line Interface
  1. Home
  2. AWS/Azure/OpenShift
  3. Azure CLI commands: How to use Azure Command-line Interface
Azure CLI

Azure AD is a service that provides identity and access management capabilities in the cloud. With Pass-through Authentication, users are able to sign in to both on-premises and cloud-based applications using the same credentials. Below are some important Commands to manage Azure resources. Mastering these commands will make administering your tasks on Azure flawless. Please see the following guide Azure Active Directory integration with on-Premise AD using PTA for more information and also this guide for reasons to deploy AAD, how to set up Azure AD Tenant, how to add or delete users, and set permissions in Azure Active Directory, why do I need to deploy Azure Active Directory and how to use the built-in AAD Connect troubleshooting tool.

How to use Azure Command-line Interface

az account listGet a list of subscriptions for the logged-in account.
az account list –output tableThe table format prints output as an ASCII table, making it easy to read and scan.
az group list List resource groups.
az group list –output tableThe table format prints output as an ASCII table, making it easy to read and scan.
az resource list
List resources.
az resource list –output tableThe table format prints output as an ASCII table, making it easy to read and scan.

These commands can be run with optional parameters to list the output formats for Azure CLI commands as we have seen above. Here are the various output format available at the time of this writing. See the link below for more information

– TSV output format
– YAML output format
– Table output format and
– JSON output format

Filtering only resources related to an application

az resource list
--resource-group learn-1c01caa9-34c5-4e85-bd3e-e27861f2910b
--resource-type Microsoft.Web/sites

How to Stop an application in a resource group

az webapp stop
--resource-group learn-1c01caa9-34c5-4e85-bd3e-e27861f2910b
--name <web app name>
@Azure:~$ az webapp stop --resource-group learn-1c01caa9-34c5-4e85-bd3e-e27861f2910b     --name firsttestazur
Azure app service dashboard showing the app 'firsttestazur' with a status of 'Stopped'.

Accessing the URL of the stopped app will display the following errors.

Command-line Interface

How to Start a WebApp in an Azure Resource Group via Azure CLI

le@Azure:~$ az webapp stop     --resource-group learn-1c01caa9-34c5-4e85-bd3e-e27861f2910b     --name firsttestazur
Screenshot of Microsoft Azure interface showing the overview of an App Service named 'firsttestazur'. The status indicates 'Running' and includes options for browsing, stopping, restarting, and deleting the service.

Now the website will be reachable again. I hope you found this blog post helpful. If you have any questions, please let me know in the comment session.

Thank you for reading this post. Kindly share it with others.

  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Facebook (Opens in new window) Facebook
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Telegram (Opens in new window) Telegram
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on Bluesky (Opens in new window) Bluesky
AWS/Azure/OpenShift Tags:Azure, Azure AD, Azure AD Tenant, Azure CLI, Azure Domain Services, Microsoft Azure, Microsoft Azure Active Directory

Post navigation

Previous Post: Install RSAT on Windows via Windows features
Next Post: Enable God Mode via PowerShell or the CLI and GUI

Related Posts

  • chamedk8s featured
    Install CNF Certified Kubernetes in AWS AWS/Azure/OpenShift
  • maxresdefault 2 6
    How to create an AMI from the Command line AWS/Azure/OpenShift
  • Screenshot 2022 03 20 at 21.08.50
    How to integrate AWS CodeBuild and AWS CodeCommit to SonarCloud AWS/Azure/OpenShift
  • create a new Azure SQL Database
    How to create a new Azure SQL Database [PaaS] AWS/Azure/OpenShift
  • EC2
    How to Add and Format a New Virtual Disk to an EC2 Instance AWS/Azure/OpenShift
  • Create AWS RDS instance
    How to create an Amazon Relational Database Service Instance AWS/Azure/OpenShift

More Related Articles

chamedk8s featured Install CNF Certified Kubernetes in AWS AWS/Azure/OpenShift
maxresdefault 2 6 How to create an AMI from the Command line AWS/Azure/OpenShift
Screenshot 2022 03 20 at 21.08.50 How to integrate AWS CodeBuild and AWS CodeCommit to SonarCloud AWS/Azure/OpenShift
create a new Azure SQL Database How to create a new Azure SQL Database [PaaS] AWS/Azure/OpenShift
EC2 How to Add and Format a New Virtual Disk to an EC2 Instance AWS/Azure/OpenShift
Create AWS RDS instance How to create an Amazon Relational Database Service Instance AWS/Azure/OpenShift

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

vexpert-badge-stars-5

Virtual Background

VEEAMLEGEND

Categories

veeaam100

Veeam Vanguard

  • banner 1
    How to Hide or Block Wi-Fi Networks on Windows Network | Monitoring
  • 1 WeXxkEX0JG3oB781HD8Hrg 1
    How to convert a GPT disk into an MBR disk error: Windows cannot be installed on drive 0 Partition 1 Windows
  • WonderFox HD Video Converter Factory Pro
    Video Conversion Desktop Software for Windows Windows
  • Turn On Or Off Auto Unlock For BitLocker Drive
    How To Turn On Or Off Auto-Unlock For BitLocker Drive In Windows 10/11 Security | Vulnerability Scans and Assessment
  • hero windowsadmincenter
    Failed to create a scheduled task: Cannot perform the operation because the runspace pool is not in the open state Windows Server
  • images 4
    How to set up WatchGuard Log Server Network | Monitoring
  • Change BitLocker Password in Windows
    How to Change BitLocker Password in Windows Security | Vulnerability Scans and Assessment
  • featured image
    How to Add or Remove Sites from Favorites list in Microsoft Edge Windows

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,752 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Contact
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon
  • Bsky

Tags

Active Directory Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Deployment Services Windows Server 2016

Copyright © 2026 TechDirectArchive

Loading Comments...

You must be logged in to post a comment.