microsoft / teams-ai

SDK focused on building AI based applications and extensions for Microsoft Teams and other Bot Framework channels
MIT License
349 stars 143 forks source link

[Bug]: Not able to provision the application for deployment due to parameters missing. #1704

Closed ChetanSharma-msft closed 3 weeks ago

ChetanSharma-msft commented 1 month ago

Language

Javascript/Typescript

Version

latest

Description

Not able to provision the application for deployment due to parameters missing. https://github.com/microsoft/teams-ai/tree/main/js/samples/04.ai-apps/h.datasource-azureOpenAI

Reproduction Steps

Clone the code => Open in VS Code and Provision it => Getting multiple parameters errors.

Kindly add below for env.dev.user and env.local.user json files

SECRET_BOT_PASSWORD=
SECRET_AZURE_OPENAI_KEY=
AZURE_OPENAI_ENDPOINT=
TEAMS_APP_UPDATE_TIME=
SECRET_AZURE_SEARCH_KEY=
SECRET_AZURE_SEARCH_ENDPOINT=
SECRET_AZURE_OPENAI_ENDPOINT=

Also, .env file is missing:

[2024-05-31T12:05:06.664Z] [Error] - code:arm.MissingEnvironmentVariablesError, message: The program cannot proceed as the following environment variables are missing: 'SECRET_AZURE_OPENAI_KEY,SECRET_AZURE_OPENAI_ENDPOINT,SECRET_AZURE_SEARCH_KEY,SECRET_AZURE_SEARCH_ENDPOINT', which are required for file: c:\Users\v-chetsharma\source\AI-POC-Samples-FY24\teams-ai\js\samples\04.ai-apps\h.datasource-azureOpenAI\infra\azure.parameters.json. Make sure the required variables are set either by editing the .env file 'c:\Users\v-chetsharma\source\AI-POC-Samples-FY24\teams-ai\js\samples\04.ai-apps\h.datasource-azureOpenAI\env.env.dev' with the correct names and values , or by setting the system environment variables with the correct names and values. If you are developing with a new project created with Teams Toolkit, running provision or debug will register correct values for these environment variables. Help link: https://aka.ms/teamsfx-v5.0-guide#environments

corinagum commented 3 weeks ago

Hi @ChetanSharma-msft, the .env folder files should be updated.