Skip to content

Latest commit

 

History

History
20 lines (11 loc) · 719 Bytes

Get-PCUsage2.md

File metadata and controls

20 lines (11 loc) · 719 Bytes

Partner Center PowerShell Module (preview)

Get-PCUsage

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