Hello @Gokul R Dev I've had a chance to look a little deeper & resolved the particular issue you're hitting but still haven't run through the entire tutorial. So here goes:
- I was able to reproduce the issue you're having by cloning the down the specific parts of the tutorial that concern the Functions which you're having the problem with from here: https://github.com/microsoft/MicrosoftCloud/tree/main/samples/acs-to-teams-meeting
- I assume that you've done similar steps and are working with the same code files. The Functions code downloaded is missing the
local.settings.json
file. You'll need to create this file and add the configuration values injson
format. This file is required for running Function App locally & contains some important configuration values such as language runtime, and connection to storage. For more on this file, please review the following doc: https://learn.microsoft.com/en-us/azure/azure-functions/functions-develop-local#local-settings-file - The Functions in the tutorial were written in Typescript and the corresponding setting (which is missing) should be FUNCTIONS_WORKER_RUNTIME set to
node
. - Azure Functions requires a storage solution for starting & running and in local environments, we use Azurite. So make sure you have it installed & started before you run your Function Apps. I recommend installing the VSCode extension for Azurite which is super easy to use.
With the above in place, the complete local.settings.json
file that worked for me for successfully running the tutorial code is as follows:
{
"IsEncrypted": false,
"Values": {
"FUNCTIONS_WORKER_RUNTIME": "node",
"AzureWebJobsStorage": "UseDevelopmentStorage=true"
},
"Host": {
"LocalHttpPort": 7071,
"CORS": "*",
"CORSCredentials": false
}
}
I created local.setting.json
file alongside the other files in VSCode:
Screenshot of the running functions:
I hope this answer is helpful and you're able to get unblocked to proceed to the next steps of the tutorial. If you continue to encounter problems, let me know in the comments and I'd happy to help!
Hi @Gokul R Dev
Microsoft Teams tag is mainly focused on the general issue of Microsoft Teams troubleshooting. Based on your description, this problem is related to Teams development. So, we will add Microsoft Teams Development tag to your thread. Thanks for your understanding and patience!
@MikeUrnun how can I change this in to --javascript? I can't find the option to edit the language used for functions already created.