You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,6 +34,7 @@ BUG FIXES:
34
34
* Fix missing metastoreDomains for Databricks, which caused metastore outages for some domains ([#4779](https://github.com/microsoft/AzureTRE/issues/4779))
35
35
* Fix data exfiltration vulnerability in Azure ML workspace service by removing unrestricted AzureMachineLearning service tag access and enforcing RBAC-based storage access ([#4660](https://github.com/microsoft/AzureTRE/issues/4660))
36
36
* Fix cost display duplication when user resource is deleted - UI incorrectly reused cost data for remaining resources ([#4783](https://github.com/microsoft/AzureTRE/issues/4783))
37
+
* Fix type mismatch error where `{{ resource.parent.my_boolean_property }}` was returning string instead of the correct type ([#4813](https://github.com/microsoft/AzureTRE/issues/4813))
Copy file name to clipboardExpand all lines: docs/tre-templates/pipeline-templates/pipeline-schema.md
+11Lines changed: 11 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,6 +31,17 @@ It's possible to refer to properties from the primary resource (the resource tha
31
31
32
32
The syntax is `{{ resource.propertyName }}`. For example: `"{{ resource.properties.display_name }}"`.
33
33
34
+
### Accessing Parent Resource Properties
35
+
It's also possible to access properties from the parent resources. This is useful when a resource needs information from its container (e.g. a user resource needing the workspace service's address space).
36
+
37
+
| Resource Type | Available References | Description |
38
+
| --- | --- | --- |
39
+
| User Resource | `{{ resource.parent.properties... }}` | Properties of the **Workspace Service** |
40
+
| User Resource | `{{ resource.parent.parent.properties... }}` | Properties of the **Workspace** |
41
+
| Workspace Service | `{{ resource.parent.properties... }}` | Properties of the **Workspace** |
42
+
| Workspace | N/A | Workspaces do not have parents in this context |
43
+
| Shared Service | N/A | Shared Services do not have parents in this context |
44
+
34
45
Example pipeline in `template_schema.json`:
35
46
The below example references 2 properties from the primary resource to be used in updating the firewall shared service.
Copy file name to clipboardExpand all lines: docs/tre-workspace-authors/authoring-workspace-templates.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -76,6 +76,10 @@ All the values for the required parameters will be provided by the deployment ru
76
76
77
77
Any **custom parameters** are picked up by Azure TRE API and will be queried from the user deploying the workspace bundle. Custom parameters should also be defined in the `template_schema.json` file at the root of the bundle. This file follows the [JSON schema standard](http://json-schema.org/) and can be used by a user interface to generate a UI for the user to input the parameters.
78
78
79
+
### Template properties
80
+
81
+
When authoring a `template_schema.json` file, you can reference properties from the resource being deployed, or its parent resources. For more information see [Pipeline Template Schema](../tre-templates/pipeline-templates/pipeline-schema.md#substituting-resource-property-values).
82
+
79
83
### Output
80
84
81
85
!!! todo
@@ -109,7 +113,7 @@ The size of the `address_space` will default to `/24`, however other sizes can b
109
113
110
114
The `address_space` allocation will only take place during the install phase of a deployment, as this is a breaking change to your template you should increment the major version of your template, this means a you must deploy a new resource instead of upgrading an existing one.
111
115
112
-
In your install pipeline you also need to include a workspace upgrade step for the workspace to update it's `address_spaces` property.
116
+
In your install and uninstall pipelines you also need to include a workspace upgrade step for the workspace to update it's `address_spaces` property.
0 commit comments