Questions tagged [azure-cloud-shell]

Azure Cloud Shell is a browser-based shell experience running in the cloud to help manage your Azure resources, which is available in the Azure portal, the Azure mobile app, and in some Azure documentation topics. Use this tag when your question is specific to Cloud Shell use.

Azure Cloud Shell is a browser-based shell experience running in the cloud to help manage your Azure resources. Cloud Shell includes support for popular command-line tools and programming languages in a shell that Microsoft maintains and updates, and you can persist files with attached Azure File storage. Cloud Shell saves you the trouble of configuring and maintaining an admin machine of your own by providing a clean, ready-to-use shell experience every time from virtually anywhere. Cloud Shell is accessible from a variety of locations, including shell.azure.com.

For more information, see Azure Cloud Shell documentation.

Persisted Storage (clouddrive)

On the first launch, Cloud Shell prompts to create a clouddrive to persist files on your behalf. This is a one-time step and will be automatically attached for all sessions.

Cloud Shell creates three resources on your behalf for the clouddrive:

  • Resource Group named: cloud-shell-storage-<region>
  • Storage Account named: cs-uniqueGuid
  • File Share named: cs-<user>-<domain>-com-uniqueGuid

You can also attach your own file share as a clouddrive' using themountcommand. Use theunmount` command to detach a file share.

Mount:

clouddrive mount -s mySubscription -g myResourceGroup -n storageAccountName -f fileShareName [--disk-size n]

Disk size (optional) is in GB (default is 5).

Unmount:

clouddrive unmount

The file share for your unmounted clouddrive will continue to exist unless manually deleted. Cloud Shell will no longer search for this file share on subsequent sessions.

Discover File Share

The df command will list the file share used for your current clouddrive.

Status

Bash in Cloud Shell generally available as of 20.11.2017. PowerShell in Cloud Shell in public preview.

167 questions
37
votes
11 answers

The subscription of xxx' doesn't exist in cloud 'AzureCloud'

I'm trying to follow the example of how to Install and configure Terraform to provision VMs and other infrastructure into Azure using Azure Cloud shell as described here: The following command provided the subscription id and tenant id: az account…
barlow1
  • 631
  • 2
  • 8
  • 12
15
votes
3 answers

Is there a way to download files from Azure Cloud Shell?

I am trying to get credentials for my Azure Kubernetes Cluster. Ran the script to fetch details on Azure cloud shell and got a .config file. I wonder if there is a way to download the file from my Azure Cloud Shell session?
Hamid Shahid
  • 4,486
  • 3
  • 32
  • 41
14
votes
2 answers

Azure Kudu Access denied with curl

Trying to access Azure App log stream from curl, as suggested by Azure Kudu web page. I'm on Windows 10 command prompt. This is a sample command line I'm trying: curl -u myUserName https://myApp.scm.azurewebsites.net/api/logstream Enter host…
superjos
  • 12,189
  • 6
  • 89
  • 134
11
votes
4 answers

Set-AzContext works in Azure Cloud Shell but doesn't in Azure PowerShell

When i execute following command Clear-AzureProfile Connect-AzAccount -TenantID xxxxxxxxxxxxxxxxxxx Set-AzContext -SubscriptionId xxxxxxxxxxxxxxxxxxx in Azure PowerShell i get this error. Set-AzContext : Please provide a valid tenant or a valid…
3355307
  • 1,508
  • 4
  • 17
  • 42
10
votes
2 answers

Azure WebApp container restart issue

I've created an web app running the grafana docker image as this az group create --name grp-test-container-1 --location "West Europe" az appservice plan create --name asp-test-container-1 --resource-group…
Marcus Höglund
  • 16,172
  • 11
  • 47
  • 69
9
votes
2 answers

Azure Cloud Shell File Share Contains 5GB IMG File

I created a PowerShell cloud shell in Azure portal, configured to use an existing general purpose v2 storage account. Created a new file share and gave it a name. When I look inside the file share, I can see a folder ".cloudconsole" with one file…
Raju Joseph
  • 493
  • 1
  • 6
  • 13
7
votes
1 answer

Add-AzTableRow command is not available in Azure Cloud Shell

I'm trying to insert new row in my table storage by using Azure Cloud Shell but I'm facing below exception. So let me know any other command that we need to use to insert. Blockquote Add-AzTableRow: The term 'Add-AzTableRow' is not recognized as…
7
votes
1 answer

New-AzureADPolicy missed in the Azure cloud shell

New-AzureADPolicy missed in the Azure cloud shell New-AzureADPolicy : The term 'New-AzureADPolicy' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included,…
6
votes
2 answers

Azure Cloud Shell Trouble running ps1 Scripts

In our Azure Cloud Shell, Powershell mode we can't run ps1 files. Although we are doing the same asin the MS Doc. Any Suggestions, what am I doing wrong. PS Azure:\> dir Directory: Azure:/Shared PAAS –…
Harry Leboeuf
  • 723
  • 12
  • 30
5
votes
1 answer

ansible - ERROR! We were unable to read either as JSON nor YAML

In Step 3 - Create a Public IP of this tutorial Deploy a Windows VM to Azure with Ansible, I am getting the error shown below when I run the following YAML playbook in Azure Cloud Shell. Question: What I may be missing here that's causing this…
nam
  • 21,967
  • 37
  • 158
  • 332
5
votes
2 answers

How do I get a list containing only Azure region names?

In the Azure Cloud Shell, I can use az account list-locations to get a list of all the locations supported in my subscription. How can I filter the response to only include the name property of the location and exclude all other properties? Instead…
DenaliHardtail
  • 27,362
  • 56
  • 154
  • 233
5
votes
3 answers

How to fix Azure Cloud Shell error "MissingSubscriptionRegistration - The subscription is not registered to use namespace 'Microsoft.Storage'"

I've just tried to use the fancy new Azure Cloud Shell announced at Build 2017 but I'm getting the following error (as a json message): { "error": { "code": "MissingSubscriptionRegistration", "message": "The subscription is…
Jack Ukleja
  • 13,061
  • 11
  • 72
  • 113
4
votes
2 answers

Azure Cloud Shell Failed to request a terminal

Through the web portal I can request a Cloud Shell, but it fails to request a terminal. Does anyone know how to trouble shoot this? I've deleted my Storage Account. This prompts me to create a new Storage Account when I reopen Cloud Shell from the…
chee xiong
  • 41
  • 1
  • 3
4
votes
1 answer

CD in Azure PowerShell Failure

In powershell cd works, but not in my Azure Cloud Shell. What am I missing? Copied session shows me trying to get into quickstart directory (which was created in the powershell shell) Welcome to Azure Cloud Shell Type "az" to use Azure CLI 2.0 Type…
ΩmegaMan
  • 29,542
  • 12
  • 100
  • 122
4
votes
1 answer

Cloud Shell docker support

Will docker be supported in the Cloud Shell? Today, if you attempt to use docker, such as "docker login " or even "az acr login -n MyRegistry", you get an error saying that the docker service isn't running: Warning: failed to get default registry…
1
2 3
11 12