func init is not recognized on the local machine

Ginu Samuel 31 Reputation points
2021-08-14T12:05:21.393+00:00

I am trying to solve the questions from -

AZ-204_lab_02.html

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.

TRY THIS:
az account get-access-token
Get an access token for the current account

https://learn.microsoft.com/en-US/cli/azure/account#az_account_get_access_token
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,679 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. AnuragSingh-MSFT 21,251 Reputation points
    2021-08-16T04:43:32.223+00:00

    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.