Azure Function VS deploy is failing with error "Publish URL is unreachable. The application may be stopped or restarting or unavailable"

Sri T 5 Reputation points
2023-09-02T20:54:35.59+00:00

Hi,

I am facing below issue and couldn't able succeed to publish azure function from my machine. I am able to publish from other machines for same azure function.

I tried to publish with VS 2022 17.7.2 & 17.7.3 versions and VS 2019 from my machine and still face the same issue. I verified that app is running and able to publish from other machines but not through my machine. Can you please help on how to resolve this issue.

I checked the publish file and publish url seems correct and no issue with them. In the log file, I don't see any useful information to debug.

Error:

Publish has encountered an error.

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

A diagnostic log has been written to the following location:

"C:...\Local\Temp\tmp1F85.tmp"

tmp1585.tmp file contains below info.

9/2/2023 1:36:17 PM
Microsoft.WebTools.Shared.Exceptions.WebToolsException: The Publish URL https://lbparamtestfun2019.scm.azurewebsites.net/ is unreachable. The application may be stopped, restarting or unavailable. Try again once the publish target is available.
   at Microsoft.WebTools.Azure.Functions.Publish.ZipDeployPublishProfileConfiguration.<PrePublishAsync>d__10.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.Publish.Framework.Nexus.PublishProfilesServiceImpl.ServerProjectProfilesManager.<RunPublishTaskAsync>d__55.MoveNext()

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

1 answer

Sort by: Most helpful
  1. JananiRamesh-MSFT 27,176 Reputation points
    2023-09-04T11:19:19.07+00:00

    Hi Sri T Thanks for reaching out. From the description I understand that you were not able to publish Azure functions from your machine whereas it got published successfully from other machines.

    could you please try the below suggestions?

    https://stackoverflow.com/questions/67281028/azure-function-publish-url-is-unreachable

    https://stackoverflow.com/questions/64430155/the-publish-url-https-waws-prod-am2-xxx-publish-azurewebsites-windows-net-is

    let me know if still the issue persists.

    1 person found this answer helpful.
    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.