Skip to content

Commit 84857c6

Browse files
authored
Merge pull request #109319 from BethWilke/branch1
Branch1
2 parents 3d7d377 + 483238f commit 84857c6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

articles/automation/shared-resources/variables.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ When you create a variable with the Azure portal, you must specify a data type f
4141

4242
The variable isn't restricted to the designated data type. You must set the variable using Windows PowerShell if you want to specify a value of a different type. If you indicate `Not defined`, the value of the variable is set to Null, and you must set the value with the [Set-AzAutomationVariable](https://docs.microsoft.com/powershell/module/az.automation/set-azautomationvariable?view=azps-3.5.0) cmdlet or the `Set-AutomationVariable` activity.
4343

44-
You can't use the portal to create or change the value for a complex variable type. However, you can provide a value of any type using Windows PowerShell. Complex types are retrieved as a [PSCustomObject](/dotnet/api/system.management.automation.pscustomobject).
44+
You can't use the Azure portal to create or change the value for a complex variable type. However, you can provide a value of any type using Windows PowerShell. Complex types are retrieved as a [PSCustomObject](/dotnet/api/system.management.automation.pscustomobject).
4545

4646
You can store multiple values to a single variable by creating an array or hashtable and saving it to the variable.
4747

@@ -71,8 +71,8 @@ The activities in the following table are used to access variables in runbooks a
7171
Note that `Get-AutomationVariable` does not work in PowerShell, but only in a runbook or DSC configuration. For example, to see the value of an encrypted variable, you might create a runbook to get the variable and then write it to the output stream:
7272

7373
```powershell
74-
$testEncryptVar = Get-AutomationVariable -Name TestVariable
75-
Write-output "The encrypted variable value is: $testEncryptVar"
74+
$mytestencryptvar = Get-AutomationVariable -Name TestVariable
75+
Write-output "The encrypted value of the variable is: $mytestencryptvar"
7676
```
7777

7878
## Functions to access variables in Python 2 runbooks

0 commit comments

Comments
 (0)