ResourceGroupCostManagementView

class ResourceGroupCostManagementView : KotlinCustomResource

Manages an Azure Cost Management View for a Resource Group.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.core.ResourceGroupCostManagementView;
import com.pulumi.azure.core.ResourceGroupCostManagementViewArgs;
import com.pulumi.azure.core.inputs.ResourceGroupCostManagementViewDatasetArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleResourceGroupCostManagementView = new ResourceGroupCostManagementView("exampleResourceGroupCostManagementView", ResourceGroupCostManagementViewArgs.builder()
.displayName("Cost View per Month")
.chartType("StackedColumn")
.accumulated(false)
.resourceGroupId(exampleResourceGroup.id())
.reportType("Usage")
.timeframe("MonthToDate")
.dataset(ResourceGroupCostManagementViewDatasetArgs.builder()
.granularity("Monthly")
.aggregations(ResourceGroupCostManagementViewDatasetAggregationArgs.builder()
.name("totalCost")
.columnName("Cost")
.build())
.build())
.build());
}
}

Import

Cost Management View for a Resource Groups can be imported using the resource id, e.g.

$ pulumi import azure:core/resourceGroupCostManagementView:ResourceGroupCostManagementView example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resGroup1/providers/Microsoft.CostManagement/views/costmanagementview

Properties

Link copied to clipboard
val accumulated: Output<Boolean>

Whether the costs data in the Cost Management View are accumulated over time. Changing this forces a new Cost Management View for a Resource Group to be created.

Link copied to clipboard
val chartType: Output<String>

Chart type of the main view in Cost Analysis. Possible values are Area, GroupedColumn, Line, StackedColumn and Table.

Link copied to clipboard

A dataset block as defined below.

Link copied to clipboard
val displayName: Output<String>

User visible input name of the Cost Management View.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard

One or more kpi blocks as defined below, to show in Cost Analysis UI.

Link copied to clipboard
val name: Output<String>

The name which should be used for this Cost Management View for a Resource Group. Changing this forces a new Cost Management View for a Resource Group to be created.

Link copied to clipboard

One or more pivot blocks as defined below, containing the configuration of 3 sub-views in the Cost Analysis UI. Non table views should have three pivots.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val reportType: Output<String>

The type of the report. The only possible value is Usage.

Link copied to clipboard
val resourceGroupId: Output<String>

The ID of the Resource Group this View is scoped to. Changing this forces a new Cost Management View for a Resource Group to be created.

Link copied to clipboard
val timeframe: Output<String>

The time frame for pulling data for the report. Possible values are Custom, MonthToDate, WeekToDate and YearToDate.

Link copied to clipboard
val urn: Output<String>