diff --git a/src/Aks/Aks/Az.Aks.psd1 b/src/Aks/Aks/Az.Aks.psd1 index b08a9417ae0f..5a3512e84ff9 100644 --- a/src/Aks/Aks/Az.Aks.psd1 +++ b/src/Aks/Aks/Az.Aks.psd1 @@ -75,8 +75,8 @@ NestedModules = @('Microsoft.Azure.PowerShell.Cmdlets.Aks.dll') FunctionsToExport = @() # 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 = 'Get-AzAks', 'New-AzAks', 'Remove-AzAks', 'Import-AzAksCredential', - 'Start-AzAksDashboard', 'Stop-AzAksDashboard', 'Set-AzAks', +CmdletsToExport = 'Get-AzAksCluster', 'New-AzAksCluster', 'Remove-AzAksCluster', 'Import-AzAksCredential', + 'Start-AzAksDashboard', 'Stop-AzAksDashboard', 'Set-AzAksCluster', 'New-AzAksNodePool', 'Update-AzAksNodePool', 'Remove-AzAksNodePool', 'Get-AzAksNodePool', 'Install-AzAksKubectl', 'Get-AzAksVersion' @@ -84,7 +84,7 @@ CmdletsToExport = 'Get-AzAks', 'New-AzAks', 'Remove-AzAks', 'Import-AzAksCredent # 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 = @() +AliasesToExport = @('Get-AzAks', 'New-AzAks', 'Remove-AzAks', 'Set-AzAks') # DSC resources to export from this module # DscResourcesToExport = @() diff --git a/src/Aks/Aks/ChangeLog.md b/src/Aks/Aks/ChangeLog.md index bff7acd00551..d12911444f19 100644 --- a/src/Aks/Aks/ChangeLog.md +++ b/src/Aks/Aks/ChangeLog.md @@ -18,6 +18,8 @@ - Additional information about change #1 --> ## Upcoming Release +* Removed `ClientIdAndSecret` to `ServicePrincipalIdAndSecret` and set `ClientIdAndSecret` as an alias [#12381]. +* Removed `Get-AzAks`/`New-AzAks`/`Remove-AzAks`/`Set-AzAks` to `Get-AzAksCluster`/`New-AzAksCluster`/`Remove-AzAksCluster`/`Set-AzAksCluster` and set the original ones as alias [#12373]. ## Version 1.1.3 * Fixed bug `Get-AzAks` doesn't get all clusters [#12296] diff --git a/src/Aks/Aks/Commands/CreateOrUpdateKubeBase.cs b/src/Aks/Aks/Commands/CreateOrUpdateKubeBase.cs index 5cc16e7b2db4..3e1790a4f93e 100644 --- a/src/Aks/Aks/Commands/CreateOrUpdateKubeBase.cs +++ b/src/Aks/Aks/Commands/CreateOrUpdateKubeBase.cs @@ -37,6 +37,7 @@ using Microsoft.WindowsAzure.Commands.Utilities.Common; using Microsoft.Rest.Azure.OData; using Microsoft.Azure.Management.Internal.Resources.Models; +using Microsoft.WindowsAzure.Commands.Common.CustomAttributes; namespace Microsoft.Azure.Commands.Aks { @@ -69,7 +70,9 @@ public abstract class CreateOrUpdateKubeBase : KubeCmdletBase Mandatory = false, ParameterSetName = DefaultParamSet, HelpMessage = "The client id and client secret associated with the AAD application / service principal.")] - public PSCredential ClientIdAndSecret { get; set; } + [Alias("ClientIdAndSecret")] + [CmdletParameterBreakingChange("ClientIdAndSecret", ReplaceMentCmdletParameterName = "ServicePrincipalIdAndSecret")] + public PSCredential ServicePrincipalIdAndSecret { get; set; } [Parameter(Mandatory = false, HelpMessage = "Azure location for the cluster. Defaults to the location of the resource group.")] @@ -149,7 +152,7 @@ protected virtual ManagedCluster BuildNewCluster() new ContainerServiceLinuxProfile(LinuxProfileAdminUserName, new ContainerServiceSshConfiguration(pubKey)); - var acsServicePrincipal = EnsureServicePrincipal(ClientIdAndSecret?.UserName, ClientIdAndSecret?.Password?.ToString()); + var acsServicePrincipal = EnsureServicePrincipal(ServicePrincipalIdAndSecret?.UserName, ServicePrincipalIdAndSecret?.Password?.ToString()); var spProfile = new ManagedClusterServicePrincipalProfile( acsServicePrincipal.SpId, diff --git a/src/Aks/Aks/Commands/GetAzureRmAks.cs b/src/Aks/Aks/Commands/GetAzureRmAks.cs index 30124831f373..e66dcc82bb26 100644 --- a/src/Aks/Aks/Commands/GetAzureRmAks.cs +++ b/src/Aks/Aks/Commands/GetAzureRmAks.cs @@ -21,10 +21,13 @@ using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters; using Microsoft.Azure.Management.ContainerService; using Microsoft.Azure.Management.Internal.Resources.Utilities.Models; +using Microsoft.WindowsAzure.Commands.Common.CustomAttributes; namespace Microsoft.Azure.Commands.Aks { - [Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "Aks", DefaultParameterSetName = ResourceGroupParameterSet)] + [CmdletDeprecation(ReplacementCmdletName = "Get-AzAksCluster")] + [Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "AksCluster", DefaultParameterSetName = ResourceGroupParameterSet)] + [Alias("Get-" + ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "Aks")] [OutputType(typeof(PSKubernetesCluster))] public class GetAzureRmAks : KubeCmdletBase { diff --git a/src/Aks/Aks/Commands/NewAzureRmAks.cs b/src/Aks/Aks/Commands/NewAzureRmAks.cs index 1a04f0889114..9066d99aec6f 100644 --- a/src/Aks/Aks/Commands/NewAzureRmAks.cs +++ b/src/Aks/Aks/Commands/NewAzureRmAks.cs @@ -17,11 +17,14 @@ using Microsoft.Azure.Commands.Aks.Models; using Microsoft.Azure.Commands.Aks.Properties; using Microsoft.Azure.Management.ContainerService; +using Microsoft.WindowsAzure.Commands.Common.CustomAttributes; using Microsoft.WindowsAzure.Commands.Utilities.Common; namespace Microsoft.Azure.Commands.Aks { - [Cmdlet("New", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "Aks", DefaultParameterSetName = DefaultParamSet, SupportsShouldProcess = true)] + [CmdletDeprecation(ReplacementCmdletName = "New-AzAksCluster")] + [Cmdlet("New", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "AksCluster", DefaultParameterSetName = DefaultParamSet, SupportsShouldProcess = true)] + [Alias("New-" + ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "Aks")] [OutputType(typeof(PSKubernetesCluster))] public class NewAzureRmAks : NewKubeBase { diff --git a/src/Aks/Aks/Commands/NewKubeBase.cs b/src/Aks/Aks/Commands/NewKubeBase.cs index a8f0d8e550d4..044ff23fcc12 100644 --- a/src/Aks/Aks/Commands/NewKubeBase.cs +++ b/src/Aks/Aks/Commands/NewKubeBase.cs @@ -111,7 +111,7 @@ protected override ManagedCluster BuildNewCluster() new ContainerServiceLinuxProfile(LinuxProfileAdminUserName, new ContainerServiceSshConfiguration(pubKey)); - var acsServicePrincipal = EnsureServicePrincipal(ClientIdAndSecret?.UserName, ClientIdAndSecret?.Password?.ToString()); + var acsServicePrincipal = EnsureServicePrincipal(ServicePrincipalIdAndSecret?.UserName, ServicePrincipalIdAndSecret?.Password?.ToString()); var spProfile = new ManagedClusterServicePrincipalProfile( acsServicePrincipal.SpId, diff --git a/src/Aks/Aks/Commands/RemoveAzureRmAks.cs b/src/Aks/Aks/Commands/RemoveAzureRmAks.cs index 1a6c12d96cf5..316d771be851 100644 --- a/src/Aks/Aks/Commands/RemoveAzureRmAks.cs +++ b/src/Aks/Aks/Commands/RemoveAzureRmAks.cs @@ -18,10 +18,13 @@ using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters; using Microsoft.Azure.Management.ContainerService; using Microsoft.Azure.Management.Internal.Resources.Utilities.Models; +using Microsoft.WindowsAzure.Commands.Common.CustomAttributes; namespace Microsoft.Azure.Commands.Aks { - [Cmdlet("Remove", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "Aks", SupportsShouldProcess = true, DefaultParameterSetName = GroupNameParameterSet)] + [CmdletDeprecation(ReplacementCmdletName = "Remove-AzAksCluster")] + [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 { diff --git a/src/Aks/Aks/Commands/SetAzureRmAks.cs b/src/Aks/Aks/Commands/SetAzureRmAks.cs index ce6f54ddcba0..fb1a4681c44e 100644 --- a/src/Aks/Aks/Commands/SetAzureRmAks.cs +++ b/src/Aks/Aks/Commands/SetAzureRmAks.cs @@ -21,11 +21,14 @@ using Microsoft.Azure.Management.ContainerService; using Microsoft.Azure.Management.ContainerService.Models; using Microsoft.Azure.Management.Internal.Resources.Utilities.Models; +using Microsoft.WindowsAzure.Commands.Common.CustomAttributes; using Microsoft.WindowsAzure.Commands.Utilities.Common; namespace Microsoft.Azure.Commands.Aks { - [Cmdlet("Set", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "Aks", DefaultParameterSetName = DefaultParamSet, SupportsShouldProcess = true)] + [CmdletDeprecation(ReplacementCmdletName = "Set-AzAksCluster")] + [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 { @@ -108,10 +111,10 @@ public override void ExecuteCmdlet() new ContainerServiceSshPublicKey(GetSshKey(SshKeyValue)) }; } - if (this.IsParameterBound(c => c.ClientIdAndSecret)) + if (this.IsParameterBound(c => c.ServicePrincipalIdAndSecret)) { WriteVerbose(Resources.UpdatingServicePrincipal); - var acsServicePrincipal = EnsureServicePrincipal(ClientIdAndSecret.UserName, ClientIdAndSecret.Password.ToString()); + var acsServicePrincipal = EnsureServicePrincipal(ServicePrincipalIdAndSecret.UserName, ServicePrincipalIdAndSecret.Password.ToString()); var spProfile = new ManagedClusterServicePrincipalProfile( acsServicePrincipal.SpId, diff --git a/src/Aks/Aks/help/Az.Aks.md b/src/Aks/Aks/help/Az.Aks.md index c02c19b613c5..7d6121602855 100644 --- a/src/Aks/Aks/help/Az.Aks.md +++ b/src/Aks/Aks/help/Az.Aks.md @@ -11,7 +11,7 @@ Locale: en-US Commands to interact with Azure managed Kubernetes clusters. ## Az.Aks Cmdlets -### [Get-AzAks](Get-AzAks.md) +### [Get-AzAksCluster](Get-AzAksCluster.md) List Kubernetes managed clusters. ### [Get-AzAksNodePool](Get-AzAksNodePool.md) @@ -26,19 +26,19 @@ Import and merge Kubectl config for a managed Kubernetes Cluster. ### [Install-AzAksKubectl](Install-AzAksKubectl.md) Download and install kubectl, the Kubernetes command-line tool. -### [New-AzAks](New-AzAks.md) +### [New-AzAksCluster](New-AzAksCluster.md) Create a new managed Kubernetes cluster. ### [New-AzAksNodePool](New-AzAksNodePool.md) Create a new node pool in specified cluster. -### [Remove-AzAks](Remove-AzAks.md) +### [Remove-AzAksCluster](Remove-AzAksCluster.md) Delete a managed Kubernetes cluster. ### [Remove-AzAksNodePool](Remove-AzAksNodePool.md) Delete node pool from managed cluster. -### [Set-AzAks](Set-AzAks.md) +### [Set-AzAksCluster](Set-AzAksCluster.md) Update or create a managed Kubernetes cluster. ### [Start-AzAksDashboard](Start-AzAksDashboard.md) @@ -49,4 +49,3 @@ Stop the Kubectl SSH tunnel created in Start-AzKubernetesDashboard. ### [Update-AzAksNodePool](Update-AzAksNodePool.md) Update node pool in a managed cluster. - diff --git a/src/Aks/Aks/help/Get-AzAks.md b/src/Aks/Aks/help/Get-AzAksCluster.md similarity index 84% rename from src/Aks/Aks/help/Get-AzAks.md rename to src/Aks/Aks/help/Get-AzAksCluster.md index 8fb7a85d8483..3b0c22c9f6ba 100644 --- a/src/Aks/Aks/help/Get-AzAks.md +++ b/src/Aks/Aks/help/Get-AzAksCluster.md @@ -1,11 +1,11 @@ --- external help file: Microsoft.Azure.PowerShell.Cmdlets.Aks.dll-Help.xml Module Name: Az.Aks -online version: https://docs.microsoft.com/en-us/powershell/module/az.aks/get-azaks +online version: https://docs.microsoft.com/en-us/powershell/module/az.aks/get-azakscluster schema: 2.0.0 --- -# Get-AzAks +# Get-AzAksCluster ## SYNOPSIS List Kubernetes managed clusters. @@ -14,17 +14,18 @@ List Kubernetes managed clusters. ### ResourceGroupParameterSet (Default) ``` -Get-AzAks [[-ResourceGroupName] ] [-DefaultProfile ] [] +Get-AzAksCluster [[-ResourceGroupName] ] [-DefaultProfile ] + [] ``` ### IdParameterSet ``` -Get-AzAks [-Id] [-DefaultProfile ] [] +Get-AzAksCluster [-Id] [-DefaultProfile ] [] ``` ### NameParameterSet ``` -Get-AzAks [-ResourceGroupName] [-Name] [-DefaultProfile ] +Get-AzAksCluster [-ResourceGroupName] [-Name] [-DefaultProfile ] [] ``` @@ -34,8 +35,8 @@ List Kubernetes managed clusters. ## EXAMPLES ### List all Kubernetes clusters -``` -PS C:\> Get-AzAks +```powershell +PS C:\> Get-AzAksCluster ``` ## PARAMETERS diff --git a/src/Aks/Aks/help/New-AzAks.md b/src/Aks/Aks/help/New-AzAksCluster.md similarity index 93% rename from src/Aks/Aks/help/New-AzAks.md rename to src/Aks/Aks/help/New-AzAksCluster.md index 4472e8b09677..a7b273726ac8 100644 --- a/src/Aks/Aks/help/New-AzAks.md +++ b/src/Aks/Aks/help/New-AzAksCluster.md @@ -1,11 +1,11 @@ --- external help file: Microsoft.Azure.PowerShell.Cmdlets.Aks.dll-Help.xml Module Name: Az.Aks -online version: https://docs.microsoft.com/en-us/powershell/module/az.aks/new-azaks +online version: https://docs.microsoft.com/en-us/powershell/module/az.aks/new-azakscluster schema: 2.0.0 --- -# New-AzAks +# New-AzAksCluster ## SYNOPSIS Create a new managed Kubernetes cluster. @@ -13,15 +13,16 @@ Create a new managed Kubernetes cluster. ## SYNTAX ``` -New-AzAks [-Force] [-NodeVmSetType ] [-NodeVnetSubnetID ] [-NodeMaxPodCount ] +New-AzAksCluster [-Force] [-NodeVmSetType ] [-NodeVnetSubnetID ] [-NodeMaxPodCount ] [-NodeOsType ] [-NodeSetPriority ] [-NodeScaleSetEvictionPolicy ] [-AcrNameToAttach ] [-EnableRbac] [-WindowsProfileAdminUserName ] [-WindowsProfileAdminUserPassword ] [-NetworkPlugin ] [-LoadBalancerSku ] - [-ResourceGroupName] [-Name] [[-ClientIdAndSecret] ] [-Location ] - [-LinuxProfileAdminUserName ] [-DnsNamePrefix ] [-KubernetesVersion ] - [-NodeName ] [-NodeMinCount ] [-NodeMaxCount ] [-EnableNodeAutoScaling] - [-NodeCount ] [-NodeOsDiskSize ] [-NodeVmSize ] [-SshKeyValue ] [-AsJob] - [-Tag ] [-DefaultProfile ] [-WhatIf] [-Confirm] [] + [-ResourceGroupName] [-Name] [[-ServicePrincipalIdAndSecret] ] + [-Location ] [-LinuxProfileAdminUserName ] [-DnsNamePrefix ] + [-KubernetesVersion ] [-NodeName ] [-NodeMinCount ] [-NodeMaxCount ] + [-EnableNodeAutoScaling] [-NodeCount ] [-NodeOsDiskSize ] [-NodeVmSize ] + [-SshKeyValue ] [-AsJob] [-Tag ] [-DefaultProfile ] [-WhatIf] + [-Confirm] [] ``` ## DESCRIPTION @@ -32,7 +33,7 @@ Create a new Azure Kubernetes Service(AKS) cluster. ### New an AKS with default params. -``` +```powershell PS C:\> New-AzAks -ResourceGroupName myResourceGroup -Name myCluster ``` @@ -40,7 +41,7 @@ PS C:\> New-AzAks -ResourceGroupName myResourceGroup -Name myCluster To create Windows Server container on an AKS, you must specify at least four following parameters when creating the AKS, and the value for `NetworkPlugin` and `NodeVmSetType` must be `azure` and `VirtualMachineScaleSets` respectively. `-WindowsProfileAdminUserName *** -WindowsProfileAdminUserPassword *** -NetworkPlugin azure -NodeVmSetType VirtualMachineScaleSets` -``` +```powershell PS C:\> $cred = ConvertTo-SecureString -AsPlainText "Password!!123" -Force PS C:\> New-AzAks -ResourceGroupName myResourceGroup -Name myCluster -WindowsProfileAdminUserName azureuser -WindowsProfileAdminUserPassword $cred -NetworkPlugin azure -NodeVmSetType VirtualMachineScaleSets PS C:\> New-AzAksNodePool -ResourceGroupName myResourceGroup -ClusterName myCluster -Name win1 -OsType Windows -VmSetType VirtualMachineScaleSets @@ -78,21 +79,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -ClientIdAndSecret -The client id and client secret associated with the AAD application / service principal. - -```yaml -Type: System.Management.Automation.PSCredential -Parameter Sets: (All) -Aliases: - -Required: False -Position: 2 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -DefaultProfile The credentials, account, tenant, and subscription used for communication with Azure. @@ -454,6 +440,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ServicePrincipalIdAndSecret +The client id and client secret associated with the AAD application / service principal. + +```yaml +Type: System.Management.Automation.PSCredential +Parameter Sets: (All) +Aliases: ClientIdAndSecret + +Required: False +Position: 2 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -SshKeyValue SSH key file value or key file path. Defaults to {HOME}/.ssh/id_rsa.pub. diff --git a/src/Aks/Aks/help/Remove-AzAks.md b/src/Aks/Aks/help/Remove-AzAksCluster.md similarity index 91% rename from src/Aks/Aks/help/Remove-AzAks.md rename to src/Aks/Aks/help/Remove-AzAksCluster.md index 19ec047f8058..1f927964e582 100644 --- a/src/Aks/Aks/help/Remove-AzAks.md +++ b/src/Aks/Aks/help/Remove-AzAksCluster.md @@ -1,11 +1,11 @@ --- external help file: Microsoft.Azure.PowerShell.Cmdlets.Aks.dll-Help.xml Module Name: Az.Aks -online version: https://docs.microsoft.com/en-us/powershell/module/az.aks/remove-azaks +online version: https://docs.microsoft.com/en-us/powershell/module/az.aks/remove-azakscluster schema: 2.0.0 --- -# Remove-AzAks +# Remove-AzAksCluster ## SYNOPSIS Delete a managed Kubernetes cluster. @@ -14,20 +14,20 @@ Delete a managed Kubernetes cluster. ### GroupNameParameterSet (Default) ``` -Remove-AzAks [-ResourceGroupName] [-Name] [-PassThru] [-AsJob] [-Force] +Remove-AzAksCluster [-ResourceGroupName] [-Name] [-PassThru] [-AsJob] [-Force] [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` ### InputObjectParameterSet ``` -Remove-AzAks -InputObject [-PassThru] [-AsJob] [-Force] +Remove-AzAksCluster -InputObject [-PassThru] [-AsJob] [-Force] [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` ### IdParameterSet ``` -Remove-AzAks [-Id] [-PassThru] [-AsJob] [-Force] [-DefaultProfile ] [-WhatIf] - [-Confirm] [] +Remove-AzAksCluster [-Id] [-PassThru] [-AsJob] [-Force] [-DefaultProfile ] + [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -36,7 +36,7 @@ Delete a managed Kubernetes cluster. ## EXAMPLES ### Delete an existing managed Kubernetes cluster -``` +```powershell PS C:\> Remove-AzAks -ResourceGroupName group -Name myCluster ``` diff --git a/src/Aks/Aks/help/Set-AzAks.md b/src/Aks/Aks/help/Set-AzAksCluster.md similarity index 90% rename from src/Aks/Aks/help/Set-AzAks.md rename to src/Aks/Aks/help/Set-AzAksCluster.md index bc8793f046d7..3c1a0d211338 100644 --- a/src/Aks/Aks/help/Set-AzAks.md +++ b/src/Aks/Aks/help/Set-AzAksCluster.md @@ -1,11 +1,11 @@ --- external help file: Microsoft.Azure.PowerShell.Cmdlets.Aks.dll-Help.xml Module Name: Az.Aks -online version: https://docs.microsoft.com/en-us/powershell/module/az.aks/set-azaks +online version: https://docs.microsoft.com/en-us/powershell/module/az.aks/set-azakscluster schema: 2.0.0 --- -# Set-AzAks +# Set-AzAksCluster ## SYNOPSIS Update or create a managed Kubernetes cluster. @@ -13,8 +13,8 @@ Update or create a managed Kubernetes cluster. ## SYNTAX ### defaultParameterSet (Default) -``` -Set-AzAks [-ResourceGroupName] [-Name] [[-ClientIdAndSecret] ] +```powershell +Set-AzAksCluster [-ResourceGroupName] [-Name] [[-ServicePrincipalIdAndSecret] ] [-Location ] [-LinuxProfileAdminUserName ] [-DnsNamePrefix ] [-KubernetesVersion ] [-NodeName ] [-NodeMinCount ] [-NodeMaxCount ] [-EnableNodeAutoScaling] [-NodeCount ] [-NodeOsDiskSize ] [-NodeVmSize ] @@ -23,8 +23,8 @@ Set-AzAks [-ResourceGroupName] [-Name] [[-ClientIdAndSecret] < ``` ### InputObjectParameterSet -``` -Set-AzAks -InputObject [-Location ] [-LinuxProfileAdminUserName ] +```powershell +Set-AzAksCluster -InputObject [-Location ] [-LinuxProfileAdminUserName ] [-DnsNamePrefix ] [-KubernetesVersion ] [-NodeName ] [-NodeMinCount ] [-NodeMaxCount ] [-EnableNodeAutoScaling] [-NodeCount ] [-NodeOsDiskSize ] [-NodeVmSize ] [-SshKeyValue ] [-AsJob] [-Tag ] @@ -32,12 +32,12 @@ Set-AzAks -InputObject [-Location ] [-LinuxProfile ``` ### IdParameterSet -``` -Set-AzAks [-Id] [-Location ] [-LinuxProfileAdminUserName ] [-DnsNamePrefix ] - [-KubernetesVersion ] [-NodeName ] [-NodeMinCount ] [-NodeMaxCount ] - [-EnableNodeAutoScaling] [-NodeCount ] [-NodeOsDiskSize ] [-NodeVmSize ] - [-SshKeyValue ] [-AsJob] [-Tag ] [-DefaultProfile ] [-WhatIf] - [-Confirm] [] +```powershell +Set-AzAksCluster [-Id] [-Location ] [-LinuxProfileAdminUserName ] + [-DnsNamePrefix ] [-KubernetesVersion ] [-NodeName ] [-NodeMinCount ] + [-NodeMaxCount ] [-EnableNodeAutoScaling] [-NodeCount ] [-NodeOsDiskSize ] + [-NodeVmSize ] [-SshKeyValue ] [-AsJob] [-Tag ] + [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -46,7 +46,7 @@ Update or create a managed Kubernetes cluster. ## EXAMPLES ### Example 1 -``` +```powershell PS C:\> Get-AzAks -ResourceGroupName group -Name myCluster | Set-AzAks -NodeCount 5 ``` @@ -69,21 +69,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -ClientIdAndSecret -The client id and client secret associated with the AAD application / service principal. - -```yaml -Type: System.Management.Automation.PSCredential -Parameter Sets: defaultParameterSet -Aliases: - -Required: False -Position: 2 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -DefaultProfile The credentials, account, tenant, and subscription used for communication with Azure. @@ -325,6 +310,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ServicePrincipalIdAndSecret +The client id and client secret associated with the AAD application / service principal. + +```yaml +Type: System.Management.Automation.PSCredential +Parameter Sets: defaultParameterSet +Aliases: ClientIdAndSecret + +Required: False +Position: 2 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -SshKeyValue SSH key file value or key file path. Defaults to {HOME}/.ssh/id_rsa.pub.