1. Packages
  2. Azure Classic
  3. API Docs
  4. devtest
  5. GlobalVMShutdownSchedule

We recommend using Azure Native.

Viewing docs for Azure v4.42.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
azure logo

We recommend using Azure Native.

Viewing docs for Azure v4.42.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi

    Manages automated shutdown schedules for Azure VMs that are not within an Azure DevTest Lab. While this is part of the DevTest Labs service in Azure, this resource applies only to standard VMs, not DevTest Lab VMs. To manage automated shutdown schedules for DevTest Lab VMs, reference the azure.devtest.Schedule resource

    Example Usage

    using Pulumi;
    using Azure = Pulumi.Azure;
    
    class MyStack : Stack
    {
        public MyStack()
        {
            var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
            {
                Location = "West Europe",
            });
            var exampleVirtualNetwork = new Azure.Network.VirtualNetwork("exampleVirtualNetwork", new Azure.Network.VirtualNetworkArgs
            {
                AddressSpaces = 
                {
                    "10.0.0.0/16",
                },
                Location = exampleResourceGroup.Location,
                ResourceGroupName = exampleResourceGroup.Name,
            });
            var exampleSubnet = new Azure.Network.Subnet("exampleSubnet", new Azure.Network.SubnetArgs
            {
                ResourceGroupName = exampleResourceGroup.Name,
                VirtualNetworkName = exampleVirtualNetwork.Name,
                AddressPrefixes = 
                {
                    "10.0.2.0/24",
                },
            });
            var exampleNetworkInterface = new Azure.Network.NetworkInterface("exampleNetworkInterface", new Azure.Network.NetworkInterfaceArgs
            {
                Location = exampleResourceGroup.Location,
                ResourceGroupName = exampleResourceGroup.Name,
                IpConfigurations = 
                {
                    new Azure.Network.Inputs.NetworkInterfaceIpConfigurationArgs
                    {
                        Name = "testconfiguration1",
                        SubnetId = exampleSubnet.Id,
                        PrivateIpAddressAllocation = "Dynamic",
                    },
                },
            });
            var exampleLinuxVirtualMachine = new Azure.Compute.LinuxVirtualMachine("exampleLinuxVirtualMachine", new Azure.Compute.LinuxVirtualMachineArgs
            {
                Location = exampleResourceGroup.Location,
                ResourceGroupName = exampleResourceGroup.Name,
                NetworkInterfaceIds = 
                {
                    exampleNetworkInterface.Id,
                },
                Size = "Standard_B2s",
                SourceImageReference = new Azure.Compute.Inputs.LinuxVirtualMachineSourceImageReferenceArgs
                {
                    Publisher = "Canonical",
                    Offer = "UbuntuServer",
                    Sku = "16.04-LTS",
                    Version = "latest",
                },
                OsDisk = new Azure.Compute.Inputs.LinuxVirtualMachineOsDiskArgs
                {
                    Name = "myosdisk-%d",
                    Caching = "ReadWrite",
                    ManagedDiskType = "Standard_LRS",
                },
                AdminUsername = "testadmin",
                AdminPassword = "Password1234!",
                DisablePasswordAuthentication = false,
            });
            var exampleGlobalVMShutdownSchedule = new Azure.DevTest.GlobalVMShutdownSchedule("exampleGlobalVMShutdownSchedule", new Azure.DevTest.GlobalVMShutdownScheduleArgs
            {
                VirtualMachineId = azurerm_virtual_machine.Example.Id,
                Location = exampleResourceGroup.Location,
                Enabled = true,
                DailyRecurrenceTime = "1100",
                Timezone = "Pacific Standard Time",
                NotificationSettings = new Azure.DevTest.Inputs.GlobalVMShutdownScheduleNotificationSettingsArgs
                {
                    Enabled = true,
                    TimeInMinutes = 60,
                    WebhookUrl = "https://sample-webhook-url.example.com",
                },
            });
        }
    
    }
    
    package main
    
    import (
    	"fmt"
    
    	"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/compute"
    	"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/core"
    	"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/devtest"
    	"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/network"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
    			Location: pulumi.String("West Europe"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleVirtualNetwork, err := network.NewVirtualNetwork(ctx, "exampleVirtualNetwork", &network.VirtualNetworkArgs{
    			AddressSpaces: pulumi.StringArray{
    				pulumi.String("10.0.0.0/16"),
    			},
    			Location:          exampleResourceGroup.Location,
    			ResourceGroupName: exampleResourceGroup.Name,
    		})
    		if err != nil {
    			return err
    		}
    		exampleSubnet, err := network.NewSubnet(ctx, "exampleSubnet", &network.SubnetArgs{
    			ResourceGroupName:  exampleResourceGroup.Name,
    			VirtualNetworkName: exampleVirtualNetwork.Name,
    			AddressPrefixes: pulumi.StringArray{
    				pulumi.String("10.0.2.0/24"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		exampleNetworkInterface, err := network.NewNetworkInterface(ctx, "exampleNetworkInterface", &network.NetworkInterfaceArgs{
    			Location:          exampleResourceGroup.Location,
    			ResourceGroupName: exampleResourceGroup.Name,
    			IpConfigurations: network.NetworkInterfaceIpConfigurationArray{
    				&network.NetworkInterfaceIpConfigurationArgs{
    					Name:                       pulumi.String("testconfiguration1"),
    					SubnetId:                   exampleSubnet.ID(),
    					PrivateIpAddressAllocation: pulumi.String("Dynamic"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = compute.NewLinuxVirtualMachine(ctx, "exampleLinuxVirtualMachine", &compute.LinuxVirtualMachineArgs{
    			Location:          exampleResourceGroup.Location,
    			ResourceGroupName: exampleResourceGroup.Name,
    			NetworkInterfaceIds: pulumi.StringArray{
    				exampleNetworkInterface.ID(),
    			},
    			Size: pulumi.String("Standard_B2s"),
    			SourceImageReference: &compute.LinuxVirtualMachineSourceImageReferenceArgs{
    				Publisher: pulumi.String("Canonical"),
    				Offer:     pulumi.String("UbuntuServer"),
    				Sku:       pulumi.String("16.04-LTS"),
    				Version:   pulumi.String("latest"),
    			},
    			OsDisk: &compute.LinuxVirtualMachineOsDiskArgs{
    				Name:            pulumi.String(fmt.Sprintf("%v%v%v", "myosdisk-", "%", "d")),
    				Caching:         pulumi.String("ReadWrite"),
    				ManagedDiskType: "Standard_LRS",
    			},
    			AdminUsername:                 pulumi.String("testadmin"),
    			AdminPassword:                 pulumi.String("Password1234!"),
    			DisablePasswordAuthentication: pulumi.Bool(false),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = devtest.NewGlobalVMShutdownSchedule(ctx, "exampleGlobalVMShutdownSchedule", &devtest.GlobalVMShutdownScheduleArgs{
    			VirtualMachineId:    pulumi.Any(azurerm_virtual_machine.Example.Id),
    			Location:            exampleResourceGroup.Location,
    			Enabled:             pulumi.Bool(true),
    			DailyRecurrenceTime: pulumi.String("1100"),
    			Timezone:            pulumi.String("Pacific Standard Time"),
    			NotificationSettings: &devtest.GlobalVMShutdownScheduleNotificationSettingsArgs{
    				Enabled:       pulumi.Bool(true),
    				TimeInMinutes: pulumi.Int(60),
    				WebhookUrl:    pulumi.String("https://sample-webhook-url.example.com"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    

    Example coming soon!

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
    const exampleVirtualNetwork = new azure.network.VirtualNetwork("exampleVirtualNetwork", {
        addressSpaces: ["10.0.0.0/16"],
        location: exampleResourceGroup.location,
        resourceGroupName: exampleResourceGroup.name,
    });
    const exampleSubnet = new azure.network.Subnet("exampleSubnet", {
        resourceGroupName: exampleResourceGroup.name,
        virtualNetworkName: exampleVirtualNetwork.name,
        addressPrefixes: ["10.0.2.0/24"],
    });
    const exampleNetworkInterface = new azure.network.NetworkInterface("exampleNetworkInterface", {
        location: exampleResourceGroup.location,
        resourceGroupName: exampleResourceGroup.name,
        ipConfigurations: [{
            name: "testconfiguration1",
            subnetId: exampleSubnet.id,
            privateIpAddressAllocation: "Dynamic",
        }],
    });
    const exampleLinuxVirtualMachine = new azure.compute.LinuxVirtualMachine("exampleLinuxVirtualMachine", {
        location: exampleResourceGroup.location,
        resourceGroupName: exampleResourceGroup.name,
        networkInterfaceIds: [exampleNetworkInterface.id],
        size: "Standard_B2s",
        sourceImageReference: {
            publisher: "Canonical",
            offer: "UbuntuServer",
            sku: "16.04-LTS",
            version: "latest",
        },
        osDisk: {
            name: `myosdisk-%d`,
            caching: "ReadWrite",
            managedDiskType: "Standard_LRS",
        },
        adminUsername: "testadmin",
        adminPassword: "Password1234!",
        disablePasswordAuthentication: false,
    });
    const exampleGlobalVMShutdownSchedule = new azure.devtest.GlobalVMShutdownSchedule("exampleGlobalVMShutdownSchedule", {
        virtualMachineId: azurerm_virtual_machine.example.id,
        location: exampleResourceGroup.location,
        enabled: true,
        dailyRecurrenceTime: "1100",
        timezone: "Pacific Standard Time",
        notificationSettings: {
            enabled: true,
            timeInMinutes: "60",
            webhookUrl: "https://sample-webhook-url.example.com",
        },
    });
    
    import pulumi
    import pulumi_azure as azure
    
    example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
    example_virtual_network = azure.network.VirtualNetwork("exampleVirtualNetwork",
        address_spaces=["10.0.0.0/16"],
        location=example_resource_group.location,
        resource_group_name=example_resource_group.name)
    example_subnet = azure.network.Subnet("exampleSubnet",
        resource_group_name=example_resource_group.name,
        virtual_network_name=example_virtual_network.name,
        address_prefixes=["10.0.2.0/24"])
    example_network_interface = azure.network.NetworkInterface("exampleNetworkInterface",
        location=example_resource_group.location,
        resource_group_name=example_resource_group.name,
        ip_configurations=[azure.network.NetworkInterfaceIpConfigurationArgs(
            name="testconfiguration1",
            subnet_id=example_subnet.id,
            private_ip_address_allocation="Dynamic",
        )])
    example_linux_virtual_machine = azure.compute.LinuxVirtualMachine("exampleLinuxVirtualMachine",
        location=example_resource_group.location,
        resource_group_name=example_resource_group.name,
        network_interface_ids=[example_network_interface.id],
        size="Standard_B2s",
        source_image_reference=azure.compute.LinuxVirtualMachineSourceImageReferenceArgs(
            publisher="Canonical",
            offer="UbuntuServer",
            sku="16.04-LTS",
            version="latest",
        ),
        os_disk=azure.compute.LinuxVirtualMachineOsDiskArgs(
            name="myosdisk-%d",
            caching="ReadWrite",
            managed_disk_type="Standard_LRS",
        ),
        admin_username="testadmin",
        admin_password="Password1234!",
        disable_password_authentication=False)
    example_global_vm_shutdown_schedule = azure.devtest.GlobalVMShutdownSchedule("exampleGlobalVMShutdownSchedule",
        virtual_machine_id=azurerm_virtual_machine["example"]["id"],
        location=example_resource_group.location,
        enabled=True,
        daily_recurrence_time="1100",
        timezone="Pacific Standard Time",
        notification_settings=azure.devtest.GlobalVMShutdownScheduleNotificationSettingsArgs(
            enabled=True,
            time_in_minutes=60,
            webhook_url="https://sample-webhook-url.example.com",
        ))
    

    Example coming soon!

    Create GlobalVMShutdownSchedule Resource

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

    Constructor syntax

    new GlobalVMShutdownSchedule(name: string, args: GlobalVMShutdownScheduleArgs, opts?: CustomResourceOptions);
    @overload
    def GlobalVMShutdownSchedule(resource_name: str,
                                 args: GlobalVMShutdownScheduleArgs,
                                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def GlobalVMShutdownSchedule(resource_name: str,
                                 opts: Optional[ResourceOptions] = None,
                                 daily_recurrence_time: Optional[str] = None,
                                 notification_settings: Optional[GlobalVMShutdownScheduleNotificationSettingsArgs] = None,
                                 timezone: Optional[str] = None,
                                 virtual_machine_id: Optional[str] = None,
                                 enabled: Optional[bool] = None,
                                 location: Optional[str] = None,
                                 tags: Optional[Mapping[str, str]] = None)
    func NewGlobalVMShutdownSchedule(ctx *Context, name string, args GlobalVMShutdownScheduleArgs, opts ...ResourceOption) (*GlobalVMShutdownSchedule, error)
    public GlobalVMShutdownSchedule(string name, GlobalVMShutdownScheduleArgs args, CustomResourceOptions? opts = null)
    public GlobalVMShutdownSchedule(String name, GlobalVMShutdownScheduleArgs args)
    public GlobalVMShutdownSchedule(String name, GlobalVMShutdownScheduleArgs args, CustomResourceOptions options)
    
    type: azure:devtest:GlobalVMShutdownSchedule
    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 GlobalVMShutdownScheduleArgs
    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 GlobalVMShutdownScheduleArgs
    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 GlobalVMShutdownScheduleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args GlobalVMShutdownScheduleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args GlobalVMShutdownScheduleArgs
    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 globalVMShutdownScheduleResource = new Azure.DevTest.GlobalVMShutdownSchedule("globalVMShutdownScheduleResource", new()
    {
        DailyRecurrenceTime = "string",
        NotificationSettings = new Azure.DevTest.Inputs.GlobalVMShutdownScheduleNotificationSettingsArgs
        {
            Enabled = false,
            Email = "string",
            TimeInMinutes = 0,
            WebhookUrl = "string",
        },
        Timezone = "string",
        VirtualMachineId = "string",
        Enabled = false,
        Location = "string",
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := devtest.NewGlobalVMShutdownSchedule(ctx, "globalVMShutdownScheduleResource", &devtest.GlobalVMShutdownScheduleArgs{
    	DailyRecurrenceTime: pulumi.String("string"),
    	NotificationSettings: &devtest.GlobalVMShutdownScheduleNotificationSettingsArgs{
    		Enabled:       pulumi.Bool(false),
    		Email:         pulumi.String("string"),
    		TimeInMinutes: pulumi.Int(0),
    		WebhookUrl:    pulumi.String("string"),
    	},
    	Timezone:         pulumi.String("string"),
    	VirtualMachineId: pulumi.String("string"),
    	Enabled:          pulumi.Bool(false),
    	Location:         pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var globalVMShutdownScheduleResource = new GlobalVMShutdownSchedule("globalVMShutdownScheduleResource", GlobalVMShutdownScheduleArgs.builder()
        .dailyRecurrenceTime("string")
        .notificationSettings(GlobalVMShutdownScheduleNotificationSettingsArgs.builder()
            .enabled(false)
            .email("string")
            .timeInMinutes(0)
            .webhookUrl("string")
            .build())
        .timezone("string")
        .virtualMachineId("string")
        .enabled(false)
        .location("string")
        .tags(Map.of("string", "string"))
        .build());
    
    global_vm_shutdown_schedule_resource = azure.devtest.GlobalVMShutdownSchedule("globalVMShutdownScheduleResource",
        daily_recurrence_time="string",
        notification_settings={
            "enabled": False,
            "email": "string",
            "time_in_minutes": 0,
            "webhook_url": "string",
        },
        timezone="string",
        virtual_machine_id="string",
        enabled=False,
        location="string",
        tags={
            "string": "string",
        })
    
    const globalVMShutdownScheduleResource = new azure.devtest.GlobalVMShutdownSchedule("globalVMShutdownScheduleResource", {
        dailyRecurrenceTime: "string",
        notificationSettings: {
            enabled: false,
            email: "string",
            timeInMinutes: 0,
            webhookUrl: "string",
        },
        timezone: "string",
        virtualMachineId: "string",
        enabled: false,
        location: "string",
        tags: {
            string: "string",
        },
    });
    
    type: azure:devtest:GlobalVMShutdownSchedule
    properties:
        dailyRecurrenceTime: string
        enabled: false
        location: string
        notificationSettings:
            email: string
            enabled: false
            timeInMinutes: 0
            webhookUrl: string
        tags:
            string: string
        timezone: string
        virtualMachineId: string
    

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

    DailyRecurrenceTime string
    The time each day when the schedule takes effect. Must match the format HHmm where HH is 00-23 and mm is 00-59 (e.g. 0930, 2300, etc.)
    NotificationSettings GlobalVMShutdownScheduleNotificationSettings
    Timezone string
    The time zone ID (e.g. Pacific Standard time). Refer to this guide for a full list of accepted time zone names.
    VirtualMachineId string
    The resource ID of the target ARM-based Virtual Machine. Changing this forces a new resource to be created.
    Enabled bool
    Whether to enable the schedule. Possible values are true and false. Defaults to true.
    Location string
    The location where the schedule is created. Changing this forces a new resource to be created.
    Tags Dictionary<string, string>
    A mapping of tags to assign to the resource.
    DailyRecurrenceTime string
    The time each day when the schedule takes effect. Must match the format HHmm where HH is 00-23 and mm is 00-59 (e.g. 0930, 2300, etc.)
    NotificationSettings GlobalVMShutdownScheduleNotificationSettingsArgs
    Timezone string
    The time zone ID (e.g. Pacific Standard time). Refer to this guide for a full list of accepted time zone names.
    VirtualMachineId string
    The resource ID of the target ARM-based Virtual Machine. Changing this forces a new resource to be created.
    Enabled bool
    Whether to enable the schedule. Possible values are true and false. Defaults to true.
    Location string
    The location where the schedule is created. Changing this forces a new resource to be created.
    Tags map[string]string
    A mapping of tags to assign to the resource.
    dailyRecurrenceTime String
    The time each day when the schedule takes effect. Must match the format HHmm where HH is 00-23 and mm is 00-59 (e.g. 0930, 2300, etc.)
    notificationSettings GlobalVMShutdownScheduleNotificationSettings
    timezone String
    The time zone ID (e.g. Pacific Standard time). Refer to this guide for a full list of accepted time zone names.
    virtualMachineId String
    The resource ID of the target ARM-based Virtual Machine. Changing this forces a new resource to be created.
    enabled Boolean
    Whether to enable the schedule. Possible values are true and false. Defaults to true.
    location String
    The location where the schedule is created. Changing this forces a new resource to be created.
    tags Map<String,String>
    A mapping of tags to assign to the resource.
    dailyRecurrenceTime string
    The time each day when the schedule takes effect. Must match the format HHmm where HH is 00-23 and mm is 00-59 (e.g. 0930, 2300, etc.)
    notificationSettings GlobalVMShutdownScheduleNotificationSettings
    timezone string
    The time zone ID (e.g. Pacific Standard time). Refer to this guide for a full list of accepted time zone names.
    virtualMachineId string
    The resource ID of the target ARM-based Virtual Machine. Changing this forces a new resource to be created.
    enabled boolean
    Whether to enable the schedule. Possible values are true and false. Defaults to true.
    location string
    The location where the schedule is created. Changing this forces a new resource to be created.
    tags {[key: string]: string}
    A mapping of tags to assign to the resource.
    daily_recurrence_time str
    The time each day when the schedule takes effect. Must match the format HHmm where HH is 00-23 and mm is 00-59 (e.g. 0930, 2300, etc.)
    notification_settings GlobalVMShutdownScheduleNotificationSettingsArgs
    timezone str
    The time zone ID (e.g. Pacific Standard time). Refer to this guide for a full list of accepted time zone names.
    virtual_machine_id str
    The resource ID of the target ARM-based Virtual Machine. Changing this forces a new resource to be created.
    enabled bool
    Whether to enable the schedule. Possible values are true and false. Defaults to true.
    location str
    The location where the schedule is created. Changing this forces a new resource to be created.
    tags Mapping[str, str]
    A mapping of tags to assign to the resource.
    dailyRecurrenceTime String
    The time each day when the schedule takes effect. Must match the format HHmm where HH is 00-23 and mm is 00-59 (e.g. 0930, 2300, etc.)
    notificationSettings Property Map
    timezone String
    The time zone ID (e.g. Pacific Standard time). Refer to this guide for a full list of accepted time zone names.
    virtualMachineId String
    The resource ID of the target ARM-based Virtual Machine. Changing this forces a new resource to be created.
    enabled Boolean
    Whether to enable the schedule. Possible values are true and false. Defaults to true.
    location String
    The location where the schedule is created. Changing this forces a new resource to be created.
    tags Map<String>
    A mapping of tags to assign to the resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the GlobalVMShutdownSchedule 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 GlobalVMShutdownSchedule Resource

    Get an existing GlobalVMShutdownSchedule 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?: GlobalVMShutdownScheduleState, opts?: CustomResourceOptions): GlobalVMShutdownSchedule
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            daily_recurrence_time: Optional[str] = None,
            enabled: Optional[bool] = None,
            location: Optional[str] = None,
            notification_settings: Optional[GlobalVMShutdownScheduleNotificationSettingsArgs] = None,
            tags: Optional[Mapping[str, str]] = None,
            timezone: Optional[str] = None,
            virtual_machine_id: Optional[str] = None) -> GlobalVMShutdownSchedule
    func GetGlobalVMShutdownSchedule(ctx *Context, name string, id IDInput, state *GlobalVMShutdownScheduleState, opts ...ResourceOption) (*GlobalVMShutdownSchedule, error)
    public static GlobalVMShutdownSchedule Get(string name, Input<string> id, GlobalVMShutdownScheduleState? state, CustomResourceOptions? opts = null)
    public static GlobalVMShutdownSchedule get(String name, Output<String> id, GlobalVMShutdownScheduleState state, CustomResourceOptions options)
    resources:  _:    type: azure:devtest:GlobalVMShutdownSchedule    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.
    The following state arguments are supported:
    DailyRecurrenceTime string
    The time each day when the schedule takes effect. Must match the format HHmm where HH is 00-23 and mm is 00-59 (e.g. 0930, 2300, etc.)
    Enabled bool
    Whether to enable the schedule. Possible values are true and false. Defaults to true.
    Location string
    The location where the schedule is created. Changing this forces a new resource to be created.
    NotificationSettings GlobalVMShutdownScheduleNotificationSettings
    Tags Dictionary<string, string>
    A mapping of tags to assign to the resource.
    Timezone string
    The time zone ID (e.g. Pacific Standard time). Refer to this guide for a full list of accepted time zone names.
    VirtualMachineId string
    The resource ID of the target ARM-based Virtual Machine. Changing this forces a new resource to be created.
    DailyRecurrenceTime string
    The time each day when the schedule takes effect. Must match the format HHmm where HH is 00-23 and mm is 00-59 (e.g. 0930, 2300, etc.)
    Enabled bool
    Whether to enable the schedule. Possible values are true and false. Defaults to true.
    Location string
    The location where the schedule is created. Changing this forces a new resource to be created.
    NotificationSettings GlobalVMShutdownScheduleNotificationSettingsArgs
    Tags map[string]string
    A mapping of tags to assign to the resource.
    Timezone string
    The time zone ID (e.g. Pacific Standard time). Refer to this guide for a full list of accepted time zone names.
    VirtualMachineId string
    The resource ID of the target ARM-based Virtual Machine. Changing this forces a new resource to be created.
    dailyRecurrenceTime String
    The time each day when the schedule takes effect. Must match the format HHmm where HH is 00-23 and mm is 00-59 (e.g. 0930, 2300, etc.)
    enabled Boolean
    Whether to enable the schedule. Possible values are true and false. Defaults to true.
    location String
    The location where the schedule is created. Changing this forces a new resource to be created.
    notificationSettings GlobalVMShutdownScheduleNotificationSettings
    tags Map<String,String>
    A mapping of tags to assign to the resource.
    timezone String
    The time zone ID (e.g. Pacific Standard time). Refer to this guide for a full list of accepted time zone names.
    virtualMachineId String
    The resource ID of the target ARM-based Virtual Machine. Changing this forces a new resource to be created.
    dailyRecurrenceTime string
    The time each day when the schedule takes effect. Must match the format HHmm where HH is 00-23 and mm is 00-59 (e.g. 0930, 2300, etc.)
    enabled boolean
    Whether to enable the schedule. Possible values are true and false. Defaults to true.
    location string
    The location where the schedule is created. Changing this forces a new resource to be created.
    notificationSettings GlobalVMShutdownScheduleNotificationSettings
    tags {[key: string]: string}
    A mapping of tags to assign to the resource.
    timezone string
    The time zone ID (e.g. Pacific Standard time). Refer to this guide for a full list of accepted time zone names.
    virtualMachineId string
    The resource ID of the target ARM-based Virtual Machine. Changing this forces a new resource to be created.
    daily_recurrence_time str
    The time each day when the schedule takes effect. Must match the format HHmm where HH is 00-23 and mm is 00-59 (e.g. 0930, 2300, etc.)
    enabled bool
    Whether to enable the schedule. Possible values are true and false. Defaults to true.
    location str
    The location where the schedule is created. Changing this forces a new resource to be created.
    notification_settings GlobalVMShutdownScheduleNotificationSettingsArgs
    tags Mapping[str, str]
    A mapping of tags to assign to the resource.
    timezone str
    The time zone ID (e.g. Pacific Standard time). Refer to this guide for a full list of accepted time zone names.
    virtual_machine_id str
    The resource ID of the target ARM-based Virtual Machine. Changing this forces a new resource to be created.
    dailyRecurrenceTime String
    The time each day when the schedule takes effect. Must match the format HHmm where HH is 00-23 and mm is 00-59 (e.g. 0930, 2300, etc.)
    enabled Boolean
    Whether to enable the schedule. Possible values are true and false. Defaults to true.
    location String
    The location where the schedule is created. Changing this forces a new resource to be created.
    notificationSettings Property Map
    tags Map<String>
    A mapping of tags to assign to the resource.
    timezone String
    The time zone ID (e.g. Pacific Standard time). Refer to this guide for a full list of accepted time zone names.
    virtualMachineId String
    The resource ID of the target ARM-based Virtual Machine. Changing this forces a new resource to be created.

    Supporting Types

    GlobalVMShutdownScheduleNotificationSettings, GlobalVMShutdownScheduleNotificationSettingsArgs

    Enabled bool
    Whether to enable pre-shutdown notifications. Possible values are true and false. Defaults to false
    Email string
    E-mail address to which the notification will be sent.
    TimeInMinutes int
    Time in minutes between 15 and 120 before a shutdown event at which a notification will be sent. Defaults to 30.
    WebhookUrl string
    The webhook URL to which the notification will be sent. Required if enabled is true. Optional otherwise.
    Enabled bool
    Whether to enable pre-shutdown notifications. Possible values are true and false. Defaults to false
    Email string
    E-mail address to which the notification will be sent.
    TimeInMinutes int
    Time in minutes between 15 and 120 before a shutdown event at which a notification will be sent. Defaults to 30.
    WebhookUrl string
    The webhook URL to which the notification will be sent. Required if enabled is true. Optional otherwise.
    enabled Boolean
    Whether to enable pre-shutdown notifications. Possible values are true and false. Defaults to false
    email String
    E-mail address to which the notification will be sent.
    timeInMinutes Integer
    Time in minutes between 15 and 120 before a shutdown event at which a notification will be sent. Defaults to 30.
    webhookUrl String
    The webhook URL to which the notification will be sent. Required if enabled is true. Optional otherwise.
    enabled boolean
    Whether to enable pre-shutdown notifications. Possible values are true and false. Defaults to false
    email string
    E-mail address to which the notification will be sent.
    timeInMinutes number
    Time in minutes between 15 and 120 before a shutdown event at which a notification will be sent. Defaults to 30.
    webhookUrl string
    The webhook URL to which the notification will be sent. Required if enabled is true. Optional otherwise.
    enabled bool
    Whether to enable pre-shutdown notifications. Possible values are true and false. Defaults to false
    email str
    E-mail address to which the notification will be sent.
    time_in_minutes int
    Time in minutes between 15 and 120 before a shutdown event at which a notification will be sent. Defaults to 30.
    webhook_url str
    The webhook URL to which the notification will be sent. Required if enabled is true. Optional otherwise.
    enabled Boolean
    Whether to enable pre-shutdown notifications. Possible values are true and false. Defaults to false
    email String
    E-mail address to which the notification will be sent.
    timeInMinutes Number
    Time in minutes between 15 and 120 before a shutdown event at which a notification will be sent. Defaults to 30.
    webhookUrl String
    The webhook URL to which the notification will be sent. Required if enabled is true. Optional otherwise.

    Import

    An existing Dev Test Global Shutdown Schedule can be imported using the resource id, e.g.

     $ pulumi import azure:devtest/globalVMShutdownSchedule:GlobalVMShutdownSchedule example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sample-rg/providers/Microsoft.DevTestLab/schedules/shutdown-computevm-SampleVM
    

    The name of the resource within the resource id will always follow the format shutdown-computevm-<VM Name> where <VM Name> is replaced by the name of the target Virtual Machine

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

    Package Details

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

    We recommend using Azure Native.

    Viewing docs for Azure v4.42.0 (Older version)
    published on Monday, Mar 9, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.