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

Output to local file using cloud shell in vscode on a MAC

I am new to VSCode on a Mac and I am using the Cloud Shell connected to Azure where I can run all my commands without issue. The problem I have is that if I want to use the export-csv command to export the information to a file I don't know how to…
0
votes
1 answer

Run Azure Cloud Shell from my Powershell Window

Is there a way to run Azure Cloud Shell NOT in a browser? I would like to use the Azure Cloud Shell commands, but not have to do it in a browser window.
Vaccano
  • 78,325
  • 149
  • 468
  • 850
0
votes
1 answer

Tags that are set via Azure cloudshell do not appear in the portal

When trying to set tags via Azure cloudshell I ran in to an issue that these tags are not changed in the portal. checking the settings via PowerShell everything seems to have worked properly. What I did: PS Azure:\> $r = Get-AzResource -ResourceName…
0
votes
1 answer

.NET Core global tools don’t work in Azure Cloud Shell

I installed a .NET global tool in Azure Cloud Shell (dotnet tool install -g). The installation works without reporting any problems. After the installation the shell can’t find the tool (The term '{toolname}' is not recognized as the name…
Dirk Brockhaus
  • 4,922
  • 3
  • 38
  • 47
0
votes
1 answer

Auto-configure azure cloud shell

I need that when new users open https://shell.azure.com/ the initial configuration does not have to be set. Is this possible? All IMGs must be in a storage account that I want How can I do it? Is there a powershell that I can run when a user needs…
exitista
  • 563
  • 2
  • 10
  • 21
0
votes
2 answers

VS Code : Azure : Open Bash in Cloud Shell , Select directory.. hang

in Visual Studio Code, I did Azure Sign In. Then Azure : Open Bash in Cloud Shell. It prompts for Directory. When I select the 1 desired, nothing happen. Please help. Ref below:-
0
votes
2 answers

Not able to open browser from Azure cloud shell

I trying to open a browser from cloud shell. I have firefox installed in cloud shell but can't launch it. getting this error : XPCOMGlueLoad error for file ...../firefox/libxul.so: libgtk-x11-2.0.so.0: cannot open shared object file: No such file…
Suraj
  • 135
  • 2
  • 8
0
votes
1 answer

Azure Cloud Shell Always Returns Null For $keyVault = Get-AzKeyVault -VaultName $keyVaultName -ResourceGroupName $rgName Command

I am running the below commands to get an instance of my KeyVault in my Azure Cloud Shell instance. But the same is always null. $keyVaultName = "az203vmencryptdisk" $rgName = "az203" $vmName = "az203" $keyVault = Get-AzKeyVault -VaultName…
0
votes
1 answer

AcquireTokenAsyn in Azure cloud shell

I'm trying to make some graph API calls from AZure CloudShell. To make the API call I have to acquire a token. I have a 100% working code in Azure Desktop version (PSVersion 5.1) But same code not working in CloudShell, which runs s with (Core -…
0
votes
0 answers

Requesting a Cloud Shell.Failed to provision a Cloud Shell: {"code":"ServerTimeout","message":"The request timed out

Suddenly from last few hours I'm getting timeout message from cloud shell. I have been stuck because of this. Could anyone pls. point out what could be the issue and how should I resolve it. I'm working on some prototype and has free subscription…
Cyclotron3x3
  • 2,188
  • 23
  • 40
0
votes
1 answer

How to retrieve auth keys for an ACI deployment in Azure Portal (or Cloud Shell)?

I have created a deployment on ACI with Azure ML service, and its status is healthy. When deploying, I set auth_enabled=True, so that the service requires authorization keys to respond. I can get the service auth keys for that deployment in my Azure…
0
votes
0 answers

Assigning AppRole in a programmatic way?

My colleague is trying to assign AppRole to users in a programmatic way, so that we can allow our admins to add role from our web application UI. It seems that currently there is no api for this (this api is just for built-in roles). Apparently…
Mahdi
  • 1,089
  • 1
  • 14
  • 27
0
votes
1 answer

Cannot edit .json files in the Monaco editor within Cloud Shell (bug?)

Cannot edit .json files in the Monaco editor from cloud spell. Presented with error: File open error Unable to open file.json in editor. Insufficient permission such as write access. Try again using a target with write access permission. Other…
0
votes
1 answer

How can I run Azure's Get-AzureServiceAntimalwareConfig cmdlet equivalent in the new Azure Cloud Power Shell 'Az'

In Azure Power Shell within the Azure cmdlet module there is a cmdlet called "Get-AzureServiceAntimalwareConfig". I want to run the equivalent cmdlet but from the new PowerShell Az cmdlet module. How can I find the equivalent cmdlet for 'Az'? Do I…