我已使用以下命令成功将Azure功能应用程序发布到Azure(Python函数):
(.env) PS C:\temp\python_function> func azure functionapp publish httpgengraph --build-native-deps --publish-local-settings -i
我在本地进行了一些代码更改并使用相同的命令重新发布,除了现在我的函数已经消失了?功能应用程序在那里'httpGenGraph',但实际功能完全缺失?例如,它现在显示“你已经创建了一个功能应用程序,现在是时候添加代码了”,好像没有代码一样? :(
我做错了什么?出版产出:
(.env) PS C:\temp\python_function> func azure functionapp publish httpgengraph --build-native-deps --publish-local-settings -i
Microsoft (R) Build Engine version 16.0.225-preview+g5ebeba52a1 for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.
Restore completed in 86.25 ms for C:\temp\python_function\extensions.csproj.
C:\Program Files\dotnet\sdk\2.1.600-preview-009426\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(143,5): message NETSDK1057: You are working with a preview version of the .NET Core SDK. You can define the SDK version via a global.json file in the current project. More at https://go.microsoft.com/fwlink/?linkid=869452 [C:\temp\python_function\extensions.csproj]
extensions -> C:\temp\python_function\bin\extensions.dll
Build succeeded.
0 Warning(s)
0 Error(s)
Time Elapsed 00:00:02.27
Getting site publishing info...
Running 'docker pull mcr.microsoft.com/azure-functions/python:2.0.12309'....done
Running 'docker run --rm -d mcr.microsoft.com/azure-functions/python:2.0.12309'..done
Running 'docker exec -t b6a2c0 mkdir -p /home/site/wwwroot/'..done
Running 'docker cp "C:\Users\jmatson\AppData\Local\Temp\ldmmjvea.loo/." b6a2c0:"/home/site/wwwroot"'.................done
Running 'docker cp "C:\Users\jmatson\AppData\Local\Temp\tmp8510.tmp" b6a2c0:"python_docker_build.sh"'..done
Running 'docker exec -t b6a2c0 chmod +x /python_docker_build.sh'..done
Running 'docker exec -t b6a2c0 /python_docker_build.sh'.......................................................................................................................................................................done
Running 'docker cp b6a2c0:"/app.zip" "C:\Users\jmatson\AppData\Local\Temp\ynfbuvdk.pbu"'....done
Running 'docker kill b6a2c0'..done
Preparing archive...
Uploading 183.07 MB [#############################################################################]
Upload completed successfully.
Deployment completed successfully.
Setting FUNCTIONS_WORKER_RUNTIME = ****
App setting AzureWebJobsStorage is different between azure and local.settings.json
Would you like to overwrite value in azure? [yes/no/show]
yes
Setting AWS_ACCESS_KEY = ****
Setting AWS_SECRET_KEY = ****
Syncing triggers...
Functions in httpGenGraph: