AccountCostManagementExport

class AccountCostManagementExport : KotlinCustomResource

Manages a Cost Management Export for a Billing Account.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.accountTier("Standard")
.accountReplicationType("LRS")
.build());
var exampleContainer = new Container("exampleContainer", ContainerArgs.builder()
.storageAccountName(exampleAccount.name())
.build());
var exampleAccountCostManagementExport = new AccountCostManagementExport("exampleAccountCostManagementExport", AccountCostManagementExportArgs.builder()
.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());
}
}

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

Properties

Link copied to clipboard
val active: Output<Boolean>?

Is the cost management export active? Default is true.

Link copied to clipboard

The id of the billing account on which to create an export. Changing this forces a new resource to be created.

Link copied to clipboard

A export_data_options block as defined below.

Link copied to clipboard

A export_data_storage_location block as defined below.

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

Specifies the name of the Cost Management Export. Changing this forces a new resource to be created.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The date the export will stop capturing information.

Link copied to clipboard

The date the export will start capturing information.

Link copied to clipboard
val recurrenceType: Output<String>

How often the requested information will be exported. Valid values include Annually, Daily, Monthly, Weekly.

Link copied to clipboard
val urn: Output<String>