AzureCloudPowerShellDeployment@1 - Azure Cloud Service 배포 v1 작업

Azure Cloud Service를 배포합니다.

Syntax

# 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 구독(클래식)
입력 별칭: ConnectedServiceName. string. 필수 요소.

배포 대상으로 지정할 Azure 구독입니다.


EnableAdvancedStorageOptions - ARM 스토리지 지원 사용
boolean. 기본값은 false입니다.

ARM 스토리지 지원을 사용하거나 사용하지 않도록 설정합니다.


StorageAccount - 스토리지 계정(클래식)
string. 필요한 경우 EnableAdvancedStorageOptions = false입니다.

스토리지 계정은 배포 전에 존재해야 합니다.


StorageAccount - 스토리지 계정
string. 필수 요소.

스토리지 계정은 배포 전에 존재해야 합니다.


ARMConnectedServiceName - ARM(Azure 구독)
string. 필요한 경우 EnableAdvancedStorageOptions = true입니다.

ARM 구독입니다.


ARMStorageAccount - 스토리지 계정(ARM)
string. 필요한 경우 EnableAdvancedStorageOptions = true입니다.

기존 ARM 스토리지 계정입니다.


ServiceName - 서비스 이름
string. 필수 요소.

기존 클라우드 서비스 이름입니다.


ServiceLocation - 서비스 위치
string. 필수 요소.

새 서비스 배포를 위한 지역입니다. 옵션으로는 미국 동부, 미국 동부 2, 미국 중부, 미국 중남부, 미국 서부, 북유럽, 서유럽 등이 있습니다.


CsPkg - CsPkg
string. 필수 요소.

기본 아티팩트 디렉터리의 CsPkg 경로입니다.


CsCfg - CsCfg
string. 필수 요소.

기본 아티팩트 디렉터리의 CsCfg 경로입니다.


slotName - 환경(슬롯)
입력 별칭: Slot. string. 필수 요소. 기본값은 Production입니다.

이 값을 'Staging'로 설정하거나 기본값을 사용합니다.


DeploymentLabel - 배포 레이블
string. 기본값은 $(Build.BuildNumber)입니다.

새 배포의 레이블 이름을 지정합니다. 지정하지 않으면 기본값은 GUID(Globally Unique Identifier)입니다.


AppendDateTimeToLabel - 현재 날짜 및 시간 추가
boolean. 기본값은 false입니다.

배포 레이블에 현재 날짜 및 시간을 추가합니다.


AllowUpgrade - 업그레이드 허용
boolean. 기본값은 true입니다.

Microsoft Azure 배포로 업그레이드할 수 있습니다.


SimultaneousUpgrade - 동시 업그레이드
boolean. 선택 사항입니다. 을 사용할 때 AllowUpgrade == true사용합니다. 기본값은 false입니다.

모든 인스턴스를 한 번에 업그레이드합니다. 이 시간 동안 클라우드 서비스를 사용할 수 없습니다.


ForceUpgrade - 강제 업그레이드
boolean. 선택 사항입니다. 을 사용할 때 AllowUpgrade == true사용합니다. 기본값은 false입니다.

강제 업그레이드를 설정합니다. 업그레이드를 강제로 적용하면 로컬 데이터가 손실될 수 있습니다.


VerifyRoleInstanceStatus - 역할 instance 상태 확인
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.

새 서비스를 만들 때 추가 인수를 전달합니다. 인수는 cmdlet에 New-AzureService 전달됩니다. 예들 들어 -Label 'MyTestService'입니다.


NewServiceAffinityGroup - 선호도 그룹
string.

새 서비스를 만들 때 서비스 위치 대신 사용되는 선호도 그룹입니다.


작업 제어 옵션

모든 작업에는 작업 입력 외에 제어 옵션이 있습니다. 자세한 내용은 컨트롤 옵션 및 일반적인 작업 속성을 참조하세요.

출력 변수

없음

설명

이 작업을 사용하여 Azure Cloud Service를 배포합니다.

요구 사항

요구 사항 Description
파이프라인 유형 YAML, 클래식 빌드, 클래식 릴리스
실행 중 에이전트
요청 자체 호스팅 에이전트에는 이 작업을 사용하는 작업을 실행하기 위한 다음 요구 사항과 일치하는 기능이 있어야 합니다. azureps
Capabilities 이 작업은 작업의 후속 작업에 대한 요구를 충족하지 않습니다.
명령 제한 사항 모두
Settable 변수 모두
에이전트 버전 1.103.0 이상
작업 범주 배포