|
2 | 2 | # Copyright (c) Microsoft Corporation. All rights reserved. |
3 | 3 | # Licensed under the MIT License. See License.txt in the project root for license information. |
4 | 4 | # -------------------------------------------------------------------------------------------- |
5 | | -from azext_aks_preview.azuremonitormetrics.addonput import addon_put |
6 | | -from azext_aks_preview.azuremonitormetrics.amg.link import link_grafana_instance |
7 | | -from azext_aks_preview.azuremonitormetrics.amw.helper import get_azure_monitor_workspace_resource |
8 | | -from azext_aks_preview.azuremonitormetrics.dc.dce_api import create_dce |
9 | | -from azext_aks_preview.azuremonitormetrics.dc.dcr_api import create_dcr |
10 | | -from azext_aks_preview.azuremonitormetrics.dc.dcra_api import create_dcra |
11 | | -from azext_aks_preview.azuremonitormetrics.dc.delete import delete_dc_objects_if_prometheus_enabled, get_dc_objects_list |
12 | | -from azext_aks_preview.azuremonitormetrics.helper import check_azuremonitormetrics_profile, rp_registrations |
13 | | -from azext_aks_preview.azuremonitormetrics.recordingrules.create import create_rules |
14 | | -from azext_aks_preview.azuremonitormetrics.recordingrules.delete import delete_rules |
| 5 | +from azure.cli.command_modules.acs.azuremonitormetrics.addonput import addon_put |
| 6 | +from azure.cli.command_modules.acs.azuremonitormetrics.amg.link import link_grafana_instance |
| 7 | +from azure.cli.command_modules.acs.azuremonitormetrics.amw.helper import get_azure_monitor_workspace_resource |
| 8 | +from azure.cli.command_modules.acs.azuremonitormetrics.dc.dce_api import create_dce |
| 9 | +from azure.cli.command_modules.acs.azuremonitormetrics.dc.dcr_api import create_dcr |
| 10 | +from azure.cli.command_modules.acs.azuremonitormetrics.dc.dcra_api import create_dcra |
| 11 | +from azure.cli.command_modules.acs.azuremonitormetrics.dc.delete import ( |
| 12 | + delete_dc_objects_if_prometheus_enabled, |
| 13 | + get_dc_objects_list |
| 14 | +) |
| 15 | +from azure.cli.command_modules.acs.azuremonitormetrics.recordingrules.create import create_rules |
| 16 | +from azure.cli.command_modules.acs.azuremonitormetrics.recordingrules.delete import delete_rules |
| 17 | +from azure.cli.command_modules.acs.azuremonitormetrics.helper import ( |
| 18 | + check_azuremonitormetrics_profile, |
| 19 | + rp_registrations |
| 20 | +) |
| 21 | +from azure.cli.core.azclierror import InvalidArgumentValueError |
15 | 22 | from knack.util import CLIError |
16 | 23 | from knack.log import get_logger |
17 | | -from azure.cli.core.azclierror import InvalidArgumentValueError |
18 | 24 |
|
19 | 25 | logger = get_logger(__name__) |
20 | 26 |
|
@@ -93,7 +99,7 @@ def ensure_azure_monitor_profile_prerequisites( |
93 | 99 | # Do RP registrations and artifact creation (DC*, rules, grafana link etc.) if not enabled already |
94 | 100 | # Otherwise move forward so that the addon can be enabled with new KSM parameters |
95 | 101 | if is_prometheus_enabled is False: |
96 | | - rp_registrations(cmd, cluster_subscription) |
| 102 | + rp_registrations(cmd, cluster_subscription, raw_parameters) |
97 | 103 | link_azure_monitor_profile_artifacts( |
98 | 104 | cmd, |
99 | 105 | cluster_subscription, |
|
0 commit comments