Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security & DevOps Insights

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form
Home » AWS/Azure/OpenShift » How to use the Azure Cloud Shell or Azure CLI and Azure PowerShell
  • How to manage user permission in AD and Synology
    Manage User Permission on Synology with Active Directory [Part 1] Reviews
  • screenshot 2020 03 13 at 20.24.17
    How to install additional packages via Cygwin Windows Server
  • uninstalloffice
    Remove All Microsoft Office Apps from Mac Network | Monitoring
  • Featured image MSDT.
    How to restrict additional Microsoft Support Diagnostic Tool Downloads on Windows Windows
  • WonderFox HD Video Converter Factory Pro
    Video Conversion Desktop Software for Windows Windows
  • microsoft confirms some pcs freeze after windows 10 2
    DHCP specific reference console icons Windows Server
  • Webp.net resizeimage 4
    Create a Service Fabric Cluster using the Azure Stack Hub portal and the CLI AWS/Azure/OpenShift
  • windows1019h2
    Synchronize your Domain Controller with an external time source Windows Server

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

Posted on 06/11/202123/11/2023 Christian By Christian No Comments on 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.

  • Click to share on X (Opens in new window) X
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on Pinterest (Opens in new window) Pinterest
  • Click to share on Tumblr (Opens in new window) Tumblr
  • Click to share on Telegram (Opens in new window) Telegram
  • Click to share on WhatsApp (Opens in new window) WhatsApp
  • Click to share on Pocket (Opens in new window) Pocket
  • Click to share on Mastodon (Opens in new window) Mastodon
  • Click to share on Bluesky (Opens in new window) Bluesky
  • Click to share on Threads (Opens in new window) Threads
  • Click to 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

  • add subheading 5 4
    Access EC2 Linux Instance via the Password AWS/Azure/OpenShift
  • azure 1
    Fix SSO sign-in and non-routable domain issues AWS/Azure/OpenShift
  • defdfd
    The password has expired, update your password and try again AWS/Azure/OpenShift
  • MSSQL Always On Cluster on Azure
    [AZURE] Procedure for creating an MSSQL Always On Cluster on Azure AWS/Azure/OpenShift
  • Azure AD Logo
    Integrating on-premise AD with Azure Active Directory and MFA AWS/Azure/OpenShift
  • Webp.net resizeimage 7
    Create a new Azure Disk: How to create and attach an extra Disk to Azure Virtual Machine AWS/Azure/OpenShift

More Related Articles

add subheading 5 4 Access EC2 Linux Instance via the Password AWS/Azure/OpenShift
azure 1 Fix SSO sign-in and non-routable domain issues AWS/Azure/OpenShift
defdfd The password has expired, update your password and try again AWS/Azure/OpenShift
MSSQL Always On Cluster on Azure [AZURE] Procedure for creating an MSSQL Always On Cluster on Azure AWS/Azure/OpenShift
Azure AD Logo Integrating on-premise AD with Azure Active Directory and MFA AWS/Azure/OpenShift
Webp.net resizeimage 7 Create a new Azure Disk: How to create and attach an extra Disk to Azure Virtual Machine 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

sysadmin top30a

  • How to manage user permission in AD and Synology
    Manage User Permission on Synology with Active Directory [Part 1] Reviews
  • screenshot 2020 03 13 at 20.24.17
    How to install additional packages via Cygwin Windows Server
  • uninstalloffice
    Remove All Microsoft Office Apps from Mac Network | Monitoring
  • Featured image MSDT.
    How to restrict additional Microsoft Support Diagnostic Tool Downloads on Windows Windows
  • WonderFox HD Video Converter Factory Pro
    Video Conversion Desktop Software for Windows Windows
  • microsoft confirms some pcs freeze after windows 10 2
    DHCP specific reference console icons Windows Server
  • Webp.net resizeimage 4
    Create a Service Fabric Cluster using the Azure Stack Hub portal and the CLI AWS/Azure/OpenShift
  • windows1019h2
    Synchronize your Domain Controller with an external time source Windows Server

Subscribe to Blog via Email

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

Join 1,836 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 AWS Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Server 2016

Copyright © 2025 TechDirectArchive

 

Loading Comments...
 

You must be logged in to post a comment.