What is GitHub Copilot for Azure Preview?

GitHub Copilot for Azure Preview is a GitHub Copilot extension that enables developers to use natural language to:

  • Learn about Azure features.
  • Deploy Azure resources.
  • Get information about Azure resources.
  • Diagnose and troubleshoot problems with Azure resources.

GitHub Copilot for Azure is currently available for Visual Studio Code. You must have access to an Azure subscription and be subscribed to GitHub Copilot.

GitHub Copilot is designed to help developers, including those who are new to Azure, to be more productive as quickly as possible. For experienced Azure users, GitHub Copilot for Azure saves time because they can access Azure functionality without needing to look up commands and arguments, and without needing to sign in and browse through the Azure portal.

Primary scenarios

GitHub Copilot for Azure Preview currently enables four primary scenarios:

Category Explanation Examples
Learn Learn about Azure services and tools from the latest Microsoft Learn documentation.
  • "@azure What are the available types of Azure OpenAI models?"
  • "@azure What is Azure AI Search and why should I use it?"
  • "@azure How does pricing work for Azure SQL?"
Design and develop
  • "@azure Can you help me build a RAG application with Python?"
  • "@azure Use azd to undeploy my project."
  • "@azure We are a pizza company and want to create an online customized pizza delivery solution. Create an API to accept pizza orders."
Deploy Create Azure resources and deploy apps.
  • "@azure Can you help me deploy my application?"
  • "@azure I need a CI/CD pipeline so I can get my app deployed."
  • "@azure Use azd to undeploy my project."
Troubleshoot Diagnose and troubleshoot application and resource problems.
  • "@azure What is using up my GPT-4o model quota?"
  • "@azure Find out why my store-service-prod Kubernetes cluster is running slow."
  • "@azure Why am I seeing 500 errors when opening my website?"
Optimize Answer questions about resources, including locations, settings, and resource health.
  • "@azure How many Azure OpenAI deployments do I have?"
  • "@azure Give me a count of storage accounts in eastus by subscription, sorted from largest to smallest."

The documentation provides a quickstart and example prompts to help you start using GitHub Copilot for Azure as quickly as possible.

How it works

GitHub Copilot for Azure Preview is built on a foundational large language model (LLM) like GPT-4o. It supplements the LLM's general knowledge with continuously updated knowledge from Microsoft Learn. Its intelligent agents interact with Azure services, systems, and Azure Resource Graph to carry out specific tasks on your behalf.

The GitHub Copilot Chat extension delivers the chat experience. You can open the chat extension as a pane in Visual Studio Code by selecting the Chat icon on the Activity Bar. In the chat pane, you can create a new chat, access a history of chat sessions, open a chat session in a full editor window, and more.

Best practices

Using copilots can increase developer productivity by answering questions, executing tasks, and generating code. However, remember these vital rules:

  • Review all AI-generated responses. Validate their correctness, applicability, potential outcomes (such as costs and security) before taking action based on those responses.
  • Never save application secrets or credentials in source code.
  • Never submit application secrets or credentials in questions or in code when you ask questions.

When you're working with any tool that's based on large language models, use good prompt engineering techniques for the best results. The following tips come from the article Write effective prompts for Microsoft Copilot in Azure, which provides advice for prompt engineering in the context of Azure.