Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security & DevOps Insights

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form
Home » AWS/Azure/OpenShift » Create a Service Fabric Cluster using the Azure Stack Hub portal and the CLI

Create a Service Fabric Cluster using the Azure Stack Hub portal and the CLI

Posted on 22/10/202115/09/2023 Christian By Christian No Comments on Create a Service Fabric Cluster using the Azure Stack Hub portal and the CLI
Webp.net-resizeimage-4

The Azure Stack Hub Service Fabric is a distributed systems platform that makes it easy to package, deploy, and manage scalable and reliable microservices and containers. Service Fabric also addresses the significant challenges in developing and managing cloud-native applications. Developers and administrators can avoid complex infrastructure problems and focus on implementing mission-critical, demanding workloads that are scalable, reliable, and manageable. In this article, you will learn how to Create a Service Fabric Cluster using the Azure Stack Hub portal and the CLI.

Service Fabric represents the next-generation platform for building and managing these enterprise-class, tier-1, cloud-scale applications running in containers. Also here are some of my related guides: How to install and configure Ansible on Ubuntu, how to install Ansible on Windows with Cygwin, how to automate infrastructure deployments in the cloud with Ansible and Azure pipelines, how to install Kerberos packages in Windows via Cygwin, how to configure a remote server (windows) to Support Ansible, and how to deploy azure vmware solution private cloud.

Creating a new key vault

Before creating a Service Fabric cluster, it is necessary to create a key vault to store the certificates for the cluster. These certificates are used in Service Fabric to provide authentication and encryption to secure various aspects of a cluster and its applications.

  • Log in to the Azure portal.
  • In the favorites panel, select Create a resource.
  • Type Key Vault inside the search services and market place.
  • Select Key Vault and Create
Capture-13

Access policy tab

  • Enable Access to: – Select the first two check boxes to allow access to the key vault for virtual machines and the Azure Resource Manager.
  • Current Access Policies – Select +Add access policy to configure the permissions that a user, group or service principal has to the key vault.
Capture-33
  • Click Review + create.
  • On the Review + create tab, review the selections you’ve made and then click Create to start the deployment.

Adding a certificate to the key vault

Once the key vault has been deployed, navigate to it by clicking All services in the favorites panel, then selecting Key Vaults under the Security section.

  • Select your key vault from the list.
  • In the Settings section of the key vault blade, select Secrets.
  • On the Secrets page, click the + Generate/Import button.
  • In the Create a secret blade, enter the following information:
    • Upload options – Select the Certificate option.
    • Upload certificate – Select the certificate to upload.
    • Name – The name of the certificate to identify it within the Key Vault.
    • Activation Date – Specifies when the certificate will become active.
    • Expiration Date – Specifies when the certificate will become inactive.
    • Enabled – Indicates whether or not the secret data can be retrieved.
Capture-34
  • Click Create.
  • Repeat as necessary, depending on how many certificates you require.

Please see How To Use Azure Key Vault secrets in Azure Pipelines, How to “View RDP Configuration Settings: Connect automatically on an RDP session“, how to Fix cannot save to the location Windows\system32\Default.rdp, and how to Compact Virtual Hard Disks.

Gathering key vault and certificate information

During the configuration of the Service Fabric cluster, you must provide several details relating to the key vault and certificates.

  • Once you have deployed the key vault, navigate to it by clicking All Services in the favorites panel, then selecting Key Vaults under the Security section.
  • Select your key vault from the list.
  • In the Settings section of the key vault blade, select Properties.
  • Copy the Resource ID and store it for later use.
  • In the Settings section of the key vault blade, select Secrets.
  • On the Secrets blade, select the certificate you added in the previous section.
  • On the certificate’s blade, select the current version.
  • Copy the Secret Identifier.
  • Repeat for each certificate that you are going to use for the Service Fabric cluster.

Create a Service Fabric cluster

In the favorites panel, select Create a resource. In the search bar, search for Service Fabric Cluster. Select Service Fabric Cluster and click Create, and In the Basics blade, enter the following information and click OK:

- Subscription: Select your subscription.
- Resource group: Select your resource group
- Cluster Name: The name of your cluster.
- Location: Prefix for the name of each node (VM).
- Operating system: Size of the VM scale set for the primary node type.
- Username: For every additional node type, add an array with a count of the nodes in each node type. For example, if you want two additional node types with three nodes in each, enter 3,3 (separating the amount of nodes for each node type with a comma).
- Password: Type your password.
- Confirm Password: Confirm password.
- Initial VM scale set capacity: Select your vm scale set capacity.
- Node types: Choose your node types.
- Keyvault and primary certificate: Select your certificate
Capture-35

Please see How to decide whether you need Data Fabric or Data Lake?, How to back up an Azure VM from the VM settings, How to Secure a Web Server on a Windows VM in Azure using TLS/SSL Certificates Saved in Azure Key Vault, and how to setup Up your Amazon S3 Glacier and FastGlacier for Your Online Vault.

Creating a Service Fabric Cluster via the CLI

The Azure Service Fabric command-line interface (CLI) is a command-line utility for interacting with and managing Service Fabric entities. The Service Fabric CLI can be used with either Windows or Linux clusters. The Service Fabric CLI runs on any platform where Python is supported.

Let’s Create A Resource Group

Log in to the Azure portal. At the top bar, select the Cloud Shell, Choose Bash, and Type the following below:

dir
mkdir serviceFabric
az group create --name azsfgroup --location eastus
Capture-37

Let create a Service Fabric Cluster Using The CLI

Log in to the Azure portal. At the top bar, select the Cloud Shell, and choose Bash. Type the following below:

az sf cluster create --resource-group azsfgroup \
--location eastus \
--cluster-name azsjdsf \
--certificate-password aznotmyPass321^ \
--certificate-output-folder . \
--certificate-subject-name azsjdsf.eastus.cloudapp.azure.com \
--vault-name azsfnewvault \
--vault-resource-group azsfgroup \

Note: This will give an error as shown below. The reason is that the vm-password, user-name, KeyVault-name as not been set

Capture-39

Create a Key Vault using the Azure CLI

Log in to the Azure portal. At the top bar, select the Cloud Shell, Choose Bash, and Type the following below:

az keyvault create --name "azisbnewvault" --resource-group "azsfgroup" --location "EastUS"
Capture-40

Type the following below to Create a Service Fabric Cluster Using The CLi

az sf cluster create --resource-group azsfgroup \
--location eastus \
--cluster-name azsjdsf \
--certificate-password aznotmyPass321^ \
--certificate-output-folder . \
--certificate-subject-name azsjdsf.eastus.cloudapp.azure.com \
--vault-name azisbnewvault \
--vault-resource-group azsfgroup \
--vm-password aznotmyPass987^ \
--vm-user-name azsjdtestuser
Capture-41

This article provided a step-by-step overview of how to Create a Service Fabric Cluster using the Azure Stack Hub portal and the CLI.

Rate this post

Thank you for reading this post. Kindly share it with others.

  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Facebook (Opens in new window) Facebook
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Telegram (Opens in new window) Telegram
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on Bluesky (Opens in new window) Bluesky
  • Share on Threads (Opens in new window) Threads
  • Share on Nextdoor (Opens in new window) Nextdoor
AWS/Azure/OpenShift Tags:Azure

Post navigation

Previous Post: Windows 10 and Windows 11 updates will now expire for better performance
Next Post: Shell Scripting: How to Automate a Process in Linux

Related Posts

  • maxresdefault 2 6
    How to create an AMI from the Command line AWS/Azure/OpenShift
  • azure file share feature image
    Deploy Legacy App to Azure Fileshare AWS/Azure/OpenShift
  • How to create EC2 instance using Ansible
    How to launch an EC2 instance AWS/Azure/OpenShift
  • Webp.net resizeimage 5
    How to Improve Website Response Using Traffic Manager AWS/Azure/OpenShift
  • powershell01 3
    How to install and Update Azure PowerShell on your Windows PC AWS/Azure/OpenShift
  • AWS Budget
    How to manage costs with AWS Budgets AWS/Azure/OpenShift

More Related Articles

maxresdefault 2 6 How to create an AMI from the Command line AWS/Azure/OpenShift
azure file share feature image Deploy Legacy App to Azure Fileshare AWS/Azure/OpenShift
How to create EC2 instance using Ansible How to launch an EC2 instance AWS/Azure/OpenShift
Webp.net resizeimage 5 How to Improve Website Response Using Traffic Manager AWS/Azure/OpenShift
powershell01 3 How to install and Update Azure PowerShell on your Windows PC AWS/Azure/OpenShift
AWS Budget How to manage costs with AWS Budgets AWS/Azure/OpenShift

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

VEEAMLEGEND

vexpert-badge-stars-5

Virtual Background

GoogleNews

Categories

veeaam100

Veeam Vanguard

  • 1 WeXxkEX0JG3oB781HD8Hrg 1
    Command Prompt in Windows: Creating Volumes Guide Windows
  • Featured image MsTeams.
    How to share an app window on Microsoft Teams Windows
  • screenshot 2020 03 21 at 22.44.04
    How to use Hyper-V checkpoint to restore a VM to its previous state Virtualization
  • Active Directory Restore issue
    AD Recovery: Fix device ran into an issue with error 0xc00002e2 Windows Server
  • Docker error manifest
    Docker image OS “windows” cannot be used on this platform: No matching manifest for linux/amd64 in the manifest list entries from Microsoft Docker Registry Network | Monitoring
  • powershell logo
    Connecting to a remote server failed and WinRM cannot process the request: Error code 0x8009030e occurred while using Kerberos authentication, and a specified logon session does not exist Scripts
  • Group Policy Error
    How to Fix Failed to open the Group Policy Object on this Computer Windows
  • ext
    How to install a standalone DriveLock Encryption software on Windows Security | Vulnerability Scans and Assessment

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,821 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon

Tags

Active Directory Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Deployment Services Windows Server 2016

Copyright © 2025 TechDirectArchive

 

Loading Comments...
 

You must be logged in to post a comment.