1. Packages
  2. Azure Native
  3. API Docs
  4. costmanagement
  5. Export
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.2.0 published on Monday, Apr 14, 2025 by Pulumi

azure-native.costmanagement.Export

Explore with Pulumi AI

An export resource.

Uses Azure REST API version 2024-08-01. In version 2.x of the Azure Native provider, it used API version 2023-03-01.

Other available API versions: 2019-01-01, 2019-09-01, 2019-10-01, 2019-11-01, 2020-06-01, 2020-12-01-preview, 2021-01-01, 2021-10-01, 2022-10-01, 2023-03-01, 2023-04-01-preview, 2023-07-01-preview, 2023-08-01, 2023-09-01, 2023-11-01, 2024-10-01-preview, 2025-03-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native costmanagement [ApiVersion]. See the version guide for details.

Example Usage

ExportCreateOrUpdateByBillingAccount

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var export = new AzureNative.CostManagement.Export("export", new()
    {
        Definition = new AzureNative.CostManagement.Inputs.ExportDefinitionArgs
        {
            DataSet = new AzureNative.CostManagement.Inputs.ExportDatasetArgs
            {
                Configuration = new AzureNative.CostManagement.Inputs.ExportDatasetConfigurationArgs
                {
                    Columns = new[]
                    {
                        "Date",
                        "MeterId",
                        "ResourceId",
                        "ResourceLocation",
                        "Quantity",
                    },
                },
                Granularity = AzureNative.CostManagement.GranularityType.Daily,
            },
            Timeframe = AzureNative.CostManagement.TimeframeType.MonthToDate,
            Type = AzureNative.CostManagement.ExportType.ActualCost,
        },
        DeliveryInfo = new AzureNative.CostManagement.Inputs.ExportDeliveryInfoArgs
        {
            Destination = new AzureNative.CostManagement.Inputs.ExportDeliveryDestinationArgs
            {
                Container = "exports",
                ResourceId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182",
                RootFolderPath = "ad-hoc",
            },
        },
        ExportName = "TestExport",
        Format = AzureNative.CostManagement.FormatType.Csv,
        Identity = new AzureNative.CostManagement.Inputs.SystemAssignedServiceIdentityArgs
        {
            Type = AzureNative.CostManagement.SystemAssignedServiceIdentityType.SystemAssigned,
        },
        Location = "centralus",
        Schedule = new AzureNative.CostManagement.Inputs.ExportScheduleArgs
        {
            Recurrence = AzureNative.CostManagement.RecurrenceType.Weekly,
            RecurrencePeriod = new AzureNative.CostManagement.Inputs.ExportRecurrencePeriodArgs
            {
                From = "2020-06-01T00:00:00Z",
                To = "2020-10-31T00:00:00Z",
            },
            Status = AzureNative.CostManagement.StatusType.Active,
        },
        Scope = "providers/Microsoft.Billing/billingAccounts/123456",
    });

});
Copy
package main

import (
	costmanagement "github.com/pulumi/pulumi-azure-native-sdk/costmanagement/v3"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := costmanagement.NewExport(ctx, "export", &costmanagement.ExportArgs{
			Definition: &costmanagement.ExportDefinitionArgs{
				DataSet: &costmanagement.ExportDatasetArgs{
					Configuration: &costmanagement.ExportDatasetConfigurationArgs{
						Columns: pulumi.StringArray{
							pulumi.String("Date"),
							pulumi.String("MeterId"),
							pulumi.String("ResourceId"),
							pulumi.String("ResourceLocation"),
							pulumi.String("Quantity"),
						},
					},
					Granularity: pulumi.String(costmanagement.GranularityTypeDaily),
				},
				Timeframe: pulumi.String(costmanagement.TimeframeTypeMonthToDate),
				Type:      pulumi.String(costmanagement.ExportTypeActualCost),
			},
			DeliveryInfo: &costmanagement.ExportDeliveryInfoArgs{
				Destination: &costmanagement.ExportDeliveryDestinationArgs{
					Container:      pulumi.String("exports"),
					ResourceId:     pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182"),
					RootFolderPath: pulumi.String("ad-hoc"),
				},
			},
			ExportName: pulumi.String("TestExport"),
			Format:     pulumi.String(costmanagement.FormatTypeCsv),
			Identity: &costmanagement.SystemAssignedServiceIdentityArgs{
				Type: pulumi.String(costmanagement.SystemAssignedServiceIdentityTypeSystemAssigned),
			},
			Location: pulumi.String("centralus"),
			Schedule: &costmanagement.ExportScheduleArgs{
				Recurrence: pulumi.String(costmanagement.RecurrenceTypeWeekly),
				RecurrencePeriod: &costmanagement.ExportRecurrencePeriodArgs{
					From: pulumi.String("2020-06-01T00:00:00Z"),
					To:   pulumi.String("2020-10-31T00:00:00Z"),
				},
				Status: pulumi.String(costmanagement.StatusTypeActive),
			},
			Scope: pulumi.String("providers/Microsoft.Billing/billingAccounts/123456"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.costmanagement.Export;
import com.pulumi.azurenative.costmanagement.ExportArgs;
import com.pulumi.azurenative.costmanagement.inputs.ExportDefinitionArgs;
import com.pulumi.azurenative.costmanagement.inputs.ExportDatasetArgs;
import com.pulumi.azurenative.costmanagement.inputs.ExportDatasetConfigurationArgs;
import com.pulumi.azurenative.costmanagement.inputs.ExportDeliveryInfoArgs;
import com.pulumi.azurenative.costmanagement.inputs.ExportDeliveryDestinationArgs;
import com.pulumi.azurenative.costmanagement.inputs.SystemAssignedServiceIdentityArgs;
import com.pulumi.azurenative.costmanagement.inputs.ExportScheduleArgs;
import com.pulumi.azurenative.costmanagement.inputs.ExportRecurrencePeriodArgs;
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 export = new Export("export", ExportArgs.builder()
            .definition(ExportDefinitionArgs.builder()
                .dataSet(ExportDatasetArgs.builder()
                    .configuration(ExportDatasetConfigurationArgs.builder()
                        .columns(                        
                            "Date",
                            "MeterId",
                            "ResourceId",
                            "ResourceLocation",
                            "Quantity")
                        .build())
                    .granularity("Daily")
                    .build())
                .timeframe("MonthToDate")
                .type("ActualCost")
                .build())
            .deliveryInfo(ExportDeliveryInfoArgs.builder()
                .destination(ExportDeliveryDestinationArgs.builder()
                    .container("exports")
                    .resourceId("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182")
                    .rootFolderPath("ad-hoc")
                    .build())
                .build())
            .exportName("TestExport")
            .format("Csv")
            .identity(SystemAssignedServiceIdentityArgs.builder()
                .type("SystemAssigned")
                .build())
            .location("centralus")
            .schedule(ExportScheduleArgs.builder()
                .recurrence("Weekly")
                .recurrencePeriod(ExportRecurrencePeriodArgs.builder()
                    .from("2020-06-01T00:00:00Z")
                    .to("2020-10-31T00:00:00Z")
                    .build())
                .status("Active")
                .build())
            .scope("providers/Microsoft.Billing/billingAccounts/123456")
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const _export = new azure_native.costmanagement.Export("export", {
    definition: {
        dataSet: {
            configuration: {
                columns: [
                    "Date",
                    "MeterId",
                    "ResourceId",
                    "ResourceLocation",
                    "Quantity",
                ],
            },
            granularity: azure_native.costmanagement.GranularityType.Daily,
        },
        timeframe: azure_native.costmanagement.TimeframeType.MonthToDate,
        type: azure_native.costmanagement.ExportType.ActualCost,
    },
    deliveryInfo: {
        destination: {
            container: "exports",
            resourceId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182",
            rootFolderPath: "ad-hoc",
        },
    },
    exportName: "TestExport",
    format: azure_native.costmanagement.FormatType.Csv,
    identity: {
        type: azure_native.costmanagement.SystemAssignedServiceIdentityType.SystemAssigned,
    },
    location: "centralus",
    schedule: {
        recurrence: azure_native.costmanagement.RecurrenceType.Weekly,
        recurrencePeriod: {
            from: "2020-06-01T00:00:00Z",
            to: "2020-10-31T00:00:00Z",
        },
        status: azure_native.costmanagement.StatusType.Active,
    },
    scope: "providers/Microsoft.Billing/billingAccounts/123456",
});
Copy
import pulumi
import pulumi_azure_native as azure_native

export = azure_native.costmanagement.Export("export",
    definition={
        "data_set": {
            "configuration": {
                "columns": [
                    "Date",
                    "MeterId",
                    "ResourceId",
                    "ResourceLocation",
                    "Quantity",
                ],
            },
            "granularity": azure_native.costmanagement.GranularityType.DAILY,
        },
        "timeframe": azure_native.costmanagement.TimeframeType.MONTH_TO_DATE,
        "type": azure_native.costmanagement.ExportType.ACTUAL_COST,
    },
    delivery_info={
        "destination": {
            "container": "exports",
            "resource_id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182",
            "root_folder_path": "ad-hoc",
        },
    },
    export_name="TestExport",
    format=azure_native.costmanagement.FormatType.CSV,
    identity={
        "type": azure_native.costmanagement.SystemAssignedServiceIdentityType.SYSTEM_ASSIGNED,
    },
    location="centralus",
    schedule={
        "recurrence": azure_native.costmanagement.RecurrenceType.WEEKLY,
        "recurrence_period": {
            "from_": "2020-06-01T00:00:00Z",
            "to": "2020-10-31T00:00:00Z",
        },
        "status": azure_native.costmanagement.StatusType.ACTIVE,
    },
    scope="providers/Microsoft.Billing/billingAccounts/123456")
Copy
resources:
  export:
    type: azure-native:costmanagement:Export
    properties:
      definition:
        dataSet:
          configuration:
            columns:
              - Date
              - MeterId
              - ResourceId
              - ResourceLocation
              - Quantity
          granularity: Daily
        timeframe: MonthToDate
        type: ActualCost
      deliveryInfo:
        destination:
          container: exports
          resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182
          rootFolderPath: ad-hoc
      exportName: TestExport
      format: Csv
      identity:
        type: SystemAssigned
      location: centralus
      schedule:
        recurrence: Weekly
        recurrencePeriod:
          from: 2020-06-01T00:00:00Z
          to: 2020-10-31T00:00:00Z
        status: Active
      scope: providers/Microsoft.Billing/billingAccounts/123456
Copy

ExportCreateOrUpdateByDepartment

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var export = new AzureNative.CostManagement.Export("export", new()
    {
        Definition = new AzureNative.CostManagement.Inputs.ExportDefinitionArgs
        {
            DataSet = new AzureNative.CostManagement.Inputs.ExportDatasetArgs
            {
                Configuration = new AzureNative.CostManagement.Inputs.ExportDatasetConfigurationArgs
                {
                    Columns = new[]
                    {
                        "Date",
                        "MeterId",
                        "ResourceId",
                        "ResourceLocation",
                        "Quantity",
                    },
                },
                Granularity = AzureNative.CostManagement.GranularityType.Daily,
            },
            Timeframe = AzureNative.CostManagement.TimeframeType.MonthToDate,
            Type = AzureNative.CostManagement.ExportType.ActualCost,
        },
        DeliveryInfo = new AzureNative.CostManagement.Inputs.ExportDeliveryInfoArgs
        {
            Destination = new AzureNative.CostManagement.Inputs.ExportDeliveryDestinationArgs
            {
                Container = "exports",
                ResourceId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182",
                RootFolderPath = "ad-hoc",
            },
        },
        ExportName = "TestExport",
        Format = AzureNative.CostManagement.FormatType.Csv,
        Identity = new AzureNative.CostManagement.Inputs.SystemAssignedServiceIdentityArgs
        {
            Type = AzureNative.CostManagement.SystemAssignedServiceIdentityType.SystemAssigned,
        },
        Location = "centralus",
        Schedule = new AzureNative.CostManagement.Inputs.ExportScheduleArgs
        {
            Recurrence = AzureNative.CostManagement.RecurrenceType.Weekly,
            RecurrencePeriod = new AzureNative.CostManagement.Inputs.ExportRecurrencePeriodArgs
            {
                From = "2020-06-01T00:00:00Z",
                To = "2020-10-31T00:00:00Z",
            },
            Status = AzureNative.CostManagement.StatusType.Active,
        },
        Scope = "providers/Microsoft.Billing/billingAccounts/12/departments/1234",
    });

});
Copy
package main

import (
	costmanagement "github.com/pulumi/pulumi-azure-native-sdk/costmanagement/v3"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := costmanagement.NewExport(ctx, "export", &costmanagement.ExportArgs{
			Definition: &costmanagement.ExportDefinitionArgs{
				DataSet: &costmanagement.ExportDatasetArgs{
					Configuration: &costmanagement.ExportDatasetConfigurationArgs{
						Columns: pulumi.StringArray{
							pulumi.String("Date"),
							pulumi.String("MeterId"),
							pulumi.String("ResourceId"),
							pulumi.String("ResourceLocation"),
							pulumi.String("Quantity"),
						},
					},
					Granularity: pulumi.String(costmanagement.GranularityTypeDaily),
				},
				Timeframe: pulumi.String(costmanagement.TimeframeTypeMonthToDate),
				Type:      pulumi.String(costmanagement.ExportTypeActualCost),
			},
			DeliveryInfo: &costmanagement.ExportDeliveryInfoArgs{
				Destination: &costmanagement.ExportDeliveryDestinationArgs{
					Container:      pulumi.String("exports"),
					ResourceId:     pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182"),
					RootFolderPath: pulumi.String("ad-hoc"),
				},
			},
			ExportName: pulumi.String("TestExport"),
			Format:     pulumi.String(costmanagement.FormatTypeCsv),
			Identity: &costmanagement.SystemAssignedServiceIdentityArgs{
				Type: pulumi.String(costmanagement.SystemAssignedServiceIdentityTypeSystemAssigned),
			},
			Location: pulumi.String("centralus"),
			Schedule: &costmanagement.ExportScheduleArgs{
				Recurrence: pulumi.String(costmanagement.RecurrenceTypeWeekly),
				RecurrencePeriod: &costmanagement.ExportRecurrencePeriodArgs{
					From: pulumi.String("2020-06-01T00:00:00Z"),
					To:   pulumi.String("2020-10-31T00:00:00Z"),
				},
				Status: pulumi.String(costmanagement.StatusTypeActive),
			},
			Scope: pulumi.String("providers/Microsoft.Billing/billingAccounts/12/departments/1234"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.costmanagement.Export;
import com.pulumi.azurenative.costmanagement.ExportArgs;
import com.pulumi.azurenative.costmanagement.inputs.ExportDefinitionArgs;
import com.pulumi.azurenative.costmanagement.inputs.ExportDatasetArgs;
import com.pulumi.azurenative.costmanagement.inputs.ExportDatasetConfigurationArgs;
import com.pulumi.azurenative.costmanagement.inputs.ExportDeliveryInfoArgs;
import com.pulumi.azurenative.costmanagement.inputs.ExportDeliveryDestinationArgs;
import com.pulumi.azurenative.costmanagement.inputs.SystemAssignedServiceIdentityArgs;
import com.pulumi.azurenative.costmanagement.inputs.ExportScheduleArgs;
import com.pulumi.azurenative.costmanagement.inputs.ExportRecurrencePeriodArgs;
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 export = new Export("export", ExportArgs.builder()
            .definition(ExportDefinitionArgs.builder()
                .dataSet(ExportDatasetArgs.builder()
                    .configuration(ExportDatasetConfigurationArgs.builder()
                        .columns(                        
                            "Date",
                            "MeterId",
                            "ResourceId",
                            "ResourceLocation",
                            "Quantity")
                        .build())
                    .granularity("Daily")
                    .build())
                .timeframe("MonthToDate")
                .type("ActualCost")
                .build())
            .deliveryInfo(ExportDeliveryInfoArgs.builder()
                .destination(ExportDeliveryDestinationArgs.builder()
                    .container("exports")
                    .resourceId("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182")
                    .rootFolderPath("ad-hoc")
                    .build())
                .build())
            .exportName("TestExport")
            .format("Csv")
            .identity(SystemAssignedServiceIdentityArgs.builder()
                .type("SystemAssigned")
                .build())
            .location("centralus")
            .schedule(ExportScheduleArgs.builder()
                .recurrence("Weekly")
                .recurrencePeriod(ExportRecurrencePeriodArgs.builder()
                    .from("2020-06-01T00:00:00Z")
                    .to("2020-10-31T00:00:00Z")
                    .build())
                .status("Active")
                .build())
            .scope("providers/Microsoft.Billing/billingAccounts/12/departments/1234")
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const _export = new azure_native.costmanagement.Export("export", {
    definition: {
        dataSet: {
            configuration: {
                columns: [
                    "Date",
                    "MeterId",
                    "ResourceId",
                    "ResourceLocation",
                    "Quantity",
                ],
            },
            granularity: azure_native.costmanagement.GranularityType.Daily,
        },
        timeframe: azure_native.costmanagement.TimeframeType.MonthToDate,
        type: azure_native.costmanagement.ExportType.ActualCost,
    },
    deliveryInfo: {
        destination: {
            container: "exports",
            resourceId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182",
            rootFolderPath: "ad-hoc",
        },
    },
    exportName: "TestExport",
    format: azure_native.costmanagement.FormatType.Csv,
    identity: {
        type: azure_native.costmanagement.SystemAssignedServiceIdentityType.SystemAssigned,
    },
    location: "centralus",
    schedule: {
        recurrence: azure_native.costmanagement.RecurrenceType.Weekly,
        recurrencePeriod: {
            from: "2020-06-01T00:00:00Z",
            to: "2020-10-31T00:00:00Z",
        },
        status: azure_native.costmanagement.StatusType.Active,
    },
    scope: "providers/Microsoft.Billing/billingAccounts/12/departments/1234",
});
Copy
import pulumi
import pulumi_azure_native as azure_native

export = azure_native.costmanagement.Export("export",
    definition={
        "data_set": {
            "configuration": {
                "columns": [
                    "Date",
                    "MeterId",
                    "ResourceId",
                    "ResourceLocation",
                    "Quantity",
                ],
            },
            "granularity": azure_native.costmanagement.GranularityType.DAILY,
        },
        "timeframe": azure_native.costmanagement.TimeframeType.MONTH_TO_DATE,
        "type": azure_native.costmanagement.ExportType.ACTUAL_COST,
    },
    delivery_info={
        "destination": {
            "container": "exports",
            "resource_id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182",
            "root_folder_path": "ad-hoc",
        },
    },
    export_name="TestExport",
    format=azure_native.costmanagement.FormatType.CSV,
    identity={
        "type": azure_native.costmanagement.SystemAssignedServiceIdentityType.SYSTEM_ASSIGNED,
    },
    location="centralus",
    schedule={
        "recurrence": azure_native.costmanagement.RecurrenceType.WEEKLY,
        "recurrence_period": {
            "from_": "2020-06-01T00:00:00Z",
            "to": "2020-10-31T00:00:00Z",
        },
        "status": azure_native.costmanagement.StatusType.ACTIVE,
    },
    scope="providers/Microsoft.Billing/billingAccounts/12/departments/1234")
Copy
resources:
  export:
    type: azure-native:costmanagement:Export
    properties:
      definition:
        dataSet:
          configuration:
            columns:
              - Date
              - MeterId
              - ResourceId
              - ResourceLocation
              - Quantity
          granularity: Daily
        timeframe: MonthToDate
        type: ActualCost
      deliveryInfo:
        destination:
          container: exports
          resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182
          rootFolderPath: ad-hoc
      exportName: TestExport
      format: Csv
      identity:
        type: SystemAssigned
      location: centralus
      schedule:
        recurrence: Weekly
        recurrencePeriod:
          from: 2020-06-01T00:00:00Z
          to: 2020-10-31T00:00:00Z
        status: Active
      scope: providers/Microsoft.Billing/billingAccounts/12/departments/1234
Copy

ExportCreateOrUpdateByEnrollmentAccount

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var export = new AzureNative.CostManagement.Export("export", new()
    {
        Definition = new AzureNative.CostManagement.Inputs.ExportDefinitionArgs
        {
            DataSet = new AzureNative.CostManagement.Inputs.ExportDatasetArgs
            {
                Configuration = new AzureNative.CostManagement.Inputs.ExportDatasetConfigurationArgs
                {
                    Columns = new[]
                    {
                        "Date",
                        "MeterId",
                        "ResourceId",
                        "ResourceLocation",
                        "Quantity",
                    },
                },
                Granularity = AzureNative.CostManagement.GranularityType.Daily,
            },
            Timeframe = AzureNative.CostManagement.TimeframeType.MonthToDate,
            Type = AzureNative.CostManagement.ExportType.ActualCost,
        },
        DeliveryInfo = new AzureNative.CostManagement.Inputs.ExportDeliveryInfoArgs
        {
            Destination = new AzureNative.CostManagement.Inputs.ExportDeliveryDestinationArgs
            {
                Container = "exports",
                ResourceId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182",
                RootFolderPath = "ad-hoc",
            },
        },
        ExportName = "TestExport",
        Format = AzureNative.CostManagement.FormatType.Csv,
        Identity = new AzureNative.CostManagement.Inputs.SystemAssignedServiceIdentityArgs
        {
            Type = AzureNative.CostManagement.SystemAssignedServiceIdentityType.SystemAssigned,
        },
        Location = "centralus",
        Schedule = new AzureNative.CostManagement.Inputs.ExportScheduleArgs
        {
            Recurrence = AzureNative.CostManagement.RecurrenceType.Weekly,
            RecurrencePeriod = new AzureNative.CostManagement.Inputs.ExportRecurrencePeriodArgs
            {
                From = "2020-06-01T00:00:00Z",
                To = "2020-10-31T00:00:00Z",
            },
            Status = AzureNative.CostManagement.StatusType.Active,
        },
        Scope = "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456",
    });

});
Copy
package main

import (
	costmanagement "github.com/pulumi/pulumi-azure-native-sdk/costmanagement/v3"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := costmanagement.NewExport(ctx, "export", &costmanagement.ExportArgs{
			Definition: &costmanagement.ExportDefinitionArgs{
				DataSet: &costmanagement.ExportDatasetArgs{
					Configuration: &costmanagement.ExportDatasetConfigurationArgs{
						Columns: pulumi.StringArray{
							pulumi.String("Date"),
							pulumi.String("MeterId"),
							pulumi.String("ResourceId"),
							pulumi.String("ResourceLocation"),
							pulumi.String("Quantity"),
						},
					},
					Granularity: pulumi.String(costmanagement.GranularityTypeDaily),
				},
				Timeframe: pulumi.String(costmanagement.TimeframeTypeMonthToDate),
				Type:      pulumi.String(costmanagement.ExportTypeActualCost),
			},
			DeliveryInfo: &costmanagement.ExportDeliveryInfoArgs{
				Destination: &costmanagement.ExportDeliveryDestinationArgs{
					Container:      pulumi.String("exports"),
					ResourceId:     pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182"),
					RootFolderPath: pulumi.String("ad-hoc"),
				},
			},
			ExportName: pulumi.String("TestExport"),
			Format:     pulumi.String(costmanagement.FormatTypeCsv),
			Identity: &costmanagement.SystemAssignedServiceIdentityArgs{
				Type: pulumi.String(costmanagement.SystemAssignedServiceIdentityTypeSystemAssigned),
			},
			Location: pulumi.String("centralus"),
			Schedule: &costmanagement.ExportScheduleArgs{
				Recurrence: pulumi.String(costmanagement.RecurrenceTypeWeekly),
				RecurrencePeriod: &costmanagement.ExportRecurrencePeriodArgs{
					From: pulumi.String("2020-06-01T00:00:00Z"),
					To:   pulumi.String("2020-10-31T00:00:00Z"),
				},
				Status: pulumi.String(costmanagement.StatusTypeActive),
			},
			Scope: pulumi.String("providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.costmanagement.Export;
import com.pulumi.azurenative.costmanagement.ExportArgs;
import com.pulumi.azurenative.costmanagement.inputs.ExportDefinitionArgs;
import com.pulumi.azurenative.costmanagement.inputs.ExportDatasetArgs;
import com.pulumi.azurenative.costmanagement.inputs.ExportDatasetConfigurationArgs;
import com.pulumi.azurenative.costmanagement.inputs.ExportDeliveryInfoArgs;
import com.pulumi.azurenative.costmanagement.inputs.ExportDeliveryDestinationArgs;
import com.pulumi.azurenative.costmanagement.inputs.SystemAssignedServiceIdentityArgs;
import com.pulumi.azurenative.costmanagement.inputs.ExportScheduleArgs;
import com.pulumi.azurenative.costmanagement.inputs.ExportRecurrencePeriodArgs;
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 export = new Export("export", ExportArgs.builder()
            .definition(ExportDefinitionArgs.builder()
                .dataSet(ExportDatasetArgs.builder()
                    .configuration(ExportDatasetConfigurationArgs.builder()
                        .columns(                        
                            "Date",
                            "MeterId",
                            "ResourceId",
                            "ResourceLocation",
                            "Quantity")
                        .build())
                    .granularity("Daily")
                    .build())
                .timeframe("MonthToDate")
                .type("ActualCost")
                .build())
            .deliveryInfo(ExportDeliveryInfoArgs.builder()
                .destination(ExportDeliveryDestinationArgs.builder()
                    .container("exports")
                    .resourceId("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182")
                    .rootFolderPath("ad-hoc")
                    .build())
                .build())
            .exportName("TestExport")
            .format("Csv")
            .identity(SystemAssignedServiceIdentityArgs.builder()
                .type("SystemAssigned")
                .build())
            .location("centralus")
            .schedule(ExportScheduleArgs.builder()
                .recurrence("Weekly")
                .recurrencePeriod(ExportRecurrencePeriodArgs.builder()
                    .from("2020-06-01T00:00:00Z")
                    .to("2020-10-31T00:00:00Z")
                    .build())
                .status("Active")
                .build())
            .scope("providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456")
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const _export = new azure_native.costmanagement.Export("export", {
    definition: {
        dataSet: {
            configuration: {
                columns: [
                    "Date",
                    "MeterId",
                    "ResourceId",
                    "ResourceLocation",
                    "Quantity",
                ],
            },
            granularity: azure_native.costmanagement.GranularityType.Daily,
        },
        timeframe: azure_native.costmanagement.TimeframeType.MonthToDate,
        type: azure_native.costmanagement.ExportType.ActualCost,
    },
    deliveryInfo: {
        destination: {
            container: "exports",
            resourceId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182",
            rootFolderPath: "ad-hoc",
        },
    },
    exportName: "TestExport",
    format: azure_native.costmanagement.FormatType.Csv,
    identity: {
        type: azure_native.costmanagement.SystemAssignedServiceIdentityType.SystemAssigned,
    },
    location: "centralus",
    schedule: {
        recurrence: azure_native.costmanagement.RecurrenceType.Weekly,
        recurrencePeriod: {
            from: "2020-06-01T00:00:00Z",
            to: "2020-10-31T00:00:00Z",
        },
        status: azure_native.costmanagement.StatusType.Active,
    },
    scope: "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456",
});
Copy
import pulumi
import pulumi_azure_native as azure_native

export = azure_native.costmanagement.Export("export",
    definition={
        "data_set": {
            "configuration": {
                "columns": [
                    "Date",
                    "MeterId",
                    "ResourceId",
                    "ResourceLocation",
                    "Quantity",
                ],
            },
            "granularity": azure_native.costmanagement.GranularityType.DAILY,
        },
        "timeframe": azure_native.costmanagement.TimeframeType.MONTH_TO_DATE,
        "type": azure_native.costmanagement.ExportType.ACTUAL_COST,
    },
    delivery_info={
        "destination": {
            "container": "exports",
            "resource_id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182",
            "root_folder_path": "ad-hoc",
        },
    },
    export_name="TestExport",
    format=azure_native.costmanagement.FormatType.CSV,
    identity={
        "type": azure_native.costmanagement.SystemAssignedServiceIdentityType.SYSTEM_ASSIGNED,
    },
    location="centralus",
    schedule={
        "recurrence": azure_native.costmanagement.RecurrenceType.WEEKLY,
        "recurrence_period": {
            "from_": "2020-06-01T00:00:00Z",
            "to": "2020-10-31T00:00:00Z",
        },
        "status": azure_native.costmanagement.StatusType.ACTIVE,
    },
    scope="providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456")
Copy
resources:
  export:
    type: azure-native:costmanagement:Export
    properties:
      definition:
        dataSet:
          configuration:
            columns:
              - Date
              - MeterId
              - ResourceId
              - ResourceLocation
              - Quantity
          granularity: Daily
        timeframe: MonthToDate
        type: ActualCost
      deliveryInfo:
        destination:
          container: exports
          resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182
          rootFolderPath: ad-hoc
      exportName: TestExport
      format: Csv
      identity:
        type: SystemAssigned
      location: centralus
      schedule:
        recurrence: Weekly
        recurrencePeriod:
          from: 2020-06-01T00:00:00Z
          to: 2020-10-31T00:00:00Z
        status: Active
      scope: providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456
Copy

ExportCreateOrUpdateByManagementGroup

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var export = new AzureNative.CostManagement.Export("export", new()
    {
        Definition = new AzureNative.CostManagement.Inputs.ExportDefinitionArgs
        {
            DataSet = new AzureNative.CostManagement.Inputs.ExportDatasetArgs
            {
                Configuration = new AzureNative.CostManagement.Inputs.ExportDatasetConfigurationArgs
                {
                    Columns = new[]
                    {
                        "Date",
                        "MeterId",
                        "ResourceId",
                        "ResourceLocation",
                        "Quantity",
                    },
                },
                Granularity = AzureNative.CostManagement.GranularityType.Daily,
            },
            Timeframe = AzureNative.CostManagement.TimeframeType.MonthToDate,
            Type = AzureNative.CostManagement.ExportType.ActualCost,
        },
        DeliveryInfo = new AzureNative.CostManagement.Inputs.ExportDeliveryInfoArgs
        {
            Destination = new AzureNative.CostManagement.Inputs.ExportDeliveryDestinationArgs
            {
                Container = "exports",
                ResourceId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182",
                RootFolderPath = "ad-hoc",
            },
        },
        ExportName = "TestExport",
        Format = AzureNative.CostManagement.FormatType.Csv,
        Identity = new AzureNative.CostManagement.Inputs.SystemAssignedServiceIdentityArgs
        {
            Type = AzureNative.CostManagement.SystemAssignedServiceIdentityType.SystemAssigned,
        },
        Location = "centralus",
        Schedule = new AzureNative.CostManagement.Inputs.ExportScheduleArgs
        {
            Recurrence = AzureNative.CostManagement.RecurrenceType.Weekly,
            RecurrencePeriod = new AzureNative.CostManagement.Inputs.ExportRecurrencePeriodArgs
            {
                From = "2020-06-01T00:00:00Z",
                To = "2020-10-31T00:00:00Z",
            },
            Status = AzureNative.CostManagement.StatusType.Active,
        },
        Scope = "providers/Microsoft.Management/managementGroups/TestMG",
    });

});
Copy
package main

import (
	costmanagement "github.com/pulumi/pulumi-azure-native-sdk/costmanagement/v3"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := costmanagement.NewExport(ctx, "export", &costmanagement.ExportArgs{
			Definition: &costmanagement.ExportDefinitionArgs{
				DataSet: &costmanagement.ExportDatasetArgs{
					Configuration: &costmanagement.ExportDatasetConfigurationArgs{
						Columns: pulumi.StringArray{
							pulumi.String("Date"),
							pulumi.String("MeterId"),
							pulumi.String("ResourceId"),
							pulumi.String("ResourceLocation"),
							pulumi.String("Quantity"),
						},
					},
					Granularity: pulumi.String(costmanagement.GranularityTypeDaily),
				},
				Timeframe: pulumi.String(costmanagement.TimeframeTypeMonthToDate),
				Type:      pulumi.String(costmanagement.ExportTypeActualCost),
			},
			DeliveryInfo: &costmanagement.ExportDeliveryInfoArgs{
				Destination: &costmanagement.ExportDeliveryDestinationArgs{
					Container:      pulumi.String("exports"),
					ResourceId:     pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182"),
					RootFolderPath: pulumi.String("ad-hoc"),
				},
			},
			ExportName: pulumi.String("TestExport"),
			Format:     pulumi.String(costmanagement.FormatTypeCsv),
			Identity: &costmanagement.SystemAssignedServiceIdentityArgs{
				Type: pulumi.String(costmanagement.SystemAssignedServiceIdentityTypeSystemAssigned),
			},
			Location: pulumi.String("centralus"),
			Schedule: &costmanagement.ExportScheduleArgs{
				Recurrence: pulumi.String(costmanagement.RecurrenceTypeWeekly),
				RecurrencePeriod: &costmanagement.ExportRecurrencePeriodArgs{
					From: pulumi.String("2020-06-01T00:00:00Z"),
					To:   pulumi.String("2020-10-31T00:00:00Z"),
				},
				Status: pulumi.String(costmanagement.StatusTypeActive),
			},
			Scope: pulumi.String("providers/Microsoft.Management/managementGroups/TestMG"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.costmanagement.Export;
import com.pulumi.azurenative.costmanagement.ExportArgs;
import com.pulumi.azurenative.costmanagement.inputs.ExportDefinitionArgs;
import com.pulumi.azurenative.costmanagement.inputs.ExportDatasetArgs;
import com.pulumi.azurenative.costmanagement.inputs.ExportDatasetConfigurationArgs;
import com.pulumi.azurenative.costmanagement.inputs.ExportDeliveryInfoArgs;
import com.pulumi.azurenative.costmanagement.inputs.ExportDeliveryDestinationArgs;
import com.pulumi.azurenative.costmanagement.inputs.SystemAssignedServiceIdentityArgs;
import com.pulumi.azurenative.costmanagement.inputs.ExportScheduleArgs;
import com.pulumi.azurenative.costmanagement.inputs.ExportRecurrencePeriodArgs;
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 export = new Export("export", ExportArgs.builder()
            .definition(ExportDefinitionArgs.builder()
                .dataSet(ExportDatasetArgs.builder()
                    .configuration(ExportDatasetConfigurationArgs.builder()
                        .columns(                        
                            "Date",
                            "MeterId",
                            "ResourceId",
                            "ResourceLocation",
                            "Quantity")
                        .build())
                    .granularity("Daily")
                    .build())
                .timeframe("MonthToDate")
                .type("ActualCost")
                .build())
            .deliveryInfo(ExportDeliveryInfoArgs.builder()
                .destination(ExportDeliveryDestinationArgs.builder()
                    .container("exports")
                    .resourceId("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182")
                    .rootFolderPath("ad-hoc")
                    .build())
                .build())
            .exportName("TestExport")
            .format("Csv")
            .identity(SystemAssignedServiceIdentityArgs.builder()
                .type("SystemAssigned")
                .build())
            .location("centralus")
            .schedule(ExportScheduleArgs.builder()
                .recurrence("Weekly")
                .recurrencePeriod(ExportRecurrencePeriodArgs.builder()
                    .from("2020-06-01T00:00:00Z")
                    .to("2020-10-31T00:00:00Z")
                    .build())
                .status("Active")
                .build())
            .scope("providers/Microsoft.Management/managementGroups/TestMG")
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const _export = new azure_native.costmanagement.Export("export", {
    definition: {
        dataSet: {
            configuration: {
                columns: [
                    "Date",
                    "MeterId",
                    "ResourceId",
                    "ResourceLocation",
                    "Quantity",
                ],
            },
            granularity: azure_native.costmanagement.GranularityType.Daily,
        },
        timeframe: azure_native.costmanagement.TimeframeType.MonthToDate,
        type: azure_native.costmanagement.ExportType.ActualCost,
    },
    deliveryInfo: {
        destination: {
            container: "exports",
            resourceId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182",
            rootFolderPath: "ad-hoc",
        },
    },
    exportName: "TestExport",
    format: azure_native.costmanagement.FormatType.Csv,
    identity: {
        type: azure_native.costmanagement.SystemAssignedServiceIdentityType.SystemAssigned,
    },
    location: "centralus",
    schedule: {
        recurrence: azure_native.costmanagement.RecurrenceType.Weekly,
        recurrencePeriod: {
            from: "2020-06-01T00:00:00Z",
            to: "2020-10-31T00:00:00Z",
        },
        status: azure_native.costmanagement.StatusType.Active,
    },
    scope: "providers/Microsoft.Management/managementGroups/TestMG",
});
Copy
import pulumi
import pulumi_azure_native as azure_native

export = azure_native.costmanagement.Export("export",
    definition={
        "data_set": {
            "configuration": {
                "columns": [
                    "Date",
                    "MeterId",
                    "ResourceId",
                    "ResourceLocation",
                    "Quantity",
                ],
            },
            "granularity": azure_native.costmanagement.GranularityType.DAILY,
        },
        "timeframe": azure_native.costmanagement.TimeframeType.MONTH_TO_DATE,
        "type": azure_native.costmanagement.ExportType.ACTUAL_COST,
    },
    delivery_info={
        "destination": {
            "container": "exports",
            "resource_id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182",
            "root_folder_path": "ad-hoc",
        },
    },
    export_name="TestExport",
    format=azure_native.costmanagement.FormatType.CSV,
    identity={
        "type": azure_native.costmanagement.SystemAssignedServiceIdentityType.SYSTEM_ASSIGNED,
    },
    location="centralus",
    schedule={
        "recurrence": azure_native.costmanagement.RecurrenceType.WEEKLY,
        "recurrence_period": {
            "from_": "2020-06-01T00:00:00Z",
            "to": "2020-10-31T00:00:00Z",
        },
        "status": azure_native.costmanagement.StatusType.ACTIVE,
    },
    scope="providers/Microsoft.Management/managementGroups/TestMG")
Copy
resources:
  export:
    type: azure-native:costmanagement:Export
    properties:
      definition:
        dataSet:
          configuration:
            columns:
              - Date
              - MeterId
              - ResourceId
              - ResourceLocation
              - Quantity
          granularity: Daily
        timeframe: MonthToDate
        type: ActualCost
      deliveryInfo:
        destination:
          container: exports
          resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182
          rootFolderPath: ad-hoc
      exportName: TestExport
      format: Csv
      identity:
        type: SystemAssigned
      location: centralus
      schedule:
        recurrence: Weekly
        recurrencePeriod:
          from: 2020-06-01T00:00:00Z
          to: 2020-10-31T00:00:00Z
        status: Active
      scope: providers/Microsoft.Management/managementGroups/TestMG
Copy

ExportCreateOrUpdateByResourceGroup

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var export = new AzureNative.CostManagement.Export("export", new()
    {
        Definition = new AzureNative.CostManagement.Inputs.ExportDefinitionArgs
        {
            DataSet = new AzureNative.CostManagement.Inputs.ExportDatasetArgs
            {
                Configuration = new AzureNative.CostManagement.Inputs.ExportDatasetConfigurationArgs
                {
                    Columns = new[]
                    {
                        "Date",
                        "MeterId",
                        "ResourceId",
                        "ResourceLocation",
                        "Quantity",
                    },
                },
                Granularity = AzureNative.CostManagement.GranularityType.Daily,
            },
            Timeframe = AzureNative.CostManagement.TimeframeType.MonthToDate,
            Type = AzureNative.CostManagement.ExportType.ActualCost,
        },
        DeliveryInfo = new AzureNative.CostManagement.Inputs.ExportDeliveryInfoArgs
        {
            Destination = new AzureNative.CostManagement.Inputs.ExportDeliveryDestinationArgs
            {
                Container = "exports",
                ResourceId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182",
                RootFolderPath = "ad-hoc",
            },
        },
        ExportName = "TestExport",
        Format = AzureNative.CostManagement.FormatType.Csv,
        Identity = new AzureNative.CostManagement.Inputs.SystemAssignedServiceIdentityArgs
        {
            Type = AzureNative.CostManagement.SystemAssignedServiceIdentityType.SystemAssigned,
        },
        Location = "centralus",
        Schedule = new AzureNative.CostManagement.Inputs.ExportScheduleArgs
        {
            Recurrence = AzureNative.CostManagement.RecurrenceType.Weekly,
            RecurrencePeriod = new AzureNative.CostManagement.Inputs.ExportRecurrencePeriodArgs
            {
                From = "2020-06-01T00:00:00Z",
                To = "2020-10-31T00:00:00Z",
            },
            Status = AzureNative.CostManagement.StatusType.Active,
        },
        Scope = "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG",
    });

});
Copy
package main

import (
	costmanagement "github.com/pulumi/pulumi-azure-native-sdk/costmanagement/v3"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := costmanagement.NewExport(ctx, "export", &costmanagement.ExportArgs{
			Definition: &costmanagement.ExportDefinitionArgs{
				DataSet: &costmanagement.ExportDatasetArgs{
					Configuration: &costmanagement.ExportDatasetConfigurationArgs{
						Columns: pulumi.StringArray{
							pulumi.String("Date"),
							pulumi.String("MeterId"),
							pulumi.String("ResourceId"),
							pulumi.String("ResourceLocation"),
							pulumi.String("Quantity"),
						},
					},
					Granularity: pulumi.String(costmanagement.GranularityTypeDaily),
				},
				Timeframe: pulumi.String(costmanagement.TimeframeTypeMonthToDate),
				Type:      pulumi.String(costmanagement.ExportTypeActualCost),
			},
			DeliveryInfo: &costmanagement.ExportDeliveryInfoArgs{
				Destination: &costmanagement.ExportDeliveryDestinationArgs{
					Container:      pulumi.String("exports"),
					ResourceId:     pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182"),
					RootFolderPath: pulumi.String("ad-hoc"),
				},
			},
			ExportName: pulumi.String("TestExport"),
			Format:     pulumi.String(costmanagement.FormatTypeCsv),
			Identity: &costmanagement.SystemAssignedServiceIdentityArgs{
				Type: pulumi.String(costmanagement.SystemAssignedServiceIdentityTypeSystemAssigned),
			},
			Location: pulumi.String("centralus"),
			Schedule: &costmanagement.ExportScheduleArgs{
				Recurrence: pulumi.String(costmanagement.RecurrenceTypeWeekly),
				RecurrencePeriod: &costmanagement.ExportRecurrencePeriodArgs{
					From: pulumi.String("2020-06-01T00:00:00Z"),
					To:   pulumi.String("2020-10-31T00:00:00Z"),
				},
				Status: pulumi.String(costmanagement.StatusTypeActive),
			},
			Scope: pulumi.String("subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.costmanagement.Export;
import com.pulumi.azurenative.costmanagement.ExportArgs;
import com.pulumi.azurenative.costmanagement.inputs.ExportDefinitionArgs;
import com.pulumi.azurenative.costmanagement.inputs.ExportDatasetArgs;
import com.pulumi.azurenative.costmanagement.inputs.ExportDatasetConfigurationArgs;
import com.pulumi.azurenative.costmanagement.inputs.ExportDeliveryInfoArgs;
import com.pulumi.azurenative.costmanagement.inputs.ExportDeliveryDestinationArgs;
import com.pulumi.azurenative.costmanagement.inputs.SystemAssignedServiceIdentityArgs;
import com.pulumi.azurenative.costmanagement.inputs.ExportScheduleArgs;
import com.pulumi.azurenative.costmanagement.inputs.ExportRecurrencePeriodArgs;
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 export = new Export("export", ExportArgs.builder()
            .definition(ExportDefinitionArgs.builder()
                .dataSet(ExportDatasetArgs.builder()
                    .configuration(ExportDatasetConfigurationArgs.builder()
                        .columns(                        
                            "Date",
                            "MeterId",
                            "ResourceId",
                            "ResourceLocation",
                            "Quantity")
                        .build())
                    .granularity("Daily")
                    .build())
                .timeframe("MonthToDate")
                .type("ActualCost")
                .build())
            .deliveryInfo(ExportDeliveryInfoArgs.builder()
                .destination(ExportDeliveryDestinationArgs.builder()
                    .container("exports")
                    .resourceId("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182")
                    .rootFolderPath("ad-hoc")
                    .build())
                .build())
            .exportName("TestExport")
            .format("Csv")
            .identity(SystemAssignedServiceIdentityArgs.builder()
                .type("SystemAssigned")
                .build())
            .location("centralus")
            .schedule(ExportScheduleArgs.builder()
                .recurrence("Weekly")
                .recurrencePeriod(ExportRecurrencePeriodArgs.builder()
                    .from("2020-06-01T00:00:00Z")
                    .to("2020-10-31T00:00:00Z")
                    .build())
                .status("Active")
                .build())
            .scope("subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG")
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const _export = new azure_native.costmanagement.Export("export", {
    definition: {
        dataSet: {
            configuration: {
                columns: [
                    "Date",
                    "MeterId",
                    "ResourceId",
                    "ResourceLocation",
                    "Quantity",
                ],
            },
            granularity: azure_native.costmanagement.GranularityType.Daily,
        },
        timeframe: azure_native.costmanagement.TimeframeType.MonthToDate,
        type: azure_native.costmanagement.ExportType.ActualCost,
    },
    deliveryInfo: {
        destination: {
            container: "exports",
            resourceId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182",
            rootFolderPath: "ad-hoc",
        },
    },
    exportName: "TestExport",
    format: azure_native.costmanagement.FormatType.Csv,
    identity: {
        type: azure_native.costmanagement.SystemAssignedServiceIdentityType.SystemAssigned,
    },
    location: "centralus",
    schedule: {
        recurrence: azure_native.costmanagement.RecurrenceType.Weekly,
        recurrencePeriod: {
            from: "2020-06-01T00:00:00Z",
            to: "2020-10-31T00:00:00Z",
        },
        status: azure_native.costmanagement.StatusType.Active,
    },
    scope: "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG",
});
Copy
import pulumi
import pulumi_azure_native as azure_native

export = azure_native.costmanagement.Export("export",
    definition={
        "data_set": {
            "configuration": {
                "columns": [
                    "Date",
                    "MeterId",
                    "ResourceId",
                    "ResourceLocation",
                    "Quantity",
                ],
            },
            "granularity": azure_native.costmanagement.GranularityType.DAILY,
        },
        "timeframe": azure_native.costmanagement.TimeframeType.MONTH_TO_DATE,
        "type": azure_native.costmanagement.ExportType.ACTUAL_COST,
    },
    delivery_info={
        "destination": {
            "container": "exports",
            "resource_id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182",
            "root_folder_path": "ad-hoc",
        },
    },
    export_name="TestExport",
    format=azure_native.costmanagement.FormatType.CSV,
    identity={
        "type": azure_native.costmanagement.SystemAssignedServiceIdentityType.SYSTEM_ASSIGNED,
    },
    location="centralus",
    schedule={
        "recurrence": azure_native.costmanagement.RecurrenceType.WEEKLY,
        "recurrence_period": {
            "from_": "2020-06-01T00:00:00Z",
            "to": "2020-10-31T00:00:00Z",
        },
        "status": azure_native.costmanagement.StatusType.ACTIVE,
    },
    scope="subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG")
Copy
resources:
  export:
    type: azure-native:costmanagement:Export
    properties:
      definition:
        dataSet:
          configuration:
            columns:
              - Date
              - MeterId
              - ResourceId
              - ResourceLocation
              - Quantity
          granularity: Daily
        timeframe: MonthToDate
        type: ActualCost
      deliveryInfo:
        destination:
          container: exports
          resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182
          rootFolderPath: ad-hoc
      exportName: TestExport
      format: Csv
      identity:
        type: SystemAssigned
      location: centralus
      schedule:
        recurrence: Weekly
        recurrencePeriod:
          from: 2020-06-01T00:00:00Z
          to: 2020-10-31T00:00:00Z
        status: Active
      scope: subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG
Copy

ExportCreateOrUpdateBySubscription

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var export = new AzureNative.CostManagement.Export("export", new()
    {
        Definition = new AzureNative.CostManagement.Inputs.ExportDefinitionArgs
        {
            DataSet = new AzureNative.CostManagement.Inputs.ExportDatasetArgs
            {
                Configuration = new AzureNative.CostManagement.Inputs.ExportDatasetConfigurationArgs
                {
                    Columns = new[]
                    {
                        "Date",
                        "MeterId",
                        "ResourceId",
                        "ResourceLocation",
                        "Quantity",
                    },
                },
                Granularity = AzureNative.CostManagement.GranularityType.Daily,
            },
            Timeframe = AzureNative.CostManagement.TimeframeType.MonthToDate,
            Type = AzureNative.CostManagement.ExportType.ActualCost,
        },
        DeliveryInfo = new AzureNative.CostManagement.Inputs.ExportDeliveryInfoArgs
        {
            Destination = new AzureNative.CostManagement.Inputs.ExportDeliveryDestinationArgs
            {
                Container = "exports",
                ResourceId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182",
                RootFolderPath = "ad-hoc",
            },
        },
        ExportName = "TestExport",
        Format = AzureNative.CostManagement.FormatType.Csv,
        Identity = new AzureNative.CostManagement.Inputs.SystemAssignedServiceIdentityArgs
        {
            Type = AzureNative.CostManagement.SystemAssignedServiceIdentityType.SystemAssigned,
        },
        Location = "centralus",
        Schedule = new AzureNative.CostManagement.Inputs.ExportScheduleArgs
        {
            Recurrence = AzureNative.CostManagement.RecurrenceType.Weekly,
            RecurrencePeriod = new AzureNative.CostManagement.Inputs.ExportRecurrencePeriodArgs
            {
                From = "2020-06-01T00:00:00Z",
                To = "2020-10-31T00:00:00Z",
            },
            Status = AzureNative.CostManagement.StatusType.Active,
        },
        Scope = "subscriptions/00000000-0000-0000-0000-000000000000",
    });

});
Copy
package main

import (
	costmanagement "github.com/pulumi/pulumi-azure-native-sdk/costmanagement/v3"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := costmanagement.NewExport(ctx, "export", &costmanagement.ExportArgs{
			Definition: &costmanagement.ExportDefinitionArgs{
				DataSet: &costmanagement.ExportDatasetArgs{
					Configuration: &costmanagement.ExportDatasetConfigurationArgs{
						Columns: pulumi.StringArray{
							pulumi.String("Date"),
							pulumi.String("MeterId"),
							pulumi.String("ResourceId"),
							pulumi.String("ResourceLocation"),
							pulumi.String("Quantity"),
						},
					},
					Granularity: pulumi.String(costmanagement.GranularityTypeDaily),
				},
				Timeframe: pulumi.String(costmanagement.TimeframeTypeMonthToDate),
				Type:      pulumi.String(costmanagement.ExportTypeActualCost),
			},
			DeliveryInfo: &costmanagement.ExportDeliveryInfoArgs{
				Destination: &costmanagement.ExportDeliveryDestinationArgs{
					Container:      pulumi.String("exports"),
					ResourceId:     pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182"),
					RootFolderPath: pulumi.String("ad-hoc"),
				},
			},
			ExportName: pulumi.String("TestExport"),
			Format:     pulumi.String(costmanagement.FormatTypeCsv),
			Identity: &costmanagement.SystemAssignedServiceIdentityArgs{
				Type: pulumi.String(costmanagement.SystemAssignedServiceIdentityTypeSystemAssigned),
			},
			Location: pulumi.String("centralus"),
			Schedule: &costmanagement.ExportScheduleArgs{
				Recurrence: pulumi.String(costmanagement.RecurrenceTypeWeekly),
				RecurrencePeriod: &costmanagement.ExportRecurrencePeriodArgs{
					From: pulumi.String("2020-06-01T00:00:00Z"),
					To:   pulumi.String("2020-10-31T00:00:00Z"),
				},
				Status: pulumi.String(costmanagement.StatusTypeActive),
			},
			Scope: pulumi.String("subscriptions/00000000-0000-0000-0000-000000000000"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.costmanagement.Export;
import com.pulumi.azurenative.costmanagement.ExportArgs;
import com.pulumi.azurenative.costmanagement.inputs.ExportDefinitionArgs;
import com.pulumi.azurenative.costmanagement.inputs.ExportDatasetArgs;
import com.pulumi.azurenative.costmanagement.inputs.ExportDatasetConfigurationArgs;
import com.pulumi.azurenative.costmanagement.inputs.ExportDeliveryInfoArgs;
import com.pulumi.azurenative.costmanagement.inputs.ExportDeliveryDestinationArgs;
import com.pulumi.azurenative.costmanagement.inputs.SystemAssignedServiceIdentityArgs;
import com.pulumi.azurenative.costmanagement.inputs.ExportScheduleArgs;
import com.pulumi.azurenative.costmanagement.inputs.ExportRecurrencePeriodArgs;
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 export = new Export("export", ExportArgs.builder()
            .definition(ExportDefinitionArgs.builder()
                .dataSet(ExportDatasetArgs.builder()
                    .configuration(ExportDatasetConfigurationArgs.builder()
                        .columns(                        
                            "Date",
                            "MeterId",
                            "ResourceId",
                            "ResourceLocation",
                            "Quantity")
                        .build())
                    .granularity("Daily")
                    .build())
                .timeframe("MonthToDate")
                .type("ActualCost")
                .build())
            .deliveryInfo(ExportDeliveryInfoArgs.builder()
                .destination(ExportDeliveryDestinationArgs.builder()
                    .container("exports")
                    .resourceId("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182")
                    .rootFolderPath("ad-hoc")
                    .build())
                .build())
            .exportName("TestExport")
            .format("Csv")
            .identity(SystemAssignedServiceIdentityArgs.builder()
                .type("SystemAssigned")
                .build())
            .location("centralus")
            .schedule(ExportScheduleArgs.builder()
                .recurrence("Weekly")
                .recurrencePeriod(ExportRecurrencePeriodArgs.builder()
                    .from("2020-06-01T00:00:00Z")
                    .to("2020-10-31T00:00:00Z")
                    .build())
                .status("Active")
                .build())
            .scope("subscriptions/00000000-0000-0000-0000-000000000000")
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const _export = new azure_native.costmanagement.Export("export", {
    definition: {
        dataSet: {
            configuration: {
                columns: [
                    "Date",
                    "MeterId",
                    "ResourceId",
                    "ResourceLocation",
                    "Quantity",
                ],
            },
            granularity: azure_native.costmanagement.GranularityType.Daily,
        },
        timeframe: azure_native.costmanagement.TimeframeType.MonthToDate,
        type: azure_native.costmanagement.ExportType.ActualCost,
    },
    deliveryInfo: {
        destination: {
            container: "exports",
            resourceId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182",
            rootFolderPath: "ad-hoc",
        },
    },
    exportName: "TestExport",
    format: azure_native.costmanagement.FormatType.Csv,
    identity: {
        type: azure_native.costmanagement.SystemAssignedServiceIdentityType.SystemAssigned,
    },
    location: "centralus",
    schedule: {
        recurrence: azure_native.costmanagement.RecurrenceType.Weekly,
        recurrencePeriod: {
            from: "2020-06-01T00:00:00Z",
            to: "2020-10-31T00:00:00Z",
        },
        status: azure_native.costmanagement.StatusType.Active,
    },
    scope: "subscriptions/00000000-0000-0000-0000-000000000000",
});
Copy
import pulumi
import pulumi_azure_native as azure_native

export = azure_native.costmanagement.Export("export",
    definition={
        "data_set": {
            "configuration": {
                "columns": [
                    "Date",
                    "MeterId",
                    "ResourceId",
                    "ResourceLocation",
                    "Quantity",
                ],
            },
            "granularity": azure_native.costmanagement.GranularityType.DAILY,
        },
        "timeframe": azure_native.costmanagement.TimeframeType.MONTH_TO_DATE,
        "type": azure_native.costmanagement.ExportType.ACTUAL_COST,
    },
    delivery_info={
        "destination": {
            "container": "exports",
            "resource_id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182",
            "root_folder_path": "ad-hoc",
        },
    },
    export_name="TestExport",
    format=azure_native.costmanagement.FormatType.CSV,
    identity={
        "type": azure_native.costmanagement.SystemAssignedServiceIdentityType.SYSTEM_ASSIGNED,
    },
    location="centralus",
    schedule={
        "recurrence": azure_native.costmanagement.RecurrenceType.WEEKLY,
        "recurrence_period": {
            "from_": "2020-06-01T00:00:00Z",
            "to": "2020-10-31T00:00:00Z",
        },
        "status": azure_native.costmanagement.StatusType.ACTIVE,
    },
    scope="subscriptions/00000000-0000-0000-0000-000000000000")
Copy
resources:
  export:
    type: azure-native:costmanagement:Export
    properties:
      definition:
        dataSet:
          configuration:
            columns:
              - Date
              - MeterId
              - ResourceId
              - ResourceLocation
              - Quantity
          granularity: Daily
        timeframe: MonthToDate
        type: ActualCost
      deliveryInfo:
        destination:
          container: exports
          resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182
          rootFolderPath: ad-hoc
      exportName: TestExport
      format: Csv
      identity:
        type: SystemAssigned
      location: centralus
      schedule:
        recurrence: Weekly
        recurrencePeriod:
          from: 2020-06-01T00:00:00Z
          to: 2020-10-31T00:00:00Z
        status: Active
      scope: subscriptions/00000000-0000-0000-0000-000000000000
Copy

Create Export Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new Export(name: string, args: ExportArgs, opts?: CustomResourceOptions);
@overload
def Export(resource_name: str,
           args: ExportArgs,
           opts: Optional[ResourceOptions] = None)

@overload
def Export(resource_name: str,
           opts: Optional[ResourceOptions] = None,
           definition: Optional[ExportDefinitionArgs] = None,
           delivery_info: Optional[ExportDeliveryInfoArgs] = None,
           scope: Optional[str] = None,
           e_tag: Optional[str] = None,
           export_name: Optional[str] = None,
           format: Optional[Union[str, FormatType]] = None,
           identity: Optional[SystemAssignedServiceIdentityArgs] = None,
           location: Optional[str] = None,
           partition_data: Optional[bool] = None,
           schedule: Optional[ExportScheduleArgs] = None)
func NewExport(ctx *Context, name string, args ExportArgs, opts ...ResourceOption) (*Export, error)
public Export(string name, ExportArgs args, CustomResourceOptions? opts = null)
public Export(String name, ExportArgs args)
public Export(String name, ExportArgs args, CustomResourceOptions options)
type: azure-native:costmanagement:Export
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. ExportArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. ExportArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. ExportArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. ExportArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. ExportArgs
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 exportResource = new AzureNative.CostManagement.Export("exportResource", new()
{
    Definition = new AzureNative.CostManagement.Inputs.ExportDefinitionArgs
    {
        Timeframe = "string",
        Type = "string",
        DataSet = new AzureNative.CostManagement.Inputs.ExportDatasetArgs
        {
            Configuration = new AzureNative.CostManagement.Inputs.ExportDatasetConfigurationArgs
            {
                Columns = new[]
                {
                    "string",
                },
            },
            Granularity = "string",
        },
        TimePeriod = new AzureNative.CostManagement.Inputs.ExportTimePeriodArgs
        {
            From = "string",
            To = "string",
        },
    },
    DeliveryInfo = new AzureNative.CostManagement.Inputs.ExportDeliveryInfoArgs
    {
        Destination = new AzureNative.CostManagement.Inputs.ExportDeliveryDestinationArgs
        {
            Container = "string",
            ResourceId = "string",
            RootFolderPath = "string",
            SasToken = "string",
            StorageAccount = "string",
        },
    },
    Scope = "string",
    ETag = "string",
    ExportName = "string",
    Format = "string",
    Identity = new AzureNative.CostManagement.Inputs.SystemAssignedServiceIdentityArgs
    {
        Type = "string",
    },
    Location = "string",
    PartitionData = false,
    Schedule = new AzureNative.CostManagement.Inputs.ExportScheduleArgs
    {
        Recurrence = "string",
        RecurrencePeriod = new AzureNative.CostManagement.Inputs.ExportRecurrencePeriodArgs
        {
            From = "string",
            To = "string",
        },
        Status = "string",
    },
});
Copy
example, err := costmanagement.NewExport(ctx, "exportResource", &costmanagement.ExportArgs{
	Definition: &costmanagement.ExportDefinitionArgs{
		Timeframe: pulumi.String("string"),
		Type:      pulumi.String("string"),
		DataSet: &costmanagement.ExportDatasetArgs{
			Configuration: &costmanagement.ExportDatasetConfigurationArgs{
				Columns: pulumi.StringArray{
					pulumi.String("string"),
				},
			},
			Granularity: pulumi.String("string"),
		},
		TimePeriod: &costmanagement.ExportTimePeriodArgs{
			From: pulumi.String("string"),
			To:   pulumi.String("string"),
		},
	},
	DeliveryInfo: &costmanagement.ExportDeliveryInfoArgs{
		Destination: &costmanagement.ExportDeliveryDestinationArgs{
			Container:      pulumi.String("string"),
			ResourceId:     pulumi.String("string"),
			RootFolderPath: pulumi.String("string"),
			SasToken:       pulumi.String("string"),
			StorageAccount: pulumi.String("string"),
		},
	},
	Scope:      pulumi.String("string"),
	ETag:       pulumi.String("string"),
	ExportName: pulumi.String("string"),
	Format:     pulumi.String("string"),
	Identity: &costmanagement.SystemAssignedServiceIdentityArgs{
		Type: pulumi.String("string"),
	},
	Location:      pulumi.String("string"),
	PartitionData: pulumi.Bool(false),
	Schedule: &costmanagement.ExportScheduleArgs{
		Recurrence: pulumi.String("string"),
		RecurrencePeriod: &costmanagement.ExportRecurrencePeriodArgs{
			From: pulumi.String("string"),
			To:   pulumi.String("string"),
		},
		Status: pulumi.String("string"),
	},
})
Copy
var exportResource = new Export("exportResource", ExportArgs.builder()
    .definition(ExportDefinitionArgs.builder()
        .timeframe("string")
        .type("string")
        .dataSet(ExportDatasetArgs.builder()
            .configuration(ExportDatasetConfigurationArgs.builder()
                .columns("string")
                .build())
            .granularity("string")
            .build())
        .timePeriod(ExportTimePeriodArgs.builder()
            .from("string")
            .to("string")
            .build())
        .build())
    .deliveryInfo(ExportDeliveryInfoArgs.builder()
        .destination(ExportDeliveryDestinationArgs.builder()
            .container("string")
            .resourceId("string")
            .rootFolderPath("string")
            .sasToken("string")
            .storageAccount("string")
            .build())
        .build())
    .scope("string")
    .eTag("string")
    .exportName("string")
    .format("string")
    .identity(SystemAssignedServiceIdentityArgs.builder()
        .type("string")
        .build())
    .location("string")
    .partitionData(false)
    .schedule(ExportScheduleArgs.builder()
        .recurrence("string")
        .recurrencePeriod(ExportRecurrencePeriodArgs.builder()
            .from("string")
            .to("string")
            .build())
        .status("string")
        .build())
    .build());
Copy
export_resource = azure_native.costmanagement.Export("exportResource",
    definition={
        "timeframe": "string",
        "type": "string",
        "data_set": {
            "configuration": {
                "columns": ["string"],
            },
            "granularity": "string",
        },
        "time_period": {
            "from_": "string",
            "to": "string",
        },
    },
    delivery_info={
        "destination": {
            "container": "string",
            "resource_id": "string",
            "root_folder_path": "string",
            "sas_token": "string",
            "storage_account": "string",
        },
    },
    scope="string",
    e_tag="string",
    export_name="string",
    format="string",
    identity={
        "type": "string",
    },
    location="string",
    partition_data=False,
    schedule={
        "recurrence": "string",
        "recurrence_period": {
            "from_": "string",
            "to": "string",
        },
        "status": "string",
    })
Copy
const exportResource = new azure_native.costmanagement.Export("exportResource", {
    definition: {
        timeframe: "string",
        type: "string",
        dataSet: {
            configuration: {
                columns: ["string"],
            },
            granularity: "string",
        },
        timePeriod: {
            from: "string",
            to: "string",
        },
    },
    deliveryInfo: {
        destination: {
            container: "string",
            resourceId: "string",
            rootFolderPath: "string",
            sasToken: "string",
            storageAccount: "string",
        },
    },
    scope: "string",
    eTag: "string",
    exportName: "string",
    format: "string",
    identity: {
        type: "string",
    },
    location: "string",
    partitionData: false,
    schedule: {
        recurrence: "string",
        recurrencePeriod: {
            from: "string",
            to: "string",
        },
        status: "string",
    },
});
Copy
type: azure-native:costmanagement:Export
properties:
    definition:
        dataSet:
            configuration:
                columns:
                    - string
            granularity: string
        timePeriod:
            from: string
            to: string
        timeframe: string
        type: string
    deliveryInfo:
        destination:
            container: string
            resourceId: string
            rootFolderPath: string
            sasToken: string
            storageAccount: string
    eTag: string
    exportName: string
    format: string
    identity:
        type: string
    location: string
    partitionData: false
    schedule:
        recurrence: string
        recurrencePeriod:
            from: string
            to: string
        status: string
    scope: string
Copy

Export 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 Export resource accepts the following input properties:

Definition This property is required. Pulumi.AzureNative.CostManagement.Inputs.ExportDefinition
Has the definition for the export.
DeliveryInfo This property is required. Pulumi.AzureNative.CostManagement.Inputs.ExportDeliveryInfo
Has delivery information for the export.
Scope
This property is required.
Changes to this property will trigger replacement.
string
The scope associated with export operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId} for Management Group scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope, and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for partners.
ETag string
eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.
ExportName Changes to this property will trigger replacement. string
Export Name.
Format string | Pulumi.AzureNative.CostManagement.FormatType
The format of the export being delivered. Currently only 'Csv' is supported.
Identity Pulumi.AzureNative.CostManagement.Inputs.SystemAssignedServiceIdentity
The managed identity associated with Export
Location Changes to this property will trigger replacement. string
The location of the Export's managed identity. Only required when utilizing managed identity.
PartitionData bool
If set to true, exported data will be partitioned by size and placed in a blob directory together with a manifest file. Note: this option is currently available only for Microsoft Customer Agreement commerce scopes.
Schedule Pulumi.AzureNative.CostManagement.Inputs.ExportSchedule
Has schedule information for the export.
Definition This property is required. ExportDefinitionArgs
Has the definition for the export.
DeliveryInfo This property is required. ExportDeliveryInfoArgs
Has delivery information for the export.
Scope
This property is required.
Changes to this property will trigger replacement.
string
The scope associated with export operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId} for Management Group scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope, and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for partners.
ETag string
eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.
ExportName Changes to this property will trigger replacement. string
Export Name.
Format string | FormatType
The format of the export being delivered. Currently only 'Csv' is supported.
Identity SystemAssignedServiceIdentityArgs
The managed identity associated with Export
Location Changes to this property will trigger replacement. string
The location of the Export's managed identity. Only required when utilizing managed identity.
PartitionData bool
If set to true, exported data will be partitioned by size and placed in a blob directory together with a manifest file. Note: this option is currently available only for Microsoft Customer Agreement commerce scopes.
Schedule ExportScheduleArgs
Has schedule information for the export.
definition This property is required. ExportDefinition
Has the definition for the export.
deliveryInfo This property is required. ExportDeliveryInfo
Has delivery information for the export.
scope
This property is required.
Changes to this property will trigger replacement.
String
The scope associated with export operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId} for Management Group scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope, and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for partners.
eTag String
eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.
exportName Changes to this property will trigger replacement. String
Export Name.
format String | FormatType
The format of the export being delivered. Currently only 'Csv' is supported.
identity SystemAssignedServiceIdentity
The managed identity associated with Export
location Changes to this property will trigger replacement. String
The location of the Export's managed identity. Only required when utilizing managed identity.
partitionData Boolean
If set to true, exported data will be partitioned by size and placed in a blob directory together with a manifest file. Note: this option is currently available only for Microsoft Customer Agreement commerce scopes.
schedule ExportSchedule
Has schedule information for the export.
definition This property is required. ExportDefinition
Has the definition for the export.
deliveryInfo This property is required. ExportDeliveryInfo
Has delivery information for the export.
scope
This property is required.
Changes to this property will trigger replacement.
string
The scope associated with export operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId} for Management Group scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope, and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for partners.
eTag string
eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.
exportName Changes to this property will trigger replacement. string
Export Name.
format string | FormatType
The format of the export being delivered. Currently only 'Csv' is supported.
identity SystemAssignedServiceIdentity
The managed identity associated with Export
location Changes to this property will trigger replacement. string
The location of the Export's managed identity. Only required when utilizing managed identity.
partitionData boolean
If set to true, exported data will be partitioned by size and placed in a blob directory together with a manifest file. Note: this option is currently available only for Microsoft Customer Agreement commerce scopes.
schedule ExportSchedule
Has schedule information for the export.
definition This property is required. ExportDefinitionArgs
Has the definition for the export.
delivery_info This property is required. ExportDeliveryInfoArgs
Has delivery information for the export.
scope
This property is required.
Changes to this property will trigger replacement.
str
The scope associated with export operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId} for Management Group scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope, and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for partners.
e_tag str
eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.
export_name Changes to this property will trigger replacement. str
Export Name.
format str | FormatType
The format of the export being delivered. Currently only 'Csv' is supported.
identity SystemAssignedServiceIdentityArgs
The managed identity associated with Export
location Changes to this property will trigger replacement. str
The location of the Export's managed identity. Only required when utilizing managed identity.
partition_data bool
If set to true, exported data will be partitioned by size and placed in a blob directory together with a manifest file. Note: this option is currently available only for Microsoft Customer Agreement commerce scopes.
schedule ExportScheduleArgs
Has schedule information for the export.
definition This property is required. Property Map
Has the definition for the export.
deliveryInfo This property is required. Property Map
Has delivery information for the export.
scope
This property is required.
Changes to this property will trigger replacement.
String
The scope associated with export operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId} for Management Group scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope, and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for partners.
eTag String
eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.
exportName Changes to this property will trigger replacement. String
Export Name.
format String | "Csv"
The format of the export being delivered. Currently only 'Csv' is supported.
identity Property Map
The managed identity associated with Export
location Changes to this property will trigger replacement. String
The location of the Export's managed identity. Only required when utilizing managed identity.
partitionData Boolean
If set to true, exported data will be partitioned by size and placed in a blob directory together with a manifest file. Note: this option is currently available only for Microsoft Customer Agreement commerce scopes.
schedule Property Map
Has schedule information for the export.

Outputs

All input properties are implicitly available as output properties. Additionally, the Export resource produces the following output properties:

AzureApiVersion string
The Azure API version of the resource.
Id string
The provider-assigned unique ID for this managed resource.
Name string
Resource name.
NextRunTimeEstimate string
If the export has an active schedule, provides an estimate of the next run time.
Type string
Resource type.
RunHistory Pulumi.AzureNative.CostManagement.Outputs.ExportExecutionListResultResponse
If requested, has the most recent run history for the export.
AzureApiVersion string
The Azure API version of the resource.
Id string
The provider-assigned unique ID for this managed resource.
Name string
Resource name.
NextRunTimeEstimate string
If the export has an active schedule, provides an estimate of the next run time.
Type string
Resource type.
RunHistory ExportExecutionListResultResponse
If requested, has the most recent run history for the export.
azureApiVersion String
The Azure API version of the resource.
id String
The provider-assigned unique ID for this managed resource.
name String
Resource name.
nextRunTimeEstimate String
If the export has an active schedule, provides an estimate of the next run time.
type String
Resource type.
runHistory ExportExecutionListResultResponse
If requested, has the most recent run history for the export.
azureApiVersion string
The Azure API version of the resource.
id string
The provider-assigned unique ID for this managed resource.
name string
Resource name.
nextRunTimeEstimate string
If the export has an active schedule, provides an estimate of the next run time.
type string
Resource type.
runHistory ExportExecutionListResultResponse
If requested, has the most recent run history for the export.
azure_api_version str
The Azure API version of the resource.
id str
The provider-assigned unique ID for this managed resource.
name str
Resource name.
next_run_time_estimate str
If the export has an active schedule, provides an estimate of the next run time.
type str
Resource type.
run_history ExportExecutionListResultResponse
If requested, has the most recent run history for the export.
azureApiVersion String
The Azure API version of the resource.
id String
The provider-assigned unique ID for this managed resource.
name String
Resource name.
nextRunTimeEstimate String
If the export has an active schedule, provides an estimate of the next run time.
type String
Resource type.
runHistory Property Map
If requested, has the most recent run history for the export.

Supporting Types

CommonExportPropertiesResponse
, CommonExportPropertiesResponseArgs

Definition This property is required. Pulumi.AzureNative.CostManagement.Inputs.ExportDefinitionResponse
Has the definition for the export.
DeliveryInfo This property is required. Pulumi.AzureNative.CostManagement.Inputs.ExportDeliveryInfoResponse
Has delivery information for the export.
NextRunTimeEstimate This property is required. string
If the export has an active schedule, provides an estimate of the next run time.
Format string
The format of the export being delivered. Currently only 'Csv' is supported.
PartitionData bool
If set to true, exported data will be partitioned by size and placed in a blob directory together with a manifest file. Note: this option is currently available only for Microsoft Customer Agreement commerce scopes.
RunHistory Pulumi.AzureNative.CostManagement.Inputs.ExportExecutionListResultResponse
If requested, has the most recent run history for the export.
Definition This property is required. ExportDefinitionResponse
Has the definition for the export.
DeliveryInfo This property is required. ExportDeliveryInfoResponse
Has delivery information for the export.
NextRunTimeEstimate This property is required. string
If the export has an active schedule, provides an estimate of the next run time.
Format string
The format of the export being delivered. Currently only 'Csv' is supported.
PartitionData bool
If set to true, exported data will be partitioned by size and placed in a blob directory together with a manifest file. Note: this option is currently available only for Microsoft Customer Agreement commerce scopes.
RunHistory ExportExecutionListResultResponse
If requested, has the most recent run history for the export.
definition This property is required. ExportDefinitionResponse
Has the definition for the export.
deliveryInfo This property is required. ExportDeliveryInfoResponse
Has delivery information for the export.
nextRunTimeEstimate This property is required. String
If the export has an active schedule, provides an estimate of the next run time.
format String
The format of the export being delivered. Currently only 'Csv' is supported.
partitionData Boolean
If set to true, exported data will be partitioned by size and placed in a blob directory together with a manifest file. Note: this option is currently available only for Microsoft Customer Agreement commerce scopes.
runHistory ExportExecutionListResultResponse
If requested, has the most recent run history for the export.
definition This property is required. ExportDefinitionResponse
Has the definition for the export.
deliveryInfo This property is required. ExportDeliveryInfoResponse
Has delivery information for the export.
nextRunTimeEstimate This property is required. string
If the export has an active schedule, provides an estimate of the next run time.
format string
The format of the export being delivered. Currently only 'Csv' is supported.
partitionData boolean
If set to true, exported data will be partitioned by size and placed in a blob directory together with a manifest file. Note: this option is currently available only for Microsoft Customer Agreement commerce scopes.
runHistory ExportExecutionListResultResponse
If requested, has the most recent run history for the export.
definition This property is required. ExportDefinitionResponse
Has the definition for the export.
delivery_info This property is required. ExportDeliveryInfoResponse
Has delivery information for the export.
next_run_time_estimate This property is required. str
If the export has an active schedule, provides an estimate of the next run time.
format str
The format of the export being delivered. Currently only 'Csv' is supported.
partition_data bool
If set to true, exported data will be partitioned by size and placed in a blob directory together with a manifest file. Note: this option is currently available only for Microsoft Customer Agreement commerce scopes.
run_history ExportExecutionListResultResponse
If requested, has the most recent run history for the export.
definition This property is required. Property Map
Has the definition for the export.
deliveryInfo This property is required. Property Map
Has delivery information for the export.
nextRunTimeEstimate This property is required. String
If the export has an active schedule, provides an estimate of the next run time.
format String
The format of the export being delivered. Currently only 'Csv' is supported.
partitionData Boolean
If set to true, exported data will be partitioned by size and placed in a blob directory together with a manifest file. Note: this option is currently available only for Microsoft Customer Agreement commerce scopes.
runHistory Property Map
If requested, has the most recent run history for the export.

ErrorDetailsResponse
, ErrorDetailsResponseArgs

Code This property is required. string
Error code.
Message This property is required. string
Error message indicating why the operation failed.
Code This property is required. string
Error code.
Message This property is required. string
Error message indicating why the operation failed.
code This property is required. String
Error code.
message This property is required. String
Error message indicating why the operation failed.
code This property is required. string
Error code.
message This property is required. string
Error message indicating why the operation failed.
code This property is required. str
Error code.
message This property is required. str
Error message indicating why the operation failed.
code This property is required. String
Error code.
message This property is required. String
Error message indicating why the operation failed.

ExportDataset
, ExportDatasetArgs

Configuration Pulumi.AzureNative.CostManagement.Inputs.ExportDatasetConfiguration
The export dataset configuration.
Granularity string | Pulumi.AzureNative.CostManagement.GranularityType
The granularity of rows in the export. Currently only 'Daily' is supported.
Configuration ExportDatasetConfiguration
The export dataset configuration.
Granularity string | GranularityType
The granularity of rows in the export. Currently only 'Daily' is supported.
configuration ExportDatasetConfiguration
The export dataset configuration.
granularity String | GranularityType
The granularity of rows in the export. Currently only 'Daily' is supported.
configuration ExportDatasetConfiguration
The export dataset configuration.
granularity string | GranularityType
The granularity of rows in the export. Currently only 'Daily' is supported.
configuration ExportDatasetConfiguration
The export dataset configuration.
granularity str | GranularityType
The granularity of rows in the export. Currently only 'Daily' is supported.
configuration Property Map
The export dataset configuration.
granularity String | "Daily" | "Hourly"
The granularity of rows in the export. Currently only 'Daily' is supported.

ExportDatasetConfiguration
, ExportDatasetConfigurationArgs

Columns List<string>
Array of column names to be included in the export. If not provided then the export will include all available columns. The available columns can vary by customer channel (see examples).
Columns []string
Array of column names to be included in the export. If not provided then the export will include all available columns. The available columns can vary by customer channel (see examples).
columns List<String>
Array of column names to be included in the export. If not provided then the export will include all available columns. The available columns can vary by customer channel (see examples).
columns string[]
Array of column names to be included in the export. If not provided then the export will include all available columns. The available columns can vary by customer channel (see examples).
columns Sequence[str]
Array of column names to be included in the export. If not provided then the export will include all available columns. The available columns can vary by customer channel (see examples).
columns List<String>
Array of column names to be included in the export. If not provided then the export will include all available columns. The available columns can vary by customer channel (see examples).

ExportDatasetConfigurationResponse
, ExportDatasetConfigurationResponseArgs

Columns List<string>
Array of column names to be included in the export. If not provided then the export will include all available columns. The available columns can vary by customer channel (see examples).
Columns []string
Array of column names to be included in the export. If not provided then the export will include all available columns. The available columns can vary by customer channel (see examples).
columns List<String>
Array of column names to be included in the export. If not provided then the export will include all available columns. The available columns can vary by customer channel (see examples).
columns string[]
Array of column names to be included in the export. If not provided then the export will include all available columns. The available columns can vary by customer channel (see examples).
columns Sequence[str]
Array of column names to be included in the export. If not provided then the export will include all available columns. The available columns can vary by customer channel (see examples).
columns List<String>
Array of column names to be included in the export. If not provided then the export will include all available columns. The available columns can vary by customer channel (see examples).

ExportDatasetResponse
, ExportDatasetResponseArgs

Configuration Pulumi.AzureNative.CostManagement.Inputs.ExportDatasetConfigurationResponse
The export dataset configuration.
Granularity string
The granularity of rows in the export. Currently only 'Daily' is supported.
Configuration ExportDatasetConfigurationResponse
The export dataset configuration.
Granularity string
The granularity of rows in the export. Currently only 'Daily' is supported.
configuration ExportDatasetConfigurationResponse
The export dataset configuration.
granularity String
The granularity of rows in the export. Currently only 'Daily' is supported.
configuration ExportDatasetConfigurationResponse
The export dataset configuration.
granularity string
The granularity of rows in the export. Currently only 'Daily' is supported.
configuration ExportDatasetConfigurationResponse
The export dataset configuration.
granularity str
The granularity of rows in the export. Currently only 'Daily' is supported.
configuration Property Map
The export dataset configuration.
granularity String
The granularity of rows in the export. Currently only 'Daily' is supported.

ExportDefinition
, ExportDefinitionArgs

Timeframe This property is required. string | Pulumi.AzureNative.CostManagement.TimeframeType
The time frame for pulling data for the export. If custom, then a specific time period must be provided.
Type This property is required. string | Pulumi.AzureNative.CostManagement.ExportType
The type of the export. Note that 'Usage' is equivalent to 'ActualCost' and is applicable to exports that do not yet provide data for charges or amortization for service reservations.
DataSet Pulumi.AzureNative.CostManagement.Inputs.ExportDataset
The definition for data in the export.
TimePeriod Pulumi.AzureNative.CostManagement.Inputs.ExportTimePeriod
Has time period for pulling data for the export.
Timeframe This property is required. string | TimeframeType
The time frame for pulling data for the export. If custom, then a specific time period must be provided.
Type This property is required. string | ExportType
The type of the export. Note that 'Usage' is equivalent to 'ActualCost' and is applicable to exports that do not yet provide data for charges or amortization for service reservations.
DataSet ExportDataset
The definition for data in the export.
TimePeriod ExportTimePeriod
Has time period for pulling data for the export.
timeframe This property is required. String | TimeframeType
The time frame for pulling data for the export. If custom, then a specific time period must be provided.
type This property is required. String | ExportType
The type of the export. Note that 'Usage' is equivalent to 'ActualCost' and is applicable to exports that do not yet provide data for charges or amortization for service reservations.
dataSet ExportDataset
The definition for data in the export.
timePeriod ExportTimePeriod
Has time period for pulling data for the export.
timeframe This property is required. string | TimeframeType
The time frame for pulling data for the export. If custom, then a specific time period must be provided.
type This property is required. string | ExportType
The type of the export. Note that 'Usage' is equivalent to 'ActualCost' and is applicable to exports that do not yet provide data for charges or amortization for service reservations.
dataSet ExportDataset
The definition for data in the export.
timePeriod ExportTimePeriod
Has time period for pulling data for the export.
timeframe This property is required. str | TimeframeType
The time frame for pulling data for the export. If custom, then a specific time period must be provided.
type This property is required. str | ExportType
The type of the export. Note that 'Usage' is equivalent to 'ActualCost' and is applicable to exports that do not yet provide data for charges or amortization for service reservations.
data_set ExportDataset
The definition for data in the export.
time_period ExportTimePeriod
Has time period for pulling data for the export.
timeframe This property is required. String | "WeekToDate" | "MonthToDate" | "Custom"
The time frame for pulling data for the export. If custom, then a specific time period must be provided.
type This property is required. String | "Usage" | "ActualCost" | "AmortizedCost"
The type of the export. Note that 'Usage' is equivalent to 'ActualCost' and is applicable to exports that do not yet provide data for charges or amortization for service reservations.
dataSet Property Map
The definition for data in the export.
timePeriod Property Map
Has time period for pulling data for the export.

ExportDefinitionResponse
, ExportDefinitionResponseArgs

Timeframe This property is required. string
The time frame for pulling data for the export. If custom, then a specific time period must be provided.
Type This property is required. string
The type of the export. Note that 'Usage' is equivalent to 'ActualCost' and is applicable to exports that do not yet provide data for charges or amortization for service reservations.
DataSet Pulumi.AzureNative.CostManagement.Inputs.ExportDatasetResponse
The definition for data in the export.
TimePeriod Pulumi.AzureNative.CostManagement.Inputs.ExportTimePeriodResponse
Has time period for pulling data for the export.
Timeframe This property is required. string
The time frame for pulling data for the export. If custom, then a specific time period must be provided.
Type This property is required. string
The type of the export. Note that 'Usage' is equivalent to 'ActualCost' and is applicable to exports that do not yet provide data for charges or amortization for service reservations.
DataSet ExportDatasetResponse
The definition for data in the export.
TimePeriod ExportTimePeriodResponse
Has time period for pulling data for the export.
timeframe This property is required. String
The time frame for pulling data for the export. If custom, then a specific time period must be provided.
type This property is required. String
The type of the export. Note that 'Usage' is equivalent to 'ActualCost' and is applicable to exports that do not yet provide data for charges or amortization for service reservations.
dataSet ExportDatasetResponse
The definition for data in the export.
timePeriod ExportTimePeriodResponse
Has time period for pulling data for the export.
timeframe This property is required. string
The time frame for pulling data for the export. If custom, then a specific time period must be provided.
type This property is required. string
The type of the export. Note that 'Usage' is equivalent to 'ActualCost' and is applicable to exports that do not yet provide data for charges or amortization for service reservations.
dataSet ExportDatasetResponse
The definition for data in the export.
timePeriod ExportTimePeriodResponse
Has time period for pulling data for the export.
timeframe This property is required. str
The time frame for pulling data for the export. If custom, then a specific time period must be provided.
type This property is required. str
The type of the export. Note that 'Usage' is equivalent to 'ActualCost' and is applicable to exports that do not yet provide data for charges or amortization for service reservations.
data_set ExportDatasetResponse
The definition for data in the export.
time_period ExportTimePeriodResponse
Has time period for pulling data for the export.
timeframe This property is required. String
The time frame for pulling data for the export. If custom, then a specific time period must be provided.
type This property is required. String
The type of the export. Note that 'Usage' is equivalent to 'ActualCost' and is applicable to exports that do not yet provide data for charges or amortization for service reservations.
dataSet Property Map
The definition for data in the export.
timePeriod Property Map
Has time period for pulling data for the export.

ExportDeliveryDestination
, ExportDeliveryDestinationArgs

Container This property is required. string
The name of the container where exports will be uploaded. If the container does not exist it will be created.
ResourceId string
The resource id of the storage account where exports will be delivered. This is not required if a sasToken and storageAccount are specified.
RootFolderPath string
The name of the directory where exports will be uploaded.
SasToken string
A SAS token for the storage account. For a restricted set of Azure customers this together with storageAccount can be specified instead of resourceId. Note: the value returned by the API for this property will always be obfuscated. Returning this same obfuscated value will not result in the SAS token being updated. To update this value a new SAS token must be specified.
StorageAccount string
The storage account where exports will be uploaded. For a restricted set of Azure customers this together with sasToken can be specified instead of resourceId.
Container This property is required. string
The name of the container where exports will be uploaded. If the container does not exist it will be created.
ResourceId string
The resource id of the storage account where exports will be delivered. This is not required if a sasToken and storageAccount are specified.
RootFolderPath string
The name of the directory where exports will be uploaded.
SasToken string
A SAS token for the storage account. For a restricted set of Azure customers this together with storageAccount can be specified instead of resourceId. Note: the value returned by the API for this property will always be obfuscated. Returning this same obfuscated value will not result in the SAS token being updated. To update this value a new SAS token must be specified.
StorageAccount string
The storage account where exports will be uploaded. For a restricted set of Azure customers this together with sasToken can be specified instead of resourceId.
container This property is required. String
The name of the container where exports will be uploaded. If the container does not exist it will be created.
resourceId String
The resource id of the storage account where exports will be delivered. This is not required if a sasToken and storageAccount are specified.
rootFolderPath String
The name of the directory where exports will be uploaded.
sasToken String
A SAS token for the storage account. For a restricted set of Azure customers this together with storageAccount can be specified instead of resourceId. Note: the value returned by the API for this property will always be obfuscated. Returning this same obfuscated value will not result in the SAS token being updated. To update this value a new SAS token must be specified.
storageAccount String
The storage account where exports will be uploaded. For a restricted set of Azure customers this together with sasToken can be specified instead of resourceId.
container This property is required. string
The name of the container where exports will be uploaded. If the container does not exist it will be created.
resourceId string
The resource id of the storage account where exports will be delivered. This is not required if a sasToken and storageAccount are specified.
rootFolderPath string
The name of the directory where exports will be uploaded.
sasToken string
A SAS token for the storage account. For a restricted set of Azure customers this together with storageAccount can be specified instead of resourceId. Note: the value returned by the API for this property will always be obfuscated. Returning this same obfuscated value will not result in the SAS token being updated. To update this value a new SAS token must be specified.
storageAccount string
The storage account where exports will be uploaded. For a restricted set of Azure customers this together with sasToken can be specified instead of resourceId.
container This property is required. str
The name of the container where exports will be uploaded. If the container does not exist it will be created.
resource_id str
The resource id of the storage account where exports will be delivered. This is not required if a sasToken and storageAccount are specified.
root_folder_path str
The name of the directory where exports will be uploaded.
sas_token str
A SAS token for the storage account. For a restricted set of Azure customers this together with storageAccount can be specified instead of resourceId. Note: the value returned by the API for this property will always be obfuscated. Returning this same obfuscated value will not result in the SAS token being updated. To update this value a new SAS token must be specified.
storage_account str
The storage account where exports will be uploaded. For a restricted set of Azure customers this together with sasToken can be specified instead of resourceId.
container This property is required. String
The name of the container where exports will be uploaded. If the container does not exist it will be created.
resourceId String
The resource id of the storage account where exports will be delivered. This is not required if a sasToken and storageAccount are specified.
rootFolderPath String
The name of the directory where exports will be uploaded.
sasToken String
A SAS token for the storage account. For a restricted set of Azure customers this together with storageAccount can be specified instead of resourceId. Note: the value returned by the API for this property will always be obfuscated. Returning this same obfuscated value will not result in the SAS token being updated. To update this value a new SAS token must be specified.
storageAccount String
The storage account where exports will be uploaded. For a restricted set of Azure customers this together with sasToken can be specified instead of resourceId.

ExportDeliveryDestinationResponse
, ExportDeliveryDestinationResponseArgs

Container This property is required. string
The name of the container where exports will be uploaded. If the container does not exist it will be created.
ResourceId string
The resource id of the storage account where exports will be delivered. This is not required if a sasToken and storageAccount are specified.
RootFolderPath string
The name of the directory where exports will be uploaded.
SasToken string
A SAS token for the storage account. For a restricted set of Azure customers this together with storageAccount can be specified instead of resourceId. Note: the value returned by the API for this property will always be obfuscated. Returning this same obfuscated value will not result in the SAS token being updated. To update this value a new SAS token must be specified.
StorageAccount string
The storage account where exports will be uploaded. For a restricted set of Azure customers this together with sasToken can be specified instead of resourceId.
Container This property is required. string
The name of the container where exports will be uploaded. If the container does not exist it will be created.
ResourceId string
The resource id of the storage account where exports will be delivered. This is not required if a sasToken and storageAccount are specified.
RootFolderPath string
The name of the directory where exports will be uploaded.
SasToken string
A SAS token for the storage account. For a restricted set of Azure customers this together with storageAccount can be specified instead of resourceId. Note: the value returned by the API for this property will always be obfuscated. Returning this same obfuscated value will not result in the SAS token being updated. To update this value a new SAS token must be specified.
StorageAccount string
The storage account where exports will be uploaded. For a restricted set of Azure customers this together with sasToken can be specified instead of resourceId.
container This property is required. String
The name of the container where exports will be uploaded. If the container does not exist it will be created.
resourceId String
The resource id of the storage account where exports will be delivered. This is not required if a sasToken and storageAccount are specified.
rootFolderPath String
The name of the directory where exports will be uploaded.
sasToken String
A SAS token for the storage account. For a restricted set of Azure customers this together with storageAccount can be specified instead of resourceId. Note: the value returned by the API for this property will always be obfuscated. Returning this same obfuscated value will not result in the SAS token being updated. To update this value a new SAS token must be specified.
storageAccount String
The storage account where exports will be uploaded. For a restricted set of Azure customers this together with sasToken can be specified instead of resourceId.
container This property is required. string
The name of the container where exports will be uploaded. If the container does not exist it will be created.
resourceId string
The resource id of the storage account where exports will be delivered. This is not required if a sasToken and storageAccount are specified.
rootFolderPath string
The name of the directory where exports will be uploaded.
sasToken string
A SAS token for the storage account. For a restricted set of Azure customers this together with storageAccount can be specified instead of resourceId. Note: the value returned by the API for this property will always be obfuscated. Returning this same obfuscated value will not result in the SAS token being updated. To update this value a new SAS token must be specified.
storageAccount string
The storage account where exports will be uploaded. For a restricted set of Azure customers this together with sasToken can be specified instead of resourceId.
container This property is required. str
The name of the container where exports will be uploaded. If the container does not exist it will be created.
resource_id str
The resource id of the storage account where exports will be delivered. This is not required if a sasToken and storageAccount are specified.
root_folder_path str
The name of the directory where exports will be uploaded.
sas_token str
A SAS token for the storage account. For a restricted set of Azure customers this together with storageAccount can be specified instead of resourceId. Note: the value returned by the API for this property will always be obfuscated. Returning this same obfuscated value will not result in the SAS token being updated. To update this value a new SAS token must be specified.
storage_account str
The storage account where exports will be uploaded. For a restricted set of Azure customers this together with sasToken can be specified instead of resourceId.
container This property is required. String
The name of the container where exports will be uploaded. If the container does not exist it will be created.
resourceId String
The resource id of the storage account where exports will be delivered. This is not required if a sasToken and storageAccount are specified.
rootFolderPath String
The name of the directory where exports will be uploaded.
sasToken String
A SAS token for the storage account. For a restricted set of Azure customers this together with storageAccount can be specified instead of resourceId. Note: the value returned by the API for this property will always be obfuscated. Returning this same obfuscated value will not result in the SAS token being updated. To update this value a new SAS token must be specified.
storageAccount String
The storage account where exports will be uploaded. For a restricted set of Azure customers this together with sasToken can be specified instead of resourceId.

ExportDeliveryInfo
, ExportDeliveryInfoArgs

Destination This property is required. Pulumi.AzureNative.CostManagement.Inputs.ExportDeliveryDestination
Has destination for the export being delivered.
Destination This property is required. ExportDeliveryDestination
Has destination for the export being delivered.
destination This property is required. ExportDeliveryDestination
Has destination for the export being delivered.
destination This property is required. ExportDeliveryDestination
Has destination for the export being delivered.
destination This property is required. ExportDeliveryDestination
Has destination for the export being delivered.
destination This property is required. Property Map
Has destination for the export being delivered.

ExportDeliveryInfoResponse
, ExportDeliveryInfoResponseArgs

Destination This property is required. Pulumi.AzureNative.CostManagement.Inputs.ExportDeliveryDestinationResponse
Has destination for the export being delivered.
Destination This property is required. ExportDeliveryDestinationResponse
Has destination for the export being delivered.
destination This property is required. ExportDeliveryDestinationResponse
Has destination for the export being delivered.
destination This property is required. ExportDeliveryDestinationResponse
Has destination for the export being delivered.
destination This property is required. ExportDeliveryDestinationResponse
Has destination for the export being delivered.
destination This property is required. Property Map
Has destination for the export being delivered.

ExportExecutionListResultResponse
, ExportExecutionListResultResponseArgs

Value This property is required. List<Pulumi.AzureNative.CostManagement.Inputs.ExportRunResponse>
A list of export runs.
Value This property is required. []ExportRunResponse
A list of export runs.
value This property is required. List<ExportRunResponse>
A list of export runs.
value This property is required. ExportRunResponse[]
A list of export runs.
value This property is required. Sequence[ExportRunResponse]
A list of export runs.
value This property is required. List<Property Map>
A list of export runs.

ExportRecurrencePeriod
, ExportRecurrencePeriodArgs

From This property is required. string
The start date of recurrence.
To string
The end date of recurrence.
From This property is required. string
The start date of recurrence.
To string
The end date of recurrence.
from This property is required. String
The start date of recurrence.
to String
The end date of recurrence.
from This property is required. string
The start date of recurrence.
to string
The end date of recurrence.
from_ This property is required. str
The start date of recurrence.
to str
The end date of recurrence.
from This property is required. String
The start date of recurrence.
to String
The end date of recurrence.

ExportRecurrencePeriodResponse
, ExportRecurrencePeriodResponseArgs

From This property is required. string
The start date of recurrence.
To string
The end date of recurrence.
From This property is required. string
The start date of recurrence.
To string
The end date of recurrence.
from This property is required. String
The start date of recurrence.
to String
The end date of recurrence.
from This property is required. string
The start date of recurrence.
to string
The end date of recurrence.
from_ This property is required. str
The start date of recurrence.
to str
The end date of recurrence.
from This property is required. String
The start date of recurrence.
to String
The end date of recurrence.

ExportRunResponse
, ExportRunResponseArgs

Id This property is required. string
Resource Id.
Name This property is required. string
Resource name.
Type This property is required. string
Resource type.
ETag string
eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.
Error Pulumi.AzureNative.CostManagement.Inputs.ErrorDetailsResponse
The details of any error.
ExecutionType string
The type of the export run.
FileName string
The name of the exported file.
ProcessingEndTime string
The time when the export run finished.
ProcessingStartTime string
The time when export was picked up to be run.
RunSettings Pulumi.AzureNative.CostManagement.Inputs.CommonExportPropertiesResponse
The export settings that were in effect for this run.
Status string
The last known status of the export run.
SubmittedBy string
The identifier for the entity that triggered the export. For on-demand runs it is the user email. For scheduled runs it is 'System'.
SubmittedTime string
The time when export was queued to be run.
Id This property is required. string
Resource Id.
Name This property is required. string
Resource name.
Type This property is required. string
Resource type.
ETag string
eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.
Error ErrorDetailsResponse
The details of any error.
ExecutionType string
The type of the export run.
FileName string
The name of the exported file.
ProcessingEndTime string
The time when the export run finished.
ProcessingStartTime string
The time when export was picked up to be run.
RunSettings CommonExportPropertiesResponse
The export settings that were in effect for this run.
Status string
The last known status of the export run.
SubmittedBy string
The identifier for the entity that triggered the export. For on-demand runs it is the user email. For scheduled runs it is 'System'.
SubmittedTime string
The time when export was queued to be run.
id This property is required. String
Resource Id.
name This property is required. String
Resource name.
type This property is required. String
Resource type.
eTag String
eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.
error ErrorDetailsResponse
The details of any error.
executionType String
The type of the export run.
fileName String
The name of the exported file.
processingEndTime String
The time when the export run finished.
processingStartTime String
The time when export was picked up to be run.
runSettings CommonExportPropertiesResponse
The export settings that were in effect for this run.
status String
The last known status of the export run.
submittedBy String
The identifier for the entity that triggered the export. For on-demand runs it is the user email. For scheduled runs it is 'System'.
submittedTime String
The time when export was queued to be run.
id This property is required. string
Resource Id.
name This property is required. string
Resource name.
type This property is required. string
Resource type.
eTag string
eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.
error ErrorDetailsResponse
The details of any error.
executionType string
The type of the export run.
fileName string
The name of the exported file.
processingEndTime string
The time when the export run finished.
processingStartTime string
The time when export was picked up to be run.
runSettings CommonExportPropertiesResponse
The export settings that were in effect for this run.
status string
The last known status of the export run.
submittedBy string
The identifier for the entity that triggered the export. For on-demand runs it is the user email. For scheduled runs it is 'System'.
submittedTime string
The time when export was queued to be run.
id This property is required. str
Resource Id.
name This property is required. str
Resource name.
type This property is required. str
Resource type.
e_tag str
eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.
error ErrorDetailsResponse
The details of any error.
execution_type str
The type of the export run.
file_name str
The name of the exported file.
processing_end_time str
The time when the export run finished.
processing_start_time str
The time when export was picked up to be run.
run_settings CommonExportPropertiesResponse
The export settings that were in effect for this run.
status str
The last known status of the export run.
submitted_by str
The identifier for the entity that triggered the export. For on-demand runs it is the user email. For scheduled runs it is 'System'.
submitted_time str
The time when export was queued to be run.
id This property is required. String
Resource Id.
name This property is required. String
Resource name.
type This property is required. String
Resource type.
eTag String
eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.
error Property Map
The details of any error.
executionType String
The type of the export run.
fileName String
The name of the exported file.
processingEndTime String
The time when the export run finished.
processingStartTime String
The time when export was picked up to be run.
runSettings Property Map
The export settings that were in effect for this run.
status String
The last known status of the export run.
submittedBy String
The identifier for the entity that triggered the export. For on-demand runs it is the user email. For scheduled runs it is 'System'.
submittedTime String
The time when export was queued to be run.

ExportSchedule
, ExportScheduleArgs

Recurrence string | Pulumi.AzureNative.CostManagement.RecurrenceType
The schedule recurrence.
RecurrencePeriod Pulumi.AzureNative.CostManagement.Inputs.ExportRecurrencePeriod
Has start and end date of the recurrence. The start date must be in future. If present, the end date must be greater than start date.
Status string | Pulumi.AzureNative.CostManagement.StatusType
The status of the export's schedule. If 'Inactive', the export's schedule is paused.
Recurrence string | RecurrenceType
The schedule recurrence.
RecurrencePeriod ExportRecurrencePeriod
Has start and end date of the recurrence. The start date must be in future. If present, the end date must be greater than start date.
Status string | StatusType
The status of the export's schedule. If 'Inactive', the export's schedule is paused.
recurrence String | RecurrenceType
The schedule recurrence.
recurrencePeriod ExportRecurrencePeriod
Has start and end date of the recurrence. The start date must be in future. If present, the end date must be greater than start date.
status String | StatusType
The status of the export's schedule. If 'Inactive', the export's schedule is paused.
recurrence string | RecurrenceType
The schedule recurrence.
recurrencePeriod ExportRecurrencePeriod
Has start and end date of the recurrence. The start date must be in future. If present, the end date must be greater than start date.
status string | StatusType
The status of the export's schedule. If 'Inactive', the export's schedule is paused.
recurrence str | RecurrenceType
The schedule recurrence.
recurrence_period ExportRecurrencePeriod
Has start and end date of the recurrence. The start date must be in future. If present, the end date must be greater than start date.
status str | StatusType
The status of the export's schedule. If 'Inactive', the export's schedule is paused.
recurrence String | "Daily" | "Weekly" | "Monthly" | "Annually"
The schedule recurrence.
recurrencePeriod Property Map
Has start and end date of the recurrence. The start date must be in future. If present, the end date must be greater than start date.
status String | "Active" | "Inactive"
The status of the export's schedule. If 'Inactive', the export's schedule is paused.

ExportScheduleResponse
, ExportScheduleResponseArgs

Recurrence string
The schedule recurrence.
RecurrencePeriod Pulumi.AzureNative.CostManagement.Inputs.ExportRecurrencePeriodResponse
Has start and end date of the recurrence. The start date must be in future. If present, the end date must be greater than start date.
Status string
The status of the export's schedule. If 'Inactive', the export's schedule is paused.
Recurrence string
The schedule recurrence.
RecurrencePeriod ExportRecurrencePeriodResponse
Has start and end date of the recurrence. The start date must be in future. If present, the end date must be greater than start date.
Status string
The status of the export's schedule. If 'Inactive', the export's schedule is paused.
recurrence String
The schedule recurrence.
recurrencePeriod ExportRecurrencePeriodResponse
Has start and end date of the recurrence. The start date must be in future. If present, the end date must be greater than start date.
status String
The status of the export's schedule. If 'Inactive', the export's schedule is paused.
recurrence string
The schedule recurrence.
recurrencePeriod ExportRecurrencePeriodResponse
Has start and end date of the recurrence. The start date must be in future. If present, the end date must be greater than start date.
status string
The status of the export's schedule. If 'Inactive', the export's schedule is paused.
recurrence str
The schedule recurrence.
recurrence_period ExportRecurrencePeriodResponse
Has start and end date of the recurrence. The start date must be in future. If present, the end date must be greater than start date.
status str
The status of the export's schedule. If 'Inactive', the export's schedule is paused.
recurrence String
The schedule recurrence.
recurrencePeriod Property Map
Has start and end date of the recurrence. The start date must be in future. If present, the end date must be greater than start date.
status String
The status of the export's schedule. If 'Inactive', the export's schedule is paused.

ExportTimePeriod
, ExportTimePeriodArgs

From This property is required. string
The start date for export data.
To This property is required. string
The end date for export data.
From This property is required. string
The start date for export data.
To This property is required. string
The end date for export data.
from This property is required. String
The start date for export data.
to This property is required. String
The end date for export data.
from This property is required. string
The start date for export data.
to This property is required. string
The end date for export data.
from_ This property is required. str
The start date for export data.
to This property is required. str
The end date for export data.
from This property is required. String
The start date for export data.
to This property is required. String
The end date for export data.

ExportTimePeriodResponse
, ExportTimePeriodResponseArgs

From This property is required. string
The start date for export data.
To This property is required. string
The end date for export data.
From This property is required. string
The start date for export data.
To This property is required. string
The end date for export data.
from This property is required. String
The start date for export data.
to This property is required. String
The end date for export data.
from This property is required. string
The start date for export data.
to This property is required. string
The end date for export data.
from_ This property is required. str
The start date for export data.
to This property is required. str
The end date for export data.
from This property is required. String
The start date for export data.
to This property is required. String
The end date for export data.

ExportType
, ExportTypeArgs

Usage
Usage
ActualCost
ActualCost
AmortizedCost
AmortizedCost
ExportTypeUsage
Usage
ExportTypeActualCost
ActualCost
ExportTypeAmortizedCost
AmortizedCost
Usage
Usage
ActualCost
ActualCost
AmortizedCost
AmortizedCost
Usage
Usage
ActualCost
ActualCost
AmortizedCost
AmortizedCost
USAGE
Usage
ACTUAL_COST
ActualCost
AMORTIZED_COST
AmortizedCost
"Usage"
Usage
"ActualCost"
ActualCost
"AmortizedCost"
AmortizedCost

FormatType
, FormatTypeArgs

Csv
Csv
FormatTypeCsv
Csv
Csv
Csv
Csv
Csv
CSV
Csv
"Csv"
Csv

GranularityType
, GranularityTypeArgs

Daily
Daily
Hourly
Hourly
GranularityTypeDaily
Daily
GranularityTypeHourly
Hourly
Daily
Daily
Hourly
Hourly
Daily
Daily
Hourly
Hourly
DAILY
Daily
HOURLY
Hourly
"Daily"
Daily
"Hourly"
Hourly

RecurrenceType
, RecurrenceTypeArgs

Daily
Daily
Weekly
Weekly
Monthly
Monthly
Annually
Annually
RecurrenceTypeDaily
Daily
RecurrenceTypeWeekly
Weekly
RecurrenceTypeMonthly
Monthly
RecurrenceTypeAnnually
Annually
Daily
Daily
Weekly
Weekly
Monthly
Monthly
Annually
Annually
Daily
Daily
Weekly
Weekly
Monthly
Monthly
Annually
Annually
DAILY
Daily
WEEKLY
Weekly
MONTHLY
Monthly
ANNUALLY
Annually
"Daily"
Daily
"Weekly"
Weekly
"Monthly"
Monthly
"Annually"
Annually

StatusType
, StatusTypeArgs

Active
Active
Inactive
Inactive
StatusTypeActive
Active
StatusTypeInactive
Inactive
Active
Active
Inactive
Inactive
Active
Active
Inactive
Inactive
ACTIVE
Active
INACTIVE
Inactive
"Active"
Active
"Inactive"
Inactive

SystemAssignedServiceIdentity
, SystemAssignedServiceIdentityArgs

Type This property is required. string | Pulumi.AzureNative.CostManagement.SystemAssignedServiceIdentityType
Type of managed service identity (either system assigned, or none).
Type This property is required. string | SystemAssignedServiceIdentityType
Type of managed service identity (either system assigned, or none).
type This property is required. String | SystemAssignedServiceIdentityType
Type of managed service identity (either system assigned, or none).
type This property is required. string | SystemAssignedServiceIdentityType
Type of managed service identity (either system assigned, or none).
type This property is required. str | SystemAssignedServiceIdentityType
Type of managed service identity (either system assigned, or none).
type This property is required. String | "None" | "SystemAssigned"
Type of managed service identity (either system assigned, or none).

SystemAssignedServiceIdentityResponse
, SystemAssignedServiceIdentityResponseArgs

PrincipalId This property is required. string
The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.
TenantId This property is required. string
The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity.
Type This property is required. string
Type of managed service identity (either system assigned, or none).
PrincipalId This property is required. string
The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.
TenantId This property is required. string
The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity.
Type This property is required. string
Type of managed service identity (either system assigned, or none).
principalId This property is required. String
The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.
tenantId This property is required. String
The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity.
type This property is required. String
Type of managed service identity (either system assigned, or none).
principalId This property is required. string
The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.
tenantId This property is required. string
The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity.
type This property is required. string
Type of managed service identity (either system assigned, or none).
principal_id This property is required. str
The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.
tenant_id This property is required. str
The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity.
type This property is required. str
Type of managed service identity (either system assigned, or none).
principalId This property is required. String
The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.
tenantId This property is required. String
The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity.
type This property is required. String
Type of managed service identity (either system assigned, or none).

SystemAssignedServiceIdentityType
, SystemAssignedServiceIdentityTypeArgs

None
None
SystemAssigned
SystemAssigned
SystemAssignedServiceIdentityTypeNone
None
SystemAssignedServiceIdentityTypeSystemAssigned
SystemAssigned
None
None
SystemAssigned
SystemAssigned
None
None
SystemAssigned
SystemAssigned
NONE
None
SYSTEM_ASSIGNED
SystemAssigned
"None"
None
"SystemAssigned"
SystemAssigned

TimeframeType
, TimeframeTypeArgs

WeekToDate
WeekToDate
MonthToDate
MonthToDate
Custom
Custom
TimeframeTypeWeekToDate
WeekToDate
TimeframeTypeMonthToDate
MonthToDate
TimeframeTypeCustom
Custom
WeekToDate
WeekToDate
MonthToDate
MonthToDate
Custom
Custom
WeekToDate
WeekToDate
MonthToDate
MonthToDate
Custom
Custom
WEEK_TO_DATE
WeekToDate
MONTH_TO_DATE
MonthToDate
CUSTOM
Custom
"WeekToDate"
WeekToDate
"MonthToDate"
MonthToDate
"Custom"
Custom

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:costmanagement:Export TestExport /{scope}/providers/Microsoft.CostManagement/exports/{exportName} 
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
Azure Native pulumi/pulumi-azure-native
License
Apache-2.0