Skip to content

Commit 57100d0

Browse files
aim-for-betterZhenyu ZhouBethanyZhou
authored
[HDInsight] Use api get default vm sizes if customer doesn't provide them (#14582)
* Change code to call list billing spec api * Supporting get default vmsize from backend if customer does not provide concrete vmsize for headnode, workernode, zookeepernode, edgenode, kafkamanagementnode etc. * Update src/HDInsight/HDInsight/ChangeLog.md Co-authored-by: Beisi Zhou <[email protected]> Co-authored-by: Zhenyu Zhou <[email protected]> Co-authored-by: Beisi Zhou <[email protected]>
1 parent 3740f99 commit 57100d0

18 files changed

+9475
-9382
lines changed

src/HDInsight/HDInsight.Test/ScenarioTests/HDInsightClusterTests.ps1

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ function Test-ClusterRelatedCommands{
4141
#test Set-AzHDInsightClusterSize
4242
$resizeCluster = Set-AzHDInsightClusterSize -ClusterName $cluster.Name -ResourceGroupName $cluster.ResourceGroup `
4343
-TargetInstanceCount 3
44-
Assert-AreEqual $resizeCluster.CoresUsed 20
44+
Assert-AreEqual $resizeCluster.CoresUsed 40
4545
}
4646
finally
4747
{
@@ -328,13 +328,17 @@ function Test-CreateClusterWithCustomAmbariDatabase{
328328
$params= Prepare-ClusterCreateParameter -location "South Central US"
329329

330330
# prepare custom ambari database
331-
$databaseUserName="databaseuser"
332-
$databasePassword="xxxxxxx"
331+
$databaseUserName="yourdatabaseuser"
332+
$databasePassword="xxxxxxxx"
333333
$databasePassword=ConvertTo-SecureString $databasePassword -AsPlainText -Force
334+
334335
$sqlserverCredential=New-Object System.Management.Automation.PSCredential($databaseUserName, $databasePassword)
335336
$sqlserver="yoursqlserver.database.windows.net"
336-
$database="yourdatabase"
337-
$config=New-AzHDInsightClusterConfig
337+
$database="customambaridb"
338+
339+
$config=New-AzHDInsightClusterConfig|Add-AzHDInsightMetastore `
340+
-SqlAzureServerName $sqlserver -DatabaseName $database `
341+
-Credential $sqlserverCredential -MetastoreType AmbariDatabase
338342

339343
# create cluster
340344
$cluster = New-AzHDInsightCluster -Location $params.location -ResourceGroupName $params.resourceGroupName `
@@ -345,7 +349,7 @@ function Test-CreateClusterWithCustomAmbariDatabase{
345349
-AmbariDatabase $config.AmbariDatabase
346350

347351
Assert-NotNull $cluster
348-
352+
349353
}
350354
finally
351355
{

src/HDInsight/HDInsight.Test/SessionRecords/Commands.HDInsight.Test.ScenarioTests.HDInsightClusterTests/TestClusterRelatedCommands.json

Lines changed: 754 additions & 1550 deletions
Large diffs are not rendered by default.

src/HDInsight/HDInsight.Test/SessionRecords/Commands.HDInsight.Test.ScenarioTests.HDInsightClusterTests/TestCmkClusterRelatedCommands.json

Lines changed: 918 additions & 803 deletions
Large diffs are not rendered by default.

src/HDInsight/HDInsight.Test/SessionRecords/Commands.HDInsight.Test.ScenarioTests.HDInsightClusterTests/TestCreateClusterWithComputeIsolation.json

Lines changed: 937 additions & 511 deletions
Large diffs are not rendered by default.

src/HDInsight/HDInsight.Test/SessionRecords/Commands.HDInsight.Test.ScenarioTests.HDInsightClusterTests/TestCreateClusterWithCustomAmbariDatabase.json

Lines changed: 965 additions & 504 deletions
Large diffs are not rendered by default.

src/HDInsight/HDInsight.Test/SessionRecords/Commands.HDInsight.Test.ScenarioTests.HDInsightClusterTests/TestCreateClusterWithEncryptionAtHost.json

Lines changed: 1685 additions & 634 deletions
Large diffs are not rendered by default.

src/HDInsight/HDInsight.Test/SessionRecords/Commands.HDInsight.Test.ScenarioTests.HDInsightClusterTests/TestCreateClusterWithEncryptionInTransit.json

Lines changed: 1333 additions & 655 deletions
Large diffs are not rendered by default.

src/HDInsight/HDInsight.Test/SessionRecords/Commands.HDInsight.Test.ScenarioTests.HDInsightClusterTests/TestCreateClusterWithKafkaRestProxy.json

Lines changed: 624 additions & 946 deletions
Large diffs are not rendered by default.

src/HDInsight/HDInsight.Test/SessionRecords/Commands.HDInsight.Test.ScenarioTests.HDInsightClusterTests/TestCreateClusterWithLoadBasedAutoscale.json

Lines changed: 653 additions & 1632 deletions
Large diffs are not rendered by default.

src/HDInsight/HDInsight.Test/SessionRecords/Commands.HDInsight.Test.ScenarioTests.HDInsightClusterTests/TestCreateClusterWithRelayOutoundAndPrivateLink.json

Lines changed: 855 additions & 928 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)