|
- about_Variables - PowerShell | Microsoft Learn
Working with variables To create a new variable, use an assignment statement to assign a value to the variable You don't have to declare the variable before using it The default value of all variables is $null To get a list of all the variables in your PowerShell session, type Get-Variable
- Predefined variables - Azure Pipelines | Microsoft Learn
When you use a variable in a template that isn't marked as available in templates The variable doesn't render because its value isn't accessible within the template's scope
- Everything you wanted to know about variable substitution in strings
There are many ways to use variables in strings I'm calling this variable substitution but I'm referring to any time you want to format a string to include values from variables This is something that I often find myself explaining to new scripters
- about_PSItem - PowerShell | Microsoft Learn
PowerShell includes the $PSItem variable and its alias, $_, as automatic variables in scriptblocks that process the current object, such as in the pipeline This article uses $PSItem in the examples, but $PSItem can be replaced with $_ in every example
- Use variables to improve your DAX formulas - DAX | Microsoft Learn
The measure definition can be made more efficient by using a variable, VAR The following measure definition represents an improvement It uses an expression to assign the "same period last year" result to a variable named SalesPriorYear The variable is then used twice in the RETURN expression
- Use variables in Classic release pipelines - Azure Pipelines
Use custom variables To use custom variables in your tasks, enclose the variable name in parentheses and precede it with a $ character For example, if you have a variable named adminUserName, you can insert its current value into a task as $(adminUserName)
- about_Remote_Variables - PowerShell | Microsoft Learn
You can use local variables in remote commands, but the variable must be defined in the local session Beginning in PowerShell 3 0, you can use the Using: scope modifier to identify a local variable in a remote command
- Set-Variable (Microsoft. PowerShell. Utility) - PowerShell
The Set-Variable cmdlet assigns a value to a specified variable or changes the current value If the variable does not exist, the cmdlet creates it
|
|
|