when deploy event grid reviewer web app, always get deployment failed, how can I fix this.

Matt_Yu_Zhang 20 Reputation points
2024-09-09T15:24:04.0133333+00:00

when I deploy the event grid pre-build reviewer app following the official document
https://video2.skills-academy.com/en-us/azure/event-grid/custom-event-quickstart-portal
and the source code git repository is https://video2.skills-academy.com/en-us/azure/event-grid/custom-event-quickstart-portal
it always return deployment failed.

I'm sure I just follow the official document, no more or less operation, but it always failed, does anybody have the same issue, how can I fix it.

Azure Event Grid
Azure Event Grid
An Azure event routing service designed for high availability, consistent performance, and dynamic scale.
393 questions
Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
966 questions
0 comments No comments
{count} votes

Accepted answer
  1. VenkateshDodda-MSFT 21,651 Reputation points Microsoft Employee
    2024-09-10T05:51:36.78+00:00

    @Matt_Yu_Zhang Thank you for reaching out to Microsoft Q&A, apologize for any inconvenience caused with this.

    I have also tried to create a message endpoint using the shared ARM template, we are also landed up with the same issue.

    Post the reviewing the deploying logs we see that deployment got failed while deploying the github source code to app service it is failing with error.

    Build FAILED.
    
    "C:\home\site\repository\viewer\viewer.csproj" (Restore target) (1) ->
    "C:\home\site\repository\viewer\viewer.csproj" (_GenerateRestoreGraphProjectEntry target) (1:5) ->
    (_CheckForUnsupportedNETCoreVersion target) -> 
      C:\Program Files (x86)\dotnet\sdk\2.2.109\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.TargetFrameworkInference.targets(137,5): error NETSDK1045: The current .NET SDK does not support targeting .NET Core 3.1.  Either target .NET Core 2.2 or lower, or use a version of the .NET SDK that supports .NET Core 3.1. [C:\home\site\repository\viewer\viewer.csproj]
    
        0 Warning(s)
        1 Error(s)
    

    As a workaround, we have pulled the source code to our local machine and tried building, publishing the source code from local visual studio to provisioned app service and able to request the endpoint without any issues.
    I have relayed the same feedback to content author they will be reviewing and updating the documentation accordingly.

    Hope this helps! Let me know if you have any further questions on this.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.