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

Azure PS command returns empty list

We have created a resource group with a VMSS instance within. When running the "az vmss list" command within the Cloud Shell, we are able to get the respective resource. However, when running the exact same command in PS, it returns an empty list,…
0
votes
1 answer

Azure CLI: Why AZ command fails locally by runs in Azure Cloud Shell

az command to list storage accounts using --query runs in Azure Cloud Shell but fails when run locally. Any idea why? I am using: Windows 10PC Python version 3.9.1 AZ CLI: 2.23.0 Steps: Run PowerShell as Admin Login successfully with az…
0
votes
1 answer

Azure container registry repository or image delete giving error while executing using Azure CLI or Command Shell

Getting below error while deleting ACR repository or image. Command: $ az acr repository delete --name pocacr2021 -repository repoNodeBulletin Error: The requested data does not exist. Correlation Id:xxxx-xxxxx-xxxx-xxxxx
0
votes
1 answer

How to fix core dump error on Azure Cloud Shell?

Whenever I start Azure Cloud shell, it crashes with below error. Any idea how to get rid of this error. Any help is appreciated. Requesting a Cloud Shell.Succeeded. Connecting terminal... Unhandled exception. System.TypeInitializationException: The…
Dennis om
  • 1
  • 1
0
votes
1 answer

How to run yaml file from Azure cloud shell

I have created a Windows Server container on an Azure Kubernetes Service (AKS) cluster using the Azure CLI. While trying to deploy my aspnet core app to the AKS cluster, I am stuck on this step of the above link. I have sample.yaml file on my…
nam
  • 21,967
  • 37
  • 158
  • 332
0
votes
1 answer

Set-AzStorageBlobContent : Can not find the specified file

I am working on a PowerShell code that is expected to upload a JSON file to my azure Blob Storage. My PowerShell code is saved in my local drive/folder and I am running that azue PowerShell CLI. My PowerShell is falling on this…
user1431921
  • 101
  • 1
  • 2
  • 5
0
votes
1 answer

Azure Cloud Shell blue and blank

Azure cloud shell shows weird behavior most of the time. As shown in the image it remains blank. If we type the white courser moves. Sometimes we can see it all but when we execute a command the cursor goes up and remains among the text above. we…
Blue Clouds
  • 7,295
  • 4
  • 71
  • 112
0
votes
2 answers

Unable to create SQL database in Azure CLI

I am trying to create a sql database using cloud shell Note: I am able to create the sql database in the same resource group without any issues. When i execute the command from the the cloud shell I get the following error message. PS /home/xxx> az…
0
votes
0 answers

Unable to login Azure cloud shell with Azure Authenticator App

Authenticator App works fine to login Azure Portal, but failed to login to shell.azure.com. The App seems to work for cloud shell as it prompted for approval after typing username, but as I approved the login request in the Authenticator App, the…
joe1811
  • 1
  • 1
0
votes
1 answer

How do I delete an Azure Enterprise Applications without Azure subscription?

I want to remove a tenant from Azure portal. All Enterprise applications should be deleted before the tenant removing: There are two options how Enterprise applications could be removed: From the Azure portal. Go to the application you want to…
sashaeve
  • 9,387
  • 10
  • 48
  • 61
0
votes
2 answers

ansible playbook for Azure network security group - Error: missing required arguments

Following YAML playbook for creating Azure Network Security Group DOES specify the priority arguments. But I still get the following error when running the playbook in Azure Cloud Shell. What may be the cause of the error and how can we fix…
nam
  • 21,967
  • 37
  • 158
  • 332
0
votes
1 answer

ansible - unable to create Azure network security group

I though I correctly followed this YAML tutorial (for formatting a YAML file) and this ansible example from official ansible document to create an Azure Network Security Group using following ansible playbook. But when I run the playbook in Azure…
nam
  • 21,967
  • 37
  • 158
  • 332
0
votes
1 answer

Ansible - How to run YAML code in Azure Cloud Shell

Question: How do I run the following YAML in Azure Cloud Shell? In step 1 of this Ansible tutorial, the author is asking to run the following YAML - to create a resource group. I'm using PowerShell in Azure Cloud Shell (where Ansible is…
nam
  • 21,967
  • 37
  • 158
  • 332
0
votes
1 answer

Location of Ansible playbook when running in Azure Cloud Shell

This official document Quickstart: Configure Ansible using Azure Cloud Shell from MS Azure site, asks you to first save the following code as create_rg.yml, and then run the ansible-playbook command (shown in second code block below) in Azure Cloud…
nam
  • 21,967
  • 37
  • 158
  • 332
0
votes
1 answer

Programmatically Set Up Azure Cloud Shell

Is there a way to programmatically configure Azure Cloud Shell without having to launch it and have it create a new storage account and file share (or go manually configure it to use existing resources)? I'd like to be able to have an Azure CLI…
Jumblemuddle
  • 121
  • 2
  • 10