Skip to content

Commit 29606c6

Browse files
authored
Reset vm_size and count to None under agent pool profile for VMAS migration (#8756)
* fix VMAS migration * Update version --------- Co-authored-by: [email protected] <reneeli>
1 parent c342427 commit 29606c6

File tree

5 files changed

+577
-666
lines changed

5 files changed

+577
-666
lines changed

src/aks-preview/HISTORY.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ To release a new version, please select a new version number (usually plus 1 to
1212
Pending
1313
+++++++
1414

15+
17.0.0b4
16+
++++++++
17+
* Reset vm_size and count to None for `az aks update --migrate-vmas-to-vms`
18+
1519
17.0.0b3
1620
++++++++
1721
* Add default value of option `--vm-sizes` for `az aks create` and `az aks nodepool add`.

src/aks-preview/azext_aks_preview/managed_cluster_decorator.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5368,6 +5368,9 @@ def update_vmas_to_vms(self, mc: ManagedCluster) -> ManagedCluster:
53685368
if mc.network_profile.load_balancer_sku == CONST_LOAD_BALANCER_SKU_BASIC:
53695369
mc.network_profile.load_balancer_sku = CONST_LOAD_BALANCER_SKU_STANDARD
53705370

5371+
mc.agent_pool_profiles[0].count = None
5372+
mc.agent_pool_profiles[0].vm_size = None
5373+
53715374
return mc
53725375

53735376
def update_mc_profile_preview(self) -> ManagedCluster:

0 commit comments

Comments
 (0)