How to get a .NET 8.0 (isolated) function app to appear in my release pipeline, or successfully deploy from Visual Studio

Richard Traviolia 0 Reputation points
2023-10-01T15:33:15.31+00:00

I made a new .NET 8.0 Isolated Function App on by B1 App Service plan three days ago and I'm used to being able to select my Azure Subscription, then "Function App on Windows", and then select the resource from the dropdown, but I see nothing in there. I tried to deploy to the function app directly from Visual Studio, and it reports success, but it does not have any of my functions listed when I go to the resource, and the Activity Log is full of Sync Web Apps Functions Triggers failures with this JSON(I scrubbed IDs, and didn't include what looked like irrelevant earlier information from the JSON):

"status": {
        "value": "Failed",
        "localizedValue": "Failed"
    },
    "subStatus": {
        "value": "BadRequest",
        "localizedValue": "Bad Request (HTTP Status Code: 400)"
    },
    "submissionTimestamp": "2023-10-01T05:07:10Z",
    "subscriptionId": "SUBSCRIPTIONID",
    "tenantId": "TENANTID",
    "properties": {
        "statusCode": "BadRequest",
        "serviceRequestId": null,
        "statusMessage": "{\"Code\":\"BadRequest\",\"Message\":\"Encountered an error (ServiceUnavailable) from host runtime.\",\"Target\":null,\"Details\":[{\"Message\":\"Encountered an error (ServiceUnavailable) from host runtime.\"},{\"Code\":\"BadRequest\"},{\"ErrorEntity\":{\"Code\":\"BadRequest\",\"Message\":\"Encountered an error (ServiceUnavailable) from host runtime.\"}}],\"Innererror\":null}",
        "eventCategory": "Administrative",
        "entity": "/subscriptions/SUBSCRIPTIONID/resourceGroups/RESOURCEGROUP/providers/Microsoft.Web/sites/FUNCTIONAPPNAME/host/default",
        "message": "Microsoft.Web/sites/host/sync/action",
        "hierarchy": "TENANTID/SUBSCRIPTIONID"
    },
    "relatedEvents": []

I set up build/release pipelines for .NET 6.0 In-Process function apps running on more powerful App Service Plans all the time without issues. Is this a .NET 8.0 preview issue, or have I messed up some configuration? I feel like I should at least be able to see the function app in the release pipeline to set it up, even if I get an error on/after deployment.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,909 questions
Developer technologies .NET Other
{count} votes

1 answer

Sort by: Most helpful
  1. MuthuKumaranMurugaachari-MSFT 22,441 Reputation points Moderator
    2023-10-02T17:47:47.4533333+00:00

    Richard Traviolia Thanks for posting your question in Microsoft Q&A. Based on the description, you are looking to deploy .NET 8 Preview version in Windows OS plan and faced some issues with the deployment.

    Have you already validated if the framework version (such as v8.0) is set correctly before deployment? Check out instructions in Using a preview .NET SDK as well as Considerations for using .NET preview versions doc to configure which SDK version to use in global.json.

    If you still face the issue, please open a new GitHub issue as described in https://github.com/Azure/azure-functions-dotnet-worker/issues/1644#issuecomment-1721391444 with details such as function core tools version, VS version, runtime, exception details etc. That would help in investigating and assisting you further.

    0 comments No comments

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.