Azure / azure-dev

A developer CLI that reduces the time it takes for you to get started on Azure. The Azure Developer CLI (azd) provides a set of developer-friendly commands that map to key stages in your workflow - code, build, deploy, monitor, repeat.
https://aka.ms/azd
MIT License
396 stars 190 forks source link

[Issue] `azd` Get started using Azure Developer CLI learn docs page "default" (todo app w/mongo db) template does not function as expected #3489

Open robch opened 6 months ago

robch commented 6 months ago

Output from azd version azd version 1.6.1 (commit eba2c978b5443fdb002c95add4011d9e63c2e76f)

Describe the bug Following the quick start here, when deployment is complete, the web app does not function, becuase there are no lists created by default. The create list button is disabled. The only way to get the sample to work properly is to create a new list via the api.

To Reproduce Follow default instructions here. Once deployed, click link. On learn page, looks like this: image

Clicking on web app link, you'll see spinning icon.

Expected behavior Icon is not spinning, and/or the create new list button is not disabled.

Environment Information on your environment:

rajeshkamal5050 commented 6 months ago

@hemarina can you triage it?

rajeshkamal5050 commented 6 months ago

Tried deploying https://github.com/Azure-Samples/todo-nodejs-mongo and the todo app seems to be working fine. Able to add, remove todo items to it.

Deploying services (azd deploy) (✓) Done: Deploying service api

SUCCESS: Your application was deployed to Azure in 9 minutes 20 seconds.

@robch @hemarina can you try again?

hemarina commented 6 months ago

@robch cc @rajeshkamal5050 Could you verify if service api work? Sometimes the content is not showing up after deployed. I'm able to create or delete todo items in web once api is working (wait for a few minutes on content). Deployed with the same azd version and vs code version. Could you provide which browser you are using?

rajeshkamal5050 commented 6 months ago

@hemarina service api seems working fine - https://app-api-ctdl25rqtvzge.azurewebsites.net/ using edge.

Also, fixing this feature request https://github.com/Azure/azure-dev/issues/3260 should alleviate some of the deployment related issues.