Skip to content

Commit 870a9e1

Browse files
authored
[Az.Aks] Disable setting the default NodeVmSize value (#27663)
1 parent 596a6fe commit 870a9e1

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

src/Aks/Aks/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
- Additional information about change #1
1919
-->
2020
## Upcoming Release
21+
* Updated the default value of `-NodeVmSize` parameter in `New-AzAksCluster` and `-VmSize` parameter in `New-AzAksNodePool` from 'Standard_D2_V2' to being dynamically selected by the AKS resource provider based on quota and capacity in the next major release.
2122

2223
## Version 6.1.1
2324
* Preannounced breaking change: The default value of `-NodeVmSize` parameter of `New-AzAksCluster` will be changing from 'Standard_DS2_V2 (Linux), Standard_DS2_V3 (Windows)' to being dynamically selected by the AKS resource provider based on quota and capacity in the next major release.

src/Aks/Aks/Commands/CreateOrUpdateKubeBase.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ public abstract class CreateOrUpdateKubeBase : KubeCmdletBase
109109
[Parameter(Mandatory = false, HelpMessage = "The default number of nodes for the node pools.")]
110110
public int NodeOsDiskSize { get; set; }
111111

112-
[Parameter(Mandatory = false, HelpMessage = "The size of the Virtual Machine. Default value is Standard_D2_v2")]
113-
public string NodeVmSize { get; set; } = "Standard_D2_v2";
112+
[Parameter(Mandatory = false, HelpMessage = "The size of the Virtual Machine. Default value is dynamically selected by the AKS resource provider based on quota and capacity.")]
113+
public string NodeVmSize { get; set; } = "";
114114

115115
[Parameter(Mandatory = false, HelpMessage = "Node pool labels used for building Kubernetes network.")]
116116
public Hashtable NodePoolLabel { get; set; }

src/Aks/Aks/Commands/NewAzureRmAks.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
namespace Microsoft.Azure.Commands.Aks
3636
{
3737
[Cmdlet("New", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "AksCluster", DefaultParameterSetName = DefaultParamSet, SupportsShouldProcess = true)]
38-
[GenericBreakingChangeWithVersion("The default value of -NodeVmSize will be changing from 'Standard_DS2_V2 (Linux), Standard_DS2_V3 (Windows)' to being dynamically selected by the AKS resource provider based on quota and capacity.", "14.0.0", "7.0.0")]
3938
[OutputType(typeof(PSKubernetesCluster))]
4039
public class NewAzureRmAks : CreateOrUpdateKubeBase
4140
{

src/Aks/Aks/Commands/NewAzureRmAksNodePool.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ public class NewAzureRmAksNodePool : NewOrUpdateAgentPoolBase
5454
[Parameter(Mandatory = false, HelpMessage = "The default number of nodes for the node pools.")]
5555
public int OsDiskSize { get; set; }
5656

57-
[Parameter(Mandatory = false, HelpMessage = "The size of the Virtual Machine. Default value is Standard_D2_v2.")]
58-
public string VmSize { get; set; } = "Standard_D2_v2";
57+
[Parameter(Mandatory = false, HelpMessage = "The size of the Virtual Machine. Default value is dynamically selected by the AKS resource provider based on quota and capacity.")]
58+
public string VmSize { get; set; } = "";
5959

6060
[Parameter(Mandatory = false, HelpMessage = "VNet SubnetID specifies the VNet's subnet identifier.")]
6161
public string VnetSubnetID { get; set; }

src/Aks/Aks/help/New-AzAksCluster.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1163,7 +1163,7 @@ Accept wildcard characters: False
11631163
```
11641164
11651165
### -NodeVmSize
1166-
The size of the Virtual Machine. Default value is Standard_D2_v2.
1166+
The size of the Virtual Machine. Default value is dynamically selected by the AKS resource provider based on quota and capacity.
11671167
11681168
```yaml
11691169
Type: System.String

src/Aks/Aks/help/New-AzAksNodePool.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,7 @@ Accept wildcard characters: False
665665
```
666666
667667
### -VmSize
668-
The size of the Virtual Machine. Default value is Standard_D2_v2.
668+
The size of the Virtual Machine. Default value is dynamically selected by the AKS resource provider based on quota and capacity.
669669
670670
```yaml
671671
Type: System.String

0 commit comments

Comments
 (0)