1. Packages
  2. Azure Classic
  3. API Docs
  4. mssql
  5. JobSchedule

We recommend using Azure Native.

Azure v6.22.0 published on Tuesday, Apr 1, 2025 by Pulumi

azure.mssql.JobSchedule

Explore with Pulumi AI

Manages an Elastic Job Schedule.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";

const example = new azure.core.ResourceGroup("example", {
    name: "example-resource-group",
    location: "East US",
});
const exampleServer = new azure.mssql.Server("example", {
    name: "example-server",
    resourceGroupName: example.name,
    location: example.location,
    version: "12.0",
    administratorLogin: "4dm1n157r470r",
    administratorLoginPassword: "4-v3ry-53cr37-p455w0rd",
});
const exampleDatabase = new azure.mssql.Database("example", {
    name: "example-db",
    serverId: exampleServer.id,
    collation: "SQL_Latin1_General_CP1_CI_AS",
    skuName: "S1",
});
const exampleJobAgent = new azure.mssql.JobAgent("example", {
    name: "example-job-agent",
    location: example.location,
    databaseId: exampleDatabase.id,
});
const exampleJobCredential = new azure.mssql.JobCredential("example", {
    name: "example-job-credential",
    jobAgentId: exampleJobAgent.id,
    username: "my-username",
    password: "MyP4ssw0rd!!!",
});
const exampleJob = new azure.mssql.Job("example", {
    name: "example-job",
    jobAgentId: exampleJobAgent.id,
});
const exampleJobSchedule = new azure.mssql.JobSchedule("example", {
    jobId: exampleJob.id,
    type: "Recurring",
    enabled: true,
    endTime: "2025-12-01T00:00:00Z",
    interval: "PT5M",
    startTime: "2025-01-01T00:00:00Z",
});
Copy
import pulumi
import pulumi_azure as azure

example = azure.core.ResourceGroup("example",
    name="example-resource-group",
    location="East US")
example_server = azure.mssql.Server("example",
    name="example-server",
    resource_group_name=example.name,
    location=example.location,
    version="12.0",
    administrator_login="4dm1n157r470r",
    administrator_login_password="4-v3ry-53cr37-p455w0rd")
example_database = azure.mssql.Database("example",
    name="example-db",
    server_id=example_server.id,
    collation="SQL_Latin1_General_CP1_CI_AS",
    sku_name="S1")
example_job_agent = azure.mssql.JobAgent("example",
    name="example-job-agent",
    location=example.location,
    database_id=example_database.id)
example_job_credential = azure.mssql.JobCredential("example",
    name="example-job-credential",
    job_agent_id=example_job_agent.id,
    username="my-username",
    password="MyP4ssw0rd!!!")
example_job = azure.mssql.Job("example",
    name="example-job",
    job_agent_id=example_job_agent.id)
example_job_schedule = azure.mssql.JobSchedule("example",
    job_id=example_job.id,
    type="Recurring",
    enabled=True,
    end_time="2025-12-01T00:00:00Z",
    interval="PT5M",
    start_time="2025-01-01T00:00:00Z")
Copy
package main

import (
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/mssql"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
			Name:     pulumi.String("example-resource-group"),
			Location: pulumi.String("East US"),
		})
		if err != nil {
			return err
		}
		exampleServer, err := mssql.NewServer(ctx, "example", &mssql.ServerArgs{
			Name:                       pulumi.String("example-server"),
			ResourceGroupName:          example.Name,
			Location:                   example.Location,
			Version:                    pulumi.String("12.0"),
			AdministratorLogin:         pulumi.String("4dm1n157r470r"),
			AdministratorLoginPassword: pulumi.String("4-v3ry-53cr37-p455w0rd"),
		})
		if err != nil {
			return err
		}
		exampleDatabase, err := mssql.NewDatabase(ctx, "example", &mssql.DatabaseArgs{
			Name:      pulumi.String("example-db"),
			ServerId:  exampleServer.ID(),
			Collation: pulumi.String("SQL_Latin1_General_CP1_CI_AS"),
			SkuName:   pulumi.String("S1"),
		})
		if err != nil {
			return err
		}
		exampleJobAgent, err := mssql.NewJobAgent(ctx, "example", &mssql.JobAgentArgs{
			Name:       pulumi.String("example-job-agent"),
			Location:   example.Location,
			DatabaseId: exampleDatabase.ID(),
		})
		if err != nil {
			return err
		}
		_, err = mssql.NewJobCredential(ctx, "example", &mssql.JobCredentialArgs{
			Name:       pulumi.String("example-job-credential"),
			JobAgentId: exampleJobAgent.ID(),
			Username:   pulumi.String("my-username"),
			Password:   pulumi.String("MyP4ssw0rd!!!"),
		})
		if err != nil {
			return err
		}
		exampleJob, err := mssql.NewJob(ctx, "example", &mssql.JobArgs{
			Name:       pulumi.String("example-job"),
			JobAgentId: exampleJobAgent.ID(),
		})
		if err != nil {
			return err
		}
		_, err = mssql.NewJobSchedule(ctx, "example", &mssql.JobScheduleArgs{
			JobId:     exampleJob.ID(),
			Type:      pulumi.String("Recurring"),
			Enabled:   pulumi.Bool(true),
			EndTime:   pulumi.String("2025-12-01T00:00:00Z"),
			Interval:  pulumi.String("PT5M"),
			StartTime: pulumi.String("2025-01-01T00:00:00Z"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;

return await Deployment.RunAsync(() => 
{
    var example = new Azure.Core.ResourceGroup("example", new()
    {
        Name = "example-resource-group",
        Location = "East US",
    });

    var exampleServer = new Azure.MSSql.Server("example", new()
    {
        Name = "example-server",
        ResourceGroupName = example.Name,
        Location = example.Location,
        Version = "12.0",
        AdministratorLogin = "4dm1n157r470r",
        AdministratorLoginPassword = "4-v3ry-53cr37-p455w0rd",
    });

    var exampleDatabase = new Azure.MSSql.Database("example", new()
    {
        Name = "example-db",
        ServerId = exampleServer.Id,
        Collation = "SQL_Latin1_General_CP1_CI_AS",
        SkuName = "S1",
    });

    var exampleJobAgent = new Azure.MSSql.JobAgent("example", new()
    {
        Name = "example-job-agent",
        Location = example.Location,
        DatabaseId = exampleDatabase.Id,
    });

    var exampleJobCredential = new Azure.MSSql.JobCredential("example", new()
    {
        Name = "example-job-credential",
        JobAgentId = exampleJobAgent.Id,
        Username = "my-username",
        Password = "MyP4ssw0rd!!!",
    });

    var exampleJob = new Azure.MSSql.Job("example", new()
    {
        Name = "example-job",
        JobAgentId = exampleJobAgent.Id,
    });

    var exampleJobSchedule = new Azure.MSSql.JobSchedule("example", new()
    {
        JobId = exampleJob.Id,
        Type = "Recurring",
        Enabled = true,
        EndTime = "2025-12-01T00:00:00Z",
        Interval = "PT5M",
        StartTime = "2025-01-01T00:00:00Z",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.mssql.Server;
import com.pulumi.azure.mssql.ServerArgs;
import com.pulumi.azure.mssql.Database;
import com.pulumi.azure.mssql.DatabaseArgs;
import com.pulumi.azure.mssql.JobAgent;
import com.pulumi.azure.mssql.JobAgentArgs;
import com.pulumi.azure.mssql.JobCredential;
import com.pulumi.azure.mssql.JobCredentialArgs;
import com.pulumi.azure.mssql.Job;
import com.pulumi.azure.mssql.JobArgs;
import com.pulumi.azure.mssql.JobSchedule;
import com.pulumi.azure.mssql.JobScheduleArgs;
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 ResourceGroup("example", ResourceGroupArgs.builder()
            .name("example-resource-group")
            .location("East US")
            .build());

        var exampleServer = new Server("exampleServer", ServerArgs.builder()
            .name("example-server")
            .resourceGroupName(example.name())
            .location(example.location())
            .version("12.0")
            .administratorLogin("4dm1n157r470r")
            .administratorLoginPassword("4-v3ry-53cr37-p455w0rd")
            .build());

        var exampleDatabase = new Database("exampleDatabase", DatabaseArgs.builder()
            .name("example-db")
            .serverId(exampleServer.id())
            .collation("SQL_Latin1_General_CP1_CI_AS")
            .skuName("S1")
            .build());

        var exampleJobAgent = new JobAgent("exampleJobAgent", JobAgentArgs.builder()
            .name("example-job-agent")
            .location(example.location())
            .databaseId(exampleDatabase.id())
            .build());

        var exampleJobCredential = new JobCredential("exampleJobCredential", JobCredentialArgs.builder()
            .name("example-job-credential")
            .jobAgentId(exampleJobAgent.id())
            .username("my-username")
            .password("MyP4ssw0rd!!!")
            .build());

        var exampleJob = new Job("exampleJob", JobArgs.builder()
            .name("example-job")
            .jobAgentId(exampleJobAgent.id())
            .build());

        var exampleJobSchedule = new JobSchedule("exampleJobSchedule", JobScheduleArgs.builder()
            .jobId(exampleJob.id())
            .type("Recurring")
            .enabled(true)
            .endTime("2025-12-01T00:00:00Z")
            .interval("PT5M")
            .startTime("2025-01-01T00:00:00Z")
            .build());

    }
}
Copy
resources:
  example:
    type: azure:core:ResourceGroup
    properties:
      name: example-resource-group
      location: East US
  exampleServer:
    type: azure:mssql:Server
    name: example
    properties:
      name: example-server
      resourceGroupName: ${example.name}
      location: ${example.location}
      version: '12.0'
      administratorLogin: 4dm1n157r470r
      administratorLoginPassword: 4-v3ry-53cr37-p455w0rd
  exampleDatabase:
    type: azure:mssql:Database
    name: example
    properties:
      name: example-db
      serverId: ${exampleServer.id}
      collation: SQL_Latin1_General_CP1_CI_AS
      skuName: S1
  exampleJobAgent:
    type: azure:mssql:JobAgent
    name: example
    properties:
      name: example-job-agent
      location: ${example.location}
      databaseId: ${exampleDatabase.id}
  exampleJobCredential:
    type: azure:mssql:JobCredential
    name: example
    properties:
      name: example-job-credential
      jobAgentId: ${exampleJobAgent.id}
      username: my-username
      password: MyP4ssw0rd!!!
  exampleJob:
    type: azure:mssql:Job
    name: example
    properties:
      name: example-job
      jobAgentId: ${exampleJobAgent.id}
  exampleJobSchedule:
    type: azure:mssql:JobSchedule
    name: example
    properties:
      jobId: ${exampleJob.id}
      type: Recurring
      enabled: true
      endTime: 2025-12-01T00:00:00Z
      interval: PT5M
      startTime: 2025-01-01T00:00:00Z
Copy

Create JobSchedule Resource

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

Constructor syntax

new JobSchedule(name: string, args: JobScheduleArgs, opts?: CustomResourceOptions);
@overload
def JobSchedule(resource_name: str,
                args: JobScheduleArgs,
                opts: Optional[ResourceOptions] = None)

@overload
def JobSchedule(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                job_id: Optional[str] = None,
                type: Optional[str] = None,
                enabled: Optional[bool] = None,
                end_time: Optional[str] = None,
                interval: Optional[str] = None,
                start_time: Optional[str] = None)
func NewJobSchedule(ctx *Context, name string, args JobScheduleArgs, opts ...ResourceOption) (*JobSchedule, error)
public JobSchedule(string name, JobScheduleArgs args, CustomResourceOptions? opts = null)
public JobSchedule(String name, JobScheduleArgs args)
public JobSchedule(String name, JobScheduleArgs args, CustomResourceOptions options)
type: azure:mssql:JobSchedule
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. JobScheduleArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. JobScheduleArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. JobScheduleArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. JobScheduleArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. JobScheduleArgs
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 azureJobScheduleResource = new Azure.MSSql.JobSchedule("azureJobScheduleResource", new()
{
    JobId = "string",
    Type = "string",
    Enabled = false,
    EndTime = "string",
    Interval = "string",
    StartTime = "string",
});
Copy
example, err := mssql.NewJobSchedule(ctx, "azureJobScheduleResource", &mssql.JobScheduleArgs{
	JobId:     pulumi.String("string"),
	Type:      pulumi.String("string"),
	Enabled:   pulumi.Bool(false),
	EndTime:   pulumi.String("string"),
	Interval:  pulumi.String("string"),
	StartTime: pulumi.String("string"),
})
Copy
var azureJobScheduleResource = new com.pulumi.azure.mssql.JobSchedule("azureJobScheduleResource", com.pulumi.azure.mssql.JobScheduleArgs.builder()
    .jobId("string")
    .type("string")
    .enabled(false)
    .endTime("string")
    .interval("string")
    .startTime("string")
    .build());
Copy
azure_job_schedule_resource = azure.mssql.JobSchedule("azureJobScheduleResource",
    job_id="string",
    type="string",
    enabled=False,
    end_time="string",
    interval="string",
    start_time="string")
Copy
const azureJobScheduleResource = new azure.mssql.JobSchedule("azureJobScheduleResource", {
    jobId: "string",
    type: "string",
    enabled: false,
    endTime: "string",
    interval: "string",
    startTime: "string",
});
Copy
type: azure:mssql:JobSchedule
properties:
    enabled: false
    endTime: string
    interval: string
    jobId: string
    startTime: string
    type: string
Copy

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

JobId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the Elastic Job. Changing this forces a new Elastic Job Schedule to be created.
Type This property is required. string
The type of schedule. Possible values are Once and Recurring.
Enabled bool

Should the Elastic Job Schedule be enabled? Defaults to false.

Note: When type is set to Once and enabled is set to true, it's recommended to add enabled to ignore_changes. This is because Azure will set enabled to false once the job has executed.

EndTime string
The end time of the schedule. Must be in RFC3339 format.
Interval string
The interval between job executions. Must be in ISO8601 duration format.
StartTime string
The start time of the schedule. Must be in RFC3339 format.
JobId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the Elastic Job. Changing this forces a new Elastic Job Schedule to be created.
Type This property is required. string
The type of schedule. Possible values are Once and Recurring.
Enabled bool

Should the Elastic Job Schedule be enabled? Defaults to false.

Note: When type is set to Once and enabled is set to true, it's recommended to add enabled to ignore_changes. This is because Azure will set enabled to false once the job has executed.

EndTime string
The end time of the schedule. Must be in RFC3339 format.
Interval string
The interval between job executions. Must be in ISO8601 duration format.
StartTime string
The start time of the schedule. Must be in RFC3339 format.
jobId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the Elastic Job. Changing this forces a new Elastic Job Schedule to be created.
type This property is required. String
The type of schedule. Possible values are Once and Recurring.
enabled Boolean

Should the Elastic Job Schedule be enabled? Defaults to false.

Note: When type is set to Once and enabled is set to true, it's recommended to add enabled to ignore_changes. This is because Azure will set enabled to false once the job has executed.

endTime String
The end time of the schedule. Must be in RFC3339 format.
interval String
The interval between job executions. Must be in ISO8601 duration format.
startTime String
The start time of the schedule. Must be in RFC3339 format.
jobId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the Elastic Job. Changing this forces a new Elastic Job Schedule to be created.
type This property is required. string
The type of schedule. Possible values are Once and Recurring.
enabled boolean

Should the Elastic Job Schedule be enabled? Defaults to false.

Note: When type is set to Once and enabled is set to true, it's recommended to add enabled to ignore_changes. This is because Azure will set enabled to false once the job has executed.

endTime string
The end time of the schedule. Must be in RFC3339 format.
interval string
The interval between job executions. Must be in ISO8601 duration format.
startTime string
The start time of the schedule. Must be in RFC3339 format.
job_id
This property is required.
Changes to this property will trigger replacement.
str
The ID of the Elastic Job. Changing this forces a new Elastic Job Schedule to be created.
type This property is required. str
The type of schedule. Possible values are Once and Recurring.
enabled bool

Should the Elastic Job Schedule be enabled? Defaults to false.

Note: When type is set to Once and enabled is set to true, it's recommended to add enabled to ignore_changes. This is because Azure will set enabled to false once the job has executed.

end_time str
The end time of the schedule. Must be in RFC3339 format.
interval str
The interval between job executions. Must be in ISO8601 duration format.
start_time str
The start time of the schedule. Must be in RFC3339 format.
jobId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the Elastic Job. Changing this forces a new Elastic Job Schedule to be created.
type This property is required. String
The type of schedule. Possible values are Once and Recurring.
enabled Boolean

Should the Elastic Job Schedule be enabled? Defaults to false.

Note: When type is set to Once and enabled is set to true, it's recommended to add enabled to ignore_changes. This is because Azure will set enabled to false once the job has executed.

endTime String
The end time of the schedule. Must be in RFC3339 format.
interval String
The interval between job executions. Must be in ISO8601 duration format.
startTime String
The start time of the schedule. Must be in RFC3339 format.

Outputs

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

Get an existing JobSchedule 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?: JobScheduleState, opts?: CustomResourceOptions): JobSchedule
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        enabled: Optional[bool] = None,
        end_time: Optional[str] = None,
        interval: Optional[str] = None,
        job_id: Optional[str] = None,
        start_time: Optional[str] = None,
        type: Optional[str] = None) -> JobSchedule
func GetJobSchedule(ctx *Context, name string, id IDInput, state *JobScheduleState, opts ...ResourceOption) (*JobSchedule, error)
public static JobSchedule Get(string name, Input<string> id, JobScheduleState? state, CustomResourceOptions? opts = null)
public static JobSchedule get(String name, Output<String> id, JobScheduleState state, CustomResourceOptions options)
resources:  _:    type: azure:mssql:JobSchedule    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
Enabled bool

Should the Elastic Job Schedule be enabled? Defaults to false.

Note: When type is set to Once and enabled is set to true, it's recommended to add enabled to ignore_changes. This is because Azure will set enabled to false once the job has executed.

EndTime string
The end time of the schedule. Must be in RFC3339 format.
Interval string
The interval between job executions. Must be in ISO8601 duration format.
JobId Changes to this property will trigger replacement. string
The ID of the Elastic Job. Changing this forces a new Elastic Job Schedule to be created.
StartTime string
The start time of the schedule. Must be in RFC3339 format.
Type string
The type of schedule. Possible values are Once and Recurring.
Enabled bool

Should the Elastic Job Schedule be enabled? Defaults to false.

Note: When type is set to Once and enabled is set to true, it's recommended to add enabled to ignore_changes. This is because Azure will set enabled to false once the job has executed.

EndTime string
The end time of the schedule. Must be in RFC3339 format.
Interval string
The interval between job executions. Must be in ISO8601 duration format.
JobId Changes to this property will trigger replacement. string
The ID of the Elastic Job. Changing this forces a new Elastic Job Schedule to be created.
StartTime string
The start time of the schedule. Must be in RFC3339 format.
Type string
The type of schedule. Possible values are Once and Recurring.
enabled Boolean

Should the Elastic Job Schedule be enabled? Defaults to false.

Note: When type is set to Once and enabled is set to true, it's recommended to add enabled to ignore_changes. This is because Azure will set enabled to false once the job has executed.

endTime String
The end time of the schedule. Must be in RFC3339 format.
interval String
The interval between job executions. Must be in ISO8601 duration format.
jobId Changes to this property will trigger replacement. String
The ID of the Elastic Job. Changing this forces a new Elastic Job Schedule to be created.
startTime String
The start time of the schedule. Must be in RFC3339 format.
type String
The type of schedule. Possible values are Once and Recurring.
enabled boolean

Should the Elastic Job Schedule be enabled? Defaults to false.

Note: When type is set to Once and enabled is set to true, it's recommended to add enabled to ignore_changes. This is because Azure will set enabled to false once the job has executed.

endTime string
The end time of the schedule. Must be in RFC3339 format.
interval string
The interval between job executions. Must be in ISO8601 duration format.
jobId Changes to this property will trigger replacement. string
The ID of the Elastic Job. Changing this forces a new Elastic Job Schedule to be created.
startTime string
The start time of the schedule. Must be in RFC3339 format.
type string
The type of schedule. Possible values are Once and Recurring.
enabled bool

Should the Elastic Job Schedule be enabled? Defaults to false.

Note: When type is set to Once and enabled is set to true, it's recommended to add enabled to ignore_changes. This is because Azure will set enabled to false once the job has executed.

end_time str
The end time of the schedule. Must be in RFC3339 format.
interval str
The interval between job executions. Must be in ISO8601 duration format.
job_id Changes to this property will trigger replacement. str
The ID of the Elastic Job. Changing this forces a new Elastic Job Schedule to be created.
start_time str
The start time of the schedule. Must be in RFC3339 format.
type str
The type of schedule. Possible values are Once and Recurring.
enabled Boolean

Should the Elastic Job Schedule be enabled? Defaults to false.

Note: When type is set to Once and enabled is set to true, it's recommended to add enabled to ignore_changes. This is because Azure will set enabled to false once the job has executed.

endTime String
The end time of the schedule. Must be in RFC3339 format.
interval String
The interval between job executions. Must be in ISO8601 duration format.
jobId Changes to this property will trigger replacement. String
The ID of the Elastic Job. Changing this forces a new Elastic Job Schedule to be created.
startTime String
The start time of the schedule. Must be in RFC3339 format.
type String
The type of schedule. Possible values are Once and Recurring.

Import

Elastic Job Schedules can be imported using the resource id, e.g.

$ pulumi import azure:mssql/jobSchedule:JobSchedule example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Sql/servers/myserver1/jobAgents/myjobagent1/jobs/myjob1
Copy

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.