Service Fabric CLI를 사용하여 Service Fabric 클러스터에서 애플리케이션 제거
이 샘플 스크립트는 실행 중인 Service Fabric 애플리케이션 인스턴스를 삭제한 다음, 클러스터에서 애플리케이션 유형 및 버전의 등록을 취소합니다. 애플리케이션 인스턴스를 삭제하면 해당 애플리케이션과 연결된 실행 중인 모든 서비스 인스턴스도 삭제됩니다. 다음으로 애플리케이션 파일을 이미지 저장소에서 삭제합니다.
필요한 경우 Service Fabric CLI를 설치합니다.
샘플 스크립트
#!/bin/bash
# Select cluster
sfctl cluster select \
--endpoint http://svcfab1.westus2.cloudapp.azure.com:19080
# Delete the application
sfctl application delete \
--application-id svcfab_app \
--timeout 500
# Unprovision the application type
sfctl application unprovision \
--application-type-name svcfab_appType \
--application-type-version 1.0.0 \
--timeout 500
# Delete the application files from the image store
sfctl store delete \
--content-path myappfolder
다음 단계
자세한 내용은 Service Fabric CLI 설명서를 참조하세요.
Azure Service Fabric에 대한 추가 Service Fabric CLI 샘플은 Service Fabric CLI 샘플에서 확인할 수 있습니다.
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기