Edit

Share via


Quickstart: Deploy your project to Azure by using GitHub Copilot modernization

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

Deploy your project

Use the following steps to start the deployment process:

  1. In Visual Studio Code, open your migrated project.

  2. In the Activity sidebar, open the GitHub Copilot modernization extension pane.

  3. 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.

    Screenshot of Visual Studio Code that shows the Provision Infrastructure and Deploy to Azure task with the Run Task button highlighted.

  4. After you select the task, the Copilot chat window with Agent Mode opens automatically.

  5. 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.

  6. 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.

See also