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

Export is not recognize

I would like to install dot.net package but the export is not recognized in Azure App Service. wget -q -O - https://dot.net/v1/dotnet-install.sh | bash -s -- --version 3.1.102 export PATH="\~/. github.com/JaneFun/JaneFun/tree/main:$PATH" echo…
0
votes
1 answer

Display a list of all Azure Web Apps Custom Domain from Azure Cloud Shell

I am able to get the complete list of appservice URLs like something.azurewebsites.net but nothing found on the web to list custom domains of all azure webapps. How can I get a list of custom domains for all azure webapps from Azure CLI?
0
votes
1 answer

Toggle an Application Gateway WAF to Prevention/Detection mode

Goal: Toggle an application Gateway WAF between prevention and detection mode via code. Configuration Details: App GW SKU: WAFv2 Application Gateway WAF deployed Custom rules and managed policies are implemented WAF is Associated to Application…
0
votes
1 answer

Unable to connect to AKS Cluster from Azure Cloud shell

Trying to connect AKS cluster from azure cloud shell and getting the below issue. Also getting the same error while running other commands as well. Could anyone suggest/guide resolving this issue?
BSG
  • 673
  • 2
  • 13
  • 33
0
votes
1 answer

How to run azure cli commands with serviceprinciple permissions?

Been looking for a while but couldn't find the answer. I've been using service principle on my azure devops to modify my azure infrastructure via piplines (proper permissions). I need to run some of the commands locally using powershell, for example…
nyc3
  • 1
0
votes
0 answers

azure monitor alerts creation best usecase

what is the best way to automate the azuremonitor logsearch based and metric based alerts in more transparent way, where we can easily update the threshold values. it shoul be capable to automate using azure pipelines
Vowneee
  • 956
  • 10
  • 33
0
votes
1 answer

How to retrieve an environment variable and store it in the Azure CLI?

I have the following code that creates the environment variable called ENDPOINT_TEST through an ADO pipeline but I want to hide the URL https://xyz. I have created a secret in the keyvault to store this url as secret_url and I have linked my…
abautista
  • 2,410
  • 5
  • 41
  • 72
0
votes
1 answer

How to invoke PS script stored in File share with azure run-book

I want to Invoke a PowerShell script stored in Azure storage account to execute commands in the VM scale sets. I can able to invoke via cloudshell but with rubook it says Could not find file Invoke-AzVmssVMRunCommand -ResourceGroupName…
0
votes
1 answer

"Failed to provision a Cloud Shell", but Azure outages shows operational

I've been trying to use the Cloud Shell, but it keeps showing "Failed to provision a Cloud Shell" (see graphic below). When I go to the Azure outage page at https://status.azure.com/en-us/status/, it shows that it is still operational. Thoughts on…
thomassantosh
  • 571
  • 1
  • 6
  • 21
0
votes
2 answers

F5 Does not start debugging in Azure Cloud Shell

I am following the Azure learning path on Microsoft's website. One of the modules requires starting a node.js application with Azure Cloud Shell. I followed all the steps on the module with no issue, until trying to press F5 to start debugging. If I…
Duyan Zhen
  • 41
  • 4
0
votes
1 answer

How to access azure cloud shell using C# code

Unable to access azure cloud shell using C# program please help me I am unable to access the azure cloud shell, I set up a script in the azure cloud shell but now I can't open the azure cloud shell using C# code. I want an azure cloud shell expected…
0
votes
1 answer

Azure Cloud Shell w/Windows Terminal limitations?

Where can I find the limitations/differences between running Azure Cloud Shell from the browser and Windows Terminal? For example, the "code xxx" command works differently when ran in the browser (opens up the editor) and Terminal (does nothing). Or…
0
votes
1 answer

Listing azure webapp name of a group by powershell

Is there any way to list all webapp service of a certain group by azure cli or azure powershell script?
0
votes
1 answer

How can you create a new storage container on a storage account using CloudShell?

I've googled this for hours and found little code snippets in bash and powershell but the ones that don't error completely end up giving me a 403. Here's my script this far. $resourceGroupName = "MyResourceGroup" $storageAccountName =…
sr28
  • 4,728
  • 5
  • 36
  • 67
0
votes
1 answer

Updating EventGrid Topic to set DeadLettering destination using Azure CLI

I'm following the instructions here to add a --deadletter-endpoint to an existing EventGrid subscription. The process is failing with error: Event subscription doesn't exist. What am I missing?: Azure Cloud Shell Commands…
ericOnline
  • 1,586
  • 1
  • 19
  • 54