AzureCloudPowerShellDeployment@1 - Azure Cloud Service デプロイ v1 タスク

Azure Cloud Service をデプロイします。

注意

このタスクでは、ワークフロー ID フェデレーションを使用した Azure Resource Manager認証はサポートされていません。

構文

# Azure Cloud Service deployment v1
# Deploy an Azure Cloud Service.
- task: AzureCloudPowerShellDeployment@1
  inputs:
    azureClassicSubscription: # string. Alias: ConnectedServiceName. Required. Azure subscription (Classic). 
    #EnableAdvancedStorageOptions: false # boolean. Enable ARM storage support. Default: false.
    StorageAccount: # string. Required when EnableAdvancedStorageOptions = false. Storage account (Classic). 
    #ARMConnectedServiceName: # string. Required when EnableAdvancedStorageOptions = true. Azure subscription (ARM). 
    #ARMStorageAccount: # string. Required when EnableAdvancedStorageOptions = true. Storage account (ARM). 
    ServiceName: # string. Required. Service name. 
    ServiceLocation: # string. Required. Service location. 
    CsPkg: # string. Required. CsPkg. 
    CsCfg: # string. Required. CsCfg. 
    slotName: 'Production' # string. Alias: Slot. Required. Environment (Slot). Default: Production.
    #DeploymentLabel: '$(Build.BuildNumber)' # string. Deployment label. Default: $(Build.BuildNumber).
    #AppendDateTimeToLabel: false # boolean. Append current date and time. Default: false.
    #AllowUpgrade: true # boolean. Allow upgrade. Default: true.
    #SimultaneousUpgrade: false # boolean. Optional. Use when AllowUpgrade == true. Simultaneous upgrade. Default: false.
    #ForceUpgrade: false # boolean. Optional. Use when AllowUpgrade == true. Force upgrade. Default: false.
    #VerifyRoleInstanceStatus: false # boolean. Verify role instance status. Default: false.
  # Advanced Options For Creating New Service
    #DiagnosticStorageAccountKeys: # string. Diagnostic storage account keys. 
    #NewServiceCustomCertificates: # string. Custom certificates to import. 
    #NewServiceAdditionalArguments: # string. Additional arguments. 
    #NewServiceAffinityGroup: # string. Affinity group.
# Azure Cloud Service deployment v1
# Deploy an Azure Cloud Service.
- task: AzureCloudPowerShellDeployment@1
  inputs:
    azureClassicSubscription: # string. Alias: ConnectedServiceName. Required. Azure subscription (Classic). 
    StorageAccount: # string. Required. Storage account. 
    ServiceName: # string. Required. Service name. 
    ServiceLocation: # string. Required. Service location. 
    CsPkg: # string. Required. CsPkg. 
    CsCfg: # string. Required. CsCfg. 
    slotName: 'Production' # string. Alias: Slot. Required. Environment (Slot). Default: Production.
    #DeploymentLabel: '$(Build.BuildNumber)' # string. Deployment label. Default: $(Build.BuildNumber).
    #AppendDateTimeToLabel: false # boolean. Append current date and time. Default: false.
    #AllowUpgrade: true # boolean. Allow upgrade. Default: true.
    #SimultaneousUpgrade: false # boolean. Optional. Use when AllowUpgrade == true. Simultaneous upgrade. Default: false.
    #ForceUpgrade: false # boolean. Optional. Use when AllowUpgrade == true. Force upgrade. Default: false.
    #VerifyRoleInstanceStatus: false # boolean. Verify role instance status. Default: false.
  # Advanced Options For Creating New Service
    #DiagnosticStorageAccountKeys: # string. Diagnostic storage account keys. 
    #NewServiceCustomCertificates: # string. Custom certificates to import. 
    #NewServiceAdditionalArguments: # string. Additional arguments. 
    #NewServiceAffinityGroup: # string. Affinity group.
# Azure Cloud Service Deployment v1
# Deploy an Azure Cloud Service.
- task: AzureCloudPowerShellDeployment@1
  inputs:
    azureClassicSubscription: # string. Alias: ConnectedServiceName. Required. Azure subscription (Classic). 
    StorageAccount: # string. Required. Storage account. 
    ServiceName: # string. Required. Service name. 
    ServiceLocation: # string. Required. Service location. 
    CsPkg: # string. Required. CsPkg. 
    CsCfg: # string. Required. CsCfg. 
    slotName: 'Production' # string. Alias: Slot. Required. Environment (Slot). Default: Production.
    #DeploymentLabel: '$(Build.BuildNumber)' # string. Deployment label. Default: $(Build.BuildNumber).
    #AppendDateTimeToLabel: false # boolean. Append current date and time. Default: false.
    #AllowUpgrade: true # boolean. Allow upgrade. Default: true.
    #SimultaneousUpgrade: false # boolean. Optional. Use when AllowUpgrade == true. Simultaneous upgrade. Default: false.
    #ForceUpgrade: false # boolean. Optional. Use when AllowUpgrade == true. Force upgrade. Default: false.
    #VerifyRoleInstanceStatus: false # boolean. Verify role instance status. Default: false.
  # Advanced Options For Creating New Service
    #DiagnosticStorageAccountKeys: # string. Diagnostic storage account keys. 
    #NewServiceCustomCertificates: # string. Custom certificates to import. 
    #NewServiceAdditionalArguments: # string. Additional arguments. 
    #NewServiceAffinityGroup: # string. Affinity group.

入力

azureClassicSubscription - Azure サブスクリプション (クラシック)
入力エイリアス: ConnectedServiceNamestring. 必須です。

デプロイの対象となる Azure サブスクリプション。


EnableAdvancedStorageOptions - ARM ストレージのサポートを有効にする
boolean. 既定値: false

ARM ストレージのサポートを有効または無効にします。


StorageAccount - ストレージ アカウント (クラシック)
string. EnableAdvancedStorageOptions = false の場合に必要です。

ストレージ アカウントは、デプロイ前に存在する必要があります。


StorageAccount - ストレージ アカウント
string. 必須です。

ストレージ アカウントは、デプロイ前に存在する必要があります。


ARMConnectedServiceName - Azure サブスクリプション (ARM)
string. EnableAdvancedStorageOptions = true の場合に必要です。

ARM サブスクリプション。


ARMStorageAccount - ストレージ アカウント (ARM)
string. EnableAdvancedStorageOptions = true の場合に必要です。

既存の ARM ストレージ アカウント。


ServiceName - サービス名
string. 必須です。

既存のクラウド サービス名。


ServiceLocation - サービスの場所
string. 必須です。

新しいサービスデプロイ用のリージョン。 オプションには、米国東部、米国東部 2、米国中部、米国中南部、米国西部、北ヨーロッパ、西ヨーロッパなどがあります。


CsPkg - CsPkg
string. 必須です。

既定の成果物ディレクトリ内の CsPkg へのパス。


CsCfg - CsCfg
string. 必須です。

既定の成果物ディレクトリ内の CsCfg パス。


slotName - 環境 (スロット)
入力エイリアス: Slotstring. 必須です。 既定値: Production

この値を "Staging" に設定するか、既定値を使用します。


DeploymentLabel - デプロイ ラベル
string. 既定値: $(Build.BuildNumber)

新しいデプロイのラベル名を指定します。 指定しない場合、既定ではグローバル一意識別子 (GUID) が使用されます。


AppendDateTimeToLabel - 現在の日付と時刻を追加する
boolean. 既定値: false

現在の日付と時刻をデプロイ ラベルに追加します。


AllowUpgrade - アップグレードを許可する
boolean. 既定値: true

Microsoft Azure デプロイへのアップグレードを許可します。


SimultaneousUpgrade - 同時アップグレード
boolean. 省略可能。 の場合は AllowUpgrade == trueを使用します。 既定値: false

すべてのインスタンスを一度にアップグレードします。 この期間中、クラウド サービスは使用できません。


ForceUpgrade - 強制的なアップグレード
boolean. 省略可能。 の場合は AllowUpgrade == trueを使用します。 既定値: false

強制アップグレードを設定します。 アップグレードを強制すると、ローカル データが失われる可能性があります。


VerifyRoleInstanceStatus - ロール インスタンスの状態を確認する
boolean. 既定値: false

ロール インスタンスが準備完了状態になるまでタスクを待機させます。


DiagnosticStorageAccountKeys - 診断ストレージ アカウント キー
string.

ストレージ キー文字列を として Role:Storagekey書式設定します。 各ロールの診断ストレージ アカウント名は、診断構成ファイル (.wadcfgx) から取得されます。

  • ロールの .wadcfgx ファイルが見つからない場合: そのロールに対して診断拡張機能が設定されていません。
  • ストレージ アカウント名が .wadcfgx ファイルに見つからない場合: 診断結果を格納するために既定のストレージ アカウントが使用され、デプロイ タスクのストレージ キー パラメーターは無視されます。

注: 環境の診断結果に機密情報がある場合は、 を storage_account_key シークレット変数として保存します。 次に例を示します。

  • WebRole: WebRole_storage_account_key
  • WorkerRole: WorkerRole_stoarge_account_key

NewServiceCustomCertificates - インポートするカスタム証明書
string.

カスタム証明書文字列を として CertificatePfxBase64:CertificatePassword書式設定します。 を certificate_password シークレット変数として保存します。 次に例を示します。

  • Certificate1: Certificate1_password
  • Certificate2: Certificate2_password

NewServiceAdditionalArguments - 追加の引数
string.

新しいサービスを作成するときに、追加の引数を渡します。 引数は コマンドレットに New-AzureService 渡されます。 たとえば、「 -Label 'MyTestService' 」のように入力します。


NewServiceAffinityGroup - アフィニティ グループ
string.

新しいサービスの作成時にサービスの場所の代わりに使用されるアフィニティ グループ。


タスク制御オプション

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

出力変数

[なし] :

解説

Azure クラウド サービスをデプロイするには、このタスクを使用します。

必要条件

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