本文介绍了发布 URL https://waws-prod-am2-xxx.publish.azurewebsites.windows.net/无法访问的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  • 我使用以下配置在 Azure 门户上创建了一个函数应用.
  • 我在 VS 2019 版本 16.7.6 上创建了一个简单的 HTTP 触发函数 App.该功能在本地机器上成功运行.当我想将它发布到 Azure 时,它​​返回以下错误;

发布遇到错误.发布网址

当我检查 VS(.pubxml 文件)上的发布配置文件时,我看到了这条线

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

但应该是的

<PublishUrl>http://myfuncappdss.scm.azurewebsites.net</PublishUrl>

我手动改了,还有其他没有检测到的错误

发布遇到错误.发布遇到错误.我们无法确定错误的原因.

已经有 2 天没有发布了.之前,我发布成功.我在谷歌上搜索它,但我找不到任何线索.

顺便说一句,我可以成功访问该功能的FTP文件.该功能在

我注意到您将发布 url 更改为 http://myfuncappdss.scm.azurewebsites.net,请将其更改为 https://myfuncappdss.scm.azurewebsites.net 然后再试一次.

如果我使用 http,我也无法发布我的函数应用程序.我不知道为什么发布 url 不是你想要的,但是 az 命令应该可以工作.使用 az 命令时有什么细节吗?

把http改成https,应该可以了.

  • I created a function app on Azure Portal with below configuration.
  • And I created a simple HTTP trigger Function App on VS 2019 version of 16.7.6. The function is working successfuly on local machine. When I want to publish it to Azure, it returns below error;

  • The publishing summary is;

When I check the publish profile on VS (.pubxml file), I see the line

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

But it should be

<PublishUrl>http://myfuncappdss.scm.azurewebsites.net</PublishUrl>

I change it manually and there is any other error that is not detected

It hasn't published for 2 days. Before, I published successfully. I search it on google but I couldn't find any clue.

Btw, I can reach the FTP file of the function successfully. And the function running successfully on https://myfuncappdss.azurewebsites.net/ site.I tried it with az command also but it wasn't work, too. All my teammates can't publish also. So, the problem is not just about my computer.Why is the PublishUrl set with wrong URL?

解决方案

Update:

Thanks for Aybuke's aharing, this is the reason of the problem:

The problem base is about function publish profile. When I follow the steps, (Go to Azure Portal-->Go to function app-->Overview menu-->Get Publish Profile) I can download the publish profile of function. So, I can see the publish settings of function. "publishUrl="https://waws-prod-am2-xxx.publish.azurewebsites.windows.net:443"" This line is in the publish profile file that I downloaded. But it should be "publishUrl="https://myfuncappdss.scm.azurewebsites.net"". That is why the published zip file is sent to wrong url. So, there are some problems while creating function on Azure Portal.

Original Answer:

Did you encounter this error?

I notice you change publish url to http://myfuncappdss.scm.azurewebsites.net, please change it to https://myfuncappdss.scm.azurewebsites.net and try again.

If I use http, I also can not publish my function app. I don't know why the publish url is not what you want, but the az command should work. Any details when you use az command?

Change http to https, it should work.

这篇关于发布 URL https://waws-prod-am2-xxx.publish.azurewebsites.windows.net/无法访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-29 04:50