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
0
votes
1 answer

curl/wget cannot run in Azure Batch

I am trying Azure Batch services and followed this example. I was trying to download a webpage so I changed the task into something like az batch task create --task-id mytask --job-id myjob --command-line "/bin/bash -c 'curl…
0
votes
1 answer

How to install Desired State Configuration (DSC) in Azure Cloud Shell?

Is it possible to install and use Desired State Configuration (DSC) in Azure Cloud Shell and, if so, how? From the Azure Cloud Shell prompt, if I run the following command: Start-DscConfiguration the following error is…
Jonathan Bailey
  • 306
  • 2
  • 13
0
votes
1 answer

Azure Cloud Shell Stuck in Instantiation

I have signed up for the Microsoft Sandbox. It worked fine for once but now the Cloud Shell is not opening at all in the MS Concierge Subscription. Getting the attached error. Trying to follow this -…
Pranav Jituri
  • 823
  • 1
  • 11
  • 25
0
votes
1 answer

Ansible 2.7 in Azure Cloud Shell

I'm looking for - and struggling to locate - any indication of when Ansible 2.7 will be released to the Azure Cloud Shell Bash environment. Currently Cloud Shell is at 2.6.3. Googling and DuckDuckGoing etc. and searching Microsoft's sites has not…
muszeo
  • 2,312
  • 9
  • 13
0
votes
1 answer

ARM Template deployment fails in Azure Cloud Shell

When I issue the following command in the Azure Cloud shell: az group deployment create --resource-group OurResourceGroup --template-file @WebSiteSQLDatabase.json --parameters @WebSiteSQLDatabase.parameters.json I receive the following error…
Chris B. Behrens
  • 6,255
  • 8
  • 45
  • 71
0
votes
1 answer

Add local hostname to azure cloud shell

I want to map a public IP address of a vm to a hostname. On a regular linux distribution I would add the ip to hostname mapping to /etc/hosts like so. 52.123.12.23 name-to-resolve The question is how to achieve the same on a azure cloud shell(bash).…
Gerben
  • 363
  • 1
  • 7
0
votes
1 answer

az cli login with specific tenant generates error

I'm trying to login a different tenant from portal cloud shell bash with "az login --tenant mytenant.onmicrosoft.com" it gives error : azure cloud shell automatically authenticates the user it was initially launched under. As a result az login is…
rfum
  • 358
  • 1
  • 3
  • 13
0
votes
1 answer

Azure Cloud Shell - Storage Creation Failed

Seems each time I try to use an existing share for Cloud Shell, it gives me the annoying error Error: 400 {"error": "code":"AccountPropertyCannotBeUpdated","message":"The property 'kind' was specified in the input, but it cannot be updated."}}. …
phydeauxman
  • 1,432
  • 3
  • 26
  • 48
0
votes
1 answer

When I copied text from Azure Cloud Shell terminal , copied string is incomplete

I selected bellow area and pressed command+C. cloud shell capture Following string is pasted from my clipboard. You are viewing an offline list of runtimes. For up to dat My browser is Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6)…
NewGyu
  • 1
0
votes
2 answers

Mapping Azure File Share in Bash Cloud Shell

Is this possible? So far I have not had much luck but I have limited Linux skills. I want to be able to map a persistent share so I can store Terraform state files that can be accessed by every person on my team. Using the PowerShell Shell, I can…
phydeauxman
  • 1,432
  • 3
  • 26
  • 48
0
votes
3 answers

How to use Azure CloudShell for Continuous Deployment

I am using CloudShell to deploy Azure Services using PowerShell Scripts. It's a great experience.Now I want to use CloudShell to automate deployment. I am maintaining a solution in TFS/VSTS. Is there any way or workaround to call OR to get the…
Rohi_Dev_1.0
  • 372
  • 1
  • 2
  • 19
0
votes
2 answers

Deploy a dacpack using Azure CloudShell

I am new to CloudShell and I want to deploy a SQL database to Azure SQL Server. Previously (using Windows PowerShell) I have deployed a database using a dacpac file in combination with the Dac framework. But CloudShell is something on portal & I…
Rohi_Dev_1.0
  • 372
  • 1
  • 2
  • 19
0
votes
0 answers

Permission denied and Operation not permitted in Storage Account VM

I have simple script with mv, sed, cut, awk, and redirections. It works great on my Local Ubuntu. I'm trying now to use it on a Storage Account using Azure Cloud Shell. I know I don't have any root permission on this VM, I can't do sudo for example.…
BeGreen
  • 765
  • 1
  • 13
  • 39
0
votes
2 answers

Azure for Students (Imagine) vs. Cloud Shell

Our school has an Imagine subscription, which allows lecturers and students to sign up for Azure for Students. Now we would like to create a HTML5 web service as described in this tutorial:…
0
votes
1 answer

Azure Cloud Shell Unknown Error

Since yesterday I am trying to start the Azure Cloud shell but every time I am getting the following error: Sorry, something went wrong: Unknown Error See attached image. To troubleshoot I tried to delete the Cloud Shell Resource Group…
Olandese
  • 188
  • 1
  • 14
1 2 3
11
12