I am following the blog, to fetch usage details for my subscription.
"Export Azure Usage via PowerShell using Get-UsageAggregates" (part 1)
I am getting the below error:
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
If anyone has worked around this, please let me know how to solve this?
I replaced "" with $null and it seems to be working for the continuationToken.