Skip to content

Commit

Permalink
setting default vm size for windows (#637)
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiaofang Zhang authored and yugangw-msft committed Apr 17, 2019
1 parent c144ee3 commit 7691b06
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/aks-preview/azext_aks_preview/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -1005,7 +1005,7 @@ def aks_agentpool_list(cmd, client, resource_group_name, cluster_name):
def aks_agentpool_add(cmd, client, resource_group_name, cluster_name, nodepool_name,
kubernetes_version=None,
node_zones=None,
node_vm_size="Standard_DS2_v2",
node_vm_size=None,
node_osdisk_size=0,
node_count=3,
vnet_subnet_id=None,
Expand All @@ -1018,6 +1018,12 @@ def aks_agentpool_add(cmd, client, resource_group_name, cluster_name, nodepool_n
raise CLIError("Node pool {} already exists, please try a different name, "
"use 'aks nodepool list' to get current list of node pool".format(nodepool_name))

if node_vm_size is None:
if os_type == "Windows":
node_vm_size = "Standard_D2s_v3"
else:
node_vm_size = "Standard_DS2_v2"

agent_pool = AgentPool(
name=nodepool_name,
count=int(node_count),
Expand Down

0 comments on commit 7691b06

Please sign in to comment.