Skip to content

[Aks] Remove some aliases for AksCluster #17972

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Aks/Aks/Az.Aks.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ CmdletsToExport = 'Get-AzAksCluster', 'New-AzAksCluster', 'Remove-AzAksCluster',
# 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 = 'Get-AzAks', 'New-AzAks', 'Remove-AzAks', 'Set-AzAks'
AliasesToExport = @()

# DSC resources to export from this module
# DscResourcesToExport = @()
Expand Down
5 changes: 5 additions & 0 deletions src/Aks/Aks/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@
- Additional information about change #1
-->
## Upcoming Release
* Removed these aliases:
* `Get-AzAks`
* `New-AzAks`
* `Set-AzAks`
* `Remove-AzAks`

## Version 3.1.3
* Updated the description of `Force` in `Invoke-AzAksRunCommand` [#17756]
Expand Down
1 change: 0 additions & 1 deletion src/Aks/Aks/Commands/GetAzureRmAks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ namespace Microsoft.Azure.Commands.Aks
{
[GenericBreakingChange("Get-AzAks will be removed in the next major release. Please use Get-AzAksCluster instead of Get-AzAks")]
[Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "AksCluster", DefaultParameterSetName = ResourceGroupParameterSet)]
[Alias("Get-" + ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "Aks")]
[OutputType(typeof(PSKubernetesCluster))]
public class GetAzureRmAks : KubeCmdletBase
{
Expand Down
1 change: 0 additions & 1 deletion src/Aks/Aks/Commands/NewAzureRmAks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ namespace Microsoft.Azure.Commands.Aks
{
[GenericBreakingChange("New-AzAks will be removed in the next major release. Please use New-AzAksCluster instead of New-AzAks")]
[Cmdlet("New", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "AksCluster", DefaultParameterSetName = DefaultParamSet, SupportsShouldProcess = true)]
[Alias("New-" + ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "Aks")]
[OutputType(typeof(PSKubernetesCluster))]
public class NewAzureRmAks : CreateOrUpdateKubeBase
{
Expand Down
1 change: 0 additions & 1 deletion src/Aks/Aks/Commands/RemoveAzureRmAks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ namespace Microsoft.Azure.Commands.Aks
{
[GenericBreakingChange("Remove-AzAks will be removed in the next major release. Please use Remove-AzAksCluster instead of Remove-AzAks")]
[Cmdlet("Remove", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "AksCluster", SupportsShouldProcess = true, DefaultParameterSetName = GroupNameParameterSet)]
[Alias("Remove-" + ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "Aks")]
[OutputType(typeof(bool))]
public class RemoveAzureRmAks : KubeCmdletBase
{
Expand Down
1 change: 0 additions & 1 deletion src/Aks/Aks/Commands/SetAzureRmAks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ namespace Microsoft.Azure.Commands.Aks
{
[GenericBreakingChange("Set-AzAks will be removed in the next major release. Please use Set-AzAksCluster instead of Set-AzAks")]
[Cmdlet("Set", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "AksCluster", DefaultParameterSetName = DefaultParamSet, SupportsShouldProcess = true)]
[Alias("Set-" + ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "Aks")]
[OutputType(typeof(PSKubernetesCluster))]
public class SetAzureRmAks : CreateOrUpdateKubeBase
{
Expand Down
5 changes: 5 additions & 0 deletions src/Aks/Aks/help/Az.Aks.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ Gets the details of the upgrade profile for a managed cluster with a specified r

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

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

The cmdlet may call below Microsoft Graph API according to input parameters:

- POST /servicePrincipals

### [New-AzAksNodePool](New-AzAksNodePool.md)
Create a new node pool in specified cluster.

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
"AssemblyFileName","ClassName","Target","Severity","ProblemId","Description","Remediation"
"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'."
"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'."
"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'."
"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'."