Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue deploying with gpt4, auth, upload and chat history #2358

Open
rajesh-chawla opened this issue Feb 13, 2025 · 1 comment
Open

Issue deploying with gpt4, auth, upload and chat history #2358

rajesh-chawla opened this issue Feb 13, 2025 · 1 comment

Comments

@rajesh-chawla
Copy link

In a fresh directory, I executed:

azd init -t azure-search-openai-demo
azd auth login
azd env set AZURE_OPENAI_CHATGPT_MODEL gpt-4
azd env set AZURE_OPENAI_CHATGPT_DEPLOYMENT_VERSION turbo-2024-04-09
azd env set AZURE_OPENAI_CHATGPT_DEPLOYMENT_CAPACITY 10
azd env set AZURE_OPENAI_CHATGPT_DEPLOYMENT_SKU GlobalStandard
azd env set AZURE_USE_AUTHENTICATION true
azd env set USE_USER_UPLOAD true
azd env set USE_CHAT_HISTORY_COSMOS true
azd env get-values
azd up

Results show resource creation went well, however, 'provision' step failed with error below:

(✓) Done: Resource group: rg-rag (1.558s)
(✓) Done: Storage account: stphvax5imnfirg (368ms)
(✓) Done: Storage account: userstphvax5imnfirg (731ms)
(✓) Done: Azure Cosmos DB: cosmos-phvax5imnfirg (836ms)
(✓) Done: Azure OpenAI: cog-phvax5imnfirg (1.054s)
(✓) Done: Azure AI Services Model Deployment: cog-phvax5imnfirg/chat (1.503s)
(✓) Done: Log Analytics workspace: log-phvax5imnfirg (1.13s)
(✓) Done: Azure AI Services Model Deployment: cog-phvax5imnfirg/embedding (3.078s)
(✓) Done: Search service: gptkb-phvax5imnfirg (2.162s)
(✓) Done: Application Insights: appi-phvax5imnfirg (1.792s)
(✓) Done: Portal dashboard: dash-phvax5imnfirg (250ms)
(✓) Done: Container Registry: ragacrphvax5imnfirg (12.075s)
(✓) Done: Document Intelligence: cog-di-phvax5imnfirg (48.193s)
(✓) Done: Container Apps Environment: rag-aca-env (20.942s)
| ==| Creating/Updating resources
ERROR: error executing step command 'provision': deployment failed: error deploying infrastructure: deploying to subscription:

Deployment Error Details:
InvalidTemplateDeployment: The template deployment 'aca-web-update' is not valid according to the validation procedure. The tracking id is '27ea26f0-a248-489b-9638-ceb121ce44db'. See inner errors for details.
ValidationForResourceFailed: Validation failed for a resource. Check 'Error.Details[0]' for more information.
ContainerAppSecretInvalid: Invalid Request: Container app secret(s) with name(s) 'azureclientappsecret, azureserverappsecret' are invalid: value or keyVaultUrl and identity should be provided.

TraceID: 72d93bba5d4aa17e0b7d414c5841b735

@Cortex1-NeuroIQ-AI
Copy link

I am also getting the same error after enabling following features today:

optional features

  • Chat history
    • azd env set USE_CHAT_HISTORY_COSMOS true
  • Spech input
    • azd env set USE_SPEECH_INPUT_BROWSER true
  • Spech output
    • azd env set USE_SPEECH_OUTPUT_BROWSER true
  • Authentication
    • azd env set AZURE_USE_AUTHENTICATION true
    • run python ./scripts/manageacl.py --acl-action enable_acls
    • azd env set AZURE_ENFORCE_ACCESS_CONTROL true
    • azd env set AZURE_ENABLE_GLOBAL_DOCUMENT_ACCESS true
    • azd env set AZURE_AUTH_TENANT_ID XXX
    • azd up

ERROR: error executing step command 'provision': deployment failed: error deploying infrastructure: deploying to subscription:

Deployment Error Details:
InvalidTemplateDeployment: The template deployment 'aca-web-update' is not valid according to the validation procedure. The tracking id is '02efe6a6-a51c-4dee-a870-1198cc40ef74'. See inner errors for details.
ValidationForResourceFailed: Validation failed for a resource. Check 'Error.Details[0]' for more information.
ContainerAppSecretInvalid: Invalid Request: Container app secret(s) with name(s) 'azureclientappsecret, azureserverappsecret' are invalid: value or keyVaultUrl and identity should be provided.

TraceID: 6cf6e6b340da7d5229cd407471b090cf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants