From ae64dcd5cde5445de225f29cfa7e2451647b61de Mon Sep 17 00:00:00 2001
From: azure-powershell-bot
<65331932+azure-powershell-bot@users.noreply.github.com>
Date: Wed, 31 Jul 2024 04:28:03 +0000
Subject: [PATCH 1/2] Move HdInsightOnAks to release-2024-08-06
---
.../Az.HdInsightOnAks.format.ps1xml | 1496 +++-
.../Az.HdInsightOnAks.psd1 | 2 +-
.../HdInsightOnAks.Autorest/README.md | 54 +-
.../clusterpools-clusters.json | 2 +-
.../UX/Microsoft.HDInsight/clusterpools.json | 2 +-
.../HdInsightOnAks.Autorest/build-module.ps1 | 14 +-
...zHdInsightOnAksClusterConfigFileObject.ps1 | 61 -
...InsightOnAksClusterHotfixUpgradeObject.ps1 | 81 +-
...dInsightOnAksClusterMavenLibraryObject.ps1 | 70 +
...nsightOnAksClusterPoolAKSUpgradeObject.ps1 | 62 -
...nAksClusterPyPiLibraryPropertiesObject.ps1 | 64 +
...InsightOnAksClusterServiceConfigObject.ps1 | 75 -
...nAksClusterServiceConfigsProfileObject.ps1 | 60 -
.../New-AzHdInsightOnAksNodeProfileObject.ps1 | 62 -
...-AzHdInsightOnAksSecretReferenceObject.ps1 | 64 -
...AzHdInsightOnAksTrinoHiveCatalogObject.ps1 | 77 -
...zHdInsightOnAksClusterConfigFileObject.ps1 | 73 +
...lusterPoolAksPatchVersionUpgradeObject.ps1 | 59 +
...InsightOnAksClusterServiceConfigObject.ps1 | 53 +
...nAksClusterServiceConfigsProfileObject.ps1 | 53 +
...-AzHdInsightOnAksManagedIdentityObject.ps1 | 66 +
.../New-AzHdInsightOnAksNodeProfileObject.ps1 | 59 +
...-AzHdInsightOnAksSecretReferenceObject.ps1 | 66 +
...AzHdInsightOnAksTrinoHiveCatalogObject.ps1 | 78 +
.../examples/Get-AzHdInsightOnAksCluster.md | 6 +-
.../Get-AzHdInsightOnAksClusterLibrary.md | 48 +
.../Get-AzHdInsightOnAksClusterPool.md | 12 +-
...HdInsightOnAksClusterPoolUpgradeHistory.md | 29 +
...t-AzHdInsightOnAksClusterUpgradeHistory.md | 16 +
...e-AzHdInsightOnAksClusterManualRollback.md | 9 +
...oke-AzHdInsightOnAksClusterPoolUpgrade.md} | 6 +-
.../Invoke-AzHdInsightOnAksClusterUpgrade.md | 39 +
...ke-AzHdInsightOnAksManageClusterLibrary.md | 28 +
...HdInsightOnAksClusterMavenLibraryObject.md | 20 +
.../New-AzHdInsightOnAksClusterPool.md | 6 +-
...lusterPoolAksPatchVersionUpgradeObject.md} | 2 +-
...zHdInsightOnAksClusterPyPiLibraryObject.md | 17 +
...dInsightOnAksClusterServiceConfigObject.md | 8 +-
...OnAksClusterServiceConfigsProfileObject.md | 2 +-
...w-AzHdInsightOnAksManagedIdentityObject.md | 13 +
...w-AzHdInsightOnAksSecretReferenceObject.md | 4 +-
...-AzHdInsightOnAksTrinoHiveCatalogObject.md | 11 +-
.../Remove-AzHdInsightOnAksCluster.md | 4 +-
.../Remove-AzHdInsightOnAksClusterPool.md | 4 +-
.../Set-AzHdInsightOnAksClusterPool.md | 4 +-
...zHdInsightOnAksLocationNameAvailability.md | 2 +-
.../Update-AzHdInsightOnAksCluster.md | 38 -
.../Get-AzHdInsightOnAksClusterLibrary.ps1 | 211 +
...dInsightOnAksClusterPoolUpgradeHistory.ps1 | 191 +
...-AzHdInsightOnAksClusterUpgradeHistory.ps1 | 198 +
...-AzHdInsightOnAksClusterManualRollback.ps1 | 300 +
...ke-AzHdInsightOnAksClusterPoolUpgrade.ps1} | 22 +-
.../Invoke-AzHdInsightOnAksClusterUpgrade.ps1 | 304 +
...e-AzHdInsightOnAksManageClusterLibrary.ps1 | 318 +
.../exports/New-AzHdInsightOnAksCluster.ps1 | 47 +-
...zHdInsightOnAksClusterConfigFileObject.ps1 | 54 +-
...InsightOnAksClusterHotfixUpgradeObject.ps1 | 10 +-
...dInsightOnAksClusterMavenLibraryObject.ps1 | 135 +
.../New-AzHdInsightOnAksClusterPool.ps1 | 12 +-
...usterPoolAksPatchVersionUpgradeObject.ps1} | 22 +-
...HdInsightOnAksClusterPyPiLibraryObject.ps1 | 129 +
...InsightOnAksClusterServiceConfigObject.ps1 | 19 +-
...nAksClusterServiceConfigsProfileObject.ps1 | 33 +-
...-AzHdInsightOnAksManagedIdentityObject.ps1 | 136 +
.../New-AzHdInsightOnAksNodeProfileObject.ps1 | 28 +-
...-AzHdInsightOnAksSecretReferenceObject.ps1 | 37 +-
...AzHdInsightOnAksTrinoHiveCatalogObject.ps1 | 37 +-
.../exports/ProxyCmdletDefinitions.ps1 | 4025 +++++++---
.../Set-AzHdInsightOnAksClusterPool.ps1 | 11 +-
...HdInsightOnAksLocationNameAvailability.ps1 | 2 +-
.../Update-AzHdInsightOnAksCluster.ps1 | 246 +-
.../generated/api/HdInsightOnAks.cs | 6646 +++++++++++------
.../api/Models/Cluster.PowerShell.cs | 64 +-
.../generated/api/Models/Cluster.cs | 118 +-
...atchUpgradeHistoryProperties.PowerShell.cs | 201 +
...hUpgradeHistoryProperties.TypeConverter.cs | 151 +
...ClusterAksPatchUpgradeHistoryProperties.cs | 106 +
...erAksPatchUpgradeHistoryProperties.json.cs | 114 +
...ableInPlaceUpgradeProperties.PowerShell.cs | 257 +
...eInPlaceUpgradeProperties.TypeConverter.cs | 151 +
...lusterAvailableInPlaceUpgradeProperties.cs | 282 +
...rAvailableInPlaceUpgradeProperties.json.cs | 151 +
.../api/Models/ClusterAvailableUpgrade.cs | 4 +-
...gradeHotfixUpgradeProperties.PowerShell.cs | 60 +-
...AvailableUpgradeHotfixUpgradeProperties.cs | 238 +-
...ableUpgradeHotfixUpgradeProperties.json.cs | 26 +-
...atchVersionUpgradeProperties.PowerShell.cs | 257 +
...hVersionUpgradeProperties.TypeConverter.cs | 153 +
...bleUpgradePatchVersionUpgradeProperties.cs | 104 +
...gradePatchVersionUpgradeProperties.json.cs | 111 +
.../ClusterAvailableUpgradeProperties.cs | 4 +-
.../ClusterAvailableUpgradeProperties.json.cs | 8 +
...tfixUpgradeHistoryProperties.PowerShell.cs | 249 +
...xUpgradeHistoryProperties.TypeConverter.cs | 150 +
.../ClusterHotfixUpgradeHistoryProperties.cs | 98 +
...sterHotfixUpgradeHistoryProperties.json.cs | 109 +
...usterHotfixUpgradeProperties.PowerShell.cs | 32 +-
.../Models/ClusterHotfixUpgradeProperties.cs | 96 +-
.../ClusterHotfixUpgradeProperties.json.cs | 12 +-
...adeRollbackHistoryProperties.PowerShell.cs | 249 +
...RollbackHistoryProperties.TypeConverter.cs | 151 +
...rHotfixUpgradeRollbackHistoryProperties.cs | 100 +
...ixUpgradeRollbackHistoryProperties.json.cs | 111 +
...laceUpgradeHistoryProperties.PowerShell.cs | 249 +
...eUpgradeHistoryProperties.TypeConverter.cs | 151 +
.../ClusterInPlaceUpgradeHistoryProperties.cs | 228 +
...terInPlaceUpgradeHistoryProperties.json.cs | 152 +
...sterInPlaceUpgradeProperties.PowerShell.cs | 196 +
...rInPlaceUpgradeProperties.TypeConverter.cs | 148 +
.../Models/ClusterInPlaceUpgradeProperties.cs | 138 +
.../ClusterInPlaceUpgradeProperties.json.cs | 135 +
.../api/Models/ClusterLibrary.PowerShell.cs | 284 +
.../Models/ClusterLibrary.TypeConverter.cs | 147 +
.../generated/api/Models/ClusterLibrary.cs | 221 +
.../api/Models/ClusterLibrary.json.cs | 110 +
.../Models/ClusterLibraryList.PowerShell.cs | 172 +
.../ClusterLibraryList.TypeConverter.cs | 147 +
.../api/Models/ClusterLibraryList.cs | 77 +
.../api/Models/ClusterLibraryList.json.cs | 121 +
...erLibraryManagementOperation.PowerShell.cs | 264 +
...ibraryManagementOperation.TypeConverter.cs | 148 +
.../ClusterLibraryManagementOperation.cs | 159 +
.../ClusterLibraryManagementOperation.json.cs | 110 +
...anagementOperationProperties.PowerShell.cs | 177 +
...gementOperationProperties.TypeConverter.cs | 151 +
...terLibraryManagementOperationProperties.cs | 78 +
...braryManagementOperationProperties.json.cs | 120 +
.../ClusterLibraryProperties.PowerShell.cs | 196 +
.../ClusterLibraryProperties.TypeConverter.cs | 147 +
.../api/Models/ClusterLibraryProperties.cs | 147 +
.../Models/ClusterLibraryProperties.json.cs | 144 +
.../api/Models/ClusterPatch.PowerShell.cs | 208 +
.../generated/api/Models/ClusterPatch.cs | 358 +
.../ClusterPatchProperties.PowerShell.cs | 208 +
.../api/Models/ClusterPatchProperties.cs | 358 +
...sionUpgradeHistoryProperties.PowerShell.cs | 249 +
...nUpgradeHistoryProperties.TypeConverter.cs | 151 +
...terPatchVersionUpgradeHistoryProperties.cs | 100 +
...tchVersionUpgradeHistoryProperties.json.cs | 110 +
...atchVersionUpgradeProperties.PowerShell.cs | 200 +
...hVersionUpgradeProperties.TypeConverter.cs | 150 +
.../ClusterPatchVersionUpgradeProperties.cs | 74 +
...usterPatchVersionUpgradeProperties.json.cs | 109 +
...adeRollbackHistoryProperties.PowerShell.cs | 249 +
...RollbackHistoryProperties.TypeConverter.cs | 153 +
...VersionUpgradeRollbackHistoryProperties.cs | 100 +
...onUpgradeRollbackHistoryProperties.json.cs | 111 +
.../api/Models/ClusterPool.PowerShell.cs | 8 +
.../generated/api/Models/ClusterPool.cs | 28 +-
...atchUpgradeHistoryProperties.PowerShell.cs | 217 +
...hUpgradeHistoryProperties.TypeConverter.cs | 151 +
...terPoolAksPatchUpgradeHistoryProperties.cs | 148 +
...olAksPatchUpgradeHistoryProperties.json.cs | 118 +
.../ClusterPoolComputeProfile.PowerShell.cs | 8 +
.../api/Models/ClusterPoolComputeProfile.cs | 20 +
.../Models/ClusterPoolComputeProfile.json.cs | 10 +
.../api/Models/ClusterPoolNetworkProfile.cs | 11 +-
...deOSUpgradeHistoryProperties.PowerShell.cs | 193 +
...SUpgradeHistoryProperties.TypeConverter.cs | 151 +
...usterPoolNodeOSUpgradeHistoryProperties.cs | 88 +
...PoolNodeOSUpgradeHistoryProperties.json.cs | 112 +
...lusterPoolResourceProperties.PowerShell.cs | 8 +
.../Models/ClusterPoolResourceProperties.cs | 28 +-
...urcePropertiesComputeProfile.PowerShell.cs | 8 +
...terPoolResourcePropertiesComputeProfile.cs | 4 +
...terPoolResourcePropertiesNetworkProfile.cs | 3 +-
.../ClusterPoolUpgradeHistory.PowerShell.cs | 268 +
...ClusterPoolUpgradeHistory.TypeConverter.cs | 147 +
.../api/Models/ClusterPoolUpgradeHistory.cs | 178 +
.../Models/ClusterPoolUpgradeHistory.json.cs | 110 +
...PoolUpgradeHistoryListResult.PowerShell.cs | 176 +
...lUpgradeHistoryListResult.TypeConverter.cs | 149 +
.../ClusterPoolUpgradeHistoryListResult.cs | 77 +
...lusterPoolUpgradeHistoryListResult.json.cs | 122 +
...PoolUpgradeHistoryProperties.PowerShell.cs | 184 +
...lUpgradeHistoryProperties.TypeConverter.cs | 149 +
.../ClusterPoolUpgradeHistoryProperties.cs | 98 +
...lusterPoolUpgradeHistoryProperties.json.cs | 132 +
.../api/Models/ClusterProfile.PowerShell.cs | 56 +-
.../generated/api/Models/ClusterProfile.cs | 114 +-
.../api/Models/ClusterProfile.json.cs | 2 +
.../ClusterResourceProperties.PowerShell.cs | 64 +-
.../api/Models/ClusterResourceProperties.cs | 118 +-
.../Models/ClusterServiceConfig.PowerShell.cs | 8 +-
.../api/Models/ClusterServiceConfig.cs | 10 +-
.../api/Models/ClusterServiceConfig.json.cs | 4 +-
.../generated/api/Models/ClusterUpgrade.cs | 4 +-
.../ClusterUpgradeHistory.PowerShell.cs | 268 +
.../ClusterUpgradeHistory.TypeConverter.cs | 147 +
.../api/Models/ClusterUpgradeHistory.cs | 178 +
.../api/Models/ClusterUpgradeHistory.json.cs | 110 +
...sterUpgradeHistoryListResult.PowerShell.cs | 172 +
...rUpgradeHistoryListResult.TypeConverter.cs | 148 +
.../Models/ClusterUpgradeHistoryListResult.cs | 77 +
.../ClusterUpgradeHistoryListResult.json.cs | 121 +
...sterUpgradeHistoryProperties.PowerShell.cs | 180 +
...rUpgradeHistoryProperties.TypeConverter.cs | 148 +
.../Models/ClusterUpgradeHistoryProperties.cs | 98 +
.../ClusterUpgradeHistoryProperties.json.cs | 147 +
.../api/Models/ClusterUpgradeProperties.cs | 4 +-
.../Models/ClusterUpgradeProperties.json.cs | 8 +
.../ClusterUpgradeRollback.PowerShell.cs | 172 +
.../ClusterUpgradeRollback.TypeConverter.cs | 147 +
.../api/Models/ClusterUpgradeRollback.cs | 63 +
.../api/Models/ClusterUpgradeRollback.json.cs | 108 +
...terUpgradeRollbackProperties.PowerShell.cs | 166 +
...UpgradeRollbackProperties.TypeConverter.cs | 148 +
.../ClusterUpgradeRollbackProperties.cs | 54 +
.../ClusterUpgradeRollbackProperties.json.cs | 108 +
.../api/Models/ComputeProfile.PowerShell.cs | 8 +
.../generated/api/Models/ComputeProfile.cs | 20 +
.../api/Models/ComputeProfile.json.cs | 10 +
.../api/Models/KafkaProfile.PowerShell.cs | 32 -
.../generated/api/Models/KafkaProfile.cs | 63 -
.../generated/api/Models/KafkaProfile.json.cs | 5 -
.../ManagedIdentityProfile.PowerShell.cs | 164 +
.../ManagedIdentityProfile.TypeConverter.cs | 147 +
.../api/Models/ManagedIdentityProfile.cs | 54 +
.../api/Models/ManagedIdentityProfile.json.cs | 116 +
.../Models/ManagedIdentitySpec.PowerShell.cs | 188 +
.../ManagedIdentitySpec.TypeConverter.cs | 147 +
.../api/Models/ManagedIdentitySpec.cs | 116 +
.../api/Models/ManagedIdentitySpec.json.cs | 114 +
.../MavenLibraryProperties.PowerShell.cs | 220 +
.../MavenLibraryProperties.TypeConverter.cs | 147 +
.../api/Models/MavenLibraryProperties.cs | 143 +
.../api/Models/MavenLibraryProperties.json.cs | 114 +
.../PyPiLibraryProperties.PowerShell.cs | 212 +
.../PyPiLibraryProperties.TypeConverter.cs | 147 +
.../api/Models/PyPiLibraryProperties.cs | 123 +
.../api/Models/PyPiLibraryProperties.json.cs | 112 +
.../api/Models/SecretReference.PowerShell.cs | 8 +-
.../generated/api/Models/SecretReference.cs | 34 +-
.../api/Models/SecretReference.json.cs | 4 +-
.../api/Models/SshProfile.PowerShell.cs | 8 +
.../generated/api/Models/SshProfile.cs | 20 +
.../generated/api/Models/SshProfile.json.cs | 2 +
.../UpdatableClusterProfile.PowerShell.cs | 208 +
.../api/Models/UpdatableClusterProfile.cs | 372 +
.../Models/UpdatableClusterProfile.json.cs | 4 +
...htOnAksAvailableClusterPoolVersion_List.cs | 2 +-
...nsightOnAksAvailableClusterVersion_List.cs | 2 +-
...nsightOnAksClusterAvailableUpgrade_List.cs | 2 +-
...AzHdInsightOnAksClusterInstanceView_Get.cs | 2 +-
...OnAksClusterInstanceView_GetViaIdentity.cs | 2 +-
...rInstanceView_GetViaIdentityClusterpool.cs | 2 +-
...zHdInsightOnAksClusterInstanceView_List.cs | 2 +-
.../GetAzHdInsightOnAksClusterJob_List.cs | 2 +-
.../GetAzHdInsightOnAksClusterLibrary_List.cs | 565 ++
...htOnAksClusterPoolAvailableUpgrade_List.cs | 2 +-
...ightOnAksClusterPoolUpgradeHistory_List.cs | 534 ++
.../GetAzHdInsightOnAksClusterPool_Get.cs | 2 +-
...dInsightOnAksClusterPool_GetViaIdentity.cs | 2 +-
.../GetAzHdInsightOnAksClusterPool_List.cs | 2 +-
.../GetAzHdInsightOnAksClusterPool_List1.cs | 2 +-
...HdInsightOnAksClusterServiceConfig_List.cs | 2 +-
...dInsightOnAksClusterUpgradeHistory_List.cs | 548 ++
.../cmdlets/GetAzHdInsightOnAksCluster_Get.cs | 2 +-
...tAzHdInsightOnAksCluster_GetViaIdentity.cs | 2 +-
...tOnAksCluster_GetViaIdentityClusterpool.cs | 2 +-
.../GetAzHdInsightOnAksCluster_List.cs | 2 +-
.../GetAzHdInsightOnAksOperation_List.cs | 2 +-
...sightOnAksClusterManualRollback_Upgrade.cs | 619 ++
...ksClusterManualRollback_UpgradeExpanded.cs | 621 ++
...lusterManualRollback_UpgradeViaIdentity.cs | 589 ++
...lRollback_UpgradeViaIdentityClusterpool.cs | 601 ++
...k_UpgradeViaIdentityClusterpoolExpanded.cs | 601 ++
...nualRollback_UpgradeViaIdentityExpanded.cs | 589 ++
...erManualRollback_UpgradeViaJsonFilePath.cs | 624 ++
...sterManualRollback_UpgradeViaJsonString.cs | 622 ++
...InsightOnAksClusterPoolUpgrade_Upgrade.cs} | 28 +-
...nAksClusterPoolUpgrade_UpgradeExpanded.cs} | 30 +-
...sClusterPoolUpgrade_UpgradeViaIdentity.cs} | 30 +-
...PoolUpgrade_UpgradeViaIdentityExpanded.cs} | 29 +-
...sterPoolUpgrade_UpgradeViaJsonFilePath.cs} | 29 +-
...lusterPoolUpgrade_UpgradeViaJsonString.cs} | 31 +-
...AzHdInsightOnAksClusterUpgrade_Upgrade.cs} | 28 +-
...ghtOnAksClusterUpgrade_UpgradeExpanded.cs} | 30 +-
...OnAksClusterUpgrade_UpgradeViaIdentity.cs} | 28 +-
...rUpgrade_UpgradeViaIdentityClusterpool.cs} | 29 +-
..._UpgradeViaIdentityClusterpoolExpanded.cs} | 32 +-
...sterUpgrade_UpgradeViaIdentityExpanded.cs} | 31 +-
...sClusterUpgrade_UpgradeViaJsonFilePath.cs} | 30 +-
...AksClusterUpgrade_UpgradeViaJsonString.cs} | 30 +-
...InsightOnAksManageClusterLibrary_Manage.cs | 565 ++
...nAksManageClusterLibrary_ManageExpanded.cs | 580 ++
...sManageClusterLibrary_ManageViaIdentity.cs | 534 ++
...terLibrary_ManageViaIdentityClusterpool.cs | 547 ++
...ry_ManageViaIdentityClusterpoolExpanded.cs | 560 ++
...lusterLibrary_ManageViaIdentityExpanded.cs | 548 ++
...ageClusterLibrary_ManageViaJsonFilePath.cs | 570 ++
...anageClusterLibrary_ManageViaJsonString.cs | 568 ++
.../NewAzHdInsightOnAksClusterPool_Create.cs | 2 +-
...dInsightOnAksClusterPool_CreateExpanded.cs | 21 +-
...sightOnAksClusterPool_CreateViaIdentity.cs | 2 +-
...ksClusterPool_CreateViaIdentityExpanded.cs | 21 +-
...tOnAksClusterPool_CreateViaJsonFilePath.cs | 2 +-
...ghtOnAksClusterPool_CreateViaJsonString.cs | 2 +-
.../NewAzHdInsightOnAksCluster_Create.cs | 2 +-
...wAzHdInsightOnAksCluster_CreateExpanded.cs | 37 +-
...HdInsightOnAksCluster_CreateViaIdentity.cs | 2 +-
...AksCluster_CreateViaIdentityClusterpool.cs | 2 +-
...er_CreateViaIdentityClusterpoolExpanded.cs | 37 +-
...tOnAksCluster_CreateViaIdentityExpanded.cs | 37 +-
...sightOnAksCluster_CreateViaJsonFilePath.cs | 2 +-
...InsightOnAksCluster_CreateViaJsonString.cs | 2 +-
...emoveAzHdInsightOnAksClusterPool_Delete.cs | 2 +-
...sightOnAksClusterPool_DeleteViaIdentity.cs | 2 +-
.../RemoveAzHdInsightOnAksCluster_Delete.cs | 2 +-
...HdInsightOnAksCluster_DeleteViaIdentity.cs | 2 +-
...AksCluster_DeleteViaIdentityClusterpool.cs | 2 +-
.../ResizeAzHdInsightOnAksCluster_Resize.cs | 2 +-
...eAzHdInsightOnAksCluster_ResizeExpanded.cs | 2 +-
...HdInsightOnAksCluster_ResizeViaIdentity.cs | 2 +-
...AksCluster_ResizeViaIdentityClusterpool.cs | 2 +-
...er_ResizeViaIdentityClusterpoolExpanded.cs | 2 +-
...tOnAksCluster_ResizeViaIdentityExpanded.cs | 2 +-
...sightOnAksCluster_ResizeViaJsonFilePath.cs | 2 +-
...InsightOnAksCluster_ResizeViaJsonString.cs | 2 +-
.../SetAzHdInsightOnAksClusterPool_Update.cs | 2 +-
...dInsightOnAksClusterPool_UpdateExpanded.cs | 21 +-
...tOnAksClusterPool_UpdateViaJsonFilePath.cs | 2 +-
...ghtOnAksClusterPool_UpdateViaJsonString.cs | 2 +-
.../StartAzHdInsightOnAksClusterJob_Run.cs | 2 +-
...tAzHdInsightOnAksClusterJob_RunExpanded.cs | 2 +-
...HdInsightOnAksClusterJob_RunViaIdentity.cs | 2 +-
...AksClusterJob_RunViaIdentityClusterpool.cs | 2 +-
...erJob_RunViaIdentityClusterpoolExpanded.cs | 2 +-
...tOnAksClusterJob_RunViaIdentityExpanded.cs | 2 +-
...sightOnAksClusterJob_RunViaJsonFilePath.cs | 2 +-
...InsightOnAksClusterJob_RunViaJsonString.cs | 2 +-
...ightOnAksLocationNameAvailability_Check.cs | 2 +-
...sLocationNameAvailability_CheckExpanded.cs | 2 +-
...cationNameAvailability_CheckViaIdentity.cs | 2 +-
...meAvailability_CheckViaIdentityExpanded.cs | 2 +-
...onNameAvailability_CheckViaJsonFilePath.cs | 2 +-
...tionNameAvailability_CheckViaJsonString.cs | 2 +-
...teAzHdInsightOnAksClusterPoolTag_Update.cs | 2 +-
...sightOnAksClusterPoolTag_UpdateExpanded.cs | 2 +-
...htOnAksClusterPoolTag_UpdateViaIdentity.cs | 2 +-
...lusterPoolTag_UpdateViaIdentityExpanded.cs | 2 +-
...AksClusterPoolTag_UpdateViaJsonFilePath.cs | 2 +-
...OnAksClusterPoolTag_UpdateViaJsonString.cs | 2 +-
.../UpdateAzHdInsightOnAksCluster_Update.cs | 2 +-
...eAzHdInsightOnAksCluster_UpdateExpanded.cs | 193 +-
...HdInsightOnAksCluster_UpdateViaIdentity.cs | 2 +-
...AksCluster_UpdateViaIdentityClusterpool.cs | 2 +-
...er_UpdateViaIdentityClusterpoolExpanded.cs | 193 +-
...tOnAksCluster_UpdateViaIdentityExpanded.cs | 193 +-
...sightOnAksCluster_UpdateViaJsonFilePath.cs | 2 +-
...InsightOnAksCluster_UpdateViaJsonString.cs | 2 +-
.../help/Az.HdInsightOnAks.md | 51 +-
.../help/Get-AzHdInsightOnAksCluster.md | 6 +-
.../Get-AzHdInsightOnAksClusterLibrary.md | 181 +
.../help/Get-AzHdInsightOnAksClusterPool.md | 12 +-
...HdInsightOnAksClusterPoolUpgradeHistory.md | 132 +
...t-AzHdInsightOnAksClusterUpgradeHistory.md | 134 +
...e-AzHdInsightOnAksClusterManualRollback.md | 333 +
...oke-AzHdInsightOnAksClusterPoolUpgrade.md} | 22 +-
.../Invoke-AzHdInsightOnAksClusterUpgrade.md | 361 +
...ke-AzHdInsightOnAksManageClusterLibrary.md | 366 +
.../help/New-AzHdInsightOnAksCluster.md | 114 +-
...AzHdInsightOnAksClusterConfigFileObject.md | 71 +-
...dInsightOnAksClusterHotfixUpgradeObject.md | 6 +-
...HdInsightOnAksClusterMavenLibraryObject.md | 119 +
.../help/New-AzHdInsightOnAksClusterPool.md | 36 +-
...lusterPoolAksPatchVersionUpgradeObject.md} | 20 +-
...zHdInsightOnAksClusterPyPiLibraryObject.md | 102 +
...dInsightOnAksClusterServiceConfigObject.md | 20 +-
...OnAksClusterServiceConfigsProfileObject.md | 16 +-
...w-AzHdInsightOnAksManagedIdentityObject.md | 112 +
.../New-AzHdInsightOnAksNodeProfileObject.md | 12 +-
...w-AzHdInsightOnAksSecretReferenceObject.md | 43 +-
...-AzHdInsightOnAksTrinoHiveCatalogObject.md | 53 +-
.../help/Remove-AzHdInsightOnAksCluster.md | 4 +-
.../Remove-AzHdInsightOnAksClusterPool.md | 4 +-
.../help/Set-AzHdInsightOnAksClusterPool.md | 24 +-
...zHdInsightOnAksLocationNameAvailability.md | 2 +-
.../help/Update-AzHdInsightOnAksCluster.md | 434 +-
.../test/ClusterCreate_Catalog.Tests.ps1 | 2 +-
.../test/ClusterJob.Tests.ps1 | 35 +-
.../test/ClusterOperations.Tests.ps1 | 81 +-
.../test/ClusterPoolOperations.Tests.ps1 | 15 +-
.../test/ClusterUpdate.Tests.ps1 | 23 +-
.../test/ClusterUpgrade.Tests.ps1 | 85 +
...t-AzHdInsightOnAksClusterLibrary.Tests.ps1 | 21 +
...htOnAksClusterPoolUpgradeHistory.Tests.ps1 | 21 +
...nsightOnAksClusterUpgradeHistory.Tests.ps1 | 21 +
...nsightOnAksClusterManualRollback.Tests.ps1 | 49 +
...dInsightOnAksClusterPoolUpgrade.Tests.ps1} | 6 +-
...e-AzHdInsightOnAksClusterUpgrade.Tests.ps1 | 49 +
...InsightOnAksManageClusterLibrary.Tests.ps1 | 49 +
...ightOnAksClusterConfigFileObject.Tests.ps1 | 2 +-
...tOnAksClusterHotfixUpgradeObject.Tests.ps1 | 2 +-
...nsightOnAksClusterLibraryObject.Tests.ps1} | 8 +-
...ksClusterLibraryPropertiesObject.Tests.ps1 | 21 +
...htOnAksClusterMavenLibraryObject.Tests.ps1 | 21 +
...sterMavenLibraryPropertiesObject.Tests.ps1 | 21 +
...PoolAksPatchVersionUpgradeObject.Tests.ps1 | 21 +
...ghtOnAksClusterPyPiLibraryObject.Tests.ps1 | 21 +
...usterPyPiLibraryPropertiesObject.Tests.ps1 | 21 +
...tOnAksClusterServiceConfigObject.Tests.ps1 | 2 +-
...usterServiceConfigsProfileObject.Tests.ps1 | 2 +-
...sightOnAksManagedIdentityObject.Tests.ps1} | 8 +-
...zHdInsightOnAksNodeProfileObject.Tests.ps1 | 2 +-
...nsightOnAksSecretReferenceObject.Tests.ps1 | 2 +-
...sightOnAksTrinoHiveCatalogObject.Tests.ps1 | 2 +-
.../HdInsightOnAks.Autorest/test/env.json | 4 +-
.../ClusterCreate_Catalog.Recording.json | 1591 ----
.../sessionRecords/ClusterJob.Recording.json | 135 +-
.../ClusterOperations.Recording.json | 1819 ++---
.../ClusterPoolOperations.Recording.json | 1644 ++--
.../ClusterUpdate.Recording.json | 187 +-
.../ClusterUpgrade.Recording.json | 930 +++
.../HdInsightOnAks.Autorest/test/utils.ps1 | 3 +-
.../HdInsightOnAks/Az.HdInsightOnAks.psd1 | 30 +-
.../HdInsightOnAks/help/Az.HdInsightOnAks.md | 51 +-
...InsightOnAksAvailableClusterPoolVersion.md | 17 +-
...AzHdInsightOnAksAvailableClusterVersion.md | 17 +-
.../help/Get-AzHdInsightOnAksCluster.md | 29 +-
...AzHdInsightOnAksClusterAvailableUpgrade.md | 17 +-
...Get-AzHdInsightOnAksClusterInstanceView.md | 23 +-
.../help/Get-AzHdInsightOnAksClusterJob.md | 17 +-
.../Get-AzHdInsightOnAksClusterLibrary.md | 196 +
.../help/Get-AzHdInsightOnAksClusterPool.md | 35 +-
...InsightOnAksClusterPoolAvailableUpgrade.md | 17 +-
...HdInsightOnAksClusterPoolUpgradeHistory.md | 147 +
...et-AzHdInsightOnAksClusterServiceConfig.md | 17 +-
...t-AzHdInsightOnAksClusterUpgradeHistory.md | 149 +
...e-AzHdInsightOnAksClusterManualRollback.md | 349 +
...oke-AzHdInsightOnAksClusterPoolUpgrade.md} | 49 +-
.../Invoke-AzHdInsightOnAksClusterUpgrade.md | 376 +
...ke-AzHdInsightOnAksManageClusterLibrary.md | 384 +
.../help/New-AzHdInsightOnAksCluster.md | 149 +-
...AzHdInsightOnAksClusterConfigFileObject.md | 87 +-
...dInsightOnAksClusterHotfixUpgradeObject.md | 23 +-
...HdInsightOnAksClusterMavenLibraryObject.md | 133 +
.../help/New-AzHdInsightOnAksClusterPool.md | 62 +-
...lusterPoolAksPatchVersionUpgradeObject.md} | 36 +-
...zHdInsightOnAksClusterPyPiLibraryObject.md | 116 +
...dInsightOnAksClusterServiceConfigObject.md | 37 +-
...OnAksClusterServiceConfigsProfileObject.md | 35 +-
.../New-AzHdInsightOnAksFlinkJobObject.md | 17 +-
...w-AzHdInsightOnAksManagedIdentityObject.md | 126 +
.../New-AzHdInsightOnAksNodeProfileObject.md | 31 +-
...w-AzHdInsightOnAksSecretReferenceObject.md | 58 +-
...-AzHdInsightOnAksTrinoHiveCatalogObject.md | 66 +-
.../help/Remove-AzHdInsightOnAksCluster.md | 25 +-
.../Remove-AzHdInsightOnAksClusterPool.md | 23 +-
.../help/Resize-AzHdInsightOnAksCluster.md | 31 +-
.../help/Set-AzHdInsightOnAksClusterPool.md | 47 +-
.../help/Start-AzHdInsightOnAksClusterJob.md | 31 +-
...zHdInsightOnAksLocationNameAvailability.md | 29 +-
.../help/Update-AzHdInsightOnAksCluster.md | 464 +-
.../Update-AzHdInsightOnAksClusterPoolTag.md | 27 +-
455 files changed, 52906 insertions(+), 9568 deletions(-)
delete mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/New-AzHdInsightOnAksClusterConfigFileObject.ps1
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/New-AzHdInsightOnAksClusterMavenLibraryObject.ps1
delete mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/New-AzHdInsightOnAksClusterPoolAKSUpgradeObject.ps1
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/New-AzHdInsightOnAksClusterPyPiLibraryPropertiesObject.ps1
delete mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/New-AzHdInsightOnAksClusterServiceConfigObject.ps1
delete mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/New-AzHdInsightOnAksClusterServiceConfigsProfileObject.ps1
delete mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/New-AzHdInsightOnAksNodeProfileObject.ps1
delete mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/New-AzHdInsightOnAksSecretReferenceObject.ps1
delete mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/New-AzHdInsightOnAksTrinoHiveCatalogObject.ps1
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/autogen-model-cmdlets/New-AzHdInsightOnAksClusterConfigFileObject.ps1
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/autogen-model-cmdlets/New-AzHdInsightOnAksClusterPoolAksPatchVersionUpgradeObject.ps1
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/autogen-model-cmdlets/New-AzHdInsightOnAksClusterServiceConfigObject.ps1
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/autogen-model-cmdlets/New-AzHdInsightOnAksClusterServiceConfigsProfileObject.ps1
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/autogen-model-cmdlets/New-AzHdInsightOnAksManagedIdentityObject.ps1
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/autogen-model-cmdlets/New-AzHdInsightOnAksNodeProfileObject.ps1
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/autogen-model-cmdlets/New-AzHdInsightOnAksSecretReferenceObject.ps1
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/autogen-model-cmdlets/New-AzHdInsightOnAksTrinoHiveCatalogObject.ps1
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/Get-AzHdInsightOnAksClusterLibrary.md
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/Get-AzHdInsightOnAksClusterPoolUpgradeHistory.md
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/Get-AzHdInsightOnAksClusterUpgradeHistory.md
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/Invoke-AzHdInsightOnAksClusterManualRollback.md
rename src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/{Update-AzHdInsightOnAksClusterPool.md => Invoke-AzHdInsightOnAksClusterPoolUpgrade.md} (91%)
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/Invoke-AzHdInsightOnAksClusterUpgrade.md
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/Invoke-AzHdInsightOnAksManageClusterLibrary.md
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/New-AzHdInsightOnAksClusterMavenLibraryObject.md
rename src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/{New-AzHdInsightOnAksClusterPoolAKSUpgradeObject.md => New-AzHdInsightOnAksClusterPoolAksPatchVersionUpgradeObject.md} (85%)
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/New-AzHdInsightOnAksClusterPyPiLibraryObject.md
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/New-AzHdInsightOnAksManagedIdentityObject.md
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/Get-AzHdInsightOnAksClusterLibrary.ps1
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/Get-AzHdInsightOnAksClusterPoolUpgradeHistory.ps1
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/Get-AzHdInsightOnAksClusterUpgradeHistory.ps1
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/Invoke-AzHdInsightOnAksClusterManualRollback.ps1
rename src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/{Update-AzHdInsightOnAksClusterPool.ps1 => Invoke-AzHdInsightOnAksClusterPoolUpgrade.ps1} (91%)
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/Invoke-AzHdInsightOnAksClusterUpgrade.ps1
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/Invoke-AzHdInsightOnAksManageClusterLibrary.ps1
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/New-AzHdInsightOnAksClusterMavenLibraryObject.ps1
rename src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/{New-AzHdInsightOnAksClusterPoolAKSUpgradeObject.ps1 => New-AzHdInsightOnAksClusterPoolAksPatchVersionUpgradeObject.ps1} (88%)
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/New-AzHdInsightOnAksClusterPyPiLibraryObject.ps1
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/New-AzHdInsightOnAksManagedIdentityObject.ps1
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterAksPatchUpgradeHistoryProperties.PowerShell.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterAksPatchUpgradeHistoryProperties.TypeConverter.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterAksPatchUpgradeHistoryProperties.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterAksPatchUpgradeHistoryProperties.json.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterAvailableInPlaceUpgradeProperties.PowerShell.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterAvailableInPlaceUpgradeProperties.TypeConverter.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterAvailableInPlaceUpgradeProperties.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterAvailableInPlaceUpgradeProperties.json.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterAvailableUpgradePatchVersionUpgradeProperties.PowerShell.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterAvailableUpgradePatchVersionUpgradeProperties.TypeConverter.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterAvailableUpgradePatchVersionUpgradeProperties.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterAvailableUpgradePatchVersionUpgradeProperties.json.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterHotfixUpgradeHistoryProperties.PowerShell.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterHotfixUpgradeHistoryProperties.TypeConverter.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterHotfixUpgradeHistoryProperties.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterHotfixUpgradeHistoryProperties.json.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterHotfixUpgradeRollbackHistoryProperties.PowerShell.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterHotfixUpgradeRollbackHistoryProperties.TypeConverter.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterHotfixUpgradeRollbackHistoryProperties.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterHotfixUpgradeRollbackHistoryProperties.json.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterInPlaceUpgradeHistoryProperties.PowerShell.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterInPlaceUpgradeHistoryProperties.TypeConverter.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterInPlaceUpgradeHistoryProperties.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterInPlaceUpgradeHistoryProperties.json.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterInPlaceUpgradeProperties.PowerShell.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterInPlaceUpgradeProperties.TypeConverter.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterInPlaceUpgradeProperties.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterInPlaceUpgradeProperties.json.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterLibrary.PowerShell.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterLibrary.TypeConverter.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterLibrary.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterLibrary.json.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterLibraryList.PowerShell.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterLibraryList.TypeConverter.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterLibraryList.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterLibraryList.json.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterLibraryManagementOperation.PowerShell.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterLibraryManagementOperation.TypeConverter.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterLibraryManagementOperation.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterLibraryManagementOperation.json.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterLibraryManagementOperationProperties.PowerShell.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterLibraryManagementOperationProperties.TypeConverter.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterLibraryManagementOperationProperties.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterLibraryManagementOperationProperties.json.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterLibraryProperties.PowerShell.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterLibraryProperties.TypeConverter.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterLibraryProperties.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterLibraryProperties.json.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterPatchVersionUpgradeHistoryProperties.PowerShell.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterPatchVersionUpgradeHistoryProperties.TypeConverter.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterPatchVersionUpgradeHistoryProperties.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterPatchVersionUpgradeHistoryProperties.json.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterPatchVersionUpgradeProperties.PowerShell.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterPatchVersionUpgradeProperties.TypeConverter.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterPatchVersionUpgradeProperties.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterPatchVersionUpgradeProperties.json.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterPatchVersionUpgradeRollbackHistoryProperties.PowerShell.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterPatchVersionUpgradeRollbackHistoryProperties.TypeConverter.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterPatchVersionUpgradeRollbackHistoryProperties.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterPatchVersionUpgradeRollbackHistoryProperties.json.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterPoolAksPatchUpgradeHistoryProperties.PowerShell.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterPoolAksPatchUpgradeHistoryProperties.TypeConverter.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterPoolAksPatchUpgradeHistoryProperties.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterPoolAksPatchUpgradeHistoryProperties.json.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterPoolNodeOSUpgradeHistoryProperties.PowerShell.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterPoolNodeOSUpgradeHistoryProperties.TypeConverter.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterPoolNodeOSUpgradeHistoryProperties.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterPoolNodeOSUpgradeHistoryProperties.json.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterPoolUpgradeHistory.PowerShell.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterPoolUpgradeHistory.TypeConverter.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterPoolUpgradeHistory.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterPoolUpgradeHistory.json.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterPoolUpgradeHistoryListResult.PowerShell.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterPoolUpgradeHistoryListResult.TypeConverter.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterPoolUpgradeHistoryListResult.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterPoolUpgradeHistoryListResult.json.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterPoolUpgradeHistoryProperties.PowerShell.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterPoolUpgradeHistoryProperties.TypeConverter.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterPoolUpgradeHistoryProperties.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterPoolUpgradeHistoryProperties.json.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterUpgradeHistory.PowerShell.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterUpgradeHistory.TypeConverter.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterUpgradeHistory.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterUpgradeHistory.json.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterUpgradeHistoryListResult.PowerShell.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterUpgradeHistoryListResult.TypeConverter.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterUpgradeHistoryListResult.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterUpgradeHistoryListResult.json.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterUpgradeHistoryProperties.PowerShell.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterUpgradeHistoryProperties.TypeConverter.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterUpgradeHistoryProperties.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterUpgradeHistoryProperties.json.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterUpgradeRollback.PowerShell.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterUpgradeRollback.TypeConverter.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterUpgradeRollback.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterUpgradeRollback.json.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterUpgradeRollbackProperties.PowerShell.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterUpgradeRollbackProperties.TypeConverter.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterUpgradeRollbackProperties.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ClusterUpgradeRollbackProperties.json.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ManagedIdentityProfile.PowerShell.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ManagedIdentityProfile.TypeConverter.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ManagedIdentityProfile.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ManagedIdentityProfile.json.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ManagedIdentitySpec.PowerShell.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ManagedIdentitySpec.TypeConverter.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ManagedIdentitySpec.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/ManagedIdentitySpec.json.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/MavenLibraryProperties.PowerShell.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/MavenLibraryProperties.TypeConverter.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/MavenLibraryProperties.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/MavenLibraryProperties.json.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/PyPiLibraryProperties.PowerShell.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/PyPiLibraryProperties.TypeConverter.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/PyPiLibraryProperties.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/api/Models/PyPiLibraryProperties.json.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/cmdlets/GetAzHdInsightOnAksClusterLibrary_List.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/cmdlets/GetAzHdInsightOnAksClusterPoolUpgradeHistory_List.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/cmdlets/GetAzHdInsightOnAksClusterUpgradeHistory_List.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/cmdlets/InvokeAzHdInsightOnAksClusterManualRollback_Upgrade.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/cmdlets/InvokeAzHdInsightOnAksClusterManualRollback_UpgradeExpanded.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/cmdlets/InvokeAzHdInsightOnAksClusterManualRollback_UpgradeViaIdentity.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/cmdlets/InvokeAzHdInsightOnAksClusterManualRollback_UpgradeViaIdentityClusterpool.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/cmdlets/InvokeAzHdInsightOnAksClusterManualRollback_UpgradeViaIdentityClusterpoolExpanded.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/cmdlets/InvokeAzHdInsightOnAksClusterManualRollback_UpgradeViaIdentityExpanded.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/cmdlets/InvokeAzHdInsightOnAksClusterManualRollback_UpgradeViaJsonFilePath.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/cmdlets/InvokeAzHdInsightOnAksClusterManualRollback_UpgradeViaJsonString.cs
rename src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/cmdlets/{UpdateAzHdInsightOnAksClusterPool_Upgrade.cs => InvokeAzHdInsightOnAksClusterPoolUpgrade_Upgrade.cs} (98%)
rename src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/cmdlets/{UpdateAzHdInsightOnAksClusterPool_UpgradeExpanded.cs => InvokeAzHdInsightOnAksClusterPoolUpgrade_UpgradeExpanded.cs} (98%)
rename src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/cmdlets/{UpdateAzHdInsightOnAksClusterPool_UpgradeViaIdentity.cs => InvokeAzHdInsightOnAksClusterPoolUpgrade_UpgradeViaIdentity.cs} (97%)
rename src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/cmdlets/{UpdateAzHdInsightOnAksClusterPool_UpgradeViaIdentityExpanded.cs => InvokeAzHdInsightOnAksClusterPoolUpgrade_UpgradeViaIdentityExpanded.cs} (97%)
rename src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/cmdlets/{UpdateAzHdInsightOnAksClusterPool_UpgradeViaJsonFilePath.cs => InvokeAzHdInsightOnAksClusterPoolUpgrade_UpgradeViaJsonFilePath.cs} (97%)
rename src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/cmdlets/{UpdateAzHdInsightOnAksClusterPool_UpgradeViaJsonString.cs => InvokeAzHdInsightOnAksClusterPoolUpgrade_UpgradeViaJsonString.cs} (97%)
rename src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/cmdlets/{UpdateAzHdInsightOnAksCluster_Upgrade.cs => InvokeAzHdInsightOnAksClusterUpgrade_Upgrade.cs} (98%)
rename src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/cmdlets/{UpdateAzHdInsightOnAksCluster_UpgradeExpanded.cs => InvokeAzHdInsightOnAksClusterUpgrade_UpgradeExpanded.cs} (98%)
rename src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/cmdlets/{UpdateAzHdInsightOnAksCluster_UpgradeViaIdentity.cs => InvokeAzHdInsightOnAksClusterUpgrade_UpgradeViaIdentity.cs} (98%)
rename src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/cmdlets/{UpdateAzHdInsightOnAksCluster_UpgradeViaIdentityClusterpool.cs => InvokeAzHdInsightOnAksClusterUpgrade_UpgradeViaIdentityClusterpool.cs} (98%)
rename src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/cmdlets/{UpdateAzHdInsightOnAksCluster_UpgradeViaIdentityClusterpoolExpanded.cs => InvokeAzHdInsightOnAksClusterUpgrade_UpgradeViaIdentityClusterpoolExpanded.cs} (97%)
rename src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/cmdlets/{UpdateAzHdInsightOnAksCluster_UpgradeViaIdentityExpanded.cs => InvokeAzHdInsightOnAksClusterUpgrade_UpgradeViaIdentityExpanded.cs} (97%)
rename src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/cmdlets/{UpdateAzHdInsightOnAksCluster_UpgradeViaJsonFilePath.cs => InvokeAzHdInsightOnAksClusterUpgrade_UpgradeViaJsonFilePath.cs} (98%)
rename src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/cmdlets/{UpdateAzHdInsightOnAksCluster_UpgradeViaJsonString.cs => InvokeAzHdInsightOnAksClusterUpgrade_UpgradeViaJsonString.cs} (98%)
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/cmdlets/InvokeAzHdInsightOnAksManageClusterLibrary_Manage.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/cmdlets/InvokeAzHdInsightOnAksManageClusterLibrary_ManageExpanded.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/cmdlets/InvokeAzHdInsightOnAksManageClusterLibrary_ManageViaIdentity.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/cmdlets/InvokeAzHdInsightOnAksManageClusterLibrary_ManageViaIdentityClusterpool.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/cmdlets/InvokeAzHdInsightOnAksManageClusterLibrary_ManageViaIdentityClusterpoolExpanded.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/cmdlets/InvokeAzHdInsightOnAksManageClusterLibrary_ManageViaIdentityExpanded.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/cmdlets/InvokeAzHdInsightOnAksManageClusterLibrary_ManageViaJsonFilePath.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/generated/cmdlets/InvokeAzHdInsightOnAksManageClusterLibrary_ManageViaJsonString.cs
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/help/Get-AzHdInsightOnAksClusterLibrary.md
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/help/Get-AzHdInsightOnAksClusterPoolUpgradeHistory.md
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/help/Get-AzHdInsightOnAksClusterUpgradeHistory.md
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/help/Invoke-AzHdInsightOnAksClusterManualRollback.md
rename src/HdInsightOnAks/HdInsightOnAks.Autorest/help/{Update-AzHdInsightOnAksClusterPool.md => Invoke-AzHdInsightOnAksClusterPoolUpgrade.md} (90%)
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/help/Invoke-AzHdInsightOnAksClusterUpgrade.md
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/help/Invoke-AzHdInsightOnAksManageClusterLibrary.md
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/help/New-AzHdInsightOnAksClusterMavenLibraryObject.md
rename src/HdInsightOnAks/HdInsightOnAks.Autorest/help/{New-AzHdInsightOnAksClusterPoolAKSUpgradeObject.md => New-AzHdInsightOnAksClusterPoolAksPatchVersionUpgradeObject.md} (74%)
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/help/New-AzHdInsightOnAksClusterPyPiLibraryObject.md
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/help/New-AzHdInsightOnAksManagedIdentityObject.md
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/test/ClusterUpgrade.Tests.ps1
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/test/Get-AzHdInsightOnAksClusterLibrary.Tests.ps1
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/test/Get-AzHdInsightOnAksClusterPoolUpgradeHistory.Tests.ps1
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/test/Get-AzHdInsightOnAksClusterUpgradeHistory.Tests.ps1
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/test/Invoke-AzHdInsightOnAksClusterManualRollback.Tests.ps1
rename src/HdInsightOnAks/HdInsightOnAks.Autorest/test/{Update-AzHdInsightOnAksClusterPool.Tests.ps1 => Invoke-AzHdInsightOnAksClusterPoolUpgrade.Tests.ps1} (81%)
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/test/Invoke-AzHdInsightOnAksClusterUpgrade.Tests.ps1
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/test/Invoke-AzHdInsightOnAksManageClusterLibrary.Tests.ps1
rename src/HdInsightOnAks/HdInsightOnAks.Autorest/test/{New-AzHdInsightOnAksHotfixUpgradeObject.Tests.ps1 => New-AzHdInsightOnAksClusterLibraryObject.Tests.ps1} (80%)
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/test/New-AzHdInsightOnAksClusterLibraryPropertiesObject.Tests.ps1
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/test/New-AzHdInsightOnAksClusterMavenLibraryObject.Tests.ps1
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/test/New-AzHdInsightOnAksClusterMavenLibraryPropertiesObject.Tests.ps1
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/test/New-AzHdInsightOnAksClusterPoolAksPatchVersionUpgradeObject.Tests.ps1
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/test/New-AzHdInsightOnAksClusterPyPiLibraryObject.Tests.ps1
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/test/New-AzHdInsightOnAksClusterPyPiLibraryPropertiesObject.Tests.ps1
rename src/HdInsightOnAks/HdInsightOnAks.Autorest/test/{New-AzHdInsightOnAksClusterPoolAKSUpgradeObject.Tests.ps1 => New-AzHdInsightOnAksManagedIdentityObject.Tests.ps1} (79%)
delete mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/test/sessionRecords/ClusterCreate_Catalog.Recording.json
create mode 100644 src/HdInsightOnAks/HdInsightOnAks.Autorest/test/sessionRecords/ClusterUpgrade.Recording.json
create mode 100644 src/HdInsightOnAks/HdInsightOnAks/help/Get-AzHdInsightOnAksClusterLibrary.md
create mode 100644 src/HdInsightOnAks/HdInsightOnAks/help/Get-AzHdInsightOnAksClusterPoolUpgradeHistory.md
create mode 100644 src/HdInsightOnAks/HdInsightOnAks/help/Get-AzHdInsightOnAksClusterUpgradeHistory.md
create mode 100644 src/HdInsightOnAks/HdInsightOnAks/help/Invoke-AzHdInsightOnAksClusterManualRollback.md
rename src/HdInsightOnAks/HdInsightOnAks/help/{Update-AzHdInsightOnAksClusterPool.md => Invoke-AzHdInsightOnAksClusterPoolUpgrade.md} (84%)
create mode 100644 src/HdInsightOnAks/HdInsightOnAks/help/Invoke-AzHdInsightOnAksClusterUpgrade.md
create mode 100644 src/HdInsightOnAks/HdInsightOnAks/help/Invoke-AzHdInsightOnAksManageClusterLibrary.md
create mode 100644 src/HdInsightOnAks/HdInsightOnAks/help/New-AzHdInsightOnAksClusterMavenLibraryObject.md
rename src/HdInsightOnAks/HdInsightOnAks/help/{New-AzHdInsightOnAksClusterPoolAKSUpgradeObject.md => New-AzHdInsightOnAksClusterPoolAksPatchVersionUpgradeObject.md} (67%)
create mode 100644 src/HdInsightOnAks/HdInsightOnAks/help/New-AzHdInsightOnAksClusterPyPiLibraryObject.md
create mode 100644 src/HdInsightOnAks/HdInsightOnAks/help/New-AzHdInsightOnAksManagedIdentityObject.md
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/Az.HdInsightOnAks.format.ps1xml b/src/HdInsightOnAks/HdInsightOnAks.Autorest/Az.HdInsightOnAks.format.ps1xml
index 82e201d65728..2f69ab20b091 100644
--- a/src/HdInsightOnAks/HdInsightOnAks.Autorest/Az.HdInsightOnAks.format.ps1xml
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/Az.HdInsightOnAks.format.ps1xml
@@ -125,6 +125,52 @@
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterAksPatchUpgradeHistoryProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterAksPatchUpgradeHistoryProperties#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ UpgradeResult
+
+
+ UpgradeType
+
+
+ UtcTime
+
+
+ NewVersion
+
+
+ OriginalVersion
+
+
+
+
+
+
Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterAksPatchVersionUpgradeProperties
@@ -147,6 +193,94 @@
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterAvailableInPlaceUpgradeProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterAvailableInPlaceUpgradeProperties#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ UpgradeType
+
+
+ ComponentName
+
+
+ CreatedTime
+
+
+ Description
+
+
+ ExtendedProperty
+
+
+ Severity
+
+
+ SourceBuildNumber
+
+
+ SourceClusterVersion
+
+
+ SourceOssVersion
+
+
+ TargetBuildNumber
+
+
+ TargetClusterVersion
+
+
+ TargetOssVersion
+
+
+
+
+
+
Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterAvailableUpgrade
@@ -252,9 +386,6 @@
-
-
-
@@ -288,13 +419,13 @@
+
+
+
-
- UpgradeType
-
ComponentName
@@ -328,6 +459,9 @@
TargetOssVersion
+
+ UpgradeType
+
@@ -355,6 +489,94 @@
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterAvailableUpgradePatchVersionUpgradeProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterAvailableUpgradePatchVersionUpgradeProperties#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ComponentName
+
+
+ CreatedTime
+
+
+ Description
+
+
+ ExtendedProperty
+
+
+ Severity
+
+
+ SourceBuildNumber
+
+
+ SourceClusterVersion
+
+
+ SourceOssVersion
+
+
+ TargetBuildNumber
+
+
+ TargetClusterVersion
+
+
+ TargetOssVersion
+
+
+ UpgradeType
+
+
+
+
+
+
Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterAvailableUpgradeProperties
@@ -468,17 +690,26 @@
- Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterHotfixUpgradeProperties
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterHotfixUpgradeHistoryProperties
- Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterHotfixUpgradeProperties#Multiple
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterHotfixUpgradeHistoryProperties#Multiple
-
+
-
+
+
+
+
+
+
+
+
+
+
@@ -489,15 +720,33 @@
+
+
+
+
+
+
+
+
+
- UpgradeType
+ ComponentName
- ComponentName
+ Severity
+
+
+ SourceBuildNumber
+
+
+ SourceClusterVersion
+
+
+ SourceOssVersion
TargetBuildNumber
@@ -508,7 +757,272 @@
TargetOssVersion
-
+
+ UpgradeResult
+
+
+ UpgradeType
+
+
+ UtcTime
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterHotfixUpgradeProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterHotfixUpgradeProperties#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ComponentName
+
+
+ TargetBuildNumber
+
+
+ TargetClusterVersion
+
+
+ TargetOssVersion
+
+
+ UpgradeType
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterHotfixUpgradeRollbackHistoryProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterHotfixUpgradeRollbackHistoryProperties#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ComponentName
+
+
+ Severity
+
+
+ SourceBuildNumber
+
+
+ SourceClusterVersion
+
+
+ SourceOssVersion
+
+
+ TargetBuildNumber
+
+
+ TargetClusterVersion
+
+
+ TargetOssVersion
+
+
+ UpgradeResult
+
+
+ UpgradeType
+
+
+ UtcTime
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterInPlaceUpgradeHistoryProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterInPlaceUpgradeHistoryProperties#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ UpgradeResult
+
+
+ UpgradeType
+
+
+ UtcTime
+
+
+ ComponentName
+
+
+ Severity
+
+
+ SourceBuildNumber
+
+
+ SourceClusterVersion
+
+
+ SourceOssVersion
+
+
+ TargetBuildNumber
+
+
+ TargetClusterVersion
+
+
+ TargetOssVersion
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterInPlaceUpgradeProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterInPlaceUpgradeProperties#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ UpgradeType
+
+
+ ComponentName
+
+
+ TargetBuildNumber
+
+
+ TargetClusterVersion
+
+
+ TargetOssVersion
+
+
@@ -746,17 +1260,217 @@
- Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterListResult
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterLibrary
- Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterListResult#Multiple
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterLibrary#Multiple
-
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ SystemDataCreatedAt
+
+
+ SystemDataCreatedBy
+
+
+ SystemDataCreatedByType
+
+
+ SystemDataLastModifiedAt
+
+
+ SystemDataLastModifiedBy
+
+
+ SystemDataLastModifiedByType
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterLibraryList
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterLibraryList#Multiple
+
+
+
+
+
+
+
+
+
+
+
+ NextLink
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterLibraryManagementOperation
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterLibraryManagementOperation#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ SystemDataCreatedAt
+
+
+ SystemDataCreatedBy
+
+
+ SystemDataCreatedByType
+
+
+ SystemDataLastModifiedAt
+
+
+ SystemDataLastModifiedBy
+
+
+ SystemDataLastModifiedByType
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterLibraryManagementOperationProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterLibraryManagementOperationProperties#Multiple
+
+
+
+
+
+
+
+
+
+
+
+ Action
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterLibraryProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterLibraryProperties#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Message
+
+
+ Remark
+
+
+ Status
+
+
+ Timestamp
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterListResult
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterListResult#Multiple
+
+
+
+
+
+
+
+
@@ -775,20 +1489,198 @@
-
+
+
+
+
+
+
+
+
+
+
+ StdErrorEnabled
+
+
+ StdOutEnabled
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterLogAnalyticsProfile
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterLogAnalyticsProfile#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Enabled
+
+
+ MetricsEnabled
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterPatchTags
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterPatchTags#Multiple
+
+
+
+
+
+
+
+
+
+
+
+ Item
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterPatchVersionUpgradeHistoryProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterPatchVersionUpgradeHistoryProperties#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ComponentName
+
+
+ Severity
+
+
+ SourceBuildNumber
+
+
+ SourceClusterVersion
+
+
+ SourceOssVersion
+
+
+ TargetBuildNumber
+
+
+ TargetClusterVersion
+
+
+ TargetOssVersion
+
+
+ UpgradeResult
+
+
+ UpgradeType
+
+
+ UtcTime
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterPatchVersionUpgradeProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterPatchVersionUpgradeProperties#Multiple
+
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
- StdErrorEnabled
+ ComponentName
- StdOutEnabled
+ TargetBuildNumber
+
+
+ TargetClusterVersion
+
+
+ TargetOssVersion
+
+
+ UpgradeType
@@ -796,27 +1688,81 @@
- Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterLogAnalyticsProfile
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterPatchVersionUpgradeRollbackHistoryProperties
- Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterLogAnalyticsProfile#Multiple
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterPatchVersionUpgradeRollbackHistoryProperties#Multiple
-
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
- Enabled
+ ComponentName
- MetricsEnabled
+ Severity
+
+
+ SourceBuildNumber
+
+
+ SourceClusterVersion
+
+
+ SourceOssVersion
+
+
+ TargetBuildNumber
+
+
+ TargetClusterVersion
+
+
+ TargetOssVersion
+
+
+ UpgradeResult
+
+
+ UpgradeType
+
+
+ UtcTime
@@ -824,21 +1770,57 @@
- Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterPatchTags
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterPoolAksPatchUpgradeHistoryProperties
- Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterPatchTags#Multiple
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterPoolAksPatchUpgradeHistoryProperties#Multiple
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
- Item
+ UpgradeResult
+
+
+ UpgradeType
+
+
+ UtcTime
+
+
+ NewVersion
+
+
+ OriginalVersion
+
+
+ UpgradeAllClusterNode
+
+
+ UpgradeClusterPool
@@ -1167,6 +2149,46 @@
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterPoolNodeOSUpgradeHistoryProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterPoolNodeOSUpgradeHistoryProperties#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ UpgradeResult
+
+
+ UpgradeType
+
+
+ UtcTime
+
+
+ NewNodeOS
+
+
+
+
+
+
Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterPoolProfile
@@ -1386,7 +2408,121 @@
OutboundType
- SubnetId
+ SubnetId
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterPoolUpgradeHistory
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterPoolUpgradeHistory#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ SystemDataCreatedAt
+
+
+ SystemDataCreatedBy
+
+
+ SystemDataCreatedByType
+
+
+ SystemDataLastModifiedAt
+
+
+ SystemDataLastModifiedBy
+
+
+ SystemDataLastModifiedByType
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterPoolUpgradeHistoryListResult
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterPoolUpgradeHistoryListResult#Multiple
+
+
+
+
+
+
+
+
+
+
+
+ NextLink
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterPoolUpgradeHistoryProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterPoolUpgradeHistoryProperties#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ UpgradeResult
+
+
+ UpgradeType
+
+
+ UtcTime
@@ -1691,6 +2827,120 @@
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterUpgradeHistory
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterUpgradeHistory#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ SystemDataCreatedAt
+
+
+ SystemDataCreatedBy
+
+
+ SystemDataCreatedByType
+
+
+ SystemDataLastModifiedAt
+
+
+ SystemDataLastModifiedBy
+
+
+ SystemDataLastModifiedByType
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterUpgradeHistoryListResult
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterUpgradeHistoryListResult#Multiple
+
+
+
+
+
+
+
+
+
+
+
+ NextLink
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterUpgradeHistoryProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterUpgradeHistoryProperties#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ UpgradeResult
+
+
+ UpgradeType
+
+
+ UtcTime
+
+
+
+
+
+
Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterUpgradeProperties
@@ -1713,6 +2963,28 @@
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterUpgradeRollbackProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterUpgradeRollbackProperties#Multiple
+
+
+
+
+
+
+
+
+
+
+
+ UpgradeHistory
+
+
+
+
+
+
Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterVersionProperties
@@ -2425,6 +3697,98 @@
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ManagedIdentitySpec
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ManagedIdentitySpec#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ClientId
+
+
+ ObjectId
+
+
+ ResourceId
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.MavenLibraryProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.MavenLibraryProperties#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Message
+
+
+ Remark
+
+
+ Status
+
+
+ Timestamp
+
+
+ GroupId
+
+
+ Name
+
+
+ Version
+
+
+
+
+
+
Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.NameAvailabilityParameters
@@ -2669,6 +4033,58 @@
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.PyPiLibraryProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.PyPiLibraryProperties#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Message
+
+
+ Remark
+
+
+ Status
+
+
+ Timestamp
+
+
+ Name
+
+
+ Version
+
+
+
+
+
+
Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.RangerAdminSpecDatabase
@@ -2937,10 +4353,10 @@
-
+
-
+
@@ -2950,10 +4366,10 @@
- KeyVaultObjectName
+ ReferenceName
- ReferenceName
+ SecretName
Version
@@ -3326,6 +4742,9 @@
+
+
+
@@ -3336,6 +4755,9 @@
PodPrefix
+
+ VMSize
+
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/Az.HdInsightOnAks.psd1 b/src/HdInsightOnAks/HdInsightOnAks.Autorest/Az.HdInsightOnAks.psd1
index 108bbef45f77..ea80dd942ccd 100644
--- a/src/HdInsightOnAks/HdInsightOnAks.Autorest/Az.HdInsightOnAks.psd1
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/Az.HdInsightOnAks.psd1
@@ -11,7 +11,7 @@
DotNetFrameworkVersion = '4.7.2'
RequiredAssemblies = './bin/Az.HdInsightOnAks.private.dll'
FormatsToProcess = './Az.HdInsightOnAks.format.ps1xml'
- FunctionsToExport = 'Get-AzHdInsightOnAksAvailableClusterPoolVersion', 'Get-AzHdInsightOnAksAvailableClusterVersion', 'Get-AzHdInsightOnAksCluster', 'Get-AzHdInsightOnAksClusterAvailableUpgrade', 'Get-AzHdInsightOnAksClusterInstanceView', 'Get-AzHdInsightOnAksClusterJob', 'Get-AzHdInsightOnAksClusterPool', 'Get-AzHdInsightOnAksClusterPoolAvailableUpgrade', 'Get-AzHdInsightOnAksClusterServiceConfig', 'New-AzHdInsightOnAksCluster', 'New-AzHdInsightOnAksClusterConfigFileObject', 'New-AzHdInsightOnAksClusterHotfixUpgradeObject', 'New-AzHdInsightOnAksClusterPool', 'New-AzHdInsightOnAksClusterPoolAKSUpgradeObject', 'New-AzHdInsightOnAksClusterServiceConfigObject', 'New-AzHdInsightOnAksClusterServiceConfigsProfileObject', 'New-AzHdInsightOnAksFlinkJobObject', 'New-AzHdInsightOnAksNodeProfileObject', 'New-AzHdInsightOnAksSecretReferenceObject', 'New-AzHdInsightOnAksTrinoHiveCatalogObject', 'Remove-AzHdInsightOnAksCluster', 'Remove-AzHdInsightOnAksClusterPool', 'Resize-AzHdInsightOnAksCluster', 'Set-AzHdInsightOnAksClusterPool', 'Start-AzHdInsightOnAksClusterJob', 'Test-AzHdInsightOnAksLocationNameAvailability', 'Update-AzHdInsightOnAksCluster', 'Update-AzHdInsightOnAksClusterPool', 'Update-AzHdInsightOnAksClusterPoolTag'
+ FunctionsToExport = 'Get-AzHdInsightOnAksAvailableClusterPoolVersion', 'Get-AzHdInsightOnAksAvailableClusterVersion', 'Get-AzHdInsightOnAksCluster', 'Get-AzHdInsightOnAksClusterAvailableUpgrade', 'Get-AzHdInsightOnAksClusterInstanceView', 'Get-AzHdInsightOnAksClusterJob', 'Get-AzHdInsightOnAksClusterLibrary', 'Get-AzHdInsightOnAksClusterPool', 'Get-AzHdInsightOnAksClusterPoolAvailableUpgrade', 'Get-AzHdInsightOnAksClusterPoolUpgradeHistory', 'Get-AzHdInsightOnAksClusterServiceConfig', 'Get-AzHdInsightOnAksClusterUpgradeHistory', 'Invoke-AzHdInsightOnAksClusterManualRollback', 'Invoke-AzHdInsightOnAksClusterPoolUpgrade', 'Invoke-AzHdInsightOnAksClusterUpgrade', 'Invoke-AzHdInsightOnAksManageClusterLibrary', 'New-AzHdInsightOnAksCluster', 'New-AzHdInsightOnAksClusterConfigFileObject', 'New-AzHdInsightOnAksClusterHotfixUpgradeObject', 'New-AzHdInsightOnAksClusterMavenLibraryObject', 'New-AzHdInsightOnAksClusterPool', 'New-AzHdInsightOnAksClusterPoolAksPatchVersionUpgradeObject', 'New-AzHdInsightOnAksClusterPyPiLibraryObject', 'New-AzHdInsightOnAksClusterServiceConfigObject', 'New-AzHdInsightOnAksClusterServiceConfigsProfileObject', 'New-AzHdInsightOnAksFlinkJobObject', 'New-AzHdInsightOnAksManagedIdentityObject', 'New-AzHdInsightOnAksNodeProfileObject', 'New-AzHdInsightOnAksSecretReferenceObject', 'New-AzHdInsightOnAksTrinoHiveCatalogObject', 'Remove-AzHdInsightOnAksCluster', 'Remove-AzHdInsightOnAksClusterPool', 'Resize-AzHdInsightOnAksCluster', 'Set-AzHdInsightOnAksClusterPool', 'Start-AzHdInsightOnAksClusterJob', 'Test-AzHdInsightOnAksLocationNameAvailability', 'Update-AzHdInsightOnAksCluster', 'Update-AzHdInsightOnAksClusterPoolTag'
PrivateData = @{
PSData = @{
Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'HdInsightOnAks'
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/README.md b/src/HdInsightOnAks/HdInsightOnAks.Autorest/README.md
index 3b67cdc1bc18..a574e01f9262 100644
--- a/src/HdInsightOnAks/HdInsightOnAks.Autorest/README.md
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/README.md
@@ -46,8 +46,8 @@ In this directory, run AutoRest:
### General settings
> Values
``` yaml
-tag: package-preview-2023-11
-commit: 754d31188c080f20b8155acdf8b8fbd77dace467
+tag: package-preview-2024-05
+commit: c766bb559e93067acf5a852e63f7edcee75a2f5b
require:
- $(this-folder)/../../readme.azure.noprofile.md
- $(repo)/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/readme.md
@@ -71,6 +71,23 @@ default-exclude-tableview-properties: true
``` yaml
identity-correction-for-post: true
directive:
+ - model-cmdlet:
+ - model-name: ManagedIdentitySpec
+ cmdlet-name: New-AzHdInsightOnAksManagedIdentityObject
+ - model-name: ClusterPoolAksPatchVersionUpgradeProperties
+ cmdlet-name: New-AzHdInsightOnAksClusterPoolAksPatchVersionUpgradeObject
+ - model-name: NodeProfile
+ cmdlet-name: New-AzHdInsightOnAksNodeProfileObject
+ - model-name: SecretReference
+ cmdlet-name: New-AzHdInsightOnAksSecretReferenceObject
+ - model-name: HiveCatalogOption
+ cmdlet-name: New-AzHdInsightOnAksTrinoHiveCatalogObject
+ - model-name: ClusterConfigFile
+ cmdlet-name: New-AzHdInsightOnAksClusterConfigFileObject
+ - model-name: ClusterServiceConfig
+ cmdlet-name: New-AzHdInsightOnAksClusterServiceConfigObject
+ - model-name: ClusterServiceConfigsProfile
+ cmdlet-name: New-AzHdInsightOnAksClusterServiceConfigsProfileObject
- from: swagger-document
where: $.paths..responses.202
transform: delete $.headers
@@ -122,7 +139,17 @@ directive:
model-name: ClusterVersion
property-name: PropertiesClusterVersion
set:
- property-name: ClusterVersionValue
+ property-name: ClusterVersionValue
+ - where:
+ model-name: SecretReference
+ property-name: KeyVaultObjectName
+ set:
+ property-name: SecretName
+ - where:
+ model-name: ClusterServiceConfig
+ property-name: Component
+ set:
+ property-name: ComponentName
# the below is cmdlet part
- where:
verb: New|Set
@@ -309,5 +336,24 @@ directive:
set:
parameter-name: FlinkHiveCatalogDbUserName
# The below customize the output model
-
+ - where:
+ verb: Update
+ subject: [Cluster]
+ variant: [Upgrade|UpgradeExpanded|UpgradeViaIdentity|UpgradeViaIdentityExpanded|UpgradeViaJsonFilePath|UpgradeViaJsonString]
+ set:
+ verb: Invoke
+ subject: ClusterUpgrade
+ - where:
+ verb: Update
+ subject: [ClusterManualRollback]
+ variant: [Upgrade|UpgradeExpanded|UpgradeViaIdentity|UpgradeViaIdentityExpanded|UpgradeViaJsonFilePath|UpgradeViaJsonString]
+ set:
+ verb: Invoke
+ - where:
+ verb: Update
+ subject: [ClusterPool]
+ variant: [Upgrade|UpgradeExpanded|UpgradeViaIdentity|UpgradeViaIdentityExpanded|UpgradeViaJsonFilePath|UpgradeViaJsonString]
+ set:
+ verb: Invoke
+ subject: ClusterPoolUpgrade
```
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/UX/Microsoft.HDInsight/clusterpools-clusters.json b/src/HdInsightOnAks/HdInsightOnAks.Autorest/UX/Microsoft.HDInsight/clusterpools-clusters.json
index 6cf10ab2b65b..f485a8dca941 100644
--- a/src/HdInsightOnAks/HdInsightOnAks.Autorest/UX/Microsoft.HDInsight/clusterpools-clusters.json
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/UX/Microsoft.HDInsight/clusterpools-clusters.json
@@ -1,6 +1,6 @@
{
"resourceType": "clusterpools/clusters",
- "apiVersion": "2023-11-01-preview",
+ "apiVersion": "2024-05-01-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.hdinsightonaks"
},
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/UX/Microsoft.HDInsight/clusterpools.json b/src/HdInsightOnAks/HdInsightOnAks.Autorest/UX/Microsoft.HDInsight/clusterpools.json
index 20e46298e819..bfa8afe2190a 100644
--- a/src/HdInsightOnAks/HdInsightOnAks.Autorest/UX/Microsoft.HDInsight/clusterpools.json
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/UX/Microsoft.HDInsight/clusterpools.json
@@ -1,6 +1,6 @@
{
"resourceType": "clusterpools",
- "apiVersion": "2023-11-01-preview",
+ "apiVersion": "2024-05-01-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.hdinsightonaks"
},
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/build-module.ps1 b/src/HdInsightOnAks/HdInsightOnAks.Autorest/build-module.ps1
index bb280ced79ed..bd6bc33fa2b4 100644
--- a/src/HdInsightOnAks/HdInsightOnAks.Autorest/build-module.ps1
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/build-module.ps1
@@ -12,7 +12,7 @@
# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
# is regenerated.
# ----------------------------------------------------------------------------------
-param([switch]$NotIsolated, [switch]$Run, [switch]$Test, [switch]$Docs, [switch]$Pack, [switch]$Code, [switch]$Release, [switch]$Debugger, [switch]$NoDocs, [switch]$UX)
+param([switch]$NotIsolated, [switch]$Run, [switch]$Test, [switch]$Docs, [switch]$Pack, [switch]$Code, [switch]$Release, [switch]$Debugger, [switch]$NoDocs, [switch]$UX, [Switch]$DisableAfterBuildTasks)
$ErrorActionPreference = 'Stop'
if($PSEdition -ne 'Core') {
@@ -130,7 +130,7 @@ $examplesFolder = Join-Path $PSScriptRoot 'examples'
$null = New-Item -ItemType Directory -Force -Path $examplesFolder
Write-Host -ForegroundColor Green 'Creating cmdlets for specified models...'
-$modelCmdlets = @()
+$modelCmdlets = @(@{modelName="ManagedIdentitySpec"; cmdletName="New-AzHdInsightOnAksManagedIdentityObject"}, @{modelName="ClusterPoolAksPatchVersionUpgradeProperties"; cmdletName="New-AzHdInsightOnAksClusterPoolAksPatchVersionUpgradeObject"}, @{modelName="NodeProfile"; cmdletName="New-AzHdInsightOnAksNodeProfileObject"}, @{modelName="SecretReference"; cmdletName="New-AzHdInsightOnAksSecretReferenceObject"}, @{modelName="HiveCatalogOption"; cmdletName="New-AzHdInsightOnAksTrinoHiveCatalogObject"}, @{modelName="ClusterConfigFile"; cmdletName="New-AzHdInsightOnAksClusterConfigFileObject"}, @{modelName="ClusterServiceConfig"; cmdletName="New-AzHdInsightOnAksClusterServiceConfigObject"}, @{modelName="ClusterServiceConfigsProfile"; cmdletName="New-AzHdInsightOnAksClusterServiceConfigsProfileObject"})
$modelCmdletFolder = Join-Path (Join-Path $PSScriptRoot './custom') 'autogen-model-cmdlets'
if (Test-Path $modelCmdletFolder) {
$null = Remove-Item -Force -Recurse -Path $modelCmdletFolder
@@ -177,4 +177,14 @@ if (Test-Path (Join-Path $PSScriptRoot 'generate-portal-ux.ps1'))
. (Join-Path $PSScriptRoot 'generate-portal-ux.ps1')
}
+if (-not $DisableAfterBuildTasks){
+ $afterBuildTasksPath = Join-Path $PSScriptRoot ''
+ $afterBuildTasksArgs = ConvertFrom-Json 'true' -AsHashtable
+ if(Test-Path -Path $afterBuildTasksPath -PathType leaf){
+ Write-Host -ForegroundColor Green 'Running after build tasks...'
+ . $afterBuildTasksPath @afterBuildTasksArgs
+ }
+}
+
+
Write-Host -ForegroundColor Green '-------------Done-------------'
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/New-AzHdInsightOnAksClusterConfigFileObject.ps1 b/src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/New-AzHdInsightOnAksClusterConfigFileObject.ps1
deleted file mode 100644
index 5e2582a48e65..000000000000
--- a/src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/New-AzHdInsightOnAksClusterConfigFileObject.ps1
+++ /dev/null
@@ -1,61 +0,0 @@
-# ----------------------------------------------------------------------------------
-# Copyright (c) Microsoft Corporation. All rights reserved.
-# Licensed under the MIT License. See License.txt in the project root for license information.
-# Code generated by Microsoft (R) AutoRest Code Generator.
-# Changes may cause incorrect behavior and will be lost if the code is regenerated.
-# ----------------------------------------------------------------------------------
-
-<#
-.Synopsis
-Create cluster config file.
-.Description
-Create cluster config file.
-.Example
-$coreSiteConfigFile=New-AzHDInsightAksClusterConfigFile -FileName "core-site.xml" -Value @{"fs.defaultFS"="abfs://testcontainer@$teststorage.dfs.core.windows.net"}
-
-.Inputs
-System.Collections.HashTable
-.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterConfigFile
-.Notes
-
-.Link
-https://learn.microsoft.com/powershell/module/az.hdinsightonaks/New-AzHdInsightOnAksClusterConfigFileObject
-#>
-function New-AzHdInsightOnAksClusterConfigFileObject {
- [OutputType([Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterConfigFile])]
- [CmdletBinding(DefaultParameterSetName = 'Create', PositionalBinding = $false)]
- param(
- [Parameter(ParameterSetName = 'Create', Mandatory)]
- [Alias('Name')]
- [System.String]
- # The name of the config file.
- ${FileName},
-
- [Parameter(ParameterSetName = 'Create', Mandatory)]
- [System.Collections.HashTable]
- # List of key value pairs where key represents a valid service configuration name and value represents the value of the config.
- ${Value}
- )
-
- process {
- try {
- $configFileValue = New-Object Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterConfigFileValues
-
- foreach ($item in $Value.GetEnumerator()) {
- $configFileValue.Add($item.Name, $item.Value)
- }
-
- $configFile = New-Object Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterConfigFile -Property @{FileName = $FileName; Value = $configFileValue }
- return $configFile
- }
- catch {
-
- throw
- }
-
- finally {
-
- }
- }
-}
\ No newline at end of file
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/New-AzHdInsightOnAksClusterHotfixUpgradeObject.ps1 b/src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/New-AzHdInsightOnAksClusterHotfixUpgradeObject.ps1
index 406d40998a07..d244ba2e2e09 100644
--- a/src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/New-AzHdInsightOnAksClusterHotfixUpgradeObject.ps1
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/New-AzHdInsightOnAksClusterHotfixUpgradeObject.ps1
@@ -1,6 +1,6 @@
+
# ----------------------------------------------------------------------------------
-#
-# Copyright Microsoft Corporation
+# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
@@ -10,59 +10,60 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
# ----------------------------------------------------------------------------------
<#
.Synopsis
-Create an object to hold the cluster upgrade parameters.
+Create an in-memory object for ClusterHotfixUpgradeProperties.
.Description
-Create an object to hold the cluster upgrade parameters.
+Create an in-memory object for ClusterHotfixUpgradeProperties.
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterUpgrade
+Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterHotfixUpgradeProperties
.Link
-https://learn.microsoft.com/powershell/module/az.hdinsightonaks/New-AzHdInsightOnAksClusterHotfixUpgradeObject
+https://learn.microsoft.com/powershell/module/Az.HdInsightOnAks/new-azhdinsightonaksclusterhotfixupgradeobject
#>
function New-AzHdInsightOnAksClusterHotfixUpgradeObject {
- [OutputType([Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterUpgrade])]
- [CmdletBinding(DefaultParameterSetName = 'Create', PositionalBinding = $false)]
- param(
- [Parameter(ParameterSetName = 'Create')]
- [System.String]
- # Name of component to be upgraded.
- ${ComponentName},
-
- [Parameter(ParameterSetName = 'Create')]
- [System.String]
- # Target build number of component to be upgraded.
- ${TargetBuildNumber},
-
- [Parameter(ParameterSetName = 'Create')]
- [System.String]
- # Target cluster version of component to be upgraded.
- ${TargetClusterVersion},
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterUpgrade')]
+ [CmdletBinding(PositionalBinding=$false)]
+ Param(
- [Parameter(ParameterSetName = 'Create')]
- [System.String]
- # Target OSS version of component to be upgraded.
- ${TargetOssVersion}
+ [Parameter(HelpMessage="Name of component to be upgraded.")]
+ [string]
+ $ComponentName,
+ [Parameter(HelpMessage="Target build number of component to be upgraded.")]
+ [string]
+ $TargetBuildNumber,
+ [Parameter(HelpMessage="Target cluster version of component to be upgraded.")]
+ [string]
+ $TargetClusterVersion,
+ [Parameter(HelpMessage="Target OSS version of component to be upgraded.")]
+ [string]
+ $TargetOssVersion
)
+
process {
- try {
- $hotfixProperty = New-Object Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterHotfixUpgradeProperties -Property `
- @{ComponentName = $ComponentName;
- TargetBuildNumber = $TargetBuildNumber;
- TargetClusterVersion = $TargetClusterVersion;
- TargetOssVersion = $TargetOssVersion;
- }
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterHotfixUpgradeProperties]::New()
- $hotfixObject = New-Object Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterUpgrade -Property `
- @{Property = $hotfixProperty }
+ $RequestObject = [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterUpgrade]::New()
- return $hotfixObject
+ if ($PSBoundParameters.ContainsKey('ComponentName')) {
+ $Object.ComponentName = $ComponentName
+ }
+ if ($PSBoundParameters.ContainsKey('TargetBuildNumber')) {
+ $Object.TargetBuildNumber = $TargetBuildNumber
}
- catch {
- throw
+ if ($PSBoundParameters.ContainsKey('TargetClusterVersion')) {
+ $Object.TargetClusterVersion = $TargetClusterVersion
}
+ if ($PSBoundParameters.ContainsKey('TargetOssVersion')) {
+ $Object.TargetOssVersion = $TargetOssVersion
+ }
+
+ $RequestObject.Property = $Object
+ return $RequestObject
}
-}
\ No newline at end of file
+}
+
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/New-AzHdInsightOnAksClusterMavenLibraryObject.ps1 b/src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/New-AzHdInsightOnAksClusterMavenLibraryObject.ps1
new file mode 100644
index 000000000000..1c4491782f50
--- /dev/null
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/New-AzHdInsightOnAksClusterMavenLibraryObject.ps1
@@ -0,0 +1,70 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Create an in-memory object for MavenLibraryProperties.
+.Description
+Create an in-memory object for MavenLibraryProperties.
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.MavenLibraryProperties
+.Link
+https://learn.microsoft.com/powershell/module/Az.HdInsightOnAks/new-azhdinsightonaksclustermavenlibraryobject
+#>
+function New-AzHdInsightOnAksClusterMavenLibraryObject {
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterLibrary')]
+ [CmdletBinding(PositionalBinding=$false)]
+ Param(
+
+ [Parameter(Mandatory, HelpMessage="GroupId of the Maven package.")]
+ [string]
+ $GroupId,
+ [Parameter(Mandatory, HelpMessage="ArtifactId of the Maven package.")]
+ [string]
+ $Name,
+ [Parameter(HelpMessage="Version of the Maven package.")]
+ [string]
+ $Version,
+ [Parameter(HelpMessage="Remark of the latest library management operation.")]
+ [string]
+ $Remark
+ )
+
+ process {
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.MavenLibraryProperties]::New()
+
+ if ($PSBoundParameters.ContainsKey('GroupId')) {
+ $Object.GroupId = $GroupId
+ }
+ if ($PSBoundParameters.ContainsKey('Name')) {
+ $Object.Name = $Name
+ }
+ if ($PSBoundParameters.ContainsKey('Version')) {
+ $Object.Version = $Version
+ }
+ if ($PSBoundParameters.ContainsKey('Remark')) {
+ $Object.Remark = $Remark
+ }
+
+ $LibraryObj = [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterLibrary]::New()
+
+ $LibraryObj.Property = $Object
+
+ return $LibraryObj
+ }
+}
+
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/New-AzHdInsightOnAksClusterPoolAKSUpgradeObject.ps1 b/src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/New-AzHdInsightOnAksClusterPoolAKSUpgradeObject.ps1
deleted file mode 100644
index 84591367bd59..000000000000
--- a/src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/New-AzHdInsightOnAksClusterPoolAKSUpgradeObject.ps1
+++ /dev/null
@@ -1,62 +0,0 @@
-# ----------------------------------------------------------------------------------
-#
-# Copyright Microsoft Corporation
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-# http://www.apache.org/licenses/LICENSE-2.0
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-# ----------------------------------------------------------------------------------
-
-<#
-.Synopsis
-Create an object to hold the cluster pool upgrade parameters.
-.Description
-Create an object to hold the cluster pool upgrade parameters.
-
-.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterPoolUpgrade
-.Link
-https://learn.microsoft.com/powershell/module/az.hdinsightonaks/New-AzHdInsightOnAksClusterPoolAKSUpgradeObject
-#>
-function New-AzHdInsightOnAksClusterPoolAKSUpgradeObject {
- [OutputType([Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterPoolUpgrade])]
- [CmdletBinding(DefaultParameterSetName = 'Create', PositionalBinding = $false)]
- param(
- [Parameter(ParameterSetName = 'Create')]
- [System.String]
- # Target AKS version. When it's not set, latest version will be used. When upgradeClusterPool is true and upgradeAllClusterNodes is false, target version should be greater or equal to current version. When upgradeClusterPool is false and upgradeAllClusterNodes is true, target version should be equal to AKS version of cluster pool.
- ${TargetAksVersion},
-
- [Parameter(ParameterSetName = 'Create')]
- [System.String]
- # whether upgrade all clusters' nodes. If it's true, upgradeClusterPool should be false.
- ${UpgradeAllClusterNode},
-
- [Parameter(ParameterSetName = 'Create')]
- [System.String]
- # whether upgrade cluster pool or not. If it's true, upgradeAllClusterNodes should be false.
- ${UpgradeClusterPool}
- )
- process {
- try {
- $aksPatchProperty = New-Object Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterPoolAksPatchVersionUpgradeProperties -Property `
- @{TargetAksVersion = $TargetAksVersion;
- UpgradeAllClusterNode = $UpgradeAllClusterNode;
- UpgradeClusterPool = $UpgradeClusterPool;
- }
-
- $AKSPatchatchObject = New-Object Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterPoolUpgrade -Property `
- @{Property = $aksPatchProperty }
-
- return $AKSPatchatchObject
- }
- catch {
- throw
- }
- }
-}
\ No newline at end of file
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/New-AzHdInsightOnAksClusterPyPiLibraryPropertiesObject.ps1 b/src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/New-AzHdInsightOnAksClusterPyPiLibraryPropertiesObject.ps1
new file mode 100644
index 000000000000..58d69c38ba39
--- /dev/null
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/New-AzHdInsightOnAksClusterPyPiLibraryPropertiesObject.ps1
@@ -0,0 +1,64 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Create an in-memory object for PyPiLibraryProperties.
+.Description
+Create an in-memory object for PyPiLibraryProperties.
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.PyPiLibraryProperties
+.Link
+https://learn.microsoft.com/powershell/module/Az.HdInsightOnAks/new-azhdinsightonaksclusterpypilibraryobject
+#>
+function New-AzHdInsightOnAksClusterPyPiLibraryObject {
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterLibrary')]
+ [CmdletBinding(PositionalBinding=$false)]
+ Param(
+
+ [Parameter(Mandatory, HelpMessage="Name of the PyPi package.")]
+ [string]
+ $Name,
+ [Parameter(HelpMessage="Version of the PyPi package.")]
+ [string]
+ $Version,
+ [Parameter(HelpMessage="Remark of the latest library management operation.")]
+ [string]
+ $Remark
+ )
+
+ process {
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.PyPiLibraryProperties]::New()
+
+ if ($PSBoundParameters.ContainsKey('Name')) {
+ $Object.Name = $Name
+ }
+ if ($PSBoundParameters.ContainsKey('Version')) {
+ $Object.Version = $Version
+ }
+ if ($PSBoundParameters.ContainsKey('Remark')) {
+ $Object.Remark = $Remark
+ }
+
+ $LibraryObj = [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterLibrary]::New()
+
+ $LibraryObj.Property = $Object
+
+ return $LibraryObj
+ }
+}
+
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/New-AzHdInsightOnAksClusterServiceConfigObject.ps1 b/src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/New-AzHdInsightOnAksClusterServiceConfigObject.ps1
deleted file mode 100644
index f4b21d4318e7..000000000000
--- a/src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/New-AzHdInsightOnAksClusterServiceConfigObject.ps1
+++ /dev/null
@@ -1,75 +0,0 @@
-# ----------------------------------------------------------------------------------
-# Copyright (c) Microsoft Corporation. All rights reserved.
-# Licensed under the MIT License. See License.txt in the project root for license information.
-# Code generated by Microsoft (R) AutoRest Code Generator.
-# Changes may cause incorrect behavior and will be lost if the code is regenerated.
-# ----------------------------------------------------------------------------------
-
-<#
-.Synopsis
-Create a component config.
-.Description
-Create a component config.
-.Example
-$coreSiteConfigFile=New-AzHDInsightAksClusterConfigFile -FileName "core-site.xml" -Value @{"fs.defaultFS"="abfs://testcontainer@$teststorage.dfs.core.windows.net"}
-$yarnComponentConfig= New-AzHdInsightOnAksClusterServiceConfigObject -ComponentName "yarn-config" -File $coreSiteConfigFile
-
-.Inputs
-Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterConfigFile[]
-.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterServiceConfig
-.Notes
-
-.Link
-https://learn.microsoft.com/powershell/module/az.hdinsightonaks/New-AzHdInsightOnAksClusterServiceConfigObject
-#>
-function New-AzHdInsightOnAksClusterServiceConfigObject {
- [OutputType([Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterServiceConfig])]
- [CmdletBinding(DefaultParameterSetName = 'Create', PositionalBinding = $false)]
- param(
- [Parameter(ParameterSetName = 'Create', Mandatory)]
- [Alias('Name')]
- [System.String]
- # Name of the component the config files should apply to.
- ${ComponentName},
-
- [Parameter(ParameterSetName = 'Create', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterConfigFile[]]
- # List of Config Files.
- ${File}
- )
-
- begin {
- try {
-
- }
- catch {
- throw
- }
- }
-
- process {
- try {
- $clusterServiceConfig = New-Object Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterServiceConfig -Property @{Component = $ComponentName; File = $File }
- return $clusterServiceConfig
- }
- catch {
-
- throw
- }
-
- finally {
-
- }
-
- }
- end {
- try {
-
- }
- catch {
- throw
- }
- }
-
-}
\ No newline at end of file
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/New-AzHdInsightOnAksClusterServiceConfigsProfileObject.ps1 b/src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/New-AzHdInsightOnAksClusterServiceConfigsProfileObject.ps1
deleted file mode 100644
index bb211cca4519..000000000000
--- a/src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/New-AzHdInsightOnAksClusterServiceConfigsProfileObject.ps1
+++ /dev/null
@@ -1,60 +0,0 @@
-# ----------------------------------------------------------------------------------
-# Copyright (c) Microsoft Corporation. All rights reserved.
-# Licensed under the MIT License. See License.txt in the project root for license information.
-# Code generated by Microsoft (R) AutoRest Code Generator.
-# Changes may cause incorrect behavior and will be lost if the code is regenerated.
-# ----------------------------------------------------------------------------------
-
-<#
-.Synopsis
-Create a service config profile.
-.Description
-Create a service config profile.
-.Example
-$coreSiteConfigFile=New-AzHDInsightAksClusterConfigFile -FileName "core-site.xml" -Value @{"fs.defaultFS"="abfs://testcontainer@$teststorage.dfs.core.windows.net"}
-$yarnComponentConfig= New-AzHdInsightOnAksClusterServiceConfigObject -ComponentName "yarn-config" -File $coreSiteConfigFile
-$yarnServiceConfigProfile=New-AzHdInsightOnAksClusterServiceConfigsProfileObject -ServiceName "yarn-service" -Config $yarnComponentConfig
-
-.Inputs
-System.String
-.Inputs
-Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterServiceConfig[]
-.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ICluster
-.Notes
-
-.Link
-https://learn.microsoft.com/powershell/module/az.hdinsightonaks/New-AzHdInsightOnAksClusterServiceConfigsProfileObject
-#>
-function New-AzHdInsightOnAksClusterServiceConfigsProfileObject {
- [OutputType([Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterServiceConfigsProfile])]
- [CmdletBinding(DefaultParameterSetName = 'Create', PositionalBinding = $false)]
- param(
- [Parameter(ParameterSetName = 'Create', Mandatory)]
- [Alias('Name')]
- [System.String]
- # Name of the service the configurations should apply to.
- ${ServiceName},
-
- [Parameter(ParameterSetName = 'Create', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterServiceConfig[]]
- # List of service configs.
- ${Config}
- )
-
- process {
- try {
- $clusterServiceConfigsProfile = New-Object Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterServiceConfigsProfile -Property @{ServiceName = $ServiceName; Config = $Config }
- return $clusterServiceConfigsProfile
- }
- catch {
-
- throw
- }
-
- finally {
-
- }
-
- }
-}
\ No newline at end of file
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/New-AzHdInsightOnAksNodeProfileObject.ps1 b/src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/New-AzHdInsightOnAksNodeProfileObject.ps1
deleted file mode 100644
index 43d2ff8688ff..000000000000
--- a/src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/New-AzHdInsightOnAksNodeProfileObject.ps1
+++ /dev/null
@@ -1,62 +0,0 @@
-# ----------------------------------------------------------------------------------
-#
-# Copyright Microsoft Corporation
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-# http://www.apache.org/licenses/LICENSE-2.0
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-# ----------------------------------------------------------------------------------
-
-<#
-.Synopsis
-Create a node profile with SKU and worker count.
-.Description
-Create a node profile with SKU and worker count.
-.Example
-$vmSize="Standard_E8ads_v5";
-$workerCount=5;
-$nodeProfile = New-AzHdInsightOnAksNodeProfileObject -Type "Worker" -Count $workerCount -VMSize $vmSize
-.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.INodeProfile
-.Link
-https://learn.microsoft.com/powershell/module/az.hdinsightonaks/New-AzHdInsightOnAksNodeProfileObject
-#>
-function New-AzHdInsightOnAksNodeProfileObject {
- [OutputType([Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.INodeProfile])]
- [CmdletBinding(DefaultParameterSetName = 'Create', PositionalBinding = $false)]
- param(
- [Parameter(ParameterSetName = 'Create', Mandatory)]
- [System.String]
- [ValidateSet("Head", "Worker")]
- # The node type.
- ${Type},
-
- [Parameter(ParameterSetName = 'Create', Mandatory)]
- [System.Int32]
- # The virtual machine SKU.
- ${Count},
-
- [Parameter(ParameterSetName = 'Create', Mandatory)]
- [System.String]
- # The number of virtual machines.
- ${VMSize}
- )
- process {
- try {
- $nodeProfile = New-Object Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.NodeProfile -Property `
- @{Type = $Type;
- Count = $Count;
- VMSize = $VMSize
- }
- return $nodeProfile
- }
- catch {
- throw
- }
- }
-}
\ No newline at end of file
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/New-AzHdInsightOnAksSecretReferenceObject.ps1 b/src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/New-AzHdInsightOnAksSecretReferenceObject.ps1
deleted file mode 100644
index 6b89d21a880e..000000000000
--- a/src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/New-AzHdInsightOnAksSecretReferenceObject.ps1
+++ /dev/null
@@ -1,64 +0,0 @@
-# ----------------------------------------------------------------------------------
-#
-# Copyright Microsoft Corporation
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-# http://www.apache.org/licenses/LICENSE-2.0
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-# ----------------------------------------------------------------------------------
-
-<#
-.Synopsis
-Create a reference to provide a secret to store the password for accessing the database.
-.Description
-Create a reference to provide a secret to store the password for accessing the database.
-$keyVaultResourceId="/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/{your resource group name}/providers/Microsoft.KeyVault/vaults/{your vault name}";
-$secretName="{your secret name}"
-$referenceName="{your secret reference name}";
-
-$secretReference=New-AzHdInsightOnAksSecretReferenceObject -SecretName $secretName -ReferenceName $referenceName
-NA
-.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ISecretReference
-.Link
-https://learn.microsoft.com/powershell/module/az.hdinsightonaks/New-AzHdInsightOnAksSecretReferenceObject
-#>
-function New-AzHdInsightOnAksSecretReferenceObject {
- [OutputType([Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ISecretReference])]
- [CmdletBinding(DefaultParameterSetName = 'Create', PositionalBinding = $false)]
- param(
- [Parameter(ParameterSetName = 'Create', Mandatory)]
- [System.String]
- # The secret name in the key vault.
- ${SecretName},
-
- [Parameter(ParameterSetName = 'Create', Mandatory)]
- [System.String]
- # The reference name of the secret to be used in service configs.
- ${ReferenceName},
-
- [Parameter(ParameterSetName = 'Create')]
- [System.String]
- # The version of the secret in key vault.
- ${Version}
- )
- process {
- try {
- $SecretReference = New-Object Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.SecretReference -Property `
- @{KeyVaultObjectName = $SecretName;
- ReferenceName = $ReferenceName;
- Type = "Secret";
- Version = $Version
- }
- return $SecretReference
- }
- catch {
- throw
- }
- }
-}
\ No newline at end of file
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/New-AzHdInsightOnAksTrinoHiveCatalogObject.ps1 b/src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/New-AzHdInsightOnAksTrinoHiveCatalogObject.ps1
deleted file mode 100644
index a3304033d4ac..000000000000
--- a/src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/New-AzHdInsightOnAksTrinoHiveCatalogObject.ps1
+++ /dev/null
@@ -1,77 +0,0 @@
-# ----------------------------------------------------------------------------------
-#
-# Copyright Microsoft Corporation
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-# http://www.apache.org/licenses/LICENSE-2.0
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-# ----------------------------------------------------------------------------------
-
-<#
-.Synopsis
-Create a hive catalog configured as a Trino cluster.
-.Description
-Create a hive catalog configured as a Trino cluster.
-.Example
-$catalogName="{your catalog name}"
-$metastoreDbConnectionURL="jdbc:sqlserver://{your sql server url};database={your db name};encrypt=truetrustServerCertificate=true;loginTimeout=30;"
-$metastoreDbUserName="{your db user name}"
-$metastoreDbPasswordSecret="{secretName}"
-$metastoreWarehouseDir="abfs://{your container name}@{your adls gen2 endpoint}/{your path}"
-
-New-AzHdInsightOnAksTrinoHiveCatalogObject -CatalogName $catalogName -MetastoreDbConnectionUrl $metastoreDbConnectionURL -MetastoreDbConnectionUserName $metastoreDbUserName -MetastoreDbConnectionPasswordSecret $metastoreDbPasswordSecret
-.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IHiveCatalogOption
-.Link
-https://learn.microsoft.com/powershell/module/az.hdinsightonaks/New-AzHdInsightOnAksTrinoHiveCatalogObject
-#>
-function New-AzHdInsightOnAksTrinoHiveCatalogObject {
- [OutputType([Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IHiveCatalogOption])]
- [CmdletBinding(DefaultParameterSetName = 'Create', PositionalBinding = $false)]
- param(
- [Parameter(ParameterSetName = 'Create', Mandatory)]
- [System.String]
- # Name of trino catalog which should use specified hive metastore.
- ${CatalogName},
-
- [Parameter(ParameterSetName = 'Create', Mandatory)]
- [System.String]
- # Connection string for hive metastore database.
- ${MetastoreDbConnectionUrl},
-
- [Parameter(ParameterSetName = 'Create', Mandatory)]
- [System.String]
- # User name for hive metastore database.
- ${MetastoreDbConnectionUserName},
-
- [Parameter(ParameterSetName = 'Create', Mandatory)]
- [System.String]
- # Password secret for hive metastore database.
- ${MetastoreDbConnectionPasswordSecret},
-
- [Parameter(ParameterSetName = 'Create')]
- [System.String]
- # Warehouse directory for hive metastore database.
- ${MetastoreWarehouseDir}
- )
- process {
- try {
- $trinoHiveCatalogOption = New-Object Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.HiveCatalogOption -Property `
- @{CatalogName = $CatalogName;
- MetastoreDbConnectionUrl = $MetastoreDbConnectionUrl;
- MetastoreDbConnectionUserName = $MetastoreDbConnectionUserName;
- MetastoreDbConnectionPasswordSecret = $MetastoreDbConnectionPasswordSecret;
- MetastoreWarehouseDir = $MetastoreWarehouseDir
- }
- return $trinoHiveCatalogOption
- }
- catch {
- throw
- }
- }
-}
\ No newline at end of file
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/autogen-model-cmdlets/New-AzHdInsightOnAksClusterConfigFileObject.ps1 b/src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/autogen-model-cmdlets/New-AzHdInsightOnAksClusterConfigFileObject.ps1
new file mode 100644
index 000000000000..8e63806ac15d
--- /dev/null
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/autogen-model-cmdlets/New-AzHdInsightOnAksClusterConfigFileObject.ps1
@@ -0,0 +1,73 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Create an in-memory object for ClusterConfigFile.
+.Description
+Create an in-memory object for ClusterConfigFile.
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterConfigFile
+.Link
+https://learn.microsoft.com/powershell/module/Az.HdInsightOnAks/new-azhdinsightonaksclusterconfigfileobject
+#>
+function New-AzHdInsightOnAksClusterConfigFileObject {
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterConfigFile')]
+ [CmdletBinding(PositionalBinding=$false)]
+ Param(
+
+ [Parameter(HelpMessage="Free form content of the entire configuration file.")]
+ [string]
+ $Content,
+ [Parameter(HelpMessage="This property indicates if the content is encoded and is case-insensitive. Please set the value to base64 if the content is base64 encoded. Set it to none or skip it if the content is plain text.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.PSArgumentCompleterAttribute("Base64", "None")]
+ [string]
+ $Encoding,
+ [Parameter(Mandatory, HelpMessage="Configuration file name.")]
+ [string]
+ $FileName,
+ [Parameter(HelpMessage="Path of the config file if content is specified.")]
+ [string]
+ $Path,
+ [Parameter(HelpMessage="List of key value pairs
+ where key represents a valid service configuration name and value represents the value of the config.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterConfigFileValues]
+ $Value
+ )
+
+ process {
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterConfigFile]::New()
+
+ if ($PSBoundParameters.ContainsKey('Content')) {
+ $Object.Content = $Content
+ }
+ if ($PSBoundParameters.ContainsKey('Encoding')) {
+ $Object.Encoding = $Encoding
+ }
+ if ($PSBoundParameters.ContainsKey('FileName')) {
+ $Object.FileName = $FileName
+ }
+ if ($PSBoundParameters.ContainsKey('Path')) {
+ $Object.Path = $Path
+ }
+ if ($PSBoundParameters.ContainsKey('Value')) {
+ $Object.Value = $Value
+ }
+ return $Object
+ }
+}
+
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/autogen-model-cmdlets/New-AzHdInsightOnAksClusterPoolAksPatchVersionUpgradeObject.ps1 b/src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/autogen-model-cmdlets/New-AzHdInsightOnAksClusterPoolAksPatchVersionUpgradeObject.ps1
new file mode 100644
index 000000000000..eb02c9a386c0
--- /dev/null
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/autogen-model-cmdlets/New-AzHdInsightOnAksClusterPoolAksPatchVersionUpgradeObject.ps1
@@ -0,0 +1,59 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Create an in-memory object for ClusterPoolAksPatchVersionUpgradeProperties.
+.Description
+Create an in-memory object for ClusterPoolAksPatchVersionUpgradeProperties.
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterPoolAksPatchVersionUpgradeProperties
+.Link
+https://learn.microsoft.com/powershell/module/Az.HdInsightOnAks/new-azhdinsightonaksclusterpoolakspatchversionupgradeobject
+#>
+function New-AzHdInsightOnAksClusterPoolAksPatchVersionUpgradeObject {
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterPoolAksPatchVersionUpgradeProperties')]
+ [CmdletBinding(PositionalBinding=$false)]
+ Param(
+
+ [Parameter(HelpMessage="Target AKS version. When it's not set, latest version will be used. When upgradeClusterPool is true and upgradeAllClusterNodes is false, target version should be greater or equal to current version. When upgradeClusterPool is false and upgradeAllClusterNodes is true, target version should be equal to AKS version of cluster pool.")]
+ [string]
+ $TargetAksVersion,
+ [Parameter(HelpMessage="whether upgrade all clusters' nodes. If it's true, upgradeClusterPool should be false.")]
+ [bool]
+ $UpgradeAllClusterNode,
+ [Parameter(HelpMessage="whether upgrade cluster pool or not. If it's true, upgradeAllClusterNodes should be false.")]
+ [bool]
+ $UpgradeClusterPool
+ )
+
+ process {
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterPoolAksPatchVersionUpgradeProperties]::New()
+
+ if ($PSBoundParameters.ContainsKey('TargetAksVersion')) {
+ $Object.TargetAksVersion = $TargetAksVersion
+ }
+ if ($PSBoundParameters.ContainsKey('UpgradeAllClusterNode')) {
+ $Object.UpgradeAllClusterNode = $UpgradeAllClusterNode
+ }
+ if ($PSBoundParameters.ContainsKey('UpgradeClusterPool')) {
+ $Object.UpgradeClusterPool = $UpgradeClusterPool
+ }
+ return $Object
+ }
+}
+
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/autogen-model-cmdlets/New-AzHdInsightOnAksClusterServiceConfigObject.ps1 b/src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/autogen-model-cmdlets/New-AzHdInsightOnAksClusterServiceConfigObject.ps1
new file mode 100644
index 000000000000..078de436d74e
--- /dev/null
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/autogen-model-cmdlets/New-AzHdInsightOnAksClusterServiceConfigObject.ps1
@@ -0,0 +1,53 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Create an in-memory object for ClusterServiceConfig.
+.Description
+Create an in-memory object for ClusterServiceConfig.
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterServiceConfig
+.Link
+https://learn.microsoft.com/powershell/module/Az.HdInsightOnAks/new-azhdinsightonaksclusterserviceconfigobject
+#>
+function New-AzHdInsightOnAksClusterServiceConfigObject {
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterServiceConfig')]
+ [CmdletBinding(PositionalBinding=$false)]
+ Param(
+
+ [Parameter(Mandatory, HelpMessage="Name of the component the config files should apply to.")]
+ [string]
+ $ComponentName,
+ [Parameter(Mandatory, HelpMessage="List of Config Files.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterConfigFile[]]
+ $File
+ )
+
+ process {
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterServiceConfig]::New()
+
+ if ($PSBoundParameters.ContainsKey('ComponentName')) {
+ $Object.ComponentName = $ComponentName
+ }
+ if ($PSBoundParameters.ContainsKey('File')) {
+ $Object.File = $File
+ }
+ return $Object
+ }
+}
+
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/autogen-model-cmdlets/New-AzHdInsightOnAksClusterServiceConfigsProfileObject.ps1 b/src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/autogen-model-cmdlets/New-AzHdInsightOnAksClusterServiceConfigsProfileObject.ps1
new file mode 100644
index 000000000000..c9c592bd4244
--- /dev/null
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/autogen-model-cmdlets/New-AzHdInsightOnAksClusterServiceConfigsProfileObject.ps1
@@ -0,0 +1,53 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Create an in-memory object for ClusterServiceConfigsProfile.
+.Description
+Create an in-memory object for ClusterServiceConfigsProfile.
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterServiceConfigsProfile
+.Link
+https://learn.microsoft.com/powershell/module/Az.HdInsightOnAks/new-azhdinsightonaksclusterserviceconfigsprofileobject
+#>
+function New-AzHdInsightOnAksClusterServiceConfigsProfileObject {
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterServiceConfigsProfile')]
+ [CmdletBinding(PositionalBinding=$false)]
+ Param(
+
+ [Parameter(Mandatory, HelpMessage="List of service configs.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterServiceConfig[]]
+ $Config,
+ [Parameter(Mandatory, HelpMessage="Name of the service the configurations should apply to.")]
+ [string]
+ $ServiceName
+ )
+
+ process {
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterServiceConfigsProfile]::New()
+
+ if ($PSBoundParameters.ContainsKey('Config')) {
+ $Object.Config = $Config
+ }
+ if ($PSBoundParameters.ContainsKey('ServiceName')) {
+ $Object.ServiceName = $ServiceName
+ }
+ return $Object
+ }
+}
+
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/autogen-model-cmdlets/New-AzHdInsightOnAksManagedIdentityObject.ps1 b/src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/autogen-model-cmdlets/New-AzHdInsightOnAksManagedIdentityObject.ps1
new file mode 100644
index 000000000000..86dddcd42825
--- /dev/null
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/autogen-model-cmdlets/New-AzHdInsightOnAksManagedIdentityObject.ps1
@@ -0,0 +1,66 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Create an in-memory object for ManagedIdentitySpec.
+.Description
+Create an in-memory object for ManagedIdentitySpec.
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ManagedIdentitySpec
+.Link
+https://learn.microsoft.com/powershell/module/Az.HdInsightOnAks/new-azhdinsightonaksmanagedidentityobject
+#>
+function New-AzHdInsightOnAksManagedIdentityObject {
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ManagedIdentitySpec')]
+ [CmdletBinding(PositionalBinding=$false)]
+ Param(
+
+ [Parameter(Mandatory, HelpMessage="ClientId of the managed identity.")]
+ [string]
+ $ClientId,
+ [Parameter(Mandatory, HelpMessage="ObjectId of the managed identity.")]
+ [string]
+ $ObjectId,
+ [Parameter(Mandatory, HelpMessage="ResourceId of the managed identity.")]
+ [string]
+ $ResourceId,
+ [Parameter(Mandatory, HelpMessage="The type of managed identity.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.PSArgumentCompleterAttribute("cluster", "user", "internal")]
+ [string]
+ $Type
+ )
+
+ process {
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ManagedIdentitySpec]::New()
+
+ if ($PSBoundParameters.ContainsKey('ClientId')) {
+ $Object.ClientId = $ClientId
+ }
+ if ($PSBoundParameters.ContainsKey('ObjectId')) {
+ $Object.ObjectId = $ObjectId
+ }
+ if ($PSBoundParameters.ContainsKey('ResourceId')) {
+ $Object.ResourceId = $ResourceId
+ }
+ if ($PSBoundParameters.ContainsKey('Type')) {
+ $Object.Type = $Type
+ }
+ return $Object
+ }
+}
+
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/autogen-model-cmdlets/New-AzHdInsightOnAksNodeProfileObject.ps1 b/src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/autogen-model-cmdlets/New-AzHdInsightOnAksNodeProfileObject.ps1
new file mode 100644
index 000000000000..70ceb13ccc23
--- /dev/null
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/autogen-model-cmdlets/New-AzHdInsightOnAksNodeProfileObject.ps1
@@ -0,0 +1,59 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Create an in-memory object for NodeProfile.
+.Description
+Create an in-memory object for NodeProfile.
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.NodeProfile
+.Link
+https://learn.microsoft.com/powershell/module/Az.HdInsightOnAks/new-azhdinsightonaksnodeprofileobject
+#>
+function New-AzHdInsightOnAksNodeProfileObject {
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.NodeProfile')]
+ [CmdletBinding(PositionalBinding=$false)]
+ Param(
+
+ [Parameter(Mandatory, HelpMessage="The number of virtual machines.")]
+ [int]
+ $Count,
+ [Parameter(Mandatory, HelpMessage="The node type.")]
+ [string]
+ $Type,
+ [Parameter(Mandatory, HelpMessage="The virtual machine SKU.")]
+ [string]
+ $VMSize
+ )
+
+ process {
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.NodeProfile]::New()
+
+ if ($PSBoundParameters.ContainsKey('Count')) {
+ $Object.Count = $Count
+ }
+ if ($PSBoundParameters.ContainsKey('Type')) {
+ $Object.Type = $Type
+ }
+ if ($PSBoundParameters.ContainsKey('VMSize')) {
+ $Object.VMSize = $VMSize
+ }
+ return $Object
+ }
+}
+
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/autogen-model-cmdlets/New-AzHdInsightOnAksSecretReferenceObject.ps1 b/src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/autogen-model-cmdlets/New-AzHdInsightOnAksSecretReferenceObject.ps1
new file mode 100644
index 000000000000..69de8ab1b9b0
--- /dev/null
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/autogen-model-cmdlets/New-AzHdInsightOnAksSecretReferenceObject.ps1
@@ -0,0 +1,66 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Create an in-memory object for SecretReference.
+.Description
+Create an in-memory object for SecretReference.
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.SecretReference
+.Link
+https://learn.microsoft.com/powershell/module/Az.HdInsightOnAks/new-azhdinsightonakssecretreferenceobject
+#>
+function New-AzHdInsightOnAksSecretReferenceObject {
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.SecretReference')]
+ [CmdletBinding(PositionalBinding=$false)]
+ Param(
+
+ [Parameter(Mandatory, HelpMessage="Reference name of the secret to be used in service configs.")]
+ [string]
+ $ReferenceName,
+ [Parameter(Mandatory, HelpMessage="Object identifier name of the secret in key vault.")]
+ [string]
+ $SecretName,
+ [Parameter(Mandatory, HelpMessage="Type of key vault object: secret, key or certificate.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.PSArgumentCompleterAttribute("Key", "Secret", "Certificate")]
+ [string]
+ $Type,
+ [Parameter(HelpMessage="Version of the secret in key vault.")]
+ [string]
+ $Version
+ )
+
+ process {
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.SecretReference]::New()
+
+ if ($PSBoundParameters.ContainsKey('ReferenceName')) {
+ $Object.ReferenceName = $ReferenceName
+ }
+ if ($PSBoundParameters.ContainsKey('SecretName')) {
+ $Object.SecretName = $SecretName
+ }
+ if ($PSBoundParameters.ContainsKey('Type')) {
+ $Object.Type = $Type
+ }
+ if ($PSBoundParameters.ContainsKey('Version')) {
+ $Object.Version = $Version
+ }
+ return $Object
+ }
+}
+
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/autogen-model-cmdlets/New-AzHdInsightOnAksTrinoHiveCatalogObject.ps1 b/src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/autogen-model-cmdlets/New-AzHdInsightOnAksTrinoHiveCatalogObject.ps1
new file mode 100644
index 000000000000..b2cc7cafcd25
--- /dev/null
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/autogen-model-cmdlets/New-AzHdInsightOnAksTrinoHiveCatalogObject.ps1
@@ -0,0 +1,78 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Create an in-memory object for HiveCatalogOption.
+.Description
+Create an in-memory object for HiveCatalogOption.
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.HiveCatalogOption
+.Link
+https://learn.microsoft.com/powershell/module/Az.HdInsightOnAks/new-azhdinsightonakstrinohivecatalogobject
+#>
+function New-AzHdInsightOnAksTrinoHiveCatalogObject {
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.HiveCatalogOption')]
+ [CmdletBinding(PositionalBinding=$false)]
+ Param(
+
+ [Parameter(Mandatory, HelpMessage="Name of trino catalog which should use specified hive metastore.")]
+ [string]
+ $CatalogName,
+ [Parameter(HelpMessage="The authentication mode to connect to your Hive metastore database. More details: https://learn.microsoft.com/en-us/azure/azure-sql/database/logins-create-manage?view=azuresql#authentication-and-authorization.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.PSArgumentCompleterAttribute("SqlAuth", "IdentityAuth")]
+ [string]
+ $MetastoreDbConnectionAuthenticationMode,
+ [Parameter(HelpMessage="Secret reference name from secretsProfile.secrets containing password for database connection.")]
+ [string]
+ $MetastoreDbConnectionPasswordSecret,
+ [Parameter(Mandatory, HelpMessage="Connection string for hive metastore database.")]
+ [string]
+ $MetastoreDbConnectionUrl,
+ [Parameter(HelpMessage="User name for database connection.")]
+ [string]
+ $MetastoreDbConnectionUserName,
+ [Parameter(Mandatory, HelpMessage="Metastore root directory URI, format: abfs[s]://@.dfs.core.windows.net/. More details: https://docs.microsoft.com/en-us/azure/storage/blobs/data-lake-storage-introduction-abfs-uri.")]
+ [string]
+ $MetastoreWarehouseDir
+ )
+
+ process {
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.HiveCatalogOption]::New()
+
+ if ($PSBoundParameters.ContainsKey('CatalogName')) {
+ $Object.CatalogName = $CatalogName
+ }
+ if ($PSBoundParameters.ContainsKey('MetastoreDbConnectionAuthenticationMode')) {
+ $Object.MetastoreDbConnectionAuthenticationMode = $MetastoreDbConnectionAuthenticationMode
+ }
+ if ($PSBoundParameters.ContainsKey('MetastoreDbConnectionPasswordSecret')) {
+ $Object.MetastoreDbConnectionPasswordSecret = $MetastoreDbConnectionPasswordSecret
+ }
+ if ($PSBoundParameters.ContainsKey('MetastoreDbConnectionUrl')) {
+ $Object.MetastoreDbConnectionUrl = $MetastoreDbConnectionUrl
+ }
+ if ($PSBoundParameters.ContainsKey('MetastoreDbConnectionUserName')) {
+ $Object.MetastoreDbConnectionUserName = $MetastoreDbConnectionUserName
+ }
+ if ($PSBoundParameters.ContainsKey('MetastoreWarehouseDir')) {
+ $Object.MetastoreWarehouseDir = $MetastoreWarehouseDir
+ }
+ return $Object
+ }
+}
+
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/Get-AzHdInsightOnAksCluster.md b/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/Get-AzHdInsightOnAksCluster.md
index 8256ad27a50d..c3fec6a20720 100644
--- a/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/Get-AzHdInsightOnAksCluster.md
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/Get-AzHdInsightOnAksCluster.md
@@ -1,4 +1,4 @@
-### Example 1: lsit all HDInsight gen2 clusters in a pool.
+### Example 1: lsit all HDInsight clusters in a pool.
```powershell
$clusterResourceGroupName = "your-resourceGroup"
$clusterpoolName = "your-clusterpool"
@@ -24,7 +24,7 @@ CoordinatorDebugEnable :
List all clusters in a pool.
-### Example 2: Get a HDInsight gen2 cluster
+### Example 2: Get a HDInsight cluster
```powershell
$clusterResourceGroupName = "your-resourceGroup"
$clusterpoolName = "your-clusterpool"
@@ -49,4 +49,4 @@ CoordinatorDebugEnable :
...
```
-Get a HDInsight gen2 cluster
\ No newline at end of file
+Get a HDInsight cluster
\ No newline at end of file
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/Get-AzHdInsightOnAksClusterLibrary.md b/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/Get-AzHdInsightOnAksClusterLibrary.md
new file mode 100644
index 000000000000..4d9f1d988f2f
--- /dev/null
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/Get-AzHdInsightOnAksClusterLibrary.md
@@ -0,0 +1,48 @@
+### Example 1: List all custom libraries on the cluster.
+```powershell
+$clusterResourceGroupName = "Group"
+$clusterpoolName = "ps-test-pool"
+$clusterName = "flinkcluster"
+Get-AzHdInsightOnAksClusterLibrary -ResourceGroupName $clusterResourceGroupName -ClusterName $clusterName -ClusterPoolName $clusterpoolName -Category custom
+```
+
+```output
+Id :
+Message :
+Name :
+PropertiesType : pypi
+Property : {
+ "type": "pypi",
+ "remarks": "",
+ "status": "INSTALLING",
+ "name": "pandas"
+ }
+Remark :
+Status : INSTALLING
+SystemDataCreatedAt :
+SystemDataCreatedBy :
+SystemDataCreatedByType :
+SystemDataLastModifiedAt :
+SystemDataLastModifiedBy :
+SystemDataLastModifiedByType :
+Timestamp :
+Type :
+```
+
+List all custom libraries on the cluster.
+
+### Example 2: List all predefined libraries on the cluster.
+```powershell
+$clusterResourceGroupName = "Group"
+$clusterpoolName = "ps-test-pool"
+$clusterName = "flinkcluster"
+Get-AzHdInsightOnAksClusterLibrary -ResourceGroupName $clusterResourceGroupName -ClusterName $clusterName -ClusterPoolName $clusterpoolName -Category preddfine
+```
+
+```output
+Name SystemDataCreatedAt SystemDataCreatedBy SystemDataCreatedByType SystemDataLastModifiedAt SystemDataLastModifiedBy SystemDataLastModifiedByType
+---- ------------------- ------------------- ----------------------- ------------------------ ------------------------ ----------------------------
+```
+
+List all predefined libraries on the cluster.
+
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/Get-AzHdInsightOnAksClusterPool.md b/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/Get-AzHdInsightOnAksClusterPool.md
index fac4c74c07e4..fef396515057 100644
--- a/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/Get-AzHdInsightOnAksClusterPool.md
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/Get-AzHdInsightOnAksClusterPool.md
@@ -1,4 +1,4 @@
-### Example 1: list all HDInsight gen2 cluster pools in current subscription
+### Example 1: list all HDInsight cluster pools in current subscription
```powershell
Get-AzHdInsightOnAksClusterPool
```
@@ -28,9 +28,9 @@ SystemDataCreatedAt :
...
```
-list all HDInsight gen2 cluster pools in current subscription.
+list all HDInsight cluster pools in current subscription.
-### Example 2: list all HDInsight gen2 cluster pools in a resource group
+### Example 2: list all HDInsight cluster pools in a resource group
```powershell
$clusterResourceGroupName = "your-resourceGroup"
Get-AzHdInsightOnAksClusterPool -ResourceGroupName $clusterResourceGroupName
@@ -61,9 +61,9 @@ SystemDataCreatedAt :
...
```
-list all HDInsight gen2 cluster pools in a resource group.
+list all HDInsight cluster pools in a resource group.
-### Example 3: Get a HDInsight gen2 cluster pool in a resource group
+### Example 3: Get a HDInsight cluster pool in a resource group
```powershell
$clusterResourceGroupName = "your-resourceGroup"
$clusterpoolName = "your-clusterpool"
@@ -95,4 +95,4 @@ SystemDataCreatedAt :
...
```
-Get a HDInsight gen2 cluster pool in a resource group.
\ No newline at end of file
+Get a HDInsight cluster pool in a resource group.
\ No newline at end of file
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/Get-AzHdInsightOnAksClusterPoolUpgradeHistory.md b/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/Get-AzHdInsightOnAksClusterPoolUpgradeHistory.md
new file mode 100644
index 000000000000..e0f5f8ca6b20
--- /dev/null
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/Get-AzHdInsightOnAksClusterPoolUpgradeHistory.md
@@ -0,0 +1,29 @@
+### Example 1: Get a list of clusterpool upgrade history.
+```powershell
+$resourceGroupName = "resourceGroupName"
+$clusterPoolName = "clusterPoolName"
+Get-AzHdInsightOnAksClusterPoolUpgradeHistory -ResourceGroupName $resourceGroupName -ClusterPoolName $clusterPoolName
+```
+
+```output
+Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hilotest/providers/Microsoft.HDInsight/clusterpools/hilopool/upgradeHistories/05_21_2024_07_38_10_AM-NodeOsUpgrade
+Name : 05_21_2024_07_38_10_AM-NodeOsUpgrade
+Property : {
+ "upgradeType": "NodeOsUpgrade",
+ "utcTime": "05/21/2024 07:38:10 AM",
+ "upgradeResult": "Succeed",
+ "newNodeOs": "AKSAzureLinux-V2gen2-202405.03.0"
+ }
+SystemDataCreatedAt :
+SystemDataCreatedBy :
+SystemDataCreatedByType :
+SystemDataLastModifiedAt :
+SystemDataLastModifiedBy :
+SystemDataLastModifiedByType :
+Type :
+UpgradeResult : Succeed
+UpgradeType : NodeOsUpgrade
+UtcTime : 05/21/2024 07:38:10 AM
+```
+
+Get the upgrade history of a cluster pool.
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/Get-AzHdInsightOnAksClusterUpgradeHistory.md b/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/Get-AzHdInsightOnAksClusterUpgradeHistory.md
new file mode 100644
index 000000000000..f1ffa0ca1e18
--- /dev/null
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/Get-AzHdInsightOnAksClusterUpgradeHistory.md
@@ -0,0 +1,16 @@
+### Example 1: Get a list of cluster upgrade history.
+```powershell
+$resourceGroupName = "resourceGroupName"
+$clusterPoolName = "clusterPoolName"
+$clusterName = "clusterName"
+Get-AzHdInsightOnAksClusterUpgradeHistory -ResourceGroupName $resourceGroupName -ClusterPoolName $clusterPoolName -ClusterName $clusterName
+```
+
+```output
+Name SystemDataCreatedAt SystemDataCreatedBy SystemDataCreatedByType SystemDataLastModifiedAt SystemDataLastModifiedBy SystemDataLastModifiedByType
+---- ------------------- ------------------- ----------------------- ------------------------ ------------------------ ----------------------------
+05_11_2024_06_41_26_AM-AKSPatchUpgrade
+05_08_2024_08_48_28_AM-AKSPatchUpgrade
+```
+
+Get a list of cluster upgrade history.
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/Invoke-AzHdInsightOnAksClusterManualRollback.md b/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/Invoke-AzHdInsightOnAksClusterManualRollback.md
new file mode 100644
index 000000000000..166ce4478edb
--- /dev/null
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/Invoke-AzHdInsightOnAksClusterManualRollback.md
@@ -0,0 +1,9 @@
+### Example 1: Roll back the upgrade of a cluster
+```powershell
+$clusterResourceGroupName = "Group"
+$clusterpoolName = "ps-test-pool"
+$clusterName = "cluster"
+Invoke-AzHdInsightOnAksClusterManualRollback -ResourceGroupName $clusterResourceGroupName -ClusterName $clusterName -ClusterPoolName $clusterpoolName -UpgradeHistory /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/devrp/providers/Microsoft.HDInsight/clusterpools/pool/clusters/cluster202458152055/upgradeHistories/05_11_2024_06_41_26_AM-AKSPatchUpgrade
+```
+
+Roll back the upgrade of a cluster
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/Update-AzHdInsightOnAksClusterPool.md b/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/Invoke-AzHdInsightOnAksClusterPoolUpgrade.md
similarity index 91%
rename from src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/Update-AzHdInsightOnAksClusterPool.md
rename to src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/Invoke-AzHdInsightOnAksClusterPoolUpgrade.md
index c8c0f42d7e3a..630fd98e61f4 100644
--- a/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/Update-AzHdInsightOnAksClusterPool.md
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/Invoke-AzHdInsightOnAksClusterPoolUpgrade.md
@@ -2,7 +2,7 @@
```powershell
$clusterResourceGroupName = "Group"
$clusterpoolName = "your-clusterpool"
-Update-AzHdInsightOnAksClusterPool -ResourceGroupName $clusterResourceGroupName -ClusterPoolName $clusterpoolName -UpgradeType NodeOsUpgrade
+Invoke-AzHdInsightOnAksClusterPoolUpgrade -ResourceGroupName $clusterResourceGroupName -ClusterPoolName $clusterpoolName -UpgradeType NodeOsUpgrade
```
```output
@@ -46,8 +46,8 @@ Upgrade a cluster pool and upgrade type is NodeOsUpgrade.
```powershell
$clusterResourceGroupName = "Group"
$clusterpoolName = "your-clusterpool"
-$upgradeObj = New-AzHdInsightOnAksClusterPoolAKSUpgradeObject -TargetAksVersion "1.27.9" -UpgradeClusterPool $true
-Update-AzHdInsightOnAksClusterPool -ResourceGroupName $clusterResourceGroupName -ClusterPoolName $clusterpoolName -ClusterPoolUpgradeRequest $upgradeObj
+$upgradeObj = New-AzHdInsightOnAksClusterPoolAksPatchVersionUpgradeObject -TargetAksVersion "1.27.9" -UpgradeClusterPool $true
+Invoke-AzHdInsightOnAksClusterPoolUpgrade -ResourceGroupName $clusterResourceGroupName -ClusterPoolName $clusterpoolName -ClusterPoolUpgradeRequest $upgradeObj
```
```output
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/Invoke-AzHdInsightOnAksClusterUpgrade.md b/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/Invoke-AzHdInsightOnAksClusterUpgrade.md
new file mode 100644
index 000000000000..96709d812d14
--- /dev/null
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/Invoke-AzHdInsightOnAksClusterUpgrade.md
@@ -0,0 +1,39 @@
+### Example 1: Upgrade a cluster.
+```powershell
+$clusterResourceGroupName = "Group"
+$clusterpoolName = "ps-test-pool"
+$clusterName = "flinkcluster"
+$hotfixObj = New-AzHdInsightOnAksClusterHotfixUpgradeObject -ComponentName Webssh -TargetBuildNumber 7 -TargetClusterVersion "1.1.1" -TargetOssVersion "0.4.2"
+Invoke-AzHdInsightOnAksClusterUpgrade -ResourceGroupName $clusterResourceGroupName -ClusterName $clusterName -ClusterPoolName $clusterpoolName -ClusterUpgradeRequest $hotfixObj
+```
+
+```output
+AccessProfileEnableInternalIngress : False
+AccessProfilePrivateLinkServiceId :
+ApplicationLogStdErrorEnabled :
+ApplicationLogStdOutEnabled :
+AuthorizationProfileGroupId :
+AuthorizationProfileUserId :
+AutoscaleProfileAutoscaleType :
+AutoscaleProfileEnabled : False
+AutoscaleProfileGracefulDecommissionTimeout :
+ClusterType :
+ComputeProfileNode :
+ConnectivityEndpointBootstrapServerEndpoint :
+ConnectivityEndpointBrokerEndpoint :
+ConnectivityProfileSsh :
+CoordinatorDebugEnable :
+CoordinatorDebugPort :
+CoordinatorDebugSuspend :
+CoordinatorHighAvailabilityEnabled :
+DatabaseHost :
+DatabaseName :
+DatabasePasswordSecretRef :
+DatabaseUsername :
+DeploymentId :
+DiskStorageDataDiskSize : 0
+...
+```
+
+Upgrade a cluster with type HotFix.
+
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/Invoke-AzHdInsightOnAksManageClusterLibrary.md b/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/Invoke-AzHdInsightOnAksManageClusterLibrary.md
new file mode 100644
index 000000000000..bf32c43b4339
--- /dev/null
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/Invoke-AzHdInsightOnAksManageClusterLibrary.md
@@ -0,0 +1,28 @@
+### Example 1: Install maven library to cluster.
+```powershell
+$libObj=New-AzHdInsightOnAksClusterMavenLibraryObject -GroupId "com.azure.resourcemanager" -Name "azure-resourcemanager-hdinsight-containers" -Version "1.0.0-beta.2" -Remark "Maven lib"
+Invoke-AzHdInsightOnAksManageClusterLibrary -ResourceGroupName hilocli-test -ClusterPoolName hilopoolwus3 -ClusterName cluster2024521155147 -Action Install -Library $libObj -AsJob
+```
+
+```output
+Id Name PSJobTypeName State HasMoreData Location Command
+-- ---- ------------- ----- ----------- -------- -------
+1 Invoke-AzHdIns… Running True localhost Invoke-AzHdInsightOnAksM…
+```
+
+Install azure-resourcemanager-hdinsight-containers library to the cluster.
+
+### Example 2: Uninstall pypi library to cluster.
+```powershell
+$libObj=New-AzHdInsightOnAksClusterPyPiLibraryObject -Name pandas -Version 2.2.2
+Invoke-AzHdInsightOnAksManageClusterLibrary -ResourceGroupName hilocli-test -ClusterPoolName hilopoolwus3 -ClusterName cluster2024521155147 -Action Uninstall -Library $libObj -AsJob
+```
+
+```output
+Id Name PSJobTypeName State HasMoreData Location Command
+-- ---- ------------- ----- ----------- -------- -------
+1 Invoke-AzHdIns… Running True localhost Invoke-AzHdInsightOnAksM…
+```
+
+Uninstall the pandas library on the cluster.
+
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/New-AzHdInsightOnAksClusterMavenLibraryObject.md b/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/New-AzHdInsightOnAksClusterMavenLibraryObject.md
new file mode 100644
index 000000000000..a409f119f7d6
--- /dev/null
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/New-AzHdInsightOnAksClusterMavenLibraryObject.md
@@ -0,0 +1,20 @@
+### Example 1: Create a library object for maven.
+```powershell
+New-AzHdInsightOnAksClusterMavenLibraryObject -GroupId "com.azure.resourcemanager" -Name "azure-resourcemanager-hdinsight-containers" -Version "1.0.0-beta.2" -Remark "Maven lib"
+```
+
+```output
+Name :
+PropertiesType : maven
+Property : {
+ "type": "maven",
+ "remarks": "Maven lib",
+ "groupId": "com.azure.resourcemanager",
+ "name": "azure-resourcemanager-hdinsight-containers",
+ "version": "1.0.0-beta.2"
+ }
+Remark : Maven lib
+```
+
+Create a library object for maven.
+
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/New-AzHdInsightOnAksClusterPool.md b/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/New-AzHdInsightOnAksClusterPool.md
index 5927c272c7be..786be7044c46 100644
--- a/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/New-AzHdInsightOnAksClusterPool.md
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/New-AzHdInsightOnAksClusterPool.md
@@ -1,4 +1,4 @@
-### Example 1: Create an Azure HDInsight gen2 cluster pool
+### Example 1: Create an Azure HDInsight cluster pool
```powershell
# Cluster pool configuration info
$location = "West US 3"
@@ -41,7 +41,7 @@ SystemDataCreatedAt :
This command creates a cluster pool in the current subscription.
-### Example 2: Create an Azure HDInsight gen2 cluster pool enabled log analytics workspace
+### Example 2: Create an Azure HDInsight cluster pool enabled log analytics workspace
```powershell
# Cluster configuration info
$location = "East US 2"
@@ -87,4 +87,4 @@ SystemDataCreatedAt :
...
```
-Create an Azure HDInsight gen2 cluster pool enabled azure monitor with log analytics workspace.
+Create an Azure HDInsight cluster pool enabled azure monitor with log analytics workspace.
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/New-AzHdInsightOnAksClusterPoolAKSUpgradeObject.md b/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/New-AzHdInsightOnAksClusterPoolAksPatchVersionUpgradeObject.md
similarity index 85%
rename from src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/New-AzHdInsightOnAksClusterPoolAKSUpgradeObject.md
rename to src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/New-AzHdInsightOnAksClusterPoolAksPatchVersionUpgradeObject.md
index 4883d91975fc..9983e3c0dc05 100644
--- a/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/New-AzHdInsightOnAksClusterPoolAKSUpgradeObject.md
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/New-AzHdInsightOnAksClusterPoolAksPatchVersionUpgradeObject.md
@@ -1,6 +1,6 @@
### Example 1: Create an object to hold the cluster pool upgrade parameters.
```powershell
-New-AzHdInsightOnAksClusterPoolAKSUpgradeObject -TargetAksVersion "1.27.9" -UpgradeClusterPool $true
+New-AzHdInsightOnAksClusterPoolAksPatchVersionUpgradeObject -TargetAksVersion "1.27.9" -UpgradeClusterPool $true
```
```output
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/New-AzHdInsightOnAksClusterPyPiLibraryObject.md b/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/New-AzHdInsightOnAksClusterPyPiLibraryObject.md
new file mode 100644
index 000000000000..4f949986ab97
--- /dev/null
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/New-AzHdInsightOnAksClusterPyPiLibraryObject.md
@@ -0,0 +1,17 @@
+### Example 1: Create a library object for pypi.
+```powershell
+New-AzHdInsightOnAksClusterPyPiLibraryObject -Name pandas -Version 2.2.2 -Remark "Pandas Lib."
+```
+
+```output
+PropertiesType : pypi
+Property : {
+ "type": "pypi",
+ "remarks": "test add pandas",
+ "name": "pandas",
+ "version": "2.2.2"
+ }
+Remark : test add pandas
+```
+
+Create a library object for pypi.
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/New-AzHdInsightOnAksClusterServiceConfigObject.md b/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/New-AzHdInsightOnAksClusterServiceConfigObject.md
index 5572dbb363ec..b9ef86e7fb40 100644
--- a/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/New-AzHdInsightOnAksClusterServiceConfigObject.md
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/New-AzHdInsightOnAksClusterServiceConfigObject.md
@@ -1,7 +1,13 @@
### Example 1: Create a component config.
```powershell
$coreSiteConfigFile=New-AzHdInsightOnAksClusterConfigFileObject -FileName "core-site.xml" -Value @{"fs.defaultFS"="abfs://testcontainer@$teststorage.dfs.core.windows.net"}
-$yarnComponentConfig= New-AzHdInsightOnAksClusterServiceConfigObject -ComponentName "yarn-config" -File $coreSiteConfigFile
+New-AzHdInsightOnAksClusterServiceConfigObject -ComponentName "yarn-config" -File $coreSiteConfigFile
+```
+
+```output
+Component File
+--------- ----
+yarn-config {{…
```
This cmdlet create the component config of "yarn-config" based the existing config file $coreSiteConfigFile.
\ No newline at end of file
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/New-AzHdInsightOnAksClusterServiceConfigsProfileObject.md b/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/New-AzHdInsightOnAksClusterServiceConfigsProfileObject.md
index 507c3e4b3931..97ce582247fd 100644
--- a/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/New-AzHdInsightOnAksClusterServiceConfigsProfileObject.md
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/New-AzHdInsightOnAksClusterServiceConfigsProfileObject.md
@@ -5,4 +5,4 @@ $yarnComponentConfig= New-AzHdInsightOnAksClusterServiceConfigObject -ComponentN
$yarnServiceConfigProfile=New-AzHdInsightOnAksClusterServiceConfigsProfileObject -ServiceName "yarn-service" -Config $yarnComponentConfig
`````
-This cmdlet creates the service config profile of "yarn-service" with the component service config.
\ No newline at end of file
+This cmdlet creates the service config profile of "yarn-service" with the ComponentName service config.
\ No newline at end of file
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/New-AzHdInsightOnAksManagedIdentityObject.md b/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/New-AzHdInsightOnAksManagedIdentityObject.md
new file mode 100644
index 000000000000..cec5405a735a
--- /dev/null
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/New-AzHdInsightOnAksManagedIdentityObject.md
@@ -0,0 +1,13 @@
+### Example 1: Create a Managed Identity object
+```powershell
+New-AzHdInsightOnAksManagedIdentityObject -ClientId 00000000-0000-0000-0000-000000000000 -ObjectId 00000000-0000-0000-0000-000000000000 -ResourceId /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Group/providers/Microsoft.ManagedIdentity/userAssignedIdentities/msi -Type cluster
+```
+
+```output
+ClientId ObjectId ResourceId Type
+-------- -------- ---------- ----
+00000000-0000-0000-0000-000000000000 00000000-0000-0000-0000-000000000000 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Group/providers/Microsoft.ManagedIdentity/userAssignedIdentities/msi cluster
+```
+
+Create a Managed Identity object
+
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/New-AzHdInsightOnAksSecretReferenceObject.md b/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/New-AzHdInsightOnAksSecretReferenceObject.md
index 6287105118d0..dcc97dfb5dea 100644
--- a/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/New-AzHdInsightOnAksSecretReferenceObject.md
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/New-AzHdInsightOnAksSecretReferenceObject.md
@@ -4,11 +4,11 @@ $keyVaultResourceId="/subscriptions/00000000-0000-0000-0000-000000000000/resourc
$secretName="{your secret name}"
$referenceName="{your secret reference name}";
-$secretReference=New-AzHdInsightOnAksSecretReferenceObject -SecretName $secretName -ReferenceName $referenceName
+$secretReference=New-AzHdInsightOnAksSecretReferenceObject -SecretName $secretName -ReferenceName $referenceName -Type Secret
```
```output
-KeyVaultObjectName ReferenceName Type Version
+SecretName ReferenceName Type Version
------------------ ------------- ---- -------
{your secret name} {your secret reference name} Secret
```
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/New-AzHdInsightOnAksTrinoHiveCatalogObject.md b/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/New-AzHdInsightOnAksTrinoHiveCatalogObject.md
index 6979ab80187a..f70cd6bc1d24 100644
--- a/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/New-AzHdInsightOnAksTrinoHiveCatalogObject.md
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/New-AzHdInsightOnAksTrinoHiveCatalogObject.md
@@ -6,13 +6,16 @@ $metastoreDbUserName="{your db user name}"
$metastoreDbPasswordSecret="{secretName}"
$metastoreWarehouseDir="abfs://{your container name}@{your adls gen2 endpoint}/{your path}"
-New-AzHdInsightOnAksTrinoHiveCatalogObject -CatalogName $catalogName -MetastoreDbConnectionUrl $metastoreDbConnectionURL -MetastoreDbConnectionUserName $metastoreDbUserName -MetastoreDbConnectionPasswordSecret $metastoreDbPasswordSecret
+New-AzHdInsightOnAksTrinoHiveCatalogObject -CatalogName $catalogName -MetastoreDbConnectionUrl $metastoreDbConnectionURL -MetastoreDbConnectionUserName $metastoreDbUserName -MetastoreDbConnectionPasswordSecret $metastoreDbPasswordSecret -MetastoreWarehouseDir $metastoreWarehouseDir
```
```output
-CatalogName MetastoreDbConnectionPasswordSecret MetastoreDbConnectionUrl
------------ ----------------------------------- ------------------------
-{your catalog name} {secretName} jdbc:sqlserver://{your sql server url};database={your db name};encrypt=truet…
+CatalogName : {your catalog name}
+MetastoreDbConnectionAuthenticationMode :
+MetastoreDbConnectionPasswordSecret : {secretName}
+MetastoreDbConnectionUrl : jdbc:sqlserver://{your sql server url};database={your db name};encrypt=truetrustServerCertificate=true;loginTimeout=30;
+MetastoreDbConnectionUserName : {your db user name}
+MetastoreWarehouseDir : abfs://{your container name}@{your adls gen2 endpoint}/{your path}
```
Create a hive catalog configured as a Trino cluster.
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/Remove-AzHdInsightOnAksCluster.md b/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/Remove-AzHdInsightOnAksCluster.md
index 06b5b7370a06..1c42b57dbcaf 100644
--- a/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/Remove-AzHdInsightOnAksCluster.md
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/Remove-AzHdInsightOnAksCluster.md
@@ -1,4 +1,4 @@
-### Example 1: Remove an Azure HDInsight gen2 cluster
+### Example 1: Remove an Azure HDInsight cluster
```powershell
$clusterResourceGroupName = "Group"
$clusterpoolName = "your-clusterpool"
@@ -13,4 +13,4 @@ Remove-AzHdInsightOnAksCluster `
```
-Remove an Azure HDInsight gen2 cluster.
+Remove an Azure HDInsight cluster.
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/Remove-AzHdInsightOnAksClusterPool.md b/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/Remove-AzHdInsightOnAksClusterPool.md
index 2dd5a2aabebf..147010e0caf8 100644
--- a/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/Remove-AzHdInsightOnAksClusterPool.md
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/Remove-AzHdInsightOnAksClusterPool.md
@@ -1,8 +1,8 @@
-### Example 1: Remove an Azure HDInsight gen2 cluster pool
+### Example 1: Remove an Azure HDInsight cluster pool
```powershell
$clusterResourceGroupName = "Group"
$clusterpoolName = "your-clusterpool"
Remove-AzHdInsightOnAksClusterPool -Name $clusterpoolName -ResourceGroupName $clusterResourceGroupName
```
-Remove an Azure HDInsight gen2 cluster pool.
+Remove an Azure HDInsight cluster pool.
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/Set-AzHdInsightOnAksClusterPool.md b/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/Set-AzHdInsightOnAksClusterPool.md
index d269c64d2d45..de0b0533d397 100644
--- a/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/Set-AzHdInsightOnAksClusterPool.md
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/Set-AzHdInsightOnAksClusterPool.md
@@ -1,4 +1,4 @@
-### Example 1: Update an Azure HDInsight gen2 cluster pool.
+### Example 1: Update an Azure HDInsight cluster pool.
```powershell
# Cluster configuration info
$location = "East US 2"
@@ -46,4 +46,4 @@ Tag : Microsoft.Azure.PowerShell.Cmdl
Type : microsoft.hdinsight/clusterpools
```
-Update an Azure HDInsight gen2 cluster pool enableLogAnalytics.
+Update an Azure HDInsight cluster pool enableLogAnalytics.
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/Test-AzHdInsightOnAksLocationNameAvailability.md b/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/Test-AzHdInsightOnAksLocationNameAvailability.md
index b6049a6d5dff..1a885db59701 100644
--- a/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/Test-AzHdInsightOnAksLocationNameAvailability.md
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/Test-AzHdInsightOnAksLocationNameAvailability.md
@@ -1,7 +1,7 @@
### Example 1: Check the availability of the cluster pool name.
```powershell
$location="west us 2"
-$name="testname"
+$name="pool/testname"
Test-AzHdInsightOnAksLocationNameAvailability -Location $location -Name $name -Type Microsoft.HDInsight/clusterPools/clusters
```
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/Update-AzHdInsightOnAksCluster.md b/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/Update-AzHdInsightOnAksCluster.md
index 69c31114cc9d..c12b3a185c12 100644
--- a/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/Update-AzHdInsightOnAksCluster.md
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/Update-AzHdInsightOnAksCluster.md
@@ -28,41 +28,3 @@ CoordinatorDebugEnable :
Add a key-value `"testvalue1"="111"` to the cluster config file `core-site.xml`.
-### Example 2: Upgrade a cluster.
-```powershell
-$clusterResourceGroupName = "Group"
-$clusterpoolName = "ps-test-pool"
-$clusterName = "flinkcluster"
-$hotfixObj = New-AzHdInsightOnAksClusterHotfixUpgradeObject -ComponentName Webssh -TargetBuildNumber 7 -TargetClusterVersion "1.1.1" -TargetOssVersion "0.4.2"
-Update-AzHdInsightOnAksCluster -ResourceGroupName $clusterResourceGroupName -ClusterName $clusterName -ClusterPoolName $clusterpoolName -ClusterUpgradeRequest $hotfixObj
-```
-
-```output
-AccessProfileEnableInternalIngress : False
-AccessProfilePrivateLinkServiceId :
-ApplicationLogStdErrorEnabled :
-ApplicationLogStdOutEnabled :
-AuthorizationProfileGroupId :
-AuthorizationProfileUserId :
-AutoscaleProfileAutoscaleType :
-AutoscaleProfileEnabled : False
-AutoscaleProfileGracefulDecommissionTimeout :
-ClusterType :
-ComputeProfileNode :
-ConnectivityEndpointBootstrapServerEndpoint :
-ConnectivityEndpointBrokerEndpoint :
-ConnectivityProfileSsh :
-CoordinatorDebugEnable :
-CoordinatorDebugPort :
-CoordinatorDebugSuspend :
-CoordinatorHighAvailabilityEnabled :
-DatabaseHost :
-DatabaseName :
-DatabasePasswordSecretRef :
-DatabaseUsername :
-DeploymentId :
-DiskStorageDataDiskSize : 0
-...
-```
-
-Upgrade a cluster with type HotFix.
\ No newline at end of file
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/Get-AzHdInsightOnAksClusterLibrary.ps1 b/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/Get-AzHdInsightOnAksClusterLibrary.ps1
new file mode 100644
index 000000000000..13b9b59e83b3
--- /dev/null
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/Get-AzHdInsightOnAksClusterLibrary.ps1
@@ -0,0 +1,211 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Get all libraries of HDInsight on AKS cluster.
+.Description
+Get all libraries of HDInsight on AKS cluster.
+.Example
+$clusterResourceGroupName = "Group"
+$clusterpoolName = "ps-test-pool"
+$clusterName = "flinkcluster"
+Get-AzHdInsightOnAksClusterLibrary -ResourceGroupName $clusterResourceGroupName -ClusterName $clusterName -ClusterPoolName $clusterpoolName -Category custom
+.Example
+$clusterResourceGroupName = "Group"
+$clusterpoolName = "ps-test-pool"
+$clusterName = "flinkcluster"
+Get-AzHdInsightOnAksClusterLibrary -ResourceGroupName $clusterResourceGroupName -ClusterName $clusterName -ClusterPoolName $clusterpoolName -Category preddfine
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterLibrary
+.Link
+https://learn.microsoft.com/powershell/module/az.hdinsightonaks/get-azhdinsightonaksclusterlibrary
+#>
+function Get-AzHdInsightOnAksClusterLibrary {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterLibrary])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+param(
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Path')]
+ [System.String]
+ # The name of the HDInsight cluster.
+ ${ClusterName},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Path')]
+ [System.String]
+ # The name of the cluster pool.
+ ${ClusterPoolName},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The ID of the target subscription.
+ # The value must be an UUID.
+ ${SubscriptionId},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.PSArgumentCompleterAttribute("custom", "predefined")]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Query')]
+ [System.String]
+ # The system query option to filter libraries returned in the response.
+ # Allowed value is 'custom' or 'predefined'.
+ ${Category},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ List = 'Az.HdInsightOnAks.private\Get-AzHdInsightOnAksClusterLibrary_List';
+ }
+ if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/Get-AzHdInsightOnAksClusterPoolUpgradeHistory.ps1 b/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/Get-AzHdInsightOnAksClusterPoolUpgradeHistory.ps1
new file mode 100644
index 000000000000..ac5b05d5debf
--- /dev/null
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/Get-AzHdInsightOnAksClusterPoolUpgradeHistory.ps1
@@ -0,0 +1,191 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Returns a list of upgrade history.
+.Description
+Returns a list of upgrade history.
+.Example
+$resourceGroupName = "resourceGroupName"
+$clusterPoolName = "clusterPoolName"
+Get-AzHdInsightOnAksClusterPoolUpgradeHistory -ResourceGroupName $resourceGroupName -ClusterPoolName $clusterPoolName
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterPoolUpgradeHistory
+.Link
+https://learn.microsoft.com/powershell/module/az.hdinsightonaks/get-azhdinsightonaksclusterpoolupgradehistory
+#>
+function Get-AzHdInsightOnAksClusterPoolUpgradeHistory {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterPoolUpgradeHistory])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+param(
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Path')]
+ [System.String]
+ # The name of the cluster pool.
+ ${ClusterPoolName},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The ID of the target subscription.
+ # The value must be an UUID.
+ ${SubscriptionId},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ List = 'Az.HdInsightOnAks.private\Get-AzHdInsightOnAksClusterPoolUpgradeHistory_List';
+ }
+ if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/Get-AzHdInsightOnAksClusterUpgradeHistory.ps1 b/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/Get-AzHdInsightOnAksClusterUpgradeHistory.ps1
new file mode 100644
index 000000000000..6429cfe8e5b9
--- /dev/null
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/Get-AzHdInsightOnAksClusterUpgradeHistory.ps1
@@ -0,0 +1,198 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Returns a list of upgrade history.
+.Description
+Returns a list of upgrade history.
+.Example
+$resourceGroupName = "resourceGroupName"
+$clusterPoolName = "clusterPoolName"
+$clusterName = "clusterName"
+Get-AzHdInsightOnAksClusterUpgradeHistory -ResourceGroupName $resourceGroupName -ClusterPoolName $clusterPoolName -ClusterName $clusterName
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterUpgradeHistory
+.Link
+https://learn.microsoft.com/powershell/module/az.hdinsightonaks/get-azhdinsightonaksclusterupgradehistory
+#>
+function Get-AzHdInsightOnAksClusterUpgradeHistory {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterUpgradeHistory])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+param(
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Path')]
+ [System.String]
+ # The name of the HDInsight cluster.
+ ${ClusterName},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Path')]
+ [System.String]
+ # The name of the cluster pool.
+ ${ClusterPoolName},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The ID of the target subscription.
+ # The value must be an UUID.
+ ${SubscriptionId},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ List = 'Az.HdInsightOnAks.private\Get-AzHdInsightOnAksClusterUpgradeHistory_List';
+ }
+ if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/Invoke-AzHdInsightOnAksClusterManualRollback.ps1 b/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/Invoke-AzHdInsightOnAksClusterManualRollback.ps1
new file mode 100644
index 000000000000..e55e96715062
--- /dev/null
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/Invoke-AzHdInsightOnAksClusterManualRollback.ps1
@@ -0,0 +1,300 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Manual rollback upgrade for a cluster.
+.Description
+Manual rollback upgrade for a cluster.
+.Example
+$clusterResourceGroupName = "Group"
+$clusterpoolName = "ps-test-pool"
+$clusterName = "cluster"
+Invoke-AzHdInsightOnAksClusterManualRollback -ResourceGroupName $clusterResourceGroupName -ClusterName $clusterName -ClusterPoolName $clusterpoolName -UpgradeHistory /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/devrp/providers/Microsoft.HDInsight/clusterpools/pool/clusters/cluster202458152055/upgradeHistories/05_11_2024_06_41_26_AM-AKSPatchUpgrade
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterUpgradeRollback
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IHdInsightOnAksIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ICluster
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+CLUSTERPOOLINPUTOBJECT : Identity Parameter
+ [ClusterName ]: The name of the HDInsight cluster.
+ [ClusterPoolName ]: The name of the cluster pool.
+ [Id ]: Resource identity path
+ [Location ]: The name of the Azure region.
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
+
+CLUSTERROLLBACKUPGRADEREQUEST : Cluster Upgrade.
+ UpgradeHistory : A specific upgrade history to rollback
+
+INPUTOBJECT : Identity Parameter
+ [ClusterName ]: The name of the HDInsight cluster.
+ [ClusterPoolName ]: The name of the cluster pool.
+ [Id ]: Resource identity path
+ [Location ]: The name of the Azure region.
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
+.Link
+https://learn.microsoft.com/powershell/module/az.hdinsightonaks/invoke-azhdinsightonaksclustermanualrollback
+#>
+function Invoke-AzHdInsightOnAksClusterManualRollback {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ICluster])]
+[CmdletBinding(DefaultParameterSetName='UpgradeExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(ParameterSetName='Upgrade', Mandatory)]
+ [Parameter(ParameterSetName='UpgradeExpanded', Mandatory)]
+ [Parameter(ParameterSetName='UpgradeViaIdentityClusterpool', Mandatory)]
+ [Parameter(ParameterSetName='UpgradeViaIdentityClusterpoolExpanded', Mandatory)]
+ [Parameter(ParameterSetName='UpgradeViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='UpgradeViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Path')]
+ [System.String]
+ # The name of the HDInsight cluster.
+ ${ClusterName},
+
+ [Parameter(ParameterSetName='Upgrade', Mandatory)]
+ [Parameter(ParameterSetName='UpgradeExpanded', Mandatory)]
+ [Parameter(ParameterSetName='UpgradeViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='UpgradeViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Path')]
+ [System.String]
+ # The name of the cluster pool.
+ ${ClusterPoolName},
+
+ [Parameter(ParameterSetName='Upgrade', Mandatory)]
+ [Parameter(ParameterSetName='UpgradeExpanded', Mandatory)]
+ [Parameter(ParameterSetName='UpgradeViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='UpgradeViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='Upgrade')]
+ [Parameter(ParameterSetName='UpgradeExpanded')]
+ [Parameter(ParameterSetName='UpgradeViaJsonFilePath')]
+ [Parameter(ParameterSetName='UpgradeViaJsonString')]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # The ID of the target subscription.
+ # The value must be an UUID.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='UpgradeViaIdentity', Mandatory, ValueFromPipeline)]
+ [Parameter(ParameterSetName='UpgradeViaIdentityExpanded', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IHdInsightOnAksIdentity]
+ # Identity Parameter
+ ${InputObject},
+
+ [Parameter(ParameterSetName='UpgradeViaIdentityClusterpool', Mandatory, ValueFromPipeline)]
+ [Parameter(ParameterSetName='UpgradeViaIdentityClusterpoolExpanded', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IHdInsightOnAksIdentity]
+ # Identity Parameter
+ ${ClusterpoolInputObject},
+
+ [Parameter(ParameterSetName='Upgrade', Mandatory, ValueFromPipeline)]
+ [Parameter(ParameterSetName='UpgradeViaIdentity', Mandatory, ValueFromPipeline)]
+ [Parameter(ParameterSetName='UpgradeViaIdentityClusterpool', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterUpgradeRollback]
+ # Cluster Upgrade.
+ ${ClusterRollbackUpgradeRequest},
+
+ [Parameter(ParameterSetName='UpgradeExpanded', Mandatory)]
+ [Parameter(ParameterSetName='UpgradeViaIdentityClusterpoolExpanded', Mandatory)]
+ [Parameter(ParameterSetName='UpgradeViaIdentityExpanded', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Body')]
+ [System.String]
+ # A specific upgrade history to rollback
+ ${UpgradeHistory},
+
+ [Parameter(ParameterSetName='UpgradeViaJsonFilePath', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Body')]
+ [System.String]
+ # Path of Json file supplied to the Upgrade operation
+ ${JsonFilePath},
+
+ [Parameter(ParameterSetName='UpgradeViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Body')]
+ [System.String]
+ # Json string supplied to the Upgrade operation
+ ${JsonString},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ Upgrade = 'Az.HdInsightOnAks.private\Invoke-AzHdInsightOnAksClusterManualRollback_Upgrade';
+ UpgradeExpanded = 'Az.HdInsightOnAks.private\Invoke-AzHdInsightOnAksClusterManualRollback_UpgradeExpanded';
+ UpgradeViaIdentity = 'Az.HdInsightOnAks.private\Invoke-AzHdInsightOnAksClusterManualRollback_UpgradeViaIdentity';
+ UpgradeViaIdentityClusterpool = 'Az.HdInsightOnAks.private\Invoke-AzHdInsightOnAksClusterManualRollback_UpgradeViaIdentityClusterpool';
+ UpgradeViaIdentityClusterpoolExpanded = 'Az.HdInsightOnAks.private\Invoke-AzHdInsightOnAksClusterManualRollback_UpgradeViaIdentityClusterpoolExpanded';
+ UpgradeViaIdentityExpanded = 'Az.HdInsightOnAks.private\Invoke-AzHdInsightOnAksClusterManualRollback_UpgradeViaIdentityExpanded';
+ UpgradeViaJsonFilePath = 'Az.HdInsightOnAks.private\Invoke-AzHdInsightOnAksClusterManualRollback_UpgradeViaJsonFilePath';
+ UpgradeViaJsonString = 'Az.HdInsightOnAks.private\Invoke-AzHdInsightOnAksClusterManualRollback_UpgradeViaJsonString';
+ }
+ if (('Upgrade', 'UpgradeExpanded', 'UpgradeViaJsonFilePath', 'UpgradeViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/Update-AzHdInsightOnAksClusterPool.ps1 b/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/Invoke-AzHdInsightOnAksClusterPoolUpgrade.ps1
similarity index 91%
rename from src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/Update-AzHdInsightOnAksClusterPool.ps1
rename to src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/Invoke-AzHdInsightOnAksClusterPoolUpgrade.ps1
index 0077931662bb..fceac9bb4032 100644
--- a/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/Update-AzHdInsightOnAksClusterPool.ps1
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/Invoke-AzHdInsightOnAksClusterPoolUpgrade.ps1
@@ -22,12 +22,12 @@ Upgrade a cluster pool.
.Example
$clusterResourceGroupName = "Group"
$clusterpoolName = "your-clusterpool"
-Update-AzHdInsightOnAksClusterPool -ResourceGroupName $clusterResourceGroupName -ClusterPoolName $clusterpoolName -UpgradeType NodeOsUpgrade
+Invoke-AzHdInsightOnAksClusterPoolUpgrade -ResourceGroupName $clusterResourceGroupName -ClusterPoolName $clusterpoolName -UpgradeType NodeOsUpgrade
.Example
$clusterResourceGroupName = "Group"
$clusterpoolName = "your-clusterpool"
-$upgradeObj = New-AzHdInsightOnAksClusterPoolAKSUpgradeObject -TargetAksVersion "1.27.9" -UpgradeClusterPool $true
-Update-AzHdInsightOnAksClusterPool -ResourceGroupName $clusterResourceGroupName -ClusterPoolName $clusterpoolName -ClusterPoolUpgradeRequest $upgradeObj
+$upgradeObj = New-AzHdInsightOnAksClusterPoolAksPatchVersionUpgradeObject -TargetAksVersion "1.27.9" -UpgradeClusterPool $true
+Invoke-AzHdInsightOnAksClusterPoolUpgrade -ResourceGroupName $clusterResourceGroupName -ClusterPoolName $clusterpoolName -ClusterPoolUpgradeRequest $upgradeObj
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterPoolUpgrade
@@ -51,9 +51,9 @@ INPUTOBJECT : Identity Parameter
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
[SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
.Link
-https://learn.microsoft.com/powershell/module/az.hdinsightonaks/update-azhdinsightonaksclusterpool
+https://learn.microsoft.com/powershell/module/az.hdinsightonaks/invoke-azhdinsightonaksclusterpoolupgrade
#>
-function Update-AzHdInsightOnAksClusterPool {
+function Invoke-AzHdInsightOnAksClusterPoolUpgrade {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterPool])]
[CmdletBinding(DefaultParameterSetName='UpgradeExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
@@ -209,12 +209,12 @@ begin {
}
$mapping = @{
- Upgrade = 'Az.HdInsightOnAks.private\Update-AzHdInsightOnAksClusterPool_Upgrade';
- UpgradeExpanded = 'Az.HdInsightOnAks.private\Update-AzHdInsightOnAksClusterPool_UpgradeExpanded';
- UpgradeViaIdentity = 'Az.HdInsightOnAks.private\Update-AzHdInsightOnAksClusterPool_UpgradeViaIdentity';
- UpgradeViaIdentityExpanded = 'Az.HdInsightOnAks.private\Update-AzHdInsightOnAksClusterPool_UpgradeViaIdentityExpanded';
- UpgradeViaJsonFilePath = 'Az.HdInsightOnAks.private\Update-AzHdInsightOnAksClusterPool_UpgradeViaJsonFilePath';
- UpgradeViaJsonString = 'Az.HdInsightOnAks.private\Update-AzHdInsightOnAksClusterPool_UpgradeViaJsonString';
+ Upgrade = 'Az.HdInsightOnAks.private\Invoke-AzHdInsightOnAksClusterPoolUpgrade_Upgrade';
+ UpgradeExpanded = 'Az.HdInsightOnAks.private\Invoke-AzHdInsightOnAksClusterPoolUpgrade_UpgradeExpanded';
+ UpgradeViaIdentity = 'Az.HdInsightOnAks.private\Invoke-AzHdInsightOnAksClusterPoolUpgrade_UpgradeViaIdentity';
+ UpgradeViaIdentityExpanded = 'Az.HdInsightOnAks.private\Invoke-AzHdInsightOnAksClusterPoolUpgrade_UpgradeViaIdentityExpanded';
+ UpgradeViaJsonFilePath = 'Az.HdInsightOnAks.private\Invoke-AzHdInsightOnAksClusterPoolUpgrade_UpgradeViaJsonFilePath';
+ UpgradeViaJsonString = 'Az.HdInsightOnAks.private\Invoke-AzHdInsightOnAksClusterPoolUpgrade_UpgradeViaJsonString';
}
if (('Upgrade', 'UpgradeExpanded', 'UpgradeViaJsonFilePath', 'UpgradeViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
$testPlayback = $false
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/Invoke-AzHdInsightOnAksClusterUpgrade.ps1 b/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/Invoke-AzHdInsightOnAksClusterUpgrade.ps1
new file mode 100644
index 000000000000..49bc2e442a11
--- /dev/null
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/Invoke-AzHdInsightOnAksClusterUpgrade.ps1
@@ -0,0 +1,304 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Upgrade a cluster.
+.Description
+Upgrade a cluster.
+.Example
+$clusterResourceGroupName = "Group"
+$clusterpoolName = "ps-test-pool"
+$clusterName = "flinkcluster"
+$hotfixObj = New-AzHdInsightOnAksClusterHotfixUpgradeObject -ComponentName Webssh -TargetBuildNumber 7 -TargetClusterVersion "1.1.1" -TargetOssVersion "0.4.2"
+Invoke-AzHdInsightOnAksClusterUpgrade -ResourceGroupName $clusterResourceGroupName -ClusterName $clusterName -ClusterPoolName $clusterpoolName -ClusterUpgradeRequest $hotfixObj
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterUpgrade
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IHdInsightOnAksIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ICluster
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+CLUSTERPOOLINPUTOBJECT : Identity Parameter
+ [ClusterName ]: The name of the HDInsight cluster.
+ [ClusterPoolName ]: The name of the cluster pool.
+ [Id ]: Resource identity path
+ [Location ]: The name of the Azure region.
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
+
+CLUSTERUPGRADEREQUEST : Cluster Upgrade.
+ UpgradeType : Type of upgrade.
+
+INPUTOBJECT : Identity Parameter
+ [ClusterName ]: The name of the HDInsight cluster.
+ [ClusterPoolName ]: The name of the cluster pool.
+ [Id ]: Resource identity path
+ [Location ]: The name of the Azure region.
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
+.Link
+https://learn.microsoft.com/powershell/module/az.hdinsightonaks/invoke-azhdinsightonaksclusterupgrade
+#>
+function Invoke-AzHdInsightOnAksClusterUpgrade {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ICluster])]
+[CmdletBinding(DefaultParameterSetName='UpgradeExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(ParameterSetName='Upgrade', Mandatory)]
+ [Parameter(ParameterSetName='UpgradeExpanded', Mandatory)]
+ [Parameter(ParameterSetName='UpgradeViaIdentityClusterpool', Mandatory)]
+ [Parameter(ParameterSetName='UpgradeViaIdentityClusterpoolExpanded', Mandatory)]
+ [Parameter(ParameterSetName='UpgradeViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='UpgradeViaJsonString', Mandatory)]
+ [Alias('ClusterName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Path')]
+ [System.String]
+ # The name of the HDInsight cluster.
+ ${Name},
+
+ [Parameter(ParameterSetName='Upgrade', Mandatory)]
+ [Parameter(ParameterSetName='UpgradeExpanded', Mandatory)]
+ [Parameter(ParameterSetName='UpgradeViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='UpgradeViaJsonString', Mandatory)]
+ [Alias('ClusterPoolName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Path')]
+ [System.String]
+ # The name of the cluster pool.
+ ${PoolName},
+
+ [Parameter(ParameterSetName='Upgrade', Mandatory)]
+ [Parameter(ParameterSetName='UpgradeExpanded', Mandatory)]
+ [Parameter(ParameterSetName='UpgradeViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='UpgradeViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='Upgrade')]
+ [Parameter(ParameterSetName='UpgradeExpanded')]
+ [Parameter(ParameterSetName='UpgradeViaJsonFilePath')]
+ [Parameter(ParameterSetName='UpgradeViaJsonString')]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # The ID of the target subscription.
+ # The value must be an UUID.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='UpgradeViaIdentity', Mandatory, ValueFromPipeline)]
+ [Parameter(ParameterSetName='UpgradeViaIdentityExpanded', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IHdInsightOnAksIdentity]
+ # Identity Parameter
+ ${InputObject},
+
+ [Parameter(ParameterSetName='UpgradeViaIdentityClusterpool', Mandatory, ValueFromPipeline)]
+ [Parameter(ParameterSetName='UpgradeViaIdentityClusterpoolExpanded', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IHdInsightOnAksIdentity]
+ # Identity Parameter
+ ${ClusterpoolInputObject},
+
+ [Parameter(ParameterSetName='Upgrade', Mandatory, ValueFromPipeline)]
+ [Parameter(ParameterSetName='UpgradeViaIdentity', Mandatory, ValueFromPipeline)]
+ [Parameter(ParameterSetName='UpgradeViaIdentityClusterpool', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterUpgrade]
+ # Cluster Upgrade.
+ ${ClusterUpgradeRequest},
+
+ [Parameter(ParameterSetName='UpgradeExpanded', Mandatory)]
+ [Parameter(ParameterSetName='UpgradeViaIdentityClusterpoolExpanded', Mandatory)]
+ [Parameter(ParameterSetName='UpgradeViaIdentityExpanded', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.PSArgumentCompleterAttribute("AKSPatchUpgrade", "HotfixUpgrade", "PatchVersionUpgrade")]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Body')]
+ [System.String]
+ # Type of upgrade.
+ ${UpgradeType},
+
+ [Parameter(ParameterSetName='UpgradeViaJsonFilePath', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Body')]
+ [System.String]
+ # Path of Json file supplied to the Upgrade operation
+ ${JsonFilePath},
+
+ [Parameter(ParameterSetName='UpgradeViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Body')]
+ [System.String]
+ # Json string supplied to the Upgrade operation
+ ${JsonString},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ Upgrade = 'Az.HdInsightOnAks.private\Invoke-AzHdInsightOnAksClusterUpgrade_Upgrade';
+ UpgradeExpanded = 'Az.HdInsightOnAks.private\Invoke-AzHdInsightOnAksClusterUpgrade_UpgradeExpanded';
+ UpgradeViaIdentity = 'Az.HdInsightOnAks.private\Invoke-AzHdInsightOnAksClusterUpgrade_UpgradeViaIdentity';
+ UpgradeViaIdentityClusterpool = 'Az.HdInsightOnAks.private\Invoke-AzHdInsightOnAksClusterUpgrade_UpgradeViaIdentityClusterpool';
+ UpgradeViaIdentityClusterpoolExpanded = 'Az.HdInsightOnAks.private\Invoke-AzHdInsightOnAksClusterUpgrade_UpgradeViaIdentityClusterpoolExpanded';
+ UpgradeViaIdentityExpanded = 'Az.HdInsightOnAks.private\Invoke-AzHdInsightOnAksClusterUpgrade_UpgradeViaIdentityExpanded';
+ UpgradeViaJsonFilePath = 'Az.HdInsightOnAks.private\Invoke-AzHdInsightOnAksClusterUpgrade_UpgradeViaJsonFilePath';
+ UpgradeViaJsonString = 'Az.HdInsightOnAks.private\Invoke-AzHdInsightOnAksClusterUpgrade_UpgradeViaJsonString';
+ }
+ if (('Upgrade', 'UpgradeExpanded', 'UpgradeViaJsonFilePath', 'UpgradeViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/Invoke-AzHdInsightOnAksManageClusterLibrary.ps1 b/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/Invoke-AzHdInsightOnAksManageClusterLibrary.ps1
new file mode 100644
index 000000000000..284669719635
--- /dev/null
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/Invoke-AzHdInsightOnAksManageClusterLibrary.ps1
@@ -0,0 +1,318 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Library management operations on HDInsight on AKS cluster.
+.Description
+Library management operations on HDInsight on AKS cluster.
+.Example
+$libObj=New-AzHdInsightOnAksClusterMavenLibraryObject -GroupId "com.azure.resourcemanager" -Name "azure-resourcemanager-hdinsight-containers" -Version "1.0.0-beta.2" -Remark "Maven lib"
+Invoke-AzHdInsightOnAksManageClusterLibrary -ResourceGroupName hilocli-test -ClusterPoolName hilopoolwus3 -ClusterName cluster2024521155147 -Action Install -Library $libObj -AsJob
+.Example
+$libObj=New-AzHdInsightOnAksClusterPyPiLibraryObject -Name pandas -Version 2.2.2
+Invoke-AzHdInsightOnAksManageClusterLibrary -ResourceGroupName hilocli-test -ClusterPoolName hilopoolwus3 -ClusterName cluster2024521155147 -Action Uninstall -Library $libObj -AsJob
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterLibraryManagementOperation
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IHdInsightOnAksIdentity
+.Outputs
+System.Boolean
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+CLUSTERPOOLINPUTOBJECT : Identity Parameter
+ [ClusterName ]: The name of the HDInsight cluster.
+ [ClusterPoolName ]: The name of the cluster pool.
+ [Id ]: Resource identity path
+ [Location ]: The name of the Azure region.
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
+
+INPUTOBJECT : Identity Parameter
+ [ClusterName ]: The name of the HDInsight cluster.
+ [ClusterPoolName ]: The name of the cluster pool.
+ [Id ]: Resource identity path
+ [Location ]: The name of the Azure region.
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
+
+LIBRARY : The libraries to be installed/updated/uninstalled.
+ PropertiesType : Type of the library.
+ [Remark ]: Remark of the latest library management operation.
+
+OPERATION : Library management operation.
+ Action : The library management action.
+ Library >: The libraries to be installed/updated/uninstalled.
+ PropertiesType : Type of the library.
+ [Remark ]: Remark of the latest library management operation.
+.Link
+https://learn.microsoft.com/powershell/module/az.hdinsightonaks/invoke-azhdinsightonaksmanageclusterlibrary
+#>
+function Invoke-AzHdInsightOnAksManageClusterLibrary {
+[OutputType([System.Boolean])]
+[CmdletBinding(DefaultParameterSetName='ManageViaIdentity', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(ParameterSetName='Manage', Mandatory)]
+ [Parameter(ParameterSetName='ManageExpanded', Mandatory)]
+ [Parameter(ParameterSetName='ManageViaIdentityClusterpool', Mandatory)]
+ [Parameter(ParameterSetName='ManageViaIdentityClusterpoolExpanded', Mandatory)]
+ [Parameter(ParameterSetName='ManageViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='ManageViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Path')]
+ [System.String]
+ # The name of the HDInsight cluster.
+ ${ClusterName},
+
+ [Parameter(ParameterSetName='Manage', Mandatory)]
+ [Parameter(ParameterSetName='ManageExpanded', Mandatory)]
+ [Parameter(ParameterSetName='ManageViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='ManageViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Path')]
+ [System.String]
+ # The name of the cluster pool.
+ ${ClusterPoolName},
+
+ [Parameter(ParameterSetName='Manage', Mandatory)]
+ [Parameter(ParameterSetName='ManageExpanded', Mandatory)]
+ [Parameter(ParameterSetName='ManageViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='ManageViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='Manage')]
+ [Parameter(ParameterSetName='ManageExpanded')]
+ [Parameter(ParameterSetName='ManageViaJsonFilePath')]
+ [Parameter(ParameterSetName='ManageViaJsonString')]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # The ID of the target subscription.
+ # The value must be an UUID.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='ManageViaIdentity', Mandatory, ValueFromPipeline)]
+ [Parameter(ParameterSetName='ManageViaIdentityExpanded', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IHdInsightOnAksIdentity]
+ # Identity Parameter
+ ${InputObject},
+
+ [Parameter(ParameterSetName='ManageViaIdentityClusterpool', Mandatory, ValueFromPipeline)]
+ [Parameter(ParameterSetName='ManageViaIdentityClusterpoolExpanded', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IHdInsightOnAksIdentity]
+ # Identity Parameter
+ ${ClusterpoolInputObject},
+
+ [Parameter(ParameterSetName='Manage', Mandatory, ValueFromPipeline)]
+ [Parameter(ParameterSetName='ManageViaIdentity', Mandatory, ValueFromPipeline)]
+ [Parameter(ParameterSetName='ManageViaIdentityClusterpool', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterLibraryManagementOperation]
+ # Library management operation.
+ ${Operation},
+
+ [Parameter(ParameterSetName='ManageExpanded', Mandatory)]
+ [Parameter(ParameterSetName='ManageViaIdentityClusterpoolExpanded', Mandatory)]
+ [Parameter(ParameterSetName='ManageViaIdentityExpanded', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.PSArgumentCompleterAttribute("Install", "Uninstall")]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Body')]
+ [System.String]
+ # The library management action.
+ ${Action},
+
+ [Parameter(ParameterSetName='ManageExpanded', Mandatory)]
+ [Parameter(ParameterSetName='ManageViaIdentityClusterpoolExpanded', Mandatory)]
+ [Parameter(ParameterSetName='ManageViaIdentityExpanded', Mandatory)]
+ [AllowEmptyCollection()]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterLibrary[]]
+ # The libraries to be installed/updated/uninstalled.
+ ${Library},
+
+ [Parameter(ParameterSetName='ManageViaJsonFilePath', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Body')]
+ [System.String]
+ # Path of Json file supplied to the Manage operation
+ ${JsonFilePath},
+
+ [Parameter(ParameterSetName='ManageViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Body')]
+ [System.String]
+ # Json string supplied to the Manage operation
+ ${JsonString},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ Manage = 'Az.HdInsightOnAks.private\Invoke-AzHdInsightOnAksManageClusterLibrary_Manage';
+ ManageExpanded = 'Az.HdInsightOnAks.private\Invoke-AzHdInsightOnAksManageClusterLibrary_ManageExpanded';
+ ManageViaIdentity = 'Az.HdInsightOnAks.private\Invoke-AzHdInsightOnAksManageClusterLibrary_ManageViaIdentity';
+ ManageViaIdentityClusterpool = 'Az.HdInsightOnAks.private\Invoke-AzHdInsightOnAksManageClusterLibrary_ManageViaIdentityClusterpool';
+ ManageViaIdentityClusterpoolExpanded = 'Az.HdInsightOnAks.private\Invoke-AzHdInsightOnAksManageClusterLibrary_ManageViaIdentityClusterpoolExpanded';
+ ManageViaIdentityExpanded = 'Az.HdInsightOnAks.private\Invoke-AzHdInsightOnAksManageClusterLibrary_ManageViaIdentityExpanded';
+ ManageViaJsonFilePath = 'Az.HdInsightOnAks.private\Invoke-AzHdInsightOnAksManageClusterLibrary_ManageViaJsonFilePath';
+ ManageViaJsonString = 'Az.HdInsightOnAks.private\Invoke-AzHdInsightOnAksManageClusterLibrary_ManageViaJsonString';
+ }
+ if (('Manage', 'ManageExpanded', 'ManageViaJsonFilePath', 'ManageViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/New-AzHdInsightOnAksCluster.ps1 b/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/New-AzHdInsightOnAksCluster.ps1
index 3bbacabda952..d998d399ee4e 100644
--- a/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/New-AzHdInsightOnAksCluster.ps1
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/New-AzHdInsightOnAksCluster.ps1
@@ -362,6 +362,7 @@ HDINSIGHTONAKSCLUSTER : The cluster.
[AutoscaleProfileEnabled ]: This indicates whether auto scale is enabled on HDInsight on AKS cluster.
[AutoscaleProfileGracefulDecommissionTimeout ]: This property is for graceful decommission timeout; It has a default setting of 3600 seconds before forced shutdown takes place. This is the maximal time to wait for running containers and applications to complete before transition a DECOMMISSIONING node into DECOMMISSIONED. The default value is 3600 seconds. Negative value (like -1) is handled as infinite timeout.
[ClusterType ]: The type of cluster.
+ [ComputeProfileAvailabilityZone >]: The list of Availability zones to use for AKS VMSS nodes.
[ComputeProfileNode >]: The nodes definitions.
Count : The number of virtual machines.
Type : The node type.
@@ -410,6 +411,11 @@ HDINSIGHTONAKSCLUSTER : The cluster.
ScalingMetric : Metrics name for individual workloads. For example: cpu
[LogAnalyticProfileEnabled ]: True if log analytics is enabled for the cluster, otherwise false.
[LogAnalyticProfileMetricsEnabled ]: True if metrics are enabled, otherwise false.
+ [ManagedIdentityProfileIdentityList >]: The list of managed identity.
+ ClientId : ClientId of the managed identity.
+ ObjectId : ObjectId of the managed identity.
+ ResourceId : ResourceId of the managed identity.
+ Type : The type of managed identity.
[MetastoreSpecDbConnectionAuthenticationMode ]: The authentication mode to connect to your Hive metastore database. More details: https://learn.microsoft.com/en-us/azure/azure-sql/database/logins-create-manage?view=azuresql#authentication-and-authorization
[MetastoreSpecDbName ]: The database name.
[MetastoreSpecDbPasswordSecretName ]: The secret name which contains the database user password.
@@ -431,7 +437,7 @@ HDINSIGHTONAKSCLUSTER : The cluster.
[TimeoutInMinute ]: Timeout duration for the script action in minutes.
[ProfileServiceConfigsProfile >]: The service configs profiles.
Config >: List of service configs.
- Component : Name of the component the config files should apply to.
+ ComponentName : Name of the component the config files should apply to.
File >: List of Config Files.
FileName : Configuration file name.
[Content ]: Free form content of the entire configuration file.
@@ -460,14 +466,15 @@ HDINSIGHTONAKSCLUSTER : The cluster.
[ScheduleBasedConfigTimeZone ]: User has to specify the timezone on which the schedule has to be set for schedule based autoscale configuration.
[SecretProfileKeyVaultResourceId ]: Name of the user Key Vault where all the cluster specific user secrets are stored.
[SecretProfileSecret >]: Properties of Key Vault secret.
- KeyVaultObjectName : Object identifier name of the secret in key vault.
ReferenceName : Reference name of the secret to be used in service configs.
+ SecretName : Object identifier name of the secret in key vault.
Type : Type of key vault object: secret, key or certificate.
[Version ]: Version of the secret in key vault.
[SparkProfileDefaultStorageUrl ]: The default storage URL.
[SparkProfileUserPluginsSpecPlugin >]: Spark user plugins.
Path : Fully qualified path to the folder containing the plugins.
[SshProfileCount ]: Number of ssh pods per cluster.
+ [SshProfileVMSize ]: The virtual machine SKU.
[StorageHivecatalogName ]: Hive Catalog name used to mount external tables on the logs written by trino, if not specified there tables are not created.
[StorageHivecatalogSchema ]: Schema of the above catalog to use, to mount query logs as external tables, if not specified tables will be mounted under schema trinologs.
[StoragePartitionRetentionInDay ]: Retention period for query log table partitions, this doesn't have any affect on actual data.
@@ -506,6 +513,12 @@ LOADBASEDCONFIGSCALINGRULE : The scaling rules.
EvaluationCount : This is an evaluation count for a scaling condition, the number of times a trigger condition should be successful, before scaling activity is triggered.
ScalingMetric : Metrics name for individual workloads. For example: cpu
+MANAGEDIDENTITYPROFILEIDENTITYLIST : The list of managed identity.
+ ClientId : ClientId of the managed identity.
+ ObjectId : ObjectId of the managed identity.
+ ResourceId : ResourceId of the managed identity.
+ Type : The type of managed identity.
+
SCHEDULEBASEDCONFIGSCHEDULE : This specifies the schedules where scheduled based Autoscale to be enabled, the user has a choice to set multiple rules within the schedule across days and times (start/end).
Count : User has to set the node count anticipated at end of the scaling operation of the set current schedule configuration, format is integer.
Day >: User has to set the days where schedule has to be set for autoscale operation.
@@ -522,14 +535,14 @@ SCRIPTACTIONPROFILE : The script action profile list.
[TimeoutInMinute ]: Timeout duration for the script action in minutes.
SECRETREFERENCE : Properties of Key Vault secret.
- KeyVaultObjectName : Object identifier name of the secret in key vault.
ReferenceName : Reference name of the secret to be used in service configs.
+ SecretName : Object identifier name of the secret in key vault.
Type : Type of key vault object: secret, key or certificate.
[Version ]: Version of the secret in key vault.
SERVICECONFIGSPROFILE : The service configs profiles.
Config >: List of service configs.
- Component : Name of the component the config files should apply to.
+ ComponentName : Name of the component the config files should apply to.
File >: List of Config Files.
FileName : Configuration file name.
[Content ]: Free form content of the entire configuration file.
@@ -745,6 +758,15 @@ param(
# Version with 3/4 part.
${ClusterVersion},
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityClusterpoolExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
+ [AllowEmptyCollection()]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Body')]
+ [System.String[]]
+ # The list of Availability zones to use for AKS VMSS nodes.
+ ${ComputeProfileAvailabilityZone},
+
[Parameter(ParameterSetName='CreateExpanded')]
[Parameter(ParameterSetName='CreateViaIdentityClusterpoolExpanded')]
[Parameter(ParameterSetName='CreateViaIdentityExpanded')]
@@ -1081,6 +1103,15 @@ param(
# True if metrics are enabled, otherwise false.
${LogAnalyticProfileMetricsEnabled},
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityClusterpoolExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
+ [AllowEmptyCollection()]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IManagedIdentitySpec[]]
+ # The list of managed identity.
+ ${ManagedIdentityProfileIdentityList},
+
[Parameter(ParameterSetName='CreateExpanded')]
[Parameter(ParameterSetName='CreateViaIdentityClusterpoolExpanded')]
[Parameter(ParameterSetName='CreateViaIdentityExpanded')]
@@ -1296,6 +1327,14 @@ param(
# Number of ssh pods per cluster.
${SshProfileCount},
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityClusterpoolExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Body')]
+ [System.String]
+ # The virtual machine SKU.
+ ${SshProfileVMSize},
+
[Parameter(ParameterSetName='CreateExpanded')]
[Parameter(ParameterSetName='CreateViaIdentityClusterpoolExpanded')]
[Parameter(ParameterSetName='CreateViaIdentityExpanded')]
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/New-AzHdInsightOnAksClusterConfigFileObject.ps1 b/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/New-AzHdInsightOnAksClusterConfigFileObject.ps1
index 0ffa0f241121..d2a3b91e3a46 100644
--- a/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/New-AzHdInsightOnAksClusterConfigFileObject.ps1
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/New-AzHdInsightOnAksClusterConfigFileObject.ps1
@@ -16,34 +16,60 @@
<#
.Synopsis
-Create cluster config file.
+Create an in-memory object for ClusterConfigFile.
.Description
-Create cluster config file.
+Create an in-memory object for ClusterConfigFile.
.Example
$coreSiteConfigFile=New-AzHdInsightOnAksClusterConfigFileObject -FileName "core-site.xml" -Value @{"fs.defaultFS"="abfs://testcontainer@$teststorage.dfs.core.windows.net"}
-.Inputs
-System.Collections.HashTable
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterConfigFile
+Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterConfigFile
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+VALUE : List of key value pairs where key represents a valid service configuration name and value represents the value of the config.
+ [(Any) ]: This indicates any property can be added to this object.
.Link
-https://learn.microsoft.com/powershell/module/az.hdinsightonaks/New-AzHdInsightOnAksClusterConfigFileObject
+https://learn.microsoft.com/powershell/module/Az.HdInsightOnAks/new-azhdinsightonaksclusterconfigfileobject
#>
function New-AzHdInsightOnAksClusterConfigFileObject {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterConfigFile])]
-[CmdletBinding(DefaultParameterSetName='Create', PositionalBinding=$false)]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterConfigFile])]
+[CmdletBinding(PositionalBinding=$false)]
param(
[Parameter(Mandatory)]
- [Alias('Name')]
[Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Body')]
[System.String]
- # The name of the config file.
+ # Configuration file name.
${FileName},
- [Parameter(Mandatory)]
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Body')]
+ [System.String]
+ # Free form content of the entire configuration file.
+ ${Content},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.PSArgumentCompleterAttribute("Base64", "None")]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Body')]
+ [System.String]
+ # This property indicates if the content is encoded and is case-insensitive.
+ # Please set the value to base64 if the content is base64 encoded.
+ # Set it to none or skip it if the content is plain text.
+ ${Encoding},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Body')]
+ [System.String]
+ # Path of the config file if content is specified.
+ ${Path},
+
+ [Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Body')]
- [System.Collections.Hashtable]
- # List of key value pairs where key represents a valid service configuration name and value represents the value of the config.
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterConfigFileValues]
+ # List of key value pairs
+ # where key represents a valid service configuration name and value represents the value of the config.
${Value}
)
@@ -73,7 +99,7 @@ begin {
}
$mapping = @{
- Create = 'Az.HdInsightOnAks.custom\New-AzHdInsightOnAksClusterConfigFileObject';
+ __AllParameterSets = 'Az.HdInsightOnAks.custom\New-AzHdInsightOnAksClusterConfigFileObject';
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/New-AzHdInsightOnAksClusterHotfixUpgradeObject.ps1 b/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/New-AzHdInsightOnAksClusterHotfixUpgradeObject.ps1
index 342a6c74d5be..2e0eb2c066e9 100644
--- a/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/New-AzHdInsightOnAksClusterHotfixUpgradeObject.ps1
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/New-AzHdInsightOnAksClusterHotfixUpgradeObject.ps1
@@ -16,20 +16,20 @@
<#
.Synopsis
-Create an object to hold the cluster upgrade parameters.
+Create an in-memory object for ClusterHotfixUpgradeProperties.
.Description
-Create an object to hold the cluster upgrade parameters.
+Create an in-memory object for ClusterHotfixUpgradeProperties.
.Example
$hotfixObj = New-AzHdInsightOnAksClusterHotfixUpgradeObject -ComponentName Webssh -TargetBuildNumber 7 -TargetClusterVersion "1.1.1" -TargetOssVersion "0.4.2"
.Outputs
Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterUpgrade
.Link
-https://learn.microsoft.com/powershell/module/az.hdinsightonaks/New-AzHdInsightOnAksClusterHotfixUpgradeObject
+https://learn.microsoft.com/powershell/module/Az.HdInsightOnAks/new-azhdinsightonaksclusterhotfixupgradeobject
#>
function New-AzHdInsightOnAksClusterHotfixUpgradeObject {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterUpgrade])]
-[CmdletBinding(DefaultParameterSetName='Create', PositionalBinding=$false)]
+[CmdletBinding(PositionalBinding=$false)]
param(
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Body')]
@@ -82,7 +82,7 @@ begin {
}
$mapping = @{
- Create = 'Az.HdInsightOnAks.custom\New-AzHdInsightOnAksClusterHotfixUpgradeObject';
+ __AllParameterSets = 'Az.HdInsightOnAks.custom\New-AzHdInsightOnAksClusterHotfixUpgradeObject';
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/New-AzHdInsightOnAksClusterMavenLibraryObject.ps1 b/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/New-AzHdInsightOnAksClusterMavenLibraryObject.ps1
new file mode 100644
index 000000000000..2bacfd965f02
--- /dev/null
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/New-AzHdInsightOnAksClusterMavenLibraryObject.ps1
@@ -0,0 +1,135 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Create an in-memory object for MavenLibraryProperties.
+.Description
+Create an in-memory object for MavenLibraryProperties.
+.Example
+New-AzHdInsightOnAksClusterMavenLibraryObject -GroupId "com.azure.resourcemanager" -Name "azure-resourcemanager-hdinsight-containers" -Version "1.0.0-beta.2" -Remark "Maven lib"
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterLibrary
+.Link
+https://learn.microsoft.com/powershell/module/Az.HdInsightOnAks/new-azhdinsightonaksclustermavenlibraryobject
+#>
+function New-AzHdInsightOnAksClusterMavenLibraryObject {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterLibrary])]
+[CmdletBinding(PositionalBinding=$false)]
+param(
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Body')]
+ [System.String]
+ # GroupId of the Maven package.
+ ${GroupId},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Body')]
+ [System.String]
+ # ArtifactId of the Maven package.
+ ${Name},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Body')]
+ [System.String]
+ # Version of the Maven package.
+ ${Version},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Body')]
+ [System.String]
+ # Remark of the latest library management operation.
+ ${Remark}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ __AllParameterSets = 'Az.HdInsightOnAks.custom\New-AzHdInsightOnAksClusterMavenLibraryObject';
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/New-AzHdInsightOnAksClusterPool.ps1 b/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/New-AzHdInsightOnAksClusterPool.ps1
index a38924935d0d..afb7a51e0bfd 100644
--- a/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/New-AzHdInsightOnAksClusterPool.ps1
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/New-AzHdInsightOnAksClusterPool.ps1
@@ -66,11 +66,12 @@ CLUSTERPOOL : Cluster pool.
Location : The geo-location where the resource lives
[Tag ]: Resource tags.
[(Any) ]: This indicates any property can be added to this object.
+ [ComputeProfileAvailabilityZone >]: The list of Availability zones to use for AKS VMSS nodes.
[ComputeProfileVMSize ]: The virtual machine SKU.
[LogAnalyticProfileEnabled ]: True if log analytics is enabled for cluster pool, otherwise false.
[LogAnalyticProfileWorkspaceId ]: Log analytics workspace to associate with the OMS agent.
[ManagedResourceGroupName ]: A resource group created by RP, to hold the resources created by RP on-behalf of customers. It will also be used to generate aksManagedResourceGroupName by pattern: MC_{managedResourceGroupName}_{clusterPoolName}_{region}. Please make sure it meets resource group name restriction.
- [NetworkProfileApiServerAuthorizedIPRange >]: IP ranges are specified in CIDR format, e.g. 137.117.106.88/29. This feature is not compatible with private AKS clusters. So you cannot set enablePrivateApiServer to true and apiServerAuthorizedIpRanges at the same time.
+ [NetworkProfileApiServerAuthorizedIPRange >]: IP ranges are specified in CIDR format, e.g. 137.117.106.88/29. This feature is not compatible with private AKS clusters. So you cannot set enablePrivateApiServer to true and apiServerAuthorizedIpRanges at the same time. Currently, this property is not supported and please don't use it.
[NetworkProfileEnablePrivateApiServer ]: ClusterPool is based on AKS cluster. AKS cluster exposes the API server to public internet by default. If you set this property to true, a private AKS cluster will be created, and it will use private apiserver, which is not exposed to public internet.
[NetworkProfileOutboundType ]: This can only be set at cluster pool creation time and cannot be changed later.
[NetworkProfileSubnetId ]: Cluster pool subnet resource id.
@@ -149,6 +150,14 @@ param(
# Cluster pool version is a 2-part version.
${ClusterPoolVersion},
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
+ [AllowEmptyCollection()]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Body')]
+ [System.String[]]
+ # The list of Availability zones to use for AKS VMSS nodes.
+ ${ComputeProfileAvailabilityZone},
+
[Parameter(ParameterSetName='CreateExpanded')]
[Parameter(ParameterSetName='CreateViaIdentityExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Body')]
@@ -181,6 +190,7 @@ param(
# 137.117.106.88/29.
# This feature is not compatible with private AKS clusters.
# So you cannot set enablePrivateApiServer to true and apiServerAuthorizedIpRanges at the same time.
+ # Currently, this property is not supported and please don't use it.
${NetworkProfileApiServerAuthorizedIPRange},
[Parameter(ParameterSetName='CreateExpanded')]
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/New-AzHdInsightOnAksClusterPoolAKSUpgradeObject.ps1 b/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/New-AzHdInsightOnAksClusterPoolAksPatchVersionUpgradeObject.ps1
similarity index 88%
rename from src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/New-AzHdInsightOnAksClusterPoolAKSUpgradeObject.ps1
rename to src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/New-AzHdInsightOnAksClusterPoolAksPatchVersionUpgradeObject.ps1
index 56ab0f6066b8..0ef097963262 100644
--- a/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/New-AzHdInsightOnAksClusterPoolAKSUpgradeObject.ps1
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/New-AzHdInsightOnAksClusterPoolAksPatchVersionUpgradeObject.ps1
@@ -16,20 +16,20 @@
<#
.Synopsis
-Create an object to hold the cluster pool upgrade parameters.
+Create an in-memory object for ClusterPoolAksPatchVersionUpgradeProperties.
.Description
-Create an object to hold the cluster pool upgrade parameters.
+Create an in-memory object for ClusterPoolAksPatchVersionUpgradeProperties.
.Example
-New-AzHdInsightOnAksClusterPoolAKSUpgradeObject -TargetAksVersion "1.27.9" -UpgradeClusterPool $true
+New-AzHdInsightOnAksClusterPoolAksPatchVersionUpgradeObject -TargetAksVersion "1.27.9" -UpgradeClusterPool $true
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterPoolUpgrade
+Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterPoolAksPatchVersionUpgradeProperties
.Link
-https://learn.microsoft.com/powershell/module/az.hdinsightonaks/New-AzHdInsightOnAksClusterPoolAKSUpgradeObject
+https://learn.microsoft.com/powershell/module/Az.HdInsightOnAks/new-azhdinsightonaksclusterpoolakspatchversionupgradeobject
#>
-function New-AzHdInsightOnAksClusterPoolAKSUpgradeObject {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterPoolUpgrade])]
-[CmdletBinding(DefaultParameterSetName='Create', PositionalBinding=$false)]
+function New-AzHdInsightOnAksClusterPoolAksPatchVersionUpgradeObject {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterPoolAksPatchVersionUpgradeProperties])]
+[CmdletBinding(PositionalBinding=$false)]
param(
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Body')]
@@ -42,14 +42,14 @@ param(
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Body')]
- [System.String]
+ [System.Boolean]
# whether upgrade all clusters' nodes.
# If it's true, upgradeClusterPool should be false.
${UpgradeAllClusterNode},
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Body')]
- [System.String]
+ [System.Boolean]
# whether upgrade cluster pool or not.
# If it's true, upgradeAllClusterNodes should be false.
${UpgradeClusterPool}
@@ -81,7 +81,7 @@ begin {
}
$mapping = @{
- Create = 'Az.HdInsightOnAks.custom\New-AzHdInsightOnAksClusterPoolAKSUpgradeObject';
+ __AllParameterSets = 'Az.HdInsightOnAks.custom\New-AzHdInsightOnAksClusterPoolAksPatchVersionUpgradeObject';
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/New-AzHdInsightOnAksClusterPyPiLibraryObject.ps1 b/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/New-AzHdInsightOnAksClusterPyPiLibraryObject.ps1
new file mode 100644
index 000000000000..3f63c9e43c81
--- /dev/null
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/New-AzHdInsightOnAksClusterPyPiLibraryObject.ps1
@@ -0,0 +1,129 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Create an in-memory object for PyPiLibraryProperties.
+.Description
+Create an in-memory object for PyPiLibraryProperties.
+.Example
+New-AzHdInsightOnAksClusterPyPiLibraryObject -Name pandas -Version 2.2.2 -Remark "Pandas Lib."
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterLibrary
+.Link
+https://learn.microsoft.com/powershell/module/Az.HdInsightOnAks/new-azhdinsightonaksclusterpypilibraryobject
+#>
+function New-AzHdInsightOnAksClusterPyPiLibraryObject {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterLibrary])]
+[CmdletBinding(PositionalBinding=$false)]
+param(
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Body')]
+ [System.String]
+ # Name of the PyPi package.
+ ${Name},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Body')]
+ [System.String]
+ # Version of the PyPi package.
+ ${Version},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Body')]
+ [System.String]
+ # Remark of the latest library management operation.
+ ${Remark}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ __AllParameterSets = 'Az.HdInsightOnAks.custom\New-AzHdInsightOnAksClusterPyPiLibraryObject';
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/New-AzHdInsightOnAksClusterServiceConfigObject.ps1 b/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/New-AzHdInsightOnAksClusterServiceConfigObject.ps1
index 3e5bdf0d429c..a343eaa0b613 100644
--- a/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/New-AzHdInsightOnAksClusterServiceConfigObject.ps1
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/New-AzHdInsightOnAksClusterServiceConfigObject.ps1
@@ -16,17 +16,15 @@
<#
.Synopsis
-Create a component config.
+Create an in-memory object for ClusterServiceConfig.
.Description
-Create a component config.
+Create an in-memory object for ClusterServiceConfig.
.Example
$coreSiteConfigFile=New-AzHdInsightOnAksClusterConfigFileObject -FileName "core-site.xml" -Value @{"fs.defaultFS"="abfs://testcontainer@$teststorage.dfs.core.windows.net"}
-$yarnComponentConfig= New-AzHdInsightOnAksClusterServiceConfigObject -ComponentName "yarn-config" -File $coreSiteConfigFile
+New-AzHdInsightOnAksClusterServiceConfigObject -ComponentName "yarn-config" -File $coreSiteConfigFile
-.Inputs
-Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterConfigFile[]
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterServiceConfig
+Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterServiceConfig
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -40,14 +38,13 @@ FILE : List of Config Files.
[Value ]: List of key value pairs where key represents a valid service configuration name and value represents the value of the config.
[(Any) ]: This indicates any property can be added to this object.
.Link
-https://learn.microsoft.com/powershell/module/az.hdinsightonaks/New-AzHdInsightOnAksClusterServiceConfigObject
+https://learn.microsoft.com/powershell/module/Az.HdInsightOnAks/new-azhdinsightonaksclusterserviceconfigobject
#>
function New-AzHdInsightOnAksClusterServiceConfigObject {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterServiceConfig])]
-[CmdletBinding(DefaultParameterSetName='Create', PositionalBinding=$false)]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterServiceConfig])]
+[CmdletBinding(PositionalBinding=$false)]
param(
[Parameter(Mandatory)]
- [Alias('Name')]
[Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Body')]
[System.String]
# Name of the component the config files should apply to.
@@ -86,7 +83,7 @@ begin {
}
$mapping = @{
- Create = 'Az.HdInsightOnAks.custom\New-AzHdInsightOnAksClusterServiceConfigObject';
+ __AllParameterSets = 'Az.HdInsightOnAks.custom\New-AzHdInsightOnAksClusterServiceConfigObject';
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/New-AzHdInsightOnAksClusterServiceConfigsProfileObject.ps1 b/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/New-AzHdInsightOnAksClusterServiceConfigsProfileObject.ps1
index 92073513df4c..edb7b87b6e20 100644
--- a/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/New-AzHdInsightOnAksClusterServiceConfigsProfileObject.ps1
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/New-AzHdInsightOnAksClusterServiceConfigsProfileObject.ps1
@@ -16,27 +16,23 @@
<#
.Synopsis
-Create a service config profile.
+Create an in-memory object for ClusterServiceConfigsProfile.
.Description
-Create a service config profile.
+Create an in-memory object for ClusterServiceConfigsProfile.
.Example
$coreSiteConfigFile=New-AzHdInsightOnAksClusterConfigFileObject -FileName "core-site.xml" -Value @{"fs.defaultFS"="abfs://testcontainer@$teststorage.dfs.core.windows.net"}
$yarnComponentConfig= New-AzHdInsightOnAksClusterServiceConfigObject -ComponentName "yarn-config" -File $coreSiteConfigFile
$yarnServiceConfigProfile=New-AzHdInsightOnAksClusterServiceConfigsProfileObject -ServiceName "yarn-service" -Config $yarnComponentConfig
-.Inputs
-Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterServiceConfig[]
-.Inputs
-System.String
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterServiceConfigsProfile
+Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterServiceConfigsProfile
.Notes
COMPLEX PARAMETER PROPERTIES
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
CONFIG : List of service configs.
- Component : Name of the component the config files should apply to.
+ ComponentName : Name of the component the config files should apply to.
File >: List of Config Files.
FileName : Configuration file name.
[Content ]: Free form content of the entire configuration file.
@@ -45,24 +41,23 @@ CONFIG : List of service configs.
[Value ]: List of key value pairs where key represents a valid service configuration name and value represents the value of the config.
[(Any) ]: This indicates any property can be added to this object.
.Link
-https://learn.microsoft.com/powershell/module/az.hdinsightonaks/New-AzHdInsightOnAksClusterServiceConfigsProfileObject
+https://learn.microsoft.com/powershell/module/Az.HdInsightOnAks/new-azhdinsightonaksclusterserviceconfigsprofileobject
#>
function New-AzHdInsightOnAksClusterServiceConfigsProfileObject {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterServiceConfigsProfile])]
-[CmdletBinding(DefaultParameterSetName='Create', PositionalBinding=$false)]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterServiceConfigsProfile])]
+[CmdletBinding(PositionalBinding=$false)]
param(
[Parameter(Mandatory)]
- [Alias('Name')]
[Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Body')]
- [System.String]
- # Name of the service the configurations should apply to.
- ${ServiceName},
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterServiceConfig[]]
+ # List of service configs.
+ ${Config},
[Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterServiceConfig[]]
- # List of service configs.
- ${Config}
+ [System.String]
+ # Name of the service the configurations should apply to.
+ ${ServiceName}
)
begin {
@@ -91,7 +86,7 @@ begin {
}
$mapping = @{
- Create = 'Az.HdInsightOnAks.custom\New-AzHdInsightOnAksClusterServiceConfigsProfileObject';
+ __AllParameterSets = 'Az.HdInsightOnAks.custom\New-AzHdInsightOnAksClusterServiceConfigsProfileObject';
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/New-AzHdInsightOnAksManagedIdentityObject.ps1 b/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/New-AzHdInsightOnAksManagedIdentityObject.ps1
new file mode 100644
index 000000000000..96e372b922b6
--- /dev/null
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/New-AzHdInsightOnAksManagedIdentityObject.ps1
@@ -0,0 +1,136 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Create an in-memory object for ManagedIdentitySpec.
+.Description
+Create an in-memory object for ManagedIdentitySpec.
+.Example
+New-AzHdInsightOnAksManagedIdentityObject -ClientId 00000000-0000-0000-0000-000000000000 -ObjectId 00000000-0000-0000-0000-000000000000 -ResourceId /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Group/providers/Microsoft.ManagedIdentity/userAssignedIdentities/msi -Type cluster
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ManagedIdentitySpec
+.Link
+https://learn.microsoft.com/powershell/module/Az.HdInsightOnAks/new-azhdinsightonaksmanagedidentityobject
+#>
+function New-AzHdInsightOnAksManagedIdentityObject {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ManagedIdentitySpec])]
+[CmdletBinding(PositionalBinding=$false)]
+param(
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Body')]
+ [System.String]
+ # ClientId of the managed identity.
+ ${ClientId},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Body')]
+ [System.String]
+ # ObjectId of the managed identity.
+ ${ObjectId},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Body')]
+ [System.String]
+ # ResourceId of the managed identity.
+ ${ResourceId},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.PSArgumentCompleterAttribute("cluster", "user", "internal")]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Body')]
+ [System.String]
+ # The type of managed identity.
+ ${Type}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ __AllParameterSets = 'Az.HdInsightOnAks.custom\New-AzHdInsightOnAksManagedIdentityObject';
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/New-AzHdInsightOnAksNodeProfileObject.ps1 b/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/New-AzHdInsightOnAksNodeProfileObject.ps1
index 4c2615575f9c..04271950f5d0 100644
--- a/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/New-AzHdInsightOnAksNodeProfileObject.ps1
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/New-AzHdInsightOnAksNodeProfileObject.ps1
@@ -16,39 +16,39 @@
<#
.Synopsis
-Create a node profile with SKU and worker count.
+Create an in-memory object for NodeProfile.
.Description
-Create a node profile with SKU and worker count.
+Create an in-memory object for NodeProfile.
.Example
$vmSize="Standard_E8ads_v5";
$workerCount=5;
$nodeProfile = New-AzHdInsightOnAksNodeProfileObject -Type "Worker" -Count $workerCount -VMSize $vmSize
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.INodeProfile
+Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.NodeProfile
.Link
-https://learn.microsoft.com/powershell/module/az.hdinsightonaks/New-AzHdInsightOnAksNodeProfileObject
+https://learn.microsoft.com/powershell/module/Az.HdInsightOnAks/new-azhdinsightonaksnodeprofileobject
#>
function New-AzHdInsightOnAksNodeProfileObject {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.INodeProfile])]
-[CmdletBinding(DefaultParameterSetName='Create', PositionalBinding=$false)]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.NodeProfile])]
+[CmdletBinding(PositionalBinding=$false)]
param(
[Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Body')]
- [System.String]
- # The node type.
- ${Type},
+ [System.Int32]
+ # The number of virtual machines.
+ ${Count},
[Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Body')]
- [System.Int32]
- # The virtual machine SKU.
- ${Count},
+ [System.String]
+ # The node type.
+ ${Type},
[Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Body')]
[System.String]
- # The number of virtual machines.
+ # The virtual machine SKU.
${VMSize}
)
@@ -78,7 +78,7 @@ begin {
}
$mapping = @{
- Create = 'Az.HdInsightOnAks.custom\New-AzHdInsightOnAksNodeProfileObject';
+ __AllParameterSets = 'Az.HdInsightOnAks.custom\New-AzHdInsightOnAksNodeProfileObject';
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/New-AzHdInsightOnAksSecretReferenceObject.ps1 b/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/New-AzHdInsightOnAksSecretReferenceObject.ps1
index 52d78ed8caf8..abd675d719bd 100644
--- a/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/New-AzHdInsightOnAksSecretReferenceObject.ps1
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/New-AzHdInsightOnAksSecretReferenceObject.ps1
@@ -16,47 +16,48 @@
<#
.Synopsis
-Create a reference to provide a secret to store the password for accessing the database.
+Create an in-memory object for SecretReference.
.Description
-Create a reference to provide a secret to store the password for accessing the database.
-$keyVaultResourceId="/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/{your resource group name}/providers/Microsoft.KeyVault/vaults/{your vault name}";
-$secretName="{your secret name}"
-$referenceName="{your secret reference name}";
-
-$secretReference=New-AzHdInsightOnAksSecretReferenceObject -SecretName $secretName -ReferenceName $referenceName
-NA
+Create an in-memory object for SecretReference.
.Example
$keyVaultResourceId="/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/{your resource group name}/providers/Microsoft.KeyVault/vaults/{your vault name}";
$secretName="{your secret name}"
$referenceName="{your secret reference name}";
-$secretReference=New-AzHdInsightOnAksSecretReferenceObject -SecretName $secretName -ReferenceName $referenceName
+$secretReference=New-AzHdInsightOnAksSecretReferenceObject -SecretName $secretName -ReferenceName $referenceName -Type Secret
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ISecretReference
+Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.SecretReference
.Link
-https://learn.microsoft.com/powershell/module/az.hdinsightonaks/New-AzHdInsightOnAksSecretReferenceObject
+https://learn.microsoft.com/powershell/module/Az.HdInsightOnAks/new-azhdinsightonakssecretreferenceobject
#>
function New-AzHdInsightOnAksSecretReferenceObject {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ISecretReference])]
-[CmdletBinding(DefaultParameterSetName='Create', PositionalBinding=$false)]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.SecretReference])]
+[CmdletBinding(PositionalBinding=$false)]
param(
[Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Body')]
[System.String]
- # The secret name in the key vault.
+ # Reference name of the secret to be used in service configs.
+ ${ReferenceName},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Body')]
+ [System.String]
+ # Object identifier name of the secret in key vault.
${SecretName},
[Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.PSArgumentCompleterAttribute("Key", "Secret", "Certificate")]
[Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Body')]
[System.String]
- # The reference name of the secret to be used in service configs.
- ${ReferenceName},
+ # Type of key vault object: secret, key or certificate.
+ ${Type},
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Body')]
[System.String]
- # The version of the secret in key vault.
+ # Version of the secret in key vault.
${Version}
)
@@ -86,7 +87,7 @@ begin {
}
$mapping = @{
- Create = 'Az.HdInsightOnAks.custom\New-AzHdInsightOnAksSecretReferenceObject';
+ __AllParameterSets = 'Az.HdInsightOnAks.custom\New-AzHdInsightOnAksSecretReferenceObject';
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/New-AzHdInsightOnAksTrinoHiveCatalogObject.ps1 b/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/New-AzHdInsightOnAksTrinoHiveCatalogObject.ps1
index 09975df715d7..b850c039cb11 100644
--- a/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/New-AzHdInsightOnAksTrinoHiveCatalogObject.ps1
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/New-AzHdInsightOnAksTrinoHiveCatalogObject.ps1
@@ -16,9 +16,9 @@
<#
.Synopsis
-Create a hive catalog configured as a Trino cluster.
+Create an in-memory object for HiveCatalogOption.
.Description
-Create a hive catalog configured as a Trino cluster.
+Create an in-memory object for HiveCatalogOption.
.Example
$catalogName="{your catalog name}"
$metastoreDbConnectionURL="jdbc:sqlserver://{your sql server url};database={your db name};encrypt=truetrustServerCertificate=true;loginTimeout=30;"
@@ -26,16 +26,16 @@ $metastoreDbUserName="{your db user name}"
$metastoreDbPasswordSecret="{secretName}"
$metastoreWarehouseDir="abfs://{your container name}@{your adls gen2 endpoint}/{your path}"
-New-AzHdInsightOnAksTrinoHiveCatalogObject -CatalogName $catalogName -MetastoreDbConnectionUrl $metastoreDbConnectionURL -MetastoreDbConnectionUserName $metastoreDbUserName -MetastoreDbConnectionPasswordSecret $metastoreDbPasswordSecret
+New-AzHdInsightOnAksTrinoHiveCatalogObject -CatalogName $catalogName -MetastoreDbConnectionUrl $metastoreDbConnectionURL -MetastoreDbConnectionUserName $metastoreDbUserName -MetastoreDbConnectionPasswordSecret $metastoreDbPasswordSecret -MetastoreWarehouseDir $metastoreWarehouseDir
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IHiveCatalogOption
+Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.HiveCatalogOption
.Link
-https://learn.microsoft.com/powershell/module/az.hdinsightonaks/New-AzHdInsightOnAksTrinoHiveCatalogObject
+https://learn.microsoft.com/powershell/module/Az.HdInsightOnAks/new-azhdinsightonakstrinohivecatalogobject
#>
function New-AzHdInsightOnAksTrinoHiveCatalogObject {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IHiveCatalogOption])]
-[CmdletBinding(DefaultParameterSetName='Create', PositionalBinding=$false)]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.HiveCatalogOption])]
+[CmdletBinding(PositionalBinding=$false)]
param(
[Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Body')]
@@ -52,20 +52,29 @@ param(
[Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Body')]
[System.String]
- # User name for hive metastore database.
- ${MetastoreDbConnectionUserName},
+ # Metastore root directory URI, format: abfs[s]://@.dfs.core.windows.net/.
+ # More details: https://docs.microsoft.com/en-us/azure/storage/blobs/data-lake-storage-introduction-abfs-uri.
+ ${MetastoreWarehouseDir},
- [Parameter(Mandatory)]
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.PSArgumentCompleterAttribute("SqlAuth", "IdentityAuth")]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Body')]
+ [System.String]
+ # The authentication mode to connect to your Hive metastore database.
+ # More details: https://learn.microsoft.com/en-us/azure/azure-sql/database/logins-create-manage?view=azuresql#authentication-and-authorization.
+ ${MetastoreDbConnectionAuthenticationMode},
+
+ [Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Body')]
[System.String]
- # Password secret for hive metastore database.
+ # Secret reference name from secretsProfile.secrets containing password for database connection.
${MetastoreDbConnectionPasswordSecret},
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Body')]
[System.String]
- # Warehouse directory for hive metastore database.
- ${MetastoreWarehouseDir}
+ # User name for database connection.
+ ${MetastoreDbConnectionUserName}
)
begin {
@@ -94,7 +103,7 @@ begin {
}
$mapping = @{
- Create = 'Az.HdInsightOnAks.custom\New-AzHdInsightOnAksTrinoHiveCatalogObject';
+ __AllParameterSets = 'Az.HdInsightOnAks.custom\New-AzHdInsightOnAksTrinoHiveCatalogObject';
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/ProxyCmdletDefinitions.ps1 b/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/ProxyCmdletDefinitions.ps1
index ba5ddca9c741..68e2070f7fc6 100644
--- a/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/ProxyCmdletDefinitions.ps1
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/ProxyCmdletDefinitions.ps1
@@ -947,21 +947,35 @@ end {
<#
.Synopsis
-List a cluster pool available upgrade.
+Get all libraries of HDInsight on AKS cluster.
.Description
-List a cluster pool available upgrade.
+Get all libraries of HDInsight on AKS cluster.
.Example
-Get-AzHdInsightOnAksClusterPoolAvailableUpgrade -ResourceGroupName PStestGroup -ClusterPoolName hilo-pool
+$clusterResourceGroupName = "Group"
+$clusterpoolName = "ps-test-pool"
+$clusterName = "flinkcluster"
+Get-AzHdInsightOnAksClusterLibrary -ResourceGroupName $clusterResourceGroupName -ClusterName $clusterName -ClusterPoolName $clusterpoolName -Category custom
+.Example
+$clusterResourceGroupName = "Group"
+$clusterpoolName = "ps-test-pool"
+$clusterName = "flinkcluster"
+Get-AzHdInsightOnAksClusterLibrary -ResourceGroupName $clusterResourceGroupName -ClusterName $clusterName -ClusterPoolName $clusterpoolName -Category preddfine
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterPoolAvailableUpgrade
+Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterLibrary
.Link
-https://learn.microsoft.com/powershell/module/az.hdinsightonaks/get-azhdinsightonaksclusterpoolavailableupgrade
+https://learn.microsoft.com/powershell/module/az.hdinsightonaks/get-azhdinsightonaksclusterlibrary
#>
-function Get-AzHdInsightOnAksClusterPoolAvailableUpgrade {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterPoolAvailableUpgrade])]
+function Get-AzHdInsightOnAksClusterLibrary {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterLibrary])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Path')]
+ [System.String]
+ # The name of the HDInsight cluster.
+ ${ClusterName},
+
[Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Path')]
[System.String]
@@ -983,6 +997,14 @@ param(
# The value must be an UUID.
${SubscriptionId},
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.PSArgumentCompleterAttribute("custom", "predefined")]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Query')]
+ [System.String]
+ # The system query option to filter libraries returned in the response.
+ # Allowed value is 'custom' or 'predefined'.
+ ${Category},
+
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
@@ -1058,7 +1080,7 @@ begin {
}
$mapping = @{
- List = 'Az.HdInsightOnAks.private\Get-AzHdInsightOnAksClusterPoolAvailableUpgrade_List';
+ List = 'Az.HdInsightOnAks.private\Get-AzHdInsightOnAksClusterLibrary_List';
}
if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
$testPlayback = $false
@@ -1121,60 +1143,35 @@ end {
<#
.Synopsis
-Gets a cluster pool.
+List a cluster pool available upgrade.
.Description
-Gets a cluster pool.
-.Example
-Get-AzHdInsightOnAksClusterPool
-.Example
-$clusterResourceGroupName = "your-resourceGroup"
-Get-AzHdInsightOnAksClusterPool -ResourceGroupName $clusterResourceGroupName
+List a cluster pool available upgrade.
.Example
-$clusterResourceGroupName = "your-resourceGroup"
-$clusterpoolName = "your-clusterpool"
-Get-AzHdInsightOnAksClusterPool -ResourceGroupName $clusterResourceGroupName -Name $clusterpoolName
+Get-AzHdInsightOnAksClusterPoolAvailableUpgrade -ResourceGroupName PStestGroup -ClusterPoolName hilo-pool
-.Inputs
-Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IHdInsightOnAksIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterPool
-.Notes
-COMPLEX PARAMETER PROPERTIES
-
-To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
-
-INPUTOBJECT : Identity Parameter
- [ClusterName ]: The name of the HDInsight cluster.
- [ClusterPoolName ]: The name of the cluster pool.
- [Id ]: Resource identity path
- [Location ]: The name of the Azure region.
- [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
- [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
+Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterPoolAvailableUpgrade
.Link
-https://learn.microsoft.com/powershell/module/az.hdinsightonaks/get-azhdinsightonaksclusterpool
+https://learn.microsoft.com/powershell/module/az.hdinsightonaks/get-azhdinsightonaksclusterpoolavailableupgrade
#>
-function Get-AzHdInsightOnAksClusterPool {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterPool])]
+function Get-AzHdInsightOnAksClusterPoolAvailableUpgrade {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterPoolAvailableUpgrade])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
- [Parameter(ParameterSetName='Get', Mandatory)]
- [Alias('ClusterPoolName')]
+ [Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Path')]
[System.String]
# The name of the cluster pool.
- ${Name},
+ ${ClusterPoolName},
- [Parameter(ParameterSetName='Get', Mandatory)]
- [Parameter(ParameterSetName='List1', Mandatory)]
+ [Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Path')]
[System.String]
# The name of the resource group.
# The name is case insensitive.
${ResourceGroupName},
- [Parameter(ParameterSetName='Get')]
- [Parameter(ParameterSetName='List')]
- [Parameter(ParameterSetName='List1')]
+ [Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String[]]
@@ -1182,12 +1179,6 @@ param(
# The value must be an UUID.
${SubscriptionId},
- [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
- [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Path')]
- [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IHdInsightOnAksIdentity]
- # Identity Parameter
- ${InputObject},
-
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
@@ -1263,12 +1254,9 @@ begin {
}
$mapping = @{
- Get = 'Az.HdInsightOnAks.private\Get-AzHdInsightOnAksClusterPool_Get';
- GetViaIdentity = 'Az.HdInsightOnAks.private\Get-AzHdInsightOnAksClusterPool_GetViaIdentity';
- List = 'Az.HdInsightOnAks.private\Get-AzHdInsightOnAksClusterPool_List';
- List1 = 'Az.HdInsightOnAks.private\Get-AzHdInsightOnAksClusterPool_List1';
+ List = 'Az.HdInsightOnAks.private\Get-AzHdInsightOnAksClusterPoolAvailableUpgrade_List';
}
- if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
+ if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
$testPlayback = $false
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
if ($testPlayback) {
@@ -1329,30 +1317,23 @@ end {
<#
.Synopsis
-Lists the config dump of all services running in cluster.
+Returns a list of upgrade history.
.Description
-Lists the config dump of all services running in cluster.
+Returns a list of upgrade history.
.Example
-$clusterResourceGroupName = "your-resourceGroup"
-$clusterpoolName = "your-clusterpool"
-$clusterName = "your-clustername"
-Get-AzHdInsightOnAksClusterServiceConfig -ResourceGroupName $clusterResourceGroupName -ClusterName $clusterName -ClusterPoolName $clusterpoolName
+$resourceGroupName = "resourceGroupName"
+$clusterPoolName = "clusterPoolName"
+Get-AzHdInsightOnAksClusterPoolUpgradeHistory -ResourceGroupName $resourceGroupName -ClusterPoolName $clusterPoolName
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IServiceConfigResult
+Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterPoolUpgradeHistory
.Link
-https://learn.microsoft.com/powershell/module/az.hdinsightonaks/get-azhdinsightonaksclusterserviceconfig
+https://learn.microsoft.com/powershell/module/az.hdinsightonaks/get-azhdinsightonaksclusterpoolupgradehistory
#>
-function Get-AzHdInsightOnAksClusterServiceConfig {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IServiceConfigResult])]
+function Get-AzHdInsightOnAksClusterPoolUpgradeHistory {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterPoolUpgradeHistory])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
- [Parameter(Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Path')]
- [System.String]
- # The name of the HDInsight cluster.
- ${ClusterName},
-
[Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Path')]
[System.String]
@@ -1449,7 +1430,7 @@ begin {
}
$mapping = @{
- List = 'Az.HdInsightOnAks.private\Get-AzHdInsightOnAksClusterServiceConfig_List';
+ List = 'Az.HdInsightOnAks.private\Get-AzHdInsightOnAksClusterPoolUpgradeHistory_List';
}
if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
$testPlayback = $false
@@ -1512,36 +1493,28 @@ end {
<#
.Synopsis
-Gets a HDInsight cluster.
+Gets a cluster pool.
.Description
-Gets a HDInsight cluster.
+Gets a cluster pool.
+.Example
+Get-AzHdInsightOnAksClusterPool
.Example
$clusterResourceGroupName = "your-resourceGroup"
-$clusterpoolName = "your-clusterpool"
-Get-AzHdInsightOnAksCluster -ResourceGroupName $clusterResourceGroupName -PoolName $clusterpoolName
+Get-AzHdInsightOnAksClusterPool -ResourceGroupName $clusterResourceGroupName
.Example
$clusterResourceGroupName = "your-resourceGroup"
$clusterpoolName = "your-clusterpool"
-$clusterName = "your-clustername"
-Get-AzHdInsightOnAksCluster -ResourceGroupName $clusterResourceGroupName -PoolName $clusterpoolName -Name $clusterName
+Get-AzHdInsightOnAksClusterPool -ResourceGroupName $clusterResourceGroupName -Name $clusterpoolName
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IHdInsightOnAksIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ICluster
+Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterPool
.Notes
COMPLEX PARAMETER PROPERTIES
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
-CLUSTERPOOLINPUTOBJECT : Identity Parameter
- [ClusterName ]: The name of the HDInsight cluster.
- [ClusterPoolName ]: The name of the cluster pool.
- [Id ]: Resource identity path
- [Location ]: The name of the Azure region.
- [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
- [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
-
INPUTOBJECT : Identity Parameter
[ClusterName ]: The name of the HDInsight cluster.
[ClusterPoolName ]: The name of the cluster pool.
@@ -1550,30 +1523,21 @@ INPUTOBJECT : Identity Parameter
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
[SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
.Link
-https://learn.microsoft.com/powershell/module/az.hdinsightonaks/get-azhdinsightonakscluster
+https://learn.microsoft.com/powershell/module/az.hdinsightonaks/get-azhdinsightonaksclusterpool
#>
-function Get-AzHdInsightOnAksCluster {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ICluster])]
+function Get-AzHdInsightOnAksClusterPool {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterPool])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
- [Parameter(ParameterSetName='GetViaIdentityClusterpool', Mandatory)]
- [Alias('ClusterName')]
- [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Path')]
- [System.String]
- # The name of the HDInsight cluster.
- ${Name},
-
- [Parameter(ParameterSetName='Get', Mandatory)]
- [Parameter(ParameterSetName='List', Mandatory)]
[Alias('ClusterPoolName')]
[Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Path')]
[System.String]
# The name of the cluster pool.
- ${PoolName},
+ ${Name},
[Parameter(ParameterSetName='Get', Mandatory)]
- [Parameter(ParameterSetName='List', Mandatory)]
+ [Parameter(ParameterSetName='List1', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Path')]
[System.String]
# The name of the resource group.
@@ -1582,6 +1546,7 @@ param(
[Parameter(ParameterSetName='Get')]
[Parameter(ParameterSetName='List')]
+ [Parameter(ParameterSetName='List1')]
[Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String[]]
@@ -1595,12 +1560,6 @@ param(
# Identity Parameter
${InputObject},
- [Parameter(ParameterSetName='GetViaIdentityClusterpool', Mandatory, ValueFromPipeline)]
- [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Path')]
- [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IHdInsightOnAksIdentity]
- # Identity Parameter
- ${ClusterpoolInputObject},
-
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
@@ -1676,12 +1635,12 @@ begin {
}
$mapping = @{
- Get = 'Az.HdInsightOnAks.private\Get-AzHdInsightOnAksCluster_Get';
- GetViaIdentity = 'Az.HdInsightOnAks.private\Get-AzHdInsightOnAksCluster_GetViaIdentity';
- GetViaIdentityClusterpool = 'Az.HdInsightOnAks.private\Get-AzHdInsightOnAksCluster_GetViaIdentityClusterpool';
- List = 'Az.HdInsightOnAks.private\Get-AzHdInsightOnAksCluster_List';
+ Get = 'Az.HdInsightOnAks.private\Get-AzHdInsightOnAksClusterPool_Get';
+ GetViaIdentity = 'Az.HdInsightOnAks.private\Get-AzHdInsightOnAksClusterPool_GetViaIdentity';
+ List = 'Az.HdInsightOnAks.private\Get-AzHdInsightOnAksClusterPool_List';
+ List1 = 'Az.HdInsightOnAks.private\Get-AzHdInsightOnAksClusterPool_List1';
}
- if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
+ if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
$testPlayback = $false
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
if ($testPlayback) {
@@ -1742,224 +1701,51 @@ end {
<#
.Synopsis
-Create a cluster pool.
+Lists the config dump of all services running in cluster.
.Description
-Create a cluster pool.
-.Example
-# Cluster pool configuration info
-$location = "West US 3"
-$clusterResourceGroupName = "Group"
-$clusterpoolName = "your-clusterpool"
-$vmSize = "Standard_E4s_v3"
-
-# Create the cluster pool
-New-AzHdInsightOnAksClusterPool `
- -Name $clusterpoolName `
- -ResourceGroupName $clusterResourceGroupName `
- -Location $location `
- -VmSize $vmSize
+Lists the config dump of all services running in cluster.
.Example
-# Cluster configuration info
-$location = "East US 2"
-$clusterResourceGroupName = "Group"
+$clusterResourceGroupName = "your-resourceGroup"
$clusterpoolName = "your-clusterpool"
-$vmSize = "Standard_E4s_v3"
-
-# log analytics workspace info
-$LogAnalyticProfileWorkspaceId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/group/providers/microsoft.operationalinsights/workspaces/loganalyticsworkspacename"
-
-# Create the cluster pool
-New-AzHdInsightOnAksClusterPool `
- -Name $clusterpoolName `
- -ResourceGroupName $clusterResourceGroupName `
- -Location $location `
- -VmSize $vmSize `
- -EnableLogAnalytics `
- -LogAnalyticWorkspaceResourceId $LogAnalyticProfileWorkspaceId
+$clusterName = "your-clustername"
+Get-AzHdInsightOnAksClusterServiceConfig -ResourceGroupName $clusterResourceGroupName -ClusterName $clusterName -ClusterPoolName $clusterpoolName
-.Inputs
-Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterPool
-.Inputs
-Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IHdInsightOnAksIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterPool
-.Notes
-COMPLEX PARAMETER PROPERTIES
-
-To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
-
-CLUSTERPOOL : Cluster pool.
- Location : The geo-location where the resource lives
- [Tag ]: Resource tags.
- [(Any) ]: This indicates any property can be added to this object.
- [ComputeProfileVMSize ]: The virtual machine SKU.
- [LogAnalyticProfileEnabled ]: True if log analytics is enabled for cluster pool, otherwise false.
- [LogAnalyticProfileWorkspaceId ]: Log analytics workspace to associate with the OMS agent.
- [ManagedResourceGroupName ]: A resource group created by RP, to hold the resources created by RP on-behalf of customers. It will also be used to generate aksManagedResourceGroupName by pattern: MC_{managedResourceGroupName}_{clusterPoolName}_{region}. Please make sure it meets resource group name restriction.
- [NetworkProfileApiServerAuthorizedIPRange >]: IP ranges are specified in CIDR format, e.g. 137.117.106.88/29. This feature is not compatible with private AKS clusters. So you cannot set enablePrivateApiServer to true and apiServerAuthorizedIpRanges at the same time.
- [NetworkProfileEnablePrivateApiServer ]: ClusterPool is based on AKS cluster. AKS cluster exposes the API server to public internet by default. If you set this property to true, a private AKS cluster will be created, and it will use private apiserver, which is not exposed to public internet.
- [NetworkProfileOutboundType ]: This can only be set at cluster pool creation time and cannot be changed later.
- [NetworkProfileSubnetId ]: Cluster pool subnet resource id.
- [ProfileClusterPoolVersion ]: Cluster pool version is a 2-part version.
-
-INPUTOBJECT : Identity Parameter
- [ClusterName ]: The name of the HDInsight cluster.
- [ClusterPoolName ]: The name of the cluster pool.
- [Id ]: Resource identity path
- [Location ]: The name of the Azure region.
- [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
- [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
+Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IServiceConfigResult
.Link
-https://learn.microsoft.com/powershell/module/az.hdinsightonaks/new-azhdinsightonaksclusterpool
+https://learn.microsoft.com/powershell/module/az.hdinsightonaks/get-azhdinsightonaksclusterserviceconfig
#>
-function New-AzHdInsightOnAksClusterPool {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterPool])]
-[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+function Get-AzHdInsightOnAksClusterServiceConfig {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IServiceConfigResult])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
- [Parameter(ParameterSetName='Create', Mandatory)]
- [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
- [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
- [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
- [Alias('ClusterPoolName')]
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Path')]
+ [System.String]
+ # The name of the HDInsight cluster.
+ ${ClusterName},
+
+ [Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Path')]
[System.String]
# The name of the cluster pool.
- ${Name},
+ ${ClusterPoolName},
- [Parameter(ParameterSetName='Create', Mandatory)]
- [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
- [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
- [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
+ [Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Path')]
[System.String]
# The name of the resource group.
# The name is case insensitive.
${ResourceGroupName},
- [Parameter(ParameterSetName='Create')]
- [Parameter(ParameterSetName='CreateExpanded')]
- [Parameter(ParameterSetName='CreateViaJsonFilePath')]
- [Parameter(ParameterSetName='CreateViaJsonString')]
+ [Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
- [System.String]
+ [System.String[]]
# The ID of the target subscription.
# The value must be an UUID.
${SubscriptionId},
- [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)]
- [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)]
- [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Path')]
- [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IHdInsightOnAksIdentity]
- # Identity Parameter
- ${InputObject},
-
- [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)]
- [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)]
- [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterPool]
- # Cluster pool.
- ${ClusterPool},
-
- [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
- [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Body')]
- [System.String]
- # The geo-location where the resource lives
- ${Location},
-
- [Parameter(ParameterSetName='CreateExpanded')]
- [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Body')]
- [System.String]
- # Cluster pool version is a 2-part version.
- ${ClusterPoolVersion},
-
- [Parameter(ParameterSetName='CreateExpanded')]
- [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Body')]
- [System.Management.Automation.SwitchParameter]
- # True if log analytics is enabled for cluster pool, otherwise false.
- ${EnableLogAnalytics},
-
- [Parameter(ParameterSetName='CreateExpanded')]
- [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Body')]
- [System.String]
- # Log analytics workspace to associate with the OMS agent.
- ${LogAnalyticWorkspaceResourceId},
-
- [Parameter(ParameterSetName='CreateExpanded')]
- [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Body')]
- [System.String]
- # A resource group created by RP, to hold the resources created by RP on-behalf of customers.
- # It will also be used to generate aksManagedResourceGroupName by pattern: MC_{managedResourceGroupName}_{clusterPoolName}_{region}.
- # Please make sure it meets resource group name restriction.
- ${ManagedResourceGroupName},
-
- [Parameter(ParameterSetName='CreateExpanded')]
- [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
- [AllowEmptyCollection()]
- [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Body')]
- [System.String[]]
- # IP ranges are specified in CIDR format, e.g.
- # 137.117.106.88/29.
- # This feature is not compatible with private AKS clusters.
- # So you cannot set enablePrivateApiServer to true and apiServerAuthorizedIpRanges at the same time.
- ${NetworkProfileApiServerAuthorizedIPRange},
-
- [Parameter(ParameterSetName='CreateExpanded')]
- [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Body')]
- [System.Management.Automation.SwitchParameter]
- # ClusterPool is based on AKS cluster.
- # AKS cluster exposes the API server to public internet by default.
- # If you set this property to true, a private AKS cluster will be created, and it will use private apiserver, which is not exposed to public internet.
- ${NetworkProfileEnablePrivateApiServer},
-
- [Parameter(ParameterSetName='CreateExpanded')]
- [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.PSArgumentCompleterAttribute("loadBalancer", "userDefinedRouting")]
- [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Body')]
- [System.String]
- # This can only be set at cluster pool creation time and cannot be changed later.
- ${NetworkProfileOutboundType},
-
- [Parameter(ParameterSetName='CreateExpanded')]
- [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Body')]
- [System.String]
- # Cluster pool subnet resource id.
- ${SubnetId},
-
- [Parameter(ParameterSetName='CreateExpanded')]
- [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ITrackedResourceTags]))]
- [System.Collections.Hashtable]
- # Resource tags.
- ${Tag},
-
- [Parameter(ParameterSetName='CreateExpanded')]
- [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Body')]
- [System.String]
- # The virtual machine SKU.
- ${VmSize},
-
- [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Body')]
- [System.String]
- # Path of Json file supplied to the Create operation
- ${JsonFilePath},
-
- [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Body')]
- [System.String]
- # Json string supplied to the Create operation
- ${JsonString},
-
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
@@ -1969,12 +1755,6 @@ param(
# Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
${DefaultProfile},
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Run the command as a job
- ${AsJob},
-
[Parameter(DontShow)]
[Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Runtime')]
[System.Management.Automation.SwitchParameter]
@@ -1995,12 +1775,6 @@ param(
# SendAsync Pipeline Steps to be prepended to the front of the pipeline
${HttpPipelinePrepend},
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Run the command asynchronously
- ${NoWait},
-
[Parameter(DontShow)]
[Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Runtime')]
[System.Uri]
@@ -2047,14 +1821,9 @@ begin {
}
$mapping = @{
- Create = 'Az.HdInsightOnAks.private\New-AzHdInsightOnAksClusterPool_Create';
- CreateExpanded = 'Az.HdInsightOnAks.private\New-AzHdInsightOnAksClusterPool_CreateExpanded';
- CreateViaIdentity = 'Az.HdInsightOnAks.private\New-AzHdInsightOnAksClusterPool_CreateViaIdentity';
- CreateViaIdentityExpanded = 'Az.HdInsightOnAks.private\New-AzHdInsightOnAksClusterPool_CreateViaIdentityExpanded';
- CreateViaJsonFilePath = 'Az.HdInsightOnAks.private\New-AzHdInsightOnAksClusterPool_CreateViaJsonFilePath';
- CreateViaJsonString = 'Az.HdInsightOnAks.private\New-AzHdInsightOnAksClusterPool_CreateViaJsonString';
+ List = 'Az.HdInsightOnAks.private\Get-AzHdInsightOnAksClusterServiceConfig_List';
}
- if (('Create', 'CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
+ if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
$testPlayback = $false
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
if ($testPlayback) {
@@ -2115,67 +1884,2001 @@ end {
<#
.Synopsis
-Create a cluster.
+Returns a list of upgrade history.
.Description
-Create a cluster.
+Returns a list of upgrade history.
.Example
-# Create Simple Trino Cluster
-$clusterPoolName="{your cluster pool name}";
-$resourceGroupName="{your resource group name}";
-$location="West US 2";
+$resourceGroupName = "resourceGroupName"
+$clusterPoolName = "clusterPoolName"
+$clusterName = "clusterName"
+Get-AzHdInsightOnAksClusterUpgradeHistory -ResourceGroupName $resourceGroupName -ClusterPoolName $clusterPoolName -ClusterName $clusterName
-$clusterType="Trino"
-# Get available cluster version based the command Get-AzHdInsightOnAksAvailableClusterVersion
-$clusterVersion= (Get-AzHdInsightOnAksAvailableClusterVersion -Location $location | Where-Object {$_.ClusterType -eq $clusterType})[0]
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterUpgradeHistory
+.Link
+https://learn.microsoft.com/powershell/module/az.hdinsightonaks/get-azhdinsightonaksclusterupgradehistory
+#>
+function Get-AzHdInsightOnAksClusterUpgradeHistory {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterUpgradeHistory])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+param(
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Path')]
+ [System.String]
+ # The name of the HDInsight cluster.
+ ${ClusterName},
-$msiResourceId="/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/{your resource group name}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{your msi}";
-$msiClientId="00000000-0000-0000-0000-000000000000";
-$msiObjectId="00000000-0000-0000-0000-000000000000";
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Path')]
+ [System.String]
+ # The name of the cluster pool.
+ ${ClusterPoolName},
-$userId="00000000-0000-0000-0000-000000000000";
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
-# create node profile
-$vmSize="Standard_E8ads_v5";
-$workerCount=5;
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The ID of the target subscription.
+ # The value must be an UUID.
+ ${SubscriptionId},
-$nodeProfile = New-AzHdInsightOnAksNodeProfileObject -Type Worker -Count $workerCount -VMSize $vmSize
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
+ ${DefaultProfile},
-$clusterName="{your cluster name}";
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
-New-AzHdInsightOnAksCluster -Name $clusterName `
- -PoolName $clusterPoolName `
- -ResourceGroupName $resourceGroupName `
- -Location $location `
- -ClusterType $clusterType `
- -ClusterVersion $clusterVersion.ClusterVersionValue `
- -OssVersion $clusterVersion.OssVersion `
- -AssignedIdentityResourceId $msiResourceId `
- -AssignedIdentityClientId $msiClientId `
- -AssignedIdentityObjectId $msiObjectId `
- -ComputeProfileNode $nodeProfile `
- -AuthorizationUserId $userId
-.Example
-# Create trino cluster with Hive catalog
-$clusterPoolName="{your cluster pool name}";
-$resourceGroupName="{your resource group name}";
-$location="West US 2";
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
-$clusterType="Trino"
-# Get available cluster version based the command Get-AzHdInsightOnAksAvailableClusterVersion
-$clusterVersion= (Get-AzHdInsightOnAksAvailableClusterVersion -Location $location | Where-Object {$_.ClusterType -eq $clusterType})[0]
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
-# user msi related parameters
-$msiResourceId="/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/{your resource group name}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{your msi}";
-$msiClientId="00000000-0000-0000-0000-000000000000";
-$msiObjectId="00000000-0000-0000-0000-000000000000";
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
-# cluster authorization information
-$userId="00000000-0000-0000-0000-000000000000";
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
-# create node profile
-$vmSize="Standard_E8ads_v5";
-$workerCount=5;
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ List = 'Az.HdInsightOnAks.private\Get-AzHdInsightOnAksClusterUpgradeHistory_List';
+ }
+ if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
+
+<#
+.Synopsis
+Gets a HDInsight cluster.
+.Description
+Gets a HDInsight cluster.
+.Example
+$clusterResourceGroupName = "your-resourceGroup"
+$clusterpoolName = "your-clusterpool"
+Get-AzHdInsightOnAksCluster -ResourceGroupName $clusterResourceGroupName -PoolName $clusterpoolName
+.Example
+$clusterResourceGroupName = "your-resourceGroup"
+$clusterpoolName = "your-clusterpool"
+$clusterName = "your-clustername"
+Get-AzHdInsightOnAksCluster -ResourceGroupName $clusterResourceGroupName -PoolName $clusterpoolName -Name $clusterName
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IHdInsightOnAksIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ICluster
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+CLUSTERPOOLINPUTOBJECT : Identity Parameter
+ [ClusterName ]: The name of the HDInsight cluster.
+ [ClusterPoolName ]: The name of the cluster pool.
+ [Id ]: Resource identity path
+ [Location ]: The name of the Azure region.
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
+
+INPUTOBJECT : Identity Parameter
+ [ClusterName ]: The name of the HDInsight cluster.
+ [ClusterPoolName ]: The name of the cluster pool.
+ [Id ]: Resource identity path
+ [Location ]: The name of the Azure region.
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
+.Link
+https://learn.microsoft.com/powershell/module/az.hdinsightonaks/get-azhdinsightonakscluster
+#>
+function Get-AzHdInsightOnAksCluster {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ICluster])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+param(
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='GetViaIdentityClusterpool', Mandatory)]
+ [Alias('ClusterName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Path')]
+ [System.String]
+ # The name of the HDInsight cluster.
+ ${Name},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Alias('ClusterPoolName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Path')]
+ [System.String]
+ # The name of the cluster pool.
+ ${PoolName},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='Get')]
+ [Parameter(ParameterSetName='List')]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The ID of the target subscription.
+ # The value must be an UUID.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IHdInsightOnAksIdentity]
+ # Identity Parameter
+ ${InputObject},
+
+ [Parameter(ParameterSetName='GetViaIdentityClusterpool', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IHdInsightOnAksIdentity]
+ # Identity Parameter
+ ${ClusterpoolInputObject},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ Get = 'Az.HdInsightOnAks.private\Get-AzHdInsightOnAksCluster_Get';
+ GetViaIdentity = 'Az.HdInsightOnAks.private\Get-AzHdInsightOnAksCluster_GetViaIdentity';
+ GetViaIdentityClusterpool = 'Az.HdInsightOnAks.private\Get-AzHdInsightOnAksCluster_GetViaIdentityClusterpool';
+ List = 'Az.HdInsightOnAks.private\Get-AzHdInsightOnAksCluster_List';
+ }
+ if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
+
+<#
+.Synopsis
+Manual rollback upgrade for a cluster.
+.Description
+Manual rollback upgrade for a cluster.
+.Example
+$clusterResourceGroupName = "Group"
+$clusterpoolName = "ps-test-pool"
+$clusterName = "cluster"
+Invoke-AzHdInsightOnAksClusterManualRollback -ResourceGroupName $clusterResourceGroupName -ClusterName $clusterName -ClusterPoolName $clusterpoolName -UpgradeHistory /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/devrp/providers/Microsoft.HDInsight/clusterpools/pool/clusters/cluster202458152055/upgradeHistories/05_11_2024_06_41_26_AM-AKSPatchUpgrade
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterUpgradeRollback
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IHdInsightOnAksIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ICluster
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+CLUSTERPOOLINPUTOBJECT : Identity Parameter
+ [ClusterName ]: The name of the HDInsight cluster.
+ [ClusterPoolName ]: The name of the cluster pool.
+ [Id ]: Resource identity path
+ [Location ]: The name of the Azure region.
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
+
+CLUSTERROLLBACKUPGRADEREQUEST : Cluster Upgrade.
+ UpgradeHistory : A specific upgrade history to rollback
+
+INPUTOBJECT : Identity Parameter
+ [ClusterName ]: The name of the HDInsight cluster.
+ [ClusterPoolName ]: The name of the cluster pool.
+ [Id ]: Resource identity path
+ [Location ]: The name of the Azure region.
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
+.Link
+https://learn.microsoft.com/powershell/module/az.hdinsightonaks/invoke-azhdinsightonaksclustermanualrollback
+#>
+function Invoke-AzHdInsightOnAksClusterManualRollback {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ICluster])]
+[CmdletBinding(DefaultParameterSetName='UpgradeExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(ParameterSetName='Upgrade', Mandatory)]
+ [Parameter(ParameterSetName='UpgradeExpanded', Mandatory)]
+ [Parameter(ParameterSetName='UpgradeViaIdentityClusterpool', Mandatory)]
+ [Parameter(ParameterSetName='UpgradeViaIdentityClusterpoolExpanded', Mandatory)]
+ [Parameter(ParameterSetName='UpgradeViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='UpgradeViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Path')]
+ [System.String]
+ # The name of the HDInsight cluster.
+ ${ClusterName},
+
+ [Parameter(ParameterSetName='Upgrade', Mandatory)]
+ [Parameter(ParameterSetName='UpgradeExpanded', Mandatory)]
+ [Parameter(ParameterSetName='UpgradeViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='UpgradeViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Path')]
+ [System.String]
+ # The name of the cluster pool.
+ ${ClusterPoolName},
+
+ [Parameter(ParameterSetName='Upgrade', Mandatory)]
+ [Parameter(ParameterSetName='UpgradeExpanded', Mandatory)]
+ [Parameter(ParameterSetName='UpgradeViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='UpgradeViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='Upgrade')]
+ [Parameter(ParameterSetName='UpgradeExpanded')]
+ [Parameter(ParameterSetName='UpgradeViaJsonFilePath')]
+ [Parameter(ParameterSetName='UpgradeViaJsonString')]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # The ID of the target subscription.
+ # The value must be an UUID.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='UpgradeViaIdentity', Mandatory, ValueFromPipeline)]
+ [Parameter(ParameterSetName='UpgradeViaIdentityExpanded', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IHdInsightOnAksIdentity]
+ # Identity Parameter
+ ${InputObject},
+
+ [Parameter(ParameterSetName='UpgradeViaIdentityClusterpool', Mandatory, ValueFromPipeline)]
+ [Parameter(ParameterSetName='UpgradeViaIdentityClusterpoolExpanded', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IHdInsightOnAksIdentity]
+ # Identity Parameter
+ ${ClusterpoolInputObject},
+
+ [Parameter(ParameterSetName='Upgrade', Mandatory, ValueFromPipeline)]
+ [Parameter(ParameterSetName='UpgradeViaIdentity', Mandatory, ValueFromPipeline)]
+ [Parameter(ParameterSetName='UpgradeViaIdentityClusterpool', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterUpgradeRollback]
+ # Cluster Upgrade.
+ ${ClusterRollbackUpgradeRequest},
+
+ [Parameter(ParameterSetName='UpgradeExpanded', Mandatory)]
+ [Parameter(ParameterSetName='UpgradeViaIdentityClusterpoolExpanded', Mandatory)]
+ [Parameter(ParameterSetName='UpgradeViaIdentityExpanded', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Body')]
+ [System.String]
+ # A specific upgrade history to rollback
+ ${UpgradeHistory},
+
+ [Parameter(ParameterSetName='UpgradeViaJsonFilePath', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Body')]
+ [System.String]
+ # Path of Json file supplied to the Upgrade operation
+ ${JsonFilePath},
+
+ [Parameter(ParameterSetName='UpgradeViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Body')]
+ [System.String]
+ # Json string supplied to the Upgrade operation
+ ${JsonString},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ Upgrade = 'Az.HdInsightOnAks.private\Invoke-AzHdInsightOnAksClusterManualRollback_Upgrade';
+ UpgradeExpanded = 'Az.HdInsightOnAks.private\Invoke-AzHdInsightOnAksClusterManualRollback_UpgradeExpanded';
+ UpgradeViaIdentity = 'Az.HdInsightOnAks.private\Invoke-AzHdInsightOnAksClusterManualRollback_UpgradeViaIdentity';
+ UpgradeViaIdentityClusterpool = 'Az.HdInsightOnAks.private\Invoke-AzHdInsightOnAksClusterManualRollback_UpgradeViaIdentityClusterpool';
+ UpgradeViaIdentityClusterpoolExpanded = 'Az.HdInsightOnAks.private\Invoke-AzHdInsightOnAksClusterManualRollback_UpgradeViaIdentityClusterpoolExpanded';
+ UpgradeViaIdentityExpanded = 'Az.HdInsightOnAks.private\Invoke-AzHdInsightOnAksClusterManualRollback_UpgradeViaIdentityExpanded';
+ UpgradeViaJsonFilePath = 'Az.HdInsightOnAks.private\Invoke-AzHdInsightOnAksClusterManualRollback_UpgradeViaJsonFilePath';
+ UpgradeViaJsonString = 'Az.HdInsightOnAks.private\Invoke-AzHdInsightOnAksClusterManualRollback_UpgradeViaJsonString';
+ }
+ if (('Upgrade', 'UpgradeExpanded', 'UpgradeViaJsonFilePath', 'UpgradeViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
+
+<#
+.Synopsis
+Upgrade a cluster pool.
+.Description
+Upgrade a cluster pool.
+.Example
+$clusterResourceGroupName = "Group"
+$clusterpoolName = "your-clusterpool"
+Invoke-AzHdInsightOnAksClusterPoolUpgrade -ResourceGroupName $clusterResourceGroupName -ClusterPoolName $clusterpoolName -UpgradeType NodeOsUpgrade
+.Example
+$clusterResourceGroupName = "Group"
+$clusterpoolName = "your-clusterpool"
+$upgradeObj = New-AzHdInsightOnAksClusterPoolAksPatchVersionUpgradeObject -TargetAksVersion "1.27.9" -UpgradeClusterPool $true
+Invoke-AzHdInsightOnAksClusterPoolUpgrade -ResourceGroupName $clusterResourceGroupName -ClusterPoolName $clusterpoolName -ClusterPoolUpgradeRequest $upgradeObj
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterPoolUpgrade
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IHdInsightOnAksIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterPool
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+CLUSTERPOOLUPGRADEREQUEST : Cluster Pool Upgrade.
+ UpgradeType : Type of upgrade.
+
+INPUTOBJECT : Identity Parameter
+ [ClusterName ]: The name of the HDInsight cluster.
+ [ClusterPoolName ]: The name of the cluster pool.
+ [Id ]: Resource identity path
+ [Location ]: The name of the Azure region.
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
+.Link
+https://learn.microsoft.com/powershell/module/az.hdinsightonaks/invoke-azhdinsightonaksclusterpoolupgrade
+#>
+function Invoke-AzHdInsightOnAksClusterPoolUpgrade {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterPool])]
+[CmdletBinding(DefaultParameterSetName='UpgradeExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(ParameterSetName='Upgrade', Mandatory)]
+ [Parameter(ParameterSetName='UpgradeExpanded', Mandatory)]
+ [Parameter(ParameterSetName='UpgradeViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='UpgradeViaJsonString', Mandatory)]
+ [Alias('ClusterPoolName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Path')]
+ [System.String]
+ # The name of the cluster pool.
+ ${Name},
+
+ [Parameter(ParameterSetName='Upgrade', Mandatory)]
+ [Parameter(ParameterSetName='UpgradeExpanded', Mandatory)]
+ [Parameter(ParameterSetName='UpgradeViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='UpgradeViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='Upgrade')]
+ [Parameter(ParameterSetName='UpgradeExpanded')]
+ [Parameter(ParameterSetName='UpgradeViaJsonFilePath')]
+ [Parameter(ParameterSetName='UpgradeViaJsonString')]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # The ID of the target subscription.
+ # The value must be an UUID.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='UpgradeViaIdentity', Mandatory, ValueFromPipeline)]
+ [Parameter(ParameterSetName='UpgradeViaIdentityExpanded', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IHdInsightOnAksIdentity]
+ # Identity Parameter
+ ${InputObject},
+
+ [Parameter(ParameterSetName='Upgrade', Mandatory, ValueFromPipeline)]
+ [Parameter(ParameterSetName='UpgradeViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterPoolUpgrade]
+ # Cluster Pool Upgrade.
+ ${ClusterPoolUpgradeRequest},
+
+ [Parameter(ParameterSetName='UpgradeExpanded', Mandatory)]
+ [Parameter(ParameterSetName='UpgradeViaIdentityExpanded', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.PSArgumentCompleterAttribute("AKSPatchUpgrade", "NodeOsUpgrade")]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Body')]
+ [System.String]
+ # Type of upgrade.
+ ${UpgradeType},
+
+ [Parameter(ParameterSetName='UpgradeViaJsonFilePath', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Body')]
+ [System.String]
+ # Path of Json file supplied to the Upgrade operation
+ ${JsonFilePath},
+
+ [Parameter(ParameterSetName='UpgradeViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Body')]
+ [System.String]
+ # Json string supplied to the Upgrade operation
+ ${JsonString},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ Upgrade = 'Az.HdInsightOnAks.private\Invoke-AzHdInsightOnAksClusterPoolUpgrade_Upgrade';
+ UpgradeExpanded = 'Az.HdInsightOnAks.private\Invoke-AzHdInsightOnAksClusterPoolUpgrade_UpgradeExpanded';
+ UpgradeViaIdentity = 'Az.HdInsightOnAks.private\Invoke-AzHdInsightOnAksClusterPoolUpgrade_UpgradeViaIdentity';
+ UpgradeViaIdentityExpanded = 'Az.HdInsightOnAks.private\Invoke-AzHdInsightOnAksClusterPoolUpgrade_UpgradeViaIdentityExpanded';
+ UpgradeViaJsonFilePath = 'Az.HdInsightOnAks.private\Invoke-AzHdInsightOnAksClusterPoolUpgrade_UpgradeViaJsonFilePath';
+ UpgradeViaJsonString = 'Az.HdInsightOnAks.private\Invoke-AzHdInsightOnAksClusterPoolUpgrade_UpgradeViaJsonString';
+ }
+ if (('Upgrade', 'UpgradeExpanded', 'UpgradeViaJsonFilePath', 'UpgradeViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
+
+<#
+.Synopsis
+Upgrade a cluster.
+.Description
+Upgrade a cluster.
+.Example
+$clusterResourceGroupName = "Group"
+$clusterpoolName = "ps-test-pool"
+$clusterName = "flinkcluster"
+$hotfixObj = New-AzHdInsightOnAksClusterHotfixUpgradeObject -ComponentName Webssh -TargetBuildNumber 7 -TargetClusterVersion "1.1.1" -TargetOssVersion "0.4.2"
+Invoke-AzHdInsightOnAksClusterUpgrade -ResourceGroupName $clusterResourceGroupName -ClusterName $clusterName -ClusterPoolName $clusterpoolName -ClusterUpgradeRequest $hotfixObj
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterUpgrade
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IHdInsightOnAksIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ICluster
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+CLUSTERPOOLINPUTOBJECT : Identity Parameter
+ [ClusterName ]: The name of the HDInsight cluster.
+ [ClusterPoolName ]: The name of the cluster pool.
+ [Id ]: Resource identity path
+ [Location ]: The name of the Azure region.
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
+
+CLUSTERUPGRADEREQUEST : Cluster Upgrade.
+ UpgradeType : Type of upgrade.
+
+INPUTOBJECT