Skip to content

Commit 8860ba3

Browse files
authored
Revert "[HDInsight] Update api version to 2025-01-15-preview (#27837)"
This reverts commit 9de8e47.
1 parent e853183 commit 8860ba3

File tree

50 files changed

+12884
-49052
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+12884
-49052
lines changed

src/HDInsight/HDInsight.Management.Sdk/Generated/HDInsightManagementClient.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -310,9 +310,6 @@ public HDInsightManagementClient(System.Uri baseUri, Microsoft.Rest.ServiceClien
310310
/// <param name='rootHandler'>
311311
/// Optional. The http client handler used to handle http transport.
312312
/// </param>
313-
/// <param name='handlers'>
314-
/// Optional. The delegating handlers to add to the http client pipeline.
315-
/// </param>
316313
/// <exception cref="System.ArgumentNullException">
317314
/// Thrown when a required parameter is null
318315
/// </exception>
@@ -356,7 +353,7 @@ private void Initialize()
356353
this.ScriptExecutionHistory = new ScriptExecutionHistoryOperations(this);
357354
this.VirtualMachines = new VirtualMachinesOperations(this);
358355
this.BaseUri = new System.Uri("https://management.azure.com");
359-
this.ApiVersion = "2025-01-15-preview";
356+
this.ApiVersion = "2024-08-01-preview";
360357
this.AcceptLanguage = "en-US";
361358
this.LongRunningOperationRetryTimeout = 30;
362359
this.GenerateClientRequestId = true;

src/HDInsight/HDInsight.Management.Sdk/Generated/Models/EntraUserInfo.cs

Lines changed: 0 additions & 72 deletions
This file was deleted.

src/HDInsight/HDInsight.Management.Sdk/Generated/Models/GatewaySettings.cs

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,12 @@ public GatewaySettings()
3333

3434
/// <param name="password">The gateway settings user password.
3535
/// </param>
36-
37-
/// <param name="restAuthEntraUsers">List of Entra users for gateway access.
38-
/// </param>
39-
public GatewaySettings(string isCredentialEnabled = default(string), string userName = default(string), string password = default(string), System.Collections.Generic.IList<EntraUserInfo> restAuthEntraUsers = default(System.Collections.Generic.IList<EntraUserInfo>))
36+
public GatewaySettings(string isCredentialEnabled = default(string), string userName = default(string), string password = default(string))
4037

4138
{
4239
this.IsCredentialEnabled = isCredentialEnabled;
4340
this.UserName = userName;
4441
this.Password = password;
45-
this.RestAuthEntraUsers = restAuthEntraUsers;
4642
CustomInit();
4743
}
4844

@@ -70,11 +66,5 @@ public GatewaySettings()
7066
/// </summary>
7167
[Newtonsoft.Json.JsonProperty(PropertyName = "restAuthCredential.password")]
7268
public string Password {get; private set; }
73-
74-
/// <summary>
75-
/// Gets or sets list of Entra users for gateway access.
76-
/// </summary>
77-
[Newtonsoft.Json.JsonProperty(PropertyName = "restAuthEntraUsers")]
78-
public System.Collections.Generic.IList<EntraUserInfo> RestAuthEntraUsers {get; set; }
7969
}
8070
}

src/HDInsight/HDInsight.Management.Sdk/Generated/Models/UpdateGatewaySettingsParameters.cs

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ namespace Microsoft.Azure.Management.HDInsight.Models
88
using System.Linq;
99

1010
/// <summary>
11-
/// The update gateway settings request parameters. Note either basic or entra
12-
/// user should be provided at a time.
11+
/// The update gateway settings request parameters.
1312
/// </summary>
1413
public partial class UpdateGatewaySettingsParameters
1514
{
@@ -34,16 +33,12 @@ public UpdateGatewaySettingsParameters()
3433

3534
/// <param name="password">The gateway settings user password.
3635
/// </param>
37-
38-
/// <param name="restAuthEntraUsers">List of Entra users for gateway access.
39-
/// </param>
40-
public UpdateGatewaySettingsParameters(bool? isCredentialEnabled = default(bool?), string userName = default(string), string password = default(string), System.Collections.Generic.IList<EntraUserInfo> restAuthEntraUsers = default(System.Collections.Generic.IList<EntraUserInfo>))
36+
public UpdateGatewaySettingsParameters(bool? isCredentialEnabled = default(bool?), string userName = default(string), string password = default(string))
4137

4238
{
4339
this.IsCredentialEnabled = isCredentialEnabled;
4440
this.UserName = userName;
4541
this.Password = password;
46-
this.RestAuthEntraUsers = restAuthEntraUsers;
4742
CustomInit();
4843
}
4944

@@ -71,11 +66,5 @@ public UpdateGatewaySettingsParameters()
7166
/// </summary>
7267
[Newtonsoft.Json.JsonProperty(PropertyName = "restAuthCredential.password")]
7368
public string Password {get; set; }
74-
75-
/// <summary>
76-
/// Gets or sets list of Entra users for gateway access.
77-
/// </summary>
78-
[Newtonsoft.Json.JsonProperty(PropertyName = "restAuthEntraUsers")]
79-
public System.Collections.Generic.IList<EntraUserInfo> RestAuthEntraUsers {get; set; }
8069
}
8170
}

src/HDInsight/HDInsight.Management.Sdk/README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,18 @@ skip-csproj: true
2929
3030
###
3131
``` yaml
32-
commit: 881a35f96dbb1f7cf7c83dd00ed29a628804464d
32+
commit: 339220060c53b1f6c04cdfa10dc577a9a961572f
3333
input-file:
34-
- https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2025-01-15-preview/applications.json
35-
- https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2025-01-15-preview/cluster.json
36-
- https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2025-01-15-preview/configurations.json
37-
- https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2025-01-15-preview/extensions.json
38-
- https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2025-01-15-preview/locations.json
39-
- https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2025-01-15-preview/operations.json
40-
- https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2025-01-15-preview/privateEndpointConnections.json
41-
- https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2025-01-15-preview/privateLinkResources.json
42-
- https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2025-01-15-preview/scriptActions.json
43-
- https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2025-01-15-preview/virtualMachines.json
34+
- https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2024-08-01-preview/applications.json
35+
- https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2024-08-01-preview/cluster.json
36+
- https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2024-08-01-preview/configurations.json
37+
- https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2024-08-01-preview/extensions.json
38+
- https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2024-08-01-preview/locations.json
39+
- https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2024-08-01-preview/operations.json
40+
- https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2024-08-01-preview/privateEndpointConnections.json
41+
- https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2024-08-01-preview/privateLinkResources.json
42+
- https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2024-08-01-preview/scriptActions.json
43+
- https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2024-08-01-preview/virtualMachines.json
4444

4545
output-folder: Generated
4646

src/HDInsight/HDInsight.Test/ScenarioTests/Common.ps1

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,12 @@ class ClusterCommonCreateParameter{
8282
[string] $minSupportedTlsVersion
8383
[string] $virtualNetworkId
8484
[string] $subnet
85-
[string] $version
8685

8786
ClusterCommonCreateParameter([string] $clusterName, [string] $location, [string] $resourceGroupName,
8887
[string] $storageAccountResourceId, [string] $clusterType, [int] $clusterSizeInNodes,
8988
[string] $storageAccountKey, [System.Management.Automation.PSCredential] $httpCredential,
9089
[System.Management.Automation.PSCredential] $sshCredential, [string] $minSupportedTlsVersion,
91-
[string] $virtualNetworkId,[string] $subnet,[string] $version){
90+
[string] $virtualNetworkId,[string] $subnet){
9291
$this.clusterName=$clusterName
9392
$this.location=$location
9493
$this.resourceGroupName=$resourceGroupName
@@ -101,7 +100,6 @@ class ClusterCommonCreateParameter{
101100
$this.minSupportedTlsVersion=$minSupportedTlsVersion
102101
$this.virtualNetworkId=$virtualNetworkId
103102
$this.subnet=$subnet
104-
$this.version=$version
105103
}
106104
}
107105

@@ -112,13 +110,12 @@ class ClusterCommonCreateParameter{
112110
function Prepare-ClusterCreateParameter{
113111
param(
114112
[string] $clusterName="ps",
115-
[string] $location="East Asia",
113+
[string] $location="eastus",
116114
[string] $resourceGroupName="group-ps-test",
117115
[string] $storageAccountName="storagepstest",
118-
[string] $clusterType="Hadoop",
119-
[string] $virtualNetworkId="/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group-ps-test/providers/Microsoft.Network/virtualNetworks/hdi-vn-0",
120-
[string] $subnet="default",
121-
[string] $version="5.1"
116+
[string] $clusterType="Spark",
117+
[string] $virtualNetworkId="/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yuchen-ps-test/providers/Microsoft.Network/virtualNetworks/hdi-vn-0",
118+
[string] $subnet="default"
122119
)
123120

124121
$clusterName=Generate-Name($clusterName)
@@ -135,7 +132,7 @@ function Prepare-ClusterCreateParameter{
135132
$storageAccountKey=$storageAccountKey[0].Value
136133

137134
$httpUser="admin"
138-
$textPassword= "Password"
135+
$textPassword= "YourPw!00953"
139136
$httpPassword=ConvertTo-SecureString $textPassword -AsPlainText -Force
140137
$sshUser="sshuser"
141138
$sshPassword=$httpPassword
@@ -146,7 +143,7 @@ function Prepare-ClusterCreateParameter{
146143
$minSupportedTlsVersion="1.2"
147144
return [ClusterCommonCreateParameter]::new($clusterName, $location, $resourceGroupName, $storageAccountResourceId,
148145
$clusterType, $clusterSizeInNodes, $storageAccountKey, $httpCredential,
149-
$sshCredential, $minSupportedTlsVersion, $virtualNetworkId, $subnet,$version)
146+
$sshCredential, $minSupportedTlsVersion, $virtualNetworkId, $subnet)
150147
}
151148

152149
<#

src/HDInsight/HDInsight.Test/ScenarioTests/HDInsightAutoscaleTests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function Test-AutoscaleRelatedCommands{
2828
$cluster = New-AzHDInsightCluster -Location $params.location -ResourceGroupName $params.resourceGroupName `
2929
-ClusterName $params.clusterName -ClusterSizeInNodes $params.clusterSizeInNodes -ClusterType $params.clusterType `
3030
-StorageAccountResourceId $params.storageAccountResourceId -StorageAccountKey $params.storageAccountKey `
31-
-HttpCredential $params.httpCredential -SshCredential $params.sshCredential -Version $params.version `
31+
-HttpCredential $params.httpCredential -SshCredential $params.sshCredential `
3232
-MinSupportedTlsVersion $params.minSupportedTlsVersion -VirtualNetworkId $params.virtualNetworkId -SubnetName "default"
3333

3434
Assert-NotNull $cluster

src/HDInsight/HDInsight.Test/ScenarioTests/HDInsightAzureMonitorTests.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function Test-AzureMonitorRelatedCommands{
2929
$cluster = New-AzHDInsightCluster -Location $params.location -ResourceGroupName $params.resourceGroupName `
3030
-ClusterName $params.clusterName -ClusterSizeInNodes $params.clusterSizeInNodes -ClusterType $params.clusterType `
3131
-StorageAccountResourceId $params.storageAccountResourceId -StorageAccountKey $params.storageAccountKey `
32-
-HttpCredential $params.httpCredential -SshCredential $params.sshCredential -Version $params.version `
32+
-HttpCredential $params.httpCredential -SshCredential $params.sshCredential -Version 5.1 `
3333
-MinSupportedTlsVersion $params.minSupportedTlsVersion -VirtualNetworkId $params.virtualNetworkId -SubnetName "default"
3434
Assert-NotNull $cluster
3535

@@ -78,12 +78,12 @@ function Test-AzureMonitorAgentRelatedCommands{
7878
# Create some resources that will be used throughout test
7979
try
8080
{
81-
# $location = "East Asia"
81+
$location = "East US"
8282
# prepare parameter for creating parameter
8383
# $params= Prepare-ClusterCreateParameter -location $location
8484

8585
# create cluster that will be used throughout test
86-
$cluster = Get-AzHDInsightCluster -ResourceGroupName "group-ps-test" -ClusterName "ps-test-cluster"
86+
$cluster = Get-AzHDInsightCluster -ResourceGroupName yuchen-ps-test -ClusterName spark51
8787
Assert-NotNull $cluster
8888

8989
$workspaceName = "ps-la"
@@ -102,7 +102,7 @@ function Test-AzureMonitorAgentRelatedCommands{
102102

103103
Assert-NotNull $workspaceId
104104
Assert-NotNull $primaryKey
105-
Enable-AzHDInsightAzureMonitorAgent -ClusterName $cluster.Name -ResourceGroup $cluster.ResourceGroup -WorkspaceId $workspaceId -PrimaryKey $primaryKey
105+
Enable-AzHDInsightAzureMonitorAgent -ClusterName $cluster.Name -ResourceGroup $cluster.ResourceGroup -WorkspaceId $workspaceId -Primary $primaryKey
106106

107107
$result = Get-AzHDInsightAzureMonitorAgent -ClusterName $cluster.Name -ResourceGroupName $cluster.ResourceGroup
108108
Assert-True {$result.ClusterMonitoringEnabled}

src/HDInsight/HDInsight.Test/ScenarioTests/HDInsightClusterTests.cs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,6 @@ public HDInsightClusterTests(ITestOutputHelper output) : base(output)
2525
{
2626
}
2727

28-
[Fact]
29-
[Trait(Category.AcceptanceType, Category.CheckIn)]
30-
public void TestCreateClusterWithWasbAndMSI()
31-
{
32-
TestRunner.RunTestScript("Test-CreateClusterWithWasbAndMSI");
33-
}
34-
35-
[Fact]
36-
[Trait(Category.AcceptanceType, Category.CheckIn)]
37-
public void TestCreateEntraCluster()
38-
{
39-
TestRunner.RunTestScript("Test-CreateEntraCluster");
40-
}
41-
4228
[Fact]
4329
[Trait(Category.AcceptanceType, Category.CheckIn)]
4430
public void TestClusterRelatedCommands()

0 commit comments

Comments
 (0)