question

ginusam-0519 avatar image
2 Votes"
ginusam-0519 asked SudiptaSaha-6375 published

func init is not recognized on the local machine

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://docs.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
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

AnuragSingh-MSFT avatar image
3 Votes"
AnuragSingh-MSFT answered SudiptaSaha-6375 published

Hi @ginusam-0519

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.


· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

thank you :-). It solved my issue

1 Vote 1 ·