azure-native.devcenter.Schedule
Explore with Pulumi AI
Represents a Schedule to execute a task. API Version: 2022-09-01-preview.
Example Usage
Schedules_CreateDailyShutdownPoolSchedule
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() => 
{
    var schedule = new AzureNative.DevCenter.Schedule("schedule", new()
    {
        Frequency = "Daily",
        PoolName = "DevPool",
        ProjectName = "DevProject",
        ResourceGroupName = "rg1",
        ScheduleName = "autoShutdown",
        State = "Enabled",
        Time = "17:30",
        TimeZone = "America/Los_Angeles",
        Type = "StopDevBox",
    });
});
package main
import (
	devcenter "github.com/pulumi/pulumi-azure-native-sdk/devcenter"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := devcenter.NewSchedule(ctx, "schedule", &devcenter.ScheduleArgs{
			Frequency:         pulumi.String("Daily"),
			PoolName:          pulumi.String("DevPool"),
			ProjectName:       pulumi.String("DevProject"),
			ResourceGroupName: pulumi.String("rg1"),
			ScheduleName:      pulumi.String("autoShutdown"),
			State:             pulumi.String("Enabled"),
			Time:              pulumi.String("17:30"),
			TimeZone:          pulumi.String("America/Los_Angeles"),
			Type:              pulumi.String("StopDevBox"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.devcenter.Schedule;
import com.pulumi.azurenative.devcenter.ScheduleArgs;
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 schedule = new Schedule("schedule", ScheduleArgs.builder()        
            .frequency("Daily")
            .poolName("DevPool")
            .projectName("DevProject")
            .resourceGroupName("rg1")
            .scheduleName("autoShutdown")
            .state("Enabled")
            .time("17:30")
            .timeZone("America/Los_Angeles")
            .type("StopDevBox")
            .build());
    }
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const schedule = new azure_native.devcenter.Schedule("schedule", {
    frequency: "Daily",
    poolName: "DevPool",
    projectName: "DevProject",
    resourceGroupName: "rg1",
    scheduleName: "autoShutdown",
    state: "Enabled",
    time: "17:30",
    timeZone: "America/Los_Angeles",
    type: "StopDevBox",
});
import pulumi
import pulumi_azure_native as azure_native
schedule = azure_native.devcenter.Schedule("schedule",
    frequency="Daily",
    pool_name="DevPool",
    project_name="DevProject",
    resource_group_name="rg1",
    schedule_name="autoShutdown",
    state="Enabled",
    time="17:30",
    time_zone="America/Los_Angeles",
    type="StopDevBox")
resources:
  schedule:
    type: azure-native:devcenter:Schedule
    properties:
      frequency: Daily
      poolName: DevPool
      projectName: DevProject
      resourceGroupName: rg1
      scheduleName: autoShutdown
      state: Enabled
      time: 17:30
      timeZone: America/Los_Angeles
      type: StopDevBox
Create Schedule Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Schedule(name: string, args: ScheduleArgs, opts?: CustomResourceOptions);@overload
def Schedule(resource_name: str,
             args: ScheduleArgs,
             opts: Optional[ResourceOptions] = None)
@overload
def Schedule(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             frequency: Optional[Union[str, ScheduledFrequency]] = None,
             pool_name: Optional[str] = None,
             project_name: Optional[str] = None,
             resource_group_name: Optional[str] = None,
             time: Optional[str] = None,
             time_zone: Optional[str] = None,
             type: Optional[Union[str, ScheduledType]] = None,
             schedule_name: Optional[str] = None,
             state: Optional[Union[str, EnableStatus]] = None,
             top: Optional[int] = None)func NewSchedule(ctx *Context, name string, args ScheduleArgs, opts ...ResourceOption) (*Schedule, error)public Schedule(string name, ScheduleArgs args, CustomResourceOptions? opts = null)
public Schedule(String name, ScheduleArgs args)
public Schedule(String name, ScheduleArgs args, CustomResourceOptions options)
type: azure-native:devcenter:Schedule
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 ScheduleArgs
- 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 ScheduleArgs
- 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 ScheduleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ScheduleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ScheduleArgs
- 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 azure_nativeScheduleResource = new AzureNative.Devcenter.Schedule("azure-nativeScheduleResource", new()
{
    Frequency = "string",
    PoolName = "string",
    ProjectName = "string",
    ResourceGroupName = "string",
    Time = "string",
    TimeZone = "string",
    Type = "string",
    ScheduleName = "string",
    State = "string",
    Top = 0,
});
example, err := devcenter.NewSchedule(ctx, "azure-nativeScheduleResource", &devcenter.ScheduleArgs{
	Frequency:         "string",
	PoolName:          "string",
	ProjectName:       "string",
	ResourceGroupName: "string",
	Time:              "string",
	TimeZone:          "string",
	Type:              "string",
	ScheduleName:      "string",
	State:             "string",
	Top:               0,
})
var azure_nativeScheduleResource = new Schedule("azure-nativeScheduleResource", ScheduleArgs.builder()
    .frequency("string")
    .poolName("string")
    .projectName("string")
    .resourceGroupName("string")
    .time("string")
    .timeZone("string")
    .type("string")
    .scheduleName("string")
    .state("string")
    .top(0)
    .build());
azure_native_schedule_resource = azure_native.devcenter.Schedule("azure-nativeScheduleResource",
    frequency=string,
    pool_name=string,
    project_name=string,
    resource_group_name=string,
    time=string,
    time_zone=string,
    type=string,
    schedule_name=string,
    state=string,
    top=0)
const azure_nativeScheduleResource = new azure_native.devcenter.Schedule("azure-nativeScheduleResource", {
    frequency: "string",
    poolName: "string",
    projectName: "string",
    resourceGroupName: "string",
    time: "string",
    timeZone: "string",
    type: "string",
    scheduleName: "string",
    state: "string",
    top: 0,
});
type: azure-native:devcenter:Schedule
properties:
    frequency: string
    poolName: string
    projectName: string
    resourceGroupName: string
    scheduleName: string
    state: string
    time: string
    timeZone: string
    top: 0
    type: string
Schedule 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 Schedule resource accepts the following input properties:
- Frequency
string | Pulumi.Azure Native. Dev Center. Scheduled Frequency 
- The frequency of this scheduled task.
- PoolName string
- Name of the pool.
- ProjectName string
- The name of the project.
- ResourceGroup stringName 
- Name of the resource group within the Azure subscription.
- Time string
- The target time to trigger the action. The format is HH:MM.
- TimeZone string
- The IANA timezone id at which the schedule should execute.
- Type
string | Pulumi.Azure Native. Dev Center. Scheduled Type 
- Supported type this scheduled task represents.
- ScheduleName string
- The name of the schedule that uniquely identifies it.
- State
string | Pulumi.Azure Native. Dev Center. Enable Status 
- Indicates whether or not this scheduled task is enabled.
- Top int
- The maximum number of resources to return from the operation. Example: '$top=10'.
- Frequency
string | ScheduledFrequency 
- The frequency of this scheduled task.
- PoolName string
- Name of the pool.
- ProjectName string
- The name of the project.
- ResourceGroup stringName 
- Name of the resource group within the Azure subscription.
- Time string
- The target time to trigger the action. The format is HH:MM.
- TimeZone string
- The IANA timezone id at which the schedule should execute.
- Type
string | ScheduledType 
- Supported type this scheduled task represents.
- ScheduleName string
- The name of the schedule that uniquely identifies it.
- State
string | EnableStatus 
- Indicates whether or not this scheduled task is enabled.
- Top int
- The maximum number of resources to return from the operation. Example: '$top=10'.
- frequency
String | ScheduledFrequency 
- The frequency of this scheduled task.
- poolName String
- Name of the pool.
- projectName String
- The name of the project.
- resourceGroup StringName 
- Name of the resource group within the Azure subscription.
- time String
- The target time to trigger the action. The format is HH:MM.
- timeZone String
- The IANA timezone id at which the schedule should execute.
- type
String | ScheduledType 
- Supported type this scheduled task represents.
- scheduleName String
- The name of the schedule that uniquely identifies it.
- state
String | EnableStatus 
- Indicates whether or not this scheduled task is enabled.
- top Integer
- The maximum number of resources to return from the operation. Example: '$top=10'.
- frequency
string | ScheduledFrequency 
- The frequency of this scheduled task.
- poolName string
- Name of the pool.
- projectName string
- The name of the project.
- resourceGroup stringName 
- Name of the resource group within the Azure subscription.
- time string
- The target time to trigger the action. The format is HH:MM.
- timeZone string
- The IANA timezone id at which the schedule should execute.
- type
string | ScheduledType 
- Supported type this scheduled task represents.
- scheduleName string
- The name of the schedule that uniquely identifies it.
- state
string | EnableStatus 
- Indicates whether or not this scheduled task is enabled.
- top number
- The maximum number of resources to return from the operation. Example: '$top=10'.
- frequency
str | ScheduledFrequency 
- The frequency of this scheduled task.
- pool_name str
- Name of the pool.
- project_name str
- The name of the project.
- resource_group_ strname 
- Name of the resource group within the Azure subscription.
- time str
- The target time to trigger the action. The format is HH:MM.
- time_zone str
- The IANA timezone id at which the schedule should execute.
- type
str | ScheduledType 
- Supported type this scheduled task represents.
- schedule_name str
- The name of the schedule that uniquely identifies it.
- state
str | EnableStatus 
- Indicates whether or not this scheduled task is enabled.
- top int
- The maximum number of resources to return from the operation. Example: '$top=10'.
- frequency String | "Daily"
- The frequency of this scheduled task.
- poolName String
- Name of the pool.
- projectName String
- The name of the project.
- resourceGroup StringName 
- Name of the resource group within the Azure subscription.
- time String
- The target time to trigger the action. The format is HH:MM.
- timeZone String
- The IANA timezone id at which the schedule should execute.
- type
String | "StopDev Box" 
- Supported type this scheduled task represents.
- scheduleName String
- The name of the schedule that uniquely identifies it.
- state String | "Enabled" | "Disabled"
- Indicates whether or not this scheduled task is enabled.
- top Number
- The maximum number of resources to return from the operation. Example: '$top=10'.
Outputs
All input properties are implicitly available as output properties. Additionally, the Schedule resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- ProvisioningState string
- The provisioning state of the resource.
- SystemData Pulumi.Azure Native. Dev Center. Outputs. System Data Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- ProvisioningState string
- The provisioning state of the resource.
- SystemData SystemData Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- provisioningState String
- The provisioning state of the resource.
- systemData SystemData Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the resource
- provisioningState string
- The provisioning state of the resource.
- systemData SystemData Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The name of the resource
- provisioning_state str
- The provisioning state of the resource.
- system_data SystemData Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- provisioningState String
- The provisioning state of the resource.
- systemData Property Map
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
Supporting Types
EnableStatus, EnableStatusArgs    
- Enabled
- Enabled
- Disabled
- Disabled
- EnableStatus Enabled 
- Enabled
- EnableStatus Disabled 
- Disabled
- Enabled
- Enabled
- Disabled
- Disabled
- Enabled
- Enabled
- Disabled
- Disabled
- ENABLED
- Enabled
- DISABLED
- Disabled
- "Enabled"
- Enabled
- "Disabled"
- Disabled
ScheduledFrequency, ScheduledFrequencyArgs    
- Daily
- Daily
- ScheduledFrequency Daily 
- Daily
- Daily
- Daily
- Daily
- Daily
- DAILY
- Daily
- "Daily"
- Daily
ScheduledType, ScheduledTypeArgs    
- StopDev Box 
- StopDevBox
- ScheduledType Stop Dev Box 
- StopDevBox
- StopDev Box 
- StopDevBox
- StopDev Box 
- StopDevBox
- STOP_DEV_BOX
- StopDevBox
- "StopDev Box" 
- StopDevBox
SystemDataResponse, SystemDataResponseArgs      
- CreatedAt string
- The timestamp of resource creation (UTC).
- CreatedBy string
- The identity that created the resource.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- The type of identity that last modified the resource.
- CreatedAt string
- The timestamp of resource creation (UTC).
- CreatedBy string
- The identity that created the resource.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- The type of identity that last modified the resource.
- createdAt String
- The timestamp of resource creation (UTC).
- createdBy String
- The identity that created the resource.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- The type of identity that last modified the resource.
- createdAt string
- The timestamp of resource creation (UTC).
- createdBy string
- The identity that created the resource.
- createdBy stringType 
- The type of identity that created the resource.
- lastModified stringAt 
- The timestamp of resource last modification (UTC)
- lastModified stringBy 
- The identity that last modified the resource.
- lastModified stringBy Type 
- The type of identity that last modified the resource.
- created_at str
- The timestamp of resource creation (UTC).
- created_by str
- The identity that created the resource.
- created_by_ strtype 
- The type of identity that created the resource.
- last_modified_ strat 
- The timestamp of resource last modification (UTC)
- last_modified_ strby 
- The identity that last modified the resource.
- last_modified_ strby_ type 
- The type of identity that last modified the resource.
- createdAt String
- The timestamp of resource creation (UTC).
- createdBy String
- The identity that created the resource.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- The type of identity that last modified the resource.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:devcenter:Schedule autoShutdown /subscriptions/{subscriptionId}/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/TestProject/pools/DevPool/schedules/autoShutdown 
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0