Skip to content

Commit 3930183

Browse files
authored
Updated to show where files are stored and how to iterate
1 parent 068117f commit 3930183

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

articles/data-factory/author-global-parameters.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ms.subservice: authoring
66
ms.topic: conceptual
77
author: joshuha-msft
88
ms.author: joowen
9-
ms.date: 05/12/2021
9+
ms.date: 12/31/2022
1010
ms.custom: devx-track-azurepowershell
1111
---
1212

@@ -30,6 +30,8 @@ After a global parameter is created, you can edit it by clicking the parameter's
3030

3131
:::image type="content" source="media/author-global-parameters/create-global-parameter-3.png" alt-text="Create global parameters":::
3232

33+
Global parameters are stored as part of the /factory/{factory_name}-arm-template parameters.json.
34+
3335
## Using global parameters in a pipeline
3436

3537
Global parameters can be used in any [pipeline expression](control-flow-expression-language-functions.md). If a pipeline is referencing another resource such as a dataset or data flow, you can pass down the global parameter value via that resource's parameters. Global parameters are referenced as `pipeline().globalParameters.<parameterName>`.
@@ -93,7 +95,8 @@ $globalParametersJson = Get-Content $globalParametersFilePath
9395
Write-Host "Parsing JSON..."
9496
$globalParametersObject = [Newtonsoft.Json.Linq.JObject]::Parse($globalParametersJson)
9597
96-
foreach ($gp in $globalParametersObject.GetEnumerator()) {
98+
foreach ($gp in $factoryFileObject.properties.globalParameters.GetEnumerator()) {
99+
# foreach ($gp in $globalParametersObject.GetEnumerator()) {
97100
Write-Host "Adding global parameter:" $gp.Key
98101
$globalParameterValue = $gp.Value.ToObject([Microsoft.Azure.Management.DataFactory.Models.GlobalParameterSpecification])
99102
$newGlobalParameters.Add($gp.Key, $globalParameterValue)

0 commit comments

Comments
 (0)