Azure 数据资源管理器群集 - 详细信息:"Access to the resource is forbidden."
Azure Data Explorer Cluster - Details: "Access to the resource is forbidden."
我完成了这里的步骤。
https://docs.microsoft.com/en-us/azure/data-explorer/create-cluster-database-portal
集群创建的很好。创建了一个连接到集群的数据库。也定了。
接下来,我也能够提取数据(使用网络查询工具 - https://docs.microsoft.com/en-us/azure/data-explorer/web-query-data)。所以,我绝对可以访问创建集群的帐户。能够 运行 kusto 查询等等。
然后,我发现 Azure Data Explorer 与 Excel 和 Kusto 桌面工具(可在此处获取 - https://docs.microsoft.com/en-us/azure/kusto/tools/kusto-explorer)
配合使用效果很好
我尝试使用 Kusto 工具从桌面连接。
然后,我尝试通过 Excel 连接。
在这两种情况下,我都得到了完全相同的错误
详情:"Access to the resource is forbidden."
在 kusto 和 Excel 中,我获得了相同的登录流程(启用了 2 个因素的标准 Microsoft 帐户登录窗口)并且我能够登录,就像我在使用任何 Microsoft 服务时一样。
那么,为什么我会收到错误消息?
来自kusto的详细错误如下
"code": "Forbidden",
"message": "Caller is not authorized to perform this action",
"@type": "Kusto.Common.Svc.Exceptions.UnauthorizedOperationException",
"@message": "Principal 'msauser=xxx@live.com' is not authorized to perform operation 'DiagnosticsShowCommand' on 'https://xxx.southindia.kusto.windows.net:443/'.",
更新
添加到下面提供的解决方案中,请注意其他用户。如果网络查询工具也失败(并给出权限错误),在 Azure 门户中的集群资源下(在概述之后,但在同一部分),您可以选择直接 运行 查询。 (Select选项'Query')
您需要明确地将用户添加到数据库中。
.add database Test users ('msauser=john.doe@live.com') 'Test user (live.com)'
我完成了这里的步骤。
https://docs.microsoft.com/en-us/azure/data-explorer/create-cluster-database-portal
集群创建的很好。创建了一个连接到集群的数据库。也定了。
接下来,我也能够提取数据(使用网络查询工具 - https://docs.microsoft.com/en-us/azure/data-explorer/web-query-data)。所以,我绝对可以访问创建集群的帐户。能够 运行 kusto 查询等等。
然后,我发现 Azure Data Explorer 与 Excel 和 Kusto 桌面工具(可在此处获取 - https://docs.microsoft.com/en-us/azure/kusto/tools/kusto-explorer)
配合使用效果很好我尝试使用 Kusto 工具从桌面连接。
然后,我尝试通过 Excel 连接。
在这两种情况下,我都得到了完全相同的错误
详情:"Access to the resource is forbidden."
在 kusto 和 Excel 中,我获得了相同的登录流程(启用了 2 个因素的标准 Microsoft 帐户登录窗口)并且我能够登录,就像我在使用任何 Microsoft 服务时一样。
那么,为什么我会收到错误消息?
来自kusto的详细错误如下
"code": "Forbidden",
"message": "Caller is not authorized to perform this action",
"@type": "Kusto.Common.Svc.Exceptions.UnauthorizedOperationException",
"@message": "Principal 'msauser=xxx@live.com' is not authorized to perform operation 'DiagnosticsShowCommand' on 'https://xxx.southindia.kusto.windows.net:443/'.",
更新
添加到下面提供的解决方案中,请注意其他用户。如果网络查询工具也失败(并给出权限错误),在 Azure 门户中的集群资源下(在概述之后,但在同一部分),您可以选择直接 运行 查询。 (Select选项'Query')
您需要明确地将用户添加到数据库中。
.add database Test users ('msauser=john.doe@live.com') 'Test user (live.com)'