Hello @29616528 ,
Apologies for the delayed response here. I went through the tutorial and was able to execute the tutorial. Following were the issues which I came across.
- In Unit 5 "Create function app" step when you run the command
az functionapp create \ --resource-group "$RESOURCEGROUP" \ --name "$FUNCTIONAPP" \ --storage-account "$STORAGEACCT" \ --runtime node \ --consumption-plan-location centralus \ --functions-version 2
I got the error as shown below
I changed the --functions-version
to version 3 and was able to execute the command.
az functionapp create \
--resource-group "$RESOURCEGROUP" \
--name "$FUNCTIONAPP" \
--storage-account "$STORAGEACCT" \
--runtime node \
--consumption-plan-location centralus \
--functions-version 3
- In Unit 5 after you publish your function app to Azure, I was getting 502 exceptions.
This error was due to the wrong Node Version you can run the command below to change it.
az functionapp config appsettings set --name $FUNCTIONAPP --resource-group $RESOURCEGROUP --settings "WEBSITE_NODE_DEFAULT_VERSION=~10"
After this I was able to execute the tutorial successfully.
Please let me know if you are facing any other errors while executing the tutorial. I have created a feedback item to rectify the issues above in the learning module.
Please let me know if there are any concerns. Thank you!