Skip to content

Commit

Permalink
updated help texts for inputs (#7249)
Browse files Browse the repository at this point in the history
  • Loading branch information
arjgupta authored May 18, 2018
1 parent 3d68827 commit cbb1d7e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
@@ -1,42 +1,42 @@
{
"loc.friendlyName": "PowerShell on Target Machines",
"loc.helpMarkDown": "[More Information](https://go.microsoft.com/fwlink/?linkid=873465)",
"loc.description": "Execute PowerShell scripts on remote machine(s) using Invoke-Command cmdlet",
"loc.description": "Execute PowerShell scripts on remote machine(s). This version of the task uses PSSession and Invoke-Command for remoting.",
"loc.instanceNameFormat": "Run PowerShell on Target Machines",
"loc.releaseNotes": "What's new in Version 3.0: <br/>&nbsp;&nbsp; Use invoke-command to perform remote script execution",
"loc.releaseNotes": "Use PSSession and invoke-command to perform remoting on target machines.<br/><br/>* Added support for inline script execution.<br/><br/>* Default and Credssp authentication are supported.<br/><br/>* Added options for error handling: ErrorActionPreference, ignoreLASTEXITCODE and Fail on Standard Error.",
"loc.group.displayName.ScriptOptions": "Script options",
"loc.group.displayName.SessionOptions": "PSSession options",
"loc.group.displayName.ErrorHandlingOptions": "Error handling options",
"loc.group.displayName.advanced": "Advanced",
"loc.input.label.Machines": "Machines",
"loc.input.help.Machines": "Provide a comma separated list of machine IP addresses or FQDNs along with ports. Port is defaulted based on the selected protocol. <br>Eg: dbserver.fabrikam.com,dbserver_int.fabrikam.com:5986,192.168.12.34:5986 <br>Or provide build or release variables. Eg: $(variableName) <br>If you are using HTTPS, name/IP of machine should match the CN in the certificate.",
"loc.input.label.UserName": "Username",
"loc.input.help.UserName": "Username for the target machines. The username should be a part of Administrators group or WinRM remote management users group. <br> Eg: Format: Domain\\Admin User, Admin User@Domain, .\\Admin User",
"loc.input.help.UserName": "Username for the target machines. The user should be a part of Administrators group or WinRM remote management users group. <br> Eg: Format: Domain\\Admin User, Admin User@Domain, .\\Admin User",
"loc.input.label.UserPassword": "Password",
"loc.input.help.UserPassword": "password for the target machines. <br>It can accept variable defined in Build/Release definitions as '$(passwordVariable)'. <br>You may mark variable type as 'secret' to secure it.",
"loc.input.label.ScriptType": "Script Type",
"loc.input.help.ScriptType": "The type of script to execute: Inline or File Path",
"loc.input.label.ScriptPath": "Script File Path",
"loc.input.help.ScriptPath": "Location of the PowerShell script on the target machines or on a UNC path like C:\\BudgetIT\\Web\\Deploy\\Website.ps1",
"loc.input.help.ScriptPath": "Location of the PowerShell script on the target machines or on a UNC path like C:\\BudgetIT\\Web\\Deploy\\Website.ps1 which should be accessible from the target machine.",
"loc.input.label.InlineScript": "Script",
"loc.input.label.ScriptArguments": "Script Arguments",
"loc.input.help.ScriptArguments": "Arguments for the PowerShell script. Can be ordinal parameters or named parameters like -testParam test",
"loc.input.label.InitializationScript": "Initialization script",
"loc.input.help.InitializationScript": "Location of the data script for DSC on the target machines or on a UNC path like C:\\BudgetIT\\Web\\Deploy\\WebsiteConfiguration.ps1",
"loc.input.label.SessionVariables": "Session Variables",
"loc.input.help.SessionVariables": "Set common session variables for both the scripts. For example, $variable = value, $var1 = \"value, 123\"",
"loc.input.help.SessionVariables": "Set common session variables for both the scripts. Variable assignments should be valid PowerShell statements.",
"loc.input.label.CommunicationProtocol": "Protocol",
"loc.input.help.CommunicationProtocol": "Select the protocol to use for the WinRM connection with the machine(s). Default is HTTPS.",
"loc.input.label.AuthenticationMechanism": "Authentication",
"loc.input.help.AuthenticationMechanism": "Select the authentication mechanism to be used for creating pssession. If 'CredSSP' auth, credentials are mandatory.",
"loc.input.help.AuthenticationMechanism": "Select the authentication mechanism to be used for creating pssession. For 'CredSSP' authentication, username and password fields are mandatory.",
"loc.input.label.NewPsSessionOptionArguments": "Session Option parameters",
"loc.input.help.NewPsSessionOptionArguments": "Advanced options for remote session (New-PSSessionOption). For example, -SkipCACheck, -SkipCNCheck, -SkipRevocationCheck etc.",
"loc.input.help.NewPsSessionOptionArguments": "Advanced options for remote session (New-PSSessionOption). For example, -SkipCACheck, -SkipCNCheck, -SkipRevocationCheck etc. For a complete list of all session options, see [this](https://aka.ms/Vsts_PS_TM_v3_NewPSSessionOptions)",
"loc.input.label.ErrorActionPreference": "ErrorActionPreference",
"loc.input.help.ErrorActionPreference": "Prepends the line `$ErrorActionPreference = 'VALUE'` at the top of your script.",
"loc.input.label.failOnStderr": "Fail on Standard Error",
"loc.input.help.failOnStderr": "If this is true, this task will fail if any errors are written to the error pipeline, or if any data is written to the Standard Error stream. Otherwise the task will rely on the exit code to determine failure.",
"loc.input.label.ignoreLASTEXITCODE": "Ignore $LASTEXITCODE",
"loc.input.help.ignoreLASTEXITCODE": "If this is false, the line `if ((Test-Path -LiteralPath variable:\\LASTEXITCODE)) { exit $LASTEXITCODE }` is appended to the end of your script. This will cause the last exit code from an external command to be propagated as the exit code of powershell. Otherwise the line is not appended to the end of your script.",
"loc.input.help.ignoreLASTEXITCODE": "If this is false, the line `if ((Test-Path -LiteralPath variable:\\LASTEXITCODE)) { exit $LASTEXITCODE }` is executed at the end of your script. This will cause the last exit code from an external command to be propagated as the exit code of powershell. Otherwise the line is not executed to the end of your script.",
"loc.input.label.WorkingDirectory": "Working Directory",
"loc.input.help.WorkingDirectory": "Working directory where the script is run.",
"loc.input.label.RunPowershellInParallel": "Run PowerShell in Parallel",
Expand Down
16 changes: 8 additions & 8 deletions Tasks/PowerShellOnTargetMachinesV3/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"id": "3B5693D4-5777-4FEE-862A-BD2B7A374C68",
"name": "PowerShellOnTargetMachines",
"friendlyName": "PowerShell on Target Machines",
"description": "Execute PowerShell scripts on remote machine(s) using Invoke-Command cmdlet",
"description": "Execute PowerShell scripts on remote machine(s). This version of the task uses PSSession and Invoke-Command for remoting.",
"helpMarkDown": "[More Information](https://go.microsoft.com/fwlink/?linkid=873465)",
"category": "Deploy",
"visibility": [
Expand Down Expand Up @@ -38,7 +38,7 @@
"isExpanded": false
}
],
"releaseNotes": "What's new in Version 3.0: <br/>&nbsp;&nbsp; Use invoke-command to perform remote script execution",
"releaseNotes": "Use PSSession and invoke-command to perform remoting on target machines.<br/><br/>* Added support for inline script execution.<br/><br/>* Default and Credssp authentication are supported.<br/><br/>* Added options for error handling: ErrorActionPreference, ignoreLASTEXITCODE and Fail on Standard Error.",
"minimumAgentVersion": "2.0.0",
"inputs": [
{
Expand All @@ -54,7 +54,7 @@
"type": "string",
"label": "Username",
"defaultValue": "",
"helpMarkDown": "Username for the target machines. The username should be a part of Administrators group or WinRM remote management users group. <br> Eg: Format: Domain\\Admin User, Admin User@Domain, .\\Admin User"
"helpMarkDown": "Username for the target machines. The user should be a part of Administrators group or WinRM remote management users group. <br> Eg: Format: Domain\\Admin User, Admin User@Domain, .\\Admin User"
},
{
"name": "UserPassword",
Expand Down Expand Up @@ -82,7 +82,7 @@
"defaultValue": "",
"visibleRule": "ScriptType = FilePath",
"required": true,
"helpMarkDown": "Location of the PowerShell script on the target machines or on a UNC path like C:\\BudgetIT\\Web\\Deploy\\Website.ps1",
"helpMarkDown": "Location of the PowerShell script on the target machines or on a UNC path like C:\\BudgetIT\\Web\\Deploy\\Website.ps1 which should be accessible from the target machine.",
"groupName": "ScriptOptions"
},
{
Expand Down Expand Up @@ -130,7 +130,7 @@
"defaultValue": "",
"required": false,
"visibleRule": "ScriptType = FilePath",
"helpMarkDown": "Set common session variables for both the scripts. For example, $variable = value, $var1 = \"value, 123\"",
"helpMarkDown": "Set common session variables for both the scripts. Variable assignments should be valid PowerShell statements.",
"groupName": "ScriptOptions"
},
{
Expand All @@ -154,7 +154,7 @@
"Credssp": "CredSSP"
},
"defaultValue": "Default",
"helpMarkDown": "Select the authentication mechanism to be used for creating pssession. If 'CredSSP' auth, credentials are mandatory.",
"helpMarkDown": "Select the authentication mechanism to be used for creating pssession. For 'CredSSP' authentication, username and password fields are mandatory.",
"groupName": "SessionOptions"
},
{
Expand All @@ -163,7 +163,7 @@
"label": "Session Option parameters",
"required": false,
"defaultValue": "-SkipCACheck -IdleTimeout 7200000 -OperationTimeout 0 -OutputBufferingMode Block",
"helpMarkDown": "Advanced options for remote session (New-PSSessionOption). For example, -SkipCACheck, -SkipCNCheck, -SkipRevocationCheck etc.",
"helpMarkDown": "Advanced options for remote session (New-PSSessionOption). For example, -SkipCACheck, -SkipCNCheck, -SkipRevocationCheck etc. For a complete list of all session options, see [this](https://aka.ms/Vsts_PS_TM_v3_NewPSSessionOptions)",
"groupName": "SessionOptions"
},
{
Expand Down Expand Up @@ -195,7 +195,7 @@
"label": "Ignore $LASTEXITCODE",
"required": false,
"defaultValue": "false",
"helpMarkDown": "If this is false, the line `if ((Test-Path -LiteralPath variable:\\LASTEXITCODE)) { exit $LASTEXITCODE }` is appended to the end of your script. This will cause the last exit code from an external command to be propagated as the exit code of powershell. Otherwise the line is not appended to the end of your script.",
"helpMarkDown": "If this is false, the line `if ((Test-Path -LiteralPath variable:\\LASTEXITCODE)) { exit $LASTEXITCODE }` is executed at the end of your script. This will cause the last exit code from an external command to be propagated as the exit code of powershell. Otherwise the line is not executed to the end of your script.",
"groupName": "ErrorHandlingOptions"
},
{
Expand Down

0 comments on commit cbb1d7e

Please sign in to comment.