AzureAppServiceManage@0 - v0 작업 관리 Azure App Service

시작, 중지, 다시 시작, 슬롯 교환, 슬롯 삭제, 사이트 확장 설치 또는 Azure App Service 대한 지속적인 모니터링을 사용하도록 설정합니다.

시작, 중지, 다시 시작, 슬롯 교환, 사이트 확장 설치 또는 Azure App Service 대한 지속적인 모니터링을 사용하도록 설정합니다.

Syntax

# Azure App Service manage v0
# Start, stop, restart, slot swap, slot delete, install site extensions or enable continuous monitoring for an Azure App Service.
- task: AzureAppServiceManage@0
  inputs:
    azureSubscription: # string. Alias: ConnectedServiceName. Required. Azure subscription. 
    #Action: 'Swap Slots' # 'Swap Slots' | 'Start Azure App Service' | 'Stop Azure App Service' | 'Restart Azure App Service' | 'Start Swap With Preview' | 'Complete Swap' | 'Cancel Swap' | 'Delete Slot' | 'Install Extensions' | 'Enable Continuous Monitoring' | 'Start all continuous webjobs' | 'Stop all continuous webjobs'. Action. Default: Swap Slots.
    WebAppName: # string. Required. App Service name. 
    #SpecifySlotOrASE: false # boolean. Alias: SpecifySlot. Optional. Use when Action != Swap Slots && Action != Delete Slot && Action != Start Swap With Preview && Action != Complete Swap && Action != Cancel Swap. Specify Slot or App Service Environment. Default: false.
    #ResourceGroupName: # string. Required when Action = Swap Slots || Action = Delete Slot || SpecifySlot = true || Action = Start Swap With Preview || Action = Complete Swap || Action = Cancel Swap. Resource group. 
    #SourceSlot: # string. Required when Action = Swap Slots || Action = Start Swap With Preview  || Action = Complete Swap. Source Slot. 
    #SwapWithProduction: true # boolean. Optional. Use when Action = Swap Slots || Action = Start Swap With Preview  || Action = Complete Swap. Swap with Production. Default: true.
    #TargetSlot: # string. Required when SwapWithProduction = false. Target Slot. 
    #PreserveVnet: false # boolean. Optional. Use when Action = Swap Slots || Action = Start Swap With Preview || Action = Complete Swap. Preserve Vnet. Default: false.
    #Slot: 'production' # string. Required when Action = Delete Slot || Action = Cancel Swap || SpecifySlot = true. Slot. Default: production.
    #ExtensionsList: # string. Required when Action = Install Extensions. Install Extensions. 
    #OutputVariable: # string. Optional. Use when Action = Install Extensions. Output variable. 
    #AppInsightsResourceGroupName: # string. Required when Action == Enable Continuous Monitoring. Resource Group name for Application Insights. 
    #ApplicationInsightsResourceName: # string. Required when Action == Enable Continuous Monitoring. Application Insights resource name. 
  # Advanced Settings
    #ApplicationInsightsWebTestName: # string. Optional. Use when Action == Enable Continuous Monitoring. Application Insights web test name.
# Azure App Service manage v0
# Start, stop, restart, slot swap, install site extensions or enable continuous monitoring for an Azure App Service.
- task: AzureAppServiceManage@0
  inputs:
    azureSubscription: # string. Alias: ConnectedServiceName. Required. Azure subscription. 
    #Action: 'Swap Slots' # 'Swap Slots' | 'Start Azure App Service' | 'Stop Azure App Service' | 'Restart Azure App Service' | 'Install Extensions' | 'Enable Continuous Monitoring' | 'Start all continuous webjobs' | 'Stop all continuous webjobs'. Action. Default: Swap Slots.
    WebAppName: # string. Required. App Service name. 
    #SpecifySlotOrASE: false # boolean. Alias: SpecifySlot. Optional. Use when Action != Swap Slots. Specify Slot or App Service Environment. Default: false.
    #ResourceGroupName: # string. Required when Action = Swap Slots || SpecifySlot = true. Resource group. 
    #SourceSlot: # string. Required when Action = Swap Slots. Source Slot. 
    #SwapWithProduction: true # boolean. Optional. Use when Action = Swap Slots. Swap with Production. Default: true.
    #TargetSlot: # string. Required when Action = Swap Slots && SwapWithProduction = false. Target Slot. 
    #PreserveVnet: false # boolean. Optional. Use when Action = Swap Slots. Preserve Vnet. Default: false.
    #Slot: 'production' # string. Required when Action != Swap Slots && SpecifySlot = true. Slot. Default: production.
    #ExtensionsList: # string. Required when Action = Install Extensions. Install Extensions. 
    #OutputVariable: # string. Optional. Use when Action = Install Extensions. Output variable. 
    #AppInsightsResourceGroupName: # string. Required when Action == Enable Continuous Monitoring. Resource Group name for Application Insights. 
    #ApplicationInsightsResourceName: # string. Required when Action == Enable Continuous Monitoring. Application Insights resource name. 
  # Advanced Settings
    #ApplicationInsightsWebTestName: # string. Optional. Use when Action == Enable Continuous Monitoring. Application Insights web test name.
# Azure App Service Manage v0
# Start, Stop, Restart, Slot swap, Install site extensions or Enable Continuous Monitoring for an Azure App Service.
- task: AzureAppServiceManage@0
  inputs:
    azureSubscription: # string. Alias: ConnectedServiceName. Required. Azure subscription. 
    #Action: 'Swap Slots' # 'Swap Slots' | 'Start Azure App Service' | 'Stop Azure App Service' | 'Restart Azure App Service' | 'Install Extensions' | 'Enable Continuous Monitoring' | 'Start all continuous webjobs' | 'Stop all continuous webjobs'. Action. Default: Swap Slots.
    WebAppName: # string. Required. App Service name. 
    #SpecifySlotOrASE: false # boolean. Alias: SpecifySlot. Optional. Use when Action != Swap Slots. Specify Slot or App Service Environment. Default: false.
    #ResourceGroupName: # string. Required when Action = Swap Slots || SpecifySlot = true. Resource group. 
    #SourceSlot: # string. Required when Action = Swap Slots. Source Slot. 
    #SwapWithProduction: true # boolean. Optional. Use when Action = Swap Slots. Swap with Production. Default: true.
    #TargetSlot: # string. Required when Action = Swap Slots && SwapWithProduction = false. Target Slot. 
    #PreserveVnet: false # boolean. Optional. Use when Action = Swap Slots. Preserve Vnet. Default: false.
    #Slot: 'production' # string. Required when Action != Swap Slots && SpecifySlot = true. Slot. Default: production.
    #ExtensionsList: # string. Required when Action = Install Extensions. Install Extensions. 
    #OutputVariable: # string. Optional. Use when Action = Install Extensions. Output variable. 
    #AppInsightsResourceGroupName: # string. Required when Action == Enable Continuous Monitoring. Resource Group name for Application Insights. 
    #ApplicationInsightsResourceName: # string. Required when Action == Enable Continuous Monitoring. Application Insights resource name. 
  # Advanced Settings
    #ApplicationInsightsWebTestName: # string. Optional. Use when Action == Enable Continuous Monitoring. Application Insights web test name.

입력

azureSubscription - Azure 구독
입력 별칭: ConnectedServiceName. string. 필수 요소.

Azure Resource Manager 구독을 선택합니다.


Action - 작업
string. 허용되는 값: Swap Slots, (App Service 시작), Stop Azure App Service (App Service 중지), Restart Azure App Service (App Service 다시 시작), Start Swap With Preview, Complete Swap (미리 보기로 전체 교환), Cancel Swap (미리 보기로 교환 취소), Delete Slot, Install Extensions, Enable Continuous Monitoring, , Start all continuous webjobs. Stop all continuous webjobsStart Azure App Service 기본값은 Swap Slots입니다.

선택 사항입니다. App Service 수행할 작업을 정의합니다. 시작, 중지, 다시 시작, 슬롯 교환, 미리 보기로 교환 시작, 미리 보기로 교환 완료, 미리 보기로 교환 취소, 사이트 확장 설치 또는 Azure App Service 대한 지속적인 모니터링을 사용하도록 설정할 수 있습니다.


Action - 작업
string. 허용되는 값: Swap Slots, Start Azure App Service (App Service 시작), Stop Azure App Service (App Service 중지), Restart Azure App Service (App Service 다시 시작), Install Extensions, , Enable Continuous Monitoring, Start all continuous webjobs. Stop all continuous webjobs 기본값은 Swap Slots입니다.

선택 사항입니다. App Service 수행할 작업을 정의합니다. 시작, 중지, 다시 시작, 슬롯 교환, 미리 보기로 교환 시작, 미리 보기로 교환 완료, 미리 보기로 교환 취소, 사이트 확장 설치 또는 Azure App Service 대한 지속적인 모니터링을 사용하도록 설정할 수 있습니다.


WebAppName - App Service 이름
string. 필수 요소.

기존 Azure App Service 이름을 입력하거나 선택합니다.


SpecifySlotOrASE - 슬롯 또는 App Service Environment 지정
입력 별칭: SpecifySlot. boolean. 선택 사항입니다. 를 사용하는 경우 Action != Swap Slots && Action != Delete Slot && Action != Start Swap With Preview && Action != Complete Swap && Action != Cancel Swap를 사용합니다. 기본값은 false입니다.


SpecifySlotOrASE - 슬롯 또는 App Service Environment 지정
입력 별칭: SpecifySlot. boolean. 선택 사항입니다. 를 사용하는 경우 Action != Swap Slots를 사용합니다. 기본값은 false입니다.


ResourceGroupName - 리소스 그룹
string. 필요한 경우 Action = Swap Slots || Action = Delete Slot || SpecifySlot = true || Action = Start Swap With Preview || Action = Complete Swap || Action = Cancel Swap입니다.

위에서 지정한 Azure App Service 포함하는 Azure 리소스 그룹을 입력하거나 선택합니다.


ResourceGroupName - 리소스 그룹
string. 필요한 경우 Action = Swap Slots || SpecifySlot = true입니다.

위에서 지정한 Azure App Service 포함하는 Azure 리소스 그룹을 입력하거나 선택합니다.


SourceSlot - 원본 슬롯
string. 필요한 경우 Action = Swap Slots || Action = Start Swap With Preview || Action = Complete Swap입니다.

인 경우 action == Swap Slots원본 슬롯으로 사용됩니다. 교환 작업은 대상 슬롯의 트래픽을 원본 슬롯으로 전달합니다.


SourceSlot - 원본 슬롯
string. 필요한 경우 Action = Swap Slots입니다.

때 원본 슬롯 action == Swap Slots으로 사용 됩니다. 교환 작업은 대상 슬롯의 트래픽을 원본 슬롯으로 전달합니다.


SwapWithProduction - 프로덕션과 교환
boolean. 선택 사항입니다. 를 사용하는 경우 Action = Swap Slots || Action = Start Swap With Preview || Action = Complete Swap를 사용합니다. 기본값은 true입니다.

원본 슬롯의 트래픽을 프로덕션으로 교환합니다. 이 옵션을 선택하지 않으면 원본 및 대상 슬롯 이름을 제공해야 합니다.


SwapWithProduction - 프로덕션과 교환
boolean. 선택 사항입니다. 를 사용하는 경우 Action = Swap Slots를 사용합니다. 기본값은 true입니다.

원본 슬롯의 트래픽을 프로덕션으로 교환합니다. 이 옵션을 선택하지 않으면 원본 및 대상 슬롯 이름을 제공해야 합니다.


TargetSlot - 대상 슬롯
string. 필요한 경우 SwapWithProduction = false입니다.

인 경우 action == Swap Slots대상 슬롯으로 를 사용합니다. 교환 작업은 대상 슬롯의 트래픽을 원본 슬롯으로 전달합니다.


TargetSlot - 대상 슬롯
string. 필요한 경우 Action = Swap Slots && SwapWithProduction = false입니다.

인 경우 action == Swap Slots대상 슬롯으로 를 사용합니다. 교환 작업은 대상 슬롯의 트래픽을 원본 슬롯으로 전달합니다.


PreserveVnet - Vnet 유지
boolean. 선택 사항입니다. 를 사용하는 경우 Action = Swap Slots || Action = Start Swap With Preview || Action = Complete Swap를 사용합니다. 기본값은 false입니다.

가상 네트워크 설정을 유지합니다.


PreserveVnet - Vnet 유지
boolean. 선택 사항입니다. 를 사용하는 경우 Action = Swap Slots를 사용합니다. 기본값은 false입니다.

가상 네트워크 설정을 유지합니다.


Slot - 슬롯
string. 필요한 경우 Action = Delete Slot || Action = Cancel Swap || SpecifySlot = true입니다. 기본값은 production입니다.


Slot - 슬롯
string. 필요한 경우 Action != Swap Slots && SpecifySlot = true입니다. 기본값은 production입니다.


ExtensionsList - 확장 설치
string. 필요한 경우 Action = Install Extensions입니다.

사이트 확장은 Microsoft Azure App Service 실행됩니다. 일련의 도구를 사이트 확장으로 설치하고 Azure App Service 더 잘 관리할 수 있습니다. 최신 변경 내용이 적용되도록 App Service 다시 시작합니다.


OutputVariable - 출력 변수
string. 선택 사항입니다. 를 사용하는 경우 Action = Install Extensions를 사용합니다.

선택한 확장의 로컬 설치 경로에 대한 변수 이름을 제공합니다.

이제 이 필드는 더 이상 사용되지 않으며 제거됩니다. LocalPathsForInstalledExtensions 후속 작업에서 출력 변수 섹션의 변수를 사용합니다.


AppInsightsResourceGroupName - Application Insights의 리소스 그룹 이름
string. 필요한 경우 Action == Enable Continuous Monitoring입니다.

Application Insights 리소스를 사용할 수 있는 리소스 그룹을 입력하거나 선택합니다.


ApplicationInsightsResourceName - Application Insights 리소스 이름
string. 필요한 경우 Action == Enable Continuous Monitoring입니다.

연속 모니터링 데이터가 기록되는 Application Insights 리소스를 선택합니다.

Application Insights 리소스가 여기에 나열되지 않고 새 리소스를 만들려는 경우 +새로 만들기를 선택합니다. Azure Portal 리소스를 만든 후 여기로 돌아와서 새로 고침을 선택합니다.


ApplicationInsightsWebTestName - Application Insights 웹 테스트 이름
string. 선택 사항입니다. 을 사용할 때 Action == Enable Continuous Monitoring사용합니다.

선택 사항입니다. 만들거나 업데이트하려는 Application Insights 웹 테스트 이름을 입력합니다.

웹 테스트 이름을 제공하지 않으면 기본 테스트 이름이 사용됩니다.


작업 제어 옵션

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

출력 변수

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

LocalPathsForInstalledExtensions
이 입력은 선택한 확장의 로컬 설치 경로입니다.

여러 확장을 선택하는 경우 출력은 선택한 각 확장에 대해 쉼표로 구분된 로컬 경로 목록입니다. 출력에는 확장 설치 필드에 표시되는 순서대로 경로가 나열됩니다.

설명

이 작업을 사용하여 시작, 중지, 다시 시작, 슬롯 교환, 미리 보기로 교환, 사이트 확장 설치 또는 Azure App Service 대한 지속적인 모니터링을 사용하도록 설정합니다.

교환하는 동안 어떻게 되나요?

두 슬롯(일반적으로 스테이징 슬롯에서 프로덕션 슬롯으로)을 교환할 때 프로덕션 슬롯이 항상 대상 슬롯인지 확인합니다. 이러한 방식으로 교환 작업은 프로덕션 앱에 영향을 주지 않습니다.

또한 교환(또는 미리 보기로 교환) 작업의 모든 시점에서 교환된 앱을 초기화하는 모든 작업은 원본 슬롯에서 발생합니다. 대상 슬롯은 교환의 성공 또는 실패 위치와 관계없이 원본 슬롯이 준비되고 준비되는 동안 온라인 상태로 유지됩니다.

자세한 내용은 Azure App Service에서 스테이징 환경 설정을 참조하세요.

요구 사항

요구 사항 Description
파이프라인 유형 YAML, 클래식 빌드, 클래식 릴리스
실행 중 에이전트, DeploymentGroup
요청 없음
Capabilities 이 작업은 작업의 후속 작업에 대한 요구를 충족하지 않습니다.
명령 제한 사항 모두
설정 가능한 변수 모두
에이전트 버전 1.102.0 이상
작업 범주 배포