Azure 与'有关的问题;continuationtoken';使用Get-UsageAggregates PowerShell cmdlet

Azure 与'有关的问题;continuationtoken';使用Get-UsageAggregates PowerShell cmdlet,azure,azure-powershell,azure-billing-api,Azure,Azure Powershell,Azure Billing Api,我正在关注博客,获取订阅的使用详细信息 “使用Get-UsageAggregates通过PowerShell导出Azure使用情况”(第1部分) 我得到以下错误: Get-UsageAggregates : InvalidInput: Parameter continuationtoken was missing or had an unacceptable value. At line:30 char:18 + ... usageData = Get-UsageAggregates -Rep

我正在关注博客,获取订阅的使用详细信息

“使用Get-UsageAggregates通过PowerShell导出Azure使用情况”(第1部分)

我得到以下错误:

Get-UsageAggregates : InvalidInput: Parameter continuationtoken was missing or had an unacceptable value.
At line:30 char:18
+ ... usageData = Get-UsageAggregates -ReportedStartTime $reportedStartTime ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : CloseError: (:) [Get-UsageAggregates], CloudException
    + FullyQualifiedErrorId : Microsoft.Azure.Commands.UsageAggregates.GetUsageAggregatesCommand

如果有人已经解决了这个问题,请告诉我如何解决这个问题?

我将“”替换为$null,它似乎对continuationToken有效

我建议使用UsageDetails API而不是UsageAggregates。未维护UsageAggregates。