Movatterモバイル変換


[0]ホーム

URL:


Skip to main content

This browser is no longer supported.

Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.

Download Microsoft EdgeMore info about Internet Explorer and Microsoft Edge
Table of contentsExit editor mode

Get started with Azure Cloud Shell

Feedback

In this article

This document details how to get started using Azure Cloud Shell.

Prerequisites

Before you can use Azure Cloud Shell, you must register theMicrosoft.CloudShell resourceprovider. Access to resources is enabled through provider namespaces that must be registered in yoursubscription. You only need to register the namespace once per subscription.

To see all resource providers, and the registration status for your subscription:

  1. Sign in to theAzure portal.

  2. On the Azure portal menu, search forSubscriptions. Select it from the available options.

  3. On theSubscriptions page, select your subscription.

  4. On your subscription page, expandSettings in left menu and selectResource providers.

  5. In theFilter by name... box, entercloudshell to search for the resource provider.

  6. Select theMicrosoft.CloudShell resource provider from the provider list.

  7. SelectRegister to change the status fromunregistered toRegistered.

    Screenshot of selecting resource providers in the Azure portal.

Start Cloud Shell

  1. LaunchCloud Shell from the top navigation of the Azure portal.

    Screenshot showing how to start Azure Cloud Shell in the Azure portal.

    The first time you start Cloud Shell you're prompted to create an Azure Storage account for theAzure file share.

    Screenshot showing the create storage prompt.

  2. Select theSubscription used to create the storage account and file share.

  3. SelectCreate storage.

    Note

    By following these steps, Cloud Shell creates a standard storage account and allocates 5 GB ofstorage for the file share. You can also create a storage account manually and specify thestorage account and file share to use. If you use a Premium storage account, Cloud Shellallocates 100 GB of storage for the file share.

Select your shell environment

Cloud Shell allows you to select eitherBash orPowerShell for your command-line experience.

Screenshot showing the shell selector.

Set your subscription

  1. List subscriptions you have access to.

    az account list
  2. Set your preferred subscription:

    az account set --subscription 'my-subscription-name'

Tip

Your subscription is remembered for future sessions using/home/<user>/.azure/azureProfile.json.

Get a list of Azure commands

Run the following command to see a list of all Azure CLI commands.

az

Run the following command to get a list of Azure CLI commands that apply to WebApps:

az webapp --help

Next steps


Feedback

Was this page helpful?

YesNoNo

Need help with this topic?

Want to try using Ask Learn to clarify or guide you through this topic?

Suggest a fix?

  • Last updated on

In this article

Was this page helpful?

YesNo
NoNeed help with this topic?

Want to try using Ask Learn to clarify or guide you through this topic?

Suggest a fix?