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

How to prevent the azure cloud shell to show directories in solid green?

Please look at the following screenshot of my azure cloud shell: I find the solid green coloring for directories very annoying and hard to read especially if you more directories other than the default "." and "..". Is there any way to adjust the…
Bharat
  • 2,409
  • 6
  • 32
  • 57
0
votes
2 answers

Unable to remove faulted Node using Remove-ServiceFabricNodeState any more

I used to use Remove-ServiceFabricNodeState to remove faulted Service Fabric nodes. with this cmdlet i was able to remove a specific node by its name. However I'm unable to use this cmdlet any more. It is not allowing me to install the module using…
Nandun
  • 1,802
  • 2
  • 20
  • 35
0
votes
1 answer

Unable to see resources as directories Azure Cloud Shell

in alot of online tutorials I can see that one can navigate through resources in azure as if it were a directory. When I use Cloud Shell this feature is not available to me. I only have following directory structure. Directory: /home/MY NAME …
0
votes
1 answer

Azure Cloud Shell ssh keys persistence

I am using Azure Cloud Shell to ssh into my VMs. I have created SSH keys, created my VMs and was able to ssh into my VMs. My Bash cloud shell session was suddenly disconnected (not the main issue) and after opening a new session to Cloud shell again…
Mexicoder
  • 517
  • 1
  • 6
  • 18
0
votes
1 answer

Azure cloud shell: download command not working

It's been a while since I used az cloud shell's download command. It worked great when I first tried it. Yesterday I had to download some files in my cs storage, but when trying to: download somefile.ext , nothing happened! (tested w/ bash &…
tomblue
  • 1,079
  • 1
  • 12
  • 19
0
votes
2 answers

Problem generating random string in Azure Cloud Shell Bash

I am trying to generate a random string of a certain length in Bash. This works in every other Bash shell I could test (Ubuntu 18.04 LTS and Debian 10) $ cat /dev/urandom | tr -dc 'a-z0-9' | fold -w 10 | head -n 1 n8a4wxvb01 $ cat /dev/urandom –…
James P
  • 71
  • 4
0
votes
2 answers

Sync data between azure database and local database using cloud power shell

We are trying to sync an azure database and local SQL database using power shell. We are referencing the following URL for the sync…
Ranish
  • 877
  • 2
  • 10
  • 30
0
votes
1 answer

What is difference between Azure Cloud Shell Vs Bastion?

What is difference between Azure Cloud Shell Vs Bastion ? I am trying tuo understand use case scenario of Bastion. I can use azure cloud shell from the portal to connect / administer my azure recources (cli / powershell) I also noticed that Bastion …
forvaidya
  • 3,041
  • 3
  • 26
  • 33
0
votes
1 answer

Errors using Get-AzUserAssignedIdentity on module 0.7.3 and 0.7.2 "Extended 'versions' can't be converted to a boolean"

The following commands were previously working from a local PS session using module Az.ManagedServiceIdentity version 0.7.2, but broke once I updated to 0.7.3, now can't get it to work again even after downgrading the module version. I'd like to use…
0
votes
3 answers

Helm Install fails with Error: could not find tiller from within Azure Cloud Shell

Helm install called from the cloud shell worked last week but now regardless of using bash or powershell it returns Error: could not find tiller Last week I was able to create an ingress controller by following the Microsoft article Create an…
0
votes
1 answer

Open code editor using Bash in Cloud Shell to edit files stored in Azure using VS Code

I'm using VS Code and I'm logged in to my azure account using Bash in Cloud Shell. Once I'm in the storage directory, I want to open and code some of those files and for that, I type the command "code ." however it does not seem to work. On the…
0
votes
1 answer

How to access Azure DevOps REST API from Azure CloudShell using PowerShell?

I need to access Azure DevOps TFSGit repository from Azure cloudshell, is there a way to open a session with DevOps and issue commands to fetch the repository file contents. I am trying to implement Azure Policy initiatives as it has been depicted…
0
votes
1 answer

Azure portal bash file structure for ssh file

I ran a bash command from my azure subscription on portal.azure to create a ssh key and it asked me to give the name of the new file but at a location that I am not able to find on my machine. It gave a default path as /home/username/.ssh/id_rsa I…
Sarah
  • 1,199
  • 2
  • 21
  • 42
0
votes
1 answer

azure: az resource list missing tags

It tells me I have null tags if I list my resources with az resource list --tag Departement=Finance az resource list --tag Departement=Finance [ { "id":…
pkr
  • 3
  • 3
0
votes
1 answer

Running az cli commands in Cloud shell fails with UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8e in position 0: invalid start byte

I am trying to run az cli command say for exmaple az --version or az account show I am getting below error : File "/opt/az/lib/python3.6/encodings/utf_8_sig.py", line 117, in decode return codecs.utf_8_decode(input, errors) UnicodeDecodeError:…
Suraj
  • 135
  • 2
  • 8