Skip to content

Commit dd56ff7

Browse files
authored
[Aks] Remove some aliases for AksCluster (#17972)
* Remove some alias * Remove some alias * Remove from psd1
1 parent c318261 commit dd56ff7

File tree

8 files changed

+16
-5
lines changed

8 files changed

+16
-5
lines changed

src/Aks/Aks/Az.Aks.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ CmdletsToExport = 'Get-AzAksCluster', 'New-AzAksCluster', 'Remove-AzAksCluster',
8989
# VariablesToExport = @()
9090

9191
# 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.
92-
AliasesToExport = 'Get-AzAks', 'New-AzAks', 'Remove-AzAks', 'Set-AzAks'
92+
AliasesToExport = @()
9393

9494
# DSC resources to export from this module
9595
# DscResourcesToExport = @()

src/Aks/Aks/ChangeLog.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@
1818
- Additional information about change #1
1919
-->
2020
## Upcoming Release
21+
* Removed these aliases:
22+
* `Get-AzAks`
23+
* `New-AzAks`
24+
* `Set-AzAks`
25+
* `Remove-AzAks`
2126

2227
## Version 3.1.3
2328
* Updated the description of `Force` in `Invoke-AzAksRunCommand` [#17756]

src/Aks/Aks/Commands/GetAzureRmAks.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ namespace Microsoft.Azure.Commands.Aks
2929
{
3030
[GenericBreakingChange("Get-AzAks will be removed in the next major release. Please use Get-AzAksCluster instead of Get-AzAks")]
3131
[Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "AksCluster", DefaultParameterSetName = ResourceGroupParameterSet)]
32-
[Alias("Get-" + ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "Aks")]
3332
[OutputType(typeof(PSKubernetesCluster))]
3433
public class GetAzureRmAks : KubeCmdletBase
3534
{

src/Aks/Aks/Commands/NewAzureRmAks.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ namespace Microsoft.Azure.Commands.Aks
4040
{
4141
[GenericBreakingChange("New-AzAks will be removed in the next major release. Please use New-AzAksCluster instead of New-AzAks")]
4242
[Cmdlet("New", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "AksCluster", DefaultParameterSetName = DefaultParamSet, SupportsShouldProcess = true)]
43-
[Alias("New-" + ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "Aks")]
4443
[OutputType(typeof(PSKubernetesCluster))]
4544
public class NewAzureRmAks : CreateOrUpdateKubeBase
4645
{

src/Aks/Aks/Commands/RemoveAzureRmAks.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ namespace Microsoft.Azure.Commands.Aks
2424
{
2525
[GenericBreakingChange("Remove-AzAks will be removed in the next major release. Please use Remove-AzAksCluster instead of Remove-AzAks")]
2626
[Cmdlet("Remove", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "AksCluster", SupportsShouldProcess = true, DefaultParameterSetName = GroupNameParameterSet)]
27-
[Alias("Remove-" + ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "Aks")]
2827
[OutputType(typeof(bool))]
2928
public class RemoveAzureRmAks : KubeCmdletBase
3029
{

src/Aks/Aks/Commands/SetAzureRmAks.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ namespace Microsoft.Azure.Commands.Aks
3838
{
3939
[GenericBreakingChange("Set-AzAks will be removed in the next major release. Please use Set-AzAksCluster instead of Set-AzAks")]
4040
[Cmdlet("Set", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "AksCluster", DefaultParameterSetName = DefaultParamSet, SupportsShouldProcess = true)]
41-
[Alias("Set-" + ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "Aks")]
4241
[OutputType(typeof(PSKubernetesCluster))]
4342
public class SetAzureRmAks : CreateOrUpdateKubeBase
4443
{

src/Aks/Aks/help/Az.Aks.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ Gets the details of the upgrade profile for a managed cluster with a specified r
3131

3232
### [Get-AzAksVersion](Get-AzAksVersion.md)
3333
List available version for creating managed Kubernetes cluster.
34+
The operation returns properties of each orchestrator including version, available upgrades and whether that version or upgrades are in preview.
3435

3536
### [Import-AzAksCredential](Import-AzAksCredential.md)
3637
Import and merge Kubectl config for a managed Kubernetes Cluster.
@@ -44,6 +45,10 @@ Run a shell command (with kubectl, helm) on your aks cluster, support attaching
4445
### [New-AzAksCluster](New-AzAksCluster.md)
4546
Create a new managed Kubernetes cluster.
4647

48+
The cmdlet may call below Microsoft Graph API according to input parameters:
49+
50+
- POST /servicePrincipals
51+
4752
### [New-AzAksNodePool](New-AzAksNodePool.md)
4853
Create a new node pool in specified cluster.
4954

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
"AssemblyFileName","ClassName","Target","Severity","ProblemId","Description","Remediation"
2+
"Az.Aks","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+
"Az.Aks","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'."
4+
"Az.Aks","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'."
5+
"Az.Aks","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'."

0 commit comments

Comments
 (0)