question

AnishVijay-0822 avatar image
0 Votes"
AnishVijay-0822 asked prmanhas-MSFT answered

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

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 - https://docs.microsoft.com/en-us/azure/service-fabric/virtual-machine-scale-set-scale-node-type-scale-out ,
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 - https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-cross-availability-zones

azure-service-fabric
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

prmanhas-MSFT avatar image
0 Votes"
prmanhas-MSFT answered

@AnishVijay-0822 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:

127039-image.png

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:

127131-image.png

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:

127119-image.png

127057-image.png

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:


127058-image.png

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



image.png (37.4 KiB)
image.png (102.5 KiB)
image.png (190.4 KiB)
image.png (104.3 KiB)
image.png (161.3 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.