Skip to content

Commit

Permalink
ps task
Browse files Browse the repository at this point in the history
  • Loading branch information
ramiMSFT committed Jun 1, 2022
1 parent 33c63ff commit 5fa0f6c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/pipelines/tasks/deploy/azure-powershell.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,17 @@ Use this task to run a PowerShell script within an Azure environment. The Azure

|Argument|Description|
|--- |--- |
|`ConnectedServiceNameARM`<br/>Azure Subscription|(Required) Name of an Azure Resource Manager service connection for authentication. <br/>Argument alias: `azureSubscription`|
|`ScriptType`<br/>Script Type|(Optional) Type of the script: filePath or inlineScript <br/>Default value: `FilePath`|
|`ConnectedServiceNameARM`<br/>Azure Subscription|(Required) Name of an Azure Resource Manager service connection for authentication. <br/>Alias: `azureSubscription`|
|`ScriptType`<br/>Script Type|(Optional) Type of the script: filePath or inlineScript <br/>Default value: `FilePath`.|
|`ScriptPath`<br/>Script Path|(Optional) Path of the script. Should be fully qualified path or relative to the default working directory.|
|`Inline`<br/>Inline Script|(Optional) Enter the script to execute. <br/>Default value: <br/># You can write your Azure PowerShell scripts inline here.|
|`Inline`<br/>Inline Script|(Optional) You can write your scripts inline here. |
|`ScriptArguments`<br/>Script Arguments|(Optional) Additional parameters to pass to PowerShell. Can be either ordinal or named parameters. Not applicable for inline script option.|
|`errorActionPreference`<br/>ErrorActionPreference|(Optional) Select the value of the ErrorActionPreference variable for executing the script. <br/>Default value: `stop`|
|`errorActionPreference`<br/>ErrorActionPreference|(Optional) Select the value of the ErrorActionPreference variable for executing the script. <br/>Default value: `stop`. Options: stop, continue, silentlyContinue|
|`FailOnStandardError`<br/>Fail on Standard Error|(Optional) 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. <br/>Default value: `false`|
|`TargetAzurePs`<br/>Azure PowerShell Version|(Required) In case of Microsoft-hosted agents, the supported Azure PowerShell version. To pick the latest version available on the agent, select `latestVersion` <br/>For self-hosted agents, you can specify preferred version of Azure PowerShell using "Specify version" <br/>Default value: `OtherVersion` <br/>Argument alias: `azurePowerShellVersion`|
|`CustomTargetAzurePs`<br/>preferredAzurePowerShellVersion|(Required when TargetAzurePs = OtherVersion) <br/>Preferred Azure PowerShell Version needs to be a proper semantic version. For example, 1.2.3. Regex like 2.\*,2.3.\* is not supported. <br/>Argument alias: `preferredAzurePowerShellVersion`|
|`pwsh`<br />Use PowerShell Core|(Optional) If this is true, on Windows, the task will use pwsh.exe from your PATH instead of powershell.exe.|
|`workingDirectory`<br />Working Directory|(Optional) Working directory where the script is run.|
|`workingDirectory`<br />Working Directory|(Optional) Working directory where the script is run. Default value: ''.|

## Samples

Expand Down

0 comments on commit 5fa0f6c

Please sign in to comment.