We have an Azure Function project that contains a specifically named file that makes local debugging much easier. However we do not want that file to ever be deployed to Azure.
The standard package and publish process explicitly knows about the file named local.settings.json
so that file is never deployed.
Some online docs and posts say that you can include a file in your project called .funcignore
that has the same syntax as .gitignore
. In there you should be able to specify files you do not want packaged.
The file we have is called local.funcdebugging.json
and has the file properties of
- Build Action: None
- Copy to Output Dir: Copy if newer
Our .funcignore file looks like this
## Files that should be ignored from Azure Deployment
# EasyAuth Debugging file
local.funcdebugging.json
Despite these settings the debugging file still get's deployed. How can I prevent this file being part of the Azure Deployment?