[mgmt] containerservice release (#30390)
https://github.com/Azure/sdk-release-request/issues/5290
This commit is contained in:
Родитель
992f43393c
Коммит
ddad23e69d
|
@ -13514,7 +13514,7 @@ packages:
|
|||
dev: false
|
||||
|
||||
file:projects/arm-containerservice-1.tgz:
|
||||
resolution: {integrity: sha512-qGyZmQjcgqY4sRGwoKrZNe1EqFn8DJUgppSxF8Yuf4kXwSQcYJgLoO5Z7oPkTC/D1fV3hDlEXilkrnnL9f/tTg==, tarball: file:projects/arm-containerservice-1.tgz}
|
||||
resolution: {integrity: sha512-MSE9EQsFt80usJvYiYKfr8QgkOTk0uB7i+d1RvEgz0W1HSWx0r+5sI52jjaQo2s2l3Vb9f+p0N+Vn2Os9LhWPg==, tarball: file:projects/arm-containerservice-1.tgz}
|
||||
name: '@rush-temp/arm-containerservice-1'
|
||||
version: 0.0.0
|
||||
dependencies:
|
||||
|
@ -13534,9 +13534,10 @@ packages:
|
|||
mkdirp: 3.0.1
|
||||
mocha: 10.6.0
|
||||
rimraf: 5.0.9
|
||||
ts-node: 10.9.2(@types/node@18.19.40)(typescript@5.5.3)
|
||||
ts-node: 10.9.2(@types/node@18.19.40)(typescript@5.4.5)
|
||||
tslib: 2.6.3
|
||||
typescript: 5.5.3
|
||||
tsx: 4.16.2
|
||||
typescript: 5.4.5
|
||||
uglify-js: 3.18.0
|
||||
transitivePeerDependencies:
|
||||
- '@swc/core'
|
||||
|
|
|
@ -1,18 +1,238 @@
|
|||
# Release History
|
||||
|
||||
## 20.0.1 (Unreleased)
|
||||
|
||||
|
||||
## 20.1.0-beta.1 (2024-07-12)
|
||||
Compared with version 20.0.0
|
||||
|
||||
### Features Added
|
||||
|
||||
### Breaking Changes
|
||||
|
||||
### Bugs Fixed
|
||||
|
||||
### Other Changes
|
||||
|
||||
- Added operation group LoadBalancers
|
||||
- Added operation group Machines
|
||||
- Added operation group ManagedClusterSnapshots
|
||||
- Added operation group OperationStatusResultOperations
|
||||
- Added operation AgentPools.beginDeleteMachines
|
||||
- Added operation AgentPools.beginDeleteMachinesAndWait
|
||||
- Added operation ManagedClusters.beginRebalanceLoadBalancers
|
||||
- Added operation ManagedClusters.beginRebalanceLoadBalancersAndWait
|
||||
- Added operation ManagedClusters.getGuardrailsVersions
|
||||
- Added operation ManagedClusters.getSafeguardsVersions
|
||||
- Added operation ManagedClusters.listGuardrailsVersions
|
||||
- Added operation ManagedClusters.listSafeguardsVersions
|
||||
- Added Interface AdvancedNetworking
|
||||
- Added Interface AdvancedNetworkingObservability
|
||||
- Added Interface AgentPoolArtifactStreamingProfile
|
||||
- Added Interface AgentPoolDeleteMachinesParameter
|
||||
- Added Interface AgentPoolGatewayProfile
|
||||
- Added Interface AgentPoolGPUProfile
|
||||
- Added Interface AgentPoolsDeleteMachinesHeaders
|
||||
- Added Interface AgentPoolsDeleteMachinesOptionalParams
|
||||
- Added Interface AgentPoolSecurityProfile
|
||||
- Added Interface AutoScaleProfile
|
||||
- Added Interface Component
|
||||
- Added Interface ComponentsByRelease
|
||||
- Added Interface ContainerServiceNetworkProfileKubeProxyConfig
|
||||
- Added Interface ContainerServiceNetworkProfileKubeProxyConfigIpvsConfig
|
||||
- Added Interface GuardrailsAvailableVersion
|
||||
- Added Interface GuardrailsAvailableVersionsList
|
||||
- Added Interface GuardrailsAvailableVersionsProperties
|
||||
- Added Interface LabelSelector
|
||||
- Added Interface LabelSelectorRequirement
|
||||
- Added Interface LoadBalancer
|
||||
- Added Interface LoadBalancerListResult
|
||||
- Added Interface LoadBalancersCreateOrUpdateOptionalParams
|
||||
- Added Interface LoadBalancersDeleteHeaders
|
||||
- Added Interface LoadBalancersDeleteOptionalParams
|
||||
- Added Interface LoadBalancersGetOptionalParams
|
||||
- Added Interface LoadBalancersListByManagedClusterNextOptionalParams
|
||||
- Added Interface LoadBalancersListByManagedClusterOptionalParams
|
||||
- Added Interface Machine
|
||||
- Added Interface MachineIpAddress
|
||||
- Added Interface MachineListResult
|
||||
- Added Interface MachineNetworkProperties
|
||||
- Added Interface MachineProperties
|
||||
- Added Interface MachinesGetOptionalParams
|
||||
- Added Interface MachinesListNextOptionalParams
|
||||
- Added Interface MachinesListOptionalParams
|
||||
- Added Interface ManagedClusterAIToolchainOperatorProfile
|
||||
- Added Interface ManagedClusterAzureMonitorProfileAppMonitoring
|
||||
- Added Interface ManagedClusterAzureMonitorProfileAppMonitoringAutoInstrumentation
|
||||
- Added Interface ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryLogs
|
||||
- Added Interface ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryMetrics
|
||||
- Added Interface ManagedClusterAzureMonitorProfileContainerInsights
|
||||
- Added Interface ManagedClusterBootstrapProfile
|
||||
- Added Interface ManagedClusterNodeProvisioningProfile
|
||||
- Added Interface ManagedClusterNodeResourceGroupProfile
|
||||
- Added Interface ManagedClusterPropertiesForSnapshot
|
||||
- Added Interface ManagedClusterSecurityProfileImageIntegrity
|
||||
- Added Interface ManagedClusterSecurityProfileNodeRestriction
|
||||
- Added Interface ManagedClustersGetGuardrailsVersionsOptionalParams
|
||||
- Added Interface ManagedClustersGetSafeguardsVersionsOptionalParams
|
||||
- Added Interface ManagedClustersListGuardrailsVersionsNextOptionalParams
|
||||
- Added Interface ManagedClustersListGuardrailsVersionsOptionalParams
|
||||
- Added Interface ManagedClustersListSafeguardsVersionsNextOptionalParams
|
||||
- Added Interface ManagedClustersListSafeguardsVersionsOptionalParams
|
||||
- Added Interface ManagedClusterSnapshot
|
||||
- Added Interface ManagedClusterSnapshotListResult
|
||||
- Added Interface ManagedClusterSnapshotsCreateOrUpdateOptionalParams
|
||||
- Added Interface ManagedClusterSnapshotsDeleteOptionalParams
|
||||
- Added Interface ManagedClusterSnapshotsGetOptionalParams
|
||||
- Added Interface ManagedClusterSnapshotsListByResourceGroupNextOptionalParams
|
||||
- Added Interface ManagedClusterSnapshotsListByResourceGroupOptionalParams
|
||||
- Added Interface ManagedClusterSnapshotsListNextOptionalParams
|
||||
- Added Interface ManagedClusterSnapshotsListOptionalParams
|
||||
- Added Interface ManagedClusterSnapshotsUpdateTagsOptionalParams
|
||||
- Added Interface ManagedClustersRebalanceLoadBalancersHeaders
|
||||
- Added Interface ManagedClustersRebalanceLoadBalancersOptionalParams
|
||||
- Added Interface ManagedClusterStaticEgressGatewayProfile
|
||||
- Added Interface ManualScaleProfile
|
||||
- Added Interface NetworkProfileForSnapshot
|
||||
- Added Interface OperationStatusResult
|
||||
- Added Interface OperationStatusResultGetByAgentPoolOptionalParams
|
||||
- Added Interface OperationStatusResultGetOptionalParams
|
||||
- Added Interface OperationStatusResultList
|
||||
- Added Interface OperationStatusResultListNextOptionalParams
|
||||
- Added Interface OperationStatusResultListOptionalParams
|
||||
- Added Interface RebalanceLoadBalancersRequestBody
|
||||
- Added Interface SafeguardsAvailableVersion
|
||||
- Added Interface SafeguardsAvailableVersionsList
|
||||
- Added Interface SafeguardsAvailableVersionsProperties
|
||||
- Added Interface SafeguardsProfile
|
||||
- Added Interface ScaleProfile
|
||||
- Added Interface VirtualMachineNodes
|
||||
- Added Interface VirtualMachinesProfile
|
||||
- Added Type Alias AddonAutoscaling
|
||||
- Added Type Alias AgentPoolsDeleteMachinesResponse
|
||||
- Added Type Alias AgentPoolSSHAccess
|
||||
- Added Type Alias ArtifactSource
|
||||
- Added Type Alias ClusterServiceLoadBalancerHealthProbeMode
|
||||
- Added Type Alias GuardrailsSupport
|
||||
- Added Type Alias IpvsScheduler
|
||||
- Added Type Alias Level
|
||||
- Added Type Alias LoadBalancersCreateOrUpdateResponse
|
||||
- Added Type Alias LoadBalancersDeleteResponse
|
||||
- Added Type Alias LoadBalancersGetResponse
|
||||
- Added Type Alias LoadBalancersListByManagedClusterNextResponse
|
||||
- Added Type Alias LoadBalancersListByManagedClusterResponse
|
||||
- Added Type Alias MachinesGetResponse
|
||||
- Added Type Alias MachinesListNextResponse
|
||||
- Added Type Alias MachinesListResponse
|
||||
- Added Type Alias ManagedClustersGetGuardrailsVersionsResponse
|
||||
- Added Type Alias ManagedClustersGetSafeguardsVersionsResponse
|
||||
- Added Type Alias ManagedClustersListGuardrailsVersionsNextResponse
|
||||
- Added Type Alias ManagedClustersListGuardrailsVersionsResponse
|
||||
- Added Type Alias ManagedClustersListSafeguardsVersionsNextResponse
|
||||
- Added Type Alias ManagedClustersListSafeguardsVersionsResponse
|
||||
- Added Type Alias ManagedClusterSnapshotsCreateOrUpdateResponse
|
||||
- Added Type Alias ManagedClusterSnapshotsGetResponse
|
||||
- Added Type Alias ManagedClusterSnapshotsListByResourceGroupNextResponse
|
||||
- Added Type Alias ManagedClusterSnapshotsListByResourceGroupResponse
|
||||
- Added Type Alias ManagedClusterSnapshotsListNextResponse
|
||||
- Added Type Alias ManagedClusterSnapshotsListResponse
|
||||
- Added Type Alias ManagedClusterSnapshotsUpdateTagsResponse
|
||||
- Added Type Alias ManagedClustersRebalanceLoadBalancersResponse
|
||||
- Added Type Alias Mode
|
||||
- Added Type Alias NodeProvisioningMode
|
||||
- Added Type Alias OperationStatusResultGetByAgentPoolResponse
|
||||
- Added Type Alias OperationStatusResultGetResponse
|
||||
- Added Type Alias OperationStatusResultListNextResponse
|
||||
- Added Type Alias OperationStatusResultListResponse
|
||||
- Added Type Alias Operator
|
||||
- Added Type Alias PodIPAllocationMode
|
||||
- Added Type Alias PodLinkLocalAccess
|
||||
- Added Type Alias RestrictionLevel
|
||||
- Added Type Alias SafeguardsSupport
|
||||
- Added Type Alias UndrainableNodeBehavior
|
||||
- Interface AgentPool has a new optional parameter artifactStreamingProfile
|
||||
- Interface AgentPool has a new optional parameter enableCustomCATrust
|
||||
- Interface AgentPool has a new optional parameter eTag
|
||||
- Interface AgentPool has a new optional parameter gatewayProfile
|
||||
- Interface AgentPool has a new optional parameter gpuProfile
|
||||
- Interface AgentPool has a new optional parameter messageOfTheDay
|
||||
- Interface AgentPool has a new optional parameter nodeInitializationTaints
|
||||
- Interface AgentPool has a new optional parameter podIPAllocationMode
|
||||
- Interface AgentPool has a new optional parameter securityProfile
|
||||
- Interface AgentPool has a new optional parameter virtualMachineNodesStatus
|
||||
- Interface AgentPool has a new optional parameter virtualMachinesProfile
|
||||
- Interface AgentPoolsCreateOrUpdateOptionalParams has a new optional parameter ifMatch
|
||||
- Interface AgentPoolsCreateOrUpdateOptionalParams has a new optional parameter ifNoneMatch
|
||||
- Interface AgentPoolsDeleteOptionalParams has a new optional parameter ifMatch
|
||||
- Interface AgentPoolsDeleteOptionalParams has a new optional parameter ignorePodDisruptionBudget
|
||||
- Interface AgentPoolUpgradeProfile has a new optional parameter componentsByReleases
|
||||
- Interface AgentPoolUpgradeSettings has a new optional parameter undrainableNodeBehavior
|
||||
- Interface ContainerServiceNetworkProfile has a new optional parameter advancedNetworking
|
||||
- Interface ContainerServiceNetworkProfile has a new optional parameter kubeProxyConfig
|
||||
- Interface ContainerServiceNetworkProfile has a new optional parameter podLinkLocalAccess
|
||||
- Interface ContainerServiceNetworkProfile has a new optional parameter staticEgressGatewayProfile
|
||||
- Interface ManagedCluster has a new optional parameter aiToolchainOperatorProfile
|
||||
- Interface ManagedCluster has a new optional parameter bootstrapProfile
|
||||
- Interface ManagedCluster has a new optional parameter creationData
|
||||
- Interface ManagedCluster has a new optional parameter enableNamespaceResources
|
||||
- Interface ManagedCluster has a new optional parameter eTag
|
||||
- Interface ManagedCluster has a new optional parameter kind
|
||||
- Interface ManagedCluster has a new optional parameter nodeProvisioningProfile
|
||||
- Interface ManagedCluster has a new optional parameter nodeResourceGroupProfile
|
||||
- Interface ManagedCluster has a new optional parameter safeguardsProfile
|
||||
- Interface ManagedClusterAgentPoolProfileProperties has a new optional parameter artifactStreamingProfile
|
||||
- Interface ManagedClusterAgentPoolProfileProperties has a new optional parameter enableCustomCATrust
|
||||
- Interface ManagedClusterAgentPoolProfileProperties has a new optional parameter eTag
|
||||
- Interface ManagedClusterAgentPoolProfileProperties has a new optional parameter gatewayProfile
|
||||
- Interface ManagedClusterAgentPoolProfileProperties has a new optional parameter gpuProfile
|
||||
- Interface ManagedClusterAgentPoolProfileProperties has a new optional parameter messageOfTheDay
|
||||
- Interface ManagedClusterAgentPoolProfileProperties has a new optional parameter nodeInitializationTaints
|
||||
- Interface ManagedClusterAgentPoolProfileProperties has a new optional parameter podIPAllocationMode
|
||||
- Interface ManagedClusterAgentPoolProfileProperties has a new optional parameter securityProfile
|
||||
- Interface ManagedClusterAgentPoolProfileProperties has a new optional parameter virtualMachineNodesStatus
|
||||
- Interface ManagedClusterAgentPoolProfileProperties has a new optional parameter virtualMachinesProfile
|
||||
- Interface ManagedClusterAPIServerAccessProfile has a new optional parameter enableVnetIntegration
|
||||
- Interface ManagedClusterAPIServerAccessProfile has a new optional parameter subnetId
|
||||
- Interface ManagedClusterAzureMonitorProfile has a new optional parameter appMonitoring
|
||||
- Interface ManagedClusterAzureMonitorProfile has a new optional parameter containerInsights
|
||||
- Interface ManagedClusterHttpProxyConfig has a new optional parameter effectiveNoProxy
|
||||
- Interface ManagedClusterLoadBalancerProfile has a new optional parameter clusterServiceLoadBalancerHealthProbeMode
|
||||
- Interface ManagedClusterPoolUpgradeProfile has a new optional parameter componentsByReleases
|
||||
- Interface ManagedClusterPropertiesAutoScalerProfile has a new optional parameter daemonsetEvictionForEmptyNodes
|
||||
- Interface ManagedClusterPropertiesAutoScalerProfile has a new optional parameter daemonsetEvictionForOccupiedNodes
|
||||
- Interface ManagedClusterPropertiesAutoScalerProfile has a new optional parameter ignoreDaemonsetsUtilization
|
||||
- Interface ManagedClustersCreateOrUpdateOptionalParams has a new optional parameter ifMatch
|
||||
- Interface ManagedClustersCreateOrUpdateOptionalParams has a new optional parameter ifNoneMatch
|
||||
- Interface ManagedClustersDeleteOptionalParams has a new optional parameter ifMatch
|
||||
- Interface ManagedClustersDeleteOptionalParams has a new optional parameter ignorePodDisruptionBudget
|
||||
- Interface ManagedClusterSecurityProfile has a new optional parameter customCATrustCertificates
|
||||
- Interface ManagedClusterSecurityProfile has a new optional parameter imageIntegrity
|
||||
- Interface ManagedClusterSecurityProfile has a new optional parameter nodeRestriction
|
||||
- Interface ManagedClusterStorageProfileDiskCSIDriver has a new optional parameter version
|
||||
- Interface ManagedClustersUpdateTagsOptionalParams has a new optional parameter ifMatch
|
||||
- Interface ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler has a new optional parameter addonAutoscaling
|
||||
- Added Enum KnownAddonAutoscaling
|
||||
- Added Enum KnownAgentPoolSSHAccess
|
||||
- Added Enum KnownArtifactSource
|
||||
- Added Enum KnownClusterServiceLoadBalancerHealthProbeMode
|
||||
- Added Enum KnownGuardrailsSupport
|
||||
- Added Enum KnownIpvsScheduler
|
||||
- Added Enum KnownLevel
|
||||
- Added Enum KnownMode
|
||||
- Added Enum KnownNodeProvisioningMode
|
||||
- Added Enum KnownOperator
|
||||
- Added Enum KnownPodIPAllocationMode
|
||||
- Added Enum KnownPodLinkLocalAccess
|
||||
- Added Enum KnownRestrictionLevel
|
||||
- Added Enum KnownSafeguardsSupport
|
||||
- Added Enum KnownUndrainableNodeBehavior
|
||||
- Enum KnownAgentPoolMode has a new value Gateway
|
||||
- Enum KnownAgentPoolType has a new value VirtualMachines
|
||||
- Enum KnownManagedClusterSKUName has a new value Automatic
|
||||
- Enum KnownNetworkPolicy has a new value None
|
||||
- Enum KnownNodeOSUpgradeChannel has a new value SecurityPatch
|
||||
- Enum KnownOssku has a new value Mariner
|
||||
- Enum KnownOssku has a new value WindowsAnnual
|
||||
- Enum KnownOutboundType has a new value None
|
||||
- Enum KnownPublicNetworkAccess has a new value SecuredByPerimeter
|
||||
- Enum KnownSnapshotType has a new value ManagedCluster
|
||||
- Enum KnownWorkloadRuntime has a new value KataMshvVmIsolation
|
||||
|
||||
|
||||
## 20.0.0 (2024-04-26)
|
||||
|
||||
**Features**
|
||||
### Features Added
|
||||
|
||||
- Added Interface AgentPoolWindowsProfile
|
||||
- Added Interface ManagedClusterCostAnalysis
|
||||
|
@ -22,14 +242,14 @@
|
|||
- Interface ManagedCluster has a new optional parameter metricsProfile
|
||||
- Interface ManagedClusterAgentPoolProfileProperties has a new optional parameter windowsProfile
|
||||
|
||||
**Breaking Changes**
|
||||
### Breaking Changes
|
||||
|
||||
- Interface IstioEgressGateway no longer has parameter nodeSelector
|
||||
|
||||
|
||||
|
||||
## 20.0.0-beta.1 (2024-04-12)
|
||||
|
||||
**Features**
|
||||
### Features Added
|
||||
|
||||
- Added operation group Machines
|
||||
- Added operation group ManagedClusterSnapshots
|
||||
|
@ -214,14 +434,14 @@
|
|||
- Enum KnownSnapshotType has a new value ManagedCluster
|
||||
- Enum KnownWorkloadRuntime has a new value KataMshvVmIsolation
|
||||
|
||||
**Breaking Changes**
|
||||
### Breaking Changes
|
||||
|
||||
- Interface IstioEgressGateway no longer has parameter nodeSelector
|
||||
|
||||
|
||||
## 19.8.0 (2024-03-22)
|
||||
|
||||
**Features**
|
||||
### Features Added
|
||||
|
||||
- Added Interface ManagedClusterIngressProfile
|
||||
- Added Interface ManagedClusterIngressProfileWebAppRouting
|
||||
|
@ -230,7 +450,7 @@
|
|||
|
||||
## 19.8.0-beta.2 (2024-03-08)
|
||||
|
||||
**Features**
|
||||
### Features Added
|
||||
|
||||
- Added operation group Machines
|
||||
- Added operation group ManagedClusterSnapshots
|
||||
|
@ -410,7 +630,7 @@
|
|||
|
||||
## 19.8.0-beta.1 (2024-02-05)
|
||||
|
||||
**Features**
|
||||
### Features Added
|
||||
|
||||
- Added operation group Machines
|
||||
- Added operation group ManagedClusterSnapshots
|
||||
|
@ -582,14 +802,14 @@
|
|||
|
||||
## 19.7.0 (2024-01-18)
|
||||
|
||||
**Features**
|
||||
### Features Added
|
||||
|
||||
- Interface AgentPoolUpgradeSettings has a new optional parameter nodeSoakDurationInMinutes
|
||||
|
||||
|
||||
## 19.6.0 (2023-12-21)
|
||||
|
||||
**Features**
|
||||
### Features Added
|
||||
|
||||
- Added Interface AgentPoolNetworkProfile
|
||||
- Added Interface IPTag
|
||||
|
@ -607,7 +827,7 @@
|
|||
|
||||
## 19.6.0-beta.1 (2023-11-30)
|
||||
|
||||
**Features**
|
||||
### Features Added
|
||||
|
||||
- Added operation group Machines
|
||||
- Added operation group ManagedClusterSnapshots
|
||||
|
@ -779,7 +999,7 @@
|
|||
|
||||
## 19.5.0 (2023-11-22)
|
||||
|
||||
**Features**
|
||||
### Features Added
|
||||
|
||||
- Added operation group TrustedAccessRoleBindings
|
||||
- Added operation group TrustedAccessRoles
|
||||
|
@ -812,7 +1032,7 @@
|
|||
|
||||
## 19.5.0-beta.1 (2023-11-03)
|
||||
|
||||
**Features**
|
||||
### Features Added
|
||||
|
||||
- Added operation group Machines
|
||||
- Added operation group ManagedClusterSnapshots
|
||||
|
@ -985,7 +1205,7 @@
|
|||
|
||||
## 19.4.0 (2023-10-20)
|
||||
|
||||
**Features**
|
||||
### Features Added
|
||||
|
||||
- Added operation ManagedClusters.getMeshRevisionProfile
|
||||
- Added operation ManagedClusters.getMeshUpgradeProfile
|
||||
|
@ -1029,7 +1249,7 @@
|
|||
|
||||
## 19.4.0-beta.2 (2023-10-10)
|
||||
|
||||
**Features**
|
||||
### Features Added
|
||||
|
||||
- Added operation group Machines
|
||||
- Added operation group ManagedClusterSnapshots
|
||||
|
@ -1225,7 +1445,7 @@
|
|||
|
||||
## 19.4.0-beta.1 (2023-09-01)
|
||||
|
||||
**Features**
|
||||
### Features Added
|
||||
|
||||
- Added operation group Machines
|
||||
- Added operation group ManagedClusterSnapshots
|
||||
|
@ -1408,7 +1628,7 @@
|
|||
|
||||
## 19.3.0 (2023-08-21)
|
||||
|
||||
**Features**
|
||||
### Features Added
|
||||
|
||||
- Added Interface ClusterUpgradeSettings
|
||||
- Added Interface UpgradeOverrideSettings
|
||||
|
@ -1417,7 +1637,7 @@
|
|||
|
||||
## 19.2.0 (2023-08-14)
|
||||
|
||||
**Features**
|
||||
### Features Added
|
||||
|
||||
- Added Interface DelegatedResource
|
||||
- Added Interface ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler
|
||||
|
@ -1431,7 +1651,7 @@
|
|||
|
||||
## 19.1.0 (2023-07-03)
|
||||
|
||||
**Features**
|
||||
### Features Added
|
||||
|
||||
- Added Interface AbsoluteMonthlySchedule
|
||||
- Added Interface DailySchedule
|
||||
|
@ -1447,18 +1667,18 @@
|
|||
|
||||
## 19.0.0 (2023-05-19)
|
||||
|
||||
**Features**
|
||||
### Features Added
|
||||
|
||||
- Enum KnownOssku has a new value AzureLinux
|
||||
|
||||
**Breaking Changes**
|
||||
### Breaking Changes
|
||||
|
||||
- Interface ContainerServiceNetworkProfile no longer has parameter dockerBridgeCidr
|
||||
|
||||
|
||||
## 18.0.0 (2023-04-23)
|
||||
|
||||
**Features**
|
||||
### Features Added
|
||||
|
||||
- Added operation ManagedClusters.listKubernetesVersions
|
||||
- Added Interface KubernetesPatchVersion
|
||||
|
@ -1483,7 +1703,7 @@
|
|||
- Enum KnownManagedClusterSKUTier has a new value Premium
|
||||
- Enum KnownNetworkPolicy has a new value Cilium
|
||||
|
||||
**Breaking Changes**
|
||||
### Breaking Changes
|
||||
|
||||
- Removed Enum KnownContainerServiceStorageProfileTypes
|
||||
- Removed Enum KnownContainerServiceVMSizeTypes
|
||||
|
@ -1493,7 +1713,7 @@
|
|||
|
||||
## 17.4.0 (2023-03-09)
|
||||
|
||||
**Features**
|
||||
### Features Added
|
||||
|
||||
- Added operation AgentPools.beginAbortLatestOperation
|
||||
- Added operation AgentPools.beginAbortLatestOperationAndWait
|
||||
|
@ -1515,7 +1735,7 @@
|
|||
|
||||
## 17.3.0 (2023-01-06)
|
||||
|
||||
**Features**
|
||||
### Features Added
|
||||
|
||||
- Added Interface AgentPoolsDeleteHeaders
|
||||
- Added Interface ManagedClustersDeleteHeaders
|
||||
|
@ -1542,7 +1762,7 @@
|
|||
|
||||
## 17.2.0 (2022-11-02)
|
||||
|
||||
**Features**
|
||||
### Features Added
|
||||
|
||||
- Added operation ManagedClusters.beginRotateServiceAccountSigningKeys
|
||||
- Added operation ManagedClusters.beginRotateServiceAccountSigningKeysAndWait
|
||||
|
@ -1557,7 +1777,7 @@
|
|||
|
||||
## 17.1.0 (2022-08-25)
|
||||
|
||||
**Features**
|
||||
### Features Added
|
||||
|
||||
- Enum KnownOssku has a new value Windows2019
|
||||
- Enum KnownOssku has a new value Windows2022
|
||||
|
@ -1565,7 +1785,7 @@
|
|||
|
||||
## 17.0.0 (2022-07-22)
|
||||
|
||||
**Features**
|
||||
### Features Added
|
||||
|
||||
- Added Interface AgentPool
|
||||
- Added Interface AzureKeyVaultKms
|
||||
|
@ -1585,14 +1805,14 @@
|
|||
- Added Enum KnownKeyVaultNetworkAccessTypes
|
||||
- Enum KnownNetworkPlugin has a new value None
|
||||
|
||||
**Breaking Changes**
|
||||
### Breaking Changes
|
||||
|
||||
- Interface ManagedClusterSecurityProfile no longer has parameter azureDefender
|
||||
|
||||
|
||||
## 16.1.0 (2022-05-23)
|
||||
|
||||
**Features**
|
||||
### Features Added
|
||||
|
||||
- Interface ManagedClusterAgentPoolProfileProperties has a new optional parameter currentOrchestratorVersion
|
||||
- Type Alias AgentPool has a new parameter currentOrchestratorVersion
|
||||
|
@ -1602,7 +1822,7 @@
|
|||
|
||||
## 16.0.0 (2022-04-20)
|
||||
|
||||
**Features**
|
||||
### Features Added
|
||||
|
||||
- Added Interface ManagedClusterStorageProfile
|
||||
- Added Interface ManagedClusterStorageProfileDiskCSIDriver
|
||||
|
@ -1613,7 +1833,7 @@
|
|||
- Add parameters of TrackedResource to TypeAlias ManagedClusterAccessProfile
|
||||
- Add parameters of TrackedResource to TypeAlias Snapshot
|
||||
|
||||
**Breaking Changes**
|
||||
### Breaking Changes
|
||||
|
||||
- Interface Resource no longer has parameter location
|
||||
- Interface Resource no longer has parameter tags
|
||||
|
@ -1624,14 +1844,14 @@
|
|||
|
||||
## 15.2.0 (2022-03-23)
|
||||
|
||||
**Features**
|
||||
### Features Added
|
||||
|
||||
- Interface Resource has a new optional parameter systemData
|
||||
|
||||
|
||||
## 15.1.0 (2022-02-24)
|
||||
|
||||
**Features**
|
||||
### Features Added
|
||||
|
||||
- Added Type Alias Format
|
||||
- Interface ManagedClustersListClusterUserCredentialsOptionalParams has a new optional parameter format
|
||||
|
|
|
@ -6,7 +6,7 @@ The Container Service Client.
|
|||
|
||||
[Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/containerservice/arm-containerservice) |
|
||||
[Package (NPM)](https://www.npmjs.com/package/@azure/arm-containerservice) |
|
||||
[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-containerservice) |
|
||||
[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-containerservice?view=azure-node-preview) |
|
||||
[Samples](https://github.com/Azure-Samples/azure-samples-js-management)
|
||||
|
||||
## Getting started
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
{
|
||||
"commit": "34d8b6d264d9b8980a3c8fe2dde026319b2ba32f",
|
||||
"commit": "c35779f9b45b287e2763e803e9692dbb5627f671",
|
||||
"readme": "specification/containerservice/resource-manager/Microsoft.ContainerService/aks/readme.md",
|
||||
"autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\containerservice\\resource-manager\\Microsoft.ContainerService\\aks\\readme.md --use=@autorest/typescript@6.0.21 --generate-sample=true",
|
||||
"autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\containerservice\\resource-manager\\Microsoft.ContainerService\\aks\\readme.md --use=@autorest/typescript@6.0.23 --generate-sample=true",
|
||||
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
|
||||
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.5",
|
||||
"use": "@autorest/typescript@6.0.21"
|
||||
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.11",
|
||||
"use": "@autorest/typescript@6.0.23"
|
||||
}
|
|
@ -2,5 +2,5 @@
|
|||
"AssetsRepo": "Azure/azure-sdk-assets",
|
||||
"AssetsRepoPrefixPath": "js",
|
||||
"TagPrefix": "js/containerservice/arm-containerservice",
|
||||
"Tag": "js/containerservice/arm-containerservice_287fff2d20"
|
||||
"Tag": "js/containerservice/arm-containerservice_5e83559e86"
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
"sdk-type": "mgmt",
|
||||
"author": "Microsoft Corporation",
|
||||
"description": "A generated SDK for ContainerServiceClient.",
|
||||
"version": "20.0.1",
|
||||
"version": "20.1.0-beta.1",
|
||||
"engines": {
|
||||
"node": ">=18.0.0"
|
||||
},
|
||||
|
@ -30,17 +30,17 @@
|
|||
"devDependencies": {
|
||||
"@microsoft/api-extractor": "^7.31.1",
|
||||
"mkdirp": "^3.0.1",
|
||||
"typescript": "~5.5.3",
|
||||
"typescript": "~5.4.5",
|
||||
"uglify-js": "^3.4.9",
|
||||
"rimraf": "^5.0.0",
|
||||
"dotenv": "^16.0.0",
|
||||
"@azure/dev-tool": "^1.0.0",
|
||||
"@azure/identity": "^4.0.1",
|
||||
"@azure-tools/test-recorder": "^3.0.0",
|
||||
"@azure-tools/test-credential": "^1.0.0",
|
||||
"@azure-tools/test-credential": "^1.1.0",
|
||||
"mocha": "^10.0.0",
|
||||
"@types/mocha": "^10.0.0",
|
||||
"esm": "^3.2.18",
|
||||
"tsx": "^4.7.1",
|
||||
"@types/chai": "^4.2.8",
|
||||
"chai": "^4.2.0",
|
||||
"cross-env": "^7.0.2",
|
||||
|
@ -76,7 +76,7 @@
|
|||
"minify": "uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
|
||||
"prepack": "npm run build",
|
||||
"pack": "npm pack 2>&1",
|
||||
"extract-api": "api-extractor run --local",
|
||||
"extract-api": "dev-tool run extract-api",
|
||||
"lint": "echo skipped",
|
||||
"clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
|
||||
"build:node": "echo skipped",
|
||||
|
@ -115,4 +115,4 @@
|
|||
"disableDocsMs": true,
|
||||
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-containerservice?view=azure-node-preview"
|
||||
}
|
||||
}
|
||||
}
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -15,10 +15,10 @@ import * as dotenv from "dotenv";
|
|||
dotenv.config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Aborts the currently running operation on the agent pool. The Agent Pool will be moved to a Canceling state and eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can take place, a 409 error code is returned.
|
||||
* This sample demonstrates how to Aborts the currently running operation on the agent pool. The Agent Pool will be moved to a Canceling state and eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can take place, an error is returned.
|
||||
*
|
||||
* @summary Aborts the currently running operation on the agent pool. The Agent Pool will be moved to a Canceling state and eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can take place, a 409 error code is returned.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/AgentPoolsAbortOperation.json
|
||||
* @summary Aborts the currently running operation on the agent pool. The Agent Pool will be moved to a Canceling state and eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can take place, an error is returned.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/AgentPoolsAbortOperation.json
|
||||
*/
|
||||
async function abortOperationOnAgentPool() {
|
||||
const subscriptionId =
|
||||
|
|
|
@ -18,45 +18,9 @@ dotenv.config();
|
|||
* This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster.
|
||||
*
|
||||
* @summary Creates or updates an agent pool in the specified managed cluster.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/AgentPoolsCreate_Snapshot.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/AgentPoolsAssociate_CRG.json
|
||||
*/
|
||||
async function createAgentPoolUsingAnAgentPoolSnapshot() {
|
||||
const subscriptionId =
|
||||
process.env["CONTAINERSERVICE_SUBSCRIPTION_ID"] ||
|
||||
"00000000-0000-0000-0000-000000000000";
|
||||
const resourceGroupName =
|
||||
process.env["CONTAINERSERVICE_RESOURCE_GROUP"] || "rg1";
|
||||
const resourceName = "clustername1";
|
||||
const agentPoolName = "agentpool1";
|
||||
const parameters: AgentPool = {
|
||||
count: 3,
|
||||
creationData: {
|
||||
sourceResourceId:
|
||||
"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.ContainerService/snapshots/snapshot1",
|
||||
},
|
||||
enableFips: true,
|
||||
orchestratorVersion: "",
|
||||
osType: "Linux",
|
||||
vmSize: "Standard_DS2_v2",
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new ContainerServiceClient(credential, subscriptionId);
|
||||
const result = await client.agentPools.beginCreateOrUpdateAndWait(
|
||||
resourceGroupName,
|
||||
resourceName,
|
||||
agentPoolName,
|
||||
parameters,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster.
|
||||
*
|
||||
* @summary Creates or updates an agent pool in the specified managed cluster.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/AgentPoolsCreate_CRG.json
|
||||
*/
|
||||
async function createAgentPoolWithCapacityReservationGroup() {
|
||||
async function associateAgentPoolWithCapacityReservationGroup() {
|
||||
const subscriptionId =
|
||||
process.env["CONTAINERSERVICE_SUBSCRIPTION_ID"] ||
|
||||
"00000000-0000-0000-0000-000000000000";
|
||||
|
@ -87,7 +51,75 @@ async function createAgentPoolWithCapacityReservationGroup() {
|
|||
* This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster.
|
||||
*
|
||||
* @summary Creates or updates an agent pool in the specified managed cluster.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/AgentPoolsCreate_DedicatedHostGroup.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/AgentPoolsCreate_Snapshot.json
|
||||
*/
|
||||
async function createAgentPoolUsingAnAgentPoolSnapshot() {
|
||||
const subscriptionId =
|
||||
process.env["CONTAINERSERVICE_SUBSCRIPTION_ID"] ||
|
||||
"00000000-0000-0000-0000-000000000000";
|
||||
const resourceGroupName =
|
||||
process.env["CONTAINERSERVICE_RESOURCE_GROUP"] || "rg1";
|
||||
const resourceName = "clustername1";
|
||||
const agentPoolName = "agentpool1";
|
||||
const parameters: AgentPool = {
|
||||
count: 3,
|
||||
creationData: {
|
||||
sourceResourceId:
|
||||
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/snapshots/snapshot1",
|
||||
},
|
||||
enableFips: true,
|
||||
orchestratorVersion: "",
|
||||
osType: "Linux",
|
||||
vmSize: "Standard_DS2_v2",
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new ContainerServiceClient(credential, subscriptionId);
|
||||
const result = await client.agentPools.beginCreateOrUpdateAndWait(
|
||||
resourceGroupName,
|
||||
resourceName,
|
||||
agentPoolName,
|
||||
parameters,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster.
|
||||
*
|
||||
* @summary Creates or updates an agent pool in the specified managed cluster.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/AgentPoolsCreate_EnableCustomCATrust.json
|
||||
*/
|
||||
async function createAgentPoolWithCustomCaTrustEnabled() {
|
||||
const subscriptionId =
|
||||
process.env["CONTAINERSERVICE_SUBSCRIPTION_ID"] ||
|
||||
"00000000-0000-0000-0000-000000000000";
|
||||
const resourceGroupName =
|
||||
process.env["CONTAINERSERVICE_RESOURCE_GROUP"] || "rg1";
|
||||
const resourceName = "clustername1";
|
||||
const agentPoolName = "agentpool1";
|
||||
const parameters: AgentPool = {
|
||||
count: 3,
|
||||
enableCustomCATrust: true,
|
||||
orchestratorVersion: "",
|
||||
osType: "Linux",
|
||||
vmSize: "Standard_DS2_v2",
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new ContainerServiceClient(credential, subscriptionId);
|
||||
const result = await client.agentPools.beginCreateOrUpdateAndWait(
|
||||
resourceGroupName,
|
||||
resourceName,
|
||||
agentPoolName,
|
||||
parameters,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster.
|
||||
*
|
||||
* @summary Creates or updates an agent pool in the specified managed cluster.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/AgentPoolsCreate_DedicatedHostGroup.json
|
||||
*/
|
||||
async function createAgentPoolWithDedicatedHostGroup() {
|
||||
const subscriptionId =
|
||||
|
@ -120,7 +152,7 @@ async function createAgentPoolWithDedicatedHostGroup() {
|
|||
* This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster.
|
||||
*
|
||||
* @summary Creates or updates an agent pool in the specified managed cluster.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/AgentPoolsCreate_EnableEncryptionAtHost.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/AgentPoolsCreate_EnableEncryptionAtHost.json
|
||||
*/
|
||||
async function createAgentPoolWithEncryptionAtHostEnabled() {
|
||||
const subscriptionId =
|
||||
|
@ -152,7 +184,7 @@ async function createAgentPoolWithEncryptionAtHostEnabled() {
|
|||
* This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster.
|
||||
*
|
||||
* @summary Creates or updates an agent pool in the specified managed cluster.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/AgentPoolsCreate_Ephemeral.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/AgentPoolsCreate_Ephemeral.json
|
||||
*/
|
||||
async function createAgentPoolWithEphemeralOSDisk() {
|
||||
const subscriptionId =
|
||||
|
@ -185,7 +217,7 @@ async function createAgentPoolWithEphemeralOSDisk() {
|
|||
* This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster.
|
||||
*
|
||||
* @summary Creates or updates an agent pool in the specified managed cluster.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/AgentPoolsCreate_EnableFIPS.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/AgentPoolsCreate_EnableFIPS.json
|
||||
*/
|
||||
async function createAgentPoolWithFipsEnabledOS() {
|
||||
const subscriptionId =
|
||||
|
@ -217,7 +249,7 @@ async function createAgentPoolWithFipsEnabledOS() {
|
|||
* This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster.
|
||||
*
|
||||
* @summary Creates or updates an agent pool in the specified managed cluster.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/AgentPoolsCreate_GPUMIG.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/AgentPoolsCreate_GPUMIG.json
|
||||
*/
|
||||
async function createAgentPoolWithGpumig() {
|
||||
const subscriptionId =
|
||||
|
@ -270,7 +302,7 @@ async function createAgentPoolWithGpumig() {
|
|||
* This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster.
|
||||
*
|
||||
* @summary Creates or updates an agent pool in the specified managed cluster.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/AgentPoolsCreate_WasmWasi.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/AgentPoolsCreate_WasmWasi.json
|
||||
*/
|
||||
async function createAgentPoolWithKrustletAndTheWasiRuntime() {
|
||||
const subscriptionId =
|
||||
|
@ -304,7 +336,7 @@ async function createAgentPoolWithKrustletAndTheWasiRuntime() {
|
|||
* This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster.
|
||||
*
|
||||
* @summary Creates or updates an agent pool in the specified managed cluster.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/AgentPoolsCreate_CustomNodeConfig.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/AgentPoolsCreate_CustomNodeConfig.json
|
||||
*/
|
||||
async function createAgentPoolWithKubeletConfigAndLinuxOSConfig() {
|
||||
const subscriptionId =
|
||||
|
@ -356,7 +388,41 @@ async function createAgentPoolWithKubeletConfigAndLinuxOSConfig() {
|
|||
* This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster.
|
||||
*
|
||||
* @summary Creates or updates an agent pool in the specified managed cluster.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/AgentPoolsCreate_OSSKU.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/AgentPoolsCreate_MessageOfTheDay.json
|
||||
*/
|
||||
async function createAgentPoolWithMessageOfTheDay() {
|
||||
const subscriptionId =
|
||||
process.env["CONTAINERSERVICE_SUBSCRIPTION_ID"] ||
|
||||
"00000000-0000-0000-0000-000000000000";
|
||||
const resourceGroupName =
|
||||
process.env["CONTAINERSERVICE_RESOURCE_GROUP"] || "rg1";
|
||||
const resourceName = "clustername1";
|
||||
const agentPoolName = "agentpool1";
|
||||
const parameters: AgentPool = {
|
||||
count: 3,
|
||||
messageOfTheDay: "Zm9vCg==",
|
||||
mode: "User",
|
||||
orchestratorVersion: "",
|
||||
osDiskSizeGB: 64,
|
||||
osType: "Linux",
|
||||
vmSize: "Standard_DS2_v2",
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new ContainerServiceClient(credential, subscriptionId);
|
||||
const result = await client.agentPools.beginCreateOrUpdateAndWait(
|
||||
resourceGroupName,
|
||||
resourceName,
|
||||
agentPoolName,
|
||||
parameters,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster.
|
||||
*
|
||||
* @summary Creates or updates an agent pool in the specified managed cluster.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/AgentPoolsCreate_OSSKU.json
|
||||
*/
|
||||
async function createAgentPoolWithOssku() {
|
||||
const subscriptionId =
|
||||
|
@ -409,7 +475,7 @@ async function createAgentPoolWithOssku() {
|
|||
* This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster.
|
||||
*
|
||||
* @summary Creates or updates an agent pool in the specified managed cluster.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/AgentPoolsCreate_PPG.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/AgentPoolsCreate_PPG.json
|
||||
*/
|
||||
async function createAgentPoolWithPpg() {
|
||||
const subscriptionId =
|
||||
|
@ -442,7 +508,7 @@ async function createAgentPoolWithPpg() {
|
|||
* This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster.
|
||||
*
|
||||
* @summary Creates or updates an agent pool in the specified managed cluster.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/AgentPoolsCreate_EnableUltraSSD.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/AgentPoolsCreate_EnableUltraSSD.json
|
||||
*/
|
||||
async function createAgentPoolWithUltraSsdEnabled() {
|
||||
const subscriptionId =
|
||||
|
@ -474,7 +540,89 @@ async function createAgentPoolWithUltraSsdEnabled() {
|
|||
* This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster.
|
||||
*
|
||||
* @summary Creates or updates an agent pool in the specified managed cluster.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/AgentPoolsCreate_WindowsOSSKU.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/AgentPoolsCreate_TypeVirtualMachines.json
|
||||
*/
|
||||
async function createAgentPoolWithVirtualMachinesPoolType() {
|
||||
const subscriptionId =
|
||||
process.env["CONTAINERSERVICE_SUBSCRIPTION_ID"] ||
|
||||
"00000000-0000-0000-0000-000000000000";
|
||||
const resourceGroupName =
|
||||
process.env["CONTAINERSERVICE_RESOURCE_GROUP"] || "rg1";
|
||||
const resourceName = "clustername1";
|
||||
const agentPoolName = "agentpool1";
|
||||
const parameters: AgentPool = {
|
||||
typePropertiesType: "VirtualMachines",
|
||||
nodeLabels: { key1: "val1" },
|
||||
nodeTaints: ["Key1=Value1:NoSchedule"],
|
||||
orchestratorVersion: "1.9.6",
|
||||
osType: "Linux",
|
||||
tags: { name1: "val1" },
|
||||
virtualMachinesProfile: {
|
||||
scale: {
|
||||
manual: [{ count: 5, sizes: ["Standard_D2_v2", "Standard_D2_v3"] }],
|
||||
},
|
||||
},
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new ContainerServiceClient(credential, subscriptionId);
|
||||
const result = await client.agentPools.beginCreateOrUpdateAndWait(
|
||||
resourceGroupName,
|
||||
resourceName,
|
||||
agentPoolName,
|
||||
parameters,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster.
|
||||
*
|
||||
* @summary Creates or updates an agent pool in the specified managed cluster.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/AgentPoolsCreate_TypeVirtualMachines_Autoscale.json
|
||||
*/
|
||||
async function createAgentPoolWithVirtualMachinesPoolTypeWithAutoscalingEnabled() {
|
||||
const subscriptionId =
|
||||
process.env["CONTAINERSERVICE_SUBSCRIPTION_ID"] ||
|
||||
"00000000-0000-0000-0000-000000000000";
|
||||
const resourceGroupName =
|
||||
process.env["CONTAINERSERVICE_RESOURCE_GROUP"] || "rg1";
|
||||
const resourceName = "clustername1";
|
||||
const agentPoolName = "agentpool1";
|
||||
const parameters: AgentPool = {
|
||||
typePropertiesType: "VirtualMachines",
|
||||
nodeLabels: { key1: "val1" },
|
||||
nodeTaints: ["Key1=Value1:NoSchedule"],
|
||||
orchestratorVersion: "1.29.0",
|
||||
osType: "Linux",
|
||||
tags: { name1: "val1" },
|
||||
virtualMachinesProfile: {
|
||||
scale: {
|
||||
autoscale: [
|
||||
{
|
||||
maxCount: 5,
|
||||
minCount: 1,
|
||||
sizes: ["Standard_D2_v2", "Standard_D2_v3"],
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new ContainerServiceClient(credential, subscriptionId);
|
||||
const result = await client.agentPools.beginCreateOrUpdateAndWait(
|
||||
resourceGroupName,
|
||||
resourceName,
|
||||
agentPoolName,
|
||||
parameters,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster.
|
||||
*
|
||||
* @summary Creates or updates an agent pool in the specified managed cluster.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/AgentPoolsCreate_WindowsOSSKU.json
|
||||
*/
|
||||
async function createAgentPoolWithWindowsOssku() {
|
||||
const subscriptionId =
|
||||
|
@ -506,7 +654,7 @@ async function createAgentPoolWithWindowsOssku() {
|
|||
* This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster.
|
||||
*
|
||||
* @summary Creates or updates an agent pool in the specified managed cluster.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/AgentPoolsCreate_Spot.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/AgentPoolsCreate_Spot.json
|
||||
*/
|
||||
async function createSpotAgentPool() {
|
||||
const subscriptionId =
|
||||
|
@ -542,7 +690,7 @@ async function createSpotAgentPool() {
|
|||
* This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster.
|
||||
*
|
||||
* @summary Creates or updates an agent pool in the specified managed cluster.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/AgentPoolsCreate_WindowsDisableOutboundNAT.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/AgentPoolsCreate_WindowsDisableOutboundNAT.json
|
||||
*/
|
||||
async function createWindowsAgentPoolWithDisablingOutboundNat() {
|
||||
const subscriptionId =
|
||||
|
@ -575,7 +723,7 @@ async function createWindowsAgentPoolWithDisablingOutboundNat() {
|
|||
* This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster.
|
||||
*
|
||||
* @summary Creates or updates an agent pool in the specified managed cluster.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/AgentPoolsCreate_Update.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/AgentPoolsCreate_Update.json
|
||||
*/
|
||||
async function createOrUpdateAgentPool() {
|
||||
const subscriptionId =
|
||||
|
@ -612,7 +760,7 @@ async function createOrUpdateAgentPool() {
|
|||
* This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster.
|
||||
*
|
||||
* @summary Creates or updates an agent pool in the specified managed cluster.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/AgentPools_Start.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/AgentPools_Start.json
|
||||
*/
|
||||
async function startAgentPool() {
|
||||
const subscriptionId =
|
||||
|
@ -638,7 +786,7 @@ async function startAgentPool() {
|
|||
* This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster.
|
||||
*
|
||||
* @summary Creates or updates an agent pool in the specified managed cluster.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/AgentPools_Stop.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/AgentPools_Stop.json
|
||||
*/
|
||||
async function stopAgentPool() {
|
||||
const subscriptionId =
|
||||
|
@ -664,7 +812,7 @@ async function stopAgentPool() {
|
|||
* This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster.
|
||||
*
|
||||
* @summary Creates or updates an agent pool in the specified managed cluster.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/AgentPools_Update.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/AgentPools_Update.json
|
||||
*/
|
||||
async function updateAgentPool() {
|
||||
const subscriptionId =
|
||||
|
@ -698,8 +846,9 @@ async function updateAgentPool() {
|
|||
}
|
||||
|
||||
async function main() {
|
||||
associateAgentPoolWithCapacityReservationGroup();
|
||||
createAgentPoolUsingAnAgentPoolSnapshot();
|
||||
createAgentPoolWithCapacityReservationGroup();
|
||||
createAgentPoolWithCustomCaTrustEnabled();
|
||||
createAgentPoolWithDedicatedHostGroup();
|
||||
createAgentPoolWithEncryptionAtHostEnabled();
|
||||
createAgentPoolWithEphemeralOSDisk();
|
||||
|
@ -707,9 +856,12 @@ async function main() {
|
|||
createAgentPoolWithGpumig();
|
||||
createAgentPoolWithKrustletAndTheWasiRuntime();
|
||||
createAgentPoolWithKubeletConfigAndLinuxOSConfig();
|
||||
createAgentPoolWithMessageOfTheDay();
|
||||
createAgentPoolWithOssku();
|
||||
createAgentPoolWithPpg();
|
||||
createAgentPoolWithUltraSsdEnabled();
|
||||
createAgentPoolWithVirtualMachinesPoolType();
|
||||
createAgentPoolWithVirtualMachinesPoolTypeWithAutoscalingEnabled();
|
||||
createAgentPoolWithWindowsOssku();
|
||||
createSpotAgentPool();
|
||||
createWindowsAgentPoolWithDisablingOutboundNat();
|
||||
|
|
|
@ -0,0 +1,55 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import {
|
||||
AgentPoolDeleteMachinesParameter,
|
||||
ContainerServiceClient,
|
||||
} from "@azure/arm-containerservice";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
import * as dotenv from "dotenv";
|
||||
|
||||
dotenv.config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Deletes specific machines in an agent pool.
|
||||
*
|
||||
* @summary Deletes specific machines in an agent pool.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/AgentPoolsDeleteMachines.json
|
||||
*/
|
||||
async function deleteSpecificMachinesInAnAgentPool() {
|
||||
const subscriptionId =
|
||||
process.env["CONTAINERSERVICE_SUBSCRIPTION_ID"] ||
|
||||
"00000000-0000-0000-0000-000000000000";
|
||||
const resourceGroupName =
|
||||
process.env["CONTAINERSERVICE_RESOURCE_GROUP"] || "rg1";
|
||||
const resourceName = "clustername1";
|
||||
const agentPoolName = "agentpool1";
|
||||
const machines: AgentPoolDeleteMachinesParameter = {
|
||||
machineNames: [
|
||||
"aks-nodepool1-42263519-vmss00000a",
|
||||
"aks-nodepool1-42263519-vmss00000b",
|
||||
],
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new ContainerServiceClient(credential, subscriptionId);
|
||||
const result = await client.agentPools.beginDeleteMachinesAndWait(
|
||||
resourceGroupName,
|
||||
resourceName,
|
||||
agentPoolName,
|
||||
machines,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
deleteSpecificMachinesInAnAgentPool();
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Deletes an agent pool in the specified managed cluster.
|
||||
*
|
||||
* @summary Deletes an agent pool in the specified managed cluster.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/AgentPoolsDelete.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/AgentPoolsDelete.json
|
||||
*/
|
||||
async function deleteAgentPool() {
|
||||
const subscriptionId =
|
||||
|
@ -38,8 +38,33 @@ async function deleteAgentPool() {
|
|||
console.log(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Deletes an agent pool in the specified managed cluster.
|
||||
*
|
||||
* @summary Deletes an agent pool in the specified managed cluster.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/AgentPoolsDelete_IgnorePodDisruptionBudget.json
|
||||
*/
|
||||
async function deleteAgentPoolByIgnoringPodDisruptionBudget() {
|
||||
const subscriptionId =
|
||||
process.env["CONTAINERSERVICE_SUBSCRIPTION_ID"] ||
|
||||
"00000000-0000-0000-0000-000000000000";
|
||||
const resourceGroupName =
|
||||
process.env["CONTAINERSERVICE_RESOURCE_GROUP"] || "rg1";
|
||||
const resourceName = "clustername1";
|
||||
const agentPoolName = "agentpool1";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new ContainerServiceClient(credential, subscriptionId);
|
||||
const result = await client.agentPools.beginDeleteAndWait(
|
||||
resourceGroupName,
|
||||
resourceName,
|
||||
agentPoolName,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
deleteAgentPool();
|
||||
deleteAgentPoolByIgnoringPodDisruptionBudget();
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to See [supported Kubernetes versions](https://docs.microsoft.com/azure/aks/supported-kubernetes-versions) for more details about the version lifecycle.
|
||||
*
|
||||
* @summary See [supported Kubernetes versions](https://docs.microsoft.com/azure/aks/supported-kubernetes-versions) for more details about the version lifecycle.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/AgentPoolsGetAgentPoolAvailableVersions.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/AgentPoolsGetAgentPoolAvailableVersions.json
|
||||
*/
|
||||
async function getAvailableVersionsForAgentPool() {
|
||||
const subscriptionId =
|
||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Gets the specified managed cluster agent pool.
|
||||
*
|
||||
* @summary Gets the specified managed cluster agent pool.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/AgentPoolsGet.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/AgentPoolsGet.json
|
||||
*/
|
||||
async function getAgentPool() {
|
||||
const subscriptionId =
|
||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Gets the upgrade profile for an agent pool.
|
||||
*
|
||||
* @summary Gets the upgrade profile for an agent pool.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/AgentPoolsGetUpgradeProfile.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/AgentPoolsGetUpgradeProfile.json
|
||||
*/
|
||||
async function getUpgradeProfileForAgentPool() {
|
||||
const subscriptionId =
|
||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Gets a list of agent pools in the specified managed cluster.
|
||||
*
|
||||
* @summary Gets a list of agent pools in the specified managed cluster.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/AgentPoolsList.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/AgentPoolsList.json
|
||||
*/
|
||||
async function listAgentPoolsByManagedCluster() {
|
||||
const subscriptionId =
|
||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Upgrading the node image version of an agent pool applies the newest OS and runtime updates to the nodes. AKS provides one new image per week with the latest updates. For more details on node image versions, see: https://docs.microsoft.com/azure/aks/node-image-upgrade
|
||||
*
|
||||
* @summary Upgrading the node image version of an agent pool applies the newest OS and runtime updates to the nodes. AKS provides one new image per week with the latest updates. For more details on node image versions, see: https://docs.microsoft.com/azure/aks/node-image-upgrade
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/AgentPoolsUpgradeNodeImageVersion.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/AgentPoolsUpgradeNodeImageVersion.json
|
||||
*/
|
||||
async function upgradeAgentPoolNodeImageVersion() {
|
||||
const subscriptionId =
|
||||
|
|
|
@ -0,0 +1,45 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { ContainerServiceClient } from "@azure/arm-containerservice";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
import * as dotenv from "dotenv";
|
||||
|
||||
dotenv.config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Creates or updates a load balancer in the specified managed cluster.
|
||||
*
|
||||
* @summary Creates or updates a load balancer in the specified managed cluster.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/LoadBalancers_Create_Or_Update.json
|
||||
*/
|
||||
async function createOrUpdateALoadBalancer() {
|
||||
const subscriptionId =
|
||||
process.env["CONTAINERSERVICE_SUBSCRIPTION_ID"] ||
|
||||
"00000000-0000-0000-0000-000000000000";
|
||||
const resourceGroupName =
|
||||
process.env["CONTAINERSERVICE_RESOURCE_GROUP"] || "rg1";
|
||||
const resourceName = "clustername1";
|
||||
const loadBalancerName = "kubernetes";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new ContainerServiceClient(credential, subscriptionId);
|
||||
const result = await client.loadBalancers.createOrUpdate(
|
||||
resourceGroupName,
|
||||
resourceName,
|
||||
loadBalancerName,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
createOrUpdateALoadBalancer();
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
|
@ -0,0 +1,45 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { ContainerServiceClient } from "@azure/arm-containerservice";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
import * as dotenv from "dotenv";
|
||||
|
||||
dotenv.config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Deletes a load balancer in the specified managed cluster.
|
||||
*
|
||||
* @summary Deletes a load balancer in the specified managed cluster.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/LoadBalancers_Delete.json
|
||||
*/
|
||||
async function deleteALoadBalancer() {
|
||||
const subscriptionId =
|
||||
process.env["CONTAINERSERVICE_SUBSCRIPTION_ID"] ||
|
||||
"00000000-0000-0000-0000-000000000000";
|
||||
const resourceGroupName =
|
||||
process.env["CONTAINERSERVICE_RESOURCE_GROUP"] || "rg1";
|
||||
const resourceName = "clustername1";
|
||||
const loadBalancerName = "kubernetes";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new ContainerServiceClient(credential, subscriptionId);
|
||||
const result = await client.loadBalancers.beginDeleteAndWait(
|
||||
resourceGroupName,
|
||||
resourceName,
|
||||
loadBalancerName,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
deleteALoadBalancer();
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
|
@ -15,31 +15,31 @@ import * as dotenv from "dotenv";
|
|||
dotenv.config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Deletes an agent pool in the specified managed cluster.
|
||||
* This sample demonstrates how to Gets the specified load balancer.
|
||||
*
|
||||
* @summary Deletes an agent pool in the specified managed cluster.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/AgentPoolsDelete.json
|
||||
* @summary Gets the specified load balancer.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/LoadBalancers_Get.json
|
||||
*/
|
||||
async function deleteAgentPool() {
|
||||
async function getLoadBalancer() {
|
||||
const subscriptionId =
|
||||
process.env["CONTAINERSERVICE_SUBSCRIPTION_ID"] ||
|
||||
"00000000-0000-0000-0000-000000000000";
|
||||
const resourceGroupName =
|
||||
process.env["CONTAINERSERVICE_RESOURCE_GROUP"] || "rg1";
|
||||
const resourceName = "clustername1";
|
||||
const agentPoolName = "agentpool1";
|
||||
const loadBalancerName = "kubernetes";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new ContainerServiceClient(credential, subscriptionId);
|
||||
const result = await client.agentPools.beginDeleteAndWait(
|
||||
const result = await client.loadBalancers.get(
|
||||
resourceGroupName,
|
||||
resourceName,
|
||||
agentPoolName,
|
||||
loadBalancerName,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
deleteAgentPool();
|
||||
getLoadBalancer();
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
|
@ -0,0 +1,46 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { ContainerServiceClient } from "@azure/arm-containerservice";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
import * as dotenv from "dotenv";
|
||||
|
||||
dotenv.config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Gets a list of load balancers in the specified managed cluster.
|
||||
*
|
||||
* @summary Gets a list of load balancers in the specified managed cluster.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/LoadBalancers_List.json
|
||||
*/
|
||||
async function listLoadBalancersByManagedCluster() {
|
||||
const subscriptionId =
|
||||
process.env["CONTAINERSERVICE_SUBSCRIPTION_ID"] ||
|
||||
"00000000-0000-0000-0000-000000000000";
|
||||
const resourceGroupName =
|
||||
process.env["CONTAINERSERVICE_RESOURCE_GROUP"] || "rg1";
|
||||
const resourceName = "clustername1";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new ContainerServiceClient(credential, subscriptionId);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.loadBalancers.listByManagedCluster(
|
||||
resourceGroupName,
|
||||
resourceName,
|
||||
)) {
|
||||
resArray.push(item);
|
||||
}
|
||||
console.log(resArray);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
listLoadBalancersByManagedCluster();
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
|
@ -0,0 +1,47 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { ContainerServiceClient } from "@azure/arm-containerservice";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
import * as dotenv from "dotenv";
|
||||
|
||||
dotenv.config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Get a specific machine in the specified agent pool.
|
||||
*
|
||||
* @summary Get a specific machine in the specified agent pool.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/MachineGet.json
|
||||
*/
|
||||
async function getAMachineInAnAgentPoolsByManagedCluster() {
|
||||
const subscriptionId =
|
||||
process.env["CONTAINERSERVICE_SUBSCRIPTION_ID"] ||
|
||||
"00000000-0000-0000-0000-000000000000";
|
||||
const resourceGroupName =
|
||||
process.env["CONTAINERSERVICE_RESOURCE_GROUP"] || "rg1";
|
||||
const resourceName = "clustername1";
|
||||
const agentPoolName = "agentpool1";
|
||||
const machineName = "aks-nodepool1-42263519-vmss00000t";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new ContainerServiceClient(credential, subscriptionId);
|
||||
const result = await client.machines.get(
|
||||
resourceGroupName,
|
||||
resourceName,
|
||||
agentPoolName,
|
||||
machineName,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
getAMachineInAnAgentPoolsByManagedCluster();
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
|
@ -0,0 +1,48 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { ContainerServiceClient } from "@azure/arm-containerservice";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
import * as dotenv from "dotenv";
|
||||
|
||||
dotenv.config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Gets a list of machines in the specified agent pool.
|
||||
*
|
||||
* @summary Gets a list of machines in the specified agent pool.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/MachineList.json
|
||||
*/
|
||||
async function listMachinesInAnAgentpoolByManagedCluster() {
|
||||
const subscriptionId =
|
||||
process.env["CONTAINERSERVICE_SUBSCRIPTION_ID"] ||
|
||||
"00000000-0000-0000-0000-000000000000";
|
||||
const resourceGroupName =
|
||||
process.env["CONTAINERSERVICE_RESOURCE_GROUP"] || "rg1";
|
||||
const resourceName = "clustername1";
|
||||
const agentPoolName = "agentpool1";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new ContainerServiceClient(credential, subscriptionId);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.machines.list(
|
||||
resourceGroupName,
|
||||
resourceName,
|
||||
agentPoolName,
|
||||
)) {
|
||||
resArray.push(item);
|
||||
}
|
||||
console.log(resArray);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
listMachinesInAnAgentpoolByManagedCluster();
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
|
@ -21,7 +21,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Creates or updates a maintenance configuration in the specified managed cluster.
|
||||
*
|
||||
* @summary Creates or updates a maintenance configuration in the specified managed cluster.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/MaintenanceConfigurationsCreate_Update.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/MaintenanceConfigurationsCreate_Update.json
|
||||
*/
|
||||
async function createOrUpdateMaintenanceConfiguration() {
|
||||
const subscriptionId =
|
||||
|
@ -55,7 +55,7 @@ async function createOrUpdateMaintenanceConfiguration() {
|
|||
* This sample demonstrates how to Creates or updates a maintenance configuration in the specified managed cluster.
|
||||
*
|
||||
* @summary Creates or updates a maintenance configuration in the specified managed cluster.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/MaintenanceConfigurationsCreate_Update_MaintenanceWindow.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/MaintenanceConfigurationsCreate_Update_MaintenanceWindow.json
|
||||
*/
|
||||
async function createOrUpdateMaintenanceConfigurationWithMaintenanceWindow() {
|
||||
const subscriptionId =
|
||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Deletes a maintenance configuration.
|
||||
*
|
||||
* @summary Deletes a maintenance configuration.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/MaintenanceConfigurationsDelete.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/MaintenanceConfigurationsDelete.json
|
||||
*/
|
||||
async function deleteMaintenanceConfiguration() {
|
||||
const subscriptionId =
|
||||
|
@ -42,7 +42,7 @@ async function deleteMaintenanceConfiguration() {
|
|||
* This sample demonstrates how to Deletes a maintenance configuration.
|
||||
*
|
||||
* @summary Deletes a maintenance configuration.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/MaintenanceConfigurationsDelete_MaintenanceWindow.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/MaintenanceConfigurationsDelete_MaintenanceWindow.json
|
||||
*/
|
||||
async function deleteMaintenanceConfigurationForNodeOSUpgrade() {
|
||||
const subscriptionId =
|
||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Gets the specified maintenance configuration of a managed cluster.
|
||||
*
|
||||
* @summary Gets the specified maintenance configuration of a managed cluster.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/MaintenanceConfigurationsGet.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/MaintenanceConfigurationsGet.json
|
||||
*/
|
||||
async function getMaintenanceConfiguration() {
|
||||
const subscriptionId =
|
||||
|
@ -42,7 +42,7 @@ async function getMaintenanceConfiguration() {
|
|||
* This sample demonstrates how to Gets the specified maintenance configuration of a managed cluster.
|
||||
*
|
||||
* @summary Gets the specified maintenance configuration of a managed cluster.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/MaintenanceConfigurationsGet_MaintenanceWindow.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/MaintenanceConfigurationsGet_MaintenanceWindow.json
|
||||
*/
|
||||
async function getMaintenanceConfigurationConfiguredWithMaintenanceWindow() {
|
||||
const subscriptionId =
|
||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Gets a list of maintenance configurations in the specified managed cluster.
|
||||
*
|
||||
* @summary Gets a list of maintenance configurations in the specified managed cluster.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/MaintenanceConfigurationsList.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/MaintenanceConfigurationsList.json
|
||||
*/
|
||||
async function listMaintenanceConfigurationsByManagedCluster() {
|
||||
const subscriptionId =
|
||||
|
@ -43,7 +43,7 @@ async function listMaintenanceConfigurationsByManagedCluster() {
|
|||
* This sample demonstrates how to Gets a list of maintenance configurations in the specified managed cluster.
|
||||
*
|
||||
* @summary Gets a list of maintenance configurations in the specified managed cluster.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/MaintenanceConfigurationsList_MaintenanceWindow.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/MaintenanceConfigurationsList_MaintenanceWindow.json
|
||||
*/
|
||||
async function listMaintenanceConfigurationsConfiguredWithMaintenanceWindowByManagedCluster() {
|
||||
const subscriptionId =
|
||||
|
|
|
@ -0,0 +1,55 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import {
|
||||
ManagedClusterSnapshot,
|
||||
ContainerServiceClient,
|
||||
} from "@azure/arm-containerservice";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
import * as dotenv from "dotenv";
|
||||
|
||||
dotenv.config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Creates or updates a managed cluster snapshot.
|
||||
*
|
||||
* @summary Creates or updates a managed cluster snapshot.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/ManagedClusterSnapshotsCreate.json
|
||||
*/
|
||||
async function createOrUpdateManagedClusterSnapshot() {
|
||||
const subscriptionId =
|
||||
process.env["CONTAINERSERVICE_SUBSCRIPTION_ID"] ||
|
||||
"00000000-0000-0000-0000-000000000000";
|
||||
const resourceGroupName =
|
||||
process.env["CONTAINERSERVICE_RESOURCE_GROUP"] || "rg1";
|
||||
const resourceName = "snapshot1";
|
||||
const parameters: ManagedClusterSnapshot = {
|
||||
creationData: {
|
||||
sourceResourceId:
|
||||
"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/cluster1",
|
||||
},
|
||||
location: "westus",
|
||||
tags: { key1: "val1", key2: "val2" },
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new ContainerServiceClient(credential, subscriptionId);
|
||||
const result = await client.managedClusterSnapshots.createOrUpdate(
|
||||
resourceGroupName,
|
||||
resourceName,
|
||||
parameters,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
createOrUpdateManagedClusterSnapshot();
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
|
@ -0,0 +1,43 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { ContainerServiceClient } from "@azure/arm-containerservice";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
import * as dotenv from "dotenv";
|
||||
|
||||
dotenv.config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Deletes a managed cluster snapshot.
|
||||
*
|
||||
* @summary Deletes a managed cluster snapshot.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/ManagedClusterSnapshotsDelete.json
|
||||
*/
|
||||
async function deleteManagedClusterSnapshot() {
|
||||
const subscriptionId =
|
||||
process.env["CONTAINERSERVICE_SUBSCRIPTION_ID"] ||
|
||||
"00000000-0000-0000-0000-000000000000";
|
||||
const resourceGroupName =
|
||||
process.env["CONTAINERSERVICE_RESOURCE_GROUP"] || "rg1";
|
||||
const resourceName = "snapshot1";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new ContainerServiceClient(credential, subscriptionId);
|
||||
const result = await client.managedClusterSnapshots.delete(
|
||||
resourceGroupName,
|
||||
resourceName,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
deleteManagedClusterSnapshot();
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
|
@ -0,0 +1,43 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { ContainerServiceClient } from "@azure/arm-containerservice";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
import * as dotenv from "dotenv";
|
||||
|
||||
dotenv.config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Gets a managed cluster snapshot.
|
||||
*
|
||||
* @summary Gets a managed cluster snapshot.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/ManagedClusterSnapshotsGet.json
|
||||
*/
|
||||
async function getManagedClusterSnapshot() {
|
||||
const subscriptionId =
|
||||
process.env["CONTAINERSERVICE_SUBSCRIPTION_ID"] ||
|
||||
"00000000-0000-0000-0000-000000000000";
|
||||
const resourceGroupName =
|
||||
process.env["CONTAINERSERVICE_RESOURCE_GROUP"] || "rg1";
|
||||
const resourceName = "snapshot1";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new ContainerServiceClient(credential, subscriptionId);
|
||||
const result = await client.managedClusterSnapshots.get(
|
||||
resourceGroupName,
|
||||
resourceName,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
getManagedClusterSnapshot();
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
|
@ -0,0 +1,44 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { ContainerServiceClient } from "@azure/arm-containerservice";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
import * as dotenv from "dotenv";
|
||||
|
||||
dotenv.config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Lists managed cluster snapshots in the specified subscription and resource group.
|
||||
*
|
||||
* @summary Lists managed cluster snapshots in the specified subscription and resource group.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/ManagedClusterSnapshotsListByResourceGroup.json
|
||||
*/
|
||||
async function listManagedClusterSnapshotsByResourceGroup() {
|
||||
const subscriptionId =
|
||||
process.env["CONTAINERSERVICE_SUBSCRIPTION_ID"] ||
|
||||
"00000000-0000-0000-0000-000000000000";
|
||||
const resourceGroupName =
|
||||
process.env["CONTAINERSERVICE_RESOURCE_GROUP"] || "rg1";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new ContainerServiceClient(credential, subscriptionId);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.managedClusterSnapshots.listByResourceGroup(
|
||||
resourceGroupName,
|
||||
)) {
|
||||
resArray.push(item);
|
||||
}
|
||||
console.log(resArray);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
listManagedClusterSnapshotsByResourceGroup();
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
|
@ -0,0 +1,40 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { ContainerServiceClient } from "@azure/arm-containerservice";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
import * as dotenv from "dotenv";
|
||||
|
||||
dotenv.config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Gets a list of managed cluster snapshots in the specified subscription.
|
||||
*
|
||||
* @summary Gets a list of managed cluster snapshots in the specified subscription.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/ManagedClusterSnapshotsList.json
|
||||
*/
|
||||
async function listManagedClusterSnapshots() {
|
||||
const subscriptionId =
|
||||
process.env["CONTAINERSERVICE_SUBSCRIPTION_ID"] ||
|
||||
"00000000-0000-0000-0000-000000000000";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new ContainerServiceClient(credential, subscriptionId);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.managedClusterSnapshots.list()) {
|
||||
resArray.push(item);
|
||||
}
|
||||
console.log(resArray);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
listManagedClusterSnapshots();
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
|
@ -0,0 +1,48 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import {
|
||||
TagsObject,
|
||||
ContainerServiceClient,
|
||||
} from "@azure/arm-containerservice";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
import * as dotenv from "dotenv";
|
||||
|
||||
dotenv.config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Updates tags on a managed cluster snapshot.
|
||||
*
|
||||
* @summary Updates tags on a managed cluster snapshot.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/ManagedClusterSnapshotsUpdateTags.json
|
||||
*/
|
||||
async function updateManagedClusterSnapshotTags() {
|
||||
const subscriptionId =
|
||||
process.env["CONTAINERSERVICE_SUBSCRIPTION_ID"] ||
|
||||
"00000000-0000-0000-0000-000000000000";
|
||||
const resourceGroupName =
|
||||
process.env["CONTAINERSERVICE_RESOURCE_GROUP"] || "rg1";
|
||||
const resourceName = "snapshot1";
|
||||
const parameters: TagsObject = { tags: { key2: "new-val2", key3: "val3" } };
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new ContainerServiceClient(credential, subscriptionId);
|
||||
const result = await client.managedClusterSnapshots.updateTags(
|
||||
resourceGroupName,
|
||||
resourceName,
|
||||
parameters,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
updateManagedClusterSnapshotTags();
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
|
@ -15,10 +15,10 @@ import * as dotenv from "dotenv";
|
|||
dotenv.config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Aborts the currently running operation on the managed cluster. The Managed Cluster will be moved to a Canceling state and eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can take place, a 409 error code is returned.
|
||||
* This sample demonstrates how to Aborts the currently running operation on the managed cluster. The Managed Cluster will be moved to a Canceling state and eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can take place, an error is returned.
|
||||
*
|
||||
* @summary Aborts the currently running operation on the managed cluster. The Managed Cluster will be moved to a Canceling state and eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can take place, a 409 error code is returned.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ManagedClustersAbortOperation.json
|
||||
* @summary Aborts the currently running operation on the managed cluster. The Managed Cluster will be moved to a Canceling state and eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can take place, an error is returned.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/ManagedClustersAbortOperation.json
|
||||
*/
|
||||
async function abortOperationOnManagedCluster() {
|
||||
const subscriptionId =
|
||||
|
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -18,7 +18,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Deletes a managed cluster.
|
||||
*
|
||||
* @summary Deletes a managed cluster.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ManagedClustersDelete.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/ManagedClustersDelete.json
|
||||
*/
|
||||
async function deleteManagedCluster() {
|
||||
const subscriptionId =
|
||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to **WARNING**: This API will be deprecated. Instead use [ListClusterUserCredentials](https://docs.microsoft.com/rest/api/aks/managedclusters/listclusterusercredentials) or [ListClusterAdminCredentials](https://docs.microsoft.com/rest/api/aks/managedclusters/listclusteradmincredentials) .
|
||||
*
|
||||
* @summary **WARNING**: This API will be deprecated. Instead use [ListClusterUserCredentials](https://docs.microsoft.com/rest/api/aks/managedclusters/listclusterusercredentials) or [ListClusterAdminCredentials](https://docs.microsoft.com/rest/api/aks/managedclusters/listclusteradmincredentials) .
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ManagedClustersGetAccessProfile.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/ManagedClustersGetAccessProfile.json
|
||||
*/
|
||||
async function getManagedCluster() {
|
||||
const subscriptionId =
|
||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Gets the results of a command which has been run on the Managed Cluster.
|
||||
*
|
||||
* @summary Gets the results of a command which has been run on the Managed Cluster.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/RunCommandResultFailed.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/RunCommandResultFailed.json
|
||||
*/
|
||||
async function commandFailedResult() {
|
||||
const subscriptionId =
|
||||
|
@ -42,7 +42,7 @@ async function commandFailedResult() {
|
|||
* This sample demonstrates how to Gets the results of a command which has been run on the Managed Cluster.
|
||||
*
|
||||
* @summary Gets the results of a command which has been run on the Managed Cluster.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/RunCommandResultSucceed.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/RunCommandResultSucceed.json
|
||||
*/
|
||||
async function commandSucceedResult() {
|
||||
const subscriptionId =
|
||||
|
|
|
@ -0,0 +1,42 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { ContainerServiceClient } from "@azure/arm-containerservice";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
import * as dotenv from "dotenv";
|
||||
|
||||
dotenv.config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Contains Guardrails version along with its support info and whether it is a default version.
|
||||
*
|
||||
* @summary Contains Guardrails version along with its support info and whether it is a default version.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/GetGuardrailsVersions.json
|
||||
*/
|
||||
async function getGuardrailsAvailableVersions() {
|
||||
const subscriptionId =
|
||||
process.env["CONTAINERSERVICE_SUBSCRIPTION_ID"] ||
|
||||
"00000000-0000-0000-0000-000000000000";
|
||||
const location = "location1";
|
||||
const version = "v1.0.0";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new ContainerServiceClient(credential, subscriptionId);
|
||||
const result = await client.managedClusters.getGuardrailsVersions(
|
||||
location,
|
||||
version,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
getGuardrailsAvailableVersions();
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Contains extra metadata on the revision, including supported revisions, cluster compatibility and available upgrades
|
||||
*
|
||||
* @summary Contains extra metadata on the revision, including supported revisions, cluster compatibility and available upgrades
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ManagedClustersGet_MeshRevisionProfile.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/ManagedClustersGet_MeshRevisionProfile.json
|
||||
*/
|
||||
async function getAMeshRevisionProfileForAMeshMode() {
|
||||
const subscriptionId =
|
||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Gets available upgrades for a service mesh in a cluster.
|
||||
*
|
||||
* @summary Gets available upgrades for a service mesh in a cluster.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ManagedClustersGet_MeshUpgradeProfile.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/ManagedClustersGet_MeshUpgradeProfile.json
|
||||
*/
|
||||
async function getsVersionCompatibilityAndUpgradeProfileForAServiceMeshInACluster() {
|
||||
const subscriptionId =
|
||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Gets supported OS options in the specified subscription.
|
||||
*
|
||||
* @summary Gets supported OS options in the specified subscription.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ContainerServiceGetOSOptions.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/ContainerServiceGetOSOptions.json
|
||||
*/
|
||||
async function getContainerServiceOSOptions() {
|
||||
const subscriptionId =
|
||||
|
|
|
@ -0,0 +1,42 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { ContainerServiceClient } from "@azure/arm-containerservice";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
import * as dotenv from "dotenv";
|
||||
|
||||
dotenv.config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Contains Safeguards version along with its support info and whether it is a default version.
|
||||
*
|
||||
* @summary Contains Safeguards version along with its support info and whether it is a default version.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/GetSafeguardsVersions.json
|
||||
*/
|
||||
async function getSafeguardsAvailableVersions() {
|
||||
const subscriptionId =
|
||||
process.env["CONTAINERSERVICE_SUBSCRIPTION_ID"] ||
|
||||
"00000000-0000-0000-0000-000000000000";
|
||||
const location = "location1";
|
||||
const version = "v1.0.0";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new ContainerServiceClient(credential, subscriptionId);
|
||||
const result = await client.managedClusters.getSafeguardsVersions(
|
||||
location,
|
||||
version,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
getSafeguardsAvailableVersions();
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Gets a managed cluster.
|
||||
*
|
||||
* @summary Gets a managed cluster.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ManagedClustersGet.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/ManagedClustersGet.json
|
||||
*/
|
||||
async function getManagedCluster() {
|
||||
const subscriptionId =
|
||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Gets the upgrade profile of a managed cluster.
|
||||
*
|
||||
* @summary Gets the upgrade profile of a managed cluster.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ManagedClustersGetUpgradeProfile.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/ManagedClustersGetUpgradeProfile.json
|
||||
*/
|
||||
async function getUpgradeProfileForManagedCluster() {
|
||||
const subscriptionId =
|
||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Lists managed clusters in the specified subscription and resource group.
|
||||
*
|
||||
* @summary Lists managed clusters in the specified subscription and resource group.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ManagedClustersListByResourceGroup.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/ManagedClustersListByResourceGroup.json
|
||||
*/
|
||||
async function getManagedClustersByResourceGroup() {
|
||||
const subscriptionId =
|
||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Lists the admin credentials of a managed cluster.
|
||||
*
|
||||
* @summary Lists the admin credentials of a managed cluster.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ManagedClustersListClusterAdminCredentials.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/ManagedClustersListClusterCredentialResult.json
|
||||
*/
|
||||
async function getManagedCluster() {
|
||||
const subscriptionId =
|
||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Lists the cluster monitoring user credentials of a managed cluster.
|
||||
*
|
||||
* @summary Lists the cluster monitoring user credentials of a managed cluster.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ManagedClustersListClusterMonitoringUserCredentials.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/ManagedClustersListClusterCredentialResult.json
|
||||
*/
|
||||
async function getManagedCluster() {
|
||||
const subscriptionId =
|
||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Lists the user credentials of a managed cluster.
|
||||
*
|
||||
* @summary Lists the user credentials of a managed cluster.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ManagedClustersListClusterUserCredentials.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/ManagedClustersListClusterCredentialResult.json
|
||||
*/
|
||||
async function getManagedCluster() {
|
||||
const subscriptionId =
|
||||
|
|
|
@ -0,0 +1,43 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { ContainerServiceClient } from "@azure/arm-containerservice";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
import * as dotenv from "dotenv";
|
||||
|
||||
dotenv.config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Contains list of Guardrails version along with its support info and whether it is a default version.
|
||||
*
|
||||
* @summary Contains list of Guardrails version along with its support info and whether it is a default version.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/ListGuardrailsVersions.json
|
||||
*/
|
||||
async function listGuardrailsVersions() {
|
||||
const subscriptionId =
|
||||
process.env["CONTAINERSERVICE_SUBSCRIPTION_ID"] ||
|
||||
"00000000-0000-0000-0000-000000000000";
|
||||
const location = "location1";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new ContainerServiceClient(credential, subscriptionId);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.managedClusters.listGuardrailsVersions(
|
||||
location,
|
||||
)) {
|
||||
resArray.push(item);
|
||||
}
|
||||
console.log(resArray);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
listGuardrailsVersions();
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Contains extra metadata on the version, including supported patch versions, capabilities, available upgrades, and details on preview status of the version
|
||||
*
|
||||
* @summary Contains extra metadata on the version, including supported patch versions, capabilities, available upgrades, and details on preview status of the version
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/KubernetesVersions_List.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/KubernetesVersions_List.json
|
||||
*/
|
||||
async function listKubernetesVersions() {
|
||||
const subscriptionId =
|
||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Contains extra metadata on each revision, including supported revisions, cluster compatibility and available upgrades
|
||||
*
|
||||
* @summary Contains extra metadata on each revision, including supported revisions, cluster compatibility and available upgrades
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ManagedClustersList_MeshRevisionProfiles.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/ManagedClustersList_MeshRevisionProfiles.json
|
||||
*/
|
||||
async function listMeshRevisionProfilesInALocation() {
|
||||
const subscriptionId =
|
||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Lists available upgrades for all service meshes in a specific cluster.
|
||||
*
|
||||
* @summary Lists available upgrades for all service meshes in a specific cluster.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ManagedClustersList_MeshUpgradeProfiles.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/ManagedClustersList_MeshUpgradeProfiles.json
|
||||
*/
|
||||
async function listsVersionCompatibilityAndUpgradeProfileForAllServiceMeshesInACluster() {
|
||||
const subscriptionId =
|
||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Gets a list of egress endpoints (network endpoints of all outbound dependencies) in the specified managed cluster. The operation returns properties of each egress endpoint.
|
||||
*
|
||||
* @summary Gets a list of egress endpoints (network endpoints of all outbound dependencies) in the specified managed cluster. The operation returns properties of each egress endpoint.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/OutboundNetworkDependenciesEndpointsList.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/OutboundNetworkDependenciesEndpointsList.json
|
||||
*/
|
||||
async function listOutboundNetworkDependenciesEndpointsByManagedCluster() {
|
||||
const subscriptionId =
|
||||
|
|
|
@ -0,0 +1,43 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { ContainerServiceClient } from "@azure/arm-containerservice";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
import * as dotenv from "dotenv";
|
||||
|
||||
dotenv.config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Contains list of Safeguards version along with its support info and whether it is a default version.
|
||||
*
|
||||
* @summary Contains list of Safeguards version along with its support info and whether it is a default version.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/ListSafeguardsVersions.json
|
||||
*/
|
||||
async function listSafeguardsVersions() {
|
||||
const subscriptionId =
|
||||
process.env["CONTAINERSERVICE_SUBSCRIPTION_ID"] ||
|
||||
"00000000-0000-0000-0000-000000000000";
|
||||
const location = "location1";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new ContainerServiceClient(credential, subscriptionId);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.managedClusters.listSafeguardsVersions(
|
||||
location,
|
||||
)) {
|
||||
resArray.push(item);
|
||||
}
|
||||
console.log(resArray);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
listSafeguardsVersions();
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Gets a list of managed clusters in the specified subscription.
|
||||
*
|
||||
* @summary Gets a list of managed clusters in the specified subscription.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ManagedClustersList.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/ManagedClustersList.json
|
||||
*/
|
||||
async function listManagedClusters() {
|
||||
const subscriptionId =
|
||||
|
|
|
@ -0,0 +1,51 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import {
|
||||
RebalanceLoadBalancersRequestBody,
|
||||
ContainerServiceClient,
|
||||
} from "@azure/arm-containerservice";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
import * as dotenv from "dotenv";
|
||||
|
||||
dotenv.config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Rebalance nodes across specific load balancers.
|
||||
*
|
||||
* @summary Rebalance nodes across specific load balancers.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/LoadBalancers_Rebalance.json
|
||||
*/
|
||||
async function listAgentPoolsByManagedCluster() {
|
||||
const subscriptionId =
|
||||
process.env["CONTAINERSERVICE_SUBSCRIPTION_ID"] ||
|
||||
"00000000-0000-0000-0000-000000000000";
|
||||
const resourceGroupName =
|
||||
process.env["CONTAINERSERVICE_RESOURCE_GROUP"] || "rg1";
|
||||
const resourceName = "clustername1";
|
||||
const parameters: RebalanceLoadBalancersRequestBody = {
|
||||
loadBalancerNames: ["kubernetes"],
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new ContainerServiceClient(credential, subscriptionId);
|
||||
const result =
|
||||
await client.managedClusters.beginRebalanceLoadBalancersAndWait(
|
||||
resourceGroupName,
|
||||
resourceName,
|
||||
parameters,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
listAgentPoolsByManagedCluster();
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
|
@ -21,7 +21,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to **WARNING**: This API will be deprecated. Please see [AKS-managed Azure Active Directory integration](https://aka.ms/aks-managed-aad) to update your cluster with AKS-managed Azure AD.
|
||||
*
|
||||
* @summary **WARNING**: This API will be deprecated. Please see [AKS-managed Azure Active Directory integration](https://aka.ms/aks-managed-aad) to update your cluster with AKS-managed Azure AD.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ManagedClustersResetAADProfile.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/ManagedClustersResetAADProfile.json
|
||||
*/
|
||||
async function resetAadProfile() {
|
||||
const subscriptionId =
|
||||
|
|
|
@ -21,7 +21,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to This action cannot be performed on a cluster that is not using a service principal
|
||||
*
|
||||
* @summary This action cannot be performed on a cluster that is not using a service principal
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ManagedClustersResetServicePrincipalProfile.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/ManagedClustersResetServicePrincipalProfile.json
|
||||
*/
|
||||
async function resetServicePrincipalProfile() {
|
||||
const subscriptionId =
|
||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to See [Certificate rotation](https://docs.microsoft.com/azure/aks/certificate-rotation) for more details about rotating managed cluster certificates.
|
||||
*
|
||||
* @summary See [Certificate rotation](https://docs.microsoft.com/azure/aks/certificate-rotation) for more details about rotating managed cluster certificates.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ManagedClustersRotateClusterCertificates.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/ManagedClustersRotateClusterCertificates.json
|
||||
*/
|
||||
async function rotateClusterCertificates() {
|
||||
const subscriptionId =
|
||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Rotates the service account signing keys of a managed cluster.
|
||||
*
|
||||
* @summary Rotates the service account signing keys of a managed cluster.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ManagedClustersRotateServiceAccountSigningKeys.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/ManagedClustersRotateServiceAccountSigningKeys.json
|
||||
*/
|
||||
async function rotateClusterServiceAccountSigningKeys() {
|
||||
const subscriptionId =
|
||||
|
|
|
@ -21,7 +21,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to AKS will create a pod to run the command. This is primarily useful for private clusters. For more information see [AKS Run Command](https://docs.microsoft.com/azure/aks/private-clusters#aks-run-command-preview).
|
||||
*
|
||||
* @summary AKS will create a pod to run the command. This is primarily useful for private clusters. For more information see [AKS Run Command](https://docs.microsoft.com/azure/aks/private-clusters#aks-run-command-preview).
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/RunCommandRequest.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/RunCommandRequest.json
|
||||
*/
|
||||
async function submitNewCommand() {
|
||||
const subscriptionId =
|
||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to See [starting a cluster](https://docs.microsoft.com/azure/aks/start-stop-cluster) for more details about starting a cluster.
|
||||
*
|
||||
* @summary See [starting a cluster](https://docs.microsoft.com/azure/aks/start-stop-cluster) for more details about starting a cluster.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ManagedClustersStart.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/ManagedClustersStart.json
|
||||
*/
|
||||
async function startManagedCluster() {
|
||||
const subscriptionId =
|
||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to This can only be performed on Azure Virtual Machine Scale set backed clusters. Stopping a cluster stops the control plane and agent nodes entirely, while maintaining all object and cluster state. A cluster does not accrue charges while it is stopped. See [stopping a cluster](https://docs.microsoft.com/azure/aks/start-stop-cluster) for more details about stopping a cluster.
|
||||
*
|
||||
* @summary This can only be performed on Azure Virtual Machine Scale set backed clusters. Stopping a cluster stops the control plane and agent nodes entirely, while maintaining all object and cluster state. A cluster does not accrue charges while it is stopped. See [stopping a cluster](https://docs.microsoft.com/azure/aks/start-stop-cluster) for more details about stopping a cluster.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ManagedClustersStop.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/ManagedClustersStop.json
|
||||
*/
|
||||
async function stopManagedCluster() {
|
||||
const subscriptionId =
|
||||
|
|
|
@ -21,7 +21,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Updates tags on a managed cluster.
|
||||
*
|
||||
* @summary Updates tags on a managed cluster.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ManagedClustersUpdateTags.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/ManagedClustersUpdateTags.json
|
||||
*/
|
||||
async function updateManagedClusterTags() {
|
||||
const subscriptionId =
|
||||
|
|
|
@ -0,0 +1,47 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { ContainerServiceClient } from "@azure/arm-containerservice";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
import * as dotenv from "dotenv";
|
||||
|
||||
dotenv.config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Get the status of a specific operation in the specified agent pool.
|
||||
*
|
||||
* @summary Get the status of a specific operation in the specified agent pool.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/OperationStatusResultGetByAgentPool.json
|
||||
*/
|
||||
async function getOperationStatusResult() {
|
||||
const subscriptionId =
|
||||
process.env["CONTAINERSERVICE_SUBSCRIPTION_ID"] ||
|
||||
"00000000-0000-0000-0000-000000000000";
|
||||
const resourceGroupName =
|
||||
process.env["CONTAINERSERVICE_RESOURCE_GROUP"] || "rg1";
|
||||
const resourceName = "clustername1";
|
||||
const agentPoolName = "agentpool1";
|
||||
const operationId = "00000000-0000-0000-0000-000000000001";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new ContainerServiceClient(credential, subscriptionId);
|
||||
const result = await client.operationStatusResultOperations.getByAgentPool(
|
||||
resourceGroupName,
|
||||
resourceName,
|
||||
agentPoolName,
|
||||
operationId,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
getOperationStatusResult();
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
|
@ -0,0 +1,45 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { ContainerServiceClient } from "@azure/arm-containerservice";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
import * as dotenv from "dotenv";
|
||||
|
||||
dotenv.config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Get the status of a specific operation in the specified managed cluster.
|
||||
*
|
||||
* @summary Get the status of a specific operation in the specified managed cluster.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/OperationStatusResultGet.json
|
||||
*/
|
||||
async function getOperationStatusResult() {
|
||||
const subscriptionId =
|
||||
process.env["CONTAINERSERVICE_SUBSCRIPTION_ID"] ||
|
||||
"00000000-0000-0000-0000-000000000000";
|
||||
const resourceGroupName =
|
||||
process.env["CONTAINERSERVICE_RESOURCE_GROUP"] || "rg1";
|
||||
const resourceName = "clustername1";
|
||||
const operationId = "00000000-0000-0000-0000-000000000001";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new ContainerServiceClient(credential, subscriptionId);
|
||||
const result = await client.operationStatusResultOperations.get(
|
||||
resourceGroupName,
|
||||
resourceName,
|
||||
operationId,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
getOperationStatusResult();
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
|
@ -0,0 +1,46 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { ContainerServiceClient } from "@azure/arm-containerservice";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
import * as dotenv from "dotenv";
|
||||
|
||||
dotenv.config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Gets a list of operations in the specified managedCluster
|
||||
*
|
||||
* @summary Gets a list of operations in the specified managedCluster
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/OperationStatusResultList.json
|
||||
*/
|
||||
async function listOfOperationStatusResult() {
|
||||
const subscriptionId =
|
||||
process.env["CONTAINERSERVICE_SUBSCRIPTION_ID"] ||
|
||||
"00000000-0000-0000-0000-000000000000";
|
||||
const resourceGroupName =
|
||||
process.env["CONTAINERSERVICE_RESOURCE_GROUP"] || "rg1";
|
||||
const resourceName = "clustername1";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new ContainerServiceClient(credential, subscriptionId);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.operationStatusResultOperations.list(
|
||||
resourceGroupName,
|
||||
resourceName,
|
||||
)) {
|
||||
resArray.push(item);
|
||||
}
|
||||
console.log(resArray);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
listOfOperationStatusResult();
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Gets a list of operations.
|
||||
*
|
||||
* @summary Gets a list of operations.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/Operation_List.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/Operation_List.json
|
||||
*/
|
||||
async function listAvailableOperationsForTheContainerServiceResourceProvider() {
|
||||
const subscriptionId =
|
||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Deletes a private endpoint connection.
|
||||
*
|
||||
* @summary Deletes a private endpoint connection.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/PrivateEndpointConnectionsDelete.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/PrivateEndpointConnectionsDelete.json
|
||||
*/
|
||||
async function deletePrivateEndpointConnection() {
|
||||
const subscriptionId =
|
||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to To learn more about private clusters, see: https://docs.microsoft.com/azure/aks/private-clusters
|
||||
*
|
||||
* @summary To learn more about private clusters, see: https://docs.microsoft.com/azure/aks/private-clusters
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/PrivateEndpointConnectionsGet.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/PrivateEndpointConnectionsGet.json
|
||||
*/
|
||||
async function getPrivateEndpointConnection() {
|
||||
const subscriptionId =
|
||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to To learn more about private clusters, see: https://docs.microsoft.com/azure/aks/private-clusters
|
||||
*
|
||||
* @summary To learn more about private clusters, see: https://docs.microsoft.com/azure/aks/private-clusters
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/PrivateEndpointConnectionsList.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/PrivateEndpointConnectionsList.json
|
||||
*/
|
||||
async function listPrivateEndpointConnectionsByManagedCluster() {
|
||||
const subscriptionId =
|
||||
|
|
|
@ -21,7 +21,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Updates a private endpoint connection.
|
||||
*
|
||||
* @summary Updates a private endpoint connection.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/PrivateEndpointConnectionsUpdate.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/PrivateEndpointConnectionsUpdate.json
|
||||
*/
|
||||
async function updatePrivateEndpointConnection() {
|
||||
const subscriptionId =
|
||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to To learn more about private clusters, see: https://docs.microsoft.com/azure/aks/private-clusters
|
||||
*
|
||||
* @summary To learn more about private clusters, see: https://docs.microsoft.com/azure/aks/private-clusters
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/PrivateLinkResourcesList.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/PrivateLinkResourcesList.json
|
||||
*/
|
||||
async function listPrivateLinkResourcesByManagedCluster() {
|
||||
const subscriptionId =
|
||||
|
|
|
@ -21,7 +21,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Gets the private link service ID for the specified managed cluster.
|
||||
*
|
||||
* @summary Gets the private link service ID for the specified managed cluster.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ResolvePrivateLinkServiceId.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/ResolvePrivateLinkServiceId.json
|
||||
*/
|
||||
async function resolveThePrivateLinkServiceIdForManagedCluster() {
|
||||
const subscriptionId =
|
||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Creates or updates a snapshot.
|
||||
*
|
||||
* @summary Creates or updates a snapshot.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/SnapshotsCreate.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/SnapshotsCreate.json
|
||||
*/
|
||||
async function createOrUpdateSnapshot() {
|
||||
const subscriptionId =
|
||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Deletes a snapshot.
|
||||
*
|
||||
* @summary Deletes a snapshot.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/SnapshotsDelete.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/SnapshotsDelete.json
|
||||
*/
|
||||
async function deleteSnapshot() {
|
||||
const subscriptionId =
|
||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Gets a snapshot.
|
||||
*
|
||||
* @summary Gets a snapshot.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/SnapshotsGet.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/SnapshotsGet.json
|
||||
*/
|
||||
async function getSnapshot() {
|
||||
const subscriptionId =
|
||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Lists snapshots in the specified subscription and resource group.
|
||||
*
|
||||
* @summary Lists snapshots in the specified subscription and resource group.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/SnapshotsListByResourceGroup.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/SnapshotsListByResourceGroup.json
|
||||
*/
|
||||
async function listSnapshotsByResourceGroup() {
|
||||
const subscriptionId =
|
||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Gets a list of snapshots in the specified subscription.
|
||||
*
|
||||
* @summary Gets a list of snapshots in the specified subscription.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/SnapshotsList.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/SnapshotsList.json
|
||||
*/
|
||||
async function listSnapshots() {
|
||||
const subscriptionId =
|
||||
|
|
|
@ -21,7 +21,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Updates tags on a snapshot.
|
||||
*
|
||||
* @summary Updates tags on a snapshot.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/SnapshotsUpdateTags.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/SnapshotsUpdateTags.json
|
||||
*/
|
||||
async function updateSnapshotTags() {
|
||||
const subscriptionId =
|
||||
|
|
|
@ -21,7 +21,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Create or update a trusted access role binding
|
||||
*
|
||||
* @summary Create or update a trusted access role binding
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/TrustedAccessRoleBindings_CreateOrUpdate.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/TrustedAccessRoleBindings_CreateOrUpdate.json
|
||||
*/
|
||||
async function createOrUpdateATrustedAccessRoleBinding() {
|
||||
const subscriptionId =
|
||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Delete a trusted access role binding.
|
||||
*
|
||||
* @summary Delete a trusted access role binding.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/TrustedAccessRoleBindings_Delete.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/TrustedAccessRoleBindings_Delete.json
|
||||
*/
|
||||
async function deleteATrustedAccessRoleBinding() {
|
||||
const subscriptionId =
|
||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Get a trusted access role binding.
|
||||
*
|
||||
* @summary Get a trusted access role binding.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/TrustedAccessRoleBindings_Get.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/TrustedAccessRoleBindings_Get.json
|
||||
*/
|
||||
async function getATrustedAccessRoleBinding() {
|
||||
const subscriptionId =
|
||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to List trusted access role bindings.
|
||||
*
|
||||
* @summary List trusted access role bindings.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/TrustedAccessRoleBindings_List.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/TrustedAccessRoleBindings_List.json
|
||||
*/
|
||||
async function listTrustedAccessRoleBindings() {
|
||||
const subscriptionId =
|
||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to List supported trusted access roles.
|
||||
*
|
||||
* @summary List supported trusted access roles.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/TrustedAccessRoles_List.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/TrustedAccessRoles_List.json
|
||||
*/
|
||||
async function listTrustedAccessRoles() {
|
||||
const subscriptionId =
|
||||
|
|
|
@ -1,66 +1,87 @@
|
|||
# client library samples for JavaScript
|
||||
# client library samples for JavaScript (Beta)
|
||||
|
||||
These sample programs show how to use the JavaScript client libraries for in some common scenarios.
|
||||
|
||||
| **File Name** | **Description** |
|
||||
| --------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| [agentPoolsAbortLatestOperationSample.js][agentpoolsabortlatestoperationsample] | Aborts the currently running operation on the agent pool. The Agent Pool will be moved to a Canceling state and eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can take place, a 409 error code is returned. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/AgentPoolsAbortOperation.json |
|
||||
| [agentPoolsCreateOrUpdateSample.js][agentpoolscreateorupdatesample] | Creates or updates an agent pool in the specified managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/AgentPoolsCreate_Snapshot.json |
|
||||
| [agentPoolsDeleteSample.js][agentpoolsdeletesample] | Deletes an agent pool in the specified managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/AgentPoolsDelete.json |
|
||||
| [agentPoolsGetAvailableAgentPoolVersionsSample.js][agentpoolsgetavailableagentpoolversionssample] | See [supported Kubernetes versions](https://docs.microsoft.com/azure/aks/supported-kubernetes-versions) for more details about the version lifecycle. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/AgentPoolsGetAgentPoolAvailableVersions.json |
|
||||
| [agentPoolsGetSample.js][agentpoolsgetsample] | Gets the specified managed cluster agent pool. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/AgentPoolsGet.json |
|
||||
| [agentPoolsGetUpgradeProfileSample.js][agentpoolsgetupgradeprofilesample] | Gets the upgrade profile for an agent pool. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/AgentPoolsGetUpgradeProfile.json |
|
||||
| [agentPoolsListSample.js][agentpoolslistsample] | Gets a list of agent pools in the specified managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/AgentPoolsList.json |
|
||||
| [agentPoolsUpgradeNodeImageVersionSample.js][agentpoolsupgradenodeimageversionsample] | Upgrading the node image version of an agent pool applies the newest OS and runtime updates to the nodes. AKS provides one new image per week with the latest updates. For more details on node image versions, see: https://docs.microsoft.com/azure/aks/node-image-upgrade x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/AgentPoolsUpgradeNodeImageVersion.json |
|
||||
| [maintenanceConfigurationsCreateOrUpdateSample.js][maintenanceconfigurationscreateorupdatesample] | Creates or updates a maintenance configuration in the specified managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/MaintenanceConfigurationsCreate_Update.json |
|
||||
| [maintenanceConfigurationsDeleteSample.js][maintenanceconfigurationsdeletesample] | Deletes a maintenance configuration. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/MaintenanceConfigurationsDelete.json |
|
||||
| [maintenanceConfigurationsGetSample.js][maintenanceconfigurationsgetsample] | Gets the specified maintenance configuration of a managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/MaintenanceConfigurationsGet.json |
|
||||
| [maintenanceConfigurationsListByManagedClusterSample.js][maintenanceconfigurationslistbymanagedclustersample] | Gets a list of maintenance configurations in the specified managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/MaintenanceConfigurationsList.json |
|
||||
| [managedClustersAbortLatestOperationSample.js][managedclustersabortlatestoperationsample] | Aborts the currently running operation on the managed cluster. The Managed Cluster will be moved to a Canceling state and eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can take place, a 409 error code is returned. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ManagedClustersAbortOperation.json |
|
||||
| [managedClustersCreateOrUpdateSample.js][managedclusterscreateorupdatesample] | Creates or updates a managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ManagedClustersCreate_Snapshot.json |
|
||||
| [managedClustersDeleteSample.js][managedclustersdeletesample] | Deletes a managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ManagedClustersDelete.json |
|
||||
| [managedClustersGetAccessProfileSample.js][managedclustersgetaccessprofilesample] | **WARNING**: This API will be deprecated. Instead use [ListClusterUserCredentials](https://docs.microsoft.com/rest/api/aks/managedclusters/listclusterusercredentials) or [ListClusterAdminCredentials](https://docs.microsoft.com/rest/api/aks/managedclusters/listclusteradmincredentials) . x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ManagedClustersGetAccessProfile.json |
|
||||
| [managedClustersGetCommandResultSample.js][managedclustersgetcommandresultsample] | Gets the results of a command which has been run on the Managed Cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/RunCommandResultFailed.json |
|
||||
| [managedClustersGetMeshRevisionProfileSample.js][managedclustersgetmeshrevisionprofilesample] | Contains extra metadata on the revision, including supported revisions, cluster compatibility and available upgrades x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ManagedClustersGet_MeshRevisionProfile.json |
|
||||
| [managedClustersGetMeshUpgradeProfileSample.js][managedclustersgetmeshupgradeprofilesample] | Gets available upgrades for a service mesh in a cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ManagedClustersGet_MeshUpgradeProfile.json |
|
||||
| [managedClustersGetOSOptionsSample.js][managedclustersgetosoptionssample] | Gets supported OS options in the specified subscription. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ContainerServiceGetOSOptions.json |
|
||||
| [managedClustersGetSample.js][managedclustersgetsample] | Gets a managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ManagedClustersGet.json |
|
||||
| [managedClustersGetUpgradeProfileSample.js][managedclustersgetupgradeprofilesample] | Gets the upgrade profile of a managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ManagedClustersGetUpgradeProfile.json |
|
||||
| [managedClustersListByResourceGroupSample.js][managedclusterslistbyresourcegroupsample] | Lists managed clusters in the specified subscription and resource group. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ManagedClustersListByResourceGroup.json |
|
||||
| [managedClustersListClusterAdminCredentialsSample.js][managedclusterslistclusteradmincredentialssample] | Lists the admin credentials of a managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ManagedClustersListClusterAdminCredentials.json |
|
||||
| [managedClustersListClusterMonitoringUserCredentialsSample.js][managedclusterslistclustermonitoringusercredentialssample] | Lists the cluster monitoring user credentials of a managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ManagedClustersListClusterMonitoringUserCredentials.json |
|
||||
| [managedClustersListClusterUserCredentialsSample.js][managedclusterslistclusterusercredentialssample] | Lists the user credentials of a managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ManagedClustersListClusterUserCredentials.json |
|
||||
| [managedClustersListKubernetesVersionsSample.js][managedclusterslistkubernetesversionssample] | Contains extra metadata on the version, including supported patch versions, capabilities, available upgrades, and details on preview status of the version x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/KubernetesVersions_List.json |
|
||||
| [managedClustersListMeshRevisionProfilesSample.js][managedclusterslistmeshrevisionprofilessample] | Contains extra metadata on each revision, including supported revisions, cluster compatibility and available upgrades x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ManagedClustersList_MeshRevisionProfiles.json |
|
||||
| [managedClustersListMeshUpgradeProfilesSample.js][managedclusterslistmeshupgradeprofilessample] | Lists available upgrades for all service meshes in a specific cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ManagedClustersList_MeshUpgradeProfiles.json |
|
||||
| [managedClustersListOutboundNetworkDependenciesEndpointsSample.js][managedclusterslistoutboundnetworkdependenciesendpointssample] | Gets a list of egress endpoints (network endpoints of all outbound dependencies) in the specified managed cluster. The operation returns properties of each egress endpoint. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/OutboundNetworkDependenciesEndpointsList.json |
|
||||
| [managedClustersListSample.js][managedclusterslistsample] | Gets a list of managed clusters in the specified subscription. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ManagedClustersList.json |
|
||||
| [managedClustersResetAadProfileSample.js][managedclustersresetaadprofilesample] | **WARNING**: This API will be deprecated. Please see [AKS-managed Azure Active Directory integration](https://aka.ms/aks-managed-aad) to update your cluster with AKS-managed Azure AD. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ManagedClustersResetAADProfile.json |
|
||||
| [managedClustersResetServicePrincipalProfileSample.js][managedclustersresetserviceprincipalprofilesample] | This action cannot be performed on a cluster that is not using a service principal x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ManagedClustersResetServicePrincipalProfile.json |
|
||||
| [managedClustersRotateClusterCertificatesSample.js][managedclustersrotateclustercertificatessample] | See [Certificate rotation](https://docs.microsoft.com/azure/aks/certificate-rotation) for more details about rotating managed cluster certificates. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ManagedClustersRotateClusterCertificates.json |
|
||||
| [managedClustersRotateServiceAccountSigningKeysSample.js][managedclustersrotateserviceaccountsigningkeyssample] | Rotates the service account signing keys of a managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ManagedClustersRotateServiceAccountSigningKeys.json |
|
||||
| [managedClustersRunCommandSample.js][managedclustersruncommandsample] | AKS will create a pod to run the command. This is primarily useful for private clusters. For more information see [AKS Run Command](https://docs.microsoft.com/azure/aks/private-clusters#aks-run-command-preview). x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/RunCommandRequest.json |
|
||||
| [managedClustersStartSample.js][managedclustersstartsample] | See [starting a cluster](https://docs.microsoft.com/azure/aks/start-stop-cluster) for more details about starting a cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ManagedClustersStart.json |
|
||||
| [managedClustersStopSample.js][managedclustersstopsample] | This can only be performed on Azure Virtual Machine Scale set backed clusters. Stopping a cluster stops the control plane and agent nodes entirely, while maintaining all object and cluster state. A cluster does not accrue charges while it is stopped. See [stopping a cluster](https://docs.microsoft.com/azure/aks/start-stop-cluster) for more details about stopping a cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ManagedClustersStop.json |
|
||||
| [managedClustersUpdateTagsSample.js][managedclustersupdatetagssample] | Updates tags on a managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ManagedClustersUpdateTags.json |
|
||||
| [operationsListSample.js][operationslistsample] | Gets a list of operations. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/Operation_List.json |
|
||||
| [privateEndpointConnectionsDeleteSample.js][privateendpointconnectionsdeletesample] | Deletes a private endpoint connection. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/PrivateEndpointConnectionsDelete.json |
|
||||
| [privateEndpointConnectionsGetSample.js][privateendpointconnectionsgetsample] | To learn more about private clusters, see: https://docs.microsoft.com/azure/aks/private-clusters x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/PrivateEndpointConnectionsGet.json |
|
||||
| [privateEndpointConnectionsListSample.js][privateendpointconnectionslistsample] | To learn more about private clusters, see: https://docs.microsoft.com/azure/aks/private-clusters x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/PrivateEndpointConnectionsList.json |
|
||||
| [privateEndpointConnectionsUpdateSample.js][privateendpointconnectionsupdatesample] | Updates a private endpoint connection. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/PrivateEndpointConnectionsUpdate.json |
|
||||
| [privateLinkResourcesListSample.js][privatelinkresourceslistsample] | To learn more about private clusters, see: https://docs.microsoft.com/azure/aks/private-clusters x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/PrivateLinkResourcesList.json |
|
||||
| [resolvePrivateLinkServiceIdPostSample.js][resolveprivatelinkserviceidpostsample] | Gets the private link service ID for the specified managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ResolvePrivateLinkServiceId.json |
|
||||
| [snapshotsCreateOrUpdateSample.js][snapshotscreateorupdatesample] | Creates or updates a snapshot. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/SnapshotsCreate.json |
|
||||
| [snapshotsDeleteSample.js][snapshotsdeletesample] | Deletes a snapshot. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/SnapshotsDelete.json |
|
||||
| [snapshotsGetSample.js][snapshotsgetsample] | Gets a snapshot. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/SnapshotsGet.json |
|
||||
| [snapshotsListByResourceGroupSample.js][snapshotslistbyresourcegroupsample] | Lists snapshots in the specified subscription and resource group. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/SnapshotsListByResourceGroup.json |
|
||||
| [snapshotsListSample.js][snapshotslistsample] | Gets a list of snapshots in the specified subscription. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/SnapshotsList.json |
|
||||
| [snapshotsUpdateTagsSample.js][snapshotsupdatetagssample] | Updates tags on a snapshot. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/SnapshotsUpdateTags.json |
|
||||
| [trustedAccessRoleBindingsCreateOrUpdateSample.js][trustedaccessrolebindingscreateorupdatesample] | Create or update a trusted access role binding x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/TrustedAccessRoleBindings_CreateOrUpdate.json |
|
||||
| [trustedAccessRoleBindingsDeleteSample.js][trustedaccessrolebindingsdeletesample] | Delete a trusted access role binding. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/TrustedAccessRoleBindings_Delete.json |
|
||||
| [trustedAccessRoleBindingsGetSample.js][trustedaccessrolebindingsgetsample] | Get a trusted access role binding. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/TrustedAccessRoleBindings_Get.json |
|
||||
| [trustedAccessRoleBindingsListSample.js][trustedaccessrolebindingslistsample] | List trusted access role bindings. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/TrustedAccessRoleBindings_List.json |
|
||||
| [trustedAccessRolesListSample.js][trustedaccessroleslistsample] | List supported trusted access roles. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/TrustedAccessRoles_List.json |
|
||||
| **File Name** | **Description** |
|
||||
| --------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| [agentPoolsAbortLatestOperationSample.js][agentpoolsabortlatestoperationsample] | Aborts the currently running operation on the agent pool. The Agent Pool will be moved to a Canceling state and eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can take place, an error is returned. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/AgentPoolsAbortOperation.json |
|
||||
| [agentPoolsCreateOrUpdateSample.js][agentpoolscreateorupdatesample] | Creates or updates an agent pool in the specified managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/AgentPoolsAssociate_CRG.json |
|
||||
| [agentPoolsDeleteMachinesSample.js][agentpoolsdeletemachinessample] | Deletes specific machines in an agent pool. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/AgentPoolsDeleteMachines.json |
|
||||
| [agentPoolsDeleteSample.js][agentpoolsdeletesample] | Deletes an agent pool in the specified managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/AgentPoolsDelete.json |
|
||||
| [agentPoolsGetAvailableAgentPoolVersionsSample.js][agentpoolsgetavailableagentpoolversionssample] | See [supported Kubernetes versions](https://docs.microsoft.com/azure/aks/supported-kubernetes-versions) for more details about the version lifecycle. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/AgentPoolsGetAgentPoolAvailableVersions.json |
|
||||
| [agentPoolsGetSample.js][agentpoolsgetsample] | Gets the specified managed cluster agent pool. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/AgentPoolsGet.json |
|
||||
| [agentPoolsGetUpgradeProfileSample.js][agentpoolsgetupgradeprofilesample] | Gets the upgrade profile for an agent pool. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/AgentPoolsGetUpgradeProfile.json |
|
||||
| [agentPoolsListSample.js][agentpoolslistsample] | Gets a list of agent pools in the specified managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/AgentPoolsList.json |
|
||||
| [agentPoolsUpgradeNodeImageVersionSample.js][agentpoolsupgradenodeimageversionsample] | Upgrading the node image version of an agent pool applies the newest OS and runtime updates to the nodes. AKS provides one new image per week with the latest updates. For more details on node image versions, see: https://docs.microsoft.com/azure/aks/node-image-upgrade x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/AgentPoolsUpgradeNodeImageVersion.json |
|
||||
| [loadBalancersCreateOrUpdateSample.js][loadbalancerscreateorupdatesample] | Creates or updates a load balancer in the specified managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/LoadBalancers_Create_Or_Update.json |
|
||||
| [loadBalancersDeleteSample.js][loadbalancersdeletesample] | Deletes a load balancer in the specified managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/LoadBalancers_Delete.json |
|
||||
| [loadBalancersGetSample.js][loadbalancersgetsample] | Gets the specified load balancer. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/LoadBalancers_Get.json |
|
||||
| [loadBalancersListByManagedClusterSample.js][loadbalancerslistbymanagedclustersample] | Gets a list of load balancers in the specified managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/LoadBalancers_List.json |
|
||||
| [machinesGetSample.js][machinesgetsample] | Get a specific machine in the specified agent pool. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/MachineGet.json |
|
||||
| [machinesListSample.js][machineslistsample] | Gets a list of machines in the specified agent pool. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/MachineList.json |
|
||||
| [maintenanceConfigurationsCreateOrUpdateSample.js][maintenanceconfigurationscreateorupdatesample] | Creates or updates a maintenance configuration in the specified managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/MaintenanceConfigurationsCreate_Update.json |
|
||||
| [maintenanceConfigurationsDeleteSample.js][maintenanceconfigurationsdeletesample] | Deletes a maintenance configuration. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/MaintenanceConfigurationsDelete.json |
|
||||
| [maintenanceConfigurationsGetSample.js][maintenanceconfigurationsgetsample] | Gets the specified maintenance configuration of a managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/MaintenanceConfigurationsGet.json |
|
||||
| [maintenanceConfigurationsListByManagedClusterSample.js][maintenanceconfigurationslistbymanagedclustersample] | Gets a list of maintenance configurations in the specified managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/MaintenanceConfigurationsList.json |
|
||||
| [managedClusterSnapshotsCreateOrUpdateSample.js][managedclustersnapshotscreateorupdatesample] | Creates or updates a managed cluster snapshot. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/ManagedClusterSnapshotsCreate.json |
|
||||
| [managedClusterSnapshotsDeleteSample.js][managedclustersnapshotsdeletesample] | Deletes a managed cluster snapshot. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/ManagedClusterSnapshotsDelete.json |
|
||||
| [managedClusterSnapshotsGetSample.js][managedclustersnapshotsgetsample] | Gets a managed cluster snapshot. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/ManagedClusterSnapshotsGet.json |
|
||||
| [managedClusterSnapshotsListByResourceGroupSample.js][managedclustersnapshotslistbyresourcegroupsample] | Lists managed cluster snapshots in the specified subscription and resource group. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/ManagedClusterSnapshotsListByResourceGroup.json |
|
||||
| [managedClusterSnapshotsListSample.js][managedclustersnapshotslistsample] | Gets a list of managed cluster snapshots in the specified subscription. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/ManagedClusterSnapshotsList.json |
|
||||
| [managedClusterSnapshotsUpdateTagsSample.js][managedclustersnapshotsupdatetagssample] | Updates tags on a managed cluster snapshot. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/ManagedClusterSnapshotsUpdateTags.json |
|
||||
| [managedClustersAbortLatestOperationSample.js][managedclustersabortlatestoperationsample] | Aborts the currently running operation on the managed cluster. The Managed Cluster will be moved to a Canceling state and eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can take place, an error is returned. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/ManagedClustersAbortOperation.json |
|
||||
| [managedClustersCreateOrUpdateSample.js][managedclusterscreateorupdatesample] | Creates or updates a managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/ManagedClustersAssociate_CRG.json |
|
||||
| [managedClustersDeleteSample.js][managedclustersdeletesample] | Deletes a managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/ManagedClustersDelete.json |
|
||||
| [managedClustersGetAccessProfileSample.js][managedclustersgetaccessprofilesample] | **WARNING**: This API will be deprecated. Instead use [ListClusterUserCredentials](https://docs.microsoft.com/rest/api/aks/managedclusters/listclusterusercredentials) or [ListClusterAdminCredentials](https://docs.microsoft.com/rest/api/aks/managedclusters/listclusteradmincredentials) . x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/ManagedClustersGetAccessProfile.json |
|
||||
| [managedClustersGetCommandResultSample.js][managedclustersgetcommandresultsample] | Gets the results of a command which has been run on the Managed Cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/RunCommandResultFailed.json |
|
||||
| [managedClustersGetGuardrailsVersionsSample.js][managedclustersgetguardrailsversionssample] | Contains Guardrails version along with its support info and whether it is a default version. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/GetGuardrailsVersions.json |
|
||||
| [managedClustersGetMeshRevisionProfileSample.js][managedclustersgetmeshrevisionprofilesample] | Contains extra metadata on the revision, including supported revisions, cluster compatibility and available upgrades x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/ManagedClustersGet_MeshRevisionProfile.json |
|
||||
| [managedClustersGetMeshUpgradeProfileSample.js][managedclustersgetmeshupgradeprofilesample] | Gets available upgrades for a service mesh in a cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/ManagedClustersGet_MeshUpgradeProfile.json |
|
||||
| [managedClustersGetOSOptionsSample.js][managedclustersgetosoptionssample] | Gets supported OS options in the specified subscription. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/ContainerServiceGetOSOptions.json |
|
||||
| [managedClustersGetSafeguardsVersionsSample.js][managedclustersgetsafeguardsversionssample] | Contains Safeguards version along with its support info and whether it is a default version. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/GetSafeguardsVersions.json |
|
||||
| [managedClustersGetSample.js][managedclustersgetsample] | Gets a managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/ManagedClustersGet.json |
|
||||
| [managedClustersGetUpgradeProfileSample.js][managedclustersgetupgradeprofilesample] | Gets the upgrade profile of a managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/ManagedClustersGetUpgradeProfile.json |
|
||||
| [managedClustersListByResourceGroupSample.js][managedclusterslistbyresourcegroupsample] | Lists managed clusters in the specified subscription and resource group. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/ManagedClustersListByResourceGroup.json |
|
||||
| [managedClustersListClusterAdminCredentialsSample.js][managedclusterslistclusteradmincredentialssample] | Lists the admin credentials of a managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/ManagedClustersListClusterCredentialResult.json |
|
||||
| [managedClustersListClusterMonitoringUserCredentialsSample.js][managedclusterslistclustermonitoringusercredentialssample] | Lists the cluster monitoring user credentials of a managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/ManagedClustersListClusterCredentialResult.json |
|
||||
| [managedClustersListClusterUserCredentialsSample.js][managedclusterslistclusterusercredentialssample] | Lists the user credentials of a managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/ManagedClustersListClusterCredentialResult.json |
|
||||
| [managedClustersListGuardrailsVersionsSample.js][managedclusterslistguardrailsversionssample] | Contains list of Guardrails version along with its support info and whether it is a default version. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/ListGuardrailsVersions.json |
|
||||
| [managedClustersListKubernetesVersionsSample.js][managedclusterslistkubernetesversionssample] | Contains extra metadata on the version, including supported patch versions, capabilities, available upgrades, and details on preview status of the version x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/KubernetesVersions_List.json |
|
||||
| [managedClustersListMeshRevisionProfilesSample.js][managedclusterslistmeshrevisionprofilessample] | Contains extra metadata on each revision, including supported revisions, cluster compatibility and available upgrades x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/ManagedClustersList_MeshRevisionProfiles.json |
|
||||
| [managedClustersListMeshUpgradeProfilesSample.js][managedclusterslistmeshupgradeprofilessample] | Lists available upgrades for all service meshes in a specific cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/ManagedClustersList_MeshUpgradeProfiles.json |
|
||||
| [managedClustersListOutboundNetworkDependenciesEndpointsSample.js][managedclusterslistoutboundnetworkdependenciesendpointssample] | Gets a list of egress endpoints (network endpoints of all outbound dependencies) in the specified managed cluster. The operation returns properties of each egress endpoint. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/OutboundNetworkDependenciesEndpointsList.json |
|
||||
| [managedClustersListSafeguardsVersionsSample.js][managedclusterslistsafeguardsversionssample] | Contains list of Safeguards version along with its support info and whether it is a default version. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/ListSafeguardsVersions.json |
|
||||
| [managedClustersListSample.js][managedclusterslistsample] | Gets a list of managed clusters in the specified subscription. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/ManagedClustersList.json |
|
||||
| [managedClustersRebalanceLoadBalancersSample.js][managedclustersrebalanceloadbalancerssample] | Rebalance nodes across specific load balancers. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/LoadBalancers_Rebalance.json |
|
||||
| [managedClustersResetAadProfileSample.js][managedclustersresetaadprofilesample] | **WARNING**: This API will be deprecated. Please see [AKS-managed Azure Active Directory integration](https://aka.ms/aks-managed-aad) to update your cluster with AKS-managed Azure AD. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/ManagedClustersResetAADProfile.json |
|
||||
| [managedClustersResetServicePrincipalProfileSample.js][managedclustersresetserviceprincipalprofilesample] | This action cannot be performed on a cluster that is not using a service principal x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/ManagedClustersResetServicePrincipalProfile.json |
|
||||
| [managedClustersRotateClusterCertificatesSample.js][managedclustersrotateclustercertificatessample] | See [Certificate rotation](https://docs.microsoft.com/azure/aks/certificate-rotation) for more details about rotating managed cluster certificates. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/ManagedClustersRotateClusterCertificates.json |
|
||||
| [managedClustersRotateServiceAccountSigningKeysSample.js][managedclustersrotateserviceaccountsigningkeyssample] | Rotates the service account signing keys of a managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/ManagedClustersRotateServiceAccountSigningKeys.json |
|
||||
| [managedClustersRunCommandSample.js][managedclustersruncommandsample] | AKS will create a pod to run the command. This is primarily useful for private clusters. For more information see [AKS Run Command](https://docs.microsoft.com/azure/aks/private-clusters#aks-run-command-preview). x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/RunCommandRequest.json |
|
||||
| [managedClustersStartSample.js][managedclustersstartsample] | See [starting a cluster](https://docs.microsoft.com/azure/aks/start-stop-cluster) for more details about starting a cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/ManagedClustersStart.json |
|
||||
| [managedClustersStopSample.js][managedclustersstopsample] | This can only be performed on Azure Virtual Machine Scale set backed clusters. Stopping a cluster stops the control plane and agent nodes entirely, while maintaining all object and cluster state. A cluster does not accrue charges while it is stopped. See [stopping a cluster](https://docs.microsoft.com/azure/aks/start-stop-cluster) for more details about stopping a cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/ManagedClustersStop.json |
|
||||
| [managedClustersUpdateTagsSample.js][managedclustersupdatetagssample] | Updates tags on a managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/ManagedClustersUpdateTags.json |
|
||||
| [operationStatusResultGetByAgentPoolSample.js][operationstatusresultgetbyagentpoolsample] | Get the status of a specific operation in the specified agent pool. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/OperationStatusResultGetByAgentPool.json |
|
||||
| [operationStatusResultGetSample.js][operationstatusresultgetsample] | Get the status of a specific operation in the specified managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/OperationStatusResultGet.json |
|
||||
| [operationStatusResultListSample.js][operationstatusresultlistsample] | Gets a list of operations in the specified managedCluster x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/OperationStatusResultList.json |
|
||||
| [operationsListSample.js][operationslistsample] | Gets a list of operations. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/Operation_List.json |
|
||||
| [privateEndpointConnectionsDeleteSample.js][privateendpointconnectionsdeletesample] | Deletes a private endpoint connection. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/PrivateEndpointConnectionsDelete.json |
|
||||
| [privateEndpointConnectionsGetSample.js][privateendpointconnectionsgetsample] | To learn more about private clusters, see: https://docs.microsoft.com/azure/aks/private-clusters x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/PrivateEndpointConnectionsGet.json |
|
||||
| [privateEndpointConnectionsListSample.js][privateendpointconnectionslistsample] | To learn more about private clusters, see: https://docs.microsoft.com/azure/aks/private-clusters x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/PrivateEndpointConnectionsList.json |
|
||||
| [privateEndpointConnectionsUpdateSample.js][privateendpointconnectionsupdatesample] | Updates a private endpoint connection. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/PrivateEndpointConnectionsUpdate.json |
|
||||
| [privateLinkResourcesListSample.js][privatelinkresourceslistsample] | To learn more about private clusters, see: https://docs.microsoft.com/azure/aks/private-clusters x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/PrivateLinkResourcesList.json |
|
||||
| [resolvePrivateLinkServiceIdPostSample.js][resolveprivatelinkserviceidpostsample] | Gets the private link service ID for the specified managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/ResolvePrivateLinkServiceId.json |
|
||||
| [snapshotsCreateOrUpdateSample.js][snapshotscreateorupdatesample] | Creates or updates a snapshot. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/SnapshotsCreate.json |
|
||||
| [snapshotsDeleteSample.js][snapshotsdeletesample] | Deletes a snapshot. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/SnapshotsDelete.json |
|
||||
| [snapshotsGetSample.js][snapshotsgetsample] | Gets a snapshot. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/SnapshotsGet.json |
|
||||
| [snapshotsListByResourceGroupSample.js][snapshotslistbyresourcegroupsample] | Lists snapshots in the specified subscription and resource group. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/SnapshotsListByResourceGroup.json |
|
||||
| [snapshotsListSample.js][snapshotslistsample] | Gets a list of snapshots in the specified subscription. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/SnapshotsList.json |
|
||||
| [snapshotsUpdateTagsSample.js][snapshotsupdatetagssample] | Updates tags on a snapshot. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/SnapshotsUpdateTags.json |
|
||||
| [trustedAccessRoleBindingsCreateOrUpdateSample.js][trustedaccessrolebindingscreateorupdatesample] | Create or update a trusted access role binding x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/TrustedAccessRoleBindings_CreateOrUpdate.json |
|
||||
| [trustedAccessRoleBindingsDeleteSample.js][trustedaccessrolebindingsdeletesample] | Delete a trusted access role binding. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/TrustedAccessRoleBindings_Delete.json |
|
||||
| [trustedAccessRoleBindingsGetSample.js][trustedaccessrolebindingsgetsample] | Get a trusted access role binding. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/TrustedAccessRoleBindings_Get.json |
|
||||
| [trustedAccessRoleBindingsListSample.js][trustedaccessrolebindingslistsample] | List trusted access role bindings. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/TrustedAccessRoleBindings_List.json |
|
||||
| [trustedAccessRolesListSample.js][trustedaccessroleslistsample] | List supported trusted access roles. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/TrustedAccessRoles_List.json |
|
||||
|
||||
## Prerequisites
|
||||
|
||||
|
@ -100,63 +121,84 @@ npx cross-env CONTAINERSERVICE_SUBSCRIPTION_ID="<containerservice subscription i
|
|||
|
||||
Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients.
|
||||
|
||||
[agentpoolsabortlatestoperationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20/javascript/agentPoolsAbortLatestOperationSample.js
|
||||
[agentpoolscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20/javascript/agentPoolsCreateOrUpdateSample.js
|
||||
[agentpoolsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20/javascript/agentPoolsDeleteSample.js
|
||||
[agentpoolsgetavailableagentpoolversionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20/javascript/agentPoolsGetAvailableAgentPoolVersionsSample.js
|
||||
[agentpoolsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20/javascript/agentPoolsGetSample.js
|
||||
[agentpoolsgetupgradeprofilesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20/javascript/agentPoolsGetUpgradeProfileSample.js
|
||||
[agentpoolslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20/javascript/agentPoolsListSample.js
|
||||
[agentpoolsupgradenodeimageversionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20/javascript/agentPoolsUpgradeNodeImageVersionSample.js
|
||||
[maintenanceconfigurationscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20/javascript/maintenanceConfigurationsCreateOrUpdateSample.js
|
||||
[maintenanceconfigurationsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20/javascript/maintenanceConfigurationsDeleteSample.js
|
||||
[maintenanceconfigurationsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20/javascript/maintenanceConfigurationsGetSample.js
|
||||
[maintenanceconfigurationslistbymanagedclustersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20/javascript/maintenanceConfigurationsListByManagedClusterSample.js
|
||||
[managedclustersabortlatestoperationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20/javascript/managedClustersAbortLatestOperationSample.js
|
||||
[managedclusterscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20/javascript/managedClustersCreateOrUpdateSample.js
|
||||
[managedclustersdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20/javascript/managedClustersDeleteSample.js
|
||||
[managedclustersgetaccessprofilesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20/javascript/managedClustersGetAccessProfileSample.js
|
||||
[managedclustersgetcommandresultsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20/javascript/managedClustersGetCommandResultSample.js
|
||||
[managedclustersgetmeshrevisionprofilesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20/javascript/managedClustersGetMeshRevisionProfileSample.js
|
||||
[managedclustersgetmeshupgradeprofilesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20/javascript/managedClustersGetMeshUpgradeProfileSample.js
|
||||
[managedclustersgetosoptionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20/javascript/managedClustersGetOSOptionsSample.js
|
||||
[managedclustersgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20/javascript/managedClustersGetSample.js
|
||||
[managedclustersgetupgradeprofilesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20/javascript/managedClustersGetUpgradeProfileSample.js
|
||||
[managedclusterslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20/javascript/managedClustersListByResourceGroupSample.js
|
||||
[managedclusterslistclusteradmincredentialssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20/javascript/managedClustersListClusterAdminCredentialsSample.js
|
||||
[managedclusterslistclustermonitoringusercredentialssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20/javascript/managedClustersListClusterMonitoringUserCredentialsSample.js
|
||||
[managedclusterslistclusterusercredentialssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20/javascript/managedClustersListClusterUserCredentialsSample.js
|
||||
[managedclusterslistkubernetesversionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20/javascript/managedClustersListKubernetesVersionsSample.js
|
||||
[managedclusterslistmeshrevisionprofilessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20/javascript/managedClustersListMeshRevisionProfilesSample.js
|
||||
[managedclusterslistmeshupgradeprofilessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20/javascript/managedClustersListMeshUpgradeProfilesSample.js
|
||||
[managedclusterslistoutboundnetworkdependenciesendpointssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20/javascript/managedClustersListOutboundNetworkDependenciesEndpointsSample.js
|
||||
[managedclusterslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20/javascript/managedClustersListSample.js
|
||||
[managedclustersresetaadprofilesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20/javascript/managedClustersResetAadProfileSample.js
|
||||
[managedclustersresetserviceprincipalprofilesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20/javascript/managedClustersResetServicePrincipalProfileSample.js
|
||||
[managedclustersrotateclustercertificatessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20/javascript/managedClustersRotateClusterCertificatesSample.js
|
||||
[managedclustersrotateserviceaccountsigningkeyssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20/javascript/managedClustersRotateServiceAccountSigningKeysSample.js
|
||||
[managedclustersruncommandsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20/javascript/managedClustersRunCommandSample.js
|
||||
[managedclustersstartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20/javascript/managedClustersStartSample.js
|
||||
[managedclustersstopsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20/javascript/managedClustersStopSample.js
|
||||
[managedclustersupdatetagssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20/javascript/managedClustersUpdateTagsSample.js
|
||||
[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20/javascript/operationsListSample.js
|
||||
[privateendpointconnectionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20/javascript/privateEndpointConnectionsDeleteSample.js
|
||||
[privateendpointconnectionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20/javascript/privateEndpointConnectionsGetSample.js
|
||||
[privateendpointconnectionslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20/javascript/privateEndpointConnectionsListSample.js
|
||||
[privateendpointconnectionsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20/javascript/privateEndpointConnectionsUpdateSample.js
|
||||
[privatelinkresourceslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20/javascript/privateLinkResourcesListSample.js
|
||||
[resolveprivatelinkserviceidpostsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20/javascript/resolvePrivateLinkServiceIdPostSample.js
|
||||
[snapshotscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20/javascript/snapshotsCreateOrUpdateSample.js
|
||||
[snapshotsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20/javascript/snapshotsDeleteSample.js
|
||||
[snapshotsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20/javascript/snapshotsGetSample.js
|
||||
[snapshotslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20/javascript/snapshotsListByResourceGroupSample.js
|
||||
[snapshotslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20/javascript/snapshotsListSample.js
|
||||
[snapshotsupdatetagssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20/javascript/snapshotsUpdateTagsSample.js
|
||||
[trustedaccessrolebindingscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20/javascript/trustedAccessRoleBindingsCreateOrUpdateSample.js
|
||||
[trustedaccessrolebindingsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20/javascript/trustedAccessRoleBindingsDeleteSample.js
|
||||
[trustedaccessrolebindingsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20/javascript/trustedAccessRoleBindingsGetSample.js
|
||||
[trustedaccessrolebindingslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20/javascript/trustedAccessRoleBindingsListSample.js
|
||||
[trustedaccessroleslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20/javascript/trustedAccessRolesListSample.js
|
||||
[agentpoolsabortlatestoperationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20-beta/javascript/agentPoolsAbortLatestOperationSample.js
|
||||
[agentpoolscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20-beta/javascript/agentPoolsCreateOrUpdateSample.js
|
||||
[agentpoolsdeletemachinessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20-beta/javascript/agentPoolsDeleteMachinesSample.js
|
||||
[agentpoolsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20-beta/javascript/agentPoolsDeleteSample.js
|
||||
[agentpoolsgetavailableagentpoolversionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20-beta/javascript/agentPoolsGetAvailableAgentPoolVersionsSample.js
|
||||
[agentpoolsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20-beta/javascript/agentPoolsGetSample.js
|
||||
[agentpoolsgetupgradeprofilesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20-beta/javascript/agentPoolsGetUpgradeProfileSample.js
|
||||
[agentpoolslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20-beta/javascript/agentPoolsListSample.js
|
||||
[agentpoolsupgradenodeimageversionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20-beta/javascript/agentPoolsUpgradeNodeImageVersionSample.js
|
||||
[loadbalancerscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20-beta/javascript/loadBalancersCreateOrUpdateSample.js
|
||||
[loadbalancersdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20-beta/javascript/loadBalancersDeleteSample.js
|
||||
[loadbalancersgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20-beta/javascript/loadBalancersGetSample.js
|
||||
[loadbalancerslistbymanagedclustersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20-beta/javascript/loadBalancersListByManagedClusterSample.js
|
||||
[machinesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20-beta/javascript/machinesGetSample.js
|
||||
[machineslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20-beta/javascript/machinesListSample.js
|
||||
[maintenanceconfigurationscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20-beta/javascript/maintenanceConfigurationsCreateOrUpdateSample.js
|
||||
[maintenanceconfigurationsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20-beta/javascript/maintenanceConfigurationsDeleteSample.js
|
||||
[maintenanceconfigurationsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20-beta/javascript/maintenanceConfigurationsGetSample.js
|
||||
[maintenanceconfigurationslistbymanagedclustersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20-beta/javascript/maintenanceConfigurationsListByManagedClusterSample.js
|
||||
[managedclustersnapshotscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20-beta/javascript/managedClusterSnapshotsCreateOrUpdateSample.js
|
||||
[managedclustersnapshotsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20-beta/javascript/managedClusterSnapshotsDeleteSample.js
|
||||
[managedclustersnapshotsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20-beta/javascript/managedClusterSnapshotsGetSample.js
|
||||
[managedclustersnapshotslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20-beta/javascript/managedClusterSnapshotsListByResourceGroupSample.js
|
||||
[managedclustersnapshotslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20-beta/javascript/managedClusterSnapshotsListSample.js
|
||||
[managedclustersnapshotsupdatetagssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20-beta/javascript/managedClusterSnapshotsUpdateTagsSample.js
|
||||
[managedclustersabortlatestoperationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20-beta/javascript/managedClustersAbortLatestOperationSample.js
|
||||
[managedclusterscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20-beta/javascript/managedClustersCreateOrUpdateSample.js
|
||||
[managedclustersdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20-beta/javascript/managedClustersDeleteSample.js
|
||||
[managedclustersgetaccessprofilesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20-beta/javascript/managedClustersGetAccessProfileSample.js
|
||||
[managedclustersgetcommandresultsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20-beta/javascript/managedClustersGetCommandResultSample.js
|
||||
[managedclustersgetguardrailsversionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20-beta/javascript/managedClustersGetGuardrailsVersionsSample.js
|
||||
[managedclustersgetmeshrevisionprofilesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20-beta/javascript/managedClustersGetMeshRevisionProfileSample.js
|
||||
[managedclustersgetmeshupgradeprofilesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20-beta/javascript/managedClustersGetMeshUpgradeProfileSample.js
|
||||
[managedclustersgetosoptionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20-beta/javascript/managedClustersGetOSOptionsSample.js
|
||||
[managedclustersgetsafeguardsversionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20-beta/javascript/managedClustersGetSafeguardsVersionsSample.js
|
||||
[managedclustersgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20-beta/javascript/managedClustersGetSample.js
|
||||
[managedclustersgetupgradeprofilesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20-beta/javascript/managedClustersGetUpgradeProfileSample.js
|
||||
[managedclusterslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20-beta/javascript/managedClustersListByResourceGroupSample.js
|
||||
[managedclusterslistclusteradmincredentialssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20-beta/javascript/managedClustersListClusterAdminCredentialsSample.js
|
||||
[managedclusterslistclustermonitoringusercredentialssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20-beta/javascript/managedClustersListClusterMonitoringUserCredentialsSample.js
|
||||
[managedclusterslistclusterusercredentialssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20-beta/javascript/managedClustersListClusterUserCredentialsSample.js
|
||||
[managedclusterslistguardrailsversionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20-beta/javascript/managedClustersListGuardrailsVersionsSample.js
|
||||
[managedclusterslistkubernetesversionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20-beta/javascript/managedClustersListKubernetesVersionsSample.js
|
||||
[managedclusterslistmeshrevisionprofilessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20-beta/javascript/managedClustersListMeshRevisionProfilesSample.js
|
||||
[managedclusterslistmeshupgradeprofilessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20-beta/javascript/managedClustersListMeshUpgradeProfilesSample.js
|
||||
[managedclusterslistoutboundnetworkdependenciesendpointssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20-beta/javascript/managedClustersListOutboundNetworkDependenciesEndpointsSample.js
|
||||
[managedclusterslistsafeguardsversionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20-beta/javascript/managedClustersListSafeguardsVersionsSample.js
|
||||
[managedclusterslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20-beta/javascript/managedClustersListSample.js
|
||||
[managedclustersrebalanceloadbalancerssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20-beta/javascript/managedClustersRebalanceLoadBalancersSample.js
|
||||
[managedclustersresetaadprofilesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20-beta/javascript/managedClustersResetAadProfileSample.js
|
||||
[managedclustersresetserviceprincipalprofilesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20-beta/javascript/managedClustersResetServicePrincipalProfileSample.js
|
||||
[managedclustersrotateclustercertificatessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20-beta/javascript/managedClustersRotateClusterCertificatesSample.js
|
||||
[managedclustersrotateserviceaccountsigningkeyssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20-beta/javascript/managedClustersRotateServiceAccountSigningKeysSample.js
|
||||
[managedclustersruncommandsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20-beta/javascript/managedClustersRunCommandSample.js
|
||||
[managedclustersstartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20-beta/javascript/managedClustersStartSample.js
|
||||
[managedclustersstopsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20-beta/javascript/managedClustersStopSample.js
|
||||
[managedclustersupdatetagssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20-beta/javascript/managedClustersUpdateTagsSample.js
|
||||
[operationstatusresultgetbyagentpoolsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20-beta/javascript/operationStatusResultGetByAgentPoolSample.js
|
||||
[operationstatusresultgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20-beta/javascript/operationStatusResultGetSample.js
|
||||
[operationstatusresultlistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20-beta/javascript/operationStatusResultListSample.js
|
||||
[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20-beta/javascript/operationsListSample.js
|
||||
[privateendpointconnectionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20-beta/javascript/privateEndpointConnectionsDeleteSample.js
|
||||
[privateendpointconnectionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20-beta/javascript/privateEndpointConnectionsGetSample.js
|
||||
[privateendpointconnectionslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20-beta/javascript/privateEndpointConnectionsListSample.js
|
||||
[privateendpointconnectionsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20-beta/javascript/privateEndpointConnectionsUpdateSample.js
|
||||
[privatelinkresourceslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20-beta/javascript/privateLinkResourcesListSample.js
|
||||
[resolveprivatelinkserviceidpostsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20-beta/javascript/resolvePrivateLinkServiceIdPostSample.js
|
||||
[snapshotscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20-beta/javascript/snapshotsCreateOrUpdateSample.js
|
||||
[snapshotsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20-beta/javascript/snapshotsDeleteSample.js
|
||||
[snapshotsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20-beta/javascript/snapshotsGetSample.js
|
||||
[snapshotslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20-beta/javascript/snapshotsListByResourceGroupSample.js
|
||||
[snapshotslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20-beta/javascript/snapshotsListSample.js
|
||||
[snapshotsupdatetagssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20-beta/javascript/snapshotsUpdateTagsSample.js
|
||||
[trustedaccessrolebindingscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20-beta/javascript/trustedAccessRoleBindingsCreateOrUpdateSample.js
|
||||
[trustedaccessrolebindingsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20-beta/javascript/trustedAccessRoleBindingsDeleteSample.js
|
||||
[trustedaccessrolebindingsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20-beta/javascript/trustedAccessRoleBindingsGetSample.js
|
||||
[trustedaccessrolebindingslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20-beta/javascript/trustedAccessRoleBindingsListSample.js
|
||||
[trustedaccessroleslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/containerservice/arm-containerservice/samples/v20-beta/javascript/trustedAccessRolesListSample.js
|
||||
[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-containerservice?view=azure-node-preview
|
||||
[freesub]: https://azure.microsoft.com/free/
|
||||
[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/containerservice/arm-containerservice/README.md
|
|
@ -13,10 +13,10 @@ const { DefaultAzureCredential } = require("@azure/identity");
|
|||
require("dotenv").config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Aborts the currently running operation on the agent pool. The Agent Pool will be moved to a Canceling state and eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can take place, a 409 error code is returned.
|
||||
* This sample demonstrates how to Aborts the currently running operation on the agent pool. The Agent Pool will be moved to a Canceling state and eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can take place, an error is returned.
|
||||
*
|
||||
* @summary Aborts the currently running operation on the agent pool. The Agent Pool will be moved to a Canceling state and eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can take place, a 409 error code is returned.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/AgentPoolsAbortOperation.json
|
||||
* @summary Aborts the currently running operation on the agent pool. The Agent Pool will be moved to a Canceling state and eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can take place, an error is returned.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/AgentPoolsAbortOperation.json
|
||||
*/
|
||||
async function abortOperationOnAgentPool() {
|
||||
const subscriptionId =
|
|
@ -16,43 +16,9 @@ require("dotenv").config();
|
|||
* This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster.
|
||||
*
|
||||
* @summary Creates or updates an agent pool in the specified managed cluster.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/AgentPoolsCreate_Snapshot.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/AgentPoolsAssociate_CRG.json
|
||||
*/
|
||||
async function createAgentPoolUsingAnAgentPoolSnapshot() {
|
||||
const subscriptionId =
|
||||
process.env["CONTAINERSERVICE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000";
|
||||
const resourceGroupName = process.env["CONTAINERSERVICE_RESOURCE_GROUP"] || "rg1";
|
||||
const resourceName = "clustername1";
|
||||
const agentPoolName = "agentpool1";
|
||||
const parameters = {
|
||||
count: 3,
|
||||
creationData: {
|
||||
sourceResourceId:
|
||||
"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.ContainerService/snapshots/snapshot1",
|
||||
},
|
||||
enableFips: true,
|
||||
orchestratorVersion: "",
|
||||
osType: "Linux",
|
||||
vmSize: "Standard_DS2_v2",
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new ContainerServiceClient(credential, subscriptionId);
|
||||
const result = await client.agentPools.beginCreateOrUpdateAndWait(
|
||||
resourceGroupName,
|
||||
resourceName,
|
||||
agentPoolName,
|
||||
parameters,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster.
|
||||
*
|
||||
* @summary Creates or updates an agent pool in the specified managed cluster.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/AgentPoolsCreate_CRG.json
|
||||
*/
|
||||
async function createAgentPoolWithCapacityReservationGroup() {
|
||||
async function associateAgentPoolWithCapacityReservationGroup() {
|
||||
const subscriptionId =
|
||||
process.env["CONTAINERSERVICE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000";
|
||||
const resourceGroupName = process.env["CONTAINERSERVICE_RESOURCE_GROUP"] || "rg1";
|
||||
|
@ -81,7 +47,71 @@ async function createAgentPoolWithCapacityReservationGroup() {
|
|||
* This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster.
|
||||
*
|
||||
* @summary Creates or updates an agent pool in the specified managed cluster.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/AgentPoolsCreate_DedicatedHostGroup.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/AgentPoolsCreate_Snapshot.json
|
||||
*/
|
||||
async function createAgentPoolUsingAnAgentPoolSnapshot() {
|
||||
const subscriptionId =
|
||||
process.env["CONTAINERSERVICE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000";
|
||||
const resourceGroupName = process.env["CONTAINERSERVICE_RESOURCE_GROUP"] || "rg1";
|
||||
const resourceName = "clustername1";
|
||||
const agentPoolName = "agentpool1";
|
||||
const parameters = {
|
||||
count: 3,
|
||||
creationData: {
|
||||
sourceResourceId:
|
||||
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/snapshots/snapshot1",
|
||||
},
|
||||
enableFips: true,
|
||||
orchestratorVersion: "",
|
||||
osType: "Linux",
|
||||
vmSize: "Standard_DS2_v2",
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new ContainerServiceClient(credential, subscriptionId);
|
||||
const result = await client.agentPools.beginCreateOrUpdateAndWait(
|
||||
resourceGroupName,
|
||||
resourceName,
|
||||
agentPoolName,
|
||||
parameters,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster.
|
||||
*
|
||||
* @summary Creates or updates an agent pool in the specified managed cluster.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/AgentPoolsCreate_EnableCustomCATrust.json
|
||||
*/
|
||||
async function createAgentPoolWithCustomCaTrustEnabled() {
|
||||
const subscriptionId =
|
||||
process.env["CONTAINERSERVICE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000";
|
||||
const resourceGroupName = process.env["CONTAINERSERVICE_RESOURCE_GROUP"] || "rg1";
|
||||
const resourceName = "clustername1";
|
||||
const agentPoolName = "agentpool1";
|
||||
const parameters = {
|
||||
count: 3,
|
||||
enableCustomCATrust: true,
|
||||
orchestratorVersion: "",
|
||||
osType: "Linux",
|
||||
vmSize: "Standard_DS2_v2",
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new ContainerServiceClient(credential, subscriptionId);
|
||||
const result = await client.agentPools.beginCreateOrUpdateAndWait(
|
||||
resourceGroupName,
|
||||
resourceName,
|
||||
agentPoolName,
|
||||
parameters,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster.
|
||||
*
|
||||
* @summary Creates or updates an agent pool in the specified managed cluster.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/AgentPoolsCreate_DedicatedHostGroup.json
|
||||
*/
|
||||
async function createAgentPoolWithDedicatedHostGroup() {
|
||||
const subscriptionId =
|
||||
|
@ -112,7 +142,7 @@ async function createAgentPoolWithDedicatedHostGroup() {
|
|||
* This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster.
|
||||
*
|
||||
* @summary Creates or updates an agent pool in the specified managed cluster.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/AgentPoolsCreate_EnableEncryptionAtHost.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/AgentPoolsCreate_EnableEncryptionAtHost.json
|
||||
*/
|
||||
async function createAgentPoolWithEncryptionAtHostEnabled() {
|
||||
const subscriptionId =
|
||||
|
@ -142,7 +172,7 @@ async function createAgentPoolWithEncryptionAtHostEnabled() {
|
|||
* This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster.
|
||||
*
|
||||
* @summary Creates or updates an agent pool in the specified managed cluster.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/AgentPoolsCreate_Ephemeral.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/AgentPoolsCreate_Ephemeral.json
|
||||
*/
|
||||
async function createAgentPoolWithEphemeralOSDisk() {
|
||||
const subscriptionId =
|
||||
|
@ -173,7 +203,7 @@ async function createAgentPoolWithEphemeralOSDisk() {
|
|||
* This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster.
|
||||
*
|
||||
* @summary Creates or updates an agent pool in the specified managed cluster.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/AgentPoolsCreate_EnableFIPS.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/AgentPoolsCreate_EnableFIPS.json
|
||||
*/
|
||||
async function createAgentPoolWithFipsEnabledOS() {
|
||||
const subscriptionId =
|
||||
|
@ -203,7 +233,7 @@ async function createAgentPoolWithFipsEnabledOS() {
|
|||
* This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster.
|
||||
*
|
||||
* @summary Creates or updates an agent pool in the specified managed cluster.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/AgentPoolsCreate_GPUMIG.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/AgentPoolsCreate_GPUMIG.json
|
||||
*/
|
||||
async function createAgentPoolWithGpumig() {
|
||||
const subscriptionId =
|
||||
|
@ -254,7 +284,7 @@ async function createAgentPoolWithGpumig() {
|
|||
* This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster.
|
||||
*
|
||||
* @summary Creates or updates an agent pool in the specified managed cluster.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/AgentPoolsCreate_WasmWasi.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/AgentPoolsCreate_WasmWasi.json
|
||||
*/
|
||||
async function createAgentPoolWithKrustletAndTheWasiRuntime() {
|
||||
const subscriptionId =
|
||||
|
@ -286,7 +316,7 @@ async function createAgentPoolWithKrustletAndTheWasiRuntime() {
|
|||
* This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster.
|
||||
*
|
||||
* @summary Creates or updates an agent pool in the specified managed cluster.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/AgentPoolsCreate_CustomNodeConfig.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/AgentPoolsCreate_CustomNodeConfig.json
|
||||
*/
|
||||
async function createAgentPoolWithKubeletConfigAndLinuxOSConfig() {
|
||||
const subscriptionId =
|
||||
|
@ -336,7 +366,39 @@ async function createAgentPoolWithKubeletConfigAndLinuxOSConfig() {
|
|||
* This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster.
|
||||
*
|
||||
* @summary Creates or updates an agent pool in the specified managed cluster.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/AgentPoolsCreate_OSSKU.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/AgentPoolsCreate_MessageOfTheDay.json
|
||||
*/
|
||||
async function createAgentPoolWithMessageOfTheDay() {
|
||||
const subscriptionId =
|
||||
process.env["CONTAINERSERVICE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000";
|
||||
const resourceGroupName = process.env["CONTAINERSERVICE_RESOURCE_GROUP"] || "rg1";
|
||||
const resourceName = "clustername1";
|
||||
const agentPoolName = "agentpool1";
|
||||
const parameters = {
|
||||
count: 3,
|
||||
messageOfTheDay: "Zm9vCg==",
|
||||
mode: "User",
|
||||
orchestratorVersion: "",
|
||||
osDiskSizeGB: 64,
|
||||
osType: "Linux",
|
||||
vmSize: "Standard_DS2_v2",
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new ContainerServiceClient(credential, subscriptionId);
|
||||
const result = await client.agentPools.beginCreateOrUpdateAndWait(
|
||||
resourceGroupName,
|
||||
resourceName,
|
||||
agentPoolName,
|
||||
parameters,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster.
|
||||
*
|
||||
* @summary Creates or updates an agent pool in the specified managed cluster.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/AgentPoolsCreate_OSSKU.json
|
||||
*/
|
||||
async function createAgentPoolWithOssku() {
|
||||
const subscriptionId =
|
||||
|
@ -387,7 +449,7 @@ async function createAgentPoolWithOssku() {
|
|||
* This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster.
|
||||
*
|
||||
* @summary Creates or updates an agent pool in the specified managed cluster.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/AgentPoolsCreate_PPG.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/AgentPoolsCreate_PPG.json
|
||||
*/
|
||||
async function createAgentPoolWithPpg() {
|
||||
const subscriptionId =
|
||||
|
@ -418,7 +480,7 @@ async function createAgentPoolWithPpg() {
|
|||
* This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster.
|
||||
*
|
||||
* @summary Creates or updates an agent pool in the specified managed cluster.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/AgentPoolsCreate_EnableUltraSSD.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/AgentPoolsCreate_EnableUltraSSD.json
|
||||
*/
|
||||
async function createAgentPoolWithUltraSsdEnabled() {
|
||||
const subscriptionId =
|
||||
|
@ -448,7 +510,85 @@ async function createAgentPoolWithUltraSsdEnabled() {
|
|||
* This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster.
|
||||
*
|
||||
* @summary Creates or updates an agent pool in the specified managed cluster.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/AgentPoolsCreate_WindowsOSSKU.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/AgentPoolsCreate_TypeVirtualMachines.json
|
||||
*/
|
||||
async function createAgentPoolWithVirtualMachinesPoolType() {
|
||||
const subscriptionId =
|
||||
process.env["CONTAINERSERVICE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000";
|
||||
const resourceGroupName = process.env["CONTAINERSERVICE_RESOURCE_GROUP"] || "rg1";
|
||||
const resourceName = "clustername1";
|
||||
const agentPoolName = "agentpool1";
|
||||
const parameters = {
|
||||
typePropertiesType: "VirtualMachines",
|
||||
nodeLabels: { key1: "val1" },
|
||||
nodeTaints: ["Key1=Value1:NoSchedule"],
|
||||
orchestratorVersion: "1.9.6",
|
||||
osType: "Linux",
|
||||
tags: { name1: "val1" },
|
||||
virtualMachinesProfile: {
|
||||
scale: {
|
||||
manual: [{ count: 5, sizes: ["Standard_D2_v2", "Standard_D2_v3"] }],
|
||||
},
|
||||
},
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new ContainerServiceClient(credential, subscriptionId);
|
||||
const result = await client.agentPools.beginCreateOrUpdateAndWait(
|
||||
resourceGroupName,
|
||||
resourceName,
|
||||
agentPoolName,
|
||||
parameters,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster.
|
||||
*
|
||||
* @summary Creates or updates an agent pool in the specified managed cluster.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/AgentPoolsCreate_TypeVirtualMachines_Autoscale.json
|
||||
*/
|
||||
async function createAgentPoolWithVirtualMachinesPoolTypeWithAutoscalingEnabled() {
|
||||
const subscriptionId =
|
||||
process.env["CONTAINERSERVICE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000";
|
||||
const resourceGroupName = process.env["CONTAINERSERVICE_RESOURCE_GROUP"] || "rg1";
|
||||
const resourceName = "clustername1";
|
||||
const agentPoolName = "agentpool1";
|
||||
const parameters = {
|
||||
typePropertiesType: "VirtualMachines",
|
||||
nodeLabels: { key1: "val1" },
|
||||
nodeTaints: ["Key1=Value1:NoSchedule"],
|
||||
orchestratorVersion: "1.29.0",
|
||||
osType: "Linux",
|
||||
tags: { name1: "val1" },
|
||||
virtualMachinesProfile: {
|
||||
scale: {
|
||||
autoscale: [
|
||||
{
|
||||
maxCount: 5,
|
||||
minCount: 1,
|
||||
sizes: ["Standard_D2_v2", "Standard_D2_v3"],
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new ContainerServiceClient(credential, subscriptionId);
|
||||
const result = await client.agentPools.beginCreateOrUpdateAndWait(
|
||||
resourceGroupName,
|
||||
resourceName,
|
||||
agentPoolName,
|
||||
parameters,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster.
|
||||
*
|
||||
* @summary Creates or updates an agent pool in the specified managed cluster.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/AgentPoolsCreate_WindowsOSSKU.json
|
||||
*/
|
||||
async function createAgentPoolWithWindowsOssku() {
|
||||
const subscriptionId =
|
||||
|
@ -478,7 +618,7 @@ async function createAgentPoolWithWindowsOssku() {
|
|||
* This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster.
|
||||
*
|
||||
* @summary Creates or updates an agent pool in the specified managed cluster.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/AgentPoolsCreate_Spot.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/AgentPoolsCreate_Spot.json
|
||||
*/
|
||||
async function createSpotAgentPool() {
|
||||
const subscriptionId =
|
||||
|
@ -512,7 +652,7 @@ async function createSpotAgentPool() {
|
|||
* This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster.
|
||||
*
|
||||
* @summary Creates or updates an agent pool in the specified managed cluster.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/AgentPoolsCreate_WindowsDisableOutboundNAT.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/AgentPoolsCreate_WindowsDisableOutboundNAT.json
|
||||
*/
|
||||
async function createWindowsAgentPoolWithDisablingOutboundNat() {
|
||||
const subscriptionId =
|
||||
|
@ -543,7 +683,7 @@ async function createWindowsAgentPoolWithDisablingOutboundNat() {
|
|||
* This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster.
|
||||
*
|
||||
* @summary Creates or updates an agent pool in the specified managed cluster.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/AgentPoolsCreate_Update.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/AgentPoolsCreate_Update.json
|
||||
*/
|
||||
async function createOrUpdateAgentPool() {
|
||||
const subscriptionId =
|
||||
|
@ -578,7 +718,7 @@ async function createOrUpdateAgentPool() {
|
|||
* This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster.
|
||||
*
|
||||
* @summary Creates or updates an agent pool in the specified managed cluster.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/AgentPools_Start.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/AgentPools_Start.json
|
||||
*/
|
||||
async function startAgentPool() {
|
||||
const subscriptionId =
|
||||
|
@ -602,7 +742,7 @@ async function startAgentPool() {
|
|||
* This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster.
|
||||
*
|
||||
* @summary Creates or updates an agent pool in the specified managed cluster.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/AgentPools_Stop.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/AgentPools_Stop.json
|
||||
*/
|
||||
async function stopAgentPool() {
|
||||
const subscriptionId =
|
||||
|
@ -626,7 +766,7 @@ async function stopAgentPool() {
|
|||
* This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster.
|
||||
*
|
||||
* @summary Creates or updates an agent pool in the specified managed cluster.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/AgentPools_Update.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/AgentPools_Update.json
|
||||
*/
|
||||
async function updateAgentPool() {
|
||||
const subscriptionId =
|
||||
|
@ -658,8 +798,9 @@ async function updateAgentPool() {
|
|||
}
|
||||
|
||||
async function main() {
|
||||
associateAgentPoolWithCapacityReservationGroup();
|
||||
createAgentPoolUsingAnAgentPoolSnapshot();
|
||||
createAgentPoolWithCapacityReservationGroup();
|
||||
createAgentPoolWithCustomCaTrustEnabled();
|
||||
createAgentPoolWithDedicatedHostGroup();
|
||||
createAgentPoolWithEncryptionAtHostEnabled();
|
||||
createAgentPoolWithEphemeralOSDisk();
|
||||
|
@ -667,9 +808,12 @@ async function main() {
|
|||
createAgentPoolWithGpumig();
|
||||
createAgentPoolWithKrustletAndTheWasiRuntime();
|
||||
createAgentPoolWithKubeletConfigAndLinuxOSConfig();
|
||||
createAgentPoolWithMessageOfTheDay();
|
||||
createAgentPoolWithOssku();
|
||||
createAgentPoolWithPpg();
|
||||
createAgentPoolWithUltraSsdEnabled();
|
||||
createAgentPoolWithVirtualMachinesPoolType();
|
||||
createAgentPoolWithVirtualMachinesPoolTypeWithAutoscalingEnabled();
|
||||
createAgentPoolWithWindowsOssku();
|
||||
createSpotAgentPool();
|
||||
createWindowsAgentPoolWithDisablingOutboundNat();
|
|
@ -0,0 +1,45 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
const { ContainerServiceClient } = require("@azure/arm-containerservice");
|
||||
const { DefaultAzureCredential } = require("@azure/identity");
|
||||
require("dotenv").config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Deletes specific machines in an agent pool.
|
||||
*
|
||||
* @summary Deletes specific machines in an agent pool.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/AgentPoolsDeleteMachines.json
|
||||
*/
|
||||
async function deleteSpecificMachinesInAnAgentPool() {
|
||||
const subscriptionId =
|
||||
process.env["CONTAINERSERVICE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000";
|
||||
const resourceGroupName = process.env["CONTAINERSERVICE_RESOURCE_GROUP"] || "rg1";
|
||||
const resourceName = "clustername1";
|
||||
const agentPoolName = "agentpool1";
|
||||
const machines = {
|
||||
machineNames: ["aks-nodepool1-42263519-vmss00000a", "aks-nodepool1-42263519-vmss00000b"],
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new ContainerServiceClient(credential, subscriptionId);
|
||||
const result = await client.agentPools.beginDeleteMachinesAndWait(
|
||||
resourceGroupName,
|
||||
resourceName,
|
||||
agentPoolName,
|
||||
machines,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
deleteSpecificMachinesInAnAgentPool();
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
|
@ -0,0 +1,64 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
const { ContainerServiceClient } = require("@azure/arm-containerservice");
|
||||
const { DefaultAzureCredential } = require("@azure/identity");
|
||||
require("dotenv").config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Deletes an agent pool in the specified managed cluster.
|
||||
*
|
||||
* @summary Deletes an agent pool in the specified managed cluster.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/AgentPoolsDelete.json
|
||||
*/
|
||||
async function deleteAgentPool() {
|
||||
const subscriptionId =
|
||||
process.env["CONTAINERSERVICE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000";
|
||||
const resourceGroupName = process.env["CONTAINERSERVICE_RESOURCE_GROUP"] || "rg1";
|
||||
const resourceName = "clustername1";
|
||||
const agentPoolName = "agentpool1";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new ContainerServiceClient(credential, subscriptionId);
|
||||
const result = await client.agentPools.beginDeleteAndWait(
|
||||
resourceGroupName,
|
||||
resourceName,
|
||||
agentPoolName,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Deletes an agent pool in the specified managed cluster.
|
||||
*
|
||||
* @summary Deletes an agent pool in the specified managed cluster.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/AgentPoolsDelete_IgnorePodDisruptionBudget.json
|
||||
*/
|
||||
async function deleteAgentPoolByIgnoringPodDisruptionBudget() {
|
||||
const subscriptionId =
|
||||
process.env["CONTAINERSERVICE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000";
|
||||
const resourceGroupName = process.env["CONTAINERSERVICE_RESOURCE_GROUP"] || "rg1";
|
||||
const resourceName = "clustername1";
|
||||
const agentPoolName = "agentpool1";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new ContainerServiceClient(credential, subscriptionId);
|
||||
const result = await client.agentPools.beginDeleteAndWait(
|
||||
resourceGroupName,
|
||||
resourceName,
|
||||
agentPoolName,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
deleteAgentPool();
|
||||
deleteAgentPoolByIgnoringPodDisruptionBudget();
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
|
@ -16,7 +16,7 @@ require("dotenv").config();
|
|||
* This sample demonstrates how to See [supported Kubernetes versions](https://docs.microsoft.com/azure/aks/supported-kubernetes-versions) for more details about the version lifecycle.
|
||||
*
|
||||
* @summary See [supported Kubernetes versions](https://docs.microsoft.com/azure/aks/supported-kubernetes-versions) for more details about the version lifecycle.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/AgentPoolsGetAgentPoolAvailableVersions.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/AgentPoolsGetAgentPoolAvailableVersions.json
|
||||
*/
|
||||
async function getAvailableVersionsForAgentPool() {
|
||||
const subscriptionId =
|
|
@ -16,7 +16,7 @@ require("dotenv").config();
|
|||
* This sample demonstrates how to Gets the specified managed cluster agent pool.
|
||||
*
|
||||
* @summary Gets the specified managed cluster agent pool.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/AgentPoolsGet.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/AgentPoolsGet.json
|
||||
*/
|
||||
async function getAgentPool() {
|
||||
const subscriptionId =
|
|
@ -16,7 +16,7 @@ require("dotenv").config();
|
|||
* This sample demonstrates how to Gets the upgrade profile for an agent pool.
|
||||
*
|
||||
* @summary Gets the upgrade profile for an agent pool.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/AgentPoolsGetUpgradeProfile.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/AgentPoolsGetUpgradeProfile.json
|
||||
*/
|
||||
async function getUpgradeProfileForAgentPool() {
|
||||
const subscriptionId =
|
|
@ -16,7 +16,7 @@ require("dotenv").config();
|
|||
* This sample demonstrates how to Gets a list of agent pools in the specified managed cluster.
|
||||
*
|
||||
* @summary Gets a list of agent pools in the specified managed cluster.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/AgentPoolsList.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/AgentPoolsList.json
|
||||
*/
|
||||
async function listAgentPoolsByManagedCluster() {
|
||||
const subscriptionId =
|
|
@ -16,7 +16,7 @@ require("dotenv").config();
|
|||
* This sample demonstrates how to Upgrading the node image version of an agent pool applies the newest OS and runtime updates to the nodes. AKS provides one new image per week with the latest updates. For more details on node image versions, see: https://docs.microsoft.com/azure/aks/node-image-upgrade
|
||||
*
|
||||
* @summary Upgrading the node image version of an agent pool applies the newest OS and runtime updates to the nodes. AKS provides one new image per week with the latest updates. For more details on node image versions, see: https://docs.microsoft.com/azure/aks/node-image-upgrade
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/AgentPoolsUpgradeNodeImageVersion.json
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/AgentPoolsUpgradeNodeImageVersion.json
|
||||
*/
|
||||
async function upgradeAgentPoolNodeImageVersion() {
|
||||
const subscriptionId =
|
|
@ -0,0 +1,41 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
const { ContainerServiceClient } = require("@azure/arm-containerservice");
|
||||
const { DefaultAzureCredential } = require("@azure/identity");
|
||||
require("dotenv").config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Creates or updates a load balancer in the specified managed cluster.
|
||||
*
|
||||
* @summary Creates or updates a load balancer in the specified managed cluster.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/LoadBalancers_Create_Or_Update.json
|
||||
*/
|
||||
async function createOrUpdateALoadBalancer() {
|
||||
const subscriptionId =
|
||||
process.env["CONTAINERSERVICE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000";
|
||||
const resourceGroupName = process.env["CONTAINERSERVICE_RESOURCE_GROUP"] || "rg1";
|
||||
const resourceName = "clustername1";
|
||||
const loadBalancerName = "kubernetes";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new ContainerServiceClient(credential, subscriptionId);
|
||||
const result = await client.loadBalancers.createOrUpdate(
|
||||
resourceGroupName,
|
||||
resourceName,
|
||||
loadBalancerName,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
createOrUpdateALoadBalancer();
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
|
@ -0,0 +1,41 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
const { ContainerServiceClient } = require("@azure/arm-containerservice");
|
||||
const { DefaultAzureCredential } = require("@azure/identity");
|
||||
require("dotenv").config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Deletes a load balancer in the specified managed cluster.
|
||||
*
|
||||
* @summary Deletes a load balancer in the specified managed cluster.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/LoadBalancers_Delete.json
|
||||
*/
|
||||
async function deleteALoadBalancer() {
|
||||
const subscriptionId =
|
||||
process.env["CONTAINERSERVICE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000";
|
||||
const resourceGroupName = process.env["CONTAINERSERVICE_RESOURCE_GROUP"] || "rg1";
|
||||
const resourceName = "clustername1";
|
||||
const loadBalancerName = "kubernetes";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new ContainerServiceClient(credential, subscriptionId);
|
||||
const result = await client.loadBalancers.beginDeleteAndWait(
|
||||
resourceGroupName,
|
||||
resourceName,
|
||||
loadBalancerName,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
deleteALoadBalancer();
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
|
@ -0,0 +1,37 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
const { ContainerServiceClient } = require("@azure/arm-containerservice");
|
||||
const { DefaultAzureCredential } = require("@azure/identity");
|
||||
require("dotenv").config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Gets the specified load balancer.
|
||||
*
|
||||
* @summary Gets the specified load balancer.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/LoadBalancers_Get.json
|
||||
*/
|
||||
async function getLoadBalancer() {
|
||||
const subscriptionId =
|
||||
process.env["CONTAINERSERVICE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000";
|
||||
const resourceGroupName = process.env["CONTAINERSERVICE_RESOURCE_GROUP"] || "rg1";
|
||||
const resourceName = "clustername1";
|
||||
const loadBalancerName = "kubernetes";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new ContainerServiceClient(credential, subscriptionId);
|
||||
const result = await client.loadBalancers.get(resourceGroupName, resourceName, loadBalancerName);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
getLoadBalancer();
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
|
@ -0,0 +1,42 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
const { ContainerServiceClient } = require("@azure/arm-containerservice");
|
||||
const { DefaultAzureCredential } = require("@azure/identity");
|
||||
require("dotenv").config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Gets a list of load balancers in the specified managed cluster.
|
||||
*
|
||||
* @summary Gets a list of load balancers in the specified managed cluster.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/LoadBalancers_List.json
|
||||
*/
|
||||
async function listLoadBalancersByManagedCluster() {
|
||||
const subscriptionId =
|
||||
process.env["CONTAINERSERVICE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000";
|
||||
const resourceGroupName = process.env["CONTAINERSERVICE_RESOURCE_GROUP"] || "rg1";
|
||||
const resourceName = "clustername1";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new ContainerServiceClient(credential, subscriptionId);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.loadBalancers.listByManagedCluster(
|
||||
resourceGroupName,
|
||||
resourceName,
|
||||
)) {
|
||||
resArray.push(item);
|
||||
}
|
||||
console.log(resArray);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
listLoadBalancersByManagedCluster();
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
|
@ -13,29 +13,31 @@ const { DefaultAzureCredential } = require("@azure/identity");
|
|||
require("dotenv").config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Deletes an agent pool in the specified managed cluster.
|
||||
* This sample demonstrates how to Get a specific machine in the specified agent pool.
|
||||
*
|
||||
* @summary Deletes an agent pool in the specified managed cluster.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/AgentPoolsDelete.json
|
||||
* @summary Get a specific machine in the specified agent pool.
|
||||
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2024-04-02-preview/examples/MachineGet.json
|
||||
*/
|
||||
async function deleteAgentPool() {
|
||||
async function getAMachineInAnAgentPoolsByManagedCluster() {
|
||||
const subscriptionId =
|
||||
process.env["CONTAINERSERVICE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000";
|
||||
const resourceGroupName = process.env["CONTAINERSERVICE_RESOURCE_GROUP"] || "rg1";
|
||||
const resourceName = "clustername1";
|
||||
const agentPoolName = "agentpool1";
|
||||
const machineName = "aks-nodepool1-42263519-vmss00000t";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new ContainerServiceClient(credential, subscriptionId);
|
||||
const result = await client.agentPools.beginDeleteAndWait(
|
||||
const result = await client.machines.get(
|
||||
resourceGroupName,
|
||||
resourceName,
|
||||
agentPoolName,
|
||||
machineName,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
deleteAgentPool();
|
||||
getAMachineInAnAgentPoolsByManagedCluster();
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше
Загрузка…
Ссылка в новой задаче