Get-UsageAggregates PowerShell cmdlet 的 'continuationtoken' 问题

Issue with 'continuationtoken' with Get-UsageAggregates PowerShell cmdlet

我正在关注博客,以获取我的订阅的使用详情。

https://blogs.technet.microsoft.com/keithmayer/2015/06/30/export-azure-subscription-usage-to-csv-with-new-billing-api-and-powershell/

"Export Azure Usage via PowerShell using Get-UsageAggregates"(第 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。