Skip to content

Commit f90627e

Browse files
committed
fix(m365): fix detection of usgov location
1 parent 8e20213 commit f90627e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

m365/terraform/modules/app/app_create.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
locals {
2-
is_us_gov = contains(split(" ", var.location), "USGov")
2+
is_us_gov = startswith(lower(var.location), "usgov")
33
}
44

55
data "azuread_application_published_app_ids" "well_known" {}

m365/terraform/modules/container/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
data "azurerm_client_config" "current" {}
22

33
locals {
4-
is_us_gov = contains(split(" ", var.resource_group.location), "USGov")
4+
is_us_gov = startswith(lower(var.resource_group.location), "usgov")
55
aad_endpoint = local.is_us_gov ? "https://login.microsoftonline.us" : "https://login.microsoftonline.com"
66
}
77

0 commit comments

Comments
 (0)