• EnglishEspañol日本語한국어Português
  • 로그인지금 시작하기

사용자의 편의를 위해 제공되는 기계 번역입니다.

영문본과 번역본이 일치하지 않는 경우 영문본이 우선합니다. 보다 자세한 내용은 이 페이지를 방문하시기 바랍니다.

문제 신고

Azure Web Apps 문제 해결: Azure Pipelines 관련 문제

문제

NewRelic.Azure.WebSites.Extension 을 사용하고 Azure Pipelines와 함께 배포된 Azure 웹 앱의 경우 newrelic 디렉터리가 삭제되므로 계측이 발생하지 않습니다. Azure Pipeline을 사용하여 추가 배포를 시도하면 NewRelic.Azure.WebSites.Extension 이(가) 이미 설치되어 있으므로 Azure Pipeline을 사용하여 확장을 다시 설치할 수 없음을 나타냅니다.

해결책

newrelic 폴더 보존을 제어하려면 WebDeploy에 대해 다음 옵션을 사용하십시오.

Basic solutions

Comments

skipAction=Delete WebDeploy 인수를 활성화합니다.

다음을 사용하여 newrelic 폴더와 같은 특정 폴더를 삭제에서 명시적으로 제외합니다.

Azure 파이프라인 UI:

다음 인수를 Azure App Service deploy -> Additional Deployment Options -> Additional Arguments

-skip:skipAction=Delete,objectName=dirPath,absolutePath='newrelic$' -skip:skipAction=Delete,objectName=dirPath,absolutePath='newrelic_core$'

또는

Pipeline.yml 파일:

WebDeploy 작업에 다음 input 을 추가합니다.

AdditionalArguments: '-skip:skipAction=Delete,objectName=dirPath,absolutePath=''newrelic$'' -skip:skipAction=Delete,objectName=dirPath,absolutePath=''newrelic_core$'''

Note 이스케이프된 작은따옴표.

원인

Azure Pipeline의 AzureRmWebAppDeployment 작업에 대해 Remove additional files at destination 옵션을 선택하면 newrelicnewrelic_core 디렉터리가 wwwroot 에서 삭제되지만 확장은 Azure에서 제거된 것으로 간주되지 않습니다. 결과적으로 다음에 파이프라인이 실행되고 확장을 설치하려고 시도하면 파이프라인에 Extension 'NewRelic.Azure.WebSites.Extension' already installed. 확장이 해당 폴더 없이 실행할 수 없다는 메시지가 표시되고 Azure는 여전히 설치된 것으로 간주하기 때문에 다시 설치하지 않습니다.

Copyright © 2024 New Relic Inc.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.