1. Packages
  2. Azure Classic
  3. API Docs
  4. costmanagement
  5. ScheduledAction

We recommend using Azure Native.

Azure v6.12.0 published on Monday, Dec 2, 2024 by Pulumi

azure.costmanagement.ScheduledAction

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure v6.12.0 published on Monday, Dec 2, 2024 by Pulumi

    Manages an Azure Cost Management Scheduled Action.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const example = new azure.costmanagement.ScheduledAction("example", {
        name: "examplescheduledaction",
        displayName: "Report Last 6 Months",
        viewId: "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/views/ms:CostByService",
        emailAddressSender: "platformteam@test.com",
        emailSubject: "Cost Management Report",
        emailAddresses: ["example@example.com"],
        message: "Hi all, take a look at last 6 months spending!",
        frequency: "Daily",
        startDate: "2023-01-02T00:00:00Z",
        endDate: "2023-02-02T00:00:00Z",
    });
    
    import pulumi
    import pulumi_azure as azure
    
    example = azure.costmanagement.ScheduledAction("example",
        name="examplescheduledaction",
        display_name="Report Last 6 Months",
        view_id="/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/views/ms:CostByService",
        email_address_sender="platformteam@test.com",
        email_subject="Cost Management Report",
        email_addresses=["example@example.com"],
        message="Hi all, take a look at last 6 months spending!",
        frequency="Daily",
        start_date="2023-01-02T00:00:00Z",
        end_date="2023-02-02T00:00:00Z")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/costmanagement"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := costmanagement.NewScheduledAction(ctx, "example", &costmanagement.ScheduledActionArgs{
    			Name:               pulumi.String("examplescheduledaction"),
    			DisplayName:        pulumi.String("Report Last 6 Months"),
    			ViewId:             pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/views/ms:CostByService"),
    			EmailAddressSender: pulumi.String("platformteam@test.com"),
    			EmailSubject:       pulumi.String("Cost Management Report"),
    			EmailAddresses: pulumi.StringArray{
    				pulumi.String("example@example.com"),
    			},
    			Message:   pulumi.String("Hi all, take a look at last 6 months spending!"),
    			Frequency: pulumi.String("Daily"),
    			StartDate: pulumi.String("2023-01-02T00:00:00Z"),
    			EndDate:   pulumi.String("2023-02-02T00:00:00Z"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Azure = Pulumi.Azure;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Azure.CostManagement.ScheduledAction("example", new()
        {
            Name = "examplescheduledaction",
            DisplayName = "Report Last 6 Months",
            ViewId = "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/views/ms:CostByService",
            EmailAddressSender = "platformteam@test.com",
            EmailSubject = "Cost Management Report",
            EmailAddresses = new[]
            {
                "example@example.com",
            },
            Message = "Hi all, take a look at last 6 months spending!",
            Frequency = "Daily",
            StartDate = "2023-01-02T00:00:00Z",
            EndDate = "2023-02-02T00:00:00Z",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azure.costmanagement.ScheduledAction;
    import com.pulumi.azure.costmanagement.ScheduledActionArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var example = new ScheduledAction("example", ScheduledActionArgs.builder()
                .name("examplescheduledaction")
                .displayName("Report Last 6 Months")
                .viewId("/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/views/ms:CostByService")
                .emailAddressSender("platformteam@test.com")
                .emailSubject("Cost Management Report")
                .emailAddresses("example@example.com")
                .message("Hi all, take a look at last 6 months spending!")
                .frequency("Daily")
                .startDate("2023-01-02T00:00:00Z")
                .endDate("2023-02-02T00:00:00Z")
                .build());
    
        }
    }
    
    resources:
      example:
        type: azure:costmanagement:ScheduledAction
        properties:
          name: examplescheduledaction
          displayName: Report Last 6 Months
          viewId: /subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/views/ms:CostByService
          emailAddressSender: platformteam@test.com
          emailSubject: Cost Management Report
          emailAddresses:
            - example@example.com
          message: Hi all, take a look at last 6 months spending!
          frequency: Daily
          startDate: 2023-01-02T00:00:00Z
          endDate: 2023-02-02T00:00:00Z
    

    Create ScheduledAction Resource

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

    Constructor syntax

    new ScheduledAction(name: string, args: ScheduledActionArgs, opts?: CustomResourceOptions);
    @overload
    def ScheduledAction(resource_name: str,
                        args: ScheduledActionArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def ScheduledAction(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        end_date: Optional[str] = None,
                        start_date: Optional[str] = None,
                        display_name: Optional[str] = None,
                        email_address_sender: Optional[str] = None,
                        email_addresses: Optional[Sequence[str]] = None,
                        email_subject: Optional[str] = None,
                        view_id: Optional[str] = None,
                        frequency: Optional[str] = None,
                        day_of_month: Optional[int] = None,
                        message: Optional[str] = None,
                        hour_of_day: Optional[int] = None,
                        name: Optional[str] = None,
                        days_of_weeks: Optional[Sequence[str]] = None,
                        weeks_of_months: Optional[Sequence[str]] = None)
    func NewScheduledAction(ctx *Context, name string, args ScheduledActionArgs, opts ...ResourceOption) (*ScheduledAction, error)
    public ScheduledAction(string name, ScheduledActionArgs args, CustomResourceOptions? opts = null)
    public ScheduledAction(String name, ScheduledActionArgs args)
    public ScheduledAction(String name, ScheduledActionArgs args, CustomResourceOptions options)
    
    type: azure:costmanagement:ScheduledAction
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ScheduledActionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ScheduledActionArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ScheduledActionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ScheduledActionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ScheduledActionArgs
    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 scheduledActionResource = new Azure.CostManagement.ScheduledAction("scheduledActionResource", new()
    {
        EndDate = "string",
        StartDate = "string",
        DisplayName = "string",
        EmailAddressSender = "string",
        EmailAddresses = new[]
        {
            "string",
        },
        EmailSubject = "string",
        ViewId = "string",
        Frequency = "string",
        DayOfMonth = 0,
        Message = "string",
        HourOfDay = 0,
        Name = "string",
        DaysOfWeeks = new[]
        {
            "string",
        },
        WeeksOfMonths = new[]
        {
            "string",
        },
    });
    
    example, err := costmanagement.NewScheduledAction(ctx, "scheduledActionResource", &costmanagement.ScheduledActionArgs{
    	EndDate:            pulumi.String("string"),
    	StartDate:          pulumi.String("string"),
    	DisplayName:        pulumi.String("string"),
    	EmailAddressSender: pulumi.String("string"),
    	EmailAddresses: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	EmailSubject: pulumi.String("string"),
    	ViewId:       pulumi.String("string"),
    	Frequency:    pulumi.String("string"),
    	DayOfMonth:   pulumi.Int(0),
    	Message:      pulumi.String("string"),
    	HourOfDay:    pulumi.Int(0),
    	Name:         pulumi.String("string"),
    	DaysOfWeeks: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	WeeksOfMonths: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    })
    
    var scheduledActionResource = new ScheduledAction("scheduledActionResource", ScheduledActionArgs.builder()
        .endDate("string")
        .startDate("string")
        .displayName("string")
        .emailAddressSender("string")
        .emailAddresses("string")
        .emailSubject("string")
        .viewId("string")
        .frequency("string")
        .dayOfMonth(0)
        .message("string")
        .hourOfDay(0)
        .name("string")
        .daysOfWeeks("string")
        .weeksOfMonths("string")
        .build());
    
    scheduled_action_resource = azure.costmanagement.ScheduledAction("scheduledActionResource",
        end_date="string",
        start_date="string",
        display_name="string",
        email_address_sender="string",
        email_addresses=["string"],
        email_subject="string",
        view_id="string",
        frequency="string",
        day_of_month=0,
        message="string",
        hour_of_day=0,
        name="string",
        days_of_weeks=["string"],
        weeks_of_months=["string"])
    
    const scheduledActionResource = new azure.costmanagement.ScheduledAction("scheduledActionResource", {
        endDate: "string",
        startDate: "string",
        displayName: "string",
        emailAddressSender: "string",
        emailAddresses: ["string"],
        emailSubject: "string",
        viewId: "string",
        frequency: "string",
        dayOfMonth: 0,
        message: "string",
        hourOfDay: 0,
        name: "string",
        daysOfWeeks: ["string"],
        weeksOfMonths: ["string"],
    });
    
    type: azure:costmanagement:ScheduledAction
    properties:
        dayOfMonth: 0
        daysOfWeeks:
            - string
        displayName: string
        emailAddressSender: string
        emailAddresses:
            - string
        emailSubject: string
        endDate: string
        frequency: string
        hourOfDay: 0
        message: string
        name: string
        startDate: string
        viewId: string
        weeksOfMonths:
            - string
    

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

    DisplayName string
    User visible input name of the Cost Management Scheduled Action.
    EmailAddressSender string
    Email address of the point of contact that should get the unsubscribe requests of Scheduled Action notification emails.
    EmailAddresses List<string>
    Specifies a list of email addresses that will receive the Scheduled Action.
    EmailSubject string
    Subject of the email. Length is limited to 70 characters.
    EndDate string
    The end date and time of the Scheduled Action (UTC).
    Frequency string
    Frequency of the schedule. Possible values are Daily, Monthly and Weekly. Value Monthly requires either weeks_of_month and days_of_week or day_of_month to be specified. Value Weekly requires days_of_week to be specified.
    StartDate string
    The start date and time of the Scheduled Action (UTC).
    ViewId string
    The ID of the Cost Management View that is used by the Scheduled Action. Changing this forces a new resource to be created.
    DayOfMonth int
    UTC day on which cost analysis data will be emailed. Must be between 1 and 31. This property is applicable when frequency is Monthly.
    DaysOfWeeks List<string>
    Specifies a list of day names on which cost analysis data will be emailed. This property is applicable when frequency is Weekly or Monthly. Possible values are Friday, Monday, Saturday, Sunday, Thursday, Tuesday and Wednesday.
    HourOfDay int
    UTC time at which cost analysis data will be emailed. Must be between 0 and 23.
    Message string
    Message to be added in the email. Length is limited to 250 characters.
    Name string
    The name which should be used for this Azure Cost Management Scheduled Action. Changing this forces a new Azure Cost Management Scheduled Action to be created.
    WeeksOfMonths List<string>
    Specifies a list of weeks in which cost analysis data will be emailed. This property is applicable when frequency is Monthly and used in combination with days_of_week. Possible values are First, Fourth, Last, Second and Third.
    DisplayName string
    User visible input name of the Cost Management Scheduled Action.
    EmailAddressSender string
    Email address of the point of contact that should get the unsubscribe requests of Scheduled Action notification emails.
    EmailAddresses []string
    Specifies a list of email addresses that will receive the Scheduled Action.
    EmailSubject string
    Subject of the email. Length is limited to 70 characters.
    EndDate string
    The end date and time of the Scheduled Action (UTC).
    Frequency string
    Frequency of the schedule. Possible values are Daily, Monthly and Weekly. Value Monthly requires either weeks_of_month and days_of_week or day_of_month to be specified. Value Weekly requires days_of_week to be specified.
    StartDate string
    The start date and time of the Scheduled Action (UTC).
    ViewId string
    The ID of the Cost Management View that is used by the Scheduled Action. Changing this forces a new resource to be created.
    DayOfMonth int
    UTC day on which cost analysis data will be emailed. Must be between 1 and 31. This property is applicable when frequency is Monthly.
    DaysOfWeeks []string
    Specifies a list of day names on which cost analysis data will be emailed. This property is applicable when frequency is Weekly or Monthly. Possible values are Friday, Monday, Saturday, Sunday, Thursday, Tuesday and Wednesday.
    HourOfDay int
    UTC time at which cost analysis data will be emailed. Must be between 0 and 23.
    Message string
    Message to be added in the email. Length is limited to 250 characters.
    Name string
    The name which should be used for this Azure Cost Management Scheduled Action. Changing this forces a new Azure Cost Management Scheduled Action to be created.
    WeeksOfMonths []string
    Specifies a list of weeks in which cost analysis data will be emailed. This property is applicable when frequency is Monthly and used in combination with days_of_week. Possible values are First, Fourth, Last, Second and Third.
    displayName String
    User visible input name of the Cost Management Scheduled Action.
    emailAddressSender String
    Email address of the point of contact that should get the unsubscribe requests of Scheduled Action notification emails.
    emailAddresses List<String>
    Specifies a list of email addresses that will receive the Scheduled Action.
    emailSubject String
    Subject of the email. Length is limited to 70 characters.
    endDate String
    The end date and time of the Scheduled Action (UTC).
    frequency String
    Frequency of the schedule. Possible values are Daily, Monthly and Weekly. Value Monthly requires either weeks_of_month and days_of_week or day_of_month to be specified. Value Weekly requires days_of_week to be specified.
    startDate String
    The start date and time of the Scheduled Action (UTC).
    viewId String
    The ID of the Cost Management View that is used by the Scheduled Action. Changing this forces a new resource to be created.
    dayOfMonth Integer
    UTC day on which cost analysis data will be emailed. Must be between 1 and 31. This property is applicable when frequency is Monthly.
    daysOfWeeks List<String>
    Specifies a list of day names on which cost analysis data will be emailed. This property is applicable when frequency is Weekly or Monthly. Possible values are Friday, Monday, Saturday, Sunday, Thursday, Tuesday and Wednesday.
    hourOfDay Integer
    UTC time at which cost analysis data will be emailed. Must be between 0 and 23.
    message String
    Message to be added in the email. Length is limited to 250 characters.
    name String
    The name which should be used for this Azure Cost Management Scheduled Action. Changing this forces a new Azure Cost Management Scheduled Action to be created.
    weeksOfMonths List<String>
    Specifies a list of weeks in which cost analysis data will be emailed. This property is applicable when frequency is Monthly and used in combination with days_of_week. Possible values are First, Fourth, Last, Second and Third.
    displayName string
    User visible input name of the Cost Management Scheduled Action.
    emailAddressSender string
    Email address of the point of contact that should get the unsubscribe requests of Scheduled Action notification emails.
    emailAddresses string[]
    Specifies a list of email addresses that will receive the Scheduled Action.
    emailSubject string
    Subject of the email. Length is limited to 70 characters.
    endDate string
    The end date and time of the Scheduled Action (UTC).
    frequency string
    Frequency of the schedule. Possible values are Daily, Monthly and Weekly. Value Monthly requires either weeks_of_month and days_of_week or day_of_month to be specified. Value Weekly requires days_of_week to be specified.
    startDate string
    The start date and time of the Scheduled Action (UTC).
    viewId string
    The ID of the Cost Management View that is used by the Scheduled Action. Changing this forces a new resource to be created.
    dayOfMonth number
    UTC day on which cost analysis data will be emailed. Must be between 1 and 31. This property is applicable when frequency is Monthly.
    daysOfWeeks string[]
    Specifies a list of day names on which cost analysis data will be emailed. This property is applicable when frequency is Weekly or Monthly. Possible values are Friday, Monday, Saturday, Sunday, Thursday, Tuesday and Wednesday.
    hourOfDay number
    UTC time at which cost analysis data will be emailed. Must be between 0 and 23.
    message string
    Message to be added in the email. Length is limited to 250 characters.
    name string
    The name which should be used for this Azure Cost Management Scheduled Action. Changing this forces a new Azure Cost Management Scheduled Action to be created.
    weeksOfMonths string[]
    Specifies a list of weeks in which cost analysis data will be emailed. This property is applicable when frequency is Monthly and used in combination with days_of_week. Possible values are First, Fourth, Last, Second and Third.
    display_name str
    User visible input name of the Cost Management Scheduled Action.
    email_address_sender str
    Email address of the point of contact that should get the unsubscribe requests of Scheduled Action notification emails.
    email_addresses Sequence[str]
    Specifies a list of email addresses that will receive the Scheduled Action.
    email_subject str
    Subject of the email. Length is limited to 70 characters.
    end_date str
    The end date and time of the Scheduled Action (UTC).
    frequency str
    Frequency of the schedule. Possible values are Daily, Monthly and Weekly. Value Monthly requires either weeks_of_month and days_of_week or day_of_month to be specified. Value Weekly requires days_of_week to be specified.
    start_date str
    The start date and time of the Scheduled Action (UTC).
    view_id str
    The ID of the Cost Management View that is used by the Scheduled Action. Changing this forces a new resource to be created.
    day_of_month int
    UTC day on which cost analysis data will be emailed. Must be between 1 and 31. This property is applicable when frequency is Monthly.
    days_of_weeks Sequence[str]
    Specifies a list of day names on which cost analysis data will be emailed. This property is applicable when frequency is Weekly or Monthly. Possible values are Friday, Monday, Saturday, Sunday, Thursday, Tuesday and Wednesday.
    hour_of_day int
    UTC time at which cost analysis data will be emailed. Must be between 0 and 23.
    message str
    Message to be added in the email. Length is limited to 250 characters.
    name str
    The name which should be used for this Azure Cost Management Scheduled Action. Changing this forces a new Azure Cost Management Scheduled Action to be created.
    weeks_of_months Sequence[str]
    Specifies a list of weeks in which cost analysis data will be emailed. This property is applicable when frequency is Monthly and used in combination with days_of_week. Possible values are First, Fourth, Last, Second and Third.
    displayName String
    User visible input name of the Cost Management Scheduled Action.
    emailAddressSender String
    Email address of the point of contact that should get the unsubscribe requests of Scheduled Action notification emails.
    emailAddresses List<String>
    Specifies a list of email addresses that will receive the Scheduled Action.
    emailSubject String
    Subject of the email. Length is limited to 70 characters.
    endDate String
    The end date and time of the Scheduled Action (UTC).
    frequency String
    Frequency of the schedule. Possible values are Daily, Monthly and Weekly. Value Monthly requires either weeks_of_month and days_of_week or day_of_month to be specified. Value Weekly requires days_of_week to be specified.
    startDate String
    The start date and time of the Scheduled Action (UTC).
    viewId String
    The ID of the Cost Management View that is used by the Scheduled Action. Changing this forces a new resource to be created.
    dayOfMonth Number
    UTC day on which cost analysis data will be emailed. Must be between 1 and 31. This property is applicable when frequency is Monthly.
    daysOfWeeks List<String>
    Specifies a list of day names on which cost analysis data will be emailed. This property is applicable when frequency is Weekly or Monthly. Possible values are Friday, Monday, Saturday, Sunday, Thursday, Tuesday and Wednesday.
    hourOfDay Number
    UTC time at which cost analysis data will be emailed. Must be between 0 and 23.
    message String
    Message to be added in the email. Length is limited to 250 characters.
    name String
    The name which should be used for this Azure Cost Management Scheduled Action. Changing this forces a new Azure Cost Management Scheduled Action to be created.
    weeksOfMonths List<String>
    Specifies a list of weeks in which cost analysis data will be emailed. This property is applicable when frequency is Monthly and used in combination with days_of_week. Possible values are First, Fourth, Last, Second and Third.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing ScheduledAction Resource

    Get an existing ScheduledAction resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: ScheduledActionState, opts?: CustomResourceOptions): ScheduledAction
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            day_of_month: Optional[int] = None,
            days_of_weeks: Optional[Sequence[str]] = None,
            display_name: Optional[str] = None,
            email_address_sender: Optional[str] = None,
            email_addresses: Optional[Sequence[str]] = None,
            email_subject: Optional[str] = None,
            end_date: Optional[str] = None,
            frequency: Optional[str] = None,
            hour_of_day: Optional[int] = None,
            message: Optional[str] = None,
            name: Optional[str] = None,
            start_date: Optional[str] = None,
            view_id: Optional[str] = None,
            weeks_of_months: Optional[Sequence[str]] = None) -> ScheduledAction
    func GetScheduledAction(ctx *Context, name string, id IDInput, state *ScheduledActionState, opts ...ResourceOption) (*ScheduledAction, error)
    public static ScheduledAction Get(string name, Input<string> id, ScheduledActionState? state, CustomResourceOptions? opts = null)
    public static ScheduledAction get(String name, Output<String> id, ScheduledActionState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    DayOfMonth int
    UTC day on which cost analysis data will be emailed. Must be between 1 and 31. This property is applicable when frequency is Monthly.
    DaysOfWeeks List<string>
    Specifies a list of day names on which cost analysis data will be emailed. This property is applicable when frequency is Weekly or Monthly. Possible values are Friday, Monday, Saturday, Sunday, Thursday, Tuesday and Wednesday.
    DisplayName string
    User visible input name of the Cost Management Scheduled Action.
    EmailAddressSender string
    Email address of the point of contact that should get the unsubscribe requests of Scheduled Action notification emails.
    EmailAddresses List<string>
    Specifies a list of email addresses that will receive the Scheduled Action.
    EmailSubject string
    Subject of the email. Length is limited to 70 characters.
    EndDate string
    The end date and time of the Scheduled Action (UTC).
    Frequency string
    Frequency of the schedule. Possible values are Daily, Monthly and Weekly. Value Monthly requires either weeks_of_month and days_of_week or day_of_month to be specified. Value Weekly requires days_of_week to be specified.
    HourOfDay int
    UTC time at which cost analysis data will be emailed. Must be between 0 and 23.
    Message string
    Message to be added in the email. Length is limited to 250 characters.
    Name string
    The name which should be used for this Azure Cost Management Scheduled Action. Changing this forces a new Azure Cost Management Scheduled Action to be created.
    StartDate string
    The start date and time of the Scheduled Action (UTC).
    ViewId string
    The ID of the Cost Management View that is used by the Scheduled Action. Changing this forces a new resource to be created.
    WeeksOfMonths List<string>
    Specifies a list of weeks in which cost analysis data will be emailed. This property is applicable when frequency is Monthly and used in combination with days_of_week. Possible values are First, Fourth, Last, Second and Third.
    DayOfMonth int
    UTC day on which cost analysis data will be emailed. Must be between 1 and 31. This property is applicable when frequency is Monthly.
    DaysOfWeeks []string
    Specifies a list of day names on which cost analysis data will be emailed. This property is applicable when frequency is Weekly or Monthly. Possible values are Friday, Monday, Saturday, Sunday, Thursday, Tuesday and Wednesday.
    DisplayName string
    User visible input name of the Cost Management Scheduled Action.
    EmailAddressSender string
    Email address of the point of contact that should get the unsubscribe requests of Scheduled Action notification emails.
    EmailAddresses []string
    Specifies a list of email addresses that will receive the Scheduled Action.
    EmailSubject string
    Subject of the email. Length is limited to 70 characters.
    EndDate string
    The end date and time of the Scheduled Action (UTC).
    Frequency string
    Frequency of the schedule. Possible values are Daily, Monthly and Weekly. Value Monthly requires either weeks_of_month and days_of_week or day_of_month to be specified. Value Weekly requires days_of_week to be specified.
    HourOfDay int
    UTC time at which cost analysis data will be emailed. Must be between 0 and 23.
    Message string
    Message to be added in the email. Length is limited to 250 characters.
    Name string
    The name which should be used for this Azure Cost Management Scheduled Action. Changing this forces a new Azure Cost Management Scheduled Action to be created.
    StartDate string
    The start date and time of the Scheduled Action (UTC).
    ViewId string
    The ID of the Cost Management View that is used by the Scheduled Action. Changing this forces a new resource to be created.
    WeeksOfMonths []string
    Specifies a list of weeks in which cost analysis data will be emailed. This property is applicable when frequency is Monthly and used in combination with days_of_week. Possible values are First, Fourth, Last, Second and Third.
    dayOfMonth Integer
    UTC day on which cost analysis data will be emailed. Must be between 1 and 31. This property is applicable when frequency is Monthly.
    daysOfWeeks List<String>
    Specifies a list of day names on which cost analysis data will be emailed. This property is applicable when frequency is Weekly or Monthly. Possible values are Friday, Monday, Saturday, Sunday, Thursday, Tuesday and Wednesday.
    displayName String
    User visible input name of the Cost Management Scheduled Action.
    emailAddressSender String
    Email address of the point of contact that should get the unsubscribe requests of Scheduled Action notification emails.
    emailAddresses List<String>
    Specifies a list of email addresses that will receive the Scheduled Action.
    emailSubject String
    Subject of the email. Length is limited to 70 characters.
    endDate String
    The end date and time of the Scheduled Action (UTC).
    frequency String
    Frequency of the schedule. Possible values are Daily, Monthly and Weekly. Value Monthly requires either weeks_of_month and days_of_week or day_of_month to be specified. Value Weekly requires days_of_week to be specified.
    hourOfDay Integer
    UTC time at which cost analysis data will be emailed. Must be between 0 and 23.
    message String
    Message to be added in the email. Length is limited to 250 characters.
    name String
    The name which should be used for this Azure Cost Management Scheduled Action. Changing this forces a new Azure Cost Management Scheduled Action to be created.
    startDate String
    The start date and time of the Scheduled Action (UTC).
    viewId String
    The ID of the Cost Management View that is used by the Scheduled Action. Changing this forces a new resource to be created.
    weeksOfMonths List<String>
    Specifies a list of weeks in which cost analysis data will be emailed. This property is applicable when frequency is Monthly and used in combination with days_of_week. Possible values are First, Fourth, Last, Second and Third.
    dayOfMonth number
    UTC day on which cost analysis data will be emailed. Must be between 1 and 31. This property is applicable when frequency is Monthly.
    daysOfWeeks string[]
    Specifies a list of day names on which cost analysis data will be emailed. This property is applicable when frequency is Weekly or Monthly. Possible values are Friday, Monday, Saturday, Sunday, Thursday, Tuesday and Wednesday.
    displayName string
    User visible input name of the Cost Management Scheduled Action.
    emailAddressSender string
    Email address of the point of contact that should get the unsubscribe requests of Scheduled Action notification emails.
    emailAddresses string[]
    Specifies a list of email addresses that will receive the Scheduled Action.
    emailSubject string
    Subject of the email. Length is limited to 70 characters.
    endDate string
    The end date and time of the Scheduled Action (UTC).
    frequency string
    Frequency of the schedule. Possible values are Daily, Monthly and Weekly. Value Monthly requires either weeks_of_month and days_of_week or day_of_month to be specified. Value Weekly requires days_of_week to be specified.
    hourOfDay number
    UTC time at which cost analysis data will be emailed. Must be between 0 and 23.
    message string
    Message to be added in the email. Length is limited to 250 characters.
    name string
    The name which should be used for this Azure Cost Management Scheduled Action. Changing this forces a new Azure Cost Management Scheduled Action to be created.
    startDate string
    The start date and time of the Scheduled Action (UTC).
    viewId string
    The ID of the Cost Management View that is used by the Scheduled Action. Changing this forces a new resource to be created.
    weeksOfMonths string[]
    Specifies a list of weeks in which cost analysis data will be emailed. This property is applicable when frequency is Monthly and used in combination with days_of_week. Possible values are First, Fourth, Last, Second and Third.
    day_of_month int
    UTC day on which cost analysis data will be emailed. Must be between 1 and 31. This property is applicable when frequency is Monthly.
    days_of_weeks Sequence[str]
    Specifies a list of day names on which cost analysis data will be emailed. This property is applicable when frequency is Weekly or Monthly. Possible values are Friday, Monday, Saturday, Sunday, Thursday, Tuesday and Wednesday.
    display_name str
    User visible input name of the Cost Management Scheduled Action.
    email_address_sender str
    Email address of the point of contact that should get the unsubscribe requests of Scheduled Action notification emails.
    email_addresses Sequence[str]
    Specifies a list of email addresses that will receive the Scheduled Action.
    email_subject str
    Subject of the email. Length is limited to 70 characters.
    end_date str
    The end date and time of the Scheduled Action (UTC).
    frequency str
    Frequency of the schedule. Possible values are Daily, Monthly and Weekly. Value Monthly requires either weeks_of_month and days_of_week or day_of_month to be specified. Value Weekly requires days_of_week to be specified.
    hour_of_day int
    UTC time at which cost analysis data will be emailed. Must be between 0 and 23.
    message str
    Message to be added in the email. Length is limited to 250 characters.
    name str
    The name which should be used for this Azure Cost Management Scheduled Action. Changing this forces a new Azure Cost Management Scheduled Action to be created.
    start_date str
    The start date and time of the Scheduled Action (UTC).
    view_id str
    The ID of the Cost Management View that is used by the Scheduled Action. Changing this forces a new resource to be created.
    weeks_of_months Sequence[str]
    Specifies a list of weeks in which cost analysis data will be emailed. This property is applicable when frequency is Monthly and used in combination with days_of_week. Possible values are First, Fourth, Last, Second and Third.
    dayOfMonth Number
    UTC day on which cost analysis data will be emailed. Must be between 1 and 31. This property is applicable when frequency is Monthly.
    daysOfWeeks List<String>
    Specifies a list of day names on which cost analysis data will be emailed. This property is applicable when frequency is Weekly or Monthly. Possible values are Friday, Monday, Saturday, Sunday, Thursday, Tuesday and Wednesday.
    displayName String
    User visible input name of the Cost Management Scheduled Action.
    emailAddressSender String
    Email address of the point of contact that should get the unsubscribe requests of Scheduled Action notification emails.
    emailAddresses List<String>
    Specifies a list of email addresses that will receive the Scheduled Action.
    emailSubject String
    Subject of the email. Length is limited to 70 characters.
    endDate String
    The end date and time of the Scheduled Action (UTC).
    frequency String
    Frequency of the schedule. Possible values are Daily, Monthly and Weekly. Value Monthly requires either weeks_of_month and days_of_week or day_of_month to be specified. Value Weekly requires days_of_week to be specified.
    hourOfDay Number
    UTC time at which cost analysis data will be emailed. Must be between 0 and 23.
    message String
    Message to be added in the email. Length is limited to 250 characters.
    name String
    The name which should be used for this Azure Cost Management Scheduled Action. Changing this forces a new Azure Cost Management Scheduled Action to be created.
    startDate String
    The start date and time of the Scheduled Action (UTC).
    viewId String
    The ID of the Cost Management View that is used by the Scheduled Action. Changing this forces a new resource to be created.
    weeksOfMonths List<String>
    Specifies a list of weeks in which cost analysis data will be emailed. This property is applicable when frequency is Monthly and used in combination with days_of_week. Possible values are First, Fourth, Last, Second and Third.

    Import

    Azure Cost Management Scheduled Actions can be imported using the resource id, e.g.

    $ pulumi import azure:costmanagement/scheduledAction:ScheduledAction example /subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/scheduledActions/scheduledaction1
    

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

    Package Details

    Repository
    Azure Classic pulumi/pulumi-azure
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the azurerm Terraform Provider.
    azure logo

    We recommend using Azure Native.

    Azure v6.12.0 published on Monday, Dec 2, 2024 by Pulumi