Skip to content

TechDirectArchive

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

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

How to use the Azure Cloud Shell or Azure CLI and Azure PowerShell

Posted on 06/11/202123/11/2023 IT Expert By IT Expert No Comments on How to use the Azure Cloud Shell or Azure CLI and Azure PowerShell
  1. Home
  2. AWS/Azure/OpenShift
  3. How to use the Azure Cloud Shell or Azure CLI and Azure PowerShell
youtube-cover-blue

Azure Administrators use tools to interact with the cloud environment and complete such tasks as, deploying dozens or hundreds of resources at a time, configuring individual services using scripts, and viewing rich reports across usage, health, costs, and more. You must select and use a tooling option and your choices can include the Azure portal, Azure PowerShell, Azure CLI, or Azure Cloud Shell. Therefore, I will be showing you how to use the Azure Cloud Shell or Azure CLI and Azure PowerShell.

Also here are some of my related guides: How to install and configure Ansible on Ubuntu, how to install Ansible on Windows with Cygwin, how to automate infrastructure deployments in the cloud with ansible and azure pipelines, how to install Kerberos packages in Windows via Cygwin, how to configure a remote server (windows) to Support Ansible, and how to deploy azure vmware solution private cloud.

How to use the Azure portal

The Azure portal lets you build, manage, and monitor everything from simple web apps to complex cloud applications in a single, unified console You can access the portal at https://portal.azure.com

Capture

With the Azure portal, you can do the following below

  • Search resources, services, and docs.
  • Manage resources.
  • Create customized dashboards and favorites.
  • Access the Cloud Shell.
  • Receive notifications.
  • Links to the Azure documentation.

Use Azure Cloud Shell

Azure Cloud Shell is an interactive, browser-accessible shell for managing Azure resources.

It provides the flexibility of choosing the shell experience that best suits the way you work. Linux users can opt for a Bash experience, while Windows users can opt for PowerShell.

Cloud Shell, it self enables access to a browser-based command-line experience built with Azure management tasks in mind. You can use Cloud Shell to work untethered from a local machine in a way only the cloud can provide.

Capture-1

The Azure Cloud Shell features:

This steps include the following listed below;

  • Requires a resource group, storage account, and Azure File share.
  • Uses the same Azure file share for both Bash and PowerShell.
  • Is assigned to one machine per user account.
  • Persists $HOME using a 5-GB image held in your file share.
  • Permissions are set as a regular Linux user in Bash.
  • Is temporary and requires a new or existing Azure Files share to be mounted.
  • Offers an integrated graphical text editor based on the open-source Monaco Editor.
  • Authenticates automatically for instant access to your resources.
  • Runs on a temporary host provided on a per-session, per-user basis.
  • Times out after 20 minutes without interactive activity.

Use Azure PowerShell

Azure PowerShell serves as a module that you add to Windows PowerShell or PowerShell Core to enable you to connect to your Azure subscription and manage resources. Azure PowerShell requires PowerShell to function.

PowerShell provides services such as the shell window and command parsing. Azure PowerShell adds the Azure-specific commands.

For example, Azure PowerShell provides the New-AzVm command that creates a virtual machine inside your Azure subscription. To use it, you would launch the PowerShell application and then issue a command such as the following command:

Capture-2

Azure PowerShell is also available in two ways: inside a browser via the Azure Cloud Shell, or with a local installation on Linux, macOS, or the Windows operating system.

In both cases, you have two modes from which to choose: you can use it in the interactive mode in which you manually issue one command at a time, or in scripting mode where you execute a script that consists of multiple commands.

Capture-3

What is the Az module?

Az is the formal name for the Azure PowerShell module containing cmdlets to work with Azure features.

It contains hundreds of cmdlets that let you control nearly every aspect of every Azure resource. The following features below can use for the Az module, which are:

  • Resource groups
  • Storage
  • VMs
  • Azure AD
  • Containers
  • Machine learning

Please see Understanding The Overview Concept of Azure Cloud Shell, and how to fix AWS CLI Error: All commands return Unknown output type [None].

Use The Azure CLI

Azure CLI is a command-line program to connect to Azure and execute administrative commands on Azure resources.

It runs on Linux, macOS, and Windows, and allows administrators and developers to execute their commands through a terminal, command-line prompt, or script instead of a web browser.

For example, to check the version of the Az, you would use a command such as the following:

Capture-4
Capture 4
Capture-5
Capture 5

Azure CLI provides cross-platform command-line tools for managing Azure resources. You can install this locally on computers running the Linux, macOS, or Windows operating systems. You can also use Azure CLI from a browser through Azure Cloud Shell.

Azure CLI lets you control nearly every aspect of every Azure resource. You can work with resource groups, storage, VMs, Azure Active Directory (Azure AD), containers, machine learning, and so on.

Azure CLI can be used interactively or through scripts:

  • Interactive. First, for Windows operating systems, launch a shell such as cmd.exe, or for Linux or macOS, use Bash. Then issue the command at the shell prompt.
  • Scripted. Assemble the Azure CLI commands into a shell script using the script syntax of your chosen shell. Then execute the script.

Commands in the CLI are structured in groups and subgroups. Each group represents a service provided by Azure, and the subgroups divide commands for these services into logical groupings. For example, the storage group contains subgroups including account, blob, storage, and queue.

How to use the Az find command

Let say you wanted to find a particular command you need, the way to do that is to use az find. For example, if you want to find commands that might help you manage a storage blob, you can use the following find command:

Capture-6

Some of the Az commands that can be of help are:

COMMANDS
az help
To get more help
az account	
Manage Azure subscription information.
Capture-7

This article provided a step-by-step overview of Configuring Azure resources with different kinds of tools.

I hope you have found this article useful on how to use the Azure Cloud Shell or Azure CLI and Azure PowerShell.

Rate this post

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
  • Share on Threads (Opens in new window) Threads
  • Share on Nextdoor (Opens in new window) Nextdoor
AWS/Azure/OpenShift Tags:Azure, Azure CLI, PowerShell

Post navigation

Previous Post: How to end a program via the Task Manager in Windows 11
Next Post: Create, list, lock, deploy, and delete Azure Resource Group via Azure CLI

Related Posts

  • Deploy static website to azure blog storage
    Deploy a Static Website to Azure Storage from VSCode AWS/Azure/OpenShift
  • azure file share feature image
    Deploy Legacy App to Azure Fileshare AWS/Azure/OpenShift
  • Slide1 3
    Azure Virtual Networks: Preparing Azure and On-Premises Virtual Networks with Azure CLI Commands AWS/Azure/OpenShift
  • Create AWS RDS instance
    How to create an Amazon Relational Database Service Instance AWS/Azure/OpenShift
  • featuredimage
    Create App Service Resource with Azure CLI AWS/Azure/OpenShift
  • images 5 3
    How to uninstall AWS CLI in Windows AWS/Azure/OpenShift

More Related Articles

Deploy static website to azure blog storage Deploy a Static Website to Azure Storage from VSCode AWS/Azure/OpenShift
azure file share feature image Deploy Legacy App to Azure Fileshare AWS/Azure/OpenShift
Slide1 3 Azure Virtual Networks: Preparing Azure and On-Premises Virtual Networks with Azure CLI Commands AWS/Azure/OpenShift
Create AWS RDS instance How to create an Amazon Relational Database Service Instance AWS/Azure/OpenShift
featuredimage Create App Service Resource with Azure CLI AWS/Azure/OpenShift
images 5 3 How to uninstall AWS CLI in Windows AWS/Azure/OpenShift

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

VEEAMLEGEND

vexpert-badge-stars-5

Virtual Background

GoogleNews

Categories

veeaam100

Veeam Vanguard

  • Screenshot 2022 04 02 at 22.59.54
    How to fix importing the project failed: Project namespace path can contain only letters, digits, etc Version Control System
  • Screenshot
    Setup iSCSI Target and Storage LUN on Synology DS923+ for VBR Reviews
  • Featured image   The Local Device Name is Already in Use
    How to Fix The Local Device Name is Already in Use Windows
  • Deploy static website to azure blog storage
    Deploy a Static Website to Azure Storage from VSCode AWS/Azure/OpenShift
  • Specifiy the right credential for adding a domain
    Specify user account name when adding a DC to an existing Forest Windows Server
  • Add User to Slack
    How to add a user to the Slack workspace JIRA|Confluence|Apps
  • adm
    Create and access a hidden share folder on Windows Windows
  • How to Change the Default Web Browser on Windows 11 banner
    How to Change the Default Web Browser on Windows 11 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,791 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon

Tags

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

Copyright © 2025 TechDirectArchive

Loading Comments...

You must be logged in to post a comment.