diff --git a/src/HDInsight/HDInsight.Management.Sdk/Generated/ClustersOperations.cs b/src/HDInsight/HDInsight.Management.Sdk/Generated/ClustersOperations.cs
index 4fedfdf1bfa3..763377e2fd0d 100644
--- a/src/HDInsight/HDInsight.Management.Sdk/Generated/ClustersOperations.cs
+++ b/src/HDInsight/HDInsight.Management.Sdk/Generated/ClustersOperations.cs
@@ -76,7 +76,8 @@ internal ClustersOperations (HDInsightManagementClient client)
/// The resource tags.
///
///
- /// The identity of the cluster, if configured.
+ /// The identity of the cluster, if configured. Setting this property will
+ /// override the existing identity configuration of the cluster.
///
///
/// Headers that will be added to request.
diff --git a/src/HDInsight/HDInsight.Management.Sdk/Generated/IClustersOperations.cs b/src/HDInsight/HDInsight.Management.Sdk/Generated/IClustersOperations.cs
index fbc355fcfeda..9ce647fae7d0 100644
--- a/src/HDInsight/HDInsight.Management.Sdk/Generated/IClustersOperations.cs
+++ b/src/HDInsight/HDInsight.Management.Sdk/Generated/IClustersOperations.cs
@@ -58,7 +58,8 @@ public partial interface IClustersOperations
/// The resource tags.
///
///
- /// The identity of the cluster, if configured.
+ /// The identity of the cluster, if configured. Setting this property will
+ /// override the existing identity configuration of the cluster.
///
///
/// The headers that will be added to request.
diff --git a/src/HDInsight/HDInsight.Management.Sdk/Generated/Models/ClusterPatchParameters.cs b/src/HDInsight/HDInsight.Management.Sdk/Generated/Models/ClusterPatchParameters.cs
index af4258aeb7df..5fbaccb79afb 100644
--- a/src/HDInsight/HDInsight.Management.Sdk/Generated/Models/ClusterPatchParameters.cs
+++ b/src/HDInsight/HDInsight.Management.Sdk/Generated/Models/ClusterPatchParameters.cs
@@ -27,7 +27,8 @@ public ClusterPatchParameters()
/// The resource tags.
///
- /// The identity of the cluster, if configured.
+ /// The identity of the cluster, if configured. Setting this property will
+ /// override the existing identity configuration of the cluster.
///
public ClusterPatchParameters(System.Collections.Generic.IDictionary tags = default(System.Collections.Generic.IDictionary), ClusterIdentity identity = default(ClusterIdentity))
@@ -50,7 +51,8 @@ public ClusterPatchParameters()
public System.Collections.Generic.IDictionary Tags {get; set; }
///
- /// Gets or sets the identity of the cluster, if configured.
+ /// Gets or sets the identity of the cluster, if configured. Setting this
+ /// property will override the existing identity configuration of the cluster.
///
[Newtonsoft.Json.JsonProperty(PropertyName = "identity")]
public ClusterIdentity Identity {get; set; }
diff --git a/src/HDInsight/HDInsight.Management.Sdk/README.md b/src/HDInsight/HDInsight.Management.Sdk/README.md
index 40da6d570718..d5947c42b371 100644
--- a/src/HDInsight/HDInsight.Management.Sdk/README.md
+++ b/src/HDInsight/HDInsight.Management.Sdk/README.md
@@ -29,7 +29,7 @@ skip-csproj: true
###
``` yaml
-commit: f22b814a1a30517cb6612c8fe071cfbcc64e3a2c
+commit: 339220060c53b1f6c04cdfa10dc577a9a961572f
input-file:
- https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2024-08-01-preview/applications.json
- https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2024-08-01-preview/cluster.json
diff --git a/src/HDInsight/HDInsight.Test/ScenarioTests/HDInsightClusterTests.cs b/src/HDInsight/HDInsight.Test/ScenarioTests/HDInsightClusterTests.cs
index 22207be9ba74..c08557dbb43e 100644
--- a/src/HDInsight/HDInsight.Test/ScenarioTests/HDInsightClusterTests.cs
+++ b/src/HDInsight/HDInsight.Test/ScenarioTests/HDInsightClusterTests.cs
@@ -118,9 +118,23 @@ public void TestCreateClusterWithPrivateLinkConfiguration()
[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
- public void TestUpdateCluster()
+ public void TestUpdateClusterTags()
{
- TestRunner.RunTestScript("Test-UpdateClusterTagsAndIdentity");
+ TestRunner.RunTestScript("Test-UpdateClusterTags");
+ }
+
+ [Fact]
+ [Trait(Category.AcceptanceType, Category.CheckIn)]
+ public void TestUpdateClusterSystemAssigned()
+ {
+ TestRunner.RunTestScript("Test-UpdateClusterSystemAssigned");
+ }
+
+ [Fact]
+ [Trait(Category.AcceptanceType, Category.CheckIn)]
+ public void TestUpdateClusterUserAssigned()
+ {
+ TestRunner.RunTestScript("Test-UpdateClusterUserAssigned");
}
}
}
diff --git a/src/HDInsight/HDInsight.Test/ScenarioTests/HDInsightClusterTests.ps1 b/src/HDInsight/HDInsight.Test/ScenarioTests/HDInsightClusterTests.ps1
index 14074a7fc012..c365bdd85c78 100644
--- a/src/HDInsight/HDInsight.Test/ScenarioTests/HDInsightClusterTests.ps1
+++ b/src/HDInsight/HDInsight.Test/ScenarioTests/HDInsightClusterTests.ps1
@@ -534,32 +534,79 @@ function Test-CreateClusterWithPrivateLinkConfiguration{
<#
.SYNOPSIS
-Test Update clusterIdentity
+Test Update cluster tags
#>
-function Test-UpdateClusterTagsAndIdentity{
-
+function Test-UpdateClusterTags{
# Create some resources that will be used throughout test
try
{
- $location = "East US"
+ # prepare parameter for creating parameter
+ #$params= Prepare-ClusterCreateParameter
- # create cluster that will be used throughout test
- $cluster = Get-AzHDInsightCluster -ResourceGroupName yuchen-ps-test -ClusterName spark51
- Assert-NotNull $cluster
+ $rg="yuchen-devrp"
+ $clusterName="yuchen-hadoop-002"
# Update cluster tags
- #$tags = @{"tag1"="value1";"tag2"="value2"}
- #Update-AzHDInsightCluster -ResourceGroupName yuchen-ps-test -ClusterName spark51 -Tag @{"Tag1"="Value1"; "Tag2"="Value2"}
+ $tags = New-Object 'System.Collections.Generic.Dictionary[System.String,System.String]'
+ $tags.Add('Tag3', 'Value3')
+
+ $cluster = Update-AzHDInsightCluster -ResourceGroupName $rg -ClusterName $clusterName -Tag $tags
+ }
+ finally
+ {
+ # Delete cluster and resource group
+ # Remove-AzResourceGroup -ResourceGroupName $params.resourceGroupName
+ }
+}
- # Update cluster identity
- # Update-AzHDInsightCluster -ResourceGroupName yuchen-ps-test -ClusterName spark51 -IdentityType SystemAssigned
+<#
+.SYNOPSIS
+Test Update cluster System Assigned Identity
+#>
+function Test-UpdateClusterSystemAssigned{
+ try
+ {
+ $rg="yuchen-ps-test"
+ $clusterName="h1-spark"
- # Update cluster identity
- Update-AzHDInsightCluster -ResourceGroupName yuchen-ps-test -ClusterName spark51 -IdentityType UserAssigned -IdentityId "/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/yuchen-ps-test/providers/Microsoft.ManagedIdentity/userAssignedIdentities/hdi-msi"
+ $cluster = Update-AzHDInsightCluster -ResourceGroupName $rg -ClusterName $clusterName -IdentityType SystemAssigned
+
+ Assert-NotNull $cluster
+ Assert-AreEqual $cluster.AssignedIdentity.Type SystemAssigned
+ }
+ finally
+ {
+ # Delete cluster and resource group
+ # Remove-AzResourceGroup -ResourceGroupName $params.resourceGroupName
+ }
+}
+
+<#
+.SYNOPSIS
+Test Update cluster User Assigned Identity
+#>
+function Test-UpdateClusterUserAssigned{
+ try
+ {
+ $rg="yuchen-ps-test"
+ $clusterName="h1-spark"
+
+ # Define the list of Identity IDs
+ $identityIds = @(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/yuchen-ps-test/providers/microsoft.managedidentity/userassignedidentities/hdi-msi",
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yuchen-devrp/providers/Microsoft.ManagedIdentity/userAssignedIdentities/hdiwasbmsi"
+ )
+
+ $cluster = Update-AzHDInsightCluster -ResourceGroupName $rg -ClusterName $clusterName -IdentityType UserAssigned -IdentityId $identityIds
+
+ Assert-NotNull $cluster
+ Assert-AreEqual $cluster.AssignedIdentity.Type UserAssigned
}
finally
{
+ # Delete cluster and resource group
+ # Remove-AzResourceGroup -ResourceGroupName $params.resourceGroupName
}
-}
\ No newline at end of file
+}
diff --git a/src/HDInsight/HDInsight.Test/SessionRecords/Commands.HDInsight.Test.ScenarioTests.HDInsightClusterTests/TestUpdateCluster.json b/src/HDInsight/HDInsight.Test/SessionRecords/Commands.HDInsight.Test.ScenarioTests.HDInsightClusterTests/TestUpdateCluster.json
deleted file mode 100644
index 557b53f87b1b..000000000000
--- a/src/HDInsight/HDInsight.Test/SessionRecords/Commands.HDInsight.Test.ScenarioTests.HDInsightClusterTests/TestUpdateCluster.json
+++ /dev/null
@@ -1,359 +0,0 @@
-{
- "Entries": [
- {
- "RequestUri": "/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/yuchen-ps-test/providers/Microsoft.HDInsight/clusters/spark51?api-version=2024-08-01-preview",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTY0YzEwYmItOGE2Yy00M2JjLTgzZDMtNmIzMThjNmM3MzA1L3Jlc291cmNlR3JvdXBzL3l1Y2hlbi1wcy10ZXN0L3Byb3ZpZGVycy9NaWNyb3NvZnQuSERJbnNpZ2h0L2NsdXN0ZXJzL3NwYXJrNTE/YXBpLXZlcnNpb249MjAyNC0wOC0wMS1wcmV2aWV3",
- "RequestMethod": "GET",
- "RequestHeaders": {
- "x-ms-client-request-id": [
- "895bed1b-c84f-4aa2-a966-9ebc4265dc7f"
- ],
- "Accept-Language": [
- "en-US"
- ],
- "User-Agent": [
- "FxVersion/6.0.3324.36610",
- "OSName/Windows",
- "OSVersion/Microsoft.Windows.10.0.22631",
- "Microsoft.Azure.Management.HDInsight.HDInsightManagementClient/6.1.0"
- ]
- },
- "RequestBody": "",
- "ResponseHeaders": {
- "Cache-Control": [
- "no-cache"
- ],
- "Pragma": [
- "no-cache"
- ],
- "x-ms-request-id": [
- "327acf4a-8f7d-43ca-ad5d-8f317fb4eaab"
- ],
- "x-ms-hdi-served-by": [
- "eastus"
- ],
- "x-ms-correlation-request-id": [
- "a8623259-f582-4ece-ad36-9283c2864c14"
- ],
- "x-ms-ratelimit-remaining-subscription-reads": [
- "11999"
- ],
- "x-ms-routing-request-id": [
- "SOUTHINDIA:20240822T095551Z:a8623259-f582-4ece-ad36-9283c2864c14"
- ],
- "Strict-Transport-Security": [
- "max-age=31536000; includeSubDomains"
- ],
- "X-Content-Type-Options": [
- "nosniff"
- ],
- "X-Cache": [
- "CONFIG_NOCACHE"
- ],
- "X-MSEdge-Ref": [
- "Ref A: CAF581E45FBC4C519BC28DAD25E75A6B Ref B: MAA201060515035 Ref C: 2024-08-22T09:55:49Z"
- ],
- "Date": [
- "Thu, 22 Aug 2024 09:55:50 GMT"
- ],
- "Content-Length": [
- "3292"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
- ]
- },
- "ResponseBody": "{\r\n \"properties\": {\r\n \"clusterVersion\": \"5.1.3000.0\",\r\n \"clusterHdpVersion\": \"5.1.5.6\",\r\n \"osType\": \"Linux\",\r\n \"clusterDefinition\": {\r\n \"blueprint\": \"https://blueprints.azurehdinsight.net/spark-5.1.3000.0.2407260448.json\",\r\n \"kind\": \"SPARK\",\r\n \"componentVersion\": {\r\n \"Spark\": \"3.3\"\r\n }\r\n },\r\n \"clusterId\": \"7ce208572b3d4089abe86a38c548c831\",\r\n \"computeProfile\": {\r\n \"roles\": [\r\n {\r\n \"name\": \"headnode\",\r\n \"targetInstanceCount\": 2,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"standard_e8_v3\"\r\n },\r\n \"osProfile\": {\r\n \"linuxOperatingSystemProfile\": {\r\n \"username\": \"sshuser\"\r\n }\r\n },\r\n \"virtualNetworkProfile\": {\r\n \"id\": \"/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/yuchen-ps-test/providers/Microsoft.Network/virtualNetworks/hdi-vn-0\",\r\n \"subnet\": \"/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/yuchen-ps-test/providers/Microsoft.Network/virtualNetworks/hdi-vn-0/subnets/default\"\r\n },\r\n \"encryptDataDisks\": false\r\n },\r\n {\r\n \"name\": \"workernode\",\r\n \"targetInstanceCount\": 4,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"standard_e8_v3\"\r\n },\r\n \"osProfile\": {\r\n \"linuxOperatingSystemProfile\": {\r\n \"username\": \"sshuser\"\r\n }\r\n },\r\n \"virtualNetworkProfile\": {\r\n \"id\": \"/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/yuchen-ps-test/providers/Microsoft.Network/virtualNetworks/hdi-vn-0\",\r\n \"subnet\": \"/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/yuchen-ps-test/providers/Microsoft.Network/virtualNetworks/hdi-vn-0/subnets/default\"\r\n },\r\n \"encryptDataDisks\": false\r\n },\r\n {\r\n \"name\": \"zookeepernode\",\r\n \"targetInstanceCount\": 3,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"standard_a2_v2\"\r\n },\r\n \"osProfile\": {\r\n \"linuxOperatingSystemProfile\": {\r\n \"username\": \"sshuser\"\r\n }\r\n },\r\n \"virtualNetworkProfile\": {\r\n \"id\": \"/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/yuchen-ps-test/providers/Microsoft.Network/virtualNetworks/hdi-vn-0\",\r\n \"subnet\": \"/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/yuchen-ps-test/providers/Microsoft.Network/virtualNetworks/hdi-vn-0/subnets/default\"\r\n },\r\n \"encryptDataDisks\": false\r\n }\r\n ]\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"clusterState\": \"Running\",\r\n \"createdDate\": \"2024-08-20T05:09:58.45\",\r\n \"quotaInfo\": {\r\n \"coresUsed\": 48\r\n },\r\n \"connectivityEndpoints\": [\r\n {\r\n \"name\": \"SSH\",\r\n \"protocol\": \"TCP\",\r\n \"location\": \"spark51-ssh.azurehdinsight.net\",\r\n \"port\": 22\r\n },\r\n {\r\n \"name\": \"HTTPS\",\r\n \"protocol\": \"TCP\",\r\n \"location\": \"spark51.azurehdinsight.net\",\r\n \"port\": 443\r\n },\r\n {\r\n \"name\": \"HTTPS-INTERNAL\",\r\n \"protocol\": \"TCP\",\r\n \"location\": \"spark51-int.azurehdinsight.net\",\r\n \"port\": 443,\r\n \"privateIPAddress\": \"10.0.0.33\"\r\n }\r\n ],\r\n \"tier\": \"standard\",\r\n \"encryptionInTransitProperties\": {\r\n \"isEncryptionInTransitEnabled\": true\r\n },\r\n \"storageProfile\": {\r\n \"storageaccounts\": [\r\n {\r\n \"name\": \"spark51hdistorage.blob.core.windows.net\",\r\n \"resourceId\": \"\",\r\n \"msiResourceId\": null,\r\n \"key\": null,\r\n \"fileSystem\": null,\r\n \"container\": \"spark51-2024-08-20t05-08-35-915z\",\r\n \"saskey\": null,\r\n \"isDefault\": true,\r\n \"enableSecureChannel\": true,\r\n \"fileshare\": null\r\n }\r\n ]\r\n },\r\n \"minSupportedTlsVersion\": \"1.2\",\r\n \"excludedServicesConfig\": {\r\n \"excludedServicesConfigId\": \"default\",\r\n \"excludedServicesList\": \"\"\r\n },\r\n \"computeIsolationProperties\": {\r\n \"enableComputeIsolation\": false,\r\n \"hostSku\": null\r\n }\r\n },\r\n \"id\": \"/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/yuchen-ps-test/providers/Microsoft.HDInsight/clusters/spark51\",\r\n \"name\": \"spark51\",\r\n \"type\": \"Microsoft.HDInsight/clusters\",\r\n \"location\": \"East US\",\r\n \"etag\": \"cdc4ae1e-599b-49be-be08-63a416a0ef12\",\r\n \"tags\": {},\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"principalId\": \"4a3344ae-50a5-4b36-bed7-7fc95c429045\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\r\n }\r\n}",
- "StatusCode": 200
- },
- {
- "RequestUri": "/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/yuchen-ps-test/providers/Microsoft.HDInsight/clusters/spark51?api-version=2024-08-01-preview",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTY0YzEwYmItOGE2Yy00M2JjLTgzZDMtNmIzMThjNmM3MzA1L3Jlc291cmNlR3JvdXBzL3l1Y2hlbi1wcy10ZXN0L3Byb3ZpZGVycy9NaWNyb3NvZnQuSERJbnNpZ2h0L2NsdXN0ZXJzL3NwYXJrNTE/YXBpLXZlcnNpb249MjAyNC0wOC0wMS1wcmV2aWV3",
- "RequestMethod": "GET",
- "RequestHeaders": {
- "x-ms-client-request-id": [
- "d2aff83e-f45d-4522-8b2d-b81b846635b2"
- ],
- "Accept-Language": [
- "en-US"
- ],
- "User-Agent": [
- "FxVersion/6.0.3324.36610",
- "OSName/Windows",
- "OSVersion/Microsoft.Windows.10.0.22631",
- "Microsoft.Azure.Management.HDInsight.HDInsightManagementClient/6.1.0"
- ]
- },
- "RequestBody": "",
- "ResponseHeaders": {
- "Cache-Control": [
- "no-cache"
- ],
- "Pragma": [
- "no-cache"
- ],
- "x-ms-request-id": [
- "d7f9bfa9-a58e-4a10-9b94-6f93dd64bc6e"
- ],
- "x-ms-hdi-served-by": [
- "eastus"
- ],
- "x-ms-correlation-request-id": [
- "16c103bd-426c-47a3-bc56-33ddfb4fa78a"
- ],
- "x-ms-ratelimit-remaining-subscription-reads": [
- "11995"
- ],
- "x-ms-routing-request-id": [
- "SOUTHINDIA:20240822T095604Z:16c103bd-426c-47a3-bc56-33ddfb4fa78a"
- ],
- "Strict-Transport-Security": [
- "max-age=31536000; includeSubDomains"
- ],
- "X-Content-Type-Options": [
- "nosniff"
- ],
- "X-Cache": [
- "CONFIG_NOCACHE"
- ],
- "X-MSEdge-Ref": [
- "Ref A: F8A7F37818B445F6A3714E93095A08AE Ref B: MAA201060515045 Ref C: 2024-08-22T09:56:03Z"
- ],
- "Date": [
- "Thu, 22 Aug 2024 09:56:03 GMT"
- ],
- "Content-Length": [
- "3383"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
- ]
- },
- "ResponseBody": "{\r\n \"properties\": {\r\n \"clusterVersion\": \"5.1.3000.0\",\r\n \"clusterHdpVersion\": \"5.1.5.6\",\r\n \"osType\": \"Linux\",\r\n \"clusterDefinition\": {\r\n \"blueprint\": \"https://blueprints.azurehdinsight.net/spark-5.1.3000.0.2407260448.json\",\r\n \"kind\": \"SPARK\",\r\n \"componentVersion\": {\r\n \"Spark\": \"3.3\"\r\n }\r\n },\r\n \"clusterId\": \"7ce208572b3d4089abe86a38c548c831\",\r\n \"computeProfile\": {\r\n \"roles\": [\r\n {\r\n \"name\": \"headnode\",\r\n \"targetInstanceCount\": 2,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"standard_e8_v3\"\r\n },\r\n \"osProfile\": {\r\n \"linuxOperatingSystemProfile\": {\r\n \"username\": \"sshuser\"\r\n }\r\n },\r\n \"virtualNetworkProfile\": {\r\n \"id\": \"/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/yuchen-ps-test/providers/Microsoft.Network/virtualNetworks/hdi-vn-0\",\r\n \"subnet\": \"/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/yuchen-ps-test/providers/Microsoft.Network/virtualNetworks/hdi-vn-0/subnets/default\"\r\n },\r\n \"encryptDataDisks\": false\r\n },\r\n {\r\n \"name\": \"workernode\",\r\n \"targetInstanceCount\": 4,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"standard_e8_v3\"\r\n },\r\n \"osProfile\": {\r\n \"linuxOperatingSystemProfile\": {\r\n \"username\": \"sshuser\"\r\n }\r\n },\r\n \"virtualNetworkProfile\": {\r\n \"id\": \"/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/yuchen-ps-test/providers/Microsoft.Network/virtualNetworks/hdi-vn-0\",\r\n \"subnet\": \"/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/yuchen-ps-test/providers/Microsoft.Network/virtualNetworks/hdi-vn-0/subnets/default\"\r\n },\r\n \"encryptDataDisks\": false\r\n },\r\n {\r\n \"name\": \"zookeepernode\",\r\n \"targetInstanceCount\": 3,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"standard_a2_v2\"\r\n },\r\n \"osProfile\": {\r\n \"linuxOperatingSystemProfile\": {\r\n \"username\": \"sshuser\"\r\n }\r\n },\r\n \"virtualNetworkProfile\": {\r\n \"id\": \"/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/yuchen-ps-test/providers/Microsoft.Network/virtualNetworks/hdi-vn-0\",\r\n \"subnet\": \"/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/yuchen-ps-test/providers/Microsoft.Network/virtualNetworks/hdi-vn-0/subnets/default\"\r\n },\r\n \"encryptDataDisks\": false\r\n }\r\n ]\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"clusterState\": \"HdInsightConfiguration\",\r\n \"createdDate\": \"2024-08-20T05:09:58.45\",\r\n \"quotaInfo\": {\r\n \"coresUsed\": 48\r\n },\r\n \"connectivityEndpoints\": [\r\n {\r\n \"name\": \"SSH\",\r\n \"protocol\": \"TCP\",\r\n \"location\": \"spark51-ssh.azurehdinsight.net\",\r\n \"port\": 22\r\n },\r\n {\r\n \"name\": \"HTTPS\",\r\n \"protocol\": \"TCP\",\r\n \"location\": \"spark51.azurehdinsight.net\",\r\n \"port\": 443\r\n },\r\n {\r\n \"name\": \"HTTPS-INTERNAL\",\r\n \"protocol\": \"TCP\",\r\n \"location\": \"spark51-int.azurehdinsight.net\",\r\n \"port\": 443,\r\n \"privateIPAddress\": \"10.0.0.33\"\r\n }\r\n ],\r\n \"tier\": \"standard\",\r\n \"encryptionInTransitProperties\": {\r\n \"isEncryptionInTransitEnabled\": true\r\n },\r\n \"storageProfile\": {\r\n \"storageaccounts\": [\r\n {\r\n \"name\": \"spark51hdistorage.blob.core.windows.net\",\r\n \"resourceId\": \"\",\r\n \"msiResourceId\": null,\r\n \"key\": null,\r\n \"fileSystem\": null,\r\n \"container\": \"spark51-2024-08-20t05-08-35-915z\",\r\n \"saskey\": null,\r\n \"isDefault\": true,\r\n \"enableSecureChannel\": true,\r\n \"fileshare\": null\r\n }\r\n ]\r\n },\r\n \"minSupportedTlsVersion\": \"1.2\",\r\n \"excludedServicesConfig\": {\r\n \"excludedServicesConfigId\": \"default\",\r\n \"excludedServicesList\": \"\"\r\n },\r\n \"computeIsolationProperties\": {\r\n \"enableComputeIsolation\": false,\r\n \"hostSku\": null\r\n }\r\n },\r\n \"id\": \"/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/yuchen-ps-test/providers/Microsoft.HDInsight/clusters/spark51\",\r\n \"name\": \"spark51\",\r\n \"type\": \"Microsoft.HDInsight/clusters\",\r\n \"location\": \"East US\",\r\n \"etag\": \"cdc4ae1e-599b-49be-be08-63a416a0ef12\",\r\n \"tags\": {},\r\n \"identity\": {\r\n \"type\": \"UserAssigned\",\r\n \"userAssignedIdentities\": {\r\n \"/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourcegroups/yuchen-ps-test/providers/microsoft.managedidentity/userassignedidentities/hdi-msi\": {}\r\n }\r\n }\r\n}",
- "StatusCode": 200
- },
- {
- "RequestUri": "/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/yuchen-ps-test/providers/Microsoft.HDInsight/clusters/spark51/configurations/core-site?api-version=2024-08-01-preview",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTY0YzEwYmItOGE2Yy00M2JjLTgzZDMtNmIzMThjNmM3MzA1L3Jlc291cmNlR3JvdXBzL3l1Y2hlbi1wcy10ZXN0L3Byb3ZpZGVycy9NaWNyb3NvZnQuSERJbnNpZ2h0L2NsdXN0ZXJzL3NwYXJrNTEvY29uZmlndXJhdGlvbnMvY29yZS1zaXRlP2FwaS12ZXJzaW9uPTIwMjQtMDgtMDEtcHJldmlldw==",
- "RequestMethod": "GET",
- "RequestHeaders": {
- "x-ms-client-request-id": [
- "895bed1b-c84f-4aa2-a966-9ebc4265dc7f"
- ],
- "Accept-Language": [
- "en-US"
- ],
- "User-Agent": [
- "FxVersion/6.0.3324.36610",
- "OSName/Windows",
- "OSVersion/Microsoft.Windows.10.0.22631",
- "Microsoft.Azure.Management.HDInsight.HDInsightManagementClient/6.1.0"
- ]
- },
- "RequestBody": "",
- "ResponseHeaders": {
- "Cache-Control": [
- "no-cache"
- ],
- "Pragma": [
- "no-cache"
- ],
- "x-ms-request-id": [
- "ab496510-7ead-4822-9835-0b94bc5420fe"
- ],
- "x-ms-hdi-served-by": [
- "eastus"
- ],
- "x-ms-correlation-request-id": [
- "4d29e943-05ca-43fd-a330-81796914d362"
- ],
- "x-ms-ratelimit-remaining-subscription-reads": [
- "11996"
- ],
- "x-ms-routing-request-id": [
- "SOUTHINDIA:20240822T095553Z:4d29e943-05ca-43fd-a330-81796914d362"
- ],
- "Strict-Transport-Security": [
- "max-age=31536000; includeSubDomains"
- ],
- "X-Content-Type-Options": [
- "nosniff"
- ],
- "X-Cache": [
- "CONFIG_NOCACHE"
- ],
- "X-MSEdge-Ref": [
- "Ref A: 9312EF0A308B4E34933901C542171AAE Ref B: MAA201060515035 Ref C: 2024-08-22T09:55:51Z"
- ],
- "Date": [
- "Thu, 22 Aug 2024 09:55:52 GMT"
- ],
- "Content-Length": [
- "170"
- ],
- "Content-Type": [
- "application/json; charset=Windows-1252"
- ],
- "Expires": [
- "-1"
- ]
- },
- "ResponseBody": "{\r\n \"fs.defaultFS\": \"wasbs://spark51-2024-08-20t05-08-35-915z@spark51hdistorage.blob.core.windows.net\",\r\n \"fs.azure.account.key.spark51hdistorage.blob.core.windows.net\": \"*****\"\r\n}",
- "StatusCode": 200
- },
- {
- "RequestUri": "/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/yuchen-ps-test/providers/Microsoft.HDInsight/clusters/spark51/configurations/clusterIdentity?api-version=2024-08-01-preview",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTY0YzEwYmItOGE2Yy00M2JjLTgzZDMtNmIzMThjNmM3MzA1L3Jlc291cmNlR3JvdXBzL3l1Y2hlbi1wcy10ZXN0L3Byb3ZpZGVycy9NaWNyb3NvZnQuSERJbnNpZ2h0L2NsdXN0ZXJzL3NwYXJrNTEvY29uZmlndXJhdGlvbnMvY2x1c3RlcklkZW50aXR5P2FwaS12ZXJzaW9uPTIwMjQtMDgtMDEtcHJldmlldw==",
- "RequestMethod": "GET",
- "RequestHeaders": {
- "x-ms-client-request-id": [
- "895bed1b-c84f-4aa2-a966-9ebc4265dc7f"
- ],
- "Accept-Language": [
- "en-US"
- ],
- "User-Agent": [
- "FxVersion/6.0.3324.36610",
- "OSName/Windows",
- "OSVersion/Microsoft.Windows.10.0.22631",
- "Microsoft.Azure.Management.HDInsight.HDInsightManagementClient/6.1.0"
- ]
- },
- "RequestBody": "",
- "ResponseHeaders": {
- "Cache-Control": [
- "no-cache"
- ],
- "Pragma": [
- "no-cache"
- ],
- "x-ms-request-id": [
- "338c1066-c94d-4221-99c8-cdd0806b827d"
- ],
- "x-ms-hdi-served-by": [
- "eastus"
- ],
- "x-ms-correlation-request-id": [
- "f9eb9711-0f24-43a1-84f2-f44077063dd9"
- ],
- "x-ms-ratelimit-remaining-subscription-reads": [
- "11998"
- ],
- "x-ms-routing-request-id": [
- "SOUTHINDIA:20240822T095554Z:f9eb9711-0f24-43a1-84f2-f44077063dd9"
- ],
- "Strict-Transport-Security": [
- "max-age=31536000; includeSubDomains"
- ],
- "X-Content-Type-Options": [
- "nosniff"
- ],
- "X-Cache": [
- "CONFIG_NOCACHE"
- ],
- "X-MSEdge-Ref": [
- "Ref A: 028161AE54984CF6819BFE7824D213D5 Ref B: MAA201060515035 Ref C: 2024-08-22T09:55:53Z"
- ],
- "Date": [
- "Thu, 22 Aug 2024 09:55:54 GMT"
- ],
- "Content-Length": [
- "2"
- ],
- "Content-Type": [
- "application/json; charset=Windows-1252"
- ],
- "Expires": [
- "-1"
- ]
- },
- "ResponseBody": "{}",
- "StatusCode": 200
- },
- {
- "RequestUri": "/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/yuchen-ps-test/providers/Microsoft.HDInsight/clusters/spark51?api-version=2024-08-01-preview",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTY0YzEwYmItOGE2Yy00M2JjLTgzZDMtNmIzMThjNmM3MzA1L3Jlc291cmNlR3JvdXBzL3l1Y2hlbi1wcy10ZXN0L3Byb3ZpZGVycy9NaWNyb3NvZnQuSERJbnNpZ2h0L2NsdXN0ZXJzL3NwYXJrNTE/YXBpLXZlcnNpb249MjAyNC0wOC0wMS1wcmV2aWV3",
- "RequestMethod": "PATCH",
- "RequestHeaders": {
- "x-ms-client-request-id": [
- "d2aff83e-f45d-4522-8b2d-b81b846635b2"
- ],
- "Accept-Language": [
- "en-US"
- ],
- "User-Agent": [
- "FxVersion/6.0.3324.36610",
- "OSName/Windows",
- "OSVersion/Microsoft.Windows.10.0.22631",
- "Microsoft.Azure.Management.HDInsight.HDInsightManagementClient/6.1.0"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Content-Length": [
- "257"
- ]
- },
- "RequestBody": "{\r\n \"identity\": {\r\n \"type\": \"UserAssigned\",\r\n \"userAssignedIdentities\": {\r\n \"/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/yuchen-ps-test/providers/Microsoft.ManagedIdentity/userAssignedIdentities/hdi-msi\": {}\r\n }\r\n }\r\n}",
- "ResponseHeaders": {
- "Cache-Control": [
- "no-cache"
- ],
- "Pragma": [
- "no-cache"
- ],
- "x-ms-request-id": [
- "a078c92f-9917-419b-aeff-7b411f4622cb"
- ],
- "x-ms-hdi-served-by": [
- "eastus"
- ],
- "x-ms-correlation-request-id": [
- "28af9431-ff8f-4c7a-8d55-f9044a88c42a"
- ],
- "x-ms-ratelimit-remaining-subscription-writes": [
- "1199"
- ],
- "x-ms-routing-request-id": [
- "SOUTHINDIA:20240822T095603Z:28af9431-ff8f-4c7a-8d55-f9044a88c42a"
- ],
- "Strict-Transport-Security": [
- "max-age=31536000; includeSubDomains"
- ],
- "X-Content-Type-Options": [
- "nosniff"
- ],
- "X-Cache": [
- "CONFIG_NOCACHE"
- ],
- "X-MSEdge-Ref": [
- "Ref A: 266BA8E977D248608D7D583A4F270E97 Ref B: MAA201060515045 Ref C: 2024-08-22T09:55:55Z"
- ],
- "Date": [
- "Thu, 22 Aug 2024 09:56:02 GMT"
- ],
- "Content-Length": [
- "3369"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
- ]
- },
- "ResponseBody": "{\r\n \"properties\": {\r\n \"clusterVersion\": \"5.1.3000.0\",\r\n \"clusterHdpVersion\": \"5.1.5.6\",\r\n \"osType\": \"Linux\",\r\n \"clusterDefinition\": {\r\n \"blueprint\": \"https://blueprints.azurehdinsight.net/spark-5.1.3000.0.2407260448.json\",\r\n \"kind\": \"SPARK\",\r\n \"componentVersion\": {\r\n \"Spark\": \"3.3\"\r\n }\r\n },\r\n \"clusterId\": \"7ce208572b3d4089abe86a38c548c831\",\r\n \"computeProfile\": {\r\n \"roles\": [\r\n {\r\n \"name\": \"headnode\",\r\n \"targetInstanceCount\": 2,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"standard_e8_v3\"\r\n },\r\n \"osProfile\": {\r\n \"linuxOperatingSystemProfile\": {\r\n \"username\": \"sshuser\"\r\n }\r\n },\r\n \"virtualNetworkProfile\": {\r\n \"id\": \"/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/yuchen-ps-test/providers/Microsoft.Network/virtualNetworks/hdi-vn-0\",\r\n \"subnet\": \"/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/yuchen-ps-test/providers/Microsoft.Network/virtualNetworks/hdi-vn-0/subnets/default\"\r\n },\r\n \"encryptDataDisks\": false\r\n },\r\n {\r\n \"name\": \"workernode\",\r\n \"targetInstanceCount\": 4,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"standard_e8_v3\"\r\n },\r\n \"osProfile\": {\r\n \"linuxOperatingSystemProfile\": {\r\n \"username\": \"sshuser\"\r\n }\r\n },\r\n \"virtualNetworkProfile\": {\r\n \"id\": \"/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/yuchen-ps-test/providers/Microsoft.Network/virtualNetworks/hdi-vn-0\",\r\n \"subnet\": \"/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/yuchen-ps-test/providers/Microsoft.Network/virtualNetworks/hdi-vn-0/subnets/default\"\r\n },\r\n \"encryptDataDisks\": false\r\n },\r\n {\r\n \"name\": \"zookeepernode\",\r\n \"targetInstanceCount\": 3,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"standard_a2_v2\"\r\n },\r\n \"osProfile\": {\r\n \"linuxOperatingSystemProfile\": {\r\n \"username\": \"sshuser\"\r\n }\r\n },\r\n \"virtualNetworkProfile\": {\r\n \"id\": \"/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/yuchen-ps-test/providers/Microsoft.Network/virtualNetworks/hdi-vn-0\",\r\n \"subnet\": \"/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/yuchen-ps-test/providers/Microsoft.Network/virtualNetworks/hdi-vn-0/subnets/default\"\r\n },\r\n \"encryptDataDisks\": false\r\n }\r\n ]\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"clusterState\": \"Accepted\",\r\n \"createdDate\": \"2024-08-20T05:09:58.45\",\r\n \"quotaInfo\": {\r\n \"coresUsed\": 48\r\n },\r\n \"connectivityEndpoints\": [\r\n {\r\n \"name\": \"SSH\",\r\n \"protocol\": \"TCP\",\r\n \"location\": \"spark51-ssh.azurehdinsight.net\",\r\n \"port\": 22\r\n },\r\n {\r\n \"name\": \"HTTPS\",\r\n \"protocol\": \"TCP\",\r\n \"location\": \"spark51.azurehdinsight.net\",\r\n \"port\": 443\r\n },\r\n {\r\n \"name\": \"HTTPS-INTERNAL\",\r\n \"protocol\": \"TCP\",\r\n \"location\": \"spark51-int.azurehdinsight.net\",\r\n \"port\": 443,\r\n \"privateIPAddress\": \"10.0.0.33\"\r\n }\r\n ],\r\n \"tier\": \"standard\",\r\n \"encryptionInTransitProperties\": {\r\n \"isEncryptionInTransitEnabled\": true\r\n },\r\n \"storageProfile\": {\r\n \"storageaccounts\": [\r\n {\r\n \"name\": \"spark51hdistorage.blob.core.windows.net\",\r\n \"resourceId\": \"\",\r\n \"msiResourceId\": null,\r\n \"key\": null,\r\n \"fileSystem\": null,\r\n \"container\": \"spark51-2024-08-20t05-08-35-915z\",\r\n \"saskey\": null,\r\n \"isDefault\": true,\r\n \"enableSecureChannel\": true,\r\n \"fileshare\": null\r\n }\r\n ]\r\n },\r\n \"minSupportedTlsVersion\": \"1.2\",\r\n \"excludedServicesConfig\": {\r\n \"excludedServicesConfigId\": \"default\",\r\n \"excludedServicesList\": \"\"\r\n },\r\n \"computeIsolationProperties\": {\r\n \"enableComputeIsolation\": false,\r\n \"hostSku\": null\r\n }\r\n },\r\n \"id\": \"/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/yuchen-ps-test/providers/Microsoft.HDInsight/clusters/spark51\",\r\n \"name\": \"spark51\",\r\n \"type\": \"Microsoft.HDInsight/clusters\",\r\n \"location\": \"East US\",\r\n \"etag\": \"cdc4ae1e-599b-49be-be08-63a416a0ef12\",\r\n \"tags\": {},\r\n \"identity\": {\r\n \"type\": \"UserAssigned\",\r\n \"userAssignedIdentities\": {\r\n \"/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourcegroups/yuchen-ps-test/providers/microsoft.managedidentity/userassignedidentities/hdi-msi\": {}\r\n }\r\n }\r\n}",
- "StatusCode": 200
- }
- ],
- "Names": {},
- "Variables": {
- "SubscriptionId": "964c10bb-8a6c-43bc-83d3-6b318c6c7305"
- }
-}
\ No newline at end of file
diff --git a/src/HDInsight/HDInsight.Test/SessionRecords/Commands.HDInsight.Test.ScenarioTests.HDInsightClusterTests/TestUpdateClusterSystemAssigned.json b/src/HDInsight/HDInsight.Test/SessionRecords/Commands.HDInsight.Test.ScenarioTests.HDInsightClusterTests/TestUpdateClusterSystemAssigned.json
new file mode 100644
index 000000000000..49c867439acc
--- /dev/null
+++ b/src/HDInsight/HDInsight.Test/SessionRecords/Commands.HDInsight.Test.ScenarioTests.HDInsightClusterTests/TestUpdateClusterSystemAssigned.json
@@ -0,0 +1,152 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/yuchen-ps-test/providers/Microsoft.HDInsight/clusters/h1-spark?api-version=2024-08-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTY0YzEwYmItOGE2Yy00M2JjLTgzZDMtNmIzMThjNmM3MzA1L3Jlc291cmNlR3JvdXBzL3l1Y2hlbi1wcy10ZXN0L3Byb3ZpZGVycy9NaWNyb3NvZnQuSERJbnNpZ2h0L2NsdXN0ZXJzL2gxLXNwYXJrP2FwaS12ZXJzaW9uPTIwMjQtMDgtMDEtcHJldmlldw==",
+ "RequestMethod": "PATCH",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "b381e422-9f20-469a-9eb3-e33d717d8604"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/6.0.3324.36610",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.22631",
+ "Microsoft.Azure.Management.HDInsight.HDInsightManagementClient/6.2.0"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "56"
+ ]
+ },
+ "RequestBody": "{\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "660061cd-89b3-4b91-95da-e57bce586a25"
+ ],
+ "x-ms-hdi-served-by": [
+ "eastus"
+ ],
+ "x-ms-correlation-request-id": [
+ "f7caed41-3d3d-4254-bb92-466a55e2498c"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1199"
+ ],
+ "x-ms-routing-request-id": [
+ "JAPANEAST:20240919T073157Z:f7caed41-3d3d-4254-bb92-466a55e2498c"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "X-Cache": [
+ "CONFIG_NOCACHE"
+ ],
+ "X-MSEdge-Ref": [
+ "Ref A: 9DF470E6D77747EA8354FB4AD05A17D6 Ref B: TYO201100115029 Ref C: 2024-09-19T07:31:48Z"
+ ],
+ "Date": [
+ "Thu, 19 Sep 2024 07:31:56 GMT"
+ ],
+ "Content-Length": [
+ "3570"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"clusterVersion\": \"5.1.3000.0\",\r\n \"clusterHdpVersion\": \"5.1.5.6\",\r\n \"osType\": \"Linux\",\r\n \"clusterDefinition\": {\r\n \"blueprint\": \"https://blueprints.azurehdinsight.net/spark-5.1.3000.0.2407260448.json\",\r\n \"kind\": \"spark\",\r\n \"componentVersion\": {\r\n \"spark\": \"3.3\"\r\n }\r\n },\r\n \"clusterId\": \"0ad55f21b3d64a16ad96097d285b029b\",\r\n \"computeProfile\": {\r\n \"roles\": [\r\n {\r\n \"name\": \"headnode\",\r\n \"targetInstanceCount\": 2,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"standard_e8_v3\"\r\n },\r\n \"osProfile\": {\r\n \"linuxOperatingSystemProfile\": {\r\n \"username\": \"sshuser\"\r\n }\r\n },\r\n \"virtualNetworkProfile\": {\r\n \"id\": \"/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/yuchen-ps-test/providers/Microsoft.Network/virtualNetworks/hdi-vn\",\r\n \"subnet\": \"/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/yuchen-ps-test/providers/Microsoft.Network/virtualNetworks/hdi-vn/subnets/default\"\r\n },\r\n \"encryptDataDisks\": false\r\n },\r\n {\r\n \"name\": \"workernode\",\r\n \"targetInstanceCount\": 3,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"standard_e8_v3\"\r\n },\r\n \"osProfile\": {\r\n \"linuxOperatingSystemProfile\": {\r\n \"username\": \"sshuser\"\r\n }\r\n },\r\n \"virtualNetworkProfile\": {\r\n \"id\": \"/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/yuchen-ps-test/providers/Microsoft.Network/virtualNetworks/hdi-vn\",\r\n \"subnet\": \"/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/yuchen-ps-test/providers/Microsoft.Network/virtualNetworks/hdi-vn/subnets/default\"\r\n },\r\n \"encryptDataDisks\": false\r\n },\r\n {\r\n \"name\": \"zookeepernode\",\r\n \"targetInstanceCount\": 3,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"standard_a2_v2\"\r\n },\r\n \"osProfile\": {\r\n \"linuxOperatingSystemProfile\": {\r\n \"username\": \"sshuser\"\r\n }\r\n },\r\n \"virtualNetworkProfile\": {\r\n \"id\": \"/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/yuchen-ps-test/providers/Microsoft.Network/virtualNetworks/hdi-vn\",\r\n \"subnet\": \"/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/yuchen-ps-test/providers/Microsoft.Network/virtualNetworks/hdi-vn/subnets/default\"\r\n },\r\n \"encryptDataDisks\": false\r\n }\r\n ]\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"clusterState\": \"Accepted\",\r\n \"createdDate\": \"2024-08-29T07:14:30.923\",\r\n \"quotaInfo\": {\r\n \"coresUsed\": 40\r\n },\r\n \"connectivityEndpoints\": [\r\n {\r\n \"name\": \"SSH\",\r\n \"protocol\": \"TCP\",\r\n \"location\": \"h1-spark-ssh.azurehdinsight.net\",\r\n \"port\": 22,\r\n \"privateIPAddress\": \"10.0.0.10\"\r\n },\r\n {\r\n \"name\": \"HTTPS\",\r\n \"protocol\": \"TCP\",\r\n \"location\": \"h1-spark.azurehdinsight.net\",\r\n \"port\": 443,\r\n \"privateIPAddress\": \"10.0.0.44\"\r\n },\r\n {\r\n \"name\": \"HTTPS-INTERNAL\",\r\n \"protocol\": \"TCP\",\r\n \"location\": \"h1-spark-int.azurehdinsight.net\",\r\n \"port\": 443,\r\n \"privateIPAddress\": \"10.0.0.44\"\r\n }\r\n ],\r\n \"tier\": \"standard\",\r\n \"encryptionInTransitProperties\": {\r\n \"isEncryptionInTransitEnabled\": false\r\n },\r\n \"storageProfile\": {\r\n \"storageaccounts\": [\r\n {\r\n \"name\": \"hdi819sparkhdistorage.blob.core.windows.net\",\r\n \"resourceId\": \"/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/yuchen-ps-test/providers/Microsoft.Storage/storageAccounts/hdi819sparkhdistorage\",\r\n \"msiResourceId\": null,\r\n \"key\": null,\r\n \"fileSystem\": null,\r\n \"container\": \"default\",\r\n \"saskey\": null,\r\n \"isDefault\": true,\r\n \"enableSecureChannel\": null,\r\n \"fileshare\": null\r\n }\r\n ]\r\n },\r\n \"excludedServicesConfig\": {\r\n \"excludedServicesConfigId\": \"default\",\r\n \"excludedServicesList\": \"\"\r\n },\r\n \"networkProperties\": {\r\n \"resourceProviderConnection\": \"Outbound\",\r\n \"privateLink\": \"Enabled\"\r\n },\r\n \"computeIsolationProperties\": {\r\n \"enableComputeIsolation\": false,\r\n \"hostSku\": null\r\n },\r\n \"privateEndpointConnections\": []\r\n },\r\n \"id\": \"/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/yuchen-ps-test/providers/Microsoft.HDInsight/clusters/h1-spark\",\r\n \"name\": \"h1-spark\",\r\n \"type\": \"Microsoft.HDInsight/clusters\",\r\n \"location\": \"East US\",\r\n \"etag\": \"4bddd888-3f8b-41da-9b1f-abed8b81790e\",\r\n \"tags\": {\r\n \"1\": \"1\"\r\n },\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"principalId\": \"749d3118-c65d-41b4-b4dd-f52cc94cbc53\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\r\n }\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/yuchen-ps-test/providers/Microsoft.HDInsight/clusters/h1-spark?api-version=2024-08-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTY0YzEwYmItOGE2Yy00M2JjLTgzZDMtNmIzMThjNmM3MzA1L3Jlc291cmNlR3JvdXBzL3l1Y2hlbi1wcy10ZXN0L3Byb3ZpZGVycy9NaWNyb3NvZnQuSERJbnNpZ2h0L2NsdXN0ZXJzL2gxLXNwYXJrP2FwaS12ZXJzaW9uPTIwMjQtMDgtMDEtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "b381e422-9f20-469a-9eb3-e33d717d8604"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/6.0.3324.36610",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.22631",
+ "Microsoft.Azure.Management.HDInsight.HDInsightManagementClient/6.2.0"
+ ]
+ },
+ "RequestBody": "",
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "deddf712-f83a-4298-8e4f-c4cb2bf28ce5"
+ ],
+ "x-ms-hdi-served-by": [
+ "eastus"
+ ],
+ "x-ms-correlation-request-id": [
+ "71445c84-92a4-46c0-840b-d192e5d03535"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "11997"
+ ],
+ "x-ms-routing-request-id": [
+ "JAPANEAST:20240919T073200Z:71445c84-92a4-46c0-840b-d192e5d03535"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "X-Cache": [
+ "CONFIG_NOCACHE"
+ ],
+ "X-MSEdge-Ref": [
+ "Ref A: BE60B3EF5E5743BCBF0155C66300D564 Ref B: TYO201100115029 Ref C: 2024-09-19T07:31:57Z"
+ ],
+ "Date": [
+ "Thu, 19 Sep 2024 07:31:59 GMT"
+ ],
+ "Content-Length": [
+ "3584"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"clusterVersion\": \"5.1.3000.0\",\r\n \"clusterHdpVersion\": \"5.1.5.6\",\r\n \"osType\": \"Linux\",\r\n \"clusterDefinition\": {\r\n \"blueprint\": \"https://blueprints.azurehdinsight.net/spark-5.1.3000.0.2407260448.json\",\r\n \"kind\": \"spark\",\r\n \"componentVersion\": {\r\n \"spark\": \"3.3\"\r\n }\r\n },\r\n \"clusterId\": \"0ad55f21b3d64a16ad96097d285b029b\",\r\n \"computeProfile\": {\r\n \"roles\": [\r\n {\r\n \"name\": \"headnode\",\r\n \"targetInstanceCount\": 2,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"standard_e8_v3\"\r\n },\r\n \"osProfile\": {\r\n \"linuxOperatingSystemProfile\": {\r\n \"username\": \"sshuser\"\r\n }\r\n },\r\n \"virtualNetworkProfile\": {\r\n \"id\": \"/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/yuchen-ps-test/providers/Microsoft.Network/virtualNetworks/hdi-vn\",\r\n \"subnet\": \"/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/yuchen-ps-test/providers/Microsoft.Network/virtualNetworks/hdi-vn/subnets/default\"\r\n },\r\n \"encryptDataDisks\": false\r\n },\r\n {\r\n \"name\": \"workernode\",\r\n \"targetInstanceCount\": 3,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"standard_e8_v3\"\r\n },\r\n \"osProfile\": {\r\n \"linuxOperatingSystemProfile\": {\r\n \"username\": \"sshuser\"\r\n }\r\n },\r\n \"virtualNetworkProfile\": {\r\n \"id\": \"/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/yuchen-ps-test/providers/Microsoft.Network/virtualNetworks/hdi-vn\",\r\n \"subnet\": \"/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/yuchen-ps-test/providers/Microsoft.Network/virtualNetworks/hdi-vn/subnets/default\"\r\n },\r\n \"encryptDataDisks\": false\r\n },\r\n {\r\n \"name\": \"zookeepernode\",\r\n \"targetInstanceCount\": 3,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"standard_a2_v2\"\r\n },\r\n \"osProfile\": {\r\n \"linuxOperatingSystemProfile\": {\r\n \"username\": \"sshuser\"\r\n }\r\n },\r\n \"virtualNetworkProfile\": {\r\n \"id\": \"/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/yuchen-ps-test/providers/Microsoft.Network/virtualNetworks/hdi-vn\",\r\n \"subnet\": \"/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/yuchen-ps-test/providers/Microsoft.Network/virtualNetworks/hdi-vn/subnets/default\"\r\n },\r\n \"encryptDataDisks\": false\r\n }\r\n ]\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"clusterState\": \"HdInsightConfiguration\",\r\n \"createdDate\": \"2024-08-29T07:14:30.923\",\r\n \"quotaInfo\": {\r\n \"coresUsed\": 40\r\n },\r\n \"connectivityEndpoints\": [\r\n {\r\n \"name\": \"SSH\",\r\n \"protocol\": \"TCP\",\r\n \"location\": \"h1-spark-ssh.azurehdinsight.net\",\r\n \"port\": 22,\r\n \"privateIPAddress\": \"10.0.0.10\"\r\n },\r\n {\r\n \"name\": \"HTTPS\",\r\n \"protocol\": \"TCP\",\r\n \"location\": \"h1-spark.azurehdinsight.net\",\r\n \"port\": 443,\r\n \"privateIPAddress\": \"10.0.0.44\"\r\n },\r\n {\r\n \"name\": \"HTTPS-INTERNAL\",\r\n \"protocol\": \"TCP\",\r\n \"location\": \"h1-spark-int.azurehdinsight.net\",\r\n \"port\": 443,\r\n \"privateIPAddress\": \"10.0.0.44\"\r\n }\r\n ],\r\n \"tier\": \"standard\",\r\n \"encryptionInTransitProperties\": {\r\n \"isEncryptionInTransitEnabled\": false\r\n },\r\n \"storageProfile\": {\r\n \"storageaccounts\": [\r\n {\r\n \"name\": \"hdi819sparkhdistorage.blob.core.windows.net\",\r\n \"resourceId\": \"/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/yuchen-ps-test/providers/Microsoft.Storage/storageAccounts/hdi819sparkhdistorage\",\r\n \"msiResourceId\": null,\r\n \"key\": null,\r\n \"fileSystem\": null,\r\n \"container\": \"default\",\r\n \"saskey\": null,\r\n \"isDefault\": true,\r\n \"enableSecureChannel\": null,\r\n \"fileshare\": null\r\n }\r\n ]\r\n },\r\n \"excludedServicesConfig\": {\r\n \"excludedServicesConfigId\": \"default\",\r\n \"excludedServicesList\": \"\"\r\n },\r\n \"networkProperties\": {\r\n \"resourceProviderConnection\": \"Outbound\",\r\n \"privateLink\": \"Enabled\"\r\n },\r\n \"computeIsolationProperties\": {\r\n \"enableComputeIsolation\": false,\r\n \"hostSku\": null\r\n },\r\n \"privateEndpointConnections\": []\r\n },\r\n \"id\": \"/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/yuchen-ps-test/providers/Microsoft.HDInsight/clusters/h1-spark\",\r\n \"name\": \"h1-spark\",\r\n \"type\": \"Microsoft.HDInsight/clusters\",\r\n \"location\": \"East US\",\r\n \"etag\": \"4bddd888-3f8b-41da-9b1f-abed8b81790e\",\r\n \"tags\": {\r\n \"1\": \"1\"\r\n },\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"principalId\": \"749d3118-c65d-41b4-b4dd-f52cc94cbc53\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\r\n }\r\n}",
+ "StatusCode": 200
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "964c10bb-8a6c-43bc-83d3-6b318c6c7305"
+ }
+}
\ No newline at end of file
diff --git a/src/HDInsight/HDInsight.Test/SessionRecords/Commands.HDInsight.Test.ScenarioTests.HDInsightClusterTests/TestUpdateClusterTags.json b/src/HDInsight/HDInsight.Test/SessionRecords/Commands.HDInsight.Test.ScenarioTests.HDInsightClusterTests/TestUpdateClusterTags.json
new file mode 100644
index 000000000000..b1f9ceeea3de
--- /dev/null
+++ b/src/HDInsight/HDInsight.Test/SessionRecords/Commands.HDInsight.Test.ScenarioTests.HDInsightClusterTests/TestUpdateClusterTags.json
@@ -0,0 +1,158 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/yuchen-devrp/providers/Microsoft.HDInsight/clusters/yuchen-hadoop-002?api-version=2024-08-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTY0YzEwYmItOGE2Yy00M2JjLTgzZDMtNmIzMThjNmM3MzA1L3Jlc291cmNlR3JvdXBzL3l1Y2hlbi1kZXZycC9wcm92aWRlcnMvTWljcm9zb2Z0LkhESW5zaWdodC9jbHVzdGVycy95dWNoZW4taGFkb29wLTAwMj9hcGktdmVyc2lvbj0yMDI0LTA4LTAxLXByZXZpZXc=",
+ "RequestMethod": "PATCH",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "3552e34e-3a14-42c2-907c-71ac0e34de90"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/6.0.3524.45918",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.26100",
+ "Microsoft.Azure.Management.HDInsight.HDInsightManagementClient/6.2.1"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "44"
+ ]
+ },
+ "RequestBody": "{\r\n \"tags\": {\r\n \"Tag3\": \"Value3\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "a2e207ee-9469-4b20-9d7c-5e1ed3dc69cd"
+ ],
+ "x-ms-hdi-served-by": [
+ "eastus"
+ ],
+ "x-ms-correlation-request-id": [
+ "86e60c3b-e617-44ab-a643-85eef16f37a7"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "799"
+ ],
+ "x-ms-ratelimit-remaining-subscription-global-writes": [
+ "11999"
+ ],
+ "x-ms-routing-request-id": [
+ "JAPANEAST:20241028T064256Z:86e60c3b-e617-44ab-a643-85eef16f37a7"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "X-Cache": [
+ "CONFIG_NOCACHE"
+ ],
+ "X-MSEdge-Ref": [
+ "Ref A: 990D4F05216A41D386D6938EE0585728 Ref B: TYO201151006025 Ref C: 2024-10-28T06:42:51Z"
+ ],
+ "Date": [
+ "Mon, 28 Oct 2024 06:42:56 GMT"
+ ],
+ "Content-Length": [
+ "3565"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"clusterVersion\": \"4.0.3000.1\",\r\n \"clusterHdpVersion\": \"4.1.18.3\",\r\n \"osType\": \"Linux\",\r\n \"clusterDefinition\": {\r\n \"blueprint\": \"https://blueprints.azurehdinsight.net/hadoop-4.0.3000.1.2407260448.json\",\r\n \"kind\": \"Hadoop\",\r\n \"componentVersion\": {\r\n \"Hadoop\": \"3.1\"\r\n }\r\n },\r\n \"clusterId\": \"5384984093964aafbb18fff43fc8bd2b\",\r\n \"computeProfile\": {\r\n \"roles\": [\r\n {\r\n \"name\": \"headnode\",\r\n \"targetInstanceCount\": 2,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"standard_e4_v3\"\r\n },\r\n \"osProfile\": {\r\n \"linuxOperatingSystemProfile\": {\r\n \"username\": \"hdi\"\r\n }\r\n },\r\n \"virtualNetworkProfile\": {\r\n \"id\": \"/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/yuchen-ps-test/providers/Microsoft.Network/virtualNetworks/hdi-vn-0\",\r\n \"subnet\": \"/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/yuchen-ps-test/providers/Microsoft.Network/virtualNetworks/hdi-vn-0/subnets/default\"\r\n },\r\n \"encryptDataDisks\": false\r\n },\r\n {\r\n \"name\": \"workernode\",\r\n \"targetInstanceCount\": 3,\r\n \"autoscale\": {\r\n \"capacity\": {\r\n \"minInstanceCount\": 3,\r\n \"maxInstanceCount\": 5\r\n }\r\n },\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"standard_e8_v3\"\r\n },\r\n \"osProfile\": {\r\n \"linuxOperatingSystemProfile\": {\r\n \"username\": \"hdi\"\r\n }\r\n },\r\n \"virtualNetworkProfile\": {\r\n \"id\": \"/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/yuchen-ps-test/providers/Microsoft.Network/virtualNetworks/hdi-vn-0\",\r\n \"subnet\": \"/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/yuchen-ps-test/providers/Microsoft.Network/virtualNetworks/hdi-vn-0/subnets/default\"\r\n },\r\n \"encryptDataDisks\": false\r\n },\r\n {\r\n \"name\": \"zookeepernode\",\r\n \"targetInstanceCount\": 3,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"standard_a2_v2\"\r\n },\r\n \"osProfile\": {\r\n \"linuxOperatingSystemProfile\": {\r\n \"username\": \"hdi\"\r\n }\r\n },\r\n \"virtualNetworkProfile\": {\r\n \"id\": \"/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/yuchen-ps-test/providers/Microsoft.Network/virtualNetworks/hdi-vn-0\",\r\n \"subnet\": \"/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/yuchen-ps-test/providers/Microsoft.Network/virtualNetworks/hdi-vn-0/subnets/default\"\r\n },\r\n \"encryptDataDisks\": false\r\n }\r\n ]\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"clusterState\": \"Running\",\r\n \"createdDate\": \"2024-10-22T08:26:10.413\",\r\n \"quotaInfo\": {\r\n \"coresUsed\": 32\r\n },\r\n \"errors\": [\r\n {\r\n \"code\": \"InvalidScriptLocation\",\r\n \"message\": \"Failed to validate script action at URI http://testurl.com/install.ssh. Exception message: Script URI cannot be retrieved correctly. HTTP Status code: NotFound.\"\r\n }\r\n ],\r\n \"connectivityEndpoints\": [\r\n {\r\n \"name\": \"SSH\",\r\n \"protocol\": \"TCP\",\r\n \"location\": \"yuchen-hadoop-002-ssh.azurehdinsight.net\",\r\n \"port\": 22\r\n },\r\n {\r\n \"name\": \"HTTPS\",\r\n \"protocol\": \"TCP\",\r\n \"location\": \"yuchen-hadoop-002.azurehdinsight.net\",\r\n \"port\": 443\r\n },\r\n {\r\n \"name\": \"HTTPS-INTERNAL\",\r\n \"protocol\": \"TCP\",\r\n \"location\": \"yuchen-hadoop-002-int.azurehdinsight.net\",\r\n \"port\": 443,\r\n \"privateIPAddress\": \"10.0.0.10\"\r\n }\r\n ],\r\n \"tier\": \"standard\",\r\n \"encryptionInTransitProperties\": {\r\n \"isEncryptionInTransitEnabled\": false\r\n },\r\n \"storageProfile\": {\r\n \"storageaccounts\": [\r\n {\r\n \"name\": \"hdiwasb.blob.core.windows.net\",\r\n \"resourceId\": \"/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/yuchen-devrp/providers/Microsoft.Storage/storageAccounts/hdiwasb\",\r\n \"msiResourceId\": null,\r\n \"key\": null,\r\n \"fileSystem\": null,\r\n \"container\": \"container002\",\r\n \"saskey\": null,\r\n \"isDefault\": true,\r\n \"enableSecureChannel\": null,\r\n \"fileshare\": null\r\n }\r\n ]\r\n },\r\n \"excludedServicesConfig\": {\r\n \"excludedServicesConfigId\": \"default\",\r\n \"excludedServicesList\": \"\"\r\n },\r\n \"computeIsolationProperties\": {\r\n \"enableComputeIsolation\": false,\r\n \"hostSku\": null\r\n }\r\n },\r\n \"id\": \"/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/yuchen-devrp/providers/Microsoft.HDInsight/clusters/yuchen-hadoop-002\",\r\n \"name\": \"yuchen-hadoop-002\",\r\n \"type\": \"Microsoft.HDInsight/clusters\",\r\n \"location\": \"East US\",\r\n \"etag\": \"86f7a0f0-c775-437e-9c04-f78ac25b0279\",\r\n \"tags\": {\r\n \"Tag3\": \"Value3\"\r\n }\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/yuchen-devrp/providers/Microsoft.HDInsight/clusters/yuchen-hadoop-002?api-version=2024-08-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTY0YzEwYmItOGE2Yy00M2JjLTgzZDMtNmIzMThjNmM3MzA1L3Jlc291cmNlR3JvdXBzL3l1Y2hlbi1kZXZycC9wcm92aWRlcnMvTWljcm9zb2Z0LkhESW5zaWdodC9jbHVzdGVycy95dWNoZW4taGFkb29wLTAwMj9hcGktdmVyc2lvbj0yMDI0LTA4LTAxLXByZXZpZXc=",
+ "RequestMethod": "GET",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "3552e34e-3a14-42c2-907c-71ac0e34de90"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/6.0.3524.45918",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.26100",
+ "Microsoft.Azure.Management.HDInsight.HDInsightManagementClient/6.2.1"
+ ]
+ },
+ "RequestBody": "",
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "801a5631-0166-4125-9271-c92640704ffc"
+ ],
+ "x-ms-hdi-served-by": [
+ "eastus"
+ ],
+ "x-ms-correlation-request-id": [
+ "72ca7dbc-4469-4527-bf98-57605a4012ea"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "1099"
+ ],
+ "x-ms-ratelimit-remaining-subscription-global-reads": [
+ "16499"
+ ],
+ "x-ms-routing-request-id": [
+ "JAPANEAST:20241028T064258Z:72ca7dbc-4469-4527-bf98-57605a4012ea"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "X-Cache": [
+ "CONFIG_NOCACHE"
+ ],
+ "X-MSEdge-Ref": [
+ "Ref A: 32B3F2AA4C0D414496E2DA976AB1D5B9 Ref B: TYO201151006025 Ref C: 2024-10-28T06:42:56Z"
+ ],
+ "Date": [
+ "Mon, 28 Oct 2024 06:42:58 GMT"
+ ],
+ "Content-Length": [
+ "3565"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"clusterVersion\": \"4.0.3000.1\",\r\n \"clusterHdpVersion\": \"4.1.18.3\",\r\n \"osType\": \"Linux\",\r\n \"clusterDefinition\": {\r\n \"blueprint\": \"https://blueprints.azurehdinsight.net/hadoop-4.0.3000.1.2407260448.json\",\r\n \"kind\": \"Hadoop\",\r\n \"componentVersion\": {\r\n \"Hadoop\": \"3.1\"\r\n }\r\n },\r\n \"clusterId\": \"5384984093964aafbb18fff43fc8bd2b\",\r\n \"computeProfile\": {\r\n \"roles\": [\r\n {\r\n \"name\": \"headnode\",\r\n \"targetInstanceCount\": 2,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"standard_e4_v3\"\r\n },\r\n \"osProfile\": {\r\n \"linuxOperatingSystemProfile\": {\r\n \"username\": \"hdi\"\r\n }\r\n },\r\n \"virtualNetworkProfile\": {\r\n \"id\": \"/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/yuchen-ps-test/providers/Microsoft.Network/virtualNetworks/hdi-vn-0\",\r\n \"subnet\": \"/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/yuchen-ps-test/providers/Microsoft.Network/virtualNetworks/hdi-vn-0/subnets/default\"\r\n },\r\n \"encryptDataDisks\": false\r\n },\r\n {\r\n \"name\": \"workernode\",\r\n \"targetInstanceCount\": 3,\r\n \"autoscale\": {\r\n \"capacity\": {\r\n \"minInstanceCount\": 3,\r\n \"maxInstanceCount\": 5\r\n }\r\n },\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"standard_e8_v3\"\r\n },\r\n \"osProfile\": {\r\n \"linuxOperatingSystemProfile\": {\r\n \"username\": \"hdi\"\r\n }\r\n },\r\n \"virtualNetworkProfile\": {\r\n \"id\": \"/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/yuchen-ps-test/providers/Microsoft.Network/virtualNetworks/hdi-vn-0\",\r\n \"subnet\": \"/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/yuchen-ps-test/providers/Microsoft.Network/virtualNetworks/hdi-vn-0/subnets/default\"\r\n },\r\n \"encryptDataDisks\": false\r\n },\r\n {\r\n \"name\": \"zookeepernode\",\r\n \"targetInstanceCount\": 3,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"standard_a2_v2\"\r\n },\r\n \"osProfile\": {\r\n \"linuxOperatingSystemProfile\": {\r\n \"username\": \"hdi\"\r\n }\r\n },\r\n \"virtualNetworkProfile\": {\r\n \"id\": \"/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/yuchen-ps-test/providers/Microsoft.Network/virtualNetworks/hdi-vn-0\",\r\n \"subnet\": \"/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/yuchen-ps-test/providers/Microsoft.Network/virtualNetworks/hdi-vn-0/subnets/default\"\r\n },\r\n \"encryptDataDisks\": false\r\n }\r\n ]\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"clusterState\": \"Running\",\r\n \"createdDate\": \"2024-10-22T08:26:10.413\",\r\n \"quotaInfo\": {\r\n \"coresUsed\": 32\r\n },\r\n \"errors\": [\r\n {\r\n \"code\": \"InvalidScriptLocation\",\r\n \"message\": \"Failed to validate script action at URI http://testurl.com/install.ssh. Exception message: Script URI cannot be retrieved correctly. HTTP Status code: NotFound.\"\r\n }\r\n ],\r\n \"connectivityEndpoints\": [\r\n {\r\n \"name\": \"SSH\",\r\n \"protocol\": \"TCP\",\r\n \"location\": \"yuchen-hadoop-002-ssh.azurehdinsight.net\",\r\n \"port\": 22\r\n },\r\n {\r\n \"name\": \"HTTPS\",\r\n \"protocol\": \"TCP\",\r\n \"location\": \"yuchen-hadoop-002.azurehdinsight.net\",\r\n \"port\": 443\r\n },\r\n {\r\n \"name\": \"HTTPS-INTERNAL\",\r\n \"protocol\": \"TCP\",\r\n \"location\": \"yuchen-hadoop-002-int.azurehdinsight.net\",\r\n \"port\": 443,\r\n \"privateIPAddress\": \"10.0.0.10\"\r\n }\r\n ],\r\n \"tier\": \"standard\",\r\n \"encryptionInTransitProperties\": {\r\n \"isEncryptionInTransitEnabled\": false\r\n },\r\n \"storageProfile\": {\r\n \"storageaccounts\": [\r\n {\r\n \"name\": \"hdiwasb.blob.core.windows.net\",\r\n \"resourceId\": \"/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/yuchen-devrp/providers/Microsoft.Storage/storageAccounts/hdiwasb\",\r\n \"msiResourceId\": null,\r\n \"key\": null,\r\n \"fileSystem\": null,\r\n \"container\": \"container002\",\r\n \"saskey\": null,\r\n \"isDefault\": true,\r\n \"enableSecureChannel\": null,\r\n \"fileshare\": null\r\n }\r\n ]\r\n },\r\n \"excludedServicesConfig\": {\r\n \"excludedServicesConfigId\": \"default\",\r\n \"excludedServicesList\": \"\"\r\n },\r\n \"computeIsolationProperties\": {\r\n \"enableComputeIsolation\": false,\r\n \"hostSku\": null\r\n }\r\n },\r\n \"id\": \"/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/yuchen-devrp/providers/Microsoft.HDInsight/clusters/yuchen-hadoop-002\",\r\n \"name\": \"yuchen-hadoop-002\",\r\n \"type\": \"Microsoft.HDInsight/clusters\",\r\n \"location\": \"East US\",\r\n \"etag\": \"86f7a0f0-c775-437e-9c04-f78ac25b0279\",\r\n \"tags\": {\r\n \"Tag3\": \"Value3\"\r\n }\r\n}",
+ "StatusCode": 200
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "964c10bb-8a6c-43bc-83d3-6b318c6c7305"
+ }
+}
\ No newline at end of file
diff --git a/src/HDInsight/HDInsight.Test/SessionRecords/Commands.HDInsight.Test.ScenarioTests.HDInsightClusterTests/TestUpdateClusterUserAssigned.json b/src/HDInsight/HDInsight.Test/SessionRecords/Commands.HDInsight.Test.ScenarioTests.HDInsightClusterTests/TestUpdateClusterUserAssigned.json
new file mode 100644
index 000000000000..a41245409f75
--- /dev/null
+++ b/src/HDInsight/HDInsight.Test/SessionRecords/Commands.HDInsight.Test.ScenarioTests.HDInsightClusterTests/TestUpdateClusterUserAssigned.json
@@ -0,0 +1,152 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/yuchen-ps-test/providers/Microsoft.HDInsight/clusters/h1-spark?api-version=2024-08-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTY0YzEwYmItOGE2Yy00M2JjLTgzZDMtNmIzMThjNmM3MzA1L3Jlc291cmNlR3JvdXBzL3l1Y2hlbi1wcy10ZXN0L3Byb3ZpZGVycy9NaWNyb3NvZnQuSERJbnNpZ2h0L2NsdXN0ZXJzL2gxLXNwYXJrP2FwaS12ZXJzaW9uPTIwMjQtMDgtMDEtcHJldmlldw==",
+ "RequestMethod": "PATCH",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "1b79900e-1163-4b57-a570-8dbb4aa8a1f5"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/6.0.3324.36610",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.22631",
+ "Microsoft.Azure.Management.HDInsight.HDInsightManagementClient/6.2.0"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "421"
+ ]
+ },
+ "RequestBody": "{\r\n \"identity\": {\r\n \"type\": \"UserAssigned\",\r\n \"userAssignedIdentities\": {\r\n \"/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourcegroups/yuchen-ps-test/providers/microsoft.managedidentity/userassignedidentities/hdi-msi\": {},\r\n \"/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/yuchen-devrp/providers/Microsoft.ManagedIdentity/userAssignedIdentities/hdiwasbmsi\": {}\r\n }\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "7d21c95d-c716-4007-9155-f217a4eb2942"
+ ],
+ "x-ms-hdi-served-by": [
+ "eastus"
+ ],
+ "x-ms-correlation-request-id": [
+ "2c9f3106-fcc1-4791-950f-5ab6fdc3935f"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1199"
+ ],
+ "x-ms-routing-request-id": [
+ "JAPANEAST:20240919T065832Z:2c9f3106-fcc1-4791-950f-5ab6fdc3935f"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "X-Cache": [
+ "CONFIG_NOCACHE"
+ ],
+ "X-MSEdge-Ref": [
+ "Ref A: DF76782153484670B419966D4CFBE228 Ref B: TYO201100114025 Ref C: 2024-09-19T06:58:24Z"
+ ],
+ "Date": [
+ "Thu, 19 Sep 2024 06:58:31 GMT"
+ ],
+ "Content-Length": [
+ "3801"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"clusterVersion\": \"5.1.3000.0\",\r\n \"clusterHdpVersion\": \"5.1.5.6\",\r\n \"osType\": \"Linux\",\r\n \"clusterDefinition\": {\r\n \"blueprint\": \"https://blueprints.azurehdinsight.net/spark-5.1.3000.0.2407260448.json\",\r\n \"kind\": \"spark\",\r\n \"componentVersion\": {\r\n \"spark\": \"3.3\"\r\n }\r\n },\r\n \"clusterId\": \"0ad55f21b3d64a16ad96097d285b029b\",\r\n \"computeProfile\": {\r\n \"roles\": [\r\n {\r\n \"name\": \"headnode\",\r\n \"targetInstanceCount\": 2,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"standard_e8_v3\"\r\n },\r\n \"osProfile\": {\r\n \"linuxOperatingSystemProfile\": {\r\n \"username\": \"sshuser\"\r\n }\r\n },\r\n \"virtualNetworkProfile\": {\r\n \"id\": \"/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/yuchen-ps-test/providers/Microsoft.Network/virtualNetworks/hdi-vn\",\r\n \"subnet\": \"/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/yuchen-ps-test/providers/Microsoft.Network/virtualNetworks/hdi-vn/subnets/default\"\r\n },\r\n \"encryptDataDisks\": false\r\n },\r\n {\r\n \"name\": \"workernode\",\r\n \"targetInstanceCount\": 3,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"standard_e8_v3\"\r\n },\r\n \"osProfile\": {\r\n \"linuxOperatingSystemProfile\": {\r\n \"username\": \"sshuser\"\r\n }\r\n },\r\n \"virtualNetworkProfile\": {\r\n \"id\": \"/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/yuchen-ps-test/providers/Microsoft.Network/virtualNetworks/hdi-vn\",\r\n \"subnet\": \"/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/yuchen-ps-test/providers/Microsoft.Network/virtualNetworks/hdi-vn/subnets/default\"\r\n },\r\n \"encryptDataDisks\": false\r\n },\r\n {\r\n \"name\": \"zookeepernode\",\r\n \"targetInstanceCount\": 3,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"standard_a2_v2\"\r\n },\r\n \"osProfile\": {\r\n \"linuxOperatingSystemProfile\": {\r\n \"username\": \"sshuser\"\r\n }\r\n },\r\n \"virtualNetworkProfile\": {\r\n \"id\": \"/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/yuchen-ps-test/providers/Microsoft.Network/virtualNetworks/hdi-vn\",\r\n \"subnet\": \"/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/yuchen-ps-test/providers/Microsoft.Network/virtualNetworks/hdi-vn/subnets/default\"\r\n },\r\n \"encryptDataDisks\": false\r\n }\r\n ]\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"clusterState\": \"Accepted\",\r\n \"createdDate\": \"2024-08-29T07:14:30.923\",\r\n \"quotaInfo\": {\r\n \"coresUsed\": 40\r\n },\r\n \"connectivityEndpoints\": [\r\n {\r\n \"name\": \"SSH\",\r\n \"protocol\": \"TCP\",\r\n \"location\": \"h1-spark-ssh.azurehdinsight.net\",\r\n \"port\": 22,\r\n \"privateIPAddress\": \"10.0.0.10\"\r\n },\r\n {\r\n \"name\": \"HTTPS\",\r\n \"protocol\": \"TCP\",\r\n \"location\": \"h1-spark.azurehdinsight.net\",\r\n \"port\": 443,\r\n \"privateIPAddress\": \"10.0.0.44\"\r\n },\r\n {\r\n \"name\": \"HTTPS-INTERNAL\",\r\n \"protocol\": \"TCP\",\r\n \"location\": \"h1-spark-int.azurehdinsight.net\",\r\n \"port\": 443,\r\n \"privateIPAddress\": \"10.0.0.44\"\r\n }\r\n ],\r\n \"tier\": \"standard\",\r\n \"encryptionInTransitProperties\": {\r\n \"isEncryptionInTransitEnabled\": false\r\n },\r\n \"storageProfile\": {\r\n \"storageaccounts\": [\r\n {\r\n \"name\": \"hdi819sparkhdistorage.blob.core.windows.net\",\r\n \"resourceId\": \"/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/yuchen-ps-test/providers/Microsoft.Storage/storageAccounts/hdi819sparkhdistorage\",\r\n \"msiResourceId\": null,\r\n \"key\": null,\r\n \"fileSystem\": null,\r\n \"container\": \"default\",\r\n \"saskey\": null,\r\n \"isDefault\": true,\r\n \"enableSecureChannel\": null,\r\n \"fileshare\": null\r\n }\r\n ]\r\n },\r\n \"excludedServicesConfig\": {\r\n \"excludedServicesConfigId\": \"default\",\r\n \"excludedServicesList\": \"\"\r\n },\r\n \"networkProperties\": {\r\n \"resourceProviderConnection\": \"Outbound\",\r\n \"privateLink\": \"Enabled\"\r\n },\r\n \"computeIsolationProperties\": {\r\n \"enableComputeIsolation\": false,\r\n \"hostSku\": null\r\n },\r\n \"privateEndpointConnections\": []\r\n },\r\n \"id\": \"/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/yuchen-ps-test/providers/Microsoft.HDInsight/clusters/h1-spark\",\r\n \"name\": \"h1-spark\",\r\n \"type\": \"Microsoft.HDInsight/clusters\",\r\n \"location\": \"East US\",\r\n \"etag\": \"4bddd888-3f8b-41da-9b1f-abed8b81790e\",\r\n \"tags\": {\r\n \"1\": \"1\"\r\n },\r\n \"identity\": {\r\n \"type\": \"UserAssigned\",\r\n \"userAssignedIdentities\": {\r\n \"/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourcegroups/yuchen-ps-test/providers/microsoft.managedidentity/userassignedidentities/hdi-msi\": {},\r\n \"/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourcegroups/yuchen-devrp/providers/microsoft.managedidentity/userassignedidentities/hdiwasbmsi\": {}\r\n }\r\n }\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/yuchen-ps-test/providers/Microsoft.HDInsight/clusters/h1-spark?api-version=2024-08-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTY0YzEwYmItOGE2Yy00M2JjLTgzZDMtNmIzMThjNmM3MzA1L3Jlc291cmNlR3JvdXBzL3l1Y2hlbi1wcy10ZXN0L3Byb3ZpZGVycy9NaWNyb3NvZnQuSERJbnNpZ2h0L2NsdXN0ZXJzL2gxLXNwYXJrP2FwaS12ZXJzaW9uPTIwMjQtMDgtMDEtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "1b79900e-1163-4b57-a570-8dbb4aa8a1f5"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/6.0.3324.36610",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.22631",
+ "Microsoft.Azure.Management.HDInsight.HDInsightManagementClient/6.2.0"
+ ]
+ },
+ "RequestBody": "",
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "9a42146d-9a6c-437e-a04c-3fb59088a7af"
+ ],
+ "x-ms-hdi-served-by": [
+ "eastus"
+ ],
+ "x-ms-correlation-request-id": [
+ "2e53e20c-f655-42d8-8420-7d9ec14a10dd"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "11997"
+ ],
+ "x-ms-routing-request-id": [
+ "JAPANEAST:20240919T065834Z:2e53e20c-f655-42d8-8420-7d9ec14a10dd"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "X-Cache": [
+ "CONFIG_NOCACHE"
+ ],
+ "X-MSEdge-Ref": [
+ "Ref A: B998B8DA1C1049EE99BFFEE163497172 Ref B: TYO201100114025 Ref C: 2024-09-19T06:58:32Z"
+ ],
+ "Date": [
+ "Thu, 19 Sep 2024 06:58:34 GMT"
+ ],
+ "Content-Length": [
+ "3815"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"clusterVersion\": \"5.1.3000.0\",\r\n \"clusterHdpVersion\": \"5.1.5.6\",\r\n \"osType\": \"Linux\",\r\n \"clusterDefinition\": {\r\n \"blueprint\": \"https://blueprints.azurehdinsight.net/spark-5.1.3000.0.2407260448.json\",\r\n \"kind\": \"spark\",\r\n \"componentVersion\": {\r\n \"spark\": \"3.3\"\r\n }\r\n },\r\n \"clusterId\": \"0ad55f21b3d64a16ad96097d285b029b\",\r\n \"computeProfile\": {\r\n \"roles\": [\r\n {\r\n \"name\": \"headnode\",\r\n \"targetInstanceCount\": 2,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"standard_e8_v3\"\r\n },\r\n \"osProfile\": {\r\n \"linuxOperatingSystemProfile\": {\r\n \"username\": \"sshuser\"\r\n }\r\n },\r\n \"virtualNetworkProfile\": {\r\n \"id\": \"/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/yuchen-ps-test/providers/Microsoft.Network/virtualNetworks/hdi-vn\",\r\n \"subnet\": \"/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/yuchen-ps-test/providers/Microsoft.Network/virtualNetworks/hdi-vn/subnets/default\"\r\n },\r\n \"encryptDataDisks\": false\r\n },\r\n {\r\n \"name\": \"workernode\",\r\n \"targetInstanceCount\": 3,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"standard_e8_v3\"\r\n },\r\n \"osProfile\": {\r\n \"linuxOperatingSystemProfile\": {\r\n \"username\": \"sshuser\"\r\n }\r\n },\r\n \"virtualNetworkProfile\": {\r\n \"id\": \"/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/yuchen-ps-test/providers/Microsoft.Network/virtualNetworks/hdi-vn\",\r\n \"subnet\": \"/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/yuchen-ps-test/providers/Microsoft.Network/virtualNetworks/hdi-vn/subnets/default\"\r\n },\r\n \"encryptDataDisks\": false\r\n },\r\n {\r\n \"name\": \"zookeepernode\",\r\n \"targetInstanceCount\": 3,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"standard_a2_v2\"\r\n },\r\n \"osProfile\": {\r\n \"linuxOperatingSystemProfile\": {\r\n \"username\": \"sshuser\"\r\n }\r\n },\r\n \"virtualNetworkProfile\": {\r\n \"id\": \"/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/yuchen-ps-test/providers/Microsoft.Network/virtualNetworks/hdi-vn\",\r\n \"subnet\": \"/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/yuchen-ps-test/providers/Microsoft.Network/virtualNetworks/hdi-vn/subnets/default\"\r\n },\r\n \"encryptDataDisks\": false\r\n }\r\n ]\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"clusterState\": \"HdInsightConfiguration\",\r\n \"createdDate\": \"2024-08-29T07:14:30.923\",\r\n \"quotaInfo\": {\r\n \"coresUsed\": 40\r\n },\r\n \"connectivityEndpoints\": [\r\n {\r\n \"name\": \"SSH\",\r\n \"protocol\": \"TCP\",\r\n \"location\": \"h1-spark-ssh.azurehdinsight.net\",\r\n \"port\": 22,\r\n \"privateIPAddress\": \"10.0.0.10\"\r\n },\r\n {\r\n \"name\": \"HTTPS\",\r\n \"protocol\": \"TCP\",\r\n \"location\": \"h1-spark.azurehdinsight.net\",\r\n \"port\": 443,\r\n \"privateIPAddress\": \"10.0.0.44\"\r\n },\r\n {\r\n \"name\": \"HTTPS-INTERNAL\",\r\n \"protocol\": \"TCP\",\r\n \"location\": \"h1-spark-int.azurehdinsight.net\",\r\n \"port\": 443,\r\n \"privateIPAddress\": \"10.0.0.44\"\r\n }\r\n ],\r\n \"tier\": \"standard\",\r\n \"encryptionInTransitProperties\": {\r\n \"isEncryptionInTransitEnabled\": false\r\n },\r\n \"storageProfile\": {\r\n \"storageaccounts\": [\r\n {\r\n \"name\": \"hdi819sparkhdistorage.blob.core.windows.net\",\r\n \"resourceId\": \"/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/yuchen-ps-test/providers/Microsoft.Storage/storageAccounts/hdi819sparkhdistorage\",\r\n \"msiResourceId\": null,\r\n \"key\": null,\r\n \"fileSystem\": null,\r\n \"container\": \"default\",\r\n \"saskey\": null,\r\n \"isDefault\": true,\r\n \"enableSecureChannel\": null,\r\n \"fileshare\": null\r\n }\r\n ]\r\n },\r\n \"excludedServicesConfig\": {\r\n \"excludedServicesConfigId\": \"default\",\r\n \"excludedServicesList\": \"\"\r\n },\r\n \"networkProperties\": {\r\n \"resourceProviderConnection\": \"Outbound\",\r\n \"privateLink\": \"Enabled\"\r\n },\r\n \"computeIsolationProperties\": {\r\n \"enableComputeIsolation\": false,\r\n \"hostSku\": null\r\n },\r\n \"privateEndpointConnections\": []\r\n },\r\n \"id\": \"/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/yuchen-ps-test/providers/Microsoft.HDInsight/clusters/h1-spark\",\r\n \"name\": \"h1-spark\",\r\n \"type\": \"Microsoft.HDInsight/clusters\",\r\n \"location\": \"East US\",\r\n \"etag\": \"4bddd888-3f8b-41da-9b1f-abed8b81790e\",\r\n \"tags\": {\r\n \"1\": \"1\"\r\n },\r\n \"identity\": {\r\n \"type\": \"UserAssigned\",\r\n \"userAssignedIdentities\": {\r\n \"/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourcegroups/yuchen-ps-test/providers/microsoft.managedidentity/userassignedidentities/hdi-msi\": {},\r\n \"/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourcegroups/yuchen-devrp/providers/microsoft.managedidentity/userassignedidentities/hdiwasbmsi\": {}\r\n }\r\n }\r\n}",
+ "StatusCode": 200
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "964c10bb-8a6c-43bc-83d3-6b318c6c7305"
+ }
+}
\ No newline at end of file
diff --git a/src/HDInsight/HDInsight/ChangeLog.md b/src/HDInsight/HDInsight/ChangeLog.md
index 938d7d19a6e5..b556a274e5b0 100644
--- a/src/HDInsight/HDInsight/ChangeLog.md
+++ b/src/HDInsight/HDInsight/ChangeLog.md
@@ -19,6 +19,7 @@
-->
## Upcoming Release
+* Changed the type of parameter `-IdentityId` in command `Update-AzHDInsightCluster` from `string` to `string[]`.
## Version 6.2.1
* Fixed a bug: Error occurs when setting the same assigned identity for storage and esp configurations.
diff --git a/src/HDInsight/HDInsight/ManagementCommands/NewAzureHDInsightClusterCommand.cs b/src/HDInsight/HDInsight/ManagementCommands/NewAzureHDInsightClusterCommand.cs
index b8506df2cf62..04a3bc74cb3a 100644
--- a/src/HDInsight/HDInsight/ManagementCommands/NewAzureHDInsightClusterCommand.cs
+++ b/src/HDInsight/HDInsight/ManagementCommands/NewAzureHDInsightClusterCommand.cs
@@ -615,7 +615,7 @@ var storageAccount in
ClusterCreateParametersExtended createParams = new ClusterCreateParametersExtended
{
Location = Location,
- //Tags = Tags, //To Do add this Tags parameter
+ //Tags = Tags, //To Do add this Tags parameter
Zones = Zone,
Properties = new ClusterCreateProperties
{
diff --git a/src/HDInsight/HDInsight/ManagementCommands/UpdateAzureHDInsightClusterCommand.cs b/src/HDInsight/HDInsight/ManagementCommands/UpdateAzureHDInsightClusterCommand.cs
index 9765095c6cbc..c38f070a7d6d 100644
--- a/src/HDInsight/HDInsight/ManagementCommands/UpdateAzureHDInsightClusterCommand.cs
+++ b/src/HDInsight/HDInsight/ManagementCommands/UpdateAzureHDInsightClusterCommand.cs
@@ -41,7 +41,7 @@ public class UpdateAzureHDInsightClusterCommand : HDInsightCmdletBase
[Parameter(
HelpMessage = "Gets or sets the list of user identities associated with the cluster.")]
- public string IdentityId { get; set; }
+ public string[] IdentityId { get; set; }
[Parameter(
HelpMessage = "The resource tags.")]
@@ -71,7 +71,13 @@ public override void ExecuteCmdlet()
if (IdentityId != null)
{
clusterIdentity.UserAssignedIdentities = new Dictionary();
- clusterIdentity.UserAssignedIdentities[IdentityId] = new UserAssignedIdentity();
+ for (int i = 0; i < IdentityId.Length; i++)
+ {
+ if (!clusterIdentity.UserAssignedIdentities.ContainsKey(IdentityId[i]))
+ {
+ clusterIdentity.UserAssignedIdentities.Add(IdentityId[i], new UserAssignedIdentity());
+ }
+ }
}
HDInsightManagementClient.UpdateCluster(ResourceGroupName, ClusterName, Tag, clusterIdentity);
diff --git a/src/HDInsight/HDInsight/help/Add-AzHDInsightClusterIdentity.md b/src/HDInsight/HDInsight/help/Add-AzHDInsightClusterIdentity.md
index 6fc3d4a35374..ef8866058928 100644
--- a/src/HDInsight/HDInsight/help/Add-AzHDInsightClusterIdentity.md
+++ b/src/HDInsight/HDInsight/help/Add-AzHDInsightClusterIdentity.md
@@ -17,7 +17,7 @@ Adds a cluster identity to a cluster configuration object.
```
Add-AzHDInsightClusterIdentity [-Config] [-ObjectId]
[-CertificateFilePath] [-CertificatePassword] [[-AadTenantId] ]
- [[-ApplicationId] ] [-DefaultProfile ]
+ [[-ApplicationId] ] [-DefaultProfile ] [-ProgressAction ]
[]
```
@@ -25,7 +25,7 @@ Add-AzHDInsightClusterIdentity [-Config] [-ObjectId] [-ObjectId]
[-CertificateFileContents] [-CertificatePassword] [[-AadTenantId] ]
- [[-ApplicationId] ] [-DefaultProfile ]
+ [[-ApplicationId] ] [-DefaultProfile ] [-ProgressAction ]
[]
```
@@ -208,6 +208,21 @@ Accept pipeline input: True (ByValue)
Accept wildcard characters: False
```
+### -ProgressAction
+Specifies how the cmdlet should handle progress updates.
+
+```yaml
+Type: System.Management.Automation.ActionPreference
+Parameter Sets: (All)
+Aliases: proga
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
### CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
diff --git a/src/HDInsight/HDInsight/help/Add-AzHDInsightComponentVersion.md b/src/HDInsight/HDInsight/help/Add-AzHDInsightComponentVersion.md
index 34aa5221fda1..268176af0861 100644
--- a/src/HDInsight/HDInsight/help/Add-AzHDInsightComponentVersion.md
+++ b/src/HDInsight/HDInsight/help/Add-AzHDInsightComponentVersion.md
@@ -15,7 +15,7 @@ Adds a version for a service running in a cluster to a cluster configuration obj
```
Add-AzHDInsightComponentVersion [-Config] [-ComponentName]
- [-ComponentVersion] [-DefaultProfile ]
+ [-ComponentVersion] [-DefaultProfile ] [-ProgressAction ]
[-WhatIf] [-Confirm] []
```
@@ -123,6 +123,21 @@ Accept pipeline input: False
Accept wildcard characters: False
```
+### -ProgressAction
+Specifies how the cmdlet should handle progress updates.
+
+```yaml
+Type: System.Management.Automation.ActionPreference
+Parameter Sets: (All)
+Aliases: proga
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
### -Confirm
Prompts you for confirmation before running the cmdlet.
diff --git a/src/HDInsight/HDInsight/help/Add-AzHDInsightConfigValue.md b/src/HDInsight/HDInsight/help/Add-AzHDInsightConfigValue.md
index 106a70dfe8d1..05a7e539b05d 100644
--- a/src/HDInsight/HDInsight/help/Add-AzHDInsightConfigValue.md
+++ b/src/HDInsight/HDInsight/help/Add-AzHDInsightConfigValue.md
@@ -20,7 +20,7 @@ Add-AzHDInsightConfigValue [-Config] [-Core ]
[-MapRed ] [-Tez ] [-Hdfs ] [-RServer ]
[-SparkDefaults ] [-SparkThriftConf ] [-Spark2Defaults ]
[-Spark2ThriftConf ] [-DefaultProfile ]
- []
+ [-ProgressAction ] []
```
## DESCRIPTION
@@ -239,6 +239,21 @@ Accept pipeline input: False
Accept wildcard characters: False
```
+### -ProgressAction
+Specifies how the cmdlet should handle progress updates.
+
+```yaml
+Type: System.Management.Automation.ActionPreference
+Parameter Sets: (All)
+Aliases: proga
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
### -RServer
Specifies the RServer configurations. Valid only for RServer clusters.
diff --git a/src/HDInsight/HDInsight/help/Add-AzHDInsightMetastore.md b/src/HDInsight/HDInsight/help/Add-AzHDInsightMetastore.md
index 1b24f12b8433..6ebf07b67382 100644
--- a/src/HDInsight/HDInsight/help/Add-AzHDInsightMetastore.md
+++ b/src/HDInsight/HDInsight/help/Add-AzHDInsightMetastore.md
@@ -16,7 +16,7 @@ Adds a SQL Database to serve as a Hive or Oozie metastore to a cluster configura
```
Add-AzHDInsightMetastore [-Config] [-MetastoreType]
[-SqlAzureServerName] [-DatabaseName] [-Credential]
- [-DefaultProfile ] []
+ [-DefaultProfile ] [-ProgressAction ] []
```
## DESCRIPTION
@@ -209,6 +209,21 @@ Accept pipeline input: False
Accept wildcard characters: False
```
+### -ProgressAction
+Specifies how the cmdlet should handle progress updates.
+
+```yaml
+Type: System.Management.Automation.ActionPreference
+Parameter Sets: (All)
+Aliases: proga
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
### -SqlAzureServerName
Specifies the AzureSQL Server instance to use for this metastore.
diff --git a/src/HDInsight/HDInsight/help/Add-AzHDInsightScriptAction.md b/src/HDInsight/HDInsight/help/Add-AzHDInsightScriptAction.md
index bf9285f176e7..4f336b275b6f 100644
--- a/src/HDInsight/HDInsight/help/Add-AzHDInsightScriptAction.md
+++ b/src/HDInsight/HDInsight/help/Add-AzHDInsightScriptAction.md
@@ -16,7 +16,7 @@ Adds a script action to a cluster configuration object.
```
Add-AzHDInsightScriptAction [-Config] [-NodeType] [-Uri]
[-Name] [[-Parameters] ] [-DefaultProfile ]
- []
+ [-ProgressAction ] []
```
## DESCRIPTION
@@ -163,6 +163,21 @@ Accept pipeline input: False
Accept wildcard characters: False
```
+### -ProgressAction
+Specifies how the cmdlet should handle progress updates.
+
+```yaml
+Type: System.Management.Automation.ActionPreference
+Parameter Sets: (All)
+Aliases: proga
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
### -Uri
Specifies the public URI for the script action (a PowerShell or Bash script).
diff --git a/src/HDInsight/HDInsight/help/Add-AzHDInsightSecurityProfile.md b/src/HDInsight/HDInsight/help/Add-AzHDInsightSecurityProfile.md
index 5ebebf1e30af..94746e871ded 100644
--- a/src/HDInsight/HDInsight/help/Add-AzHDInsightSecurityProfile.md
+++ b/src/HDInsight/HDInsight/help/Add-AzHDInsightSecurityProfile.md
@@ -17,7 +17,7 @@ Adds a security profile to a cluster configuration object.
Add-AzHDInsightSecurityProfile [-Config] -DomainResourceId
-DomainUserCredential [-OrganizationalUnitDN ] -LdapsUrls
[-ClusterUsersGroupDNs ] [-DefaultProfile ]
- [-WhatIf] [-Confirm] []
+ [-ProgressAction ] [-WhatIf] [-Confirm] []
```
## DESCRIPTION
@@ -186,6 +186,21 @@ Accept pipeline input: False
Accept wildcard characters: False
```
+### -ProgressAction
+Specifies how the cmdlet should handle progress updates.
+
+```yaml
+Type: System.Management.Automation.ActionPreference
+Parameter Sets: (All)
+Aliases: proga
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
### -Confirm
Prompts you for confirmation before running the cmdlet.
diff --git a/src/HDInsight/HDInsight/help/Add-AzHDInsightStorage.md b/src/HDInsight/HDInsight/help/Add-AzHDInsightStorage.md
index 49a339ef35d7..7e943f4490aa 100644
--- a/src/HDInsight/HDInsight/help/Add-AzHDInsightStorage.md
+++ b/src/HDInsight/HDInsight/help/Add-AzHDInsightStorage.md
@@ -15,7 +15,7 @@ Adds an Azure Storage key to a cluster configuration object.
```
Add-AzHDInsightStorage [-Config] [-StorageAccountName]
- [-StorageAccountKey] [-DefaultProfile ]
+ [-StorageAccountKey] [-DefaultProfile ] [-ProgressAction ]
[]
```
@@ -104,6 +104,21 @@ Accept pipeline input: False
Accept wildcard characters: False
```
+### -ProgressAction
+Specifies how the cmdlet should handle progress updates.
+
+```yaml
+Type: System.Management.Automation.ActionPreference
+Parameter Sets: (All)
+Aliases: proga
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
### -StorageAccountKey
Specifies the storage account key for the storage account to be added to the new cluster.
diff --git a/src/HDInsight/HDInsight/help/Disable-AzHDInsightAzureMonitor.md b/src/HDInsight/HDInsight/help/Disable-AzHDInsightAzureMonitor.md
index c1201981fd21..4d2af9ea80d0 100644
--- a/src/HDInsight/HDInsight/help/Disable-AzHDInsightAzureMonitor.md
+++ b/src/HDInsight/HDInsight/help/Disable-AzHDInsightAzureMonitor.md
@@ -15,20 +15,20 @@ Disables Azure Monitor in a specified HDInsight cluster.
### DisableByNameParameterSet (Default)
```
Disable-AzHDInsightAzureMonitor [[-ResourceGroupName] ] [-ClusterName]
- [-DefaultProfile ] [-WhatIf] [-Confirm]
+ [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm]
[]
```
### DisableByResourceIdParameterSet
```
Disable-AzHDInsightAzureMonitor [-ResourceId] [-DefaultProfile ]
- [-WhatIf] [-Confirm] []
+ [-ProgressAction ] [-WhatIf] [-Confirm] []
```
### DisableByInputObjectParameterSet
```
Disable-AzHDInsightAzureMonitor [-InputObject]
- [-DefaultProfile ] [-WhatIf] [-Confirm]
+ [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm]
[]
```
@@ -104,6 +104,21 @@ Accept pipeline input: True (ByValue)
Accept wildcard characters: False
```
+### -ProgressAction
+Specifies how the cmdlet should handle progress updates.
+
+```yaml
+Type: System.Management.Automation.ActionPreference
+Parameter Sets: (All)
+Aliases: proga
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
### -ResourceGroupName
Gets or sets the name of the resource group.
diff --git a/src/HDInsight/HDInsight/help/Disable-AzHDInsightAzureMonitorAgent.md b/src/HDInsight/HDInsight/help/Disable-AzHDInsightAzureMonitorAgent.md
index a8d695b4b387..b764cc2e80da 100644
--- a/src/HDInsight/HDInsight/help/Disable-AzHDInsightAzureMonitorAgent.md
+++ b/src/HDInsight/HDInsight/help/Disable-AzHDInsightAzureMonitorAgent.md
@@ -15,21 +15,21 @@ Disables Azure Monitor Agent in a specified HDInsight cluster.
### DisableByNameParameterSet (Default)
```
Disable-AzHDInsightAzureMonitorAgent [-PassThru] [[-ResourceGroupName] ] [-ClusterName]
- [-DefaultProfile ] [-WhatIf] [-Confirm]
+ [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm]
[]
```
### DisableByResourceIdParameterSet
```
Disable-AzHDInsightAzureMonitorAgent [-PassThru] [-ResourceId]
- [-DefaultProfile ] [-WhatIf] [-Confirm]
+ [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm]
[]
```
### DisableByInputObjectParameterSet
```
Disable-AzHDInsightAzureMonitorAgent [-PassThru] [-InputObject]
- [-DefaultProfile ] [-WhatIf] [-Confirm]
+ [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm]
[]
```
@@ -120,6 +120,21 @@ Accept pipeline input: False
Accept wildcard characters: False
```
+### -ProgressAction
+Specifies how the cmdlet should handle progress updates.
+
+```yaml
+Type: System.Management.Automation.ActionPreference
+Parameter Sets: (All)
+Aliases: proga
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
### -ResourceGroupName
Gets or sets the name of the resource group.
diff --git a/src/HDInsight/HDInsight/help/Disable-AzHDInsightMonitoring.md b/src/HDInsight/HDInsight/help/Disable-AzHDInsightMonitoring.md
index 38583e17309f..164d53875ae5 100644
--- a/src/HDInsight/HDInsight/help/Disable-AzHDInsightMonitoring.md
+++ b/src/HDInsight/HDInsight/help/Disable-AzHDInsightMonitoring.md
@@ -14,7 +14,7 @@ Disables the Classic Azure Monitor logs integration on an HDInsight cluster and
```
Disable-AzHDInsightMonitoring [-Name] [-ResourceGroupName ]
- [-DefaultProfile ] [-WhatIf] [-Confirm]
+ [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm]
[]
```
@@ -77,6 +77,21 @@ Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
```
+### -ProgressAction
+Specifies how the cmdlet should handle progress updates.
+
+```yaml
+Type: System.Management.Automation.ActionPreference
+Parameter Sets: (All)
+Aliases: proga
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
### -ResourceGroupName
The resource group of the cluster.
diff --git a/src/HDInsight/HDInsight/help/Enable-AzHDInsightAzureMonitor.md b/src/HDInsight/HDInsight/help/Enable-AzHDInsightAzureMonitor.md
index ea76865d40e8..553904544651 100644
--- a/src/HDInsight/HDInsight/help/Enable-AzHDInsightAzureMonitor.md
+++ b/src/HDInsight/HDInsight/help/Enable-AzHDInsightAzureMonitor.md
@@ -15,21 +15,21 @@ Enables Azure Monitor in a specified HDInsight cluster.
### EnableByNameParameterSet (Default)
```
Enable-AzHDInsightAzureMonitor [[-ResourceGroupName] ] [-ClusterName] [-WorkspaceId]
- [-PrimaryKey] [-DefaultProfile ]
+ [-PrimaryKey] [-DefaultProfile ] [-ProgressAction ]
[-WhatIf] [-Confirm] []
```
### EnableByResourceIdParameterSet
```
Enable-AzHDInsightAzureMonitor [-ResourceId] [-WorkspaceId] [-PrimaryKey]
- [-DefaultProfile ] [-WhatIf] [-Confirm]
+ [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm]
[]
```
### EnableByInputObjectParameterSet
```
Enable-AzHDInsightAzureMonitor [-InputObject] [-WorkspaceId]
- [-PrimaryKey] [-DefaultProfile ]
+ [-PrimaryKey] [-DefaultProfile ] [-ProgressAction ]
[-WhatIf] [-Confirm] []
```
@@ -124,6 +124,21 @@ Accept pipeline input: False
Accept wildcard characters: False
```
+### -ProgressAction
+Specifies how the cmdlet should handle progress updates.
+
+```yaml
+Type: System.Management.Automation.ActionPreference
+Parameter Sets: (All)
+Aliases: proga
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
### -ResourceGroupName
Gets or sets the name of the resource group.
diff --git a/src/HDInsight/HDInsight/help/Enable-AzHDInsightAzureMonitorAgent.md b/src/HDInsight/HDInsight/help/Enable-AzHDInsightAzureMonitorAgent.md
index 3f1d3af2cabb..5a89873ce16f 100644
--- a/src/HDInsight/HDInsight/help/Enable-AzHDInsightAzureMonitorAgent.md
+++ b/src/HDInsight/HDInsight/help/Enable-AzHDInsightAzureMonitorAgent.md
@@ -16,20 +16,20 @@ Enables Azure Monitor Agent in a specified HDInsight cluster.
```
Enable-AzHDInsightAzureMonitorAgent [-PassThru] [[-ResourceGroupName] ] [-ClusterName]
[-WorkspaceId] [-PrimaryKey] [-DefaultProfile ]
- [-WhatIf] [-Confirm] []
+ [-ProgressAction ] [-WhatIf] [-Confirm] []
```
### EnableByResourceIdParameterSet
```
Enable-AzHDInsightAzureMonitorAgent [-PassThru] [-ResourceId] [-WorkspaceId]
- [-PrimaryKey] [-DefaultProfile ]
+ [-PrimaryKey] [-DefaultProfile ] [-ProgressAction ]
[-WhatIf] [-Confirm] []
```
### EnableByInputObjectParameterSet
```
Enable-AzHDInsightAzureMonitorAgent [-PassThru] [-InputObject] [-WorkspaceId]
- [-PrimaryKey] [-DefaultProfile ]
+ [-PrimaryKey] [-DefaultProfile ] [-ProgressAction ]
[-WhatIf] [-Confirm] []
```
@@ -139,6 +139,21 @@ Accept pipeline input: False
Accept wildcard characters: False
```
+### -ProgressAction
+Specifies how the cmdlet should handle progress updates.
+
+```yaml
+Type: System.Management.Automation.ActionPreference
+Parameter Sets: (All)
+Aliases: proga
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
### -ResourceGroupName
Gets or sets the name of the resource group.
diff --git a/src/HDInsight/HDInsight/help/Enable-AzHDInsightMonitoring.md b/src/HDInsight/HDInsight/help/Enable-AzHDInsightMonitoring.md
index 11a24415572c..3c28e22c5d61 100644
--- a/src/HDInsight/HDInsight/help/Enable-AzHDInsightMonitoring.md
+++ b/src/HDInsight/HDInsight/help/Enable-AzHDInsightMonitoring.md
@@ -14,7 +14,7 @@ Enables the Classic Azure Monitor logs integration on an HDInsight cluster and r
```
Enable-AzHDInsightMonitoring [-Name] [-WorkspaceId] [-PrimaryKey]
- [-ResourceGroupName ] [-DefaultProfile ]
+ [-ResourceGroupName ] [-DefaultProfile ] [-ProgressAction ]
[-WhatIf] [-Confirm] []
```
@@ -92,6 +92,21 @@ Accept pipeline input: False
Accept wildcard characters: False
```
+### -ProgressAction
+Specifies how the cmdlet should handle progress updates.
+
+```yaml
+Type: System.Management.Automation.ActionPreference
+Parameter Sets: (All)
+Aliases: proga
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
### -ResourceGroupName
The resource group of the cluster.
diff --git a/src/HDInsight/HDInsight/help/Get-AzHDInsightAzureMonitor.md b/src/HDInsight/HDInsight/help/Get-AzHDInsightAzureMonitor.md
index f0b339ce593c..61f23ed83141 100644
--- a/src/HDInsight/HDInsight/help/Get-AzHDInsightAzureMonitor.md
+++ b/src/HDInsight/HDInsight/help/Get-AzHDInsightAzureMonitor.md
@@ -15,19 +15,19 @@ Gets the azure monitor status of a specified HDInsight cluster.
### GetByNameParameterSet (Default)
```
Get-AzHDInsightAzureMonitor [[-ResourceGroupName] ] [-ClusterName]
- [-DefaultProfile ] []
+ [-DefaultProfile ] [-ProgressAction ] []
```
### GetByResourceIdParameterSet
```
Get-AzHDInsightAzureMonitor [-ResourceId] [-DefaultProfile ]
- []
+ [-ProgressAction ] []
```
### GetByInputObjectParameterSet
```
Get-AzHDInsightAzureMonitor [-InputObject] [-DefaultProfile ]
- []
+ [-ProgressAction ] []
```
## DESCRIPTION
@@ -102,6 +102,21 @@ Accept pipeline input: True (ByValue)
Accept wildcard characters: False
```
+### -ProgressAction
+Specifies how the cmdlet should handle progress updates.
+
+```yaml
+Type: System.Management.Automation.ActionPreference
+Parameter Sets: (All)
+Aliases: proga
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
### -ResourceGroupName
Gets or sets the name of the resource group.
diff --git a/src/HDInsight/HDInsight/help/Get-AzHDInsightAzureMonitorAgent.md b/src/HDInsight/HDInsight/help/Get-AzHDInsightAzureMonitorAgent.md
index 0aba2a6d023f..ab43d0fdad0b 100644
--- a/src/HDInsight/HDInsight/help/Get-AzHDInsightAzureMonitorAgent.md
+++ b/src/HDInsight/HDInsight/help/Get-AzHDInsightAzureMonitorAgent.md
@@ -15,19 +15,19 @@ Gets the azure monitor agent status of a specified HDInsight cluster.
### GetByNameParameterSet (Default)
```
Get-AzHDInsightAzureMonitorAgent [[-ResourceGroupName] ] [-ClusterName]
- [-DefaultProfile ] []
+ [-DefaultProfile ] [-ProgressAction ] []
```
### GetByResourceIdParameterSet
```
Get-AzHDInsightAzureMonitorAgent [-ResourceId] [-DefaultProfile ]
- []
+ [-ProgressAction ] []
```
### GetByInputObjectParameterSet
```
Get-AzHDInsightAzureMonitorAgent [-InputObject]
- [-DefaultProfile ] []
+ [-DefaultProfile ] [-ProgressAction ] []
```
## DESCRIPTION
@@ -102,6 +102,21 @@ Accept pipeline input: True (ByValue)
Accept wildcard characters: False
```
+### -ProgressAction
+Specifies how the cmdlet should handle progress updates.
+
+```yaml
+Type: System.Management.Automation.ActionPreference
+Parameter Sets: (All)
+Aliases: proga
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
### -ResourceGroupName
Gets or sets the name of the resource group.
diff --git a/src/HDInsight/HDInsight/help/Get-AzHDInsightCluster.md b/src/HDInsight/HDInsight/help/Get-AzHDInsightCluster.md
index a4ba8b8fd2c7..213547dea2f1 100644
--- a/src/HDInsight/HDInsight/help/Get-AzHDInsightCluster.md
+++ b/src/HDInsight/HDInsight/help/Get-AzHDInsightCluster.md
@@ -15,7 +15,7 @@ Gets and lists all of the Azure HDInsight clusters associated with the current s
```
Get-AzHDInsightCluster [[-ResourceGroupName] ] [[-ClusterName] ]
- [-DefaultProfile ] []
+ [-DefaultProfile ] [-ProgressAction ] []
```
## DESCRIPTION
@@ -63,6 +63,21 @@ Accept pipeline input: False
Accept wildcard characters: False
```
+### -ProgressAction
+Specifies how the cmdlet should handle progress updates.
+
+```yaml
+Type: System.Management.Automation.ActionPreference
+Parameter Sets: (All)
+Aliases: proga
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
### -ResourceGroupName
Specifies the name of the resource group.
diff --git a/src/HDInsight/HDInsight/help/Get-AzHDInsightClusterAutoscaleConfiguration.md b/src/HDInsight/HDInsight/help/Get-AzHDInsightClusterAutoscaleConfiguration.md
index 403491a23173..8da617d52a75 100644
--- a/src/HDInsight/HDInsight/help/Get-AzHDInsightClusterAutoscaleConfiguration.md
+++ b/src/HDInsight/HDInsight/help/Get-AzHDInsightClusterAutoscaleConfiguration.md
@@ -16,19 +16,19 @@ Gets the autoscale configuration of HDInsight cluster.
### GetByNameParameterSet (Default)
```
Get-AzHDInsightClusterAutoscaleConfiguration [[-ResourceGroupName] ] [-ClusterName]
- [-DefaultProfile ] []
+ [-DefaultProfile ] [-ProgressAction ] []
```
### GetByResourceIdParameterSet
```
Get-AzHDInsightClusterAutoscaleConfiguration [-ResourceId] [-DefaultProfile ]
- []
+ [-ProgressAction ] []
```
### GetByInputObjectParameterSet
```
Get-AzHDInsightClusterAutoscaleConfiguration [-InputObject]
- [-DefaultProfile ] []
+ [-DefaultProfile ] [-ProgressAction ] []
```
## DESCRIPTION
@@ -92,6 +92,21 @@ Accept pipeline input: True (ByValue)
Accept wildcard characters: False
```
+### -ProgressAction
+Specifies how the cmdlet should handle progress updates.
+
+```yaml
+Type: System.Management.Automation.ActionPreference
+Parameter Sets: (All)
+Aliases: proga
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
### -ResourceGroupName
Gets or sets the name of the resource group.
diff --git a/src/HDInsight/HDInsight/help/Get-AzHDInsightHost.md b/src/HDInsight/HDInsight/help/Get-AzHDInsightHost.md
index e2724f18b8c6..5f86675e626d 100644
--- a/src/HDInsight/HDInsight/help/Get-AzHDInsightHost.md
+++ b/src/HDInsight/HDInsight/help/Get-AzHDInsightHost.md
@@ -15,19 +15,19 @@ Lists the hosts of the HDInsight cluster.
### SetByNameParameterSet (Default)
```
Get-AzHDInsightHost [[-ResourceGroupName] ] [-ClusterName]
- [-DefaultProfile ] []
+ [-DefaultProfile ] [-ProgressAction ] []
```
### SetByResourceIdParameterSet
```
Get-AzHDInsightHost [-ResourceId] [-DefaultProfile ]
- []
+ [-ProgressAction ] []
```
### SetByInputObjectParameterSet
```
Get-AzHDInsightHost [-InputObject] [-DefaultProfile