SubscriptionCostManagementView

class SubscriptionCostManagementView : KotlinCustomResource

Manages an Azure Cost Management View for a Subscription.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.SubscriptionCostManagementView;
import com.pulumi.azure.core.SubscriptionCostManagementViewArgs;
import com.pulumi.azure.core.inputs.SubscriptionCostManagementViewDatasetArgs;
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 example = new SubscriptionCostManagementView("example", SubscriptionCostManagementViewArgs.builder()
.accumulated(false)
.chartType("StackedColumn")
.dataset(SubscriptionCostManagementViewDatasetArgs.builder()
.aggregations(SubscriptionCostManagementViewDatasetAggregationArgs.builder()
.columnName("Cost")
.name("totalCost")
.build())
.granularity("Monthly")
.build())
.displayName("Cost View per Month")
.reportType("Usage")
.subscriptionId("/subscription/00000000-0000-0000-0000-000000000000")
.timeframe("MonthToDate")
.build());
}
}

Import

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

$ pulumi import azure:core/subscriptionCostManagementView:SubscriptionCostManagementView example /subscriptions/00000000-0000-0000-0000-000000000000/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 Subscription 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 Subscription. Changing this forces a new Cost Management View for a Subscription 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 subscriptionId: Output<String>

The ID of the Subscription this View is scoped to. Changing this forces a new Cost Management View for a Subscription 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>