我最近从旧的Power BI嵌入式方法更新到新的方法.一切正常,报告加载但在控制台我得到:
POST https://wabi-west-europe-redirect.analysis.windows.net/explore/explorations/2210976/cache 401 (Unauthorized)
Run Code Online (Sandbox Code Playgroud)
错误.我不知道这意味着什么以及我的配置是否有问题.有效载荷如下:
{"visualQueryResults":[{"visualContainerId":87590386,"...
Run Code Online (Sandbox Code Playgroud) 我正在实施一个团队机器人,并使用身份服务器作为我们在 Bot Channel 中设置的身份验证。使用时效果很好
var signInLink = await (turnContext.Adapter as IUserTokenProvider).GetOauthSignInLinkAsync(turnContext, _connectionName, cancellationToken);
但是,似乎我们无法通过添加例如 &acr_values=idp:Aad 来将首选登录方法添加到调用中,我找不到在创建链接时添加额外参数的方法,我希望它是创建链接时可以发送到 GetOauthSignInLinkAsync,但似乎不可能。
创建后将其添加到链接时 不起作用,即https://token.botframework.com/api/oauth/signin?signin=xxx&acr_values=idp:Aad有谁知道是否可以这样做?或者有一个解决方法的想法?问候马丁
更新:现在似乎正在运作.
我已将Azure Web App配置为4到10个实例,CPU负载超过80%且低于60%.

我们的站点现在已经超过95%的CPU负载超过两个小时,并且没有发生自动调节.
在查看"时间表和性能规则"时,我看到持续时间(分钟)为300.

我觉得这应该是10分钟,但是当我设置并保存(使用有效的验证规则)时,我收到此错误:

我做错了什么或门户网站是否有错误?
手动增加到5然后减少到4后,我可以看到自动调节在管理服务日志中正在工作:
ActiveAutoscaleProfile: { "Name": "Default", "Capacity": {
"Minimum": "2",
"Maximum": "10",
"Default": "2" }, "Rules": [
{
"MetricTrigger": {
"Name": "CpuPercentage",
"Namespace": "",
"Resource": "xxx",
"ResourceLocation": "West Europe",
"TimeGrain": "PT1H",
"Statistic": "Average",
"TimeWindow": "PT5H",
"TimeAggregation": "Average",
"Operator": "GreaterThanOrEqual",
"Threshold": 80.0,
"Source": "xxx"
},
"ScaleAction": {
"Direction": "Increase",
"Type": "ChangeCount",
"Value": "1",
"Cooldown": "PT5M"
}
},
{
"MetricTrigger": {
"Name": "CpuPercentage",
"Namespace": "",
"Resource": "xxx",
"ResourceLocation": "West Europe",
"TimeGrain": "PT1H",
"Statistic": "Average",
"TimeWindow": …Run Code Online (Sandbox Code Playgroud) 例如,如果我有这个方法:
IEnumerable<int> GetRandomNumbers()
{
// {Codes that generate numbers as List<int>}
if(generationFails == true)
{
return Enumberable.Empty<int>(); // I do this to signal that we have an error
}
return numbers;
}
Run Code Online (Sandbox Code Playgroud)
在调用方法中我做:
IEnumerable<int> AddNumber(int number)
{
var random = GetRandomNumbers();
var randomList = random as IList<int> ?? random.ToList(); // Run ToList only if needed
randomList.Add(number);
return randomList;
}
Run Code Online (Sandbox Code Playgroud)
当生成失败时,我得到一个异常"[NotSupportedException:Collection是固定大小的.]".
这是因为Enumerable empty是一个IList,因此.ToList()没有运行,然后我尝试添加到一个固定的Enumberable.Empty.我错误地认为这是一个糟糕的设计,一个继承IList的对象(其中定义了Add)应该支持Add?
我被迫做var randomList = random.ToList()或停止使用Enumberable.Empty?有更好的方法吗?
更新: 我想在我的例子中我不清楚.我希望吞下(或记录)错误,但允许操作继续而不会崩溃.我的评论"我这样做是为了表明我们有错误"是为了告诉其他开发人员阅读代码,这是一种异常行为.
蒂姆所关联的问题的答案就是我所得到的.似乎我们只是没有用于常量集合的接口,因此IList被使用.
我想从Azure网站(而不是Cloud Service)使用Azure表存储服务.有关如何使用Node.js执行此操作的指南,但我喜欢使用.NET MVC.
.NET的所有指南都讨论了如何将Azure存储连接信息存储在ServiceConfiguration中(就像在Cloud Service中一样),但在Azure网站中我没有这个(只是一个Web.config).如果我没有弄错的话,也不可能使用RoleEnvironment(用于从ServiceConfiguration读取)而不在Azure模拟器中运行,我不在AzureWeb站点中执行此操作.
是否可以从Azure网站访问表存储,如果可以,如何连接到它?
我看过这个问题,看起来并不相似.