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_servicebus_subscription: default_message_ttl not being set #1566

Closed
jadamsowers opened this issue Jul 13, 2018 · 1 comment · Fixed by #1568
Closed

azurerm_servicebus_subscription: default_message_ttl not being set #1566

jadamsowers opened this issue Jul 13, 2018 · 1 comment · Fixed by #1568

Comments

@jadamsowers
Copy link

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 v0.11.7
+ provider.azurerm v1.6.0

Affected Resource(s)

  • azurerm_servicebus_subscription

Terraform Configuration Files

resource "azurerm_servicebus_subscription" "dev-test-session-state-change-test-code-generated" {
  name                = "test-code-generated"
  resource_group_name = "${azurerm_resource_group.servicebus.name}"
  namespace_name      = "${azurerm_servicebus_namespace.servicebus.name}"
  topic_name          = "${azurerm_servicebus_topic.dev_test_session_state_change.name}"
  max_delivery_count  = 1
  default_message_ttl = "PT1H"
}

(Incidentally I got the PT1H value from setting TTL manually in the portal to 1 hour and copying the output from a terraform plan value afterward)

Expected Behavior

default_message_ttl set to 1 hour

Actual Behavior

default_message_ttl set to a ridiculously large number of days

Steps to Reproduce

  1. terraform apply

Terraform will perform the following actions:

~ azurerm_servicebus_subscription.dev-test-session-state-change-test-code-generated
default_message_ttl: "P10675199DT2H48M5.4775807S" => "PT1H"

<snip>

azurerm_servicebus_subscription.test-session-state-change-test-code-generated: Modifying... (ID: >/subscriptions/99ad76ef-6657-4056-b87f-...ange/subscriptions/test-code-generated)
default_message_ttl: "P10675199DT2H48M5.4775807S" => "PT1H"

Which looks great. However if I run terraform apply again or view the subscription in the portal, it's still set to a ludicrously high value.

Important Factoids

Note that I'm setting the same PT1H value in a servicebus topic and it's being set correctly to 1 hour.

stack72 added a commit to stack72/terraform-provider-azurerm that referenced this issue Jul 13, 2018
…e_ttl

Fixes: hashicorp#1566

This wasn't being passed to the Create func even though the user could
define it
stack72 added a commit to stack72/terraform-provider-azurerm that referenced this issue Jul 13, 2018
…e_ttl

Fixes: hashicorp#1566

This wasn't being passed to the Create func even though the user could
define it
tombuildsstuff pushed a commit that referenced this issue Jul 15, 2018
…e_ttl (#1568)

Fixes: #1566

This wasn't being passed to the Create func even though the user could
define it
@ghost
Copy link

ghost commented Mar 30, 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 👉 hashibot-feedback@hashicorp.com. Thanks!

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