Question

Difficulty: MediumAzure Portal, CLI, PowerShell, and Cloud Shell

An administrator wants to use Azure Cloud Shell to execute administrative scripts containing Azure PowerShell cmdlets. The administrator is working on a Chromebook that runs ChromeOS and does not support local software installations. Which of the following statements is true regarding this scenario?

  1. A
    The administrator cannot run Azure PowerShell cmdlets in Azure Cloud Shell because Azure PowerShell requires a client device running Windows.
  2. B
    The administrator must install the Azure PowerShell module locally on the Chromebook before Azure Cloud Shell can execute the scripts.
  3. The administrator can run Azure PowerShell cmdlets in Azure Cloud Shell because it runs in a web browser and is independent of the local operating system.Answer
  4. D
    The administrator can only use Azure CLI in Azure Cloud Shell because PowerShell cmdlets cannot run on non-Windows cloud environments.

Answer

The administrator can run Azure PowerShell cmdlets in Azure Cloud Shell because it runs in a web browser and is independent of the local operating system.
The correct option is correct because Azure Cloud Shell is a browser-accessible, cloud-hosted shell that does not rely on the local operating system or local software installations. It provides pre-installed tools for both Bash (Azure CLI) and PowerShell, allowing users to run Azure PowerShell cmdlets from any device with a modern web browser, including a Chromebook running ChromeOS.

Step-by-Step Solution

1
Identify the constraints of the client machine.
The administrator is using a Chromebook running ChromeOS, which does not support local installation of traditional Windows or Linux desktop applications.
To determine if local installation is possible or if a cloud-based solution is required.
2
Evaluate the requirements of Azure Cloud Shell.
Azure Cloud Shell is a browser-accessible shell hosted in the cloud, requiring only a modern web browser and an internet connection.
To confirm that the tool can run on a Chromebook.
3
Verify support for PowerShell cmdlets in Azure Cloud Shell.
Cloud Shell provides both Bash and PowerShell environments, using PowerShell Core on a Linux container to execute cmdlets.
To ensure that PowerShell cmdlets can be run without a Windows operating system.

Key Concept

Azure Cloud Shell accessibility and environment options
Rate this question