初始登录时Azure AD身份验证速度变慢 [英] Azure AD Authentication Slow Upon Initial Login

查看:99
本文介绍了初始登录时Azure AD身份验证速度变慢的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发了一个Web应用程序,它使用Azure AD在访问Web应用程序时对用户进行身份验证。最初访问应用程序时,加载Microsoft登录页面需要20-30秒,这对应用来说太长了。在最初登录到
应用程序后,后续登录将花费<1秒来到达该页面。大约一个小时左右没有访问该页面,该应用程序再次需要20-30秒。是否有使用Azure AD的最佳实践,我可能不知道这会导致最初的
延迟?

I've developed a web app that uses Azure AD to authenticate users when visiting the web app. When initially visiting the app, it takes 20-30 seconds for the Microsoft login page to load, which is far too long for the app. After initially logging into the app, subsequent logins will take <1 second to reach the page. After about an hour or so of not visiting the page, the app again takes 20-30 seconds. Are there any best practices in using Azure AD that I might not be aware of that are causing the initial delay?

推荐答案

为了澄清一下,您是否在Azure App Service WebApps上托管了网站/应用程序?
Azure提供了几种方法主机网站:Azure App Service WebApps,虚拟机,Service Fabric和云服务。
参考文档
< span style ="font-size:10.0pt; font-family:'Verdana',sans-serif"> Azure应用服务,虚拟机,服务结构和云服务比较
有关此主题的更多详细信息。

Just to clarify, have you hosted the website/app on an Azure App Service WebApps? Azure offers several ways to host websites: Azure App Service WebApps, Virtual Machines, Service Fabric, and Cloud Services. Refer the documentation Azure App Service, Virtual Machines, Service Fabric, and Cloud Services comparison for more details on this topic.

如果是Azure WebApps,那么默认情况下,如果Web应用程序闲置一段时间,它们就会被卸载。这使系统可以节省资源。在基本模式或标准模式下,您可以启用
启用  始终开启以始终加载应用。

If it’s Azure WebApps, then by default, web apps are unloaded if they are idle for some period of time. This lets the system conserve resources. In Basic or Standard mode, you can enable Always On to keep the app loaded all the time.


  1. 从Azure门户转到您的WebApp。
  2. 选择  应用程序设置
  3. 对于  始终开启 ,选择  开启
  1. From the Azure Portal, go to your WebApp.
  2. Select Application settings.
  3. For Always On, select On.

请检查这是否有效,或者您需要有关此问题的进一步帮助以及有关应用程序框架的更多详细信息。


这篇关于初始登录时Azure AD身份验证速度变慢的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆