Azure function publish url is unreachable

Hsiao, Circle 21 Reputation points
2021-04-27T12:57:21.487+00:00

My last publish was probably about three weeks ago, today, I changed the C# code a bit and publish. Then I ran into the error below

Publish has encountered an error.
The Publish URL https://functionName.scm.azurewebsites.net/ is unreachable. The application may be stopped, restarting or unavailable. Try again once the publish target is available.

The only similar thing I found is suggesting to correct the pubxml field

<PublishUrl>https://waws-prod-<something>.publish.azurewebsites.windows.net/</PublishUrl>

To

<PublishUrl>https://<function-name>.scm.azurewebsites.net/</PublishUrl>

In my case, it is correct already.

If I call the function by HTTP get, it behaves as usual.

I'm relevant new to azure, not sure if I missed something obvious.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,909 questions
{count} votes

1 answer

Sort by: Most helpful
  1. JayaC-MSFT 5,531 Reputation points
    2021-05-03T17:39:35.917+00:00

    @Hsiao, Circle , I haven't heard from you and did not receive the requested details via private session. However, I see this thread has been updated : https://stackoverflow.com/questions/67281028/azure-function-publish-url-is-unreachable

    1. Did you try to restart the function and check?
    2. Did you try some other deployment method?
    3. can you access your scm site ( Portal --> Function App --> Kudu ) from the Azure portal?

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.