asp.net - 创建新的 Azure 应用服务时出现问题

标签 asp.net azure visual-studio azure-web-app-service azure-webapps

创建新的 Azure 应用服务时无法登录。我已经使用 Authenticator 登录,它甚至显示了我的帐户。我确信我已正确登录,并且我也有一个 Azure 帐户。当我登录时,它仍然显示相同的面板,就好像我没有登录一样。我正在关注 Microsoft official documentation 。看来这是 Visual Studio 的问题。提前致谢。 enter image description here

最佳答案

登录 Azure 帐户时,您在 Visual Studio 中遇到暂时性问题。关闭您的 Visual Studio 实例并重新打开它并尝试。

在您的 Windows 计算机中> 选择默认应用程序并选择默认浏览器为 Internet Explorer/Microsoft Edge,如下所示:-

enter image description here

在您的 Visual studio 中 > 从右上角选择您的帐户 > 帐户设置 > 并确保您对嵌入式 Web 浏览器和 URL 进行了以下设置:-

enter image description here

在同一帐户设置中,确保为 Azure 服务身份验证选择您的帐户,如下所示:-

enter image description here

根据这个MS问答论坛answer如果嵌入式 Web 浏览器问题仍然存在,请选择系统 Web 浏览器,然后使用您的 Azure 帐户重新登录。

enter image description here

单击“注销并再次登录”:-

enter image description here

另外,根据这个SO thread answers与您的问题相同:-

  • 关闭所有打开的 Visual studio IDE。

  • 转到本地应用程序数据并删除隐藏的“IdentityService”文件。

C:\Users\username\AppData\Local\.IdentityService

enter image description here

  • 删除所有临时文件并删除浏览器中的所有 Cookie。
C:\Users\username\AppData\Local\Temp

enter image description here

尝试使用在您的 Azure 订阅上分配了权限的其他帐户登录,然后使用您的帐户再次登录。

确保您登录的帐户至少在您的 Azure 订阅级别分配了贡献者角色,以便用户访问 Azure 订阅及其应用服务资源,如下所示:-

您可以像下面这样检查您的帐户访问权限,因为我分配了所有者角色,请确保您至少为您的 Azure 帐户分配了贡献者角色:-

enter image description here

除此之外,如果您在帐户下方弹出重新输入凭据的消息,请确保重新输入凭据并取消选择或选择正确的目录,如果默认情况下取消选择另一个目录,则默认目录将如下选择:-

enter image description here

enter image description here

其他引用:-

Visual Studio 2022 clear local caches - Microsoft Q&A

关于asp.net - 创建新的 Azure 应用服务时出现问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/76841281/

相关文章:

azure - 将 Application Insights 遥测处理器添加到 Azure Functions

azure - 如何使用个人帐户登录 Azure 托管 Grafana

c++ - 计算大小增加的 vector 的平均值

javascript更改文本框值onchange

c# - 将下拉列表绑定(bind)到下拉列表到详细信息 View ASP.NET C#

javascript - 如何使用 jquery 禁用列表框中的多项选择?还是javascript?

asp.net - 无效的回发或回调参数

azure - Azure 上的 Terraform - 我正在尝试在一个资源中调用另一个资源中的 for_each block 的结果

c++ - 无法解决警告C6386

c# - 如何在 Windows Phone 7 上将 BitmapImage 调整为 50x50?