Created Publish Profile to Azure App Service for a .Net Framework Project and was able to validate the connection on Visual Studio.
Trying to setup CI/CD on GitHub Actions and getting error. Can someone help?
Workflow build step-
msbuild <Solutionfile>.sln /p:Configuration=Release /p:Configuration=Release /p:DeployOnBuild=true /p:PublishProfile=<Publishprofilename(pubxmlfilename)>
Added the Secret for PublishProfile from Azure App Services.
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VisualStudio\v16.0\Web\Microsoft.Web.Publishing.targets(4284,5): msdeploy error ERROR_USER_UNAUTHORIZED: Web deployment task failed. (Connected to the remote computer (“vsaspnetmvcapp.scm.azurewebsites.net”) using the Web Management Service, but could not authorize. Make sure that you are using the correct user name and password, that the site you are connecting to exists, and that the credentials represent a user who has permissions to access the site. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_USER_UNAUTHORIZED.) [D:\a\vsaspdotnet\vsaspdotnet\aspnetmvcapp\aspnetmvcapp.csproj]