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
1
vote
1 answer

How to add Blob storage connection in logic app template file

I want to deploy the logic app to the portal using the Azure cloud shell, I have modified the all the files , and able to deploy the logic apps successfully. But when I see the changes in the portal all the actions are showing but the blob storage…
1
vote
2 answers

msrest.exceptions.ValidationError: Parameter 'resource_group_name' must conform to the following pattern: '^[-\\w\\._\\(\\)]+$'

sathish@Azure:~/quickstart/python-docs-hello-world$ az webapp up -n appname The command failed with an unexpected error. Here is the traceback: Parameter 'resource_group_name' must conform to the following pattern: '^[-\\w\\._\\(\\)]+$'. Traceback…
1
vote
1 answer

Automated Azure Password change

I'm searching for a way to change my (Login-) Password in Azure via PowerShell. I have only access to my own Account and can't use any Principals or Azure Active Directory because of missing rights. Because I'm able to change the Password manually…
1
vote
2 answers

Azure Publish Web App with Resource Manager in Powershell

I am trying to publish a Web App package on an App Service on Azure. I need to crate a Powershell script to run from the Cloud Shell, in order to publish the package. I wrote the following code Import-AzurePublishSettingsFile -…
1
vote
1 answer

How to load files from azure powershell to Azure Data Lake

How to load .ps1 files from Azure Powershell to Azure data lake? I have tried in my local machine (Powershell), there it is working fine. while uploading it into the Azure Powershell, we are not able to fetch the exact location. And how do we create…
1
vote
2 answers

Azure Cloud Shell - The term 'Stop-AzureVM' is not recognized

I am attempting to use the Azure Cloud Shell (browser based) to manage a classic VM. When I run this command: Stop-AzureVM -ResourceGroupName -Name I get this error: Stop-AzureVM : The term 'Stop-AzureVM' is not recognized…
Captain Whippet
  • 2,143
  • 4
  • 25
  • 34
1
vote
1 answer

SSH into Linux VM on Azure using cloud shell

I would love to use the Azure cloud shell to SSH into my Linux VMs on Azure, they don't have a public IP and they are on a Virtual Network. Does anyone know of a way I can do this?
Xoben
  • 29
  • 4
1
vote
2 answers

Azure Cloud Shell Ansible with Windows hosts

Since the announcement I'm able to list my Azure infrastructure in the Azure Cloud Shell with ansible. I want to use it with Windows machines too. I installed the winrm locally as it seems that globally is not supported. pip install "pywinrm>=0.2.2"…
guillem
  • 2,768
  • 2
  • 30
  • 44
1
vote
1 answer

Microsoft Azure Cloud Shell would not work

I am learning about Azure now, yesterday, because I made a mess about some staff so I decide to delete all resources and start off clean. Therefore, I delete the storage account that used by azure portal shell. Now my portal shell wouldn't work. It…
user2904992
1
vote
1 answer

Azure cloud shell error

I am unable to do anything with my Azure account such as create servers or databases or anything. It seems like it all revolves around resource groups which I cannot create> I get this error: It's especially tough because I can't even use a cloud…
leithammer
  • 11
  • 1
1
vote
1 answer

Super user privileges Azure CloudShell?

I see that one has elevated permissions on the Cloud Shell console. However for some operation the shell throws errors that seem to be related to privileges. For example, using the tar command resulted for me in errors: utime: operation not…
MoB
  • 119
  • 2
  • 13
1
vote
3 answers

Node.js RESTful API on Azure

I'm trying to take my first steps in node.js and I've been following this tutorial: https://learn.microsoft.com/en-us/azure/app-service-api/app-service-api-nodejs-api-app When I'm typing npm install -g yo to the cloud shell in azure I get this…
Shiran Dror
  • 1,472
  • 1
  • 23
  • 36
1
vote
1 answer

dotnet restore command failed in azure cloud shell

"dotnet restore" command failed like below. How can I resolve this? kim@Azure:~/clouddrive$ ls lll kim@Azure:~/clouddrive$ dotnet new console --name test Content generation time: 1189.1072 ms The template "Console Application" created…
zelon
  • 297
  • 2
  • 8
0
votes
1 answer

How to set FriendlyName to Pfx certificate and upload certificate to webapp using powershell

I have pfx certificate. I need to add FriendlyName to Pfx certificate and then add certificate to Webapp using azure cloud shell. Using following script, you can set friendlyName, $cert= Get-PfxCertificate -FilePath "XYZ\XYZC.pfx" | SELECT * …
Chhaya
  • 5
  • 2
0
votes
1 answer

How to add the files in $Home directory from blob of Azure cloud shell

I am new to powershell. Writting code in azure cloud shell. I want to add files in Azure cloud shell $HOME directory from blob storage. How I can achieve this task? Really appreciated for help. To get script to add files into $home directory from…