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:
- Display
Name string - User visible input name of the Cost Management Scheduled Action.
- Email
Address stringSender - Email address of the point of contact that should get the unsubscribe requests of Scheduled Action notification emails.
- Email
Addresses List<string> - Specifies a list of email addresses that will receive the Scheduled Action.
- Email
Subject string - Subject of the email. Length is limited to 70 characters.
- End
Date string - The end date and time of the Scheduled Action (UTC).
- Frequency string
- Frequency of the schedule. Possible values are
Daily
,Monthly
andWeekly
. ValueMonthly
requires eitherweeks_of_month
anddays_of_week
orday_of_month
to be specified. ValueWeekly
requiresdays_of_week
to be specified. - Start
Date string - The start date and time of the Scheduled Action (UTC).
- View
Id string - 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
1
and31
. This property is applicable whenfrequency
isMonthly
. - Days
Of List<string>Weeks - Specifies a list of day names on which cost analysis data will be emailed. This property is applicable when frequency is
Weekly
orMonthly
. Possible values areFriday
,Monday
,Saturday
,Sunday
,Thursday
,Tuesday
andWednesday
. - Hour
Of intDay - UTC time at which cost analysis data will be emailed. Must be between
0
and23
. - 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.
- Weeks
Of List<string>Months - Specifies a list of weeks in which cost analysis data will be emailed. This property is applicable when
frequency
isMonthly
and used in combination withdays_of_week
. Possible values areFirst
,Fourth
,Last
,Second
andThird
.
- Display
Name string - User visible input name of the Cost Management Scheduled Action.
- Email
Address stringSender - Email address of the point of contact that should get the unsubscribe requests of Scheduled Action notification emails.
- Email
Addresses []string - Specifies a list of email addresses that will receive the Scheduled Action.
- Email
Subject string - Subject of the email. Length is limited to 70 characters.
- End
Date string - The end date and time of the Scheduled Action (UTC).
- Frequency string
- Frequency of the schedule. Possible values are
Daily
,Monthly
andWeekly
. ValueMonthly
requires eitherweeks_of_month
anddays_of_week
orday_of_month
to be specified. ValueWeekly
requiresdays_of_week
to be specified. - Start
Date string - The start date and time of the Scheduled Action (UTC).
- View
Id string - 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
1
and31
. This property is applicable whenfrequency
isMonthly
. - Days
Of []stringWeeks - Specifies a list of day names on which cost analysis data will be emailed. This property is applicable when frequency is
Weekly
orMonthly
. Possible values areFriday
,Monday
,Saturday
,Sunday
,Thursday
,Tuesday
andWednesday
. - Hour
Of intDay - UTC time at which cost analysis data will be emailed. Must be between
0
and23
. - 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.
- Weeks
Of []stringMonths - Specifies a list of weeks in which cost analysis data will be emailed. This property is applicable when
frequency
isMonthly
and used in combination withdays_of_week
. Possible values areFirst
,Fourth
,Last
,Second
andThird
.
- display
Name String - User visible input name of the Cost Management Scheduled Action.
- email
Address StringSender - Email address of the point of contact that should get the unsubscribe requests of Scheduled Action notification emails.
- email
Addresses List<String> - Specifies a list of email addresses that will receive the Scheduled Action.
- email
Subject String - Subject of the email. Length is limited to 70 characters.
- end
Date String - The end date and time of the Scheduled Action (UTC).
- frequency String
- Frequency of the schedule. Possible values are
Daily
,Monthly
andWeekly
. ValueMonthly
requires eitherweeks_of_month
anddays_of_week
orday_of_month
to be specified. ValueWeekly
requiresdays_of_week
to be specified. - start
Date String - The start date and time of the Scheduled Action (UTC).
- view
Id String - 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 IntegerMonth - UTC day on which cost analysis data will be emailed. Must be between
1
and31
. This property is applicable whenfrequency
isMonthly
. - days
Of List<String>Weeks - Specifies a list of day names on which cost analysis data will be emailed. This property is applicable when frequency is
Weekly
orMonthly
. Possible values areFriday
,Monday
,Saturday
,Sunday
,Thursday
,Tuesday
andWednesday
. - hour
Of IntegerDay - UTC time at which cost analysis data will be emailed. Must be between
0
and23
. - 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.
- weeks
Of List<String>Months - Specifies a list of weeks in which cost analysis data will be emailed. This property is applicable when
frequency
isMonthly
and used in combination withdays_of_week
. Possible values areFirst
,Fourth
,Last
,Second
andThird
.
- display
Name string - User visible input name of the Cost Management Scheduled Action.
- email
Address stringSender - Email address of the point of contact that should get the unsubscribe requests of Scheduled Action notification emails.
- email
Addresses string[] - Specifies a list of email addresses that will receive the Scheduled Action.
- email
Subject string - Subject of the email. Length is limited to 70 characters.
- end
Date string - The end date and time of the Scheduled Action (UTC).
- frequency string
- Frequency of the schedule. Possible values are
Daily
,Monthly
andWeekly
. ValueMonthly
requires eitherweeks_of_month
anddays_of_week
orday_of_month
to be specified. ValueWeekly
requiresdays_of_week
to be specified. - start
Date string - The start date and time of the Scheduled Action (UTC).
- view
Id string - 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 numberMonth - UTC day on which cost analysis data will be emailed. Must be between
1
and31
. This property is applicable whenfrequency
isMonthly
. - days
Of string[]Weeks - Specifies a list of day names on which cost analysis data will be emailed. This property is applicable when frequency is
Weekly
orMonthly
. Possible values areFriday
,Monday
,Saturday
,Sunday
,Thursday
,Tuesday
andWednesday
. - hour
Of numberDay - UTC time at which cost analysis data will be emailed. Must be between
0
and23
. - 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.
- weeks
Of string[]Months - Specifies a list of weeks in which cost analysis data will be emailed. This property is applicable when
frequency
isMonthly
and used in combination withdays_of_week
. Possible values areFirst
,Fourth
,Last
,Second
andThird
.
- 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
,Monthly
andWeekly
. ValueMonthly
requires eitherweeks_of_month
anddays_of_week
orday_of_month
to be specified. ValueWeekly
requiresdays_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_ intmonth - UTC day on which cost analysis data will be emailed. Must be between
1
and31
. This property is applicable whenfrequency
isMonthly
. - 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
Weekly
orMonthly
. Possible values areFriday
,Monday
,Saturday
,Sunday
,Thursday
,Tuesday
andWednesday
. - hour_
of_ intday - UTC time at which cost analysis data will be emailed. Must be between
0
and23
. - 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
frequency
isMonthly
and used in combination withdays_of_week
. Possible values areFirst
,Fourth
,Last
,Second
andThird
.
- display
Name String - User visible input name of the Cost Management Scheduled Action.
- email
Address StringSender - Email address of the point of contact that should get the unsubscribe requests of Scheduled Action notification emails.
- email
Addresses List<String> - Specifies a list of email addresses that will receive the Scheduled Action.
- email
Subject String - Subject of the email. Length is limited to 70 characters.
- end
Date String - The end date and time of the Scheduled Action (UTC).
- frequency String
- Frequency of the schedule. Possible values are
Daily
,Monthly
andWeekly
. ValueMonthly
requires eitherweeks_of_month
anddays_of_week
orday_of_month
to be specified. ValueWeekly
requiresdays_of_week
to be specified. - start
Date String - The start date and time of the Scheduled Action (UTC).
- view
Id String - 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 NumberMonth - UTC day on which cost analysis data will be emailed. Must be between
1
and31
. This property is applicable whenfrequency
isMonthly
. - days
Of List<String>Weeks - Specifies a list of day names on which cost analysis data will be emailed. This property is applicable when frequency is
Weekly
orMonthly
. Possible values areFriday
,Monday
,Saturday
,Sunday
,Thursday
,Tuesday
andWednesday
. - hour
Of NumberDay - UTC time at which cost analysis data will be emailed. Must be between
0
and23
. - 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.
- weeks
Of List<String>Months - Specifies a list of weeks in which cost analysis data will be emailed. This property is applicable when
frequency
isMonthly
and used in combination withdays_of_week
. Possible values areFirst
,Fourth
,Last
,Second
andThird
.
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.
- Day
Of intMonth - UTC day on which cost analysis data will be emailed. Must be between
1
and31
. This property is applicable whenfrequency
isMonthly
. - Days
Of List<string>Weeks - Specifies a list of day names on which cost analysis data will be emailed. This property is applicable when frequency is
Weekly
orMonthly
. Possible values areFriday
,Monday
,Saturday
,Sunday
,Thursday
,Tuesday
andWednesday
. - Display
Name string - User visible input name of the Cost Management Scheduled Action.
- Email
Address stringSender - Email address of the point of contact that should get the unsubscribe requests of Scheduled Action notification emails.
- Email
Addresses List<string> - Specifies a list of email addresses that will receive the Scheduled Action.
- Email
Subject string - Subject of the email. Length is limited to 70 characters.
- End
Date string - The end date and time of the Scheduled Action (UTC).
- Frequency string
- Frequency of the schedule. Possible values are
Daily
,Monthly
andWeekly
. ValueMonthly
requires eitherweeks_of_month
anddays_of_week
orday_of_month
to be specified. ValueWeekly
requiresdays_of_week
to be specified. - Hour
Of intDay - UTC time at which cost analysis data will be emailed. Must be between
0
and23
. - 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.
- Start
Date string - The start date and time of the Scheduled Action (UTC).
- View
Id string - 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 List<string>Months - Specifies a list of weeks in which cost analysis data will be emailed. This property is applicable when
frequency
isMonthly
and used in combination withdays_of_week
. Possible values areFirst
,Fourth
,Last
,Second
andThird
.
- Day
Of intMonth - UTC day on which cost analysis data will be emailed. Must be between
1
and31
. This property is applicable whenfrequency
isMonthly
. - Days
Of []stringWeeks - Specifies a list of day names on which cost analysis data will be emailed. This property is applicable when frequency is
Weekly
orMonthly
. Possible values areFriday
,Monday
,Saturday
,Sunday
,Thursday
,Tuesday
andWednesday
. - Display
Name string - User visible input name of the Cost Management Scheduled Action.
- Email
Address stringSender - Email address of the point of contact that should get the unsubscribe requests of Scheduled Action notification emails.
- Email
Addresses []string - Specifies a list of email addresses that will receive the Scheduled Action.
- Email
Subject string - Subject of the email. Length is limited to 70 characters.
- End
Date string - The end date and time of the Scheduled Action (UTC).
- Frequency string
- Frequency of the schedule. Possible values are
Daily
,Monthly
andWeekly
. ValueMonthly
requires eitherweeks_of_month
anddays_of_week
orday_of_month
to be specified. ValueWeekly
requiresdays_of_week
to be specified. - Hour
Of intDay - UTC time at which cost analysis data will be emailed. Must be between
0
and23
. - 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.
- Start
Date string - The start date and time of the Scheduled Action (UTC).
- View
Id string - 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 []stringMonths - Specifies a list of weeks in which cost analysis data will be emailed. This property is applicable when
frequency
isMonthly
and used in combination withdays_of_week
. Possible values areFirst
,Fourth
,Last
,Second
andThird
.
- day
Of IntegerMonth - UTC day on which cost analysis data will be emailed. Must be between
1
and31
. This property is applicable whenfrequency
isMonthly
. - days
Of List<String>Weeks - Specifies a list of day names on which cost analysis data will be emailed. This property is applicable when frequency is
Weekly
orMonthly
. Possible values areFriday
,Monday
,Saturday
,Sunday
,Thursday
,Tuesday
andWednesday
. - display
Name String - User visible input name of the Cost Management Scheduled Action.
- email
Address StringSender - Email address of the point of contact that should get the unsubscribe requests of Scheduled Action notification emails.
- email
Addresses List<String> - Specifies a list of email addresses that will receive the Scheduled Action.
- email
Subject String - Subject of the email. Length is limited to 70 characters.
- end
Date String - The end date and time of the Scheduled Action (UTC).
- frequency String
- Frequency of the schedule. Possible values are
Daily
,Monthly
andWeekly
. ValueMonthly
requires eitherweeks_of_month
anddays_of_week
orday_of_month
to be specified. ValueWeekly
requiresdays_of_week
to be specified. - hour
Of IntegerDay - UTC time at which cost analysis data will be emailed. Must be between
0
and23
. - 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.
- start
Date String - The start date and time of the Scheduled Action (UTC).
- view
Id String - 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 List<String>Months - Specifies a list of weeks in which cost analysis data will be emailed. This property is applicable when
frequency
isMonthly
and used in combination withdays_of_week
. Possible values areFirst
,Fourth
,Last
,Second
andThird
.
- day
Of numberMonth - UTC day on which cost analysis data will be emailed. Must be between
1
and31
. This property is applicable whenfrequency
isMonthly
. - days
Of string[]Weeks - Specifies a list of day names on which cost analysis data will be emailed. This property is applicable when frequency is
Weekly
orMonthly
. Possible values areFriday
,Monday
,Saturday
,Sunday
,Thursday
,Tuesday
andWednesday
. - display
Name string - User visible input name of the Cost Management Scheduled Action.
- email
Address stringSender - Email address of the point of contact that should get the unsubscribe requests of Scheduled Action notification emails.
- email
Addresses string[] - Specifies a list of email addresses that will receive the Scheduled Action.
- email
Subject string - Subject of the email. Length is limited to 70 characters.
- end
Date string - The end date and time of the Scheduled Action (UTC).
- frequency string
- Frequency of the schedule. Possible values are
Daily
,Monthly
andWeekly
. ValueMonthly
requires eitherweeks_of_month
anddays_of_week
orday_of_month
to be specified. ValueWeekly
requiresdays_of_week
to be specified. - hour
Of numberDay - UTC time at which cost analysis data will be emailed. Must be between
0
and23
. - 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.
- start
Date string - The start date and time of the Scheduled Action (UTC).
- view
Id string - 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 string[]Months - Specifies a list of weeks in which cost analysis data will be emailed. This property is applicable when
frequency
isMonthly
and used in combination withdays_of_week
. Possible values areFirst
,Fourth
,Last
,Second
andThird
.
- day_
of_ intmonth - UTC day on which cost analysis data will be emailed. Must be between
1
and31
. This property is applicable whenfrequency
isMonthly
. - 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
Weekly
orMonthly
. Possible values areFriday
,Monday
,Saturday
,Sunday
,Thursday
,Tuesday
andWednesday
. - 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
,Monthly
andWeekly
. ValueMonthly
requires eitherweeks_of_month
anddays_of_week
orday_of_month
to be specified. ValueWeekly
requiresdays_of_week
to be specified. - hour_
of_ intday - UTC time at which cost analysis data will be emailed. Must be between
0
and23
. - 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
frequency
isMonthly
and used in combination withdays_of_week
. Possible values areFirst
,Fourth
,Last
,Second
andThird
.
- day
Of NumberMonth - UTC day on which cost analysis data will be emailed. Must be between
1
and31
. This property is applicable whenfrequency
isMonthly
. - days
Of List<String>Weeks - Specifies a list of day names on which cost analysis data will be emailed. This property is applicable when frequency is
Weekly
orMonthly
. Possible values areFriday
,Monday
,Saturday
,Sunday
,Thursday
,Tuesday
andWednesday
. - display
Name String - User visible input name of the Cost Management Scheduled Action.
- email
Address StringSender - Email address of the point of contact that should get the unsubscribe requests of Scheduled Action notification emails.
- email
Addresses List<String> - Specifies a list of email addresses that will receive the Scheduled Action.
- email
Subject String - Subject of the email. Length is limited to 70 characters.
- end
Date String - The end date and time of the Scheduled Action (UTC).
- frequency String
- Frequency of the schedule. Possible values are
Daily
,Monthly
andWeekly
. ValueMonthly
requires eitherweeks_of_month
anddays_of_week
orday_of_month
to be specified. ValueWeekly
requiresdays_of_week
to be specified. - hour
Of NumberDay - UTC time at which cost analysis data will be emailed. Must be between
0
and23
. - 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.
- start
Date String - The start date and time of the Scheduled Action (UTC).
- view
Id String - 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 List<String>Months - Specifies a list of weeks in which cost analysis data will be emailed. This property is applicable when
frequency
isMonthly
and used in combination withdays_of_week
. Possible values areFirst
,Fourth
,Last
,Second
andThird
.
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.