diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/Az.HdInsightOnAks.format.ps1xml b/src/HdInsightOnAks/HdInsightOnAks.Autorest/Az.HdInsightOnAks.format.ps1xml
index 04bcc3ef12b3..82e201d65728 100644
--- a/src/HdInsightOnAks/HdInsightOnAks.Autorest/Az.HdInsightOnAks.format.ps1xml
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/Az.HdInsightOnAks.format.ps1xml
@@ -97,6 +97,286 @@
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterAccessProfile
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterAccessProfile#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ EnableInternalIngress
+
+
+ PrivateLinkServiceId
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterAksPatchVersionUpgradeProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterAksPatchVersionUpgradeProperties#Multiple
+
+
+
+
+
+
+
+
+
+
+
+ UpgradeType
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterAvailableUpgrade
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterAvailableUpgrade#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ SystemDataCreatedAt
+
+
+ SystemDataCreatedBy
+
+
+ SystemDataCreatedByType
+
+
+ SystemDataLastModifiedAt
+
+
+ SystemDataLastModifiedBy
+
+
+ SystemDataLastModifiedByType
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterAvailableUpgradeAksPatchUpgradeProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterAvailableUpgradeAksPatchUpgradeProperties#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ UpgradeType
+
+
+ CurrentVersion
+
+
+ CurrentVersionStatus
+
+
+ LatestVersion
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterAvailableUpgradeHotfixUpgradeProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterAvailableUpgradeHotfixUpgradeProperties#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ UpgradeType
+
+
+ ComponentName
+
+
+ CreatedTime
+
+
+ Description
+
+
+ ExtendedProperty
+
+
+ Severity
+
+
+ SourceBuildNumber
+
+
+ SourceClusterVersion
+
+
+ SourceOssVersion
+
+
+ TargetBuildNumber
+
+
+ TargetClusterVersion
+
+
+ TargetOssVersion
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterAvailableUpgradeList
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterAvailableUpgradeList#Multiple
+
+
+
+
+
+
+
+
+
+
+
+ NextLink
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterAvailableUpgradeProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterAvailableUpgradeProperties#Multiple
+
+
+
+
+
+
+
+
+
+
+
+ UpgradeType
+
+
+
+
+
+
Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterComponentsItem
@@ -187,6 +467,52 @@
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterHotfixUpgradeProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterHotfixUpgradeProperties#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ UpgradeType
+
+
+ ComponentName
+
+
+ TargetBuildNumber
+
+
+ TargetClusterVersion
+
+
+ TargetOssVersion
+
+
+
+
+
+
Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterInstanceViewPropertiesStatus
@@ -498,15 +824,74 @@
- Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterPatch
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterPatchTags
- Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterPatch#Multiple
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterPatchTags#Multiple
-
+
+
+
+
+
+
+ Item
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterPoolAksPatchVersionUpgradeProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterPoolAksPatchVersionUpgradeProperties#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ UpgradeType
+
+
+ TargetAksVersion
+
+
+ UpgradeAllClusterNode
+
+
+ UpgradeClusterPool
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterPoolAvailableUpgrade
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterPoolAvailableUpgrade#Multiple
+
+
+
@@ -532,9 +917,6 @@
-
- Location
-
Name
@@ -561,6 +943,118 @@
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterPoolAvailableUpgradeAksPatchUpgradeProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterPoolAvailableUpgradeAksPatchUpgradeProperties#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ UpgradeType
+
+
+ CurrentVersion
+
+
+ CurrentVersionStatus
+
+
+ LatestVersion
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterPoolAvailableUpgradeList
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterPoolAvailableUpgradeList#Multiple
+
+
+
+
+
+
+
+
+
+
+
+ NextLink
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterPoolAvailableUpgradeNodeOSUpgradeProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterPoolAvailableUpgradeNodeOSUpgradeProperties#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ UpgradeType
+
+
+ LatestVersion
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterPoolAvailableUpgradeProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterPoolAvailableUpgradeProperties#Multiple
+
+
+
+
+
+
+
+
+
+
+
+ UpgradeType
+
+
+
+
+
+
Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterPoolComputeProfile
@@ -624,6 +1118,12 @@
+
+
+
+
+
+
@@ -631,6 +1131,12 @@
+
+ EnablePrivateApiServer
+
+
+ OutboundType
+
SubnetId
@@ -639,6 +1145,28 @@
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterPoolNodeOSImageUpdateProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterPoolNodeOSImageUpdateProperties#Multiple
+
+
+
+
+
+
+
+
+
+
+
+ UpgradeType
+
+
+
+
+
+
Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterPoolProfile
@@ -838,6 +1366,12 @@
+
+
+
+
+
+
@@ -845,6 +1379,12 @@
+
+ EnablePrivateApiServer
+
+
+ OutboundType
+
SubnetId
@@ -853,6 +1393,28 @@
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterPoolUpgradeProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterPoolUpgradeProperties#Multiple
+
+
+
+
+
+
+
+
+
+
+
+ UpgradeType
+
+
+
+
+
+
Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterPoolVersionProperties
@@ -912,25 +1474,47 @@
Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterProfile
- Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterProfile#Multiple
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterProfile#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ClusterVersion
+
+
+ OssVersion
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterPrometheusProfile
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterPrometheusProfile#Multiple
-
-
-
-
+
- ClusterVersion
-
-
- OssVersion
+ Enabled
@@ -938,9 +1522,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterPrometheusProfile
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterRangerPluginProfile
- Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterPrometheusProfile#Multiple
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterRangerPluginProfile#Multiple
@@ -1107,6 +1691,28 @@
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterUpgradeProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterUpgradeProperties#Multiple
+
+
+
+
+
+
+
+
+
+
+
+ UpgradeType
+
+
+
+
+
+
Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterVersionProperties
@@ -1241,6 +1847,9 @@
+
+
+
@@ -1248,6 +1857,37 @@
Fqdn
+
+ PrivateFqdn
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.DiskStorageProfile
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.DiskStorageProfile#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ DataDiskSize
+
+
+ DataDiskType
+
@@ -1294,6 +1934,9 @@
+
+
+
@@ -1307,6 +1950,9 @@
+
+ MetastoreDbConnectionAuthenticationMode
+
MetastoreDbConnectionPasswordSecret
@@ -1321,6 +1967,58 @@
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.FlinkJobProfile
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.FlinkJobProfile#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Arg
+
+
+ EntryClass
+
+
+ JarName
+
+
+ JobJarDirectory
+
+
+ SavePointName
+
+
+ UpgradeMode
+
+
+
+
+
+
Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.FlinkJobProperties
@@ -1361,6 +2059,9 @@
+
+
+
@@ -1404,6 +2105,9 @@
LastSavePoint
+
+ RunId
+
SavePointName
@@ -1444,6 +2148,9 @@
+
+
+
@@ -1451,6 +2158,9 @@
+
+ DeploymentMode
+
NumReplica
@@ -1543,6 +2253,9 @@
+
+
+
@@ -1562,6 +2275,9 @@
CatalogName
+
+ MetastoreDbConnectionAuthenticationMode
+
MetastoreDbConnectionPasswordSecret
@@ -1613,6 +2329,62 @@
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.KafkaConnectivityEndpoints
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.KafkaConnectivityEndpoints#Multiple
+
+
+
+
+
+
+
+
+
+
+
+ BootstrapServerEndpoint
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.KafkaProfile
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.KafkaProfile#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ EnableKRaft
+
+
+ EnablePublicEndpoint
+
+
+ RemoteStorageUri
+
+
+
+
+
+
Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.LoadBasedConfig
@@ -1897,6 +2669,102 @@
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.RangerAdminSpecDatabase
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.RangerAdminSpecDatabase#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Host
+
+
+ Name
+
+
+ PasswordSecretRef
+
+
+ Username
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.RangerAuditSpec
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.RangerAuditSpec#Multiple
+
+
+
+
+
+
+
+
+
+
+
+ StorageAccount
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.RangerUsersyncSpec
+
+ Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.RangerUsersyncSpec#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Enabled
+
+
+ Mode
+
+
+ UserMappingLocation
+
+
+
+
+
+
Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.Resource
@@ -2322,6 +3190,9 @@
+
+
+
@@ -2344,6 +3215,9 @@
+
+ DbConnectionAuthenticationMode
+
DbName
@@ -2421,6 +3295,9 @@
+
+
+
@@ -2428,6 +3305,9 @@
Endpoint
+
+ PrivateSshEndpoint
+
@@ -2761,6 +3641,9 @@
+
+
+
@@ -2768,6 +3651,9 @@
Fqdn
+
+ PrivateFqdn
+
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/Az.HdInsightOnAks.psd1 b/src/HdInsightOnAks/HdInsightOnAks.Autorest/Az.HdInsightOnAks.psd1
index e0624b5e8352..108bbef45f77 100644
--- a/src/HdInsightOnAks/HdInsightOnAks.Autorest/Az.HdInsightOnAks.psd1
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/Az.HdInsightOnAks.psd1
@@ -1,153 +1,23 @@
-#
-# Module manifest for module 'Az.HdInsightOnAks'
-#
-# Generated by: Microsoft Corporation
-#
-# Generated on: 9/19/2023
-#
-
@{
-
-# Script module or binary module file associated with this manifest.
-RootModule = './Az.HdInsightOnAks.psm1'
-
-# Version number of this module.
-ModuleVersion = '0.1.0'
-
-# Supported PSEditions
-CompatiblePSEditions = 'Core', 'Desktop'
-
-# ID used to uniquely identify this module
-GUID = '5d9ea51e-3614-409d-b09a-9188a642e11c'
-
-# Author of this module
-Author = 'Microsoft Corporation'
-
-# Company or vendor of this module
-CompanyName = 'Microsoft Corporation'
-
-# Copyright statement for this module
-Copyright = 'Microsoft Corporation. All rights reserved.'
-
-# Description of the functionality provided by this module
-Description = 'Microsoft Azure PowerShell: HdInsightOnAks cmdlets'
-
-# Minimum version of the PowerShell engine required by this module
-PowerShellVersion = '5.1'
-
-# Name of the PowerShell host required by this module
-# PowerShellHostName = ''
-
-# Minimum version of the PowerShell host required by this module
-# PowerShellHostVersion = ''
-
-# Minimum version of Microsoft .NET Framework required by this module. This prerequisite is valid for the PowerShell Desktop edition only.
-DotNetFrameworkVersion = '4.7.2'
-
-# Minimum version of the common language runtime (CLR) required by this module. This prerequisite is valid for the PowerShell Desktop edition only.
-# ClrVersion = ''
-
-# Processor architecture (None, X86, Amd64) required by this module
-# ProcessorArchitecture = ''
-
-# Modules that must be imported into the global environment prior to importing this module
-RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.13.0'; })
-
-# Assemblies that must be loaded prior to importing this module
-RequiredAssemblies = './bin/Az.HdInsightOnAks.private.dll'
-
-# Script files (.ps1) that are run in the caller's environment prior to importing this module.
-# ScriptsToProcess = @()
-
-# Type files (.ps1xml) to be loaded when importing this module
-# TypesToProcess = @()
-
-# Format files (.ps1xml) to be loaded when importing this module
-FormatsToProcess = './Az.HdInsightOnAks.format.ps1xml'
-
-# Modules to import as nested modules of the module specified in RootModule/ModuleToProcess
-# NestedModules = @()
-
-# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export.
-FunctionsToExport = 'Get-AzHdInsightOnAksAvailableClusterPoolVersion',
- 'Get-AzHdInsightOnAksAvailableClusterVersion',
- 'Get-AzHdInsightOnAksCluster',
- 'Get-AzHdInsightOnAksClusterInstanceView',
- 'Get-AzHdInsightOnAksClusterJob', 'Get-AzHdInsightOnAksClusterPool',
- 'Get-AzHdInsightOnAksClusterServiceConfig',
- 'New-AzHdInsightOnAksCluster',
- 'New-AzHdInsightOnAksClusterConfigFileObject',
- 'New-AzHdInsightOnAksClusterPool',
- '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-AzHdInsightOnAksClusterPoolTag'
-
-# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export.
-CmdletsToExport = @()
-
-# Variables to export from this module
-# VariablesToExport = @()
-
-# Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export.
-AliasesToExport = @()
-
-# DSC resources to export from this module
-# DscResourcesToExport = @()
-
-# List of all modules packaged with this module
-# ModuleList = @()
-
-# List of all files packaged with this module
-# FileList = @()
-
-# Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell.
-PrivateData = @{
-
+ GUID = '5d9ea51e-3614-409d-b09a-9188a642e11c'
+ RootModule = './Az.HdInsightOnAks.psm1'
+ ModuleVersion = '0.1.0'
+ CompatiblePSEditions = 'Core', 'Desktop'
+ Author = 'Microsoft Corporation'
+ CompanyName = 'Microsoft Corporation'
+ Copyright = 'Microsoft Corporation. All rights reserved.'
+ Description = 'Microsoft Azure PowerShell: HdInsightOnAks cmdlets'
+ PowerShellVersion = '5.1'
+ 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'
+ PrivateData = @{
PSData = @{
-
- # Tags applied to this module. These help with module discovery in online galleries.
- Tags = 'Azure','ResourceManager','ARM','PSModule','HdInsightOnAks'
-
- # A URL to the license for this module.
- LicenseUri = 'https://aka.ms/azps-license'
-
- # A URL to the main website for this project.
- ProjectUri = 'https://github.com/Azure/azure-powershell'
-
- # A URL to an icon representing this module.
- # IconUri = ''
-
- # ReleaseNotes of this module
- # ReleaseNotes = ''
-
- # Prerelease string of this module
- # Prerelease = ''
-
- # Flag to indicate whether the module requires explicit user acceptance for install/update/save
- # RequireLicenseAcceptance = $false
-
- # External dependent modules of this module
- # ExternalModuleDependencies = @()
-
- } # End of PSData hashtable
-
- } # End of PrivateData hashtable
-
-# HelpInfo URI of this module
-# HelpInfoURI = ''
-
-# Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix.
-# DefaultCommandPrefix = ''
-
+ Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'HdInsightOnAks'
+ LicenseUri = 'https://aka.ms/azps-license'
+ ProjectUri = 'https://github.com/Azure/azure-powershell'
+ ReleaseNotes = ''
+ }
+ }
}
-
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/Az.HdInsightOnAks.psm1 b/src/HdInsightOnAks/HdInsightOnAks.Autorest/Az.HdInsightOnAks.psm1
index e0b691b16335..1c74566d1a02 100644
--- a/src/HdInsightOnAks/HdInsightOnAks.Autorest/Az.HdInsightOnAks.psm1
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/Az.HdInsightOnAks.psm1
@@ -47,37 +47,41 @@
# Ask for the shared functionality table
$VTable = Register-AzModule
-
+
# Tweaks the pipeline on module load
$instance.OnModuleLoad = $VTable.OnModuleLoad
# Following two delegates are added for telemetry
$instance.GetTelemetryId = $VTable.GetTelemetryId
$instance.Telemetry = $VTable.Telemetry
-
+
+ # Delegate to sanitize the output object
+ $instance.SanitizeOutput = $VTable.SanitizerHandler
+
+ # Delegate to get the telemetry info
+ $instance.GetTelemetryInfo = $VTable.GetTelemetryInfo
# Tweaks the pipeline per call
$instance.OnNewRequest = $VTable.OnNewRequest
-
+
# Gets shared parameter values
$instance.GetParameterValue = $VTable.GetParameterValue
-
+
# Allows shared module to listen to events from this module
$instance.EventListener = $VTable.EventListener
-
+
# Gets shared argument completers
$instance.ArgumentCompleter = $VTable.ArgumentCompleter
-
+
# The name of the currently selected Azure profile
$instance.ProfileName = $VTable.ProfileName
-
# Load the custom module
$customModulePath = Join-Path $PSScriptRoot './custom/Az.HdInsightOnAks.custom.psm1'
if(Test-Path $customModulePath) {
$null = Import-Module -Name $customModulePath
}
-
+
# Export nothing to clear implicit exports
Export-ModuleMember
@@ -97,12 +101,12 @@
# Load the last folder if no profile is selected
$profileDirectory = $directories | Select-Object -Last 1
}
-
+
if($profileDirectory) {
Write-Information "Loaded Azure profile '$($profileDirectory.Name)' for module '$($instance.Name)'"
$exportsPath = $profileDirectory.FullName
}
-
+
if($exportsPath) {
Get-ChildItem -Path $exportsPath -Recurse -Include '*.ps1' -File | ForEach-Object { . $_.FullName }
$cmdletNames = Get-ScriptCmdlet -ScriptFolder $exportsPath
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/README.md b/src/HdInsightOnAks/HdInsightOnAks.Autorest/README.md
index 6cc2def66b47..3b67cdc1bc18 100644
--- a/src/HdInsightOnAks/HdInsightOnAks.Autorest/README.md
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/README.md
@@ -3,7 +3,6 @@
This directory contains the PowerShell module for the HdInsightOnAks service.
---
-
## Info
- Modifiable: yes
- Generated: all
@@ -47,14 +46,12 @@ In this directory, run AutoRest:
### General settings
> Values
``` yaml
-branch: f09aacf4c6b63be416212cb182f6b31e8bc6d545
+tag: package-preview-2023-11
+commit: 754d31188c080f20b8155acdf8b8fbd77dace467
require:
- - $(this-folder)/../readme.azure.noprofile.md
+ - $(this-folder)/../../readme.azure.noprofile.md
- $(repo)/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/readme.md
-
-# input-file:
-# - D:\source\azure-rest-api-specs\specification\hdinsight\resource-manager\Microsoft.HDInsight\HDInsightOnAks\preview\2023-06-01-preview\hdinsight.json
-inlining-threshold: 100
+inlining-threshold: 200
```
> Names
@@ -73,8 +70,6 @@ default-exclude-tableview-properties: true
> Directives
``` yaml
identity-correction-for-post: true
-use-extension:
- "@autorest/powershell": "4.0.644"
directive:
- from: swagger-document
where: $.paths..responses.202
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 086221ae0f5f..6cf10ab2b65b 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-06-01-preview",
+ "apiVersion": "2023-11-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 e596c0454e84..20e46298e819 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-06-01-preview",
+ "apiVersion": "2023-11-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 c55391336710..bb280ced79ed 100644
--- a/src/HdInsightOnAks/HdInsightOnAks.Autorest/build-module.ps1
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/build-module.ps1
@@ -171,4 +171,10 @@ Export-TestStub -ModuleName $moduleName -ExportsFolder $exportsFolder -OutputFol
Write-Host -ForegroundColor Green 'Creating example stubs...'
Export-ExampleStub -ExportsFolder $exportsFolder -OutputFolder $examplesFolder
+if (Test-Path (Join-Path $PSScriptRoot 'generate-portal-ux.ps1'))
+{
+ Write-Host -ForegroundColor Green 'Creating ux metadata...'
+ . (Join-Path $PSScriptRoot 'generate-portal-ux.ps1')
+}
+
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
index a2bbbdfb7cd7..5e2582a48e65 100644
--- a/src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/New-AzHdInsightOnAksClusterConfigFileObject.ps1
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/New-AzHdInsightOnAksClusterConfigFileObject.ps1
@@ -24,7 +24,7 @@ https://learn.microsoft.com/powershell/module/az.hdinsightonaks/New-AzHdInsightO
#>
function New-AzHdInsightOnAksClusterConfigFileObject {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterConfigFile])]
- [CmdletBinding(DefaultParameterSetName = 'Create', PositionalBinding = $false, SupportsShouldProcess)]
+ [CmdletBinding(DefaultParameterSetName = 'Create', PositionalBinding = $false)]
param(
[Parameter(ParameterSetName = 'Create', Mandatory)]
[Alias('Name')]
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/New-AzHdInsightOnAksClusterHotfixUpgradeObject.ps1 b/src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/New-AzHdInsightOnAksClusterHotfixUpgradeObject.ps1
new file mode 100644
index 000000000000..406d40998a07
--- /dev/null
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/New-AzHdInsightOnAksClusterHotfixUpgradeObject.ps1
@@ -0,0 +1,68 @@
+# ----------------------------------------------------------------------------------
+#
+# 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 upgrade parameters.
+.Description
+Create an object to hold the cluster upgrade parameters.
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterUpgrade
+.Link
+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},
+
+ [Parameter(ParameterSetName = 'Create')]
+ [System.String]
+ # Target OSS version of component to be upgraded.
+ ${TargetOssVersion}
+ )
+ process {
+ try {
+ $hotfixProperty = New-Object Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterHotfixUpgradeProperties -Property `
+ @{ComponentName = $ComponentName;
+ TargetBuildNumber = $TargetBuildNumber;
+ TargetClusterVersion = $TargetClusterVersion;
+ TargetOssVersion = $TargetOssVersion;
+ }
+
+ $hotfixObject = New-Object Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterUpgrade -Property `
+ @{Property = $hotfixProperty }
+
+ return $hotfixObject
+ }
+ catch {
+ throw
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/New-AzHdInsightOnAksClusterPoolAKSUpgradeObject.ps1 b/src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/New-AzHdInsightOnAksClusterPoolAKSUpgradeObject.ps1
new file mode 100644
index 000000000000..84591367bd59
--- /dev/null
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/New-AzHdInsightOnAksClusterPoolAKSUpgradeObject.ps1
@@ -0,0 +1,62 @@
+# ----------------------------------------------------------------------------------
+#
+# 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-AzHdInsightOnAksClusterServiceConfigObject.ps1 b/src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/New-AzHdInsightOnAksClusterServiceConfigObject.ps1
index 739f6c8ec7e5..f4b21d4318e7 100644
--- a/src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/New-AzHdInsightOnAksClusterServiceConfigObject.ps1
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/New-AzHdInsightOnAksClusterServiceConfigObject.ps1
@@ -25,7 +25,7 @@ https://learn.microsoft.com/powershell/module/az.hdinsightonaks/New-AzHdInsightO
#>
function New-AzHdInsightOnAksClusterServiceConfigObject {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterServiceConfig])]
- [CmdletBinding(DefaultParameterSetName = 'Create', PositionalBinding = $false, SupportsShouldProcess)]
+ [CmdletBinding(DefaultParameterSetName = 'Create', PositionalBinding = $false)]
param(
[Parameter(ParameterSetName = 'Create', Mandatory)]
[Alias('Name')]
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/New-AzHdInsightOnAksClusterServiceConfigsProfileObject.ps1 b/src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/New-AzHdInsightOnAksClusterServiceConfigsProfileObject.ps1
index b3d2cb4fc52c..bb211cca4519 100644
--- a/src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/New-AzHdInsightOnAksClusterServiceConfigsProfileObject.ps1
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/New-AzHdInsightOnAksClusterServiceConfigsProfileObject.ps1
@@ -28,7 +28,7 @@ https://learn.microsoft.com/powershell/module/az.hdinsightonaks/New-AzHdInsightO
#>
function New-AzHdInsightOnAksClusterServiceConfigsProfileObject {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterServiceConfigsProfile])]
- [CmdletBinding(DefaultParameterSetName = 'Create', PositionalBinding = $false, SupportsShouldProcess)]
+ [CmdletBinding(DefaultParameterSetName = 'Create', PositionalBinding = $false)]
param(
[Parameter(ParameterSetName = 'Create', Mandatory)]
[Alias('Name')]
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/New-AzHdInsightOnAksFlinkJobObject.ps1 b/src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/New-AzHdInsightOnAksFlinkJobObject.ps1
index 440b77842f7c..bdde8b3dcaca 100644
--- a/src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/New-AzHdInsightOnAksFlinkJobObject.ps1
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/New-AzHdInsightOnAksFlinkJobObject.ps1
@@ -29,7 +29,7 @@ https://learn.microsoft.com/powershell/module/az.hdinsightonaks/New-AzHdInsightO
#>
function New-AzHdInsightOnAksFlinkJobObject{
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterJob])]
- [CmdletBinding(DefaultParameterSetName='Create', PositionalBinding=$false, SupportsShouldProcess)]
+ [CmdletBinding(DefaultParameterSetName='Create', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Create', Mandatory)]
[System.String]
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/New-AzHdInsightOnAksNodeProfileObject.ps1 b/src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/New-AzHdInsightOnAksNodeProfileObject.ps1
index f78da4d51fab..43d2ff8688ff 100644
--- a/src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/New-AzHdInsightOnAksNodeProfileObject.ps1
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/New-AzHdInsightOnAksNodeProfileObject.ps1
@@ -28,7 +28,7 @@ https://learn.microsoft.com/powershell/module/az.hdinsightonaks/New-AzHdInsightO
#>
function New-AzHdInsightOnAksNodeProfileObject {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.INodeProfile])]
- [CmdletBinding(DefaultParameterSetName = 'Create', PositionalBinding = $false, SupportsShouldProcess)]
+ [CmdletBinding(DefaultParameterSetName = 'Create', PositionalBinding = $false)]
param(
[Parameter(ParameterSetName = 'Create', Mandatory)]
[System.String]
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/New-AzHdInsightOnAksSecretReferenceObject.ps1 b/src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/New-AzHdInsightOnAksSecretReferenceObject.ps1
index 7148eb301118..6b89d21a880e 100644
--- a/src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/New-AzHdInsightOnAksSecretReferenceObject.ps1
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/New-AzHdInsightOnAksSecretReferenceObject.ps1
@@ -30,7 +30,7 @@ https://learn.microsoft.com/powershell/module/az.hdinsightonaks/New-AzHdInsightO
#>
function New-AzHdInsightOnAksSecretReferenceObject {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ISecretReference])]
- [CmdletBinding(DefaultParameterSetName = 'Create', PositionalBinding = $false, SupportsShouldProcess)]
+ [CmdletBinding(DefaultParameterSetName = 'Create', PositionalBinding = $false)]
param(
[Parameter(ParameterSetName = 'Create', Mandatory)]
[System.String]
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/New-AzHdInsightOnAksTrinoHiveCatalogObject.ps1 b/src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/New-AzHdInsightOnAksTrinoHiveCatalogObject.ps1
index 15479e26f60a..a3304033d4ac 100644
--- a/src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/New-AzHdInsightOnAksTrinoHiveCatalogObject.ps1
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/New-AzHdInsightOnAksTrinoHiveCatalogObject.ps1
@@ -32,7 +32,7 @@ https://learn.microsoft.com/powershell/module/az.hdinsightonaks/New-AzHdInsightO
#>
function New-AzHdInsightOnAksTrinoHiveCatalogObject {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IHiveCatalogOption])]
- [CmdletBinding(DefaultParameterSetName = 'Create', PositionalBinding = $false, SupportsShouldProcess)]
+ [CmdletBinding(DefaultParameterSetName = 'Create', PositionalBinding = $false)]
param(
[Parameter(ParameterSetName = 'Create', Mandatory)]
[System.String]
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/Get-AzHdInsightOnAksClusterAvailableUpgrade.md b/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/Get-AzHdInsightOnAksClusterAvailableUpgrade.md
new file mode 100644
index 000000000000..3b38b9b59f5d
--- /dev/null
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/Get-AzHdInsightOnAksClusterAvailableUpgrade.md
@@ -0,0 +1,33 @@
+### Example 1: List a cluster available upgrade.
+```powershell
+Get-AzHdInsightOnAksClusterAvailableUpgrade -ResourceGroupName PStestGroup -ClusterPoolName hilo-pool -ClusterName flinkcluster
+```
+
+```output
+Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PStestGroup/providers/Microsoft.HDInsight/clusterpools/hilo-pool/clusters/flinkcluster/availableUpgrades/HotfixUpgrade_Webssh_0.4.2-1.1.1.6_20240103
+Name : HotfixUpgrade_Webssh_0.4.2-1.1.1.6_20240103
+Property : {
+ "upgradeType": "HotfixUpgrade",
+ "description": "BugBash",
+ "sourceOssVersion": "0.4.2",
+ "sourceClusterVersion": "1.1.1",
+ "sourceBuildNumber": "6",
+ "targetOssVersion": "0.4.2",
+ "targetClusterVersion": "1.1.1",
+ "targetBuildNumber": "7",
+ "componentName": "Webssh",
+ "severity": "low",
+ "extendedProperties": " ",
+ "createdTime": "2024-03-12T07:22:42.0000000Z"
+ }
+SystemDataCreatedAt :
+SystemDataCreatedBy :
+SystemDataCreatedByType :
+SystemDataLastModifiedAt :
+SystemDataLastModifiedBy :
+SystemDataLastModifiedByType :
+Type :
+UpgradeType : HotfixUpgrade
+```
+
+List a flink cluster available upgrade.
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/Get-AzHdInsightOnAksClusterPoolAvailableUpgrade.md b/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/Get-AzHdInsightOnAksClusterPoolAvailableUpgrade.md
new file mode 100644
index 000000000000..707aa58ee8b5
--- /dev/null
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/Get-AzHdInsightOnAksClusterPoolAvailableUpgrade.md
@@ -0,0 +1,13 @@
+### Example 1: List a cluster pool available upgrade.
+```powershell
+Get-AzHdInsightOnAksClusterPoolAvailableUpgrade -ResourceGroupName PStestGroup -ClusterPoolName hilo-pool
+```
+
+```output
+Name SystemDataCreatedAt SystemDataCreatedBy SystemDataCreatedByType SystemDataLastModifiedAt SystemDataLastModifiedBy SystemDataLastModifiedByType
+---- ------------------- ------------------- ----------------------- ------------------------ ------------------------ ----------------------------
+AKSPatchUpgrade
+NodeOsUpgrade
+```
+
+List a cluster pool available upgrade.
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/New-AzHdInsightOnAksClusterHotfixUpgradeObject.md b/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/New-AzHdInsightOnAksClusterHotfixUpgradeObject.md
new file mode 100644
index 000000000000..89939dafdcd3
--- /dev/null
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/New-AzHdInsightOnAksClusterHotfixUpgradeObject.md
@@ -0,0 +1,12 @@
+### Example 1: Create an object to hold the upgrade parameters.
+```powershell
+$hotfixObj = New-AzHdInsightOnAksClusterHotfixUpgradeObject -ComponentName Webssh -TargetBuildNumber 7 -TargetClusterVersion "1.1.1" -TargetOssVersion "0.4.2"
+```
+
+```output
+Property UpgradeType
+-------- -----------
+{… HotfixUpgrade
+```
+
+Create an object to hold the flink cluster HotfixUpgrade parameters.
\ No newline at end of file
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/New-AzHdInsightOnAksClusterPoolAKSUpgradeObject.md b/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/New-AzHdInsightOnAksClusterPoolAKSUpgradeObject.md
new file mode 100644
index 000000000000..4883d91975fc
--- /dev/null
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/New-AzHdInsightOnAksClusterPoolAKSUpgradeObject.md
@@ -0,0 +1,12 @@
+### Example 1: Create an object to hold the cluster pool upgrade parameters.
+```powershell
+New-AzHdInsightOnAksClusterPoolAKSUpgradeObject -TargetAksVersion "1.27.9" -UpgradeClusterPool $true
+```
+
+```output
+Property UpgradeType
+-------- -----------
+{… AKSPatchUpgrade
+```
+
+Create an object to hold the flink cluster AKSPatchUpgrade parameters.
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/Update-AzHdInsightOnAksCluster.md b/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/Update-AzHdInsightOnAksCluster.md
index 69d8280e0451..69c31114cc9d 100644
--- a/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/Update-AzHdInsightOnAksCluster.md
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/Update-AzHdInsightOnAksCluster.md
@@ -26,3 +26,43 @@ 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/examples/Update-AzHdInsightOnAksClusterPool.md b/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/Update-AzHdInsightOnAksClusterPool.md
new file mode 100644
index 000000000000..c8c0f42d7e3a
--- /dev/null
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/examples/Update-AzHdInsightOnAksClusterPool.md
@@ -0,0 +1,80 @@
+### Example 1: Upgrade a cluster pool(NodeOsUpgrade).
+```powershell
+$clusterResourceGroupName = "Group"
+$clusterpoolName = "your-clusterpool"
+Update-AzHdInsightOnAksClusterPool -ResourceGroupName $clusterResourceGroupName -ClusterPoolName $clusterpoolName -UpgradeType NodeOsUpgrade
+```
+
+```output
+AkClusterProfileAkClusterAgentPoolIdentityProfileMsiClientId :
+AkClusterProfileAkClusterAgentPoolIdentityProfileMsiObjectId :
+AkClusterProfileAkClusterAgentPoolIdentityProfileMsiResourceId :
+AkClusterProfileAksClusterResourceId :
+AkClusterProfileAksVersion :
+AksManagedResourceGroupName :
+ComputeProfileCount :
+ComputeProfileVMSize :
+DeploymentId :
+Id : /providers/Microsoft.HDInsight/locations/WESTUS3/operationStatuses/29a21725-8fec-428a-911f-dccc6ec9a6d8*F7AC27D6EE8809127228CC9761587D363E49354C7A941A3D1D0AF885952AC245
+Location :
+LogAnalyticProfileEnabled : False
+LogAnalyticProfileWorkspaceId :
+ManagedResourceGroupName :
+Name : 29a21725-8fec-428a-911f-dccc6ec9a6d8*F7AC27D6EE8809127228CC9761587D363E49354C7A941A3D1D0AF885952AC245
+NetworkProfileApiServerAuthorizedIPRange :
+NetworkProfileEnablePrivateApiServer :
+NetworkProfileOutboundType :
+NetworkProfileSubnetId :
+ProfileClusterPoolVersion :
+ProvisioningState :
+ResourceGroupName :
+Status :
+SystemDataCreatedAt :
+SystemDataCreatedBy :
+SystemDataCreatedByType :
+SystemDataLastModifiedAt :
+SystemDataLastModifiedBy :
+SystemDataLastModifiedByType :
+Tag : {}
+Type :
+```
+
+Upgrade a cluster pool and upgrade type is NodeOsUpgrade.
+
+
+### Example 2: Upgrade a cluster pool(AKSPatchUpgrade).
+```powershell
+$clusterResourceGroupName = "Group"
+$clusterpoolName = "your-clusterpool"
+$upgradeObj = New-AzHdInsightOnAksClusterPoolAKSUpgradeObject -TargetAksVersion "1.27.9" -UpgradeClusterPool $true
+Update-AzHdInsightOnAksClusterPool -ResourceGroupName $clusterResourceGroupName -ClusterPoolName $clusterpoolName -ClusterPoolUpgradeRequest $upgradeObj
+```
+
+```output
+AkClusterProfileAkClusterAgentPoolIdentityProfileMsiClientId :
+AkClusterProfileAkClusterAgentPoolIdentityProfileMsiObjectId :
+AkClusterProfileAkClusterAgentPoolIdentityProfileMsiResourceId :
+AkClusterProfileAksClusterResourceId :
+AkClusterProfileAksVersion :
+AksManagedResourceGroupName :
+ComputeProfileCount :
+ComputeProfileVMSize :
+DeploymentId :
+Id : /providers/Microsoft.HDInsight/locations/WESTUS3/operationStatuses/0aea8755-7a43-4c4a-96ea-a2879b9cb820*F7AC27D6EE8809127228CC9761587D363E49354C7A941A3D1D0AF885952AC245
+Location :
+LogAnalyticProfileEnabled : False
+LogAnalyticProfileWorkspaceId :
+ManagedResourceGroupName :
+Name : 0aea8755-7a43-4c4a-96ea-a2879b9cb820*F7AC27D6EE8809127228CC9761587D363E49354C7A941A3D1D0AF885952AC245
+NetworkProfileApiServerAuthorizedIPRange :
+NetworkProfileEnablePrivateApiServer :
+NetworkProfileOutboundType :
+NetworkProfileSubnetId :
+ProfileClusterPoolVersion :
+ProvisioningState :
+ResourceGroupName :
+Status :
+...
+```
+
+Upgrade a cluster pool and upgrade type is NodeOsUpgrade.
\ No newline at end of file
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/Get-AzHdInsightOnAksAvailableClusterPoolVersion.ps1 b/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/Get-AzHdInsightOnAksAvailableClusterPoolVersion.ps1
index 2034b12e9062..a33a4783a23e 100644
--- a/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/Get-AzHdInsightOnAksAvailableClusterPoolVersion.ps1
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/Get-AzHdInsightOnAksAvailableClusterPoolVersion.ps1
@@ -124,7 +124,13 @@ begin {
List = 'Az.HdInsightOnAks.private\Get-AzHdInsightOnAksAvailableClusterPoolVersion_List';
}
if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
- $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $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)
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/Get-AzHdInsightOnAksAvailableClusterVersion.ps1 b/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/Get-AzHdInsightOnAksAvailableClusterVersion.ps1
index 5ca4fd2af101..40664f8372df 100644
--- a/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/Get-AzHdInsightOnAksAvailableClusterVersion.ps1
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/Get-AzHdInsightOnAksAvailableClusterVersion.ps1
@@ -124,7 +124,13 @@ begin {
List = 'Az.HdInsightOnAks.private\Get-AzHdInsightOnAksAvailableClusterVersion_List';
}
if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
- $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $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)
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/Get-AzHdInsightOnAksCluster.ps1 b/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/Get-AzHdInsightOnAksCluster.ps1
index 314dd21bd9ff..4526d89c8e07 100644
--- a/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/Get-AzHdInsightOnAksCluster.ps1
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/Get-AzHdInsightOnAksCluster.ps1
@@ -97,14 +97,12 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IHdInsightOnAksIdentity]
# Identity Parameter
- # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},
[Parameter(ParameterSetName='GetViaIdentityClusterpool', Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IHdInsightOnAksIdentity]
# Identity Parameter
- # To construct, see NOTES section for CLUSTERPOOLINPUTOBJECT properties and create a hash table.
${ClusterpoolInputObject},
[Parameter()]
@@ -188,7 +186,13 @@ begin {
List = 'Az.HdInsightOnAks.private\Get-AzHdInsightOnAksCluster_List';
}
if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
- $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $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)
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/Get-AzHdInsightOnAksClusterAvailableUpgrade.ps1 b/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/Get-AzHdInsightOnAksClusterAvailableUpgrade.ps1
new file mode 100644
index 000000000000..a2e82f905921
--- /dev/null
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/Get-AzHdInsightOnAksClusterAvailableUpgrade.ps1
@@ -0,0 +1,195 @@
+
+# ----------------------------------------------------------------------------------
+# 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
+List a cluster available upgrade.
+.Description
+List a cluster available upgrade.
+.Example
+Get-AzHdInsightOnAksClusterAvailableUpgrade -ResourceGroupName PStestGroup -ClusterPoolName hilo-pool -ClusterName flinkcluster
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterAvailableUpgrade
+.Link
+https://learn.microsoft.com/powershell/module/az.hdinsightonaks/get-azhdinsightonaksclusteravailableupgrade
+#>
+function Get-AzHdInsightOnAksClusterAvailableUpgrade {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterAvailableUpgrade])]
+[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-AzHdInsightOnAksClusterAvailableUpgrade_List';
+ }
+ if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $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-AzHdInsightOnAksClusterInstanceView.ps1 b/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/Get-AzHdInsightOnAksClusterInstanceView.ps1
index 2d01000ae840..a98ab14d3866 100644
--- a/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/Get-AzHdInsightOnAksClusterInstanceView.ps1
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/Get-AzHdInsightOnAksClusterInstanceView.ps1
@@ -92,14 +92,12 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IHdInsightOnAksIdentity]
# Identity Parameter
- # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},
[Parameter(ParameterSetName='GetViaIdentityClusterpool', Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IHdInsightOnAksIdentity]
# Identity Parameter
- # To construct, see NOTES section for CLUSTERPOOLINPUTOBJECT properties and create a hash table.
${ClusterpoolInputObject},
[Parameter()]
@@ -183,7 +181,13 @@ begin {
List = 'Az.HdInsightOnAks.private\Get-AzHdInsightOnAksClusterInstanceView_List';
}
if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
- $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $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)
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/Get-AzHdInsightOnAksClusterJob.ps1 b/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/Get-AzHdInsightOnAksClusterJob.ps1
index dcb9bbd03368..4efacd283877 100644
--- a/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/Get-AzHdInsightOnAksClusterJob.ps1
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/Get-AzHdInsightOnAksClusterJob.ps1
@@ -61,6 +61,13 @@ param(
# The value must be an UUID.
${SubscriptionId},
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Query')]
+ [System.String]
+ # The system query option to filter job returned in the response.
+ # Allowed value is 'jobName eq {jobName}' or 'jarName eq {jarName}'.
+ ${Filter},
+
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
@@ -139,7 +146,13 @@ begin {
List = 'Az.HdInsightOnAks.private\Get-AzHdInsightOnAksClusterJob_List';
}
if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
- $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $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)
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/Get-AzHdInsightOnAksClusterPool.ps1 b/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/Get-AzHdInsightOnAksClusterPool.ps1
index 431a2dd0313e..00974c7c0a41 100644
--- a/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/Get-AzHdInsightOnAksClusterPool.ps1
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/Get-AzHdInsightOnAksClusterPool.ps1
@@ -81,7 +81,6 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IHdInsightOnAksIdentity]
# Identity Parameter
- # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},
[Parameter()]
@@ -165,7 +164,13 @@ begin {
List1 = 'Az.HdInsightOnAks.private\Get-AzHdInsightOnAksClusterPool_List1';
}
if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
- $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $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)
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/Get-AzHdInsightOnAksClusterPoolAvailableUpgrade.ps1 b/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/Get-AzHdInsightOnAksClusterPoolAvailableUpgrade.ps1
new file mode 100644
index 000000000000..9825335fe576
--- /dev/null
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/Get-AzHdInsightOnAksClusterPoolAvailableUpgrade.ps1
@@ -0,0 +1,189 @@
+
+# ----------------------------------------------------------------------------------
+# 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
+List a cluster pool available upgrade.
+.Description
+List a cluster pool available upgrade.
+.Example
+Get-AzHdInsightOnAksClusterPoolAvailableUpgrade -ResourceGroupName PStestGroup -ClusterPoolName hilo-pool
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterPoolAvailableUpgrade
+.Link
+https://learn.microsoft.com/powershell/module/az.hdinsightonaks/get-azhdinsightonaksclusterpoolavailableupgrade
+#>
+function Get-AzHdInsightOnAksClusterPoolAvailableUpgrade {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterPoolAvailableUpgrade])]
+[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-AzHdInsightOnAksClusterPoolAvailableUpgrade_List';
+ }
+ if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $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-AzHdInsightOnAksClusterServiceConfig.ps1 b/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/Get-AzHdInsightOnAksClusterServiceConfig.ps1
index 30d1d1384ec8..0559a1ac4243 100644
--- a/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/Get-AzHdInsightOnAksClusterServiceConfig.ps1
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/Get-AzHdInsightOnAksClusterServiceConfig.ps1
@@ -139,7 +139,13 @@ begin {
List = 'Az.HdInsightOnAks.private\Get-AzHdInsightOnAksClusterServiceConfig_List';
}
if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
- $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $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)
diff --git a/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/New-AzHdInsightOnAksCluster.ps1 b/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/New-AzHdInsightOnAksCluster.ps1
index 451d47938429..b4032380a673 100644
--- a/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/New-AzHdInsightOnAksCluster.ps1
+++ b/src/HdInsightOnAks/HdInsightOnAks.Autorest/exports/New-AzHdInsightOnAksCluster.ps1
@@ -353,6 +353,7 @@ HDINSIGHTONAKSCLUSTER : The cluster.
Location : The geo-location where the resource lives
[Tag ]: Resource tags.
[(Any) ]: This indicates any property can be added to this object.
+ [AccessProfileEnableInternalIngress ]: Whether to create cluster using private IP instead of public IP. This property must be set at create time.
[ApplicationLogStdErrorEnabled ]: True if stderror is enabled, otherwise false.
[ApplicationLogStdOutEnabled ]: True if stdout is enabled, otherwise false.
[AuthorizationProfileGroupId >]: AAD group Ids authorized for data plane access.
@@ -369,9 +370,17 @@ HDINSIGHTONAKSCLUSTER : The cluster.
[CoordinatorDebugPort ]: The debug port.
[CoordinatorDebugSuspend ]: The flag that if suspend debug or not.
[CoordinatorHighAvailabilityEnabled ]: The flag that if enable coordinator HA, uses multiple coordinator replicas with auto failover, one per each head node. Default: true.
+ [DatabaseHost ]: The database URL
+ [DatabaseName ]: The database name
+ [DatabasePasswordSecretRef ]: Reference for the database password
+ [DatabaseUsername ]: The name of the database user
+ [DiskStorageDataDiskSize ]: Managed Disk size in GB. The maximum supported disk size for Standard and Premium HDD/SSD is 32TB, except for Premium SSD v2, which supports up to 64TB.
+ [DiskStorageDataDiskType ]: Managed Disk Type.
+ [FlinkProfileDeploymentMode ]: A string property that indicates the deployment mode of Flink cluster. It can have one of the following enum values => Application, Session. Default value is Session
[FlinkProfileNumReplica ]: The number of task managers.
[HistoryServerCpu ]: The required CPU.
[HistoryServerMemory ]: The required memory in MB, Container memory will be 110 percentile
+ [HiveMetastoreDbConnectionAuthenticationMode ]: 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
[HiveMetastoreDbConnectionPasswordSecret ]: Secret reference name from secretsProfile.secrets containing password for database connection.
[HiveMetastoreDbConnectionUrl ]: Connection string for hive metastore database.
[HiveMetastoreDbConnectionUserName ]: User name for database connection.
@@ -380,6 +389,15 @@ HDINSIGHTONAKSCLUSTER : The cluster.
[IdentityProfileMsiResourceId ]: ResourceId of the MSI.
[JobManagerCpu ]: The required CPU.
[JobManagerMemory ]: The required memory in MB, Container memory will be 110 percentile
+ [JobSpecArg ]: A string property representing additional JVM arguments for the Flink job. It should be space separated value.
+ [JobSpecEntryClass ]: A string property that specifies the entry class for the Flink job. If not specified, the entry point is auto-detected from the flink job jar package.
+ [JobSpecJarName ]: A string property that represents the name of the job JAR.
+ [JobSpecJobJarDirectory ]: A string property that specifies the directory where the job JAR is located.
+ [JobSpecSavePointName ]: A string property that represents the name of the savepoint for the Flink job
+ [JobSpecUpgradeMode ]: A string property that indicates the upgrade mode to be performed on the Flink job. It can have one of the following enum values => STATELESS_UPDATE, UPDATE, LAST_STATE_UPDATE.
+ [KafkaProfileEnableKRaft ]: Expose Kafka cluster in KRaft mode.
+ [KafkaProfileEnablePublicEndpoint ]: Expose worker nodes as public endpoints.
+ [KafkaProfileRemoteStorageUri ]: Fully qualified path of Azure Storage container used for Tiered Storage.
[LoadBasedConfigCooldownPeriod ]: This is a cool down period, this is a time period in seconds, which determines the amount of time that must elapse between a scaling activity started by a rule and the start of the next scaling activity, regardless of the rule that triggers it. The default value is 300 seconds.
[LoadBasedConfigMaxNode ]: User needs to set the maximum number of nodes for load based scaling, the load based scaling will use this to scale up and scale down between minimum and maximum number of nodes.
[LoadBasedConfigMinNode ]: User needs to set the minimum number of nodes for load based scaling, the load based scaling will use this to scale up and scale down between minimum and maximum number of nodes.
@@ -392,6 +410,7 @@ 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.
+ [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.
[MetastoreSpecDbServerHost ]: The database server host.
@@ -399,8 +418,6 @@ HDINSIGHTONAKSCLUSTER : The cluster.
[MetastoreSpecKeyVaultId ]: The key vault resource id.
[MetastoreSpecThriftUrl ]: The thrift url.
[ProfileClusterVersion ]: Version with 3/4 part.
- [ProfileKafkaProfile ]: Kafka cluster profile.
- [(Any)