重新发布现有的Python Azure功能已完全删除了现有功能

问题描述 投票:0回答:2

我已使用以下命令成功将Azure功能应用程序发布到Azure(Python函数):

(.env) PS C:\temp\python_function> func azure functionapp publish httpgengraph --build-native-deps --publish-local-settings -i

我在本地进行了一些代码更改并使用相同的命令重新发布,除了现在我的函数已经消失了?功能应用程序在那里'httpGenGraph',但实际功能完全缺失?例如,它现在显示“你已经创建了一个功能应用程序,现在是时候添加代码了”,好像没有代码一样? :(

enter image description here

我做错了什么?出版产出:

(.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:
python azure azure-functions azure-cli
2个回答
0
投票

我看到网站在2019-04-18 03:06:53 UTC被删除,并在2019-04-18 03:16:03 UTC重新创建了相同的名称

在删除应用程序时,所有appsettings也将被删除。重新发布应该为您解决这个问题。


0
投票

从后端看,这个操作

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.