Azure-Samples / azure-search-openai-demo

A sample app for the Retrieval-Augmented Generation pattern running in Azure, using Azure AI Search for retrieval and Azure OpenAI large language models to power ChatGPT-style and Q&A experiences.
https://azure.microsoft.com/products/search
MIT License
6.13k stars 4.17k forks source link

"Write Tags" error when deploying #1997

Open Treuveni opened 1 month ago

Treuveni commented 1 month ago

This issue is for a:

- [x ] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

When running azd deploy on a newly created app, the deployment gets stuck and times out eventually. In the activity log, there is an error "Write tags"

Any log messages given by the failure

"properties": { "statusCode": "BadRequest", "serviceRequestId": null, "statusMessage": "{\"error\":{\"code\":\"InvalidTagValueLength\",\"message\":\"Tag value too large. Following tag value 'InstrumentationKey=12561a3c-4b73-4558-a76d-ff3050458316;IngestionEndpoint=https://switzerlandnorth-0.in.applicationinsights.azure.com/;LiveEndpoint=https://switzerlandnorth.livediagnostics.monitor.azure.com/;ApplicationId=f410f852-cfae-4e61-9db6-4da3b2705e0c' exceeded the maximum length. Maximum allowed length for tag value - '256' characters.\"}}", "eventCategory": "Administrative", "message": "Microsoft.Resources/tags/write",

Expected/desired behavior

The app should de deployed without this error

azd version?

azd version 1.10.1 (commit 31409a33266fb4a5fdbb644bc83988e725d6c7c9)

Mention any other details that might be useful

I tried disabling / chainging some tag settings in the bicep file, but it didn't resolve the issue.

pamelafox commented 1 month ago

Hm, I have not seen that error. Can you check the deployment link to see what resource it was provisioning when it got that error?

There's also discussion of a similar error here: https://stackoverflow.com/questions/78918734/azure-java-app-service-fails-to-start-due-to-tag-value-too-large-error-in-appl

cforce commented 1 month ago

No errors, not a single record in the eG deployments luu oh st. It seems to be an issue with rights or if logged in principal is/was user type or spi when all resources was created initial. Do not Gange this afterwards might be an advice. At least finally it wen’t away for me after I used the spi I once created with contribution rights on that resource group/s where all is contained which also created the bicep resources.

Pamela Fox @.***> schrieb am Fr. 27. Sept. 2024 um 23:07:

Hm, I have not seen that error. Can you check the deployment link to see what resource it was provisioning when it got that error?

There's also discussion of a similar error here:

https://stackoverflow.com/questions/78918734/azure-java-app-service-fails-to-start-due-to-tag-value-too-large-error-in-appl

— Reply to this email directly, view it on GitHub https://github.com/Azure-Samples/azure-search-openai-demo/issues/1997#issuecomment-2380060147, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADAARUMYG52LQTZN2Z5BHTZYXCILAVCNFSM6AAAAABO57GEGOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOBQGA3DAMJUG4 . You are receiving this because you are subscribed to this thread.Message ID: @.*** com>