Teams toolkit deployment error

Antony Rex S 20 Reputation points
2024-10-24T07:32:54.58+00:00

Hi all,

       I have created a new Chat bot in Azure open AI studio. Now I want to deploy it to on teams. By clicking Deploy button on vs code I receive some error 'Missing environment variables 'BOT_AZURE_APP_SERVICE_RESOURCE_ID'. Can anyone help me resolve the issue.I have attached the error message below.![vscode](/api/attachments/ed1bc385-85df-4a42-ab1e-04b863a3d82a?platform=QnA)
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,930 questions
0 comments No comments
{count} votes

Accepted answer
  1. Shree Hima Bindu Maganti 4,775 Reputation points Microsoft External Staff Moderator
    2024-10-25T05:03:12.6533333+00:00

    Hi @Antony Rex S ,

    welcome to the Microsoft Q&A Platform!

    The error message you're seeing indicates that the environment variable BOT_AZURE_APP_SERVICE_RESOURCE_ID is missing, which is required for deploying your Azure OpenAI chatbot to Microsoft Teams.
    Check Environment Variables in the .env File:

    • Open your project folder and find the .env file.
    • Ensure the variable BOT_AZURE_APP_SERVICE_RESOURCE_ID is set correctly.
    • If missing, add it in the format:
    BOT_AZURE_APP_SERVICE_RESOURCE_ID=<your-app-service-resource-id>
    

    Retrieve App Service Resource ID:

    • Go to the Azure portal.
    • Navigate to App Services and select your chatbot service.
    • Copy the Resource ID from the Overview section and paste it into the .env file. Restart VS Code:
    • Close and reopen Visual Studio Code to ensure it picks up the updated environment variables.
    • Click the Deploy button to redeploy your app.
      Check for Required Extensions:
    • Confirm that the Teams Toolkit and Bot Framework Extensions are installed in Visual Studio Code.
      If the answer is helpful, please click "Accept Answer" and kindly upvote it.

1 additional answer

Sort by: Most helpful
  1. Antony Rex S 20 Reputation points
    2024-10-24T07:34:09.7433333+00:00

    vscode

    This is the error message

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.