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

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

In the event of any inconsistency between the English version and the translated version, the English versionwill take priority. Please visit this page for more information.

문제 신고

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

문제

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

해결책

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

기본 솔루션

코멘트

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

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

Azure 파이프라인 UI:

Azure App Service 배포 -> 추가 배포 옵션 -> 추가 인수 에 이러한 인수를 추가합니다.

-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$'''

이스케이프된 작은 따옴표에 유의 하십시오.

원인

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.