AZURE HEROES
  • Home-Updates
  • Blog
    • Azure Blog
    • Office365 - From Zero To Hero
  • Who We Are!
  • eBooks
  • Azure All In One!
    • Azure Disk & Storage
    • Azure Network
    • Azure VPN
    • Azure VMs
  • Free Azure Support!
  • Contact Us
  • Events
    • Beginners Event
    • Developers Event
    • Special Event
    • Azure Workshop #4
    • Azure Workshop #5
    • Azure Workshop #6
  • Registration Form
  • Privacy Policy
  • Home-Updates
  • Blog
    • Azure Blog
    • Office365 - From Zero To Hero
  • Who We Are!
  • eBooks
  • Azure All In One!
    • Azure Disk & Storage
    • Azure Network
    • Azure VPN
    • Azure VMs
  • Free Azure Support!
  • Contact Us
  • Events
    • Beginners Event
    • Developers Event
    • Special Event
    • Azure Workshop #4
    • Azure Workshop #5
    • Azure Workshop #6
  • Registration Form
  • Privacy Policy

The basic of Azure Cloud Shell

8/4/2020

1 Comment

 


What is Azure Cloud Shell?
AZCLI Is an embedded terminal which is can be used within your browser, or even the Azure Mobile app. The Azure Cloud Shell enables you to easily use both Bash and PowerShell directly in the browser or Azure Mobile app.

It is really an Amazing tool, easy to use and execute whatever we need. Managed by Microsoft with no cost!

Picture
How To access it?
There are three ways:
  • Direct link: Open a browser to https://shell.azure.com.

  • Azure portal: Select the Cloud Shell icon on the Azure portal

  • Code snippets: On docs.microsoft.com and Microsoft Learn

Which Commands you can Run?
You can use
  • Bash or
  • PowerShell

Features and use cases:

You can use AZCLI to :
  1. Manage Exchange Online! PowerShell in Cloud Shell contains a private build of the Exchange Online module. Run Connect-EXOPSSession to get your Exchange cmdlets.
  2. Deep integration with open-source tooling : Cloud Shell includes pre-configured authentication for open-source tools such as Terraform, Ansible, and Chef InSpec. Try it out from the example walkthroughs. - Read More
  3. You can use to achieve whatever you need on your environment such as delete VM, Create VM, Modify VM, Shutdown VM, Manage PaaS,DBaaS and a lot of thing you can do using AZCLI
  4. Download and Upload Files, Azure Cloud Shell includes a feature that allows you to directly upload files from your local file system into the Azure Cloud Shell environment and downloading files from the Azure Cloud Shell
  5. Key Concepts:
  • Cloud Shell runs on a temporary host provided on a per-session, per-user basis
  • Cloud Shell times out after 20 minutes without interactive activity
  • Cloud Shell requires an Azure file share to be mounted
  • Cloud Shell uses the same Azure file share for both Bash and PowerShell
  • Cloud Shell is assigned one machine per user account
  • Cloud Shell persists $HOME using a 5-GB image held in your file share
  • Permissions are set as a regular Linux user in Bash
Quick Demo (within Azure Portal)
1- First of All Login to you Azure Account
2- Click on the Cloud Shell icon in the header bar, and it will open the Cloud Shell in a pane at the bottom of the browser
Picture
3- At first time when you access the cloud shell it will ask you to create the storage to be mounted with the current subscription or you can use any existing one, and once you click on "Create Storage" it will automatically create a storage inside the azure environment
4-Lets try to Export a list of VMs I have on Azure - Using this Script -
5- You can Copy Paste in on AZCLI or just Run it directly
6-Once you Run the script you will get a list of all VMs on your azure Subscription
Picture
How much it Cost?
You have only to Pay for the storage account you used which is less than 1$, As The machine hosting Cloud Shell is free, with a pre-requisite of a mounted Azure Files share.
1 Comment
Bassam Moussa
10/2/2020 01:06:15 am

Very interesting 👍 your posts really are very easy to understand and your way to write is very clear and professional

Reply



Leave a Reply.

    Author

    Mohammad Al Rousan is a Solution Architect @ Diyar United Company. My technology focus as a Cloud nowadays includes Docker, Kubernetes Service, Container, Azure DevOps, IaaS, PaaS, DBaaS, as well Terraform and other serverless components in Azure e.g. Logic Apps and Functions
    I hope you enjoy reading my blog and that it helps you on your journey to the cloud.

    Picture
    Top 10 Microsoft Azure Blogs

    Archives

    December 2020
    November 2020
    October 2020
    September 2020
    August 2020
    June 2020
    April 2020
    January 2020
    July 2019
    June 2019
    May 2019
    February 2019
    January 2019

    Categories

    All
    Azure
    Beginner
    CDN
    End Of Support
    Fundamentals
    Guide
    Hybrid
    License
    Migration
    Network
    Security
    SQL
    Storage
    Virtual Machines
    WAF

    RSS Feed

    Follow
    Free counters!
Powered by Create your own unique website with customizable templates.