Get-PartnerCustomerSubscriptionUtilization
Gets the utilization of a customer's Azure subscription.
Syntax
Get-PartnerCustomerSubscriptionUtilization
-CustomerId <String>
[-EndDate <DateTimeOffset>]
[-Granularity <AzureUtilizationGranularity>]
[-PageSize <Int32>]
[-ShowDetails]
-StartDate <DateTimeOffset>
-SubscriptionId <String>
[<CommonParameters>]
Description
Gets the utilization of a customer's Azure subscription with a daily or hourly granularity.
Examples
Example 1
PS C:\> Get-PartnerCustomerSubscriptionUtilization -CustomerId <Customer ID> -SubscriptionId <Subscription ID> -StartDate [System.DateTimeOffset]::Now.AddDays(-1) -Granularity Hourly -ShowDetails
Gets a customer's Azure utilization for a specific subscription from a start date (specified in UTC) with a hourly granularity.
Example 2
PS C:\> Get-PartnerCustomerSubscriptionUtilization -CustomerId <Customer ID> -SubscriptionId <Subscription ID> -StartDate [System.DateTimeOffset]::Now.AddDays(-1) -EndDate [System.DateTimeOffset]::Now -Granularity Daily -ShowDetails
Gets a customer's Azure utilization for a specific subscription from a start date (specified in UTC) with a daily granularity.
Parameters
-CustomerId
The identifier of the customer.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-EndDate
The end date (in UTC) of the usages to filter.
Type: | DateTimeOffset |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Granularity
The resource usage time granularity. Can either be daily or hourly. The default value is daily
Type: | AzureUtilizationGranularity |
Accepted values: | Daily, Hourly |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-PageSize
The number of records returned with a single request to the partner service.
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ShowDetails
Flag indicating whether or not utilization records will be aggregated on the resource level
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-StartDate
The start date (in UTC) of the usages to filter.
Type: | DateTimeOffset |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SubscriptionId
The identifier of subscription.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Inputs
None
Outputs
Microsoft.Store.PartnerCenter.PowerShell.Models.Utilizations.PSAzureUtilizationRecord