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
1
vote
1 answer

Azure cloud shell not switching subscription

When I run this command on azure cloudshell, it shows the subscription is switched but it actually is not. Because the next command I execute is done in another subscription(initial one). Select-AzSubscription -SubscriptionId -verbose
Blue Clouds
  • 7,295
  • 4
  • 71
  • 112
1
vote
1 answer

How to create a Cosmos DB Sql Container with analytical storage enabled using PowerShell?

I am writing a PowerShell script where I need to create multiple Cosmos DB Containers using the SQL api. I already enable analytical storage when creating the Cosmos DB Account : New-AzCosmosDBAccount -ResourceGroupName $resourceGroupName ` …
1
vote
1 answer

Moving the location of the cloud console in Azure

I have the .cloudconsole file in a file share I no longer want it. I can't seem to find a way to change where the cloud console launches from. I want the cloud shell and "img" files in another file share.
1
vote
1 answer

Failed to provision a cloud shell, Azure error

I just subscribed to Azure with my Github student, then I start to learn its feature with no error in cloud shell, then I try in the other day my cloud shell pop up this error message: Requesting a Cloud Shell.Failed to provision a Cloud Shell: { …
mikail
  • 11
  • 3
1
vote
2 answers

Trouble Creating Azure Cloud Shell Storage

When trying to create Azure Cloud Shell storage, it seems to fail, and I cannot upload any files to the shell. Here is the output from the Cloud Shell window: Requesting a Cloud Shell.Succeeded. Connecting terminal... Import-Module:…
BigDevJames
  • 2,650
  • 5
  • 21
  • 36
1
vote
1 answer

Why Azure Cloud Shell is creating resource group in default subscription?

I changed the subscription of the current session in Azure Cloud Shell to a different subscription using Set-AzContext as follows. But when I create a Resource Group using Ansible playbook in the same session of Azure Cloud Shell, the resource group…
nam
  • 21,967
  • 37
  • 158
  • 332
1
vote
1 answer

Where are files created in Azure Shell text editor located in Azure Portal?

I wonder where are the files saved in Azure Shell text editor located in Azure Portal? In my understanding, when I lunched Azure Shell the very 1st time, a Storage Account and cloud-shell-storage-(region) Resource Group were automatically created…
MBK
  • 525
  • 1
  • 8
  • 23
1
vote
1 answer

Azure Cloud shell to publish Web App using publish profile

The Azure Cloud Shell can not import the publish profile (i.e. "MyWebApp.PublishSettings") that can be exported from the overview of the web app in Azure, which can be used in Visual Studio to publish the web app. I am trying to find the commands to…
1
vote
1 answer

create new file in azure cloud shell editor

When we open cloudshell editor, a file is already created for us and we can save it. Once we save it , how can we create a new file? If we close the editor and open it again, then the same saved file is visible. Restarting cloud shell or opening a…
Blue Clouds
  • 7,295
  • 4
  • 71
  • 112
1
vote
1 answer

Unable to access Kubernetes Dashboard from Azure Cloud Shell

I am using Azure DevOps Pipelines to deploy microservices in AKS. Once deployed in a Kubernetes cluster, I used to browse the Kubernetes dashboard using below commands in Azure Cloud Shell. az aks get-credentials --resource-group ResourceGroupName…
Sreelal T
  • 21
  • 2
1
vote
1 answer

My Create storage is disabled when I am trying persisting files in Azure Cloud Shell

I need to create storage in order to persist files in Azure Cloud Shell. I was told only North Europe is available for my azure resource group. However, "Create storage" is disabled as shown below even when there is an available storage…
gugu
  • 13
  • 5
1
vote
1 answer

Connect to Azure File Share from Azure Cloud Shell

I don't know how to connect to an existing Azure File Share from Azure Cloud Shell. The command clouddrive seems to move my default cloud shell storage account. But I don't want to do that. I just want to access my existing Azure File Share storage.…
Rohit Mistry
  • 113
  • 3
  • 11
1
vote
1 answer

How can I use the az --query command to list all of the json fields but not their values? eg. az account list --query

I'm looking for an 'az' --query syntax that just lists the json fields and not their values. this will print a table: az account list --query [*] -o --table Name State IsDefault TenantId CloudName ---- ----- --------- -------- …
dbroggy
  • 338
  • 4
  • 7
1
vote
1 answer

Why does this Azure CLI boolean property query seem to be backwards?

I am writing a simple az command to return the default version of AKS. I have tried several variation as below, but the result set returned is the opposite of what I am after. Is there something I am missing with regards to the JMESPath filter…
NER1808
  • 1,829
  • 2
  • 33
  • 45
1
vote
1 answer

How can I pass a client secret of a service principal when executing the az aks create --client-secret command in bash script

I'm experimenting with AKS and Azure CLI. So my first idea was use Azure CLI commands to setup an AKS cluster, what went pretty well. The next step is to bundle all those different commands into a single bash script. By using variables int the…
Chouffie
  • 11
  • 2