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()
===================