Skip to content

Commit 353046b

Browse files
authored
Fix Az.HDInsight Syntax Errors (#17597)
* Fix Az.HDInsight Syntax Errors * Fix Az.HDInsight Syntax Errors
1 parent 9ab1538 commit 353046b

12 files changed

+25
-26
lines changed

src/HDInsight/HDInsight/help/Add-AzHDInsightClusterIdentity.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ New-AzHDInsightClusterConfig `
6262
| Add-AzHDInsightClusterIdentity `
6363
-AadTenantId $tenantId `
6464
-ObjectId $objectId `
65-
-Application $applicationId
65+
-ApplicationId $applicationId
6666
-CertificateFilePath $certificateFilePath `
6767
-CertificatePassword $certificatePassword `
6868
| New-AzHDInsightCluster `

src/HDInsight/HDInsight/help/Add-AzHDInsightComponentVersion.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ The Add-AzHDInsightComponentVersion cmdlet adds a version for a service running
3232
$storageAccountResourceId = "yourstorageaccountresourceid"
3333
$storageAccountKey = Get-AzStorageAccountKey `
3434
-ResourceGroupName $storageAccountResourceGroupName `
35-
-Name $storageAccountName | %{ $_.Key1 }
35+
-Name $storageAccountName | ForEach-Object{ $_.Key1 }
3636
$storageContainer = "container001"
3737
3838
# Cluster configuration info

src/HDInsight/HDInsight/help/Add-AzHDInsightSecurityProfile.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ $clusterUsersGroupDNs=("groupdn1","groupdn2")
5757
# Create the cluster
5858
New-AzHDInsightClusterConfig `
5959
| Add-AzHDInsightSecurityProfile `
60-
-Domain $domain `
60+
-DomainResourceId $domain `
6161
-DomainUserCredential $domainUserCredential `
6262
-OrganizationalUnitDN $organizationalUnitDN `
6363
-LdapsUrls $ldapsUrls `

src/HDInsight/HDInsight/help/Add-AzHDInsightStorage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ $secondStorageAccountResourceGroupName = "Group"
4848
$secondStorageAccountName = "yourstorageacct002"
4949
$secondStorageAccountKey = Get-AzStorageAccountKey `
5050
-ResourceGroupName $secondStorageAccountResourceGroupName `
51-
-Name $secondStorageAccountName | %{ $_.Key1 }
51+
-Name $secondStorageAccountName | ForEach-Object{ $_.Key1 }
5252
5353
# Create the cluster
5454
New-AzHDInsightClusterConfig `

src/HDInsight/HDInsight/help/Disable-AzHDInsightAzureMonitor.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ This cmdlet **Disable-AzHDInsightAzureMonitor** disables Azure Monitor in a spec
4040
# Cluster info
4141
$clusterName = "your-hadoop-001"
4242
$resourceGroupName = "Group"
43-
Disable-AzHDInsightAzureMonitor -ClusterName $clusterName -ResourceGroup $resourceGroupName
43+
Disable-AzHDInsightAzureMonitor -ClusterName $clusterName -ResourceGroupName $resourceGroupName
4444
```
4545

4646
This cmdlet disables the azure monitor in a specified HDInsight cluster.

src/HDInsight/HDInsight/help/Enable-AzHDInsightAzureMonitor.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ $clusterName = "your-hadoop-001"
4242
$resourceGroupName = "Group"
4343
$workspaceId = "your-workspace-id"
4444
$primaryKey = "your-primary-key"
45-
Enable-AzHDInsightAzureMonitor -ClusterName $clusterName -ResourceGroup $resourceGroupName -WorkspaceId $workspaceId -PrimaryKey $primaryKey
45+
Enable-AzHDInsightAzureMonitor -ClusterName $clusterName -ResourceGroupName $resourceGroupName -WorkspaceId $workspaceId -PrimaryKey $primaryKey
4646
```
4747

4848
This cmdlet enables the azure monitor in a specified HDInsight cluster.

src/HDInsight/HDInsight/help/New-AzHDInsightCluster.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ The cmdlet may call below Microsoft Graph API according to input parameters:
114114
$storageAccountName = "yourstorageacct001"
115115
$storageAccountKey = Get-AzStorageAccountKey `
116116
-ResourceGroupName $storageAccountResourceGroupName `
117-
-Name $storageAccountName | Where-Object {$_.KeyName -eq "key1"} | %{$_.Value}
117+
-Name $storageAccountName | Where-Object {$_.KeyName -eq "key1"} | ForEach-Object{$_.Value}
118118
$storageContainer = "container002"
119119
120120
# Cluster configuration info
@@ -150,7 +150,7 @@ This command creates a cluster in the current subscription.
150150
$storageAccountName = "yourstorageacct001"
151151
$storageAccountKey = Get-AzStorageAccountKey `
152152
-ResourceGroupName $storageAccountResourceGroupName `
153-
-Name $storageAccountName | Where-Object {$_.KeyName -eq "key1"} | %{$_.Value}
153+
-Name $storageAccountName | Where-Object {$_.KeyName -eq "key1"} | ForEach-Object{$_.Value}
154154
$storageContainer = "container002"
155155
156156
# Cluster configuration info
@@ -194,7 +194,7 @@ This command creates a cluster in the current subscription.
194194
$storageAccountName = "yourstorageacct001"
195195
$storageAccountKey = Get-AzStorageAccountKey `
196196
-ResourceGroupName $storageAccountResourceGroupName `
197-
-Name $storageAccountName | Where-Object {$_.KeyName -eq "key1"} | %{$_.Value}}
197+
-Name $storageAccountName | Where-Object {$_.KeyName -eq "key1"} | ForEach-Object{$_.Value}
198198
$storageContainer = "container002"
199199
200200
# Cluster configuration info
@@ -229,7 +229,7 @@ This command creates a cluster in the current subscription.
229229
$storageAccountName = "yourstorageacct001"
230230
$storageAccountKey = Get-AzStorageAccountKey `
231231
-ResourceGroupName $storageAccountResourceGroupName `
232-
-Name $storageAccountName | Where-Object {$_.KeyName -eq "key1"} | %{$_.Value}
232+
-Name $storageAccountName | Where-Object {$_.KeyName -eq "key1"} | ForEach-Object{$_.Value}
233233
$storageContainer = "container002"
234234
235235
# Cluster configuration info
@@ -269,7 +269,7 @@ This command creates a cluster in the current subscription.
269269
$storageAccountName = "yourstorageacct001"
270270
$storageAccountKey = Get-AzStorageAccountKey `
271271
-ResourceGroupName $storageAccountResourceGroupName `
272-
-Name $storageAccountName | Where-Object {$_.KeyName -eq "key1"} | %{$_.Value}
272+
-Name $storageAccountName | Where-Object {$_.KeyName -eq "key1"} | ForEach-Object{$_.Value}
273273
$storageContainer = "container002"
274274
275275
# Cluster configuration info
@@ -304,7 +304,7 @@ This command creates a cluster in the current subscription.
304304
$storageAccountName = "yourstorageacct001"
305305
$storageAccountKey = Get-AzStorageAccountKey `
306306
-ResourceGroupName $storageAccountResourceGroupName `
307-
-Name $storageAccountName | Where-Object {$_.KeyName -eq "key1"} | %{$_.Value}
307+
-Name $storageAccountName | Where-Object {$_.KeyName -eq "key1"} | ForEach-Object{$_.Value}
308308
$storageContainer = "container002"
309309
310310
# Cluster configuration info
@@ -343,7 +343,7 @@ This command creates a cluster in the current subscription.
343343
$storageAccountName = "yourstorageacct001"
344344
$storageAccountKey = Get-AzStorageAccountKey `
345345
-ResourceGroupName $storageAccountResourceGroupName `
346-
-Name $storageAccountName | Where-Object {$_.KeyName -eq "key1"} | %{$_.Value}
346+
-Name $storageAccountName | Where-Object {$_.KeyName -eq "key1"} | ForEach-Object{$_.Value}
347347
$storageContainer = "container002"
348348
349349
# Cluster configuration info
@@ -384,7 +384,7 @@ This command creates a cluster in the current subscription.
384384
$storageAccountResourceId = "yourstorageaccountresourceid"
385385
$storageManagedIdentity = "yourstorageusermanagedidentity"
386386
$storageFileSystem = "filesystem01"
387-
$storageAccountType=AzureDataLakeStorageGen2
387+
$storageAccountType = "AzureDataLakeStorageGen2"
388388
389389
# Cluster configuration info
390390
$location = "East US 2"
@@ -436,7 +436,7 @@ This command creates a cluster in the current subscription.
436436
$clusterUserGroupDns = "dominusergroup"
437437
$ldapUrls = "ldaps://{your domain name}:636"
438438
439-
$clusterTier = Premium
439+
$clusterTier = "Premium"
440440
$vnetId = "yourvnetid"
441441
$subnetName = "yoursubnetname"
442442
$assignedIdentity = "your user managed assigned identity resourcee id"
@@ -446,7 +446,7 @@ This command creates a cluster in the current subscription.
446446
447447
# Create the cluster
448448
New-AzHDInsightCluster `
449-
-ClusteTier $clusterTier `
449+
-ClusterTier $clusterTier `
450450
-ClusterType Hadoop `
451451
-ClusterSizeInNodes 3 `
452452
-ResourceGroupName $clusterResourceGroupName `
@@ -470,7 +470,7 @@ This command creates a cluster in the current subscription.
470470
$storageAccountName = "yourstorageacct001"
471471
$storageAccountKey = Get-AzStorageAccountKey `
472472
-ResourceGroupName $storageAccountResourceGroupName `
473-
-Name $storageAccountName | Where-Object {$_.KeyName -eq "key1"} | %{$_.Value}
473+
-Name $storageAccountName | Where-Object {$_.KeyName -eq "key1"} | ForEach-Object{$_.Value}
474474
$storageContainer = "container002"
475475
476476
# Cluster configuration info
@@ -511,7 +511,7 @@ This command creates a cluster in the current subscription.
511511
$storageAccountName = "yourstorageacct001"
512512
$storageAccountKey = Get-AzStorageAccountKey `
513513
-ResourceGroupName $storageAccountResourceGroupName `
514-
-Name $storageAccountName | Where-Object {$_.KeyName -eq "key1"} | %{$_.Value}
514+
-Name $storageAccountName | Where-Object {$_.KeyName -eq "key1"} | ForEach-Object{$_.Value}
515515
$storageContainer = "container002"
516516
517517
# Cluster configuration info
@@ -562,7 +562,7 @@ This command creates a cluster in the current subscription.
562562
$storageAccountName = "yourstorageacct001"
563563
$storageAccountKey = Get-AzStorageAccountKey `
564564
-ResourceGroupName $storageAccountResourceGroupName `
565-
-Name $storageAccountName | Where-Object {$_.KeyName -eq "key1"} | %{$_.Value}
565+
-Name $storageAccountName | Where-Object {$_.KeyName -eq "key1"} | ForEach-Object{$_.Value}
566566
$storageContainer = "container002"
567567
568568
# Cluster configuration info

src/HDInsight/HDInsight/help/New-AzHDInsightIPConfiguration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ $ipConfigName="ipconfig"
3131
$privateIPAllocationMethod="dynamic"
3232
$subnetId=$vnetId+"/subnets/"+$subnetName
3333
# Create Private IP configuration
34-
$ipConfiguration= New-AzHDInsightIPConfiguration -Name $ipConfigName PrivateIPAllocationMethod $privateIPAllocationMethod -SubnetId $subnetId -Primary
34+
$ipConfiguration= New-AzHDInsightIPConfiguration -Name $ipConfigName -PrivateIPAllocationMethod $privateIPAllocationMethod -SubnetId $subnetId -Primary
3535
```
3636

3737
This creates the ip configuration object in memory.

src/HDInsight/HDInsight/help/New-AzHDInsightPrivateLinkConfiguration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ $ipConfigName="ipconfig"
3131
$privateIPAllocationMethod="dynamic"
3232
$subnetId=$vnetId+"/subnets/"+$subnetName
3333
# Create Private IP configuration
34-
$ipConfiguration= New-AzHDInsightIPConfiguration -Name $ipConfigName PrivateIPAllocationMethod $privateIPAllocationMethod -SubnetId $subnetId -Primary
34+
$ipConfiguration= New-AzHDInsightIPConfiguration -Name $ipConfigName -PrivateIPAllocationMethod $privateIPAllocationMethod -SubnetId $subnetId -Primary
3535
3636
$privateLinkConfigurationName="plconfig"
3737
$groupId="headnode"

src/HDInsight/HDInsight/help/New-AzHDInsightStreamingMapReduceJobDefinition.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ $clusterCreds = Get-Credential
3535
$statusFolder = "tempStatusFolder/"
3636
$query = "SHOW TABLES"
3737
38-
New-AzHDInsightStreamingMapReduceJobDefinition -StatusFolder $statusFolder `
39-
-Query $query `
38+
New-AzHDInsightStreamingMapReduceJobDefinition -StatusFolder $statusFolder -File $query `
4039
| Start-AzHDInsightJob `
4140
-ClusterName $clusterName `
4241
-ClusterCredential $clusterCreds

src/HDInsight/HDInsight/help/Set-AzHDInsightClusterAutoscaleConfiguration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ $autoscaleConfig=Get-AzHDInsightClusterAutoscaleConfiguration -ResourceGroupName
117117
$clusterResourceGroup="group"
118118
$clusterName="MyCluster"
119119
Set-AzHDInsightClusterAutoscaleConfiguration -ResourceGroupName $clusterResourceGroup -ClusterName $clusterName `
120-
-Autoscale $autoscaleConfig
120+
-AutoscaleConfiguration $autoscaleConfig
121121
```
122122

123123
This command sets the autoscale configuration of the HDInsight cluster based another cluster.

src/HDInsight/HDInsight/help/Set-AzHDInsightDefaultStorage.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ $storageAccountName = "yourstorageaccountname"
3333
$storageAccountKey = (Get-AzStorageAccountKey -ResourceGroupName $storageAccountResourceGroupName -Name $storageAccountName)[0].value
3434
3535
36-
$storageContainer = "container002"
36+
$storageType = "AzureStorage"
3737
3838
# Cluster configuration info
3939
$location = "East US 2"
@@ -49,7 +49,7 @@ New-AzHDInsightClusterConfig `
4949
| Set-AzHDInsightDefaultStorage `
5050
-StorageAccountResourceId $storageAccountResourceId `
5151
-StorageAccountKey $key2 `
52-
-StorageContainer $storageContainer `
52+
-StorageAccountType $storageType `
5353
| New-AzHDInsightCluster `
5454
-ClusterType Hadoop `
5555
-OSType Windows `

0 commit comments

Comments
 (0)