Skip to content

Commit fbc35fd

Browse files
aim-for-betterZhenyu Zhou
and
Zhenyu Zhou
authored
{HDInsight}Hdi migrate Microsoft.Azure.Graph to MicrosoftGraph (#17219)
* Change Azure.Graph.RBAC to MicrosoftGraph sdk * Update help doc of new-azhdinsightcluster * Update changelog.md file * update changelog.md and update exception type Co-authored-by: Zhenyu Zhou <[email protected]>
1 parent 8c31997 commit fbc35fd

File tree

16 files changed

+14065
-6826
lines changed

16 files changed

+14065
-6826
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ function Test-CreateClusterWithRelayOutoundAndPrivateLink{
290290
$params= Prepare-ClusterCreateParameter -location "South Central US"
291291

292292
# Private Link requires vnet has firewall, this is difficult to create dynamically, just hardcode here
293-
$vnetId="/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.Network/virtualNetworks/fakevnet"
293+
$vnetId= "/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/zzy-test-rg/providers/Microsoft.Network/virtualNetworks/zzytestvnet"#"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.Network/virtualNetworks/fakevnet"
294294
$subnetName="default"
295295

296296
# create cluster
@@ -299,7 +299,7 @@ function Test-CreateClusterWithRelayOutoundAndPrivateLink{
299299
-StorageAccountResourceId $params.storageAccountResourceId -StorageAccountKey $params.storageAccountKey `
300300
-HttpCredential $params.httpCredential -SshCredential $params.sshCredential `
301301
-MinSupportedTlsVersion $params.minSupportedTlsVersion `
302-
-VirtualNetworkId $vnetId -SubnetName $subnetName -Version 3.6 `
302+
-VirtualNetworkId $vnetId -SubnetName $subnetName -Version 4.0 `
303303
-ResourceProviderConnection Outbound -PrivateLink Enabled
304304

305305
Assert-AreEqual $cluster.NetworkProperties.ResourceProviderConnection Outbound
@@ -467,7 +467,7 @@ function Test-CreateClusterWithPrivateLinkConfiguration{
467467
$params= Prepare-ClusterCreateParameter -location "South Central US"
468468

469469
# Private Link requires vnet has firewall, this is difficult to create dynamically, just hardcode here
470-
$vnetId="/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.Network/virtualNetworks/fakevnet"
470+
$vnetId= "/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/zzy-test-rg/providers/Microsoft.Network/virtualNetworks/zzytestvnet"#"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.Network/virtualNetworks/fakevnet"
471471
$subnetName="default"
472472

473473
$ipConfigName="ipconfig"

src/HDInsight/HDInsight.Test/ScenarioTests/TestController.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
using System.IO;
3232
using System.Linq;
3333
using Microsoft.Azure.Management.Network;
34-
using Microsoft.Azure.Graph.RBAC.Version1_6;
3534
using Microsoft.Azure.Commands.Common.MSGraph.Version1_0;
3635

3736
namespace Commands.HDInsight.Test.ScenarioTests

src/HDInsight/HDInsight.Test/SessionRecords/Commands.HDInsight.Test.ScenarioTests.HDInsightAutoscaleTests/TestAutoscaleRelatedCommands.json

Lines changed: 1257 additions & 692 deletions
Large diffs are not rendered by default.

src/HDInsight/HDInsight.Test/SessionRecords/Commands.HDInsight.Test.ScenarioTests.HDInsightAzureMonitorTests/TestAzureMonitorRelatedCommands.json

Lines changed: 1009 additions & 570 deletions
Large diffs are not rendered by default.

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

Lines changed: 725 additions & 705 deletions
Large diffs are not rendered by default.

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

Lines changed: 543 additions & 542 deletions
Large diffs are not rendered by default.

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

Lines changed: 2323 additions & 522 deletions
Large diffs are not rendered by default.

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

Lines changed: 1573 additions & 528 deletions
Large diffs are not rendered by default.

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

Lines changed: 477 additions & 664 deletions
Large diffs are not rendered by default.

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

Lines changed: 587 additions & 721 deletions
Large diffs are not rendered by default.

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

Lines changed: 867 additions & 491 deletions
Large diffs are not rendered by default.

src/HDInsight/HDInsight.Test/SessionRecords/Commands.HDInsight.Test.ScenarioTests.HDInsightHostTests/TestHostRelatedCommands.json

Lines changed: 604 additions & 761 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)