Closed SanderBlom closed 3 months ago
Det ser ut til at man kun kan opprette en Enterprise Application slik det er lagt opp nå - jeg tenker vi like gjerne kan støtte flere (hvis det er mulig).
Ser ikke ut som det er mulig å ha en-til-mange forhold mellom applikasjoner (app registrations) og service principals (enterprise applications).
Når jeg laget et map med to objecter så får jeg denne feilmeldingen:
│ Error: Could not create service principal
│
│ with module.station-applications.module.applications["maximum"].azuread_service_principal.sp["maximum"],
│ on ../application/azuread_application.tf line 126, in resource "azuread_service_principal" "sp":
│ 126: resource "azuread_service_principal" "sp" {
│
│ ServicePrincipalsClient.BaseClient.Post(): unexpected status 409 with OData error:
│ Request_MultipleObjectsWithSameKeyValue: The service principal cannot be created, updated, or restored because the
│ service principal name b1712237-5c04-4016-97bd-707613ae404e is already in use.
╵
@kimfy
Added support for optionally creating a service principal when creating an application
Description
This should give us the option to create a service principal (Enterprise application) in the
applications
blockFixes #136
Type of Change
Testing
See the testing docs for more information about how to test your code
terraform plan
,apply
, anddestroy
to validate changes.Checklist
Before submitting this PR, please ensure the following:
terraform validate
in the root module and all sub modules where I have made changesAdditional Information
Provide any additional information or context about the pull request here.
Thank you for contributing to Station!