我试图在.net 6中使用Linux 部署azure函数,并得到以下错误:
[error]Failed to deploy web package to App Service.
[error]Error: Package deployment using ZIP Deploy failed. Refer logs for more details.
Package deployment using ZIP Deploy initiated.
Updating submodules.
Preparing deployment for commit id 'ebe37cd5e6'.
Repository path is /tmp/zipdeploy/extracted
Running oryx build...
Command: oryx build /tmp/zipdeploy/extracted -o /home/site/wwwroot --platform dotnet --platform-version ~4
Operation performed by Microsoft Oryx, https://github.com/Microsoft/Oryx
You can report issues at https://github.com/Microsoft/Oryx/issues
Oryx Version: 0.2.20201015.1, Commit: 1a35fbce482b20b71290f3a837a3469803ce4b44, ReleaseTagName: 20201015.1
Build Operation ID: |ofFfo1rs+g4=.fd26d472_
Repository Commit : ebe37cd5e6074d0f928e688b2e718f70
Detecting platforms...
Could not detect any platform in the source directory.
Error: Couldn't detect a version for the platform 'dotnet' in the repo.
Error: Couldn't detect a version for the platform 'dotnet' in the repo.\n/opt/Kudu/Scripts/starter.sh oryx build /tmp/zipdeploy/extracted -o /home/site/wwwroot --platform dotnet --platform-version ~4
##[error]Failed to deploy web package to App Service.
##[error]Error: Package deployment using ZIP Deploy failed. Refer logs for more details.
Successfully added release annotation to the Application Insight有人知道这个错误意味着什么吗?
任何帮助都将不胜感激。
谢谢
发布于 2022-03-04 19:20:20
GitHub上有一个可能相关的问题。https://github.com/microsoft/Oryx/issues/1242
发布于 2022-03-21 20:00:34
我也遇到了类似的问题,并通过指定App启动选项(通过Portal或使用az webapp config set --startup-file)成功地解决了这个问题。
根据项目的配置方式,您需要"dotnet app.dll“或"dotnet app.exe”。
还有关于设置某些环境变量的其他信息,但是没有一个对我来说是成功的,而设置创业成功了。
https://stackoverflow.com/questions/71195439
复制相似问题