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 iotcentral data plane resources #22338

Closed
1 task done
KenSpur opened this issue Jun 30, 2023 · 1 comment · Fixed by #23132
Closed
1 task done

Support for iotcentral data plane resources #22338

KenSpur opened this issue Jun 30, 2023 · 1 comment · Fixed by #23132

Comments

@KenSpur
Copy link
Contributor

KenSpur commented Jun 30, 2023

Is there an existing issue for this?

  • I have searched the existing issues

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

api ref: https://learn.microsoft.com/en-us/rest/api/iotcentral/

  • 2022-07-31dataplane
  • 2022-10-31-previewdataplane

I took the initiative to familiarize myself with Terraform provider development through this project: KenSpur/terraform-provider-azure-iot-central. It's registered as: azure-iot-central.

I'm keen on kickstarting the development process in here, and am happy to help!

New or Affected Resource(s)/Data Source(s)

  • New Data Sources
    • azurerm_iotcentral_role
data "azurerm_iotcentral_role" "example" {
  iotcentral_application_id = azurerm_iotcentral_application.example.id

  display_name = "Org Administrator"
}
  • New Resources
    • azurerm_iotcentral_organization
resource "azurerm_iotcentral_organization" "example" {
  iotcentral_application_id = azurerm_iotcentral_application.example.id

  organization_id = "example-id"
  display_name    = "Example"
}

resource "azurerm_iotcentral_organization" "example_child" {
  iotcentral_application_id = azurerm_iotcentral_application.example.id

  organization_id        = "example-child-id"
  display_name           = "Example Child"
  parent_organization_id = azurerm_iotcentral_organization.example.id
}
  • azurerm_iotcentral_user
resource "azurerm_iotcentral_user" "type_email" {
 iotcentral_application_id = azurerm_iotcentral_application.example.id
 user_id                   = "example-user-id"
 email                     = "[email protected]"

 type = "Email"

 role {
   role_id = "344138e9-8de4-4497-8c54-5237e96d6aaf"
 }
}

resource "azurerm_iotcentral_user" "type_group" {
 iotcentral_application_id = azurerm_iotcentral_application.example.id
 user_id                   = "example-user-id"
 object_id                 = azuread_group.example.object_id
 tenant_id                 = data.azurerm_client_config.current.tenant_id

 type = "Group"

 role {
   role_id = "344138e9-8de4-4497-8c54-5237e96d6aaf"
 }
}

resource "azurerm_iotcentral_user" "type_service_principal" {
 iotcentral_application_id = azurerm_iotcentral_application.example.id
 user_id                   = "example-user-id"
 object_id                 = azuread_service_principal.example.object_id
 tenant_id                 = data.azurerm_client_config.current.tenant_id

 type = "ServicePrincipal"

 role {
   role_id = "344138e9-8de4-4497-8c54-5237e96d6aaf"
 }
}
  • azurerm_iotcentral_*

Potential Terraform Configuration

No response

References

hashicorp/go-azure-sdk#527
tombuildsstuff/kermit#231
tombuildsstuff/kermit#233
tombuildsstuff/kermit#236
tombuildsstuff/kermit#237

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