When I try to deploy an Azure Function to the cloud using... func azure functionapp publish appName --build remote --publish-local-settings
...I receive the following error
Getting site publishing info...
Remote build is a new feature added to function apps.
Your function app appName does not support remote build as it was created before August 1st, 2019.
Please use '--build local' or '--build-native-deps'.
For more information, please visit https://aka.ms/remotebuild
EVEN THOUGH THE APP WAS LITERALLY JUST CREATED IN AZURE PORTAL.
System: - Running VS Code on Ubuntu 18.04
Steps to reproduce:
- Create a new Function App (and support resources) using
az cli- Python runtime
- Consumption plan
- StandardV2 Storage plan
- AppInsights
- Create new Function (scaffolding) using VS Code Azure Functions extension
- Create
__init__.pyand configurelocal.settings.json - Open a terminal;
cdto Function folder - Run
func azure functionapp publish appName --build remote --publish-local-settings - Fails everytime with the message above
Tried so far:
- Substituting --build local.
- Looks like it wants to work, but fails with error
There was an error restoring dependencies. ERROR: cannot install cryptography-2.9.2 dependency: binary dependencies without wheels are not supported when building locally. Use the "--build remote" option to build dependencies on the Azure Functions build server, or "--build-native-deps" option to automatically build and configure the dependencies using a Docker container. More information at https://aka.ms/func-python-publish
Not going to try:
- --build-local-deps because I don't want a docker instance for my Function App
Please advise. This is painful at this point.
appNamedid you use when you run the commandfunc azure functionapp publish appName --build remote? Local function app name or the name of the function app you created on azure portal ?