This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Viewing docs for Azure Native v3.16.0
published on Friday, Mar 20, 2026 by Pulumi
published on Friday, Mar 20, 2026 by Pulumi
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Viewing docs for Azure Native v3.16.0
published on Friday, Mar 20, 2026 by Pulumi
published on Friday, Mar 20, 2026 by Pulumi
Get schedule.
Uses Azure REST API version 2018-09-15.
Using getVirtualMachineSchedule
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getVirtualMachineSchedule(args: GetVirtualMachineScheduleArgs, opts?: InvokeOptions): Promise<GetVirtualMachineScheduleResult>
function getVirtualMachineScheduleOutput(args: GetVirtualMachineScheduleOutputArgs, opts?: InvokeOptions): Output<GetVirtualMachineScheduleResult>def get_virtual_machine_schedule(expand: Optional[str] = None,
lab_name: Optional[str] = None,
name: Optional[str] = None,
resource_group_name: Optional[str] = None,
virtual_machine_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetVirtualMachineScheduleResult
def get_virtual_machine_schedule_output(expand: Optional[pulumi.Input[str]] = None,
lab_name: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
resource_group_name: Optional[pulumi.Input[str]] = None,
virtual_machine_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetVirtualMachineScheduleResult]func LookupVirtualMachineSchedule(ctx *Context, args *LookupVirtualMachineScheduleArgs, opts ...InvokeOption) (*LookupVirtualMachineScheduleResult, error)
func LookupVirtualMachineScheduleOutput(ctx *Context, args *LookupVirtualMachineScheduleOutputArgs, opts ...InvokeOption) LookupVirtualMachineScheduleResultOutput> Note: This function is named LookupVirtualMachineSchedule in the Go SDK.
public static class GetVirtualMachineSchedule
{
public static Task<GetVirtualMachineScheduleResult> InvokeAsync(GetVirtualMachineScheduleArgs args, InvokeOptions? opts = null)
public static Output<GetVirtualMachineScheduleResult> Invoke(GetVirtualMachineScheduleInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetVirtualMachineScheduleResult> getVirtualMachineSchedule(GetVirtualMachineScheduleArgs args, InvokeOptions options)
public static Output<GetVirtualMachineScheduleResult> getVirtualMachineSchedule(GetVirtualMachineScheduleArgs args, InvokeOptions options)
fn::invoke:
function: azure-native:devtestlab:getVirtualMachineSchedule
arguments:
# arguments dictionaryThe following arguments are supported:
- Lab
Name string - labs
- Name string
- The name of the Schedule
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Virtual
Machine stringName - virtualmachines
- Expand string
- Specify the $expand query. Example: 'properties($select=status)'
- Lab
Name string - labs
- Name string
- The name of the Schedule
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Virtual
Machine stringName - virtualmachines
- Expand string
- Specify the $expand query. Example: 'properties($select=status)'
- lab
Name String - labs
- name String
- The name of the Schedule
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- virtual
Machine StringName - virtualmachines
- expand String
- Specify the $expand query. Example: 'properties($select=status)'
- lab
Name string - labs
- name string
- The name of the Schedule
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- virtual
Machine stringName - virtualmachines
- expand string
- Specify the $expand query. Example: 'properties($select=status)'
- lab_
name str - labs
- name str
- The name of the Schedule
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- virtual_
machine_ strname - virtualmachines
- expand str
- Specify the $expand query. Example: 'properties($select=status)'
- lab
Name String - labs
- name String
- The name of the Schedule
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- virtual
Machine StringName - virtualmachines
- expand String
- Specify the $expand query. Example: 'properties($select=status)'
getVirtualMachineSchedule Result
The following output properties are available:
- Azure
Api stringVersion - The Azure API version of the resource.
- Created
Date string - The creation date of the schedule.
- Id string
- Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
- Name string
- The name of the resource
- Provisioning
State string - The provisioning status of the resource.
- System
Data Pulumi.Azure Native. Dev Test Lab. Outputs. System Data Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Unique
Identifier string - The unique immutable identifier of a resource (Guid).
- Daily
Recurrence Pulumi.Azure Native. Dev Test Lab. Outputs. Day Details Response - If the schedule will occur once each day of the week, specify the daily recurrence.
- Hourly
Recurrence Pulumi.Azure Native. Dev Test Lab. Outputs. Hour Details Response - If the schedule will occur multiple times a day, specify the hourly recurrence.
- Location string
- The geo-location where the resource lives
- Notification
Settings Pulumi.Azure Native. Dev Test Lab. Outputs. Notification Settings Response - Notification settings.
- Status string
- The status of the schedule (i.e. Enabled, Disabled)
- Dictionary<string, string>
- Resource tags.
- Target
Resource stringId - The resource ID to which the schedule belongs
- Task
Type string - The task type of the schedule (e.g. LabVmsShutdownTask, LabVmAutoStart).
- Time
Zone stringId - The time zone ID (e.g. China Standard Time, Greenland Standard Time, Pacific Standard time, etc.). The possible values for this property can be found in
IReadOnlyCollection<string> TimeZoneConverter.TZConvert.KnownWindowsTimeZoneIds(https://github.com/mattjohnsonpint/TimeZoneConverter/blob/main/README.md) - Weekly
Recurrence Pulumi.Azure Native. Dev Test Lab. Outputs. Week Details Response - If the schedule will occur only some days of the week, specify the weekly recurrence.
- Azure
Api stringVersion - The Azure API version of the resource.
- Created
Date string - The creation date of the schedule.
- Id string
- Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
- Name string
- The name of the resource
- Provisioning
State string - The provisioning status of the resource.
- System
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Unique
Identifier string - The unique immutable identifier of a resource (Guid).
- Daily
Recurrence DayDetails Response - If the schedule will occur once each day of the week, specify the daily recurrence.
- Hourly
Recurrence HourDetails Response - If the schedule will occur multiple times a day, specify the hourly recurrence.
- Location string
- The geo-location where the resource lives
- Notification
Settings NotificationSettings Response - Notification settings.
- Status string
- The status of the schedule (i.e. Enabled, Disabled)
- map[string]string
- Resource tags.
- Target
Resource stringId - The resource ID to which the schedule belongs
- Task
Type string - The task type of the schedule (e.g. LabVmsShutdownTask, LabVmAutoStart).
- Time
Zone stringId - The time zone ID (e.g. China Standard Time, Greenland Standard Time, Pacific Standard time, etc.). The possible values for this property can be found in
IReadOnlyCollection<string> TimeZoneConverter.TZConvert.KnownWindowsTimeZoneIds(https://github.com/mattjohnsonpint/TimeZoneConverter/blob/main/README.md) - Weekly
Recurrence WeekDetails Response - If the schedule will occur only some days of the week, specify the weekly recurrence.
- azure
Api StringVersion - The Azure API version of the resource.
- created
Date String - The creation date of the schedule.
- id String
- Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
- name String
- The name of the resource
- provisioning
State String - The provisioning status of the resource.
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- unique
Identifier String - The unique immutable identifier of a resource (Guid).
- daily
Recurrence DayDetails Response - If the schedule will occur once each day of the week, specify the daily recurrence.
- hourly
Recurrence HourDetails Response - If the schedule will occur multiple times a day, specify the hourly recurrence.
- location String
- The geo-location where the resource lives
- notification
Settings NotificationSettings Response - Notification settings.
- status String
- The status of the schedule (i.e. Enabled, Disabled)
- Map<String,String>
- Resource tags.
- target
Resource StringId - The resource ID to which the schedule belongs
- task
Type String - The task type of the schedule (e.g. LabVmsShutdownTask, LabVmAutoStart).
- time
Zone StringId - The time zone ID (e.g. China Standard Time, Greenland Standard Time, Pacific Standard time, etc.). The possible values for this property can be found in
IReadOnlyCollection<string> TimeZoneConverter.TZConvert.KnownWindowsTimeZoneIds(https://github.com/mattjohnsonpint/TimeZoneConverter/blob/main/README.md) - weekly
Recurrence WeekDetails Response - If the schedule will occur only some days of the week, specify the weekly recurrence.
- azure
Api stringVersion - The Azure API version of the resource.
- created
Date string - The creation date of the schedule.
- id string
- Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
- name string
- The name of the resource
- provisioning
State string - The provisioning status of the resource.
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- unique
Identifier string - The unique immutable identifier of a resource (Guid).
- daily
Recurrence DayDetails Response - If the schedule will occur once each day of the week, specify the daily recurrence.
- hourly
Recurrence HourDetails Response - If the schedule will occur multiple times a day, specify the hourly recurrence.
- location string
- The geo-location where the resource lives
- notification
Settings NotificationSettings Response - Notification settings.
- status string
- The status of the schedule (i.e. Enabled, Disabled)
- {[key: string]: string}
- Resource tags.
- target
Resource stringId - The resource ID to which the schedule belongs
- task
Type string - The task type of the schedule (e.g. LabVmsShutdownTask, LabVmAutoStart).
- time
Zone stringId - The time zone ID (e.g. China Standard Time, Greenland Standard Time, Pacific Standard time, etc.). The possible values for this property can be found in
IReadOnlyCollection<string> TimeZoneConverter.TZConvert.KnownWindowsTimeZoneIds(https://github.com/mattjohnsonpint/TimeZoneConverter/blob/main/README.md) - weekly
Recurrence WeekDetails Response - If the schedule will occur only some days of the week, specify the weekly recurrence.
- azure_
api_ strversion - The Azure API version of the resource.
- created_
date str - The creation date of the schedule.
- id str
- Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
- name str
- The name of the resource
- provisioning_
state str - The provisioning status of the resource.
- system_
data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- unique_
identifier str - The unique immutable identifier of a resource (Guid).
- daily_
recurrence DayDetails Response - If the schedule will occur once each day of the week, specify the daily recurrence.
- hourly_
recurrence HourDetails Response - If the schedule will occur multiple times a day, specify the hourly recurrence.
- location str
- The geo-location where the resource lives
- notification_
settings NotificationSettings Response - Notification settings.
- status str
- The status of the schedule (i.e. Enabled, Disabled)
- Mapping[str, str]
- Resource tags.
- target_
resource_ strid - The resource ID to which the schedule belongs
- task_
type str - The task type of the schedule (e.g. LabVmsShutdownTask, LabVmAutoStart).
- time_
zone_ strid - The time zone ID (e.g. China Standard Time, Greenland Standard Time, Pacific Standard time, etc.). The possible values for this property can be found in
IReadOnlyCollection<string> TimeZoneConverter.TZConvert.KnownWindowsTimeZoneIds(https://github.com/mattjohnsonpint/TimeZoneConverter/blob/main/README.md) - weekly_
recurrence WeekDetails Response - If the schedule will occur only some days of the week, specify the weekly recurrence.
- azure
Api StringVersion - The Azure API version of the resource.
- created
Date String - The creation date of the schedule.
- id String
- Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
- name String
- The name of the resource
- provisioning
State String - The provisioning status of the resource.
- system
Data Property Map - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- unique
Identifier String - The unique immutable identifier of a resource (Guid).
- daily
Recurrence Property Map - If the schedule will occur once each day of the week, specify the daily recurrence.
- hourly
Recurrence Property Map - If the schedule will occur multiple times a day, specify the hourly recurrence.
- location String
- The geo-location where the resource lives
- notification
Settings Property Map - Notification settings.
- status String
- The status of the schedule (i.e. Enabled, Disabled)
- Map<String>
- Resource tags.
- target
Resource StringId - The resource ID to which the schedule belongs
- task
Type String - The task type of the schedule (e.g. LabVmsShutdownTask, LabVmAutoStart).
- time
Zone StringId - The time zone ID (e.g. China Standard Time, Greenland Standard Time, Pacific Standard time, etc.). The possible values for this property can be found in
IReadOnlyCollection<string> TimeZoneConverter.TZConvert.KnownWindowsTimeZoneIds(https://github.com/mattjohnsonpint/TimeZoneConverter/blob/main/README.md) - weekly
Recurrence Property Map - If the schedule will occur only some days of the week, specify the weekly recurrence.
Supporting Types
DayDetailsResponse
- Time string
- The time of day the schedule will occur.
- Time string
- The time of day the schedule will occur.
- time String
- The time of day the schedule will occur.
- time string
- The time of day the schedule will occur.
- time str
- The time of day the schedule will occur.
- time String
- The time of day the schedule will occur.
HourDetailsResponse
- Minute int
- Minutes of the hour the schedule will run.
- Minute int
- Minutes of the hour the schedule will run.
- minute Integer
- Minutes of the hour the schedule will run.
- minute number
- Minutes of the hour the schedule will run.
- minute int
- Minutes of the hour the schedule will run.
- minute Number
- Minutes of the hour the schedule will run.
NotificationSettingsResponse
- Email
Recipient string - The email recipient to send notifications to (can be a list of semi-colon separated email addresses).
- Notification
Locale string - The locale to use when sending a notification (fallback for unsupported languages is EN).
- Status string
- If notifications are enabled for this schedule (i.e. Enabled, Disabled).
- Time
In intMinutes - Time in minutes before event at which notification will be sent.
- Webhook
Url string - The webhook URL to which the notification will be sent.
- Email
Recipient string - The email recipient to send notifications to (can be a list of semi-colon separated email addresses).
- Notification
Locale string - The locale to use when sending a notification (fallback for unsupported languages is EN).
- Status string
- If notifications are enabled for this schedule (i.e. Enabled, Disabled).
- Time
In intMinutes - Time in minutes before event at which notification will be sent.
- Webhook
Url string - The webhook URL to which the notification will be sent.
- email
Recipient String - The email recipient to send notifications to (can be a list of semi-colon separated email addresses).
- notification
Locale String - The locale to use when sending a notification (fallback for unsupported languages is EN).
- status String
- If notifications are enabled for this schedule (i.e. Enabled, Disabled).
- time
In IntegerMinutes - Time in minutes before event at which notification will be sent.
- webhook
Url String - The webhook URL to which the notification will be sent.
- email
Recipient string - The email recipient to send notifications to (can be a list of semi-colon separated email addresses).
- notification
Locale string - The locale to use when sending a notification (fallback for unsupported languages is EN).
- status string
- If notifications are enabled for this schedule (i.e. Enabled, Disabled).
- time
In numberMinutes - Time in minutes before event at which notification will be sent.
- webhook
Url string - The webhook URL to which the notification will be sent.
- email_
recipient str - The email recipient to send notifications to (can be a list of semi-colon separated email addresses).
- notification_
locale str - The locale to use when sending a notification (fallback for unsupported languages is EN).
- status str
- If notifications are enabled for this schedule (i.e. Enabled, Disabled).
- time_
in_ intminutes - Time in minutes before event at which notification will be sent.
- webhook_
url str - The webhook URL to which the notification will be sent.
- email
Recipient String - The email recipient to send notifications to (can be a list of semi-colon separated email addresses).
- notification
Locale String - The locale to use when sending a notification (fallback for unsupported languages is EN).
- status String
- If notifications are enabled for this schedule (i.e. Enabled, Disabled).
- time
In NumberMinutes - Time in minutes before event at which notification will be sent.
- webhook
Url String - The webhook URL to which the notification will be sent.
SystemDataResponse
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified 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.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
WeekDetailsResponse
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Viewing docs for Azure Native v3.16.0
published on Friday, Mar 20, 2026 by Pulumi
published on Friday, Mar 20, 2026 by Pulumi
