azureExpenseCalculator: Calculate cost of using a specific instance of Azure for...

Description Usage Arguments Value See Also

Description

Note if difference between timeStart and timeEnd is less than the finest granularity, e.g., "Hourly" (we notice this is a usual case when one needs to be aware of the charges of a job that takes less than an hour), the expense will be estimated based solely on computation hour. That is, the total expense is the multiplication of computation hour and pricing rate of the requested instance.

Usage

1
2
3
azureExpenseCalculator(azureActiveContext, instance = "", timeStart, timeEnd,
  granularity, currency, locale, offerId, region, verbose = FALSE,
  warn = TRUE)

Arguments

azureActiveContext

A container used for caching variables used by AzureSMR, created by createAzureContext()

instance

Instance name that one would like to check expense. It is by default empty, which returns data consumption for all instances under subscription.

timeStart

Start time.

timeEnd

End time.

granularity

Aggregation granularity. Can be either "Daily" or "Hourly".

currency

Currency in which price rating is measured.

locale

Locality information of subscription.

offerId

Offer ID of the subscription. For more information see https://azure.microsoft.com/en-us/support/legal/offer-details/

region

region information about the subscription.

verbose

If TRUE, prints verbose messages

warn

If FALSE, suppresses warnings about truncated data

Value

Total cost measured in the given currency of the specified Azure instance in the period.

See Also

Other Cost functions: azureDataConsumption, azurePricingRates


Microsoft/AzureSMR documentation built on July 7, 2019, 11:25 p.m.