Skip to content

Commit dadbaa3

Browse files
only add enterprise_agreement tag to SP if using Enrollment Agreement. If using Customer Agreement, do not apply tag
1 parent 3fe3f1b commit dadbaa3

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

main.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ module "replicator_service_principal" {
2525

2626
additional_required_resource_accesses = var.additional_required_resource_accesses
2727
additional_permissions = var.additional_permissions
28+
29+
enterprise_agreement = var.enterprise_agreement
2830
}
2931

3032
module "kraken_service_principal" {

modules/meshcloud-replicator-service-principal/module.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ resource "azuread_service_principal" "meshcloud_replicator" {
124124
# The following tags are needed to create an Enterprise Application
125125
# See https://github.com/hashicorp/terraform-provider-azuread/issues/7#issuecomment-529597534
126126
tags = [
127-
"WindowsAzureActiveDirectoryIntegratedApp",
127+
var.enterprise_agreement ? "WindowsAzureActiveDirectoryIntegratedApp" : null, # only apply tag if using Enterprise Agreement. MCA does't require this tag
128128
]
129129
}
130130

0 commit comments

Comments
 (0)