Search code examples
azureazure-functionsazure-functions-core-tools

Can't find app with name error while publish the azure function


I tried to create an azure function using following link in Ubuntu system(16.04). [azure function][2]

Deployment using arm template and create a local azure function using vs code. Folder contains following files

LocalFunctionProj.csproj, HttpExample.cs, host.json, local.settings.json

azure function is created successfully in portal after deployment.But when i tried to publish the local azure function ,it shows an error Can't find app with name "HttpExample" while using following command

func azure functionapp publish HttpExample

Is anything wrong in my step.

Also i tried this command after 30 mnt when function created in portal

screen shot


Solution

  • If you want to publish the local app into azure ,you must create the functional app before in azure portal.Also the name of the azure function is portal should be same as the local azure app.otherwise you can't publish the app.