diff --git a/src/HDInsight/HDInsight/help/Add-AzHDInsightClusterIdentity.md b/src/HDInsight/HDInsight/help/Add-AzHDInsightClusterIdentity.md index 59465389cda8..5e8976586c2e 100644 --- a/src/HDInsight/HDInsight/help/Add-AzHDInsightClusterIdentity.md +++ b/src/HDInsight/HDInsight/help/Add-AzHDInsightClusterIdentity.md @@ -62,7 +62,7 @@ New-AzHDInsightClusterConfig ` | Add-AzHDInsightClusterIdentity ` -AadTenantId $tenantId ` -ObjectId $objectId ` - -Application $applicationId + -ApplicationId $applicationId -CertificateFilePath $certificateFilePath ` -CertificatePassword $certificatePassword ` | New-AzHDInsightCluster ` diff --git a/src/HDInsight/HDInsight/help/Add-AzHDInsightComponentVersion.md b/src/HDInsight/HDInsight/help/Add-AzHDInsightComponentVersion.md index 4dcabd138369..aeed23aef027 100644 --- a/src/HDInsight/HDInsight/help/Add-AzHDInsightComponentVersion.md +++ b/src/HDInsight/HDInsight/help/Add-AzHDInsightComponentVersion.md @@ -32,7 +32,7 @@ The Add-AzHDInsightComponentVersion cmdlet adds a version for a service running $storageAccountResourceId = "yourstorageaccountresourceid" $storageAccountKey = Get-AzStorageAccountKey ` -ResourceGroupName $storageAccountResourceGroupName ` - -Name $storageAccountName | %{ $_.Key1 } + -Name $storageAccountName | ForEach-Object{ $_.Key1 } $storageContainer = "container001" # Cluster configuration info diff --git a/src/HDInsight/HDInsight/help/Add-AzHDInsightSecurityProfile.md b/src/HDInsight/HDInsight/help/Add-AzHDInsightSecurityProfile.md index 8a8d8ea2c49a..a47cfc8141e9 100644 --- a/src/HDInsight/HDInsight/help/Add-AzHDInsightSecurityProfile.md +++ b/src/HDInsight/HDInsight/help/Add-AzHDInsightSecurityProfile.md @@ -57,7 +57,7 @@ $clusterUsersGroupDNs=("groupdn1","groupdn2") # Create the cluster New-AzHDInsightClusterConfig ` | Add-AzHDInsightSecurityProfile ` - -Domain $domain ` + -DomainResourceId $domain ` -DomainUserCredential $domainUserCredential ` -OrganizationalUnitDN $organizationalUnitDN ` -LdapsUrls $ldapsUrls ` diff --git a/src/HDInsight/HDInsight/help/Add-AzHDInsightStorage.md b/src/HDInsight/HDInsight/help/Add-AzHDInsightStorage.md index 1a59b91dbc6d..16dc4f8c871e 100644 --- a/src/HDInsight/HDInsight/help/Add-AzHDInsightStorage.md +++ b/src/HDInsight/HDInsight/help/Add-AzHDInsightStorage.md @@ -48,7 +48,7 @@ $secondStorageAccountResourceGroupName = "Group" $secondStorageAccountName = "yourstorageacct002" $secondStorageAccountKey = Get-AzStorageAccountKey ` -ResourceGroupName $secondStorageAccountResourceGroupName ` - -Name $secondStorageAccountName | %{ $_.Key1 } + -Name $secondStorageAccountName | ForEach-Object{ $_.Key1 } # Create the cluster New-AzHDInsightClusterConfig ` diff --git a/src/HDInsight/HDInsight/help/Disable-AzHDInsightAzureMonitor.md b/src/HDInsight/HDInsight/help/Disable-AzHDInsightAzureMonitor.md index bcdfd02afef3..a0e40c0fbbb8 100644 --- a/src/HDInsight/HDInsight/help/Disable-AzHDInsightAzureMonitor.md +++ b/src/HDInsight/HDInsight/help/Disable-AzHDInsightAzureMonitor.md @@ -40,7 +40,7 @@ This cmdlet **Disable-AzHDInsightAzureMonitor** disables Azure Monitor in a spec # Cluster info $clusterName = "your-hadoop-001" $resourceGroupName = "Group" -Disable-AzHDInsightAzureMonitor -ClusterName $clusterName -ResourceGroup $resourceGroupName +Disable-AzHDInsightAzureMonitor -ClusterName $clusterName -ResourceGroupName $resourceGroupName ``` This cmdlet disables the azure monitor in a specified HDInsight cluster. diff --git a/src/HDInsight/HDInsight/help/Enable-AzHDInsightAzureMonitor.md b/src/HDInsight/HDInsight/help/Enable-AzHDInsightAzureMonitor.md index 70356ce98865..87d1b706c124 100644 --- a/src/HDInsight/HDInsight/help/Enable-AzHDInsightAzureMonitor.md +++ b/src/HDInsight/HDInsight/help/Enable-AzHDInsightAzureMonitor.md @@ -42,7 +42,7 @@ $clusterName = "your-hadoop-001" $resourceGroupName = "Group" $workspaceId = "your-workspace-id" $primaryKey = "your-primary-key" -Enable-AzHDInsightAzureMonitor -ClusterName $clusterName -ResourceGroup $resourceGroupName -WorkspaceId $workspaceId -PrimaryKey $primaryKey +Enable-AzHDInsightAzureMonitor -ClusterName $clusterName -ResourceGroupName $resourceGroupName -WorkspaceId $workspaceId -PrimaryKey $primaryKey ``` This cmdlet enables the azure monitor in a specified HDInsight cluster. diff --git a/src/HDInsight/HDInsight/help/New-AzHDInsightCluster.md b/src/HDInsight/HDInsight/help/New-AzHDInsightCluster.md index 439a6aa3b658..cab1c2f33654 100644 --- a/src/HDInsight/HDInsight/help/New-AzHDInsightCluster.md +++ b/src/HDInsight/HDInsight/help/New-AzHDInsightCluster.md @@ -114,7 +114,7 @@ The cmdlet may call below Microsoft Graph API according to input parameters: $storageAccountName = "yourstorageacct001" $storageAccountKey = Get-AzStorageAccountKey ` -ResourceGroupName $storageAccountResourceGroupName ` - -Name $storageAccountName | Where-Object {$_.KeyName -eq "key1"} | %{$_.Value} + -Name $storageAccountName | Where-Object {$_.KeyName -eq "key1"} | ForEach-Object{$_.Value} $storageContainer = "container002" # Cluster configuration info @@ -150,7 +150,7 @@ This command creates a cluster in the current subscription. $storageAccountName = "yourstorageacct001" $storageAccountKey = Get-AzStorageAccountKey ` -ResourceGroupName $storageAccountResourceGroupName ` - -Name $storageAccountName | Where-Object {$_.KeyName -eq "key1"} | %{$_.Value} + -Name $storageAccountName | Where-Object {$_.KeyName -eq "key1"} | ForEach-Object{$_.Value} $storageContainer = "container002" # Cluster configuration info @@ -194,7 +194,7 @@ This command creates a cluster in the current subscription. $storageAccountName = "yourstorageacct001" $storageAccountKey = Get-AzStorageAccountKey ` -ResourceGroupName $storageAccountResourceGroupName ` - -Name $storageAccountName | Where-Object {$_.KeyName -eq "key1"} | %{$_.Value}} + -Name $storageAccountName | Where-Object {$_.KeyName -eq "key1"} | ForEach-Object{$_.Value} $storageContainer = "container002" # Cluster configuration info @@ -229,7 +229,7 @@ This command creates a cluster in the current subscription. $storageAccountName = "yourstorageacct001" $storageAccountKey = Get-AzStorageAccountKey ` -ResourceGroupName $storageAccountResourceGroupName ` - -Name $storageAccountName | Where-Object {$_.KeyName -eq "key1"} | %{$_.Value} + -Name $storageAccountName | Where-Object {$_.KeyName -eq "key1"} | ForEach-Object{$_.Value} $storageContainer = "container002" # Cluster configuration info @@ -269,7 +269,7 @@ This command creates a cluster in the current subscription. $storageAccountName = "yourstorageacct001" $storageAccountKey = Get-AzStorageAccountKey ` -ResourceGroupName $storageAccountResourceGroupName ` - -Name $storageAccountName | Where-Object {$_.KeyName -eq "key1"} | %{$_.Value} + -Name $storageAccountName | Where-Object {$_.KeyName -eq "key1"} | ForEach-Object{$_.Value} $storageContainer = "container002" # Cluster configuration info @@ -304,7 +304,7 @@ This command creates a cluster in the current subscription. $storageAccountName = "yourstorageacct001" $storageAccountKey = Get-AzStorageAccountKey ` -ResourceGroupName $storageAccountResourceGroupName ` - -Name $storageAccountName | Where-Object {$_.KeyName -eq "key1"} | %{$_.Value} + -Name $storageAccountName | Where-Object {$_.KeyName -eq "key1"} | ForEach-Object{$_.Value} $storageContainer = "container002" # Cluster configuration info @@ -343,7 +343,7 @@ This command creates a cluster in the current subscription. $storageAccountName = "yourstorageacct001" $storageAccountKey = Get-AzStorageAccountKey ` -ResourceGroupName $storageAccountResourceGroupName ` - -Name $storageAccountName | Where-Object {$_.KeyName -eq "key1"} | %{$_.Value} + -Name $storageAccountName | Where-Object {$_.KeyName -eq "key1"} | ForEach-Object{$_.Value} $storageContainer = "container002" # Cluster configuration info @@ -384,7 +384,7 @@ This command creates a cluster in the current subscription. $storageAccountResourceId = "yourstorageaccountresourceid" $storageManagedIdentity = "yourstorageusermanagedidentity" $storageFileSystem = "filesystem01" - $storageAccountType=AzureDataLakeStorageGen2 + $storageAccountType = "AzureDataLakeStorageGen2" # Cluster configuration info $location = "East US 2" @@ -436,7 +436,7 @@ This command creates a cluster in the current subscription. $clusterUserGroupDns = "dominusergroup" $ldapUrls = "ldaps://{your domain name}:636" - $clusterTier = Premium + $clusterTier = "Premium" $vnetId = "yourvnetid" $subnetName = "yoursubnetname" $assignedIdentity = "your user managed assigned identity resourcee id" @@ -446,7 +446,7 @@ This command creates a cluster in the current subscription. # Create the cluster New-AzHDInsightCluster ` - -ClusteTier $clusterTier ` + -ClusterTier $clusterTier ` -ClusterType Hadoop ` -ClusterSizeInNodes 3 ` -ResourceGroupName $clusterResourceGroupName ` @@ -470,7 +470,7 @@ This command creates a cluster in the current subscription. $storageAccountName = "yourstorageacct001" $storageAccountKey = Get-AzStorageAccountKey ` -ResourceGroupName $storageAccountResourceGroupName ` - -Name $storageAccountName | Where-Object {$_.KeyName -eq "key1"} | %{$_.Value} + -Name $storageAccountName | Where-Object {$_.KeyName -eq "key1"} | ForEach-Object{$_.Value} $storageContainer = "container002" # Cluster configuration info @@ -511,7 +511,7 @@ This command creates a cluster in the current subscription. $storageAccountName = "yourstorageacct001" $storageAccountKey = Get-AzStorageAccountKey ` -ResourceGroupName $storageAccountResourceGroupName ` - -Name $storageAccountName | Where-Object {$_.KeyName -eq "key1"} | %{$_.Value} + -Name $storageAccountName | Where-Object {$_.KeyName -eq "key1"} | ForEach-Object{$_.Value} $storageContainer = "container002" # Cluster configuration info @@ -562,7 +562,7 @@ This command creates a cluster in the current subscription. $storageAccountName = "yourstorageacct001" $storageAccountKey = Get-AzStorageAccountKey ` -ResourceGroupName $storageAccountResourceGroupName ` - -Name $storageAccountName | Where-Object {$_.KeyName -eq "key1"} | %{$_.Value} + -Name $storageAccountName | Where-Object {$_.KeyName -eq "key1"} | ForEach-Object{$_.Value} $storageContainer = "container002" # Cluster configuration info diff --git a/src/HDInsight/HDInsight/help/New-AzHDInsightIPConfiguration.md b/src/HDInsight/HDInsight/help/New-AzHDInsightIPConfiguration.md index 904a3aa9aa6e..4b6f4a1b6f3f 100644 --- a/src/HDInsight/HDInsight/help/New-AzHDInsightIPConfiguration.md +++ b/src/HDInsight/HDInsight/help/New-AzHDInsightIPConfiguration.md @@ -31,7 +31,7 @@ $ipConfigName="ipconfig" $privateIPAllocationMethod="dynamic" $subnetId=$vnetId+"/subnets/"+$subnetName # Create Private IP configuration -$ipConfiguration= New-AzHDInsightIPConfiguration -Name $ipConfigName PrivateIPAllocationMethod $privateIPAllocationMethod -SubnetId $subnetId -Primary +$ipConfiguration= New-AzHDInsightIPConfiguration -Name $ipConfigName -PrivateIPAllocationMethod $privateIPAllocationMethod -SubnetId $subnetId -Primary ``` This creates the ip configuration object in memory. diff --git a/src/HDInsight/HDInsight/help/New-AzHDInsightPrivateLinkConfiguration.md b/src/HDInsight/HDInsight/help/New-AzHDInsightPrivateLinkConfiguration.md index 6522f4073bca..ee3f1ff45782 100644 --- a/src/HDInsight/HDInsight/help/New-AzHDInsightPrivateLinkConfiguration.md +++ b/src/HDInsight/HDInsight/help/New-AzHDInsightPrivateLinkConfiguration.md @@ -31,7 +31,7 @@ $ipConfigName="ipconfig" $privateIPAllocationMethod="dynamic" $subnetId=$vnetId+"/subnets/"+$subnetName # Create Private IP configuration -$ipConfiguration= New-AzHDInsightIPConfiguration -Name $ipConfigName PrivateIPAllocationMethod $privateIPAllocationMethod -SubnetId $subnetId -Primary +$ipConfiguration= New-AzHDInsightIPConfiguration -Name $ipConfigName -PrivateIPAllocationMethod $privateIPAllocationMethod -SubnetId $subnetId -Primary $privateLinkConfigurationName="plconfig" $groupId="headnode" diff --git a/src/HDInsight/HDInsight/help/New-AzHDInsightStreamingMapReduceJobDefinition.md b/src/HDInsight/HDInsight/help/New-AzHDInsightStreamingMapReduceJobDefinition.md index 62bac367bae8..8f9837dfd79e 100644 --- a/src/HDInsight/HDInsight/help/New-AzHDInsightStreamingMapReduceJobDefinition.md +++ b/src/HDInsight/HDInsight/help/New-AzHDInsightStreamingMapReduceJobDefinition.md @@ -35,8 +35,7 @@ $clusterCreds = Get-Credential $statusFolder = "tempStatusFolder/" $query = "SHOW TABLES" -New-AzHDInsightStreamingMapReduceJobDefinition -StatusFolder $statusFolder ` - -Query $query ` +New-AzHDInsightStreamingMapReduceJobDefinition -StatusFolder $statusFolder -File $query ` | Start-AzHDInsightJob ` -ClusterName $clusterName ` -ClusterCredential $clusterCreds diff --git a/src/HDInsight/HDInsight/help/Set-AzHDInsightClusterAutoscaleConfiguration.md b/src/HDInsight/HDInsight/help/Set-AzHDInsightClusterAutoscaleConfiguration.md index e6ca29b1272f..51bb47b297e1 100644 --- a/src/HDInsight/HDInsight/help/Set-AzHDInsightClusterAutoscaleConfiguration.md +++ b/src/HDInsight/HDInsight/help/Set-AzHDInsightClusterAutoscaleConfiguration.md @@ -117,7 +117,7 @@ $autoscaleConfig=Get-AzHDInsightClusterAutoscaleConfiguration -ResourceGroupName $clusterResourceGroup="group" $clusterName="MyCluster" Set-AzHDInsightClusterAutoscaleConfiguration -ResourceGroupName $clusterResourceGroup -ClusterName $clusterName ` - -Autoscale $autoscaleConfig + -AutoscaleConfiguration $autoscaleConfig ``` This command sets the autoscale configuration of the HDInsight cluster based another cluster. diff --git a/src/HDInsight/HDInsight/help/Set-AzHDInsightDefaultStorage.md b/src/HDInsight/HDInsight/help/Set-AzHDInsightDefaultStorage.md index fd8fc0b34496..82fc5b86730f 100644 --- a/src/HDInsight/HDInsight/help/Set-AzHDInsightDefaultStorage.md +++ b/src/HDInsight/HDInsight/help/Set-AzHDInsightDefaultStorage.md @@ -33,7 +33,7 @@ $storageAccountName = "yourstorageaccountname" $storageAccountKey = (Get-AzStorageAccountKey -ResourceGroupName $storageAccountResourceGroupName -Name $storageAccountName)[0].value -$storageContainer = "container002" +$storageType = "AzureStorage" # Cluster configuration info $location = "East US 2" @@ -49,7 +49,7 @@ New-AzHDInsightClusterConfig ` | Set-AzHDInsightDefaultStorage ` -StorageAccountResourceId $storageAccountResourceId ` -StorageAccountKey $key2 ` - -StorageContainer $storageContainer ` + -StorageAccountType $storageType ` | New-AzHDInsightCluster ` -ClusterType Hadoop ` -OSType Windows `