ServiceFabricPowerShell@1 - Service Fabric PowerShell v1 タスク

このタスクを使用して、Azure Service Fabric クラスター接続のコンテキスト内で PowerShell スクリプトを実行します。 Service Fabric クラスター接続が初期化されている PowerShell セッションで PowerShell コマンドまたはスクリプトを実行します。

構文

# Service Fabric PowerShell v1
# Run a PowerShell script in the context of an Azure Service Fabric cluster connection.
- task: ServiceFabricPowerShell@1
  inputs:
    clusterConnection: # string. Alias: serviceConnectionName. Required. Cluster Service Connection. 
    ScriptType: 'FilePath' # 'FilePath' | 'InlineScript'. Required. Script Type. Default: FilePath.
    #ScriptPath: # string. Optional. Use when ScriptType = FilePath. Script Path. 
    #Inline: # string. Optional. Use when ScriptType = InlineScript. Inline Script. 
    #ScriptArguments: # string. Script Arguments.
# Service Fabric PowerShell v1
# Run a PowerShell script within the context of an Azure Service Fabric cluster connection.
- task: ServiceFabricPowerShell@1
  inputs:
    clusterConnection: # string. Alias: serviceConnectionName. Required. Cluster Service Connection. 
    ScriptType: 'FilePath' # 'FilePath' | 'InlineScript'. Required. Script Type. Default: FilePath.
    #ScriptPath: # string. Optional. Use when ScriptType = FilePath. Script Path. 
    #Inline: # string. Optional. Use when ScriptType = InlineScript. Inline Script. 
    #ScriptArguments: # string. Script Arguments.

入力

clusterConnection - クラスター サービス接続
入力エイリアス: serviceConnectionNamestring. 必須です。

指定した PowerShell スクリプトの実行時にサービス接続が確立される Azure Service Fabric クラスターを指定します。


ScriptType - スクリプトの種類
string. 必須です。 使用できる値: FilePath (スクリプト ファイル パス)、 InlineScript (インライン スクリプト)。 既定値: FilePath

スクリプトをファイルとして提供するか、タスクのインラインとして提供するかを指定します。


ScriptPath - スクリプト パス
string. 省略可能。 の場合は ScriptType = FilePathを使用します。

実行する PowerShell スクリプトへのパスを指定します。 ワイルドカードと変数を含めることができます。 例: $(system.defaultworkingdirectory)/**/drop/projectartifacts/**/docker-compose.yml.

Note

Compose ファイルの結合は、このタスクの一部としてサポートされていません。


Inline - インライン スクリプト
string. 省略可能。 の場合は ScriptType = InlineScriptを使用します。 既定値: # You can write your PowerShell scripts inline here. \n# You can also pass predefined and custom variables to this script using arguments

ビルド エージェントで実行する PowerShell コマンドを指定します。 PowerShell タスクの詳細については、こちらを参照してください。


ScriptArguments - スクリプト引数
string.

PowerShell に渡す追加のパラメーターを指定します。 位置指定パラメーターまたは名前付きパラメーターを指定できます。


タスク制御オプション

すべてのタスクには、タスク入力に加えて制御オプションがあります。 詳細については、「 コントロール オプションと一般的なタスク プロパティ」を参照してください。

出力変数

[なし] :

解説

このタスクを使用して、Azure Service Fabric クラスター接続のコンテキスト内で PowerShell スクリプトを実行します。 Service Fabric クラスター接続が初期化されている PowerShell セッションで PowerShell コマンドまたはスクリプトを実行します。

Service Fabric

  • このタスクでは、Service Fabric インストールを使用し、Service Fabric クラスターに接続してデプロイします。
  • ビルド エージェント上の Azure Service Fabric Core SDK

要件

要件 説明
パイプラインの種類 YAML、クラシック ビルド、クラシック リリース
上で実行 エージェント、DeploymentGroup
確認要求 セルフホステッド エージェントには、このタスクを使用するジョブを実行するための次の要求に一致する機能が必要です。
Capabilities このタスクは、ジョブ内の後続のタスクに対する要求を満たしていません。
コマンドの制限 Any
設定可能な変数 Any
エージェントのバージョン 1.95.0 以上
タスクのカテゴリ ユーティリティ