[英]From Visual Studio, unable to publish to Azure App Service
Using this Official Azure tutorial . 使用此官方Azure教程 。 I have work Azure account that I can successfully login. 我有可以成功登录的工作Azure帐户。 The account allows $150 per month of which I have $93 left. 该帐户允许每月$ 150,其中我还有$ 93。
But, as instructed in Publish to Azure App Service
section of the tutorial, when I select Azure App Service
as the Publish Target on the wizard, it takes me to following screen where I sign in as my work Azure account. 但是,按照本教程的“ Publish to Azure App Service
部分中的说明,当我在向导上选择“ Azure App Service
作为“发布目标”时,将带我进入以下屏幕,以我的工作Azure帐户登录。 But it does nothing after I login, and the Next
button stayed grey. 但是登录后它什么也没做,并且“ Next
按钮保持灰色。 When I click on can't access account
button and fill in requested info, I get the next screen (also shown in the image below). 当我单击“ can't access account
按钮并填写所需的信息时,我得到下一个屏幕(也显示在下图中)。 I, then first successfully logged in to my Azure account from outside of VS2017
and then tried the above process again but still the same issue: 我,然后首先从VS2017
外部成功登录到我的Azure帐户,然后再次尝试上述过程,但仍然存在相同的问题:
UPDATE UPDATE
Moreover, I just deployed the same app using this Official Azure tutorial that is not
using Visual Studio
. 此外,我使用此官方Azure教程部署了not
使用Visual Studio
的同一应用程序。 But I want to able to deploy it using VS2017
as I create projects using VS2017
only. 但我想能够使用将其部署到VS2017
为我创建一个使用项目VS2017
只。
I think your problem is the identity (MS acct) which you are logged into VS2017 with. 我认为您的问题是您用来登录VS2017的身份(MS acct)。 You want to be sure that you are logged in to VS with the account which has rights to the subscription where you are trying to publish. 您要确保使用具有您尝试发布的订阅权限的帐户登录VS。 Assuming that's your org account: 假设这是您的组织帐户:
Click on your profile in the upper right corner and choose Account Settings. 单击右上角的个人资料,然后选择“帐户设置”。 The window that pops up has a link to Add an account. 弹出的窗口具有指向“添加帐户”的链接。 You'll want to add your org account here. 您将要在此处添加您的组织帐户。 Now VS has the proper creds to publish to your subscription. 现在,VS具有发布给您的订阅的适当信誉。
To verify that the creds are working, use the menu item View -> Cloud Explorer. 要验证凭据是否有效,请使用菜单项“视图”->“云资源管理器”。 You should see the other assets you've created in the target subscription. 您应该在目标订阅中看到您创建的其他资产。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.