The current directory is indeed read-only. Use /tmp for temporary files (for example, open('/tmp/test.json', ...). For more details, see https://docs.microsoft.com/en-us/azure/azure-functions/functions-reference-python#temporary-files.