You can accidentally publish a function to a Function App if you happen to be in the function folder.
Should do the following:
- Look for host.json in the current folder
- If not found, display the following message:
Warning: host.json not found in current folder. Proceed with publishing the current directory to Azure Function App $name?
- Add
--ignore
command line argument (-i
for short) to not prompt