Skip to main content

Start with your own code

Start from scratch or use your existing code. Open a terminal in your project folder, or an empty folder for a new app.

Prerequisite: Install azd

If you don't have the Azure Developer CLI yet, install it for your operating system:

winget install microsoft.azd

1. Initialize your app

azd init

When prompted, use the arrow keys to pick one of these options:

? How do you want to initialize your app?  [Use arrows to move, type to filter]
> Scan current directory
  Select a template
  Set up with GitHub Copilot (Preview)
Scan current directory
Prepares your existing app for Azure.
Set up with GitHub Copilot
Gets AI help building a new app or preparing existing code.

2. Provision and deploy

Review the generated files, then create the Azure resources and deploy your app:

azd up