Skip to content
| Marketplace
Sign in
Visual Studio Code>Azure>GitHub Copilot for AzureNew to Visual Studio Code? Get it now.
GitHub Copilot for Azure

GitHub Copilot for Azure

Microsoft

microsoft.com
|
895,628 installs
| (12) | Free
GitHub Copilot for Azure is the @azure extension. It's designed to help streamline the process of developing for Azure. You can ask @azure questions about Azure services or get help with tasks related to Azure and developing for Azure, all from within Visual Studio Code.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

What's GitHub Copilot for Azure?

GitHub Copilot for Azure is an Azure extension available in Visual Studio Code. It integrates support for GitHub Copilot agent and ask modes. Use Azure tools in agent mode to automatically complete Azure tasks, or chat with @azure in ask mode to get help with Azure services, development for Azure, and Azure DevOps tasks. Go to the release notes for details on the latest updates.

image

image

Note: GitHub Copilot for Azure currently only supports Windows x64, Windows ARM64, macOS x64, macOS ARM64 and Linux x64.

Agent mode

Agent mode can help you with completing Azure-related tasks by automatically using tools from GitHub Copilot for Azure. You can let agent mode decide on those tools, or you can guide the process by choosing particular tools from the GitHub Copilot for Azure toolset. GitHub Copilot for Azure tools are:

General

  • #azure_dotnet_template_tags: Gets the list of tags that can be used to filter the available dotnet templates.
  • #azure_get_dotnet_templates_for_tag: Gets the list of dotnet project templates available for dotnet new commands that match the given tag.

Resource Information

  • #azure_query_azure_resource_graph: Queries the Azure Resource Graph for information about resources, subscriptions, and resource groups that the you have access to. It is used to obtain detailed information about the your resources.

Account Information

  • #azure_get_auth_context: Gets the current state of authentication for the user, including which account you are signed in to, the current tenant in use and the default subscriptions selected.
  • #azure_set_auth_context: Sets the current state of authentication for the user. You can switch to a different account, change the tenant in use or select default subscriptions.

Azure MCP

GitHub Copilot for Azure installs Azure MCP Server extension as a dependency. Azure MCP Server offers a wide range of tools for developing applications using Azure services. You can learn more about what tools Azure MCP Server offers in this documentation.

How do I use GitHub Copilot for Azure tools in agent mode?

image

  1. Set mode to Agent in Chat.
  2. We recommend Claude Sonnet models for agent mode scenarios. This helps improve the invocation of the GitHub Copilot for Azure tools.
  3. Try to include details in your prompts, especially about your Azure resources.

Alternatively, if you want to select a specific tool, you can say #<name of the tool>, followed by your prompt. For general guidance on using agent mode, visit Use Agent mode in VS Code

Examples of prompts:

  • Create an Azure storage account and connect to a file upload app
  • Deploy a local Python Flask app to Azure
  • Create a ToDo web app and deploy it to Azure
  • Create a bicep file to deploy a MySQL database to West US 3 region

Ask mode

Ask mode can help you use natural language to interact with large language models to ask questions about the following Azure topics:

  • Learn about Azure: @azure can help with your questions about a variety of Azure services and technologies, such as AI, compute, containers, databases, DevOps, network, security, and storage.

image

  • Resource management: @azure can help with getting information about your Azure resources, including summarizing resource usage and resource-specific questions.

image

  • Diagnostics: @azure can help diagnose problems with services, such as Azure API Management, Azure Cache for Redis, Azure Container Apps, Azure Functions, Azure Kubernetes Services, and the Web Apps feature of Azure App Service.

image

  • Cost management: @azure can help estimate historical Azure costs.

image

  • Azure Developer CLI (azd) support: @azure can help you search for application templates and will provide instructions for how to initialize, configure, and deploy.

image

  • Bicep template generation: @azure can help create a Bicep template for building Azure infrastructure.

image

  • Terraform template generation: @azure can help create a Terraform template for building Azure infrastructure.

image

  • Code Optimizations (preview): @azure can help you fix Code Optimizations from your Application Insights resources.

image

How do I chat with @azure in ask mode?

image

  1. Set mode to Ask in Chat.
  2. Enter @azure to begin the conversation.
  3. Try to include details in your prompts, especially about your Azure resources, such as the specific resource and subscription ID. Ask follow-up questions if you need more information.

You can also find a shortcut in the context menu for items in the Azure Resources view.

Examples of prompts:

Learn about Azure

  • @azure What kinds of AI services does Azure offer?
  • @azure What’s the difference between Azure Container Apps and Azure Kubernetes Service?

Resource management

  • @azure What’s the URL for my webapp named [insert name]?
  • @azure How many storage accounts do I have in eastus?

Diagnostics and troubleshooting

  • @azure Summarize the recent logs in my Azure Container Apps/Azure Kubernetes Service application
  • @azure Help me diagnose a problem with Azure Kubernetes Service

Cost management

  • @azure Can you show me the cost breakdown by service for Aug 2024 for my current subscription?
  • @azure What was my most expensive resource last month?

Azure Developer CLI (azd) support

  • @azure Help me deploy my azd template to the cloud
  • @azure I'd like to build a Python web API with a MongoDB database and a React.js front end

Bicep template generation

  • @azure Give me a Bicep template for creating a key vault, a managed identity, and a role assignment for the managed identity to access the key vault
  • @azure Show me a Bicep template that creates an Azure Storage account with a blob container and a file share

Terraform template generation

  • @azure Show me a Terraform configuration that creates a web app named "mywebapp"
  • @azure Give me a terraform template to create a VM with a public IP address

Code Optimizations (preview)

  • @azure Show me code optimizations for my Application Insights named "myappinsightsinstance"
  • @azure Let's address the Code Optimizations GitHub Issue 123

How do I get started?

To use GitHub Copilot for Azure you’ll need:

  • An active GitHub Copilot license.
  • The GitHub Copilot Chat extension.
  • A Microsoft account.

New to Azure? Sign up for free and get a $200 credit to use on Azure services. Learn more about Azure

Privacy and preview terms

By using GitHub Copilot Chat, you agree to GitHub Copilot Chat preview terms. Review the transparency note to understand about usage, limitations, and ways to improve Copilot Chat during the technical preview.

Your code is yours. We follow responsible practices in accordance with our Privacy Statement to ensure that your code snippets will not be used as suggested code for other users of GitHub Copilot.

To get up-to-date security fixes, use the latest version of the Copilot extension and Visual Studio Code.

Telemetry

Visual Studio Code collects usage data and sends it to Microsoft to help improve our products and services. Read the Microsoft Privacy Statement to learn more. If you don't want to send usage data to Microsoft, you can set the telemetry.enableTelemetry setting to false. Get more information in the FAQ section.

More information about GitHub Copilot for Azure and GitHub Copilot

Learn more about GitHub Copilot for Azure.

Sign up for a free trial of GitHub Copilot.

  • If you're using Copilot for your business, learn more about Copilot Business and Copilot Enterprise.

Learn more about Responsible Use of GitHub Copilot Chat in your IDE.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft