Get a customer
Select-PCCustomer -tenantid '<tenant id GUID>'
Get a subscription
Get-PCSubscription -all
Gets first page of utilization records of a customer's Azure subscription for a specified time period
$usageData = Get-PCUsage2 -subscriptionid $subscription.id -start_time "01-12-1999 00:00:00" -end_time "31-12-1999 00:00:00" -granularity {daily | hourly}-show_details <bool> -size <int>
Gets the next page of utilization records of a customer's Azure subscription for a specified time period
# Check the Links data includes a 'next' member
$usageData = Get-PCUsage2 -continuationLink $usageData.Links