I have installed azure-tools-vscode, but don't know exactly how to use it for publishing the Azure function:
some steps I have tried are:
Windows PowerShell
Copyright (C) 2015 Microsoft Corporation. All rights reserved.
PS D:\azurenodejsfunctions>
PS D:\azurenodejsfunctions> func azure login
PS D:\azurenodejsfunctions> func azure account set <SubscriptionId>
PS D:\azurenodejsfunctions> func azure functionapp publish ..\azurenodejsfunctions\
Publish D:\azurenodejsfunctions contents to an Azure Function App. Locally deleted files are not removed from destination.
Getting site publishing info...
Can't find app with name "..\azurenodejsfunctions\" in current subscription.
PS D:\azurenodejsfunctions>
I tried the other way , created manually azure function app and then try:
PS D:\> func azure functionapp publish azurenodejsfunctions
Exception :
Unable to find function project root. Expecting to have host.json in function project root.
Files and folder structure,
Now mystery for me. Any ideas on why this happens & how to fix this?