Skip to content

Commit 5ce20af

Browse files
authored
Merge branch 'main' into DTOSS_Remove_per-HC_SAS_listen_keys
2 parents 55ebe46 + b28ec9f commit 5ce20af

8 files changed

Lines changed: 7 additions & 25 deletions

File tree

.gitleaksignore

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,3 @@ feafe758d7c1e85472cc81c5c275aae9ec078cef:tests/services/dicom/test_upload_proces
109109
feafe758d7c1e85472cc81c5c275aae9ec078cef:tests/services/dicom/test_upload_processor.py:ipv4:131
110110
feafe758d7c1e85472cc81c5c275aae9ec078cef:tests/services/dicom/test_upload_processor.py:ipv4:150
111111
feafe758d7c1e85472cc81c5c275aae9ec078cef:tests/services/dicom/test_upload_processor.py:ipv4:174
112-
113-
# Ignore the SCREENING_ENTRA_GROUP_ID
114-
infrastructure/environments/prod/variables.tfvars:generic-api-key:2
115-
infrastructure/environments/preprod/variables.tfvars:generic-api-key:2
116-
infrastructure/environments/dev/variables.tfvars:generic-api-key:2
117-
infrastructure/environments/review/variables.tfvars:generic-api-key:2
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
enable_gateway_test_vm = true
2-
screening_entra_group_id = "f20d9f9a-b1ac-4875-a5e1-f9dfc0307c34"
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
# All values use defaults: enable_gateway_test_vm = false, enable_arc_servers = true
2-
screening_entra_group_id = "ab8fd001-2722-4118-9659-3d4425db7894"
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
# All values use defaults: enable_gateway_test_vm = false, enable_arc_servers = true
2-
screening_entra_group_id = "3b2b22b0-ac8e-4904-a94b-9010ff08698a"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
enable_gateway_test_vm = true
22
screening_entra_group_id = "14f915c3-ef0a-471b-b9bf-31187d18f8b6"
3-
enable_relay_sas_keys = false
3+
enable_relay_sas_keys = false

infrastructure/modules/arc-infra/arc.tf

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,11 @@ data "azuread_service_principal" "arc_onboarding" {
1212
display_name = "spn-azure-arc-onboarding-screening-${var.env_config}"
1313
}
1414

15-
# Awaiting approval from Administrator team, a bit of push back with regards to giving Group.Read.All permission to the service principal, so for now we will use the group ID from the environment variable instead of looking it up by name.
1615
# Look up the Entra ID group that manages this environment
17-
# data "azuread_group" "screening" {
18-
# count = var.enable_arc_servers ? 1 : 0
19-
# display_name = "screening_${var.app_short_name}_${var.env_config}"
20-
# }
16+
data "azuread_group" "screening" {
17+
count = var.enable_arc_servers ? 1 : 0
18+
display_name = "screening_${var.app_short_name}_${var.env_config}"
19+
}
2120

2221
# Assign "Azure Connected Machine Onboarding" role to allow Arc server enrollment
2322
module "arc_onboarding_role" {
@@ -38,8 +37,5 @@ module "arc_wac_admin_login_role" {
3837

3938
scope = data.azurerm_resource_group.arc_enabled_servers[0].id
4039
role_definition_name = "Windows Admin Center Administrator Login"
41-
# Awaiting approval from Administrator team, a bit of push back with regards to giving Group.Read.All permission to the service principal, so for now we will use the group ID from the environment variable instead of looking it up by name.
42-
# principal_id = data.azuread_group.screening[0].object_id
43-
principal_id = var.screening_entra_group_id
44-
40+
principal_id = data.azuread_group.screening[0].object_id
4541
}

infrastructure/modules/arc-infra/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@ variable "screening_entra_group_id" {
3737
variable "enable_relay_sas_keys" {
3838
description = "Whether to create relay SAS keys for the Arc machines. Only used in the review environment."
3939
type = bool
40-
}
40+
}

infrastructure/terraform/variables.tf

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,6 @@ variable "bastion_sku" {
4444
default = "Standard"
4545
}
4646

47-
variable "screening_entra_group_id" {
48-
description = "Group ID for the environment"
49-
type = string
50-
}
51-
5247
variable "gateway_test_vm_size" {
5348
description = "SKU size for the gateway test VM"
5449
type = string

0 commit comments

Comments
 (0)