diff --git a/src/ServiceFabric/ServiceFabric/help/Add-AzServiceFabricManagedNodeTypeVMExtension.md b/src/ServiceFabric/ServiceFabric/help/Add-AzServiceFabricManagedNodeTypeVMExtension.md index 436838c7045e..9d17869d6e63 100644 --- a/src/ServiceFabric/ServiceFabric/help/Add-AzServiceFabricManagedNodeTypeVMExtension.md +++ b/src/ServiceFabric/ServiceFabric/help/Add-AzServiceFabricManagedNodeTypeVMExtension.md @@ -51,7 +51,7 @@ $clusterName = "testCluster" $NodeTypeName = "nt1" $settings = @{ "secretsManagementSettings" = @{ "pollingIntervalInS" = "3600"; "certificateStoreName" = "MY"; "certificateStoreLocation" = "LocalMachine"; "observedCertificates" = @( "https:/testkv.vault.azure.net/secrets/TestSecret" ) } }; $protectedSettings = @{"testProgectedSetting" = $protectedSetting }; -Add-AzServiceFabricManagedNodeTypeVMExtension -ResourceGroupName $rgName -ClusterName $clusterName -NodeTypeName $NodeTypeName -Name KeyVaultForWindows -Publisher Microsoft.Azure.KeyVault -Type KeyVaultForWindows -TypeHandlerVersion 1.0 -Settings $settings -ProtectedSettings $protectedSettings -AutoUpgradeMinorVersion -Verbose +Add-AzServiceFabricManagedNodeTypeVMExtension -ResourceGroupName $rgName -ClusterName $clusterName -NodeTypeName $NodeTypeName -Name KeyVaultForWindows -Publisher Microsoft.Azure.KeyVault -Type KeyVaultForWindows -TypeHandlerVersion 1.0 -Setting $settings -ProtectedSetting $protectedSettings -AutoUpgradeMinorVersion -Verbose ``` This command adds an extension with settings and protected settings to the node type. diff --git a/src/ServiceFabric/ServiceFabric/help/Add-AzServiceFabricNode.md b/src/ServiceFabric/ServiceFabric/help/Add-AzServiceFabricNode.md index 587845854620..dc0658018abc 100644 --- a/src/ServiceFabric/ServiceFabric/help/Add-AzServiceFabricNode.md +++ b/src/ServiceFabric/ServiceFabric/help/Add-AzServiceFabricNode.md @@ -24,7 +24,7 @@ Use **Add-AzServiceFabricNode** to add nodes to the specific node type. You just ### Example 1 ```powershell -Add-AzServiceFabricNode -ResourceGroupName 'Group1' -Name 'Contoso01SFCluster' -NumberOfNodesToAdd 2 -NodeTypeName 'nt1' +Add-AzServiceFabricNode -ResourceGroupName 'Group1' -Name 'Contoso01SFCluster' -NumberOfNodesToAdd 2 -NodeType 'nt1' ``` This command will add 2 nodes to the node type 'n1'. diff --git a/src/ServiceFabric/ServiceFabric/help/New-AzServiceFabricManagedClusterService.md b/src/ServiceFabric/ServiceFabric/help/New-AzServiceFabricManagedClusterService.md index 91047c310b7d..8b18b63b2bbd 100644 --- a/src/ServiceFabric/ServiceFabric/help/New-AzServiceFabricManagedClusterService.md +++ b/src/ServiceFabric/ServiceFabric/help/New-AzServiceFabricManagedClusterService.md @@ -127,8 +127,8 @@ $serviceName = "testService3" $serviceName2 = "testService2" $serviceTypeName = "testStateless" $statefulService = Get-AzServiceFabricManagedClusterService -ResourceGroupName $resourceGroupName -ClusterName $clusterName -ApplicationName $appName -Name $serviceName2 -$statefulServiceCorrelation = New-Object -TypeName "Microsoft.Azure.Commands.ServiceFabric.Models.PSServiceCorrelation" -ArgumentList @("AlignedAffinity, $statefulService.Id) -New-AzServiceFabricManagedClusterService -ResourceGroupName $resourceGroupName -ClusterName $clusterName -ApplicationName $appName -Name $serviceName -Type $serviceTypeName -Stateless -InstanceCount 3 -PartitionSchemaSingleton -Correlation @($statefulServiceCorrelation) -Verbose +$statefulServiceCorrelation = New-Object -TypeName "Microsoft.Azure.Commands.ServiceFabric.Models.PSServiceCorrelation" -ArgumentList @("AlignedAffinity", $statefulService.Id) +New-AzServiceFabricManagedClusterService -ResourceGroupName $resourceGroupName -ClusterName $clusterName -ApplicationName $appName -Name $serviceName -Type $serviceTypeName -Stateless -InstanceCount 3 -PartitionSchemeSingleton -Correlation @($statefulServiceCorrelation) -Verbose ``` This example will create a new stateless managed service "testService3". diff --git a/src/ServiceFabric/ServiceFabric/help/New-AzServiceFabricService.md b/src/ServiceFabric/ServiceFabric/help/New-AzServiceFabricService.md index 5d9d09a51e93..9e9ba5e3acf2 100644 --- a/src/ServiceFabric/ServiceFabric/help/New-AzServiceFabricService.md +++ b/src/ServiceFabric/ServiceFabric/help/New-AzServiceFabricService.md @@ -74,7 +74,7 @@ $clusterName = "testCluster" $appName = "testApp" $serviceName = "testApp~testService1" $serviceTypeName = "testStateless" -New-AzServiceFabricService -ResourceGroupName $resourceGroupName -ClusterName $clusterName -ApplicationName $appName -Name $serviceName -Type $serviceTypeName -Stateless -InstanceCount -1 -PartitionSchemaSingleton -Verbose +New-AzServiceFabricService -ResourceGroupName $resourceGroupName -ClusterName $clusterName -ApplicationName $appName -Name $serviceName -Type $serviceTypeName -Stateless -InstanceCount -1 -PartitionSchemeSingleton -Verbose ``` This example will create a new stateless service "testApp~testService1" with instance count -1 (on all the nodes). @@ -86,7 +86,7 @@ $clusterName = "testCluster" $appName = "testApp" $serviceName = "testApp~testService2" $serviceTypeName = "testStatefulType" -New-AzServiceFabricService -ResourceGroupName $resourceGroupName -ClusterName $clusterName -ApplicationName $appName -Name $serviceName -Type $serviceTypeName -Stateful -TargetReplicaSetSize 3 MinReplicaSetSize 5 +New-AzServiceFabricService -ResourceGroupName $resourceGroupName -ClusterName $clusterName -ApplicationName $appName -Name $serviceName -Type $serviceTypeName -Stateful -TargetReplicaSetSize 3 -MinReplicaSetSize 5 ``` This example will create a new stateful service "testApp~testService2" with a target of 5 nodes. diff --git a/src/ServiceFabric/ServiceFabric/help/Set-AzServiceFabricManagedCluster.md b/src/ServiceFabric/ServiceFabric/help/Set-AzServiceFabricManagedCluster.md index 831528ee02ec..1463070c7113 100644 --- a/src/ServiceFabric/ServiceFabric/help/Set-AzServiceFabricManagedCluster.md +++ b/src/ServiceFabric/ServiceFabric/help/Set-AzServiceFabricManagedCluster.md @@ -43,7 +43,7 @@ Set cluster resource properties. ```powershell $rgName = "testRG" $clusterName = "testCluster" -Update-AzServiceFabricManagedCluster -ResourceGroupName $rgName -Name $clusterName -DnsName testnewdns -ClientConnectionPort 50000 -Verbose +Set-AzServiceFabricManagedCluster -ResourceGroupName $rgName -Name $clusterName -DnsName testnewdns -ClientConnectionPort 50000 -Verbose ``` Update dns name and client connection port for the cluster. diff --git a/src/ServiceFabric/ServiceFabric/help/Set-AzServiceFabricManagedClusterApplication.md b/src/ServiceFabric/ServiceFabric/help/Set-AzServiceFabricManagedClusterApplication.md index 71d71fdc09ae..eb5b06d0e171 100644 --- a/src/ServiceFabric/ServiceFabric/help/Set-AzServiceFabricManagedClusterApplication.md +++ b/src/ServiceFabric/ServiceFabric/help/Set-AzServiceFabricManagedClusterApplication.md @@ -70,7 +70,7 @@ $appName = "testApp" $version = "v2" $packageUrl = "https://sftestapp.blob.core.windows.net/sftestapp/testAppType_v2.sfpkg" New-AzServiceFabricManagedClusterApplicationTypeVersion -ResourceGroupName $resourceGroupName -ClusterName $clusterName -Name $appName -Version $version -PackageUrl $packageUrl -Verbose -Set-AzServiceFabricManagedClusterApplication -ResourceGroupName $resourceGroupName -ClusterName $clusterName -ApplicationTypeVersion $version -Name $appName -ApplicationParameter @{key0="value0";key1=$null;key2="value2"} -Tags @{tag0="updated"} +Set-AzServiceFabricManagedClusterApplication -ResourceGroupName $resourceGroupName -ClusterName $clusterName -ApplicationTypeVersion $version -Name $appName -ApplicationParameter @{key0="value0";key1=$null;key2="value2"} -Tag @{tag0="updated"} ``` This example will start an managed application upgrade to update the type version to "v2" which was created with **New-AzServiceFabricManagedClusterApplicationTypeVersion**. The application parameters used should be defined in the application manifest. diff --git a/src/ServiceFabric/ServiceFabric/help/Set-AzServiceFabricManagedClusterApplicationType.md b/src/ServiceFabric/ServiceFabric/help/Set-AzServiceFabricManagedClusterApplicationType.md index 4ca19a3fd98e..376a39151cc7 100644 --- a/src/ServiceFabric/ServiceFabric/help/Set-AzServiceFabricManagedClusterApplicationType.md +++ b/src/ServiceFabric/ServiceFabric/help/Set-AzServiceFabricManagedClusterApplicationType.md @@ -42,7 +42,7 @@ $resourceGroupName = "testRG" $clusterName = "testCluster" $appTypeName = "testAppType" $newTags = @{new="tags"} -Set-AzServiceFabricManagedClusterApplicationType -ResourceGroupName $resourceGroupName -ClusterName $clusterName -Name $appTypeName -Tags $newTags -Verbose +Set-AzServiceFabricManagedClusterApplicationType -ResourceGroupName $resourceGroupName -ClusterName $clusterName -Name $appTypeName -Tag $newTags -Verbose ``` This example will update the managed application type "testAppType" tags. @@ -54,7 +54,7 @@ $clusterName = "testCluster" $appTypeName = "testAppType" $newTags = @{new="tags"} $appType = Get-AzServiceFabricManagedClusterApplicationType -ResourceGroupName $resourceGroupName -ClusterName $clusterName -Name $appTypeName -$appType | Set-AzServiceFabricManagedClusterApplicationType -Tags $newTags -Verbose +$appType | Set-AzServiceFabricManagedClusterApplicationType -Tag $newTags -Verbose ``` This example will update the managed application type "testAppType" tags. @@ -63,7 +63,7 @@ This example will update the managed application type "testAppType" tags. ```powershell $newTags = @{new="tags"} $resourceId = "/subscriptions/13ad2c84-84fa-4798-ad71-e70c07af873f/resourcegroups/testRG/providers/Microsoft.ServiceFabric/managedClusters/testCluster/applicationTypes/testAppType" -Set-AzServiceFabricManagedClusterApplicationType -ResourceId $resourceId -Tags $newTags +Set-AzServiceFabricManagedClusterApplicationType -ResourceId $resourceId -Tag $newTags ``` This example will update the managed application type details with the ARM Resource ID specified. diff --git a/src/ServiceFabric/ServiceFabric/help/Set-AzServiceFabricManagedClusterApplicationTypeVersion.md b/src/ServiceFabric/ServiceFabric/help/Set-AzServiceFabricManagedClusterApplicationTypeVersion.md index 69d41efcb121..38b5bdefae7e 100644 --- a/src/ServiceFabric/ServiceFabric/help/Set-AzServiceFabricManagedClusterApplicationTypeVersion.md +++ b/src/ServiceFabric/ServiceFabric/help/Set-AzServiceFabricManagedClusterApplicationTypeVersion.md @@ -46,7 +46,7 @@ $appTypeName = "testAppType" $version = "v1" $newTags = @{new="tags"} $packageUrl = "https://sftestapp.blob.core.windows.net/sftestapp/testAppType_v1.sfpkg" -Set-AzServiceFabricManagedClusterApplicationTypeVersion -ResourceGroupName $resourceGroupName -ClusterName $clusterName -Name $appTypeName -Version $version -Tags $newTags -PackageUrl $packageUrl -Verbose +Set-AzServiceFabricManagedClusterApplicationTypeVersion -ResourceGroupName $resourceGroupName -ClusterName $clusterName -Name $appTypeName -Version $version -Tag $newTags -PackageUrl $packageUrl -Verbose ``` This example will update the managed application type version "v1" tags and packageUrl. @@ -59,7 +59,7 @@ $appTypeName = "testAppType" $newTags = @{new="tags"} $packageUrl = "https://sftestapp.blob.core.windows.net/sftestapp/testAppType_v1.sfpkg" $appType = Get-AzServiceFabricManagedClusterApplicationTypeVersion -ResourceGroupName $resourceGroupName -ClusterName $clusterName -Name $appTypeName -Version $version -$appType | Set-AzServiceFabricManagedClusterApplicationTypeVersion -Tags $newTags -PackageUrl $packageUrl -Verbose +$appType | Set-AzServiceFabricManagedClusterApplicationTypeVersion -Tag $newTags -PackageUrl $packageUrl -Verbose ``` This example will update the managed application type version "v1" tags and packageUrl. @@ -69,7 +69,7 @@ This example will update the managed application type version "v1" tags and pack $newTags = @{new="tags"} $packageUrl = "https://sftestapp.blob.core.windows.net/sftestapp/testAppType_v1.sfpkg" $resourceId = "/subscriptions/13ad2c84-84fa-4798-ad71-e70c07af873f/resourcegroups/testRG/providers/Microsoft.ServiceFabric/managedClusters/testCluster/applicationTypes/testAppType/versions/v1" -Set-AzServiceFabricManagedClusterApplicationTypeVersion -ResourceId $resourceId -Tags $newTags -PackageUrl $packageUrl -Verbose +Set-AzServiceFabricManagedClusterApplicationTypeVersion -ResourceId $resourceId -Tag $newTags -PackageUrl $packageUrl -Verbose ``` This example will update the managed application type details with the ARM Resource ID specified. diff --git a/src/ServiceFabric/ServiceFabric/help/Set-AzServiceFabricManagedClusterService.md b/src/ServiceFabric/ServiceFabric/help/Set-AzServiceFabricManagedClusterService.md index eefa24651987..f6e5397d5e29 100644 --- a/src/ServiceFabric/ServiceFabric/help/Set-AzServiceFabricManagedClusterService.md +++ b/src/ServiceFabric/ServiceFabric/help/Set-AzServiceFabricManagedClusterService.md @@ -86,7 +86,7 @@ $resourceGroupName = "testRG" $clusterName = "testCluster" $appName = "testApp" $serviceName = "testService1" -Set-AzServiceFabricManagedClusterService -ResourceGroupName $resourceGroupName -ClusterName $clusterName -ApplicationName $appName -Name $serviceName -Stateful -TargetReplicaSetSize 3 MinReplicaSetSize 5 -Verbose +Set-AzServiceFabricManagedClusterService -ResourceGroupName $resourceGroupName -ClusterName $clusterName -ApplicationName $appName -Name $serviceName -Stateful -TargetReplicaSetSize 3 -MinReplicaSetSize 5 -Verbose ``` This example will update the managed service "testService1". diff --git a/src/ServiceFabric/ServiceFabric/help/Update-AzServiceFabricApplication.md b/src/ServiceFabric/ServiceFabric/help/Update-AzServiceFabricApplication.md index a816fdd3e95f..c45d6e469b64 100644 --- a/src/ServiceFabric/ServiceFabric/help/Update-AzServiceFabricApplication.md +++ b/src/ServiceFabric/ServiceFabric/help/Update-AzServiceFabricApplication.md @@ -69,7 +69,7 @@ This example will start an application upgrade to update the type version to "v2 $resourceGroupName = "testRG" $clusterName = "testCluster" $appName = "testApp" -Update-AzServiceFabricApplication -ResourceGroupName $resourceGroupName -ClusterName $clusterName -Name $appName -MinimumNodes 1 -MaximumNodes 4 -Verbose +Update-AzServiceFabricApplication -ResourceGroupName $resourceGroupName -ClusterName $clusterName -Name $appName -MinimumNodeCount 1 -MaximumNodeCount 4 -Verbose ``` This example will update the minimum and maximum number of nodes restriction for the application. diff --git a/src/ServiceFabric/ServiceFabric/help/Update-AzServiceFabricNodeType.md b/src/ServiceFabric/ServiceFabric/help/Update-AzServiceFabricNodeType.md index 0a7687a46ad8..36b781130fb2 100644 --- a/src/ServiceFabric/ServiceFabric/help/Update-AzServiceFabricNodeType.md +++ b/src/ServiceFabric/ServiceFabric/help/Update-AzServiceFabricNodeType.md @@ -25,7 +25,7 @@ primary node type using '-IsPrimaryNodeType $false', another primary node type m ### Example 1 ```powershell -Update-AzServiceFabricNodeType -ResourceGroupName 'Group1' -Name 'Contoso01SFCluster' -NodeTypeName 'nt1' -IsPrimaryNodeType $false +Update-AzServiceFabricNodeType -ResourceGroupName 'Group1' -Name 'Contoso01SFCluster' -NodeType 'nt1' -IsPrimaryNodeType $false ``` This command will update NodeType 'nt1' to stop acting as a primary node type. It may be done after adding another primary node type, in order to migrate seed nodes and system services.