title | description | services | author | manager | ms.service | ms.topic | ms.date | ms.author | ms.custom |
---|---|---|---|---|---|---|---|---|---|
Azure CLI Script Deploy Sample |
How to create a secure Service Fabric Linux cluster in Azure via the Azure CLI. |
service-fabric |
athinanthny |
chackdan |
service-fabric |
sample |
01/18/2018 |
atsenthi |
mvc, devx-track-azurecli, linux-related-content |
This command creates a self-signed certificate, adds it to a key vault and downloads the certificate locally. The new certificate is used to secure the cluster when it deploys. You can also use an existing certificate instead of creating a new one. Either way, the certificate's subject name must match the domain that you use to access the Service Fabric cluster. This match is required to provide TLS for the cluster's HTTPS management endpoints and Service Fabric Explorer. You cannot obtain a TLS/SSL certificate from a CA for the .cloudapp.azure.com
domain. You must obtain a custom domain name for your cluster. When you request a certificate from a CA, the certificate's subject name must match the custom domain name that you use for your cluster.
If needed, install the Azure CLI.
[!code-shmain]
After the script sample has been run, the following command can be used to remove the resource group, cluster, and all related resources.
ResourceGroupName = "aztestclustergroup"
az group delete --name $ResourceGroupName
This script uses the following commands. Each command in the table links to command specific documentation.
Command | Notes |
---|---|
az sf cluster create | Creates a new Service Fabric cluster. |
Additional Service Fabric CLI samples for Azure Service Fabric can be found in the Service Fabric CLI samples.