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

Azure Cloud shell fails to identify server. Throws error : Can not perform requested operation on nested resource. Parent resource not found

I am trying to get firewall rules configured on an existing azure sql server. I am using Azure Cloud shell to run the following command which results in an error. ~$ az sql server firewall-rule list --server mydbserver.database.windows.net…
3
votes
1 answer

where does the SSH private key get stored in Azure?

I'm new to Azure, sorry if my question sounds dumb. I use ssh-keygen to create public/private key pair in cloud shell, but where is my local location this private key get saved to? I wasn't prompted to provide a local path for storing this private…
user9623401
3
votes
1 answer

Azure course that tries to use Azure Cloud Shell fails with "RequestDisallowedByPolicy" using free account

I was asked by Azure Support to post this question, just to see if anyone had a useful opinion. I am stepping through MS Azure training courses. I created the usual free account to go through these. I've gone through a few dozen of them, and am…
David M. Karr
  • 14,317
  • 20
  • 94
  • 199
3
votes
4 answers

"Failed to mount the azure file share. Your clouddrive won't be avaible"

Whenever I start the Azure Cloud Shell, I get this error: Failed to mount the azure file share. Your clouddrive won't be avaible Your Cloud Shell session will be ephemeral so no files or system changes will persist beyond your current session. Can…
2
votes
1 answer

Azure Cloud Shell Loading is delayed by around 20 minutes

I am currently attempting to complete the AZ-204 training for the microsoft exam, however on multiple of the learning paths, when I go to load an azure cloud shell as part of the module, it can take upwards of 20 minutes to load. black screen…
2
votes
2 answers

AzureResponseError: Operation returned an invalid status code 'Unauthorized'

I have cloned my app from GitHub into the Azure shell. When I tried to create and deploy the webapp I am facing few errors. First I tried az webapp up -n newappname and I got the below error Then I created a web app myself in the portal and just…
codeX
  • 4,842
  • 2
  • 31
  • 36
2
votes
1 answer

nothing happened if input code . in visual studio code terminal to open azure cloud shell

With Azure account extension and node.js installed on Visual Studio code, I cannot open cloud shell with code . after sign in successfully. Am I missing any steps? refer this doc:https://azure.microsoft.com/en-us/blog/cloudshelleditor/ Also, I…
K.Chen
  • 23
  • 3
2
votes
2 answers

New-AzScheduledQueryRule returning BadRequest

I want to create a Log Alert using PowerShell based on a query. I follow the instructions under https://learn.microsoft.com/en-us/azure/azure-monitor/platform/alerts-log#managing-log-alerts-using-powershell and I've adapted my code as below: $source…
Nicolas
  • 23
  • 3
2
votes
1 answer

OSError: [Errno 28] No space left on device when using Azure Shell

When running any az based command in Azure Cloud Shell I receive a tonne of errors related to Python with the only tangible one being here: e.g just the command az by itself. --- Logging error --- Traceback (most recent call last): File…
Alex KeySmith
  • 16,657
  • 11
  • 74
  • 152
2
votes
2 answers

Azure Cloud Shell opening to a black screen

As soon as I login to Azure Cloud Shell, it is redirecting me to a black screen as it is unable to load bootstrap and jQuery. Is there any fix for this? Thanks in advance
Chetan
  • 21
  • 3
2
votes
1 answer

Why is Azure CLI reporting ResourceGroupNotFound when trying to run New-AzResourceGroupDeployment?

I'm trying to create an Application Insights resource following the directions provided here: https://learn.microsoft.com/en-us/azure/azure-monitor/app/powershell However, when I execute the command from the docs: New-AzResourceGroupDeployment…
Webjedi
  • 4,677
  • 7
  • 42
  • 59
2
votes
1 answer

Unable to locate the repository cloned from git using Azure cloud shell

I opened Azure Cloud Shell and once the command prompt was ready, I tried git clone https://github.com/Azure-Samples/python-docs-hello-world and it was cloned successfully. However, i am unable to locate where the cloned files are. Need help with…
2
votes
1 answer

How do you use Revoke-AzureADUserAllRefershToken with Azure AD B2C?

I saw this answer and update (Revocation endpoint in Azure AD B2C) but I'm not sure how to use this with Azure AD B2C. I've opened up an Azure Cloud Shell and it comes back that the object ID does not exist. I'm running this from my parent Azure…
stumpykilo
  • 97
  • 1
  • 1
  • 9
2
votes
3 answers

How to get a swap config preview when swapping Azure App Service from cli?

When swapping the production slot with a staging slot for a Azure App Service through the portal you get a little warning in case the configs differ between the slots. I would like to get the same warning when I swap from command line (for example…
viblo
  • 4,159
  • 4
  • 20
  • 28
2
votes
1 answer

Get-AzureRmVM requires a name parameter?

If I run this powershell command from an Azure cloud shell it executes fine and gives me a list of all VMs in the specified resource group: Get-AzureRmVM -ResourceGroupName "MyGroup" -Status If I execute it in a runbook from an automation account…
Jeremy
  • 44,950
  • 68
  • 206
  • 332
1
2
3
11 12