We recommend using Azure Native.
azure.core.SubscriptionCostManagementExport
Explore with Pulumi AI
Manages a Cost Management Export for a Subscription.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.core.getSubscription({});
const exampleResourceGroup = new azure.core.ResourceGroup("example", {
    name: "example-resources",
    location: "West Europe",
});
const exampleAccount = new azure.storage.Account("example", {
    name: "example",
    resourceGroupName: exampleResourceGroup.name,
    location: exampleResourceGroup.location,
    accountTier: "Standard",
    accountReplicationType: "LRS",
});
const exampleContainer = new azure.storage.Container("example", {
    name: "examplecontainer",
    storageAccountName: exampleAccount.name,
});
const exampleSubscriptionCostManagementExport = new azure.core.SubscriptionCostManagementExport("example", {
    name: "example",
    subscriptionId: example.then(example => example.id),
    recurrenceType: "Monthly",
    recurrencePeriodStartDate: "2020-08-18T00:00:00Z",
    recurrencePeriodEndDate: "2020-09-18T00:00:00Z",
    fileFormat: "Csv",
    exportDataStorageLocation: {
        containerId: exampleContainer.resourceManagerId,
        rootFolderPath: "/root/updated",
    },
    exportDataOptions: {
        type: "Usage",
        timeFrame: "WeekToDate",
    },
});
import pulumi
import pulumi_azure as azure
example = azure.core.get_subscription()
example_resource_group = azure.core.ResourceGroup("example",
    name="example-resources",
    location="West Europe")
example_account = azure.storage.Account("example",
    name="example",
    resource_group_name=example_resource_group.name,
    location=example_resource_group.location,
    account_tier="Standard",
    account_replication_type="LRS")
example_container = azure.storage.Container("example",
    name="examplecontainer",
    storage_account_name=example_account.name)
example_subscription_cost_management_export = azure.core.SubscriptionCostManagementExport("example",
    name="example",
    subscription_id=example.id,
    recurrence_type="Monthly",
    recurrence_period_start_date="2020-08-18T00:00:00Z",
    recurrence_period_end_date="2020-09-18T00:00:00Z",
    file_format="Csv",
    export_data_storage_location={
        "container_id": example_container.resource_manager_id,
        "root_folder_path": "/root/updated",
    },
    export_data_options={
        "type": "Usage",
        "time_frame": "WeekToDate",
    })
package main
import (
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/storage"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := core.LookupSubscription(ctx, &core.LookupSubscriptionArgs{}, nil)
		if err != nil {
			return err
		}
		exampleResourceGroup, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
			Name:     pulumi.String("example-resources"),
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		exampleAccount, err := storage.NewAccount(ctx, "example", &storage.AccountArgs{
			Name:                   pulumi.String("example"),
			ResourceGroupName:      exampleResourceGroup.Name,
			Location:               exampleResourceGroup.Location,
			AccountTier:            pulumi.String("Standard"),
			AccountReplicationType: pulumi.String("LRS"),
		})
		if err != nil {
			return err
		}
		exampleContainer, err := storage.NewContainer(ctx, "example", &storage.ContainerArgs{
			Name:               pulumi.String("examplecontainer"),
			StorageAccountName: exampleAccount.Name,
		})
		if err != nil {
			return err
		}
		_, err = core.NewSubscriptionCostManagementExport(ctx, "example", &core.SubscriptionCostManagementExportArgs{
			Name:                      pulumi.String("example"),
			SubscriptionId:            pulumi.String(example.Id),
			RecurrenceType:            pulumi.String("Monthly"),
			RecurrencePeriodStartDate: pulumi.String("2020-08-18T00:00:00Z"),
			RecurrencePeriodEndDate:   pulumi.String("2020-09-18T00:00:00Z"),
			FileFormat:                pulumi.String("Csv"),
			ExportDataStorageLocation: &core.SubscriptionCostManagementExportExportDataStorageLocationArgs{
				ContainerId:    exampleContainer.ResourceManagerId,
				RootFolderPath: pulumi.String("/root/updated"),
			},
			ExportDataOptions: &core.SubscriptionCostManagementExportExportDataOptionsArgs{
				Type:      pulumi.String("Usage"),
				TimeFrame: pulumi.String("WeekToDate"),
			},
		})
		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 = Azure.Core.GetSubscription.Invoke();
    var exampleResourceGroup = new Azure.Core.ResourceGroup("example", new()
    {
        Name = "example-resources",
        Location = "West Europe",
    });
    var exampleAccount = new Azure.Storage.Account("example", new()
    {
        Name = "example",
        ResourceGroupName = exampleResourceGroup.Name,
        Location = exampleResourceGroup.Location,
        AccountTier = "Standard",
        AccountReplicationType = "LRS",
    });
    var exampleContainer = new Azure.Storage.Container("example", new()
    {
        Name = "examplecontainer",
        StorageAccountName = exampleAccount.Name,
    });
    var exampleSubscriptionCostManagementExport = new Azure.Core.SubscriptionCostManagementExport("example", new()
    {
        Name = "example",
        SubscriptionId = example.Apply(getSubscriptionResult => getSubscriptionResult.Id),
        RecurrenceType = "Monthly",
        RecurrencePeriodStartDate = "2020-08-18T00:00:00Z",
        RecurrencePeriodEndDate = "2020-09-18T00:00:00Z",
        FileFormat = "Csv",
        ExportDataStorageLocation = new Azure.Core.Inputs.SubscriptionCostManagementExportExportDataStorageLocationArgs
        {
            ContainerId = exampleContainer.ResourceManagerId,
            RootFolderPath = "/root/updated",
        },
        ExportDataOptions = new Azure.Core.Inputs.SubscriptionCostManagementExportExportDataOptionsArgs
        {
            Type = "Usage",
            TimeFrame = "WeekToDate",
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.CoreFunctions;
import com.pulumi.azure.core.inputs.GetSubscriptionArgs;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.storage.Account;
import com.pulumi.azure.storage.AccountArgs;
import com.pulumi.azure.storage.Container;
import com.pulumi.azure.storage.ContainerArgs;
import com.pulumi.azure.core.SubscriptionCostManagementExport;
import com.pulumi.azure.core.SubscriptionCostManagementExportArgs;
import com.pulumi.azure.core.inputs.SubscriptionCostManagementExportExportDataStorageLocationArgs;
import com.pulumi.azure.core.inputs.SubscriptionCostManagementExportExportDataOptionsArgs;
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) {
        final var example = CoreFunctions.getSubscription();
        var exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
            .name("example-resources")
            .location("West Europe")
            .build());
        var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
            .name("example")
            .resourceGroupName(exampleResourceGroup.name())
            .location(exampleResourceGroup.location())
            .accountTier("Standard")
            .accountReplicationType("LRS")
            .build());
        var exampleContainer = new Container("exampleContainer", ContainerArgs.builder()
            .name("examplecontainer")
            .storageAccountName(exampleAccount.name())
            .build());
        var exampleSubscriptionCostManagementExport = new SubscriptionCostManagementExport("exampleSubscriptionCostManagementExport", SubscriptionCostManagementExportArgs.builder()
            .name("example")
            .subscriptionId(example.applyValue(getSubscriptionResult -> getSubscriptionResult.id()))
            .recurrenceType("Monthly")
            .recurrencePeriodStartDate("2020-08-18T00:00:00Z")
            .recurrencePeriodEndDate("2020-09-18T00:00:00Z")
            .fileFormat("Csv")
            .exportDataStorageLocation(SubscriptionCostManagementExportExportDataStorageLocationArgs.builder()
                .containerId(exampleContainer.resourceManagerId())
                .rootFolderPath("/root/updated")
                .build())
            .exportDataOptions(SubscriptionCostManagementExportExportDataOptionsArgs.builder()
                .type("Usage")
                .timeFrame("WeekToDate")
                .build())
            .build());
    }
}
resources:
  exampleResourceGroup:
    type: azure:core:ResourceGroup
    name: example
    properties:
      name: example-resources
      location: West Europe
  exampleAccount:
    type: azure:storage:Account
    name: example
    properties:
      name: example
      resourceGroupName: ${exampleResourceGroup.name}
      location: ${exampleResourceGroup.location}
      accountTier: Standard
      accountReplicationType: LRS
  exampleContainer:
    type: azure:storage:Container
    name: example
    properties:
      name: examplecontainer
      storageAccountName: ${exampleAccount.name}
  exampleSubscriptionCostManagementExport:
    type: azure:core:SubscriptionCostManagementExport
    name: example
    properties:
      name: example
      subscriptionId: ${example.id}
      recurrenceType: Monthly
      recurrencePeriodStartDate: 2020-08-18T00:00:00Z
      recurrencePeriodEndDate: 2020-09-18T00:00:00Z
      fileFormat: Csv
      exportDataStorageLocation:
        containerId: ${exampleContainer.resourceManagerId}
        rootFolderPath: /root/updated
      exportDataOptions:
        type: Usage
        timeFrame: WeekToDate
variables:
  example:
    fn::invoke:
      function: azure:core:getSubscription
      arguments: {}
Create SubscriptionCostManagementExport Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SubscriptionCostManagementExport(name: string, args: SubscriptionCostManagementExportArgs, opts?: CustomResourceOptions);@overload
def SubscriptionCostManagementExport(resource_name: str,
                                     args: SubscriptionCostManagementExportArgs,
                                     opts: Optional[ResourceOptions] = None)
@overload
def SubscriptionCostManagementExport(resource_name: str,
                                     opts: Optional[ResourceOptions] = None,
                                     export_data_options: Optional[SubscriptionCostManagementExportExportDataOptionsArgs] = None,
                                     export_data_storage_location: Optional[SubscriptionCostManagementExportExportDataStorageLocationArgs] = None,
                                     recurrence_period_end_date: Optional[str] = None,
                                     recurrence_period_start_date: Optional[str] = None,
                                     recurrence_type: Optional[str] = None,
                                     subscription_id: Optional[str] = None,
                                     active: Optional[bool] = None,
                                     file_format: Optional[str] = None,
                                     name: Optional[str] = None)func NewSubscriptionCostManagementExport(ctx *Context, name string, args SubscriptionCostManagementExportArgs, opts ...ResourceOption) (*SubscriptionCostManagementExport, error)public SubscriptionCostManagementExport(string name, SubscriptionCostManagementExportArgs args, CustomResourceOptions? opts = null)
public SubscriptionCostManagementExport(String name, SubscriptionCostManagementExportArgs args)
public SubscriptionCostManagementExport(String name, SubscriptionCostManagementExportArgs args, CustomResourceOptions options)
type: azure:core:SubscriptionCostManagementExport
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 SubscriptionCostManagementExportArgs
- 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 SubscriptionCostManagementExportArgs
- 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 SubscriptionCostManagementExportArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SubscriptionCostManagementExportArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SubscriptionCostManagementExportArgs
- 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 subscriptionCostManagementExportResource = new Azure.Core.SubscriptionCostManagementExport("subscriptionCostManagementExportResource", new()
{
    ExportDataOptions = new Azure.Core.Inputs.SubscriptionCostManagementExportExportDataOptionsArgs
    {
        TimeFrame = "string",
        Type = "string",
    },
    ExportDataStorageLocation = new Azure.Core.Inputs.SubscriptionCostManagementExportExportDataStorageLocationArgs
    {
        ContainerId = "string",
        RootFolderPath = "string",
    },
    RecurrencePeriodEndDate = "string",
    RecurrencePeriodStartDate = "string",
    RecurrenceType = "string",
    SubscriptionId = "string",
    Active = false,
    FileFormat = "string",
    Name = "string",
});
example, err := core.NewSubscriptionCostManagementExport(ctx, "subscriptionCostManagementExportResource", &core.SubscriptionCostManagementExportArgs{
	ExportDataOptions: &core.SubscriptionCostManagementExportExportDataOptionsArgs{
		TimeFrame: pulumi.String("string"),
		Type:      pulumi.String("string"),
	},
	ExportDataStorageLocation: &core.SubscriptionCostManagementExportExportDataStorageLocationArgs{
		ContainerId:    pulumi.String("string"),
		RootFolderPath: pulumi.String("string"),
	},
	RecurrencePeriodEndDate:   pulumi.String("string"),
	RecurrencePeriodStartDate: pulumi.String("string"),
	RecurrenceType:            pulumi.String("string"),
	SubscriptionId:            pulumi.String("string"),
	Active:                    pulumi.Bool(false),
	FileFormat:                pulumi.String("string"),
	Name:                      pulumi.String("string"),
})
var subscriptionCostManagementExportResource = new SubscriptionCostManagementExport("subscriptionCostManagementExportResource", SubscriptionCostManagementExportArgs.builder()
    .exportDataOptions(SubscriptionCostManagementExportExportDataOptionsArgs.builder()
        .timeFrame("string")
        .type("string")
        .build())
    .exportDataStorageLocation(SubscriptionCostManagementExportExportDataStorageLocationArgs.builder()
        .containerId("string")
        .rootFolderPath("string")
        .build())
    .recurrencePeriodEndDate("string")
    .recurrencePeriodStartDate("string")
    .recurrenceType("string")
    .subscriptionId("string")
    .active(false)
    .fileFormat("string")
    .name("string")
    .build());
subscription_cost_management_export_resource = azure.core.SubscriptionCostManagementExport("subscriptionCostManagementExportResource",
    export_data_options={
        "time_frame": "string",
        "type": "string",
    },
    export_data_storage_location={
        "container_id": "string",
        "root_folder_path": "string",
    },
    recurrence_period_end_date="string",
    recurrence_period_start_date="string",
    recurrence_type="string",
    subscription_id="string",
    active=False,
    file_format="string",
    name="string")
const subscriptionCostManagementExportResource = new azure.core.SubscriptionCostManagementExport("subscriptionCostManagementExportResource", {
    exportDataOptions: {
        timeFrame: "string",
        type: "string",
    },
    exportDataStorageLocation: {
        containerId: "string",
        rootFolderPath: "string",
    },
    recurrencePeriodEndDate: "string",
    recurrencePeriodStartDate: "string",
    recurrenceType: "string",
    subscriptionId: "string",
    active: false,
    fileFormat: "string",
    name: "string",
});
type: azure:core:SubscriptionCostManagementExport
properties:
    active: false
    exportDataOptions:
        timeFrame: string
        type: string
    exportDataStorageLocation:
        containerId: string
        rootFolderPath: string
    fileFormat: string
    name: string
    recurrencePeriodEndDate: string
    recurrencePeriodStartDate: string
    recurrenceType: string
    subscriptionId: string
SubscriptionCostManagementExport 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 SubscriptionCostManagementExport resource accepts the following input properties:
- ExportData SubscriptionOptions Cost Management Export Export Data Options 
- A export_data_optionsblock as defined below.
- ExportData SubscriptionStorage Location Cost Management Export Export Data Storage Location 
- A export_data_storage_locationblock as defined below.
- RecurrencePeriod stringEnd Date 
- The date the export will stop capturing information.
- RecurrencePeriod stringStart Date 
- The date the export will start capturing information.
- RecurrenceType string
- How often the requested information will be exported. Valid values include Annually,Daily,Monthly,Weekly.
- SubscriptionId string
- The id of the subscription on which to create an export. Changing this forces a new resource to be created.
- Active bool
- Is the cost management export active? Default is true.
- FileFormat string
- Format for export. Valid values are Csvonly. Default isCsv.
- Name string
- Specifies the name of the Cost Management Export. Changing this forces a new resource to be created.
- ExportData SubscriptionOptions Cost Management Export Export Data Options Args 
- A export_data_optionsblock as defined below.
- ExportData SubscriptionStorage Location Cost Management Export Export Data Storage Location Args 
- A export_data_storage_locationblock as defined below.
- RecurrencePeriod stringEnd Date 
- The date the export will stop capturing information.
- RecurrencePeriod stringStart Date 
- The date the export will start capturing information.
- RecurrenceType string
- How often the requested information will be exported. Valid values include Annually,Daily,Monthly,Weekly.
- SubscriptionId string
- The id of the subscription on which to create an export. Changing this forces a new resource to be created.
- Active bool
- Is the cost management export active? Default is true.
- FileFormat string
- Format for export. Valid values are Csvonly. Default isCsv.
- Name string
- Specifies the name of the Cost Management Export. Changing this forces a new resource to be created.
- exportData SubscriptionOptions Cost Management Export Export Data Options 
- A export_data_optionsblock as defined below.
- exportData SubscriptionStorage Location Cost Management Export Export Data Storage Location 
- A export_data_storage_locationblock as defined below.
- recurrencePeriod StringEnd Date 
- The date the export will stop capturing information.
- recurrencePeriod StringStart Date 
- The date the export will start capturing information.
- recurrenceType String
- How often the requested information will be exported. Valid values include Annually,Daily,Monthly,Weekly.
- subscriptionId String
- The id of the subscription on which to create an export. Changing this forces a new resource to be created.
- active Boolean
- Is the cost management export active? Default is true.
- fileFormat String
- Format for export. Valid values are Csvonly. Default isCsv.
- name String
- Specifies the name of the Cost Management Export. Changing this forces a new resource to be created.
- exportData SubscriptionOptions Cost Management Export Export Data Options 
- A export_data_optionsblock as defined below.
- exportData SubscriptionStorage Location Cost Management Export Export Data Storage Location 
- A export_data_storage_locationblock as defined below.
- recurrencePeriod stringEnd Date 
- The date the export will stop capturing information.
- recurrencePeriod stringStart Date 
- The date the export will start capturing information.
- recurrenceType string
- How often the requested information will be exported. Valid values include Annually,Daily,Monthly,Weekly.
- subscriptionId string
- The id of the subscription on which to create an export. Changing this forces a new resource to be created.
- active boolean
- Is the cost management export active? Default is true.
- fileFormat string
- Format for export. Valid values are Csvonly. Default isCsv.
- name string
- Specifies the name of the Cost Management Export. Changing this forces a new resource to be created.
- export_data_ Subscriptionoptions Cost Management Export Export Data Options Args 
- A export_data_optionsblock as defined below.
- export_data_ Subscriptionstorage_ location Cost Management Export Export Data Storage Location Args 
- A export_data_storage_locationblock as defined below.
- recurrence_period_ strend_ date 
- The date the export will stop capturing information.
- recurrence_period_ strstart_ date 
- The date the export will start capturing information.
- recurrence_type str
- How often the requested information will be exported. Valid values include Annually,Daily,Monthly,Weekly.
- subscription_id str
- The id of the subscription on which to create an export. Changing this forces a new resource to be created.
- active bool
- Is the cost management export active? Default is true.
- file_format str
- Format for export. Valid values are Csvonly. Default isCsv.
- name str
- Specifies the name of the Cost Management Export. Changing this forces a new resource to be created.
- exportData Property MapOptions 
- A export_data_optionsblock as defined below.
- exportData Property MapStorage Location 
- A export_data_storage_locationblock as defined below.
- recurrencePeriod StringEnd Date 
- The date the export will stop capturing information.
- recurrencePeriod StringStart Date 
- The date the export will start capturing information.
- recurrenceType String
- How often the requested information will be exported. Valid values include Annually,Daily,Monthly,Weekly.
- subscriptionId String
- The id of the subscription on which to create an export. Changing this forces a new resource to be created.
- active Boolean
- Is the cost management export active? Default is true.
- fileFormat String
- Format for export. Valid values are Csvonly. Default isCsv.
- name String
- Specifies the name of the Cost Management Export. Changing this forces a new resource to be created.
Outputs
All input properties are implicitly available as output properties. Additionally, the SubscriptionCostManagementExport 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 SubscriptionCostManagementExport Resource
Get an existing SubscriptionCostManagementExport 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?: SubscriptionCostManagementExportState, opts?: CustomResourceOptions): SubscriptionCostManagementExport@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        active: Optional[bool] = None,
        export_data_options: Optional[SubscriptionCostManagementExportExportDataOptionsArgs] = None,
        export_data_storage_location: Optional[SubscriptionCostManagementExportExportDataStorageLocationArgs] = None,
        file_format: Optional[str] = None,
        name: Optional[str] = None,
        recurrence_period_end_date: Optional[str] = None,
        recurrence_period_start_date: Optional[str] = None,
        recurrence_type: Optional[str] = None,
        subscription_id: Optional[str] = None) -> SubscriptionCostManagementExportfunc GetSubscriptionCostManagementExport(ctx *Context, name string, id IDInput, state *SubscriptionCostManagementExportState, opts ...ResourceOption) (*SubscriptionCostManagementExport, error)public static SubscriptionCostManagementExport Get(string name, Input<string> id, SubscriptionCostManagementExportState? state, CustomResourceOptions? opts = null)public static SubscriptionCostManagementExport get(String name, Output<String> id, SubscriptionCostManagementExportState state, CustomResourceOptions options)resources:  _:    type: azure:core:SubscriptionCostManagementExport    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.
- Active bool
- Is the cost management export active? Default is true.
- ExportData SubscriptionOptions Cost Management Export Export Data Options 
- A export_data_optionsblock as defined below.
- ExportData SubscriptionStorage Location Cost Management Export Export Data Storage Location 
- A export_data_storage_locationblock as defined below.
- FileFormat string
- Format for export. Valid values are Csvonly. Default isCsv.
- Name string
- Specifies the name of the Cost Management Export. Changing this forces a new resource to be created.
- RecurrencePeriod stringEnd Date 
- The date the export will stop capturing information.
- RecurrencePeriod stringStart Date 
- The date the export will start capturing information.
- RecurrenceType string
- How often the requested information will be exported. Valid values include Annually,Daily,Monthly,Weekly.
- SubscriptionId string
- The id of the subscription on which to create an export. Changing this forces a new resource to be created.
- Active bool
- Is the cost management export active? Default is true.
- ExportData SubscriptionOptions Cost Management Export Export Data Options Args 
- A export_data_optionsblock as defined below.
- ExportData SubscriptionStorage Location Cost Management Export Export Data Storage Location Args 
- A export_data_storage_locationblock as defined below.
- FileFormat string
- Format for export. Valid values are Csvonly. Default isCsv.
- Name string
- Specifies the name of the Cost Management Export. Changing this forces a new resource to be created.
- RecurrencePeriod stringEnd Date 
- The date the export will stop capturing information.
- RecurrencePeriod stringStart Date 
- The date the export will start capturing information.
- RecurrenceType string
- How often the requested information will be exported. Valid values include Annually,Daily,Monthly,Weekly.
- SubscriptionId string
- The id of the subscription on which to create an export. Changing this forces a new resource to be created.
- active Boolean
- Is the cost management export active? Default is true.
- exportData SubscriptionOptions Cost Management Export Export Data Options 
- A export_data_optionsblock as defined below.
- exportData SubscriptionStorage Location Cost Management Export Export Data Storage Location 
- A export_data_storage_locationblock as defined below.
- fileFormat String
- Format for export. Valid values are Csvonly. Default isCsv.
- name String
- Specifies the name of the Cost Management Export. Changing this forces a new resource to be created.
- recurrencePeriod StringEnd Date 
- The date the export will stop capturing information.
- recurrencePeriod StringStart Date 
- The date the export will start capturing information.
- recurrenceType String
- How often the requested information will be exported. Valid values include Annually,Daily,Monthly,Weekly.
- subscriptionId String
- The id of the subscription on which to create an export. Changing this forces a new resource to be created.
- active boolean
- Is the cost management export active? Default is true.
- exportData SubscriptionOptions Cost Management Export Export Data Options 
- A export_data_optionsblock as defined below.
- exportData SubscriptionStorage Location Cost Management Export Export Data Storage Location 
- A export_data_storage_locationblock as defined below.
- fileFormat string
- Format for export. Valid values are Csvonly. Default isCsv.
- name string
- Specifies the name of the Cost Management Export. Changing this forces a new resource to be created.
- recurrencePeriod stringEnd Date 
- The date the export will stop capturing information.
- recurrencePeriod stringStart Date 
- The date the export will start capturing information.
- recurrenceType string
- How often the requested information will be exported. Valid values include Annually,Daily,Monthly,Weekly.
- subscriptionId string
- The id of the subscription on which to create an export. Changing this forces a new resource to be created.
- active bool
- Is the cost management export active? Default is true.
- export_data_ Subscriptionoptions Cost Management Export Export Data Options Args 
- A export_data_optionsblock as defined below.
- export_data_ Subscriptionstorage_ location Cost Management Export Export Data Storage Location Args 
- A export_data_storage_locationblock as defined below.
- file_format str
- Format for export. Valid values are Csvonly. Default isCsv.
- name str
- Specifies the name of the Cost Management Export. Changing this forces a new resource to be created.
- recurrence_period_ strend_ date 
- The date the export will stop capturing information.
- recurrence_period_ strstart_ date 
- The date the export will start capturing information.
- recurrence_type str
- How often the requested information will be exported. Valid values include Annually,Daily,Monthly,Weekly.
- subscription_id str
- The id of the subscription on which to create an export. Changing this forces a new resource to be created.
- active Boolean
- Is the cost management export active? Default is true.
- exportData Property MapOptions 
- A export_data_optionsblock as defined below.
- exportData Property MapStorage Location 
- A export_data_storage_locationblock as defined below.
- fileFormat String
- Format for export. Valid values are Csvonly. Default isCsv.
- name String
- Specifies the name of the Cost Management Export. Changing this forces a new resource to be created.
- recurrencePeriod StringEnd Date 
- The date the export will stop capturing information.
- recurrencePeriod StringStart Date 
- The date the export will start capturing information.
- recurrenceType String
- How often the requested information will be exported. Valid values include Annually,Daily,Monthly,Weekly.
- subscriptionId String
- The id of the subscription on which to create an export. Changing this forces a new resource to be created.
Supporting Types
SubscriptionCostManagementExportExportDataOptions, SubscriptionCostManagementExportExportDataOptionsArgs              
- TimeFrame string
- The time frame for pulling data for the query. If custom, then a specific time period must be provided. Possible values include: WeekToDate,MonthToDate,BillingMonthToDate,TheLast7Days,TheLastMonth,TheLastBillingMonth,Custom.
- Type string
- The type of the query. Possible values are ActualCost,AmortizedCostandUsage.
- TimeFrame string
- The time frame for pulling data for the query. If custom, then a specific time period must be provided. Possible values include: WeekToDate,MonthToDate,BillingMonthToDate,TheLast7Days,TheLastMonth,TheLastBillingMonth,Custom.
- Type string
- The type of the query. Possible values are ActualCost,AmortizedCostandUsage.
- timeFrame String
- The time frame for pulling data for the query. If custom, then a specific time period must be provided. Possible values include: WeekToDate,MonthToDate,BillingMonthToDate,TheLast7Days,TheLastMonth,TheLastBillingMonth,Custom.
- type String
- The type of the query. Possible values are ActualCost,AmortizedCostandUsage.
- timeFrame string
- The time frame for pulling data for the query. If custom, then a specific time period must be provided. Possible values include: WeekToDate,MonthToDate,BillingMonthToDate,TheLast7Days,TheLastMonth,TheLastBillingMonth,Custom.
- type string
- The type of the query. Possible values are ActualCost,AmortizedCostandUsage.
- time_frame str
- The time frame for pulling data for the query. If custom, then a specific time period must be provided. Possible values include: WeekToDate,MonthToDate,BillingMonthToDate,TheLast7Days,TheLastMonth,TheLastBillingMonth,Custom.
- type str
- The type of the query. Possible values are ActualCost,AmortizedCostandUsage.
- timeFrame String
- The time frame for pulling data for the query. If custom, then a specific time period must be provided. Possible values include: WeekToDate,MonthToDate,BillingMonthToDate,TheLast7Days,TheLastMonth,TheLastBillingMonth,Custom.
- type String
- The type of the query. Possible values are ActualCost,AmortizedCostandUsage.
SubscriptionCostManagementExportExportDataStorageLocation, SubscriptionCostManagementExportExportDataStorageLocationArgs                
- ContainerId string
- The Resource Manager ID of the container where exports will be uploaded. Changing this forces a new resource to be created.
- RootFolder stringPath 
- The path of the directory where exports will be uploaded. Changing this forces a new resource to be created. - Note: The Resource Manager ID of a Storage Container is exposed via the - resource_manager_idattribute of the- azure.storage.Containerresource.
- ContainerId string
- The Resource Manager ID of the container where exports will be uploaded. Changing this forces a new resource to be created.
- RootFolder stringPath 
- The path of the directory where exports will be uploaded. Changing this forces a new resource to be created. - Note: The Resource Manager ID of a Storage Container is exposed via the - resource_manager_idattribute of the- azure.storage.Containerresource.
- containerId String
- The Resource Manager ID of the container where exports will be uploaded. Changing this forces a new resource to be created.
- rootFolder StringPath 
- The path of the directory where exports will be uploaded. Changing this forces a new resource to be created. - Note: The Resource Manager ID of a Storage Container is exposed via the - resource_manager_idattribute of the- azure.storage.Containerresource.
- containerId string
- The Resource Manager ID of the container where exports will be uploaded. Changing this forces a new resource to be created.
- rootFolder stringPath 
- The path of the directory where exports will be uploaded. Changing this forces a new resource to be created. - Note: The Resource Manager ID of a Storage Container is exposed via the - resource_manager_idattribute of the- azure.storage.Containerresource.
- container_id str
- The Resource Manager ID of the container where exports will be uploaded. Changing this forces a new resource to be created.
- root_folder_ strpath 
- The path of the directory where exports will be uploaded. Changing this forces a new resource to be created. - Note: The Resource Manager ID of a Storage Container is exposed via the - resource_manager_idattribute of the- azure.storage.Containerresource.
- containerId String
- The Resource Manager ID of the container where exports will be uploaded. Changing this forces a new resource to be created.
- rootFolder StringPath 
- The path of the directory where exports will be uploaded. Changing this forces a new resource to be created. - Note: The Resource Manager ID of a Storage Container is exposed via the - resource_manager_idattribute of the- azure.storage.Containerresource.
Import
Subscription Cost Management Exports can be imported using the resource id, e.g.
$ pulumi import azure:core/subscriptionCostManagementExport:SubscriptionCostManagementExport example /subscriptions/12345678-1234-9876-4563-123456789012/providers/Microsoft.CostManagement/exports/export1
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.