How to add a new node type to a deployed Service Fabric Cluster which doesn't have an ARM template

Anish Vijay 21 Reputation points Microsoft Employee

I'm looking to add an additional primary node type for an Azure Service Fabric cluster that was created by the Azure Portal.

Going through this documentation - ,
I found that the recommendation is to do it via PowerShell and an ARM template.

However, my problem is that I currently do not have an ARM template for the cluster in question. Can I get it from somewhere in the Portal or any other means?

To give more context, the reason I'm doing this is to deploy the cluster across multiple Availability Zones as recommended here -

Azure Service Fabric
Azure Service Fabric
An Azure service that is used to develop microservices and orchestrate containers on Windows and Linux.
253 questions
0 comments No comments
{count} votes

Accepted answer
  1. prmanhas-MSFT 17,891 Reputation points Microsoft Employee

    @Anish Vijay Apologies for the delay in response and all the inconvenience caused because of the issue.

    Firstly as per your user case I would recommend you to follow this article since it will best fit your requirement.

    Now in order to get the template first login to your Azure portal and search for Resource Groups in Search Bar which will list all the resource groups in selected subscription. Once you have it you can search for the Resource Group in which your Service Fabric Cluster is deployed:


    If you are not sure about Resource Group in which cluster is deployed you can find the information in Service Fabric overview page and can directly search for the resource group as well in Search Bar:


    Once inside the resource group click on deployment which will list all deployment in the resource group and then search for service fabric in Search Bar:



    Click on the deployment you will get a page as below and now select the template. This is the template for Service Fabric and you can deploy or make changes accordingly:


    You can use Azure CLI as well to download the template using below command. More info here

     $resourceGroupName = Read-Host -Prompt "Enter the Resource Group name"  
    Export-AzResourceGroup -ResourceGroupName $resourceGroupName  

    To export one resource, pass that resource ID.

    $resource = Get-AzResource `  
      -ResourceGroupName <resource-group-name> `  
      -ResourceName <resource-name> `  
      -ResourceType <resource-type>  
    Export-AzResourceGroup `  
      -ResourceGroupName <resource-group-name> `  
      -Resource $resource.ResourceId  

    Hope it helps!!!

    Please "Accept as Answer" if it helped so it can help others in community looking for help on similar topics

    0 comments No comments

0 additional answers

Sort by: Most helpful