ArmConsumptionModelFactory.ConsumptionModernUsageDetail Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of ConsumptionModernUsageDetail.
public static Azure.ResourceManager.Consumption.Models.ConsumptionModernUsageDetail ConsumptionModernUsageDetail (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, Azure.ETag? etag = default, System.Collections.Generic.IReadOnlyDictionary<string,string> tags = default, string billingAccountId = default, decimal? effectivePrice = default, Azure.ResourceManager.Consumption.Models.ConsumptionPricingModelType? pricingModel = default, string billingAccountName = default, DateTimeOffset? billingPeriodStartOn = default, DateTimeOffset? billingPeriodEndOn = default, string billingProfileId = default, string billingProfileName = default, string subscriptionGuid = default, string subscriptionName = default, DateTimeOffset? on = default, string product = default, Guid? meterId = default, string meterName = default, string meterRegion = default, string meterCategory = default, string meterSubCategory = default, string serviceFamily = default, decimal? quantity = default, string unitOfMeasure = default, string instanceName = default, decimal? costInUSD = default, decimal? unitPrice = default, string billingCurrencyCode = default, string resourceLocation = default, string consumedService = default, string serviceInfo1 = default, string serviceInfo2 = default, string additionalInfo = default, string invoiceSectionId = default, string invoiceSectionName = default, string costCenter = default, string resourceGroup = default, string reservationId = default, string reservationName = default, string productOrderId = default, string productOrderName = default, bool? isAzureCreditEligible = default, string term = default, string publisherName = default, string publisherType = default, string chargeType = default, string frequency = default, decimal? costInBillingCurrency = default, decimal? costInPricingCurrency = default, string exchangeRate = default, DateTimeOffset? exchangeRateOn = default, string invoiceId = default, string previousInvoiceId = default, string pricingCurrencyCode = default, string productIdentifier = default, string resourceLocationNormalized = default, DateTimeOffset? servicePeriodStartOn = default, DateTimeOffset? servicePeriodEndOn = default, string customerTenantId = default, string customerName = default, string partnerTenantId = default, string partnerName = default, string resellerMpnId = default, string resellerName = default, string publisherId = default, decimal? marketPrice = default, decimal? exchangeRatePricingToBilling = default, decimal? paygCostInBillingCurrency = default, decimal? paygCostInUSD = default, decimal? partnerEarnedCreditRate = default, string partnerEarnedCreditApplied = default, decimal? payGPrice = default, string benefitId = default, string benefitName = default, string provider = default, string costAllocationRuleName = default);
static member ConsumptionModernUsageDetail : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * Nullable<Azure.ETag> * System.Collections.Generic.IReadOnlyDictionary<string, string> * string * Nullable<decimal> * Nullable<Azure.ResourceManager.Consumption.Models.ConsumptionPricingModelType> * string * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * string * string * string * string * Nullable<DateTimeOffset> * string * Nullable<Guid> * string * string * string * string * string * Nullable<decimal> * string * string * Nullable<decimal> * Nullable<decimal> * string * string * string * string * string * string * string * string * string * string * string * string * string * string * Nullable<bool> * string * string * string * string * string * Nullable<decimal> * Nullable<decimal> * string * Nullable<DateTimeOffset> * string * string * string * string * string * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * string * string * string * string * string * string * string * Nullable<decimal> * Nullable<decimal> * Nullable<decimal> * Nullable<decimal> * Nullable<decimal> * string * Nullable<decimal> * string * string * string * string -> Azure.ResourceManager.Consumption.Models.ConsumptionModernUsageDetail
Public Shared Function ConsumptionModernUsageDetail (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional etag As Nullable(Of ETag) = Nothing, Optional tags As IReadOnlyDictionary(Of String, String) = Nothing, Optional billingAccountId As String = Nothing, Optional effectivePrice As Nullable(Of Decimal) = Nothing, Optional pricingModel As Nullable(Of ConsumptionPricingModelType) = Nothing, Optional billingAccountName As String = Nothing, Optional billingPeriodStartOn As Nullable(Of DateTimeOffset) = Nothing, Optional billingPeriodEndOn As Nullable(Of DateTimeOffset) = Nothing, Optional billingProfileId As String = Nothing, Optional billingProfileName As String = Nothing, Optional subscriptionGuid As String = Nothing, Optional subscriptionName As String = Nothing, Optional on As Nullable(Of DateTimeOffset) = Nothing, Optional product As String = Nothing, Optional meterId As Nullable(Of Guid) = Nothing, Optional meterName As String = Nothing, Optional meterRegion As String = Nothing, Optional meterCategory As String = Nothing, Optional meterSubCategory As String = Nothing, Optional serviceFamily As String = Nothing, Optional quantity As Nullable(Of Decimal) = Nothing, Optional unitOfMeasure As String = Nothing, Optional instanceName As String = Nothing, Optional costInUSD As Nullable(Of Decimal) = Nothing, Optional unitPrice As Nullable(Of Decimal) = Nothing, Optional billingCurrencyCode As String = Nothing, Optional resourceLocation As String = Nothing, Optional consumedService As String = Nothing, Optional serviceInfo1 As String = Nothing, Optional serviceInfo2 As String = Nothing, Optional additionalInfo As String = Nothing, Optional invoiceSectionId As String = Nothing, Optional invoiceSectionName As String = Nothing, Optional costCenter As String = Nothing, Optional resourceGroup As String = Nothing, Optional reservationId As String = Nothing, Optional reservationName As String = Nothing, Optional productOrderId As String = Nothing, Optional productOrderName As String = Nothing, Optional isAzureCreditEligible As Nullable(Of Boolean) = Nothing, Optional term As String = Nothing, Optional publisherName As String = Nothing, Optional publisherType As String = Nothing, Optional chargeType As String = Nothing, Optional frequency As String = Nothing, Optional costInBillingCurrency As Nullable(Of Decimal) = Nothing, Optional costInPricingCurrency As Nullable(Of Decimal) = Nothing, Optional exchangeRate As String = Nothing, Optional exchangeRateOn As Nullable(Of DateTimeOffset) = Nothing, Optional invoiceId As String = Nothing, Optional previousInvoiceId As String = Nothing, Optional pricingCurrencyCode As String = Nothing, Optional productIdentifier As String = Nothing, Optional resourceLocationNormalized As String = Nothing, Optional servicePeriodStartOn As Nullable(Of DateTimeOffset) = Nothing, Optional servicePeriodEndOn As Nullable(Of DateTimeOffset) = Nothing, Optional customerTenantId As String = Nothing, Optional customerName As String = Nothing, Optional partnerTenantId As String = Nothing, Optional partnerName As String = Nothing, Optional resellerMpnId As String = Nothing, Optional resellerName As String = Nothing, Optional publisherId As String = Nothing, Optional marketPrice As Nullable(Of Decimal) = Nothing, Optional exchangeRatePricingToBilling As Nullable(Of Decimal) = Nothing, Optional paygCostInBillingCurrency As Nullable(Of Decimal) = Nothing, Optional paygCostInUSD As Nullable(Of Decimal) = Nothing, Optional partnerEarnedCreditRate As Nullable(Of Decimal) = Nothing, Optional partnerEarnedCreditApplied As String = Nothing, Optional payGPrice As Nullable(Of Decimal) = Nothing, Optional benefitId As String = Nothing, Optional benefitName As String = Nothing, Optional provider As String = Nothing, Optional costAllocationRuleName As String = Nothing) As ConsumptionModernUsageDetail
Parameters
The id.
- name
- String
The name.
- resourceType
- ResourceType
The resourceType.
- systemData
- SystemData
The systemData.
- tags
- IReadOnlyDictionary<String,String>
Resource tags.
- billingAccountId
- String
Billing Account identifier.
- pricingModel
- Nullable<ConsumptionPricingModelType>
Identifier that indicates how the meter is priced.
- billingAccountName
- String
Name of the Billing Account.
- billingPeriodStartOn
- Nullable<DateTimeOffset>
Billing Period Start Date as in the invoice.
- billingPeriodEndOn
- Nullable<DateTimeOffset>
Billing Period End Date as in the invoice.
- billingProfileId
- String
Identifier for the billing profile that groups costs across invoices in the a singular billing currency across across the customers who have onboarded the Microsoft customer agreement and the customers in CSP who have made entitlement purchases like SaaS, Marketplace, RI, etc.
- billingProfileName
- String
Name of the billing profile that groups costs across invoices in the a singular billing currency across across the customers who have onboarded the Microsoft customer agreement and the customers in CSP who have made entitlement purchases like SaaS, Marketplace, RI, etc.
- subscriptionGuid
- String
Unique Microsoft generated identifier for the Azure Subscription.
- subscriptionName
- String
Name of the Azure Subscription.
Date for the usage record.
- product
- String
Name of the product that has accrued charges by consumption or purchase as listed in the invoice. Not available for Marketplace.
The meter id (GUID). Not available for marketplace. For reserved instance this represents the primary meter for which the reservation was purchased. For the actual VM Size for which the reservation is purchased see productOrderName.
- meterName
- String
Identifies the name of the meter against which consumption is measured.
- meterRegion
- String
Identifies the location of the datacenter for certain services that are priced based on datacenter location.
- meterCategory
- String
Identifies the top-level service for the usage.
- meterSubCategory
- String
Defines the type or sub-category of Azure service that can affect the rate.
- serviceFamily
- String
List the service family for the product purchased or charged (Example: Storage ; Compute).
Measure the quantity purchased or consumed.The amount of the meter used during the billing period.
- unitOfMeasure
- String
Identifies the Unit that the service is charged in. For example, GB, hours, 10,000 s.
- instanceName
- String
Instance Name.
Unit Price is the price applicable to you. (your EA or other contract price).
- billingCurrencyCode
- String
The currency defining the billed cost.
- resourceLocation
- String
Name of the resource location.
- consumedService
- String
Consumed service name. Name of the azure resource provider that emits the usage or was purchased. This value is not provided for marketplace usage.
- serviceInfo1
- String
Service-specific metadata.
- serviceInfo2
- String
Legacy field with optional service-specific metadata.
- additionalInfo
- String
Additional details of this usage item. Use this field to get usage line item specific details such as the actual VM Size (ServiceType) or the ratio in which the reservation discount is applied.
- invoiceSectionId
- String
Identifier of the project that is being charged in the invoice. Not applicable for Microsoft Customer Agreements onboarded by partners.
- invoiceSectionName
- String
Name of the project that is being charged in the invoice. Not applicable for Microsoft Customer Agreements onboarded by partners.
- costCenter
- String
The cost center of this department if it is a department and a cost center is provided.
- resourceGroup
- String
Name of the Azure resource group used for cohesive lifecycle management of resources.
- reservationId
- String
ARM resource id of the reservation. Only applies to records relevant to reservations.
- reservationName
- String
User provided display name of the reservation. Last known name for a particular day is populated in the daily data. Only applies to records relevant to reservations.
- productOrderId
- String
The identifier for the asset or Azure plan name that the subscription belongs to. For example: Azure Plan. For reservations this is the Reservation Order ID.
- productOrderName
- String
Product Order Name. For reservations this is the SKU that was purchased.
Determines if the cost is eligible to be paid for using Azure credits.
- term
- String
Term (in months). Displays the term for the validity of the offer. For example. In case of reserved instances it displays 12 months for yearly term of reserved instance. For one time purchases or recurring purchases, the terms displays 1 month; This is not applicable for Azure consumption.
- publisherName
- String
Name of the publisher of the service including Microsoft or Third Party publishers.
- publisherType
- String
Type of publisher that identifies if the publisher is first party, third party reseller or third party agency.
- chargeType
- String
Indicates a charge represents credits, usage, a Marketplace purchase, a reservation fee, or a refund.
- frequency
- String
Indicates how frequently this charge will occur. OneTime for purchases which only happen once, Monthly for fees which recur every month, and UsageBased for charges based on how much a service is used.
ExtendedCost or blended cost before tax in pricing currency to correlate with prices.
- exchangeRate
- String
Exchange rate used in conversion from pricing currency to billing currency.
- exchangeRateOn
- Nullable<DateTimeOffset>
Date on which exchange rate used in conversion from pricing currency to billing currency.
- invoiceId
- String
Invoice ID as on the invoice where the specific transaction appears.
- previousInvoiceId
- String
Reference to an original invoice there is a refund (negative cost). This is populated only when there is a refund.
- pricingCurrencyCode
- String
Pricing Billing Currency.
- productIdentifier
- String
Identifier for the product that has accrued charges by consumption or purchase . This is the concatenated key of productId and SkuId in partner center.
- resourceLocationNormalized
- String
Resource Location Normalized.
- servicePeriodStartOn
- Nullable<DateTimeOffset>
Start date for the rating period when the service usage was rated for charges. The prices for Azure services are determined for the rating period.
- servicePeriodEndOn
- Nullable<DateTimeOffset>
End date for the period when the service usage was rated for charges. The prices for Azure services are determined based on the rating period.
- customerTenantId
- String
Identifier of the customer's AAD tenant.
- customerName
- String
Name of the customer's AAD tenant.
- partnerTenantId
- String
Identifier for the partner's AAD tenant.
- partnerName
- String
Name of the partner' AAD tenant.
- resellerMpnId
- String
MPNId for the reseller associated with the subscription.
- resellerName
- String
Reseller Name.
- publisherId
- String
Publisher Id.
Exchange Rate from pricing currency to billing currency.
Rate of discount applied if there is a partner earned credit (PEC) based on partner admin link access.
- partnerEarnedCreditApplied
- String
Flag to indicate if partner earned credit has been applied or not.
- benefitId
- String
Unique identifier for the applicable benefit.
- benefitName
- String
Name of the applicable benefit.
- provider
- String
Identifier for Product Category or Line Of Business, Ex - Azure, Microsoft 365, AWS e.t.c.
- costAllocationRuleName
- String
Name for Cost Allocation Rule.
Returns
A new ConsumptionModernUsageDetail instance for mocking.