0
点赞
收藏
分享

微信扫一扫

【Azure App Service】App Service设置访问限制后,使用git clone代码库出现403报错

问题描述

在App Service中,为App Service配置了访问限制,结果导致在克隆App Service的代码时候,遇见403错误。

【Azure App Service】App Service设置访问限制后,使用git clone代码库出现403报错_git

 

 

问题解答

因为在使用 git clone App Service的应用代码时,使用的URL地址为 https://***.scm.chinacloudsites.cn/***.git,它是通过公网访问,并且会根据设定的访问限制来放行或者是拒绝。

【Azure App Service】App Service设置访问限制后,使用git clone代码库出现403报错_git_02

所以解决403的问题就是放开Deny的限制,把需要执行git clone的本地机器公网IP地址加入到下面的Allow List中。

 

参考资料

Azure 应用服务访问限制: https://docs.azure.cn/zh-cn/app-service/overview-access-restrictions#how-it-works

【Azure App Service】App Service设置访问限制后,使用git clone代码库出现403报错_App_03

 

 

当在复杂的环境中面临问题,格物之道需:浊而静之徐清,安以动之徐生。 云中,恰是如此!

举报

相关推荐

0 条评论