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

[WIP] New resource 'azurerm_azuread_service_principal' #1570

Closed

Conversation

tiwood
Copy link
Contributor

@tiwood tiwood commented Jul 13, 2018

This is a WIP pull request, I'll keep updating here as I'll progress.

  • New resource 'azurerm_azuread_service_principal'
  • Tests for 'azurerm_azuread_service_principal'
  • Data source for 'azurerm_azuread_service_principal'
  • Add examples
  • Add documentation

Example of the resource:

resource "azurerm_azuread_application" "my_aad_application" {
  name = "my_aad_application"
}

resource "azurerm_azuread_service_principal" "my_service_principal" {
  
  application_id = "${azurerm_azuread_application.my_aad_application.application_id}"

  access_credential {
    credential_type = "password"
    value           = "aiTkVlaAT2wWcphAA"
    start_date      = "2018-10-15T18:00:15+02:00"
    end_date        = "2019-04-15T18:00:15+02:00"
  }

  access_credential {
    credential_type = "password"
    value           = "aiTkVlanvepAT2wWcphAA"
    start_date      = "2018-10-01T18:00:15+02:00"
    end_date        = "2020-04-15T18:00:15+02:00"
  }
}

Up for discussion:

  • I still need to decide if I want to use a 'access_credential' block inside the resource, or if I should create a separate resource to create these credentials (azurerm_azuread_service_principal_access_credential). Maybe both?

    This is the initial commit for the resource provider.
@tiwood tiwood changed the title [WIP] New resource provider 'azurerm_azuread_service_principal' [WIP] New resource 'azurerm_azuread_service_principal' Jul 13, 2018
@tombuildsstuff
Copy link
Contributor

hey @tiwood

Thanks for this PR :)

Taking a look through whilst this PR is off to a good start I'm going to close it in favour of #1564 since that contains the same resources (albeit split out rather than with Passwords nested under the Service Principal resource) and is slightly further along - I hope you don't mind!

One thing that's not included in #1564 that's in this PR is the start of support for Service Principal Certificates - whilst the AzureRM Provider doesn't support authenticating using them at this time (although we plan to change that at some point there's a feature request for that here). Whilst I appreciate we're closing this PR, since you've started looking into this area would you be interested in adding support for Service Principal Certificates instead? From what I can see that'd end up being a new resource azurerm_azuread_service_principal_certificate.

Thanks!

@tiwood tiwood deleted the new_resource_aad_service_principal branch July 16, 2018 23:10
@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 👉 [email protected]. 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
Development

Successfully merging this pull request may close these issues.

2 participants