다음을 통해 공유


AzureWebAppContainer@1 - Azure Web App for Containers v1 작업

이 작업은 Azure App Service에 컨테이너를 배포합니다.

이 작업을 사용하여 컨테이너를 배포할 때 지정된 컨테이너 이미지가 잘못된 경우 오류 메시지가 표시되지 않습니다. Azure Portal 로그를 사용하여 컨테이너 배포 문제를 해결합니다.

구문론

# Azure Web App for Containers v1
# Deploy containers to Azure App Service.
- task: AzureWebAppContainer@1
  inputs:
    azureSubscription: # string. Required. Azure subscription. 
    appName: # string. Required. App name. 
    #deployToSlotOrASE: false # boolean. Deploy to Slot or App Service Environment. Default: false.
    #resourceGroupName: # string. Required when deployToSlotOrASE = true. Resource group. 
    #slotName: 'production' # string. Required when deployToSlotOrASE = true. Slot. Default: production.
    #containers: # string. Alias: imageName. Image name. 
    #multicontainerConfigFile: # string. Configuration File. 
    #containerCommand: # string. Startup command. 
    #siteContainersConfig: # string. Site Containers Config. 
  # Application and Configuration Settings
    #appSettings: # string. App settings. 
    #configurationStrings: # string. Configuration settings.
# Azure Web App for Containers v1
# Deploy containers to Azure App Service.
- task: AzureWebAppContainer@1
  inputs:
    azureSubscription: # string. Required. Azure subscription. 
    appName: # string. Required. App name. 
    #deployToSlotOrASE: false # boolean. Deploy to Slot or App Service Environment. Default: false.
    #resourceGroupName: # string. Required when deployToSlotOrASE = true. Resource group. 
    #slotName: 'production' # string. Required when deployToSlotOrASE = true. Slot. Default: production.
    #containers: # string. Alias: imageName. Image name. 
    #multicontainerConfigFile: # string. Configuration File. 
    #containerCommand: # string. Startup command. 
  # Application and Configuration Settings
    #appSettings: # string. App settings. 
    #configurationStrings: # string. Configuration settings.

입력

Azure 구독
string; 필수 사항입니다.

배포에 대한 Azure Resource Manager 구독 이름입니다.


앱 이름
string; 필수 사항입니다.

기존 Azure App Service의 이름을 지정합니다. 선택한 앱 유형을 기반으로 하는 앱 서비스만 나열됩니다.


슬롯 또는 App Service Environment 배포
boolean; 기본값은 false입니다.

기존 배포 슬롯 또는 Azure App Service Environment에 배포하는 옵션을 선택합니다.
두 대상 모두 작업에 리소스 그룹 이름이 필요합니다.
배포 대상이 슬롯인 경우 기본값은 프로덕션 슬롯입니다. 다른 기존 슬롯 이름도 제공할 수 있습니다.
배포 대상이 Azure App Service Environment인 경우 슬롯 이름을 production그대로 두고 리소스 그룹 이름을 지정합니다.


resourceGroupName - 리소스 그룹
string; deployToSlotOrASE = true때 필요합니다.

배포 대상이 배포 슬롯 또는 Azure App Service Environment인 경우 리소스 그룹 이름이 필요합니다.
위에 표시된 Azure App Service를 포함하는 Azure 리소스 그룹을 지정합니다.


slotName - 슬롯
string; deployToSlotOrASE = true때 필요합니다. 기본값은 production입니다.

프로덕션 슬롯을 제외한 기존 슬롯을 지정합니다.


containers - 이미지 이름
입력 별칭: imageName. string;

정규화된 컨테이너 이미지 이름을 지정합니다. 예를 들어 /nginx:latest 또는 python:3.7.2-alpine/를 myregistry.azurecr.io.
다중 컨테이너 시나리오의 경우 여러 컨테이너 이미지 이름을 제공할 수 있습니다.


multicontainerConfigFile - 구성 파일
string;

Docker-Compose 파일의 경로입니다. 정규화된 경로이거나 기본 작업 디렉터리에 상대적인 경로여야 합니다.


containerCommand - 시작 명령
string;

시작 명령을 지정합니다.
다음은 그 예입니다.
dotnet run
dotnet filename.dll


앱 설정
string;

구문 -key 값(예: -Port 5000-RequestTimeout 5000-WEBSITE_TIME_ZONE)을 사용하여 웹앱 애플리케이션 설정을 편집합니다. 공백을 포함하는 값은 큰따옴표(예: "Eastern Standard Time")로 묶어야 합니다.


configurationStrings - 구성 설정
string;

구문 -key 값(예: -phpVersion 5.6 -linuxFxVersion: node|6.11)을 사용하여 웹앱 애플리케이션 설정을 편집합니다. 공백을 포함하는 값은 큰따옴표로 묶어야 합니다.


siteContainersConfig - 사이트 컨테이너 구성
string;

SiteContainers 배포에 대한 siteContainers-config JSON을 제공합니다.


작업 제어 옵션

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

출력 변수

이 작업은 다운스트림 단계, 작업 및 단계에서 사용할 수 있는 다음 출력 변수정의합니다.

AppServiceApplicationUrl
선택한 Azure App Service의 애플리케이션 URL입니다.

요구 사항

요구 사항 설명
파이프라인 유형 YAML, 클래식 빌드, 클래식 릴리스
다음에서 실행 에이전트, DeploymentGroup
요구 없음
기능 이 작업은 작업의 후속 작업에 대한 요구 사항을 충족하지 않습니다.
명령 제한 어느 것이든
settable 변수 어느 것이든
에이전트 버전 2.104.1 이상
작업 범주 배치하다