Github Action for Azure Python Webapp:无法从发布配置文件中获取凭据 [英] Github Action for Azure Python Webapp: Failed to fetch credentials from Publish Profile

查看:59
本文介绍了Github Action for Azure Python Webapp:无法从发布配置文件中获取凭据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在通过Github Actions将Azure WebApp部署到Azure时出现上述scrrenshot错误.我已尝试多次断开和连接WebApp.感谢您的帮助.

I'm getting the error on above scrrenshot while Deploying the Azure WebApp to Azure by Github Actions. I have tried disconnecting and connecting the WebApp multiple times. Any help is appreciated.

推荐答案

  1. 转到Azure门户中的WebApp并下载发布配置文件.您将获得类似于以下内容的内容.

  1. Go to WebApp in Azure Portal and download publishing profile.You would get someting similar to the below.

<publishProfile profileName="[app-name] - Web Deploy" publishMethod="MSDeploy" publishUrl="waws-prod.publish.azurewebsites.windows.net:443" msdeploySite="[app-name]" userName="$[app-name]" userPWD="***" destinationAppUrl="http://[app-name].azurewebsites.net" SQLServerDBConnectionString="" mySQLDBConnectionString="" hostingProviderForumLink="" controlPanelLink="http://windows.azure.com" webSystem="WebSites">
    <databases />
</publishProfile>
<publishProfile profileName="[app-name] - FTP" publishMethod="FTP" publishUrl="ftp://waws-prod.ftp.azurewebsites.windows.net/site/wwwroot" ftpPassiveMode="True" userName="[app-name]\$[app-name]" userPWD="***" destinationAppUrl="http://[app-name].azurewebsites.net" SQLServerDBConnectionString="" mySQLDBConnectionString="" hostingProviderForumLink="" controlPanelLink="http://windows.azure.com" webSystem="WebSites">
    <databases />
</publishProfile>
<publishProfile profileName="[app-name] - ReadOnly - FTP" publishMethod="FTP" publishUrl="ftp://waws-prod.ftp.azurewebsites.windows.net/site/wwwroot" ftpPassiveMode="True" userName="[app-name]\$[app-name]" userPWD="***" destinationAppUrl="http://[app-name].azurewebsites.net" SQLServerDBConnectionString="" mySQLDBConnectionString="" hostingProviderForumLink="" controlPanelLink="http://windows.azure.com" webSystem="WebSites">
    <databases />
</publishProfile>

  • 将Web-Deploy的第一个发布配置文件上的发布URL更改为 [appname] .scm.azurewebsites.net 而不是

    waws-prod.publish.azurewebsites.windows.net

    转到Github并转到存储库.

    Go to Github and go to the repository.

    转到.github/workflows中的相应工作流yml文件,然后查找 $ {{机密.< SECRET_NAME>}} .记住< SECRET_NAME> .

    Go to the respective workflow yml file in .github/workflows and look for ${{ secrets.<SECRET_NAME> }}. Remember the <SECRET_NAME>.

    转到设置>机密,然后单击与您在上述步骤中记得的机密名称相对应的更新"按钮.

    Go to settings > secrets and click on 'update' button respective to the secret name you remember from above step.

    将XML代码粘贴到Value中,然后单击更新密码".

    Paste the XML code inside Value and click 'update secret'.

    转到操作",选择运行失败的工作流程,然后单击重新运行作业".

    Go to 'Actions' and select the failed workflow run and click 're-run jobs'.

    现在,您的Web Zip Deploy应该已成功.

    Now your Web Zip Deploy should be succesfull.

    这篇关于Github Action for Azure Python Webapp:无法从发布配置文件中获取凭据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

  • 查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆