问题标签 [azure-app-service-plans]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
azure - Azure 应用服务隔离和安全
我App Services
在一个App Service plan
(基本小型)上托管了多个,它基本上是一个完全托管的 VM,它的所有资源都为我保留。这些都是 Asp.Net 应用程序。
由于我还有大量可用资源,我正在考虑将我的 WordPress 应用程序迁移到 Azure(每个都迁移到App Service
同一个App Service plan
.
不幸的是,WordPress 有被感染的趋势。此外,如果没有正确隔离,感染可能会传播到其他网站(受感染的网站可能会更改其他网站的文件)。
所以我的问题是:
如果我的 WordPress 网站之一被感染,是来自不同的其他网站App Services
,但同样App Service plan
有危险吗?
azure - VS Server Explorer - Azure Web Apps / Unable to Access App Service node
I'm getting the following error when I try to access the App Service node in the Server Explorer after connecting to my Azure Subscription.
Here's the complete Error Message.
I am able to access other nodes, just not the App Service node wherein I have 2 Apps installed and running. 1 is a Web App, the other is an Api App that I originally published as a ASP.Net Core API App.
Due to this, I'm having to FTP into the Site and browse through log files and download them to view them. Very time consuming and distressing.
Even after I deleted the ASP.Net Core API app I am still not able to access this node from within Visual Studio 2015.
asp.net-core - 使用 ConfigurationBuilder 检索 Web 应用连接字符串
我们将一些敏感密钥和连接字符串存储在 Web App 应用程序设置下的连接字符串部分:
我们使用以下方法检索配置设置ConfigurationBuilder
:
我本来希望AddEnvironmentVariables()
拿起这些连接字符串,但事实并非如此。请注意,如果您在 Web 应用程序中将这些值设置为“应用程序设置”,这确实有效。
经过仔细检查(使用 Kudu 控制台),我发现为这些连接字符串设置的环境变量具有CUSTOMCONNSTR_前缀到键名:
我现在应该如何使用ConfigurationBuilder
?
编辑:
我发现一个方便的AddEnvironmentVariables
重载存在一个prefix
参数,描述为:
但是添加.AddEnvironmentVariables("CUSTOMCONNSTR_")
到配置生成器也不起作用!
c# - Azure 应用服务上的服务器垃圾收集
是否可以在 Azure 应用服务上使用服务器垃圾收集?
我gcServer
在web.config
(D:\home\site\wwwroot\web.config) 中设置如下:
但GCSettings.IsServerGC
仍然返回false。
azure - 横向扩展 Azure 应用服务太慢
当我尝试扩展我的 Azure Web 应用程序时,我在应用程序的第二个或第三个实例上的请求响应时间非常慢。这似乎是因为其他实例处于冷模式,并且一旦负载均衡器将请求重定向到它们就必须切换到热模式。
问题是,在我的场景中,大多数时候系统上并没有发生太多事情,所以可能只有一个实例会通过负载均衡器使用,但每天大约有四次出现峰值,我需要多个实例. 但是,如果这些实例处于冷模式并且必须首先唤醒它实际上会使事情变得更糟。
问题是怎么办?
我已经将应用程序设置为“始终打开”,并将 ARR Affinity 设置为“关闭”。
过去,即使应用程序设置为“始终开启”,我的应用程序进入某种睡眠模式时也遇到过问题。我通过设置每小时调用应用程序的调度程序任务解决了这个问题。但我认为这不再适用于多个实例,因为该任务只会调用一个实例,而其他实例仍将保持睡眠模式。
有什么建议么?
azure - Azure Web App 上每个实例的指标发生了什么变化
Azure webapps 在监视组中具有每个实例的指标选项,该选项今天已消失。这允许查看应用服务中特定应用的内存和 CPU 使用情况。
azure - 如何在禁用订阅的情况下从 Azure 获取数据库
我想知道如何在禁用订阅的情况下从 Microsoft azure 获取数据库,我的订阅计划权益在一年后被禁用,现在我有一个新的按需付费订阅,但我无法从禁用的帐户中移动现有数据库到我的新帐户,或复制。
我怎样才能做到这一点?
azure - 来自 Azure Web 应用的一个实例的 HTTP 502
我们突然开始遇到来自我们 Web 应用程序实例之一的HTTP 502 错误 ( The specified CGI application encountered an error and the server terminated the process
) 。我能够使用 Kudu 的“支持”选项卡来确定这一点,您可以通过该选项卡深入了解每个实例的指标。
为实例重新启动 w3wp 后,一切都正常进行。资源使用(CPU/RAM)没有问题,奇怪的是 502 立即返回。因此,客户端的请求不会超时。
有哪些可能的步骤来调查为什么会发生这种情况?
我们的应用程序日志不会有任何内容,我们的 Web 服务器日志只有这些 502 的记录,但没有进一步的详细信息。