Hi @Shubham Tomar ,
After installing it needs a system restart. Request you to restart your system and give it a try.
Let us know how it goes. Looking forward for your response.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I am trying to run Azure Fuctions locally on Windows PC using VS Code. I have already installed Azure Functions Core Tools by following Microsoft Documentation but still facing the same issue. Please, help me to solve this issue.
Hi @Shubham Tomar ,
After installing it needs a system restart. Request you to restart your system and give it a try.
Let us know how it goes. Looking forward for your response.
This is for the Exercise - Create a function locally by using the Core Tools.
These are the command lines (one at a time) I used to get it to work (I am using bash).
You cannot make any root-level changes because you are not really using your computer.
mkdir "${HOME}/.npm-global"
npm config set prefix "${HOME}/.npm-global"
export PATH="${HOME}/.npm-global/bin:$PATH"
source ~/.bashrc
npm install -g azure-functions-core-tools@4 --unsafe-perm true
Also be careful when you select the trigger for the function, the exercise says 7 for HTTP trigger but check the Cloud Shell list. For me it was 8, not 7.
You have to repeat steps 2 to 4 if you get kicked out because of inactivity.
Hope this helped.
Hello,
Please try the next:
--------------------------------------------------------------------------------------------------------------------------
--If the reply is helpful, please Upvote and Accept as answer--
In attempting to work through the following exercise of Coursera course for AZ-204:
Exercise - Create a function locally by using the Core Tools
A bash shell command prompt is displayed along side the instructions and the first instruction is to run func init
, but when I do, I get back func command not found
. According to the instructions, the core tools should have already been installed but it appears that they are not. I cannot install them as I would require either sudo or root access to do so. What am I missing? How do I work through this exercise?
After setting the Environment Variable, then reopening the shell worked.
Thanks.