Skip to content

Commit 1678795

Browse files
committed
DTOSS-13497: Put data reader back in
Remove GUIDS and instead use an Azure data reader.
1 parent c1b298c commit 1678795

9 files changed

Lines changed: 5 additions & 30 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: 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 = "14f915c3-ef0a-471b-b9bf-31187d18f8b6"

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: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,3 @@ variable "static_arc_machine_names" {
2828
type = list(string)
2929
default = []
3030
}
31-
32-
variable "screening_entra_group_id" {
33-
description = "Group ID for the environment"
34-
type = string
35-
}

infrastructure/terraform/main.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ module "arc_infra" {
1111
env_config = var.env_config
1212
resource_group_name = local.resource_group_name
1313
enable_arc_servers = var.enable_arc_servers
14-
screening_entra_group_id = var.screening_entra_group_id
1514

1615
# Create the HC for the test VM in the same run as VM creation.
1716
# The Arc data source won't see a machine registered in the same apply.

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)