Skip to main content
This article offers a detailed comparison of the various administrator tools available in Azure, including Azure Portal, Azure Cloud Shell, Azure PowerShell, and Azure CLI. Each tool provides unique features that can enhance your daily workflow and help you manage Azure resources more efficiently.

Azure Portal

Azure Portal is a user-friendly, graphical interface designed for managing and organizing your Azure resources. With its intuitive design, you can perform tasks quickly, such as restarting a virtual machine. For example, you can execute the following command to restart a VM:
Azure Portal is not only a gateway to your services but also a comprehensive hub filled with learning resources and detailed documentation. The built-in “learn more” hyperlinks and the availability of a mobile application make it perfect for managing operations such as scaling databases or creating virtual machines on the go.

Azure Cloud Shell

For those who prefer working in a command-line interface via a web browser, Azure Cloud Shell is an excellent choice. This tool offers both Bash and PowerShell environments, allowing you to choose the interface that best aligns with your experience. Restarting a virtual machine using Cloud Shell is as simple as running:
With an automatic sign-in using your Azure credentials, Cloud Shell maintains your session for 20 minutes of inactivity. This feature is ideal for short-lived tasks. However, be aware that long-running operations might be interrupted by session timeouts. When you access Cloud Shell through the Azure Portal by clicking the terminal icon, you will be prompted to create a Storage Account if one does not already exist. For instance, if there is no existing storage account, you might see a pop-up like the following:
The image shows the Microsoft Azure portal with a list of resources and a pop-up window for creating storage, including options for subscription, resource group, and storage account settings.
Once you create the storage account (e.g., in East US with a unique name and an associated file share), Cloud Shell launches and displays your cloud drive. An example session may resemble:
Azure Cloud Shell allows you to easily switch between Bash and PowerShell, create files, and clear the screen, providing a flexible environment for your command-line activities.

Azure PowerShell and Azure CLI

Azure PowerShell and Azure CLI are robust, terminal-based utilities that facilitate command-line operations and script automation. These tools are platform-independent, running seamlessly on Windows, Linux, and macOS, making them ideal for automated deployments. For example, to restart a virtual machine, you can use the same command previously demonstrated:

Azure PowerShell

You can install Azure PowerShell on your computer, and the process is straightforward regardless of your operating system. After installation, verify your environment with the following commands:
To sign in, use a browser-based login:
If you prefer device authentication without launching a browser automatically, run:
This command displays a code (e.g., DJ9CKZBF2) along with instructions to navigate to https://aka.ms/devicelogin. After entering the code in your browser and completing the login process, your terminal will update with your subscription details. An example output is shown below:
The image shows a Microsoft Azure login prompt asking if the user is trying to sign in to Microsoft Azure PowerShell, with options to cancel or continue.
Once authenticated, list your subscriptions with:
To view your storage accounts, run:

Azure CLI

Azure CLI is another popular tool, which after installation allows you to log in using:
After logging in, simply running the command “az” will display a list of base commands available, such as account management, container registries (acr), Active Directory management (ad), and Advisor. Here’s an introductory message from Azure CLI:
Both Azure PowerShell and Azure CLI offer similar functionalities, allowing you to list subscriptions, execute automation scripts, and integrate with other services. Their robust command-line interfaces provide a powerful way to manage your Azure resources programmatically.
For users with a .NET background, Azure PowerShell provides rich object-oriented outputs, while Azure CLI may be preferable for those looking for simplicity and quick command responses, such as for container image deployment and management.

Conclusion

In summary, selecting the right administration tool in Azure depends on your specific needs:
  • Azure Portal: Best for quick, ad hoc tasks with its intuitive and interactive graphical interface.
  • Azure Cloud Shell: Ideal for administrators who prefer a cloud-based command-line experience without local setup.
  • Azure PowerShell and Azure CLI: Perfect for automation and scripting, enabling cross-platform command-line management.
By understanding the features and capabilities of each tool, you can choose the solution—or combination of solutions—that best supports your workflow and helps manage your Azure environment efficiently. Up next, we will explore Azure Resource Manager and uncover its powerful capabilities for resource deployment and management. For additional information on managing Azure resources, check out the following resources:

Watch Video