Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
In this quickstart, you deploy your project to Azure by using GitHub Copilot modernization.
During development, you often need to deploy your project to a cloud environment for testing. The GitHub Copilot modernization extension automates the deployment process, deploying your migrated project to Azure and fixing any deployment errors along the way.
Prerequisites
- An Azure account with an active subscription. Create one for free.
- A GitHub account with an active GitHub Copilot subscription under any plan.
- One of the following IDEs:
- The latest version of Visual Studio Code (version 1.106 or later) with the following extensions:
- GitHub Copilot in Visual Studio Code. For setup instructions, see Set up GitHub Copilot in Visual Studio Code. Be sure to sign in to your GitHub account within Visual Studio Code.
- GitHub Copilot modernization. Restart Visual Studio Code after installation.
- The latest version of IntelliJ IDEA (version 2023.3 or later) with the following plugins:
- GitHub Copilot (version 1.5.59 or later). Be sure to sign in to your GitHub account within IntelliJ IDEA.
- GitHub Copilot modernization. Restart IntelliJ IDEA after installation.
- The latest version of Visual Studio Code (version 1.106 or later) with the following extensions:
Deploy your project
Use the following steps to start the deployment process:
In Visual Studio Code, open your migrated project.
In the Activity sidebar, open the GitHub Copilot modernization extension pane.
In the Tasks section, open Deployment Tasks and select Deploy to Existing Azure Infrastructure.
If you haven't provisioned infrastructure yet, see Quickstart: Prepare Azure infrastructure first.
After you select the task, the Copilot chat window with Agent Mode opens automatically.
Select Continue repeatedly to confirm each tool action in the Copilot Chat window. The Copilot Agent uses various tools to facilitate deployment to Azure. Each tool's usage requires confirmation by selecting Continue. Provide Copilot with the necessary information, like subscription and resource group, as it prompts you.
Copilot typically goes through the following steps to deploy your project:
- Copilot generates a deployment plan markdown file with the deployment goal, project information, Azure resource architecture, Azure resources, and execution steps.
- Copilot follows the execution steps in this file.
- Copilot fixes deployment errors.
- Copilot generates a summary file explaining the results of the deployment.
Note
We recommend using Claude Sonnet 4 or later models for the best results.
It might take Copilot a few iterations to correct deployment errors.
Customize with your own prompts
The Deploy to Existing Azure Infrastructure button sends a predefined prompt. For more control, type a custom prompt directly in the Copilot chat with Agent mode. This approach lets you specify deployment targets and preferences.
Tip
Example prompts for different scenarios:
"Deploy my app to the AKS cluster in subscription: <sub-id>, resource group: <rg-name>"- target a specific Kubernetes cluster."Deploy my containerized application to Azure Container Apps and configure auto-scaling with a minimum of 2 replicas"- specify scaling preferences.