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 tim
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>
Change the publishing url at the first publishing profile for Web-Deploy to [appname].scm.azurewebsites.net
instead of
waws-prod.publish.azurewebsites.windows.net
Go to Github and go to the repository.
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.
Paste the XML code inside Value and click 'update secret'.
Go to 'Actions' and select the failed workflow run and click 're-run jobs'.
Now your Web Zip Deploy should be succesfull.
For my case, i would like to add to the above answer that you need to add an app setting called WEBSITE_WEBDEPLOY_USE_SCM and set true. (I am using linux for my app service) and get publish profile. You will notice that the publish profile will automatically change waws-prod.publish.azurewebsites.windows.net to [example-app].scm.azurewebsites.net.
TLDR;