How to remove azure cloud shell from windows terminal

How to

If you do not like or do not use Azure Cloud Shell, remove it. Here is how to remove Azure Cloud Shell from Windows Terminal.

Windows Terminal is one of the best applications introduced by Microsoft in recent years. For a very long time, Windows has suffered from a lack of good, modern terminal applications. The most important feature of Windows Terminal is that it has all the necessary functions and bells & whistles. These features include, but are not limited to, terminal customization, the ability to add and use multiple wrappers, and better configuration management. In Windows 11, it is included by default.

One of the useful features of Windows Terminal is the ability to automatically detect and add shells to individual profiles. For example, if you install Ubuntu on Windows, you will be able to see and add Ubuntu shells from the Windows Terminal.

Windows One of the shells that the terminal automatically adds is the Azure Cloud Shell. While useful for some, if you are not using Azure Cloud, it is quite useless and takes up space unnecessarily in the profile dropdown.

The Windows Terminal is customizable, so profiles can be easily added or removed. Azure Cloud Shell is similar.

This quick and easy guide will show you how to remove Azure Cloud Shell in Windows Terminal.

Contents:

Why Terminal adds Azure Cloud Shell profiles

Windows Developer, WindowsSandbox, Windows Subsystem for Linux, or Hyper-V options on, Windows Terminal can automatically add the Azure Cloud Shell profile to Terminal.

This does not mean that everyone who installs or turns on the above components will use Azure Cloud. For example, I have Hyper-V, Windows Sandbox, and Windows Subsystem for Linux enabled, but I do not use Azure Cloud. Thus, Azure Cloud Shell is not useful to me.

If you feel the same way, you can disable or remove Azure Cloud Shell in the terminal.

Remove Azure Cloud Shell in Windows Terminal

You can remove it from Windows Terminal by deleting the Azure Cloud Shell profile.

To prevent Azure Cloud Shell from showing up again, you need to do two things: hide Azure Cloud Shell from the drop-down menu and prevent Windows Terminal from adding the profile automatically. Both of these things are easy to do. Here’s how to do it.

1. First, open Windows Terminal. Look for it in the Start menu or use the “wt.exe” run (Win+R) command.

2. Once the Windows Terminal is launched, select “Settings” from the pull-down menu in the title bar. You can also use the keyboard shortcut “Ctrl + ,” to open the “Settings” page.

3. Click on the “Open JSON file” option at the bottom of the sidebar. This action will open the Settings.json file in the default text editor.

4. In the JSON file, locate the “defaultProfile” line.

Related: How to change the default profile of a Windows terminal

5. Place the cursor at the end of the line (after the “,”) and press Enter to create a new line. Next, paste the following code.

What this code does is prevent the Azure Cloud Shell from being automatically added, even if you think you need a terminal. Thus, if you update or upgrade your terminal or other dependencies, you will not see the profile.

8629

6. Next, locate the “Azure Cloud Shell” profile in the “Settings.json” file. It will appear under the “Profiles” object.

7. Once the profile is found, set “hidden” to “true”. Setting this flag to “true” will remove Azure Cloud Shell from the Windows Terminal.

8. Finally, click “File > Save” or press “Ctrl+S” to save your changes in the Settings.json file. You may lose the editor after saving.

9. You can now remove the Azure Cloud Shell from the Windows Terminal. It will no longer appear in the drop-down menu.

That is all. It is as easy as deleting the Azure Cloud Shell in Windows Terminal.

We hope this brief guide has been helpful.

If you get stuck or need help, send us an email and we will do our best to help.

YouTube video: How to remove Azure Cloud Shell from Windows Terminal


Rate article
We provide high-quality and detailed Windows tutorials