简体   繁体   English

从Visual Studio,无法发布到Azure App Service

[英]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.

相关问题 在 Visual Studio 中从发布配置 azure 应用服务时遇到问题,无法访问端点 - Trouble configuring azure app service from publish in Visual Studio, can't access endpoints 是否可以通过Visual Studio在Linux服务计划上将ASP.NET Core应用发布到Azure AppService中? - Can I publish a ASP.NET Core app into an Azure AppService on a Linux Service Plan from Visual Studio? 无法从Visual Studio 2017调试和发布Azure Function - Unable to debug and publish Azure Function from Visual Studio 2017 从Visual Studio 2017发布到Azure SQL-无法连接 - Publish to Azure SQL from Visual Studio 2017 - Unable to connect 从Visual Studio发布Azure Web App不会更新网站 - Publish Azure Web App from Visual Studio does not update website 无法从 Visual Studio 2019 社区版附加到 Azure 应用服务 - Unable to attach to Azure App Service from Visual Studio 2019 Community edition 将服务器项目从Visual Studio发布到Azure - Publish the server project from Visual Studio to Azure 无法从Visual Studio发布到Azure - Cant publish to Azure from Visual Studio Visual Studio 2022 发布 window 警告我有关 Azure 应用服务不支持 Win-x64 - Visual Studio 2022 Publish window warning me about Azure App Service not supporting Win-x64 Azure从Visual Studio 2012发布 - Azure publish from Visual Studio 2012
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM