> ## Content Index
> Fetch the complete content index at: https://www.techielass.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Install and use Microsoft AI Shell
- URL: https://www.techielass.com/install-microsoft-ai-shell-copilot-in-azure/
- Published: 2025-09-23T07:01:39.000Z
- Updated: 2025-09-23T07:01:38.000Z
- Description: Explore Microsoft AI Shell — an interactive command-line tool that brings Copilot in Azure and GPT-4o to your terminal. Learn how to install it and get started with AI-powered CLI commands.
- Author: Sarah Lean
- Tags: Azure

The command-line interface (CLI) remains a key tool for IT operations and development workflows, sometimes it’s friendly, other times it’s syntax-heavy and frustrating. 

That’s where Microsoft’s new AI-powered shell tool can help - it’s called [AI Shell](https://learn.microsoft.com/powershell/utility-modules/aishell/overview?view=ps-modules&ref=techielass.com).

### What is AI Shell?

AI Shell is an interactive command-line experience that combines a chat interface with language models. It integrates directly into Windows Terminal and iTerm2 on macOS, offering an AI-assisted way to work with CLI tools.

AI Shell provides agents that connect to different AI models. In its initial release, AI Shell includes two: Azure OpenAI agent – connects to an instance of GPT-4o and handles general AI tasks. [Copilot in Azure](https://www.techielass.com/copilot-in-azure/) agent – assists specifically with Microsoft Azure questions and tasks.

The Azure OpenAI agent connects to an instance of gpt-4o and is the agent for general AI tasks. While the Copilot in Azure agent can assist with Microsoft Azure knowledge. 

Launched in 2025, AI Shell is currently in version v1.0.0-preview.6\. As with many preview tools, some features may be unfinished or prone to issues, and functionality is subject to change.

### Install AI Shell

To use AI Shell, you'll need to install both the CLI tool (aish) and the AI Shell [PowerShell](https://www.techielass.com/tag/powershell/) module.

On Windows, run the following script:

```PowerShell
Invoke-Expression "& { $(Invoke-RestMethod 'https://aka.ms/install-aishell.ps1') }"

```

For macOS or Linux, refer to the [official documentation](https://learn.microsoft.com/powershell/utility-modules/aishell/install-aishell?view=ps-modules&tabs=windows&ref=techielass.com#install-ai-shell-1) for platform-specific installation instructions.

![Install the AI Shell](https://lh7-rt.googleusercontent.com/docsz/AD_4nXfFTEbkBRVt1OQtsf6bW4Azu80T_68sMWjGgTm2T_8o7AU1eFZqQvoh6jrg9ITaadpHnQWyza-eCOmOXR8GRA7Lmgg1jGpFhJvIABaMY2CT7-uuRKTJc9EYYYEZ7vifUS73KnzE?key=3xD3QggKoPTS39LsRzcGew)

Install the AI Shell

### Get started with AI Shell

Once installed, you can start AI Shell by launching your terminal and running: **Start-AIShell**

![Starting the AI Shell](https://lh7-rt.googleusercontent.com/docsz/AD_4nXf9CnprzqMLqmFsqAdYNgxPG4oh4Yu4AXWhZMY0yv2nfvuXKk0XOcVri-T2Y6xTk03duhowCPURMISoxXRVVzcmagzutQFiR21q0C98Hmq2HE3fWB3KxJFs8JAH9T_r2EnzD5ob?key=3xD3QggKoPTS39LsRzcGew)

Starting the AI Shell

You’ll be prompted to select an AI agent. Let’s choose the Copilot in Azure agent for this example.

First of all make sure you are logged in to Azure via your shell, you can do this using the **az login** or **Connect-AzAccount** command, as Copilot in Azure will need to be able to login to your Azure environment to work correctly and answer your questions. 

Once you are logged in, select the “Azure” agent from the list. 

The agent should go through the log in process and you can start to interact with it. 

0:00 

/0:12 

1× 

Using the AI Shell

You can now ask questions like:

*"Create an Azure CLI command to deploy a resource group."*

The agent will respond with the exact CLI command to run.

![Using the AI Shell](https://lh7-rt.googleusercontent.com/docsz/AD_4nXfbSvX_ILCjb7lGQ-X_8Ik99Eby55zcAJwr-7mhtN4WJ9a7U-Q0F3Yea_W1ATgB0H3wceUb-vtqRmzg1i8G9p_C_n1rCT-YFSYDE2N0q4l2mIyryN7kPAbUgQytU1I3THFGK4S7?key=3xD3QggKoPTS39LsRzcGew)

Using the AI Shell

To use the Azure OpenAI agent, you’ll need to connect it to either: an Azure OpenAI resource you’ve deployed, or a valid OpenAI API account. Both are paid services. 

To configure this connection, create a JSON file with the relevant keys and endpoint information. Full details are available in the [official documentation](https://learn.microsoft.com/powershell/utility-modules/aishell/how-to/agent-openai?view=ps-modules&ref=techielass.com).

[![Buy me a coffee](https://storage.ghost.io/c/08/96/08960c71-63a2-449b-91b1-8d4628166dd2/content/images/2025/08/blogcoffee-2-3.png)](https://www.buymeacoffee.com/techielass?ref=techielass.com)

Buy me a coffee

### Conclusion 

The Microsoft AI Shell brings AI directly into your CLI, helping with common tasks and making using CLI more accessible. Whether you are managing Azure resources or exploring AI-powered command creation this preview tool is worth trying out, but keep in mind it is still evolving.