Skip to content

Commit 6c5282e

Browse files
yuc-Liv-yuchenliVeryEarly
authored
[HDInsight on AKS] New Api version 2024-05-01-preview #2 (#25687)
* Init readme. split Update to 2 command: Update and Upgrade. * Update readme * Update examples. * Update test and records * Update a example. * Resolve pipeline issues. * Update SignatureIssues * Update. * Fix pipeline errors. * Update a example * Rename properties * Update to 2024-05-01-preview * Update a example * Rename commands Upgrade-xxx to Invoke-xxxUpgrade * Remove unused files. * Update SignatureIssues.csv * Update a autogen cmdlet to custom cmdlet --------- Co-authored-by: v-yuchenli <[email protected]> Co-authored-by: Yabo Hu <[email protected]>
1 parent 8735795 commit 6c5282e

17 files changed

+154
-78
lines changed

src/HdInsightOnAks/HdInsightOnAks.Autorest/Az.HdInsightOnAks.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
DotNetFrameworkVersion = '4.7.2'
1212
RequiredAssemblies = './bin/Az.HdInsightOnAks.private.dll'
1313
FormatsToProcess = './Az.HdInsightOnAks.format.ps1xml'
14-
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-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', 'Upgrade-AzHdInsightOnAksCluster', 'Upgrade-AzHdInsightOnAksClusterManualRollback', 'Upgrade-AzHdInsightOnAksClusterPool'
14+
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'
1515
PrivateData = @{
1616
PSData = @{
1717
Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'HdInsightOnAks'

src/HdInsightOnAks/HdInsightOnAks.Autorest/README.md

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,6 @@ directive:
7474
- model-cmdlet:
7575
- model-name: ManagedIdentitySpec
7676
cmdlet-name: New-AzHdInsightOnAksManagedIdentityObject
77-
- model-name: ClusterHotfixUpgradeProperties
78-
cmdlet-name: New-AzHdInsightOnAksClusterHotfixUpgradeObject
7977
- model-name: ClusterPoolAksPatchVersionUpgradeProperties
8078
cmdlet-name: New-AzHdInsightOnAksClusterPoolAksPatchVersionUpgradeObject
8179
- model-name: NodeProfile
@@ -340,9 +338,22 @@ directive:
340338
# The below customize the output model
341339
- where:
342340
verb: Update
343-
subject: [Cluster|ClusterPool]
341+
subject: [Cluster]
344342
variant: [Upgrade|UpgradeExpanded|UpgradeViaIdentity|UpgradeViaIdentityExpanded|UpgradeViaJsonFilePath|UpgradeViaJsonString]
345343
set:
346-
verb: Upgrade
347-
344+
verb: Invoke
345+
subject: ClusterUpgrade
346+
- where:
347+
verb: Update
348+
subject: [ClusterManualRollback]
349+
variant: [Upgrade|UpgradeExpanded|UpgradeViaIdentity|UpgradeViaIdentityExpanded|UpgradeViaJsonFilePath|UpgradeViaJsonString]
350+
set:
351+
verb: Invoke
352+
- where:
353+
verb: Update
354+
subject: [ClusterPool]
355+
variant: [Upgrade|UpgradeExpanded|UpgradeViaIdentity|UpgradeViaIdentityExpanded|UpgradeViaJsonFilePath|UpgradeViaJsonString]
356+
set:
357+
verb: Invoke
358+
subject: ClusterPoolUpgrade
348359
```
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
2+
# ----------------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
# Unless required by applicable law or agreed to in writing, software
9+
# distributed under the License is distributed on an "AS IS" BASIS,
10+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
# See the License for the specific language governing permissions and
12+
# limitations under the License.
13+
# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
14+
# is regenerated.
15+
# ----------------------------------------------------------------------------------
16+
17+
<#
18+
.Synopsis
19+
Create an in-memory object for ClusterHotfixUpgradeProperties.
20+
.Description
21+
Create an in-memory object for ClusterHotfixUpgradeProperties.
22+
23+
.Outputs
24+
Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterHotfixUpgradeProperties
25+
.Link
26+
https://learn.microsoft.com/powershell/module/Az.HdInsightOnAks/new-azhdinsightonaksclusterhotfixupgradeobject
27+
#>
28+
function New-AzHdInsightOnAksClusterHotfixUpgradeObject {
29+
[OutputType('Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterUpgrade')]
30+
[CmdletBinding(PositionalBinding=$false)]
31+
Param(
32+
33+
[Parameter(HelpMessage="Name of component to be upgraded.")]
34+
[string]
35+
$ComponentName,
36+
[Parameter(HelpMessage="Target build number of component to be upgraded.")]
37+
[string]
38+
$TargetBuildNumber,
39+
[Parameter(HelpMessage="Target cluster version of component to be upgraded.")]
40+
[string]
41+
$TargetClusterVersion,
42+
[Parameter(HelpMessage="Target OSS version of component to be upgraded.")]
43+
[string]
44+
$TargetOssVersion
45+
)
46+
47+
process {
48+
$Object = [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterHotfixUpgradeProperties]::New()
49+
50+
$RequestObject = [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterUpgrade]::New()
51+
52+
if ($PSBoundParameters.ContainsKey('ComponentName')) {
53+
$Object.ComponentName = $ComponentName
54+
}
55+
if ($PSBoundParameters.ContainsKey('TargetBuildNumber')) {
56+
$Object.TargetBuildNumber = $TargetBuildNumber
57+
}
58+
if ($PSBoundParameters.ContainsKey('TargetClusterVersion')) {
59+
$Object.TargetClusterVersion = $TargetClusterVersion
60+
}
61+
if ($PSBoundParameters.ContainsKey('TargetOssVersion')) {
62+
$Object.TargetOssVersion = $TargetOssVersion
63+
}
64+
65+
$RequestObject.Property = $Object
66+
return $RequestObject
67+
}
68+
}
69+

src/HdInsightOnAks/HdInsightOnAks.Autorest/docs/Az.HdInsightOnAks.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,15 @@ Lists the config dump of all services running in cluster.
4747
### [Get-AzHdInsightOnAksClusterUpgradeHistory](Get-AzHdInsightOnAksClusterUpgradeHistory.md)
4848
Returns a list of upgrade history.
4949

50+
### [Invoke-AzHdInsightOnAksClusterManualRollback](Invoke-AzHdInsightOnAksClusterManualRollback.md)
51+
Manual rollback upgrade for a cluster.
52+
53+
### [Invoke-AzHdInsightOnAksClusterPoolUpgrade](Invoke-AzHdInsightOnAksClusterPoolUpgrade.md)
54+
Upgrade a cluster pool.
55+
56+
### [Invoke-AzHdInsightOnAksClusterUpgrade](Invoke-AzHdInsightOnAksClusterUpgrade.md)
57+
Upgrade a cluster.
58+
5059
### [Invoke-AzHdInsightOnAksManageClusterLibrary](Invoke-AzHdInsightOnAksManageClusterLibrary.md)
5160
Library management operations on HDInsight on AKS cluster.
5261

@@ -116,12 +125,3 @@ Update an existing Cluster.
116125
### [Update-AzHdInsightOnAksClusterPoolTag](Update-AzHdInsightOnAksClusterPoolTag.md)
117126
Update an existing Cluster Pool Tags.
118127

119-
### [Upgrade-AzHdInsightOnAksCluster](Upgrade-AzHdInsightOnAksCluster.md)
120-
Upgrade a cluster.
121-
122-
### [Upgrade-AzHdInsightOnAksClusterManualRollback](Upgrade-AzHdInsightOnAksClusterManualRollback.md)
123-
Manual rollback upgrade for a cluster.
124-
125-
### [Upgrade-AzHdInsightOnAksClusterPool](Upgrade-AzHdInsightOnAksClusterPool.md)
126-
Upgrade a cluster pool.
127-

src/HdInsightOnAks/HdInsightOnAks.Autorest/docs/Upgrade-AzHdInsightOnAksClusterManualRollback.md renamed to src/HdInsightOnAks/HdInsightOnAks.Autorest/docs/Invoke-AzHdInsightOnAksClusterManualRollback.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
22
external help file:
33
Module Name: Az.HdInsightOnAks
4-
online version: https://learn.microsoft.com/powershell/module/az.hdinsightonaks/upgrade-azhdinsightonaksclustermanualrollback
4+
online version: https://learn.microsoft.com/powershell/module/az.hdinsightonaks/invoke-azhdinsightonaksclustermanualrollback
55
schema: 2.0.0
66
---
77

8-
# Upgrade-AzHdInsightOnAksClusterManualRollback
8+
# Invoke-AzHdInsightOnAksClusterManualRollback
99

1010
## SYNOPSIS
1111
Manual rollback upgrade for a cluster.
@@ -14,56 +14,56 @@ Manual rollback upgrade for a cluster.
1414

1515
### UpgradeExpanded (Default)
1616
```
17-
Upgrade-AzHdInsightOnAksClusterManualRollback -ClusterName <String> -ClusterPoolName <String>
17+
Invoke-AzHdInsightOnAksClusterManualRollback -ClusterName <String> -ClusterPoolName <String>
1818
-ResourceGroupName <String> -UpgradeHistory <String> [-SubscriptionId <String>] [-DefaultProfile <PSObject>]
1919
[-AsJob] [-NoWait] [-Confirm] [-WhatIf] [<CommonParameters>]
2020
```
2121

2222
### Upgrade
2323
```
24-
Upgrade-AzHdInsightOnAksClusterManualRollback -ClusterName <String> -ClusterPoolName <String>
24+
Invoke-AzHdInsightOnAksClusterManualRollback -ClusterName <String> -ClusterPoolName <String>
2525
-ResourceGroupName <String> -ClusterRollbackUpgradeRequest <IClusterUpgradeRollback>
2626
[-SubscriptionId <String>] [-DefaultProfile <PSObject>] [-AsJob] [-NoWait] [-Confirm] [-WhatIf]
2727
[<CommonParameters>]
2828
```
2929

3030
### UpgradeViaIdentity
3131
```
32-
Upgrade-AzHdInsightOnAksClusterManualRollback -InputObject <IHdInsightOnAksIdentity>
32+
Invoke-AzHdInsightOnAksClusterManualRollback -InputObject <IHdInsightOnAksIdentity>
3333
-ClusterRollbackUpgradeRequest <IClusterUpgradeRollback> [-DefaultProfile <PSObject>] [-AsJob] [-NoWait]
3434
[-Confirm] [-WhatIf] [<CommonParameters>]
3535
```
3636

3737
### UpgradeViaIdentityClusterpool
3838
```
39-
Upgrade-AzHdInsightOnAksClusterManualRollback -ClusterName <String>
39+
Invoke-AzHdInsightOnAksClusterManualRollback -ClusterName <String>
4040
-ClusterpoolInputObject <IHdInsightOnAksIdentity> -ClusterRollbackUpgradeRequest <IClusterUpgradeRollback>
4141
[-DefaultProfile <PSObject>] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [<CommonParameters>]
4242
```
4343

4444
### UpgradeViaIdentityClusterpoolExpanded
4545
```
46-
Upgrade-AzHdInsightOnAksClusterManualRollback -ClusterName <String>
46+
Invoke-AzHdInsightOnAksClusterManualRollback -ClusterName <String>
4747
-ClusterpoolInputObject <IHdInsightOnAksIdentity> -UpgradeHistory <String> [-DefaultProfile <PSObject>]
4848
[-AsJob] [-NoWait] [-Confirm] [-WhatIf] [<CommonParameters>]
4949
```
5050

5151
### UpgradeViaIdentityExpanded
5252
```
53-
Upgrade-AzHdInsightOnAksClusterManualRollback -InputObject <IHdInsightOnAksIdentity> -UpgradeHistory <String>
53+
Invoke-AzHdInsightOnAksClusterManualRollback -InputObject <IHdInsightOnAksIdentity> -UpgradeHistory <String>
5454
[-DefaultProfile <PSObject>] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [<CommonParameters>]
5555
```
5656

5757
### UpgradeViaJsonFilePath
5858
```
59-
Upgrade-AzHdInsightOnAksClusterManualRollback -ClusterName <String> -ClusterPoolName <String>
59+
Invoke-AzHdInsightOnAksClusterManualRollback -ClusterName <String> -ClusterPoolName <String>
6060
-ResourceGroupName <String> -JsonFilePath <String> [-SubscriptionId <String>] [-DefaultProfile <PSObject>]
6161
[-AsJob] [-NoWait] [-Confirm] [-WhatIf] [<CommonParameters>]
6262
```
6363

6464
### UpgradeViaJsonString
6565
```
66-
Upgrade-AzHdInsightOnAksClusterManualRollback -ClusterName <String> -ClusterPoolName <String>
66+
Invoke-AzHdInsightOnAksClusterManualRollback -ClusterName <String> -ClusterPoolName <String>
6767
-ResourceGroupName <String> -JsonString <String> [-SubscriptionId <String>] [-DefaultProfile <PSObject>]
6868
[-AsJob] [-NoWait] [-Confirm] [-WhatIf] [<CommonParameters>]
6969
```
@@ -78,7 +78,7 @@ Manual rollback upgrade for a cluster.
7878
$clusterResourceGroupName = "Group"
7979
$clusterpoolName = "ps-test-pool"
8080
$clusterName = "cluster"
81-
Upgrade-AzHdInsightOnAksClusterManualRollback -ResourceGroupName $clusterResourceGroupName -ClusterName $clusterName -ClusterPoolName $clusterpoolName -UpgradeHistory /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/weidong-devrp/providers/Microsoft.HDInsight/clusterpools/weidongbugbash57/clusters/cluster202458152055/upgradeHistories/05_11_2024_06_41_26_AM-AKSPatchUpgrade
81+
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
8282
```
8383

8484
Roll back the upgrade of a cluster

src/HdInsightOnAks/HdInsightOnAks.Autorest/docs/Upgrade-AzHdInsightOnAksClusterPool.md renamed to src/HdInsightOnAks/HdInsightOnAks.Autorest/docs/Invoke-AzHdInsightOnAksClusterPoolUpgrade.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
22
external help file:
33
Module Name: Az.HdInsightOnAks
4-
online version: https://learn.microsoft.com/powershell/module/az.hdinsightonaks/upgrade-azhdinsightonaksclusterpool
4+
online version: https://learn.microsoft.com/powershell/module/az.hdinsightonaks/invoke-azhdinsightonaksclusterpoolupgrade
55
schema: 2.0.0
66
---
77

8-
# Upgrade-AzHdInsightOnAksClusterPool
8+
# Invoke-AzHdInsightOnAksClusterPoolUpgrade
99

1010
## SYNOPSIS
1111
Upgrade a cluster pool.
@@ -14,41 +14,41 @@ Upgrade a cluster pool.
1414

1515
### UpgradeExpanded (Default)
1616
```
17-
Upgrade-AzHdInsightOnAksClusterPool -Name <String> -ResourceGroupName <String> -UpgradeType <String>
17+
Invoke-AzHdInsightOnAksClusterPoolUpgrade -Name <String> -ResourceGroupName <String> -UpgradeType <String>
1818
[-SubscriptionId <String>] [-DefaultProfile <PSObject>] [-AsJob] [-NoWait] [-Confirm] [-WhatIf]
1919
[<CommonParameters>]
2020
```
2121

2222
### Upgrade
2323
```
24-
Upgrade-AzHdInsightOnAksClusterPool -Name <String> -ResourceGroupName <String>
24+
Invoke-AzHdInsightOnAksClusterPoolUpgrade -Name <String> -ResourceGroupName <String>
2525
-ClusterPoolUpgradeRequest <IClusterPoolUpgrade> [-SubscriptionId <String>] [-DefaultProfile <PSObject>]
2626
[-AsJob] [-NoWait] [-Confirm] [-WhatIf] [<CommonParameters>]
2727
```
2828

2929
### UpgradeViaIdentity
3030
```
31-
Upgrade-AzHdInsightOnAksClusterPool -InputObject <IHdInsightOnAksIdentity>
31+
Invoke-AzHdInsightOnAksClusterPoolUpgrade -InputObject <IHdInsightOnAksIdentity>
3232
-ClusterPoolUpgradeRequest <IClusterPoolUpgrade> [-DefaultProfile <PSObject>] [-AsJob] [-NoWait] [-Confirm]
3333
[-WhatIf] [<CommonParameters>]
3434
```
3535

3636
### UpgradeViaIdentityExpanded
3737
```
38-
Upgrade-AzHdInsightOnAksClusterPool -InputObject <IHdInsightOnAksIdentity> -UpgradeType <String>
38+
Invoke-AzHdInsightOnAksClusterPoolUpgrade -InputObject <IHdInsightOnAksIdentity> -UpgradeType <String>
3939
[-DefaultProfile <PSObject>] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [<CommonParameters>]
4040
```
4141

4242
### UpgradeViaJsonFilePath
4343
```
44-
Upgrade-AzHdInsightOnAksClusterPool -Name <String> -ResourceGroupName <String> -JsonFilePath <String>
44+
Invoke-AzHdInsightOnAksClusterPoolUpgrade -Name <String> -ResourceGroupName <String> -JsonFilePath <String>
4545
[-SubscriptionId <String>] [-DefaultProfile <PSObject>] [-AsJob] [-NoWait] [-Confirm] [-WhatIf]
4646
[<CommonParameters>]
4747
```
4848

4949
### UpgradeViaJsonString
5050
```
51-
Upgrade-AzHdInsightOnAksClusterPool -Name <String> -ResourceGroupName <String> -JsonString <String>
51+
Invoke-AzHdInsightOnAksClusterPoolUpgrade -Name <String> -ResourceGroupName <String> -JsonString <String>
5252
[-SubscriptionId <String>] [-DefaultProfile <PSObject>] [-AsJob] [-NoWait] [-Confirm] [-WhatIf]
5353
[<CommonParameters>]
5454
```
@@ -62,7 +62,7 @@ Upgrade a cluster pool.
6262
```powershell
6363
$clusterResourceGroupName = "Group"
6464
$clusterpoolName = "your-clusterpool"
65-
Upgrade-AzHdInsightOnAksClusterPool -ResourceGroupName $clusterResourceGroupName -ClusterPoolName $clusterpoolName -UpgradeType NodeOsUpgrade
65+
Invoke-AzHdInsightOnAksClusterPoolUpgrade -ResourceGroupName $clusterResourceGroupName -ClusterPoolName $clusterpoolName -UpgradeType NodeOsUpgrade
6666
```
6767

6868
```output
@@ -106,7 +106,7 @@ Upgrade a cluster pool and upgrade type is NodeOsUpgrade.
106106
$clusterResourceGroupName = "Group"
107107
$clusterpoolName = "your-clusterpool"
108108
$upgradeObj = New-AzHdInsightOnAksClusterPoolAksPatchVersionUpgradeObject -TargetAksVersion "1.27.9" -UpgradeClusterPool $true
109-
Upgrade-AzHdInsightOnAksClusterPool -ResourceGroupName $clusterResourceGroupName -ClusterPoolName $clusterpoolName -ClusterPoolUpgradeRequest $upgradeObj
109+
Invoke-AzHdInsightOnAksClusterPoolUpgrade -ResourceGroupName $clusterResourceGroupName -ClusterPoolName $clusterpoolName -ClusterPoolUpgradeRequest $upgradeObj
110110
```
111111

112112
```output

0 commit comments

Comments
 (0)