抱歉,我是 Power BI 的新手。我正在使用 Power BI 调用 Azure API,该 API 将列出我订阅中的所有 VM,但是它只会在具有 nextLink 之前显示前 50 个。
这是我正在调用的 API;
https://management.azure.com/subscriptions/< subscription >/providers/Microsoft.Compute/virtualMachines?api-version=2017-12-01
Run Code Online (Sandbox Code Playgroud)
我见过其他页面和论坛有类似问题(例如Microsoft API),但不是针对 Azure API。我搞砸了他们的修复,但无法弄清楚如何将其应用于我的。
他们的代码;
let
GetUserInfo = (Path)=>
let
Source = Json.Document(Web.Contents(Path)),
LL= @Source[value],
result = try @LL & @GetUserInfo(Source[#"@odata.nextLink"]) otherwise @LL
in
result,
Fullset = GetUserInfo("https://graph.microsoft.com/beta/users?$select=manager&$expand=manager"),
#"Converted to Table" = Table.FromList(Fullset, Splitter.SplitByNothing(), null, null, ExtraValues.Error),
#"Expanded Column1" = Table.ExpandRecordColumn(#"Converted to Table", "Column1", {"id", "displayName", "manager"}, {"Column1.id", "Column1.displayName", "Column1.manager"}),
#"Expanded Column1.manager" = Table.ExpandRecordColumn(#"Expanded Column1", "Column1.manager", {"id", …Run Code Online (Sandbox Code Playgroud)