Home > Blog > Microsoft Microsoft Azure Fundamentals > Azure Cloud Shell: Master CLI and PowerShell for AZ-900

Azure Cloud Shell: Master CLI and PowerShell for AZ-900

Deep Dive Cert Sensei Team 2037-07-25 7 min read

Azure Cloud Shell is a browser-based terminal providing authenticated access to Azure resources. It allows users to choose between Bash and PowerShell environments, requiring an Azure File share for persistent storage. It simplifies management by eliminating local tool installation, enabling rapid deployment via the Azure CLI and Azure PowerShell modules.

#Azure Cloud Shell #AZ-900 #Azure CLI #Azure PowerShell #Cloud Management

What exactly is Azure Cloud Shell?

Think of Azure Cloud Shell as your portable command center. Instead of spending an hour configuring your local machine with the latest SDKs and environment variables, you get a pre-authenticated, browser-based terminal that is ready to go the second you log in. For those of you tackling the AZ-900, this falls under the 'Azure Management Tools' objective, and it's a critical concept to grasp.

Because it's containerized, you don't have to worry about version mismatches between your local CLI and the Azure API. Whether you are on a Mac, Windows, or even a tablet, you have the exact same toolset. We always tell our students that mastering the shell is the first step toward moving from a 'click-ops' mentality in the Portal to a professional automation mindset.

Should you choose Bash or PowerShell?

When you first launch Cloud Shell, Azure will ask you to pick your environment: Bash or PowerShell. The choice depends entirely on your background and your goals. Bash is the gold standard for Linux users and those who prefer the Azure CLI (Command Line Interface). It's lightweight, fast, and uses a syntax that is ubiquitous in the DevOps world.

PowerShell, on the other hand, is an object-oriented shell. If you're coming from a Windows Administration background, you'll feel right at home here. While the Azure CLI is great for quick tasks, Azure PowerShell is often more powerful for complex scripting and deep integration with Windows environments. For the AZ-900 exam, you don't need to be a coding expert, but you must understand that both are available and serve different operational preferences.

Why do you need a storage account for Cloud Shell?

This is a common stumbling block for new students and a frequent exam topic. Because Cloud Shell runs in a temporary container, any files you create or scripts you write would vanish the moment your session ends. To solve this, Azure requires you to associate a storage account and a file share with your Cloud Shell profile.

This storage account acts as your 'home' directory. When you mount the file share, your files persist across sessions, allowing you to save your .sh or .ps1 scripts for later use. If you're practicing for the exam, remember that while the Cloud Shell interface itself is free, you are responsible for the minimal cost of the storage account used to keep your data alive.

How do you execute Azure CLI commands effectively?

The beauty of Cloud Shell is that you are already authenticated. You don't need to run 'az login' every time you open the window. You can jump straight into resource management. For example, creating a resource group is as simple as typing 'az group create --name MyResourceGroup --location eastus'. It's significantly faster than clicking through five different screens in the Azure Portal.

To truly master these commands, you need repetitive exposure. This is where we come in—Cert Sensei offers 1,000 expert-curated Microsoft Azure Fundamentals (AZ-900) practice questions. Our detailed expert reasoning helps you understand not just which command is correct, but why it's the right choice for a specific architectural scenario, ensuring you aren't just memorizing strings of text.

How does Cloud Shell speed up resource deployment?

In a real-world production environment, deploying ten virtual machines via the Portal is a recipe for human error. Cloud Shell allows you to use rapid deployment techniques. By combining the CLI with simple loops or by deploying Azure Resource Manager (ARM) templates directly from the shell, you can spin up entire environments in seconds.

For an AZ-900 candidate, understand that Cloud Shell is the bridge to Infrastructure as Code (IaC). By using the shell, you can execute complex deployments that are repeatable and scalable. We recommend practicing a few basic 'az' commands to get a feel for the speed difference; once you experience the efficiency of the command line, you'll never want to go back to purely manual configuration.

How do you prepare for Cloud Shell questions on the AZ-900?

The exam won't ask you to write a complex script, but it will test your ability to choose the right tool for the job. You need to distinguish between the Azure Portal (GUI), Azure Cloud Shell (Browser-based CLI/PowerShell), Azure PowerShell (Local/Remote), and the Azure CLI (Cross-platform).

To ensure you're ready, use Cert Sensei's domain-level analytics. Our platform tracks your performance across specific exam objectives, so you can see if you're consistently missing questions related to management tools. Instead of guessing, you can target your study hours toward the areas where your score is lowest, ensuring that when exam day hits, the Cloud Shell questions are the easiest part of your test.

❓ Frequently Asked Questions

Does using Azure Cloud Shell cost extra money?

The Cloud Shell environment itself is free to use. However, because it requires an Azure File share for persistent storage, you will incur a small cost for the storage account and the data stored within it.


Can I use Cloud Shell if I don't have a local installation of Azure CLI?

Yes, that is the primary benefit. Cloud Shell comes with the Azure CLI, Azure PowerShell, and many other tools (like git and kubectl) pre-installed and pre-configured in the browser.


What happens if I choose Bash but later decide I want PowerShell?

You can easily switch between the two environments using the dropdown menu at the top of the Cloud Shell window. Your persistent storage remains accessible regardless of which shell you are currently using.

More from Microsoft Microsoft Azure Fundamentals

🧠

Test Your Knowledge

Ready to practice Microsoft Azure Fundamentals? Put what you've learned to the test.

Try 10 Free Questions

⭐ 1,000 expert-curated questions available with Premium

Upgrade Premium
📖 Browse the Glossary

Join thousands of certification students

Sign Up Free