You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/service-fabric/service-fabric-update-vmss-sku.md
+71-24Lines changed: 71 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,6 @@ author: v-rachiw
7
7
manager: navya
8
8
editor: ''
9
9
10
-
ms.assetid: 5441e7e0-d842-4398-b060-8c9d34b07c48
11
10
ms.service: service-fabric
12
11
ms.devlang: dotnet
13
12
ms.topic: article
@@ -17,20 +16,28 @@ ms.date: 05/08/2018
17
16
ms.author: v-rachiw
18
17
19
18
---
20
-
21
19
# Upgrade/migrate the SKU for Primary Node Type to higher SKU
22
20
23
21
This article describes how to upgrade/migrate the SKU of Primary Node Type of service fabric cluster to higher SKU using Azure PowerShell
24
22
25
-
## Add a new virtual machine scale set
23
+
## Add a new virtual machine scale set
24
+
25
+
Deploy a new virtual machine scale set and Load Balancer. The Service Fabric extension configuration (especially the node type) of new virtual machine scale set should be same as the old scale set you're trying to upgrade. Verify in the Service Fabric explorer that your new nodes are available
26
26
27
-
Deploy a new virtual machine scale set and Load Balancer. The Service Fabric extension configuration (especially the node type) of new virtual machine scale set should be same as the old scale set you're trying to upgrade. Verify in the SF explorer that your new nodes are available.
27
+
#### Azure PowerShell
28
28
29
-
### Azure PowerShell
30
29
The following example uses Azure PowerShell to deploy updated Resource Manager template *template.json* using the resource group named *myResourceGroup*:
The following command uses Azure Service Fabric CLI to deploy updated Resource Manager template *template.json* using the resource group named *myResourceGroup*:
38
+
39
+
```CLI
40
+
az group deployment create --resource-group myResourceGroup --template-file template.json --parameters parameters.json
34
41
```
35
42
36
43
Refer following example to modify json template to add new virtual machine scale set resource with Primary node type in existing cluster
@@ -211,43 +218,58 @@ Refer following example to modify json template to add new virtual machine scale
211
218
},
212
219
```
213
220
214
-
215
221
## Remove old virtual machine scale set
216
222
217
-
Disable VM instances of old virtual machine scale set with intent to remove node. This operation may take a long time to complete. You can disable all at once and they'll be queued. Wait until all nodes are disabled.
218
-
219
-
### Azure PowerShell
223
+
1. Disable VM instances of old virtual machine scale set with intent to remove node. This operation may take a long time to complete. You can disable all at once and they'll be queued. Wait until all nodes are disabled.
224
+
#### Azure PowerShell
220
225
The following example uses Azure Service Fabric PowerShell to disable node instance named *NTvm1_0* from old virtual machine scale set named *NTvm1*:
The following command uses Azure Service Fabric CLI to remove the complete scale set named *NTvm1* from resource group named *myResourceGroup*:
242
+
243
+
```CLI
244
+
az vmss delete --name NTvm1 --resource-group myResourceGroup
245
+
```
234
246
235
247
## Remove Load Balancer related to old scale set
236
248
237
249
Remove Load Balancer related to old scale set. This step will cause a brief period of downtime for the cluster
238
250
239
-
### Azure PowerShell
251
+
#### Azure PowerShell
252
+
240
253
The following example uses Azure PowerShell to remove Load balancer named *LB-myCluster-NTvm1* related to old scale set from resource group named *myResourceGroup*:
The following command uses Azure Service Fabric CLI to remove Load balancer named *LB-myCluster-NTvm1* related to old scale set from resource group named *myResourceGroup*:
262
+
263
+
```CLI
264
+
az network lb delete --name LB-myCluster-NTvm1 --resource-group myResourceGroup
265
+
```
266
+
246
267
## Remove Public IP related to old scale set
247
268
248
269
Store DNS settings of Public IP address related to old scale set into variable, then remove the Public IP address
249
270
250
-
### Azure PowerShell
271
+
#### Azure PowerShell
272
+
251
273
The following example uses Azure PowerShell to store DNS settings of Public IP address named *LBIP-myCluster-NTvm1* into variable and remove the IP address:
The following command uses Azure Service Fabric CLI to get DNS settings of Public IP address named *LBIP-myCluster-NTvm1* and remove the IP address:
285
+
286
+
```CLI
287
+
az network public-ip show --name LBIP-myCluster-NTvm1 --resource-group myResourceGroup
288
+
az network public-ip delete --name LBIP-myCluster-NTvm1 --resource-group myResourceGroup
289
+
```
290
+
260
291
## Update public IP address related to new scale set
261
292
262
293
Update DNS settings of Public IP address related to new scale set with DNS settings of Public IP address related to old scale set
263
294
264
-
### Azure PowerShell
295
+
####Azure PowerShell
265
296
The following example uses Azure PowerShell to update DNS settings of public IP address named *LBIP-myCluster-NTvm3* with DNS settings stored in variables in earlier step:
The following command uses Azure Service Fabric CLI to update DNS settings of public IP address named *LBIP-myCluster-NTvm3* with DNS settings of old public IP gathered in earlier step:
308
+
309
+
```CLI
310
+
az network public-ip update --name LBIP-myCluster-NTvm3 --resource-group myResourceGroup --dns-name myCluster
272
311
```
273
312
274
313
## Remove knowledge of service fabric node from FM
275
314
276
315
Notify Service Fabric that the nodes, which are down have been removed from the cluster. (Run this command for all VM instances of old virtual machine scale set)
277
316
(If the Durability level of the old virtual machine scale set was silver or gold, this step may not be needed. Since that step is done by the system automatically.)
278
317
279
-
### Azure PowerShell
318
+
####Azure PowerShell
280
319
The following example uses Azure Service Fabric PowerShell to notify service fabric that the node named *NTvm1_0* has been removed:
281
320
282
321
```powershell
283
322
Remove-ServiceFabricNodeState -NodeName NTvm1_0
284
-
```
323
+
```
324
+
325
+
#### Azure CLI
326
+
327
+
The following command uses Azure Service Fabric CLI to notify service fabric that the node named *NTvm1_0* has been removed:
0 commit comments