Skip to content

Commit 797b9bf

Browse files
authored
Add the alias of AksCluster back. (#13309)
Co-authored-by: wyunchi-ms <[email protected]>
1 parent 0c7265b commit 797b9bf

File tree

6 files changed

+8
-5
lines changed

6 files changed

+8
-5
lines changed

src/Aks/Aks/ChangeLog.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
- Additional information about change #1
1919
-->
2020
## Upcoming Release
21-
* [Breaking Change] Removed cmdlet alias `Get-AzAks`, `New-AzAks`, `Remove-AzAks` and `Set-AzAks`.
2221
* [Breaking Change] Removed parameter alias `ClientIdAndSecret` in `New-AzAksCluster` and `Set-AzAksCluster`.
2322
* [Breaking Change] Changed the default value of `NodeVmSetType` in `New-AzAksCluster` from `AvailabilitySet` to `VirtualMachineScaleSets`.
2423
* [Breaking Change] Changed the default value of `NetworkPlugin` in `New-AzAksCluster` from `None` to `azure`.

src/Aks/Aks/Commands/GetAzureRmAks.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@
2525

2626
namespace Microsoft.Azure.Commands.Aks
2727
{
28+
[CmdletDeprecation(ReplacementCmdletName = "Get-AzAksCluster")]
2829
[Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "AksCluster", DefaultParameterSetName = ResourceGroupParameterSet)]
30+
[Alias("Get-" + ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "Aks")]
2931
[OutputType(typeof(PSKubernetesCluster))]
3032
public class GetAzureRmAks : KubeCmdletBase
3133
{

src/Aks/Aks/Commands/NewAzureRmAks.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@
2626

2727
namespace Microsoft.Azure.Commands.Aks
2828
{
29+
[CmdletDeprecation(ReplacementCmdletName = "New-AzAksCluster")]
2930
[Cmdlet("New", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "AksCluster", DefaultParameterSetName = DefaultParamSet, SupportsShouldProcess = true)]
31+
[Alias("New-" + ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "Aks")]
3032
[OutputType(typeof(PSKubernetesCluster))]
3133
public class NewAzureRmAks : NewKubeBase
3234
{

src/Aks/Aks/Commands/RemoveAzureRmAks.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@
2222

2323
namespace Microsoft.Azure.Commands.Aks
2424
{
25+
[CmdletDeprecation(ReplacementCmdletName = "Remove-AzAksCluster")]
2526
[Cmdlet("Remove", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "AksCluster", SupportsShouldProcess = true, DefaultParameterSetName = GroupNameParameterSet)]
27+
[Alias("Remove-" + ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "Aks")]
2628
[OutputType(typeof(bool))]
2729
public class RemoveAzureRmAks : KubeCmdletBase
2830
{

src/Aks/Aks/Commands/SetAzureRmAks.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@
2727

2828
namespace Microsoft.Azure.Commands.Aks
2929
{
30+
[CmdletDeprecation(ReplacementCmdletName = "Set-AzAksCluster")]
3031
[Cmdlet("Set", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "AksCluster", DefaultParameterSetName = DefaultParamSet, SupportsShouldProcess = true)]
32+
[Alias("Set-" + ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "Aks")]
3133
[OutputType(typeof(PSKubernetesCluster))]
3234
public class SetAzureRmAks : CreateOrUpdateKubeBase
3335
{
Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
"AssemblyFileName","ClassName","Target","Severity","ProblemId","Description","Remediation"
2-
"Microsoft.Azure.PowerShell.Cmdlets.Aks.dll","Microsoft.Azure.Commands.Aks.GetAzureRmAks","Get-AzAksCluster","0","1010","The cmdlet 'Get-AzAksCluster' no longer supports the alias 'Get-AzAks'.","Add the alias 'Get-AzAks back to the cmdlet 'Get-AzAksCluster'."
3-
"Microsoft.Azure.PowerShell.Cmdlets.Aks.dll","Microsoft.Azure.Commands.Aks.NewAzureRmAks","New-AzAksCluster","0","1010","The cmdlet 'New-AzAksCluster' no longer supports the alias 'New-AzAks'.","Add the alias 'New-AzAks back to the cmdlet 'New-AzAksCluster'."
42
"Microsoft.Azure.PowerShell.Cmdlets.Aks.dll","Microsoft.Azure.Commands.Aks.NewAzureRmAks","New-AzAksCluster","0","2000","The cmdlet 'New-AzAksCluster' no longer supports the parameter 'NodeOsType' and no alias was found for the original parameter name.","Add the parameter 'NodeOsType' back to the cmdlet 'New-AzAksCluster', or add an alias to the original parameter name."
53
"Microsoft.Azure.PowerShell.Cmdlets.Aks.dll","Microsoft.Azure.Commands.Aks.NewAzureRmAks","New-AzAksCluster","0","2010","The cmdlet 'New-AzAksCluster' no longer supports the alias 'ClientIdAndSecret' for parameter 'ServicePrincipalIdAndSecret'.","Add the alias 'ClientIdAndSecret' back to parameter 'ServicePrincipalIdAndSecret'."
64
"Microsoft.Azure.PowerShell.Cmdlets.Aks.dll","Microsoft.Azure.Commands.Aks.NewAzureRmAks","New-AzAksCluster","0","1050","The parameter set '__AllParameterSets' for cmdlet 'New-AzAksCluster' has been removed.","Add parameter set '__AllParameterSets' back to cmdlet 'New-AzAksCluster'."
75
"Microsoft.Azure.PowerShell.Cmdlets.Aks.dll","Microsoft.Azure.Commands.Aks.NewAzureRmAks","New-AzAksCluster","0","1050","The parameter set 'defaultParameterSet' for cmdlet 'New-AzAksCluster' has been removed.","Add parameter set 'defaultParameterSet' back to cmdlet 'New-AzAksCluster'."
8-
"Microsoft.Azure.PowerShell.Cmdlets.Aks.dll","Microsoft.Azure.Commands.Aks.RemoveAzureRmAks","Remove-AzAksCluster","0","1010","The cmdlet 'Remove-AzAksCluster' no longer supports the alias 'Remove-AzAks'.","Add the alias 'Remove-AzAks back to the cmdlet 'Remove-AzAksCluster'."
9-
"Microsoft.Azure.PowerShell.Cmdlets.Aks.dll","Microsoft.Azure.Commands.Aks.SetAzureRmAks","Set-AzAksCluster","0","1010","The cmdlet 'Set-AzAksCluster' no longer supports the alias 'Set-AzAks'.","Add the alias 'Set-AzAks back to the cmdlet 'Set-AzAksCluster'."
106
"Microsoft.Azure.PowerShell.Cmdlets.Aks.dll","Microsoft.Azure.Commands.Aks.SetAzureRmAks","Set-AzAksCluster","0","2010","The cmdlet 'Set-AzAksCluster' no longer supports the alias 'ClientIdAndSecret' for parameter 'ServicePrincipalIdAndSecret'.","Add the alias 'ClientIdAndSecret' back to parameter 'ServicePrincipalIdAndSecret'."

0 commit comments

Comments
 (0)