< Back

Get-PartnerCustomerSubscriptionUtilization

Sat Jan 18, 2020 6:30 pm

NAME Get-PartnerCustomerSubscriptionUtilization



SYNOPSIS

Gets the utilization of a customer's Azure subscription.





SYNTAX

Get-PartnerCustomerSubscriptionUtilization -CustomerId <String> [-EndDate <DateTimeOffset>] [-Granularity {Daily |

Hourly}] [-PageSize <Int32>] -ShowDetails -StartDate <DateTimeOffset> -SubscriptionId <String> [<CommonParameters>]





DESCRIPTION

Gets the utilization of a customer's Azure subscription with a daily or hourly granularity.





PARAMETERS

-CustomerId <String>

The identifier of the customer.



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-EndDate <DateTimeOffset>

The end date (in UTC) of the usages to filter.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Granularity <AzureUtilizationGranularity>

The resource usage time granularity. Can either be daily or hourly. The default value is daily



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-PageSize <Int32>

The number of records returned with a single request to the partner service.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-ShowDetails [<SwitchParameter>]

Flag indicating whether or not utilization records will be aggregated on the resource level



Required? true

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-StartDate <DateTimeOffset>

The start date (in UTC) of the usages to filter.



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-SubscriptionId <String>

The identifier of subscription.



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

None







OUTPUTS

Microsoft.Store.PartnerCenter.PowerShell.Models.Utilizations.PSAzureUtilizationRecord







NOTES









-------------------------- 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.







RELATED LINKS

Online Version:

https://docs.microsoft.com/powershell/m ... tilization