We recommend using Azure Native.
azure.billing.AccountCostManagementExport
Explore with Pulumi AI
Manages a Cost Management Export for a Billing Account.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = new azure.core.ResourceGroup("example", {
name: "example-resources",
location: "West Europe",
});
const exampleAccount = new azure.storage.Account("example", {
name: "example",
resourceGroupName: example.name,
location: example.location,
accountTier: "Standard",
accountReplicationType: "LRS",
});
const exampleContainer = new azure.storage.Container("example", {
name: "examplecontainer",
storageAccountName: exampleAccount.name,
});
const exampleAccountCostManagementExport = new azure.billing.AccountCostManagementExport("example", {
name: "example",
billingAccountId: "example",
recurrenceType: "Monthly",
recurrencePeriodStartDate: "2020-08-18T00:00:00Z",
recurrencePeriodEndDate: "2020-09-18T00:00:00Z",
exportDataStorageLocation: {
containerId: exampleContainer.resourceManagerId,
rootFolderPath: "/root/updated",
},
exportDataOptions: {
type: "Usage",
timeFrame: "WeekToDate",
},
});
import pulumi
import pulumi_azure as azure
example = azure.core.ResourceGroup("example",
name="example-resources",
location="West Europe")
example_account = azure.storage.Account("example",
name="example",
resource_group_name=example.name,
location=example.location,
account_tier="Standard",
account_replication_type="LRS")
example_container = azure.storage.Container("example",
name="examplecontainer",
storage_account_name=example_account.name)
example_account_cost_management_export = azure.billing.AccountCostManagementExport("example",
name="example",
billing_account_id="example",
recurrence_type="Monthly",
recurrence_period_start_date="2020-08-18T00:00:00Z",
recurrence_period_end_date="2020-09-18T00:00:00Z",
export_data_storage_location=azure.billing.AccountCostManagementExportExportDataStorageLocationArgs(
container_id=example_container.resource_manager_id,
root_folder_path="/root/updated",
),
export_data_options=azure.billing.AccountCostManagementExportExportDataOptionsArgs(
type="Usage",
time_frame="WeekToDate",
))
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/billing"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/storage"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, 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: example.Name,
Location: example.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 = billing.NewAccountCostManagementExport(ctx, "example", &billing.AccountCostManagementExportArgs{
Name: pulumi.String("example"),
BillingAccountId: pulumi.String("example"),
RecurrenceType: pulumi.String("Monthly"),
RecurrencePeriodStartDate: pulumi.String("2020-08-18T00:00:00Z"),
RecurrencePeriodEndDate: pulumi.String("2020-09-18T00:00:00Z"),
ExportDataStorageLocation: &billing.AccountCostManagementExportExportDataStorageLocationArgs{
ContainerId: exampleContainer.ResourceManagerId,
RootFolderPath: pulumi.String("/root/updated"),
},
ExportDataOptions: &billing.AccountCostManagementExportExportDataOptionsArgs{
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 = new Azure.Core.ResourceGroup("example", new()
{
Name = "example-resources",
Location = "West Europe",
});
var exampleAccount = new Azure.Storage.Account("example", new()
{
Name = "example",
ResourceGroupName = example.Name,
Location = example.Location,
AccountTier = "Standard",
AccountReplicationType = "LRS",
});
var exampleContainer = new Azure.Storage.Container("example", new()
{
Name = "examplecontainer",
StorageAccountName = exampleAccount.Name,
});
var exampleAccountCostManagementExport = new Azure.Billing.AccountCostManagementExport("example", new()
{
Name = "example",
BillingAccountId = "example",
RecurrenceType = "Monthly",
RecurrencePeriodStartDate = "2020-08-18T00:00:00Z",
RecurrencePeriodEndDate = "2020-09-18T00:00:00Z",
ExportDataStorageLocation = new Azure.Billing.Inputs.AccountCostManagementExportExportDataStorageLocationArgs
{
ContainerId = exampleContainer.ResourceManagerId,
RootFolderPath = "/root/updated",
},
ExportDataOptions = new Azure.Billing.Inputs.AccountCostManagementExportExportDataOptionsArgs
{
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.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.billing.AccountCostManagementExport;
import com.pulumi.azure.billing.AccountCostManagementExportArgs;
import com.pulumi.azure.billing.inputs.AccountCostManagementExportExportDataStorageLocationArgs;
import com.pulumi.azure.billing.inputs.AccountCostManagementExportExportDataOptionsArgs;
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 ResourceGroup("example", ResourceGroupArgs.builder()
.name("example-resources")
.location("West Europe")
.build());
var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
.name("example")
.resourceGroupName(example.name())
.location(example.location())
.accountTier("Standard")
.accountReplicationType("LRS")
.build());
var exampleContainer = new Container("exampleContainer", ContainerArgs.builder()
.name("examplecontainer")
.storageAccountName(exampleAccount.name())
.build());
var exampleAccountCostManagementExport = new AccountCostManagementExport("exampleAccountCostManagementExport", AccountCostManagementExportArgs.builder()
.name("example")
.billingAccountId("example")
.recurrenceType("Monthly")
.recurrencePeriodStartDate("2020-08-18T00:00:00Z")
.recurrencePeriodEndDate("2020-09-18T00:00:00Z")
.exportDataStorageLocation(AccountCostManagementExportExportDataStorageLocationArgs.builder()
.containerId(exampleContainer.resourceManagerId())
.rootFolderPath("/root/updated")
.build())
.exportDataOptions(AccountCostManagementExportExportDataOptionsArgs.builder()
.type("Usage")
.timeFrame("WeekToDate")
.build())
.build());
}
}
resources:
example:
type: azure:core:ResourceGroup
properties:
name: example-resources
location: West Europe
exampleAccount:
type: azure:storage:Account
name: example
properties:
name: example
resourceGroupName: ${example.name}
location: ${example.location}
accountTier: Standard
accountReplicationType: LRS
exampleContainer:
type: azure:storage:Container
name: example
properties:
name: examplecontainer
storageAccountName: ${exampleAccount.name}
exampleAccountCostManagementExport:
type: azure:billing:AccountCostManagementExport
name: example
properties:
name: example
billingAccountId: example
recurrenceType: Monthly
recurrencePeriodStartDate: 2020-08-18T00:00:00Z
recurrencePeriodEndDate: 2020-09-18T00:00:00Z
exportDataStorageLocation:
containerId: ${exampleContainer.resourceManagerId}
rootFolderPath: /root/updated
exportDataOptions:
type: Usage
timeFrame: WeekToDate
Create AccountCostManagementExport Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AccountCostManagementExport(name: string, args: AccountCostManagementExportArgs, opts?: CustomResourceOptions);
@overload
def AccountCostManagementExport(resource_name: str,
args: AccountCostManagementExportArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AccountCostManagementExport(resource_name: str,
opts: Optional[ResourceOptions] = None,
billing_account_id: Optional[str] = None,
export_data_options: Optional[AccountCostManagementExportExportDataOptionsArgs] = None,
export_data_storage_location: Optional[AccountCostManagementExportExportDataStorageLocationArgs] = None,
recurrence_period_end_date: Optional[str] = None,
recurrence_period_start_date: Optional[str] = None,
recurrence_type: Optional[str] = None,
active: Optional[bool] = None,
name: Optional[str] = None)
func NewAccountCostManagementExport(ctx *Context, name string, args AccountCostManagementExportArgs, opts ...ResourceOption) (*AccountCostManagementExport, error)
public AccountCostManagementExport(string name, AccountCostManagementExportArgs args, CustomResourceOptions? opts = null)
public AccountCostManagementExport(String name, AccountCostManagementExportArgs args)
public AccountCostManagementExport(String name, AccountCostManagementExportArgs args, CustomResourceOptions options)
type: azure:billing:AccountCostManagementExport
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 AccountCostManagementExportArgs
- 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 AccountCostManagementExportArgs
- 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 AccountCostManagementExportArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AccountCostManagementExportArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AccountCostManagementExportArgs
- 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 accountCostManagementExportResource = new Azure.Billing.AccountCostManagementExport("accountCostManagementExportResource", new()
{
BillingAccountId = "string",
ExportDataOptions = new Azure.Billing.Inputs.AccountCostManagementExportExportDataOptionsArgs
{
TimeFrame = "string",
Type = "string",
},
ExportDataStorageLocation = new Azure.Billing.Inputs.AccountCostManagementExportExportDataStorageLocationArgs
{
ContainerId = "string",
RootFolderPath = "string",
},
RecurrencePeriodEndDate = "string",
RecurrencePeriodStartDate = "string",
RecurrenceType = "string",
Active = false,
Name = "string",
});
example, err := billing.NewAccountCostManagementExport(ctx, "accountCostManagementExportResource", &billing.AccountCostManagementExportArgs{
BillingAccountId: pulumi.String("string"),
ExportDataOptions: &billing.AccountCostManagementExportExportDataOptionsArgs{
TimeFrame: pulumi.String("string"),
Type: pulumi.String("string"),
},
ExportDataStorageLocation: &billing.AccountCostManagementExportExportDataStorageLocationArgs{
ContainerId: pulumi.String("string"),
RootFolderPath: pulumi.String("string"),
},
RecurrencePeriodEndDate: pulumi.String("string"),
RecurrencePeriodStartDate: pulumi.String("string"),
RecurrenceType: pulumi.String("string"),
Active: pulumi.Bool(false),
Name: pulumi.String("string"),
})
var accountCostManagementExportResource = new AccountCostManagementExport("accountCostManagementExportResource", AccountCostManagementExportArgs.builder()
.billingAccountId("string")
.exportDataOptions(AccountCostManagementExportExportDataOptionsArgs.builder()
.timeFrame("string")
.type("string")
.build())
.exportDataStorageLocation(AccountCostManagementExportExportDataStorageLocationArgs.builder()
.containerId("string")
.rootFolderPath("string")
.build())
.recurrencePeriodEndDate("string")
.recurrencePeriodStartDate("string")
.recurrenceType("string")
.active(false)
.name("string")
.build());
account_cost_management_export_resource = azure.billing.AccountCostManagementExport("accountCostManagementExportResource",
billing_account_id="string",
export_data_options=azure.billing.AccountCostManagementExportExportDataOptionsArgs(
time_frame="string",
type="string",
),
export_data_storage_location=azure.billing.AccountCostManagementExportExportDataStorageLocationArgs(
container_id="string",
root_folder_path="string",
),
recurrence_period_end_date="string",
recurrence_period_start_date="string",
recurrence_type="string",
active=False,
name="string")
const accountCostManagementExportResource = new azure.billing.AccountCostManagementExport("accountCostManagementExportResource", {
billingAccountId: "string",
exportDataOptions: {
timeFrame: "string",
type: "string",
},
exportDataStorageLocation: {
containerId: "string",
rootFolderPath: "string",
},
recurrencePeriodEndDate: "string",
recurrencePeriodStartDate: "string",
recurrenceType: "string",
active: false,
name: "string",
});
type: azure:billing:AccountCostManagementExport
properties:
active: false
billingAccountId: string
exportDataOptions:
timeFrame: string
type: string
exportDataStorageLocation:
containerId: string
rootFolderPath: string
name: string
recurrencePeriodEndDate: string
recurrencePeriodStartDate: string
recurrenceType: string
AccountCostManagementExport Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The AccountCostManagementExport resource accepts the following input properties:
- Billing
Account stringId - The id of the billing account on which to create an export. Changing this forces a new resource to be created.
- Export
Data AccountOptions Cost Management Export Export Data Options - A
export_data_options
block as defined below. - Export
Data AccountStorage Location Cost Management Export Export Data Storage Location - A
export_data_storage_location
block as defined below. - Recurrence
Period stringEnd Date - The date the export will stop capturing information.
- Recurrence
Period stringStart Date - The date the export will start capturing information.
- Recurrence
Type string - How often the requested information will be exported. Valid values include
Annually
,Daily
,Monthly
,Weekly
. - Active bool
- Is the cost management export active? Default is
true
. - Name string
- Specifies the name of the Cost Management Export. Changing this forces a new resource to be created.
- Billing
Account stringId - The id of the billing account on which to create an export. Changing this forces a new resource to be created.
- Export
Data AccountOptions Cost Management Export Export Data Options Args - A
export_data_options
block as defined below. - Export
Data AccountStorage Location Cost Management Export Export Data Storage Location Args - A
export_data_storage_location
block as defined below. - Recurrence
Period stringEnd Date - The date the export will stop capturing information.
- Recurrence
Period stringStart Date - The date the export will start capturing information.
- Recurrence
Type string - How often the requested information will be exported. Valid values include
Annually
,Daily
,Monthly
,Weekly
. - Active bool
- Is the cost management export active? Default is
true
. - Name string
- Specifies the name of the Cost Management Export. Changing this forces a new resource to be created.
- billing
Account StringId - The id of the billing account on which to create an export. Changing this forces a new resource to be created.
- export
Data AccountOptions Cost Management Export Export Data Options - A
export_data_options
block as defined below. - export
Data AccountStorage Location Cost Management Export Export Data Storage Location - A
export_data_storage_location
block as defined below. - recurrence
Period StringEnd Date - The date the export will stop capturing information.
- recurrence
Period StringStart Date - The date the export will start capturing information.
- recurrence
Type String - How often the requested information will be exported. Valid values include
Annually
,Daily
,Monthly
,Weekly
. - active Boolean
- Is the cost management export active? Default is
true
. - name String
- Specifies the name of the Cost Management Export. Changing this forces a new resource to be created.
- billing
Account stringId - The id of the billing account on which to create an export. Changing this forces a new resource to be created.
- export
Data AccountOptions Cost Management Export Export Data Options - A
export_data_options
block as defined below. - export
Data AccountStorage Location Cost Management Export Export Data Storage Location - A
export_data_storage_location
block as defined below. - recurrence
Period stringEnd Date - The date the export will stop capturing information.
- recurrence
Period stringStart Date - The date the export will start capturing information.
- recurrence
Type string - How often the requested information will be exported. Valid values include
Annually
,Daily
,Monthly
,Weekly
. - active boolean
- Is the cost management export active? Default is
true
. - name string
- Specifies the name of the Cost Management Export. Changing this forces a new resource to be created.
- billing_
account_ strid - The id of the billing account on which to create an export. Changing this forces a new resource to be created.
- export_
data_ Accountoptions Cost Management Export Export Data Options Args - A
export_data_options
block as defined below. - export_
data_ Accountstorage_ location Cost Management Export Export Data Storage Location Args - A
export_data_storage_location
block 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
. - active bool
- Is the cost management export active? Default is
true
. - name str
- Specifies the name of the Cost Management Export. Changing this forces a new resource to be created.
- billing
Account StringId - The id of the billing account on which to create an export. Changing this forces a new resource to be created.
- export
Data Property MapOptions - A
export_data_options
block as defined below. - export
Data Property MapStorage Location - A
export_data_storage_location
block as defined below. - recurrence
Period StringEnd Date - The date the export will stop capturing information.
- recurrence
Period StringStart Date - The date the export will start capturing information.
- recurrence
Type String - How often the requested information will be exported. Valid values include
Annually
,Daily
,Monthly
,Weekly
. - active Boolean
- Is the cost management export active? Default is
true
. - 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 AccountCostManagementExport 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 AccountCostManagementExport Resource
Get an existing AccountCostManagementExport 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?: AccountCostManagementExportState, opts?: CustomResourceOptions): AccountCostManagementExport
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
active: Optional[bool] = None,
billing_account_id: Optional[str] = None,
export_data_options: Optional[AccountCostManagementExportExportDataOptionsArgs] = None,
export_data_storage_location: Optional[AccountCostManagementExportExportDataStorageLocationArgs] = None,
name: Optional[str] = None,
recurrence_period_end_date: Optional[str] = None,
recurrence_period_start_date: Optional[str] = None,
recurrence_type: Optional[str] = None) -> AccountCostManagementExport
func GetAccountCostManagementExport(ctx *Context, name string, id IDInput, state *AccountCostManagementExportState, opts ...ResourceOption) (*AccountCostManagementExport, error)
public static AccountCostManagementExport Get(string name, Input<string> id, AccountCostManagementExportState? state, CustomResourceOptions? opts = null)
public static AccountCostManagementExport get(String name, Output<String> id, AccountCostManagementExportState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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
. - Billing
Account stringId - The id of the billing account on which to create an export. Changing this forces a new resource to be created.
- Export
Data AccountOptions Cost Management Export Export Data Options - A
export_data_options
block as defined below. - Export
Data AccountStorage Location Cost Management Export Export Data Storage Location - A
export_data_storage_location
block as defined below. - Name string
- Specifies the name of the Cost Management Export. Changing this forces a new resource to be created.
- Recurrence
Period stringEnd Date - The date the export will stop capturing information.
- Recurrence
Period stringStart Date - The date the export will start capturing information.
- Recurrence
Type string - How often the requested information will be exported. Valid values include
Annually
,Daily
,Monthly
,Weekly
.
- Active bool
- Is the cost management export active? Default is
true
. - Billing
Account stringId - The id of the billing account on which to create an export. Changing this forces a new resource to be created.
- Export
Data AccountOptions Cost Management Export Export Data Options Args - A
export_data_options
block as defined below. - Export
Data AccountStorage Location Cost Management Export Export Data Storage Location Args - A
export_data_storage_location
block as defined below. - Name string
- Specifies the name of the Cost Management Export. Changing this forces a new resource to be created.
- Recurrence
Period stringEnd Date - The date the export will stop capturing information.
- Recurrence
Period stringStart Date - The date the export will start capturing information.
- Recurrence
Type string - How often the requested information will be exported. Valid values include
Annually
,Daily
,Monthly
,Weekly
.
- active Boolean
- Is the cost management export active? Default is
true
. - billing
Account StringId - The id of the billing account on which to create an export. Changing this forces a new resource to be created.
- export
Data AccountOptions Cost Management Export Export Data Options - A
export_data_options
block as defined below. - export
Data AccountStorage Location Cost Management Export Export Data Storage Location - A
export_data_storage_location
block as defined below. - name String
- Specifies the name of the Cost Management Export. Changing this forces a new resource to be created.
- recurrence
Period StringEnd Date - The date the export will stop capturing information.
- recurrence
Period StringStart Date - The date the export will start capturing information.
- recurrence
Type String - How often the requested information will be exported. Valid values include
Annually
,Daily
,Monthly
,Weekly
.
- active boolean
- Is the cost management export active? Default is
true
. - billing
Account stringId - The id of the billing account on which to create an export. Changing this forces a new resource to be created.
- export
Data AccountOptions Cost Management Export Export Data Options - A
export_data_options
block as defined below. - export
Data AccountStorage Location Cost Management Export Export Data Storage Location - A
export_data_storage_location
block as defined below. - name string
- Specifies the name of the Cost Management Export. Changing this forces a new resource to be created.
- recurrence
Period stringEnd Date - The date the export will stop capturing information.
- recurrence
Period stringStart Date - The date the export will start capturing information.
- recurrence
Type string - How often the requested information will be exported. Valid values include
Annually
,Daily
,Monthly
,Weekly
.
- active bool
- Is the cost management export active? Default is
true
. - billing_
account_ strid - The id of the billing account on which to create an export. Changing this forces a new resource to be created.
- export_
data_ Accountoptions Cost Management Export Export Data Options Args - A
export_data_options
block as defined below. - export_
data_ Accountstorage_ location Cost Management Export Export Data Storage Location Args - A
export_data_storage_location
block as defined below. - 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
.
- active Boolean
- Is the cost management export active? Default is
true
. - billing
Account StringId - The id of the billing account on which to create an export. Changing this forces a new resource to be created.
- export
Data Property MapOptions - A
export_data_options
block as defined below. - export
Data Property MapStorage Location - A
export_data_storage_location
block as defined below. - name String
- Specifies the name of the Cost Management Export. Changing this forces a new resource to be created.
- recurrence
Period StringEnd Date - The date the export will stop capturing information.
- recurrence
Period StringStart Date - The date the export will start capturing information.
- recurrence
Type String - How often the requested information will be exported. Valid values include
Annually
,Daily
,Monthly
,Weekly
.
Supporting Types
AccountCostManagementExportExportDataOptions, AccountCostManagementExportExportDataOptionsArgs
- Time
Frame 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
,AmortizedCost
andUsage
.
- Time
Frame 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
,AmortizedCost
andUsage
.
- time
Frame 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
,AmortizedCost
andUsage
.
- time
Frame 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
,AmortizedCost
andUsage
.
- 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
,AmortizedCost
andUsage
.
- time
Frame 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
,AmortizedCost
andUsage
.
AccountCostManagementExportExportDataStorageLocation, AccountCostManagementExportExportDataStorageLocationArgs
- Container
Id string - The Resource Manager ID of the container where exports will be uploaded. Changing this forces a new resource to be created.
- Root
Folder 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_id
attribute of theazure.storage.Container
resource.
- Container
Id string - The Resource Manager ID of the container where exports will be uploaded. Changing this forces a new resource to be created.
- Root
Folder 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_id
attribute of theazure.storage.Container
resource.
- container
Id String - The Resource Manager ID of the container where exports will be uploaded. Changing this forces a new resource to be created.
- root
Folder 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_id
attribute of theazure.storage.Container
resource.
- container
Id string - The Resource Manager ID of the container where exports will be uploaded. Changing this forces a new resource to be created.
- root
Folder 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_id
attribute of theazure.storage.Container
resource.
- 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_id
attribute of theazure.storage.Container
resource.
- container
Id String - The Resource Manager ID of the container where exports will be uploaded. Changing this forces a new resource to be created.
- root
Folder 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_id
attribute of theazure.storage.Container
resource.
Import
Billing Account Cost Management Exports can be imported using the resource id
, e.g.
$ pulumi import azure:billing/accountCostManagementExport:AccountCostManagementExport example /providers/Microsoft.Billing/billingAccounts/12345678/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
azurerm
Terraform Provider.