We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Could you please check the issue reported in this forum thread? https://social.msdn.microsoft.com/Forums/en-US/aa0cd926-1bfe-40c9-925e-76607e074a6a/azure-usage-scaled-rates-pricing?forum=partnercenterapi The price calculated by this sample code is different from Azure calculator. The key difference is in : total = total + ((remainingUsage - LastKey + 1) * LastKeyValue); when the remaining usage is 1, and Last Key is 0, the real result would be (1-0+1)=2, so the real usage in this command is 2, not 1.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Could you please check the issue reported in this forum thread?
https://social.msdn.microsoft.com/Forums/en-US/aa0cd926-1bfe-40c9-925e-76607e074a6a/azure-usage-scaled-rates-pricing?forum=partnercenterapi
The price calculated by this sample code is different from Azure calculator. The key difference is in :
total = total + ((remainingUsage - LastKey + 1) * LastKeyValue);
when the remaining usage is 1, and Last Key is 0, the real result would be (1-0+1)=2, so the real usage in this command is 2, not 1.
The text was updated successfully, but these errors were encountered: