diff --git a/src/ServiceFabric/ServiceFabric/ChangeLog.md b/src/ServiceFabric/ServiceFabric/ChangeLog.md index 72c449fa3208..9e9e2e483762 100644 --- a/src/ServiceFabric/ServiceFabric/ChangeLog.md +++ b/src/ServiceFabric/ServiceFabric/ChangeLog.md @@ -22,6 +22,7 @@ * Add example to Set-AzServiceFabricSetting with SettingsSectionDescription param * Update application related cmdlets to call out that support is only for ARM deployed resources * Mark for deprecation cluster cert cmdlets Add-AzureRmServiceFabricClusterCertificate and Remove-AzureRmServiceFabricClusterCertificate +* Fix Add-AzServiceFabricNodeType. Add node type to service fabric cluster before creating virtual machine scale set. ## Version 2.2.0 diff --git a/src/ServiceFabric/ServiceFabric/Commands/AddAzureRmServiceFabricNodeType.cs b/src/ServiceFabric/ServiceFabric/Commands/AddAzureRmServiceFabricNodeType.cs index f518cab019e3..2833c6196051 100644 --- a/src/ServiceFabric/ServiceFabric/Commands/AddAzureRmServiceFabricNodeType.cs +++ b/src/ServiceFabric/ServiceFabric/Commands/AddAzureRmServiceFabricNodeType.cs @@ -124,8 +124,8 @@ public override void ExecuteCmdlet() { var cluster = GetCurrentCluster(); this.diagnosticsStorageName = cluster.DiagnosticsStorageAccountConfig.StorageAccountName; - CreateVmss(cluster.ClusterId); var pscluster = AddNodeTypeToSfrp(cluster); + CreateVmss(cluster.ClusterId); WriteObject(pscluster, true); } }