Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[azurerm_scheduler_job] setting schedule to never end #1932

Closed
hbuckle opened this issue Sep 16, 2018 · 3 comments
Closed

[azurerm_scheduler_job] setting schedule to never end #1932

hbuckle opened this issue Sep 16, 2018 · 3 comments

Comments

@hbuckle
Copy link
Contributor

hbuckle commented Sep 16, 2018

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform Version

terraform -v
Terraform v0.11.8

  • provider.azurerm v1.15.0

Affected Resource(s)

  • azurerm_scheduler_job

Terraform Configuration Files

resource "azurerm_scheduler_job" "scheduler_job_1" {
  name                = "job1"
  resource_group_name = "${azurerm_resource_group.resource_group.name}"
  job_collection_name = "${azurerm_scheduler_job_collection.scheduler_job_collection.name}"
  state               = "enabled"

  action_storage_queue = {
    storage_account_name = "${azurerm_storage_account.storage_account.name}"
    storage_queue_name   = "${azurerm_storage_queue.storage_queue.name}"
    sas_token            = "${data.azurerm_storage_account_sas.storage_account_sas.sas}"
    message              = "${base64encode(file("${path.module}/message_job1.json"))}"
  }

  recurrence {
    frequency = "Minute"
    interval  = 15
  }
}

Expected Behavior

I want to create a schedule that runs every 15 minutes and never ends

Actual Behavior

The schedule is created and but is only set to run once

Additional information

I'm not sure if this is an issue in Terraform or the SDK, but something is setting the count to 0 when the request is sent to the API:

PUT https: //management.azure.com/subscriptions/xxx/resourceGroups/schedule/providers/Microsoft.Scheduler/jobCollections/jobcollection/jobs/job1?api-version=2016-03-01 HTTP/1.1
Host: management.azure.com
User-Agent: Go/go1.10.3 (amd64-windows) go-autorest/v10.15.4 Azure-SDK-For-Go/v20.1.0 scheduler/2016-03-01;HashiCorp-Terraform-v0.11.3
Content-Length: 577
Authorization: Bearer xxx
Content-Type: application/json; charset=utf-8
Accept-Encoding: gzip

{
  "properties": {
    "startTime": "2018-01-01T09:00:00Z",
    "action": {
      "type": "StorageQueue",
      "queueMessage": {
        "storageAccount": "xxx",
        "queueName": "xxx",
        "sasToken": "xxx",
        "message": "xxx"
      },
      "retryPolicy": {
        "retryType": "None"
      }
    },
    "recurrence": {
      "frequency": "minute",
      "interval": 15,
      "count": 0
    },
    "state": "enabled"
  }
}
@tombuildsstuff
Copy link
Contributor

@katbyte would you be able to take a look into this?

@tombuildsstuff
Copy link
Contributor

hi @hbuckle

Apologies for the delayed reply to this.

Azure Scheduler is deprecated we're removing support for these resources in version 2.0 of the Azure Provider (more information can be found in #2807) - since this resource is being removed unfortunately this isn't something we're likely to fix in the Scheduler resource and as such I'm going to close this issue for the moment, however my understanding is that Azure Scheduler has been replaced by Azure Logic Apps.

Thanks!

@ghost
Copy link

ghost commented Mar 28, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks!

@ghost ghost locked and limited conversation to collaborators Mar 28, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants