List applications running in a Service Fabric cluster
This sample script connects to a Service Fabric cluster and then lists all of the provisioned applications.
Important
There are two CLI utilities used to interact with Service Fabric. Azure CLI is used to manage Azure resources, such as an Azure-hosted Service Fabric cluster. Service Fabric CLI is used to directly connect to the Service Fabric cluster (regardless of where it's hosted) and manage the cluster, applications, and services.
Sample script
#!/bin/bash
# Select cluster
sfctl cluster select \
--endpoint http://svcfab1.westus2.cloudapp.azure.com:19080
# Retrieve all applications from the cluster
sfctl application list
Next steps
For more information, see the Service Fabric CLI documentation.
Additional Service Fabric CLI samples for Azure Service Fabric can be found in the Service Fabric CLI samples.