Skip to content

Commit 57b2f64

Browse files
authored
Fix Az.ServiceFabric Syntax Errors (Azure#17790)
* Fix Az.ServiceFabric Syntax Errors * Fix Az.ServicesFabric Syntax Errors
1 parent 110ffa7 commit 57b2f64

11 files changed

+17
-17
lines changed

src/ServiceFabric/ServiceFabric/help/Add-AzServiceFabricManagedNodeTypeVMExtension.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ $clusterName = "testCluster"
5151
$NodeTypeName = "nt1"
5252
$settings = @{ "secretsManagementSettings" = @{ "pollingIntervalInS" = "3600"; "certificateStoreName" = "MY"; "certificateStoreLocation" = "LocalMachine"; "observedCertificates" = @( "https:/testkv.vault.azure.net/secrets/TestSecret" ) } };
5353
$protectedSettings = @{"testProgectedSetting" = $protectedSetting };
54-
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
54+
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
5555
```
5656

5757
This command adds an extension with settings and protected settings to the node type.

src/ServiceFabric/ServiceFabric/help/Add-AzServiceFabricNode.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Use **Add-AzServiceFabricNode** to add nodes to the specific node type. You just
2424

2525
### Example 1
2626
```powershell
27-
Add-AzServiceFabricNode -ResourceGroupName 'Group1' -Name 'Contoso01SFCluster' -NumberOfNodesToAdd 2 -NodeTypeName 'nt1'
27+
Add-AzServiceFabricNode -ResourceGroupName 'Group1' -Name 'Contoso01SFCluster' -NumberOfNodesToAdd 2 -NodeType 'nt1'
2828
```
2929

3030
This command will add 2 nodes to the node type 'n1'.

src/ServiceFabric/ServiceFabric/help/New-AzServiceFabricManagedClusterService.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,8 @@ $serviceName = "testService3"
127127
$serviceName2 = "testService2"
128128
$serviceTypeName = "testStateless"
129129
$statefulService = Get-AzServiceFabricManagedClusterService -ResourceGroupName $resourceGroupName -ClusterName $clusterName -ApplicationName $appName -Name $serviceName2
130-
$statefulServiceCorrelation = New-Object -TypeName "Microsoft.Azure.Commands.ServiceFabric.Models.PSServiceCorrelation" -ArgumentList @("AlignedAffinity, $statefulService.Id)
131-
New-AzServiceFabricManagedClusterService -ResourceGroupName $resourceGroupName -ClusterName $clusterName -ApplicationName $appName -Name $serviceName -Type $serviceTypeName -Stateless -InstanceCount 3 -PartitionSchemaSingleton -Correlation @($statefulServiceCorrelation) -Verbose
130+
$statefulServiceCorrelation = New-Object -TypeName "Microsoft.Azure.Commands.ServiceFabric.Models.PSServiceCorrelation" -ArgumentList @("AlignedAffinity", $statefulService.Id)
131+
New-AzServiceFabricManagedClusterService -ResourceGroupName $resourceGroupName -ClusterName $clusterName -ApplicationName $appName -Name $serviceName -Type $serviceTypeName -Stateless -InstanceCount 3 -PartitionSchemeSingleton -Correlation @($statefulServiceCorrelation) -Verbose
132132
```
133133

134134
This example will create a new stateless managed service "testService3".

src/ServiceFabric/ServiceFabric/help/New-AzServiceFabricService.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ $clusterName = "testCluster"
7474
$appName = "testApp"
7575
$serviceName = "testApp~testService1"
7676
$serviceTypeName = "testStateless"
77-
New-AzServiceFabricService -ResourceGroupName $resourceGroupName -ClusterName $clusterName -ApplicationName $appName -Name $serviceName -Type $serviceTypeName -Stateless -InstanceCount -1 -PartitionSchemaSingleton -Verbose
77+
New-AzServiceFabricService -ResourceGroupName $resourceGroupName -ClusterName $clusterName -ApplicationName $appName -Name $serviceName -Type $serviceTypeName -Stateless -InstanceCount -1 -PartitionSchemeSingleton -Verbose
7878
```
7979

8080
This example will create a new stateless service "testApp~testService1" with instance count -1 (on all the nodes).
@@ -86,7 +86,7 @@ $clusterName = "testCluster"
8686
$appName = "testApp"
8787
$serviceName = "testApp~testService2"
8888
$serviceTypeName = "testStatefulType"
89-
New-AzServiceFabricService -ResourceGroupName $resourceGroupName -ClusterName $clusterName -ApplicationName $appName -Name $serviceName -Type $serviceTypeName -Stateful -TargetReplicaSetSize 3 MinReplicaSetSize 5
89+
New-AzServiceFabricService -ResourceGroupName $resourceGroupName -ClusterName $clusterName -ApplicationName $appName -Name $serviceName -Type $serviceTypeName -Stateful -TargetReplicaSetSize 3 -MinReplicaSetSize 5
9090
```
9191

9292
This example will create a new stateful service "testApp~testService2" with a target of 5 nodes.

src/ServiceFabric/ServiceFabric/help/Set-AzServiceFabricManagedCluster.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Set cluster resource properties.
4343
```powershell
4444
$rgName = "testRG"
4545
$clusterName = "testCluster"
46-
Update-AzServiceFabricManagedCluster -ResourceGroupName $rgName -Name $clusterName -DnsName testnewdns -ClientConnectionPort 50000 -Verbose
46+
Set-AzServiceFabricManagedCluster -ResourceGroupName $rgName -Name $clusterName -DnsName testnewdns -ClientConnectionPort 50000 -Verbose
4747
```
4848

4949
Update dns name and client connection port for the cluster.

src/ServiceFabric/ServiceFabric/help/Set-AzServiceFabricManagedClusterApplication.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ $appName = "testApp"
7070
$version = "v2"
7171
$packageUrl = "https://sftestapp.blob.core.windows.net/sftestapp/testAppType_v2.sfpkg"
7272
New-AzServiceFabricManagedClusterApplicationTypeVersion -ResourceGroupName $resourceGroupName -ClusterName $clusterName -Name $appName -Version $version -PackageUrl $packageUrl -Verbose
73-
Set-AzServiceFabricManagedClusterApplication -ResourceGroupName $resourceGroupName -ClusterName $clusterName -ApplicationTypeVersion $version -Name $appName -ApplicationParameter @{key0="value0";key1=$null;key2="value2"} -Tags @{tag0="updated"}
73+
Set-AzServiceFabricManagedClusterApplication -ResourceGroupName $resourceGroupName -ClusterName $clusterName -ApplicationTypeVersion $version -Name $appName -ApplicationParameter @{key0="value0";key1=$null;key2="value2"} -Tag @{tag0="updated"}
7474
```
7575

7676
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.

src/ServiceFabric/ServiceFabric/help/Set-AzServiceFabricManagedClusterApplicationType.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ $resourceGroupName = "testRG"
4242
$clusterName = "testCluster"
4343
$appTypeName = "testAppType"
4444
$newTags = @{new="tags"}
45-
Set-AzServiceFabricManagedClusterApplicationType -ResourceGroupName $resourceGroupName -ClusterName $clusterName -Name $appTypeName -Tags $newTags -Verbose
45+
Set-AzServiceFabricManagedClusterApplicationType -ResourceGroupName $resourceGroupName -ClusterName $clusterName -Name $appTypeName -Tag $newTags -Verbose
4646
```
4747

4848
This example will update the managed application type "testAppType" tags.
@@ -54,7 +54,7 @@ $clusterName = "testCluster"
5454
$appTypeName = "testAppType"
5555
$newTags = @{new="tags"}
5656
$appType = Get-AzServiceFabricManagedClusterApplicationType -ResourceGroupName $resourceGroupName -ClusterName $clusterName -Name $appTypeName
57-
$appType | Set-AzServiceFabricManagedClusterApplicationType -Tags $newTags -Verbose
57+
$appType | Set-AzServiceFabricManagedClusterApplicationType -Tag $newTags -Verbose
5858
```
5959

6060
This example will update the managed application type "testAppType" tags.
@@ -63,7 +63,7 @@ This example will update the managed application type "testAppType" tags.
6363
```powershell
6464
$newTags = @{new="tags"}
6565
$resourceId = "/subscriptions/13ad2c84-84fa-4798-ad71-e70c07af873f/resourcegroups/testRG/providers/Microsoft.ServiceFabric/managedClusters/testCluster/applicationTypes/testAppType"
66-
Set-AzServiceFabricManagedClusterApplicationType -ResourceId $resourceId -Tags $newTags
66+
Set-AzServiceFabricManagedClusterApplicationType -ResourceId $resourceId -Tag $newTags
6767
```
6868

6969
This example will update the managed application type details with the ARM Resource ID specified.

src/ServiceFabric/ServiceFabric/help/Set-AzServiceFabricManagedClusterApplicationTypeVersion.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ $appTypeName = "testAppType"
4646
$version = "v1"
4747
$newTags = @{new="tags"}
4848
$packageUrl = "https://sftestapp.blob.core.windows.net/sftestapp/testAppType_v1.sfpkg"
49-
Set-AzServiceFabricManagedClusterApplicationTypeVersion -ResourceGroupName $resourceGroupName -ClusterName $clusterName -Name $appTypeName -Version $version -Tags $newTags -PackageUrl $packageUrl -Verbose
49+
Set-AzServiceFabricManagedClusterApplicationTypeVersion -ResourceGroupName $resourceGroupName -ClusterName $clusterName -Name $appTypeName -Version $version -Tag $newTags -PackageUrl $packageUrl -Verbose
5050
```
5151

5252
This example will update the managed application type version "v1" tags and packageUrl.
@@ -59,7 +59,7 @@ $appTypeName = "testAppType"
5959
$newTags = @{new="tags"}
6060
$packageUrl = "https://sftestapp.blob.core.windows.net/sftestapp/testAppType_v1.sfpkg"
6161
$appType = Get-AzServiceFabricManagedClusterApplicationTypeVersion -ResourceGroupName $resourceGroupName -ClusterName $clusterName -Name $appTypeName -Version $version
62-
$appType | Set-AzServiceFabricManagedClusterApplicationTypeVersion -Tags $newTags -PackageUrl $packageUrl -Verbose
62+
$appType | Set-AzServiceFabricManagedClusterApplicationTypeVersion -Tag $newTags -PackageUrl $packageUrl -Verbose
6363
```
6464

6565
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
6969
$newTags = @{new="tags"}
7070
$packageUrl = "https://sftestapp.blob.core.windows.net/sftestapp/testAppType_v1.sfpkg"
7171
$resourceId = "/subscriptions/13ad2c84-84fa-4798-ad71-e70c07af873f/resourcegroups/testRG/providers/Microsoft.ServiceFabric/managedClusters/testCluster/applicationTypes/testAppType/versions/v1"
72-
Set-AzServiceFabricManagedClusterApplicationTypeVersion -ResourceId $resourceId -Tags $newTags -PackageUrl $packageUrl -Verbose
72+
Set-AzServiceFabricManagedClusterApplicationTypeVersion -ResourceId $resourceId -Tag $newTags -PackageUrl $packageUrl -Verbose
7373
```
7474

7575
This example will update the managed application type details with the ARM Resource ID specified.

src/ServiceFabric/ServiceFabric/help/Set-AzServiceFabricManagedClusterService.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ $resourceGroupName = "testRG"
8686
$clusterName = "testCluster"
8787
$appName = "testApp"
8888
$serviceName = "testService1"
89-
Set-AzServiceFabricManagedClusterService -ResourceGroupName $resourceGroupName -ClusterName $clusterName -ApplicationName $appName -Name $serviceName -Stateful -TargetReplicaSetSize 3 MinReplicaSetSize 5 -Verbose
89+
Set-AzServiceFabricManagedClusterService -ResourceGroupName $resourceGroupName -ClusterName $clusterName -ApplicationName $appName -Name $serviceName -Stateful -TargetReplicaSetSize 3 -MinReplicaSetSize 5 -Verbose
9090
```
9191

9292
This example will update the managed service "testService1".

src/ServiceFabric/ServiceFabric/help/Update-AzServiceFabricApplication.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ This example will start an application upgrade to update the type version to "v2
6969
$resourceGroupName = "testRG"
7070
$clusterName = "testCluster"
7171
$appName = "testApp"
72-
Update-AzServiceFabricApplication -ResourceGroupName $resourceGroupName -ClusterName $clusterName -Name $appName -MinimumNodes 1 -MaximumNodes 4 -Verbose
72+
Update-AzServiceFabricApplication -ResourceGroupName $resourceGroupName -ClusterName $clusterName -Name $appName -MinimumNodeCount 1 -MaximumNodeCount 4 -Verbose
7373
```
7474

7575
This example will update the minimum and maximum number of nodes restriction for the application.

src/ServiceFabric/ServiceFabric/help/Update-AzServiceFabricNodeType.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ primary node type using '-IsPrimaryNodeType $false', another primary node type m
2525

2626
### Example 1
2727
```powershell
28-
Update-AzServiceFabricNodeType -ResourceGroupName 'Group1' -Name 'Contoso01SFCluster' -NodeTypeName 'nt1' -IsPrimaryNodeType $false
28+
Update-AzServiceFabricNodeType -ResourceGroupName 'Group1' -Name 'Contoso01SFCluster' -NodeType 'nt1' -IsPrimaryNodeType $false
2929
```
3030

3131
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.

0 commit comments

Comments
 (0)