I’ve been scratching my head for a while now on how to use a secrets file in an Azure DevOps build pipeline.
By a secrets file I’m referring to a part of your code that contains sensitive information like database connection strings, passwords or API keys. Secrets like this should never be deployed with the app or committed to source control but you all knew that anyway, right?
But if it isn’t in the repository how can you deploy it or use it in a build? In my particular case, a Python project, the secrets were stored in a config…
Although Python is a supported language in Azure Functions now, it isn’t what I’d call a first-class citizen. Below are some common pitfalls and workarounds to get an Azure Function written in Python to work.
Most likely you’ll want to use the latest version of Python, to do this:
python -c "import sys; print(sys.version)"