We recommend using Azure Native.
azure.core.SubscriptionCostManagementView
Explore with Pulumi AI
Manages an Azure Cost Management View for a Subscription.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = new azure.core.SubscriptionCostManagementView("example", {
    name: "example",
    displayName: "Cost View per Month",
    chartType: "StackedColumn",
    accumulated: false,
    subscriptionId: "/subscription/00000000-0000-0000-0000-000000000000",
    reportType: "Usage",
    timeframe: "MonthToDate",
    dataset: {
        granularity: "Monthly",
        aggregations: [{
            name: "totalCost",
            columnName: "Cost",
        }],
    },
});
import pulumi
import pulumi_azure as azure
example = azure.core.SubscriptionCostManagementView("example",
    name="example",
    display_name="Cost View per Month",
    chart_type="StackedColumn",
    accumulated=False,
    subscription_id="/subscription/00000000-0000-0000-0000-000000000000",
    report_type="Usage",
    timeframe="MonthToDate",
    dataset={
        "granularity": "Monthly",
        "aggregations": [{
            "name": "totalCost",
            "column_name": "Cost",
        }],
    })
package main
import (
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := core.NewSubscriptionCostManagementView(ctx, "example", &core.SubscriptionCostManagementViewArgs{
			Name:           pulumi.String("example"),
			DisplayName:    pulumi.String("Cost View per Month"),
			ChartType:      pulumi.String("StackedColumn"),
			Accumulated:    pulumi.Bool(false),
			SubscriptionId: pulumi.String("/subscription/00000000-0000-0000-0000-000000000000"),
			ReportType:     pulumi.String("Usage"),
			Timeframe:      pulumi.String("MonthToDate"),
			Dataset: &core.SubscriptionCostManagementViewDatasetArgs{
				Granularity: pulumi.String("Monthly"),
				Aggregations: core.SubscriptionCostManagementViewDatasetAggregationArray{
					&core.SubscriptionCostManagementViewDatasetAggregationArgs{
						Name:       pulumi.String("totalCost"),
						ColumnName: pulumi.String("Cost"),
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() => 
{
    var example = new Azure.Core.SubscriptionCostManagementView("example", new()
    {
        Name = "example",
        DisplayName = "Cost View per Month",
        ChartType = "StackedColumn",
        Accumulated = false,
        SubscriptionId = "/subscription/00000000-0000-0000-0000-000000000000",
        ReportType = "Usage",
        Timeframe = "MonthToDate",
        Dataset = new Azure.Core.Inputs.SubscriptionCostManagementViewDatasetArgs
        {
            Granularity = "Monthly",
            Aggregations = new[]
            {
                new Azure.Core.Inputs.SubscriptionCostManagementViewDatasetAggregationArgs
                {
                    Name = "totalCost",
                    ColumnName = "Cost",
                },
            },
        },
    });
});
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()
            .name("example")
            .displayName("Cost View per Month")
            .chartType("StackedColumn")
            .accumulated(false)
            .subscriptionId("/subscription/00000000-0000-0000-0000-000000000000")
            .reportType("Usage")
            .timeframe("MonthToDate")
            .dataset(SubscriptionCostManagementViewDatasetArgs.builder()
                .granularity("Monthly")
                .aggregations(SubscriptionCostManagementViewDatasetAggregationArgs.builder()
                    .name("totalCost")
                    .columnName("Cost")
                    .build())
                .build())
            .build());
    }
}
resources:
  example:
    type: azure:core:SubscriptionCostManagementView
    properties:
      name: example
      displayName: Cost View per Month
      chartType: StackedColumn
      accumulated: false
      subscriptionId: /subscription/00000000-0000-0000-0000-000000000000
      reportType: Usage
      timeframe: MonthToDate
      dataset:
        granularity: Monthly
        aggregations:
          - name: totalCost
            columnName: Cost
Create SubscriptionCostManagementView Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SubscriptionCostManagementView(name: string, args: SubscriptionCostManagementViewArgs, opts?: CustomResourceOptions);@overload
def SubscriptionCostManagementView(resource_name: str,
                                   args: SubscriptionCostManagementViewArgs,
                                   opts: Optional[ResourceOptions] = None)
@overload
def SubscriptionCostManagementView(resource_name: str,
                                   opts: Optional[ResourceOptions] = None,
                                   accumulated: Optional[bool] = None,
                                   chart_type: Optional[str] = None,
                                   dataset: Optional[SubscriptionCostManagementViewDatasetArgs] = None,
                                   display_name: Optional[str] = None,
                                   report_type: Optional[str] = None,
                                   subscription_id: Optional[str] = None,
                                   timeframe: Optional[str] = None,
                                   kpis: Optional[Sequence[SubscriptionCostManagementViewKpiArgs]] = None,
                                   name: Optional[str] = None,
                                   pivots: Optional[Sequence[SubscriptionCostManagementViewPivotArgs]] = None)func NewSubscriptionCostManagementView(ctx *Context, name string, args SubscriptionCostManagementViewArgs, opts ...ResourceOption) (*SubscriptionCostManagementView, error)public SubscriptionCostManagementView(string name, SubscriptionCostManagementViewArgs args, CustomResourceOptions? opts = null)
public SubscriptionCostManagementView(String name, SubscriptionCostManagementViewArgs args)
public SubscriptionCostManagementView(String name, SubscriptionCostManagementViewArgs args, CustomResourceOptions options)
type: azure:core:SubscriptionCostManagementView
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args SubscriptionCostManagementViewArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args SubscriptionCostManagementViewArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args SubscriptionCostManagementViewArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SubscriptionCostManagementViewArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SubscriptionCostManagementViewArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var subscriptionCostManagementViewResource = new Azure.Core.SubscriptionCostManagementView("subscriptionCostManagementViewResource", new()
{
    Accumulated = false,
    ChartType = "string",
    Dataset = new Azure.Core.Inputs.SubscriptionCostManagementViewDatasetArgs
    {
        Aggregations = new[]
        {
            new Azure.Core.Inputs.SubscriptionCostManagementViewDatasetAggregationArgs
            {
                ColumnName = "string",
                Name = "string",
            },
        },
        Granularity = "string",
        Groupings = new[]
        {
            new Azure.Core.Inputs.SubscriptionCostManagementViewDatasetGroupingArgs
            {
                Name = "string",
                Type = "string",
            },
        },
        Sortings = new[]
        {
            new Azure.Core.Inputs.SubscriptionCostManagementViewDatasetSortingArgs
            {
                Direction = "string",
                Name = "string",
            },
        },
    },
    DisplayName = "string",
    ReportType = "string",
    SubscriptionId = "string",
    Timeframe = "string",
    Kpis = new[]
    {
        new Azure.Core.Inputs.SubscriptionCostManagementViewKpiArgs
        {
            Type = "string",
        },
    },
    Name = "string",
    Pivots = new[]
    {
        new Azure.Core.Inputs.SubscriptionCostManagementViewPivotArgs
        {
            Name = "string",
            Type = "string",
        },
    },
});
example, err := core.NewSubscriptionCostManagementView(ctx, "subscriptionCostManagementViewResource", &core.SubscriptionCostManagementViewArgs{
	Accumulated: pulumi.Bool(false),
	ChartType:   pulumi.String("string"),
	Dataset: &core.SubscriptionCostManagementViewDatasetArgs{
		Aggregations: core.SubscriptionCostManagementViewDatasetAggregationArray{
			&core.SubscriptionCostManagementViewDatasetAggregationArgs{
				ColumnName: pulumi.String("string"),
				Name:       pulumi.String("string"),
			},
		},
		Granularity: pulumi.String("string"),
		Groupings: core.SubscriptionCostManagementViewDatasetGroupingArray{
			&core.SubscriptionCostManagementViewDatasetGroupingArgs{
				Name: pulumi.String("string"),
				Type: pulumi.String("string"),
			},
		},
		Sortings: core.SubscriptionCostManagementViewDatasetSortingArray{
			&core.SubscriptionCostManagementViewDatasetSortingArgs{
				Direction: pulumi.String("string"),
				Name:      pulumi.String("string"),
			},
		},
	},
	DisplayName:    pulumi.String("string"),
	ReportType:     pulumi.String("string"),
	SubscriptionId: pulumi.String("string"),
	Timeframe:      pulumi.String("string"),
	Kpis: core.SubscriptionCostManagementViewKpiArray{
		&core.SubscriptionCostManagementViewKpiArgs{
			Type: pulumi.String("string"),
		},
	},
	Name: pulumi.String("string"),
	Pivots: core.SubscriptionCostManagementViewPivotArray{
		&core.SubscriptionCostManagementViewPivotArgs{
			Name: pulumi.String("string"),
			Type: pulumi.String("string"),
		},
	},
})
var subscriptionCostManagementViewResource = new SubscriptionCostManagementView("subscriptionCostManagementViewResource", SubscriptionCostManagementViewArgs.builder()
    .accumulated(false)
    .chartType("string")
    .dataset(SubscriptionCostManagementViewDatasetArgs.builder()
        .aggregations(SubscriptionCostManagementViewDatasetAggregationArgs.builder()
            .columnName("string")
            .name("string")
            .build())
        .granularity("string")
        .groupings(SubscriptionCostManagementViewDatasetGroupingArgs.builder()
            .name("string")
            .type("string")
            .build())
        .sortings(SubscriptionCostManagementViewDatasetSortingArgs.builder()
            .direction("string")
            .name("string")
            .build())
        .build())
    .displayName("string")
    .reportType("string")
    .subscriptionId("string")
    .timeframe("string")
    .kpis(SubscriptionCostManagementViewKpiArgs.builder()
        .type("string")
        .build())
    .name("string")
    .pivots(SubscriptionCostManagementViewPivotArgs.builder()
        .name("string")
        .type("string")
        .build())
    .build());
subscription_cost_management_view_resource = azure.core.SubscriptionCostManagementView("subscriptionCostManagementViewResource",
    accumulated=False,
    chart_type="string",
    dataset={
        "aggregations": [{
            "column_name": "string",
            "name": "string",
        }],
        "granularity": "string",
        "groupings": [{
            "name": "string",
            "type": "string",
        }],
        "sortings": [{
            "direction": "string",
            "name": "string",
        }],
    },
    display_name="string",
    report_type="string",
    subscription_id="string",
    timeframe="string",
    kpis=[{
        "type": "string",
    }],
    name="string",
    pivots=[{
        "name": "string",
        "type": "string",
    }])
const subscriptionCostManagementViewResource = new azure.core.SubscriptionCostManagementView("subscriptionCostManagementViewResource", {
    accumulated: false,
    chartType: "string",
    dataset: {
        aggregations: [{
            columnName: "string",
            name: "string",
        }],
        granularity: "string",
        groupings: [{
            name: "string",
            type: "string",
        }],
        sortings: [{
            direction: "string",
            name: "string",
        }],
    },
    displayName: "string",
    reportType: "string",
    subscriptionId: "string",
    timeframe: "string",
    kpis: [{
        type: "string",
    }],
    name: "string",
    pivots: [{
        name: "string",
        type: "string",
    }],
});
type: azure:core:SubscriptionCostManagementView
properties:
    accumulated: false
    chartType: string
    dataset:
        aggregations:
            - columnName: string
              name: string
        granularity: string
        groupings:
            - name: string
              type: string
        sortings:
            - direction: string
              name: string
    displayName: string
    kpis:
        - type: string
    name: string
    pivots:
        - name: string
          type: string
    reportType: string
    subscriptionId: string
    timeframe: string
SubscriptionCostManagementView Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The SubscriptionCostManagementView resource accepts the following input properties:
- Accumulated bool
- 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.
- ChartType string
- Chart type of the main view in Cost Analysis. Possible values are Area,GroupedColumn,Line,StackedColumnandTable.
- Dataset
SubscriptionCost Management View Dataset 
- A datasetblock as defined below.
- DisplayName string
- User visible input name of the Cost Management View.
- ReportType string
- The type of the report. The only possible value is Usage.
- SubscriptionId 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.
- Timeframe string
- The time frame for pulling data for the report. Possible values are Custom,MonthToDate,WeekToDateandYearToDate.
- Kpis
List<SubscriptionCost Management View Kpi> 
- One or more kpiblocks as defined below, to show in Cost Analysis UI.
- Name 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.
- Pivots
List<SubscriptionCost Management View Pivot> 
- One or more pivotblocks as defined below, containing the configuration of 3 sub-views in the Cost Analysis UI. Non table views should have three pivots.
- Accumulated bool
- 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.
- ChartType string
- Chart type of the main view in Cost Analysis. Possible values are Area,GroupedColumn,Line,StackedColumnandTable.
- Dataset
SubscriptionCost Management View Dataset Args 
- A datasetblock as defined below.
- DisplayName string
- User visible input name of the Cost Management View.
- ReportType string
- The type of the report. The only possible value is Usage.
- SubscriptionId 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.
- Timeframe string
- The time frame for pulling data for the report. Possible values are Custom,MonthToDate,WeekToDateandYearToDate.
- Kpis
[]SubscriptionCost Management View Kpi Args 
- One or more kpiblocks as defined below, to show in Cost Analysis UI.
- Name 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.
- Pivots
[]SubscriptionCost Management View Pivot Args 
- One or more pivotblocks as defined below, containing the configuration of 3 sub-views in the Cost Analysis UI. Non table views should have three pivots.
- accumulated 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.
- chartType String
- Chart type of the main view in Cost Analysis. Possible values are Area,GroupedColumn,Line,StackedColumnandTable.
- dataset
SubscriptionCost Management View Dataset 
- A datasetblock as defined below.
- displayName String
- User visible input name of the Cost Management View.
- reportType String
- The type of the report. The only possible value is Usage.
- subscriptionId 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.
- timeframe String
- The time frame for pulling data for the report. Possible values are Custom,MonthToDate,WeekToDateandYearToDate.
- kpis
List<SubscriptionCost Management View Kpi> 
- One or more kpiblocks as defined below, to show in Cost Analysis UI.
- name 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.
- pivots
List<SubscriptionCost Management View Pivot> 
- One or more pivotblocks as defined below, containing the configuration of 3 sub-views in the Cost Analysis UI. Non table views should have three pivots.
- accumulated 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.
- chartType string
- Chart type of the main view in Cost Analysis. Possible values are Area,GroupedColumn,Line,StackedColumnandTable.
- dataset
SubscriptionCost Management View Dataset 
- A datasetblock as defined below.
- displayName string
- User visible input name of the Cost Management View.
- reportType string
- The type of the report. The only possible value is Usage.
- subscriptionId 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.
- timeframe string
- The time frame for pulling data for the report. Possible values are Custom,MonthToDate,WeekToDateandYearToDate.
- kpis
SubscriptionCost Management View Kpi[] 
- One or more kpiblocks as defined below, to show in Cost Analysis UI.
- name 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.
- pivots
SubscriptionCost Management View Pivot[] 
- One or more pivotblocks as defined below, containing the configuration of 3 sub-views in the Cost Analysis UI. Non table views should have three pivots.
- accumulated bool
- 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.
- chart_type str
- Chart type of the main view in Cost Analysis. Possible values are Area,GroupedColumn,Line,StackedColumnandTable.
- dataset
SubscriptionCost Management View Dataset Args 
- A datasetblock as defined below.
- display_name str
- User visible input name of the Cost Management View.
- report_type str
- The type of the report. The only possible value is Usage.
- subscription_id str
- The ID of the Subscription this View is scoped to. Changing this forces a new Cost Management View for a Subscription to be created.
- timeframe str
- The time frame for pulling data for the report. Possible values are Custom,MonthToDate,WeekToDateandYearToDate.
- kpis
Sequence[SubscriptionCost Management View Kpi Args] 
- One or more kpiblocks as defined below, to show in Cost Analysis UI.
- name str
- 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.
- pivots
Sequence[SubscriptionCost Management View Pivot Args] 
- One or more pivotblocks as defined below, containing the configuration of 3 sub-views in the Cost Analysis UI. Non table views should have three pivots.
- accumulated 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.
- chartType String
- Chart type of the main view in Cost Analysis. Possible values are Area,GroupedColumn,Line,StackedColumnandTable.
- dataset Property Map
- A datasetblock as defined below.
- displayName String
- User visible input name of the Cost Management View.
- reportType String
- The type of the report. The only possible value is Usage.
- subscriptionId 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.
- timeframe String
- The time frame for pulling data for the report. Possible values are Custom,MonthToDate,WeekToDateandYearToDate.
- kpis List<Property Map>
- One or more kpiblocks as defined below, to show in Cost Analysis UI.
- name 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.
- pivots List<Property Map>
- One or more pivotblocks as defined below, containing the configuration of 3 sub-views in the Cost Analysis UI. Non table views should have three pivots.
Outputs
All input properties are implicitly available as output properties. Additionally, the SubscriptionCostManagementView resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing SubscriptionCostManagementView Resource
Get an existing SubscriptionCostManagementView resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: SubscriptionCostManagementViewState, opts?: CustomResourceOptions): SubscriptionCostManagementView@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        accumulated: Optional[bool] = None,
        chart_type: Optional[str] = None,
        dataset: Optional[SubscriptionCostManagementViewDatasetArgs] = None,
        display_name: Optional[str] = None,
        kpis: Optional[Sequence[SubscriptionCostManagementViewKpiArgs]] = None,
        name: Optional[str] = None,
        pivots: Optional[Sequence[SubscriptionCostManagementViewPivotArgs]] = None,
        report_type: Optional[str] = None,
        subscription_id: Optional[str] = None,
        timeframe: Optional[str] = None) -> SubscriptionCostManagementViewfunc GetSubscriptionCostManagementView(ctx *Context, name string, id IDInput, state *SubscriptionCostManagementViewState, opts ...ResourceOption) (*SubscriptionCostManagementView, error)public static SubscriptionCostManagementView Get(string name, Input<string> id, SubscriptionCostManagementViewState? state, CustomResourceOptions? opts = null)public static SubscriptionCostManagementView get(String name, Output<String> id, SubscriptionCostManagementViewState state, CustomResourceOptions options)resources:  _:    type: azure:core:SubscriptionCostManagementView    get:      id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Accumulated bool
- 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.
- ChartType string
- Chart type of the main view in Cost Analysis. Possible values are Area,GroupedColumn,Line,StackedColumnandTable.
- Dataset
SubscriptionCost Management View Dataset 
- A datasetblock as defined below.
- DisplayName string
- User visible input name of the Cost Management View.
- Kpis
List<SubscriptionCost Management View Kpi> 
- One or more kpiblocks as defined below, to show in Cost Analysis UI.
- Name 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.
- Pivots
List<SubscriptionCost Management View Pivot> 
- One or more pivotblocks as defined below, containing the configuration of 3 sub-views in the Cost Analysis UI. Non table views should have three pivots.
- ReportType string
- The type of the report. The only possible value is Usage.
- SubscriptionId 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.
- Timeframe string
- The time frame for pulling data for the report. Possible values are Custom,MonthToDate,WeekToDateandYearToDate.
- Accumulated bool
- 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.
- ChartType string
- Chart type of the main view in Cost Analysis. Possible values are Area,GroupedColumn,Line,StackedColumnandTable.
- Dataset
SubscriptionCost Management View Dataset Args 
- A datasetblock as defined below.
- DisplayName string
- User visible input name of the Cost Management View.
- Kpis
[]SubscriptionCost Management View Kpi Args 
- One or more kpiblocks as defined below, to show in Cost Analysis UI.
- Name 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.
- Pivots
[]SubscriptionCost Management View Pivot Args 
- One or more pivotblocks as defined below, containing the configuration of 3 sub-views in the Cost Analysis UI. Non table views should have three pivots.
- ReportType string
- The type of the report. The only possible value is Usage.
- SubscriptionId 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.
- Timeframe string
- The time frame for pulling data for the report. Possible values are Custom,MonthToDate,WeekToDateandYearToDate.
- accumulated 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.
- chartType String
- Chart type of the main view in Cost Analysis. Possible values are Area,GroupedColumn,Line,StackedColumnandTable.
- dataset
SubscriptionCost Management View Dataset 
- A datasetblock as defined below.
- displayName String
- User visible input name of the Cost Management View.
- kpis
List<SubscriptionCost Management View Kpi> 
- One or more kpiblocks as defined below, to show in Cost Analysis UI.
- name 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.
- pivots
List<SubscriptionCost Management View Pivot> 
- One or more pivotblocks as defined below, containing the configuration of 3 sub-views in the Cost Analysis UI. Non table views should have three pivots.
- reportType String
- The type of the report. The only possible value is Usage.
- subscriptionId 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.
- timeframe String
- The time frame for pulling data for the report. Possible values are Custom,MonthToDate,WeekToDateandYearToDate.
- accumulated 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.
- chartType string
- Chart type of the main view in Cost Analysis. Possible values are Area,GroupedColumn,Line,StackedColumnandTable.
- dataset
SubscriptionCost Management View Dataset 
- A datasetblock as defined below.
- displayName string
- User visible input name of the Cost Management View.
- kpis
SubscriptionCost Management View Kpi[] 
- One or more kpiblocks as defined below, to show in Cost Analysis UI.
- name 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.
- pivots
SubscriptionCost Management View Pivot[] 
- One or more pivotblocks as defined below, containing the configuration of 3 sub-views in the Cost Analysis UI. Non table views should have three pivots.
- reportType string
- The type of the report. The only possible value is Usage.
- subscriptionId 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.
- timeframe string
- The time frame for pulling data for the report. Possible values are Custom,MonthToDate,WeekToDateandYearToDate.
- accumulated bool
- 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.
- chart_type str
- Chart type of the main view in Cost Analysis. Possible values are Area,GroupedColumn,Line,StackedColumnandTable.
- dataset
SubscriptionCost Management View Dataset Args 
- A datasetblock as defined below.
- display_name str
- User visible input name of the Cost Management View.
- kpis
Sequence[SubscriptionCost Management View Kpi Args] 
- One or more kpiblocks as defined below, to show in Cost Analysis UI.
- name str
- 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.
- pivots
Sequence[SubscriptionCost Management View Pivot Args] 
- One or more pivotblocks as defined below, containing the configuration of 3 sub-views in the Cost Analysis UI. Non table views should have three pivots.
- report_type str
- The type of the report. The only possible value is Usage.
- subscription_id str
- The ID of the Subscription this View is scoped to. Changing this forces a new Cost Management View for a Subscription to be created.
- timeframe str
- The time frame for pulling data for the report. Possible values are Custom,MonthToDate,WeekToDateandYearToDate.
- accumulated 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.
- chartType String
- Chart type of the main view in Cost Analysis. Possible values are Area,GroupedColumn,Line,StackedColumnandTable.
- dataset Property Map
- A datasetblock as defined below.
- displayName String
- User visible input name of the Cost Management View.
- kpis List<Property Map>
- One or more kpiblocks as defined below, to show in Cost Analysis UI.
- name 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.
- pivots List<Property Map>
- One or more pivotblocks as defined below, containing the configuration of 3 sub-views in the Cost Analysis UI. Non table views should have three pivots.
- reportType String
- The type of the report. The only possible value is Usage.
- subscriptionId 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.
- timeframe String
- The time frame for pulling data for the report. Possible values are Custom,MonthToDate,WeekToDateandYearToDate.
Supporting Types
SubscriptionCostManagementViewDataset, SubscriptionCostManagementViewDatasetArgs          
- Aggregations
List<SubscriptionCost Management View Dataset Aggregation> 
- One or more aggregationblocks as defined above.
- Granularity string
- The granularity of rows in the report. Possible values are DailyandMonthly.
- Groupings
List<SubscriptionCost Management View Dataset Grouping> 
- One or more groupingblocks as defined below.
- Sortings
List<SubscriptionCost Management View Dataset Sorting> 
- One or more sortingblocks as defined below, containing the order by expression to be used in the report
- Aggregations
[]SubscriptionCost Management View Dataset Aggregation 
- One or more aggregationblocks as defined above.
- Granularity string
- The granularity of rows in the report. Possible values are DailyandMonthly.
- Groupings
[]SubscriptionCost Management View Dataset Grouping 
- One or more groupingblocks as defined below.
- Sortings
[]SubscriptionCost Management View Dataset Sorting 
- One or more sortingblocks as defined below, containing the order by expression to be used in the report
- aggregations
List<SubscriptionCost Management View Dataset Aggregation> 
- One or more aggregationblocks as defined above.
- granularity String
- The granularity of rows in the report. Possible values are DailyandMonthly.
- groupings
List<SubscriptionCost Management View Dataset Grouping> 
- One or more groupingblocks as defined below.
- sortings
List<SubscriptionCost Management View Dataset Sorting> 
- One or more sortingblocks as defined below, containing the order by expression to be used in the report
- aggregations
SubscriptionCost Management View Dataset Aggregation[] 
- One or more aggregationblocks as defined above.
- granularity string
- The granularity of rows in the report. Possible values are DailyandMonthly.
- groupings
SubscriptionCost Management View Dataset Grouping[] 
- One or more groupingblocks as defined below.
- sortings
SubscriptionCost Management View Dataset Sorting[] 
- One or more sortingblocks as defined below, containing the order by expression to be used in the report
- aggregations
Sequence[SubscriptionCost Management View Dataset Aggregation] 
- One or more aggregationblocks as defined above.
- granularity str
- The granularity of rows in the report. Possible values are DailyandMonthly.
- groupings
Sequence[SubscriptionCost Management View Dataset Grouping] 
- One or more groupingblocks as defined below.
- sortings
Sequence[SubscriptionCost Management View Dataset Sorting] 
- One or more sortingblocks as defined below, containing the order by expression to be used in the report
- aggregations List<Property Map>
- One or more aggregationblocks as defined above.
- granularity String
- The granularity of rows in the report. Possible values are DailyandMonthly.
- groupings List<Property Map>
- One or more groupingblocks as defined below.
- sortings List<Property Map>
- One or more sortingblocks as defined below, containing the order by expression to be used in the report
SubscriptionCostManagementViewDatasetAggregation, SubscriptionCostManagementViewDatasetAggregationArgs            
- ColumnName string
- The name of the column to aggregate. Changing this forces a new Cost Management View for a Subscription to be created.
- Name string
- The name which should be used for this aggregation. Changing this forces a new Cost Management View for a Subscription to be created.
- ColumnName string
- The name of the column to aggregate. Changing this forces a new Cost Management View for a Subscription to be created.
- Name string
- The name which should be used for this aggregation. Changing this forces a new Cost Management View for a Subscription to be created.
- columnName String
- The name of the column to aggregate. Changing this forces a new Cost Management View for a Subscription to be created.
- name String
- The name which should be used for this aggregation. Changing this forces a new Cost Management View for a Subscription to be created.
- columnName string
- The name of the column to aggregate. Changing this forces a new Cost Management View for a Subscription to be created.
- name string
- The name which should be used for this aggregation. Changing this forces a new Cost Management View for a Subscription to be created.
- column_name str
- The name of the column to aggregate. Changing this forces a new Cost Management View for a Subscription to be created.
- name str
- The name which should be used for this aggregation. Changing this forces a new Cost Management View for a Subscription to be created.
- columnName String
- The name of the column to aggregate. Changing this forces a new Cost Management View for a Subscription to be created.
- name String
- The name which should be used for this aggregation. Changing this forces a new Cost Management View for a Subscription to be created.
SubscriptionCostManagementViewDatasetGrouping, SubscriptionCostManagementViewDatasetGroupingArgs            
SubscriptionCostManagementViewDatasetSorting, SubscriptionCostManagementViewDatasetSortingArgs            
SubscriptionCostManagementViewKpi, SubscriptionCostManagementViewKpiArgs          
- Type string
- KPI type. Possible values are BudgetandForecast.
- Type string
- KPI type. Possible values are BudgetandForecast.
- type String
- KPI type. Possible values are BudgetandForecast.
- type string
- KPI type. Possible values are BudgetandForecast.
- type str
- KPI type. Possible values are BudgetandForecast.
- type String
- KPI type. Possible values are BudgetandForecast.
SubscriptionCostManagementViewPivot, SubscriptionCostManagementViewPivotArgs          
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
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the azurermTerraform Provider.