i am trying to publish a very simple app to Azure app service but i keep getting the below error :
I use a MS work account to sign into Visual Studio. I am getting this issue with 2019 and 2022 versions. As its a Azure active directory user, i am able to login in to azure portal from this use and other services as well. I am not which account to use and how to authenticate, other than using the WORK account .
Severity Code Description Project File Line Suppression State
Error Web deployment task failed. (Connected to the remote computer ("wafdemo212.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: https://go.microsoft.com/fwlink/?LinkId=221672#ERROR_USER_UNAUTHORIZED.) WAFSQLDemo 0