Skip to content

Commit 00ce174

Browse files
ShiqianTaoFumingZhang
authored andcommitted
AKS agent pool properties add AgentPoolWindowsProfile and DisableOutboundNAT (Azure#20407)
* AKS agent pool properties add AgentPoolWindowsProfile and DisableOutboundNAT * Change disableOutboundNAT to disableOutboundNat because of ARM format; Improve description. * Improve description
1 parent 5b8776d commit 00ce174

File tree

2 files changed

+81
-0
lines changed

2 files changed

+81
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-08-02-preview",
4+
"subscriptionId": "subid1",
5+
"resourceGroupName": "rg1",
6+
"resourceName": "clustername1",
7+
"agentPoolName": "wnp2",
8+
"parameters": {
9+
"properties": {
10+
"orchestratorVersion": "1.23.8",
11+
"count": 3,
12+
"vmSize": "Standard_D4s_v3",
13+
"osType": "Windows",
14+
"osSKU": "Windows2022",
15+
"windowsProfile": {
16+
"disableOutboundNat": true
17+
}
18+
}
19+
}
20+
},
21+
"responses": {
22+
"200": {
23+
"body": {
24+
"id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/clustername1/agentPools/wnp2",
25+
"type": "Microsoft.ContainerService/managedClusters/agentPools",
26+
"name": "wnp2",
27+
"properties": {
28+
"provisioningState": "Succeeded",
29+
"orchestratorVersion": "1.23.8",
30+
"currentOrchestratorVersion": "1.23.8",
31+
"count": 3,
32+
"vmSize": "Standard_D4s_v3",
33+
"maxPods": 110,
34+
"osType": "Windows",
35+
"osSKU": "Windows2022",
36+
"windowsProfile": {
37+
"disableOutboundNat": true
38+
}
39+
}
40+
}
41+
},
42+
"201": {
43+
"body": {
44+
"id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/clustername1/agentPools/wnp2",
45+
"type": "Microsoft.ContainerService/managedClusters/agentPools",
46+
"name": "wnp2",
47+
"properties": {
48+
"provisioningState": "Creating",
49+
"orchestratorVersion": "1.23.8",
50+
"currentOrchestratorVersion": "1.23.8",
51+
"count": 3,
52+
"vmSize": "Standard_D4s_v3",
53+
"maxPods": 110,
54+
"osType": "Windows",
55+
"osSKU": "Windows2022",
56+
"windowsProfile": {
57+
"disableOutboundNat": true
58+
}
59+
}
60+
}
61+
}
62+
}
63+
}

specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-08-02-preview/managedClusters.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1112,6 +1112,9 @@
11121112
"Create Agent Pool with Windows OSSKU": {
11131113
"$ref": "./examples/AgentPoolsCreate_WindowsOSSKU.json"
11141114
},
1115+
"Create Windows Agent Pool with disabling OutboundNAT": {
1116+
"$ref": "./examples/AgentPoolsCreate_WindowsDisableOutboundNAT.json"
1117+
},
11151118
"Create Agent Pool with GPUMIG": {
11161119
"$ref": "./examples/AgentPoolsCreate_GPUMIG.json"
11171120
},
@@ -3515,6 +3518,10 @@
35153518
},
35163519
"title": "The fully qualified resource ID of the Dedicated Host Group to provision virtual machines from, used only in creation scenario and not allowed to changed once set.",
35173520
"description": "This is of the form: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}. For more information see [Azure dedicated hosts](https://docs.microsoft.com/azure/virtual-machines/dedicated-hosts)."
3521+
},
3522+
"windowsProfile": {
3523+
"$ref": "#/definitions/AgentPoolWindowsProfile",
3524+
"description": "The Windows agent pool's specific profile."
35183525
}
35193526
},
35203527
"description": "Properties for the container service agent pool profile."
@@ -5839,6 +5846,17 @@
58395846
}
58405847
}
58415848
},
5849+
"AgentPoolWindowsProfile": {
5850+
"type": "object",
5851+
"description": "The Windows agent pool's specific profile.",
5852+
"properties": {
5853+
"disableOutboundNat": {
5854+
"type": "boolean",
5855+
"title": "Whether to disable OutboundNAT in windows nodes",
5856+
"description": "The default value is false. Outbound NAT can only be disabled if the cluster outboundType is NAT Gateway and the Windows agent pool does not have node public IP enabled."
5857+
}
5858+
}
5859+
},
58425860
"SysctlConfig": {
58435861
"description": "Sysctl settings for Linux agent nodes.",
58445862
"type": "object",

0 commit comments

Comments
 (0)