This sample script deletes a running Service Fabric application instance, then unregisters an application type and version from the cluster. Deleting the application instance also deletes all the running service instances associated with that application. Next, the application files are deleted from the image store.
If needed, install the 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 샘플에서 찾을 수 있습니다.