Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions .gitleaksignore
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,3 @@ feafe758d7c1e85472cc81c5c275aae9ec078cef:tests/services/dicom/test_upload_proces
feafe758d7c1e85472cc81c5c275aae9ec078cef:tests/services/dicom/test_upload_processor.py:ipv4:131
feafe758d7c1e85472cc81c5c275aae9ec078cef:tests/services/dicom/test_upload_processor.py:ipv4:150
feafe758d7c1e85472cc81c5c275aae9ec078cef:tests/services/dicom/test_upload_processor.py:ipv4:174

# Ignore the SCREENING_ENTRA_GROUP_ID
infrastructure/environments/prod/variables.tfvars:generic-api-key:2
infrastructure/environments/preprod/variables.tfvars:generic-api-key:2
infrastructure/environments/dev/variables.tfvars:generic-api-key:2
infrastructure/environments/review/variables.tfvars:generic-api-key:2
1 change: 0 additions & 1 deletion infrastructure/environments/dev/variables.tfvars
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
enable_gateway_test_vm = true
screening_entra_group_id = "f20d9f9a-b1ac-4875-a5e1-f9dfc0307c34"
1 change: 0 additions & 1 deletion infrastructure/environments/preprod/variables.tfvars
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
# All values use defaults: enable_gateway_test_vm = false, enable_arc_servers = true
screening_entra_group_id = "ab8fd001-2722-4118-9659-3d4425db7894"
1 change: 0 additions & 1 deletion infrastructure/environments/prod/variables.tfvars
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
# All values use defaults: enable_gateway_test_vm = false, enable_arc_servers = true
screening_entra_group_id = "3b2b22b0-ac8e-4904-a94b-9010ff08698a"
1 change: 0 additions & 1 deletion infrastructure/environments/review/variables.tfvars
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
enable_gateway_test_vm = true
screening_entra_group_id = "14f915c3-ef0a-471b-b9bf-31187d18f8b6"
14 changes: 5 additions & 9 deletions infrastructure/modules/arc-infra/arc.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,11 @@ data "azuread_service_principal" "arc_onboarding" {
display_name = "spn-azure-arc-onboarding-screening-${var.env_config}"
}

# 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.
# Look up the Entra ID group that manages this environment
# data "azuread_group" "screening" {
# count = var.enable_arc_servers ? 1 : 0
# display_name = "screening_${var.app_short_name}_${var.env_config}"
# }
data "azuread_group" "screening" {
count = var.enable_arc_servers ? 1 : 0
display_name = "screening_${var.app_short_name}_${var.env_config}"
}

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

scope = data.azurerm_resource_group.arc_enabled_servers[0].id
role_definition_name = "Windows Admin Center Administrator Login"
# 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.
# principal_id = data.azuread_group.screening[0].object_id
principal_id = var.screening_entra_group_id

principal_id = data.azuread_group.screening[0].object_id
}
5 changes: 0 additions & 5 deletions infrastructure/modules/arc-infra/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,3 @@ variable "static_arc_machine_names" {
type = list(string)
default = []
}

variable "screening_entra_group_id" {
description = "Group ID for the environment"
type = string
}
1 change: 0 additions & 1 deletion infrastructure/terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ module "arc_infra" {
env_config = var.env_config
resource_group_name = local.resource_group_name
enable_arc_servers = var.enable_arc_servers
screening_entra_group_id = var.screening_entra_group_id

# Create the HC for the test VM in the same run as VM creation.
# The Arc data source won't see a machine registered in the same apply.
Expand Down
5 changes: 0 additions & 5 deletions infrastructure/terraform/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,6 @@ variable "bastion_sku" {
default = "Standard"
}

variable "screening_entra_group_id" {
description = "Group ID for the environment"
type = string
}

variable "gateway_test_vm_size" {
description = "SKU size for the gateway test VM"
type = string
Expand Down
Loading