Nota
O acesso a esta página requer autorização. Podes tentar iniciar sessão ou mudar de diretório.
O acesso a esta página requer autorização. Podes tentar mudar de diretório.
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.
Exemplo de 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
Próximos passos
Para obter mais informações, consulte a documentação da CLI do Service Fabric.
Exemplos adicionais de CLI do Service Fabric para o Azure Service Fabric podem ser encontrados nos exemplos de CLI do Service Fabric.