2017-06-15 186 views
1

当我尝试将我的网站从VS2017发布到Azure时,出现以下错误。 P.S:我已经为我的网站创建了一个Azure帐户和网址。错误描述:Azure Web部署

Web deployment task failed. (Connected to the remote computer ("rdproduct1.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 .)

+2

这明确指出您使用的是不正确的用户名和密码,因此我会确保100%拥有正确的凭据。 –

+0

我有同样的问题..我敢肯定凭据是正确的,因为我可以从Visual Studio发布......只是不使用dotnet发布或msbuild发布目标..也尝试传递Pasword参数..任何其他的想法? – diegohb

+0

这也不起作用...同样的错误:https://greatrexpectations.com/2013/02/02/publish-an-azure-web-site-from-the-command-line/ – diegohb

回答

0

有2个领域必须设置,以允许这种情况发生。 1)。 Azure门户 - 找到您要部署到的AppSvc资源。在动作选择刀片下,选择部署凭证。输入用户名& pw。它必须是唯一的,不需要绑定到您的电子邮件或登录2)在Visual Studio中。右键单击要部署的项目并选择发布。当发布页面显示时,在站点URL右侧的“摘要”部分中,您会看到“设置”超链接选择它。在现在出现的页面中,在标识的区域中输入您的用户名和密码。选择保存。回到上一页后,点击“发布”按钮。假设您的构建成功,应用程序应该将您的“身份验证”发布到Azure中的应用服务。