@azure/arm-containerservice 21.2.0-alpha.20241024.1 → 21.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (225) hide show
  1. package/CHANGELOG.md +6 -9
  2. package/README.md +1 -1
  3. package/dist/index.js +1199 -4326
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/dist-esm/samples-dev/agentPoolsAbortLatestOperationSample.js +3 -3
  8. package/dist-esm/samples-dev/agentPoolsCreateOrUpdateSample.js +23 -151
  9. package/dist-esm/samples-dev/agentPoolsCreateOrUpdateSample.js.map +1 -1
  10. package/dist-esm/samples-dev/agentPoolsDeleteMachinesSample.js +1 -1
  11. package/dist-esm/samples-dev/agentPoolsDeleteSample.js +1 -21
  12. package/dist-esm/samples-dev/agentPoolsDeleteSample.js.map +1 -1
  13. package/dist-esm/samples-dev/agentPoolsGetAvailableAgentPoolVersionsSample.js +1 -1
  14. package/dist-esm/samples-dev/agentPoolsGetSample.js +1 -1
  15. package/dist-esm/samples-dev/agentPoolsGetUpgradeProfileSample.js +1 -1
  16. package/dist-esm/samples-dev/agentPoolsListSample.js +1 -1
  17. package/dist-esm/samples-dev/agentPoolsUpgradeNodeImageVersionSample.js +1 -1
  18. package/dist-esm/samples-dev/machinesGetSample.js +2 -2
  19. package/dist-esm/samples-dev/machinesListSample.js +2 -2
  20. package/dist-esm/samples-dev/maintenanceConfigurationsCreateOrUpdateSample.js +2 -2
  21. package/dist-esm/samples-dev/maintenanceConfigurationsDeleteSample.js +2 -2
  22. package/dist-esm/samples-dev/maintenanceConfigurationsGetSample.js +2 -2
  23. package/dist-esm/samples-dev/maintenanceConfigurationsListByManagedClusterSample.js +2 -2
  24. package/dist-esm/samples-dev/managedClustersAbortLatestOperationSample.js +3 -3
  25. package/dist-esm/samples-dev/managedClustersCreateOrUpdateSample.js +57 -379
  26. package/dist-esm/samples-dev/managedClustersCreateOrUpdateSample.js.map +1 -1
  27. package/dist-esm/samples-dev/managedClustersDeleteSample.js +1 -1
  28. package/dist-esm/samples-dev/managedClustersGetAccessProfileSample.js +1 -1
  29. package/dist-esm/samples-dev/managedClustersGetCommandResultSample.js +2 -2
  30. package/dist-esm/samples-dev/managedClustersGetMeshRevisionProfileSample.js +1 -1
  31. package/dist-esm/samples-dev/managedClustersGetMeshUpgradeProfileSample.js +1 -1
  32. package/dist-esm/samples-dev/managedClustersGetSample.js +1 -1
  33. package/dist-esm/samples-dev/managedClustersGetUpgradeProfileSample.js +1 -1
  34. package/dist-esm/samples-dev/managedClustersListByResourceGroupSample.js +1 -1
  35. package/dist-esm/samples-dev/managedClustersListClusterAdminCredentialsSample.js +1 -1
  36. package/dist-esm/samples-dev/managedClustersListClusterMonitoringUserCredentialsSample.js +1 -1
  37. package/dist-esm/samples-dev/managedClustersListClusterUserCredentialsSample.js +1 -1
  38. package/dist-esm/samples-dev/managedClustersListKubernetesVersionsSample.js +1 -1
  39. package/dist-esm/samples-dev/managedClustersListMeshRevisionProfilesSample.js +1 -1
  40. package/dist-esm/samples-dev/managedClustersListMeshUpgradeProfilesSample.js +1 -1
  41. package/dist-esm/samples-dev/managedClustersListOutboundNetworkDependenciesEndpointsSample.js +1 -1
  42. package/dist-esm/samples-dev/managedClustersListSample.js +1 -1
  43. package/dist-esm/samples-dev/managedClustersResetAadProfileSample.js +1 -1
  44. package/dist-esm/samples-dev/managedClustersResetServicePrincipalProfileSample.js +1 -1
  45. package/dist-esm/samples-dev/managedClustersRotateClusterCertificatesSample.js +1 -1
  46. package/dist-esm/samples-dev/managedClustersRotateServiceAccountSigningKeysSample.js +1 -1
  47. package/dist-esm/samples-dev/managedClustersRunCommandSample.js +1 -1
  48. package/dist-esm/samples-dev/managedClustersStartSample.js +1 -1
  49. package/dist-esm/samples-dev/managedClustersStopSample.js +1 -1
  50. package/dist-esm/samples-dev/managedClustersUpdateTagsSample.js +1 -1
  51. package/dist-esm/samples-dev/operationsListSample.js +1 -1
  52. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +1 -1
  53. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +1 -1
  54. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js +1 -1
  55. package/dist-esm/samples-dev/privateEndpointConnectionsUpdateSample.js +1 -1
  56. package/dist-esm/samples-dev/privateLinkResourcesListSample.js +1 -1
  57. package/dist-esm/samples-dev/resolvePrivateLinkServiceIdPostSample.js +1 -1
  58. package/dist-esm/samples-dev/snapshotsCreateOrUpdateSample.js +1 -1
  59. package/dist-esm/samples-dev/snapshotsDeleteSample.js +1 -1
  60. package/dist-esm/samples-dev/snapshotsGetSample.js +1 -1
  61. package/dist-esm/samples-dev/snapshotsListByResourceGroupSample.js +1 -1
  62. package/dist-esm/samples-dev/snapshotsListSample.js +1 -1
  63. package/dist-esm/samples-dev/snapshotsUpdateTagsSample.js +1 -1
  64. package/dist-esm/samples-dev/trustedAccessRoleBindingsCreateOrUpdateSample.js +1 -1
  65. package/dist-esm/samples-dev/trustedAccessRoleBindingsDeleteSample.js +1 -1
  66. package/dist-esm/samples-dev/trustedAccessRoleBindingsGetSample.js +1 -1
  67. package/dist-esm/samples-dev/trustedAccessRoleBindingsListSample.js +1 -1
  68. package/dist-esm/samples-dev/trustedAccessRolesListSample.js +1 -1
  69. package/dist-esm/src/containerServiceClient.d.ts +3 -6
  70. package/dist-esm/src/containerServiceClient.d.ts.map +1 -1
  71. package/dist-esm/src/containerServiceClient.js +5 -9
  72. package/dist-esm/src/containerServiceClient.js.map +1 -1
  73. package/dist-esm/src/models/index.d.ts +178 -1172
  74. package/dist-esm/src/models/index.d.ts.map +1 -1
  75. package/dist-esm/src/models/index.js +14 -186
  76. package/dist-esm/src/models/index.js.map +1 -1
  77. package/dist-esm/src/models/mappers.d.ts +12 -61
  78. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  79. package/dist-esm/src/models/mappers.js +228 -1754
  80. package/dist-esm/src/models/mappers.js.map +1 -1
  81. package/dist-esm/src/models/parameters.d.ts +5 -18
  82. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  83. package/dist-esm/src/models/parameters.js +19 -111
  84. package/dist-esm/src/models/parameters.js.map +1 -1
  85. package/dist-esm/src/operations/agentPools.d.ts +2 -2
  86. package/dist-esm/src/operations/agentPools.js +5 -10
  87. package/dist-esm/src/operations/agentPools.js.map +1 -1
  88. package/dist-esm/src/operations/index.d.ts +2 -5
  89. package/dist-esm/src/operations/index.d.ts.map +1 -1
  90. package/dist-esm/src/operations/index.js +2 -5
  91. package/dist-esm/src/operations/index.js.map +1 -1
  92. package/dist-esm/src/operations/maintenanceConfigurations.js +1 -1
  93. package/dist-esm/src/operations/managedClusters.d.ts +15 -89
  94. package/dist-esm/src/operations/managedClusters.d.ts.map +1 -1
  95. package/dist-esm/src/operations/managedClusters.js +40 -441
  96. package/dist-esm/src/operations/managedClusters.js.map +1 -1
  97. package/dist-esm/src/operations/privateEndpointConnections.js +1 -1
  98. package/dist-esm/src/operations/resolvePrivateLinkServiceId.js +1 -1
  99. package/dist-esm/src/operations/snapshots.js +1 -1
  100. package/dist-esm/src/operationsInterfaces/agentPools.d.ts +2 -2
  101. package/dist-esm/src/operationsInterfaces/index.d.ts +2 -5
  102. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
  103. package/dist-esm/src/operationsInterfaces/index.js +2 -5
  104. package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
  105. package/dist-esm/src/operationsInterfaces/managedClusters.d.ts +15 -59
  106. package/dist-esm/src/operationsInterfaces/managedClusters.d.ts.map +1 -1
  107. package/package.json +3 -3
  108. package/review/arm-containerservice.api.md +4 -756
  109. package/src/containerServiceClient.ts +10 -23
  110. package/src/models/index.ts +177 -1319
  111. package/src/models/mappers.ts +190 -1827
  112. package/src/models/parameters.ts +19 -127
  113. package/src/operations/agentPools.ts +5 -10
  114. package/src/operations/index.ts +2 -5
  115. package/src/operations/maintenanceConfigurations.ts +1 -1
  116. package/src/operations/managedClusters.ts +52 -567
  117. package/src/operations/privateEndpointConnections.ts +1 -1
  118. package/src/operations/resolvePrivateLinkServiceId.ts +1 -1
  119. package/src/operations/snapshots.ts +1 -1
  120. package/src/operationsInterfaces/agentPools.ts +2 -2
  121. package/src/operationsInterfaces/index.ts +2 -5
  122. package/src/operationsInterfaces/managedClusters.ts +26 -110
  123. package/types/arm-containerservice.d.ts +99 -1388
  124. package/dist-esm/samples-dev/loadBalancersCreateOrUpdateSample.d.ts +0 -2
  125. package/dist-esm/samples-dev/loadBalancersCreateOrUpdateSample.d.ts.map +0 -1
  126. package/dist-esm/samples-dev/loadBalancersCreateOrUpdateSample.js +0 -40
  127. package/dist-esm/samples-dev/loadBalancersCreateOrUpdateSample.js.map +0 -1
  128. package/dist-esm/samples-dev/loadBalancersDeleteSample.d.ts +0 -2
  129. package/dist-esm/samples-dev/loadBalancersDeleteSample.d.ts.map +0 -1
  130. package/dist-esm/samples-dev/loadBalancersDeleteSample.js +0 -40
  131. package/dist-esm/samples-dev/loadBalancersDeleteSample.js.map +0 -1
  132. package/dist-esm/samples-dev/loadBalancersGetSample.d.ts +0 -2
  133. package/dist-esm/samples-dev/loadBalancersGetSample.d.ts.map +0 -1
  134. package/dist-esm/samples-dev/loadBalancersGetSample.js +0 -40
  135. package/dist-esm/samples-dev/loadBalancersGetSample.js.map +0 -1
  136. package/dist-esm/samples-dev/loadBalancersListByManagedClusterSample.d.ts +0 -2
  137. package/dist-esm/samples-dev/loadBalancersListByManagedClusterSample.d.ts.map +0 -1
  138. package/dist-esm/samples-dev/loadBalancersListByManagedClusterSample.js +0 -55
  139. package/dist-esm/samples-dev/loadBalancersListByManagedClusterSample.js.map +0 -1
  140. package/dist-esm/samples-dev/managedClusterSnapshotsCreateOrUpdateSample.d.ts +0 -2
  141. package/dist-esm/samples-dev/managedClusterSnapshotsCreateOrUpdateSample.d.ts.map +0 -1
  142. package/dist-esm/samples-dev/managedClusterSnapshotsCreateOrUpdateSample.js +0 -46
  143. package/dist-esm/samples-dev/managedClusterSnapshotsCreateOrUpdateSample.js.map +0 -1
  144. package/dist-esm/samples-dev/managedClusterSnapshotsDeleteSample.d.ts +0 -2
  145. package/dist-esm/samples-dev/managedClusterSnapshotsDeleteSample.d.ts.map +0 -1
  146. package/dist-esm/samples-dev/managedClusterSnapshotsDeleteSample.js +0 -39
  147. package/dist-esm/samples-dev/managedClusterSnapshotsDeleteSample.js.map +0 -1
  148. package/dist-esm/samples-dev/managedClusterSnapshotsGetSample.d.ts +0 -2
  149. package/dist-esm/samples-dev/managedClusterSnapshotsGetSample.d.ts.map +0 -1
  150. package/dist-esm/samples-dev/managedClusterSnapshotsGetSample.js +0 -39
  151. package/dist-esm/samples-dev/managedClusterSnapshotsGetSample.js.map +0 -1
  152. package/dist-esm/samples-dev/managedClusterSnapshotsListByResourceGroupSample.d.ts +0 -2
  153. package/dist-esm/samples-dev/managedClusterSnapshotsListByResourceGroupSample.d.ts.map +0 -1
  154. package/dist-esm/samples-dev/managedClusterSnapshotsListByResourceGroupSample.js +0 -54
  155. package/dist-esm/samples-dev/managedClusterSnapshotsListByResourceGroupSample.js.map +0 -1
  156. package/dist-esm/samples-dev/managedClusterSnapshotsListSample.d.ts +0 -2
  157. package/dist-esm/samples-dev/managedClusterSnapshotsListSample.d.ts.map +0 -1
  158. package/dist-esm/samples-dev/managedClusterSnapshotsListSample.js +0 -53
  159. package/dist-esm/samples-dev/managedClusterSnapshotsListSample.js.map +0 -1
  160. package/dist-esm/samples-dev/managedClusterSnapshotsUpdateTagsSample.d.ts +0 -2
  161. package/dist-esm/samples-dev/managedClusterSnapshotsUpdateTagsSample.d.ts.map +0 -1
  162. package/dist-esm/samples-dev/managedClusterSnapshotsUpdateTagsSample.js +0 -40
  163. package/dist-esm/samples-dev/managedClusterSnapshotsUpdateTagsSample.js.map +0 -1
  164. package/dist-esm/samples-dev/managedClustersGetGuardrailsVersionsSample.d.ts +0 -2
  165. package/dist-esm/samples-dev/managedClustersGetGuardrailsVersionsSample.d.ts.map +0 -1
  166. package/dist-esm/samples-dev/managedClustersGetGuardrailsVersionsSample.js +0 -39
  167. package/dist-esm/samples-dev/managedClustersGetGuardrailsVersionsSample.js.map +0 -1
  168. package/dist-esm/samples-dev/managedClustersGetSafeguardsVersionsSample.d.ts +0 -2
  169. package/dist-esm/samples-dev/managedClustersGetSafeguardsVersionsSample.d.ts.map +0 -1
  170. package/dist-esm/samples-dev/managedClustersGetSafeguardsVersionsSample.js +0 -39
  171. package/dist-esm/samples-dev/managedClustersGetSafeguardsVersionsSample.js.map +0 -1
  172. package/dist-esm/samples-dev/managedClustersListGuardrailsVersionsSample.d.ts +0 -2
  173. package/dist-esm/samples-dev/managedClustersListGuardrailsVersionsSample.d.ts.map +0 -1
  174. package/dist-esm/samples-dev/managedClustersListGuardrailsVersionsSample.js +0 -54
  175. package/dist-esm/samples-dev/managedClustersListGuardrailsVersionsSample.js.map +0 -1
  176. package/dist-esm/samples-dev/managedClustersListSafeguardsVersionsSample.d.ts +0 -2
  177. package/dist-esm/samples-dev/managedClustersListSafeguardsVersionsSample.d.ts.map +0 -1
  178. package/dist-esm/samples-dev/managedClustersListSafeguardsVersionsSample.js +0 -54
  179. package/dist-esm/samples-dev/managedClustersListSafeguardsVersionsSample.js.map +0 -1
  180. package/dist-esm/samples-dev/managedClustersRebalanceLoadBalancersSample.d.ts +0 -2
  181. package/dist-esm/samples-dev/managedClustersRebalanceLoadBalancersSample.d.ts.map +0 -1
  182. package/dist-esm/samples-dev/managedClustersRebalanceLoadBalancersSample.js +0 -42
  183. package/dist-esm/samples-dev/managedClustersRebalanceLoadBalancersSample.js.map +0 -1
  184. package/dist-esm/samples-dev/operationStatusResultGetByAgentPoolSample.d.ts +0 -2
  185. package/dist-esm/samples-dev/operationStatusResultGetByAgentPoolSample.d.ts.map +0 -1
  186. package/dist-esm/samples-dev/operationStatusResultGetByAgentPoolSample.js +0 -41
  187. package/dist-esm/samples-dev/operationStatusResultGetByAgentPoolSample.js.map +0 -1
  188. package/dist-esm/samples-dev/operationStatusResultGetSample.d.ts +0 -2
  189. package/dist-esm/samples-dev/operationStatusResultGetSample.d.ts.map +0 -1
  190. package/dist-esm/samples-dev/operationStatusResultGetSample.js +0 -40
  191. package/dist-esm/samples-dev/operationStatusResultGetSample.js.map +0 -1
  192. package/dist-esm/samples-dev/operationStatusResultListSample.d.ts +0 -2
  193. package/dist-esm/samples-dev/operationStatusResultListSample.d.ts.map +0 -1
  194. package/dist-esm/samples-dev/operationStatusResultListSample.js +0 -55
  195. package/dist-esm/samples-dev/operationStatusResultListSample.js.map +0 -1
  196. package/dist-esm/src/operations/loadBalancers.d.ts +0 -71
  197. package/dist-esm/src/operations/loadBalancers.d.ts.map +0 -1
  198. package/dist-esm/src/operations/loadBalancers.js +0 -319
  199. package/dist-esm/src/operations/loadBalancers.js.map +0 -1
  200. package/dist-esm/src/operations/managedClusterSnapshots.d.ts +0 -83
  201. package/dist-esm/src/operations/managedClusterSnapshots.d.ts.map +0 -1
  202. package/dist-esm/src/operations/managedClusterSnapshots.js +0 -384
  203. package/dist-esm/src/operations/managedClusterSnapshots.js.map +0 -1
  204. package/dist-esm/src/operations/operationStatusResultOperations.d.ts +0 -55
  205. package/dist-esm/src/operations/operationStatusResultOperations.d.ts.map +0 -1
  206. package/dist-esm/src/operations/operationStatusResultOperations.js +0 -216
  207. package/dist-esm/src/operations/operationStatusResultOperations.js.map +0 -1
  208. package/dist-esm/src/operationsInterfaces/loadBalancers.d.ts +0 -46
  209. package/dist-esm/src/operationsInterfaces/loadBalancers.d.ts.map +0 -1
  210. package/dist-esm/src/operationsInterfaces/loadBalancers.js +0 -9
  211. package/dist-esm/src/operationsInterfaces/loadBalancers.js.map +0 -1
  212. package/dist-esm/src/operationsInterfaces/managedClusterSnapshots.d.ts +0 -47
  213. package/dist-esm/src/operationsInterfaces/managedClusterSnapshots.d.ts.map +0 -1
  214. package/dist-esm/src/operationsInterfaces/managedClusterSnapshots.js +0 -9
  215. package/dist-esm/src/operationsInterfaces/managedClusterSnapshots.js.map +0 -1
  216. package/dist-esm/src/operationsInterfaces/operationStatusResultOperations.d.ts +0 -30
  217. package/dist-esm/src/operationsInterfaces/operationStatusResultOperations.d.ts.map +0 -1
  218. package/dist-esm/src/operationsInterfaces/operationStatusResultOperations.js +0 -9
  219. package/dist-esm/src/operationsInterfaces/operationStatusResultOperations.js.map +0 -1
  220. package/src/operations/loadBalancers.ts +0 -435
  221. package/src/operations/managedClusterSnapshots.ts +0 -468
  222. package/src/operations/operationStatusResultOperations.ts +0 -284
  223. package/src/operationsInterfaces/loadBalancers.ts +0 -93
  224. package/src/operationsInterfaces/managedClusterSnapshots.ts +0 -91
  225. package/src/operationsInterfaces/operationStatusResultOperations.ts +0 -61
@@ -16,108 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Creates or updates a managed cluster.
17
17
  *
18
18
  * @summary Creates or updates a managed cluster.
19
- * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-07-02-preview/examples/ManagedClustersAssociate_CRG.json
20
- */
21
- function associateManagedClusterWithCapacityReservationGroup() {
22
- return __awaiter(this, void 0, void 0, function* () {
23
- const subscriptionId = process.env["CONTAINERSERVICE_SUBSCRIPTION_ID"] ||
24
- "00000000-0000-0000-0000-000000000000";
25
- const resourceGroupName = process.env["CONTAINERSERVICE_RESOURCE_GROUP"] || "rg1";
26
- const resourceName = "clustername1";
27
- const parameters = {
28
- addonProfiles: {},
29
- agentPoolProfiles: [
30
- {
31
- name: "nodepool1",
32
- type: "VirtualMachineScaleSets",
33
- capacityReservationGroupID: "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Compute/capacityReservationGroups/crg1",
34
- count: 3,
35
- enableNodePublicIP: true,
36
- mode: "System",
37
- osType: "Linux",
38
- vmSize: "Standard_DS2_v2",
39
- },
40
- ],
41
- autoScalerProfile: { scaleDownDelayAfterAdd: "15m", scanInterval: "20s" },
42
- diskEncryptionSetID: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des",
43
- dnsPrefix: "dnsprefix1",
44
- enablePodSecurityPolicy: true,
45
- enableRbac: true,
46
- kubernetesVersion: "",
47
- linuxProfile: {
48
- adminUsername: "azureuser",
49
- ssh: { publicKeys: [{ keyData: "keydata" }] },
50
- },
51
- location: "location1",
52
- networkProfile: {
53
- loadBalancerProfile: { managedOutboundIPs: { count: 2 } },
54
- loadBalancerSku: "standard",
55
- outboundType: "loadBalancer",
56
- },
57
- servicePrincipalProfile: { clientId: "clientid", secret: "secret" },
58
- sku: { name: "Basic", tier: "Free" },
59
- tags: { archv2: "", tier: "production" },
60
- windowsProfile: {
61
- adminPassword: "replacePassword1234$",
62
- adminUsername: "azureuser",
63
- },
64
- };
65
- const credential = new DefaultAzureCredential();
66
- const client = new ContainerServiceClient(credential, subscriptionId);
67
- const result = yield client.managedClusters.beginCreateOrUpdateAndWait(resourceGroupName, resourceName, parameters);
68
- console.log(result);
69
- });
70
- }
71
- /**
72
- * This sample demonstrates how to Creates or updates a managed cluster.
73
- *
74
- * @summary Creates or updates a managed cluster.
75
- * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-07-02-preview/examples/ManagedClustersCreate_MCSnapshot.json
76
- */
77
- function createManagedClusterUsingAManagedClusterSnapshot() {
78
- return __awaiter(this, void 0, void 0, function* () {
79
- const subscriptionId = process.env["CONTAINERSERVICE_SUBSCRIPTION_ID"] ||
80
- "00000000-0000-0000-0000-000000000000";
81
- const resourceGroupName = process.env["CONTAINERSERVICE_RESOURCE_GROUP"] || "rg1";
82
- const resourceName = "clustername1";
83
- const parameters = {
84
- agentPoolProfiles: [
85
- {
86
- name: "nodepool1",
87
- type: "VirtualMachineScaleSets",
88
- count: 3,
89
- enableFips: true,
90
- enableNodePublicIP: true,
91
- mode: "System",
92
- osType: "Linux",
93
- vmSize: "Standard_DS2_v2",
94
- },
95
- ],
96
- creationData: {
97
- sourceResourceId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/managedclustersnapshots/snapshot1",
98
- },
99
- dnsPrefix: "dnsprefix1",
100
- kubernetesVersion: "",
101
- linuxProfile: {
102
- adminUsername: "azureuser",
103
- ssh: { publicKeys: [{ keyData: "keydata" }] },
104
- },
105
- location: "location1",
106
- servicePrincipalProfile: { clientId: "clientid", secret: "secret" },
107
- sku: { name: "Basic", tier: "Free" },
108
- tags: { archv2: "", tier: "production" },
109
- };
110
- const credential = new DefaultAzureCredential();
111
- const client = new ContainerServiceClient(credential, subscriptionId);
112
- const result = yield client.managedClusters.beginCreateOrUpdateAndWait(resourceGroupName, resourceName, parameters);
113
- console.log(result);
114
- });
115
- }
116
- /**
117
- * This sample demonstrates how to Creates or updates a managed cluster.
118
- *
119
- * @summary Creates or updates a managed cluster.
120
- * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-07-02-preview/examples/ManagedClustersCreate_Snapshot.json
19
+ * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_Snapshot.json
121
20
  */
122
21
  function createManagedClusterUsingAnAgentPoolSnapshot() {
123
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -133,7 +32,7 @@ function createManagedClusterUsingAnAgentPoolSnapshot() {
133
32
  type: "VirtualMachineScaleSets",
134
33
  count: 3,
135
34
  creationData: {
136
- sourceResourceId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/snapshots/snapshot1",
35
+ sourceResourceId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.ContainerService/snapshots/snapshot1",
137
36
  },
138
37
  enableFips: true,
139
38
  enableNodePublicIP: true,
@@ -143,7 +42,7 @@ function createManagedClusterUsingAnAgentPoolSnapshot() {
143
42
  },
144
43
  ],
145
44
  autoScalerProfile: { scaleDownDelayAfterAdd: "15m", scanInterval: "20s" },
146
- diskEncryptionSetID: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des",
45
+ diskEncryptionSetID: "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des",
147
46
  dnsPrefix: "dnsprefix1",
148
47
  enablePodSecurityPolicy: false,
149
48
  enableRbac: true,
@@ -176,59 +75,7 @@ function createManagedClusterUsingAnAgentPoolSnapshot() {
176
75
  * This sample demonstrates how to Creates or updates a managed cluster.
177
76
  *
178
77
  * @summary Creates or updates a managed cluster.
179
- * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-07-02-preview/examples/ManagedClustersCreate_EnableAIToolchainOperator.json
180
- */
181
- function createManagedClusterWithAiToolchainOperatorEnabled() {
182
- return __awaiter(this, void 0, void 0, function* () {
183
- const subscriptionId = process.env["CONTAINERSERVICE_SUBSCRIPTION_ID"] ||
184
- "00000000-0000-0000-0000-000000000000";
185
- const resourceGroupName = process.env["CONTAINERSERVICE_RESOURCE_GROUP"] || "rg1";
186
- const resourceName = "clustername1";
187
- const parameters = {
188
- addonProfiles: {},
189
- agentPoolProfiles: [
190
- {
191
- name: "nodepool1",
192
- type: "VirtualMachineScaleSets",
193
- count: 3,
194
- enableNodePublicIP: true,
195
- mode: "System",
196
- osType: "Linux",
197
- vmSize: "Standard_DS2_v2",
198
- },
199
- ],
200
- aiToolchainOperatorProfile: { enabled: true },
201
- dnsPrefix: "dnsprefix1",
202
- enableRbac: true,
203
- kubernetesVersion: "",
204
- linuxProfile: {
205
- adminUsername: "azureuser",
206
- ssh: { publicKeys: [{ keyData: "keydata" }] },
207
- },
208
- location: "location1",
209
- networkProfile: {
210
- loadBalancerProfile: { managedOutboundIPs: { count: 2 } },
211
- loadBalancerSku: "standard",
212
- networkDataplane: "cilium",
213
- networkPlugin: "azure",
214
- networkPluginMode: "overlay",
215
- outboundType: "loadBalancer",
216
- },
217
- servicePrincipalProfile: { clientId: "clientid", secret: "secret" },
218
- sku: { name: "Basic", tier: "Free" },
219
- tags: { archv2: "", tier: "production" },
220
- };
221
- const credential = new DefaultAzureCredential();
222
- const client = new ContainerServiceClient(credential, subscriptionId);
223
- const result = yield client.managedClusters.beginCreateOrUpdateAndWait(resourceGroupName, resourceName, parameters);
224
- console.log(result);
225
- });
226
- }
227
- /**
228
- * This sample demonstrates how to Creates or updates a managed cluster.
229
- *
230
- * @summary Creates or updates a managed cluster.
231
- * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-07-02-preview/examples/ManagedClustersCreate_ManagedNATGateway.json
78
+ * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_ManagedNATGateway.json
232
79
  */
233
80
  function createManagedClusterWithAksManagedNatGatewayAsOutboundType() {
234
81
  return __awaiter(this, void 0, void 0, function* () {
@@ -250,7 +97,7 @@ function createManagedClusterWithAksManagedNatGatewayAsOutboundType() {
250
97
  },
251
98
  ],
252
99
  autoScalerProfile: { scaleDownDelayAfterAdd: "15m", scanInterval: "20s" },
253
- diskEncryptionSetID: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des",
100
+ diskEncryptionSetID: "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des",
254
101
  dnsPrefix: "dnsprefix1",
255
102
  enablePodSecurityPolicy: true,
256
103
  enableRbac: true,
@@ -283,7 +130,7 @@ function createManagedClusterWithAksManagedNatGatewayAsOutboundType() {
283
130
  * This sample demonstrates how to Creates or updates a managed cluster.
284
131
  *
285
132
  * @summary Creates or updates a managed cluster.
286
- * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-07-02-preview/examples/ManagedClustersCreate_AzureKeyvaultSecretsProvider.json
133
+ * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_AzureKeyvaultSecretsProvider.json
287
134
  */
288
135
  function createManagedClusterWithAzureKeyVaultSecretsProviderAddon() {
289
136
  return __awaiter(this, void 0, void 0, function* () {
@@ -310,7 +157,7 @@ function createManagedClusterWithAzureKeyVaultSecretsProviderAddon() {
310
157
  },
311
158
  ],
312
159
  autoScalerProfile: { scaleDownDelayAfterAdd: "15m", scanInterval: "20s" },
313
- diskEncryptionSetID: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des",
160
+ diskEncryptionSetID: "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des",
314
161
  dnsPrefix: "dnsprefix1",
315
162
  enablePodSecurityPolicy: true,
316
163
  enableRbac: true,
@@ -343,9 +190,9 @@ function createManagedClusterWithAzureKeyVaultSecretsProviderAddon() {
343
190
  * This sample demonstrates how to Creates or updates a managed cluster.
344
191
  *
345
192
  * @summary Creates or updates a managed cluster.
346
- * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-07-02-preview/examples/ManagedClustersCreate_EnableCustomCATrust.json
193
+ * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_CRG.json
347
194
  */
348
- function createManagedClusterWithCustomCaTrustCertificatesPopulatedAndCustomCatrustEnabled() {
195
+ function createManagedClusterWithCapacityReservationGroup() {
349
196
  return __awaiter(this, void 0, void 0, function* () {
350
197
  const subscriptionId = process.env["CONTAINERSERVICE_SUBSCRIPTION_ID"] ||
351
198
  "00000000-0000-0000-0000-000000000000";
@@ -357,8 +204,8 @@ function createManagedClusterWithCustomCaTrustCertificatesPopulatedAndCustomCatr
357
204
  {
358
205
  name: "nodepool1",
359
206
  type: "VirtualMachineScaleSets",
207
+ capacityReservationGroupID: "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Compute/capacityReservationGroups/crg1",
360
208
  count: 3,
361
- enableCustomCATrust: true,
362
209
  enableNodePublicIP: true,
363
210
  mode: "System",
364
211
  osType: "Linux",
@@ -381,11 +228,6 @@ function createManagedClusterWithCustomCaTrustCertificatesPopulatedAndCustomCatr
381
228
  loadBalancerSku: "standard",
382
229
  outboundType: "loadBalancer",
383
230
  },
384
- securityProfile: {
385
- customCATrustCertificates: [
386
- Buffer.from("ZHVtbXlFeGFtcGxlVGVzdFZhbHVlRm9yQ2VydGlmaWNhdGVUb0JlQWRkZWQ="),
387
- ],
388
- },
389
231
  servicePrincipalProfile: { clientId: "clientid", secret: "secret" },
390
232
  sku: { name: "Basic", tier: "Free" },
391
233
  tags: { archv2: "", tier: "production" },
@@ -404,7 +246,7 @@ function createManagedClusterWithCustomCaTrustCertificatesPopulatedAndCustomCatr
404
246
  * This sample demonstrates how to Creates or updates a managed cluster.
405
247
  *
406
248
  * @summary Creates or updates a managed cluster.
407
- * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-07-02-preview/examples/ManagedClustersCreate_DedicatedHostGroup.json
249
+ * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_DedicatedHostGroup.json
408
250
  */
409
251
  function createManagedClusterWithDedicatedHostGroup() {
410
252
  return __awaiter(this, void 0, void 0, function* () {
@@ -426,7 +268,7 @@ function createManagedClusterWithDedicatedHostGroup() {
426
268
  },
427
269
  ],
428
270
  autoScalerProfile: { scaleDownDelayAfterAdd: "15m", scanInterval: "20s" },
429
- diskEncryptionSetID: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des",
271
+ diskEncryptionSetID: "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des",
430
272
  dnsPrefix: "dnsprefix1",
431
273
  enablePodSecurityPolicy: false,
432
274
  enableRbac: true,
@@ -459,7 +301,7 @@ function createManagedClusterWithDedicatedHostGroup() {
459
301
  * This sample demonstrates how to Creates or updates a managed cluster.
460
302
  *
461
303
  * @summary Creates or updates a managed cluster.
462
- * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-07-02-preview/examples/ManagedClustersCreate_EnableEncryptionAtHost.json
304
+ * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_EnableEncryptionAtHost.json
463
305
  */
464
306
  function createManagedClusterWithEncryptionAtHostEnabled() {
465
307
  return __awaiter(this, void 0, void 0, function* () {
@@ -482,7 +324,7 @@ function createManagedClusterWithEncryptionAtHostEnabled() {
482
324
  },
483
325
  ],
484
326
  autoScalerProfile: { scaleDownDelayAfterAdd: "15m", scanInterval: "20s" },
485
- diskEncryptionSetID: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des",
327
+ diskEncryptionSetID: "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des",
486
328
  dnsPrefix: "dnsprefix1",
487
329
  enablePodSecurityPolicy: true,
488
330
  enableRbac: true,
@@ -515,7 +357,7 @@ function createManagedClusterWithEncryptionAtHostEnabled() {
515
357
  * This sample demonstrates how to Creates or updates a managed cluster.
516
358
  *
517
359
  * @summary Creates or updates a managed cluster.
518
- * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-07-02-preview/examples/ManagedClustersCreate_EnabledFIPS.json
360
+ * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_EnabledFIPS.json
519
361
  */
520
362
  function createManagedClusterWithFipsEnabledOS() {
521
363
  return __awaiter(this, void 0, void 0, function* () {
@@ -538,7 +380,7 @@ function createManagedClusterWithFipsEnabledOS() {
538
380
  },
539
381
  ],
540
382
  autoScalerProfile: { scaleDownDelayAfterAdd: "15m", scanInterval: "20s" },
541
- diskEncryptionSetID: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des",
383
+ diskEncryptionSetID: "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des",
542
384
  dnsPrefix: "dnsprefix1",
543
385
  enablePodSecurityPolicy: false,
544
386
  enableRbac: true,
@@ -571,7 +413,7 @@ function createManagedClusterWithFipsEnabledOS() {
571
413
  * This sample demonstrates how to Creates or updates a managed cluster.
572
414
  *
573
415
  * @summary Creates or updates a managed cluster.
574
- * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-07-02-preview/examples/ManagedClustersCreate_GPUMIG.json
416
+ * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_GPUMIG.json
575
417
  */
576
418
  function createManagedClusterWithGpumig() {
577
419
  return __awaiter(this, void 0, void 0, function* () {
@@ -594,7 +436,7 @@ function createManagedClusterWithGpumig() {
594
436
  },
595
437
  ],
596
438
  autoScalerProfile: { scaleDownDelayAfterAdd: "15m", scanInterval: "20s" },
597
- diskEncryptionSetID: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des",
439
+ diskEncryptionSetID: "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des",
598
440
  dnsPrefix: "dnsprefix1",
599
441
  enablePodSecurityPolicy: true,
600
442
  enableRbac: true,
@@ -633,7 +475,7 @@ function createManagedClusterWithGpumig() {
633
475
  * This sample demonstrates how to Creates or updates a managed cluster.
634
476
  *
635
477
  * @summary Creates or updates a managed cluster.
636
- * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-07-02-preview/examples/ManagedClustersCreate_HTTPProxy.json
478
+ * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_HTTPProxy.json
637
479
  */
638
480
  function createManagedClusterWithHttpProxyConfigured() {
639
481
  return __awaiter(this, void 0, void 0, function* () {
@@ -655,7 +497,7 @@ function createManagedClusterWithHttpProxyConfigured() {
655
497
  },
656
498
  ],
657
499
  autoScalerProfile: { scaleDownDelayAfterAdd: "15m", scanInterval: "20s" },
658
- diskEncryptionSetID: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des",
500
+ diskEncryptionSetID: "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des",
659
501
  dnsPrefix: "dnsprefix1",
660
502
  enablePodSecurityPolicy: true,
661
503
  enableRbac: true,
@@ -694,7 +536,7 @@ function createManagedClusterWithHttpProxyConfigured() {
694
536
  * This sample demonstrates how to Creates or updates a managed cluster.
695
537
  *
696
538
  * @summary Creates or updates a managed cluster.
697
- * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-07-02-preview/examples/ManagedClustersCreate_Premium.json
539
+ * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_Premium.json
698
540
  */
699
541
  function createManagedClusterWithLongTermSupport() {
700
542
  return __awaiter(this, void 0, void 0, function* () {
@@ -751,59 +593,7 @@ function createManagedClusterWithLongTermSupport() {
751
593
  * This sample demonstrates how to Creates or updates a managed cluster.
752
594
  *
753
595
  * @summary Creates or updates a managed cluster.
754
- * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-07-02-preview/examples/ManagedClustersCreate_NodeAutoProvisioning.json
755
- */
756
- function createManagedClusterWithNodeAutoProvisioning() {
757
- return __awaiter(this, void 0, void 0, function* () {
758
- const subscriptionId = process.env["CONTAINERSERVICE_SUBSCRIPTION_ID"] ||
759
- "00000000-0000-0000-0000-000000000000";
760
- const resourceGroupName = process.env["CONTAINERSERVICE_RESOURCE_GROUP"] || "rg1";
761
- const resourceName = "clustername1";
762
- const parameters = {
763
- addonProfiles: {},
764
- agentPoolProfiles: [
765
- {
766
- name: "nodepool1",
767
- type: "VirtualMachineScaleSets",
768
- count: 3,
769
- enableNodePublicIP: true,
770
- mode: "System",
771
- osType: "Linux",
772
- vmSize: "Standard_DS2_v2",
773
- },
774
- ],
775
- dnsPrefix: "dnsprefix1",
776
- enablePodSecurityPolicy: true,
777
- enableRbac: true,
778
- kubernetesVersion: "",
779
- linuxProfile: {
780
- adminUsername: "azureuser",
781
- ssh: { publicKeys: [{ keyData: "keydata" }] },
782
- },
783
- location: "location1",
784
- networkProfile: {
785
- loadBalancerProfile: { managedOutboundIPs: { count: 2 } },
786
- loadBalancerSku: "standard",
787
- networkDataplane: "cilium",
788
- networkPlugin: "azure",
789
- networkPluginMode: "overlay",
790
- outboundType: "loadBalancer",
791
- },
792
- servicePrincipalProfile: { clientId: "clientid", secret: "secret" },
793
- sku: { name: "Basic", tier: "Free" },
794
- tags: { archv2: "", tier: "production" },
795
- };
796
- const credential = new DefaultAzureCredential();
797
- const client = new ContainerServiceClient(credential, subscriptionId);
798
- const result = yield client.managedClusters.beginCreateOrUpdateAndWait(resourceGroupName, resourceName, parameters);
799
- console.log(result);
800
- });
801
- }
802
- /**
803
- * This sample demonstrates how to Creates or updates a managed cluster.
804
- *
805
- * @summary Creates or updates a managed cluster.
806
- * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-07-02-preview/examples/ManagedClustersCreate_NodePublicIPPrefix.json
596
+ * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_NodePublicIPPrefix.json
807
597
  */
808
598
  function createManagedClusterWithNodePublicIPPrefix() {
809
599
  return __awaiter(this, void 0, void 0, function* () {
@@ -826,7 +616,7 @@ function createManagedClusterWithNodePublicIPPrefix() {
826
616
  },
827
617
  ],
828
618
  autoScalerProfile: { scaleDownDelayAfterAdd: "15m", scanInterval: "20s" },
829
- diskEncryptionSetID: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des",
619
+ diskEncryptionSetID: "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des",
830
620
  dnsPrefix: "dnsprefix1",
831
621
  enablePodSecurityPolicy: true,
832
622
  enableRbac: true,
@@ -859,7 +649,7 @@ function createManagedClusterWithNodePublicIPPrefix() {
859
649
  * This sample demonstrates how to Creates or updates a managed cluster.
860
650
  *
861
651
  * @summary Creates or updates a managed cluster.
862
- * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-07-02-preview/examples/ManagedClustersCreate_OSSKU.json
652
+ * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_OSSKU.json
863
653
  */
864
654
  function createManagedClusterWithOssku() {
865
655
  return __awaiter(this, void 0, void 0, function* () {
@@ -882,7 +672,7 @@ function createManagedClusterWithOssku() {
882
672
  },
883
673
  ],
884
674
  autoScalerProfile: { scaleDownDelayAfterAdd: "15m", scanInterval: "20s" },
885
- diskEncryptionSetID: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des",
675
+ diskEncryptionSetID: "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des",
886
676
  dnsPrefix: "dnsprefix1",
887
677
  enablePodSecurityPolicy: true,
888
678
  enableRbac: true,
@@ -921,7 +711,7 @@ function createManagedClusterWithOssku() {
921
711
  * This sample demonstrates how to Creates or updates a managed cluster.
922
712
  *
923
713
  * @summary Creates or updates a managed cluster.
924
- * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-07-02-preview/examples/ManagedClustersCreate_PPG.json
714
+ * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_PPG.json
925
715
  */
926
716
  function createManagedClusterWithPpg() {
927
717
  return __awaiter(this, void 0, void 0, function* () {
@@ -944,7 +734,7 @@ function createManagedClusterWithPpg() {
944
734
  },
945
735
  ],
946
736
  autoScalerProfile: { scaleDownDelayAfterAdd: "15m", scanInterval: "20s" },
947
- diskEncryptionSetID: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des",
737
+ diskEncryptionSetID: "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des",
948
738
  dnsPrefix: "dnsprefix1",
949
739
  enablePodSecurityPolicy: true,
950
740
  enableRbac: true,
@@ -977,7 +767,7 @@ function createManagedClusterWithPpg() {
977
767
  * This sample demonstrates how to Creates or updates a managed cluster.
978
768
  *
979
769
  * @summary Creates or updates a managed cluster.
980
- * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-07-02-preview/examples/ManagedClustersCreate_PodIdentity.json
770
+ * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_PodIdentity.json
981
771
  */
982
772
  function createManagedClusterWithPodIdentityEnabled() {
983
773
  return __awaiter(this, void 0, void 0, function* () {
@@ -999,7 +789,7 @@ function createManagedClusterWithPodIdentityEnabled() {
999
789
  },
1000
790
  ],
1001
791
  autoScalerProfile: { scaleDownDelayAfterAdd: "15m", scanInterval: "20s" },
1002
- diskEncryptionSetID: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des",
792
+ diskEncryptionSetID: "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des",
1003
793
  dnsPrefix: "dnsprefix1",
1004
794
  enablePodSecurityPolicy: true,
1005
795
  enableRbac: true,
@@ -1033,7 +823,7 @@ function createManagedClusterWithPodIdentityEnabled() {
1033
823
  * This sample demonstrates how to Creates or updates a managed cluster.
1034
824
  *
1035
825
  * @summary Creates or updates a managed cluster.
1036
- * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-07-02-preview/examples/ManagedClustersCreate_DisableRunCommand.json
826
+ * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_DisableRunCommand.json
1037
827
  */
1038
828
  function createManagedClusterWithRunCommandDisabled() {
1039
829
  return __awaiter(this, void 0, void 0, function* () {
@@ -1089,7 +879,7 @@ function createManagedClusterWithRunCommandDisabled() {
1089
879
  * This sample demonstrates how to Creates or updates a managed cluster.
1090
880
  *
1091
881
  * @summary Creates or updates a managed cluster.
1092
- * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-07-02-preview/examples/ManagedClustersCreate_SecurityProfile.json
882
+ * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_SecurityProfile.json
1093
883
  */
1094
884
  function createManagedClusterWithSecurityProfileConfigured() {
1095
885
  return __awaiter(this, void 0, void 0, function* () {
@@ -1126,6 +916,7 @@ function createManagedClusterWithSecurityProfileConfigured() {
1126
916
  logAnalyticsWorkspaceResourceId: "/subscriptions/SUB_ID/resourcegroups/RG_NAME/providers/microsoft.operationalinsights/workspaces/WORKSPACE_NAME",
1127
917
  securityMonitoring: { enabled: true },
1128
918
  },
919
+ workloadIdentity: { enabled: true },
1129
920
  },
1130
921
  sku: { name: "Basic", tier: "Free" },
1131
922
  tags: { archv2: "", tier: "production" },
@@ -1140,7 +931,7 @@ function createManagedClusterWithSecurityProfileConfigured() {
1140
931
  * This sample demonstrates how to Creates or updates a managed cluster.
1141
932
  *
1142
933
  * @summary Creates or updates a managed cluster.
1143
- * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-07-02-preview/examples/ManagedClustersCreate_EnableUltraSSD.json
934
+ * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_EnableUltraSSD.json
1144
935
  */
1145
936
  function createManagedClusterWithUltraSsdEnabled() {
1146
937
  return __awaiter(this, void 0, void 0, function* () {
@@ -1163,7 +954,7 @@ function createManagedClusterWithUltraSsdEnabled() {
1163
954
  },
1164
955
  ],
1165
956
  autoScalerProfile: { scaleDownDelayAfterAdd: "15m", scanInterval: "20s" },
1166
- diskEncryptionSetID: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des",
957
+ diskEncryptionSetID: "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des",
1167
958
  dnsPrefix: "dnsprefix1",
1168
959
  enablePodSecurityPolicy: true,
1169
960
  enableRbac: true,
@@ -1196,57 +987,7 @@ function createManagedClusterWithUltraSsdEnabled() {
1196
987
  * This sample demonstrates how to Creates or updates a managed cluster.
1197
988
  *
1198
989
  * @summary Creates or updates a managed cluster.
1199
- * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-07-02-preview/examples/ManagedClustersCreate_VirtualMachines.json
1200
- */
1201
- function createManagedClusterWithVirtualMachinesPoolType() {
1202
- return __awaiter(this, void 0, void 0, function* () {
1203
- const subscriptionId = process.env["CONTAINERSERVICE_SUBSCRIPTION_ID"] ||
1204
- "00000000-0000-0000-0000-000000000000";
1205
- const resourceGroupName = process.env["CONTAINERSERVICE_RESOURCE_GROUP"] || "rg1";
1206
- const resourceName = "clustername1";
1207
- const parameters = {
1208
- addonProfiles: {},
1209
- agentPoolProfiles: [
1210
- {
1211
- name: "nodepool1",
1212
- type: "VirtualMachines",
1213
- count: 3,
1214
- enableFips: true,
1215
- mode: "System",
1216
- osType: "Linux",
1217
- vmSize: "Standard_DS2_v2",
1218
- },
1219
- ],
1220
- diskEncryptionSetID: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des",
1221
- dnsPrefix: "dnsprefix1",
1222
- enablePodSecurityPolicy: false,
1223
- enableRbac: true,
1224
- kubernetesVersion: "",
1225
- linuxProfile: {
1226
- adminUsername: "azureuser",
1227
- ssh: { publicKeys: [{ keyData: "keydata" }] },
1228
- },
1229
- location: "location1",
1230
- networkProfile: {
1231
- loadBalancerProfile: { managedOutboundIPs: { count: 2 } },
1232
- loadBalancerSku: "standard",
1233
- outboundType: "loadBalancer",
1234
- },
1235
- servicePrincipalProfile: { clientId: "clientid", secret: "secret" },
1236
- sku: { name: "Basic", tier: "Free" },
1237
- tags: { archv2: "", tier: "production" },
1238
- };
1239
- const credential = new DefaultAzureCredential();
1240
- const client = new ContainerServiceClient(credential, subscriptionId);
1241
- const result = yield client.managedClusters.beginCreateOrUpdateAndWait(resourceGroupName, resourceName, parameters);
1242
- console.log(result);
1243
- });
1244
- }
1245
- /**
1246
- * This sample demonstrates how to Creates or updates a managed cluster.
1247
- *
1248
- * @summary Creates or updates a managed cluster.
1249
- * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-07-02-preview/examples/ManagedClustersCreate_IngressProfile_WebAppRouting.json
990
+ * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_IngressProfile_WebAppRouting.json
1250
991
  */
1251
992
  function createManagedClusterWithWebAppRoutingIngressProfileConfigured() {
1252
993
  return __awaiter(this, void 0, void 0, function* () {
@@ -1299,7 +1040,7 @@ function createManagedClusterWithWebAppRoutingIngressProfileConfigured() {
1299
1040
  * This sample demonstrates how to Creates or updates a managed cluster.
1300
1041
  *
1301
1042
  * @summary Creates or updates a managed cluster.
1302
- * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-07-02-preview/examples/ManagedClustersCreate_UserAssignedNATGateway.json
1043
+ * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_UserAssignedNATGateway.json
1303
1044
  */
1304
1045
  function createManagedClusterWithUserAssignedNatGatewayAsOutboundType() {
1305
1046
  return __awaiter(this, void 0, void 0, function* () {
@@ -1321,7 +1062,7 @@ function createManagedClusterWithUserAssignedNatGatewayAsOutboundType() {
1321
1062
  },
1322
1063
  ],
1323
1064
  autoScalerProfile: { scaleDownDelayAfterAdd: "15m", scanInterval: "20s" },
1324
- diskEncryptionSetID: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des",
1065
+ diskEncryptionSetID: "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des",
1325
1066
  dnsPrefix: "dnsprefix1",
1326
1067
  enablePodSecurityPolicy: true,
1327
1068
  enableRbac: true,
@@ -1353,7 +1094,7 @@ function createManagedClusterWithUserAssignedNatGatewayAsOutboundType() {
1353
1094
  * This sample demonstrates how to Creates or updates a managed cluster.
1354
1095
  *
1355
1096
  * @summary Creates or updates a managed cluster.
1356
- * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-07-02-preview/examples/ManagedClustersCreate_PrivateClusterPublicFQDN.json
1097
+ * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_PrivateClusterPublicFQDN.json
1357
1098
  */
1358
1099
  function createManagedPrivateClusterWithPublicFqdnSpecified() {
1359
1100
  return __awaiter(this, void 0, void 0, function* () {
@@ -1412,7 +1153,7 @@ function createManagedPrivateClusterWithPublicFqdnSpecified() {
1412
1153
  * This sample demonstrates how to Creates or updates a managed cluster.
1413
1154
  *
1414
1155
  * @summary Creates or updates a managed cluster.
1415
- * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-07-02-preview/examples/ManagedClustersCreate_PrivateClusterFQDNSubdomain.json
1156
+ * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_PrivateClusterFQDNSubdomain.json
1416
1157
  */
1417
1158
  function createManagedPrivateClusterWithFqdnSubdomainSpecified() {
1418
1159
  return __awaiter(this, void 0, void 0, function* () {
@@ -1471,7 +1212,7 @@ function createManagedPrivateClusterWithFqdnSubdomainSpecified() {
1471
1212
  * This sample demonstrates how to Creates or updates a managed cluster.
1472
1213
  *
1473
1214
  * @summary Creates or updates a managed cluster.
1474
- * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-07-02-preview/examples/ManagedClustersCreate_UpdateWithEnableAzureRBAC.json
1215
+ * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_UpdateWithEnableAzureRBAC.json
1475
1216
  */
1476
1217
  function createOrUpdateAadManagedClusterWithEnableAzureRbac() {
1477
1218
  return __awaiter(this, void 0, void 0, function* () {
@@ -1495,7 +1236,7 @@ function createOrUpdateAadManagedClusterWithEnableAzureRbac() {
1495
1236
  },
1496
1237
  ],
1497
1238
  autoScalerProfile: { scaleDownDelayAfterAdd: "15m", scanInterval: "20s" },
1498
- diskEncryptionSetID: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des",
1239
+ diskEncryptionSetID: "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des",
1499
1240
  dnsPrefix: "dnsprefix1",
1500
1241
  enablePodSecurityPolicy: true,
1501
1242
  enableRbac: true,
@@ -1528,7 +1269,7 @@ function createOrUpdateAadManagedClusterWithEnableAzureRbac() {
1528
1269
  * This sample demonstrates how to Creates or updates a managed cluster.
1529
1270
  *
1530
1271
  * @summary Creates or updates a managed cluster.
1531
- * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-07-02-preview/examples/ManagedClustersCreate_Update.json
1272
+ * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_Update.json
1532
1273
  */
1533
1274
  function createOrUpdateManagedCluster() {
1534
1275
  return __awaiter(this, void 0, void 0, function* () {
@@ -1560,14 +1301,14 @@ function createOrUpdateManagedCluster() {
1560
1301
  scanInterval: "20s",
1561
1302
  skipNodesWithSystemPods: "false",
1562
1303
  },
1563
- diskEncryptionSetID: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des",
1304
+ diskEncryptionSetID: "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des",
1564
1305
  dnsPrefix: "dnsprefix1",
1565
1306
  enablePodSecurityPolicy: true,
1566
1307
  enableRbac: true,
1567
1308
  identity: {
1568
1309
  type: "UserAssigned",
1569
1310
  userAssignedIdentities: {
1570
- "/subscriptions/00000000000000000000000000000000/resourceGroups/rgName1/providers/MicrosoftManagedIdentity/userAssignedIdentities/identity1": {},
1311
+ "/subscriptions/00000000000000000000000000000000/resourcegroups/rgName1/providers/MicrosoftManagedIdentity/userAssignedIdentities/identity1": {},
1571
1312
  },
1572
1313
  },
1573
1314
  kubernetesVersion: "",
@@ -1586,7 +1327,7 @@ function createOrUpdateManagedCluster() {
1586
1327
  tags: { archv2: "", tier: "production" },
1587
1328
  upgradeSettings: {
1588
1329
  overrideSettings: {
1589
- forceUpgrade: true,
1330
+ forceUpgrade: false,
1590
1331
  until: new Date("2022-11-01T13:00:00Z"),
1591
1332
  },
1592
1333
  },
@@ -1605,7 +1346,7 @@ function createOrUpdateManagedCluster() {
1605
1346
  * This sample demonstrates how to Creates or updates a managed cluster.
1606
1347
  *
1607
1348
  * @summary Creates or updates a managed cluster.
1608
- * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-07-02-preview/examples/ManagedClustersCreate_AzureServiceMesh.json
1349
+ * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_AzureServiceMesh.json
1609
1350
  */
1610
1351
  function createOrUpdateManagedClusterWithAzureServiceMesh() {
1611
1352
  return __awaiter(this, void 0, void 0, function* () {
@@ -1632,7 +1373,7 @@ function createOrUpdateManagedClusterWithAzureServiceMesh() {
1632
1373
  },
1633
1374
  ],
1634
1375
  autoScalerProfile: { scaleDownDelayAfterAdd: "15m", scanInterval: "20s" },
1635
- diskEncryptionSetID: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des",
1376
+ diskEncryptionSetID: "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des",
1636
1377
  dnsPrefix: "dnsprefix1",
1637
1378
  enablePodSecurityPolicy: true,
1638
1379
  enableRbac: true,
@@ -1683,7 +1424,7 @@ function createOrUpdateManagedClusterWithAzureServiceMesh() {
1683
1424
  * This sample demonstrates how to Creates or updates a managed cluster.
1684
1425
  *
1685
1426
  * @summary Creates or updates a managed cluster.
1686
- * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-07-02-preview/examples/ManagedClustersCreate_UpdateWithAHUB.json
1427
+ * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_UpdateWithAHUB.json
1687
1428
  */
1688
1429
  function createOrUpdateManagedClusterWithEnableAhub() {
1689
1430
  return __awaiter(this, void 0, void 0, function* () {
@@ -1706,14 +1447,14 @@ function createOrUpdateManagedClusterWithEnableAhub() {
1706
1447
  },
1707
1448
  ],
1708
1449
  autoScalerProfile: { scaleDownDelayAfterAdd: "15m", scanInterval: "20s" },
1709
- diskEncryptionSetID: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des",
1450
+ diskEncryptionSetID: "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des",
1710
1451
  dnsPrefix: "dnsprefix1",
1711
1452
  enablePodSecurityPolicy: true,
1712
1453
  enableRbac: true,
1713
1454
  identity: {
1714
1455
  type: "UserAssigned",
1715
1456
  userAssignedIdentities: {
1716
- "/subscriptions/00000000000000000000000000000000/resourceGroups/rgName1/providers/MicrosoftManagedIdentity/userAssignedIdentities/identity1": {},
1457
+ "/subscriptions/00000000000000000000000000000000/resourcegroups/rgName1/providers/MicrosoftManagedIdentity/userAssignedIdentities/identity1": {},
1717
1458
  },
1718
1459
  },
1719
1460
  kubernetesVersion: "",
@@ -1746,64 +1487,7 @@ function createOrUpdateManagedClusterWithEnableAhub() {
1746
1487
  * This sample demonstrates how to Creates or updates a managed cluster.
1747
1488
  *
1748
1489
  * @summary Creates or updates a managed cluster.
1749
- * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-07-02-preview/examples/ManagedClustersCreate_UpdateWithEnableNamespaceResources.json
1750
- */
1751
- function createOrUpdateManagedClusterWithEnableNamespaceResources() {
1752
- return __awaiter(this, void 0, void 0, function* () {
1753
- const subscriptionId = process.env["CONTAINERSERVICE_SUBSCRIPTION_ID"] ||
1754
- "00000000-0000-0000-0000-000000000000";
1755
- const resourceGroupName = process.env["CONTAINERSERVICE_RESOURCE_GROUP"] || "rg1";
1756
- const resourceName = "clustername1";
1757
- const parameters = {
1758
- addonProfiles: {},
1759
- agentPoolProfiles: [
1760
- {
1761
- name: "nodepool1",
1762
- type: "VirtualMachineScaleSets",
1763
- availabilityZones: ["1", "2", "3"],
1764
- count: 3,
1765
- enableNodePublicIP: true,
1766
- mode: "System",
1767
- osType: "Linux",
1768
- vmSize: "Standard_DS1_v2",
1769
- },
1770
- ],
1771
- autoScalerProfile: { scaleDownDelayAfterAdd: "15m", scanInterval: "20s" },
1772
- diskEncryptionSetID: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des",
1773
- dnsPrefix: "dnsprefix1",
1774
- enableNamespaceResources: true,
1775
- enablePodSecurityPolicy: true,
1776
- enableRbac: true,
1777
- kubernetesVersion: "",
1778
- linuxProfile: {
1779
- adminUsername: "azureuser",
1780
- ssh: { publicKeys: [{ keyData: "keydata" }] },
1781
- },
1782
- location: "location1",
1783
- networkProfile: {
1784
- loadBalancerProfile: { managedOutboundIPs: { count: 2 } },
1785
- loadBalancerSku: "standard",
1786
- outboundType: "loadBalancer",
1787
- },
1788
- servicePrincipalProfile: { clientId: "clientid", secret: "secret" },
1789
- sku: { name: "Basic", tier: "Free" },
1790
- tags: { archv2: "", tier: "production" },
1791
- windowsProfile: {
1792
- adminPassword: "replacePassword1234$",
1793
- adminUsername: "azureuser",
1794
- },
1795
- };
1796
- const credential = new DefaultAzureCredential();
1797
- const client = new ContainerServiceClient(credential, subscriptionId);
1798
- const result = yield client.managedClusters.beginCreateOrUpdateAndWait(resourceGroupName, resourceName, parameters);
1799
- console.log(result);
1800
- });
1801
- }
1802
- /**
1803
- * This sample demonstrates how to Creates or updates a managed cluster.
1804
- *
1805
- * @summary Creates or updates a managed cluster.
1806
- * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-07-02-preview/examples/ManagedClustersCreate_UpdateWindowsGmsa.json
1490
+ * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_UpdateWindowsGmsa.json
1807
1491
  */
1808
1492
  function createOrUpdateManagedClusterWithWindowsGMsaEnabled() {
1809
1493
  return __awaiter(this, void 0, void 0, function* () {
@@ -1826,14 +1510,14 @@ function createOrUpdateManagedClusterWithWindowsGMsaEnabled() {
1826
1510
  },
1827
1511
  ],
1828
1512
  autoScalerProfile: { scaleDownDelayAfterAdd: "15m", scanInterval: "20s" },
1829
- diskEncryptionSetID: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des",
1513
+ diskEncryptionSetID: "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des",
1830
1514
  dnsPrefix: "dnsprefix1",
1831
1515
  enablePodSecurityPolicy: true,
1832
1516
  enableRbac: true,
1833
1517
  identity: {
1834
1518
  type: "UserAssigned",
1835
1519
  userAssignedIdentities: {
1836
- "/subscriptions/00000000000000000000000000000000/resourceGroups/rgName1/providers/MicrosoftManagedIdentity/userAssignedIdentities/identity1": {},
1520
+ "/subscriptions/00000000000000000000000000000000/resourcegroups/rgName1/providers/MicrosoftManagedIdentity/userAssignedIdentities/identity1": {},
1837
1521
  },
1838
1522
  },
1839
1523
  kubernetesVersion: "",
@@ -1866,7 +1550,7 @@ function createOrUpdateManagedClusterWithWindowsGMsaEnabled() {
1866
1550
  * This sample demonstrates how to Creates or updates a managed cluster.
1867
1551
  *
1868
1552
  * @summary Creates or updates a managed cluster.
1869
- * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-07-02-preview/examples/ManagedClustersCreate_DualStackNetworking.json
1553
+ * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_DualStackNetworking.json
1870
1554
  */
1871
1555
  function createOrUpdateManagedClusterWithDualStackNetworking() {
1872
1556
  return __awaiter(this, void 0, void 0, function* () {
@@ -1898,14 +1582,14 @@ function createOrUpdateManagedClusterWithDualStackNetworking() {
1898
1582
  scanInterval: "20s",
1899
1583
  skipNodesWithSystemPods: "false",
1900
1584
  },
1901
- diskEncryptionSetID: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des",
1585
+ diskEncryptionSetID: "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des",
1902
1586
  dnsPrefix: "dnsprefix1",
1903
1587
  enablePodSecurityPolicy: true,
1904
1588
  enableRbac: true,
1905
1589
  identity: {
1906
1590
  type: "UserAssigned",
1907
1591
  userAssignedIdentities: {
1908
- "/subscriptions/00000000000000000000000000000000/resourceGroups/rgName1/providers/MicrosoftManagedIdentity/userAssignedIdentities/identity1": {},
1592
+ "/subscriptions/00000000000000000000000000000000/resourcegroups/rgName1/providers/MicrosoftManagedIdentity/userAssignedIdentities/identity1": {},
1909
1593
  },
1910
1594
  },
1911
1595
  kubernetesVersion: "",
@@ -1936,20 +1620,16 @@ function createOrUpdateManagedClusterWithDualStackNetworking() {
1936
1620
  }
1937
1621
  function main() {
1938
1622
  return __awaiter(this, void 0, void 0, function* () {
1939
- associateManagedClusterWithCapacityReservationGroup();
1940
- createManagedClusterUsingAManagedClusterSnapshot();
1941
1623
  createManagedClusterUsingAnAgentPoolSnapshot();
1942
- createManagedClusterWithAiToolchainOperatorEnabled();
1943
1624
  createManagedClusterWithAksManagedNatGatewayAsOutboundType();
1944
1625
  createManagedClusterWithAzureKeyVaultSecretsProviderAddon();
1945
- createManagedClusterWithCustomCaTrustCertificatesPopulatedAndCustomCatrustEnabled();
1626
+ createManagedClusterWithCapacityReservationGroup();
1946
1627
  createManagedClusterWithDedicatedHostGroup();
1947
1628
  createManagedClusterWithEncryptionAtHostEnabled();
1948
1629
  createManagedClusterWithFipsEnabledOS();
1949
1630
  createManagedClusterWithGpumig();
1950
1631
  createManagedClusterWithHttpProxyConfigured();
1951
1632
  createManagedClusterWithLongTermSupport();
1952
- createManagedClusterWithNodeAutoProvisioning();
1953
1633
  createManagedClusterWithNodePublicIPPrefix();
1954
1634
  createManagedClusterWithOssku();
1955
1635
  createManagedClusterWithPpg();
@@ -1957,7 +1637,6 @@ function main() {
1957
1637
  createManagedClusterWithRunCommandDisabled();
1958
1638
  createManagedClusterWithSecurityProfileConfigured();
1959
1639
  createManagedClusterWithUltraSsdEnabled();
1960
- createManagedClusterWithVirtualMachinesPoolType();
1961
1640
  createManagedClusterWithWebAppRoutingIngressProfileConfigured();
1962
1641
  createManagedClusterWithUserAssignedNatGatewayAsOutboundType();
1963
1642
  createManagedPrivateClusterWithPublicFqdnSpecified();
@@ -1966,7 +1645,6 @@ function main() {
1966
1645
  createOrUpdateManagedCluster();
1967
1646
  createOrUpdateManagedClusterWithAzureServiceMesh();
1968
1647
  createOrUpdateManagedClusterWithEnableAhub();
1969
- createOrUpdateManagedClusterWithEnableNamespaceResources();
1970
1648
  createOrUpdateManagedClusterWithWindowsGMsaEnabled();
1971
1649
  createOrUpdateManagedClusterWithDualStackNetworking();
1972
1650
  });