Azure-Samples / chat-with-your-data-solution-accelerator

A Solution Accelerator for the RAG pattern running in Azure, using Azure AI Search for retrieval and Azure OpenAI large language models to power ChatGPT-style and Q&A experiences. This includes most common requirements and best practices.
https://azure.microsoft.com/products/search
MIT License
839 stars 433 forks source link

Deployment failed #1195

Closed yaowilli closed 3 months ago

yaowilli commented 3 months ago

While deploying this accelerator (https://github.com/Azure-Samples/chat-with-your-data-solution-accelerator/blob/main/docs/LOCAL_DEPLOYMENT.md) performing a local deployment i am getting the following error which does not provide much details { 'code': 'DeploymentFailed', 'target': '/subscriptions/f413fa15-c612-4fd4-85e8-949dd818aeee/resourceGroups/rg-rg-ipas-002/providers/Microsoft.Resources/deployments/backend-qrwpczu6q6ozk', 'message': 'At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.', 'details': [ { 'code': 'BadRequest', 'target': '/subscriptions/f413fa15-c612-4fd4-85e8-949dd818aeee/resourceGroups/rg-rg-ipas-002/providers/Microsoft.Web/sites/backend-qrwpczu6q6ozk/host/default/functionKeys/clientKey', 'message': '{\r\n \'Code\': \'BadRequest\',\r\n \'Message\': \'Encountered an error (InternalServerError) from host runtime.\',\r\n \'Target\': null,\r\n \'Details\': [\r\n {\r\n \'Message\': \'Encountered an error (InternalServerError) from host runtime.\'\r\n },\r\n {\r\n \'Code\': \'BadRequest\'\r\n },\r\n {\r\n
image \'ErrorEntity\': {\r\n \'Code\': \'BadRequest\',\r\n \'Message\': \'Encountered an error (InternalServerError) from host runtime.\'\r\n }\r\n }\r\n ],\r\n \'Innererror\': null\r\n}' } ]

instructions followed: https://github.com/Azure-Samples/chat-with-your-data-solution-accelerator/blob/main/docs/LOCAL_DEPLOYMENT.md

Roopan-Microsoft commented 3 months ago

Hi @yaowilli - Thanks for reaching out to us.

Can you please let us know more details on below points, while we are investigating this issue?

yaowilli commented 3 months ago

Hello

From: Roopan-Microsoft @.> Sent: Thursday, August 1, 2024 10:21 AM To: Azure-Samples/chat-with-your-data-solution-accelerator @.> Cc: Yao, William @.>; Mention @.> Subject: Re: [Azure-Samples/chat-with-your-data-solution-accelerator] Deployment failed (Issue #1195)

Hi @yaowillihttps://github.com/yaowilli - Thanks for reaching out to us.

Can you please let us know more details on below points, while we are investigating this issue?

— Reply to this email directly, view it on GitHubhttps://github.com/Azure-Samples/chat-with-your-data-solution-accelerator/issues/1195#issuecomment-2263575034, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AZAPQCPUC3GGJJAC2ZINFTDZPJU7JAVCNFSM6AAAAABLWXFCC2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENRTGU3TKMBTGQ. You are receiving this because you were mentioned.Message ID: @.**@.>>

yaowilli commented 3 months ago

activity_log_error

yaowilli commented 3 months ago

the error occurs during the execution of azd deploy inside azd up wrapper

yaowilli commented 3 months ago

Would you please have any suggestion ? This help page here is not helpful https://learn.microsoft.com/en-us/azure/azure-resource-manager/troubleshooting/common-deployment-errors

From: Roopan-Microsoft @.> Sent: Thursday, August 1, 2024 10:21 AM To: Azure-Samples/chat-with-your-data-solution-accelerator @.> Cc: Yao, William @.>; Mention @.> Subject: Re: [Azure-Samples/chat-with-your-data-solution-accelerator] Deployment failed (Issue #1195)

Hi @yaowillihttps://github.com/yaowilli - Thanks for reaching out to us.

Can you please let us know more details on below points, while we are investigating this issue?

— Reply to this email directly, view it on GitHubhttps://github.com/Azure-Samples/chat-with-your-data-solution-accelerator/issues/1195#issuecomment-2263575034, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AZAPQCPUC3GGJJAC2ZINFTDZPJU7JAVCNFSM6AAAAABLWXFCC2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENRTGU3TKMBTGQ. You are receiving this because you were mentioned.Message ID: @.**@.>>

AntonFLB commented 3 months ago

Any news on this topic, i am facing same issue when deploy the pack into our azure environment.

yaowilli commented 3 months ago

image

yaowilli commented 3 months ago

I was able to fix the issue

Vinay-Microsoft commented 3 months ago

Hi @yaowilli What did you do to fix this Issue?

yaowilli commented 3 months ago

add the storage blob data contributor and storage data reader roles to the managed identity of the function app and ensure that when deploying solution you have in bicep file @allowed(['Enabled', 'Disabled']) param publicNetworkAccess string = 'Enabled'

ross-p-smith commented 3 months ago

Hi @yaowilli - do you fancy putting together a Pull Request and I will review

yaowilli commented 3 months ago

sure how ?

atockar commented 2 months ago

Hi, I am still getting this issue. I have tried to deploy using the one click deployment and it fails in the same place, Screenshot 2024-08-30 at 4 35 42 pm

I can see the bicep file has been updated in the code, and I added the storage blob data contributor role for the storage account to the function app:

add the storage blob data contributor and storage data reader roles to the managed identity of the function app and ensure that when deploying solution you have in bicep file @Allowed(['Enabled', 'Disabled']) param publicNetworkAccess string = 'Enabled'

However when I redeploy this section it asks for the clientKey, which I thought was generated. Any ideas?