Skip to content

Commit ed70dbf

Browse files
feat: add AKS node customization resource typespec (#37492)
Co-authored-by: Tim Wright <[email protected]>
1 parent 2caaf9e commit ed70dbf

File tree

53 files changed

+4445
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+4445
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# This file configures spell checking. Items in "words" were initially populated
2+
# with words that might be spelling errors. Review these words and take
3+
# appropriate action. For more information, see: https://aka.ms/ci-fix#spell-check
4+
5+
# Spell checking is not case sensitive
6+
# Keep word lists in alphabetical order so the file is easier to manage
7+
version: '0.2'
8+
import:
9+
- ../../cspell.yaml
10+
words:
11+
- reimaged
12+
- vhds
13+
- vhd
Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
{
2+
"title": "NodeCustomizations_CreateOrUpdate",
3+
"operationId": "NodeCustomizations_CreateOrUpdate",
4+
"parameters": {
5+
"api-version": "2025-08-02-preview",
6+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
7+
"resourceGroupName": "rg1",
8+
"nodeCustomizationName": "my-node-customization",
9+
"resource": {
10+
"properties": {
11+
"containerImages": [
12+
"redis:8.0.0"
13+
],
14+
"customizationScripts": [
15+
{
16+
"name": "initialize-node",
17+
"executionPoint": "NodeImageBuildTime",
18+
"scriptType": "Bash",
19+
"script": "echo \"test node customization\" > /var/log/test-node-customization.txt"
20+
}
21+
],
22+
"identityProfile": {}
23+
},
24+
"tags": {
25+
"team": "blue"
26+
},
27+
"location": "westus2"
28+
}
29+
},
30+
"responses": {
31+
"200": {
32+
"body": {
33+
"properties": {
34+
"containerImages": [
35+
"redis:8.0.0"
36+
],
37+
"customizationScripts": [
38+
{
39+
"name": "initialize-node",
40+
"executionPoint": "NodeImageBuildTime",
41+
"scriptType": "Bash",
42+
"script": "echo \"test node customization\" > /var/log/test-node-customization.txt"
43+
}
44+
],
45+
"identityProfile": {
46+
"principalId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
47+
"clientId": "df4316d4-0ef3-45a3-99d0-2d13a6543aff"
48+
},
49+
"version": "20250101-abcd1234",
50+
"provisioningState": "Succeeded"
51+
},
52+
"eTag": "ETagValue",
53+
"tags": {
54+
"team": "blue"
55+
},
56+
"location": "westus2",
57+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/nodeCustomizations/my-node-customization",
58+
"name": "my-node-customization",
59+
"type": "Microsoft.ContainerService/nodeCustomizations",
60+
"systemData": {
61+
"createdBy": "someUser",
62+
"createdByType": "User",
63+
"createdAt": "2025-05-02T04:08:43.702Z",
64+
"lastModifiedBy": "someOtherUser",
65+
"lastModifiedByType": "User",
66+
"lastModifiedAt": "2025-05-02T04:08:43.702Z"
67+
}
68+
}
69+
},
70+
"201": {
71+
"headers": {
72+
"Azure-AsyncOperation": "https://contoso.com/operationstatus"
73+
},
74+
"body": {
75+
"properties": {
76+
"containerImages": [
77+
"redis:8.0.0"
78+
],
79+
"customizationScripts": [
80+
{
81+
"name": "initialize-node",
82+
"executionPoint": "NodeImageBuildTime",
83+
"scriptType": "Bash",
84+
"script": "echo \"test node customization\" > /var/log/test-node-customization.txt"
85+
}
86+
],
87+
"identityProfile": {
88+
"principalId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
89+
"clientId": "df4316d4-0ef3-45a3-99d0-2d13a6543aff"
90+
},
91+
"version": "20250101-abcd1234",
92+
"provisioningState": "Succeeded"
93+
},
94+
"eTag": "ETagValue",
95+
"tags": {
96+
"team": "blue"
97+
},
98+
"location": "westus2",
99+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/nodeCustomizations/my-node-customization",
100+
"name": "my-node-customization",
101+
"type": "Microsoft.ContainerService/nodeCustomizations",
102+
"systemData": {
103+
"createdBy": "someUser",
104+
"createdByType": "User",
105+
"createdAt": "2025-05-02T04:08:43.702Z",
106+
"lastModifiedBy": "someOtherUser",
107+
"lastModifiedByType": "User",
108+
"lastModifiedAt": "2025-05-02T04:08:43.702Z"
109+
}
110+
}
111+
}
112+
}
113+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"title": "NodeCustomizations_Delete",
3+
"operationId": "NodeCustomizations_Delete",
4+
"parameters": {
5+
"api-version": "2025-08-02-preview",
6+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
7+
"resourceGroupName": "rg1",
8+
"nodeCustomizationName": "my-node-customization"
9+
},
10+
"responses": {
11+
"202": {
12+
"headers": {
13+
"location": "https://contoso.com/operationstatus"
14+
}
15+
},
16+
"204": {}
17+
}
18+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"title": "NodeCustomizations_DeleteVersion",
3+
"operationId": "NodeCustomizations_DeleteVersion",
4+
"parameters": {
5+
"api-version": "2025-08-02-preview",
6+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
7+
"resourceGroupName": "rg1",
8+
"nodeCustomizationName": "my-node-customization",
9+
"version": "20250101-abcd1234"
10+
},
11+
"responses": {
12+
"202": {
13+
"headers": {
14+
"location": "https://contoso.com/operationstatus"
15+
}
16+
},
17+
"204": {}
18+
}
19+
}
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"title": "NodeCustomizations_Get",
3+
"operationId": "NodeCustomizations_Get",
4+
"parameters": {
5+
"api-version": "2025-08-02-preview",
6+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
7+
"resourceGroupName": "rg1",
8+
"nodeCustomizationName": "my-node-customization"
9+
},
10+
"responses": {
11+
"200": {
12+
"body": {
13+
"properties": {
14+
"containerImages": [
15+
"redis:8.0.0"
16+
],
17+
"customizationScripts": [
18+
{
19+
"name": "initialize-node",
20+
"executionPoint": "NodeImageBuildTime",
21+
"scriptType": "Bash",
22+
"script": "echo \"test node customization\" > /var/log/test-node-customization.txt",
23+
"rebootAfter": false
24+
}
25+
],
26+
"identityProfile": {
27+
"principalId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
28+
"clientId": "df4316d4-0ef3-45a3-99d0-2d13a6543aff"
29+
},
30+
"version": "20250101-abcd1234",
31+
"provisioningState": "Succeeded"
32+
},
33+
"eTag": "ETagValue",
34+
"tags": {
35+
"team": "blue"
36+
},
37+
"location": "westus2",
38+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/nodeCustomizations/my-node-customization",
39+
"name": "my-node-customization",
40+
"type": "Microsoft.ContainerService/nodeCustomizations",
41+
"systemData": {
42+
"createdBy": "someUser",
43+
"createdByType": "User",
44+
"createdAt": "2025-05-02T04:08:43.702Z",
45+
"lastModifiedBy": "someOtherUser",
46+
"lastModifiedByType": "User",
47+
"lastModifiedAt": "2025-05-02T04:08:43.702Z"
48+
}
49+
}
50+
}
51+
}
52+
}
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"title": "NodeCustomizations_GetVersion",
3+
"operationId": "NodeCustomizations_GetVersion",
4+
"parameters": {
5+
"api-version": "2025-08-02-preview",
6+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
7+
"resourceGroupName": "rg1",
8+
"nodeCustomizationName": "my-node-customization",
9+
"version": "20250101-abcd1234"
10+
},
11+
"responses": {
12+
"200": {
13+
"body": {
14+
"properties": {
15+
"containerImages": [
16+
"redis:8.0.0"
17+
],
18+
"customizationScripts": [
19+
{
20+
"name": "initialize-node",
21+
"executionPoint": "NodeImageBuildTime",
22+
"scriptType": "Bash",
23+
"script": "echo \"test node customization\" > /var/log/test-node-customization.txt",
24+
"rebootAfter": false
25+
}
26+
],
27+
"identityProfile": {
28+
"principalId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
29+
"clientId": "df4316d4-0ef3-45a3-99d0-2d13a6543aff"
30+
},
31+
"version": "20250101-abcd1234",
32+
"provisioningState": "Succeeded"
33+
},
34+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/nodeCustomizations/my-node-customization",
35+
"name": "my-node-customization",
36+
"type": "Microsoft.ContainerService/nodeCustomizations",
37+
"systemData": {
38+
"createdBy": "someUser",
39+
"createdByType": "User",
40+
"createdAt": "2025-05-02T04:08:43.702Z",
41+
"lastModifiedBy": "someOtherUser",
42+
"lastModifiedByType": "User",
43+
"lastModifiedAt": "2025-05-02T04:08:43.702Z"
44+
}
45+
}
46+
}
47+
}
48+
}
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
{
2+
"title": "NodeCustomizations_ListByResourceGroup",
3+
"operationId": "NodeCustomizations_ListByResourceGroup",
4+
"parameters": {
5+
"api-version": "2025-08-02-preview",
6+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
7+
"resourceGroupName": "rg1"
8+
},
9+
"responses": {
10+
"200": {
11+
"body": {
12+
"value": [
13+
{
14+
"properties": {
15+
"containerImages": [
16+
"redis:8.0.0"
17+
],
18+
"customizationScripts": [
19+
{
20+
"name": "initialize-node",
21+
"executionPoint": "NodeImageBuildTime",
22+
"scriptType": "Bash",
23+
"script": "echo \"test node customization\" > /var/log/test-node-customization.txt",
24+
"rebootAfter": false
25+
}
26+
],
27+
"identityProfile": {
28+
"principalId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
29+
"clientId": "df4316d4-0ef3-45a3-99d0-2d13a6543aff"
30+
},
31+
"version": "20250101-abcd1234",
32+
"provisioningState": "Succeeded"
33+
},
34+
"eTag": "ETagValue",
35+
"tags": {
36+
"team": "blue"
37+
},
38+
"location": "westus2",
39+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/nodeCustomizations/my-node-customization",
40+
"name": "my-node-customization",
41+
"type": "Microsoft.ContainerService/nodeCustomizations",
42+
"systemData": {
43+
"createdBy": "someUser",
44+
"createdByType": "User",
45+
"createdAt": "2025-05-02T04:08:43.702Z",
46+
"lastModifiedBy": "someOtherUser",
47+
"lastModifiedByType": "User",
48+
"lastModifiedAt": "2025-05-02T04:08:43.702Z"
49+
}
50+
}
51+
],
52+
"nextLink": "https://microsoft.com/ah"
53+
}
54+
}
55+
}
56+
}
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
{
2+
"title": "NodeCustomizations_ListBySubscription",
3+
"operationId": "NodeCustomizations_ListBySubscription",
4+
"parameters": {
5+
"api-version": "2025-08-02-preview",
6+
"subscriptionId": "00000000-0000-0000-0000-000000000000"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"value": [
12+
{
13+
"properties": {
14+
"containerImages": [
15+
"redis:8.0.0"
16+
],
17+
"customizationScripts": [
18+
{
19+
"name": "initialize-node",
20+
"executionPoint": "NodeImageBuildTime",
21+
"scriptType": "Bash",
22+
"script": "echo \"test node customization\" > /var/log/test-node-customization.txt",
23+
"rebootAfter": false
24+
}
25+
],
26+
"identityProfile": {
27+
"principalId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
28+
"clientId": "df4316d4-0ef3-45a3-99d0-2d13a6543aff"
29+
},
30+
"version": "20250101-abcd1234",
31+
"provisioningState": "Succeeded"
32+
},
33+
"eTag": "ETagValue",
34+
"tags": {
35+
"team": "blue"
36+
},
37+
"location": "westus2",
38+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/nodeCustomizations/my-node-customization",
39+
"name": "my-node-customization",
40+
"type": "Microsoft.ContainerService/nodeCustomizations",
41+
"systemData": {
42+
"createdBy": "someUser",
43+
"createdByType": "User",
44+
"createdAt": "2025-05-02T04:08:43.702Z",
45+
"lastModifiedBy": "someOtherUser",
46+
"lastModifiedByType": "User",
47+
"lastModifiedAt": "2025-05-02T04:08:43.702Z"
48+
}
49+
}
50+
],
51+
"nextLink": "https://microsoft.com/ah"
52+
}
53+
}
54+
}
55+
}

0 commit comments

Comments
 (0)