如何使用Java或Rest获取云服务(托管服务)诊断数据?
我们可以从Azure获得DiagnosticsConnectionString的角色,并使用它可以查询到WADPerformanceCounter表(Storage )。
在执行时获取以下异常:
query:java.util.NoSuchElementException:枚举结果时发生错误,检查原始异常以获得详细信息。在com.microsoft.azure.storage.core.LazySegmentedIterator.hasNext(LazySegmentedIterator.java:113) at TestStorage.main(TestStorage.java:225)引起的: com.microsoft.azure.storage.table.TableServiceException:坏请求
发布于 2016-08-31 10:09:20
@Prit,你的问题中没有任何代码,所以我找不出是什么引起的问题。
因此,我在这里张贴我的步骤和代码,作为帮助参考。
DIAGNOSTICS CONNECTION STRINGS复制到Azure管理门户上的Cloud的选项卡CONFIGURE,其格式类似于DefaultEndpointsProtocol=https;AccountName=<storage-account-name>;AccountKey=<storage-key>。Micorsoft Azure Storage Explorer查找和查看表WADPerformanceCounter。

希望能帮上忙。
https://stackoverflow.com/questions/39228519
复制相似问题