func init is not recognized on the local machine

Ginu Samuel 31 Reputation points

I am trying to solve the questions from -


In the section - Task 3: Create a Function app,

8.On the Hosting tab, perform the following actions:
In the Storage account drop-down list, select the funcstor[yourname] storage account that you created earlier in this lab.

I am not able to see a way to link the storage account with the Azure function in the "Hosting tab" of Azure function ( while creation ) in the Azure portal.

Also in -

Exercise 2: Configure a local Azure Functions project

the command

func init --worker-runtime dotnet --force

is failing with the message

'func' is misspelled or not recognized by the system.

az account get-access-token
Get an access token for the current account
Read more about the command in reference docs

Kindly give some directions to resolve these issues.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,353 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. AnuragSingh-MSFT 20,431 Reputation points

    Hi @Ginu Samuel

    Welcome to Microsoft Q&A!

    func is part of "Azure Functions Core Tools" which can be installed using the instruction provided here: Install the Azure Functions Core Tools. Once you have installed the required version of Core Tools, please re-start the terminal/command.

    Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.

    4 people found this answer helpful.