title: How to change primary node type in service fabric?
body: <p>How would you go about changing the SKU of a VMSS (in particular the primary node type) without bringing the entire VMSS down?</p>
  
  <p>I tried setting upgrade mode to Manual</p>
  
  <pre><code>$vmss.UpgradePolicy.Mode = [Microsoft.Azure.Management.Compute.Models.UpgradeMode]::Manual
  Update-AzureRmVmss -ResourceGroupName $ResourceGroupName -Name  $VMScaleSetName -VirtualMachineScaleSet $vmss
  </code></pre>
  
  <p>Which just ended up with:</p>
  
  <blockquote>
    <p>Virtual Machine Scale Sets with extension
    Microsoft.Azure.ServiceFabric.ServiceFabricNode cannot be set to
    manual upgrade mode</p>
  </blockquote>
  
  <p>Ignoring that and just doing an upgrade</p>
  
  <pre><code>$vmss.Sku.Name = "Standard_A2_V2";
  Update-AzureRmVmss -ResourceGroupName $ResourceGroupName -Name $VMScaleSetName -VirtualMachineScaleSet $vmss
  </code></pre>
  
  <p>Instead brought down all nodes simultaneously. So what is the recommended approach for this?</p>