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

Support for linking an IoT Hub to an existing DPS #5632

Closed
mark-greene opened this issue Feb 6, 2020 · 5 comments
Closed

Support for linking an IoT Hub to an existing DPS #5632

mark-greene opened this issue Feb 6, 2020 · 5 comments

Comments

@mark-greene
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

Description

Please add support for linking an IoT Hub to an existing DPS. Currently you can only link a hub during DPS resource creation (or updating your DPS resource creation code). I am currently having to shell out to the cli to do this (https://docs.microsoft.com/en-us/cli/azure/iot/dps/linked-hub?view=azure-cli-latest).

New or Affected Resource(s)

  • azurerm_iothub_dps_linked_hub

Potential Terraform Configuration

data "azurerm_iothub_dps" "example" {
  name                = "iot_hub_dps_test"
  resource_group_name = "iothub_dps_rg"
}

resource "azurerm_iothub_dps_linked_hub" "example"
{
  id = data.azurerm_iothub_dps.example.id

  linked_hub {
    connection_string = azurerm_iothub.example.primary_connection_string
    location          = azurerm_iothub.example.location
  }
}

References

  • #0000
@mark-greene mark-greene changed the title Support for linking an IoT hub to an existing DPS Support for linking an IoT Hub to an existing DPS Feb 6, 2020
@omeryesil
Copy link

omeryesil commented Nov 17, 2020

Any update about this ticket. I think this is an important feature to have. In our case, we have separate deployments, like common service (VNETs, Storage Accounts, etc.) deployments and application specific deployments (multiple applications). We are planning to put the DPS deployment in the common services, and IoT Hub deployments under each applications. As the common needs to run first, DPS will be created before the IoT hubs, so that can't really link IoT hub to the DPS.

@favoretti
Copy link
Collaborator

Since this issue has been reported a long time ago and relates to the version of provider we no longer support - I'm going to close it. Please open a new updated bug report on current versions of terraform and provider if this is still relevant. Thank you.

@favoretti
Copy link
Collaborator

@mark-greene I apologize, I might have been a bit too trigger-happy here. Is this still something you are missing? If so, I'll be happy to re-open this.

@mark-greene
Copy link
Author

I am still having to use a non-terraform workaround for this issue. We are currently using the latest Terraform and provider.

@github-actions
Copy link

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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 19, 2021
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