Create Azure service fabric cluster with ARM template and powershell

Create Azure service fabric cluster with ARM template and powershell

This step-by-step guide walks you through setting up a secure Azure Service Fabric cluster with scale set, storage accounts, load balancer in Azure by using Azure Resource Manager.

note – Key vault , Reverse proxy and vm scale set auto scaling is not included in this ARM and we will be uploading another ARM for the same.

Below are simple steps to do so..

Step 1 -> Log in to azure subscription  from powershell console / ise and select context

997-2

$pw = convertto-securestring -AsPlainText -Force -String "password" 
$cred = new-object -typename System.Management.Automation.PSCredential -argumentlist "user@az.com", $pw 
Login-AzureRmAccount -Credential $Cred

Step 2 -> download ARM template and parameter file from ->  https://gallery.technet.microsoft.com/Create-Azure-service-5bcb59c2

OR

Template  download  -> template.json

Parameter download -> parameters.json

Step 3 -> change template path in below command and execute the commands

999-2

#Select-AzureRmSubscription -SubscriptionId "982b17bd-3d27-4da0-7645-40aa55e8v6c7"
cls
$rg="asffunction"

Test-AzureRmResourceGroupDeployment -ResourceGroupName $rg -TemplateFile "C:\My\template1.json" -TemplateParameterFile "C:\My\parameters1.json"
$result = New-AzureRmResourceGroupDeployment -name $rg -ResourceGroupName $rg -TemplateFile "C:\My\template1.json" -TemplateParameterFile "C:\My\parameters1.json"
$result

 

(Visited 1,912 times, 1 visits today)
One Comment

Add a Comment

Facebook