How to make changes in the code and deploy them on Azure in this project? #124
-
I modified the content of files in .\src\frontend\src folder but 'azd up' command do not notice them when deploying completely new and updating previously deployed environment to Azure cloud. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
@WinFXgit when you run azd up or deploy, only the pre-built docker image is deployed to the container app. To deploy your custom code, you need to run following this document which is mentioned in the readme file. https://learn.microsoft.com/en-us/azure/container-registry/container-registry-tutorial-quick-task We notice that many customers would like to deploy their own code, but unfortunately, we cannot offer this through azd up or deploy. We are looking for some alternative solution. |
Beta Was this translation helpful? Give feedback.
-
@howieleung Thank you for your answer. I read the article highlighted by you and built new image successfully. But still I am not able to deploy it (using 'azd up' command). Should I use my newly created ACR (placed in separate resource group) or there is an option that this project creates its own ACR (as might be suggested by ./infra/core/host/aks.bicep file with USE_CONTAINER_REGISTRY and AZURE_CONTAINER_REGISTRY_NAME variables?) and I should place the image only there? When I used my own ACR (placed in separate resource group) and replaced only the name of the image in two (why as many as two?) files (./infra/core/host/container-app.bicep and ./infra/main.json) from 'azdtemplate.azurecr.io/get-start-with-ai-agents:latest' to my own name '<MY_ACR_NAME>.azurecr.io/get-start-with-ai-agents:latest', I got following error in final step suggesting missing permissions: Deployment Error Details: Should I modify more files and add missing permissions somewhere (where?) or it might be configured using variables (USE_CONTAINER_REGISTRY, AZURE_CONTAINER_REGISTRY_NAME and others?) |
Beta Was this translation helpful? Give feedback.
@WinFXgit when you run azd up or deploy, only the pre-built docker image is deployed to the container app. To deploy your custom code, you need to run following this document which is mentioned in the readme file.
https://learn.microsoft.com/en-us/azure/container-registry/container-registry-tutorial-quick-task
We notice that many customers would like to deploy their own code, but unfortunately, we cannot offer this through azd up or deploy. We are looking for some alternative solution.