# Creating an Azure CloudShell

You can access the Cloud Shell in two ways:

* Direct link: Open a browser to <https://shell.azure.com>.
* Azure portal: Select the Cloud Shell icon on the Azure portal.

#### Considerations <a href="#considerations" id="considerations"></a>

* When creating a Cloud Shell you’ll only need to do this once per account (usually)
* Create your Cloud Shell in a management resource group
* Create a storage account specifically for Cloud Shells

### Steps <a href="#steps" id="steps"></a>

* Open a Cloud Shell

<figure><img src="https://2520398194-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtmXVEt8fjrNLJ9Srb4bI%2Fuploads%2FxkWopjK8aY3FTBN4CkCV%2F2022-08-08%2017_27_58-Azure%20Cloud%20Shell%20overview%20_%20Microsoft%20Docs.png?alt=media&#x26;token=9d683960-122c-4506-94aa-4b9b11bcb9cb" alt=""><figcaption><p><em>Locate the Shell Icon</em></p></figcaption></figure>

* Select PowerShell to get started (you can change it later)

<figure><img src="https://2520398194-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtmXVEt8fjrNLJ9Srb4bI%2Fuploads%2FAU3RWIP08pXUrHeC23J2%2F2022-08-08%2017_31_30-Getting%20Started%20with%20the%20Azure%20Cloud%20Shell.png?alt=media&#x26;token=9fce10fe-80d7-4f51-a680-a6373e230fc2" alt=""><figcaption><p><em>Select PowerShell</em></p></figcaption></figure>

* You will be told you have no storage selected. Click “Show advanced Settings”

<figure><img src="https://2520398194-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtmXVEt8fjrNLJ9Srb4bI%2Fuploads%2FA7XNAPhH2E5xScuxYIEa%2F2022-08-08%2017_30_40-Getting%20Started%20with%20the%20Azure%20Cloud%20Shell.png?alt=media&#x26;token=6e26d285-42e6-4cd7-92a7-3f236157cfb5" alt=""><figcaption><p><em>Advanced Settings</em></p></figcaption></figure>

* Populate the fields
  * **Subscription**
    * The Azure subscription you’re creating the Cloud Shell resource under
    * If you have more than one; select a subscription which will contain other centralised management resources
  * **Cloud Shell Region**
    * The region you’d like to deploy the Cloud Shell resources to
    * Pick one closest to you as an example
  * **Show vNet isolation settings**
    * Allows the cloud shell to access virtual machines and other resources behind a firewall or using private addresses within Azure.
    * Leave unchecked
  * **Resource Group**
    * The resource group the Cloud Shell will be associated with
    * If you have more than one, select a resource group that is used for management (or create a new one one)
  * **Storage Account**
    * The storage account the Shell will store any files generated
    * I create a new Storage Account specifically for Shells to group them all together
    * Remember the name has to the lower case, between 3 and 24 chars and be globally unique
  * **File Share**
    * This will be the file share where the Cloud Shell data will be stored, within an IMG file
    * I often call the name of the fileshare my username (in case I wanted to use this storage account for more than one user in the future)

<figure><img src="https://2520398194-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtmXVEt8fjrNLJ9Srb4bI%2Fuploads%2FQxXW3LgTXbx4aNtoLkTv%2F2022-08-08%2017_34_04-Getting%20Started%20with%20the%20Azure%20Cloud%20Shell.png?alt=media&#x26;token=dd829f6a-98b7-4f5f-affe-a0b66a23b809" alt=""><figcaption><p><em>Populate the Fields</em></p></figcaption></figure>

* You will then be presented with a Cloud Shell running in PowerShell. You can easily flick between the BASH shell by changing shells in the top left corner

### Links <a href="#links" id="links"></a>

* <https://adamtheautomator.com/azure-cloud-shell/>

&#x20;[Azure](https://blog.tomwhiteley.com/categories/azure/)
