Skip to content

Commit

Permalink
{AKS} Support to enable azure monitor profile when the sku name is au…
Browse files Browse the repository at this point in the history
…tomatic (Azure#7557)
  • Loading branch information
xmzhao0822 authored Apr 30, 2024
1 parent b693fda commit dd04cd7
Show file tree
Hide file tree
Showing 6 changed files with 6,817 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/aks-preview/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ To release a new version, please select a new version number (usually plus 1 to

Pending
+++++++

3.0.0b10
++++++++
* Support to enable azure monitor profile when the sku name is automatic.
* Vendor new SDK and bump API version to 2024-03-02-preview.
* Add option `WindowsAnnual` to `--os-sku` for `az aks nodepool add`.
* Add option `--enable-force-upgrade`, `--disable-force-upgrade` and `--upgrade-override-until` to `az aks upgrade`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1891,6 +1891,9 @@ def _get_enable_azure_monitor_metrics(self, enable_validation: bool = False) ->
self.mc.azure_monitor_profile.metrics
):
enable_azure_monitor_metrics = self.mc.azure_monitor_profile.metrics.enabled
skuName = self.get_sku_name()
if skuName == CONST_MANAGED_CLUSTER_SKU_NAME_AUTOMATIC:
enable_azure_monitor_metrics = True
# This parameter does not need dynamic completion.
if enable_validation:
if enable_azure_monitor_metrics and self._get_disable_azure_monitor_metrics(False):
Expand Down
Loading

0 comments on commit dd04cd7

Please sign in to comment.