This repo is forked from digitalocean/sample-python. Compared with the original repo, a Dockerfile is added to work around azd deploy
issue.
Prepare Code to Cloud environment by following the steps below, or check Code to Cloud readme to learn more.
- Install VSCode-Insider.
- Install extension Github Copilot, Github Copilot Chat and login to Copilot.
- Clone the Code to Cloud project and checkout to stable branch.
git clone https://github.com/Azure/codeToCloud.git git checkout stable
- Open the project with VSCode-Insider
code-insiders --enable-proposed-api Microsoft.codetocloud codeToCloud/
- Install dependencies via
npm install
at the project root folder. - Run
Debug
task to start a debug window. - In debug VSCode window, open the project you want to test with CodeToCloud
- In debug Copilot chat window, run
@codetocloud /recommend
- In debug Copilot chat window, run
@codetocloud /generate
- Clone repo
git clone https://github.com/houk-ms/sample-python
- Init the repo with
azd init
cd sample-python/
azd init
- Deploy to Azure
azd up
- Clone repo
git clone https://github.com/houk-ms/sample-python
-
Open the project in debug VSCode Insider window, init the repo with CodeToCloud.
@codetocloud /recommend
: run this command in Github Copilot to analyze codes and get recommended azure services@codetocloud /generate
: run this command to generate bicep files and make the repo azd compatible
-
Deploy to Azure
azd up