Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deployment issues function app #62

Closed
cwildridge opened this issue Dec 5, 2024 · 6 comments · Fixed by #63
Closed

Deployment issues function app #62

cwildridge opened this issue Dec 5, 2024 · 6 comments · Fixed by #63

Comments

@cwildridge
Copy link

Hello all,

I am experiencing an issue deploying the Azure function portion.

Here are the relevant error messages,


Waiting for function app 'CallInsights-function' to finish deployment.
C:\Projects\TeamsInsights\microsoft-teams-apps-callrecord-insights\deploy\deploy.ps1 : Failed to deploy function app 'CallInsights-function'. Getting deployment
logs...


2024-12-05T19:06:21.8545912Z:
2024-12-05T19:06:21.88585Z:
2024-12-05T19:06:21.901456Z: "C:\home\site\repository\src\Functions\CallRecordInsights.Functions.csproj" (default target) (1:7) ->
2024-12-05T19:06:21.9796167Z: (ResolvePackageAssets target) ->
2024-12-05T19:06:22.0420898Z:   C:\Program Files (x86)\dotnet\sdk\9.0.100\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets(266,5):
error NETSDK1060: Error reading assets file: Error loading lock file 'C:\home\site\repository\src\Functions\obj\project.assets.json' : Could not load file or
assembly 'System.Text.Json, Version=8.0.0.4, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The system cannot find the file
specified. [C:\home\site\repository\src\Functions\CallRecordInsights.Functions.csproj]
2024-12-05T19:06:22.1202161Z:
2024-12-05T19:06:22.1514556Z:     8 Warning(s)
2024-12-05T19:06:22.2139556Z:     1 Error(s)
2024-12-05T19:06:22.2764542Z:
2024-12-05T19:06:22.2920811Z: Time Elapsed 00:02:02.80
2024-12-05T19:06:22.3545777Z: Failed exitCode=1, command="C:\Program Files (x86)\MSBuilds\17.11.2\MSBuild\Current\Bin\MSBuild.exe" /restore
"C:\home\site\repository\src\Functions\CallRecordInsights.Functions.csproj" /p:DeployOnBuild=true /p:configuration=Release
/p:publishurl="C:\local\Temp\8dd155f9cbcc573"
2024-12-05T19:06:22.4327006Z: An error has occurred during web site deployment.
2024-12-05T19:06:22.5733191Z: \r\nC:\Program Files (x86)\SiteExtensions\Kudu\103.100930.002\bin\Scripts\starter.cmd "C:\home\site\deployments\tools\deploy.cmd"
2024-12-05T19:06:23.0420734Z: Deployment Failed.**

I have tried deploying to two different Resource Groups, and have this same issue on both. Everything seems to be created correctly in Azure that I can tell.

Any help would be appreciated.

@Justw-MSFT
Copy link
Collaborator

Hi @cwildridge, thank you for raising awareness of this issue. We are investigating now. Will update you with our findings and any actions that need to be taken.

@adthom adthom mentioned this issue Dec 6, 2024
@adthom
Copy link
Collaborator

adthom commented Dec 6, 2024

We have identified the issue. This appears to be due to an issue with the current version of dotnet in Azure functions.
see dotnet/sdk#43339
We are working to implement the workaround

@Justw-MSFT
Copy link
Collaborator

@cwildridge you should now be able to deploy successfully. Thank you for raising this issue!

@cwildridge
Copy link
Author

cwildridge commented Dec 11, 2024

Sorry for my delayed response. I will attempt the deployment today and post the results. Thank you!

@cwildridge
Copy link
Author

Deployment successful! Thank you so much for the help.

@Justw-MSFT
Copy link
Collaborator

Great to hear! Thanks again for reporting this issue @cwildridge!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants