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_notification_hub' can't find hub_namespace sometimes in serial creation. #1822

Closed
lrxtom2 opened this issue Aug 24, 2018 · 1 comment · Fixed by #2701
Closed

'azurerm_notification_hub' can't find hub_namespace sometimes in serial creation. #1822

lrxtom2 opened this issue Aug 24, 2018 · 1 comment · Fixed by #2701

Comments

@lrxtom2
Copy link
Contributor

lrxtom2 commented Aug 24, 2018

Hi team,
Here is a issue that serial create notification_hub_namespace and hub failed.
It might because namespace created but not returned in time so hub can't found namespace_name sometimes in creation.

Message Log:
go test -v ./azurerm -run TestAccAzureRMNotificationHub_basic
=== RUN TestAccAzureRMNotificationHub_basic
--- FAIL: TestAccAzureRMNotificationHub_basic (76.72s)
testing.go:513: Step 0 error: Error applying: 1 error(s) occurred:

 * azurerm_notification_hub.test: 1 error(s) occurred:
 * azurerm_notification_hub.test: Error creating Notification Hub "acctestnh-7911211128379682032" (Namespace "acctestnhn-7911211128379682032" / Resource Group "acctestrgpol-7911211128379682032"): notificationhubs.Client#CreateOrUpdate: Failure responding to request: StatusCode=404 -- Original Error: autorest/azure: Service returned an error. Status=404 Code="NotFound" Message="Not Found"
resource "azurerm_resource_group" "test" {
  name = "acctestrg-10101"
  location = "westeurope"
}

resource "azurerm_notification_hub_namespace" "test" {
  name                = "acctestnhn-10101"
  resource_group_name = "${azurerm_resource_group.test.name}"
  location            = "${azurerm_resource_group.test.location}"
  namespace_type      = "NotificationHub"

  sku {
    name = "Free"
  }
}

resource "azurerm_notification_hub" "test" {
  name                = "acctestnh-10101"
  namespace_name      = "${azurerm_notification_hub_namespace.test.name}" 
  resource_group_name = "${azurerm_resource_group.test.name}"
  location            = "${azurerm_resource_group.test.location}"
}

Thanks,
Chang

@ghost
Copy link

ghost commented Mar 5, 2019

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 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
3 participants