A Microsoft desktop and app virtualization service that runs on Azure. Previously known as Windows Virtual Desktop.
Azure PowerShell does not need to be installed in Azure Cloud Shell. The Az PowerShell module is already preinstalled there.
Use this approach:
- Open Azure Cloud Shell from the Azure portal or go to
https://shell.azure.com. - When prompted, select PowerShell.
- If this is the first launch, mount a storage account so files can persist between sessions.
- Upload template files by selecting Upload/Download files > Upload.
- Run PowerShell deployment commands from Cloud Shell.
Example flow for template deployment in Cloud Shell:
New-AzResourceGroup -Name ExampleGroup -Location "Central US"
New-AzResourceGroupDeployment `
-DeploymentName ExampleDeployment `
-ResourceGroupName ExampleGroup `
-TemplateFile azuredeploy.json `
-storageAccountType Standard_GRS
Important details:
- Cloud Shell supports both Bash and PowerShell.
- Azure PowerShell is preinstalled in Cloud Shell, so no local installation is required.
- Cloud Shell stores files in the
$HOMElocation by using a 5-GB file share when storage is configured. - Cloud Shell sessions time out after 20 minutes without interactive activity.
- Cloud Shell runs PowerShell on a Linux container, so Windows-specific PowerShell features are not available there.
If local installation is still needed instead of Cloud Shell, the Az PowerShell module can be installed on Windows, Linux, or macOS, and PowerShell 7 or higher is the recommended version.