- Fork the repo to your own account, include ALL branches.
- Create a new Codespace.
- Open in VS Code Desktop (via File menu).
- Run
azd up
to provision only the Azure AI service. Choose "east us 2" region.
- Hit F5
- Go to http://localhost:3000 and view the application
- Run
azd env set WORKSPACE azure
- Run
azd up
. This will provision all Azure resources (AKS, Service Bus, etc) - Open WEB IP, which will be outputted to the terminal.
- Run
azd pipeline config
- Complete all the prompts
- View the actions either in VS Code
GitHub Actions
extension or on GitHub.com
- Run
azd auth login
- AZ Login
az login --scope https://graph.microsoft.com/.default
- AZ login from within Codespaces on Web (due to this issue: Azure/azure-cli#20315)
- Login. It will fail. Copy the "localhost" URL from the failed redirect.
- In Codespaces, open a new terminal.
- Run
curl {the url you copied earlier}
- Close that terminal.
- Go back to other terminal where you ran
az login
- It should show you your subscriptions.
- Continue to next step
- AZ login from within Codespaces on Web (due to this issue: Azure/azure-cli#20315)
- Run
az account set -n {sub}
to set right subscription.