diff --git a/templates/workspace_services/azureml/terraform/locals.tf b/templates/workspace_services/azureml/terraform/locals.tf index ac11d6c921..a7c88d0239 100644 --- a/templates/workspace_services/azureml/terraform/locals.tf +++ b/templates/workspace_services/azureml/terraform/locals.tf @@ -13,5 +13,6 @@ locals { tre_id = var.tre_id tre_workspace_id = var.workspace_id tre_workspace_service_id = var.tre_resource_id + workspace = "${data.azurerm_resource_group.ws.tags["workspace"]}" } } diff --git a/templates/workspace_services/azureml/user_resources/aml_compute/terraform/locals.tf b/templates/workspace_services/azureml/user_resources/aml_compute/terraform/locals.tf index 805588a862..27acee6654 100644 --- a/templates/workspace_services/azureml/user_resources/aml_compute/terraform/locals.tf +++ b/templates/workspace_services/azureml/user_resources/aml_compute/terraform/locals.tf @@ -12,5 +12,6 @@ locals { tre_workspace_id = var.workspace_id tre_workspace_service_id = var.parent_service_id tre_user_resource_id = var.tre_resource_id + workspace = "${data.azurerm_resource_group.ws.tags["workspace"]}" } } diff --git a/templates/workspace_services/azuresql/terraform/locals.tf b/templates/workspace_services/azuresql/terraform/locals.tf index 4c3750fcf5..75c07bae5d 100644 --- a/templates/workspace_services/azuresql/terraform/locals.tf +++ b/templates/workspace_services/azuresql/terraform/locals.tf @@ -31,5 +31,6 @@ locals { tre_id = var.tre_id tre_workspace_id = var.workspace_id tre_workspace_service_id = var.tre_resource_id + workspace = "${data.azurerm_resource_group.ws.tags["workspace"]}" } } diff --git a/templates/workspace_services/databricks/terraform/locals.tf b/templates/workspace_services/databricks/terraform/locals.tf index c78b9898e9..9e9fa82118 100644 --- a/templates/workspace_services/databricks/terraform/locals.tf +++ b/templates/workspace_services/databricks/terraform/locals.tf @@ -24,5 +24,6 @@ locals { tre_id = var.tre_id tre_workspace_id = var.workspace_id tre_workspace_service_id = var.tre_resource_id + workspace = "${data.azurerm_resource_group.ws.tags["workspace"]}" } } diff --git a/templates/workspace_services/gitea/terraform/locals.tf b/templates/workspace_services/gitea/terraform/locals.tf index 665181c21e..197af7a6fe 100644 --- a/templates/workspace_services/gitea/terraform/locals.tf +++ b/templates/workspace_services/gitea/terraform/locals.tf @@ -17,6 +17,7 @@ locals { tre_id = var.tre_id tre_workspace_id = var.workspace_id tre_workspace_service_id = var.id + workspace = "${data.azurerm_resource_group.ws.tags["workspace"]}" } web_app_diagnostic_categories_enabled = [ "AppServiceHTTPLogs", "AppServiceConsoleLogs", "AppServiceAppLogs", diff --git a/templates/workspace_services/guacamole/terraform/locals.tf b/templates/workspace_services/guacamole/terraform/locals.tf index 94fb2d5adf..73c903db93 100644 --- a/templates/workspace_services/guacamole/terraform/locals.tf +++ b/templates/workspace_services/guacamole/terraform/locals.tf @@ -18,6 +18,7 @@ locals { tre_id = var.tre_id tre_workspace_id = var.workspace_id tre_workspace_service_id = var.tre_resource_id + workspace = "${data.azurerm_resource_group.ws.tags["workspace"]}" } guacamole_diagnostic_categories_enabled = [ "AppServiceHTTPLogs", "AppServiceConsoleLogs", "AppServiceAppLogs", diff --git a/templates/workspace_services/guacamole/user_resources/guacamole-azure-export-reviewvm/terraform/locals.tf b/templates/workspace_services/guacamole/user_resources/guacamole-azure-export-reviewvm/terraform/locals.tf index 508f1083c2..0d4ca43dc6 100644 --- a/templates/workspace_services/guacamole/user_resources/guacamole-azure-export-reviewvm/terraform/locals.tf +++ b/templates/workspace_services/guacamole/user_resources/guacamole-azure-export-reviewvm/terraform/locals.tf @@ -12,6 +12,7 @@ locals { tre_workspace_id = var.workspace_id tre_workspace_service_id = var.parent_service_id tre_user_resource_id = var.tre_resource_id + workspace = "${data.azurerm_resource_group.ws.tags["workspace"]}" } # Load VM SKU/image details from porter.yaml diff --git a/templates/workspace_services/guacamole/user_resources/guacamole-azure-import-reviewvm/terraform/locals.tf b/templates/workspace_services/guacamole/user_resources/guacamole-azure-import-reviewvm/terraform/locals.tf index 508f1083c2..0d4ca43dc6 100644 --- a/templates/workspace_services/guacamole/user_resources/guacamole-azure-import-reviewvm/terraform/locals.tf +++ b/templates/workspace_services/guacamole/user_resources/guacamole-azure-import-reviewvm/terraform/locals.tf @@ -12,6 +12,7 @@ locals { tre_workspace_id = var.workspace_id tre_workspace_service_id = var.parent_service_id tre_user_resource_id = var.tre_resource_id + workspace = "${data.azurerm_resource_group.ws.tags["workspace"]}" } # Load VM SKU/image details from porter.yaml diff --git a/templates/workspace_services/guacamole/user_resources/guacamole-azure-linuxvm/terraform/locals.tf b/templates/workspace_services/guacamole/user_resources/guacamole-azure-linuxvm/terraform/locals.tf index dce9e7409f..50ebc24393 100644 --- a/templates/workspace_services/guacamole/user_resources/guacamole-azure-linuxvm/terraform/locals.tf +++ b/templates/workspace_services/guacamole/user_resources/guacamole-azure-linuxvm/terraform/locals.tf @@ -13,6 +13,7 @@ locals { tre_workspace_id = var.workspace_id tre_workspace_service_id = var.parent_service_id tre_user_resource_id = var.tre_resource_id + workspace = "${data.azurerm_resource_group.ws.tags["workspace"]}" } nexus_proxy_url = "https://nexus-${data.azurerm_public_ip.app_gateway_ip.fqdn}" # Load VM SKU/image details from porter.yaml diff --git a/templates/workspace_services/guacamole/user_resources/guacamole-azure-windowsvm/terraform/locals.tf b/templates/workspace_services/guacamole/user_resources/guacamole-azure-windowsvm/terraform/locals.tf index e5137d1967..e69e6b0515 100644 --- a/templates/workspace_services/guacamole/user_resources/guacamole-azure-windowsvm/terraform/locals.tf +++ b/templates/workspace_services/guacamole/user_resources/guacamole-azure-windowsvm/terraform/locals.tf @@ -13,6 +13,7 @@ locals { tre_workspace_id = var.workspace_id tre_workspace_service_id = var.parent_service_id tre_user_resource_id = var.tre_resource_id + workspace = "${data.azurerm_resource_group.ws.tags["workspace"]}" } nexus_proxy_url = "https://nexus-${data.azurerm_public_ip.app_gateway_ip.fqdn}" diff --git a/templates/workspace_services/health-services/terraform/locals.tf b/templates/workspace_services/health-services/terraform/locals.tf index e0b3f54f34..32e916b167 100644 --- a/templates/workspace_services/health-services/terraform/locals.tf +++ b/templates/workspace_services/health-services/terraform/locals.tf @@ -11,5 +11,6 @@ locals { tre_id = var.tre_id tre_workspace_id = var.workspace_id tre_workspace_service_id = var.tre_resource_id + workspace = "${data.azurerm_resource_group.ws.tags["workspace"]}" } } diff --git a/templates/workspace_services/innereye/terraform/locals.tf b/templates/workspace_services/innereye/terraform/locals.tf index 76382b64df..2da4a03031 100644 --- a/templates/workspace_services/innereye/terraform/locals.tf +++ b/templates/workspace_services/innereye/terraform/locals.tf @@ -14,5 +14,6 @@ locals { tre_id = var.tre_id tre_workspace_id = var.workspace_id tre_workspace_service_id = var.tre_resource_id + workspace = "${data.azurerm_resource_group.ws.tags["workspace"]}" } } diff --git a/templates/workspace_services/mlflow/terraform/locals.tf b/templates/workspace_services/mlflow/terraform/locals.tf index 3fd2d2d8c5..2919c005cd 100644 --- a/templates/workspace_services/mlflow/terraform/locals.tf +++ b/templates/workspace_services/mlflow/terraform/locals.tf @@ -16,6 +16,7 @@ locals { tre_id = var.tre_id tre_workspace_id = var.workspace_id tre_workspace_service_id = var.tre_resource_id + workspace = "${data.azurerm_resource_group.ws.tags["workspace"]}" } web_app_diagnostic_categories_enabled = [ "AppServiceHTTPLogs", "AppServiceConsoleLogs", "AppServiceAppLogs", diff --git a/templates/workspace_services/mysql/terraform/locals.tf b/templates/workspace_services/mysql/terraform/locals.tf index 296c0b93e7..bf3abcb1af 100644 --- a/templates/workspace_services/mysql/terraform/locals.tf +++ b/templates/workspace_services/mysql/terraform/locals.tf @@ -14,5 +14,6 @@ locals { tre_id = var.tre_id tre_workspace_id = var.workspace_id tre_workspace_service_id = var.tre_resource_id + workspace = "${data.azurerm_resource_group.ws.tags["workspace"]}" } } diff --git a/templates/workspace_services/ohdsi/terraform/locals.tf b/templates/workspace_services/ohdsi/terraform/locals.tf index 0d13412ee3..fa990bd114 100644 --- a/templates/workspace_services/ohdsi/terraform/locals.tf +++ b/templates/workspace_services/ohdsi/terraform/locals.tf @@ -55,6 +55,7 @@ locals { tre_id = var.tre_id tre_workspace_id = var.workspace_id tre_workspace_service_id = var.tre_resource_id + workspace = "${data.azurerm_resource_group.ws.tags["workspace"]}" } # Data Source configuration diff --git a/templates/workspaces/base-adf/parameters.json b/templates/workspaces/base-adf/parameters.json index 58613257b6..ebd22a036a 100755 --- a/templates/workspaces/base-adf/parameters.json +++ b/templates/workspaces/base-adf/parameters.json @@ -46,6 +46,12 @@ "env": "MGMT_STORAGE_ACCOUNT_NAME" } }, + { + "name": "display_name", + "source": { + "env": "DISPLAY_NAME" + } + }, { "name": "shared_storage_quota", "source": { diff --git a/templates/workspaces/base-adf/porter.yaml b/templates/workspaces/base-adf/porter.yaml index 9ffd23273f..da7a5431d3 100644 --- a/templates/workspaces/base-adf/porter.yaml +++ b/templates/workspaces/base-adf/porter.yaml @@ -54,6 +54,9 @@ parameters: - name: arm_use_msi type: boolean default: false + - name: display_name + type: string + description: "The display name for base workspace" - name: shared_storage_quota type: integer default: 50 @@ -164,6 +167,7 @@ install: tre_resource_id: ${ bundle.parameters.id } location: ${ bundle.parameters.azure_location } address_spaces: ${ bundle.parameters.address_spaces } + display_name: ${ bundle.parameters.display_name } shared_storage_quota: ${ bundle.parameters.shared_storage_quota } enable_local_debugging: ${ bundle.parameters.enable_local_debugging } register_aad_application: ${ bundle.parameters.register_aad_application } @@ -208,6 +212,7 @@ upgrade: tre_resource_id: ${ bundle.parameters.id } location: ${ bundle.parameters.azure_location } address_spaces: ${ bundle.parameters.address_spaces } + display_name: ${ bundle.parameters.display_name } shared_storage_quota: ${ bundle.parameters.shared_storage_quota } enable_local_debugging: ${ bundle.parameters.enable_local_debugging } register_aad_application: ${ bundle.parameters.register_aad_application } @@ -276,6 +281,7 @@ uninstall: tre_resource_id: ${ bundle.parameters.id } location: ${ bundle.parameters.azure_location } address_spaces: ${ bundle.parameters.address_spaces } + display_name: ${ bundle.parameters.display_name } shared_storage_quota: ${ bundle.parameters.shared_storage_quota } enable_local_debugging: ${ bundle.parameters.enable_local_debugging } register_aad_application: ${ bundle.parameters.register_aad_application } diff --git a/templates/workspaces/base-adf/template_schema.json b/templates/workspaces/base-adf/template_schema.json index 155dbc52a2..8909a956c7 100644 --- a/templates/workspaces/base-adf/template_schema.json +++ b/templates/workspaces/base-adf/template_schema.json @@ -10,6 +10,11 @@ ], "authorizedRoles": [], "properties": { + "display_name": { + "type": "string", + "title": "Display Name", + "description": "Display name for Base Workspace." + }, "shared_storage_quota": { "type": "integer", "title": "Shared Storage Quota", diff --git a/templates/workspaces/base-adf/terraform/locals.tf b/templates/workspaces/base-adf/terraform/locals.tf index 9de7b57b56..92e4d26fe6 100644 --- a/templates/workspaces/base-adf/terraform/locals.tf +++ b/templates/workspaces/base-adf/terraform/locals.tf @@ -7,5 +7,6 @@ locals { tre_workspace_tags = { tre_id = var.tre_id tre_workspace_id = var.tre_resource_id + workspace = var.display_name } } diff --git a/templates/workspaces/base-adf/terraform/variables.tf b/templates/workspaces/base-adf/terraform/variables.tf index c9424ed781..6e18e09027 100644 --- a/templates/workspaces/base-adf/terraform/variables.tf +++ b/templates/workspaces/base-adf/terraform/variables.tf @@ -8,6 +8,11 @@ variable "tre_resource_id" { description = "Resource ID" } +variable "display_name" { + type = string + description = "Display name for Base Workspace." +} + variable "shared_storage_quota" { type = number default = 50 diff --git a/templates/workspaces/base/parameters.json b/templates/workspaces/base/parameters.json index 0e9e74165a..7cdbb38dde 100755 --- a/templates/workspaces/base/parameters.json +++ b/templates/workspaces/base/parameters.json @@ -46,6 +46,12 @@ "env": "MGMT_STORAGE_ACCOUNT_NAME" } }, + { + "name": "display_name", + "source": { + "env": "DISPLAY_NAME" + } + }, { "name": "shared_storage_quota", "source": { diff --git a/templates/workspaces/base/porter.yaml b/templates/workspaces/base/porter.yaml index 81297e717d..f2edd10c17 100644 --- a/templates/workspaces/base/porter.yaml +++ b/templates/workspaces/base/porter.yaml @@ -54,6 +54,9 @@ parameters: - name: arm_use_msi type: boolean default: false + - name: display_name + type: string + description: "The display name for base workspace" - name: shared_storage_quota type: integer default: 50 @@ -164,6 +167,7 @@ install: tre_resource_id: ${ bundle.parameters.id } location: ${ bundle.parameters.azure_location } address_spaces: ${ bundle.parameters.address_spaces } + display_name: ${ bundle.parameters.display_name } shared_storage_quota: ${ bundle.parameters.shared_storage_quota } enable_local_debugging: ${ bundle.parameters.enable_local_debugging } register_aad_application: ${ bundle.parameters.register_aad_application } @@ -204,6 +208,7 @@ upgrade: tre_resource_id: ${ bundle.parameters.id } location: ${ bundle.parameters.azure_location } address_spaces: ${ bundle.parameters.address_spaces } + display_name: ${ bundle.parameters.display_name } shared_storage_quota: ${ bundle.parameters.shared_storage_quota } enable_local_debugging: ${ bundle.parameters.enable_local_debugging } register_aad_application: ${ bundle.parameters.register_aad_application } @@ -267,7 +272,7 @@ uninstall: tre_id: ${ bundle.parameters.tre_id } tre_resource_id: ${ bundle.parameters.id } location: ${ bundle.parameters.azure_location } - address_spaces: ${ bundle.parameters.address_spaces } + display_name: ${ bundle.parameters.display_name } shared_storage_quota: ${ bundle.parameters.shared_storage_quota } enable_local_debugging: ${ bundle.parameters.enable_local_debugging } register_aad_application: ${ bundle.parameters.register_aad_application } diff --git a/templates/workspaces/base/template_schema.json b/templates/workspaces/base/template_schema.json index 3d6cdf0e16..2591319c0a 100644 --- a/templates/workspaces/base/template_schema.json +++ b/templates/workspaces/base/template_schema.json @@ -10,6 +10,11 @@ ], "authorizedRoles": [], "properties": { + "display_name": { + "type": "string", + "title": "Display Name", + "description": "Display name for Base Workspace." + }, "shared_storage_quota": { "type": "integer", "title": "Shared Storage Quota", diff --git a/templates/workspaces/base/terraform/variables.tf b/templates/workspaces/base/terraform/variables.tf index 567d468ede..23a4b93cdf 100644 --- a/templates/workspaces/base/terraform/variables.tf +++ b/templates/workspaces/base/terraform/variables.tf @@ -8,6 +8,11 @@ variable "tre_resource_id" { description = "Resource ID" } +variable "display_name" { + type = string + description = "Display name for Base Workspace." +} + variable "shared_storage_quota" { type = number default = 50 diff --git a/templates/workspaces/unrestricted/parameters.json b/templates/workspaces/unrestricted/parameters.json index 77e5faf93c..7d2807eef4 100755 --- a/templates/workspaces/unrestricted/parameters.json +++ b/templates/workspaces/unrestricted/parameters.json @@ -46,6 +46,12 @@ "env": "MGMT_STORAGE_ACCOUNT_NAME" } }, + { + "name": "display_name", + "source": { + "env": "DISPLAY_NAME" + } + }, { "name": "shared_storage_quota", "source": { diff --git a/templates/workspaces/unrestricted/porter.yaml b/templates/workspaces/unrestricted/porter.yaml index fd3a07583c..07e9b4b0e9 100644 --- a/templates/workspaces/unrestricted/porter.yaml +++ b/templates/workspaces/unrestricted/porter.yaml @@ -58,6 +58,9 @@ parameters: env: ARM_ENVIRONMENT type: string default: "public" + - name: display_name + type: string + description: "The display name for base workspace" - name: shared_storage_quota type: integer default: 50 @@ -166,6 +169,7 @@ install: tre_resource_id: ${ bundle.parameters.id } location: ${ bundle.parameters.azure_location } address_spaces: ${ bundle.parameters.address_spaces } + display_name: ${ bundle.parameters.display_name } shared_storage_quota: ${ bundle.parameters.shared_storage_quota } enable_local_debugging: ${ bundle.parameters.enable_local_debugging } register_aad_application: ${ bundle.parameters.register_aad_application } @@ -206,6 +210,7 @@ upgrade: tre_resource_id: ${ bundle.parameters.id } location: ${ bundle.parameters.azure_location } address_spaces: ${ bundle.parameters.address_spaces } + display_name: ${ bundle.parameters.display_name } shared_storage_quota: ${ bundle.parameters.shared_storage_quota } enable_local_debugging: ${ bundle.parameters.enable_local_debugging } register_aad_application: ${ bundle.parameters.register_aad_application } @@ -270,6 +275,7 @@ uninstall: tre_resource_id: ${ bundle.parameters.id } location: ${ bundle.parameters.azure_location } address_spaces: ${ bundle.parameters.address_spaces } + display_name: ${ bundle.parameters.display_name } shared_storage_quota: ${ bundle.parameters.shared_storage_quota } enable_local_debugging: ${ bundle.parameters.enable_local_debugging } register_aad_application: ${ bundle.parameters.register_aad_application } diff --git a/templates/workspaces/unrestricted/template_schema.json b/templates/workspaces/unrestricted/template_schema.json index 3fbaa16a3a..bf9a7bea5c 100644 --- a/templates/workspaces/unrestricted/template_schema.json +++ b/templates/workspaces/unrestricted/template_schema.json @@ -10,6 +10,11 @@ ], "authorizedRoles": [], "properties": { + "display_name": { + "type": "string", + "title": "Display Name", + "description": "Display name for Base Workspace." + }, "shared_storage_quota": { "type": "integer", "title": "Shared Storage Quota",