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 execute python script on Azure AKS - Job Deployment

I am trying to execute a simple python script via Azure Cloud Shell (Powershell) that generates a simple log via a Kubernates Job, using the following yaml file: apiVersion: batch/v1 kind: Job metadata: name: your-job-name spec: template: …
OuterSpace
  • 365
  • 7
  • 22
0
votes
1 answer

az vmss delete ..., error: argument --force-deletion: expected one argument

I read document at https://learn.microsoft.com/en-us/azure/virtual-machines/delete?tabs=portal2%2Ccli3%2Cportal4%2Ccli5#force-delete-for-scale-sets My command az vmss delete --resource-group myResourceGroup_vy --name WindowsVM…
Vy Do
  • 46,709
  • 59
  • 215
  • 313
0
votes
1 answer

Azure Synapse - Change on "Public Network Access" destroys Workspace

After setting "Public Network Access" to "Disabled", the Synapse Workspace is not usable anymore. There's only a message "Resource provisioning failed....". Do i need to redeploy the whole Synapse workspace, or is there a shorter way to repair the…
0
votes
2 answers

Where do python packages get installed in Azure Cloud Shell

I logged into Azure portal, opened cli/powershell and executed pip install to download some python packages. Where do these packages get installed? I am aware that I need a storage account when using cli. Azure prompted and created a resource group…
Manu Chadha
  • 15,555
  • 19
  • 91
  • 184
0
votes
1 answer

Getting error while trying to connect azure cloud shell in vs code

I need to run cloud shell commands, In azure portal i am able to use cloud shell with out any problem but the main thing is I want it in vscode, I have installed the vscode and tried to connect to azure but getting an error in my vscode. Error…
BE Aware
  • 3
  • 2
0
votes
1 answer

How to Delete WEBSITE_TIME_ZONE application setting in Azure. Clicking DELETE does not remove it

I added a variable to the configuration settings area of my application and I need to delete it now because I do not need it or want that setting anymore. It's called WEBSITE_TIME_ZONE. I would like to get rid of the setting but I can't. I have…
0
votes
1 answer

Run SQL query using powershell and AAD authentication with an SSO account

I am trying to run a set of queries from Cloud Shell using powershell that require and Azure AD user. I generally use invoke-sqlcmd using the server admin and password but the specific query I want to run require an AD user. I would like to run the…
0
votes
0 answers

Deleting a private GPG Key in Azure Cloud Shell

In Azure Cloud Shell I was able to create a GPG key. Now I want to delete it... gpg --delete-secret-key [ID-OF-KEY] Which results in... Delete this key from the keyring? (y/N) y This is a secret key! - really delete? (y/N) y gpg: deleting secret…
Donny Kwitty
  • 327
  • 2
  • 15
0
votes
1 answer

Connecting VScode to Azure Cloudshell

I'm looking to connect VS Code to Azure Cloudshell, especially for the file explorer component. It is a bit of an anti-pattern, but cloudshell is the only way in which I am able to run some commands that connect to Azure resources (spinning up a VM…
0
votes
1 answer

How to run cronjob in azure cloud bash shell

I'm trying to run cron job in azure cloud shell but it is not working This is my simple cron job * * * * * /home/meet/clouddrive/temp.sh where cat /home/meet/clouddrive/temp.sh #!/bin/bash echo "meet" >>…
meet soni
  • 1
  • 2
0
votes
1 answer

Executing DMV's on Power BI models or Tabular model in Azure Synapse notebooks or ADF

Is there a way in which we can connect to Power BI dataset in Azure Synapse notebook or Azure Data Factory and execute DMV's, say for example like below: select * from $System.TMSCHEMA_MEASURES
Joseph
  • 530
  • 3
  • 15
  • 37
0
votes
1 answer

How to stop Azure function app container started from Azure cloud shell?

Using Azure cloud shell to make changes and test locally. After changes are made, starting function app container using func start --verbose. Before making further changes and test again, need to stop the container first. What is the recommended way…
madmatrix
  • 205
  • 1
  • 4
  • 12
0
votes
1 answer

Azure Cloudshell Powershell Copy Blob between Containers

I set up a storage account (Blob, v2) with two containers. I uploaded a test excel file into one of the containers. Now I would like to use Azure Cloudshell PowerShell in order to copy that file from one of the containers and insert it to the…
T1B
  • 21
  • 1
  • 4
0
votes
2 answers

Error building ARM Config during "terraform init" command from azure Azure CLI

I am trying to run "terraform init" command using AZ CLI. Firstly it initialize the backend tfstorage container with tfstate files after that it is raising the error which is mentioned bellow.My az cli version is "2.38.0" Error: Error building ARM…
0
votes
0 answers

Publishing Azure Function Using CloudShell

I am using CloudShell to publish AzureFunction. I was able to publish the AzureFunction previously but today I am getting this Error while executing the publish command func azure functionapp publish Getting site publishing info...…
Birat Bade Shrestha
  • 800
  • 1
  • 8
  • 28