Azure Service Fabric is a distributed systems platform that makes scalable and reliable microservices and containers easy to package, deploy, and manage. A Service Fabric cluster is a network-connected collection of virtual machines where you can deploy and manage your microservices.
We will explain and Required pre-requisites
- Create client certificate using Azure Key Vault
- Create a Service Fabric cluster
Create a Self-signed certificate using Key Vault
To create self-signed using Azure Key Vault:
- Go to Azure Portal > Select Key Vault and Create
![](https://v99fcf.n3cdn1.secureserver.net/wp-content/uploads/2022/10/20.10.2022_16.01.02_REC.png)
2. To generate self-signed and retrieve client certificate > go to Azure Key Vault
3. Left pane Objects > Select Certificates
![](https://v99fcf.n3cdn1.secureserver.net/wp-content/uploads/2022/10/20.10.2022_16.15.14_REC-1024x211.png)
4. Select Generate/Import
5. Create Certificate > Choose Generate >Use a unique name > Type of Certificate Authority (CA): Choose Self-signed certificate > Subject: CN=testselfsigned
Remaining other options leave as defaults
![](https://v99fcf.n3cdn1.secureserver.net/wp-content/uploads/2022/10/20.10.2022_16.20.04_REC.png)
6. Select Create
7. Once creation is completed, select it and choose the version under CURRENT VERSION
8. Select Download in PFX/PEM format and select Download.
![](https://v99fcf.n3cdn1.secureserver.net/wp-content/uploads/2022/10/20.10.2022_16.50.58_REC-1024x226.png)
9. Import the certificate to your computer’s certificate store so that you can access Service Fabric cluster.
10. Make sure Azure Virtual machines can retrieve certificates from Azure Key Vault > go to Azure Key Vault > From the left pane, Settings > Select Access policies
![](https://v99fcf.n3cdn1.secureserver.net/wp-content/uploads/2022/10/20.10.2022_16.57.00_REC-1024x426.png)
11. Choose Azure virtual Machines for deployment
12. Then Select, Apply
Create Service Fabric Cluster
- Go to Azure portal > Create a resource > Service Fabric Cluster
- On the Create Service Fabric Cluster page, provide below details
- Subscription: Azure Subscription name
- Resource group: Choose your existing resource group or Create a new resource group
- Cluster name: Provide unique cluster name
- Location: Choose same region as your Azure Key Vault
- Operating system: Choose WindowsServer 2019-Datacenter-with Containers from the dropdown
- Username: Enter username for cluster administrator
- Password: Enter password your chose
- Initial VM scale set capacity: Adjust the slider to 3
- Key vault and primary certificate: Select certificate
- Remaining other options as their defaults
![](https://v99fcf.n3cdn1.secureserver.net/wp-content/uploads/2022/10/20.10.2022_17.07.02_REC-1024x278.png)
![](https://v99fcf.n3cdn1.secureserver.net/wp-content/uploads/2022/10/20.10.2022_17.25.24_REC.png)
3. Select Review + create , Once validation complete, Select Create
View new Service Fabric cluster
- On your Service Fabric cluster, Overview page, find the Service Fabric Explorer link
![](https://v99fcf.n3cdn1.secureserver.net/wp-content/uploads/2022/10/20.10.2022_17.51.53_REC-1024x525.png)
2. When prompted for a certificate, choose the certificate you created, downloaded.
3. You’ll arrive the Service Fabric Explorer displays your cluster
![](https://v99fcf.n3cdn1.secureserver.net/wp-content/uploads/2022/10/20.10.2022_17.58.31_REC-1024x710.png)
For more details refer Server Fabric