用SCM关键字发布URL无法访问,这导致VS FAIL部署
我试图从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:
But when I try to access the same url without scm , it shows like this .
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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我为重现问题和解决方案所做的解决方法之一是:
消费计划功能应用程序结果:
应用程序服务计划函数应用程序应用程序app < /strong>:
高级计划功能App :为高级计划功能应用程序工作。
但是,我观察到的一件事是在访问限制页面中,无论托管应用程序部署了什么托管计划:
结果:
” SCM网站拒绝IP地址。要解决此问题,请添加您的IP地址,以在Azure函数应用程序的访问限制页面下允许在功能应用程序站点和SCM站点中添加IP地址。
One of the workarounds I did to reproduce the issue and fix is:
Consumption Plan Function App Result:
App Service Plan Function App:
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:
Result:

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.