用SCM关键字发布URL无法访问,这导致VS FAIL部署

发布于 2025-02-13 13:35:21 字数 962 浏览 1 评论 0原文

我试图从VS 2019中发布代码。它是在URL上发布的:https:xxx.scm.xxx。我检查了发布配置文件,并且在URL中具有SCM,这是正确的(如其他堆栈溢出帖子中所述),

1>Publishing C:\CLOUD\ADX\ADX-Integration\src\Adx.Integration\obj\Debug\netcoreapp3.1\PubTmp\Adx.Integration - 202207061539128.zip to https://XXXX.scm.azurewebsites.net/api/zipdeploy...1>The attempt to publish the ZIP file through https://XXXX.scm.azurewebsites.net/api/zipdeploy failed with HTTP status code Forbidden.

即使我无法在浏览器中访问它。它指定为错误403:禁止。图像与附件一样:

但是,当我尝试在没有SCM的情况下访问相同的URL时,它会显示这样的。

我检查了多个堆栈溢出帖子,但它们都没有解决此目的。我允许所有IP访问通过说明0.0.0.0/0,但仍在向门户网站和浏览器访问SCM的访问限制是失败的。请让我知道如何修复?

I am trying to publish the code from the VS 2019 .It is publish on the url : https:xxx.scm.xxx . I checked the publish profile and it is having scm in the url , which is correct (as mentioned in other stack overflow posts )

1>Publishing C:\CLOUD\ADX\ADX-Integration\src\Adx.Integration\obj\Debug\netcoreapp3.1\PubTmp\Adx.Integration - 202207061539128.zip to https://XXXX.scm.azurewebsites.net/api/zipdeploy...1>The attempt to publish the ZIP file through https://XXXX.scm.azurewebsites.net/api/zipdeploy failed with HTTP status code Forbidden.

Even I am not able to access it in the Browser . It states as Error 403 : forbidden . The image is as attached:
enter image description here

But when I try to access the same url without scm , it shows like this .

enter image description here

I checked multiple stack overflow posts but none of them solved the purpose .I have allowed all IP's in Access Restrictions by stating 0.0.0.0/0 but still publishing to portal and browser access for the address url with scm is failing . Please let me know how can this be fixed ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

伤痕我心 2025-02-20 13:35:21

我为重现问题和解决方案所做的解决方法之一是

  • 在所有托管计划中创建了Azure .Net Core 6功能应用程序,例如消费,应用程序服务计划,高级计划,并将功能应用程序发布给所有人他们。
  • 检查了功能应用程序网站以及kudu/scm网站 - 都运行良好。

消费计划功能应用程序结果

“在此处输入映像说明”

应用程序服务计划函数应用程序应用程序app < /strong>:

“在此处输入图像说明”

高级计划功能App :为高级计划功能应用程序工作。

但是,我观察到的一件事是在访问限制页面中,无论托管应用程序部署了什么托管计划

  1. 尝试尝试,我已经添加了系统IP地址的规则以在SCM站点中拒绝并检查:

“在此处输入图像说明”

结果

” SCM网站拒绝IP地址。要解决此问题,请添加您的IP地址,以在Azure函数应用程序的访问限制页面下允许在功能应用程序站点和SCM站点中添加IP地址。

One of the workarounds I did to reproduce the issue and fix is:

  • Created Azure .NET Core 6 Function App in all the hosting plans like Consumption, App Service Plan, Premium Plan and published the function app to all of them.
  • Checked the function app site as well as Kudu/SCM Site - both are working well.

Consumption Plan Function App Result:

enter image description here

App Service Plan Function App:

enter image description here

Premium Plan Function App: Working for the Premium Plan Function App also.

But one thing I observed is in the Access Restrictions Page whatever the hosting plan that the function app deployed:

  1. For a try, I have added the rule of my system IP address to deny in the SCM site and checked:

enter image description here

Result:
enter image description here

Hence, please check the Access restrictions page of your Azure Function App in the Portal in which your IP address is denied for the SCM Site. To resolve this issue, add your IP address to allow in both the Function App Site and SCM Site under the Access Restrictions Page of the Azure Function App.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文