Skip to content

Commit

Permalink
[Build and Deploy Staging Site] Publish from microsoft/azuretipsandtr…
Browse files Browse the repository at this point in the history
…icks-private:main/src/blog
  • Loading branch information
erjuntun75 committed Jun 22, 2022
1 parent 76a8773 commit 6b977e3
Showing 1 changed file with 63 additions and 0 deletions.
63 changes: 63 additions & 0 deletions blog/tip372.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
---
type: post
title: "Tip 372 - How to access Azure Cloud Shell from within Microsoft docs"
excerpt: "Learn how to access Azure Cloud Shell from within Microsoft docs"
tags: [Developer Tools]
share: true
date: 2022-06-22 08:00:00
---

::: tip

:fire: Make sure you [star the repo](https://github.com/microsoft/azuretipsandtricks) to keep up to date with new tips and tricks.

:bulb: Learn more : [Azure Cloud Shell features](https://docs.microsoft.com/azure/cloud-shell/features?WT.mc_id=docs-azuredevtips-azureappsdev).

:tv: Watch the video : [How to access Azure Cloud Shell from within Microsoft docs](https://youtu.be/yuKBkUoA7eg?WT.mc_id=youtube-azuredevtips-azureappsdev).

:::

### How to access Azure Cloud Shell from within Microsoft docs

#### Azure Cloud Shell
[Azure Cloud Shell](https://docs.microsoft.com/azure/cloud-shell/overview?WT.mc_id=docs-azuredevtips-azureappsdev) is an interactive, browser-based shell for managing Azure resources. You can use it with Bash or PowerShell, and it provides [all the features](https://docs.microsoft.com/azure/cloud-shell/features?WT.mc_id=docs-azuredevtips-azureappsdev) that the [Azure CLI](https://docs.microsoft.com/cli/azure/what-is-azure-cli?WT.mc_id=docs-azuredevtips-azureappsdev) does and more.

In this post, we'll use the [Azure Cloud Shell](https://docs.microsoft.com/azure/cloud-shell/overview?WT.mc_id=docs-azuredevtips-azureappsdev) in an article on [Microsoft docs](https://docs.microsoft.com/?WT.mc_id=docs-azuredevtips-azureappsdev).

#### Prerequisites
If you want to follow along, you'll need the following:
* An Azure subscription (If you don't have an Azure subscription, create a [free account](https://azure.microsoft.com/free/?WT.mc_id=azure-azuredevtips-azureappsdev) before you begin)

#### Use Azure Cloud Shell in Microsoft docs
Microsoft docs has great tutorials for Microsoft technologies, including Azure. Let's see how that works.

1. Go to [https://docs.microsoft.com/azure/storage/common/storage-account-create](https://docs.microsoft.com/azure/storage/common/storage-account-create?WT.mc_id=docs-azuredevtips-azureappsdev). This is a tutorial to create an Azure Storage account
2. Scroll down to the first command in the tutorial
3. Select the **Azure CLI** tab

<img :src="$withBase('/files/156button.png')">

(The Azure CLI tab in Microsoft docs)

4. Click on the **Try it** button. This will open Azure Cloud Shell
5. You need to sign in with your Azure account to use Azure Cloud Shell. Click **"Sign in"** and use your Azure account. This will request a new Azure Cloud Shell instance and start it up

<img :src="$withBase('/files/156cloudshell.png')">

(The Azure Cloud Shell in Microsoft docs)

6. You can now try Azure CLI commands directly within the page. Find a command that you want to try and click **Copy**

<img :src="$withBase('/files/156copy.png')">

(The Azure Cloud Shell in Microsoft docs)

7. **Right-click** in the Cloud Shell and select **Paste** to paste the command
8. Press **Enter** to execute the command. You'll see the results of the command in the Cloud Shell

<img :src="$withBase('/files/156result.png')">

(Command successfully executed in the Azure Cloud Shell)

#### Conclusion
Using [Azure Cloud Shell](https://docs.microsoft.com/azure/cloud-shell/overview?WT.mc_id=docs-azuredevtips-azureappsdev) in [Microsoft docs](https://docs.microsoft.com/?WT.mc_id=docs-azuredevtips-azureappsdev) enables you to try [Azure CLI commands](https://docs.microsoft.com/cli/azure/what-is-azure-cli?WT.mc_id=docs-azuredevtips-azureappsdev) without leaving the page. Go and check it out!

0 comments on commit 6b977e3

Please sign in to comment.