All Projects → Azure → Cloudshell

Azure / Cloudshell

Licence: mit
Container Image for Azure Cloud Shell (https://azure.microsoft.com/en-us/features/cloud-shell/)

Programming Languages

powershell
5483 projects

Projects that are alternatives of or similar to Cloudshell

Trainingdays
Azure Developer College's application development training days content.
Stars: ✭ 86 (-41.5%)
Mutual labels:  azure, container
Docker Emacs
Run Emacs in docker containers!
Stars: ✭ 145 (-1.36%)
Mutual labels:  container
Azsentinel
PowerShell module for Azure Sentinel
Stars: ✭ 140 (-4.76%)
Mutual labels:  azure
Di
PSR-11 compatible DI container and injector
Stars: ✭ 141 (-4.08%)
Mutual labels:  container
Orleans.clustering.kubernetes
Orleans Membership provider for Kubernetes
Stars: ✭ 140 (-4.76%)
Mutual labels:  azure
Simple Openvpn Server
A setup script and simple web UI for setting up an OpenVPN Server
Stars: ✭ 141 (-4.08%)
Mutual labels:  azure
Learn Devops
🚧 Learn the craft of "DevOps" (Developer Operations) to Deploy your App and Monitor it so it stays "Up"!
Stars: ✭ 139 (-5.44%)
Mutual labels:  azure
Hub Tool
🧪 Docker Hub experimental CLI tool
Stars: ✭ 147 (+0%)
Mutual labels:  container
Phippyandfriends
Simple demonstration, inspired by the Children's Illustrated Guide to Kubernetes, of AKS.
Stars: ✭ 144 (-2.04%)
Mutual labels:  azure
Promitor
Bringing Azure Monitor metrics where you need them.
Stars: ✭ 140 (-4.76%)
Mutual labels:  azure
Activelogin.authentication
Support Swedish BankID (svenskt BankID) authentication in .NET.
Stars: ✭ 141 (-4.08%)
Mutual labels:  azure
Laravel Azure Storage
Microsoft Azure Blob Storage integration for Laravel's Storage API
Stars: ✭ 139 (-5.44%)
Mutual labels:  azure
Kubify
Terraform Template to Setup a Kubernetes Cluster on OpenStack/AWS/Azure
Stars: ✭ 142 (-3.4%)
Mutual labels:  azure
Azure kinect ros driver
A ROS sensor driver for the Azure Kinect Developer Kit.
Stars: ✭ 140 (-4.76%)
Mutual labels:  azure
Awesome Kubernetes
A curated list for awesome kubernetes sources 🚢🎉
Stars: ✭ 12,306 (+8271.43%)
Mutual labels:  azure
Booster
Booster Cloud Framework
Stars: ✭ 136 (-7.48%)
Mutual labels:  azure
Azure Event Hubs Spark
Enabling Continuous Data Processing with Apache Spark and Azure Event Hubs
Stars: ✭ 140 (-4.76%)
Mutual labels:  azure
Dicomcloud
Azure friendly DICOMweb part 18 .NET server with qido-rs, wado-rs, stow-rs, wado-uri RESTful implementation
Stars: ✭ 140 (-4.76%)
Mutual labels:  azure
Supersafebank
Sample Event Sourcing implementation with .NET Core
Stars: ✭ 142 (-3.4%)
Mutual labels:  azure
Azure Function Express
⚡️Allows Express.js usage with Azure Functions
Stars: ✭ 146 (-0.68%)
Mutual labels:  azure

Microsoft Azure Cloud Shell Image

Azure Cloud Shell is a browser-based shell environment which enables Azure customers to manage and configure their Azure services. It provides a host of tools, including Azure CLI, Azure PowerShell, Ansible, Terraform, Chef, Puppet Bolt, kubectl, and many more.

For more details, check out Overview of Azure Cloud Shell.

Try out Cloud Shell by clicking the button below.

About this repository

When you connect to Azure Cloud Shell, we start a container containing a wide variety of tools, and connect your browser to a shell process running inside that container. This repository contains the Docker files used to build that image. It does not contain all of the code used for the rest of the Azure Cloud Shell service. The code in this repository may not match exactly to what is running in the Cloud Shell service at any given time. The service is updated periodically and changes are gradually rolled out to different regions over time, so there may be a lag of up to 3-4 weeks between a change being made here and being reflected in all Cloud Shell regions.

This repository has several uses:

  1. Running the Cloud Shell image locally. If you want a curated set of up-to-date command-line tools suitable for managing an Azure environment, but you want to run the tools locally on your own computer instead of in Cloud Shell, you can build the image and run it yourself.

  2. Contributing to Cloud Shell. If you would like to propose a new tool for inclusion in Cloud Shell, you can create an issue or submit a Pull Request to request the tool be added. Please ensure that the PR actually builds within GitHub Actions.

Running the Cloud Shell image locally

docker pull mcr.microsoft.com/azure-cloudshell:latest
docker run -it mcr.microsoft.com/azure-cloudshell /bin/bash

Differences between running locally and in Cloud Shell

  1. No identity endpoint. In Cloud Shell, we provide a way to automatically obtain tokens for the user connected to the shell. We can't provide this when you run locally, so you have to authenticate explicitly before you can access Azure resources. When using AZ CLI, run az login; for PowerShell, run Connect-AzAccount.

  2. No cloud drive. We don't mount the Cloud Drive from your Azure Cloud Shell, so you won't have access to files stored there.

  3. Root instead of cloud shell user. In Azure Cloud Shell you always run as a regular user. When running the image locally, you run as root.

Contributing to Cloud Shell

Understanding the base.Dockerfile and tools.Dockerfile

The repository contains two Dockerfile, 'base' and 'tools'. Tools is built on top of the base file, so normally you would just have one Dockerfile and rely on the container registry to cache all the layers that haven't changed. However we need to cache the base image explicitly to ensure fast startup time. So the image is split into these two files, and the tools layer starts FROM an internal repository where the base image is cached, so that we know when we need to update the base.

When building or using the image locally, you don't need to worry about that. Just build using the instructions below, and be aware that changes the the base layer will take longer to release than changes to the tools.

Layer Job
Base Contains large, infrequently changing packages. Changes every 3-4 months.
Tools Contains frequently changing packages. Changes every 2-3 weeks

Building and Testing the image

Required software

  • Docker
  • Bash terminal / Powershell

Building base.Dockerfile image

From the root repository

docker build -t base_cloudshell -f linux/base.Dockerfile .

Building tools.Dockerfile image

docker build -t tools_cloudshell --build-arg IMAGE_LOCATION=base_cloudshell -f linux/tools.Dockerfile . 

Running bash in the tools.Dockerfile image

docker run -it tools_cloudshell /bin/bash

Running pwsh in the tools.Dockerfile image

docker run -it tools_cloudshell /usr/bin/pwsh

Testing the Cloud Shell image

docker run --volume /path/to/CloudShell/folder/tests:/tests -it tools_cloudshell /tests/test.sh

For more information about bind mounts, please go onto the Docker documentation. We do expect all the test cases to pass if you would like your changes to be merged.

Contribution Guidelines

Types of issues

Issue Type Action
Package is out of date Create a Pull Request or Issue
New desired package Create a Pull Request or Issue
New desired Cloud Shell feature Create an Issue
Issue with one of the packages* Talk to package owner & create a PR on their repo.
Issue with how package interacts with Cloud Shell Create a Pull Request OR GitHub Issue
Security bug See https://www.microsoft.com/en-us/msrc/faqs-report-an-issue
Issue with Cloud Shell in Azure Portal (can't log in, for example) Open a support ticket

* For example, if you have an issue within Azure CLI, don't open up an issue with the Cloud Shell repo, open an issue within the Azure CLI repo. Azure PowerShell is here and Azure CLI is here

Types of tools

Cloud Shell aims to provide a core set of tools for Azure and Microsoft 365 devops scenarios, but we can't include everything. If you just want to use a tool yourself, you can install most utilities into your own home directory inside Cloud Shell. You only need to update the image if you want every Cloud Shell admin to have the tool available.

For a tool to be included in Cloud Shell, it has to be:

  • widely useful to Azure administrators
  • well-maintained and supported,
  • released under a license which permits us to include it
  • lightweight in terms of CPU requirements, size on disk, and memory

Please:

  • support fetching tokens from Managed Identity if a tool authenticates to Azure services
  • add basic tests to the test suite run by GitHub Actions

In general we avoid:

  • alpha, beta, preview or unstable versions of software.
  • tools primarily useful for extensive software development, as opposed to DevOps. Consider Visual Studio Codespaces for that.

Cloud Shell Documentation

Please see the Microsoft Azure Documentation for a guide to add to the Azure docs repo. The Cloud Shell documentation can be found here.

Legal

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].