SourceCostAllocationEntity Constructor

Definition

Initializes a new instance of SourceCostAllocationEntity.

public SourceCostAllocationEntity(Azure.ResourceManager.CostManagement.Models.CostAllocationResourceType resourceType, string name, System.Collections.Generic.IEnumerable<string> values);
new Azure.ResourceManager.CostManagement.Models.SourceCostAllocationEntity : Azure.ResourceManager.CostManagement.Models.CostAllocationResourceType * string * seq<string> -> Azure.ResourceManager.CostManagement.Models.SourceCostAllocationEntity
Public Sub New (resourceType As CostAllocationResourceType, name As String, values As IEnumerable(Of String))

Parameters

resourceType
CostAllocationResourceType

Type of resources contained in this cost allocation rule.

name
String

If resource type is dimension, this must be either ResourceGroupName or SubscriptionId. If resource type is tag, this must be a valid Azure tag.

values
IEnumerable<String>

Source Resources for cost allocation. This list cannot contain more than 25 values.

Exceptions

name or values is null.

Applies to