azurerm_scheduler_job_collection

Create an Scheduler Job Collection.

Example Usage

resource "azurerm_resource_group" "rg" {
  name     = "tfex-job_collection"
  location = "West US"
}

resource "azurerm_scheduler_job_collection" "jobs" {
    name                = "example_job_collection"
    location            = "${azurerm_resource_group.rg.location}"
    resource_group_name = "${azurerm_resource_group.rg.name}"
    sku                 = "free"
    state               = "enabled"

    quota {
        max_job_count            = 5
        max_recurrence_interval  = 24
        max_recurrence_frequency = "hour"
    }
}

Argument Reference

The following arguments are supported:

  • name - (Required) Specifies the name of the Scheduler Job Collection. Changing this forces a new resource to be created.

  • resource_group_name - (Required) The name of the resource group in which to create the Scheduler Job Collection. Changing this forces a new resource to be created.

  • location - (Required) Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

  • tags - (Optional) A mapping of tags to assign to the resource.

  • sku - (Required) Sets the Job Collection's pricing level's SKU. Possible values include: Standard, Free, P10Premium, P20Premium.

  • state - (Optional) Sets Job Collection's state. Possible values include: Enabled, Disabled, Suspended.

  • quota - (Optional) Configures the Job collection quotas as documented in the quota block below.

The quota block supports:

Attributes Reference

The following attributes are exported:

  • id - The ID of the Scheduler Job Collection.

Import

Scheduler Job Collections can be imported using the resource id, e.g.

terraform import azurerm_scheduler_job_collection.jobcollection1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Scheduler/jobCollections/jobcollection1

© 2018 HashiCorp
Licensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/azurerm/r/scheduler_job_collection.html