Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get-PCUsage compatitble command #44

Closed
VaperWare opened this issue Nov 24, 2018 · 6 comments
Closed

Get-PCUsage compatitble command #44

VaperWare opened this issue Nov 24, 2018 · 6 comments
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@VaperWare
Copy link

I'm working on converting our billing module from the previous PartnerCenter version, I'm not finding a command that will return the resourceURI string that get-PCUsage does.

tia for any help

@ghost
Copy link

ghost commented Nov 25, 2018

Hi @VaperWare,

When you invoke the Get-PartnerCustomerSubscriptionUtilization it will return the resource URI. Are you finding that the value is missing?

You will need to pipe the output from the command through the Format-List command. The following is an example

Get-PartnerCustomerSubscriptionUtilization -CustomerId <Customer ID> -SubscriptionId <Subscription ID> -StartDate (Get-Date).AddDays(-2).ToUniversalTime() -EndDate (Get-Date).ToUniversalTime() -Granularity Daily -ShowDetails | FL -force *

When you do this all of the available properties will be written to the screen. The module is using a output formatter that set the default output style for certain commands. This was done due to the amount of data returned. We decided to implement it in this way to make it more friendly and output the most commonly used information by default.

I hope that this helps!

@ghost ghost self-assigned this Nov 25, 2018
@ghost ghost added help wanted Extra attention is needed good first issue Good for newcomers labels Nov 25, 2018
@VaperWare
Copy link
Author

Thanks for the update, I do see the URI information when it's piped to the screen, so I'm probably missing something, but is there not a way to return the URI back to an object for processing ?

@ghost
Copy link

ghost commented Nov 25, 2018 via email

@VaperWare
Copy link
Author

Isaiah,
Thanks for the clarification, I see them now in the object, a different way of looking at things.

@VaperWare
Copy link
Author

One last question on this command, is there a reliable way to pull the utilization records to match up to an invoice for URI reconciliation ?

@ghost
Copy link

ghost commented Jan 10, 2019

Hi @VaperWare,

This feature provides access to the same utilization data that is used to create and calculate the reconciliation file, but it does not have knowledge of billing system reconciliation file logic. Consequently, you should not expect reconciliation file summary results to exactly match the result retrieved from this API for the same time period. There is a possibility it might match, but odds are you will find minor differences between the two. See Get a customer's utilization records for Azure for additional details.

@ghost ghost closed this as completed Jan 10, 2019
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant