We recommend using Azure Native.
azure.costmanagement.ScheduledAction
Explore with Pulumi AI
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.
- EmailAddress stringSender 
- 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,MonthlyandWeekly. ValueMonthlyrequires eitherweeks_of_monthanddays_of_weekorday_of_monthto be specified. ValueWeeklyrequiresdays_of_weekto 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.
- DayOf intMonth 
- UTC day on which cost analysis data will be emailed. Must be between 1and31. This property is applicable whenfrequencyisMonthly.
- DaysOf List<string>Weeks 
- Specifies a list of day names on which cost analysis data will be emailed. This property is applicable when frequency is WeeklyorMonthly. Possible values areFriday,Monday,Saturday,Sunday,Thursday,TuesdayandWednesday.
- HourOf intDay 
- UTC time at which cost analysis data will be emailed. Must be between 0and23.
- 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.
- WeeksOf List<string>Months 
- Specifies a list of weeks in which cost analysis data will be emailed. This property is applicable when frequencyisMonthlyand used in combination withdays_of_week. Possible values areFirst,Fourth,Last,SecondandThird.
- DisplayName string
- User visible input name of the Cost Management Scheduled Action.
- EmailAddress stringSender 
- 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,MonthlyandWeekly. ValueMonthlyrequires eitherweeks_of_monthanddays_of_weekorday_of_monthto be specified. ValueWeeklyrequiresdays_of_weekto 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.
- DayOf intMonth 
- UTC day on which cost analysis data will be emailed. Must be between 1and31. This property is applicable whenfrequencyisMonthly.
- DaysOf []stringWeeks 
- Specifies a list of day names on which cost analysis data will be emailed. This property is applicable when frequency is WeeklyorMonthly. Possible values areFriday,Monday,Saturday,Sunday,Thursday,TuesdayandWednesday.
- HourOf intDay 
- UTC time at which cost analysis data will be emailed. Must be between 0and23.
- 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.
- WeeksOf []stringMonths 
- Specifies a list of weeks in which cost analysis data will be emailed. This property is applicable when frequencyisMonthlyand used in combination withdays_of_week. Possible values areFirst,Fourth,Last,SecondandThird.
- displayName String
- User visible input name of the Cost Management Scheduled Action.
- emailAddress StringSender 
- 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,MonthlyandWeekly. ValueMonthlyrequires eitherweeks_of_monthanddays_of_weekorday_of_monthto be specified. ValueWeeklyrequiresdays_of_weekto 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.
- dayOf IntegerMonth 
- UTC day on which cost analysis data will be emailed. Must be between 1and31. This property is applicable whenfrequencyisMonthly.
- daysOf List<String>Weeks 
- Specifies a list of day names on which cost analysis data will be emailed. This property is applicable when frequency is WeeklyorMonthly. Possible values areFriday,Monday,Saturday,Sunday,Thursday,TuesdayandWednesday.
- hourOf IntegerDay 
- UTC time at which cost analysis data will be emailed. Must be between 0and23.
- 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.
- weeksOf List<String>Months 
- Specifies a list of weeks in which cost analysis data will be emailed. This property is applicable when frequencyisMonthlyand used in combination withdays_of_week. Possible values areFirst,Fourth,Last,SecondandThird.
- displayName string
- User visible input name of the Cost Management Scheduled Action.
- emailAddress stringSender 
- 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,MonthlyandWeekly. ValueMonthlyrequires eitherweeks_of_monthanddays_of_weekorday_of_monthto be specified. ValueWeeklyrequiresdays_of_weekto 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.
- dayOf numberMonth 
- UTC day on which cost analysis data will be emailed. Must be between 1and31. This property is applicable whenfrequencyisMonthly.
- daysOf string[]Weeks 
- Specifies a list of day names on which cost analysis data will be emailed. This property is applicable when frequency is WeeklyorMonthly. Possible values areFriday,Monday,Saturday,Sunday,Thursday,TuesdayandWednesday.
- hourOf numberDay 
- UTC time at which cost analysis data will be emailed. Must be between 0and23.
- 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.
- weeksOf string[]Months 
- Specifies a list of weeks in which cost analysis data will be emailed. This property is applicable when frequencyisMonthlyand used in combination withdays_of_week. Possible values areFirst,Fourth,Last,SecondandThird.
- display_name str
- User visible input name of the Cost Management Scheduled Action.
- email_address_ strsender 
- 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,MonthlyandWeekly. ValueMonthlyrequires eitherweeks_of_monthanddays_of_weekorday_of_monthto be specified. ValueWeeklyrequiresdays_of_weekto 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_ intmonth 
- UTC day on which cost analysis data will be emailed. Must be between 1and31. This property is applicable whenfrequencyisMonthly.
- days_of_ Sequence[str]weeks 
- Specifies a list of day names on which cost analysis data will be emailed. This property is applicable when frequency is WeeklyorMonthly. Possible values areFriday,Monday,Saturday,Sunday,Thursday,TuesdayandWednesday.
- hour_of_ intday 
- UTC time at which cost analysis data will be emailed. Must be between 0and23.
- 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_ Sequence[str]months 
- Specifies a list of weeks in which cost analysis data will be emailed. This property is applicable when frequencyisMonthlyand used in combination withdays_of_week. Possible values areFirst,Fourth,Last,SecondandThird.
- displayName String
- User visible input name of the Cost Management Scheduled Action.
- emailAddress StringSender 
- 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,MonthlyandWeekly. ValueMonthlyrequires eitherweeks_of_monthanddays_of_weekorday_of_monthto be specified. ValueWeeklyrequiresdays_of_weekto 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.
- dayOf NumberMonth 
- UTC day on which cost analysis data will be emailed. Must be between 1and31. This property is applicable whenfrequencyisMonthly.
- daysOf List<String>Weeks 
- Specifies a list of day names on which cost analysis data will be emailed. This property is applicable when frequency is WeeklyorMonthly. Possible values areFriday,Monday,Saturday,Sunday,Thursday,TuesdayandWednesday.
- hourOf NumberDay 
- UTC time at which cost analysis data will be emailed. Must be between 0and23.
- 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.
- weeksOf List<String>Months 
- Specifies a list of weeks in which cost analysis data will be emailed. This property is applicable when frequencyisMonthlyand used in combination withdays_of_week. Possible values areFirst,Fourth,Last,SecondandThird.
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) -> ScheduledActionfunc 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)resources:  _:    type: azure:costmanagement:ScheduledAction    get:      id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- DayOf intMonth 
- UTC day on which cost analysis data will be emailed. Must be between 1and31. This property is applicable whenfrequencyisMonthly.
- DaysOf List<string>Weeks 
- Specifies a list of day names on which cost analysis data will be emailed. This property is applicable when frequency is WeeklyorMonthly. Possible values areFriday,Monday,Saturday,Sunday,Thursday,TuesdayandWednesday.
- DisplayName string
- User visible input name of the Cost Management Scheduled Action.
- EmailAddress stringSender 
- 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,MonthlyandWeekly. ValueMonthlyrequires eitherweeks_of_monthanddays_of_weekorday_of_monthto be specified. ValueWeeklyrequiresdays_of_weekto be specified.
- HourOf intDay 
- UTC time at which cost analysis data will be emailed. Must be between 0and23.
- 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.
- WeeksOf List<string>Months 
- Specifies a list of weeks in which cost analysis data will be emailed. This property is applicable when frequencyisMonthlyand used in combination withdays_of_week. Possible values areFirst,Fourth,Last,SecondandThird.
- DayOf intMonth 
- UTC day on which cost analysis data will be emailed. Must be between 1and31. This property is applicable whenfrequencyisMonthly.
- DaysOf []stringWeeks 
- Specifies a list of day names on which cost analysis data will be emailed. This property is applicable when frequency is WeeklyorMonthly. Possible values areFriday,Monday,Saturday,Sunday,Thursday,TuesdayandWednesday.
- DisplayName string
- User visible input name of the Cost Management Scheduled Action.
- EmailAddress stringSender 
- 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,MonthlyandWeekly. ValueMonthlyrequires eitherweeks_of_monthanddays_of_weekorday_of_monthto be specified. ValueWeeklyrequiresdays_of_weekto be specified.
- HourOf intDay 
- UTC time at which cost analysis data will be emailed. Must be between 0and23.
- 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.
- WeeksOf []stringMonths 
- Specifies a list of weeks in which cost analysis data will be emailed. This property is applicable when frequencyisMonthlyand used in combination withdays_of_week. Possible values areFirst,Fourth,Last,SecondandThird.
- dayOf IntegerMonth 
- UTC day on which cost analysis data will be emailed. Must be between 1and31. This property is applicable whenfrequencyisMonthly.
- daysOf List<String>Weeks 
- Specifies a list of day names on which cost analysis data will be emailed. This property is applicable when frequency is WeeklyorMonthly. Possible values areFriday,Monday,Saturday,Sunday,Thursday,TuesdayandWednesday.
- displayName String
- User visible input name of the Cost Management Scheduled Action.
- emailAddress StringSender 
- 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,MonthlyandWeekly. ValueMonthlyrequires eitherweeks_of_monthanddays_of_weekorday_of_monthto be specified. ValueWeeklyrequiresdays_of_weekto be specified.
- hourOf IntegerDay 
- UTC time at which cost analysis data will be emailed. Must be between 0and23.
- 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.
- weeksOf List<String>Months 
- Specifies a list of weeks in which cost analysis data will be emailed. This property is applicable when frequencyisMonthlyand used in combination withdays_of_week. Possible values areFirst,Fourth,Last,SecondandThird.
- dayOf numberMonth 
- UTC day on which cost analysis data will be emailed. Must be between 1and31. This property is applicable whenfrequencyisMonthly.
- daysOf string[]Weeks 
- Specifies a list of day names on which cost analysis data will be emailed. This property is applicable when frequency is WeeklyorMonthly. Possible values areFriday,Monday,Saturday,Sunday,Thursday,TuesdayandWednesday.
- displayName string
- User visible input name of the Cost Management Scheduled Action.
- emailAddress stringSender 
- 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,MonthlyandWeekly. ValueMonthlyrequires eitherweeks_of_monthanddays_of_weekorday_of_monthto be specified. ValueWeeklyrequiresdays_of_weekto be specified.
- hourOf numberDay 
- UTC time at which cost analysis data will be emailed. Must be between 0and23.
- 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.
- weeksOf string[]Months 
- Specifies a list of weeks in which cost analysis data will be emailed. This property is applicable when frequencyisMonthlyand used in combination withdays_of_week. Possible values areFirst,Fourth,Last,SecondandThird.
- day_of_ intmonth 
- UTC day on which cost analysis data will be emailed. Must be between 1and31. This property is applicable whenfrequencyisMonthly.
- days_of_ Sequence[str]weeks 
- Specifies a list of day names on which cost analysis data will be emailed. This property is applicable when frequency is WeeklyorMonthly. Possible values areFriday,Monday,Saturday,Sunday,Thursday,TuesdayandWednesday.
- display_name str
- User visible input name of the Cost Management Scheduled Action.
- email_address_ strsender 
- 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,MonthlyandWeekly. ValueMonthlyrequires eitherweeks_of_monthanddays_of_weekorday_of_monthto be specified. ValueWeeklyrequiresdays_of_weekto be specified.
- hour_of_ intday 
- UTC time at which cost analysis data will be emailed. Must be between 0and23.
- 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_ Sequence[str]months 
- Specifies a list of weeks in which cost analysis data will be emailed. This property is applicable when frequencyisMonthlyand used in combination withdays_of_week. Possible values areFirst,Fourth,Last,SecondandThird.
- dayOf NumberMonth 
- UTC day on which cost analysis data will be emailed. Must be between 1and31. This property is applicable whenfrequencyisMonthly.
- daysOf List<String>Weeks 
- Specifies a list of day names on which cost analysis data will be emailed. This property is applicable when frequency is WeeklyorMonthly. Possible values areFriday,Monday,Saturday,Sunday,Thursday,TuesdayandWednesday.
- displayName String
- User visible input name of the Cost Management Scheduled Action.
- emailAddress StringSender 
- 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,MonthlyandWeekly. ValueMonthlyrequires eitherweeks_of_monthanddays_of_weekorday_of_monthto be specified. ValueWeeklyrequiresdays_of_weekto be specified.
- hourOf NumberDay 
- UTC time at which cost analysis data will be emailed. Must be between 0and23.
- 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.
- weeksOf List<String>Months 
- Specifies a list of weeks in which cost analysis data will be emailed. This property is applicable when frequencyisMonthlyand used in combination withdays_of_week. Possible values areFirst,Fourth,Last,SecondandThird.
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 azurermTerraform Provider.