From 7794a32cc41cc66f2d17d19b9707e41bf9be4b30 Mon Sep 17 00:00:00 2001 From: Kaveesh Dubey Date: Thu, 27 Apr 2023 09:53:24 -0700 Subject: [PATCH 01/27] {AKS} feat: ga update for azure monitor for metrics addon (managed prometheus) --- linter_exclusions.yml | 15 + src/aks-preview/azext_aks_preview/_help.py | 22 +- src/aks-preview/azext_aks_preview/_params.py | 13 +- .../azext_aks_preview/_validators.py | 57 -- .../azuremonitormetrics/addonput.py | 36 + .../azuremonitormetrics/amg/link.py | 80 ++ .../azuremonitormetrics/amw/create.py | 42 + .../azuremonitormetrics/amw/defaults.py | 43 ++ .../azuremonitormetrics/amw/helper.py | 34 + .../azuremonitorprofile.py | 91 +++ .../azuremonitormetrics/constants.py | 89 +++ .../azuremonitormetrics/dc/dce_api.py | 28 + .../azuremonitormetrics/dc/dcr_api.py | 49 ++ .../azuremonitormetrics/dc/dcra_api.py | 38 + .../azuremonitormetrics/dc/defaults.py | 41 + .../azuremonitormetrics/dc/delete.py | 77 ++ .../azuremonitormetrics/deaults.py | 14 + .../azuremonitormetrics/helper.py | 98 +++ .../recordingrules/create.py | 106 +++ .../recordingrules/delete.py | 28 + .../amwlocationresponseparser.py | 29 + .../azext_aks_preview/azuremonitorprofile.py | 720 +----------------- src/aks-preview/azext_aks_preview/custom.py | 7 + 23 files changed, 1015 insertions(+), 742 deletions(-) create mode 100644 src/aks-preview/azext_aks_preview/azuremonitormetrics/addonput.py create mode 100644 src/aks-preview/azext_aks_preview/azuremonitormetrics/amg/link.py create mode 100644 src/aks-preview/azext_aks_preview/azuremonitormetrics/amw/create.py create mode 100644 src/aks-preview/azext_aks_preview/azuremonitormetrics/amw/defaults.py create mode 100644 src/aks-preview/azext_aks_preview/azuremonitormetrics/amw/helper.py create mode 100644 src/aks-preview/azext_aks_preview/azuremonitormetrics/azuremonitorprofile.py create mode 100644 src/aks-preview/azext_aks_preview/azuremonitormetrics/constants.py create mode 100644 src/aks-preview/azext_aks_preview/azuremonitormetrics/dc/dce_api.py create mode 100644 src/aks-preview/azext_aks_preview/azuremonitormetrics/dc/dcr_api.py create mode 100644 src/aks-preview/azext_aks_preview/azuremonitormetrics/dc/dcra_api.py create mode 100644 src/aks-preview/azext_aks_preview/azuremonitormetrics/dc/defaults.py create mode 100644 src/aks-preview/azext_aks_preview/azuremonitormetrics/dc/delete.py create mode 100644 src/aks-preview/azext_aks_preview/azuremonitormetrics/deaults.py create mode 100644 src/aks-preview/azext_aks_preview/azuremonitormetrics/helper.py create mode 100644 src/aks-preview/azext_aks_preview/azuremonitormetrics/recordingrules/create.py create mode 100644 src/aks-preview/azext_aks_preview/azuremonitormetrics/recordingrules/delete.py create mode 100644 src/aks-preview/azext_aks_preview/azuremonitormetrics/responseparsers/amwlocationresponseparser.py diff --git a/linter_exclusions.yml b/linter_exclusions.yml index 41d508e048c..cc07be4f432 100644 --- a/linter_exclusions.yml +++ b/linter_exclusions.yml @@ -106,6 +106,21 @@ aks create: custom_ca_trust_certificates: rule_exclusions: - option_length_too_long + azure_monitor_workspace_resource_id: + rule_exclusions: + - option_length_too_long + enable_azuremonitormetrics: + rule_exclusions: + - option_length_too_long + ksm_metric_annotations_allow_list: + rule_exclusions: + - option_length_too_long + ksm_metric_labels_allow_list: + rule_exclusions: + - option_length_too_long + enable_windows_recording_rules: + rule_exclusions: + - option_length_too_long aks update: parameters: aad_admin_group_object_ids: diff --git a/src/aks-preview/azext_aks_preview/_help.py b/src/aks-preview/azext_aks_preview/_help.py index 6d725d3b947..7e9dd0f28b6 100644 --- a/src/aks-preview/azext_aks_preview/_help.py +++ b/src/aks-preview/azext_aks_preview/_help.py @@ -528,6 +528,24 @@ - name: --enable-asm --enable-azure-service-mesh type: bool short-summary: Enable Azure Service Mesh. + - name: --enable-azuremonitormetrics + type: bool + short-summary: Enable Azure Monitor Metrics Profile + - name: --azure-monitor-workspace-resource-id + type: string + short-summary: Resource ID of the Azure Monitor Workspace + - name: --ksm-metric-labels-allow-list + type: string + short-summary: Comma-separated list of additional Kubernetes label keys that will be used in the resource' labels metric. By default the metric contains only name and namespace labels. To include additional labels provide a list of resource names in their plural form and Kubernetes label keys you would like to allow for them (e.g. '=namespaces=[k8s-label-1,k8s-label-n,...],pods=[app],...)'. A single '*' can be provided per resource instead to allow any labels, but that has severe performance implications (e.g. '=pods=[*]'). + - name: --ksm-metric-annotations-allow-list + type: string + short-summary: Comma-separated list of additional Kubernetes label keys that will be used in the resource' labels metric. By default the metric contains only name and namespace labels. To include additional labels provide a list of resource names in their plural form and Kubernetes label keys you would like to allow for them (e.g.'=namespaces=[k8s-label-1,k8s-label-n,...],pods=[app],...)'. A single '*' can be provided per resource instead to allow any labels, but that has severe performance implications (e.g. '=pods=[*]'). + - name: --grafana-resource-id + type: string + short-summary: Resource ID of the Azure Managed Grafana Workspace + - name: --enable-windows-recording-rules + type: bool + short-summary: Enable Windows Recording Rules when enabling the Azure Monitor Metrics addon examples: - name: Create a Kubernetes cluster with an existing SSH public key. text: az aks create -g MyResourceGroup -n MyManagedCluster --ssh-key-value /path/to/publickey @@ -595,6 +613,8 @@ text: az aks create -g MyResourceGroup -n MyManagedCluster --enable-custom-ca-trust - name: Create a kubernetes cluster with Azure Service Mesh enabled. text: az aks create -g MyResourceGroup -n MyManagedCluster --enable-azure-service-mesh + - name: Create a kubernetes cluster with Azure Monitor Metrics enabled. + text: az aks create -g MyResourceGroup -n MyManagedCluster --enable-azuremonitormetrics """.format(sp_cache=AKS_SERVICE_PRINCIPAL_CACHE) @@ -947,7 +967,7 @@ short-summary: Enable Windows Recording Rules when enabling the Azure Monitor Metrics addon - name: --disable-azuremonitormetrics type: bool - short-summary: Disable Azure Monitor Metrics Profile + short-summary: Disable Azure Monitor Metrics Profile. This will delete all DCRA's associated with the cluster, any linked DCRs with the data stream = prometheus-stream and the recording rule groups created by the addon for this AKS cluster. - name: --enable-node-restriction type: bool short-summary: Enable node restriction option on cluster. diff --git a/src/aks-preview/azext_aks_preview/_params.py b/src/aks-preview/azext_aks_preview/_params.py index fe011d628b1..573b11acb9a 100644 --- a/src/aks-preview/azext_aks_preview/_params.py +++ b/src/aks-preview/azext_aks_preview/_params.py @@ -151,8 +151,6 @@ validate_defender_disable_and_enable_parameters, validate_azuremonitorworkspaceresourceid, validate_grafanaresourceid, - validate_ksm_labels, - validate_ksm_annotations, validate_disable_windows_outbound_nat, validate_allowed_host_ports, validate_application_security_groups, @@ -419,6 +417,13 @@ def load_arguments(self, _): c.argument('nodepool_asg_ids', validator=validate_application_security_groups, is_preview=True, help="application security groups for agentpool") c.argument('node_public_ip_tags', arg_type=tags_type, validator=validate_node_public_ip_tags, help='space-separated tags: key[=value] [key[=value] ...].') + # azure monitor profile + c.argument('enable_azuremonitormetrics', action='store_true', is_preview=True) + c.argument('azure_monitor_workspace_resource_id', validator=validate_azuremonitorworkspaceresourceid, is_preview=True) + c.argument('ksm_metric_labels_allow_list', is_preview=True) + c.argument('ksm_metric_annotations_allow_list', is_preview=True) + c.argument('grafana_resource_id', validator=validate_grafanaresourceid, is_preview=True) + c.argument('enable_windows_recording_rules', action='store_true', is_preview=True) with self.argument_context('aks update') as c: # managed cluster paramerters @@ -524,8 +529,8 @@ def load_arguments(self, _): c.argument('private_dns_zone', is_preview=True) c.argument('enable_azuremonitormetrics', action='store_true', is_preview=True) c.argument('azure_monitor_workspace_resource_id', validator=validate_azuremonitorworkspaceresourceid, is_preview=True) - c.argument('ksm_metric_labels_allow_list', validator=validate_ksm_labels, is_preview=True) - c.argument('ksm_metric_annotations_allow_list', validator=validate_ksm_annotations, is_preview=True) + c.argument('ksm_metric_labels_allow_list', is_preview=True) + c.argument('ksm_metric_annotations_allow_list', is_preview=True) c.argument('grafana_resource_id', validator=validate_grafanaresourceid, is_preview=True) c.argument('enable_windows_recording_rules', action='store_true', is_preview=True) c.argument('disable_azuremonitormetrics', action='store_true', is_preview=True) diff --git a/src/aks-preview/azext_aks_preview/_validators.py b/src/aks-preview/azext_aks_preview/_validators.py index ef35ee4a99d..7c9c3415360 100644 --- a/src/aks-preview/azext_aks_preview/_validators.py +++ b/src/aks-preview/azext_aks_preview/_validators.py @@ -729,63 +729,6 @@ def validate_grafanaresourceid(namespace): raise ArgumentUsageError("--grafana-resource-id not in the correct format. It should match `/subscriptions//resourceGroups//providers/microsoft.dashboard/grafana/`") -def validate_ksm_parameter(ksmparam): - labelValueMap = {} - ksmStrLength = len(ksmparam) - EOF = -1 - next = "" - name = "" - firstWordPos = 0 - for i, v in enumerate(ksmparam): - if i + 1 == ksmStrLength: - next = EOF - else: - next = ord(ksmparam[i + 1]) - if i - 1 >= 0: - previous = ord(ksmparam[i - 1]) - else: - previous = v - if v == "=": - if previous == ord(",") or next != ord("["): - raise InvalidArgumentValueError("Please format --metric properly. For eg. : --ksm-metric-labels-allow-list \"=namespaces=[k8s-label-1,k8s-label-n,...],pods=[app],...)\" and --ksm-metric-annotations-allow-list \"namespaces=[kubernetes.io/team,...],pods=[kubernetes.io/team],...\"") - name = ksmparam[firstWordPos:i] - labelValueMap[name] = [] - firstWordPos = i + 1 - elif v == "[": - if previous != ord("="): - raise InvalidArgumentValueError("Please format --metric properly. For eg. : --ksm-metric-labels-allow-list \"=namespaces=[k8s-label-1,k8s-label-n,...],pods=[app],...)\" and --ksm-metric-annotations-allow-list \"namespaces=[kubernetes.io/team,...],pods=[kubernetes.io/team],...\"") - firstWordPos = i + 1 - elif v == "]": - # if after metric group, has char not comma or end. - if next != EOF and next != ord(","): - raise InvalidArgumentValueError("Please format --metric properly. For eg. : --ksm-metric-labels-allow-list \"=namespaces=[k8s-label-1,k8s-label-n,...],pods=[app],...)\" and --ksm-metric-annotations-allow-list \"namespaces=[kubernetes.io/team,...],pods=[kubernetes.io/team],...\"") - if previous != ord("["): - labelValueMap[name].append(ksmparam[firstWordPos:i]) - firstWordPos = i + 1 - elif v == ",": - # if starts or ends with comma - if previous == v or next == EOF or next == ord("]"): - raise InvalidArgumentValueError("Please format --metric properly. For eg. : --ksm-metric-labels-allow-list \"=namespaces=[k8s-label-1,k8s-label-n,...],pods=[app],...)\" and --ksm-metric-annotations-allow-list \"namespaces=[kubernetes.io/team,...],pods=[kubernetes.io/team],...\"") - if previous != ord("]"): - labelValueMap[name].append(ksmparam[firstWordPos:i]) - firstWordPos = i + 1 - for label in labelValueMap: - if (bool(re.match(r'^[a-zA-Z_][A-Za-z0-9_]+$', label))) is False: - raise InvalidArgumentValueError("Please format --metric properly. For eg. : --ksm-metric-labels-allow-list \"=namespaces=[k8s-label-1,k8s-label-n,...],pods=[app],...)\" and --ksm-metric-annotations-allow-list \"namespaces=[kubernetes.io/team,...],pods=[kubernetes.io/team],...\"") - - -def validate_ksm_labels(namespace): - if namespace.ksm_metric_labels_allow_list is None: - return - validate_ksm_parameter(namespace.ksm_metric_labels_allow_list) - - -def validate_ksm_annotations(namespace): - if namespace.ksm_metric_annotations_allow_list is None: - return - validate_ksm_parameter(namespace.ksm_metric_annotations_allow_list) - - def validate_allowed_host_ports(namespace): if hasattr(namespace, "nodepool_allowed_host_ports"): host_ports = namespace.nodepool_allowed_host_ports diff --git a/src/aks-preview/azext_aks_preview/azuremonitormetrics/addonput.py b/src/aks-preview/azext_aks_preview/azuremonitormetrics/addonput.py new file mode 100644 index 00000000000..f7696e399fe --- /dev/null +++ b/src/aks-preview/azext_aks_preview/azuremonitormetrics/addonput.py @@ -0,0 +1,36 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- +import json +from azure.cli.command_modules.acs.azuremonitormetrics.constants import AKS_CLUSTER_API +from azure.cli.core.profiles import ResourceType +from azure.cli.core.azclierror import ( + UnknownError, + CLIError +) + + +def addon_put(cmd, client, cluster_subscription, cluster_resource_group_name, cluster_name): + from azure.cli.core.util import send_raw_request + armendpoint = cmd.cli_ctx.cloud.endpoints.resource_manager + feature_check_url = f"{armendpoint}/subscriptions/{cluster_subscription}/resourceGroups/{cluster_resource_group_name}/providers/Microsoft.ContainerService/managedClusters/{cluster_name}?api-version={AKS_CLUSTER_API}" + try: + headers = ['User-Agent=azuremonitormetrics.addon_get'] + r = send_raw_request(cmd.cli_ctx, "GET", feature_check_url, + body={}, headers=headers) + except CLIError as e: + raise UnknownError(e) + json_response = json.loads(r.text) + if "azureMonitorProfile" in json_response["properties"]: + if "metrics" in json_response["properties"]["azureMonitorProfile"]: + if json_response["properties"]["azureMonitorProfile"]["metrics"]["enabled"] is False: + # What if enabled doesn't exist + json_response["properties"]["azureMonitorProfile"]["metrics"]["enabled"] = True + try: + headers = ['User-Agent=azuremonitormetrics.addon_put'] + body = json.dumps(json_response) + r = send_raw_request(cmd.cli_ctx, "PUT", feature_check_url, + body=body, headers=headers) + except CLIError as e: + raise UnknownError(e) diff --git a/src/aks-preview/azext_aks_preview/azuremonitormetrics/amg/link.py b/src/aks-preview/azext_aks_preview/azuremonitormetrics/amg/link.py new file mode 100644 index 00000000000..7d29b0fc74f --- /dev/null +++ b/src/aks-preview/azext_aks_preview/azuremonitormetrics/amg/link.py @@ -0,0 +1,80 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- +import json +import uuid +from knack.util import CLIError +from azure.cli.command_modules.acs.azuremonitormetrics.constants import ( + GRAFANA_API, + GRAFANA_ROLE_ASSIGNMENT_API, + GrafanaLink +) +from azure.cli.command_modules.acs.azuremonitormetrics.helper import sanitize_resource_id + + +def link_grafana_instance(cmd, raw_parameters, azure_monitor_workspace_resource_id): + from azure.cli.core.util import send_raw_request + # GET grafana principal ID + try: + grafana_resource_id = raw_parameters.get("grafana_resource_id") + if grafana_resource_id is None or grafana_resource_id == "": + return GrafanaLink.NOPARAMPROVIDED + grafana_resource_id = sanitize_resource_id(grafana_resource_id) + grafanaURI = "{0}{1}?api-version={2}".format( + cmd.cli_ctx.cloud.endpoints.resource_manager, + grafana_resource_id, + GRAFANA_API + ) + headers = ['User-Agent=azuremonitormetrics.link_grafana_instance'] + grafanaArmResponse = send_raw_request(cmd.cli_ctx, "GET", grafanaURI, body={}, headers=headers) + servicePrincipalId = grafanaArmResponse.json()["identity"]["principalId"] + except CLIError as e: + raise CLIError(e) + # Add Role Assignment + try: + MonitoringDataReader = "b0d8363b-8ddd-447d-831f-62ca05bff136" + roleDefinitionURI = "{0}{1}/providers/Microsoft.Authorization/roleAssignments/{2}?api-version={3}".format( + cmd.cli_ctx.cloud.endpoints.resource_manager, + azure_monitor_workspace_resource_id, + uuid.uuid4(), + GRAFANA_ROLE_ASSIGNMENT_API + ) + roleDefinitionId = "{0}/providers/Microsoft.Authorization/roleDefinitions/{1}".format( + azure_monitor_workspace_resource_id, + MonitoringDataReader + ) + association_body = json.dumps({"properties": {"roleDefinitionId": roleDefinitionId, "principalId": servicePrincipalId}}) + headers = ['User-Agent=azuremonitormetrics.add_role_assignment'] + send_raw_request(cmd.cli_ctx, "PUT", roleDefinitionURI, body=association_body, headers=headers) + except CLIError as e: + if e.response.status_code != 409: + erroString = "Role Assingment failed. Please manually assign the `Monitoring Data Reader` role to the Azure Monitor Workspace ({0}) for the Azure Managed Grafana System Assigned Managed Identity ({1})".format( + azure_monitor_workspace_resource_id, + servicePrincipalId + ) + print(erroString) + # Setting up AMW Integration + targetGrafanaArmPayload = grafanaArmResponse.json() + if targetGrafanaArmPayload["properties"] is None: + raise CLIError("Invalid grafana payload to add AMW integration") + if "grafanaIntegrations" not in json.dumps(targetGrafanaArmPayload): + targetGrafanaArmPayload["properties"]["grafanaIntegrations"] = {} + if "azureMonitorWorkspaceIntegrations" not in json.dumps(targetGrafanaArmPayload): + targetGrafanaArmPayload["properties"]["grafanaIntegrations"]["azureMonitorWorkspaceIntegrations"] = [] + amwIntegrations = targetGrafanaArmPayload["properties"]["grafanaIntegrations"]["azureMonitorWorkspaceIntegrations"] + if amwIntegrations != [] and azure_monitor_workspace_resource_id in json.dumps(amwIntegrations).lower(): + return GrafanaLink.ALREADYPRESENT + try: + grafanaURI = "{0}{1}?api-version={2}".format( + cmd.cli_ctx.cloud.endpoints.resource_manager, + grafana_resource_id, + GRAFANA_API + ) + targetGrafanaArmPayload["properties"]["grafanaIntegrations"]["azureMonitorWorkspaceIntegrations"].append({"azureMonitorWorkspaceResourceId": azure_monitor_workspace_resource_id}) + targetGrafanaArmPayload = json.dumps(targetGrafanaArmPayload) + headers = ['User-Agent=azuremonitormetrics.setup_amw_grafana_integration', 'Content-Type=application/json'] + send_raw_request(cmd.cli_ctx, "PUT", grafanaURI, body=targetGrafanaArmPayload, headers=headers) + except CLIError as e: + raise CLIError(e) + return GrafanaLink.SUCCESS diff --git a/src/aks-preview/azext_aks_preview/azuremonitormetrics/amw/create.py b/src/aks-preview/azext_aks_preview/azuremonitormetrics/amw/create.py new file mode 100644 index 00000000000..93324c8a739 --- /dev/null +++ b/src/aks-preview/azext_aks_preview/azuremonitormetrics/amw/create.py @@ -0,0 +1,42 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- +import json + +from azure.cli.command_modules.acs.azuremonitormetrics.constants import MAC_API +from azure.cli.command_modules.acs._client_factory import get_resource_groups_client, get_resources_client +from azure.core.exceptions import HttpResponseError +from knack.util import CLIError +from azure.cli.command_modules.acs.azuremonitormetrics.amw.defaults import get_default_mac_name_and_region + + +def create_default_mac(cmd, cluster_subscription, cluster_region): + from azure.cli.core.util import send_raw_request + default_mac_name, default_mac_region = get_default_mac_name_and_region(cmd, cluster_region) + default_resource_group_name = "DefaultResourceGroup-{0}".format(default_mac_region) + azure_monitor_workspace_resource_id = "/subscriptions/{0}/resourceGroups/{1}/providers/microsoft.monitor/accounts/{2}".format(cluster_subscription, default_resource_group_name, default_mac_name) + # Check if default resource group exists or not, if it does not then create it + resource_groups = get_resource_groups_client(cmd.cli_ctx, cluster_subscription) + resources = get_resources_client(cmd.cli_ctx, cluster_subscription) + + if resource_groups.check_existence(default_resource_group_name): + try: + resource = resources.get_by_id(azure_monitor_workspace_resource_id, MAC_API) + # If MAC already exists then return from here + return azure_monitor_workspace_resource_id, resource.location + except HttpResponseError as ex: + if ex.status_code != 404: + raise ex + else: + resource_groups.create_or_update(default_resource_group_name, {"location": default_mac_region}) + association_body = json.dumps({"location": default_mac_region, "properties": {}}) + armendpoint = cmd.cli_ctx.cloud.endpoints.resource_manager + association_url = f"{armendpoint}{azure_monitor_workspace_resource_id}?api-version={MAC_API}" + try: + headers = ['User-Agent=azuremonitormetrics.create_default_mac'] + send_raw_request(cmd.cli_ctx, "PUT", association_url, + body=association_body, headers=headers) + return azure_monitor_workspace_resource_id, default_mac_region + except CLIError as e: + raise e diff --git a/src/aks-preview/azext_aks_preview/azuremonitormetrics/amw/defaults.py b/src/aks-preview/azext_aks_preview/azuremonitormetrics/amw/defaults.py new file mode 100644 index 00000000000..820f799caa6 --- /dev/null +++ b/src/aks-preview/azext_aks_preview/azuremonitormetrics/amw/defaults.py @@ -0,0 +1,43 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- +import json +from azure.cli.command_modules.acs.azuremonitormetrics.deaults import get_default_region +from azure.cli.command_modules.acs.azuremonitormetrics.responseparsers.amwlocationresponseparser import parseResourceProviderResponseForLocations +from azure.cli.command_modules.acs.azuremonitormetrics.constants import RP_LOCATION_API +from knack.util import CLIError + + +def get_supported_rp_locations(cmd, rp_name): + from azure.cli.core.util import send_raw_request + supported_locations = [] + headers = ['User-Agent=azuremonitormetrics.get_supported_rp_locations'] + armendpoint = cmd.cli_ctx.cloud.endpoints.resource_manager + association_url = f"{armendpoint}/providers/{rp_name}?api-version={RP_LOCATION_API}" + r = send_raw_request(cmd.cli_ctx, "GET", association_url, headers=headers) + data = json.loads(r.text) + supported_locations = parseResourceProviderResponseForLocations(data) + return supported_locations + + +def get_default_mac_region(cmd, cluster_region): + supported_locations = get_supported_rp_locations(cmd, 'Microsoft.Monitor') + if cluster_region in supported_locations: + return cluster_region + if len(supported_locations) > 0: + return supported_locations[0] + cloud_name = cmd.cli_ctx.cloud.name + if cloud_name.lower() == 'azurechinacloud': + raise CLIError("Azure China Cloud is not supported for the Azure Monitor Metrics addon") + if cloud_name.lower() == 'azureusgovernment': + return "usgovvirginia" + # default to public cloud + return get_default_region(cmd) + + +def get_default_mac_name_and_region(cmd, cluster_region): + default_mac_region = get_default_mac_region(cmd, cluster_region) + default_mac_name = "DefaultAzureMonitorWorkspace-" + default_mac_region + default_mac_name = default_mac_name[0:43] + return default_mac_name, default_mac_region diff --git a/src/aks-preview/azext_aks_preview/azuremonitormetrics/amw/helper.py b/src/aks-preview/azext_aks_preview/azuremonitormetrics/amw/helper.py new file mode 100644 index 00000000000..b6f54a31f59 --- /dev/null +++ b/src/aks-preview/azext_aks_preview/azuremonitormetrics/amw/helper.py @@ -0,0 +1,34 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- +import json +from azure.cli.command_modules.acs.azuremonitormetrics.amw.create import create_default_mac +from azure.cli.command_modules.acs.azuremonitormetrics.constants import MAC_API +from azure.cli.command_modules.acs.azuremonitormetrics.helper import sanitize_resource_id +from azure.cli.core.azclierror import ClientRequestError +from azure.core.exceptions import HttpResponseError +from azure.cli.command_modules.acs._client_factory import get_resources_client +from knack.util import CLIError + + +def get_amw_region(cmd, azure_monitor_workspace_resource_id): + # region of MAC can be different from region of RG so find the location of the azure_monitor_workspace_resource_id + amw_subscription_id = azure_monitor_workspace_resource_id.split("/")[2] + resources = get_resources_client(cmd.cli_ctx, amw_subscription_id) + try: + resource = resources.get_by_id( + azure_monitor_workspace_resource_id, MAC_API) + return resource.location.lower() + except HttpResponseError as ex: + raise ex + + +def get_azure_monitor_workspace_resource(cmd, cluster_subscription, cluster_region, raw_parameters): + azure_monitor_workspace_resource_id = raw_parameters.get("azure_monitor_workspace_resource_id") + if azure_monitor_workspace_resource_id is None or azure_monitor_workspace_resource_id == "": + azure_monitor_workspace_resource_id, azure_monitor_workspace_location = create_default_mac(cmd, cluster_subscription, cluster_region) + else: + azure_monitor_workspace_resource_id = sanitize_resource_id(azure_monitor_workspace_resource_id) + azure_monitor_workspace_location = get_amw_region(cmd, azure_monitor_workspace_resource_id) + return azure_monitor_workspace_resource_id, azure_monitor_workspace_location.lower() diff --git a/src/aks-preview/azext_aks_preview/azuremonitormetrics/azuremonitorprofile.py b/src/aks-preview/azext_aks_preview/azuremonitormetrics/azuremonitorprofile.py new file mode 100644 index 00000000000..ec3f46d72c3 --- /dev/null +++ b/src/aks-preview/azext_aks_preview/azuremonitormetrics/azuremonitorprofile.py @@ -0,0 +1,91 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- +from azure.cli.command_modules.acs.azuremonitormetrics.addonput import addon_put +from azure.cli.command_modules.acs.azuremonitormetrics.amg.link import link_grafana_instance +from azure.cli.command_modules.acs.azuremonitormetrics.amw.helper import get_azure_monitor_workspace_resource +from azure.cli.command_modules.acs.azuremonitormetrics.dc.dce_api import create_dce +from azure.cli.command_modules.acs.azuremonitormetrics.dc.dcr_api import create_dcr +from azure.cli.command_modules.acs.azuremonitormetrics.dc.dcra_api import create_dcra +from azure.cli.command_modules.acs.azuremonitormetrics.dc.delete import delete_dc_objects_if_prometheus_enabled, get_dc_objects_list +from azure.cli.command_modules.acs.azuremonitormetrics.helper import check_azuremonitormetrics_profile, rp_registrations +from azure.cli.command_modules.acs.azuremonitormetrics.recordingrules.create import create_rules +from azure.cli.command_modules.acs.azuremonitormetrics.recordingrules.delete import delete_rules +from knack.util import CLIError +from azure.cli.core.azclierror import InvalidArgumentValueError + + +def link_azure_monitor_profile_artifacts(cmd, client, cluster_subscription, cluster_resource_group_name, cluster_name, cluster_region, raw_parameters, create_flow): + # MAC creation if required + azure_monitor_workspace_resource_id, azure_monitor_workspace_location = get_azure_monitor_workspace_resource(cmd, cluster_subscription, cluster_region, raw_parameters) + # DCE creation + dce_resource_id = create_dce(cmd, cluster_subscription, cluster_resource_group_name, cluster_name, azure_monitor_workspace_location) + # DCR creation + dcr_resource_id = create_dcr(cmd, azure_monitor_workspace_location, azure_monitor_workspace_resource_id, cluster_subscription, cluster_resource_group_name, cluster_name, dce_resource_id) + # DCRA creation + create_dcra(cmd, cluster_region, cluster_subscription, cluster_resource_group_name, cluster_name, dcr_resource_id) + # Link grafana + link_grafana_instance(cmd, raw_parameters, azure_monitor_workspace_resource_id) + # create recording rules and alerts + create_rules(cmd, cluster_subscription, cluster_resource_group_name, cluster_name, azure_monitor_workspace_resource_id, azure_monitor_workspace_location, raw_parameters) + # if aks cluster create flow -> do a PUT on the AKS cluster to enable the addon + if create_flow: + addon_put(cmd, client, cluster_subscription, cluster_resource_group_name, cluster_name) + + +def unlink_azure_monitor_profile_artifacts(cmd, cluster_subscription, cluster_resource_group_name, cluster_name, cluster_region): + # Remove DC* if prometheus is enabled + dc_objects_list = get_dc_objects_list(cmd, cluster_subscription, cluster_resource_group_name, cluster_name) + delete_dc_objects_if_prometheus_enabled(cmd, dc_objects_list, cluster_subscription, cluster_resource_group_name, cluster_name) + # Delete rules (Conflict({"error":{"code":"InvalidResourceLocation","message":"The resource 'NodeRecordingRulesRuleGroup-' already exists in location 'eastus2' in resource group ''. A resource with the same name cannot be created in location 'eastus'. Please select a new resource name."}}) + delete_rules(cmd, cluster_subscription, cluster_resource_group_name, cluster_name) + + +# pylint: disable=too-many-locals,too-many-branches,too-many-statements,line-too-long +def ensure_azure_monitor_profile_prerequisites( + cmd, + client, + cluster_subscription, + cluster_resource_group_name, + cluster_name, + cluster_region, + raw_parameters, + remove_azuremonitormetrics, + create_flow=False +): + cloud_name = cmd.cli_ctx.cloud.name + if cloud_name.lower() == 'azurechinacloud': + raise CLIError("Azure China Cloud is not supported for the Azure Monitor Metrics addon") + + if cloud_name.lower() == "azureusgovernment": + grafana_resource_id = raw_parameters.get("grafana_resource_id") + if grafana_resource_id is not None: + if grafana_resource_id != "": + raise InvalidArgumentValueError("Azure US Government cloud does not support Azure Managed Grarfana yet. Please follow this documenation for enabling it via the public cloud : aka.ms/ama-grafana-link-ff") + + if (remove_azuremonitormetrics): + unlink_azure_monitor_profile_artifacts( + cmd, + cluster_subscription, + cluster_resource_group_name, + cluster_name, + cluster_region + ) + else: + # Check if already onboarded + if create_flow is False: + check_azuremonitormetrics_profile(cmd, cluster_subscription, cluster_resource_group_name, cluster_name) + # Do RP registrations if required + rp_registrations(cmd, cluster_subscription) + link_azure_monitor_profile_artifacts( + cmd, + client, + cluster_subscription, + cluster_resource_group_name, + cluster_name, + cluster_region, + raw_parameters, + create_flow + ) + return diff --git a/src/aks-preview/azext_aks_preview/azuremonitormetrics/constants.py b/src/aks-preview/azext_aks_preview/azuremonitormetrics/constants.py new file mode 100644 index 00000000000..ca5e49a7d8a --- /dev/null +++ b/src/aks-preview/azext_aks_preview/azuremonitormetrics/constants.py @@ -0,0 +1,89 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- +from azure.core import CaseInsensitiveEnumMeta +from enum import Enum +from six import with_metaclass + +AKS_CLUSTER_API = "2023-01-01" +MAC_API = "2023-04-03" +DC_API = "2022-06-01" +GRAFANA_API = "2022-08-01" +GRAFANA_ROLE_ASSIGNMENT_API = "2022-04-01" +RULES_API = "2023-03-01" +FEATURE_API = "2020-09-01" +RP_API = "2021-04-01" +ALERTS_API = "2023-01-01-preview" +RP_LOCATION_API = "2022-01-01" + + +MapToClosestMACRegion = { + "australiacentral": "eastus", + "australiacentral2": "eastus", + "australiaeast": "eastus", + "australiasoutheast": "eastus", + "brazilsouth": "eastus", + "canadacentral": "eastus", + "canadaeast": "eastus", + "centralus": "centralus", + "centralindia": "centralindia", + "eastasia": "westeurope", + "eastus": "eastus", + "eastus2": "eastus2", + "francecentral": "westeurope", + "francesouth": "westeurope", + "japaneast": "eastus", + "japanwest": "eastus", + "koreacentral": "westeurope", + "koreasouth": "westeurope", + "northcentralus": "eastus", + "northeurope": "westeurope", + "southafricanorth": "westeurope", + "southafricawest": "westeurope", + "southcentralus": "eastus", + "southeastasia": "westeurope", + "southindia": "centralindia", + "uksouth": "westeurope", + "ukwest": "westeurope", + "westcentralus": "eastus", + "westeurope": "westeurope", + "westindia": "centralindia", + "westus": "westus", + "westus2": "westus2", + "westus3": "westus", + "norwayeast": "westeurope", + "norwaywest": "westeurope", + "switzerlandnorth": "westeurope", + "switzerlandwest": "westeurope", + "uaenorth": "westeurope", + "germanywestcentral": "westeurope", + "germanynorth": "westeurope", + "uaecentral": "westeurope", + "eastus2euap": "eastus2euap", + "centraluseuap": "westeurope", + "brazilsoutheast": "eastus", + "jioindiacentral": "centralindia", + "swedencentral": "westeurope", + "swedensouth": "westeurope", + "qatarcentral": "westeurope" +} + + +class GrafanaLink(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): + """ + Status of Grafana link to the Prometheus Addon + """ + SUCCESS = "SUCCESS" + FAILURE = "FAILURE" + ALREADYPRESENT = "ALREADYPRESENT" + NOPARAMPROVIDED = "NOPARAMPROVIDED" + + +class DC_TYPE(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): + """ + Types of DC* objects + """ + DCE = "DCE" + DCR = "DCR" + DCRA = "DCRA" diff --git a/src/aks-preview/azext_aks_preview/azuremonitormetrics/dc/dce_api.py b/src/aks-preview/azext_aks_preview/azuremonitormetrics/dc/dce_api.py new file mode 100644 index 00000000000..00fb2484bde --- /dev/null +++ b/src/aks-preview/azext_aks_preview/azuremonitormetrics/dc/dce_api.py @@ -0,0 +1,28 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- +import json +from azure.cli.command_modules.acs.azuremonitormetrics.constants import DC_API +from azure.cli.command_modules.acs.azuremonitormetrics.dc.defaults import get_default_dce_name +from azure.cli.command_modules.acs.azuremonitormetrics.constants import DC_API +from knack.util import CLIError + + +def create_dce(cmd, cluster_subscription, cluster_resource_group_name, cluster_name, mac_region): + from azure.cli.core.util import send_raw_request + dce_name = get_default_dce_name(cmd, mac_region, cluster_name) + dce_resource_id = "/subscriptions/{0}/resourceGroups/{1}/providers/Microsoft.Insights/dataCollectionEndpoints/{2}".format(cluster_subscription, cluster_resource_group_name, dce_name) + try: + armendpoint = cmd.cli_ctx.cloud.endpoints.resource_manager + dce_url = f"{armendpoint}{dce_resource_id}?api-version={DC_API}" + dce_creation_body = json.dumps({"name": dce_name, + "location": mac_region, + "kind": "Linux", + "properties": {}}) + headers = ['User-Agent=azuremonitormetrics.create_dce'] + send_raw_request(cmd.cli_ctx, "PUT", + dce_url, body=dce_creation_body, headers=headers) + return dce_resource_id + except CLIError as error: + raise error diff --git a/src/aks-preview/azext_aks_preview/azuremonitormetrics/dc/dcr_api.py b/src/aks-preview/azext_aks_preview/azuremonitormetrics/dc/dcr_api.py new file mode 100644 index 00000000000..e9dc6a12159 --- /dev/null +++ b/src/aks-preview/azext_aks_preview/azuremonitormetrics/dc/dcr_api.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- +import json +from azure.cli.command_modules.acs.azuremonitormetrics.constants import MapToClosestMACRegion +from azure.cli.command_modules.acs.azuremonitormetrics.dc.defaults import get_default_region, sanitize_name +from azure.cli.command_modules.acs.azuremonitormetrics.constants import ( + DC_TYPE, + DC_API +) +from knack.util import CLIError + + +def get_default_dcr_name(cmd, mac_region, cluster_name): + region = get_default_region(cmd) + if mac_region in MapToClosestMACRegion: + region = MapToClosestMACRegion[mac_region] + default_dcr_name = "MSProm-" + region + "-" + cluster_name + return sanitize_name(default_dcr_name, DC_TYPE.DCR, 64) + + +# pylint: disable=too-many-locals,too-many-branches,too-many-statements,line-too-long +def create_dcr(cmd, mac_region, azure_monitor_workspace_resource_id, cluster_subscription, cluster_resource_group_name, cluster_name, dce_resource_id): + from azure.cli.core.util import send_raw_request + dcr_name = get_default_dcr_name(cmd, mac_region, cluster_name) + dcr_resource_id = "/subscriptions/{0}/resourceGroups/{1}/providers/Microsoft.Insights/dataCollectionRules/{2}".format( + cluster_subscription, + cluster_resource_group_name, + dcr_name + ) + dcr_creation_body = json.dumps({"location": mac_region, + "kind": "Linux", + "properties": { + "dataCollectionEndpointId": dce_resource_id, + "dataSources": {"prometheusForwarder": [{"name": "PrometheusDataSource", "streams": ["Microsoft-PrometheusMetrics"], "labelIncludeFilter": {}}]}, + "dataFlows": [{"destinations": ["MonitoringAccount1"], "streams": ["Microsoft-PrometheusMetrics"]}], + "description": "DCR description", + "destinations": { + "monitoringAccounts": [{"accountResourceId": azure_monitor_workspace_resource_id, "name": "MonitoringAccount1"}]}}}) + armendpoint = cmd.cli_ctx.cloud.endpoints.resource_manager + dcr_url = f"{armendpoint}{dcr_resource_id}?api-version={DC_API}" + try: + headers = ['User-Agent=azuremonitormetrics.create_dcr'] + send_raw_request(cmd.cli_ctx, "PUT", + dcr_url, body=dcr_creation_body, headers=headers) + return dcr_resource_id + except CLIError as error: + raise error diff --git a/src/aks-preview/azext_aks_preview/azuremonitormetrics/dc/dcra_api.py b/src/aks-preview/azext_aks_preview/azuremonitormetrics/dc/dcra_api.py new file mode 100644 index 00000000000..c50fea6eb2f --- /dev/null +++ b/src/aks-preview/azext_aks_preview/azuremonitormetrics/dc/dcra_api.py @@ -0,0 +1,38 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- +import json +from azure.cli.command_modules.acs.azuremonitormetrics.constants import DC_API +from azure.cli.command_modules.acs.azuremonitormetrics.dc.defaults import get_default_dcra_name +from knack.util import CLIError + + +def create_dcra(cmd, cluster_region, cluster_subscription, cluster_resource_group_name, cluster_name, dcr_resource_id): + from azure.cli.core.util import send_raw_request + cluster_resource_id = "/subscriptions/{0}/resourceGroups/{1}/providers/Microsoft.ContainerService/managedClusters/{2}".format( + cluster_subscription, + cluster_resource_group_name, + cluster_name + ) + dcra_name = get_default_dcra_name(cmd, cluster_region, cluster_name) + dcra_resource_id = "/subscriptions/{0}/resourceGroups/{1}/providers/Microsoft.Insights/dataCollectionRuleAssociations/{2}".format( + cluster_subscription, + cluster_resource_group_name, + dcra_name + ) + # only create or delete the association between the DCR and cluster + association_body = json.dumps({"location": cluster_region, + "properties": { + "dataCollectionRuleId": dcr_resource_id, + "description": "Promtheus data collection association between DCR, DCE and target AKS resource" + }}) + armendpoint = cmd.cli_ctx.cloud.endpoints.resource_manager + association_url = f"{armendpoint}{cluster_resource_id}/providers/Microsoft.Insights/dataCollectionRuleAssociations/{dcra_name}?api-version={DC_API}" + try: + headers = ['User-Agent=azuremonitormetrics.create_dcra'] + send_raw_request(cmd.cli_ctx, "PUT", association_url, + body=association_body, headers=headers) + return dcra_resource_id + except CLIError as error: + raise error diff --git a/src/aks-preview/azext_aks_preview/azuremonitormetrics/dc/defaults.py b/src/aks-preview/azext_aks_preview/azuremonitormetrics/dc/defaults.py new file mode 100644 index 00000000000..6885ab3d374 --- /dev/null +++ b/src/aks-preview/azext_aks_preview/azuremonitormetrics/dc/defaults.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- +from azure.cli.command_modules.acs.azuremonitormetrics.constants import ( + DC_TYPE, + MapToClosestMACRegion +) +from azure.cli.command_modules.acs.azuremonitormetrics.deaults import get_default_region + + +# DCR = 64, DCE = 44, DCRA = 64 +# All DC* object names should end only in alpha numeric (after `length` trim) +# DCE remove underscore from cluster name +def sanitize_name(name, type, length): + length = length - 1 + if type == DC_TYPE.DCE: + name = name.replace("_", "") + name = name[0:length] + lastIndexAlphaNumeric = len(name) - 1 + while ((name[lastIndexAlphaNumeric].isalnum() is False) and lastIndexAlphaNumeric > -1): + lastIndexAlphaNumeric = lastIndexAlphaNumeric - 1 + if (lastIndexAlphaNumeric < 0): + return "" + return name[0:lastIndexAlphaNumeric + 1] + + +def get_default_dce_name(cmd, mac_region, cluster_name): + region = get_default_region(cmd) + if mac_region in MapToClosestMACRegion: + region = MapToClosestMACRegion[mac_region] + default_dce_name = "MSProm-" + region + "-" + cluster_name + return sanitize_name(default_dce_name, DC_TYPE.DCE, 44) + + +def get_default_dcra_name(cmd, cluster_region, cluster_name): + region = get_default_region(cmd) + if cluster_region in MapToClosestMACRegion: + region = MapToClosestMACRegion[cluster_region] + default_dcra_name = "ContainerInsightsMetricsExtension-" + region + "-" + cluster_name + return sanitize_name(default_dcra_name, DC_TYPE.DCRA, 64) diff --git a/src/aks-preview/azext_aks_preview/azuremonitormetrics/dc/delete.py b/src/aks-preview/azext_aks_preview/azuremonitormetrics/dc/delete.py new file mode 100644 index 00000000000..11a2bed0f7f --- /dev/null +++ b/src/aks-preview/azext_aks_preview/azuremonitormetrics/dc/delete.py @@ -0,0 +1,77 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- +import json +from azure.cli.command_modules.acs.azuremonitormetrics.constants import DC_API +from knack.util import CLIError + + +def get_dce_from_dcr(cmd, dcrId): + from azure.cli.core.util import send_raw_request + armendpoint = cmd.cli_ctx.cloud.endpoints.resource_manager + association_url = f"{armendpoint}{dcrId}?api-version={DC_API}" + headers = ['User-Agent=azuremonitormetrics.get_dce_from_dcr'] + r = send_raw_request(cmd.cli_ctx, "GET", association_url, headers=headers) + data = json.loads(r.text) + if 'dataCollectionEndpointId' in data['properties']: + return str(data['properties']['dataCollectionEndpointId']) + else: + return "" + + +def get_dc_objects_list(cmd, cluster_subscription, cluster_resource_group_name, cluster_name): + try: + from azure.cli.core.util import send_raw_request + cluster_resource_id = "/subscriptions/{0}/resourceGroups/{1}/providers/Microsoft.ContainerService/managedClusters/{2}".format( + cluster_subscription, + cluster_resource_group_name, + cluster_name + ) + armendpoint = cmd.cli_ctx.cloud.endpoints.resource_manager + association_url = f"{armendpoint}{cluster_resource_id}/providers/Microsoft.Insights/dataCollectionRuleAssociations?api-version={DC_API}" + headers = ['User-Agent=azuremonitormetrics.get_dcra'] + r = send_raw_request(cmd.cli_ctx, "GET", association_url, headers=headers) + data = json.loads(r.text) + dc_object_array = [] + for item in data['value']: + if 'properties' in item and 'dataCollectionRuleId' in item['properties']: + dce_id = get_dce_from_dcr(cmd, item['properties']['dataCollectionRuleId']) + dc_object_array.append({'name': item['name'], 'dataCollectionRuleId': item['properties']['dataCollectionRuleId'], 'dceId': dce_id}) + return dc_object_array + except CLIError as e: + error = e + raise CLIError(error) + + +def delete_dc_objects_if_prometheus_enabled(cmd, dc_objects_list, cluster_subscription, cluster_resource_group_name, cluster_name): + from azure.cli.core.util import send_raw_request + cluster_resource_id = "/subscriptions/{0}/resourceGroups/{1}/providers/Microsoft.ContainerService/managedClusters/{2}".format( + cluster_subscription, + cluster_resource_group_name, + cluster_name + ) + for item in dc_objects_list: + armendpoint = cmd.cli_ctx.cloud.endpoints.resource_manager + association_url = f"{armendpoint}{item['dataCollectionRuleId']}?api-version={DC_API}" + try: + headers = ['User-Agent=azuremonitormetrics.get_dcr_if_prometheus_enabled'] + r = send_raw_request(cmd.cli_ctx, "GET", association_url, headers=headers) + data = json.loads(r.text) + if 'microsoft-prometheusmetrics' in [stream.lower() for stream in data['properties']['dataFlows'][0]['streams']]: + # delete DCRA + armendpoint = cmd.cli_ctx.cloud.endpoints.resource_manager + url = f"{armendpoint}{cluster_resource_id}/providers/Microsoft.Insights/dataCollectionRuleAssociations/{item['name']}?api-version={DC_API}" + headers = ['User-Agent=azuremonitormetrics.delete_dcra'] + send_raw_request(cmd.cli_ctx, "DELETE", url, headers=headers) + # delete DCR + url = f"{armendpoint}{item['dataCollectionRuleId']}?api-version={DC_API}" + headers = ['User-Agent=azuremonitormetrics.delete_dcr'] + send_raw_request(cmd.cli_ctx, "DELETE", url, headers=headers) + # delete DCE + url = f"{armendpoint}{item['dceId']}?api-version={DC_API}" + headers = ['User-Agent=azuremonitormetrics.delete_dce'] + send_raw_request(cmd.cli_ctx, "DELETE", url, headers=headers) + except CLIError as e: + error = e + raise CLIError(error) diff --git a/src/aks-preview/azext_aks_preview/azuremonitormetrics/deaults.py b/src/aks-preview/azext_aks_preview/azuremonitormetrics/deaults.py new file mode 100644 index 00000000000..2e338217c2a --- /dev/null +++ b/src/aks-preview/azext_aks_preview/azuremonitormetrics/deaults.py @@ -0,0 +1,14 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- +from knack.util import CLIError + + +def get_default_region(cmd): + cloud_name = cmd.cli_ctx.cloud.name + if cloud_name.lower() == 'azurechinacloud': + raise CLIError("Azure China Cloud is not supported for the Azure Monitor Metrics addon") + if cloud_name.lower() == 'azureusgovernment': + return "usgovvirginia" + return "eastus" diff --git a/src/aks-preview/azext_aks_preview/azuremonitormetrics/helper.py b/src/aks-preview/azext_aks_preview/azuremonitormetrics/helper.py new file mode 100644 index 00000000000..76a48423782 --- /dev/null +++ b/src/aks-preview/azext_aks_preview/azuremonitormetrics/helper.py @@ -0,0 +1,98 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- +import json +from knack.util import CLIError +from azure.cli.core.azclierror import ( + UnknownError +) +from azure.cli.command_modules.acs.azuremonitormetrics.constants import ( + RP_API, + AKS_CLUSTER_API +) + + +def sanitize_resource_id(resource_id): + resource_id = resource_id.strip() + if not resource_id.startswith("/"): + resource_id = "/" + resource_id + if resource_id.endswith("/"): + resource_id = resource_id.rstrip("/") + return resource_id.lower() + + +def post_request(cmd, subscription_id, rp_name, headers): + from azure.cli.core.util import send_raw_request + armendpoint = cmd.cli_ctx.cloud.endpoints.resource_manager + customUrl = "{0}/subscriptions/{1}/providers/{2}/register?api-version={3}".format( + armendpoint, + subscription_id, + rp_name, + RP_API, + ) + try: + send_raw_request(cmd.cli_ctx, "POST", customUrl, headers=headers) + except CLIError as e: + raise CLIError(e) + + +def rp_registrations(cmd, subscription_id): + from azure.cli.core.util import send_raw_request + # Get list of RP's for RP's subscription + try: + headers = ['User-Agent=azuremonitormetrics.get_mac_sub_list'] + armendpoint = cmd.cli_ctx.cloud.endpoints.resource_manager + customUrl = "{0}/subscriptions/{1}/providers?api-version={2}&$select=namespace,registrationstate".format( + armendpoint, + subscription_id, + RP_API + ) + r = send_raw_request(cmd.cli_ctx, "GET", customUrl, headers=headers) + except CLIError as e: + raise CLIError(e) + isInsightsRpRegistered = False + isAlertsManagementRpRegistered = False + isMoniotrRpRegistered = False + isDashboardRpRegistered = False + json_response = json.loads(r.text) + values_array = json_response["value"] + for value in values_array: + if value["namespace"].lower() == "microsoft.insights" and value["registrationState"].lower() == "registered": + isInsightsRpRegistered = True + if value["namespace"].lower() == "microsoft.alertsmanagement" and value["registrationState"].lower() == "registered": + isAlertsManagementRpRegistered = True + if value["namespace"].lower() == "microsoft.monitor" and value["registrationState"].lower() == "registered": + isAlertsManagementRpRegistered = True + if value["namespace"].lower() == "microsoft.dashboard" and value["registrationState"].lower() == "registered": + isAlertsManagementRpRegistered = True + if isInsightsRpRegistered is False: + headers = ['User-Agent=azuremonitormetrics.register_insights_rp'] + post_request(cmd, subscription_id, "microsoft.insights", headers) + if isAlertsManagementRpRegistered is False: + headers = ['User-Agent=azuremonitormetrics.register_alertsmanagement_rp'] + post_request(cmd, subscription_id, "microsoft.alertsmanagement", headers) + if isMoniotrRpRegistered is False: + headers = ['User-Agent=azuremonitormetrics.register_monitor_rp'] + post_request(cmd, subscription_id, "microsoft.monitor", headers) + if isDashboardRpRegistered is False: + headers = ['User-Agent=azuremonitormetrics.register_dashboard_rp'] + post_request(cmd, subscription_id, "microsoft.dashboard", headers) + + +def check_azuremonitormetrics_profile(cmd, cluster_subscription, cluster_resource_group_name, cluster_name): + from azure.cli.core.util import send_raw_request + armendpoint = cmd.cli_ctx.cloud.endpoints.resource_manager + feature_check_url = f"{armendpoint}/subscriptions/{cluster_subscription}/resourceGroups/{cluster_resource_group_name}/providers/Microsoft.ContainerService/managedClusters/{cluster_name}?api-version={AKS_CLUSTER_API}" + try: + headers = ['User-Agent=azuremonitormetrics.check_azuremonitormetrics_profile'] + r = send_raw_request(cmd.cli_ctx, "GET", feature_check_url, + body={}, headers=headers) + except CLIError as e: + raise UnknownError(e) + json_response = json.loads(r.text) + values_array = json_response["properties"] + if "azureMonitorProfile" in values_array: + if "metrics" in values_array["azureMonitorProfile"]: + if values_array["azureMonitorProfile"]["metrics"]["enabled"] is True: + raise CLIError(f"Azure Monitor Metrics is already enabled for this cluster. Please use `az aks update --disable-azuremonitormetrics -g {cluster_resource_group_name} -n {cluster_name}` and then try enabling.") diff --git a/src/aks-preview/azext_aks_preview/azuremonitormetrics/recordingrules/create.py b/src/aks-preview/azext_aks_preview/azuremonitormetrics/recordingrules/create.py new file mode 100644 index 00000000000..5765e250404 --- /dev/null +++ b/src/aks-preview/azext_aks_preview/azuremonitormetrics/recordingrules/create.py @@ -0,0 +1,106 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- +import json +from azure.cli.command_modules.acs.azuremonitormetrics.constants import ALERTS_API, RULES_API +from knack.util import CLIError + + +def get_recording_rules_template(cmd, azure_monitor_workspace_resource_id): + from azure.cli.core.util import send_raw_request + headers = ['User-Agent=azuremonitormetrics.get_recording_rules_template'] + armendpoint = cmd.cli_ctx.cloud.endpoints.resource_manager + url = f"{armendpoint}{azure_monitor_workspace_resource_id}/providers/microsoft.alertsManagement/alertRuleRecommendations?api-version={ALERTS_API}" + r = send_raw_request(cmd.cli_ctx, "GET", url, headers=headers) + data = json.loads(r.text) + return data['value'] + + +def put_rules(cmd, default_rule_group_id, default_rule_group_name, mac_region, azure_monitor_workspace_resource_id, cluster_name, default_rules_template, url, i): + from azure.cli.core.util import send_raw_request + body = json.dumps({ + "id": default_rule_group_id, + "name": default_rule_group_name, + "type": "Microsoft.AlertsManagement/prometheusRuleGroups", + "location": mac_region, + "properties": { + "scopes": [ + azure_monitor_workspace_resource_id + ], + "enabled": True, + "clusterName": cluster_name, + "interval": "PT1M", + "rules": default_rules_template[i]["properties"]["rulesArmTemplate"]["resources"][0]["properties"]["rules"] + } + }) + for _ in range(3): + try: + headers = ['User-Agent=azuremonitormetrics.put_rules.' + default_rule_group_name] + send_raw_request(cmd.cli_ctx, "PUT", url, + body=body, headers=headers) + break + except CLIError as e: + error = e + else: + raise error + + +def create_rules(cmd, cluster_subscription, cluster_resource_group_name, cluster_name, azure_monitor_workspace_resource_id, mac_region, raw_parameters): + # with urllib.request.urlopen("https://defaultrulessc.blob.core.windows.net/defaultrules/ManagedPrometheusDefaultRecordingRules.json") as url: + # default_rules_template = json.loads(url.read().decode()) + default_rules_template = get_recording_rules_template(cmd, azure_monitor_workspace_resource_id) + default_rule_group_name = "NodeRecordingRulesRuleGroup-{0}".format(cluster_name) + default_rule_group_id = "/subscriptions/{0}/resourceGroups/{1}/providers/Microsoft.AlertsManagement/prometheusRuleGroups/{2}".format( + cluster_subscription, + cluster_resource_group_name, + default_rule_group_name + ) + url = "{0}{1}?api-version={2}".format( + cmd.cli_ctx.cloud.endpoints.resource_manager, + default_rule_group_id, + RULES_API + ) + put_rules(cmd, default_rule_group_id, default_rule_group_name, mac_region, azure_monitor_workspace_resource_id, cluster_name, default_rules_template, url, 0) + + default_rule_group_name = "KubernetesRecordingRulesRuleGroup-{0}".format(cluster_name) + default_rule_group_id = "/subscriptions/{0}/resourceGroups/{1}/providers/Microsoft.AlertsManagement/prometheusRuleGroups/{2}".format( + cluster_subscription, + cluster_resource_group_name, + default_rule_group_name + ) + url = "{0}{1}?api-version={2}".format( + cmd.cli_ctx.cloud.endpoints.resource_manager, + default_rule_group_id, + RULES_API + ) + put_rules(cmd, default_rule_group_id, default_rule_group_name, mac_region, azure_monitor_workspace_resource_id, cluster_name, default_rules_template, url, 1) + + enable_windows_recording_rules = raw_parameters.get("enable_windows_recording_rules") + + if enable_windows_recording_rules is True: + default_rule_group_name = "NodeRecordingRulesRuleGroup-Win-{0}".format(cluster_name) + default_rule_group_id = "/subscriptions/{0}/resourceGroups/{1}/providers/Microsoft.AlertsManagement/prometheusRuleGroups/{2}".format( + cluster_subscription, + cluster_resource_group_name, + default_rule_group_name + ) + url = "{0}{1}?api-version={2}".format( + cmd.cli_ctx.cloud.endpoints.resource_manager, + default_rule_group_id, + RULES_API + ) + put_rules(cmd, default_rule_group_id, default_rule_group_name, mac_region, azure_monitor_workspace_resource_id, cluster_name, default_rules_template, url, 2) + + default_rule_group_name = "NodeAndKubernetesRecordingRulesRuleGroup-Win-{0}".format(cluster_name) + default_rule_group_id = "/subscriptions/{0}/resourceGroups/{1}/providers/Microsoft.AlertsManagement/prometheusRuleGroups/{2}".format( + cluster_subscription, + cluster_resource_group_name, + default_rule_group_name + ) + url = "{0}{1}?api-version={2}".format( + cmd.cli_ctx.cloud.endpoints.resource_manager, + default_rule_group_id, + RULES_API + ) + put_rules(cmd, default_rule_group_id, default_rule_group_name, mac_region, azure_monitor_workspace_resource_id, cluster_name, default_rules_template, url, 3) diff --git a/src/aks-preview/azext_aks_preview/azuremonitormetrics/recordingrules/delete.py b/src/aks-preview/azext_aks_preview/azuremonitormetrics/recordingrules/delete.py new file mode 100644 index 00000000000..befd4eba61e --- /dev/null +++ b/src/aks-preview/azext_aks_preview/azuremonitormetrics/recordingrules/delete.py @@ -0,0 +1,28 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- +from azure.cli.command_modules.acs.azuremonitormetrics.constants import RULES_API + + +def delete_rule(cmd, cluster_subscription, cluster_resource_group_name, default_rule_group_name): + from azure.cli.core.util import send_raw_request + default_rule_group_id = "/subscriptions/{0}/resourceGroups/{1}/providers/Microsoft.AlertsManagement/prometheusRuleGroups/{2}".format( + cluster_subscription, + cluster_resource_group_name, + default_rule_group_name + ) + headers = ['User-Agent=azuremonitormetrics.delete_rule.' + default_rule_group_name] + url = "{0}{1}?api-version={2}".format( + cmd.cli_ctx.cloud.endpoints.resource_manager, + default_rule_group_id, + RULES_API + ) + send_raw_request(cmd.cli_ctx, "DELETE", url, headers=headers) + + +def delete_rules(cmd, cluster_subscription, cluster_resource_group_name, cluster_name): + delete_rule(cmd, cluster_subscription, cluster_resource_group_name, "NodeRecordingRulesRuleGroup-{0}".format(cluster_name)) + delete_rule(cmd, cluster_subscription, cluster_resource_group_name, "KubernetesRecordingRulesRuleGroup-{0}".format(cluster_name)) + delete_rule(cmd, cluster_subscription, cluster_resource_group_name, "NodeRecordingRulesRuleGroup-Win-{0}".format(cluster_name)) + delete_rule(cmd, cluster_subscription, cluster_resource_group_name, "NodeAndKubernetesRecordingRulesRuleGroup-Win-{0}".format(cluster_name)) diff --git a/src/aks-preview/azext_aks_preview/azuremonitormetrics/responseparsers/amwlocationresponseparser.py b/src/aks-preview/azext_aks_preview/azuremonitormetrics/responseparsers/amwlocationresponseparser.py new file mode 100644 index 00000000000..0485fe9160f --- /dev/null +++ b/src/aks-preview/azext_aks_preview/azuremonitormetrics/responseparsers/amwlocationresponseparser.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- +from typing import List + + +def parseResourceProviderResponseForLocations(resourceProviderResponse): + supportedLocationMap = {} + if not resourceProviderResponse.get('resourceTypes'): + return supportedLocationMap + resourceTypesRawArr = resourceProviderResponse['resourceTypes'] + for resourceTypeResponse in resourceTypesRawArr: + if resourceTypeResponse['resourceType'] == 'accounts': + supportedLocationMap = parseLocations(resourceTypeResponse['locations']) + return supportedLocationMap + + +def parseLocations(locations: List[str]) -> List[str]: + if not locations or not len(locations): + return [] + return list(map(lambda location: reduceLocation(location), locations)) + + +def reduceLocation(location: str) -> str: + if not location: + return location + location = location.replace(' ', '').lower() + return location diff --git a/src/aks-preview/azext_aks_preview/azuremonitorprofile.py b/src/aks-preview/azext_aks_preview/azuremonitorprofile.py index e27c12d3fda..ec3f46d72c3 100644 --- a/src/aks-preview/azext_aks_preview/azuremonitorprofile.py +++ b/src/aks-preview/azext_aks_preview/azuremonitorprofile.py @@ -2,696 +2,44 @@ # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- -import json -import urllib.request -import uuid -import re -from sre_constants import FAILURE, SUCCESS - +from azure.cli.command_modules.acs.azuremonitormetrics.addonput import addon_put +from azure.cli.command_modules.acs.azuremonitormetrics.amg.link import link_grafana_instance +from azure.cli.command_modules.acs.azuremonitormetrics.amw.helper import get_azure_monitor_workspace_resource +from azure.cli.command_modules.acs.azuremonitormetrics.dc.dce_api import create_dce +from azure.cli.command_modules.acs.azuremonitormetrics.dc.dcr_api import create_dcr +from azure.cli.command_modules.acs.azuremonitormetrics.dc.dcra_api import create_dcra +from azure.cli.command_modules.acs.azuremonitormetrics.dc.delete import delete_dc_objects_if_prometheus_enabled, get_dc_objects_list +from azure.cli.command_modules.acs.azuremonitormetrics.helper import check_azuremonitormetrics_profile, rp_registrations +from azure.cli.command_modules.acs.azuremonitormetrics.recordingrules.create import create_rules +from azure.cli.command_modules.acs.azuremonitormetrics.recordingrules.delete import delete_rules from knack.util import CLIError -from azure.cli.core.azclierror import ( - UnknownError, - ClientRequestError, - InvalidArgumentValueError -) -from ._client_factory import get_resources_client, get_resource_groups_client -from enum import Enum -from six import with_metaclass -from azure.core import CaseInsensitiveEnumMeta -from azure.core.exceptions import HttpResponseError - -AKS_CLUSTER_API = "2022-07-02-preview" -MAC_API = "2021-06-03-preview" -DC_API = "2021-09-01-preview" -GRAFANA_API = "2022-08-01" -GRAFANA_ROLE_ASSIGNMENT_API = "2018-01-01-preview" -RULES_API = "2021-07-22-preview" -FEATURE_API = "2020-09-01" -RP_API = "2019-08-01" - - -class GrafanaLink(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): - """ - Status of Grafana link to the Prometheus Addon - """ - SUCCESS = "SUCCESS" - FAILURE = "FAILURE" - ALREADYPRESENT = "ALREADYPRESENT" - NOPARAMPROVIDED = "NOPARAMPROVIDED" - - -class DC_TYPE(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): - """ - Types of DC* objects - """ - DCE = "DCE" - DCR = "DCR" - DCRA = "DCRA" - - -MapToClosestMACRegion = { - "australiacentral": "eastus", - "australiacentral2": "eastus", - "australiaeast": "eastus", - "australiasoutheast": "eastus", - "brazilsouth": "eastus", - "canadacentral": "eastus", - "canadaeast": "eastus", - "centralus": "centralus", - "centralindia": "centralindia", - "eastasia": "westeurope", - "eastus": "eastus", - "eastus2": "eastus2", - "francecentral": "westeurope", - "francesouth": "westeurope", - "japaneast": "eastus", - "japanwest": "eastus", - "koreacentral": "westeurope", - "koreasouth": "westeurope", - "northcentralus": "eastus", - "northeurope": "westeurope", - "southafricanorth": "westeurope", - "southafricawest": "westeurope", - "southcentralus": "eastus", - "southeastasia": "westeurope", - "southindia": "centralindia", - "uksouth": "westeurope", - "ukwest": "westeurope", - "westcentralus": "eastus", - "westeurope": "westeurope", - "westindia": "centralindia", - "westus": "westus", - "westus2": "westus2", - "westus3": "westus", - "norwayeast": "westeurope", - "norwaywest": "westeurope", - "switzerlandnorth": "westeurope", - "switzerlandwest": "westeurope", - "uaenorth": "westeurope", - "germanywestcentral": "westeurope", - "germanynorth": "westeurope", - "uaecentral": "westeurope", - "eastus2euap": "eastus2euap", - "centraluseuap": "westeurope", - "brazilsoutheast": "eastus", - "jioindiacentral": "centralindia", - "swedencentral": "westeurope", - "swedensouth": "westeurope", - "qatarcentral": "westeurope" -} - - -AzureCloudLocationToOmsRegionCodeMap = { - "australiasoutheast": "SEAU", - "australiaeast": "EAU", - "australiacentral": "CAU", - "australiacentral2": "CBR2", - "canadacentral": "CCA", - "centralindia": "CID", - "southindia": "MA", - "centralus": "CUS", - "eastasia": "EA", - "eastus": "EUS", - "eastus2": "EUS2", - "eastus2euap": "EUS2P", - "francecentral": "PAR", - "francesouth": "MRS", - "japaneast": "EJP", - "koreacentral": "SE", - "northeurope": "NEU", - "southcentralus": "SCUS", - "southeastasia": "SEA", - "uksouth": "SUK", - "usgovvirginia": "USGV", - "westcentralus": "WCUS", - "westeurope": "WEU", - "westus": "WUS", - "westus2": "WUS2", - "westus3": "WUS3", - "brazilsouth": "CQ", - "brazilsoutheast": "BRSE", - "norwayeast": "NOE", - "southafricanorth": "JNB", - "northcentralus": "NCUS", - "uaenorth": "DXB", - "germanywestcentral": "DEWC", - "ukwest": "WUK", - "swedencentral": "SEC", - "switzerlandnorth": "CHN", - "switzerlandwest": "CHW", - "uaecentral": "AUH", - "norwaywest": "NOW", - "japanwest": "OS", - "centraluseuap": "CDM", - "canadaeast": "YQ", - "koreasouth": "PS", - "jioindiacentral": "JINC", - "swedensouth": "SES", - "qatarcentral": "QAC", - "southafricawest": "CPT" -} - - -def check_azuremonitormetrics_profile(cmd, cluster_subscription, cluster_resource_group_name, cluster_name): - from azure.cli.core.util import send_raw_request - feature_check_url = f"https://management.azure.com/subscriptions/{cluster_subscription}/resourceGroups/{cluster_resource_group_name}/providers/Microsoft.ContainerService/managedClusters/{cluster_name}?api-version={AKS_CLUSTER_API}" - try: - headers = ['User-Agent=azuremonitormetrics.check_azuremonitormetrics_profile'] - r = send_raw_request(cmd.cli_ctx, "GET", feature_check_url, - body={}, headers=headers) - except CLIError as e: - raise UnknownError(e) - json_response = json.loads(r.text) - values_array = json_response["properties"] - if "azureMonitorProfile" in values_array: - if "metrics" in values_array["azureMonitorProfile"]: - if values_array["azureMonitorProfile"]["metrics"]["enabled"] is True: - raise CLIError(f"Azure Monitor Metrics is already enabled for this cluster. Please use `az aks update --disable-azuremonitormetrics -g {cluster_resource_group_name} -n {cluster_name}` and then try enabling.") - - -# check if `az feature register --namespace Microsoft.ContainerService --name AKS-PrometheusAddonPreview` is Registered -def check_azuremonitoraddon_feature(cmd, cluster_subscription, raw_parameters): - aks_custom_headers = raw_parameters.get("aks_custom_headers") - if (aks_custom_headers is not None) and ("aks-prometheusaddonpreview" in aks_custom_headers.lower()): - return - from azure.cli.core.util import send_raw_request - feature_check_url = f"https://management.azure.com/subscriptions/{cluster_subscription}/providers/Microsoft.Features/subscriptionFeatureRegistrations?api-version={FEATURE_API}&featurename=AKS-PrometheusAddonPreview" - try: - headers = ['User-Agent=azuremonitormetrics.check_azuremonitoraddon_feature'] - r = send_raw_request(cmd.cli_ctx, "GET", feature_check_url, - body={}, headers=headers) - except CLIError as e: - raise UnknownError(e) - json_response = json.loads(r.text) - values_array = json_response["value"] - for value in values_array: - if value["properties"]["providerNamespace"].lower() == "microsoft.containerservice" and value["properties"]["state"].lower() == "registered": - return - raise CLIError("Please enable the feature AKS-PrometheusAddonPreview on your subscription using `az feature register --namespace Microsoft.ContainerService --name AKS-PrometheusAddonPreview` to use this feature.\ - If this feature was recently registered then please wait upto 5 mins for the feature registration to finish") - - -# All DC* objects are 44 length -# All DC* object names should end only in alpha numeric (after 44 char trim) -# DCE remove underscore from cluster name -def sanitize_name(name, type): - if type == DC_TYPE.DCE: - name = name.replace("_", "") - name = name[0:43] - lastIndexAlphaNumeric = len(name) - 1 - while ((name[lastIndexAlphaNumeric].isalnum() is False) and lastIndexAlphaNumeric > -1): - lastIndexAlphaNumeric = lastIndexAlphaNumeric - 1 - if (lastIndexAlphaNumeric < 0): - return "" - - return name[0:lastIndexAlphaNumeric + 1] - - -def sanitize_resource_id(resource_id): - resource_id = resource_id.strip() - if not resource_id.startswith("/"): - resource_id = "/" + resource_id - if resource_id.endswith("/"): - resource_id = resource_id.rstrip("/") - return resource_id.lower() - - -def get_default_mac_region(cluster_region): - if cluster_region in MapToClosestMACRegion: - return MapToClosestMACRegion[cluster_region] - return "eastus" - - -def get_default_mac_region_code(cluster_region): - return AzureCloudLocationToOmsRegionCodeMap[get_default_mac_region(cluster_region)] +from azure.cli.core.azclierror import InvalidArgumentValueError -def get_default_mac_name(cluster_region): - default_mac_name = "DefaultAzureMonitorWorkspace-" + get_default_mac_region_code(cluster_region) - default_mac_name = default_mac_name[0:43] - return default_mac_name - - -def create_default_mac(cmd, cluster_subscription, cluster_region): - from azure.cli.core.util import send_raw_request - default_mac_name = get_default_mac_name(cluster_region) - default_resource_group_name = "DefaultResourceGroup-{0}".format(get_default_mac_region_code(cluster_region)) - azure_monitor_workspace_resource_id = "/subscriptions/{0}/resourceGroups/{1}/providers/microsoft.monitor/accounts/{2}".format(cluster_subscription, default_resource_group_name, default_mac_name) - # Check if default resource group exists or not, if it does not then create it - resource_groups = get_resource_groups_client(cmd.cli_ctx, cluster_subscription) - resources = get_resources_client(cmd.cli_ctx, cluster_subscription) - - if resource_groups.check_existence(default_resource_group_name): - try: - resources.get_by_id(azure_monitor_workspace_resource_id, MAC_API) - # If MAC already exists then return from here - return azure_monitor_workspace_resource_id - except HttpResponseError as ex: - if ex.status_code != 404: - raise ex - else: - resource_groups.create_or_update(default_resource_group_name, {"location": get_default_mac_region(cluster_region)}) - association_body = json.dumps({"location": get_default_mac_region(cluster_region), "properties": {}}) - association_url = f"https://management.azure.com{azure_monitor_workspace_resource_id}?api-version={MAC_API}" - try: - headers = ['User-Agent=azuremonitormetrics.create_default_mac'] - send_raw_request(cmd.cli_ctx, "PUT", association_url, - body=association_body, headers=headers) - return azure_monitor_workspace_resource_id - except CLIError as e: - raise e - - -def get_azure_monitor_workspace_resource_id(cmd, cluster_subscription, cluster_region, raw_parameters): - azure_monitor_workspace_resource_id = raw_parameters.get("azure_monitor_workspace_resource_id") - if azure_monitor_workspace_resource_id is None or azure_monitor_workspace_resource_id == "": - azure_monitor_workspace_resource_id = create_default_mac(cmd, cluster_subscription, cluster_region) - else: - azure_monitor_workspace_resource_id = sanitize_resource_id(azure_monitor_workspace_resource_id) - return azure_monitor_workspace_resource_id.lower() - - -def get_default_dce_name(mac_region, cluster_name): - region_code = "EUS" - if mac_region in AzureCloudLocationToOmsRegionCodeMap: - region_code = AzureCloudLocationToOmsRegionCodeMap[mac_region] - default_dce_name = "MSProm-" + region_code + "-" + cluster_name - return sanitize_name(default_dce_name, DC_TYPE.DCE) - - -def get_default_dcr_name(mac_region, cluster_name): - region_code = "EUS" - if mac_region in AzureCloudLocationToOmsRegionCodeMap: - region_code = AzureCloudLocationToOmsRegionCodeMap[mac_region] - default_dcr_name = "MSProm-" + region_code + "-" + cluster_name - return sanitize_name(default_dcr_name, DC_TYPE.DCR) - - -def get_default_dcra_name(cluster_region, cluster_name): - region_code = "EUS" - if cluster_region in AzureCloudLocationToOmsRegionCodeMap: - region_code = AzureCloudLocationToOmsRegionCodeMap[cluster_region] - default_dcra_name = "MSProm-" + region_code + "-" + cluster_name - return sanitize_name(default_dcra_name, DC_TYPE.DCRA) - - -def get_mac_region(cmd, azure_monitor_workspace_resource_id): - from azure.cli.core.util import send_raw_request - from azure.core.exceptions import HttpResponseError - # region of MAC can be different from region of RG so find the location of the azure_monitor_workspace_resource_id - mac_subscription_id = azure_monitor_workspace_resource_id.split("/")[2] - resources = get_resources_client(cmd.cli_ctx, mac_subscription_id) - try: - resource = resources.get_by_id( - azure_monitor_workspace_resource_id, MAC_API) - mac_location = resource.location.lower() - except HttpResponseError as ex: - raise ex - return mac_location - - -def create_dce(cmd, cluster_subscription, cluster_resource_group_name, cluster_name, mac_region): - from azure.cli.core.util import send_raw_request - dce_name = get_default_dce_name(mac_region, cluster_name) - dce_resource_id = "/subscriptions/{0}/resourceGroups/{1}/providers/Microsoft.Insights/dataCollectionEndpoints/{2}".format(cluster_subscription, cluster_resource_group_name, dce_name) - for _ in range(3): - try: - dce_url = f"https://management.azure.com{dce_resource_id}?api-version={DC_API}" - dce_creation_body = json.dumps({"name": dce_name, - "location": mac_region, - "kind": "Linux", - "properties": {}}) - headers = ['User-Agent=azuremonitormetrics.create_dce'] - send_raw_request(cmd.cli_ctx, "PUT", - dce_url, body=dce_creation_body, headers=headers) - error = None - return dce_resource_id - except CLIError as e: - error = e - else: - raise error - - -# pylint: disable=too-many-locals,too-many-branches,too-many-statements,line-too-long -def create_dcr(cmd, mac_region, azure_monitor_workspace_resource_id, cluster_subscription, cluster_resource_group_name, cluster_name, dce_resource_id): - from azure.cli.core.util import send_raw_request - dcr_name = get_default_dcr_name(mac_region, cluster_name) - dcr_resource_id = "/subscriptions/{0}/resourceGroups/{1}/providers/Microsoft.Insights/dataCollectionRules/{2}".format( - cluster_subscription, - cluster_resource_group_name, - dcr_name - ) - dcr_creation_body = json.dumps({"location": mac_region, - "kind": "Linux", - "properties": { - "dataCollectionEndpointId": dce_resource_id, - "dataSources": {"prometheusForwarder": [{"name": "PrometheusDataSource", "streams": ["Microsoft-PrometheusMetrics"], "labelIncludeFilter": {}}]}, - "dataFlows": [{"destinations": ["MonitoringAccount1"], "streams": ["Microsoft-PrometheusMetrics"]}], - "description": "DCR description", - "destinations": { - "monitoringAccounts": [{"accountResourceId": azure_monitor_workspace_resource_id, "name": "MonitoringAccount1"}]}}}) - dcr_url = f"https://management.azure.com{dcr_resource_id}?api-version={DC_API}" - for _ in range(3): - try: - headers = ['User-Agent=azuremonitormetrics.create_dcr'] - send_raw_request(cmd.cli_ctx, "PUT", - dcr_url, body=dcr_creation_body, headers=headers) - error = None - return dcr_resource_id - except CLIError as e: - error = e - else: - raise error - - -def create_dcra(cmd, cluster_region, cluster_subscription, cluster_resource_group_name, cluster_name, dcr_resource_id): - from azure.cli.core.util import send_raw_request - cluster_resource_id = "/subscriptions/{0}/resourceGroups/{1}/providers/Microsoft.ContainerService/managedClusters/{2}".format( - cluster_subscription, - cluster_resource_group_name, - cluster_name - ) - dcra_name = get_default_dcra_name(cluster_region, cluster_name) - dcra_resource_id = "/subscriptions/{0}/resourceGroups/{1}/providers/Microsoft.Insights/dataCollectionRuleAssociations/{2}".format( - cluster_subscription, - cluster_resource_group_name, - dcra_name - ) - # only create or delete the association between the DCR and cluster - association_body = json.dumps({"location": cluster_region, - "properties": { - "dataCollectionRuleId": dcr_resource_id, - "description": "Promtheus data collection association between DCR, DCE and target AKS resource" - }}) - association_url = f"https://management.azure.com{cluster_resource_id}/providers/Microsoft.Insights/dataCollectionRuleAssociations/{dcra_name}?api-version={DC_API}" - for _ in range(3): - try: - headers = ['User-Agent=azuremonitormetrics.create_dcra'] - send_raw_request(cmd.cli_ctx, "PUT", association_url, - body=association_body, headers=headers) - error = None - return dcra_resource_id - except CLIError as e: - error = e - else: - raise error - - -def link_grafana_instance(cmd, raw_parameters, azure_monitor_workspace_resource_id): - from azure.cli.core.util import send_raw_request - # GET grafana principal ID - try: - grafana_resource_id = raw_parameters.get("grafana_resource_id") - if grafana_resource_id is None or grafana_resource_id == "": - return GrafanaLink.NOPARAMPROVIDED - grafana_resource_id = sanitize_resource_id(grafana_resource_id) - grafanaURI = "https://management.azure.com{0}?api-version={1}".format( - grafana_resource_id, - GRAFANA_API - ) - headers = ['User-Agent=azuremonitormetrics.link_grafana_instance'] - grafanaArmResponse = send_raw_request(cmd.cli_ctx, "GET", grafanaURI, body={}, headers=headers) - servicePrincipalId = grafanaArmResponse.json()["identity"]["principalId"] - except CLIError as e: - raise CLIError(e) - # Add Role Assignment - try: - MonitoringDataReader = "b0d8363b-8ddd-447d-831f-62ca05bff136" - roleDefinitionURI = "https://management.azure.com{0}/providers/Microsoft.Authorization/roleAssignments/{1}?api-version={2}".format( - azure_monitor_workspace_resource_id, - uuid.uuid4(), - GRAFANA_ROLE_ASSIGNMENT_API - ) - roleDefinitionId = "{0}/providers/Microsoft.Authorization/roleDefinitions/{1}".format( - azure_monitor_workspace_resource_id, - MonitoringDataReader - ) - association_body = json.dumps({"properties": {"roleDefinitionId": roleDefinitionId, "principalId": servicePrincipalId}}) - headers = ['User-Agent=azuremonitormetrics.add_role_assignment'] - send_raw_request(cmd.cli_ctx, "PUT", roleDefinitionURI, body=association_body, headers=headers) - except CLIError as e: - if e.response.status_code != 409: - erroString = "Role Assingment failed. Please manually assign the `Monitoring Data Reader` role to the Azure Monitor Workspace ({0}) for the Azure Managed Grafana System Assigned Managed Identity ({1})".format( - azure_monitor_workspace_resource_id, - servicePrincipalId - ) - print(erroString) - # Setting up AMW Integration - targetGrafanaArmPayload = grafanaArmResponse.json() - if targetGrafanaArmPayload["properties"] is None: - raise CLIError("Invalid grafana payload to add AMW integration") - if "grafanaIntegrations" not in json.dumps(targetGrafanaArmPayload): - targetGrafanaArmPayload["properties"]["grafanaIntegrations"] = {} - if "azureMonitorWorkspaceIntegrations" not in json.dumps(targetGrafanaArmPayload): - targetGrafanaArmPayload["properties"]["grafanaIntegrations"]["azureMonitorWorkspaceIntegrations"] = [] - amwIntegrations = targetGrafanaArmPayload["properties"]["grafanaIntegrations"]["azureMonitorWorkspaceIntegrations"] - if amwIntegrations != [] and azure_monitor_workspace_resource_id in json.dumps(amwIntegrations).lower(): - return GrafanaLink.ALREADYPRESENT - try: - grafanaURI = "https://management.azure.com{0}?api-version={1}".format( - grafana_resource_id, - GRAFANA_API - ) - targetGrafanaArmPayload["properties"]["grafanaIntegrations"]["azureMonitorWorkspaceIntegrations"].append({"azureMonitorWorkspaceResourceId": azure_monitor_workspace_resource_id}) - targetGrafanaArmPayload = json.dumps(targetGrafanaArmPayload) - headers = ['User-Agent=azuremonitormetrics.setup_amw_grafana_integration', 'Content-Type=application/json'] - send_raw_request(cmd.cli_ctx, "PUT", grafanaURI, body=targetGrafanaArmPayload, headers=headers) - except CLIError as e: - raise CLIError(e) - return GrafanaLink.SUCCESS - - -def put_rules(cmd, default_rule_group_id, default_rule_group_name, mac_region, azure_monitor_workspace_resource_id, cluster_name, default_rules_template, url, i): - from azure.cli.core.util import send_raw_request - body = json.dumps({ - "id": default_rule_group_id, - "name": default_rule_group_name, - "type": "Microsoft.AlertsManagement/prometheusRuleGroups", - "location": mac_region, - "properties": { - "scopes": [ - azure_monitor_workspace_resource_id - ], - "enabled": True, - "clusterName": cluster_name, - "interval": "PT1M", - "rules": default_rules_template["resources"][i]["properties"]["rules"] - } - }) - for _ in range(3): - try: - headers = ['User-Agent=azuremonitormetrics.put_rules.' + default_rule_group_name] - send_raw_request(cmd.cli_ctx, "PUT", url, - body=body, headers=headers) - error = None - break - except CLIError as e: - error = e - else: - raise error - - -def create_rules(cmd, cluster_subscription, cluster_resource_group_name, cluster_name, azure_monitor_workspace_resource_id, mac_region, raw_parameters): - from azure.cli.core.util import send_raw_request - with urllib.request.urlopen("https://defaultrulessc.blob.core.windows.net/defaultrules/ManagedPrometheusDefaultRecordingRules.json") as url: - default_rules_template = json.loads(url.read().decode()) - default_rule_group_name = "NodeRecordingRulesRuleGroup-{0}".format(cluster_name) - default_rule_group_id = "/subscriptions/{0}/resourceGroups/{1}/providers/Microsoft.AlertsManagement/prometheusRuleGroups/{2}".format( - cluster_subscription, - cluster_resource_group_name, - default_rule_group_name - ) - url = "https://management.azure.com{0}?api-version={1}".format( - default_rule_group_id, - RULES_API - ) - put_rules(cmd, default_rule_group_id, default_rule_group_name, mac_region, azure_monitor_workspace_resource_id, cluster_name, default_rules_template, url, 0) - - default_rule_group_name = "KubernetesRecordingRulesRuleGroup-{0}".format(cluster_name) - default_rule_group_id = "/subscriptions/{0}/resourceGroups/{1}/providers/Microsoft.AlertsManagement/prometheusRuleGroups/{2}".format( - cluster_subscription, - cluster_resource_group_name, - default_rule_group_name - ) - url = "https://management.azure.com{0}?api-version={1}".format( - default_rule_group_id, - RULES_API - ) - put_rules(cmd, default_rule_group_id, default_rule_group_name, mac_region, azure_monitor_workspace_resource_id, cluster_name, default_rules_template, url, 1) - - enable_windows_recording_rules = raw_parameters.get("enable_windows_recording_rules") - - if enable_windows_recording_rules is True: - default_rule_group_name = "NodeRecordingRulesRuleGroup-Win-{0}".format(cluster_name) - default_rule_group_id = "/subscriptions/{0}/resourceGroups/{1}/providers/Microsoft.AlertsManagement/prometheusRuleGroups/{2}".format( - cluster_subscription, - cluster_resource_group_name, - default_rule_group_name - ) - url = "https://management.azure.com{0}?api-version={1}".format( - default_rule_group_id, - RULES_API - ) - put_rules(cmd, default_rule_group_id, default_rule_group_name, mac_region, azure_monitor_workspace_resource_id, cluster_name, default_rules_template, url, 2) - - default_rule_group_name = "NodeAndKubernetesRecordingRulesRuleGroup-Win-{0}".format(cluster_name) - default_rule_group_id = "/subscriptions/{0}/resourceGroups/{1}/providers/Microsoft.AlertsManagement/prometheusRuleGroups/{2}".format( - cluster_subscription, - cluster_resource_group_name, - default_rule_group_name - ) - url = "https://management.azure.com{0}?api-version={1}".format( - default_rule_group_id, - RULES_API - ) - put_rules(cmd, default_rule_group_id, default_rule_group_name, mac_region, azure_monitor_workspace_resource_id, cluster_name, default_rules_template, url, 3) - - -def delete_dcra(cmd, cluster_region, cluster_subscription, cluster_resource_group_name, cluster_name): - from azure.cli.core.util import send_raw_request - cluster_resource_id = "/subscriptions/{0}/resourceGroups/{1}/providers/Microsoft.ContainerService/managedClusters/{2}".format( - cluster_subscription, - cluster_resource_group_name, - cluster_name - ) - dcra_name = get_default_dcra_name(cluster_region, cluster_name) - # only create or delete the association between the DCR and cluster - association_body = json.dumps({"location": cluster_region, "properties": {}}) - association_url = f"https://management.azure.com{cluster_resource_id}/providers/Microsoft.Insights/dataCollectionRuleAssociations/{dcra_name}?api-version={DC_API}" - for _ in range(3): - try: - headers = ['User-Agent=azuremonitormetrics.delete_dcra'] - send_raw_request(cmd.cli_ctx, "DELETE", association_url, - body=association_body, headers=headers) - error = None - return True - except CLIError as e: - error = e - return False - else: - raise error - - -def delete_rules(cmd, cluster_region, cluster_subscription, cluster_resource_group_name, cluster_name): - from azure.cli.core.util import send_raw_request - default_rule_group_name = "NodeRecordingRulesRuleGroup-{0}".format(cluster_name) - default_rule_group_id = "/subscriptions/{0}/resourceGroups/{1}/providers/Microsoft.AlertsManagement/prometheusRuleGroups/{2}".format( - cluster_subscription, - cluster_resource_group_name, - default_rule_group_name - ) - url = "https://management.azure.com{0}?api-version={1}".format( - default_rule_group_id, - RULES_API - ) - for _ in range(3): - try: - headers = ['User-Agent=azuremonitormetrics.delete_rules_node'] - send_raw_request(cmd.cli_ctx, "DELETE", url, headers=headers) - error = None - break - except CLIError as e: - error = e - else: - raise error - default_rule_group_name = "KubernetesRecordingRulesRuleGroup-{0}".format(cluster_name) - default_rule_group_id = "/subscriptions/{0}/resourceGroups/{1}/providers/Microsoft.AlertsManagement/prometheusRuleGroups/{2}".format( - cluster_subscription, - cluster_resource_group_name, - default_rule_group_name - ) - url = "https://management.azure.com{0}?api-version={1}".format( - default_rule_group_id, - RULES_API - ) - for _ in range(3): - try: - headers = ['User-Agent=azuremonitormetrics.delete_rules_kubernetes'] - send_raw_request(cmd.cli_ctx, "DELETE", url, headers=headers) - error = None - break - except CLIError as e: - error = e - else: - raise error - - -def link_azure_monitor_profile_artifacts(cmd, cluster_subscription, cluster_resource_group_name, cluster_name, cluster_region, raw_parameters): +def link_azure_monitor_profile_artifacts(cmd, client, cluster_subscription, cluster_resource_group_name, cluster_name, cluster_region, raw_parameters, create_flow): # MAC creation if required - azure_monitor_workspace_resource_id = get_azure_monitor_workspace_resource_id(cmd, cluster_subscription, cluster_region, raw_parameters) - # Get MAC region (required for DCE, DCR creation) and check support for DCE,DCR creation - mac_region = get_mac_region(cmd, azure_monitor_workspace_resource_id) + azure_monitor_workspace_resource_id, azure_monitor_workspace_location = get_azure_monitor_workspace_resource(cmd, cluster_subscription, cluster_region, raw_parameters) # DCE creation - dce_resource_id = create_dce(cmd, cluster_subscription, cluster_resource_group_name, cluster_name, mac_region) + dce_resource_id = create_dce(cmd, cluster_subscription, cluster_resource_group_name, cluster_name, azure_monitor_workspace_location) # DCR creation - dcr_resource_id = create_dcr(cmd, mac_region, azure_monitor_workspace_resource_id, cluster_subscription, cluster_resource_group_name, cluster_name, dce_resource_id) + dcr_resource_id = create_dcr(cmd, azure_monitor_workspace_location, azure_monitor_workspace_resource_id, cluster_subscription, cluster_resource_group_name, cluster_name, dce_resource_id) # DCRA creation create_dcra(cmd, cluster_region, cluster_subscription, cluster_resource_group_name, cluster_name, dcr_resource_id) # Link grafana link_grafana_instance(cmd, raw_parameters, azure_monitor_workspace_resource_id) # create recording rules and alerts - create_rules(cmd, cluster_subscription, cluster_resource_group_name, cluster_name, azure_monitor_workspace_resource_id, mac_region, raw_parameters) + create_rules(cmd, cluster_subscription, cluster_resource_group_name, cluster_name, azure_monitor_workspace_resource_id, azure_monitor_workspace_location, raw_parameters) + # if aks cluster create flow -> do a PUT on the AKS cluster to enable the addon + if create_flow: + addon_put(cmd, client, cluster_subscription, cluster_resource_group_name, cluster_name) def unlink_azure_monitor_profile_artifacts(cmd, cluster_subscription, cluster_resource_group_name, cluster_name, cluster_region): - # Remove DCRA link - delete_dcra(cmd, cluster_region, cluster_subscription, cluster_resource_group_name, cluster_name) + # Remove DC* if prometheus is enabled + dc_objects_list = get_dc_objects_list(cmd, cluster_subscription, cluster_resource_group_name, cluster_name) + delete_dc_objects_if_prometheus_enabled(cmd, dc_objects_list, cluster_subscription, cluster_resource_group_name, cluster_name) # Delete rules (Conflict({"error":{"code":"InvalidResourceLocation","message":"The resource 'NodeRecordingRulesRuleGroup-' already exists in location 'eastus2' in resource group ''. A resource with the same name cannot be created in location 'eastus'. Please select a new resource name."}}) - delete_rules(cmd, cluster_region, cluster_subscription, cluster_resource_group_name, cluster_name) - - -def post_request(cmd, subscription_id, rp_name, headers): - from azure.cli.core.util import send_raw_request - customUrl = "https://management.azure.com/subscriptions/{0}/providers/{1}/register?api-version={2}".format( - subscription_id, - rp_name, - RP_API - ) - try: - send_raw_request(cmd.cli_ctx, "POST", customUrl, headers=headers) - except CLIError as e: - raise CLIError(e) - - -def rp_registrations(cmd, subscription_id): - from azure.cli.core.util import send_raw_request - # Get list of RP's for RP's subscription - try: - headers = ['User-Agent=azuremonitormetrics.get_mac_sub_list'] - customUrl = "https://management.azure.com/subscriptions/{0}/providers?api-version={1}&$select=namespace,registrationstate".format( - subscription_id, - RP_API - ) - r = send_raw_request(cmd.cli_ctx, "GET", customUrl, headers=headers) - except CLIError as e: - raise CLIError(e) - isInsightsRpRegistered = False - isAlertsManagementRpRegistered = False - isMoniotrRpRegistered = False - isDashboardRpRegistered = False - json_response = json.loads(r.text) - values_array = json_response["value"] - for value in values_array: - if value["namespace"].lower() == "microsoft.insights" and value["registrationState"].lower() == "registered": - isInsightsRpRegistered = True - if value["namespace"].lower() == "microsoft.alertsmanagement" and value["registrationState"].lower() == "registered": - isAlertsManagementRpRegistered = True - if value["namespace"].lower() == "microsoft.monitor" and value["registrationState"].lower() == "registered": - isAlertsManagementRpRegistered = True - if value["namespace"].lower() == "microsoft.dashboard" and value["registrationState"].lower() == "registered": - isAlertsManagementRpRegistered = True - if isInsightsRpRegistered is False: - headers = ['User-Agent=azuremonitormetrics.register_insights_rp'] - post_request(cmd, subscription_id, "microsoft.insights", headers) - if isAlertsManagementRpRegistered is False: - headers = ['User-Agent=azuremonitormetrics.register_alertsmanagement_rp'] - post_request(cmd, subscription_id, "microsoft.alertsmanagement", headers) - if isMoniotrRpRegistered is False: - headers = ['User-Agent=azuremonitormetrics.register_monitor_rp'] - post_request(cmd, subscription_id, "microsoft.monitor", headers) - if isDashboardRpRegistered is False: - headers = ['User-Agent=azuremonitormetrics.register_dashboard_rp'] - post_request(cmd, subscription_id, "microsoft.dashboard", headers) + delete_rules(cmd, cluster_subscription, cluster_resource_group_name, cluster_name) # pylint: disable=too-many-locals,too-many-branches,too-many-statements,line-too-long @@ -703,8 +51,19 @@ def ensure_azure_monitor_profile_prerequisites( cluster_name, cluster_region, raw_parameters, - remove_azuremonitormetrics + remove_azuremonitormetrics, + create_flow=False ): + cloud_name = cmd.cli_ctx.cloud.name + if cloud_name.lower() == 'azurechinacloud': + raise CLIError("Azure China Cloud is not supported for the Azure Monitor Metrics addon") + + if cloud_name.lower() == "azureusgovernment": + grafana_resource_id = raw_parameters.get("grafana_resource_id") + if grafana_resource_id is not None: + if grafana_resource_id != "": + raise InvalidArgumentValueError("Azure US Government cloud does not support Azure Managed Grarfana yet. Please follow this documenation for enabling it via the public cloud : aka.ms/ama-grafana-link-ff") + if (remove_azuremonitormetrics): unlink_azure_monitor_profile_artifacts( cmd, @@ -715,17 +74,18 @@ def ensure_azure_monitor_profile_prerequisites( ) else: # Check if already onboarded - check_azuremonitormetrics_profile(cmd, cluster_subscription, cluster_resource_group_name, cluster_name) - # If the feature is not registered then STOP onboarding and request to register the feature - check_azuremonitoraddon_feature(cmd, cluster_subscription, raw_parameters) + if create_flow is False: + check_azuremonitormetrics_profile(cmd, cluster_subscription, cluster_resource_group_name, cluster_name) # Do RP registrations if required rp_registrations(cmd, cluster_subscription) link_azure_monitor_profile_artifacts( cmd, + client, cluster_subscription, cluster_resource_group_name, cluster_name, cluster_region, - raw_parameters + raw_parameters, + create_flow ) return diff --git a/src/aks-preview/azext_aks_preview/custom.py b/src/aks-preview/azext_aks_preview/custom.py index 32a24a6032b..2fdf5f0a24b 100644 --- a/src/aks-preview/azext_aks_preview/custom.py +++ b/src/aks-preview/azext_aks_preview/custom.py @@ -575,6 +575,13 @@ def aks_create( node_public_ip_tags=None, # azure service mesh enable_azure_service_mesh=None, + # azure monitor profile + enable_azuremonitormetrics=False, + azure_monitor_workspace_resource_id=None, + ksm_metric_labels_allow_list=None, + ksm_metric_annotations_allow_list=None, + grafana_resource_id=None, + enable_windows_recording_rules=False, ): # DO NOT MOVE: get all the original parameters and save them as a dictionary raw_parameters = locals() From 07a1cec1ae3b17aa6ecbce27c41801c0b3d35261 Mon Sep 17 00:00:00 2001 From: Kaveesh Dubey Date: Wed, 3 May 2023 10:08:45 -0700 Subject: [PATCH 02/27] . --- src/aks-preview/azext_aks_preview/_params.py | 26 +++--- .../azuremonitormetrics/__init__.py | 0 .../azuremonitormetrics/addonput.py | 4 +- .../azuremonitormetrics/amg/__init__.py | 0 .../azuremonitormetrics/amg/link.py | 4 +- .../azuremonitormetrics/amw/__init__.py | 0 .../azuremonitormetrics/amw/create.py | 4 +- .../azuremonitormetrics/amw/defaults.py | 6 +- .../azuremonitormetrics/amw/helper.py | 6 +- .../azuremonitorprofile.py | 22 ++--- .../azuremonitormetrics/dc/__init__.py | 0 .../azuremonitormetrics/dc/dce_api.py | 6 +- .../azuremonitormetrics/dc/dcr_api.py | 6 +- .../azuremonitormetrics/dc/dcra_api.py | 4 +- .../azuremonitormetrics/dc/defaults.py | 4 +- .../azuremonitormetrics/dc/delete.py | 2 +- .../azuremonitormetrics/helper.py | 2 +- .../recordingrules/__init__.py | 0 .../recordingrules/create.py | 2 +- .../recordingrules/delete.py | 2 +- .../responseparsers/__init__.py | 0 .../azext_aks_preview/azuremonitorprofile.py | 91 ------------------- src/aks-preview/azext_aks_preview/custom.py | 31 ++++++- .../managed_cluster_decorator.py | 25 ++++- 24 files changed, 104 insertions(+), 143 deletions(-) create mode 100644 src/aks-preview/azext_aks_preview/azuremonitormetrics/__init__.py create mode 100644 src/aks-preview/azext_aks_preview/azuremonitormetrics/amg/__init__.py create mode 100644 src/aks-preview/azext_aks_preview/azuremonitormetrics/amw/__init__.py create mode 100644 src/aks-preview/azext_aks_preview/azuremonitormetrics/dc/__init__.py create mode 100644 src/aks-preview/azext_aks_preview/azuremonitormetrics/recordingrules/__init__.py create mode 100644 src/aks-preview/azext_aks_preview/azuremonitormetrics/responseparsers/__init__.py delete mode 100644 src/aks-preview/azext_aks_preview/azuremonitorprofile.py diff --git a/src/aks-preview/azext_aks_preview/_params.py b/src/aks-preview/azext_aks_preview/_params.py index 573b11acb9a..0393bad3d2e 100644 --- a/src/aks-preview/azext_aks_preview/_params.py +++ b/src/aks-preview/azext_aks_preview/_params.py @@ -418,12 +418,12 @@ def load_arguments(self, _): c.argument('node_public_ip_tags', arg_type=tags_type, validator=validate_node_public_ip_tags, help='space-separated tags: key[=value] [key[=value] ...].') # azure monitor profile - c.argument('enable_azuremonitormetrics', action='store_true', is_preview=True) - c.argument('azure_monitor_workspace_resource_id', validator=validate_azuremonitorworkspaceresourceid, is_preview=True) - c.argument('ksm_metric_labels_allow_list', is_preview=True) - c.argument('ksm_metric_annotations_allow_list', is_preview=True) - c.argument('grafana_resource_id', validator=validate_grafanaresourceid, is_preview=True) - c.argument('enable_windows_recording_rules', action='store_true', is_preview=True) + c.argument('enable_azuremonitormetrics', action='store_true') + c.argument('azure_monitor_workspace_resource_id', validator=validate_azuremonitorworkspaceresourceid) + c.argument('ksm_metric_labels_allow_list') + c.argument('ksm_metric_annotations_allow_list') + c.argument('grafana_resource_id', validator=validate_grafanaresourceid) + c.argument('enable_windows_recording_rules', action='store_true') with self.argument_context('aks update') as c: # managed cluster paramerters @@ -527,13 +527,13 @@ def load_arguments(self, _): c.argument('enable_private_cluster', action='store_true', is_preview=True, help='enable private cluster for apiserver vnet integration') c.argument('disable_private_cluster', action='store_true', is_preview=True, help='disable private cluster for apiserver vnet integration') c.argument('private_dns_zone', is_preview=True) - c.argument('enable_azuremonitormetrics', action='store_true', is_preview=True) - c.argument('azure_monitor_workspace_resource_id', validator=validate_azuremonitorworkspaceresourceid, is_preview=True) - c.argument('ksm_metric_labels_allow_list', is_preview=True) - c.argument('ksm_metric_annotations_allow_list', is_preview=True) - c.argument('grafana_resource_id', validator=validate_grafanaresourceid, is_preview=True) - c.argument('enable_windows_recording_rules', action='store_true', is_preview=True) - c.argument('disable_azuremonitormetrics', action='store_true', is_preview=True) + c.argument('enable_azuremonitormetrics', action='store_true') + c.argument('azure_monitor_workspace_resource_id', validator=validate_azuremonitorworkspaceresourceid) + c.argument('ksm_metric_labels_allow_list') + c.argument('ksm_metric_annotations_allow_list') + c.argument('grafana_resource_id', validator=validate_grafanaresourceid) + c.argument('enable_windows_recording_rules', action='store_true') + c.argument('disable_azuremonitormetrics', action='store_true') c.argument('enable_vpa', action='store_true', is_preview=True, help="enable vertical pod autoscaler for cluster") c.argument('disable_vpa', action='store_true', is_preview=True, help="disable vertical pod autoscaler for cluster") c.argument('cluster_snapshot_id', validator=validate_cluster_snapshot_id, is_preview=True) diff --git a/src/aks-preview/azext_aks_preview/azuremonitormetrics/__init__.py b/src/aks-preview/azext_aks_preview/azuremonitormetrics/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/aks-preview/azext_aks_preview/azuremonitormetrics/addonput.py b/src/aks-preview/azext_aks_preview/azuremonitormetrics/addonput.py index f7696e399fe..4d40878f2e3 100644 --- a/src/aks-preview/azext_aks_preview/azuremonitormetrics/addonput.py +++ b/src/aks-preview/azext_aks_preview/azuremonitormetrics/addonput.py @@ -3,7 +3,7 @@ # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- import json -from azure.cli.command_modules.acs.azuremonitormetrics.constants import AKS_CLUSTER_API +from azext_aks_preview.azuremonitormetrics.constants import AKS_CLUSTER_API from azure.cli.core.profiles import ResourceType from azure.cli.core.azclierror import ( UnknownError, @@ -11,7 +11,7 @@ ) -def addon_put(cmd, client, cluster_subscription, cluster_resource_group_name, cluster_name): +def addon_put(cmd, cluster_subscription, cluster_resource_group_name, cluster_name): from azure.cli.core.util import send_raw_request armendpoint = cmd.cli_ctx.cloud.endpoints.resource_manager feature_check_url = f"{armendpoint}/subscriptions/{cluster_subscription}/resourceGroups/{cluster_resource_group_name}/providers/Microsoft.ContainerService/managedClusters/{cluster_name}?api-version={AKS_CLUSTER_API}" diff --git a/src/aks-preview/azext_aks_preview/azuremonitormetrics/amg/__init__.py b/src/aks-preview/azext_aks_preview/azuremonitormetrics/amg/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/aks-preview/azext_aks_preview/azuremonitormetrics/amg/link.py b/src/aks-preview/azext_aks_preview/azuremonitormetrics/amg/link.py index 7d29b0fc74f..2923f7c7ace 100644 --- a/src/aks-preview/azext_aks_preview/azuremonitormetrics/amg/link.py +++ b/src/aks-preview/azext_aks_preview/azuremonitormetrics/amg/link.py @@ -5,12 +5,12 @@ import json import uuid from knack.util import CLIError -from azure.cli.command_modules.acs.azuremonitormetrics.constants import ( +from azext_aks_preview.azuremonitormetrics.constants import ( GRAFANA_API, GRAFANA_ROLE_ASSIGNMENT_API, GrafanaLink ) -from azure.cli.command_modules.acs.azuremonitormetrics.helper import sanitize_resource_id +from azext_aks_preview.azuremonitormetrics.helper import sanitize_resource_id def link_grafana_instance(cmd, raw_parameters, azure_monitor_workspace_resource_id): diff --git a/src/aks-preview/azext_aks_preview/azuremonitormetrics/amw/__init__.py b/src/aks-preview/azext_aks_preview/azuremonitormetrics/amw/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/aks-preview/azext_aks_preview/azuremonitormetrics/amw/create.py b/src/aks-preview/azext_aks_preview/azuremonitormetrics/amw/create.py index 93324c8a739..f861f037def 100644 --- a/src/aks-preview/azext_aks_preview/azuremonitormetrics/amw/create.py +++ b/src/aks-preview/azext_aks_preview/azuremonitormetrics/amw/create.py @@ -4,11 +4,11 @@ # -------------------------------------------------------------------------------------------- import json -from azure.cli.command_modules.acs.azuremonitormetrics.constants import MAC_API +from azext_aks_preview.azuremonitormetrics.constants import MAC_API from azure.cli.command_modules.acs._client_factory import get_resource_groups_client, get_resources_client from azure.core.exceptions import HttpResponseError from knack.util import CLIError -from azure.cli.command_modules.acs.azuremonitormetrics.amw.defaults import get_default_mac_name_and_region +from azext_aks_preview.azuremonitormetrics.amw.defaults import get_default_mac_name_and_region def create_default_mac(cmd, cluster_subscription, cluster_region): diff --git a/src/aks-preview/azext_aks_preview/azuremonitormetrics/amw/defaults.py b/src/aks-preview/azext_aks_preview/azuremonitormetrics/amw/defaults.py index 820f799caa6..742696c09bb 100644 --- a/src/aks-preview/azext_aks_preview/azuremonitormetrics/amw/defaults.py +++ b/src/aks-preview/azext_aks_preview/azuremonitormetrics/amw/defaults.py @@ -3,9 +3,9 @@ # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- import json -from azure.cli.command_modules.acs.azuremonitormetrics.deaults import get_default_region -from azure.cli.command_modules.acs.azuremonitormetrics.responseparsers.amwlocationresponseparser import parseResourceProviderResponseForLocations -from azure.cli.command_modules.acs.azuremonitormetrics.constants import RP_LOCATION_API +from azext_aks_preview.azuremonitormetrics.deaults import get_default_region +from azext_aks_preview.azuremonitormetrics.responseparsers.amwlocationresponseparser import parseResourceProviderResponseForLocations +from azext_aks_preview.azuremonitormetrics.constants import RP_LOCATION_API from knack.util import CLIError diff --git a/src/aks-preview/azext_aks_preview/azuremonitormetrics/amw/helper.py b/src/aks-preview/azext_aks_preview/azuremonitormetrics/amw/helper.py index b6f54a31f59..d063179d3f4 100644 --- a/src/aks-preview/azext_aks_preview/azuremonitormetrics/amw/helper.py +++ b/src/aks-preview/azext_aks_preview/azuremonitormetrics/amw/helper.py @@ -3,9 +3,9 @@ # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- import json -from azure.cli.command_modules.acs.azuremonitormetrics.amw.create import create_default_mac -from azure.cli.command_modules.acs.azuremonitormetrics.constants import MAC_API -from azure.cli.command_modules.acs.azuremonitormetrics.helper import sanitize_resource_id +from azext_aks_preview.azuremonitormetrics.amw.create import create_default_mac +from azext_aks_preview.azuremonitormetrics.constants import MAC_API +from azext_aks_preview.azuremonitormetrics.helper import sanitize_resource_id from azure.cli.core.azclierror import ClientRequestError from azure.core.exceptions import HttpResponseError from azure.cli.command_modules.acs._client_factory import get_resources_client diff --git a/src/aks-preview/azext_aks_preview/azuremonitormetrics/azuremonitorprofile.py b/src/aks-preview/azext_aks_preview/azuremonitormetrics/azuremonitorprofile.py index ec3f46d72c3..1f01a68f0e1 100644 --- a/src/aks-preview/azext_aks_preview/azuremonitormetrics/azuremonitorprofile.py +++ b/src/aks-preview/azext_aks_preview/azuremonitormetrics/azuremonitorprofile.py @@ -2,16 +2,16 @@ # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- -from azure.cli.command_modules.acs.azuremonitormetrics.addonput import addon_put -from azure.cli.command_modules.acs.azuremonitormetrics.amg.link import link_grafana_instance -from azure.cli.command_modules.acs.azuremonitormetrics.amw.helper import get_azure_monitor_workspace_resource -from azure.cli.command_modules.acs.azuremonitormetrics.dc.dce_api import create_dce -from azure.cli.command_modules.acs.azuremonitormetrics.dc.dcr_api import create_dcr -from azure.cli.command_modules.acs.azuremonitormetrics.dc.dcra_api import create_dcra -from azure.cli.command_modules.acs.azuremonitormetrics.dc.delete import delete_dc_objects_if_prometheus_enabled, get_dc_objects_list -from azure.cli.command_modules.acs.azuremonitormetrics.helper import check_azuremonitormetrics_profile, rp_registrations -from azure.cli.command_modules.acs.azuremonitormetrics.recordingrules.create import create_rules -from azure.cli.command_modules.acs.azuremonitormetrics.recordingrules.delete import delete_rules +from azext_aks_preview.azuremonitormetrics.addonput import addon_put +from azext_aks_preview.azuremonitormetrics.amg.link import link_grafana_instance +from azext_aks_preview.azuremonitormetrics.amw.helper import get_azure_monitor_workspace_resource +from azext_aks_preview.azuremonitormetrics.dc.dce_api import create_dce +from azext_aks_preview.azuremonitormetrics.dc.dcr_api import create_dcr +from azext_aks_preview.azuremonitormetrics.dc.dcra_api import create_dcra +from azext_aks_preview.azuremonitormetrics.dc.delete import delete_dc_objects_if_prometheus_enabled, get_dc_objects_list +from azext_aks_preview.azuremonitormetrics.helper import check_azuremonitormetrics_profile, rp_registrations +from azext_aks_preview.azuremonitormetrics.recordingrules.create import create_rules +from azext_aks_preview.azuremonitormetrics.recordingrules.delete import delete_rules from knack.util import CLIError from azure.cli.core.azclierror import InvalidArgumentValueError @@ -31,7 +31,7 @@ def link_azure_monitor_profile_artifacts(cmd, client, cluster_subscription, clus create_rules(cmd, cluster_subscription, cluster_resource_group_name, cluster_name, azure_monitor_workspace_resource_id, azure_monitor_workspace_location, raw_parameters) # if aks cluster create flow -> do a PUT on the AKS cluster to enable the addon if create_flow: - addon_put(cmd, client, cluster_subscription, cluster_resource_group_name, cluster_name) + addon_put(cmd, cluster_subscription, cluster_resource_group_name, cluster_name) def unlink_azure_monitor_profile_artifacts(cmd, cluster_subscription, cluster_resource_group_name, cluster_name, cluster_region): diff --git a/src/aks-preview/azext_aks_preview/azuremonitormetrics/dc/__init__.py b/src/aks-preview/azext_aks_preview/azuremonitormetrics/dc/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/aks-preview/azext_aks_preview/azuremonitormetrics/dc/dce_api.py b/src/aks-preview/azext_aks_preview/azuremonitormetrics/dc/dce_api.py index 00fb2484bde..8d43bedd552 100644 --- a/src/aks-preview/azext_aks_preview/azuremonitormetrics/dc/dce_api.py +++ b/src/aks-preview/azext_aks_preview/azuremonitormetrics/dc/dce_api.py @@ -3,9 +3,9 @@ # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- import json -from azure.cli.command_modules.acs.azuremonitormetrics.constants import DC_API -from azure.cli.command_modules.acs.azuremonitormetrics.dc.defaults import get_default_dce_name -from azure.cli.command_modules.acs.azuremonitormetrics.constants import DC_API +from azext_aks_preview.azuremonitormetrics.constants import DC_API +from azext_aks_preview.azuremonitormetrics.dc.defaults import get_default_dce_name +from azext_aks_preview.azuremonitormetrics.constants import DC_API from knack.util import CLIError diff --git a/src/aks-preview/azext_aks_preview/azuremonitormetrics/dc/dcr_api.py b/src/aks-preview/azext_aks_preview/azuremonitormetrics/dc/dcr_api.py index e9dc6a12159..9dae595df8e 100644 --- a/src/aks-preview/azext_aks_preview/azuremonitormetrics/dc/dcr_api.py +++ b/src/aks-preview/azext_aks_preview/azuremonitormetrics/dc/dcr_api.py @@ -3,9 +3,9 @@ # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- import json -from azure.cli.command_modules.acs.azuremonitormetrics.constants import MapToClosestMACRegion -from azure.cli.command_modules.acs.azuremonitormetrics.dc.defaults import get_default_region, sanitize_name -from azure.cli.command_modules.acs.azuremonitormetrics.constants import ( +from azext_aks_preview.azuremonitormetrics.constants import MapToClosestMACRegion +from azext_aks_preview.azuremonitormetrics.dc.defaults import get_default_region, sanitize_name +from azext_aks_preview.azuremonitormetrics.constants import ( DC_TYPE, DC_API ) diff --git a/src/aks-preview/azext_aks_preview/azuremonitormetrics/dc/dcra_api.py b/src/aks-preview/azext_aks_preview/azuremonitormetrics/dc/dcra_api.py index c50fea6eb2f..1a5dd8a071b 100644 --- a/src/aks-preview/azext_aks_preview/azuremonitormetrics/dc/dcra_api.py +++ b/src/aks-preview/azext_aks_preview/azuremonitormetrics/dc/dcra_api.py @@ -3,8 +3,8 @@ # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- import json -from azure.cli.command_modules.acs.azuremonitormetrics.constants import DC_API -from azure.cli.command_modules.acs.azuremonitormetrics.dc.defaults import get_default_dcra_name +from azext_aks_preview.azuremonitormetrics.constants import DC_API +from azext_aks_preview.azuremonitormetrics.dc.defaults import get_default_dcra_name from knack.util import CLIError diff --git a/src/aks-preview/azext_aks_preview/azuremonitormetrics/dc/defaults.py b/src/aks-preview/azext_aks_preview/azuremonitormetrics/dc/defaults.py index 6885ab3d374..b7b9d3ce41d 100644 --- a/src/aks-preview/azext_aks_preview/azuremonitormetrics/dc/defaults.py +++ b/src/aks-preview/azext_aks_preview/azuremonitormetrics/dc/defaults.py @@ -2,11 +2,11 @@ # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- -from azure.cli.command_modules.acs.azuremonitormetrics.constants import ( +from azext_aks_preview.azuremonitormetrics.constants import ( DC_TYPE, MapToClosestMACRegion ) -from azure.cli.command_modules.acs.azuremonitormetrics.deaults import get_default_region +from azext_aks_preview.azuremonitormetrics.deaults import get_default_region # DCR = 64, DCE = 44, DCRA = 64 diff --git a/src/aks-preview/azext_aks_preview/azuremonitormetrics/dc/delete.py b/src/aks-preview/azext_aks_preview/azuremonitormetrics/dc/delete.py index 11a2bed0f7f..c597199ae68 100644 --- a/src/aks-preview/azext_aks_preview/azuremonitormetrics/dc/delete.py +++ b/src/aks-preview/azext_aks_preview/azuremonitormetrics/dc/delete.py @@ -3,7 +3,7 @@ # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- import json -from azure.cli.command_modules.acs.azuremonitormetrics.constants import DC_API +from azext_aks_preview.azuremonitormetrics.constants import DC_API from knack.util import CLIError diff --git a/src/aks-preview/azext_aks_preview/azuremonitormetrics/helper.py b/src/aks-preview/azext_aks_preview/azuremonitormetrics/helper.py index 76a48423782..e2dc39c1572 100644 --- a/src/aks-preview/azext_aks_preview/azuremonitormetrics/helper.py +++ b/src/aks-preview/azext_aks_preview/azuremonitormetrics/helper.py @@ -7,7 +7,7 @@ from azure.cli.core.azclierror import ( UnknownError ) -from azure.cli.command_modules.acs.azuremonitormetrics.constants import ( +from azext_aks_preview.azuremonitormetrics.constants import ( RP_API, AKS_CLUSTER_API ) diff --git a/src/aks-preview/azext_aks_preview/azuremonitormetrics/recordingrules/__init__.py b/src/aks-preview/azext_aks_preview/azuremonitormetrics/recordingrules/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/aks-preview/azext_aks_preview/azuremonitormetrics/recordingrules/create.py b/src/aks-preview/azext_aks_preview/azuremonitormetrics/recordingrules/create.py index 5765e250404..9a24947aa2c 100644 --- a/src/aks-preview/azext_aks_preview/azuremonitormetrics/recordingrules/create.py +++ b/src/aks-preview/azext_aks_preview/azuremonitormetrics/recordingrules/create.py @@ -3,7 +3,7 @@ # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- import json -from azure.cli.command_modules.acs.azuremonitormetrics.constants import ALERTS_API, RULES_API +from azext_aks_preview.azuremonitormetrics.constants import ALERTS_API, RULES_API from knack.util import CLIError diff --git a/src/aks-preview/azext_aks_preview/azuremonitormetrics/recordingrules/delete.py b/src/aks-preview/azext_aks_preview/azuremonitormetrics/recordingrules/delete.py index befd4eba61e..0bd782ac3af 100644 --- a/src/aks-preview/azext_aks_preview/azuremonitormetrics/recordingrules/delete.py +++ b/src/aks-preview/azext_aks_preview/azuremonitormetrics/recordingrules/delete.py @@ -2,7 +2,7 @@ # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- -from azure.cli.command_modules.acs.azuremonitormetrics.constants import RULES_API +from azext_aks_preview.azuremonitormetrics.constants import RULES_API def delete_rule(cmd, cluster_subscription, cluster_resource_group_name, default_rule_group_name): diff --git a/src/aks-preview/azext_aks_preview/azuremonitormetrics/responseparsers/__init__.py b/src/aks-preview/azext_aks_preview/azuremonitormetrics/responseparsers/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/aks-preview/azext_aks_preview/azuremonitorprofile.py b/src/aks-preview/azext_aks_preview/azuremonitorprofile.py deleted file mode 100644 index ec3f46d72c3..00000000000 --- a/src/aks-preview/azext_aks_preview/azuremonitorprofile.py +++ /dev/null @@ -1,91 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# -------------------------------------------------------------------------------------------- -from azure.cli.command_modules.acs.azuremonitormetrics.addonput import addon_put -from azure.cli.command_modules.acs.azuremonitormetrics.amg.link import link_grafana_instance -from azure.cli.command_modules.acs.azuremonitormetrics.amw.helper import get_azure_monitor_workspace_resource -from azure.cli.command_modules.acs.azuremonitormetrics.dc.dce_api import create_dce -from azure.cli.command_modules.acs.azuremonitormetrics.dc.dcr_api import create_dcr -from azure.cli.command_modules.acs.azuremonitormetrics.dc.dcra_api import create_dcra -from azure.cli.command_modules.acs.azuremonitormetrics.dc.delete import delete_dc_objects_if_prometheus_enabled, get_dc_objects_list -from azure.cli.command_modules.acs.azuremonitormetrics.helper import check_azuremonitormetrics_profile, rp_registrations -from azure.cli.command_modules.acs.azuremonitormetrics.recordingrules.create import create_rules -from azure.cli.command_modules.acs.azuremonitormetrics.recordingrules.delete import delete_rules -from knack.util import CLIError -from azure.cli.core.azclierror import InvalidArgumentValueError - - -def link_azure_monitor_profile_artifacts(cmd, client, cluster_subscription, cluster_resource_group_name, cluster_name, cluster_region, raw_parameters, create_flow): - # MAC creation if required - azure_monitor_workspace_resource_id, azure_monitor_workspace_location = get_azure_monitor_workspace_resource(cmd, cluster_subscription, cluster_region, raw_parameters) - # DCE creation - dce_resource_id = create_dce(cmd, cluster_subscription, cluster_resource_group_name, cluster_name, azure_monitor_workspace_location) - # DCR creation - dcr_resource_id = create_dcr(cmd, azure_monitor_workspace_location, azure_monitor_workspace_resource_id, cluster_subscription, cluster_resource_group_name, cluster_name, dce_resource_id) - # DCRA creation - create_dcra(cmd, cluster_region, cluster_subscription, cluster_resource_group_name, cluster_name, dcr_resource_id) - # Link grafana - link_grafana_instance(cmd, raw_parameters, azure_monitor_workspace_resource_id) - # create recording rules and alerts - create_rules(cmd, cluster_subscription, cluster_resource_group_name, cluster_name, azure_monitor_workspace_resource_id, azure_monitor_workspace_location, raw_parameters) - # if aks cluster create flow -> do a PUT on the AKS cluster to enable the addon - if create_flow: - addon_put(cmd, client, cluster_subscription, cluster_resource_group_name, cluster_name) - - -def unlink_azure_monitor_profile_artifacts(cmd, cluster_subscription, cluster_resource_group_name, cluster_name, cluster_region): - # Remove DC* if prometheus is enabled - dc_objects_list = get_dc_objects_list(cmd, cluster_subscription, cluster_resource_group_name, cluster_name) - delete_dc_objects_if_prometheus_enabled(cmd, dc_objects_list, cluster_subscription, cluster_resource_group_name, cluster_name) - # Delete rules (Conflict({"error":{"code":"InvalidResourceLocation","message":"The resource 'NodeRecordingRulesRuleGroup-' already exists in location 'eastus2' in resource group ''. A resource with the same name cannot be created in location 'eastus'. Please select a new resource name."}}) - delete_rules(cmd, cluster_subscription, cluster_resource_group_name, cluster_name) - - -# pylint: disable=too-many-locals,too-many-branches,too-many-statements,line-too-long -def ensure_azure_monitor_profile_prerequisites( - cmd, - client, - cluster_subscription, - cluster_resource_group_name, - cluster_name, - cluster_region, - raw_parameters, - remove_azuremonitormetrics, - create_flow=False -): - cloud_name = cmd.cli_ctx.cloud.name - if cloud_name.lower() == 'azurechinacloud': - raise CLIError("Azure China Cloud is not supported for the Azure Monitor Metrics addon") - - if cloud_name.lower() == "azureusgovernment": - grafana_resource_id = raw_parameters.get("grafana_resource_id") - if grafana_resource_id is not None: - if grafana_resource_id != "": - raise InvalidArgumentValueError("Azure US Government cloud does not support Azure Managed Grarfana yet. Please follow this documenation for enabling it via the public cloud : aka.ms/ama-grafana-link-ff") - - if (remove_azuremonitormetrics): - unlink_azure_monitor_profile_artifacts( - cmd, - cluster_subscription, - cluster_resource_group_name, - cluster_name, - cluster_region - ) - else: - # Check if already onboarded - if create_flow is False: - check_azuremonitormetrics_profile(cmd, cluster_subscription, cluster_resource_group_name, cluster_name) - # Do RP registrations if required - rp_registrations(cmd, cluster_subscription) - link_azure_monitor_profile_artifacts( - cmd, - client, - cluster_subscription, - cluster_resource_group_name, - cluster_name, - cluster_region, - raw_parameters, - create_flow - ) - return diff --git a/src/aks-preview/azext_aks_preview/custom.py b/src/aks-preview/azext_aks_preview/custom.py index 2fdf5f0a24b..002aa20c0c9 100644 --- a/src/aks-preview/azext_aks_preview/custom.py +++ b/src/aks-preview/azext_aks_preview/custom.py @@ -77,6 +77,9 @@ from azext_aks_preview.maintenanceconfiguration import ( aks_maintenanceconfiguration_update_internal, ) +from azext_aks_preview.azuremonitormetrics.azuremonitorprofile import ( + ensure_azure_monitor_profile_prerequisites +) from azure.cli.command_modules.acs._validators import ( extract_comma_separated_string, ) @@ -616,7 +619,33 @@ def aks_create( # exit gracefully return None # send request to create a real managed cluster - return aks_create_decorator.create_mc(mc) + # send request + poller = client.begin_create_or_update( + resource_group_name=resource_group_name, + resource_name=name, + parameters=mc, + headers=get_aks_custom_headers(), + ) + aks_cluster = LongRunningOperation(cmd.cli_ctx)(poller) + # aks_cluster = aks_create_decorator.create_mc(mc) + + # Post processing for Azure Monitor Metrics (Managed Prometheus) addon as + # DCRA creation depends on the cluster creation + if raw_parameters.get("enable_azuremonitormetrics"): + print("Cluster creation successful, enabling Azure Monitor Metrics addon...") + ensure_azure_monitor_profile_prerequisites( + cmd, + client, + get_subscription_id(cmd.cli_ctx), + resource_group_name, + name, + location, + raw_parameters, + False, + True) + print("Success") + + return aks_cluster # pylint: disable=too-many-locals diff --git a/src/aks-preview/azext_aks_preview/managed_cluster_decorator.py b/src/aks-preview/azext_aks_preview/managed_cluster_decorator.py index 88191b072c2..1aa7db41665 100644 --- a/src/aks-preview/azext_aks_preview/managed_cluster_decorator.py +++ b/src/aks-preview/azext_aks_preview/managed_cluster_decorator.py @@ -21,7 +21,7 @@ from azure.cli.command_modules.acs._validators import ( extract_comma_separated_string, ) -from azext_aks_preview.azuremonitorprofile import ( +from azext_aks_preview.azuremonitormetrics.azuremonitorprofile import ( ensure_azure_monitor_profile_prerequisites ) from azure.cli.command_modules.acs.managed_cluster_decorator import ( @@ -2530,6 +2530,27 @@ def set_up_node_resource_group_profile(self, mc: ManagedCluster) -> ManagedClust mc.node_resource_group_profile = node_resource_group_profile return mc + def set_up_azure_monitor_profile(self, mc: ManagedCluster) -> ManagedCluster: + """Set up azure monitor profile for the ManagedCluster object. + :return: the ManagedCluster object + """ + self._ensure_mc(mc) + # read the original value passed by the command + ksm_metric_labels_allow_list = self.context.raw_param.get("ksm_metric_labels_allow_list") + ksm_metric_annotations_allow_list = self.context.raw_param.get("ksm_metric_annotations_allow_list") + if ksm_metric_labels_allow_list is None: + ksm_metric_labels_allow_list = "" + if ksm_metric_annotations_allow_list is None: + ksm_metric_annotations_allow_list = "" + if self.context.get_enable_azure_monitor_metrics(): + if mc.azure_monitor_profile is None: + mc.azure_monitor_profile = self.models.ManagedClusterAzureMonitorProfile() + mc.azure_monitor_profile.metrics = self.models.ManagedClusterAzureMonitorProfileMetrics(enabled=False) + mc.azure_monitor_profile.metrics.kube_state_metrics = self.models.ManagedClusterAzureMonitorProfileKubeStateMetrics( # pylint:disable=line-too-long + metric_labels_allowlist=str(ksm_metric_labels_allow_list), + metric_annotations_allow_list=str(ksm_metric_annotations_allow_list)) + return mc + def set_up_auto_upgrade_profile(self, mc: ManagedCluster) -> ManagedCluster: """Set up auto upgrade profile for the ManagedCluster object. :return: the ManagedCluster object @@ -2611,6 +2632,8 @@ def construct_mc_profile_preview(self, bypass_restore_defaults: bool = False) -> mc = self.set_up_auto_upgrade_profile(mc) # set up azure service mesh profile mc = self.set_up_azure_service_mesh_profile(mc) + # set up azure monitor profile + mc = self.set_up_azure_monitor_profile(mc) # DO NOT MOVE: keep this at the bottom, restore defaults mc = self._restore_defaults_in_mc(mc) From a7e0d944f1411fd9c6eb6422b2e1b28ff7ba35ba Mon Sep 17 00:00:00 2001 From: Kaveesh Dubey Date: Wed, 3 May 2023 10:24:01 -0700 Subject: [PATCH 03/27] recording rules --- .../recordingrules/create.py | 67 +++++++++++-------- 1 file changed, 38 insertions(+), 29 deletions(-) diff --git a/src/aks-preview/azext_aks_preview/azuremonitormetrics/recordingrules/create.py b/src/aks-preview/azext_aks_preview/azuremonitormetrics/recordingrules/create.py index 9a24947aa2c..c6e8892b475 100644 --- a/src/aks-preview/azext_aks_preview/azuremonitormetrics/recordingrules/create.py +++ b/src/aks-preview/azext_aks_preview/azuremonitormetrics/recordingrules/create.py @@ -7,6 +7,7 @@ from knack.util import CLIError +# pylint: disable=line-too-long def get_recording_rules_template(cmd, azure_monitor_workspace_resource_id): from azure.cli.core.util import send_raw_request headers = ['User-Agent=azuremonitormetrics.get_recording_rules_template'] @@ -17,7 +18,8 @@ def get_recording_rules_template(cmd, azure_monitor_workspace_resource_id): return data['value'] -def put_rules(cmd, default_rule_group_id, default_rule_group_name, mac_region, azure_monitor_workspace_resource_id, cluster_name, default_rules_template, url, i): +# pylint: disable=line-too-long +def put_rules(cmd, default_rule_group_id, default_rule_group_name, mac_region, azure_monitor_workspace_resource_id, cluster_name, default_rules_template, url, enable_rules, i): from azure.cli.core.util import send_raw_request body = json.dumps({ "id": default_rule_group_id, @@ -28,17 +30,21 @@ def put_rules(cmd, default_rule_group_id, default_rule_group_name, mac_region, a "scopes": [ azure_monitor_workspace_resource_id ], - "enabled": True, + "enabled": enable_rules, "clusterName": cluster_name, "interval": "PT1M", "rules": default_rules_template[i]["properties"]["rulesArmTemplate"]["resources"][0]["properties"]["rules"] } }) + rule_group_text = "Disabled" + if enable_rules is True: + rule_group_text = "Enabled" for _ in range(3): try: headers = ['User-Agent=azuremonitormetrics.put_rules.' + default_rule_group_name] send_raw_request(cmd.cli_ctx, "PUT", url, body=body, headers=headers) + print(f"Created rule group ({rule_group_text}) : {default_rule_group_id}") break except CLIError as e: error = e @@ -46,6 +52,7 @@ def put_rules(cmd, default_rule_group_id, default_rule_group_name, mac_region, a raise error +# pylint: disable=line-too-long def create_rules(cmd, cluster_subscription, cluster_resource_group_name, cluster_name, azure_monitor_workspace_resource_id, mac_region, raw_parameters): # with urllib.request.urlopen("https://defaultrulessc.blob.core.windows.net/defaultrules/ManagedPrometheusDefaultRecordingRules.json") as url: # default_rules_template = json.loads(url.read().decode()) @@ -61,7 +68,7 @@ def create_rules(cmd, cluster_subscription, cluster_resource_group_name, cluster default_rule_group_id, RULES_API ) - put_rules(cmd, default_rule_group_id, default_rule_group_name, mac_region, azure_monitor_workspace_resource_id, cluster_name, default_rules_template, url, 0) + put_rules(cmd, default_rule_group_id, default_rule_group_name, mac_region, azure_monitor_workspace_resource_id, cluster_name, default_rules_template, url, True, 0) default_rule_group_name = "KubernetesRecordingRulesRuleGroup-{0}".format(cluster_name) default_rule_group_id = "/subscriptions/{0}/resourceGroups/{1}/providers/Microsoft.AlertsManagement/prometheusRuleGroups/{2}".format( @@ -74,33 +81,35 @@ def create_rules(cmd, cluster_subscription, cluster_resource_group_name, cluster default_rule_group_id, RULES_API ) - put_rules(cmd, default_rule_group_id, default_rule_group_name, mac_region, azure_monitor_workspace_resource_id, cluster_name, default_rules_template, url, 1) + put_rules(cmd, default_rule_group_id, default_rule_group_name, mac_region, azure_monitor_workspace_resource_id, cluster_name, default_rules_template, url, True, 1) enable_windows_recording_rules = raw_parameters.get("enable_windows_recording_rules") - if enable_windows_recording_rules is True: - default_rule_group_name = "NodeRecordingRulesRuleGroup-Win-{0}".format(cluster_name) - default_rule_group_id = "/subscriptions/{0}/resourceGroups/{1}/providers/Microsoft.AlertsManagement/prometheusRuleGroups/{2}".format( - cluster_subscription, - cluster_resource_group_name, - default_rule_group_name - ) - url = "{0}{1}?api-version={2}".format( - cmd.cli_ctx.cloud.endpoints.resource_manager, - default_rule_group_id, - RULES_API - ) - put_rules(cmd, default_rule_group_id, default_rule_group_name, mac_region, azure_monitor_workspace_resource_id, cluster_name, default_rules_template, url, 2) + if enable_windows_recording_rules is not True: + enable_windows_recording_rules = False - default_rule_group_name = "NodeAndKubernetesRecordingRulesRuleGroup-Win-{0}".format(cluster_name) - default_rule_group_id = "/subscriptions/{0}/resourceGroups/{1}/providers/Microsoft.AlertsManagement/prometheusRuleGroups/{2}".format( - cluster_subscription, - cluster_resource_group_name, - default_rule_group_name - ) - url = "{0}{1}?api-version={2}".format( - cmd.cli_ctx.cloud.endpoints.resource_manager, - default_rule_group_id, - RULES_API - ) - put_rules(cmd, default_rule_group_id, default_rule_group_name, mac_region, azure_monitor_workspace_resource_id, cluster_name, default_rules_template, url, 3) + default_rule_group_name = "NodeRecordingRulesRuleGroup-Win-{0}".format(cluster_name) + default_rule_group_id = "/subscriptions/{0}/resourceGroups/{1}/providers/Microsoft.AlertsManagement/prometheusRuleGroups/{2}".format( + cluster_subscription, + cluster_resource_group_name, + default_rule_group_name + ) + url = "{0}{1}?api-version={2}".format( + cmd.cli_ctx.cloud.endpoints.resource_manager, + default_rule_group_id, + RULES_API + ) + put_rules(cmd, default_rule_group_id, default_rule_group_name, mac_region, azure_monitor_workspace_resource_id, cluster_name, default_rules_template, url, enable_windows_recording_rules, 2) + + default_rule_group_name = "NodeAndKubernetesRecordingRulesRuleGroup-Win-{0}".format(cluster_name) + default_rule_group_id = "/subscriptions/{0}/resourceGroups/{1}/providers/Microsoft.AlertsManagement/prometheusRuleGroups/{2}".format( + cluster_subscription, + cluster_resource_group_name, + default_rule_group_name + ) + url = "{0}{1}?api-version={2}".format( + cmd.cli_ctx.cloud.endpoints.resource_manager, + default_rule_group_id, + RULES_API + ) + put_rules(cmd, default_rule_group_id, default_rule_group_name, mac_region, azure_monitor_workspace_resource_id, cluster_name, default_rules_template, url, enable_windows_recording_rules, 3) From 76765e126a210f55a13519a62518bc92fc854d45 Mon Sep 17 00:00:00 2001 From: Kaveesh Dubey Date: Wed, 3 May 2023 13:08:26 -0700 Subject: [PATCH 04/27] live test --- src/aks-preview/HISTORY.rst | 4 ++ src/aks-preview/azext_aks_preview/custom.py | 60 ++++++++++--------- .../tests/latest/test_aks_commands.py | 35 +++++++++++ src/aks-preview/setup.py | 2 +- 4 files changed, 72 insertions(+), 29 deletions(-) diff --git a/src/aks-preview/HISTORY.rst b/src/aks-preview/HISTORY.rst index aa8f4bda774..1a6bb37f9cf 100644 --- a/src/aks-preview/HISTORY.rst +++ b/src/aks-preview/HISTORY.rst @@ -13,6 +13,10 @@ Pending +++++++ * Vendor new SDK and bump API version to 2023-03-02-preview. +0.5.138 ++++++++ +* GA update for Azure Monitor Metrics Addon (managed prometheus metrics) for AKS + 0.5.137 +++++++ * Fix role assignment failure caused by the breaking change of default API version bump of the auth SDK diff --git a/src/aks-preview/azext_aks_preview/custom.py b/src/aks-preview/azext_aks_preview/custom.py index 002aa20c0c9..2b3db93f554 100644 --- a/src/aks-preview/azext_aks_preview/custom.py +++ b/src/aks-preview/azext_aks_preview/custom.py @@ -618,34 +618,38 @@ def aks_create( except DecoratorEarlyExitException: # exit gracefully return None - # send request to create a real managed cluster - # send request - poller = client.begin_create_or_update( - resource_group_name=resource_group_name, - resource_name=name, - parameters=mc, - headers=get_aks_custom_headers(), - ) - aks_cluster = LongRunningOperation(cmd.cli_ctx)(poller) - # aks_cluster = aks_create_decorator.create_mc(mc) - - # Post processing for Azure Monitor Metrics (Managed Prometheus) addon as - # DCRA creation depends on the cluster creation - if raw_parameters.get("enable_azuremonitormetrics"): - print("Cluster creation successful, enabling Azure Monitor Metrics addon...") - ensure_azure_monitor_profile_prerequisites( - cmd, - client, - get_subscription_id(cmd.cli_ctx), - resource_group_name, - name, - location, - raw_parameters, - False, - True) - print("Success") - - return aks_cluster + + try: + # send request to create a real managed cluster + # send request + poller = client.begin_create_or_update( + resource_group_name=resource_group_name, + resource_name=name, + parameters=mc, + headers=get_aks_custom_headers(), + ) + aks_cluster = LongRunningOperation(cmd.cli_ctx)(poller) + # aks_cluster = aks_create_decorator.create_mc(mc) + + # Post processing for Azure Monitor Metrics (Managed Prometheus) addon as + # DCRA creation depends on the cluster creation + if raw_parameters.get("enable_azuremonitormetrics"): + print("Cluster creation successful, enabling Azure Monitor Metrics addon...") + ensure_azure_monitor_profile_prerequisites( + cmd, + client, + get_subscription_id(cmd.cli_ctx), + resource_group_name, + name, + location, + raw_parameters, + False, + True) + print("Success") + + return aks_cluster + except: + return mc # pylint: disable=too-many-locals diff --git a/src/aks-preview/azext_aks_preview/tests/latest/test_aks_commands.py b/src/aks-preview/azext_aks_preview/tests/latest/test_aks_commands.py index 357f9ab2f40..3bd83326258 100644 --- a/src/aks-preview/azext_aks_preview/tests/latest/test_aks_commands.py +++ b/src/aks-preview/azext_aks_preview/tests/latest/test_aks_commands.py @@ -6364,6 +6364,41 @@ def test_aks_update_with_defender(self, resource_group, resource_group_location) self.cmd( 'aks delete -g {resource_group} -n {name} --yes --no-wait', checks=[self.is_empty()]) + @live_only() + @AllowLargeResponse() + @AKSCustomResourceGroupPreparer(random_name_length=17, name_prefix='clitest', location='centraluseuap') + def test_aks_create_with_azuremonitormetrics(self, resource_group, resource_group_location): + # reset the count so in replay mode the random names will start with 0 + self.test_resources_count = 0 + # kwargs for string formatting + aks_name = self.create_random_name('cliakstest', 16) + + node_vm_size = 'standard_d2s_v3' + self.kwargs.update({ + 'resource_group': resource_group, + 'name': aks_name, + 'location': resource_group_location, + 'resource_type': 'Microsoft.ContainerService/ManagedClusters', + 'ssh_key_value': self.generate_ssh_keys(), + 'node_vm_size': node_vm_size + }) + + create_cmd = ' '.join([ + 'aks', 'create', '--resource-group={resource_group}', '--name={name}', '--location={location}', + '--enable-managed-identity', '--enable-azuremonitormetrics --enable-windows-recording-rules', + '--ssh-key-value={ssh_key_value} --node-vm-size={node_vm_size}', + ]) + self.cmd(create_cmd, checks=[ + self.check('provisioningState', 'Succeeded'), + self.check('azureMonitorProfile.metrics.enabled', True), + ]) + + # delete + cmd = 'aks delete --resource-group={resource_group} --name={name} --yes --no-wait' + self.cmd(cmd, checks=[ + self.is_empty(), + ]) + @AllowLargeResponse() @AKSCustomResourceGroupPreparer(random_name_length=16, name_prefix='clitest', location='westus2') def test_aks_update_with_azuremonitormetrics(self, resource_group, resource_group_location): diff --git a/src/aks-preview/setup.py b/src/aks-preview/setup.py index 916a7ee01ef..ad6666fadf4 100644 --- a/src/aks-preview/setup.py +++ b/src/aks-preview/setup.py @@ -9,7 +9,7 @@ from setuptools import setup, find_packages -VERSION = "0.5.137" +VERSION = "0.5.138" CLASSIFIERS = [ "Development Status :: 4 - Beta", From a859a2e9c596578c52372342967415827ec5d364 Mon Sep 17 00:00:00 2001 From: Kaveesh Dubey Date: Mon, 8 May 2023 19:51:55 -0700 Subject: [PATCH 05/27] initially it is set to false for creation, the addon put happens later --- .../azext_aks_preview/tests/latest/test_aks_commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aks-preview/azext_aks_preview/tests/latest/test_aks_commands.py b/src/aks-preview/azext_aks_preview/tests/latest/test_aks_commands.py index 3bd83326258..1d7246292be 100644 --- a/src/aks-preview/azext_aks_preview/tests/latest/test_aks_commands.py +++ b/src/aks-preview/azext_aks_preview/tests/latest/test_aks_commands.py @@ -6390,7 +6390,7 @@ def test_aks_create_with_azuremonitormetrics(self, resource_group, resource_grou ]) self.cmd(create_cmd, checks=[ self.check('provisioningState', 'Succeeded'), - self.check('azureMonitorProfile.metrics.enabled', True), + self.check('azureMonitorProfile.metrics.enabled', False), ]) # delete From 80f9617e4530c9bf58e402a39483f82b6c20c5df Mon Sep 17 00:00:00 2001 From: Kaveesh Dubey Date: Mon, 8 May 2023 20:40:52 -0700 Subject: [PATCH 06/27] . --- .../azext_aks_preview/tests/latest/test_aks_commands.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/aks-preview/azext_aks_preview/tests/latest/test_aks_commands.py b/src/aks-preview/azext_aks_preview/tests/latest/test_aks_commands.py index 1d7246292be..22879f53395 100644 --- a/src/aks-preview/azext_aks_preview/tests/latest/test_aks_commands.py +++ b/src/aks-preview/azext_aks_preview/tests/latest/test_aks_commands.py @@ -6388,9 +6388,10 @@ def test_aks_create_with_azuremonitormetrics(self, resource_group, resource_grou '--enable-managed-identity', '--enable-azuremonitormetrics --enable-windows-recording-rules', '--ssh-key-value={ssh_key_value} --node-vm-size={node_vm_size}', ]) + time.sleep(120) # wait for azuremonitormetrics to actually get enabled by the addonput operation self.cmd(create_cmd, checks=[ self.check('provisioningState', 'Succeeded'), - self.check('azureMonitorProfile.metrics.enabled', False), + self.check('azureMonitorProfile.metrics.enabled', True), ]) # delete From e779a7b0973e528fad3eb1710a66badba65374d5 Mon Sep 17 00:00:00 2001 From: Kaveesh Dubey Date: Tue, 9 May 2023 10:54:40 -0700 Subject: [PATCH 07/27] . --- .../tests/latest/test_aks_commands.py | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/aks-preview/azext_aks_preview/tests/latest/test_aks_commands.py b/src/aks-preview/azext_aks_preview/tests/latest/test_aks_commands.py index 22879f53395..90f7b5f4c74 100644 --- a/src/aks-preview/azext_aks_preview/tests/latest/test_aks_commands.py +++ b/src/aks-preview/azext_aks_preview/tests/latest/test_aks_commands.py @@ -6388,8 +6388,23 @@ def test_aks_create_with_azuremonitormetrics(self, resource_group, resource_grou '--enable-managed-identity', '--enable-azuremonitormetrics --enable-windows-recording-rules', '--ssh-key-value={ssh_key_value} --node-vm-size={node_vm_size}', ]) - time.sleep(120) # wait for azuremonitormetrics to actually get enabled by the addonput operation self.cmd(create_cmd, checks=[ + self.is_empty(), + ]) + + # azuremonitor metrics will be set to false after initial creation command as its in the + # postprocessing step that we do an update to enable it. Adding a wait for the second put request + # in addonput.py which enables the Azure Monitor Metrics addon as all the DC* resources + # have now been created. + wait_cmd = ' '.join([ + 'aks', 'wait', '--resource-group={resource_group}', '--name={name}', '--updated', + '--interval 60', '--timeout 300', + ]) + self.cmd(wait_cmd, checks=[ + self.is_empty(), + ]) + + self.cmd('aks show -g {resource_group} -n {name}', checks=[ self.check('provisioningState', 'Succeeded'), self.check('azureMonitorProfile.metrics.enabled', True), ]) From 0f32fbc260ee9b1036483717cc32eb94e79b7fda Mon Sep 17 00:00:00 2001 From: Kaveesh Dubey Date: Tue, 9 May 2023 11:44:04 -0700 Subject: [PATCH 08/27] . --- .../azext_aks_preview/tests/latest/test_aks_commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aks-preview/azext_aks_preview/tests/latest/test_aks_commands.py b/src/aks-preview/azext_aks_preview/tests/latest/test_aks_commands.py index 90f7b5f4c74..bac73edada8 100644 --- a/src/aks-preview/azext_aks_preview/tests/latest/test_aks_commands.py +++ b/src/aks-preview/azext_aks_preview/tests/latest/test_aks_commands.py @@ -6389,7 +6389,7 @@ def test_aks_create_with_azuremonitormetrics(self, resource_group, resource_grou '--ssh-key-value={ssh_key_value} --node-vm-size={node_vm_size}', ]) self.cmd(create_cmd, checks=[ - self.is_empty(), + self.check('provisioningState', 'Succeeded'), ]) # azuremonitor metrics will be set to false after initial creation command as its in the From b6c26e3cbffae72f91fd15a677fbcb141c91f6f3 Mon Sep 17 00:00:00 2001 From: Kaveesh Dubey Date: Tue, 9 May 2023 12:10:48 -0700 Subject: [PATCH 09/27] remove live only requirment --- .../azext_aks_preview/tests/latest/test_aks_commands.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/aks-preview/azext_aks_preview/tests/latest/test_aks_commands.py b/src/aks-preview/azext_aks_preview/tests/latest/test_aks_commands.py index bac73edada8..fe1129366d7 100644 --- a/src/aks-preview/azext_aks_preview/tests/latest/test_aks_commands.py +++ b/src/aks-preview/azext_aks_preview/tests/latest/test_aks_commands.py @@ -6364,7 +6364,6 @@ def test_aks_update_with_defender(self, resource_group, resource_group_location) self.cmd( 'aks delete -g {resource_group} -n {name} --yes --no-wait', checks=[self.is_empty()]) - @live_only() @AllowLargeResponse() @AKSCustomResourceGroupPreparer(random_name_length=17, name_prefix='clitest', location='centraluseuap') def test_aks_create_with_azuremonitormetrics(self, resource_group, resource_group_location): From d2dc075982968cdd64f395d1c508b71807f05208 Mon Sep 17 00:00:00 2001 From: Kaveesh Dubey Date: Tue, 9 May 2023 12:37:23 -0700 Subject: [PATCH 10/27] add live test recording --- ...t_aks_create_with_azuremonitormetrics.yaml | 3484 +++++++++++++++++ 1 file changed, 3484 insertions(+) create mode 100644 src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_with_azuremonitormetrics.yaml diff --git a/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_with_azuremonitormetrics.yaml b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_with_azuremonitormetrics.yaml new file mode 100644 index 00000000000..c88f94e3e83 --- /dev/null +++ b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_with_azuremonitormetrics.yaml @@ -0,0 +1,3484 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --enable-managed-identity --enable-azuremonitormetrics + --enable-windows-recording-rules --ssh-key-value --node-vm-size + User-Agent: + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/22.0.0b Python/3.8.10 + (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000001?api-version=2023-03-02-preview + response: + body: + string: '{"error":{"code":"ResourceNotFound","message":"The Resource ''Microsoft.ContainerService/managedClusters/cliakstest000001'' + under resource group ''clitest000001'' was not found. For more details please + go to https://aka.ms/ARMResourceNotFoundFix"}}' + headers: + cache-control: + - no-cache + content-length: + - '244' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 09 May 2023 19:19:41 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-failure-cause: + - gateway + status: + code: 404 + message: Not Found +- request: + body: '{"location": "westus2", "identity": {"type": "SystemAssigned"}, "properties": + {"kubernetesVersion": "", "dnsPrefix": "cliakstest-clitestmfq3ejeu5-79a739", + "agentPoolProfiles": [{"count": 3, "vmSize": "standard_d2s_v3", "osDiskSizeGB": + 0, "workloadRuntime": "OCIContainer", "osType": "Linux", "enableAutoScaling": + false, "type": "VirtualMachineScaleSets", "mode": "System", "orchestratorVersion": + "", "upgradeSettings": {}, "enableNodePublicIP": false, "enableCustomCATrust": + false, "scaleSetPriority": "Regular", "scaleSetEvictionPolicy": "Delete", "spotMaxPrice": + -1.0, "nodeTaints": [], "enableEncryptionAtHost": false, "enableUltraSSD": false, + "enableFIPS": false, "networkProfile": {}, "name": "nodepool1"}], "linuxProfile": + {"adminUsername": "azureuser", "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDefbF/frwrKTFwsnDpZDXLe23htkKgEB5U4e75sYVRKpw2XdlRBHqPElvgHbNc8LRvlna+n7/7ZghqpTmRy9Lv/MLA8m2/FhxmUKvDvo7hB+2E3HofW5nhILP01H1LnlmbxpGP/hMjm92g758m2eqc4GIhQmlDYB4gcteJDi5avWGLbxINmAXahyRwDy06wcS6rtS6ODDBcmNkP+yGUmT+BR4yxPV4ysooJpvegb8vBQS9cHre/9kB1VsEjy+uBmQqrktRnaSsWOpdd9G7urd7K66BKLyj7UxBkbXbZPnRyiNweaEdzueMd5PSxUyQPXpkNwwHWC19MfonR7DP+2F3 + azcli_aks_live_test@example.com\n"}]}}, "addonProfiles": {}, "enableRBAC": true, + "enablePodSecurityPolicy": false, "networkProfile": {"networkPlugin": "kubenet", + "podCidr": "10.244.0.0/16", "serviceCidr": "10.0.0.0/16", "dnsServiceIP": "10.0.0.10", + "dockerBridgeCidr": "172.17.0.1/16", "outboundType": "loadBalancer", "loadBalancerSku": + "standard"}, "disableLocalAccounts": false, "storageProfile": {}, "azureMonitorProfile": + {"metrics": {"enabled": false, "kubeStateMetrics": {"metricLabelsAllowlist": + "", "metricAnnotationsAllowList": ""}}}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '1721' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --name --location --enable-managed-identity --enable-azuremonitormetrics + --enable-windows-recording-rules --ssh-key-value --node-vm-size + User-Agent: + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/22.0.0b Python/3.8.10 + (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000001?api-version=2023-03-02-preview + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000001\",\n + \ \"location\": \"westus2\",\n \"name\": \"cliakstest000001\",\n \"type\": + \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": + \"Creating\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": + \"1.25.6\",\n \"currentKubernetesVersion\": \"1.25.6\",\n \"dnsPrefix\": + \"cliakstest-clitestmfq3ejeu5-79a739\",\n \"fqdn\": \"cliakstest-clitestmfq3ejeu5-79a739-ajco4565.hcp.westus2.azmk8s.io\",\n + \ \"azurePortalFQDN\": \"cliakstest-clitestmfq3ejeu5-79a739-ajco4565.portal.hcp.westus2.azmk8s.io\",\n + \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": + 3,\n \"vmSize\": \"standard_d2s_v3\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": + \"Managed\",\n \"kubeletDiskType\": \"OS\",\n \"workloadRuntime\": + \"OCIContainer\",\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n + \ \"enableAutoScaling\": false,\n \"provisioningState\": \"Creating\",\n + \ \"powerState\": {\n \"code\": \"Running\"\n },\n \"orchestratorVersion\": + \"1.25.6\",\n \"currentOrchestratorVersion\": \"1.25.6\",\n \"enableNodePublicIP\": + false,\n \"enableCustomCATrust\": false,\n \"mode\": \"System\",\n + \ \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\": false,\n + \ \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"nodeImageVersion\": + \"AKSUbuntu-2204gen2containerd-202304.20.0\",\n \"upgradeSettings\": {},\n + \ \"enableFIPS\": false,\n \"networkProfile\": {}\n }\n ],\n \"linuxProfile\": + {\n \"adminUsername\": \"azureuser\",\n \"ssh\": {\n \"publicKeys\": + [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDefbF/frwrKTFwsnDpZDXLe23htkKgEB5U4e75sYVRKpw2XdlRBHqPElvgHbNc8LRvlna+n7/7ZghqpTmRy9Lv/MLA8m2/FhxmUKvDvo7hB+2E3HofW5nhILP01H1LnlmbxpGP/hMjm92g758m2eqc4GIhQmlDYB4gcteJDi5avWGLbxINmAXahyRwDy06wcS6rtS6ODDBcmNkP+yGUmT+BR4yxPV4ysooJpvegb8vBQS9cHre/9kB1VsEjy+uBmQqrktRnaSsWOpdd9G7urd7K66BKLyj7UxBkbXbZPnRyiNweaEdzueMd5PSxUyQPXpkNwwHWC19MfonR7DP+2F3 + azcli_aks_live_test@example.com\\n\"\n }\n ]\n }\n },\n \"servicePrincipalProfile\": + {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \"nodeResourceGroup\": + \"MC_clitest000001_cliakstest000001_westus2\",\n \"enableRBAC\": true,\n + \ \"enablePodSecurityPolicy\": false,\n \"enableLTS\": \"KubernetesOfficial\",\n + \ \"networkProfile\": {\n \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\": + \"standard\",\n \"loadBalancerProfile\": {\n \"managedOutboundIPs\": + {\n \"count\": 1\n },\n \"backendPoolType\": \"nodeIPConfiguration\"\n + \ },\n \"podCidr\": \"10.244.0.0/16\",\n \"serviceCidr\": \"10.0.0.0/16\",\n + \ \"dnsServiceIP\": \"10.0.0.10\",\n \"dockerBridgeCidr\": \"172.17.0.1/16\",\n + \ \"outboundType\": \"loadBalancer\",\n \"podCidrs\": [\n \"10.244.0.0/16\"\n + \ ],\n \"serviceCidrs\": [\n \"10.0.0.0/16\"\n ],\n \"ipFamilies\": + [\n \"IPv4\"\n ]\n },\n \"maxAgentPools\": 100,\n \"disableLocalAccounts\": + false,\n \"securityProfile\": {},\n \"storageProfile\": {\n \"diskCSIDriver\": + {\n \"enabled\": true,\n \"version\": \"v1\"\n },\n \"fileCSIDriver\": + {\n \"enabled\": true\n },\n \"snapshotController\": {\n \"enabled\": + true\n }\n },\n \"oidcIssuerProfile\": {\n \"enabled\": false\n + \ },\n \"workloadAutoScalerProfile\": {},\n \"azureMonitorProfile\": + {\n \"metrics\": {\n \"enabled\": false,\n \"kubeStateMetrics\": + {\n \"metricLabelsAllowlist\": \"\",\n \"metricAnnotationsAllowList\": + \"\"\n }\n }\n }\n },\n \"identity\": {\n \"type\": \"SystemAssigned\",\n + \ \"principalId\":\"00000000-0000-0000-0000-000000000001\",\n \"tenantId\": + \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\n },\n \"sku\": {\n \"name\": + \"Base\",\n \"tier\": \"Free\"\n }\n }" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/98db728a-d423-4376-9d11-8eb6b1b0084b?api-version=2016-03-30 + cache-control: + - no-cache + content-length: + - '3702' + content-type: + - application/json + date: + - Tue, 09 May 2023 19:19:48 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --enable-managed-identity --enable-azuremonitormetrics + --enable-windows-recording-rules --ssh-key-value --node-vm-size + User-Agent: + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/22.0.0b Python/3.8.10 + (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/98db728a-d423-4376-9d11-8eb6b1b0084b?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"8a72db98-23d4-7643-9d11-8eb6b1b0084b\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-05-09T19:19:47.9536223Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 09 May 2023 19:19:48 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --enable-managed-identity --enable-azuremonitormetrics + --enable-windows-recording-rules --ssh-key-value --node-vm-size + User-Agent: + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/22.0.0b Python/3.8.10 + (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/98db728a-d423-4376-9d11-8eb6b1b0084b?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"8a72db98-23d4-7643-9d11-8eb6b1b0084b\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-05-09T19:19:47.9536223Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 09 May 2023 19:20:18 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --enable-managed-identity --enable-azuremonitormetrics + --enable-windows-recording-rules --ssh-key-value --node-vm-size + User-Agent: + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/22.0.0b Python/3.8.10 + (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/98db728a-d423-4376-9d11-8eb6b1b0084b?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"8a72db98-23d4-7643-9d11-8eb6b1b0084b\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-05-09T19:19:47.9536223Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 09 May 2023 19:20:48 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --enable-managed-identity --enable-azuremonitormetrics + --enable-windows-recording-rules --ssh-key-value --node-vm-size + User-Agent: + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/22.0.0b Python/3.8.10 + (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/98db728a-d423-4376-9d11-8eb6b1b0084b?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"8a72db98-23d4-7643-9d11-8eb6b1b0084b\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-05-09T19:19:47.9536223Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 09 May 2023 19:21:19 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --enable-managed-identity --enable-azuremonitormetrics + --enable-windows-recording-rules --ssh-key-value --node-vm-size + User-Agent: + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/22.0.0b Python/3.8.10 + (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/98db728a-d423-4376-9d11-8eb6b1b0084b?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"8a72db98-23d4-7643-9d11-8eb6b1b0084b\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-05-09T19:19:47.9536223Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 09 May 2023 19:21:49 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --enable-managed-identity --enable-azuremonitormetrics + --enable-windows-recording-rules --ssh-key-value --node-vm-size + User-Agent: + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/22.0.0b Python/3.8.10 + (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/98db728a-d423-4376-9d11-8eb6b1b0084b?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"8a72db98-23d4-7643-9d11-8eb6b1b0084b\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-05-09T19:19:47.9536223Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 09 May 2023 19:22:19 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --enable-managed-identity --enable-azuremonitormetrics + --enable-windows-recording-rules --ssh-key-value --node-vm-size + User-Agent: + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/22.0.0b Python/3.8.10 + (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/98db728a-d423-4376-9d11-8eb6b1b0084b?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"8a72db98-23d4-7643-9d11-8eb6b1b0084b\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-05-09T19:19:47.9536223Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 09 May 2023 19:22:49 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --enable-managed-identity --enable-azuremonitormetrics + --enable-windows-recording-rules --ssh-key-value --node-vm-size + User-Agent: + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/22.0.0b Python/3.8.10 + (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/98db728a-d423-4376-9d11-8eb6b1b0084b?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"8a72db98-23d4-7643-9d11-8eb6b1b0084b\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-05-09T19:19:47.9536223Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 09 May 2023 19:23:19 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --enable-managed-identity --enable-azuremonitormetrics + --enable-windows-recording-rules --ssh-key-value --node-vm-size + User-Agent: + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/22.0.0b Python/3.8.10 + (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/98db728a-d423-4376-9d11-8eb6b1b0084b?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"8a72db98-23d4-7643-9d11-8eb6b1b0084b\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-05-09T19:19:47.9536223Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 09 May 2023 19:23:49 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --enable-managed-identity --enable-azuremonitormetrics + --enable-windows-recording-rules --ssh-key-value --node-vm-size + User-Agent: + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/22.0.0b Python/3.8.10 + (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/98db728a-d423-4376-9d11-8eb6b1b0084b?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"8a72db98-23d4-7643-9d11-8eb6b1b0084b\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-05-09T19:19:47.9536223Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 09 May 2023 19:24:19 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --enable-managed-identity --enable-azuremonitormetrics + --enable-windows-recording-rules --ssh-key-value --node-vm-size + User-Agent: + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/22.0.0b Python/3.8.10 + (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/98db728a-d423-4376-9d11-8eb6b1b0084b?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"8a72db98-23d4-7643-9d11-8eb6b1b0084b\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-05-09T19:19:47.9536223Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 09 May 2023 19:24:50 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --enable-managed-identity --enable-azuremonitormetrics + --enable-windows-recording-rules --ssh-key-value --node-vm-size + User-Agent: + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/22.0.0b Python/3.8.10 + (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/98db728a-d423-4376-9d11-8eb6b1b0084b?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"8a72db98-23d4-7643-9d11-8eb6b1b0084b\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-05-09T19:19:47.9536223Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 09 May 2023 19:25:20 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --enable-managed-identity --enable-azuremonitormetrics + --enable-windows-recording-rules --ssh-key-value --node-vm-size + User-Agent: + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/22.0.0b Python/3.8.10 + (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/98db728a-d423-4376-9d11-8eb6b1b0084b?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"8a72db98-23d4-7643-9d11-8eb6b1b0084b\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-05-09T19:19:47.9536223Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 09 May 2023 19:25:50 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --enable-managed-identity --enable-azuremonitormetrics + --enable-windows-recording-rules --ssh-key-value --node-vm-size + User-Agent: + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/22.0.0b Python/3.8.10 + (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/98db728a-d423-4376-9d11-8eb6b1b0084b?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"8a72db98-23d4-7643-9d11-8eb6b1b0084b\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-05-09T19:19:47.9536223Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 09 May 2023 19:26:20 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --enable-managed-identity --enable-azuremonitormetrics + --enable-windows-recording-rules --ssh-key-value --node-vm-size + User-Agent: + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/22.0.0b Python/3.8.10 + (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/98db728a-d423-4376-9d11-8eb6b1b0084b?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"8a72db98-23d4-7643-9d11-8eb6b1b0084b\",\n \"status\": + \"Succeeded\",\n \"startTime\": \"2023-05-09T19:19:47.9536223Z\",\n \"endTime\": + \"2023-05-09T19:26:49.371626Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '169' + content-type: + - application/json + date: + - Tue, 09 May 2023 19:26:50 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --enable-managed-identity --enable-azuremonitormetrics + --enable-windows-recording-rules --ssh-key-value --node-vm-size + User-Agent: + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/22.0.0b Python/3.8.10 + (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000001?api-version=2023-03-02-preview + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000001\",\n + \ \"location\": \"westus2\",\n \"name\": \"cliakstest000001\",\n \"type\": + \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": + \"Succeeded\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": + \"1.25.6\",\n \"currentKubernetesVersion\": \"1.25.6\",\n \"dnsPrefix\": + \"cliakstest-clitestmfq3ejeu5-79a739\",\n \"fqdn\": \"cliakstest-clitestmfq3ejeu5-79a739-ajco4565.hcp.westus2.azmk8s.io\",\n + \ \"azurePortalFQDN\": \"cliakstest-clitestmfq3ejeu5-79a739-ajco4565.portal.hcp.westus2.azmk8s.io\",\n + \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": + 3,\n \"vmSize\": \"standard_d2s_v3\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": + \"Managed\",\n \"kubeletDiskType\": \"OS\",\n \"workloadRuntime\": + \"OCIContainer\",\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n + \ \"enableAutoScaling\": false,\n \"provisioningState\": \"Succeeded\",\n + \ \"powerState\": {\n \"code\": \"Running\"\n },\n \"orchestratorVersion\": + \"1.25.6\",\n \"currentOrchestratorVersion\": \"1.25.6\",\n \"enableNodePublicIP\": + false,\n \"enableCustomCATrust\": false,\n \"mode\": \"System\",\n + \ \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\": false,\n + \ \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"nodeImageVersion\": + \"AKSUbuntu-2204gen2containerd-202304.20.0\",\n \"upgradeSettings\": {},\n + \ \"enableFIPS\": false,\n \"networkProfile\": {}\n }\n ],\n \"linuxProfile\": + {\n \"adminUsername\": \"azureuser\",\n \"ssh\": {\n \"publicKeys\": + [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDefbF/frwrKTFwsnDpZDXLe23htkKgEB5U4e75sYVRKpw2XdlRBHqPElvgHbNc8LRvlna+n7/7ZghqpTmRy9Lv/MLA8m2/FhxmUKvDvo7hB+2E3HofW5nhILP01H1LnlmbxpGP/hMjm92g758m2eqc4GIhQmlDYB4gcteJDi5avWGLbxINmAXahyRwDy06wcS6rtS6ODDBcmNkP+yGUmT+BR4yxPV4ysooJpvegb8vBQS9cHre/9kB1VsEjy+uBmQqrktRnaSsWOpdd9G7urd7K66BKLyj7UxBkbXbZPnRyiNweaEdzueMd5PSxUyQPXpkNwwHWC19MfonR7DP+2F3 + azcli_aks_live_test@example.com\\n\"\n }\n ]\n }\n },\n \"servicePrincipalProfile\": + {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \"nodeResourceGroup\": + \"MC_clitest000001_cliakstest000001_westus2\",\n \"enableRBAC\": true,\n + \ \"enablePodSecurityPolicy\": false,\n \"enableLTS\": \"KubernetesOfficial\",\n + \ \"networkProfile\": {\n \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\": + \"Standard\",\n \"loadBalancerProfile\": {\n \"managedOutboundIPs\": + {\n \"count\": 1\n },\n \"effectiveOutboundIPs\": [\n {\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000001_westus2/providers/Microsoft.Network/publicIPAddresses/119700fd-511a-4eda-9fb8-907c63710f0b\"\n + \ }\n ],\n \"backendPoolType\": \"nodeIPConfiguration\"\n },\n + \ \"podCidr\": \"10.244.0.0/16\",\n \"serviceCidr\": \"10.0.0.0/16\",\n + \ \"dnsServiceIP\": \"10.0.0.10\",\n \"dockerBridgeCidr\": \"172.17.0.1/16\",\n + \ \"outboundType\": \"loadBalancer\",\n \"podCidrs\": [\n \"10.244.0.0/16\"\n + \ ],\n \"serviceCidrs\": [\n \"10.0.0.0/16\"\n ],\n \"ipFamilies\": + [\n \"IPv4\"\n ]\n },\n \"maxAgentPools\": 100,\n \"identityProfile\": + {\n \"kubeletidentity\": {\n \"resourceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MC_clitest000001_cliakstest000001_westus2/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cliakstest000001-agentpool\",\n + \ \"clientId\":\"00000000-0000-0000-0000-000000000001\",\n \"objectId\":\"00000000-0000-0000-0000-000000000001\"\n + \ }\n },\n \"disableLocalAccounts\": false,\n \"securityProfile\": + {},\n \"storageProfile\": {\n \"diskCSIDriver\": {\n \"enabled\": + true,\n \"version\": \"v1\"\n },\n \"fileCSIDriver\": {\n \"enabled\": + true\n },\n \"snapshotController\": {\n \"enabled\": true\n }\n + \ },\n \"oidcIssuerProfile\": {\n \"enabled\": false\n },\n \"workloadAutoScalerProfile\": + {},\n \"azureMonitorProfile\": {\n \"metrics\": {\n \"enabled\": + false,\n \"kubeStateMetrics\": {\n \"metricLabelsAllowlist\": \"\",\n + \ \"metricAnnotationsAllowList\": \"\"\n }\n }\n }\n },\n \"identity\": + {\n \"type\": \"SystemAssigned\",\n \"principalId\":\"00000000-0000-0000-0000-000000000001\",\n + \ \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\n },\n \"sku\": + {\n \"name\": \"Base\",\n \"tier\": \"Free\"\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '4355' + content-type: + - application/json + date: + - Tue, 09 May 2023 19:26:51 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --enable-managed-identity --enable-azuremonitormetrics + --enable-windows-recording-rules --ssh-key-value --node-vm-size + User-Agent: + - python/3.8.10 (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) AZURECLI/2.48.1 + azuremonitormetrics.get_mac_sub_list + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers?api-version=2021-04-01&$select=namespace,registrationstate + response: + body: + string: '{"value":[{"namespace":"Microsoft.Security","registrationState":"Registered"},{"namespace":"Microsoft.Compute","registrationState":"Registered"},{"namespace":"Microsoft.ContainerService","registrationState":"Registered"},{"namespace":"Microsoft.ContainerInstance","registrationState":"Registered"},{"namespace":"Microsoft.OperationsManagement","registrationState":"Registered"},{"namespace":"Microsoft.Capacity","registrationState":"Registered"},{"namespace":"Microsoft.Storage","registrationState":"Registered"},{"namespace":"Microsoft.Advisor","registrationState":"Registered"},{"namespace":"Microsoft.ManagedIdentity","registrationState":"Registered"},{"namespace":"Microsoft.KeyVault","registrationState":"Registered"},{"namespace":"Microsoft.ContainerRegistry","registrationState":"Registered"},{"namespace":"Microsoft.Kusto","registrationState":"Registered"},{"namespace":"Microsoft.Migrate","registrationState":"Registered"},{"namespace":"Microsoft.Diagnostics","registrationState":"Registered"},{"namespace":"Microsoft.MarketplaceNotifications","registrationState":"Registered"},{"namespace":"Microsoft.ChangeAnalysis","registrationState":"Registered"},{"namespace":"microsoft.insights","registrationState":"Registered"},{"namespace":"Microsoft.Logic","registrationState":"Registered"},{"namespace":"Microsoft.Web","registrationState":"Registered"},{"namespace":"Microsoft.ResourceHealth","registrationState":"Registered"},{"namespace":"Microsoft.Monitor","registrationState":"Registered"},{"namespace":"Microsoft.Dashboard","registrationState":"Registered"},{"namespace":"Microsoft.ManagedServices","registrationState":"Registered"},{"namespace":"Microsoft.NotificationHubs","registrationState":"Registered"},{"namespace":"Microsoft.DataLakeStore","registrationState":"Registered"},{"namespace":"Microsoft.Blueprint","registrationState":"Registered"},{"namespace":"Microsoft.Databricks","registrationState":"Registered"},{"namespace":"Microsoft.Relay","registrationState":"Registered"},{"namespace":"Microsoft.Maintenance","registrationState":"Registered"},{"namespace":"Microsoft.HealthcareApis","registrationState":"Registered"},{"namespace":"Microsoft.AppPlatform","registrationState":"Registered"},{"namespace":"Microsoft.DevTestLab","registrationState":"Registered"},{"namespace":"Microsoft.DataLakeAnalytics","registrationState":"Registered"},{"namespace":"Microsoft.Media","registrationState":"Registering"},{"namespace":"Microsoft.Devices","registrationState":"Registered"},{"namespace":"Microsoft.Automation","registrationState":"Registered"},{"namespace":"Microsoft.BotService","registrationState":"Registered"},{"namespace":"Microsoft.Management","registrationState":"Registered"},{"namespace":"Microsoft.CustomProviders","registrationState":"Registered"},{"namespace":"Microsoft.MixedReality","registrationState":"Registered"},{"namespace":"Microsoft.ServiceFabricMesh","registrationState":"Registering"},{"namespace":"Microsoft.DataMigration","registrationState":"Registered"},{"namespace":"Microsoft.RecoveryServices","registrationState":"Registered"},{"namespace":"Microsoft.DesktopVirtualization","registrationState":"Registered"},{"namespace":"Microsoft.DataProtection","registrationState":"Registered"},{"namespace":"Microsoft.DocumentDB","registrationState":"Registered"},{"namespace":"Microsoft.TimeSeriesInsights","registrationState":"Registered"},{"namespace":"Microsoft.Cache","registrationState":"Registered"},{"namespace":"Microsoft.DBforMySQL","registrationState":"Registered"},{"namespace":"Microsoft.SecurityInsights","registrationState":"Registered"},{"namespace":"Microsoft.ApiManagement","registrationState":"Registered"},{"namespace":"Microsoft.EventHub","registrationState":"Registered"},{"namespace":"Microsoft.AVS","registrationState":"Registered"},{"namespace":"Microsoft.PowerBIDedicated","registrationState":"Registered"},{"namespace":"Microsoft.EventGrid","registrationState":"Registered"},{"namespace":"Microsoft.Maps","registrationState":"Registered"},{"namespace":"Microsoft.MachineLearningServices","registrationState":"Registering"},{"namespace":"Microsoft.StreamAnalytics","registrationState":"Registered"},{"namespace":"Microsoft.Search","registrationState":"Registered"},{"namespace":"Microsoft.DBforMariaDB","registrationState":"Registered"},{"namespace":"Microsoft.CognitiveServices","registrationState":"Registered"},{"namespace":"Microsoft.Cdn","registrationState":"Registered"},{"namespace":"Microsoft.HDInsight","registrationState":"Registered"},{"namespace":"Microsoft.ServiceFabric","registrationState":"Registered"},{"namespace":"Microsoft.DBforPostgreSQL","registrationState":"Registered"},{"namespace":"Microsoft.CloudShell","registrationState":"Registered"},{"namespace":"Microsoft.AlertsManagement","registrationState":"Registered"},{"namespace":"Microsoft.OperationalInsights","registrationState":"Registered"},{"namespace":"Microsoft.PolicyInsights","registrationState":"Registered"},{"namespace":"Microsoft.GuestConfiguration","registrationState":"Registered"},{"namespace":"Microsoft.Network","registrationState":"Registered"},{"namespace":"Microsoft.ServiceBus","registrationState":"Registered"},{"namespace":"Microsoft.Sql","registrationState":"Registered"},{"namespace":"Dynatrace.Observability","registrationState":"NotRegistered"},{"namespace":"GitHub.Network","registrationState":"NotRegistered"},{"namespace":"Microsoft.AAD","registrationState":"NotRegistered"},{"namespace":"microsoft.aadiam","registrationState":"NotRegistered"},{"namespace":"Microsoft.Addons","registrationState":"NotRegistered"},{"namespace":"Microsoft.ADHybridHealthService","registrationState":"Registered"},{"namespace":"Microsoft.AgFoodPlatform","registrationState":"NotRegistered"},{"namespace":"Microsoft.AnalysisServices","registrationState":"NotRegistered"},{"namespace":"Microsoft.AnyBuild","registrationState":"NotRegistered"},{"namespace":"Microsoft.ApiSecurity","registrationState":"NotRegistered"},{"namespace":"Microsoft.App","registrationState":"NotRegistered"},{"namespace":"Microsoft.AppAssessment","registrationState":"NotRegistered"},{"namespace":"Microsoft.AppComplianceAutomation","registrationState":"NotRegistered"},{"namespace":"Microsoft.AppConfiguration","registrationState":"NotRegistered"},{"namespace":"Microsoft.Attestation","registrationState":"NotRegistered"},{"namespace":"Microsoft.Authorization","registrationState":"Registered"},{"namespace":"Microsoft.Automanage","registrationState":"NotRegistered"},{"namespace":"Microsoft.AutonomousDevelopmentPlatform","registrationState":"NotRegistered"},{"namespace":"Microsoft.AutonomousSystems","registrationState":"NotRegistered"},{"namespace":"Microsoft.AzureActiveDirectory","registrationState":"NotRegistered"},{"namespace":"Microsoft.AzureArcData","registrationState":"NotRegistered"},{"namespace":"Microsoft.AzureCIS","registrationState":"NotRegistered"},{"namespace":"Microsoft.AzureData","registrationState":"NotRegistered"},{"namespace":"Microsoft.AzurePercept","registrationState":"NotRegistered"},{"namespace":"Microsoft.AzureScan","registrationState":"NotRegistered"},{"namespace":"Microsoft.AzureSphere","registrationState":"NotRegistered"},{"namespace":"Microsoft.AzureStack","registrationState":"NotRegistered"},{"namespace":"Microsoft.AzureStackHCI","registrationState":"NotRegistered"},{"namespace":"Microsoft.BackupSolutions","registrationState":"NotRegistered"},{"namespace":"Microsoft.BareMetalInfrastructure","registrationState":"NotRegistered"},{"namespace":"Microsoft.Batch","registrationState":"NotRegistered"},{"namespace":"Microsoft.Billing","registrationState":"Registered"},{"namespace":"Microsoft.BillingBenefits","registrationState":"NotRegistered"},{"namespace":"Microsoft.Bing","registrationState":"NotRegistered"},{"namespace":"Microsoft.BlockchainTokens","registrationState":"NotRegistered"},{"namespace":"Microsoft.Carbon","registrationState":"NotRegistered"},{"namespace":"Microsoft.CertificateRegistration","registrationState":"NotRegistered"},{"namespace":"Microsoft.Chaos","registrationState":"NotRegistered"},{"namespace":"Microsoft.ClassicCompute","registrationState":"NotRegistered"},{"namespace":"Microsoft.ClassicInfrastructureMigrate","registrationState":"NotRegistered"},{"namespace":"Microsoft.ClassicNetwork","registrationState":"NotRegistered"},{"namespace":"Microsoft.ClassicStorage","registrationState":"NotRegistered"},{"namespace":"Microsoft.ClassicSubscription","registrationState":"Registered"},{"namespace":"Microsoft.CleanRoom","registrationState":"NotRegistered"},{"namespace":"Microsoft.CloudTest","registrationState":"NotRegistered"},{"namespace":"Microsoft.CodeSigning","registrationState":"NotRegistered"},{"namespace":"Microsoft.Codespaces","registrationState":"NotRegistered"},{"namespace":"Microsoft.CognitiveSearch","registrationState":"NotRegistered"},{"namespace":"Microsoft.Commerce","registrationState":"Registered"},{"namespace":"Microsoft.Communication","registrationState":"NotRegistered"},{"namespace":"Microsoft.ConfidentialLedger","registrationState":"NotRegistered"},{"namespace":"Microsoft.Confluent","registrationState":"NotRegistered"},{"namespace":"Microsoft.ConnectedCache","registrationState":"NotRegistered"},{"namespace":"microsoft.connectedopenstack","registrationState":"NotRegistered"},{"namespace":"Microsoft.ConnectedVehicle","registrationState":"NotRegistered"},{"namespace":"Microsoft.ConnectedVMwarevSphere","registrationState":"NotRegistered"},{"namespace":"Microsoft.Consumption","registrationState":"Registered"},{"namespace":"Microsoft.CostManagement","registrationState":"Registered"},{"namespace":"Microsoft.CostManagementExports","registrationState":"NotRegistered"},{"namespace":"Microsoft.CustomerLockbox","registrationState":"NotRegistered"},{"namespace":"Microsoft.D365CustomerInsights","registrationState":"NotRegistered"},{"namespace":"Microsoft.DatabaseWatcher","registrationState":"NotRegistered"},{"namespace":"Microsoft.DataBox","registrationState":"NotRegistered"},{"namespace":"Microsoft.DataBoxEdge","registrationState":"NotRegistered"},{"namespace":"Microsoft.DataCatalog","registrationState":"NotRegistered"},{"namespace":"Microsoft.DataCollaboration","registrationState":"NotRegistered"},{"namespace":"Microsoft.Datadog","registrationState":"NotRegistered"},{"namespace":"Microsoft.DataFactory","registrationState":"NotRegistered"},{"namespace":"Microsoft.DataReplication","registrationState":"NotRegistered"},{"namespace":"Microsoft.DataShare","registrationState":"NotRegistered"},{"namespace":"Microsoft.DelegatedNetwork","registrationState":"NotRegistered"},{"namespace":"Microsoft.DeploymentManager","registrationState":"NotRegistered"},{"namespace":"Microsoft.DevAI","registrationState":"NotRegistered"},{"namespace":"Microsoft.DevCenter","registrationState":"NotRegistered"},{"namespace":"Microsoft.DevHub","registrationState":"NotRegistered"},{"namespace":"Microsoft.DeviceUpdate","registrationState":"NotRegistered"},{"namespace":"Microsoft.DevOps","registrationState":"NotRegistered"},{"namespace":"Microsoft.DigitalTwins","registrationState":"NotRegistered"},{"namespace":"Microsoft.DomainRegistration","registrationState":"NotRegistered"},{"namespace":"Microsoft.Easm","registrationState":"NotRegistered"},{"namespace":"Microsoft.EdgeOrder","registrationState":"NotRegistered"},{"namespace":"Microsoft.EdgeOrderPartner","registrationState":"NotRegistered"},{"namespace":"Microsoft.EdgeZones","registrationState":"NotRegistered"},{"namespace":"Microsoft.Elastic","registrationState":"NotRegistered"},{"namespace":"Microsoft.ElasticSan","registrationState":"NotRegistered"},{"namespace":"Microsoft.ExtendedLocation","registrationState":"NotRegistered"},{"namespace":"Microsoft.Falcon","registrationState":"NotRegistered"},{"namespace":"Microsoft.Features","registrationState":"Registered"},{"namespace":"Microsoft.FluidRelay","registrationState":"NotRegistered"},{"namespace":"Microsoft.GraphServices","registrationState":"NotRegistered"},{"namespace":"Microsoft.HanaOnAzure","registrationState":"NotRegistered"},{"namespace":"Microsoft.HardwareSecurityModules","registrationState":"NotRegistered"},{"namespace":"Microsoft.HealthBot","registrationState":"NotRegistered"},{"namespace":"Microsoft.Help","registrationState":"NotRegistered"},{"namespace":"Microsoft.HpcWorkbench","registrationState":"NotRegistered"},{"namespace":"Microsoft.HybridCompute","registrationState":"NotRegistered"},{"namespace":"Microsoft.HybridConnectivity","registrationState":"NotRegistered"},{"namespace":"Microsoft.HybridContainerService","registrationState":"NotRegistered"},{"namespace":"Microsoft.HybridNetwork","registrationState":"NotRegistered"},{"namespace":"Microsoft.Impact","registrationState":"NotRegistered"},{"namespace":"Microsoft.IoTCentral","registrationState":"NotRegistered"},{"namespace":"Microsoft.IoTFirmwareDefense","registrationState":"NotRegistered"},{"namespace":"Microsoft.IoTSecurity","registrationState":"NotRegistered"},{"namespace":"Microsoft.Kubernetes","registrationState":"NotRegistered"},{"namespace":"Microsoft.KubernetesConfiguration","registrationState":"NotRegistered"},{"namespace":"Microsoft.LabServices","registrationState":"NotRegistered"},{"namespace":"Microsoft.LoadTestService","registrationState":"NotRegistered"},{"namespace":"Microsoft.Logz","registrationState":"NotRegistered"},{"namespace":"Microsoft.MachineLearning","registrationState":"NotRegistered"},{"namespace":"Microsoft.ManagedNetworkFabric","registrationState":"NotRegistered"},{"namespace":"Microsoft.ManagedStorageClass","registrationState":"NotRegistered"},{"namespace":"Microsoft.ManufacturingPlatform","registrationState":"NotRegistered"},{"namespace":"Microsoft.Marketplace","registrationState":"NotRegistered"},{"namespace":"Microsoft.MarketplaceOrdering","registrationState":"Registered"},{"namespace":"Microsoft.Metaverse","registrationState":"NotRegistered"},{"namespace":"Microsoft.Mission","registrationState":"NotRegistered"},{"namespace":"Microsoft.MobileNetwork","registrationState":"NotRegistered"},{"namespace":"Microsoft.MobilePacketCore","registrationState":"NotRegistered"},{"namespace":"Microsoft.ModSimWorkbench","registrationState":"NotRegistered"},{"namespace":"Microsoft.NetApp","registrationState":"NotRegistered"},{"namespace":"Microsoft.NetworkAnalytics","registrationState":"NotRegistered"},{"namespace":"Microsoft.NetworkCloud","registrationState":"NotRegistered"},{"namespace":"Microsoft.NetworkFunction","registrationState":"NotRegistered"},{"namespace":"Microsoft.Nutanix","registrationState":"NotRegistered"},{"namespace":"Microsoft.ObjectStore","registrationState":"NotRegistered"},{"namespace":"Microsoft.OffAzure","registrationState":"NotRegistered"},{"namespace":"Microsoft.OffAzureSpringBoot","registrationState":"NotRegistered"},{"namespace":"Microsoft.OpenEnergyPlatform","registrationState":"NotRegistered"},{"namespace":"Microsoft.OpenLogisticsPlatform","registrationState":"NotRegistered"},{"namespace":"Microsoft.OperatorVoicemail","registrationState":"NotRegistered"},{"namespace":"Microsoft.OracleDiscovery","registrationState":"NotRegistered"},{"namespace":"Microsoft.Orbital","registrationState":"NotRegistered"},{"namespace":"Microsoft.Peering","registrationState":"NotRegistered"},{"namespace":"Microsoft.Pki","registrationState":"NotRegistered"},{"namespace":"Microsoft.PlayFab","registrationState":"NotRegistered"},{"namespace":"Microsoft.Portal","registrationState":"Registered"},{"namespace":"Microsoft.PowerBI","registrationState":"NotRegistered"},{"namespace":"Microsoft.PowerPlatform","registrationState":"NotRegistered"},{"namespace":"Microsoft.ProfessionalService","registrationState":"NotRegistered"},{"namespace":"Microsoft.ProviderHub","registrationState":"NotRegistered"},{"namespace":"Microsoft.Purview","registrationState":"NotRegistered"},{"namespace":"Microsoft.Quantum","registrationState":"NotRegistered"},{"namespace":"Microsoft.Quota","registrationState":"NotRegistered"},{"namespace":"Microsoft.RecommendationsService","registrationState":"NotRegistered"},{"namespace":"Microsoft.RedHatOpenShift","registrationState":"NotRegistered"},{"namespace":"Microsoft.ResourceConnector","registrationState":"NotRegistered"},{"namespace":"Microsoft.ResourceGraph","registrationState":"Registered"},{"namespace":"Microsoft.Resources","registrationState":"Registered"},{"namespace":"Microsoft.SaaS","registrationState":"NotRegistered"},{"namespace":"Microsoft.SaaSHub","registrationState":"NotRegistered"},{"namespace":"Microsoft.Scom","registrationState":"NotRegistered"},{"namespace":"Microsoft.ScVmm","registrationState":"NotRegistered"},{"namespace":"Microsoft.SecurityDetonation","registrationState":"NotRegistered"},{"namespace":"Microsoft.SecurityDevOps","registrationState":"NotRegistered"},{"namespace":"Microsoft.SerialConsole","registrationState":"Registered"},{"namespace":"Microsoft.ServiceLinker","registrationState":"NotRegistered"},{"namespace":"Microsoft.ServiceNetworking","registrationState":"NotRegistered"},{"namespace":"Microsoft.ServicesHub","registrationState":"NotRegistered"},{"namespace":"Microsoft.SignalRService","registrationState":"NotRegistered"},{"namespace":"Microsoft.Singularity","registrationState":"NotRegistered"},{"namespace":"Microsoft.SoftwarePlan","registrationState":"NotRegistered"},{"namespace":"Microsoft.Solutions","registrationState":"NotRegistered"},{"namespace":"Microsoft.SqlVirtualMachine","registrationState":"NotRegistered"},{"namespace":"Microsoft.StandbyPool","registrationState":"NotRegistered"},{"namespace":"Microsoft.StorageCache","registrationState":"NotRegistered"},{"namespace":"Microsoft.StorageMover","registrationState":"NotRegistered"},{"namespace":"Microsoft.StorageSync","registrationState":"NotRegistered"},{"namespace":"Microsoft.Subscription","registrationState":"NotRegistered"},{"namespace":"microsoft.support","registrationState":"Registered"},{"namespace":"Microsoft.Synapse","registrationState":"NotRegistered"},{"namespace":"Microsoft.Syntex","registrationState":"NotRegistered"},{"namespace":"Microsoft.SystemIntegrityMonitoring","registrationState":"NotRegistered"},{"namespace":"Microsoft.TestBase","registrationState":"NotRegistered"},{"namespace":"Microsoft.UsageBilling","registrationState":"NotRegistered"},{"namespace":"Microsoft.VideoIndexer","registrationState":"NotRegistered"},{"namespace":"Microsoft.VirtualMachineImages","registrationState":"NotRegistered"},{"namespace":"microsoft.visualstudio","registrationState":"NotRegistered"},{"namespace":"Microsoft.VMware","registrationState":"NotRegistered"},{"namespace":"Microsoft.VoiceServices","registrationState":"NotRegistered"},{"namespace":"Microsoft.VSOnline","registrationState":"NotRegistered"},{"namespace":"Microsoft.WindowsESU","registrationState":"NotRegistered"},{"namespace":"Microsoft.WindowsIoT","registrationState":"NotRegistered"},{"namespace":"Microsoft.WindowsPushNotificationServices","registrationState":"NotRegistered"},{"namespace":"Microsoft.WorkloadBuilder","registrationState":"NotRegistered"},{"namespace":"Microsoft.Workloads","registrationState":"NotRegistered"},{"namespace":"NewRelic.Observability","registrationState":"NotRegistered"},{"namespace":"NGINX.NGINXPLUS","registrationState":"NotRegistered"},{"namespace":"PaloAltoNetworks.Cloudngfw","registrationState":"NotRegistered"},{"namespace":"Qumulo.Storage","registrationState":"NotRegistered"},{"namespace":"SolarWinds.Observability","registrationState":"NotRegistered"},{"namespace":"Wandisco.Fusion","registrationState":"NotRegistered"},{"namespace":"Microsoft.ProjectArcadia","registrationState":"NotRegistered"}]}' + headers: + cache-control: + - no-cache + content-length: + - '19647' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 09 May 2023 19:26:56 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --resource-group --name --location --enable-managed-identity --enable-azuremonitormetrics + --enable-windows-recording-rules --ssh-key-value --node-vm-size + User-Agent: + - python/3.8.10 (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) AZURECLI/2.48.1 + azuremonitormetrics.register_monitor_rp + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/microsoft.monitor/register?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Monitor","namespace":"Microsoft.Monitor","authorizations":[{"applicationId":"be14bf7e-8ab4-49b0-9dc6-a0eddd6fa73e","roleDefinitionId":"803a038d-eff1-4489-a0c2-dbc204ebac3c"},{"applicationId":"e158b4a5-21ab-442e-ae73-2e19f4e7d763","roleDefinitionId":"e46476d4-e741-4936-a72b-b768349eed70","managedByRoleDefinitionId":"50cd84fb-5e4c-4801-a8d2-4089ab77e6cd"}],"resourceTypes":[{"resourceType":"accounts","locations":["East + US","Central India","Central US","East US 2","North Europe","South Central + US","Southeast Asia","UK South","West Europe","West US","West US 2","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2023-04-03","2021-06-03-preview"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"operations","locations":["North + Central US","East US","Australia Central","Australia Southeast","Brazil South","Canada + Central","Central India","Central US","East Asia","East US 2","North Europe","Norway + East","South Africa North","South Central US","Southeast Asia","UAE North","UK + South","West Central US","West Europe","West US","West US 2","East US 2 EUAP","Central + US EUAP"],"apiVersions":["2023-04-03","2023-04-01","2021-06-03-preview","2021-06-01-preview"],"defaultApiVersion":"2021-06-01-preview","capabilities":"None"},{"resourceType":"locations","locations":[],"apiVersions":["2023-04-03","2023-04-01","2021-06-03-preview","2021-06-01-preview"],"capabilities":"None"},{"resourceType":"locations/operationResults","locations":["East + US","Central India","Central US","East US 2","North Europe","South Central + US","Southeast Asia","UK South","West Europe","West US","West US 2","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2023-04-03","2021-06-03-preview"],"capabilities":"None"},{"resourceType":"locations/operationStatuses","locations":["East + US","Central India","Central US","East US 2","North Europe","South Central + US","Southeast Asia","UK South","West Europe","West US","West US 2","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2023-04-03","2021-06-03-preview"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + headers: + cache-control: + - no-cache + content-length: + - '2246' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 09 May 2023 19:26:57 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --resource-group --name --location --enable-managed-identity --enable-azuremonitormetrics + --enable-windows-recording-rules --ssh-key-value --node-vm-size + User-Agent: + - python/3.8.10 (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) AZURECLI/2.48.1 + azuremonitormetrics.register_dashboard_rp + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/microsoft.dashboard/register?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Dashboard","namespace":"Microsoft.Dashboard","authorizations":[{"applicationId":"ce34e7e5-485f-4d76-964f-b3d2b16d1e4f","roleDefinitionId":"996b8381-eac0-46be-8daf-9619bafd1073"},{"applicationId":"6f2d169c-08f3-4a4c-a982-bcaf2d038c45"}],"resourceTypes":[{"resourceType":"locations","locations":[],"apiVersions":["2022-10-01-preview","2022-08-01","2022-05-01-preview","2021-09-01-preview"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2022-10-01-preview","2022-08-01","2022-05-01-preview","2021-09-01-preview"],"capabilities":"None"},{"resourceType":"locations/operationStatuses","locations":["East + US 2 EUAP","Central US EUAP","South Central US","West Europe","North Europe","UK + South","East US","East US 2","West Central US","Australia East","Sweden Central","West + US","West US 3","East Asia"],"apiVersions":["2022-10-01-preview","2022-08-01","2022-05-01-preview","2021-09-01-preview"],"capabilities":"None"},{"resourceType":"grafana","locations":["South + Central US","West Central US","West Europe","East US","East US 2","North Europe","UK + South","Australia East","Sweden Central","West US 3","East Asia","East US + 2 EUAP","Central US EUAP"],"apiVersions":["2022-10-01-preview","2022-08-01","2022-05-01-preview","2021-09-01-preview"],"capabilities":"SystemAssignedResourceIdentity, + SupportsTags, SupportsLocation"},{"resourceType":"operations","locations":[],"apiVersions":["2022-10-01-preview","2022-08-01","2022-05-01-preview","2021-09-01-preview"],"capabilities":"None"},{"resourceType":"grafana/privateEndpointConnections","locations":["South + Central US","West Central US","West Europe","North Europe","UK South","East + US","East US 2","Australia East","Sweden Central","West US 3","East Asia","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2022-10-01-preview","2022-08-01","2022-05-01-preview"],"capabilities":"None"},{"resourceType":"grafana/privateLinkResources","locations":["South + Central US","West Central US","West Europe","North Europe","UK South","East + US","East US 2","Australia East","Sweden Central","West US 3","East Asia","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2022-10-01-preview","2022-08-01","2022-05-01-preview"],"capabilities":"None"},{"resourceType":"locations/checkNameAvailability","locations":[],"apiVersions":["2022-10-01-preview","2022-08-01","2022-05-01-preview","2021-09-01-preview"],"capabilities":"None"},{"resourceType":"grafana/managedPrivateEndpoints","locations":["East + US 2 EUAP","Central US EUAP"],"apiVersions":["2022-10-01-preview"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + headers: + cache-control: + - no-cache + content-length: + - '2807' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 09 May 2023 19:26:58 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --enable-managed-identity --enable-azuremonitormetrics + --enable-windows-recording-rules --ssh-key-value --node-vm-size + User-Agent: + - python/3.8.10 (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) AZURECLI/2.48.1 + azuremonitormetrics.get_supported_rp_locations + method: GET + uri: https://management.azure.com/providers/Microsoft.Monitor?api-version=2022-01-01 + response: + body: + string: '{"namespace":"Microsoft.Monitor","resourceTypes":[{"resourceType":"accounts","locations":["East + US 2 EUAP","Central US EUAP","North Central US","East US","Australia Central","Australia + Southeast","Brazil South","Canada Central","Central India","Central US","East + Asia","East US 2","North Europe","Norway East","South Africa North","South + Central US","Southeast Asia","UAE North","UK South","West Central US","West + Europe","West US","West US 2"],"apiVersions":["2023-04-01","2021-06-01-preview"],"capabilities":"SupportsTags, + SupportsLocation"},{"resourceType":"operations","locations":["East US 2 EUAP","Central + US EUAP","North Central US","East US","Australia Central","Australia Southeast","Brazil + South","Canada Central","Central India","Central US","East Asia","East US + 2","North Europe","Norway East","South Africa North","South Central US","Southeast + Asia","UAE North","UK South","West Central US","West Europe","West US","West + US 2"],"apiVersions":["2023-04-03","2023-04-01","2021-06-03-preview","2021-06-01-preview"],"defaultApiVersion":"2021-06-01-preview","capabilities":"None"},{"resourceType":"locations","locations":[],"apiVersions":["2023-04-03","2023-04-01","2021-06-03-preview","2021-06-01-preview"],"capabilities":"None"},{"resourceType":"locations/operationResults","locations":["East + US 2 EUAP","Central US EUAP","North Central US","East US","Australia Central","Australia + Southeast","Brazil South","Canada Central","Central India","Central US","East + Asia","East US 2","North Europe","Norway East","South Africa North","South + Central US","Southeast Asia","UAE North","UK South","West Central US","West + Europe","West US","West US 2"],"apiVersions":["2023-04-01","2021-06-01-preview"],"capabilities":"None"},{"resourceType":"locations/operationStatuses","locations":["East + US 2 EUAP","Central US EUAP","North Central US","East US","Australia Central","Australia + Southeast","Brazil South","Canada Central","Central India","Central US","East + Asia","East US 2","North Europe","Norway East","South Africa North","South + Central US","Southeast Asia","UAE North","UK South","West Central US","West + Europe","West US","West US 2"],"apiVersions":["2023-04-01","2021-06-01-preview"],"capabilities":"None"}]}' + headers: + cache-control: + - no-cache + content-length: + - '2213' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 09 May 2023 19:26:57 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --enable-managed-identity --enable-azuremonitormetrics + --enable-windows-recording-rules --ssh-key-value --node-vm-size + User-Agent: + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-resource/22.0.0 Python/3.8.10 (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) + method: HEAD + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/DefaultResourceGroup-westus2?api-version=2022-09-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Tue, 09 May 2023 19:26:57 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 204 + message: No Content +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --enable-managed-identity --enable-azuremonitormetrics + --enable-windows-recording-rules --ssh-key-value --node-vm-size + User-Agent: + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-resource/22.0.0 Python/3.8.10 (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/DefaultResourceGroup-westus2/providers/microsoft.monitor/accounts/DefaultAzureMonitorWorkspace-westus2?api-version=2023-04-03 + response: + body: + string: '{"properties":{"accountId":"ec050f19-1529-4ec2-9d0c-e6677ca07ac8","metrics":{"prometheusQueryEndpoint":"https://defaultazuremonitorworkspace-westus2-9jg3.westus2.prometheus.monitor.azure.com","internalId":"mac_ec050f19-1529-4ec2-9d0c-e6677ca07ac8"},"provisioningState":"Succeeded","defaultIngestionSettings":{"dataCollectionRuleResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MA_defaultazuremonitorworkspace-westus2_westus2_managed/providers/Microsoft.Insights/dataCollectionRules/defaultazuremonitorworkspace-westus2","dataCollectionEndpointResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MA_defaultazuremonitorworkspace-westus2_westus2_managed/providers/Microsoft.Insights/dataCollectionEndpoints/defaultazuremonitorworkspace-westus2"},"publicNetworkAccess":"Enabled"},"location":"westus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-westus2/providers/microsoft.monitor/accounts/defaultazuremonitorworkspace-westus2","name":"DefaultAzureMonitorWorkspace-westus2","type":"Microsoft.Monitor/accounts","etag":"\"3d030879-0000-0800-0000-6452ca160000\"","systemData":{"createdBy":"3fac8b4e-cd90-4baa-a5d2-66d52bc8349d","createdByType":"Application","createdAt":"2023-05-03T20:54:27.8807957Z","lastModifiedBy":"3fac8b4e-cd90-4baa-a5d2-66d52bc8349d","lastModifiedByType":"Application","lastModifiedAt":"2023-05-03T20:54:27.8807957Z"}}' + headers: + api-supported-versions: + - 2021-06-01-preview, 2021-06-03-preview, 2023-04-01, 2023-04-03 + cache-control: + - no-cache + content-length: + - '1443' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 09 May 2023 19:26:58 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:74683e7d-3ee8-4856-bfe7-e63c83b6737e + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"name": "MSProm-westus2-cliakstest000001", "location": "westus2", "kind": + "Linux", "properties": {}}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '101' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --name --location --enable-managed-identity --enable-azuremonitormetrics + --enable-windows-recording-rules --ssh-key-value --node-vm-size + User-Agent: + - python/3.8.10 (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) AZURECLI/2.48.1 + azuremonitormetrics.create_dce + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionEndpoints/MSProm-westus2-cliakstest000001?api-version=2022-06-01 + response: + body: + string: '{"properties":{"immutableId":"dce-0217486ca5814359a9ec470e4ae01d0d","configurationAccess":{"endpoint":"https://msprom-westus2-cliakstest000001-yowb.westus2-1.handler.control.monitor.azure.com"},"logsIngestion":{"endpoint":"https://msprom-westus2-cliakstest000001-yowb.westus2-1.ingest.monitor.azure.com"},"metricsIngestion":{"endpoint":"https://msprom-westus2-cliakstest000001-yowb.westus2-1.metrics.ingest.monitor.azure.com"},"networkAcls":{"publicNetworkAccess":"Enabled"},"provisioningState":"Succeeded"},"location":"westus2","kind":"Linux","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionEndpoints/MSProm-westus2-cliakstest000001","name":"MSProm-westus2-cliakstest000001","type":"Microsoft.Insights/dataCollectionEndpoints","etag":"\"2d0771ce-0000-0800-0000-645a9e860000\"","systemData":{"createdBy":"3fac8b4e-cd90-4baa-a5d2-66d52bc8349d","createdByType":"Application","createdAt":"2023-05-09T19:27:01.433414Z","lastModifiedBy":"3fac8b4e-cd90-4baa-a5d2-66d52bc8349d","lastModifiedByType":"Application","lastModifiedAt":"2023-05-09T19:27:01.433414Z"}}' + headers: + api-supported-versions: + - 2021-04-01, 2021-09-01-preview, 2022-06-01, 2023-03-11 + cache-control: + - no-cache + content-length: + - '1136' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 09 May 2023 19:27:03 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '59' + status: + code: 200 + message: OK +- request: + body: '{"location": "westus2", "kind": "Linux", "properties": {"dataCollectionEndpointId": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionEndpoints/MSProm-westus2-cliakstest000001", + "dataSources": {"prometheusForwarder": [{"name": "PrometheusDataSource", "streams": + ["Microsoft-PrometheusMetrics"], "labelIncludeFilter": {}}]}, "dataFlows": [{"destinations": + ["MonitoringAccount1"], "streams": ["Microsoft-PrometheusMetrics"]}], "description": + "DCR description", "destinations": {"monitoringAccounts": [{"accountResourceId": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/DefaultResourceGroup-westus2/providers/microsoft.monitor/accounts/DefaultAzureMonitorWorkspace-westus2", + "name": "MonitoringAccount1"}]}}}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '802' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --name --location --enable-managed-identity --enable-azuremonitormetrics + --enable-windows-recording-rules --ssh-key-value --node-vm-size + User-Agent: + - python/3.8.10 (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) AZURECLI/2.48.1 + azuremonitormetrics.create_dcr + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/MSProm-westus2-cliakstest000001?api-version=2022-06-01 + response: + body: + string: '{"properties":{"description":"DCR description","immutableId":"dcr-6138b93bc72d4fdcaea30a8aa3c7d7cc","dataCollectionEndpointId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionEndpoints/MSProm-westus2-cliakstest000001","dataSources":{"prometheusForwarder":[{"streams":["Microsoft-PrometheusMetrics"],"labelIncludeFilter":{},"name":"PrometheusDataSource"}]},"destinations":{"monitoringAccounts":[{"accountResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/DefaultResourceGroup-westus2/providers/microsoft.monitor/accounts/DefaultAzureMonitorWorkspace-westus2","accountId":"ec050f19-1529-4ec2-9d0c-e6677ca07ac8","name":"MonitoringAccount1"}]},"dataFlows":[{"streams":["Microsoft-PrometheusMetrics"],"destinations":["MonitoringAccount1"]}],"provisioningState":"Succeeded"},"location":"westus2","kind":"Linux","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/MSProm-westus2-cliakstest000001","name":"MSProm-westus2-cliakstest000001","type":"Microsoft.Insights/dataCollectionRules","etag":"\"2d0784cf-0000-0800-0000-645a9e890000\"","systemData":{"createdBy":"3fac8b4e-cd90-4baa-a5d2-66d52bc8349d","createdByType":"Application","createdAt":"2023-05-09T19:27:05.3480971Z","lastModifiedBy":"3fac8b4e-cd90-4baa-a5d2-66d52bc8349d","lastModifiedByType":"Application","lastModifiedAt":"2023-05-09T19:27:05.3480971Z"}}' + headers: + api-supported-versions: + - 2019-11-01-preview, 2021-04-01, 2021-09-01-preview, 2022-06-01, 2023-03-11 + cache-control: + - no-cache + content-length: + - '1497' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 09 May 2023 19:27:07 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '149' + status: + code: 200 + message: OK +- request: + body: '{"location": "westus2", "properties": {"dataCollectionRuleId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/MSProm-westus2-cliakstest000001", + "description": "Promtheus data collection association between DCR, DCE and target + AKS resource"}}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '325' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --name --location --enable-managed-identity --enable-azuremonitormetrics + --enable-windows-recording-rules --ssh-key-value --node-vm-size + User-Agent: + - python/3.8.10 (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) AZURECLI/2.48.1 + azuremonitormetrics.create_dcra + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000001/providers/Microsoft.Insights/dataCollectionRuleAssociations/ContainerInsightsMetricsExtension-westus2-cliakstest000001?api-version=2022-06-01 + response: + body: + string: '{"properties":{"description":"Promtheus data collection association + between DCR, DCE and target AKS resource","dataCollectionRuleId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/MSProm-westus2-cliakstest000001"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000001/providers/Microsoft.Insights/dataCollectionRuleAssociations/ContainerInsightsMetricsExtension-westus2-cliakstest000001","name":"ContainerInsightsMetricsExtension-westus2-cliakstest000001","type":"Microsoft.Insights/dataCollectionRuleAssociations","etag":"\"2d0768d0-0000-0800-0000-645a9e8c0000\"","systemData":{"createdBy":"3fac8b4e-cd90-4baa-a5d2-66d52bc8349d","createdByType":"Application","createdAt":"2023-05-09T19:27:07.7361002Z","lastModifiedBy":"3fac8b4e-cd90-4baa-a5d2-66d52bc8349d","lastModifiedByType":"Application","lastModifiedAt":"2023-05-09T19:27:07.7361002Z"}}' + headers: + api-supported-versions: + - 2019-11-01-preview, 2021-04-01, 2021-09-01-preview, 2022-06-01, 2023-03-11 + cache-control: + - no-cache + content-length: + - '1030' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 09 May 2023 19:27:08 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '299' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --enable-managed-identity --enable-azuremonitormetrics + --enable-windows-recording-rules --ssh-key-value --node-vm-size + User-Agent: + - python/3.8.10 (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) AZURECLI/2.48.1 + azuremonitormetrics.get_recording_rules_template + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/DefaultResourceGroup-westus2/providers/microsoft.monitor/accounts/DefaultAzureMonitorWorkspace-westus2/providers/microsoft.alertsManagement/alertRuleRecommendations?api-version=2023-01-01-preview + response: + body: + string: "{\r\n \"value\": [\r\n {\r\n \"id\": \"subscriptions/79a7390d-3a85-432d-9f6f-a11a703c8b83/resourceGroups/DefaultResourceGroup-westus2/providers/microsoft.monitor/accounts/DefaultAzureMonitorWorkspace-westus2/providers/microsoft.alertsManagement/alertRuleRecommendations/NodeRecordingRulesRuleGroup\",\r\n + \ \"name\": \"NodeRecordingRulesRuleGroup\",\r\n \"type\": \"Microsoft.AlertsManagement/AlertRuleRecommendations\",\r\n + \ \"location\": \"global\",\r\n \"properties\": {\r\n \"alertRuleType\": + \"Microsoft.AlertsManagement/prometheusRuleGroups\",\r\n \"displayInformation\": + {\r\n \"AlertRuleNamePrefix\": \"NodeRecordingRulesRuleGroup\",\r\n + \ \"RuleTitle\": \"This would be the info message for prom recording + rules\"\r\n },\r\n \"rulesArmTemplate\": {\r\n \"$schema\": + \"https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#\",\r\n + \ \"contentVersion\": \"1.0.0.0\",\r\n \"parameters\": {\r\n + \ \"targetResourceId\": {\r\n \"type\": \"string\",\r\n + \ \"defaultValue\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/DefaultResourceGroup-westus2/providers/microsoft.monitor/accounts/DefaultAzureMonitorWorkspace-westus2\"\r\n + \ },\r\n \"targetResourceName\": {\r\n \"type\": + \"string\",\r\n \"defaultValue\": \"defaultazuremonitorworkspace-westus2\"\r\n + \ },\r\n \"actionGroupIds\": {\r\n \"type\": + \"array\",\r\n \"defaultValue\": [],\r\n \"metadata\": + {\r\n \"description\": \"Insert Action groups ids to attach + them to the below alert rules.\"\r\n }\r\n },\r\n + \ \"location\": {\r\n \"type\": \"string\",\r\n \"defaultValue\": + \"westus2\"\r\n },\r\n \"clusterNameForPrometheus\": + {\r\n \"type\": \"string\"\r\n },\r\n \"alertNamePrefix\": + {\r\n \"type\": \"string\",\r\n \"defaultValue\": + \"NodeRecordingRulesRuleGroup\",\r\n \"minLength\": 1,\r\n \"metadata\": + {\r\n \"description\": \"prefix of the alert rule name\"\r\n + \ }\r\n },\r\n \"alertName\": {\r\n \"type\": + \"string\",\r\n \"defaultValue\": \"[concat(parameters('alertNamePrefix'), + ' - ', parameters('clusterNameForPrometheus'))]\",\r\n \"minLength\": + 1,\r\n \"metadata\": {\r\n \"description\": \"Name + of the alert rule\"\r\n }\r\n }\r\n },\r\n + \ \"variables\": {\r\n \"scopes\": \"[array(parameters('targetResourceId'))]\",\r\n + \ \"copy\": [\r\n {\r\n \"name\": \"actionsForPrometheusRuleGroups\",\r\n + \ \"count\": \"[length(parameters('actionGroupIds'))]\",\r\n + \ \"input\": {\r\n \"actiongroupId\": \"[parameters('actionGroupIds')[copyIndex('actionsForPrometheusRuleGroups')]]\"\r\n + \ }\r\n }\r\n ]\r\n },\r\n + \ \"resources\": [\r\n {\r\n \"name\": \"[parameters('alertName')]\",\r\n + \ \"type\": \"Microsoft.AlertsManagement/prometheusRuleGroups\",\r\n + \ \"apiVersion\": \"2021-07-22-preview\",\r\n \"location\": + \"[parameters('location')]\",\r\n \"properties\": {\r\n \"description\": + \"Node Recording Rules RuleGroup\",\r\n \"scopes\": \"[variables('scopes')]\",\r\n + \ \"clusterName\": \"[parameters('clusterNameForPrometheus')]\",\r\n + \ \"interval\": \"PT1M\",\r\n \"rules\": [\r\n + \ {\r\n \"record\": \"instance:node_num_cpu:sum\",\r\n + \ \"expression\": \"count without (cpu, mode) ( node_cpu_seconds_total{job=\\\"node\\\",mode=\\\"idle\\\"})\"\r\n + \ },\r\n {\r\n \"record\": + \"instance:node_cpu_utilisation:rate5m\",\r\n \"expression\": + \"1 - avg without (cpu) ( sum without (mode) (rate(node_cpu_seconds_total{job=\\\"node\\\", + mode=~\\\"idle|iowait|steal\\\"}[5m])))\"\r\n },\r\n {\r\n + \ \"record\": \"instance:node_load1_per_cpu:ratio\",\r\n + \ \"expression\": \"( node_load1{job=\\\"node\\\"}/ instance:node_num_cpu:sum{job=\\\"node\\\"})\"\r\n + \ },\r\n {\r\n \"record\": + \"instance:node_memory_utilisation:ratio\",\r\n \"expression\": + \"1 - ( ( node_memory_MemAvailable_bytes{job=\\\"node\\\"} or ( + \ node_memory_Buffers_bytes{job=\\\"node\\\"} + node_memory_Cached_bytes{job=\\\"node\\\"} + \ + node_memory_MemFree_bytes{job=\\\"node\\\"} + node_memory_Slab_bytes{job=\\\"node\\\"} + \ ) )/ node_memory_MemTotal_bytes{job=\\\"node\\\"})\"\r\n },\r\n + \ {\r\n \"record\": \"instance:node_vmstat_pgmajfault:rate5m\",\r\n + \ \"expression\": \"rate(node_vmstat_pgmajfault{job=\\\"node\\\"}[5m])\"\r\n + \ },\r\n {\r\n \"record\": + \"instance_device:node_disk_io_time_seconds:rate5m\",\r\n \"expression\": + \"rate(node_disk_io_time_seconds_total{job=\\\"node\\\", device!=\\\"\\\"}[5m])\"\r\n + \ },\r\n {\r\n \"record\": + \"instance_device:node_disk_io_time_weighted_seconds:rate5m\",\r\n \"expression\": + \"rate(node_disk_io_time_weighted_seconds_total{job=\\\"node\\\", device!=\\\"\\\"}[5m])\"\r\n + \ },\r\n {\r\n \"record\": + \"instance:node_network_receive_bytes_excluding_lo:rate5m\",\r\n \"expression\": + \"sum without (device) ( rate(node_network_receive_bytes_total{job=\\\"node\\\", + device!=\\\"lo\\\"}[5m]))\"\r\n },\r\n {\r\n + \ \"record\": \"instance:node_network_transmit_bytes_excluding_lo:rate5m\",\r\n + \ \"expression\": \"sum without (device) ( rate(node_network_transmit_bytes_total{job=\\\"node\\\", + device!=\\\"lo\\\"}[5m]))\"\r\n },\r\n {\r\n + \ \"record\": \"instance:node_network_receive_drop_excluding_lo:rate5m\",\r\n + \ \"expression\": \"sum without (device) ( rate(node_network_receive_drop_total{job=\\\"node\\\", + device!=\\\"lo\\\"}[5m]))\"\r\n },\r\n {\r\n + \ \"record\": \"instance:node_network_transmit_drop_excluding_lo:rate5m\",\r\n + \ \"expression\": \"sum without (device) ( rate(node_network_transmit_drop_total{job=\\\"node\\\", + device!=\\\"lo\\\"}[5m]))\"\r\n }\r\n ]\r\n + \ }\r\n }\r\n ]\r\n }\r\n }\r\n + \ },\r\n {\r\n \"id\": \"subscriptions/79a7390d-3a85-432d-9f6f-a11a703c8b83/resourceGroups/DefaultResourceGroup-westus2/providers/microsoft.monitor/accounts/DefaultAzureMonitorWorkspace-westus2/providers/microsoft.alertsManagement/alertRuleRecommendations/KubernetesRecordingRulesRuleGroup\",\r\n + \ \"name\": \"KubernetesRecordingRulesRuleGroup\",\r\n \"type\": + \"Microsoft.AlertsManagement/AlertRuleRecommendations\",\r\n \"location\": + \"global\",\r\n \"properties\": {\r\n \"alertRuleType\": \"Microsoft.AlertsManagement/prometheusRuleGroups\",\r\n + \ \"displayInformation\": {\r\n \"AlertRuleNamePrefix\": \"KubernetesRecordingRulesRuleGroup\",\r\n + \ \"RuleTitle\": \"This would be the info message for prom recording + rules\"\r\n },\r\n \"rulesArmTemplate\": {\r\n \"$schema\": + \"https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#\",\r\n + \ \"contentVersion\": \"1.0.0.0\",\r\n \"parameters\": {\r\n + \ \"targetResourceId\": {\r\n \"type\": \"string\",\r\n + \ \"defaultValue\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/DefaultResourceGroup-westus2/providers/microsoft.monitor/accounts/DefaultAzureMonitorWorkspace-westus2\"\r\n + \ },\r\n \"targetResourceName\": {\r\n \"type\": + \"string\",\r\n \"defaultValue\": \"defaultazuremonitorworkspace-westus2\"\r\n + \ },\r\n \"actionGroupIds\": {\r\n \"type\": + \"array\",\r\n \"defaultValue\": [],\r\n \"metadata\": + {\r\n \"description\": \"Insert Action groups ids to attach + them to the below alert rules.\"\r\n }\r\n },\r\n + \ \"location\": {\r\n \"type\": \"string\",\r\n \"defaultValue\": + \"westus2\"\r\n },\r\n \"clusterNameForPrometheus\": + {\r\n \"type\": \"string\"\r\n },\r\n \"alertNamePrefix\": + {\r\n \"type\": \"string\",\r\n \"defaultValue\": + \"KubernetesRecordingRulesRuleGroup\",\r\n \"minLength\": 1,\r\n + \ \"metadata\": {\r\n \"description\": \"prefix + of the alert rule name\"\r\n }\r\n },\r\n \"alertName\": + {\r\n \"type\": \"string\",\r\n \"defaultValue\": + \"[concat(parameters('alertNamePrefix'), ' - ', parameters('clusterNameForPrometheus'))]\",\r\n + \ \"minLength\": 1,\r\n \"metadata\": {\r\n \"description\": + \"Name of the alert rule\"\r\n }\r\n }\r\n },\r\n + \ \"variables\": {\r\n \"scopes\": \"[array(parameters('targetResourceId'))]\",\r\n + \ \"copy\": [\r\n {\r\n \"name\": \"actionsForPrometheusRuleGroups\",\r\n + \ \"count\": \"[length(parameters('actionGroupIds'))]\",\r\n + \ \"input\": {\r\n \"actiongroupId\": \"[parameters('actionGroupIds')[copyIndex('actionsForPrometheusRuleGroups')]]\"\r\n + \ }\r\n }\r\n ]\r\n },\r\n + \ \"resources\": [\r\n {\r\n \"name\": \"[parameters('alertName')]\",\r\n + \ \"type\": \"Microsoft.AlertsManagement/prometheusRuleGroups\",\r\n + \ \"apiVersion\": \"2021-07-22-preview\",\r\n \"location\": + \"[parameters('location')]\",\r\n \"properties\": {\r\n \"description\": + \"Kubernetes Recording Rules RuleGroup\",\r\n \"scopes\": \"[variables('scopes')]\",\r\n + \ \"clusterName\": \"[parameters('clusterNameForPrometheus')]\",\r\n + \ \"interval\": \"PT1M\",\r\n \"rules\": [\r\n + \ {\r\n \"record\": \"node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate\",\r\n + \ \"expression\": \"sum by (cluster, namespace, pod, container) + ( irate(container_cpu_usage_seconds_total{job=\\\"cadvisor\\\", image!=\\\"\\\"}[5m])) + * on (cluster, namespace, pod) group_left(node) topk by (cluster, namespace, + pod) ( 1, max by(cluster, namespace, pod, node) (kube_pod_info{node!=\\\"\\\"}))\"\r\n + \ },\r\n {\r\n \"record\": + \"node_namespace_pod_container:container_memory_working_set_bytes\",\r\n \"expression\": + \"container_memory_working_set_bytes{job=\\\"cadvisor\\\", image!=\\\"\\\"}* + on (namespace, pod) group_left(node) topk by(namespace, pod) (1, max by(namespace, + pod, node) (kube_pod_info{node!=\\\"\\\"}))\"\r\n },\r\n + \ {\r\n \"record\": \"node_namespace_pod_container:container_memory_rss\",\r\n + \ \"expression\": \"container_memory_rss{job=\\\"cadvisor\\\", + image!=\\\"\\\"}* on (namespace, pod) group_left(node) topk by(namespace, + pod) (1, max by(namespace, pod, node) (kube_pod_info{node!=\\\"\\\"}))\"\r\n + \ },\r\n {\r\n \"record\": + \"node_namespace_pod_container:container_memory_cache\",\r\n \"expression\": + \"container_memory_cache{job=\\\"cadvisor\\\", image!=\\\"\\\"}* on (namespace, + pod) group_left(node) topk by(namespace, pod) (1, max by(namespace, pod, + node) (kube_pod_info{node!=\\\"\\\"}))\"\r\n },\r\n {\r\n + \ \"record\": \"node_namespace_pod_container:container_memory_swap\",\r\n + \ \"expression\": \"container_memory_swap{job=\\\"cadvisor\\\", + image!=\\\"\\\"}* on (namespace, pod) group_left(node) topk by(namespace, + pod) (1, max by(namespace, pod, node) (kube_pod_info{node!=\\\"\\\"}))\"\r\n + \ },\r\n {\r\n \"record\": + \"cluster:namespace:pod_memory:active:kube_pod_container_resource_requests\",\r\n + \ \"expression\": \"kube_pod_container_resource_requests{resource=\\\"memory\\\",job=\\\"kube-state-metrics\\\"} + \ * on (namespace, pod, cluster)group_left() max by (namespace, pod, cluster) + ( (kube_pod_status_phase{phase=~\\\"Pending|Running\\\"} == 1))\"\r\n },\r\n + \ {\r\n \"record\": \"namespace_memory:kube_pod_container_resource_requests:sum\",\r\n + \ \"expression\": \"sum by (namespace, cluster) ( sum + by (namespace, pod, cluster) ( max by (namespace, pod, container, cluster) + ( kube_pod_container_resource_requests{resource=\\\"memory\\\",job=\\\"kube-state-metrics\\\"} + \ ) * on(namespace, pod, cluster) group_left() max by (namespace, pod, + cluster) ( kube_pod_status_phase{phase=~\\\"Pending|Running\\\"} + == 1 ) ))\"\r\n },\r\n {\r\n \"record\": + \"cluster:namespace:pod_cpu:active:kube_pod_container_resource_requests\",\r\n + \ \"expression\": \"kube_pod_container_resource_requests{resource=\\\"cpu\\\",job=\\\"kube-state-metrics\\\"} + \ * on (namespace, pod, cluster)group_left() max by (namespace, pod, cluster) + ( (kube_pod_status_phase{phase=~\\\"Pending|Running\\\"} == 1))\"\r\n },\r\n + \ {\r\n \"record\": \"namespace_cpu:kube_pod_container_resource_requests:sum\",\r\n + \ \"expression\": \"sum by (namespace, cluster) ( sum + by (namespace, pod, cluster) ( max by (namespace, pod, container, cluster) + ( kube_pod_container_resource_requests{resource=\\\"cpu\\\",job=\\\"kube-state-metrics\\\"} + \ ) * on(namespace, pod, cluster) group_left() max by (namespace, pod, + cluster) ( kube_pod_status_phase{phase=~\\\"Pending|Running\\\"} + == 1 ) ))\"\r\n },\r\n {\r\n \"record\": + \"cluster:namespace:pod_memory:active:kube_pod_container_resource_limits\",\r\n + \ \"expression\": \"kube_pod_container_resource_limits{resource=\\\"memory\\\",job=\\\"kube-state-metrics\\\"} + \ * on (namespace, pod, cluster)group_left() max by (namespace, pod, cluster) + ( (kube_pod_status_phase{phase=~\\\"Pending|Running\\\"} == 1))\"\r\n },\r\n + \ {\r\n \"record\": \"namespace_memory:kube_pod_container_resource_limits:sum\",\r\n + \ \"expression\": \"sum by (namespace, cluster) ( sum + by (namespace, pod, cluster) ( max by (namespace, pod, container, cluster) + ( kube_pod_container_resource_limits{resource=\\\"memory\\\",job=\\\"kube-state-metrics\\\"} + \ ) * on(namespace, pod, cluster) group_left() max by (namespace, pod, + cluster) ( kube_pod_status_phase{phase=~\\\"Pending|Running\\\"} + == 1 ) ))\"\r\n },\r\n {\r\n \"record\": + \"cluster:namespace:pod_cpu:active:kube_pod_container_resource_limits\",\r\n + \ \"expression\": \"kube_pod_container_resource_limits{resource=\\\"cpu\\\",job=\\\"kube-state-metrics\\\"} + \ * on (namespace, pod, cluster)group_left() max by (namespace, pod, cluster) + ( (kube_pod_status_phase{phase=~\\\"Pending|Running\\\"} == 1) )\"\r\n },\r\n + \ {\r\n \"record\": \"namespace_cpu:kube_pod_container_resource_limits:sum\",\r\n + \ \"expression\": \"sum by (namespace, cluster) ( sum + by (namespace, pod, cluster) ( max by (namespace, pod, container, cluster) + ( kube_pod_container_resource_limits{resource=\\\"cpu\\\",job=\\\"kube-state-metrics\\\"} + \ ) * on(namespace, pod, cluster) group_left() max by (namespace, pod, + cluster) ( kube_pod_status_phase{phase=~\\\"Pending|Running\\\"} + == 1 ) ))\"\r\n },\r\n {\r\n \"record\": + \"namespace_workload_pod:kube_pod_owner:relabel\",\r\n \"expression\": + \"max by (cluster, namespace, workload, pod) ( label_replace( label_replace( + \ kube_pod_owner{job=\\\"kube-state-metrics\\\", owner_kind=\\\"ReplicaSet\\\"}, + \ \\\"replicaset\\\", \\\"$1\\\", \\\"owner_name\\\", \\\"(.*)\\\" ) + * on(replicaset, namespace) group_left(owner_name) topk by(replicaset, namespace) + ( 1, max by (replicaset, namespace, owner_name) ( kube_replicaset_owner{job=\\\"kube-state-metrics\\\"} + \ ) ), \\\"workload\\\", \\\"$1\\\", \\\"owner_name\\\", \\\"(.*)\\\" + \ ))\",\r\n \"labels\": {\r\n \"workload_type\": + \"deployment\"\r\n }\r\n },\r\n {\r\n + \ \"record\": \"namespace_workload_pod:kube_pod_owner:relabel\",\r\n + \ \"expression\": \"max by (cluster, namespace, workload, + pod) ( label_replace( kube_pod_owner{job=\\\"kube-state-metrics\\\", owner_kind=\\\"DaemonSet\\\"}, + \ \\\"workload\\\", \\\"$1\\\", \\\"owner_name\\\", \\\"(.*)\\\" ))\",\r\n + \ \"labels\": {\r\n \"workload_type\": + \"daemonset\"\r\n }\r\n },\r\n {\r\n + \ \"record\": \"namespace_workload_pod:kube_pod_owner:relabel\",\r\n + \ \"expression\": \"max by (cluster, namespace, workload, + pod) ( label_replace( kube_pod_owner{job=\\\"kube-state-metrics\\\", owner_kind=\\\"StatefulSet\\\"}, + \ \\\"workload\\\", \\\"$1\\\", \\\"owner_name\\\", \\\"(.*)\\\" ))\",\r\n + \ \"labels\": {\r\n \"workload_type\": + \"statefulset\"\r\n }\r\n },\r\n {\r\n + \ \"record\": \"namespace_workload_pod:kube_pod_owner:relabel\",\r\n + \ \"expression\": \"max by (cluster, namespace, workload, + pod) ( label_replace( kube_pod_owner{job=\\\"kube-state-metrics\\\", owner_kind=\\\"Job\\\"}, + \ \\\"workload\\\", \\\"$1\\\", \\\"owner_name\\\", \\\"(.*)\\\" ))\",\r\n + \ \"labels\": {\r\n \"workload_type\": + \"job\"\r\n }\r\n },\r\n {\r\n + \ \"record\": \":node_memory_MemAvailable_bytes:sum\",\r\n + \ \"expression\": \"sum( node_memory_MemAvailable_bytes{job=\\\"node\\\"} + or ( node_memory_Buffers_bytes{job=\\\"node\\\"} + node_memory_Cached_bytes{job=\\\"node\\\"} + + node_memory_MemFree_bytes{job=\\\"node\\\"} + node_memory_Slab_bytes{job=\\\"node\\\"} + \ )) by (cluster)\"\r\n },\r\n {\r\n \"record\": + \"cluster:node_cpu:ratio_rate5m\",\r\n \"expression\": + \"sum(rate(node_cpu_seconds_total{job=\\\"node\\\",mode!=\\\"idle\\\",mode!=\\\"iowait\\\",mode!=\\\"steal\\\"}[5m])) + by (cluster) /count(sum(node_cpu_seconds_total{job=\\\"node\\\"}) by (cluster, + instance, cpu)) by (cluster)\"\r\n }\r\n ]\r\n + \ }\r\n }\r\n ]\r\n }\r\n }\r\n + \ },\r\n {\r\n \"id\": \"subscriptions/79a7390d-3a85-432d-9f6f-a11a703c8b83/resourceGroups/DefaultResourceGroup-westus2/providers/microsoft.monitor/accounts/DefaultAzureMonitorWorkspace-westus2/providers/microsoft.alertsManagement/alertRuleRecommendations/NodeRecordingRulesRuleGroup-Win\",\r\n + \ \"name\": \"NodeRecordingRulesRuleGroup-Win\",\r\n \"type\": \"Microsoft.AlertsManagement/AlertRuleRecommendations\",\r\n + \ \"location\": \"global\",\r\n \"properties\": {\r\n \"alertRuleType\": + \"Microsoft.AlertsManagement/prometheusRuleGroups\",\r\n \"displayInformation\": + {\r\n \"AlertRuleNamePrefix\": \"NodeRecordingRulesRuleGroup-Win\",\r\n + \ \"RuleTitle\": \"Windows Recording Rules\"\r\n },\r\n \"rulesArmTemplate\": + {\r\n \"$schema\": \"https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#\",\r\n + \ \"contentVersion\": \"1.0.0.0\",\r\n \"parameters\": {\r\n + \ \"targetResourceId\": {\r\n \"type\": \"string\",\r\n + \ \"defaultValue\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/DefaultResourceGroup-westus2/providers/microsoft.monitor/accounts/DefaultAzureMonitorWorkspace-westus2\"\r\n + \ },\r\n \"targetResourceName\": {\r\n \"type\": + \"string\",\r\n \"defaultValue\": \"defaultazuremonitorworkspace-westus2\"\r\n + \ },\r\n \"actionGroupIds\": {\r\n \"type\": + \"array\",\r\n \"defaultValue\": [],\r\n \"metadata\": + {\r\n \"description\": \"Insert Action groups ids to attach + them to the below alert rules.\"\r\n }\r\n },\r\n + \ \"location\": {\r\n \"type\": \"string\",\r\n \"defaultValue\": + \"westus2\"\r\n },\r\n \"clusterNameForPrometheus\": + {\r\n \"type\": \"string\"\r\n },\r\n \"alertNamePrefix\": + {\r\n \"type\": \"string\",\r\n \"defaultValue\": + \"NodeRecordingRulesRuleGroup-Win\",\r\n \"minLength\": 1,\r\n + \ \"metadata\": {\r\n \"description\": \"prefix + of the alert rule name\"\r\n }\r\n },\r\n \"alertName\": + {\r\n \"type\": \"string\",\r\n \"defaultValue\": + \"[concat(parameters('alertNamePrefix'), ' - ', parameters('clusterNameForPrometheus'))]\",\r\n + \ \"minLength\": 1,\r\n \"metadata\": {\r\n \"description\": + \"Name of the alert rule\"\r\n }\r\n }\r\n },\r\n + \ \"variables\": {\r\n \"scopes\": \"[array(parameters('targetResourceId'))]\",\r\n + \ \"copy\": [\r\n {\r\n \"name\": \"actionsForPrometheusRuleGroups\",\r\n + \ \"count\": \"[length(parameters('actionGroupIds'))]\",\r\n + \ \"input\": {\r\n \"actiongroupId\": \"[parameters('actionGroupIds')[copyIndex('actionsForPrometheusRuleGroups')]]\"\r\n + \ }\r\n }\r\n ]\r\n },\r\n + \ \"resources\": [\r\n {\r\n \"name\": \"[parameters('alertName')]\",\r\n + \ \"type\": \"Microsoft.AlertsManagement/prometheusRuleGroups\",\r\n + \ \"apiVersion\": \"2021-07-22-preview\",\r\n \"location\": + \"[parameters('location')]\",\r\n \"properties\": {\r\n \"description\": + \"Node Recording Rules RuleGroup for Windows\",\r\n \"scopes\": + \"[variables('scopes')]\",\r\n \"clusterName\": \"[parameters('clusterNameForPrometheus')]\",\r\n + \ \"interval\": \"PT1M\",\r\n \"rules\": [\r\n + \ {\r\n \"record\": \"node:windows_node:sum\",\r\n + \ \"expression\": \"count (windows_system_system_up_time{job=\\\"windows-exporter\\\"})\"\r\n + \ },\r\n {\r\n \"record\": + \"node:windows_node_num_cpu:sum\",\r\n \"expression\": + \"count by (instance) (sum by (instance, core) (windows_cpu_time_total{job=\\\"windows-exporter\\\"}))\"\r\n + \ },\r\n {\r\n \"record\": + \":windows_node_cpu_utilisation:avg5m\",\r\n \"expression\": + \"1 - avg(rate(windows_cpu_time_total{job=\\\"windows-exporter\\\",mode=\\\"idle\\\"}[5m]))\"\r\n + \ },\r\n {\r\n \"record\": + \"node:windows_node_cpu_utilisation:avg5m\",\r\n \"expression\": + \"1 - avg by (instance) (rate(windows_cpu_time_total{job=\\\"windows-exporter\\\",mode=\\\"idle\\\"}[5m]))\"\r\n + \ },\r\n {\r\n \"record\": + \":windows_node_memory_utilisation:\",\r\n \"expression\": + \"1 -sum(windows_memory_available_bytes{job=\\\"windows-exporter\\\"})/sum(windows_os_visible_memory_bytes{job=\\\"windows-exporter\\\"})\"\r\n + \ },\r\n {\r\n \"record\": + \":windows_node_memory_MemFreeCached_bytes:sum\",\r\n \"expression\": + \"sum(windows_memory_available_bytes{job=\\\"windows-exporter\\\"} + windows_memory_cache_bytes{job=\\\"windows-exporter\\\"})\"\r\n + \ },\r\n {\r\n \"record\": + \"node:windows_node_memory_totalCached_bytes:sum\",\r\n \"expression\": + \"(windows_memory_cache_bytes{job=\\\"windows-exporter\\\"} + windows_memory_modified_page_list_bytes{job=\\\"windows-exporter\\\"} + + windows_memory_standby_cache_core_bytes{job=\\\"windows-exporter\\\"} + + windows_memory_standby_cache_normal_priority_bytes{job=\\\"windows-exporter\\\"} + + windows_memory_standby_cache_reserve_bytes{job=\\\"windows-exporter\\\"})\"\r\n + \ },\r\n {\r\n \"record\": + \":windows_node_memory_MemTotal_bytes:sum\",\r\n \"expression\": + \"sum(windows_os_visible_memory_bytes{job=\\\"windows-exporter\\\"})\"\r\n + \ },\r\n {\r\n \"record\": + \"node:windows_node_memory_bytes_available:sum\",\r\n \"expression\": + \"sum by (instance) ((windows_memory_available_bytes{job=\\\"windows-exporter\\\"}))\"\r\n + \ },\r\n {\r\n \"record\": + \"node:windows_node_memory_bytes_total:sum\",\r\n \"expression\": + \"sum by (instance) (windows_os_visible_memory_bytes{job=\\\"windows-exporter\\\"})\"\r\n + \ },\r\n {\r\n \"record\": + \"node:windows_node_memory_utilisation:ratio\",\r\n \"expression\": + \"(node:windows_node_memory_bytes_total:sum - node:windows_node_memory_bytes_available:sum) + / scalar(sum(node:windows_node_memory_bytes_total:sum))\"\r\n },\r\n + \ {\r\n \"record\": \"node:windows_node_memory_utilisation:\",\r\n + \ \"expression\": \"1 - (node:windows_node_memory_bytes_available:sum + / node:windows_node_memory_bytes_total:sum)\"\r\n },\r\n + \ {\r\n \"record\": \"node:windows_node_memory_swap_io_pages:irate\",\r\n + \ \"expression\": \"irate(windows_memory_swap_page_operations_total{job=\\\"windows-exporter\\\"}[5m])\"\r\n + \ },\r\n {\r\n \"record\": + \":windows_node_disk_utilisation:avg_irate\",\r\n \"expression\": + \"avg(irate(windows_logical_disk_read_seconds_total{job=\\\"windows-exporter\\\"}[5m]) + + irate(windows_logical_disk_write_seconds_total{job=\\\"windows-exporter\\\"}[5m]))\"\r\n + \ },\r\n {\r\n \"record\": + \"node:windows_node_disk_utilisation:avg_irate\",\r\n \"expression\": + \"avg by (instance) ((irate(windows_logical_disk_read_seconds_total{job=\\\"windows-exporter\\\"}[5m]) + + irate(windows_logical_disk_write_seconds_total{job=\\\"windows-exporter\\\"}[5m])))\"\r\n + \ }\r\n ]\r\n }\r\n }\r\n + \ ]\r\n }\r\n }\r\n },\r\n {\r\n \"id\": \"subscriptions/79a7390d-3a85-432d-9f6f-a11a703c8b83/resourceGroups/DefaultResourceGroup-westus2/providers/microsoft.monitor/accounts/DefaultAzureMonitorWorkspace-westus2/providers/microsoft.alertsManagement/alertRuleRecommendations/NodeAndKubernetesRecordingRulesRuleGroup-Win\",\r\n + \ \"name\": \"NodeAndKubernetesRecordingRulesRuleGroup-Win\",\r\n \"type\": + \"Microsoft.AlertsManagement/AlertRuleRecommendations\",\r\n \"location\": + \"global\",\r\n \"properties\": {\r\n \"alertRuleType\": \"Microsoft.AlertsManagement/prometheusRuleGroups\",\r\n + \ \"displayInformation\": {\r\n \"AlertRuleNamePrefix\": \"NodeAndKubernetesRecordingRulesRuleGroup-Win\",\r\n + \ \"RuleTitle\": \"Windows Recording Rules\"\r\n },\r\n \"rulesArmTemplate\": + {\r\n \"$schema\": \"https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#\",\r\n + \ \"contentVersion\": \"1.0.0.0\",\r\n \"parameters\": {\r\n + \ \"targetResourceId\": {\r\n \"type\": \"string\",\r\n + \ \"defaultValue\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/DefaultResourceGroup-westus2/providers/microsoft.monitor/accounts/DefaultAzureMonitorWorkspace-westus2\"\r\n + \ },\r\n \"targetResourceName\": {\r\n \"type\": + \"string\",\r\n \"defaultValue\": \"defaultazuremonitorworkspace-westus2\"\r\n + \ },\r\n \"actionGroupIds\": {\r\n \"type\": + \"array\",\r\n \"defaultValue\": [],\r\n \"metadata\": + {\r\n \"description\": \"Insert Action groups ids to attach + them to the below alert rules.\"\r\n }\r\n },\r\n + \ \"location\": {\r\n \"type\": \"string\",\r\n \"defaultValue\": + \"westus2\"\r\n },\r\n \"clusterNameForPrometheus\": + {\r\n \"type\": \"string\"\r\n },\r\n \"alertNamePrefix\": + {\r\n \"type\": \"string\",\r\n \"defaultValue\": + \"NodeAndKubernetesRecordingRulesRuleGroup-Win\",\r\n \"minLength\": + 1,\r\n \"metadata\": {\r\n \"description\": \"prefix + of the alert rule name\"\r\n }\r\n },\r\n \"alertName\": + {\r\n \"type\": \"string\",\r\n \"defaultValue\": + \"[concat(parameters('alertNamePrefix'), ' - ', parameters('clusterNameForPrometheus'))]\",\r\n + \ \"minLength\": 1,\r\n \"metadata\": {\r\n \"description\": + \"Name of the alert rule\"\r\n }\r\n }\r\n },\r\n + \ \"variables\": {\r\n \"scopes\": \"[array(parameters('targetResourceId'))]\",\r\n + \ \"copy\": [\r\n {\r\n \"name\": \"actionsForPrometheusRuleGroups\",\r\n + \ \"count\": \"[length(parameters('actionGroupIds'))]\",\r\n + \ \"input\": {\r\n \"actiongroupId\": \"[parameters('actionGroupIds')[copyIndex('actionsForPrometheusRuleGroups')]]\"\r\n + \ }\r\n }\r\n ]\r\n },\r\n + \ \"resources\": [\r\n {\r\n \"name\": \"[parameters('alertName')]\",\r\n + \ \"type\": \"Microsoft.AlertsManagement/prometheusRuleGroups\",\r\n + \ \"apiVersion\": \"2021-07-22-preview\",\r\n \"location\": + \"[parameters('location')]\",\r\n \"properties\": {\r\n \"description\": + \"Node and Kubernetes Recording Rules RuleGroup for Windows\",\r\n \"scopes\": + \"[variables('scopes')]\",\r\n \"clusterName\": \"[parameters('clusterNameForPrometheus')]\",\r\n + \ \"interval\": \"PT1M\",\r\n \"rules\": [\r\n + \ {\r\n \"record\": \"node:windows_node_filesystem_usage:\",\r\n + \ \"expression\": \"max by (instance,volume)((windows_logical_disk_size_bytes{job=\\\"windows-exporter\\\"} + - windows_logical_disk_free_bytes{job=\\\"windows-exporter\\\"}) / windows_logical_disk_size_bytes{job=\\\"windows-exporter\\\"})\"\r\n + \ },\r\n {\r\n \"record\": + \"node:windows_node_filesystem_avail:\",\r\n \"expression\": + \"max by (instance, volume) (windows_logical_disk_free_bytes{job=\\\"windows-exporter\\\"} + / windows_logical_disk_size_bytes{job=\\\"windows-exporter\\\"})\"\r\n },\r\n + \ {\r\n \"record\": \":windows_node_net_utilisation:sum_irate\",\r\n + \ \"expression\": \"sum(irate(windows_net_bytes_total{job=\\\"windows-exporter\\\"}[5m]))\"\r\n + \ },\r\n {\r\n \"record\": + \"node:windows_node_net_utilisation:sum_irate\",\r\n \"expression\": + \"sum by (instance) ((irate(windows_net_bytes_total{job=\\\"windows-exporter\\\"}[5m])))\"\r\n + \ },\r\n {\r\n \"record\": + \":windows_node_net_saturation:sum_irate\",\r\n \"expression\": + \"sum(irate(windows_net_packets_received_discarded_total{job=\\\"windows-exporter\\\"}[5m])) + + sum(irate(windows_net_packets_outbound_discarded_total{job=\\\"windows-exporter\\\"}[5m]))\"\r\n + \ },\r\n {\r\n \"record\": + \"node:windows_node_net_saturation:sum_irate\",\r\n \"expression\": + \"sum by (instance) ((irate(windows_net_packets_received_discarded_total{job=\\\"windows-exporter\\\"}[5m]) + + irate(windows_net_packets_outbound_discarded_total{job=\\\"windows-exporter\\\"}[5m])))\"\r\n + \ },\r\n {\r\n \"record\": + \"windows_pod_container_available\",\r\n \"expression\": + \"windows_container_available{job=\\\"windows-exporter\\\"} * on(container_id) + group_left(container, pod, namespace) max(kube_pod_container_info{job=\\\"kube-state-metrics\\\"}) + by(container, container_id, pod, namespace)\"\r\n },\r\n + \ {\r\n \"record\": \"windows_container_total_runtime\",\r\n + \ \"expression\": \"windows_container_cpu_usage_seconds_total{job=\\\"windows-exporter\\\"} + * on(container_id) group_left(container, pod, namespace) max(kube_pod_container_info{job=\\\"kube-state-metrics\\\"}) + by(container, container_id, pod, namespace)\"\r\n },\r\n + \ {\r\n \"record\": \"windows_container_memory_usage\",\r\n + \ \"expression\": \"windows_container_memory_usage_commit_bytes{job=\\\"windows-exporter\\\"} + * on(container_id) group_left(container, pod, namespace) max(kube_pod_container_info{job=\\\"kube-state-metrics\\\"}) + by(container, container_id, pod, namespace)\"\r\n },\r\n + \ {\r\n \"record\": \"windows_container_private_working_set_usage\",\r\n + \ \"expression\": \"windows_container_memory_usage_private_working_set_bytes{job=\\\"windows-exporter\\\"} + * on(container_id) group_left(container, pod, namespace) max(kube_pod_container_info{job=\\\"kube-state-metrics\\\"}) + by(container, container_id, pod, namespace)\"\r\n },\r\n + \ {\r\n \"record\": \"windows_container_network_received_bytes_total\",\r\n + \ \"expression\": \"windows_container_network_receive_bytes_total{job=\\\"windows-exporter\\\"} + * on(container_id) group_left(container, pod, namespace) max(kube_pod_container_info{job=\\\"kube-state-metrics\\\"}) + by(container, container_id, pod, namespace)\"\r\n },\r\n + \ {\r\n \"record\": \"windows_container_network_transmitted_bytes_total\",\r\n + \ \"expression\": \"windows_container_network_transmit_bytes_total{job=\\\"windows-exporter\\\"} + * on(container_id) group_left(container, pod, namespace) max(kube_pod_container_info{job=\\\"kube-state-metrics\\\"}) + by(container, container_id, pod, namespace)\"\r\n },\r\n + \ {\r\n \"record\": \"kube_pod_windows_container_resource_memory_request\",\r\n + \ \"expression\": \"max by (namespace, pod, container) (kube_pod_container_resource_requests{resource=\\\"memory\\\",job=\\\"kube-state-metrics\\\"}) + * on(container,pod,namespace) (windows_pod_container_available)\"\r\n },\r\n + \ {\r\n \"record\": \"kube_pod_windows_container_resource_memory_limit\",\r\n + \ \"expression\": \"kube_pod_container_resource_limits{resource=\\\"memory\\\",job=\\\"kube-state-metrics\\\"} + * on(container,pod,namespace) (windows_pod_container_available)\"\r\n },\r\n + \ {\r\n \"record\": \"kube_pod_windows_container_resource_cpu_cores_request\",\r\n + \ \"expression\": \"max by (namespace, pod, container) ( + kube_pod_container_resource_requests{resource=\\\"cpu\\\",job=\\\"kube-state-metrics\\\"}) + * on(container,pod,namespace) (windows_pod_container_available)\"\r\n },\r\n + \ {\r\n \"record\": \"kube_pod_windows_container_resource_cpu_cores_limit\",\r\n + \ \"expression\": \"kube_pod_container_resource_limits{resource=\\\"cpu\\\",job=\\\"kube-state-metrics\\\"} + * on(container,pod,namespace) (windows_pod_container_available)\"\r\n },\r\n + \ {\r\n \"record\": \"namespace_pod_container:windows_container_cpu_usage_seconds_total:sum_rate\",\r\n + \ \"expression\": \"sum by (namespace, pod, container) (rate(windows_container_total_runtime{}[5m]))\"\r\n + \ }\r\n ]\r\n }\r\n }\r\n + \ ]\r\n }\r\n }\r\n },\r\n {\r\n \"id\": \"subscriptions/79a7390d-3a85-432d-9f6f-a11a703c8b83/resourceGroups/DefaultResourceGroup-westus2/providers/microsoft.monitor/accounts/DefaultAzureMonitorWorkspace-westus2/providers/microsoft.alertsManagement/alertRuleRecommendations/KubernetesAlert-DefaultAlerts\",\r\n + \ \"name\": \"KubernetesAlert-DefaultAlerts\",\r\n \"type\": \"Microsoft.AlertsManagement/AlertRuleRecommendations\",\r\n + \ \"location\": \"global\",\r\n \"properties\": {\r\n \"alertRuleType\": + \"Microsoft.AlertsManagement/prometheusRuleGroups\",\r\n \"displayInformation\": + {\r\n \"AlertRuleNamePrefix\": \"KubernetesAlert-DefaultAlerts\",\r\n + \ \"RuleTitle\": \"This would be the info message for prom\"\r\n },\r\n + \ \"rulesArmTemplate\": {\r\n \"$schema\": \"https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#\",\r\n + \ \"contentVersion\": \"1.0.0.0\",\r\n \"parameters\": {\r\n + \ \"targetResourceId\": {\r\n \"type\": \"string\",\r\n + \ \"defaultValue\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/DefaultResourceGroup-westus2/providers/microsoft.monitor/accounts/DefaultAzureMonitorWorkspace-westus2\"\r\n + \ },\r\n \"targetResourceName\": {\r\n \"type\": + \"string\",\r\n \"defaultValue\": \"defaultazuremonitorworkspace-westus2\"\r\n + \ },\r\n \"actionGroupIds\": {\r\n \"type\": + \"array\",\r\n \"defaultValue\": [],\r\n \"metadata\": + {\r\n \"description\": \"Insert Action groups ids to attach + them to the below alert rules.\"\r\n }\r\n },\r\n + \ \"location\": {\r\n \"type\": \"string\",\r\n \"defaultValue\": + \"westus2\"\r\n },\r\n \"clusterNameForPrometheus\": + {\r\n \"type\": \"string\"\r\n },\r\n \"alertNamePrefix\": + {\r\n \"type\": \"string\",\r\n \"defaultValue\": + \"KubernetesAlert-DefaultAlerts\",\r\n \"minLength\": 1,\r\n + \ \"metadata\": {\r\n \"description\": \"prefix + of the alert rule name\"\r\n }\r\n },\r\n \"alertName\": + {\r\n \"type\": \"string\",\r\n \"defaultValue\": + \"[concat(parameters('alertNamePrefix'), ' - ', parameters('clusterNameForPrometheus'))]\",\r\n + \ \"minLength\": 1,\r\n \"metadata\": {\r\n \"description\": + \"Name of the alert rule\"\r\n }\r\n }\r\n },\r\n + \ \"variables\": {\r\n \"scopes\": \"[array(parameters('targetResourceId'))]\",\r\n + \ \"copy\": [\r\n {\r\n \"name\": \"actionsForPrometheusRuleGroups\",\r\n + \ \"count\": \"[length(parameters('actionGroupIds'))]\",\r\n + \ \"input\": {\r\n \"actiongroupId\": \"[parameters('actionGroupIds')[copyIndex('actionsForPrometheusRuleGroups')]]\"\r\n + \ }\r\n }\r\n ]\r\n },\r\n + \ \"resources\": [\r\n {\r\n \"name\": \"[parameters('alertName')]\",\r\n + \ \"type\": \"Microsoft.AlertsManagement/prometheusRuleGroups\",\r\n + \ \"apiVersion\": \"2021-07-22-preview\",\r\n \"location\": + \"[parameters('location')]\",\r\n \"properties\": {\r\n \"description\": + \"Kubernetes Alert RuleGroup-DefaultAlerts\",\r\n \"scopes\": + \"[variables('scopes')]\",\r\n \"clusterName\": \"[parameters('clusterNameForPrometheus')]\",\r\n + \ \"interval\": \"PT1M\",\r\n \"rules\": [\r\n + \ {\r\n \"alert\": \"KubePodCrashLooping\",\r\n + \ \"expression\": \"max_over_time(kube_pod_container_status_waiting_reason{reason=\\\"CrashLoopBackOff\\\", + job=\\\"kube-state-metrics\\\"}[5m]) >= 1\",\r\n \"for\": + \"PT15M\",\r\n \"labels\": {\r\n \"severity\": + \"warning\"\r\n },\r\n \"Severity\": + 3,\r\n \"actions\": \"[variables('actionsForPrometheusRuleGroups')]\"\r\n + \ },\r\n {\r\n \"alert\": + \"KubePodNotReady\",\r\n \"expression\": \"sum by (namespace, + pod, cluster) ( max by(namespace, pod, cluster) ( kube_pod_status_phase{job=\\\"kube-state-metrics\\\", + phase=~\\\"Pending|Unknown\\\"} ) * on(namespace, pod, cluster) group_left(owner_kind) + topk by(namespace, pod, cluster) ( 1, max by(namespace, pod, owner_kind, + cluster) (kube_pod_owner{owner_kind!=\\\"Job\\\"}) )) > 0\",\r\n \"for\": + \"PT15M\",\r\n \"labels\": {\r\n \"severity\": + \"warning\"\r\n },\r\n \"Severity\": + 3,\r\n \"actions\": \"[variables('actionsForPrometheusRuleGroups')]\"\r\n + \ },\r\n {\r\n \"alert\": + \"KubeDeploymentReplicasMismatch\",\r\n \"expression\": + \"( kube_deployment_spec_replicas{job=\\\"kube-state-metrics\\\"} > kube_deployment_status_replicas_available{job=\\\"kube-state-metrics\\\"}) + and ( changes(kube_deployment_status_replicas_updated{job=\\\"kube-state-metrics\\\"}[10m]) + \ == 0)\",\r\n \"for\": \"PT15M\",\r\n \"labels\": + {\r\n \"severity\": \"warning\"\r\n },\r\n + \ \"Severity\": 3,\r\n \"actions\": \"[variables('actionsForPrometheusRuleGroups')]\"\r\n + \ },\r\n {\r\n \"alert\": + \"KubeStatefulSetReplicasMismatch\",\r\n \"expression\": + \"( kube_statefulset_status_replicas_ready{job=\\\"kube-state-metrics\\\"} + \ != kube_statefulset_status_replicas{job=\\\"kube-state-metrics\\\"}) + and ( changes(kube_statefulset_status_replicas_updated{job=\\\"kube-state-metrics\\\"}[10m]) + \ == 0)\",\r\n \"for\": \"PT15M\",\r\n \"labels\": + {\r\n \"severity\": \"warning\"\r\n },\r\n + \ \"Severity\": 3,\r\n \"actions\": \"[variables('actionsForPrometheusRuleGroups')]\"\r\n + \ },\r\n {\r\n \"alert\": + \"KubeJobNotCompleted\",\r\n \"expression\": \"time() - + max by(namespace, job_name, cluster) (kube_job_status_start_time{job=\\\"kube-state-metrics\\\"} + \ and kube_job_status_active{job=\\\"kube-state-metrics\\\"} > 0) > 43200\",\r\n + \ \"labels\": {\r\n \"severity\": \"warning\"\r\n + \ },\r\n \"Severity\": 3,\r\n \"actions\": + \"[variables('actionsForPrometheusRuleGroups')]\"\r\n },\r\n + \ {\r\n \"alert\": \"KubeJobFailed\",\r\n + \ \"expression\": \"kube_job_failed{job=\\\"kube-state-metrics\\\"} + \ > 0\",\r\n \"for\": \"PT15M\",\r\n \"labels\": + {\r\n \"severity\": \"warning\"\r\n },\r\n + \ \"Severity\": 3,\r\n \"actions\": \"[variables('actionsForPrometheusRuleGroups')]\"\r\n + \ },\r\n {\r\n \"alert\": + \"KubeHpaReplicasMismatch\",\r\n \"expression\": \"(kube_horizontalpodautoscaler_status_desired_replicas{job=\\\"kube-state-metrics\\\"} + \ !=kube_horizontalpodautoscaler_status_current_replicas{job=\\\"kube-state-metrics\\\"}) + \ and(kube_horizontalpodautoscaler_status_current_replicas{job=\\\"kube-state-metrics\\\"} + \ >kube_horizontalpodautoscaler_spec_min_replicas{job=\\\"kube-state-metrics\\\"}) + \ and(kube_horizontalpodautoscaler_status_current_replicas{job=\\\"kube-state-metrics\\\"} + \ 1.5\",\r\n \"for\": + \"PT5M\",\r\n \"labels\": {\r\n \"severity\": + \"warning\"\r\n },\r\n \"Severity\": + 3,\r\n \"actions\": \"[variables('actionsForPrometheusRuleGroups')]\"\r\n + \ },\r\n {\r\n \"alert\": + \"KubeMemoryQuotaOvercommit\",\r\n \"expression\": \"sum(min + without(resource) (kube_resourcequota{job=\\\"kube-state-metrics\\\", type=\\\"hard\\\", + resource=~\\\"(memory|requests.memory)\\\"})) /sum(kube_node_status_allocatable{resource=\\\"memory\\\", + job=\\\"kube-state-metrics\\\"}) > 1.5\",\r\n \"for\": + \"PT5M\",\r\n \"labels\": {\r\n \"severity\": + \"warning\"\r\n },\r\n \"Severity\": + 3,\r\n \"actions\": \"[variables('actionsForPrometheusRuleGroups')]\"\r\n + \ },\r\n {\r\n \"alert\": + \"KubeQuotaAlmostFull\",\r\n \"expression\": \"kube_resourcequota{job=\\\"kube-state-metrics\\\", + type=\\\"used\\\"} / ignoring(instance, job, type)(kube_resourcequota{job=\\\"kube-state-metrics\\\", + type=\\\"hard\\\"} > 0) > 0.9 < 1\",\r\n \"for\": \"PT15M\",\r\n + \ \"labels\": {\r\n \"severity\": \"warning\"\r\n + \ },\r\n \"Severity\": 3,\r\n \"actions\": + \"[variables('actionsForPrometheusRuleGroups')]\"\r\n },\r\n + \ {\r\n \"alert\": \"KubeVersionMismatch\",\r\n + \ \"expression\": \"count by (cluster) (count by (git_version, + cluster) (label_replace(kubernetes_build_info{job!~\\\"kube-dns|coredns\\\"},\\\"git_version\\\",\\\"$1\\\",\\\"git_version\\\",\\\"(v[0-9]*.[0-9]*).*\\\"))) + > 1\",\r\n \"for\": \"PT15M\",\r\n \"labels\": + {\r\n \"severity\": \"warning\"\r\n },\r\n + \ \"Severity\": 3,\r\n \"actions\": \"[variables('actionsForPrometheusRuleGroups')]\"\r\n + \ },\r\n {\r\n \"alert\": + \"KubeNodeNotReady\",\r\n \"expression\": \"kube_node_status_condition{job=\\\"kube-state-metrics\\\",condition=\\\"Ready\\\",status=\\\"true\\\"} + == 0\",\r\n \"for\": \"PT15M\",\r\n \"labels\": + {\r\n \"severity\": \"warning\"\r\n },\r\n + \ \"Severity\": 3,\r\n \"actions\": \"[variables('actionsForPrometheusRuleGroups')]\"\r\n + \ },\r\n {\r\n \"alert\": + \"KubeNodeUnreachable\",\r\n \"expression\": \"(kube_node_spec_taint{job=\\\"kube-state-metrics\\\",key=\\\"node.kubernetes.io/unreachable\\\",effect=\\\"NoSchedule\\\"} + unless ignoring(key,value) kube_node_spec_taint{job=\\\"kube-state-metrics\\\",key=~\\\"ToBeDeletedByClusterAutoscaler|cloud.google.com/impending-node-termination|aws-node-termination-handler/spot-itn\\\"}) + == 1\",\r\n \"for\": \"PT15M\",\r\n \"labels\": + {\r\n \"severity\": \"warning\"\r\n },\r\n + \ \"Severity\": 3,\r\n \"actions\": \"[variables('actionsForPrometheusRuleGroups')]\"\r\n + \ },\r\n {\r\n \"alert\": + \"KubeletTooManyPods\",\r\n \"expression\": \"count by(cluster, + node) ( (kube_pod_status_phase{job=\\\"kube-state-metrics\\\",phase=\\\"Running\\\"} + == 1) * on(instance,pod,namespace,cluster) group_left(node) topk by(instance,pod,namespace,cluster) + (1, kube_pod_info{job=\\\"kube-state-metrics\\\"}))/max by(cluster, node) + ( kube_node_status_capacity{job=\\\"kube-state-metrics\\\",resource=\\\"pods\\\"} + != 1) > 0.95\",\r\n \"for\": \"PT15M\",\r\n \"labels\": + {\r\n \"severity\": \"warning\"\r\n },\r\n + \ \"Severity\": 3,\r\n \"actions\": \"[variables('actionsForPrometheusRuleGroups')]\"\r\n + \ },\r\n {\r\n \"alert\": + \"KubeNodeReadinessFlapping\",\r\n \"expression\": \"sum(changes(kube_node_status_condition{status=\\\"true\\\",condition=\\\"Ready\\\"}[15m])) + by (cluster, node) > 2\",\r\n \"for\": \"PT15M\",\r\n \"labels\": + {\r\n \"severity\": \"warning\"\r\n },\r\n + \ \"Severity\": 3,\r\n \"actions\": \"[variables('actionsForPrometheusRuleGroups')]\"\r\n + \ }\r\n ]\r\n }\r\n }\r\n + \ ]\r\n }\r\n }\r\n }\r\n ]\r\n}" + headers: + api-supported-versions: + - 2023-01-01-preview + arr-disable-session-affinity: + - 'true' + cache-control: + - no-cache + content-length: + - '49079' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 09 May 2023 19:27:08 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '299' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.AlertsManagement/prometheusRuleGroups/NodeRecordingRulesRuleGroup-cliakstest000001", + "name": "NodeRecordingRulesRuleGroup-cliakstest000001", "type": "Microsoft.AlertsManagement/prometheusRuleGroups", + "location": "westus2", "properties": {"scopes": ["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/DefaultResourceGroup-westus2/providers/microsoft.monitor/accounts/DefaultAzureMonitorWorkspace-westus2"], + "enabled": true, "clusterName": "cliakstest000001", "interval": "PT1M", "rules": + [{"record": "instance:node_num_cpu:sum", "expression": "count without (cpu, + mode) ( node_cpu_seconds_total{job=\"node\",mode=\"idle\"})"}, {"record": "instance:node_cpu_utilisation:rate5m", + "expression": "1 - avg without (cpu) ( sum without (mode) (rate(node_cpu_seconds_total{job=\"node\", + mode=~\"idle|iowait|steal\"}[5m])))"}, {"record": "instance:node_load1_per_cpu:ratio", + "expression": "( node_load1{job=\"node\"}/ instance:node_num_cpu:sum{job=\"node\"})"}, + {"record": "instance:node_memory_utilisation:ratio", "expression": "1 - ( ( node_memory_MemAvailable_bytes{job=\"node\"} or ( node_memory_Buffers_bytes{job=\"node\"} + node_memory_Cached_bytes{job=\"node\"} + node_memory_MemFree_bytes{job=\"node\"} + node_memory_Slab_bytes{job=\"node\"} ) )/ node_memory_MemTotal_bytes{job=\"node\"})"}, + {"record": "instance:node_vmstat_pgmajfault:rate5m", "expression": "rate(node_vmstat_pgmajfault{job=\"node\"}[5m])"}, + {"record": "instance_device:node_disk_io_time_seconds:rate5m", "expression": + "rate(node_disk_io_time_seconds_total{job=\"node\", device!=\"\"}[5m])"}, {"record": + "instance_device:node_disk_io_time_weighted_seconds:rate5m", "expression": "rate(node_disk_io_time_weighted_seconds_total{job=\"node\", + device!=\"\"}[5m])"}, {"record": "instance:node_network_receive_bytes_excluding_lo:rate5m", + "expression": "sum without (device) ( rate(node_network_receive_bytes_total{job=\"node\", + device!=\"lo\"}[5m]))"}, {"record": "instance:node_network_transmit_bytes_excluding_lo:rate5m", + "expression": "sum without (device) ( rate(node_network_transmit_bytes_total{job=\"node\", + device!=\"lo\"}[5m]))"}, {"record": "instance:node_network_receive_drop_excluding_lo:rate5m", + "expression": "sum without (device) ( rate(node_network_receive_drop_total{job=\"node\", + device!=\"lo\"}[5m]))"}, {"record": "instance:node_network_transmit_drop_excluding_lo:rate5m", + "expression": "sum without (device) ( rate(node_network_transmit_drop_total{job=\"node\", + device!=\"lo\"}[5m]))"}]}}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '2653' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --name --location --enable-managed-identity --enable-azuremonitormetrics + --enable-windows-recording-rules --ssh-key-value --node-vm-size + User-Agent: + - python/3.8.10 (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) AZURECLI/2.48.1 + azuremonitormetrics.put_rules.NodeRecordingRulesRuleGroup-cliakstesthgb5xp + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.AlertsManagement/prometheusRuleGroups/NodeRecordingRulesRuleGroup-cliakstest000001?api-version=2023-03-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.AlertsManagement/prometheusRuleGroups/NodeRecordingRulesRuleGroup-cliakstest000001\",\r\n + \ \"name\": \"NodeRecordingRulesRuleGroup-cliakstest000001\",\r\n \"type\": + \"Microsoft.AlertsManagement/prometheusRuleGroups\",\r\n \"location\": \"westus2\",\r\n + \ \"properties\": {\r\n \"enabled\": true,\r\n \"clusterName\": \"cliakstest000001\",\r\n + \ \"scopes\": [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/DefaultResourceGroup-westus2/providers/microsoft.monitor/accounts/DefaultAzureMonitorWorkspace-westus2\"\r\n + \ ],\r\n \"rules\": [\r\n {\r\n \"record\": \"instance:node_num_cpu:sum\",\r\n + \ \"expression\": \"count without (cpu, mode) ( node_cpu_seconds_total{job=\\\"node\\\",mode=\\\"idle\\\"})\"\r\n + \ },\r\n {\r\n \"record\": \"instance:node_cpu_utilisation:rate5m\",\r\n + \ \"expression\": \"1 - avg without (cpu) ( sum without (mode) (rate(node_cpu_seconds_total{job=\\\"node\\\", + mode=~\\\"idle|iowait|steal\\\"}[5m])))\"\r\n },\r\n {\r\n \"record\": + \"instance:node_load1_per_cpu:ratio\",\r\n \"expression\": \"( node_load1{job=\\\"node\\\"}/ + \ instance:node_num_cpu:sum{job=\\\"node\\\"})\"\r\n },\r\n {\r\n + \ \"record\": \"instance:node_memory_utilisation:ratio\",\r\n \"expression\": + \"1 - ( ( node_memory_MemAvailable_bytes{job=\\\"node\\\"} or ( + \ node_memory_Buffers_bytes{job=\\\"node\\\"} + node_memory_Cached_bytes{job=\\\"node\\\"} + \ + node_memory_MemFree_bytes{job=\\\"node\\\"} + node_memory_Slab_bytes{job=\\\"node\\\"} + \ ) )/ node_memory_MemTotal_bytes{job=\\\"node\\\"})\"\r\n },\r\n + \ {\r\n \"record\": \"instance:node_vmstat_pgmajfault:rate5m\",\r\n + \ \"expression\": \"rate(node_vmstat_pgmajfault{job=\\\"node\\\"}[5m])\"\r\n + \ },\r\n {\r\n \"record\": \"instance_device:node_disk_io_time_seconds:rate5m\",\r\n + \ \"expression\": \"rate(node_disk_io_time_seconds_total{job=\\\"node\\\", + device!=\\\"\\\"}[5m])\"\r\n },\r\n {\r\n \"record\": \"instance_device:node_disk_io_time_weighted_seconds:rate5m\",\r\n + \ \"expression\": \"rate(node_disk_io_time_weighted_seconds_total{job=\\\"node\\\", + device!=\\\"\\\"}[5m])\"\r\n },\r\n {\r\n \"record\": \"instance:node_network_receive_bytes_excluding_lo:rate5m\",\r\n + \ \"expression\": \"sum without (device) ( rate(node_network_receive_bytes_total{job=\\\"node\\\", + device!=\\\"lo\\\"}[5m]))\"\r\n },\r\n {\r\n \"record\": + \"instance:node_network_transmit_bytes_excluding_lo:rate5m\",\r\n \"expression\": + \"sum without (device) ( rate(node_network_transmit_bytes_total{job=\\\"node\\\", + device!=\\\"lo\\\"}[5m]))\"\r\n },\r\n {\r\n \"record\": + \"instance:node_network_receive_drop_excluding_lo:rate5m\",\r\n \"expression\": + \"sum without (device) ( rate(node_network_receive_drop_total{job=\\\"node\\\", + device!=\\\"lo\\\"}[5m]))\"\r\n },\r\n {\r\n \"record\": + \"instance:node_network_transmit_drop_excluding_lo:rate5m\",\r\n \"expression\": + \"sum without (device) ( rate(node_network_transmit_drop_total{job=\\\"node\\\", + device!=\\\"lo\\\"}[5m]))\"\r\n }\r\n ],\r\n \"interval\": \"PT1M\"\r\n + \ }\r\n}" + headers: + api-supported-versions: + - 2021-07-22-preview, 2023-03-01 + arr-disable-session-affinity: + - 'true' + cache-control: + - no-cache + content-length: + - '3096' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 09 May 2023 19:27:12 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '299' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.AlertsManagement/prometheusRuleGroups/KubernetesRecordingRulesRuleGroup-cliakstest000001", + "name": "KubernetesRecordingRulesRuleGroup-cliakstest000001", "type": "Microsoft.AlertsManagement/prometheusRuleGroups", + "location": "westus2", "properties": {"scopes": ["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/DefaultResourceGroup-westus2/providers/microsoft.monitor/accounts/DefaultAzureMonitorWorkspace-westus2"], + "enabled": true, "clusterName": "cliakstest000001", "interval": "PT1M", "rules": + [{"record": "node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate", + "expression": "sum by (cluster, namespace, pod, container) ( irate(container_cpu_usage_seconds_total{job=\"cadvisor\", + image!=\"\"}[5m])) * on (cluster, namespace, pod) group_left(node) topk by (cluster, + namespace, pod) ( 1, max by(cluster, namespace, pod, node) (kube_pod_info{node!=\"\"}))"}, + {"record": "node_namespace_pod_container:container_memory_working_set_bytes", + "expression": "container_memory_working_set_bytes{job=\"cadvisor\", image!=\"\"}* + on (namespace, pod) group_left(node) topk by(namespace, pod) (1, max by(namespace, + pod, node) (kube_pod_info{node!=\"\"}))"}, {"record": "node_namespace_pod_container:container_memory_rss", + "expression": "container_memory_rss{job=\"cadvisor\", image!=\"\"}* on (namespace, + pod) group_left(node) topk by(namespace, pod) (1, max by(namespace, pod, node) + (kube_pod_info{node!=\"\"}))"}, {"record": "node_namespace_pod_container:container_memory_cache", + "expression": "container_memory_cache{job=\"cadvisor\", image!=\"\"}* on (namespace, + pod) group_left(node) topk by(namespace, pod) (1, max by(namespace, pod, node) + (kube_pod_info{node!=\"\"}))"}, {"record": "node_namespace_pod_container:container_memory_swap", + "expression": "container_memory_swap{job=\"cadvisor\", image!=\"\"}* on (namespace, + pod) group_left(node) topk by(namespace, pod) (1, max by(namespace, pod, node) + (kube_pod_info{node!=\"\"}))"}, {"record": "cluster:namespace:pod_memory:active:kube_pod_container_resource_requests", + "expression": "kube_pod_container_resource_requests{resource=\"memory\",job=\"kube-state-metrics\"} * + on (namespace, pod, cluster)group_left() max by (namespace, pod, cluster) ( (kube_pod_status_phase{phase=~\"Pending|Running\"} + == 1))"}, {"record": "namespace_memory:kube_pod_container_resource_requests:sum", + "expression": "sum by (namespace, cluster) ( sum by (namespace, pod, cluster) + ( max by (namespace, pod, container, cluster) ( kube_pod_container_resource_requests{resource=\"memory\",job=\"kube-state-metrics\"} ) + * on(namespace, pod, cluster) group_left() max by (namespace, pod, cluster) + ( kube_pod_status_phase{phase=~\"Pending|Running\"} == 1 ) ))"}, + {"record": "cluster:namespace:pod_cpu:active:kube_pod_container_resource_requests", + "expression": "kube_pod_container_resource_requests{resource=\"cpu\",job=\"kube-state-metrics\"} * + on (namespace, pod, cluster)group_left() max by (namespace, pod, cluster) ( (kube_pod_status_phase{phase=~\"Pending|Running\"} + == 1))"}, {"record": "namespace_cpu:kube_pod_container_resource_requests:sum", + "expression": "sum by (namespace, cluster) ( sum by (namespace, pod, cluster) + ( max by (namespace, pod, container, cluster) ( kube_pod_container_resource_requests{resource=\"cpu\",job=\"kube-state-metrics\"} ) + * on(namespace, pod, cluster) group_left() max by (namespace, pod, cluster) + ( kube_pod_status_phase{phase=~\"Pending|Running\"} == 1 ) ))"}, + {"record": "cluster:namespace:pod_memory:active:kube_pod_container_resource_limits", + "expression": "kube_pod_container_resource_limits{resource=\"memory\",job=\"kube-state-metrics\"} * + on (namespace, pod, cluster)group_left() max by (namespace, pod, cluster) ( (kube_pod_status_phase{phase=~\"Pending|Running\"} + == 1))"}, {"record": "namespace_memory:kube_pod_container_resource_limits:sum", + "expression": "sum by (namespace, cluster) ( sum by (namespace, pod, cluster) + ( max by (namespace, pod, container, cluster) ( kube_pod_container_resource_limits{resource=\"memory\",job=\"kube-state-metrics\"} ) + * on(namespace, pod, cluster) group_left() max by (namespace, pod, cluster) + ( kube_pod_status_phase{phase=~\"Pending|Running\"} == 1 ) ))"}, + {"record": "cluster:namespace:pod_cpu:active:kube_pod_container_resource_limits", + "expression": "kube_pod_container_resource_limits{resource=\"cpu\",job=\"kube-state-metrics\"} * + on (namespace, pod, cluster)group_left() max by (namespace, pod, cluster) ( + (kube_pod_status_phase{phase=~\"Pending|Running\"} == 1) )"}, {"record": "namespace_cpu:kube_pod_container_resource_limits:sum", + "expression": "sum by (namespace, cluster) ( sum by (namespace, pod, cluster) + ( max by (namespace, pod, container, cluster) ( kube_pod_container_resource_limits{resource=\"cpu\",job=\"kube-state-metrics\"} ) + * on(namespace, pod, cluster) group_left() max by (namespace, pod, cluster) + ( kube_pod_status_phase{phase=~\"Pending|Running\"} == 1 ) ))"}, + {"record": "namespace_workload_pod:kube_pod_owner:relabel", "expression": "max + by (cluster, namespace, workload, pod) ( label_replace( label_replace( kube_pod_owner{job=\"kube-state-metrics\", + owner_kind=\"ReplicaSet\"}, \"replicaset\", \"$1\", \"owner_name\", \"(.*)\" ) + * on(replicaset, namespace) group_left(owner_name) topk by(replicaset, namespace) + ( 1, max by (replicaset, namespace, owner_name) ( kube_replicaset_owner{job=\"kube-state-metrics\"} ) ), \"workload\", + \"$1\", \"owner_name\", \"(.*)\" ))", "labels": {"workload_type": "deployment"}}, + {"record": "namespace_workload_pod:kube_pod_owner:relabel", "expression": "max + by (cluster, namespace, workload, pod) ( label_replace( kube_pod_owner{job=\"kube-state-metrics\", + owner_kind=\"DaemonSet\"}, \"workload\", \"$1\", \"owner_name\", \"(.*)\" ))", + "labels": {"workload_type": "daemonset"}}, {"record": "namespace_workload_pod:kube_pod_owner:relabel", + "expression": "max by (cluster, namespace, workload, pod) ( label_replace( kube_pod_owner{job=\"kube-state-metrics\", + owner_kind=\"StatefulSet\"}, \"workload\", \"$1\", \"owner_name\", \"(.*)\" ))", + "labels": {"workload_type": "statefulset"}}, {"record": "namespace_workload_pod:kube_pod_owner:relabel", + "expression": "max by (cluster, namespace, workload, pod) ( label_replace( kube_pod_owner{job=\"kube-state-metrics\", + owner_kind=\"Job\"}, \"workload\", \"$1\", \"owner_name\", \"(.*)\" ))", + "labels": {"workload_type": "job"}}, {"record": ":node_memory_MemAvailable_bytes:sum", + "expression": "sum( node_memory_MemAvailable_bytes{job=\"node\"} or ( node_memory_Buffers_bytes{job=\"node\"} + + node_memory_Cached_bytes{job=\"node\"} + node_memory_MemFree_bytes{job=\"node\"} + + node_memory_Slab_bytes{job=\"node\"} )) by (cluster)"}, {"record": "cluster:node_cpu:ratio_rate5m", + "expression": "sum(rate(node_cpu_seconds_total{job=\"node\",mode!=\"idle\",mode!=\"iowait\",mode!=\"steal\"}[5m])) + by (cluster) /count(sum(node_cpu_seconds_total{job=\"node\"}) by (cluster, instance, + cpu)) by (cluster)"}]}}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '7331' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --name --location --enable-managed-identity --enable-azuremonitormetrics + --enable-windows-recording-rules --ssh-key-value --node-vm-size + User-Agent: + - python/3.8.10 (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) AZURECLI/2.48.1 + azuremonitormetrics.put_rules.KubernetesRecordingRulesRuleGroup-cliakstesthgb5xp + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.AlertsManagement/prometheusRuleGroups/KubernetesRecordingRulesRuleGroup-cliakstest000001?api-version=2023-03-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.AlertsManagement/prometheusRuleGroups/KubernetesRecordingRulesRuleGroup-cliakstest000001\",\r\n + \ \"name\": \"KubernetesRecordingRulesRuleGroup-cliakstest000001\",\r\n \"type\": + \"Microsoft.AlertsManagement/prometheusRuleGroups\",\r\n \"location\": \"westus2\",\r\n + \ \"properties\": {\r\n \"enabled\": true,\r\n \"clusterName\": \"cliakstest000001\",\r\n + \ \"scopes\": [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/DefaultResourceGroup-westus2/providers/microsoft.monitor/accounts/DefaultAzureMonitorWorkspace-westus2\"\r\n + \ ],\r\n \"rules\": [\r\n {\r\n \"record\": \"node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate\",\r\n + \ \"expression\": \"sum by (cluster, namespace, pod, container) ( irate(container_cpu_usage_seconds_total{job=\\\"cadvisor\\\", + image!=\\\"\\\"}[5m])) * on (cluster, namespace, pod) group_left(node) topk + by (cluster, namespace, pod) ( 1, max by(cluster, namespace, pod, node) (kube_pod_info{node!=\\\"\\\"}))\"\r\n + \ },\r\n {\r\n \"record\": \"node_namespace_pod_container:container_memory_working_set_bytes\",\r\n + \ \"expression\": \"container_memory_working_set_bytes{job=\\\"cadvisor\\\", + image!=\\\"\\\"}* on (namespace, pod) group_left(node) topk by(namespace, + pod) (1, max by(namespace, pod, node) (kube_pod_info{node!=\\\"\\\"}))\"\r\n + \ },\r\n {\r\n \"record\": \"node_namespace_pod_container:container_memory_rss\",\r\n + \ \"expression\": \"container_memory_rss{job=\\\"cadvisor\\\", image!=\\\"\\\"}* + on (namespace, pod) group_left(node) topk by(namespace, pod) (1, max by(namespace, + pod, node) (kube_pod_info{node!=\\\"\\\"}))\"\r\n },\r\n {\r\n \"record\": + \"node_namespace_pod_container:container_memory_cache\",\r\n \"expression\": + \"container_memory_cache{job=\\\"cadvisor\\\", image!=\\\"\\\"}* on (namespace, + pod) group_left(node) topk by(namespace, pod) (1, max by(namespace, pod, + node) (kube_pod_info{node!=\\\"\\\"}))\"\r\n },\r\n {\r\n \"record\": + \"node_namespace_pod_container:container_memory_swap\",\r\n \"expression\": + \"container_memory_swap{job=\\\"cadvisor\\\", image!=\\\"\\\"}* on (namespace, + pod) group_left(node) topk by(namespace, pod) (1, max by(namespace, pod, + node) (kube_pod_info{node!=\\\"\\\"}))\"\r\n },\r\n {\r\n \"record\": + \"cluster:namespace:pod_memory:active:kube_pod_container_resource_requests\",\r\n + \ \"expression\": \"kube_pod_container_resource_requests{resource=\\\"memory\\\",job=\\\"kube-state-metrics\\\"} + \ * on (namespace, pod, cluster)group_left() max by (namespace, pod, cluster) + ( (kube_pod_status_phase{phase=~\\\"Pending|Running\\\"} == 1))\"\r\n },\r\n + \ {\r\n \"record\": \"namespace_memory:kube_pod_container_resource_requests:sum\",\r\n + \ \"expression\": \"sum by (namespace, cluster) ( sum by (namespace, + pod, cluster) ( max by (namespace, pod, container, cluster) ( kube_pod_container_resource_requests{resource=\\\"memory\\\",job=\\\"kube-state-metrics\\\"} + \ ) * on(namespace, pod, cluster) group_left() max by (namespace, pod, + cluster) ( kube_pod_status_phase{phase=~\\\"Pending|Running\\\"} + == 1 ) ))\"\r\n },\r\n {\r\n \"record\": \"cluster:namespace:pod_cpu:active:kube_pod_container_resource_requests\",\r\n + \ \"expression\": \"kube_pod_container_resource_requests{resource=\\\"cpu\\\",job=\\\"kube-state-metrics\\\"} + \ * on (namespace, pod, cluster)group_left() max by (namespace, pod, cluster) + ( (kube_pod_status_phase{phase=~\\\"Pending|Running\\\"} == 1))\"\r\n },\r\n + \ {\r\n \"record\": \"namespace_cpu:kube_pod_container_resource_requests:sum\",\r\n + \ \"expression\": \"sum by (namespace, cluster) ( sum by (namespace, + pod, cluster) ( max by (namespace, pod, container, cluster) ( kube_pod_container_resource_requests{resource=\\\"cpu\\\",job=\\\"kube-state-metrics\\\"} + \ ) * on(namespace, pod, cluster) group_left() max by (namespace, pod, + cluster) ( kube_pod_status_phase{phase=~\\\"Pending|Running\\\"} + == 1 ) ))\"\r\n },\r\n {\r\n \"record\": \"cluster:namespace:pod_memory:active:kube_pod_container_resource_limits\",\r\n + \ \"expression\": \"kube_pod_container_resource_limits{resource=\\\"memory\\\",job=\\\"kube-state-metrics\\\"} + \ * on (namespace, pod, cluster)group_left() max by (namespace, pod, cluster) + ( (kube_pod_status_phase{phase=~\\\"Pending|Running\\\"} == 1))\"\r\n },\r\n + \ {\r\n \"record\": \"namespace_memory:kube_pod_container_resource_limits:sum\",\r\n + \ \"expression\": \"sum by (namespace, cluster) ( sum by (namespace, + pod, cluster) ( max by (namespace, pod, container, cluster) ( kube_pod_container_resource_limits{resource=\\\"memory\\\",job=\\\"kube-state-metrics\\\"} + \ ) * on(namespace, pod, cluster) group_left() max by (namespace, pod, + cluster) ( kube_pod_status_phase{phase=~\\\"Pending|Running\\\"} + == 1 ) ))\"\r\n },\r\n {\r\n \"record\": \"cluster:namespace:pod_cpu:active:kube_pod_container_resource_limits\",\r\n + \ \"expression\": \"kube_pod_container_resource_limits{resource=\\\"cpu\\\",job=\\\"kube-state-metrics\\\"} + \ * on (namespace, pod, cluster)group_left() max by (namespace, pod, cluster) + ( (kube_pod_status_phase{phase=~\\\"Pending|Running\\\"} == 1) )\"\r\n },\r\n + \ {\r\n \"record\": \"namespace_cpu:kube_pod_container_resource_limits:sum\",\r\n + \ \"expression\": \"sum by (namespace, cluster) ( sum by (namespace, + pod, cluster) ( max by (namespace, pod, container, cluster) ( kube_pod_container_resource_limits{resource=\\\"cpu\\\",job=\\\"kube-state-metrics\\\"} + \ ) * on(namespace, pod, cluster) group_left() max by (namespace, pod, + cluster) ( kube_pod_status_phase{phase=~\\\"Pending|Running\\\"} + == 1 ) ))\"\r\n },\r\n {\r\n \"record\": \"namespace_workload_pod:kube_pod_owner:relabel\",\r\n + \ \"expression\": \"max by (cluster, namespace, workload, pod) ( label_replace( + \ label_replace( kube_pod_owner{job=\\\"kube-state-metrics\\\", owner_kind=\\\"ReplicaSet\\\"}, + \ \\\"replicaset\\\", \\\"$1\\\", \\\"owner_name\\\", \\\"(.*)\\\" ) + * on(replicaset, namespace) group_left(owner_name) topk by(replicaset, namespace) + ( 1, max by (replicaset, namespace, owner_name) ( kube_replicaset_owner{job=\\\"kube-state-metrics\\\"} + \ ) ), \\\"workload\\\", \\\"$1\\\", \\\"owner_name\\\", \\\"(.*)\\\" + \ ))\",\r\n \"labels\": {\r\n \"workload_type\": \"deployment\"\r\n + \ }\r\n },\r\n {\r\n \"record\": \"namespace_workload_pod:kube_pod_owner:relabel\",\r\n + \ \"expression\": \"max by (cluster, namespace, workload, pod) ( label_replace( + \ kube_pod_owner{job=\\\"kube-state-metrics\\\", owner_kind=\\\"DaemonSet\\\"}, + \ \\\"workload\\\", \\\"$1\\\", \\\"owner_name\\\", \\\"(.*)\\\" ))\",\r\n + \ \"labels\": {\r\n \"workload_type\": \"daemonset\"\r\n }\r\n + \ },\r\n {\r\n \"record\": \"namespace_workload_pod:kube_pod_owner:relabel\",\r\n + \ \"expression\": \"max by (cluster, namespace, workload, pod) ( label_replace( + \ kube_pod_owner{job=\\\"kube-state-metrics\\\", owner_kind=\\\"StatefulSet\\\"}, + \ \\\"workload\\\", \\\"$1\\\", \\\"owner_name\\\", \\\"(.*)\\\" ))\",\r\n + \ \"labels\": {\r\n \"workload_type\": \"statefulset\"\r\n + \ }\r\n },\r\n {\r\n \"record\": \"namespace_workload_pod:kube_pod_owner:relabel\",\r\n + \ \"expression\": \"max by (cluster, namespace, workload, pod) ( label_replace( + \ kube_pod_owner{job=\\\"kube-state-metrics\\\", owner_kind=\\\"Job\\\"}, + \ \\\"workload\\\", \\\"$1\\\", \\\"owner_name\\\", \\\"(.*)\\\" ))\",\r\n + \ \"labels\": {\r\n \"workload_type\": \"job\"\r\n }\r\n + \ },\r\n {\r\n \"record\": \":node_memory_MemAvailable_bytes:sum\",\r\n + \ \"expression\": \"sum( node_memory_MemAvailable_bytes{job=\\\"node\\\"} + or ( node_memory_Buffers_bytes{job=\\\"node\\\"} + node_memory_Cached_bytes{job=\\\"node\\\"} + + node_memory_MemFree_bytes{job=\\\"node\\\"} + node_memory_Slab_bytes{job=\\\"node\\\"} + \ )) by (cluster)\"\r\n },\r\n {\r\n \"record\": \"cluster:node_cpu:ratio_rate5m\",\r\n + \ \"expression\": \"sum(rate(node_cpu_seconds_total{job=\\\"node\\\",mode!=\\\"idle\\\",mode!=\\\"iowait\\\",mode!=\\\"steal\\\"}[5m])) + by (cluster) /count(sum(node_cpu_seconds_total{job=\\\"node\\\"}) by (cluster, + instance, cpu)) by (cluster)\"\r\n }\r\n ],\r\n \"interval\": \"PT1M\"\r\n + \ }\r\n}" + headers: + api-supported-versions: + - 2021-07-22-preview, 2023-03-01 + arr-disable-session-affinity: + - 'true' + cache-control: + - no-cache + content-length: + - '8170' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 09 May 2023 19:27:15 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '299' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.AlertsManagement/prometheusRuleGroups/NodeRecordingRulesRuleGroup-Win-cliakstest000001", + "name": "NodeRecordingRulesRuleGroup-Win-cliakstest000001", "type": "Microsoft.AlertsManagement/prometheusRuleGroups", + "location": "westus2", "properties": {"scopes": ["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/DefaultResourceGroup-westus2/providers/microsoft.monitor/accounts/DefaultAzureMonitorWorkspace-westus2"], + "enabled": true, "clusterName": "cliakstest000001", "interval": "PT1M", "rules": + [{"record": "node:windows_node:sum", "expression": "count (windows_system_system_up_time{job=\"windows-exporter\"})"}, + {"record": "node:windows_node_num_cpu:sum", "expression": "count by (instance) + (sum by (instance, core) (windows_cpu_time_total{job=\"windows-exporter\"}))"}, + {"record": ":windows_node_cpu_utilisation:avg5m", "expression": "1 - avg(rate(windows_cpu_time_total{job=\"windows-exporter\",mode=\"idle\"}[5m]))"}, + {"record": "node:windows_node_cpu_utilisation:avg5m", "expression": "1 - avg + by (instance) (rate(windows_cpu_time_total{job=\"windows-exporter\",mode=\"idle\"}[5m]))"}, + {"record": ":windows_node_memory_utilisation:", "expression": "1 -sum(windows_memory_available_bytes{job=\"windows-exporter\"})/sum(windows_os_visible_memory_bytes{job=\"windows-exporter\"})"}, + {"record": ":windows_node_memory_MemFreeCached_bytes:sum", "expression": "sum(windows_memory_available_bytes{job=\"windows-exporter\"} + + windows_memory_cache_bytes{job=\"windows-exporter\"})"}, {"record": "node:windows_node_memory_totalCached_bytes:sum", + "expression": "(windows_memory_cache_bytes{job=\"windows-exporter\"} + windows_memory_modified_page_list_bytes{job=\"windows-exporter\"} + + windows_memory_standby_cache_core_bytes{job=\"windows-exporter\"} + windows_memory_standby_cache_normal_priority_bytes{job=\"windows-exporter\"} + + windows_memory_standby_cache_reserve_bytes{job=\"windows-exporter\"})"}, {"record": + ":windows_node_memory_MemTotal_bytes:sum", "expression": "sum(windows_os_visible_memory_bytes{job=\"windows-exporter\"})"}, + {"record": "node:windows_node_memory_bytes_available:sum", "expression": "sum + by (instance) ((windows_memory_available_bytes{job=\"windows-exporter\"}))"}, + {"record": "node:windows_node_memory_bytes_total:sum", "expression": "sum by + (instance) (windows_os_visible_memory_bytes{job=\"windows-exporter\"})"}, {"record": + "node:windows_node_memory_utilisation:ratio", "expression": "(node:windows_node_memory_bytes_total:sum + - node:windows_node_memory_bytes_available:sum) / scalar(sum(node:windows_node_memory_bytes_total:sum))"}, + {"record": "node:windows_node_memory_utilisation:", "expression": "1 - (node:windows_node_memory_bytes_available:sum + / node:windows_node_memory_bytes_total:sum)"}, {"record": "node:windows_node_memory_swap_io_pages:irate", + "expression": "irate(windows_memory_swap_page_operations_total{job=\"windows-exporter\"}[5m])"}, + {"record": ":windows_node_disk_utilisation:avg_irate", "expression": "avg(irate(windows_logical_disk_read_seconds_total{job=\"windows-exporter\"}[5m]) + + irate(windows_logical_disk_write_seconds_total{job=\"windows-exporter\"}[5m]))"}, + {"record": "node:windows_node_disk_utilisation:avg_irate", "expression": "avg + by (instance) ((irate(windows_logical_disk_read_seconds_total{job=\"windows-exporter\"}[5m]) + + irate(windows_logical_disk_write_seconds_total{job=\"windows-exporter\"}[5m])))"}]}}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '3501' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --name --location --enable-managed-identity --enable-azuremonitormetrics + --enable-windows-recording-rules --ssh-key-value --node-vm-size + User-Agent: + - python/3.8.10 (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) AZURECLI/2.48.1 + azuremonitormetrics.put_rules.NodeRecordingRulesRuleGroup-Win-cliakstesthgb5xp + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.AlertsManagement/prometheusRuleGroups/NodeRecordingRulesRuleGroup-Win-cliakstest000001?api-version=2023-03-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.AlertsManagement/prometheusRuleGroups/NodeRecordingRulesRuleGroup-Win-cliakstest000001\",\r\n + \ \"name\": \"NodeRecordingRulesRuleGroup-Win-cliakstest000001\",\r\n \"type\": + \"Microsoft.AlertsManagement/prometheusRuleGroups\",\r\n \"location\": \"westus2\",\r\n + \ \"properties\": {\r\n \"enabled\": true,\r\n \"clusterName\": \"cliakstest000001\",\r\n + \ \"scopes\": [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/DefaultResourceGroup-westus2/providers/microsoft.monitor/accounts/DefaultAzureMonitorWorkspace-westus2\"\r\n + \ ],\r\n \"rules\": [\r\n {\r\n \"record\": \"node:windows_node:sum\",\r\n + \ \"expression\": \"count (windows_system_system_up_time{job=\\\"windows-exporter\\\"})\"\r\n + \ },\r\n {\r\n \"record\": \"node:windows_node_num_cpu:sum\",\r\n + \ \"expression\": \"count by (instance) (sum by (instance, core) (windows_cpu_time_total{job=\\\"windows-exporter\\\"}))\"\r\n + \ },\r\n {\r\n \"record\": \":windows_node_cpu_utilisation:avg5m\",\r\n + \ \"expression\": \"1 - avg(rate(windows_cpu_time_total{job=\\\"windows-exporter\\\",mode=\\\"idle\\\"}[5m]))\"\r\n + \ },\r\n {\r\n \"record\": \"node:windows_node_cpu_utilisation:avg5m\",\r\n + \ \"expression\": \"1 - avg by (instance) (rate(windows_cpu_time_total{job=\\\"windows-exporter\\\",mode=\\\"idle\\\"}[5m]))\"\r\n + \ },\r\n {\r\n \"record\": \":windows_node_memory_utilisation:\",\r\n + \ \"expression\": \"1 -sum(windows_memory_available_bytes{job=\\\"windows-exporter\\\"})/sum(windows_os_visible_memory_bytes{job=\\\"windows-exporter\\\"})\"\r\n + \ },\r\n {\r\n \"record\": \":windows_node_memory_MemFreeCached_bytes:sum\",\r\n + \ \"expression\": \"sum(windows_memory_available_bytes{job=\\\"windows-exporter\\\"} + + windows_memory_cache_bytes{job=\\\"windows-exporter\\\"})\"\r\n },\r\n + \ {\r\n \"record\": \"node:windows_node_memory_totalCached_bytes:sum\",\r\n + \ \"expression\": \"(windows_memory_cache_bytes{job=\\\"windows-exporter\\\"} + + windows_memory_modified_page_list_bytes{job=\\\"windows-exporter\\\"} + + windows_memory_standby_cache_core_bytes{job=\\\"windows-exporter\\\"} + windows_memory_standby_cache_normal_priority_bytes{job=\\\"windows-exporter\\\"} + + windows_memory_standby_cache_reserve_bytes{job=\\\"windows-exporter\\\"})\"\r\n + \ },\r\n {\r\n \"record\": \":windows_node_memory_MemTotal_bytes:sum\",\r\n + \ \"expression\": \"sum(windows_os_visible_memory_bytes{job=\\\"windows-exporter\\\"})\"\r\n + \ },\r\n {\r\n \"record\": \"node:windows_node_memory_bytes_available:sum\",\r\n + \ \"expression\": \"sum by (instance) ((windows_memory_available_bytes{job=\\\"windows-exporter\\\"}))\"\r\n + \ },\r\n {\r\n \"record\": \"node:windows_node_memory_bytes_total:sum\",\r\n + \ \"expression\": \"sum by (instance) (windows_os_visible_memory_bytes{job=\\\"windows-exporter\\\"})\"\r\n + \ },\r\n {\r\n \"record\": \"node:windows_node_memory_utilisation:ratio\",\r\n + \ \"expression\": \"(node:windows_node_memory_bytes_total:sum - node:windows_node_memory_bytes_available:sum) + / scalar(sum(node:windows_node_memory_bytes_total:sum))\"\r\n },\r\n + \ {\r\n \"record\": \"node:windows_node_memory_utilisation:\",\r\n + \ \"expression\": \"1 - (node:windows_node_memory_bytes_available:sum + / node:windows_node_memory_bytes_total:sum)\"\r\n },\r\n {\r\n \"record\": + \"node:windows_node_memory_swap_io_pages:irate\",\r\n \"expression\": + \"irate(windows_memory_swap_page_operations_total{job=\\\"windows-exporter\\\"}[5m])\"\r\n + \ },\r\n {\r\n \"record\": \":windows_node_disk_utilisation:avg_irate\",\r\n + \ \"expression\": \"avg(irate(windows_logical_disk_read_seconds_total{job=\\\"windows-exporter\\\"}[5m]) + + irate(windows_logical_disk_write_seconds_total{job=\\\"windows-exporter\\\"}[5m]))\"\r\n + \ },\r\n {\r\n \"record\": \"node:windows_node_disk_utilisation:avg_irate\",\r\n + \ \"expression\": \"avg by (instance) ((irate(windows_logical_disk_read_seconds_total{job=\\\"windows-exporter\\\"}[5m]) + + irate(windows_logical_disk_write_seconds_total{job=\\\"windows-exporter\\\"}[5m])))\"\r\n + \ }\r\n ],\r\n \"interval\": \"PT1M\"\r\n }\r\n}" + headers: + api-supported-versions: + - 2021-07-22-preview, 2023-03-01 + arr-disable-session-affinity: + - 'true' + cache-control: + - no-cache + content-length: + - '4080' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 09 May 2023 19:27:18 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '299' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.AlertsManagement/prometheusRuleGroups/NodeAndKubernetesRecordingRulesRuleGroup-Win-cliakstest000001", + "name": "NodeAndKubernetesRecordingRulesRuleGroup-Win-cliakstest000001", "type": + "Microsoft.AlertsManagement/prometheusRuleGroups", "location": "westus2", "properties": + {"scopes": ["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/DefaultResourceGroup-westus2/providers/microsoft.monitor/accounts/DefaultAzureMonitorWorkspace-westus2"], + "enabled": true, "clusterName": "cliakstest000001", "interval": "PT1M", "rules": + [{"record": "node:windows_node_filesystem_usage:", "expression": "max by (instance,volume)((windows_logical_disk_size_bytes{job=\"windows-exporter\"} + - windows_logical_disk_free_bytes{job=\"windows-exporter\"}) / windows_logical_disk_size_bytes{job=\"windows-exporter\"})"}, + {"record": "node:windows_node_filesystem_avail:", "expression": "max by (instance, + volume) (windows_logical_disk_free_bytes{job=\"windows-exporter\"} / windows_logical_disk_size_bytes{job=\"windows-exporter\"})"}, + {"record": ":windows_node_net_utilisation:sum_irate", "expression": "sum(irate(windows_net_bytes_total{job=\"windows-exporter\"}[5m]))"}, + {"record": "node:windows_node_net_utilisation:sum_irate", "expression": "sum + by (instance) ((irate(windows_net_bytes_total{job=\"windows-exporter\"}[5m])))"}, + {"record": ":windows_node_net_saturation:sum_irate", "expression": "sum(irate(windows_net_packets_received_discarded_total{job=\"windows-exporter\"}[5m])) + + sum(irate(windows_net_packets_outbound_discarded_total{job=\"windows-exporter\"}[5m]))"}, + {"record": "node:windows_node_net_saturation:sum_irate", "expression": "sum + by (instance) ((irate(windows_net_packets_received_discarded_total{job=\"windows-exporter\"}[5m]) + + irate(windows_net_packets_outbound_discarded_total{job=\"windows-exporter\"}[5m])))"}, + {"record": "windows_pod_container_available", "expression": "windows_container_available{job=\"windows-exporter\"} + * on(container_id) group_left(container, pod, namespace) max(kube_pod_container_info{job=\"kube-state-metrics\"}) + by(container, container_id, pod, namespace)"}, {"record": "windows_container_total_runtime", + "expression": "windows_container_cpu_usage_seconds_total{job=\"windows-exporter\"} + * on(container_id) group_left(container, pod, namespace) max(kube_pod_container_info{job=\"kube-state-metrics\"}) + by(container, container_id, pod, namespace)"}, {"record": "windows_container_memory_usage", + "expression": "windows_container_memory_usage_commit_bytes{job=\"windows-exporter\"} + * on(container_id) group_left(container, pod, namespace) max(kube_pod_container_info{job=\"kube-state-metrics\"}) + by(container, container_id, pod, namespace)"}, {"record": "windows_container_private_working_set_usage", + "expression": "windows_container_memory_usage_private_working_set_bytes{job=\"windows-exporter\"} + * on(container_id) group_left(container, pod, namespace) max(kube_pod_container_info{job=\"kube-state-metrics\"}) + by(container, container_id, pod, namespace)"}, {"record": "windows_container_network_received_bytes_total", + "expression": "windows_container_network_receive_bytes_total{job=\"windows-exporter\"} + * on(container_id) group_left(container, pod, namespace) max(kube_pod_container_info{job=\"kube-state-metrics\"}) + by(container, container_id, pod, namespace)"}, {"record": "windows_container_network_transmitted_bytes_total", + "expression": "windows_container_network_transmit_bytes_total{job=\"windows-exporter\"} + * on(container_id) group_left(container, pod, namespace) max(kube_pod_container_info{job=\"kube-state-metrics\"}) + by(container, container_id, pod, namespace)"}, {"record": "kube_pod_windows_container_resource_memory_request", + "expression": "max by (namespace, pod, container) (kube_pod_container_resource_requests{resource=\"memory\",job=\"kube-state-metrics\"}) + * on(container,pod,namespace) (windows_pod_container_available)"}, {"record": + "kube_pod_windows_container_resource_memory_limit", "expression": "kube_pod_container_resource_limits{resource=\"memory\",job=\"kube-state-metrics\"} + * on(container,pod,namespace) (windows_pod_container_available)"}, {"record": + "kube_pod_windows_container_resource_cpu_cores_request", "expression": "max + by (namespace, pod, container) ( kube_pod_container_resource_requests{resource=\"cpu\",job=\"kube-state-metrics\"}) + * on(container,pod,namespace) (windows_pod_container_available)"}, {"record": + "kube_pod_windows_container_resource_cpu_cores_limit", "expression": "kube_pod_container_resource_limits{resource=\"cpu\",job=\"kube-state-metrics\"} + * on(container,pod,namespace) (windows_pod_container_available)"}, {"record": + "namespace_pod_container:windows_container_cpu_usage_seconds_total:sum_rate", + "expression": "sum by (namespace, pod, container) (rate(windows_container_total_runtime{}[5m]))"}]}}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '4923' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --name --location --enable-managed-identity --enable-azuremonitormetrics + --enable-windows-recording-rules --ssh-key-value --node-vm-size + User-Agent: + - python/3.8.10 (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) AZURECLI/2.48.1 + azuremonitormetrics.put_rules.NodeAndKubernetesRecordingRulesRuleGroup-Win-cliakstesthgb5xp + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.AlertsManagement/prometheusRuleGroups/NodeAndKubernetesRecordingRulesRuleGroup-Win-cliakstest000001?api-version=2023-03-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.AlertsManagement/prometheusRuleGroups/NodeAndKubernetesRecordingRulesRuleGroup-Win-cliakstest000001\",\r\n + \ \"name\": \"NodeAndKubernetesRecordingRulesRuleGroup-Win-cliakstest000001\",\r\n + \ \"type\": \"Microsoft.AlertsManagement/prometheusRuleGroups\",\r\n \"location\": + \"westus2\",\r\n \"properties\": {\r\n \"enabled\": true,\r\n \"clusterName\": + \"cliakstest000001\",\r\n \"scopes\": [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/DefaultResourceGroup-westus2/providers/microsoft.monitor/accounts/DefaultAzureMonitorWorkspace-westus2\"\r\n + \ ],\r\n \"rules\": [\r\n {\r\n \"record\": \"node:windows_node_filesystem_usage:\",\r\n + \ \"expression\": \"max by (instance,volume)((windows_logical_disk_size_bytes{job=\\\"windows-exporter\\\"} + - windows_logical_disk_free_bytes{job=\\\"windows-exporter\\\"}) / windows_logical_disk_size_bytes{job=\\\"windows-exporter\\\"})\"\r\n + \ },\r\n {\r\n \"record\": \"node:windows_node_filesystem_avail:\",\r\n + \ \"expression\": \"max by (instance, volume) (windows_logical_disk_free_bytes{job=\\\"windows-exporter\\\"} + / windows_logical_disk_size_bytes{job=\\\"windows-exporter\\\"})\"\r\n },\r\n + \ {\r\n \"record\": \":windows_node_net_utilisation:sum_irate\",\r\n + \ \"expression\": \"sum(irate(windows_net_bytes_total{job=\\\"windows-exporter\\\"}[5m]))\"\r\n + \ },\r\n {\r\n \"record\": \"node:windows_node_net_utilisation:sum_irate\",\r\n + \ \"expression\": \"sum by (instance) ((irate(windows_net_bytes_total{job=\\\"windows-exporter\\\"}[5m])))\"\r\n + \ },\r\n {\r\n \"record\": \":windows_node_net_saturation:sum_irate\",\r\n + \ \"expression\": \"sum(irate(windows_net_packets_received_discarded_total{job=\\\"windows-exporter\\\"}[5m])) + + sum(irate(windows_net_packets_outbound_discarded_total{job=\\\"windows-exporter\\\"}[5m]))\"\r\n + \ },\r\n {\r\n \"record\": \"node:windows_node_net_saturation:sum_irate\",\r\n + \ \"expression\": \"sum by (instance) ((irate(windows_net_packets_received_discarded_total{job=\\\"windows-exporter\\\"}[5m]) + + irate(windows_net_packets_outbound_discarded_total{job=\\\"windows-exporter\\\"}[5m])))\"\r\n + \ },\r\n {\r\n \"record\": \"windows_pod_container_available\",\r\n + \ \"expression\": \"windows_container_available{job=\\\"windows-exporter\\\"} + * on(container_id) group_left(container, pod, namespace) max(kube_pod_container_info{job=\\\"kube-state-metrics\\\"}) + by(container, container_id, pod, namespace)\"\r\n },\r\n {\r\n \"record\": + \"windows_container_total_runtime\",\r\n \"expression\": \"windows_container_cpu_usage_seconds_total{job=\\\"windows-exporter\\\"} + * on(container_id) group_left(container, pod, namespace) max(kube_pod_container_info{job=\\\"kube-state-metrics\\\"}) + by(container, container_id, pod, namespace)\"\r\n },\r\n {\r\n \"record\": + \"windows_container_memory_usage\",\r\n \"expression\": \"windows_container_memory_usage_commit_bytes{job=\\\"windows-exporter\\\"} + * on(container_id) group_left(container, pod, namespace) max(kube_pod_container_info{job=\\\"kube-state-metrics\\\"}) + by(container, container_id, pod, namespace)\"\r\n },\r\n {\r\n \"record\": + \"windows_container_private_working_set_usage\",\r\n \"expression\": + \"windows_container_memory_usage_private_working_set_bytes{job=\\\"windows-exporter\\\"} + * on(container_id) group_left(container, pod, namespace) max(kube_pod_container_info{job=\\\"kube-state-metrics\\\"}) + by(container, container_id, pod, namespace)\"\r\n },\r\n {\r\n \"record\": + \"windows_container_network_received_bytes_total\",\r\n \"expression\": + \"windows_container_network_receive_bytes_total{job=\\\"windows-exporter\\\"} + * on(container_id) group_left(container, pod, namespace) max(kube_pod_container_info{job=\\\"kube-state-metrics\\\"}) + by(container, container_id, pod, namespace)\"\r\n },\r\n {\r\n \"record\": + \"windows_container_network_transmitted_bytes_total\",\r\n \"expression\": + \"windows_container_network_transmit_bytes_total{job=\\\"windows-exporter\\\"} + * on(container_id) group_left(container, pod, namespace) max(kube_pod_container_info{job=\\\"kube-state-metrics\\\"}) + by(container, container_id, pod, namespace)\"\r\n },\r\n {\r\n \"record\": + \"kube_pod_windows_container_resource_memory_request\",\r\n \"expression\": + \"max by (namespace, pod, container) (kube_pod_container_resource_requests{resource=\\\"memory\\\",job=\\\"kube-state-metrics\\\"}) + * on(container,pod,namespace) (windows_pod_container_available)\"\r\n },\r\n + \ {\r\n \"record\": \"kube_pod_windows_container_resource_memory_limit\",\r\n + \ \"expression\": \"kube_pod_container_resource_limits{resource=\\\"memory\\\",job=\\\"kube-state-metrics\\\"} + * on(container,pod,namespace) (windows_pod_container_available)\"\r\n },\r\n + \ {\r\n \"record\": \"kube_pod_windows_container_resource_cpu_cores_request\",\r\n + \ \"expression\": \"max by (namespace, pod, container) ( kube_pod_container_resource_requests{resource=\\\"cpu\\\",job=\\\"kube-state-metrics\\\"}) + * on(container,pod,namespace) (windows_pod_container_available)\"\r\n },\r\n + \ {\r\n \"record\": \"kube_pod_windows_container_resource_cpu_cores_limit\",\r\n + \ \"expression\": \"kube_pod_container_resource_limits{resource=\\\"cpu\\\",job=\\\"kube-state-metrics\\\"} + * on(container,pod,namespace) (windows_pod_container_available)\"\r\n },\r\n + \ {\r\n \"record\": \"namespace_pod_container:windows_container_cpu_usage_seconds_total:sum_rate\",\r\n + \ \"expression\": \"sum by (namespace, pod, container) (rate(windows_container_total_runtime{}[5m]))\"\r\n + \ }\r\n ],\r\n \"interval\": \"PT1M\"\r\n }\r\n}" + headers: + api-supported-versions: + - 2021-07-22-preview, 2023-03-01 + arr-disable-session-affinity: + - 'true' + cache-control: + - no-cache + content-length: + - '5570' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 09 May 2023 19:27:20 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '299' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --enable-managed-identity --enable-azuremonitormetrics + --enable-windows-recording-rules --ssh-key-value --node-vm-size + User-Agent: + - python/3.8.10 (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) AZURECLI/2.48.1 + azuremonitormetrics.addon_get + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000001?api-version=2023-01-01 + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000001\",\n + \ \"location\": \"westus2\",\n \"name\": \"cliakstest000001\",\n \"type\": + \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": + \"Succeeded\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": + \"1.25.6\",\n \"currentKubernetesVersion\": \"1.25.6\",\n \"dnsPrefix\": + \"cliakstest-clitestmfq3ejeu5-79a739\",\n \"fqdn\": \"cliakstest-clitestmfq3ejeu5-79a739-ajco4565.hcp.westus2.azmk8s.io\",\n + \ \"azurePortalFQDN\": \"cliakstest-clitestmfq3ejeu5-79a739-ajco4565.portal.hcp.westus2.azmk8s.io\",\n + \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": + 3,\n \"vmSize\": \"standard_d2s_v3\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": + \"Managed\",\n \"kubeletDiskType\": \"OS\",\n \"workloadRuntime\": + \"OCIContainer\",\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n + \ \"enableAutoScaling\": false,\n \"provisioningState\": \"Succeeded\",\n + \ \"powerState\": {\n \"code\": \"Running\"\n },\n \"orchestratorVersion\": + \"1.25.6\",\n \"currentOrchestratorVersion\": \"1.25.6\",\n \"enableNodePublicIP\": + false,\n \"mode\": \"System\",\n \"enableEncryptionAtHost\": false,\n + \ \"enableUltraSSD\": false,\n \"osType\": \"Linux\",\n \"osSKU\": + \"Ubuntu\",\n \"nodeImageVersion\": \"AKSUbuntu-2204gen2containerd-202304.20.0\",\n + \ \"upgradeSettings\": {},\n \"enableFIPS\": false\n }\n ],\n + \ \"linuxProfile\": {\n \"adminUsername\": \"azureuser\",\n \"ssh\": + {\n \"publicKeys\": [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDefbF/frwrKTFwsnDpZDXLe23htkKgEB5U4e75sYVRKpw2XdlRBHqPElvgHbNc8LRvlna+n7/7ZghqpTmRy9Lv/MLA8m2/FhxmUKvDvo7hB+2E3HofW5nhILP01H1LnlmbxpGP/hMjm92g758m2eqc4GIhQmlDYB4gcteJDi5avWGLbxINmAXahyRwDy06wcS6rtS6ODDBcmNkP+yGUmT+BR4yxPV4ysooJpvegb8vBQS9cHre/9kB1VsEjy+uBmQqrktRnaSsWOpdd9G7urd7K66BKLyj7UxBkbXbZPnRyiNweaEdzueMd5PSxUyQPXpkNwwHWC19MfonR7DP+2F3 + azcli_aks_live_test@example.com\\n\"\n }\n ]\n }\n },\n \"servicePrincipalProfile\": + {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \"nodeResourceGroup\": + \"MC_clitest000001_cliakstest000001_westus2\",\n \"enableRBAC\": true,\n + \ \"enablePodSecurityPolicy\": false,\n \"networkProfile\": {\n \"networkPlugin\": + \"kubenet\",\n \"loadBalancerSku\": \"Standard\",\n \"loadBalancerProfile\": + {\n \"managedOutboundIPs\": {\n \"count\": 1\n },\n \"effectiveOutboundIPs\": + [\n {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000001_westus2/providers/Microsoft.Network/publicIPAddresses/119700fd-511a-4eda-9fb8-907c63710f0b\"\n + \ }\n ]\n },\n \"podCidr\": \"10.244.0.0/16\",\n \"serviceCidr\": + \"10.0.0.0/16\",\n \"dnsServiceIP\": \"10.0.0.10\",\n \"dockerBridgeCidr\": + \"172.17.0.1/16\",\n \"outboundType\": \"loadBalancer\",\n \"podCidrs\": + [\n \"10.244.0.0/16\"\n ],\n \"serviceCidrs\": [\n \"10.0.0.0/16\"\n + \ ],\n \"ipFamilies\": [\n \"IPv4\"\n ]\n },\n \"maxAgentPools\": + 100,\n \"identityProfile\": {\n \"kubeletidentity\": {\n \"resourceId\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MC_clitest000001_cliakstest000001_westus2/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cliakstest000001-agentpool\",\n + \ \"clientId\":\"00000000-0000-0000-0000-000000000001\",\n \"objectId\":\"00000000-0000-0000-0000-000000000001\"\n + \ }\n },\n \"disableLocalAccounts\": false,\n \"securityProfile\": + {},\n \"storageProfile\": {\n \"diskCSIDriver\": {\n \"enabled\": + true\n },\n \"fileCSIDriver\": {\n \"enabled\": true\n },\n \"snapshotController\": + {\n \"enabled\": true\n }\n },\n \"oidcIssuerProfile\": {\n \"enabled\": + false\n },\n \"workloadAutoScalerProfile\": {},\n \"azureMonitorProfile\": + {\n \"metrics\": {\n \"enabled\": false,\n \"kubeStateMetrics\": + {\n \"metricLabelsAllowlist\": \"\",\n \"metricAnnotationsAllowList\": + \"\"\n }\n }\n }\n },\n \"identity\": {\n \"type\": \"SystemAssigned\",\n + \ \"principalId\":\"00000000-0000-0000-0000-000000000001\",\n \"tenantId\": + \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\n },\n \"sku\": {\n \"name\": + \"Basic\",\n \"tier\": \"Free\"\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '4187' + content-type: + - application/json + date: + - Tue, 09 May 2023 19:27:22 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000001", + "location": "westus2", "name": "cliakstest000001", "type": "Microsoft.ContainerService/ManagedClusters", + "properties": {"provisioningState": "Succeeded", "powerState": {"code": "Running"}, + "kubernetesVersion": "1.25.6", "currentKubernetesVersion": "1.25.6", "dnsPrefix": + "cliakstest-clitestmfq3ejeu5-79a739", "fqdn": "cliakstest-clitestmfq3ejeu5-79a739-ajco4565.hcp.westus2.azmk8s.io", + "azurePortalFQDN": "cliakstest-clitestmfq3ejeu5-79a739-ajco4565.portal.hcp.westus2.azmk8s.io", + "agentPoolProfiles": [{"name": "nodepool1", "count": 3, "vmSize": "standard_d2s_v3", + "osDiskSizeGB": 128, "osDiskType": "Managed", "kubeletDiskType": "OS", "workloadRuntime": + "OCIContainer", "maxPods": 110, "type": "VirtualMachineScaleSets", "enableAutoScaling": + false, "provisioningState": "Succeeded", "powerState": {"code": "Running"}, + "orchestratorVersion": "1.25.6", "currentOrchestratorVersion": "1.25.6", "enableNodePublicIP": + false, "mode": "System", "enableEncryptionAtHost": false, "enableUltraSSD": + false, "osType": "Linux", "osSKU": "Ubuntu", "nodeImageVersion": "AKSUbuntu-2204gen2containerd-202304.20.0", + "upgradeSettings": {}, "enableFIPS": false}], "linuxProfile": {"adminUsername": + "azureuser", "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDefbF/frwrKTFwsnDpZDXLe23htkKgEB5U4e75sYVRKpw2XdlRBHqPElvgHbNc8LRvlna+n7/7ZghqpTmRy9Lv/MLA8m2/FhxmUKvDvo7hB+2E3HofW5nhILP01H1LnlmbxpGP/hMjm92g758m2eqc4GIhQmlDYB4gcteJDi5avWGLbxINmAXahyRwDy06wcS6rtS6ODDBcmNkP+yGUmT+BR4yxPV4ysooJpvegb8vBQS9cHre/9kB1VsEjy+uBmQqrktRnaSsWOpdd9G7urd7K66BKLyj7UxBkbXbZPnRyiNweaEdzueMd5PSxUyQPXpkNwwHWC19MfonR7DP+2F3 + azcli_aks_live_test@example.com\n"}]}}, "servicePrincipalProfile": {"clientId":"00000000-0000-0000-0000-000000000001"}, + "nodeResourceGroup": "MC_clitest000001_cliakstest000001_westus2", "enableRBAC": + true, "enablePodSecurityPolicy": false, "networkProfile": {"networkPlugin": + "kubenet", "loadBalancerSku": "Standard", "loadBalancerProfile": {"managedOutboundIPs": + {"count": 1}, "effectiveOutboundIPs": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000001_westus2/providers/Microsoft.Network/publicIPAddresses/119700fd-511a-4eda-9fb8-907c63710f0b"}]}, + "podCidr": "10.244.0.0/16", "serviceCidr": "10.0.0.0/16", "dnsServiceIP": "10.0.0.10", + "dockerBridgeCidr": "172.17.0.1/16", "outboundType": "loadBalancer", "podCidrs": + ["10.244.0.0/16"], "serviceCidrs": ["10.0.0.0/16"], "ipFamilies": ["IPv4"]}, + "maxAgentPools": 100, "identityProfile": {"kubeletidentity": {"resourceId": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MC_clitest000001_cliakstest000001_westus2/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cliakstest000001-agentpool", + "clientId":"00000000-0000-0000-0000-000000000001", "objectId":"00000000-0000-0000-0000-000000000001"}}, + "disableLocalAccounts": false, "securityProfile": {}, "storageProfile": {"diskCSIDriver": + {"enabled": true}, "fileCSIDriver": {"enabled": true}, "snapshotController": + {"enabled": true}}, "oidcIssuerProfile": {"enabled": false}, "workloadAutoScalerProfile": + {}, "azureMonitorProfile": {"metrics": {"enabled": true, "kubeStateMetrics": + {"metricLabelsAllowlist": "", "metricAnnotationsAllowList": ""}}}}, "identity": + {"type": "SystemAssigned", "principalId":"00000000-0000-0000-0000-000000000001", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47"}, "sku": {"name": "Basic", + "tier": "Free"}}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '3591' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --name --location --enable-managed-identity --enable-azuremonitormetrics + --enable-windows-recording-rules --ssh-key-value --node-vm-size + User-Agent: + - python/3.8.10 (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) AZURECLI/2.48.1 + azuremonitormetrics.addon_put + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000001?api-version=2023-01-01 + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000001\",\n + \ \"location\": \"westus2\",\n \"name\": \"cliakstest000001\",\n \"type\": + \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": + \"Updating\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": + \"1.25.6\",\n \"currentKubernetesVersion\": \"1.25.6\",\n \"dnsPrefix\": + \"cliakstest-clitestmfq3ejeu5-79a739\",\n \"fqdn\": \"cliakstest-clitestmfq3ejeu5-79a739-ajco4565.hcp.westus2.azmk8s.io\",\n + \ \"azurePortalFQDN\": \"cliakstest-clitestmfq3ejeu5-79a739-ajco4565.portal.hcp.westus2.azmk8s.io\",\n + \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": + 3,\n \"vmSize\": \"standard_d2s_v3\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": + \"Managed\",\n \"kubeletDiskType\": \"OS\",\n \"workloadRuntime\": + \"OCIContainer\",\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n + \ \"enableAutoScaling\": false,\n \"provisioningState\": \"Updating\",\n + \ \"powerState\": {\n \"code\": \"Running\"\n },\n \"orchestratorVersion\": + \"1.25.6\",\n \"currentOrchestratorVersion\": \"1.25.6\",\n \"enableNodePublicIP\": + false,\n \"mode\": \"System\",\n \"enableEncryptionAtHost\": false,\n + \ \"enableUltraSSD\": false,\n \"osType\": \"Linux\",\n \"osSKU\": + \"Ubuntu\",\n \"nodeImageVersion\": \"AKSUbuntu-2204gen2containerd-202304.20.0\",\n + \ \"upgradeSettings\": {},\n \"enableFIPS\": false\n }\n ],\n + \ \"linuxProfile\": {\n \"adminUsername\": \"azureuser\",\n \"ssh\": + {\n \"publicKeys\": [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDefbF/frwrKTFwsnDpZDXLe23htkKgEB5U4e75sYVRKpw2XdlRBHqPElvgHbNc8LRvlna+n7/7ZghqpTmRy9Lv/MLA8m2/FhxmUKvDvo7hB+2E3HofW5nhILP01H1LnlmbxpGP/hMjm92g758m2eqc4GIhQmlDYB4gcteJDi5avWGLbxINmAXahyRwDy06wcS6rtS6ODDBcmNkP+yGUmT+BR4yxPV4ysooJpvegb8vBQS9cHre/9kB1VsEjy+uBmQqrktRnaSsWOpdd9G7urd7K66BKLyj7UxBkbXbZPnRyiNweaEdzueMd5PSxUyQPXpkNwwHWC19MfonR7DP+2F3 + azcli_aks_live_test@example.com\\n\"\n }\n ]\n }\n },\n \"servicePrincipalProfile\": + {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \"nodeResourceGroup\": + \"MC_clitest000001_cliakstest000001_westus2\",\n \"enableRBAC\": true,\n + \ \"enablePodSecurityPolicy\": false,\n \"networkProfile\": {\n \"networkPlugin\": + \"kubenet\",\n \"loadBalancerSku\": \"Standard\",\n \"loadBalancerProfile\": + {\n \"managedOutboundIPs\": {\n \"count\": 1\n },\n \"effectiveOutboundIPs\": + [\n {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000001_westus2/providers/Microsoft.Network/publicIPAddresses/119700fd-511a-4eda-9fb8-907c63710f0b\"\n + \ }\n ]\n },\n \"podCidr\": \"10.244.0.0/16\",\n \"serviceCidr\": + \"10.0.0.0/16\",\n \"dnsServiceIP\": \"10.0.0.10\",\n \"dockerBridgeCidr\": + \"172.17.0.1/16\",\n \"outboundType\": \"loadBalancer\",\n \"podCidrs\": + [\n \"10.244.0.0/16\"\n ],\n \"serviceCidrs\": [\n \"10.0.0.0/16\"\n + \ ],\n \"ipFamilies\": [\n \"IPv4\"\n ]\n },\n \"maxAgentPools\": + 100,\n \"identityProfile\": {\n \"kubeletidentity\": {\n \"resourceId\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MC_clitest000001_cliakstest000001_westus2/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cliakstest000001-agentpool\",\n + \ \"clientId\":\"00000000-0000-0000-0000-000000000001\",\n \"objectId\":\"00000000-0000-0000-0000-000000000001\"\n + \ }\n },\n \"disableLocalAccounts\": false,\n \"securityProfile\": + {},\n \"storageProfile\": {\n \"diskCSIDriver\": {\n \"enabled\": + true\n },\n \"fileCSIDriver\": {\n \"enabled\": true\n },\n \"snapshotController\": + {\n \"enabled\": true\n }\n },\n \"oidcIssuerProfile\": {\n \"enabled\": + false\n },\n \"workloadAutoScalerProfile\": {},\n \"azureMonitorProfile\": + {\n \"metrics\": {\n \"enabled\": true,\n \"kubeStateMetrics\": + {\n \"metricLabelsAllowlist\": \"\",\n \"metricAnnotationsAllowList\": + \"\"\n }\n }\n }\n },\n \"identity\": {\n \"type\": \"SystemAssigned\",\n + \ \"principalId\":\"00000000-0000-0000-0000-000000000001\",\n \"tenantId\": + \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\n },\n \"sku\": {\n \"name\": + \"Basic\",\n \"tier\": \"Free\"\n }\n }" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/d4a02c47-c033-48a6-86b5-949aede5ce72?api-version=2016-03-30 + cache-control: + - no-cache + content-length: + - '4184' + content-type: + - application/json + date: + - Tue, 09 May 2023 19:27:27 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks wait + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --updated --interval --timeout + User-Agent: + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/22.0.0b Python/3.8.10 + (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000001?api-version=2023-03-02-preview + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000001\",\n + \ \"location\": \"westus2\",\n \"name\": \"cliakstest000001\",\n \"type\": + \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": + \"Updating\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": + \"1.25.6\",\n \"currentKubernetesVersion\": \"1.25.6\",\n \"dnsPrefix\": + \"cliakstest-clitestmfq3ejeu5-79a739\",\n \"fqdn\": \"cliakstest-clitestmfq3ejeu5-79a739-ajco4565.hcp.westus2.azmk8s.io\",\n + \ \"azurePortalFQDN\": \"cliakstest-clitestmfq3ejeu5-79a739-ajco4565.portal.hcp.westus2.azmk8s.io\",\n + \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": + 3,\n \"vmSize\": \"standard_d2s_v3\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": + \"Managed\",\n \"kubeletDiskType\": \"OS\",\n \"workloadRuntime\": + \"OCIContainer\",\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n + \ \"enableAutoScaling\": false,\n \"provisioningState\": \"Updating\",\n + \ \"powerState\": {\n \"code\": \"Running\"\n },\n \"orchestratorVersion\": + \"1.25.6\",\n \"currentOrchestratorVersion\": \"1.25.6\",\n \"enableNodePublicIP\": + false,\n \"enableCustomCATrust\": false,\n \"mode\": \"System\",\n + \ \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\": false,\n + \ \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"nodeImageVersion\": + \"AKSUbuntu-2204gen2containerd-202304.20.0\",\n \"upgradeSettings\": {},\n + \ \"enableFIPS\": false,\n \"networkProfile\": {}\n }\n ],\n \"linuxProfile\": + {\n \"adminUsername\": \"azureuser\",\n \"ssh\": {\n \"publicKeys\": + [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDefbF/frwrKTFwsnDpZDXLe23htkKgEB5U4e75sYVRKpw2XdlRBHqPElvgHbNc8LRvlna+n7/7ZghqpTmRy9Lv/MLA8m2/FhxmUKvDvo7hB+2E3HofW5nhILP01H1LnlmbxpGP/hMjm92g758m2eqc4GIhQmlDYB4gcteJDi5avWGLbxINmAXahyRwDy06wcS6rtS6ODDBcmNkP+yGUmT+BR4yxPV4ysooJpvegb8vBQS9cHre/9kB1VsEjy+uBmQqrktRnaSsWOpdd9G7urd7K66BKLyj7UxBkbXbZPnRyiNweaEdzueMd5PSxUyQPXpkNwwHWC19MfonR7DP+2F3 + azcli_aks_live_test@example.com\\n\"\n }\n ]\n }\n },\n \"servicePrincipalProfile\": + {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \"nodeResourceGroup\": + \"MC_clitest000001_cliakstest000001_westus2\",\n \"enableRBAC\": true,\n + \ \"enablePodSecurityPolicy\": false,\n \"enableLTS\": \"KubernetesOfficial\",\n + \ \"networkProfile\": {\n \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\": + \"Standard\",\n \"loadBalancerProfile\": {\n \"managedOutboundIPs\": + {\n \"count\": 1\n },\n \"effectiveOutboundIPs\": [\n {\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000001_westus2/providers/Microsoft.Network/publicIPAddresses/119700fd-511a-4eda-9fb8-907c63710f0b\"\n + \ }\n ],\n \"backendPoolType\": \"nodeIPConfiguration\"\n },\n + \ \"podCidr\": \"10.244.0.0/16\",\n \"serviceCidr\": \"10.0.0.0/16\",\n + \ \"dnsServiceIP\": \"10.0.0.10\",\n \"dockerBridgeCidr\": \"172.17.0.1/16\",\n + \ \"outboundType\": \"loadBalancer\",\n \"podCidrs\": [\n \"10.244.0.0/16\"\n + \ ],\n \"serviceCidrs\": [\n \"10.0.0.0/16\"\n ],\n \"ipFamilies\": + [\n \"IPv4\"\n ]\n },\n \"maxAgentPools\": 100,\n \"identityProfile\": + {\n \"kubeletidentity\": {\n \"resourceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MC_clitest000001_cliakstest000001_westus2/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cliakstest000001-agentpool\",\n + \ \"clientId\":\"00000000-0000-0000-0000-000000000001\",\n \"objectId\":\"00000000-0000-0000-0000-000000000001\"\n + \ }\n },\n \"disableLocalAccounts\": false,\n \"securityProfile\": + {},\n \"storageProfile\": {\n \"diskCSIDriver\": {\n \"enabled\": + true,\n \"version\": \"v1\"\n },\n \"fileCSIDriver\": {\n \"enabled\": + true\n },\n \"snapshotController\": {\n \"enabled\": true\n }\n + \ },\n \"oidcIssuerProfile\": {\n \"enabled\": false\n },\n \"workloadAutoScalerProfile\": + {},\n \"azureMonitorProfile\": {\n \"metrics\": {\n \"enabled\": + true,\n \"kubeStateMetrics\": {\n \"metricLabelsAllowlist\": \"\",\n + \ \"metricAnnotationsAllowList\": \"\"\n }\n }\n }\n },\n \"identity\": + {\n \"type\": \"SystemAssigned\",\n \"principalId\":\"00000000-0000-0000-0000-000000000001\",\n + \ \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\n },\n \"sku\": + {\n \"name\": \"Base\",\n \"tier\": \"Free\"\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '4352' + content-type: + - application/json + date: + - Tue, 09 May 2023 19:27:28 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks wait + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --updated --interval --timeout + User-Agent: + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/22.0.0b Python/3.8.10 + (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000001?api-version=2023-03-02-preview + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000001\",\n + \ \"location\": \"westus2\",\n \"name\": \"cliakstest000001\",\n \"type\": + \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": + \"Updating\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": + \"1.25.6\",\n \"currentKubernetesVersion\": \"1.25.6\",\n \"dnsPrefix\": + \"cliakstest-clitestmfq3ejeu5-79a739\",\n \"fqdn\": \"cliakstest-clitestmfq3ejeu5-79a739-ajco4565.hcp.westus2.azmk8s.io\",\n + \ \"azurePortalFQDN\": \"cliakstest-clitestmfq3ejeu5-79a739-ajco4565.portal.hcp.westus2.azmk8s.io\",\n + \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": + 3,\n \"vmSize\": \"standard_d2s_v3\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": + \"Managed\",\n \"kubeletDiskType\": \"OS\",\n \"workloadRuntime\": + \"OCIContainer\",\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n + \ \"enableAutoScaling\": false,\n \"provisioningState\": \"Updating\",\n + \ \"powerState\": {\n \"code\": \"Running\"\n },\n \"orchestratorVersion\": + \"1.25.6\",\n \"currentOrchestratorVersion\": \"1.25.6\",\n \"enableNodePublicIP\": + false,\n \"enableCustomCATrust\": false,\n \"mode\": \"System\",\n + \ \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\": false,\n + \ \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"nodeImageVersion\": + \"AKSUbuntu-2204gen2containerd-202304.20.0\",\n \"upgradeSettings\": {},\n + \ \"enableFIPS\": false,\n \"networkProfile\": {}\n }\n ],\n \"linuxProfile\": + {\n \"adminUsername\": \"azureuser\",\n \"ssh\": {\n \"publicKeys\": + [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDefbF/frwrKTFwsnDpZDXLe23htkKgEB5U4e75sYVRKpw2XdlRBHqPElvgHbNc8LRvlna+n7/7ZghqpTmRy9Lv/MLA8m2/FhxmUKvDvo7hB+2E3HofW5nhILP01H1LnlmbxpGP/hMjm92g758m2eqc4GIhQmlDYB4gcteJDi5avWGLbxINmAXahyRwDy06wcS6rtS6ODDBcmNkP+yGUmT+BR4yxPV4ysooJpvegb8vBQS9cHre/9kB1VsEjy+uBmQqrktRnaSsWOpdd9G7urd7K66BKLyj7UxBkbXbZPnRyiNweaEdzueMd5PSxUyQPXpkNwwHWC19MfonR7DP+2F3 + azcli_aks_live_test@example.com\\n\"\n }\n ]\n }\n },\n \"servicePrincipalProfile\": + {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \"nodeResourceGroup\": + \"MC_clitest000001_cliakstest000001_westus2\",\n \"enableRBAC\": true,\n + \ \"enablePodSecurityPolicy\": false,\n \"enableLTS\": \"KubernetesOfficial\",\n + \ \"networkProfile\": {\n \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\": + \"Standard\",\n \"loadBalancerProfile\": {\n \"managedOutboundIPs\": + {\n \"count\": 1\n },\n \"effectiveOutboundIPs\": [\n {\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000001_westus2/providers/Microsoft.Network/publicIPAddresses/119700fd-511a-4eda-9fb8-907c63710f0b\"\n + \ }\n ],\n \"backendPoolType\": \"nodeIPConfiguration\"\n },\n + \ \"podCidr\": \"10.244.0.0/16\",\n \"serviceCidr\": \"10.0.0.0/16\",\n + \ \"dnsServiceIP\": \"10.0.0.10\",\n \"dockerBridgeCidr\": \"172.17.0.1/16\",\n + \ \"outboundType\": \"loadBalancer\",\n \"podCidrs\": [\n \"10.244.0.0/16\"\n + \ ],\n \"serviceCidrs\": [\n \"10.0.0.0/16\"\n ],\n \"ipFamilies\": + [\n \"IPv4\"\n ]\n },\n \"maxAgentPools\": 100,\n \"identityProfile\": + {\n \"kubeletidentity\": {\n \"resourceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MC_clitest000001_cliakstest000001_westus2/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cliakstest000001-agentpool\",\n + \ \"clientId\":\"00000000-0000-0000-0000-000000000001\",\n \"objectId\":\"00000000-0000-0000-0000-000000000001\"\n + \ }\n },\n \"disableLocalAccounts\": false,\n \"securityProfile\": + {},\n \"storageProfile\": {\n \"diskCSIDriver\": {\n \"enabled\": + true,\n \"version\": \"v1\"\n },\n \"fileCSIDriver\": {\n \"enabled\": + true\n },\n \"snapshotController\": {\n \"enabled\": true\n }\n + \ },\n \"oidcIssuerProfile\": {\n \"enabled\": false\n },\n \"workloadAutoScalerProfile\": + {},\n \"azureMonitorProfile\": {\n \"metrics\": {\n \"enabled\": + true,\n \"kubeStateMetrics\": {\n \"metricLabelsAllowlist\": \"\",\n + \ \"metricAnnotationsAllowList\": \"\"\n }\n }\n }\n },\n \"identity\": + {\n \"type\": \"SystemAssigned\",\n \"principalId\":\"00000000-0000-0000-0000-000000000001\",\n + \ \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\n },\n \"sku\": + {\n \"name\": \"Base\",\n \"tier\": \"Free\"\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '4352' + content-type: + - application/json + date: + - Tue, 09 May 2023 19:28:28 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks wait + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --updated --interval --timeout + User-Agent: + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/22.0.0b Python/3.8.10 + (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000001?api-version=2023-03-02-preview + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000001\",\n + \ \"location\": \"westus2\",\n \"name\": \"cliakstest000001\",\n \"type\": + \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": + \"Updating\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": + \"1.25.6\",\n \"currentKubernetesVersion\": \"1.25.6\",\n \"dnsPrefix\": + \"cliakstest-clitestmfq3ejeu5-79a739\",\n \"fqdn\": \"cliakstest-clitestmfq3ejeu5-79a739-ajco4565.hcp.westus2.azmk8s.io\",\n + \ \"azurePortalFQDN\": \"cliakstest-clitestmfq3ejeu5-79a739-ajco4565.portal.hcp.westus2.azmk8s.io\",\n + \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": + 3,\n \"vmSize\": \"standard_d2s_v3\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": + \"Managed\",\n \"kubeletDiskType\": \"OS\",\n \"workloadRuntime\": + \"OCIContainer\",\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n + \ \"enableAutoScaling\": false,\n \"provisioningState\": \"Updating\",\n + \ \"powerState\": {\n \"code\": \"Running\"\n },\n \"orchestratorVersion\": + \"1.25.6\",\n \"currentOrchestratorVersion\": \"1.25.6\",\n \"enableNodePublicIP\": + false,\n \"enableCustomCATrust\": false,\n \"mode\": \"System\",\n + \ \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\": false,\n + \ \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"nodeImageVersion\": + \"AKSUbuntu-2204gen2containerd-202304.20.0\",\n \"upgradeSettings\": {},\n + \ \"enableFIPS\": false,\n \"networkProfile\": {}\n }\n ],\n \"linuxProfile\": + {\n \"adminUsername\": \"azureuser\",\n \"ssh\": {\n \"publicKeys\": + [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDefbF/frwrKTFwsnDpZDXLe23htkKgEB5U4e75sYVRKpw2XdlRBHqPElvgHbNc8LRvlna+n7/7ZghqpTmRy9Lv/MLA8m2/FhxmUKvDvo7hB+2E3HofW5nhILP01H1LnlmbxpGP/hMjm92g758m2eqc4GIhQmlDYB4gcteJDi5avWGLbxINmAXahyRwDy06wcS6rtS6ODDBcmNkP+yGUmT+BR4yxPV4ysooJpvegb8vBQS9cHre/9kB1VsEjy+uBmQqrktRnaSsWOpdd9G7urd7K66BKLyj7UxBkbXbZPnRyiNweaEdzueMd5PSxUyQPXpkNwwHWC19MfonR7DP+2F3 + azcli_aks_live_test@example.com\\n\"\n }\n ]\n }\n },\n \"servicePrincipalProfile\": + {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \"nodeResourceGroup\": + \"MC_clitest000001_cliakstest000001_westus2\",\n \"enableRBAC\": true,\n + \ \"enablePodSecurityPolicy\": false,\n \"enableLTS\": \"KubernetesOfficial\",\n + \ \"networkProfile\": {\n \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\": + \"Standard\",\n \"loadBalancerProfile\": {\n \"managedOutboundIPs\": + {\n \"count\": 1\n },\n \"effectiveOutboundIPs\": [\n {\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000001_westus2/providers/Microsoft.Network/publicIPAddresses/119700fd-511a-4eda-9fb8-907c63710f0b\"\n + \ }\n ],\n \"backendPoolType\": \"nodeIPConfiguration\"\n },\n + \ \"podCidr\": \"10.244.0.0/16\",\n \"serviceCidr\": \"10.0.0.0/16\",\n + \ \"dnsServiceIP\": \"10.0.0.10\",\n \"dockerBridgeCidr\": \"172.17.0.1/16\",\n + \ \"outboundType\": \"loadBalancer\",\n \"podCidrs\": [\n \"10.244.0.0/16\"\n + \ ],\n \"serviceCidrs\": [\n \"10.0.0.0/16\"\n ],\n \"ipFamilies\": + [\n \"IPv4\"\n ]\n },\n \"maxAgentPools\": 100,\n \"identityProfile\": + {\n \"kubeletidentity\": {\n \"resourceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MC_clitest000001_cliakstest000001_westus2/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cliakstest000001-agentpool\",\n + \ \"clientId\":\"00000000-0000-0000-0000-000000000001\",\n \"objectId\":\"00000000-0000-0000-0000-000000000001\"\n + \ }\n },\n \"disableLocalAccounts\": false,\n \"securityProfile\": + {},\n \"storageProfile\": {\n \"diskCSIDriver\": {\n \"enabled\": + true,\n \"version\": \"v1\"\n },\n \"fileCSIDriver\": {\n \"enabled\": + true\n },\n \"snapshotController\": {\n \"enabled\": true\n }\n + \ },\n \"oidcIssuerProfile\": {\n \"enabled\": false\n },\n \"workloadAutoScalerProfile\": + {},\n \"azureMonitorProfile\": {\n \"metrics\": {\n \"enabled\": + true,\n \"kubeStateMetrics\": {\n \"metricLabelsAllowlist\": \"\",\n + \ \"metricAnnotationsAllowList\": \"\"\n }\n }\n }\n },\n \"identity\": + {\n \"type\": \"SystemAssigned\",\n \"principalId\":\"00000000-0000-0000-0000-000000000001\",\n + \ \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\n },\n \"sku\": + {\n \"name\": \"Base\",\n \"tier\": \"Free\"\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '4352' + content-type: + - application/json + date: + - Tue, 09 May 2023 19:29:30 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks wait + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --updated --interval --timeout + User-Agent: + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/22.0.0b Python/3.8.10 + (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000001?api-version=2023-03-02-preview + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000001\",\n + \ \"location\": \"westus2\",\n \"name\": \"cliakstest000001\",\n \"type\": + \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": + \"Succeeded\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": + \"1.25.6\",\n \"currentKubernetesVersion\": \"1.25.6\",\n \"dnsPrefix\": + \"cliakstest-clitestmfq3ejeu5-79a739\",\n \"fqdn\": \"cliakstest-clitestmfq3ejeu5-79a739-ajco4565.hcp.westus2.azmk8s.io\",\n + \ \"azurePortalFQDN\": \"cliakstest-clitestmfq3ejeu5-79a739-ajco4565.portal.hcp.westus2.azmk8s.io\",\n + \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": + 3,\n \"vmSize\": \"standard_d2s_v3\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": + \"Managed\",\n \"kubeletDiskType\": \"OS\",\n \"workloadRuntime\": + \"OCIContainer\",\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n + \ \"enableAutoScaling\": false,\n \"provisioningState\": \"Succeeded\",\n + \ \"powerState\": {\n \"code\": \"Running\"\n },\n \"orchestratorVersion\": + \"1.25.6\",\n \"currentOrchestratorVersion\": \"1.25.6\",\n \"enableNodePublicIP\": + false,\n \"enableCustomCATrust\": false,\n \"mode\": \"System\",\n + \ \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\": false,\n + \ \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"nodeImageVersion\": + \"AKSUbuntu-2204gen2containerd-202304.20.0\",\n \"upgradeSettings\": {},\n + \ \"enableFIPS\": false,\n \"networkProfile\": {}\n }\n ],\n \"linuxProfile\": + {\n \"adminUsername\": \"azureuser\",\n \"ssh\": {\n \"publicKeys\": + [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDefbF/frwrKTFwsnDpZDXLe23htkKgEB5U4e75sYVRKpw2XdlRBHqPElvgHbNc8LRvlna+n7/7ZghqpTmRy9Lv/MLA8m2/FhxmUKvDvo7hB+2E3HofW5nhILP01H1LnlmbxpGP/hMjm92g758m2eqc4GIhQmlDYB4gcteJDi5avWGLbxINmAXahyRwDy06wcS6rtS6ODDBcmNkP+yGUmT+BR4yxPV4ysooJpvegb8vBQS9cHre/9kB1VsEjy+uBmQqrktRnaSsWOpdd9G7urd7K66BKLyj7UxBkbXbZPnRyiNweaEdzueMd5PSxUyQPXpkNwwHWC19MfonR7DP+2F3 + azcli_aks_live_test@example.com\\n\"\n }\n ]\n }\n },\n \"servicePrincipalProfile\": + {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \"nodeResourceGroup\": + \"MC_clitest000001_cliakstest000001_westus2\",\n \"enableRBAC\": true,\n + \ \"enablePodSecurityPolicy\": false,\n \"enableLTS\": \"KubernetesOfficial\",\n + \ \"networkProfile\": {\n \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\": + \"Standard\",\n \"loadBalancerProfile\": {\n \"managedOutboundIPs\": + {\n \"count\": 1\n },\n \"effectiveOutboundIPs\": [\n {\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000001_westus2/providers/Microsoft.Network/publicIPAddresses/119700fd-511a-4eda-9fb8-907c63710f0b\"\n + \ }\n ],\n \"backendPoolType\": \"nodeIPConfiguration\"\n },\n + \ \"podCidr\": \"10.244.0.0/16\",\n \"serviceCidr\": \"10.0.0.0/16\",\n + \ \"dnsServiceIP\": \"10.0.0.10\",\n \"dockerBridgeCidr\": \"172.17.0.1/16\",\n + \ \"outboundType\": \"loadBalancer\",\n \"podCidrs\": [\n \"10.244.0.0/16\"\n + \ ],\n \"serviceCidrs\": [\n \"10.0.0.0/16\"\n ],\n \"ipFamilies\": + [\n \"IPv4\"\n ]\n },\n \"maxAgentPools\": 100,\n \"identityProfile\": + {\n \"kubeletidentity\": {\n \"resourceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MC_clitest000001_cliakstest000001_westus2/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cliakstest000001-agentpool\",\n + \ \"clientId\":\"00000000-0000-0000-0000-000000000001\",\n \"objectId\":\"00000000-0000-0000-0000-000000000001\"\n + \ }\n },\n \"disableLocalAccounts\": false,\n \"securityProfile\": + {},\n \"storageProfile\": {\n \"diskCSIDriver\": {\n \"enabled\": + true,\n \"version\": \"v1\"\n },\n \"fileCSIDriver\": {\n \"enabled\": + true\n },\n \"snapshotController\": {\n \"enabled\": true\n }\n + \ },\n \"oidcIssuerProfile\": {\n \"enabled\": false\n },\n \"workloadAutoScalerProfile\": + {},\n \"azureMonitorProfile\": {\n \"metrics\": {\n \"enabled\": + true,\n \"kubeStateMetrics\": {\n \"metricLabelsAllowlist\": \"\",\n + \ \"metricAnnotationsAllowList\": \"\"\n }\n }\n }\n },\n \"identity\": + {\n \"type\": \"SystemAssigned\",\n \"principalId\":\"00000000-0000-0000-0000-000000000001\",\n + \ \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\n },\n \"sku\": + {\n \"name\": \"Base\",\n \"tier\": \"Free\"\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '4354' + content-type: + - application/json + date: + - Tue, 09 May 2023 19:30:31 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks show + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/22.0.0b Python/3.8.10 + (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000001?api-version=2023-03-02-preview + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000001\",\n + \ \"location\": \"westus2\",\n \"name\": \"cliakstest000001\",\n \"type\": + \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": + \"Succeeded\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": + \"1.25.6\",\n \"currentKubernetesVersion\": \"1.25.6\",\n \"dnsPrefix\": + \"cliakstest-clitestmfq3ejeu5-79a739\",\n \"fqdn\": \"cliakstest-clitestmfq3ejeu5-79a739-ajco4565.hcp.westus2.azmk8s.io\",\n + \ \"azurePortalFQDN\": \"cliakstest-clitestmfq3ejeu5-79a739-ajco4565.portal.hcp.westus2.azmk8s.io\",\n + \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": + 3,\n \"vmSize\": \"standard_d2s_v3\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": + \"Managed\",\n \"kubeletDiskType\": \"OS\",\n \"workloadRuntime\": + \"OCIContainer\",\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n + \ \"enableAutoScaling\": false,\n \"provisioningState\": \"Succeeded\",\n + \ \"powerState\": {\n \"code\": \"Running\"\n },\n \"orchestratorVersion\": + \"1.25.6\",\n \"currentOrchestratorVersion\": \"1.25.6\",\n \"enableNodePublicIP\": + false,\n \"enableCustomCATrust\": false,\n \"mode\": \"System\",\n + \ \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\": false,\n + \ \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"nodeImageVersion\": + \"AKSUbuntu-2204gen2containerd-202304.20.0\",\n \"upgradeSettings\": {},\n + \ \"enableFIPS\": false,\n \"networkProfile\": {}\n }\n ],\n \"linuxProfile\": + {\n \"adminUsername\": \"azureuser\",\n \"ssh\": {\n \"publicKeys\": + [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDefbF/frwrKTFwsnDpZDXLe23htkKgEB5U4e75sYVRKpw2XdlRBHqPElvgHbNc8LRvlna+n7/7ZghqpTmRy9Lv/MLA8m2/FhxmUKvDvo7hB+2E3HofW5nhILP01H1LnlmbxpGP/hMjm92g758m2eqc4GIhQmlDYB4gcteJDi5avWGLbxINmAXahyRwDy06wcS6rtS6ODDBcmNkP+yGUmT+BR4yxPV4ysooJpvegb8vBQS9cHre/9kB1VsEjy+uBmQqrktRnaSsWOpdd9G7urd7K66BKLyj7UxBkbXbZPnRyiNweaEdzueMd5PSxUyQPXpkNwwHWC19MfonR7DP+2F3 + azcli_aks_live_test@example.com\\n\"\n }\n ]\n }\n },\n \"servicePrincipalProfile\": + {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \"nodeResourceGroup\": + \"MC_clitest000001_cliakstest000001_westus2\",\n \"enableRBAC\": true,\n + \ \"enablePodSecurityPolicy\": false,\n \"enableLTS\": \"KubernetesOfficial\",\n + \ \"networkProfile\": {\n \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\": + \"Standard\",\n \"loadBalancerProfile\": {\n \"managedOutboundIPs\": + {\n \"count\": 1\n },\n \"effectiveOutboundIPs\": [\n {\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000001_westus2/providers/Microsoft.Network/publicIPAddresses/119700fd-511a-4eda-9fb8-907c63710f0b\"\n + \ }\n ],\n \"backendPoolType\": \"nodeIPConfiguration\"\n },\n + \ \"podCidr\": \"10.244.0.0/16\",\n \"serviceCidr\": \"10.0.0.0/16\",\n + \ \"dnsServiceIP\": \"10.0.0.10\",\n \"dockerBridgeCidr\": \"172.17.0.1/16\",\n + \ \"outboundType\": \"loadBalancer\",\n \"podCidrs\": [\n \"10.244.0.0/16\"\n + \ ],\n \"serviceCidrs\": [\n \"10.0.0.0/16\"\n ],\n \"ipFamilies\": + [\n \"IPv4\"\n ]\n },\n \"maxAgentPools\": 100,\n \"identityProfile\": + {\n \"kubeletidentity\": {\n \"resourceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MC_clitest000001_cliakstest000001_westus2/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cliakstest000001-agentpool\",\n + \ \"clientId\":\"00000000-0000-0000-0000-000000000001\",\n \"objectId\":\"00000000-0000-0000-0000-000000000001\"\n + \ }\n },\n \"disableLocalAccounts\": false,\n \"securityProfile\": + {},\n \"storageProfile\": {\n \"diskCSIDriver\": {\n \"enabled\": + true,\n \"version\": \"v1\"\n },\n \"fileCSIDriver\": {\n \"enabled\": + true\n },\n \"snapshotController\": {\n \"enabled\": true\n }\n + \ },\n \"oidcIssuerProfile\": {\n \"enabled\": false\n },\n \"workloadAutoScalerProfile\": + {},\n \"azureMonitorProfile\": {\n \"metrics\": {\n \"enabled\": + true,\n \"kubeStateMetrics\": {\n \"metricLabelsAllowlist\": \"\",\n + \ \"metricAnnotationsAllowList\": \"\"\n }\n }\n }\n },\n \"identity\": + {\n \"type\": \"SystemAssigned\",\n \"principalId\":\"00000000-0000-0000-0000-000000000001\",\n + \ \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\n },\n \"sku\": + {\n \"name\": \"Base\",\n \"tier\": \"Free\"\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '4354' + content-type: + - application/json + date: + - Tue, 09 May 2023 19:30:32 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --resource-group --name --yes --no-wait + User-Agent: + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/22.0.0b Python/3.8.10 + (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000001?api-version=2023-03-02-preview + response: + body: + string: '' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/1b2fb6a7-a8d8-46e2-9de7-29254397657a?api-version=2016-03-30 + cache-control: + - no-cache + content-length: + - '0' + date: + - Tue, 09 May 2023 19:30:33 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operationresults/1b2fb6a7-a8d8-46e2-9de7-29254397657a?api-version=2016-03-30 + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' + status: + code: 202 + message: Accepted +version: 1 From 00f89d0d87c61e54d21b8e6487a9a8f6a8074cd3 Mon Sep 17 00:00:00 2001 From: Kaveesh Dubey Date: Tue, 9 May 2023 13:35:59 -0700 Subject: [PATCH 11/27] . --- .../azext_aks_preview/tests/latest/test_aks_commands.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/aks-preview/azext_aks_preview/tests/latest/test_aks_commands.py b/src/aks-preview/azext_aks_preview/tests/latest/test_aks_commands.py index fe1129366d7..610f4e0d8d2 100644 --- a/src/aks-preview/azext_aks_preview/tests/latest/test_aks_commands.py +++ b/src/aks-preview/azext_aks_preview/tests/latest/test_aks_commands.py @@ -6436,7 +6436,6 @@ def test_aks_update_with_azuremonitormetrics(self, resource_group, resource_grou # update: enable-azuremonitormetrics update_cmd = 'aks update --resource-group={resource_group} --name={name} --yes --output=json ' \ - '--aks-custom-headers=AKSHTTPCustomFeatures=Microsoft.ContainerService/AKS-PrometheusAddonPreview ' \ '--enable-azuremonitormetrics --enable-managed-identity --enable-windows-recording-rules' self.cmd(update_cmd, checks=[ self.check('provisioningState', 'Succeeded'), From 64fb56f7ff04e3d5d01b285a101da215c4d6845d Mon Sep 17 00:00:00 2001 From: Kaveesh Dubey Date: Tue, 9 May 2023 14:05:34 -0700 Subject: [PATCH 12/27] update recording for aks update --enable-azuremonitormetrics --- ...t_aks_update_with_azuremonitormetrics.yaml | 5050 ++++++++++------- 1 file changed, 2865 insertions(+), 2185 deletions(-) diff --git a/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_update_with_azuremonitormetrics.yaml b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_update_with_azuremonitormetrics.yaml index 7149c5cad50..63cc1c49472 100644 --- a/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_update_with_azuremonitormetrics.yaml +++ b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_update_with_azuremonitormetrics.yaml @@ -14,8 +14,8 @@ interactions: - --resource-group --name --location --ssh-key-value --node-vm-size --enable-managed-identity --output User-Agent: - - AZURECLI/2.46.0 azsdk-python-azure-mgmt-containerservice/21.2.0b Python/3.10.10 - (Linux-5.15.0-1034-azure-x86_64-with-glibc2.31) VSTS_7b238909-6802-4b65-b90d-184bca47f458_build_261_0 + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/22.0.0b Python/3.8.10 + (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2023-03-02-preview response: @@ -31,7 +31,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 28 Mar 2023 22:03:25 GMT + - Tue, 09 May 2023 20:49:18 GMT expires: - '-1' pragma: @@ -47,7 +47,7 @@ interactions: message: Not Found - request: body: '{"location": "westus2", "identity": {"type": "SystemAssigned"}, "properties": - {"kubernetesVersion": "", "dnsPrefix": "cliakstest-clitest000001-0b1f64", "agentPoolProfiles": + {"kubernetesVersion": "", "dnsPrefix": "cliakstest-clitest000001-79a739", "agentPoolProfiles": [{"count": 3, "vmSize": "standard_d2s_v3", "osDiskSizeGB": 0, "workloadRuntime": "OCIContainer", "osType": "Linux", "enableAutoScaling": false, "type": "VirtualMachineScaleSets", "mode": "System", "orchestratorVersion": "", "upgradeSettings": {}, "enableNodePublicIP": @@ -55,12 +55,12 @@ interactions: "Delete", "spotMaxPrice": -1.0, "nodeTaints": [], "enableEncryptionAtHost": false, "enableUltraSSD": false, "enableFIPS": false, "networkProfile": {}, "name": "nodepool1"}], "linuxProfile": {"adminUsername": "azureuser", "ssh": {"publicKeys": - [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCbIg1guRHbI0lV11wWDt1r2cUdcNd27CJsg+SfgC7miZeubtwUhbsPdhMQsfDyhOWHq1+ZL0M+nJZV63d/1dhmhtgyOqejUwrPlzKhydsbrsdUor+JmNJDdW01v7BXHyuymT8G4s09jCasNOwiufbP/qp72ruu0bIA1nySsvlf9pCQAuFkAnVnf/rFhUlOkhtRpwcq8SUNY2zRHR/EKb/4NWY1JzR4sa3q2fWIJdrrX0DvLoa5g9bIEd4Df79ba7v+yiUBOS0zT2ll+z4g9izHK3EO5d8hL4jYxcjKs+wcslSYRWrascfscLgMlMGh0CdKeNTDjHpGPncaf3Z+FwwwjWeuiNBxv7bJo13/8B/098KlVDl4GZqsoBCEjPyJfV6hO0y/LkRGkk7oHWKgeWAfKtfLItRp00eZ4fcJNK9kCaSMmEugoZWcI7NGbZXzqFWqbpRI7NcDP9+WIQ+i9U5vqWsqd/zng4kbuAJ6UuKqIzB0upYrLShfQE3SAck8oaLhJqqq56VfDuASNpJKidV+zq27HfSBmbXnkR/5AK337dc3MXKJypoK/QPMLKUAP5XLPbs+NddJQV7EZXd29DLgp+fRIg3edpKdO7ZErWhv7d+3Kws+e1Y+ypmR2WIVSwVyBEUfgv2C8Ts9gnTF4pNcEY/S2aBicz5Ew2+jdyGNQQ== - test@example.com\n"}]}}, "addonProfiles": {}, "enableRBAC": true, "enablePodSecurityPolicy": - false, "networkProfile": {"networkPlugin": "kubenet", "podCidr": "10.244.0.0/16", - "serviceCidr": "10.0.0.0/16", "dnsServiceIP": "10.0.0.10", "dockerBridgeCidr": - "172.17.0.1/16", "outboundType": "loadBalancer", "loadBalancerSku": "standard"}, - "disableLocalAccounts": false, "storageProfile": {}}}' + [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCvSmDv2/j+2YOKt8Upeh5kRqWfa6Ruqyux98ejQPu6RssXtqmdYZTCMo0U0klQpXFIJI3ASBtFvMX3lBtqKLbjehzIirpjkesUCQvEEgKOd6iGp9ORvMr8FCn0RZr1Idw1dp7KmsCcxbMVPc5YGyvkrBtWl0BI0W/gVQxQ3+iF+NBrwuYAeLVnjmxp6moiCElvxm9ehp00Sr+7hpjPjzLi7qpDN2FITOggiXhrvXWJI/2cqfcPTvDXDQH+e6+avyApRPa/OvkCM7Jm/gXdUzes0xm1Y6aI61hzc8m9K1QjqleMeHPDTUYLCb8cCEnn70itMEkfuqwp6yftFWxCcylR + azcli_aks_live_test@example.com\n"}]}}, "addonProfiles": {}, "enableRBAC": true, + "enablePodSecurityPolicy": false, "networkProfile": {"networkPlugin": "kubenet", + "podCidr": "10.244.0.0/16", "serviceCidr": "10.0.0.0/16", "dnsServiceIP": "10.0.0.10", + "dockerBridgeCidr": "172.17.0.1/16", "outboundType": "loadBalancer", "loadBalancerSku": + "standard"}, "disableLocalAccounts": false, "storageProfile": {}}}' headers: Accept: - application/json @@ -71,15 +71,15 @@ interactions: Connection: - keep-alive Content-Length: - - '1906' + - '1577' Content-Type: - application/json ParameterSetName: - --resource-group --name --location --ssh-key-value --node-vm-size --enable-managed-identity --output User-Agent: - - AZURECLI/2.46.0 azsdk-python-azure-mgmt-containerservice/21.2.0b Python/3.10.10 - (Linux-5.15.0-1034-azure-x86_64-with-glibc2.31) VSTS_7b238909-6802-4b65-b90d-184bca47f458_build_261_0 + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/22.0.0b Python/3.8.10 + (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2023-03-02-preview response: @@ -88,53 +88,54 @@ interactions: \ \"location\": \"westus2\",\n \"name\": \"cliakstest000002\",\n \"type\": \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": \"Creating\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": - \"1.24.9\",\n \"currentKubernetesVersion\": \"1.24.9\",\n \"dnsPrefix\": - \"cliakstest-clitest000001-0b1f64\",\n \"fqdn\": \"cliakstest-clitest000001-0b1f64-amkkzkou.hcp.westus2.azmk8s.io\",\n - \ \"azurePortalFQDN\": \"cliakstest-clitest000001-0b1f64-amkkzkou.portal.hcp.westus2.azmk8s.io\",\n + \"1.25.6\",\n \"currentKubernetesVersion\": \"1.25.6\",\n \"dnsPrefix\": + \"cliakstest-clitest000001-79a739\",\n \"fqdn\": \"cliakstest-clitest000001-79a739-iqxcydbj.hcp.westus2.azmk8s.io\",\n + \ \"azurePortalFQDN\": \"cliakstest-clitest000001-79a739-iqxcydbj.portal.hcp.westus2.azmk8s.io\",\n \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": 3,\n \"vmSize\": \"standard_d2s_v3\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": \"Managed\",\n \"kubeletDiskType\": \"OS\",\n \"workloadRuntime\": \"OCIContainer\",\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n \ \"enableAutoScaling\": false,\n \"provisioningState\": \"Creating\",\n \ \"powerState\": {\n \"code\": \"Running\"\n },\n \"orchestratorVersion\": - \"1.24.9\",\n \"currentOrchestratorVersion\": \"1.24.9\",\n \"enableNodePublicIP\": + \"1.25.6\",\n \"currentOrchestratorVersion\": \"1.25.6\",\n \"enableNodePublicIP\": false,\n \"enableCustomCATrust\": false,\n \"mode\": \"System\",\n \ \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\": false,\n \ \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"nodeImageVersion\": - \"AKSUbuntu-1804gen2containerd-202303.06.0\",\n \"upgradeSettings\": {},\n + \"AKSUbuntu-2204gen2containerd-202304.20.0\",\n \"upgradeSettings\": {},\n \ \"enableFIPS\": false,\n \"networkProfile\": {}\n }\n ],\n \"linuxProfile\": {\n \"adminUsername\": \"azureuser\",\n \"ssh\": {\n \"publicKeys\": - [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCbIg1guRHbI0lV11wWDt1r2cUdcNd27CJsg+SfgC7miZeubtwUhbsPdhMQsfDyhOWHq1+ZL0M+nJZV63d/1dhmhtgyOqejUwrPlzKhydsbrsdUor+JmNJDdW01v7BXHyuymT8G4s09jCasNOwiufbP/qp72ruu0bIA1nySsvlf9pCQAuFkAnVnf/rFhUlOkhtRpwcq8SUNY2zRHR/EKb/4NWY1JzR4sa3q2fWIJdrrX0DvLoa5g9bIEd4Df79ba7v+yiUBOS0zT2ll+z4g9izHK3EO5d8hL4jYxcjKs+wcslSYRWrascfscLgMlMGh0CdKeNTDjHpGPncaf3Z+FwwwjWeuiNBxv7bJo13/8B/098KlVDl4GZqsoBCEjPyJfV6hO0y/LkRGkk7oHWKgeWAfKtfLItRp00eZ4fcJNK9kCaSMmEugoZWcI7NGbZXzqFWqbpRI7NcDP9+WIQ+i9U5vqWsqd/zng4kbuAJ6UuKqIzB0upYrLShfQE3SAck8oaLhJqqq56VfDuASNpJKidV+zq27HfSBmbXnkR/5AK337dc3MXKJypoK/QPMLKUAP5XLPbs+NddJQV7EZXd29DLgp+fRIg3edpKdO7ZErWhv7d+3Kws+e1Y+ypmR2WIVSwVyBEUfgv2C8Ts9gnTF4pNcEY/S2aBicz5Ew2+jdyGNQQ== - test@example.com\\n\"\n }\n ]\n }\n },\n \"servicePrincipalProfile\": + [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCvSmDv2/j+2YOKt8Upeh5kRqWfa6Ruqyux98ejQPu6RssXtqmdYZTCMo0U0klQpXFIJI3ASBtFvMX3lBtqKLbjehzIirpjkesUCQvEEgKOd6iGp9ORvMr8FCn0RZr1Idw1dp7KmsCcxbMVPc5YGyvkrBtWl0BI0W/gVQxQ3+iF+NBrwuYAeLVnjmxp6moiCElvxm9ehp00Sr+7hpjPjzLi7qpDN2FITOggiXhrvXWJI/2cqfcPTvDXDQH+e6+avyApRPa/OvkCM7Jm/gXdUzes0xm1Y6aI61hzc8m9K1QjqleMeHPDTUYLCb8cCEnn70itMEkfuqwp6yftFWxCcylR + azcli_aks_live_test@example.com\\n\"\n }\n ]\n }\n },\n \"servicePrincipalProfile\": {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \"nodeResourceGroup\": \"MC_clitest000001_cliakstest000002_westus2\",\n \"enableRBAC\": true,\n - \ \"enablePodSecurityPolicy\": false,\n \"networkProfile\": {\n \"networkPlugin\": - \"kubenet\",\n \"loadBalancerSku\": \"standard\",\n \"loadBalancerProfile\": - {\n \"managedOutboundIPs\": {\n \"count\": 1\n },\n \"backendPoolType\": - \"nodeIPConfiguration\"\n },\n \"podCidr\": \"10.244.0.0/16\",\n \"serviceCidr\": - \"10.0.0.0/16\",\n \"dnsServiceIP\": \"10.0.0.10\",\n \"dockerBridgeCidr\": - \"172.17.0.1/16\",\n \"outboundType\": \"loadBalancer\",\n \"podCidrs\": - [\n \"10.244.0.0/16\"\n ],\n \"serviceCidrs\": [\n \"10.0.0.0/16\"\n - \ ],\n \"ipFamilies\": [\n \"IPv4\"\n ]\n },\n \"maxAgentPools\": - 100,\n \"disableLocalAccounts\": false,\n \"securityProfile\": {},\n \"storageProfile\": - {\n \"diskCSIDriver\": {\n \"enabled\": true,\n \"version\": \"v1\"\n - \ },\n \"fileCSIDriver\": {\n \"enabled\": true\n },\n \"snapshotController\": - {\n \"enabled\": true\n }\n },\n \"oidcIssuerProfile\": {\n \"enabled\": - false\n },\n \"workloadAutoScalerProfile\": {}\n },\n \"identity\": - {\n \"type\": \"SystemAssigned\",\n \"principalId\":\"00000000-0000-0000-0000-000000000001\",\n - \ \"tenantId\": \"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a\"\n },\n \"sku\": + \ \"enablePodSecurityPolicy\": false,\n \"enableLTS\": \"KubernetesOfficial\",\n + \ \"networkProfile\": {\n \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\": + \"standard\",\n \"loadBalancerProfile\": {\n \"managedOutboundIPs\": + {\n \"count\": 1\n },\n \"backendPoolType\": \"nodeIPConfiguration\"\n + \ },\n \"podCidr\": \"10.244.0.0/16\",\n \"serviceCidr\": \"10.0.0.0/16\",\n + \ \"dnsServiceIP\": \"10.0.0.10\",\n \"dockerBridgeCidr\": \"172.17.0.1/16\",\n + \ \"outboundType\": \"loadBalancer\",\n \"podCidrs\": [\n \"10.244.0.0/16\"\n + \ ],\n \"serviceCidrs\": [\n \"10.0.0.0/16\"\n ],\n \"ipFamilies\": + [\n \"IPv4\"\n ]\n },\n \"maxAgentPools\": 100,\n \"disableLocalAccounts\": + false,\n \"securityProfile\": {},\n \"storageProfile\": {\n \"diskCSIDriver\": + {\n \"enabled\": true,\n \"version\": \"v1\"\n },\n \"fileCSIDriver\": + {\n \"enabled\": true\n },\n \"snapshotController\": {\n \"enabled\": + true\n }\n },\n \"oidcIssuerProfile\": {\n \"enabled\": false\n + \ },\n \"workloadAutoScalerProfile\": {}\n },\n \"identity\": {\n \"type\": + \"SystemAssigned\",\n \"principalId\":\"00000000-0000-0000-0000-000000000001\",\n + \ \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\n },\n \"sku\": {\n \"name\": \"Base\",\n \"tier\": \"Free\"\n }\n }" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/bbb02e6e-7341-4734-9f90-9dcc04a22e4f?api-version=2016-03-30 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/96eef21e-2051-423c-9efe-6b9dd1672063?api-version=2016-03-30 cache-control: - no-cache content-length: - - '3796' + - '3505' content-type: - application/json date: - - Tue, 28 Mar 2023 22:03:31 GMT + - Tue, 09 May 2023 20:49:25 GMT expires: - '-1' pragma: @@ -146,7 +147,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1195' + - '1199' status: code: 201 message: Created @@ -165,14 +166,14 @@ interactions: - --resource-group --name --location --ssh-key-value --node-vm-size --enable-managed-identity --output User-Agent: - - AZURECLI/2.46.0 azsdk-python-azure-mgmt-containerservice/21.2.0b Python/3.10.10 - (Linux-5.15.0-1034-azure-x86_64-with-glibc2.31) VSTS_7b238909-6802-4b65-b90d-184bca47f458_build_261_0 + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/22.0.0b Python/3.8.10 + (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/bbb02e6e-7341-4734-9f90-9dcc04a22e4f?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/96eef21e-2051-423c-9efe-6b9dd1672063?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"6e2eb0bb-4173-3447-9f90-9dcc04a22e4f\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2023-03-28T22:03:31.8660342Z\"\n }" + string: "{\n \"name\": \"1ef2ee96-5120-3c42-9efe-6b9dd1672063\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-05-09T20:49:25.1217535Z\"\n }" headers: cache-control: - no-cache @@ -181,7 +182,7 @@ interactions: content-type: - application/json date: - - Tue, 28 Mar 2023 22:04:01 GMT + - Tue, 09 May 2023 20:49:25 GMT expires: - '-1' pragma: @@ -214,14 +215,14 @@ interactions: - --resource-group --name --location --ssh-key-value --node-vm-size --enable-managed-identity --output User-Agent: - - AZURECLI/2.46.0 azsdk-python-azure-mgmt-containerservice/21.2.0b Python/3.10.10 - (Linux-5.15.0-1034-azure-x86_64-with-glibc2.31) VSTS_7b238909-6802-4b65-b90d-184bca47f458_build_261_0 + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/22.0.0b Python/3.8.10 + (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/bbb02e6e-7341-4734-9f90-9dcc04a22e4f?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/96eef21e-2051-423c-9efe-6b9dd1672063?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"6e2eb0bb-4173-3447-9f90-9dcc04a22e4f\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2023-03-28T22:03:31.8660342Z\"\n }" + string: "{\n \"name\": \"1ef2ee96-5120-3c42-9efe-6b9dd1672063\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-05-09T20:49:25.1217535Z\"\n }" headers: cache-control: - no-cache @@ -230,7 +231,7 @@ interactions: content-type: - application/json date: - - Tue, 28 Mar 2023 22:04:32 GMT + - Tue, 09 May 2023 20:49:55 GMT expires: - '-1' pragma: @@ -263,14 +264,14 @@ interactions: - --resource-group --name --location --ssh-key-value --node-vm-size --enable-managed-identity --output User-Agent: - - AZURECLI/2.46.0 azsdk-python-azure-mgmt-containerservice/21.2.0b Python/3.10.10 - (Linux-5.15.0-1034-azure-x86_64-with-glibc2.31) VSTS_7b238909-6802-4b65-b90d-184bca47f458_build_261_0 + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/22.0.0b Python/3.8.10 + (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/bbb02e6e-7341-4734-9f90-9dcc04a22e4f?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/96eef21e-2051-423c-9efe-6b9dd1672063?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"6e2eb0bb-4173-3447-9f90-9dcc04a22e4f\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2023-03-28T22:03:31.8660342Z\"\n }" + string: "{\n \"name\": \"1ef2ee96-5120-3c42-9efe-6b9dd1672063\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-05-09T20:49:25.1217535Z\"\n }" headers: cache-control: - no-cache @@ -279,7 +280,7 @@ interactions: content-type: - application/json date: - - Tue, 28 Mar 2023 22:05:02 GMT + - Tue, 09 May 2023 20:50:25 GMT expires: - '-1' pragma: @@ -312,14 +313,14 @@ interactions: - --resource-group --name --location --ssh-key-value --node-vm-size --enable-managed-identity --output User-Agent: - - AZURECLI/2.46.0 azsdk-python-azure-mgmt-containerservice/21.2.0b Python/3.10.10 - (Linux-5.15.0-1034-azure-x86_64-with-glibc2.31) VSTS_7b238909-6802-4b65-b90d-184bca47f458_build_261_0 + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/22.0.0b Python/3.8.10 + (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/bbb02e6e-7341-4734-9f90-9dcc04a22e4f?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/96eef21e-2051-423c-9efe-6b9dd1672063?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"6e2eb0bb-4173-3447-9f90-9dcc04a22e4f\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2023-03-28T22:03:31.8660342Z\"\n }" + string: "{\n \"name\": \"1ef2ee96-5120-3c42-9efe-6b9dd1672063\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-05-09T20:49:25.1217535Z\"\n }" headers: cache-control: - no-cache @@ -328,7 +329,7 @@ interactions: content-type: - application/json date: - - Tue, 28 Mar 2023 22:05:32 GMT + - Tue, 09 May 2023 20:50:56 GMT expires: - '-1' pragma: @@ -361,14 +362,14 @@ interactions: - --resource-group --name --location --ssh-key-value --node-vm-size --enable-managed-identity --output User-Agent: - - AZURECLI/2.46.0 azsdk-python-azure-mgmt-containerservice/21.2.0b Python/3.10.10 - (Linux-5.15.0-1034-azure-x86_64-with-glibc2.31) VSTS_7b238909-6802-4b65-b90d-184bca47f458_build_261_0 + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/22.0.0b Python/3.8.10 + (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/bbb02e6e-7341-4734-9f90-9dcc04a22e4f?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/96eef21e-2051-423c-9efe-6b9dd1672063?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"6e2eb0bb-4173-3447-9f90-9dcc04a22e4f\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2023-03-28T22:03:31.8660342Z\"\n }" + string: "{\n \"name\": \"1ef2ee96-5120-3c42-9efe-6b9dd1672063\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-05-09T20:49:25.1217535Z\"\n }" headers: cache-control: - no-cache @@ -377,7 +378,7 @@ interactions: content-type: - application/json date: - - Tue, 28 Mar 2023 22:06:02 GMT + - Tue, 09 May 2023 20:51:26 GMT expires: - '-1' pragma: @@ -410,14 +411,14 @@ interactions: - --resource-group --name --location --ssh-key-value --node-vm-size --enable-managed-identity --output User-Agent: - - AZURECLI/2.46.0 azsdk-python-azure-mgmt-containerservice/21.2.0b Python/3.10.10 - (Linux-5.15.0-1034-azure-x86_64-with-glibc2.31) VSTS_7b238909-6802-4b65-b90d-184bca47f458_build_261_0 + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/22.0.0b Python/3.8.10 + (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/bbb02e6e-7341-4734-9f90-9dcc04a22e4f?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/96eef21e-2051-423c-9efe-6b9dd1672063?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"6e2eb0bb-4173-3447-9f90-9dcc04a22e4f\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2023-03-28T22:03:31.8660342Z\"\n }" + string: "{\n \"name\": \"1ef2ee96-5120-3c42-9efe-6b9dd1672063\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-05-09T20:49:25.1217535Z\"\n }" headers: cache-control: - no-cache @@ -426,7 +427,7 @@ interactions: content-type: - application/json date: - - Tue, 28 Mar 2023 22:06:32 GMT + - Tue, 09 May 2023 20:51:56 GMT expires: - '-1' pragma: @@ -459,24 +460,23 @@ interactions: - --resource-group --name --location --ssh-key-value --node-vm-size --enable-managed-identity --output User-Agent: - - AZURECLI/2.46.0 azsdk-python-azure-mgmt-containerservice/21.2.0b Python/3.10.10 - (Linux-5.15.0-1034-azure-x86_64-with-glibc2.31) VSTS_7b238909-6802-4b65-b90d-184bca47f458_build_261_0 + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/22.0.0b Python/3.8.10 + (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/bbb02e6e-7341-4734-9f90-9dcc04a22e4f?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/96eef21e-2051-423c-9efe-6b9dd1672063?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"6e2eb0bb-4173-3447-9f90-9dcc04a22e4f\",\n \"status\": - \"Succeeded\",\n \"startTime\": \"2023-03-28T22:03:31.8660342Z\",\n \"endTime\": - \"2023-03-28T22:07:02.1143575Z\"\n }" + string: "{\n \"name\": \"1ef2ee96-5120-3c42-9efe-6b9dd1672063\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-05-09T20:49:25.1217535Z\"\n }" headers: cache-control: - no-cache content-length: - - '170' + - '126' content-type: - application/json date: - - Tue, 28 Mar 2023 22:07:02 GMT + - Tue, 09 May 2023 20:52:26 GMT expires: - '-1' pragma: @@ -509,65 +509,23 @@ interactions: - --resource-group --name --location --ssh-key-value --node-vm-size --enable-managed-identity --output User-Agent: - - AZURECLI/2.46.0 azsdk-python-azure-mgmt-containerservice/21.2.0b Python/3.10.10 - (Linux-5.15.0-1034-azure-x86_64-with-glibc2.31) VSTS_7b238909-6802-4b65-b90d-184bca47f458_build_261_0 + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/22.0.0b Python/3.8.10 + (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2023-03-02-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/96eef21e-2051-423c-9efe-6b9dd1672063?api-version=2016-03-30 response: body: - string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\",\n - \ \"location\": \"westus2\",\n \"name\": \"cliakstest000002\",\n \"type\": - \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": - \"Succeeded\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": - \"1.24.9\",\n \"currentKubernetesVersion\": \"1.24.9\",\n \"dnsPrefix\": - \"cliakstest-clitest000001-0b1f64\",\n \"fqdn\": \"cliakstest-clitest000001-0b1f64-amkkzkou.hcp.westus2.azmk8s.io\",\n - \ \"azurePortalFQDN\": \"cliakstest-clitest000001-0b1f64-amkkzkou.portal.hcp.westus2.azmk8s.io\",\n - \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": - 3,\n \"vmSize\": \"standard_d2s_v3\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": - \"Managed\",\n \"kubeletDiskType\": \"OS\",\n \"workloadRuntime\": - \"OCIContainer\",\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n - \ \"enableAutoScaling\": false,\n \"provisioningState\": \"Succeeded\",\n - \ \"powerState\": {\n \"code\": \"Running\"\n },\n \"orchestratorVersion\": - \"1.24.9\",\n \"currentOrchestratorVersion\": \"1.24.9\",\n \"enableNodePublicIP\": - false,\n \"enableCustomCATrust\": false,\n \"mode\": \"System\",\n - \ \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\": false,\n - \ \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"nodeImageVersion\": - \"AKSUbuntu-1804gen2containerd-202303.06.0\",\n \"upgradeSettings\": {},\n - \ \"enableFIPS\": false,\n \"networkProfile\": {}\n }\n ],\n \"linuxProfile\": - {\n \"adminUsername\": \"azureuser\",\n \"ssh\": {\n \"publicKeys\": - [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCbIg1guRHbI0lV11wWDt1r2cUdcNd27CJsg+SfgC7miZeubtwUhbsPdhMQsfDyhOWHq1+ZL0M+nJZV63d/1dhmhtgyOqejUwrPlzKhydsbrsdUor+JmNJDdW01v7BXHyuymT8G4s09jCasNOwiufbP/qp72ruu0bIA1nySsvlf9pCQAuFkAnVnf/rFhUlOkhtRpwcq8SUNY2zRHR/EKb/4NWY1JzR4sa3q2fWIJdrrX0DvLoa5g9bIEd4Df79ba7v+yiUBOS0zT2ll+z4g9izHK3EO5d8hL4jYxcjKs+wcslSYRWrascfscLgMlMGh0CdKeNTDjHpGPncaf3Z+FwwwjWeuiNBxv7bJo13/8B/098KlVDl4GZqsoBCEjPyJfV6hO0y/LkRGkk7oHWKgeWAfKtfLItRp00eZ4fcJNK9kCaSMmEugoZWcI7NGbZXzqFWqbpRI7NcDP9+WIQ+i9U5vqWsqd/zng4kbuAJ6UuKqIzB0upYrLShfQE3SAck8oaLhJqqq56VfDuASNpJKidV+zq27HfSBmbXnkR/5AK337dc3MXKJypoK/QPMLKUAP5XLPbs+NddJQV7EZXd29DLgp+fRIg3edpKdO7ZErWhv7d+3Kws+e1Y+ypmR2WIVSwVyBEUfgv2C8Ts9gnTF4pNcEY/S2aBicz5Ew2+jdyGNQQ== - test@example.com\\n\"\n }\n ]\n }\n },\n \"servicePrincipalProfile\": - {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \"nodeResourceGroup\": - \"MC_clitest000001_cliakstest000002_westus2\",\n \"enableRBAC\": true,\n - \ \"enablePodSecurityPolicy\": false,\n \"networkProfile\": {\n \"networkPlugin\": - \"kubenet\",\n \"loadBalancerSku\": \"Standard\",\n \"loadBalancerProfile\": - {\n \"managedOutboundIPs\": {\n \"count\": 1\n },\n \"effectiveOutboundIPs\": - [\n {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.Network/publicIPAddresses/fe26dda4-904a-4ef2-a02a-c1710956f8a4\"\n - \ }\n ],\n \"backendPoolType\": \"nodeIPConfiguration\"\n },\n - \ \"podCidr\": \"10.244.0.0/16\",\n \"serviceCidr\": \"10.0.0.0/16\",\n - \ \"dnsServiceIP\": \"10.0.0.10\",\n \"dockerBridgeCidr\": \"172.17.0.1/16\",\n - \ \"outboundType\": \"loadBalancer\",\n \"podCidrs\": [\n \"10.244.0.0/16\"\n - \ ],\n \"serviceCidrs\": [\n \"10.0.0.0/16\"\n ],\n \"ipFamilies\": - [\n \"IPv4\"\n ]\n },\n \"maxAgentPools\": 100,\n \"identityProfile\": - {\n \"kubeletidentity\": {\n \"resourceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cliakstest000002-agentpool\",\n - \ \"clientId\":\"00000000-0000-0000-0000-000000000001\",\n \"objectId\":\"00000000-0000-0000-0000-000000000001\"\n - \ }\n },\n \"disableLocalAccounts\": false,\n \"securityProfile\": - {},\n \"storageProfile\": {\n \"diskCSIDriver\": {\n \"enabled\": - true,\n \"version\": \"v1\"\n },\n \"fileCSIDriver\": {\n \"enabled\": - true\n },\n \"snapshotController\": {\n \"enabled\": true\n }\n - \ },\n \"oidcIssuerProfile\": {\n \"enabled\": false\n },\n \"workloadAutoScalerProfile\": - {}\n },\n \"identity\": {\n \"type\": \"SystemAssigned\",\n \"principalId\":\"00000000-0000-0000-0000-000000000001\",\n - \ \"tenantId\": \"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a\"\n },\n \"sku\": - {\n \"name\": \"Base\",\n \"tier\": \"Free\"\n }\n }" + string: "{\n \"name\": \"1ef2ee96-5120-3c42-9efe-6b9dd1672063\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-05-09T20:49:25.1217535Z\"\n }" headers: cache-control: - no-cache content-length: - - '4449' + - '126' content-type: - application/json date: - - Tue, 28 Mar 2023 22:07:03 GMT + - Tue, 09 May 2023 20:52:56 GMT expires: - '-1' pragma: @@ -589,76 +547,34 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - aks update + - aks create Connection: - keep-alive ParameterSetName: - - --resource-group --name --yes --output --aks-custom-headers --enable-azuremonitormetrics - --enable-managed-identity --enable-windows-recording-rules + - --resource-group --name --location --ssh-key-value --node-vm-size --enable-managed-identity + --output User-Agent: - - AZURECLI/2.46.0 azsdk-python-azure-mgmt-containerservice/21.2.0b Python/3.10.10 - (Linux-5.15.0-1034-azure-x86_64-with-glibc2.31) VSTS_7b238909-6802-4b65-b90d-184bca47f458_build_261_0 + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/22.0.0b Python/3.8.10 + (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2023-03-02-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/96eef21e-2051-423c-9efe-6b9dd1672063?api-version=2016-03-30 response: body: - string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\",\n - \ \"location\": \"westus2\",\n \"name\": \"cliakstest000002\",\n \"type\": - \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": - \"Succeeded\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": - \"1.24.9\",\n \"currentKubernetesVersion\": \"1.24.9\",\n \"dnsPrefix\": - \"cliakstest-clitest000001-0b1f64\",\n \"fqdn\": \"cliakstest-clitest000001-0b1f64-amkkzkou.hcp.westus2.azmk8s.io\",\n - \ \"azurePortalFQDN\": \"cliakstest-clitest000001-0b1f64-amkkzkou.portal.hcp.westus2.azmk8s.io\",\n - \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": - 3,\n \"vmSize\": \"standard_d2s_v3\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": - \"Managed\",\n \"kubeletDiskType\": \"OS\",\n \"workloadRuntime\": - \"OCIContainer\",\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n - \ \"enableAutoScaling\": false,\n \"provisioningState\": \"Succeeded\",\n - \ \"powerState\": {\n \"code\": \"Running\"\n },\n \"orchestratorVersion\": - \"1.24.9\",\n \"currentOrchestratorVersion\": \"1.24.9\",\n \"enableNodePublicIP\": - false,\n \"enableCustomCATrust\": false,\n \"mode\": \"System\",\n - \ \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\": false,\n - \ \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"nodeImageVersion\": - \"AKSUbuntu-1804gen2containerd-202303.06.0\",\n \"upgradeSettings\": {},\n - \ \"enableFIPS\": false,\n \"networkProfile\": {}\n }\n ],\n \"linuxProfile\": - {\n \"adminUsername\": \"azureuser\",\n \"ssh\": {\n \"publicKeys\": - [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCbIg1guRHbI0lV11wWDt1r2cUdcNd27CJsg+SfgC7miZeubtwUhbsPdhMQsfDyhOWHq1+ZL0M+nJZV63d/1dhmhtgyOqejUwrPlzKhydsbrsdUor+JmNJDdW01v7BXHyuymT8G4s09jCasNOwiufbP/qp72ruu0bIA1nySsvlf9pCQAuFkAnVnf/rFhUlOkhtRpwcq8SUNY2zRHR/EKb/4NWY1JzR4sa3q2fWIJdrrX0DvLoa5g9bIEd4Df79ba7v+yiUBOS0zT2ll+z4g9izHK3EO5d8hL4jYxcjKs+wcslSYRWrascfscLgMlMGh0CdKeNTDjHpGPncaf3Z+FwwwjWeuiNBxv7bJo13/8B/098KlVDl4GZqsoBCEjPyJfV6hO0y/LkRGkk7oHWKgeWAfKtfLItRp00eZ4fcJNK9kCaSMmEugoZWcI7NGbZXzqFWqbpRI7NcDP9+WIQ+i9U5vqWsqd/zng4kbuAJ6UuKqIzB0upYrLShfQE3SAck8oaLhJqqq56VfDuASNpJKidV+zq27HfSBmbXnkR/5AK337dc3MXKJypoK/QPMLKUAP5XLPbs+NddJQV7EZXd29DLgp+fRIg3edpKdO7ZErWhv7d+3Kws+e1Y+ypmR2WIVSwVyBEUfgv2C8Ts9gnTF4pNcEY/S2aBicz5Ew2+jdyGNQQ== - test@example.com\\n\"\n }\n ]\n }\n },\n \"servicePrincipalProfile\": - {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \"nodeResourceGroup\": - \"MC_clitest000001_cliakstest000002_westus2\",\n \"enableRBAC\": true,\n - \ \"enablePodSecurityPolicy\": false,\n \"networkProfile\": {\n \"networkPlugin\": - \"kubenet\",\n \"loadBalancerSku\": \"Standard\",\n \"loadBalancerProfile\": - {\n \"managedOutboundIPs\": {\n \"count\": 1\n },\n \"effectiveOutboundIPs\": - [\n {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.Network/publicIPAddresses/fe26dda4-904a-4ef2-a02a-c1710956f8a4\"\n - \ }\n ],\n \"backendPoolType\": \"nodeIPConfiguration\"\n },\n - \ \"podCidr\": \"10.244.0.0/16\",\n \"serviceCidr\": \"10.0.0.0/16\",\n - \ \"dnsServiceIP\": \"10.0.0.10\",\n \"dockerBridgeCidr\": \"172.17.0.1/16\",\n - \ \"outboundType\": \"loadBalancer\",\n \"podCidrs\": [\n \"10.244.0.0/16\"\n - \ ],\n \"serviceCidrs\": [\n \"10.0.0.0/16\"\n ],\n \"ipFamilies\": - [\n \"IPv4\"\n ]\n },\n \"maxAgentPools\": 100,\n \"identityProfile\": - {\n \"kubeletidentity\": {\n \"resourceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cliakstest000002-agentpool\",\n - \ \"clientId\":\"00000000-0000-0000-0000-000000000001\",\n \"objectId\":\"00000000-0000-0000-0000-000000000001\"\n - \ }\n },\n \"disableLocalAccounts\": false,\n \"securityProfile\": - {},\n \"storageProfile\": {\n \"diskCSIDriver\": {\n \"enabled\": - true,\n \"version\": \"v1\"\n },\n \"fileCSIDriver\": {\n \"enabled\": - true\n },\n \"snapshotController\": {\n \"enabled\": true\n }\n - \ },\n \"oidcIssuerProfile\": {\n \"enabled\": false\n },\n \"workloadAutoScalerProfile\": - {}\n },\n \"identity\": {\n \"type\": \"SystemAssigned\",\n \"principalId\":\"00000000-0000-0000-0000-000000000001\",\n - \ \"tenantId\": \"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a\"\n },\n \"sku\": - {\n \"name\": \"Base\",\n \"tier\": \"Free\"\n }\n }" + string: "{\n \"name\": \"1ef2ee96-5120-3c42-9efe-6b9dd1672063\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-05-09T20:49:25.1217535Z\"\n }" headers: cache-control: - no-cache content-length: - - '4449' + - '126' content-type: - application/json date: - - Tue, 28 Mar 2023 22:07:04 GMT + - Tue, 09 May 2023 20:53:27 GMT expires: - '-1' pragma: @@ -684,72 +600,30 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - aks update + - aks create Connection: - keep-alive ParameterSetName: - - --resource-group --name --yes --output --aks-custom-headers --enable-azuremonitormetrics - --enable-managed-identity --enable-windows-recording-rules + - --resource-group --name --location --ssh-key-value --node-vm-size --enable-managed-identity + --output User-Agent: - - python/3.10.10 (Linux-5.15.0-1034-azure-x86_64-with-glibc2.31) AZURECLI/2.46.0 - VSTS_7b238909-6802-4b65-b90d-184bca47f458_build_261_0 azuremonitormetrics.check_azuremonitormetrics_profile + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/22.0.0b Python/3.8.10 + (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2022-07-02-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/96eef21e-2051-423c-9efe-6b9dd1672063?api-version=2016-03-30 response: body: - string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\",\n - \ \"location\": \"westus2\",\n \"name\": \"cliakstest000002\",\n \"type\": - \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": - \"Succeeded\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": - \"1.24.9\",\n \"currentKubernetesVersion\": \"1.24.9\",\n \"dnsPrefix\": - \"cliakstest-clitest000001-0b1f64\",\n \"fqdn\": \"cliakstest-clitest000001-0b1f64-amkkzkou.hcp.westus2.azmk8s.io\",\n - \ \"azurePortalFQDN\": \"cliakstest-clitest000001-0b1f64-amkkzkou.portal.hcp.westus2.azmk8s.io\",\n - \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": - 3,\n \"vmSize\": \"standard_d2s_v3\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": - \"Managed\",\n \"kubeletDiskType\": \"OS\",\n \"workloadRuntime\": - \"OCIContainer\",\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n - \ \"enableAutoScaling\": false,\n \"provisioningState\": \"Succeeded\",\n - \ \"powerState\": {\n \"code\": \"Running\"\n },\n \"orchestratorVersion\": - \"1.24.9\",\n \"currentOrchestratorVersion\": \"1.24.9\",\n \"enableNodePublicIP\": - false,\n \"enableCustomCATrust\": false,\n \"mode\": \"System\",\n - \ \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\": false,\n - \ \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"nodeImageVersion\": - \"AKSUbuntu-1804gen2containerd-202303.06.0\",\n \"upgradeSettings\": {},\n - \ \"enableFIPS\": false\n }\n ],\n \"linuxProfile\": {\n \"adminUsername\": - \"azureuser\",\n \"ssh\": {\n \"publicKeys\": [\n {\n \"keyData\": - \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCbIg1guRHbI0lV11wWDt1r2cUdcNd27CJsg+SfgC7miZeubtwUhbsPdhMQsfDyhOWHq1+ZL0M+nJZV63d/1dhmhtgyOqejUwrPlzKhydsbrsdUor+JmNJDdW01v7BXHyuymT8G4s09jCasNOwiufbP/qp72ruu0bIA1nySsvlf9pCQAuFkAnVnf/rFhUlOkhtRpwcq8SUNY2zRHR/EKb/4NWY1JzR4sa3q2fWIJdrrX0DvLoa5g9bIEd4Df79ba7v+yiUBOS0zT2ll+z4g9izHK3EO5d8hL4jYxcjKs+wcslSYRWrascfscLgMlMGh0CdKeNTDjHpGPncaf3Z+FwwwjWeuiNBxv7bJo13/8B/098KlVDl4GZqsoBCEjPyJfV6hO0y/LkRGkk7oHWKgeWAfKtfLItRp00eZ4fcJNK9kCaSMmEugoZWcI7NGbZXzqFWqbpRI7NcDP9+WIQ+i9U5vqWsqd/zng4kbuAJ6UuKqIzB0upYrLShfQE3SAck8oaLhJqqq56VfDuASNpJKidV+zq27HfSBmbXnkR/5AK337dc3MXKJypoK/QPMLKUAP5XLPbs+NddJQV7EZXd29DLgp+fRIg3edpKdO7ZErWhv7d+3Kws+e1Y+ypmR2WIVSwVyBEUfgv2C8Ts9gnTF4pNcEY/S2aBicz5Ew2+jdyGNQQ== - test@example.com\\n\"\n }\n ]\n }\n },\n \"servicePrincipalProfile\": - {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \"nodeResourceGroup\": - \"MC_clitest000001_cliakstest000002_westus2\",\n \"enableRBAC\": true,\n - \ \"enablePodSecurityPolicy\": false,\n \"networkProfile\": {\n \"networkPlugin\": - \"kubenet\",\n \"loadBalancerSku\": \"Standard\",\n \"loadBalancerProfile\": - {\n \"managedOutboundIPs\": {\n \"count\": 1\n },\n \"effectiveOutboundIPs\": - [\n {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.Network/publicIPAddresses/fe26dda4-904a-4ef2-a02a-c1710956f8a4\"\n - \ }\n ]\n },\n \"podCidr\": \"10.244.0.0/16\",\n \"serviceCidr\": - \"10.0.0.0/16\",\n \"dnsServiceIP\": \"10.0.0.10\",\n \"dockerBridgeCidr\": - \"172.17.0.1/16\",\n \"outboundType\": \"loadBalancer\",\n \"podCidrs\": - [\n \"10.244.0.0/16\"\n ],\n \"serviceCidrs\": [\n \"10.0.0.0/16\"\n - \ ],\n \"ipFamilies\": [\n \"IPv4\"\n ]\n },\n \"maxAgentPools\": - 100,\n \"identityProfile\": {\n \"kubeletidentity\": {\n \"resourceId\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cliakstest000002-agentpool\",\n - \ \"clientId\":\"00000000-0000-0000-0000-000000000001\",\n \"objectId\":\"00000000-0000-0000-0000-000000000001\"\n - \ }\n },\n \"disableLocalAccounts\": false,\n \"securityProfile\": - {},\n \"storageProfile\": {\n \"diskCSIDriver\": {\n \"enabled\": - true,\n \"version\": \"v1\"\n },\n \"fileCSIDriver\": {\n \"enabled\": - true\n },\n \"snapshotController\": {\n \"enabled\": true\n }\n - \ },\n \"oidcIssuerProfile\": {\n \"enabled\": false\n },\n \"workloadAutoScalerProfile\": - {}\n },\n \"identity\": {\n \"type\": \"SystemAssigned\",\n \"principalId\":\"00000000-0000-0000-0000-000000000001\",\n - \ \"tenantId\": \"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a\"\n },\n \"sku\": - {\n \"name\": \"Basic\",\n \"tier\": \"Free\"\n }\n }" + string: "{\n \"name\": \"1ef2ee96-5120-3c42-9efe-6b9dd1672063\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-05-09T20:49:25.1217535Z\"\n }" headers: cache-control: - no-cache content-length: - - '4376' + - '126' content-type: - application/json date: - - Tue, 28 Mar 2023 22:07:05 GMT + - Tue, 09 May 2023 20:53:57 GMT expires: - '-1' pragma: @@ -775,35 +649,40 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - aks update + - aks create Connection: - keep-alive ParameterSetName: - - --resource-group --name --yes --output --aks-custom-headers --enable-azuremonitormetrics - --enable-managed-identity --enable-windows-recording-rules + - --resource-group --name --location --ssh-key-value --node-vm-size --enable-managed-identity + --output User-Agent: - - python/3.10.10 (Linux-5.15.0-1034-azure-x86_64-with-glibc2.31) AZURECLI/2.46.0 - VSTS_7b238909-6802-4b65-b90d-184bca47f458_build_261_0 azuremonitormetrics.get_mac_sub_list + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/22.0.0b Python/3.8.10 + (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers?api-version=2019-08-01&$select=namespace,registrationstate + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/96eef21e-2051-423c-9efe-6b9dd1672063?api-version=2016-03-30 response: body: - string: '{"value":[{"namespace":"Microsoft.Management","registrationState":"Registered"},{"namespace":"Microsoft.OperationalInsights","registrationState":"Registered"},{"namespace":"Microsoft.OperationsManagement","registrationState":"Registered"},{"namespace":"Microsoft.Advisor","registrationState":"Registered"},{"namespace":"Microsoft.ContainerRegistry","registrationState":"Registered"},{"namespace":"Microsoft.ContainerService","registrationState":"Registered"},{"namespace":"Microsoft.DBforMariaDB","registrationState":"Registered"},{"namespace":"Microsoft.Sql","registrationState":"Registered"},{"namespace":"Microsoft.Confluent","registrationState":"Registering"},{"namespace":"Microsoft.Datadog","registrationState":"Registered"},{"namespace":"Microsoft.WindowsIoT","registrationState":"Registered"},{"namespace":"Microsoft.AVS","registrationState":"Registered"},{"namespace":"Microsoft.Commerce","registrationState":"Registered"},{"namespace":"Microsoft.Purview","registrationState":"Registered"},{"namespace":"Microsoft.DataProtection","registrationState":"Registered"},{"namespace":"Microsoft.Diagnostics","registrationState":"Registered"},{"namespace":"Microsoft.MarketplaceNotifications","registrationState":"Registered"},{"namespace":"Microsoft.Elastic","registrationState":"Registered"},{"namespace":"Microsoft.Logz","registrationState":"Registered"},{"namespace":"Microsoft.DeviceUpdate","registrationState":"Registered"},{"namespace":"Microsoft.ConfidentialLedger","registrationState":"Registered"},{"namespace":"Microsoft.LabServices","registrationState":"Registered"},{"namespace":"Microsoft.HardwareSecurityModules","registrationState":"Registered"},{"namespace":"Microsoft.EdgeOrder","registrationState":"Registered"},{"namespace":"Microsoft.Quantum","registrationState":"Registered"},{"namespace":"Microsoft.Quota","registrationState":"Registered"},{"namespace":"Microsoft.ServicesHub","registrationState":"Registered"},{"namespace":"Microsoft.TestBase","registrationState":"Registered"},{"namespace":"Microsoft.App","registrationState":"Registered"},{"namespace":"Microsoft.ElasticSan","registrationState":"Registered"},{"namespace":"Microsoft.Dashboard","registrationState":"Registered"},{"namespace":"Microsoft.NetworkFunction","registrationState":"Registered"},{"namespace":"Microsoft.LoadTestService","registrationState":"Registered"},{"namespace":"Microsoft.StorageMover","registrationState":"Registered"},{"namespace":"Microsoft.FluidRelay","registrationState":"Registered"},{"namespace":"Dynatrace.Observability","registrationState":"Registered"},{"namespace":"Microsoft.ConnectedVMwarevSphere","registrationState":"Registered"},{"namespace":"Microsoft.ExtendedLocation","registrationState":"Registered"},{"namespace":"Microsoft.Automanage","registrationState":"Registered"},{"namespace":"Microsoft.HybridConnectivity","registrationState":"Registered"},{"namespace":"Microsoft.DevCenter","registrationState":"Registered"},{"namespace":"Microsoft.CloudTest","registrationState":"Registered"},{"namespace":"Microsoft.MobileNetwork","registrationState":"Registered"},{"namespace":"Microsoft.AzureArcData","registrationState":"Registered"},{"namespace":"Microsoft.CloudShell","registrationState":"Registered"},{"namespace":"Microsoft.StorageCache","registrationState":"Registered"},{"namespace":"Microsoft.StorageSync","registrationState":"Registered"},{"namespace":"Microsoft.VSOnline","registrationState":"Registered"},{"namespace":"Microsoft.DataFactory","registrationState":"Registered"},{"namespace":"Microsoft.PowerBIDedicated","registrationState":"Registered"},{"namespace":"Microsoft.MixedReality","registrationState":"Registered"},{"namespace":"Microsoft.PowerBI","registrationState":"Registered"},{"namespace":"Microsoft.ServiceFabric","registrationState":"Registered"},{"namespace":"Microsoft.StreamAnalytics","registrationState":"Registered"},{"namespace":"Microsoft.Automation","registrationState":"Registered"},{"namespace":"Microsoft.Databricks","registrationState":"Registered"},{"namespace":"Microsoft.AnalysisServices","registrationState":"Registered"},{"namespace":"Microsoft.MachineLearningServices","registrationState":"Registered"},{"namespace":"Microsoft.DataBox","registrationState":"Registered"},{"namespace":"Microsoft.Migrate","registrationState":"Registered"},{"namespace":"Microsoft.TimeSeriesInsights","registrationState":"Registered"},{"namespace":"Microsoft.CustomProviders","registrationState":"Registered"},{"namespace":"Microsoft.DataShare","registrationState":"Registered"},{"namespace":"Microsoft.DevOps","registrationState":"Registered"},{"namespace":"Microsoft.AppPlatform","registrationState":"Registered"},{"namespace":"Microsoft.RedHatOpenShift","registrationState":"Registered"},{"namespace":"Microsoft.Kubernetes","registrationState":"Registered"},{"namespace":"Microsoft.SecurityInsights","registrationState":"Registered"},{"namespace":"Microsoft.CostManagement","registrationState":"Registered"},{"namespace":"Microsoft.CostManagementExports","registrationState":"Registered"},{"namespace":"Microsoft.DesktopVirtualization","registrationState":"Registered"},{"namespace":"Microsoft.AzureStackHCI","registrationState":"Registered"},{"namespace":"Microsoft.GuestConfiguration","registrationState":"Registered"},{"namespace":"Microsoft.FootprintMonitoring","registrationState":"Registered"},{"namespace":"Microsoft.MachineLearning","registrationState":"Registered"},{"namespace":"Microsoft.Synapse","registrationState":"Registered"},{"namespace":"Microsoft.ServiceFabricMesh","registrationState":"Registered"},{"namespace":"Microsoft.Codespaces","registrationState":"Registered"},{"namespace":"Microsoft.DataBoxEdge","registrationState":"Registered"},{"namespace":"Microsoft.Communication","registrationState":"Registered"},{"namespace":"Microsoft.OffAzure","registrationState":"Registered"},{"namespace":"Microsoft.Portal","registrationState":"Registered"},{"namespace":"Microsoft.Notebooks","registrationState":"Registered"},{"namespace":"Microsoft.DigitalTwins","registrationState":"Registered"},{"namespace":"Microsoft.Monitor","registrationState":"Registered"},{"namespace":"Microsoft.DelegatedNetwork","registrationState":"Registering"},{"namespace":"Microsoft.HealthBot","registrationState":"Registered"},{"namespace":"NGINX.NGINXPLUS","registrationState":"Registered"},{"namespace":"Microsoft.Orbital","registrationState":"Registered"},{"namespace":"Microsoft.VoiceServices","registrationState":"Registered"},{"namespace":"Microsoft.ServiceLinker","registrationState":"Registered"},{"namespace":"Microsoft.DeploymentManager","registrationState":"Registered"},{"namespace":"Microsoft.ManagedServices","registrationState":"Registered"},{"namespace":"Microsoft.AppConfiguration","registrationState":"Registered"},{"namespace":"Microsoft.HealthcareApis","registrationState":"Registered"},{"namespace":"Microsoft.NetApp","registrationState":"Registered"},{"namespace":"Microsoft.SaaS","registrationState":"Registered"},{"namespace":"Microsoft.Peering","registrationState":"Registered"},{"namespace":"Microsoft.Kusto","registrationState":"Registered"},{"namespace":"Microsoft.HybridCompute","registrationState":"Registered"},{"namespace":"Microsoft.AAD","registrationState":"Registered"},{"namespace":"Microsoft.AzureActiveDirectory","registrationState":"Registered"},{"namespace":"Microsoft.Attestation","registrationState":"Registered"},{"namespace":"Microsoft.ChangeAnalysis","registrationState":"Registered"},{"namespace":"Microsoft.VirtualMachineImages","registrationState":"Registered"},{"namespace":"Microsoft.Maintenance","registrationState":"Registered"},{"namespace":"Microsoft.HDInsight","registrationState":"Registered"},{"namespace":"Microsoft.ResourceHealth","registrationState":"Registered"},{"namespace":"Microsoft.Maps","registrationState":"Registered"},{"namespace":"Microsoft.SqlVirtualMachine","registrationState":"Registered"},{"namespace":"Microsoft.Cache","registrationState":"Registered"},{"namespace":"Microsoft.Compute","registrationState":"Registered"},{"namespace":"Microsoft.Network","registrationState":"Registered"},{"namespace":"Providers.Test","registrationState":"Registered"},{"namespace":"Microsoft.Web","registrationState":"Registered"},{"namespace":"microsoft.insights","registrationState":"Registered"},{"namespace":"Microsoft.SignalRService","registrationState":"Registered"},{"namespace":"Microsoft.Blueprint","registrationState":"Registered"},{"namespace":"Microsoft.AlertsManagement","registrationState":"Registered"},{"namespace":"Microsoft.ApiManagement","registrationState":"Registered"},{"namespace":"Microsoft.Authorization","registrationState":"Registered"},{"namespace":"Microsoft.Batch","registrationState":"Registered"},{"namespace":"Microsoft.Cdn","registrationState":"Registered"},{"namespace":"Microsoft.BotService","registrationState":"Registered"},{"namespace":"Microsoft.CertificateRegistration","registrationState":"Registered"},{"namespace":"Microsoft.ClassicCompute","registrationState":"Registered"},{"namespace":"Microsoft.ClassicNetwork","registrationState":"Registered"},{"namespace":"Microsoft.ClassicStorage","registrationState":"Registered"},{"namespace":"Microsoft.CognitiveServices","registrationState":"Registered"},{"namespace":"Microsoft.DataLakeAnalytics","registrationState":"Registered"},{"namespace":"Microsoft.ContainerInstance","registrationState":"Registered"},{"namespace":"Microsoft.DBforMySQL","registrationState":"Registered"},{"namespace":"Microsoft.DataLakeStore","registrationState":"Registered"},{"namespace":"Microsoft.DataMigration","registrationState":"Registered"},{"namespace":"Microsoft.DBforPostgreSQL","registrationState":"Registered"},{"namespace":"Microsoft.Devices","registrationState":"Registered"},{"namespace":"Microsoft.DevTestLab","registrationState":"Registered"},{"namespace":"Microsoft.DocumentDB","registrationState":"Registered"},{"namespace":"Microsoft.DomainRegistration","registrationState":"Registered"},{"namespace":"Microsoft.EventGrid","registrationState":"Registered"},{"namespace":"Microsoft.EventHub","registrationState":"Registered"},{"namespace":"Microsoft.IoTCentral","registrationState":"Registered"},{"namespace":"Microsoft.ManagedIdentity","registrationState":"Registered"},{"namespace":"Microsoft.KeyVault","registrationState":"Registered"},{"namespace":"Microsoft.Logic","registrationState":"Registered"},{"namespace":"Microsoft.Media","registrationState":"Registered"},{"namespace":"Microsoft.NotificationHubs","registrationState":"Registered"},{"namespace":"Microsoft.Storage","registrationState":"Registered"},{"namespace":"Microsoft.RecoveryServices","registrationState":"Registered"},{"namespace":"Microsoft.PolicyInsights","registrationState":"Registered"},{"namespace":"Microsoft.Relay","registrationState":"Registered"},{"namespace":"Microsoft.Search","registrationState":"Registered"},{"namespace":"Microsoft.Security","registrationState":"Registered"},{"namespace":"Microsoft.ServiceBus","registrationState":"Registered"},{"namespace":"microsoft.visualstudio","registrationState":"Registered"},{"namespace":"Microsoft.Solutions","registrationState":"Registered"},{"namespace":"GitHub.Network","registrationState":"NotRegistered"},{"namespace":"microsoft.aadiam","registrationState":"NotRegistered"},{"namespace":"Microsoft.Addons","registrationState":"NotRegistered"},{"namespace":"Microsoft.ADHybridHealthService","registrationState":"Registered"},{"namespace":"Microsoft.AgFoodPlatform","registrationState":"NotRegistered"},{"namespace":"Microsoft.AnyBuild","registrationState":"NotRegistered"},{"namespace":"Microsoft.ApiSecurity","registrationState":"NotRegistered"},{"namespace":"Microsoft.AppAssessment","registrationState":"NotRegistered"},{"namespace":"Microsoft.AppComplianceAutomation","registrationState":"NotRegistered"},{"namespace":"Microsoft.AutonomousDevelopmentPlatform","registrationState":"NotRegistered"},{"namespace":"Microsoft.AutonomousSystems","registrationState":"NotRegistered"},{"namespace":"Microsoft.AzureCIS","registrationState":"NotRegistered"},{"namespace":"Microsoft.AzureData","registrationState":"NotRegistered"},{"namespace":"Microsoft.AzureDataTransfer","registrationState":"NotRegistered"},{"namespace":"Microsoft.AzurePercept","registrationState":"NotRegistered"},{"namespace":"Microsoft.AzureScan","registrationState":"NotRegistered"},{"namespace":"Microsoft.AzureSphere","registrationState":"NotRegistered"},{"namespace":"Microsoft.AzureStack","registrationState":"NotRegistered"},{"namespace":"Microsoft.BackupSolutions","registrationState":"NotRegistered"},{"namespace":"Microsoft.BareMetalInfrastructure","registrationState":"NotRegistered"},{"namespace":"Microsoft.Billing","registrationState":"Registered"},{"namespace":"Microsoft.BillingBenefits","registrationState":"NotRegistered"},{"namespace":"Microsoft.Bing","registrationState":"NotRegistered"},{"namespace":"Microsoft.BlockchainTokens","registrationState":"NotRegistered"},{"namespace":"Microsoft.Capacity","registrationState":"NotRegistered"},{"namespace":"Microsoft.Chaos","registrationState":"NotRegistered"},{"namespace":"Microsoft.ClassicInfrastructureMigrate","registrationState":"NotRegistered"},{"namespace":"Microsoft.ClassicSubscription","registrationState":"Registered"},{"namespace":"Microsoft.CleanRoom","registrationState":"NotRegistered"},{"namespace":"Microsoft.CodeSigning","registrationState":"NotRegistered"},{"namespace":"Microsoft.ConnectedCache","registrationState":"NotRegistered"},{"namespace":"microsoft.connectedopenstack","registrationState":"NotRegistered"},{"namespace":"Microsoft.ConnectedVehicle","registrationState":"NotRegistered"},{"namespace":"Microsoft.Consumption","registrationState":"Registered"},{"namespace":"Microsoft.CustomerLockbox","registrationState":"NotRegistered"},{"namespace":"Microsoft.D365CustomerInsights","registrationState":"NotRegistered"},{"namespace":"Microsoft.DataCatalog","registrationState":"NotRegistered"},{"namespace":"Microsoft.DataCollaboration","registrationState":"NotRegistered"},{"namespace":"Microsoft.DataReplication","registrationState":"NotRegistered"},{"namespace":"Microsoft.DevAI","registrationState":"NotRegistered"},{"namespace":"Microsoft.DevHub","registrationState":"NotRegistered"},{"namespace":"Microsoft.Easm","registrationState":"NotRegistered"},{"namespace":"Microsoft.EdgeZones","registrationState":"NotRegistered"},{"namespace":"Microsoft.Falcon","registrationState":"NotRegistered"},{"namespace":"Microsoft.Features","registrationState":"Registered"},{"namespace":"Microsoft.GraphServices","registrationState":"NotRegistered"},{"namespace":"Microsoft.HanaOnAzure","registrationState":"NotRegistered"},{"namespace":"Microsoft.Help","registrationState":"NotRegistered"},{"namespace":"Microsoft.HpcWorkbench","registrationState":"NotRegistered"},{"namespace":"Microsoft.HybridContainerService","registrationState":"NotRegistered"},{"namespace":"Microsoft.HybridData","registrationState":"NotRegistered"},{"namespace":"Microsoft.HybridNetwork","registrationState":"NotRegistered"},{"namespace":"Microsoft.Impact","registrationState":"NotRegistered"},{"namespace":"Microsoft.IntelligentITDigitalTwin","registrationState":"NotRegistered"},{"namespace":"Microsoft.IoTFirmwareDefense","registrationState":"NotRegistered"},{"namespace":"Microsoft.IoTSecurity","registrationState":"NotRegistered"},{"namespace":"Microsoft.KubernetesConfiguration","registrationState":"NotRegistered"},{"namespace":"Microsoft.ManagedNetworkFabric","registrationState":"NotRegistered"},{"namespace":"Microsoft.ManagedStorageClass","registrationState":"NotRegistered"},{"namespace":"Microsoft.Marketplace","registrationState":"NotRegistered"},{"namespace":"Microsoft.MarketplaceOrdering","registrationState":"Registered"},{"namespace":"Microsoft.Metaverse","registrationState":"NotRegistered"},{"namespace":"Microsoft.Mission","registrationState":"NotRegistered"},{"namespace":"Microsoft.ModSimWorkbench","registrationState":"NotRegistered"},{"namespace":"Microsoft.NetworkAnalytics","registrationState":"NotRegistered"},{"namespace":"Microsoft.NetworkCloud","registrationState":"NotRegistered"},{"namespace":"Microsoft.ObjectStore","registrationState":"NotRegistered"},{"namespace":"Microsoft.OffAzureSpringBoot","registrationState":"NotRegistered"},{"namespace":"Microsoft.OpenEnergyPlatform","registrationState":"NotRegistered"},{"namespace":"Microsoft.OpenLogisticsPlatform","registrationState":"NotRegistered"},{"namespace":"Microsoft.OperatorVoicemail","registrationState":"NotRegistered"},{"namespace":"Microsoft.Pki","registrationState":"NotRegistered"},{"namespace":"Microsoft.PlayFab","registrationState":"NotRegistered"},{"namespace":"Microsoft.PowerPlatform","registrationState":"NotRegistered"},{"namespace":"Microsoft.ProfessionalService","registrationState":"NotRegistered"},{"namespace":"Microsoft.ProviderHub","registrationState":"NotRegistered"},{"namespace":"Microsoft.RecommendationsService","registrationState":"NotRegistered"},{"namespace":"Microsoft.ResourceConnector","registrationState":"NotRegistered"},{"namespace":"Microsoft.ResourceGraph","registrationState":"Registered"},{"namespace":"Microsoft.Resources","registrationState":"Registered"},{"namespace":"Microsoft.SaaSHub","registrationState":"NotRegistered"},{"namespace":"Microsoft.Scom","registrationState":"NotRegistered"},{"namespace":"Microsoft.ScVmm","registrationState":"NotRegistered"},{"namespace":"Microsoft.SecurityDetonation","registrationState":"NotRegistered"},{"namespace":"Microsoft.SecurityDevOps","registrationState":"NotRegistered"},{"namespace":"Microsoft.SerialConsole","registrationState":"Registered"},{"namespace":"Microsoft.ServiceNetworking","registrationState":"NotRegistered"},{"namespace":"Microsoft.Singularity","registrationState":"NotRegistered"},{"namespace":"Microsoft.SoftwarePlan","registrationState":"NotRegistered"},{"namespace":"Microsoft.StorSimple","registrationState":"NotRegistered"},{"namespace":"Microsoft.Subscription","registrationState":"NotRegistered"},{"namespace":"microsoft.support","registrationState":"Registered"},{"namespace":"Microsoft.Syntex","registrationState":"NotRegistered"},{"namespace":"Microsoft.UsageBilling","registrationState":"NotRegistered"},{"namespace":"Microsoft.VideoIndexer","registrationState":"NotRegistered"},{"namespace":"Microsoft.VMware","registrationState":"NotRegistered"},{"namespace":"Microsoft.WindowsESU","registrationState":"NotRegistered"},{"namespace":"Microsoft.WindowsPushNotificationServices","registrationState":"NotRegistered"},{"namespace":"Microsoft.WorkloadBuilder","registrationState":"NotRegistered"},{"namespace":"Microsoft.Workloads","registrationState":"NotRegistered"},{"namespace":"NewRelic.Observability","registrationState":"NotRegistered"},{"namespace":"PaloAltoNetworks.Cloudngfw","registrationState":"NotRegistered"},{"namespace":"Qumulo.Storage","registrationState":"NotRegistered"},{"namespace":"SolarWinds.Observability","registrationState":"NotRegistered"},{"namespace":"Wandisco.Fusion","registrationState":"NotRegistered"},{"namespace":"Microsoft.DataAccelerator","registrationState":"NotRegistered"},{"namespace":"Microsoft.OracleDiscovery","registrationState":"NotRegistered"},{"namespace":"Microsoft.ProjectArcadia","registrationState":"NotRegistered"}]}' + string: "{\n \"name\": \"1ef2ee96-5120-3c42-9efe-6b9dd1672063\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-05-09T20:49:25.1217535Z\"\n }" headers: cache-control: - no-cache content-length: - - '19322' + - '126' content-type: - - application/json; charset=utf-8 + - application/json date: - - Tue, 28 Mar 2023 22:07:10 GMT + - Tue, 09 May 2023 20:54:27 GMT expires: - '-1' pragma: - no-cache + server: + - nginx strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked vary: - Accept-Encoding x-content-type-options: @@ -819,48 +698,44 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - aks update + - aks create Connection: - keep-alive - Content-Length: - - '0' ParameterSetName: - - --resource-group --name --yes --output --aks-custom-headers --enable-azuremonitormetrics - --enable-managed-identity --enable-windows-recording-rules + - --resource-group --name --location --ssh-key-value --node-vm-size --enable-managed-identity + --output User-Agent: - - python/3.10.10 (Linux-5.15.0-1034-azure-x86_64-with-glibc2.31) AZURECLI/2.46.0 - VSTS_7b238909-6802-4b65-b90d-184bca47f458_build_261_0 azuremonitormetrics.register_monitor_rp - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/microsoft.monitor/register?api-version=2019-08-01 + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/22.0.0b Python/3.8.10 + (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/96eef21e-2051-423c-9efe-6b9dd1672063?api-version=2016-03-30 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Monitor","namespace":"Microsoft.Monitor","authorizations":[{"applicationId":"be14bf7e-8ab4-49b0-9dc6-a0eddd6fa73e","roleDefinitionId":"803a038d-eff1-4489-a0c2-dbc204ebac3c"},{"applicationId":"e158b4a5-21ab-442e-ae73-2e19f4e7d763","roleDefinitionId":"e46476d4-e741-4936-a72b-b768349eed70","managedByRoleDefinitionId":"50cd84fb-5e4c-4801-a8d2-4089ab77e6cd"}],"resourceTypes":[{"resourceType":"accounts","locations":["East - US","Central India","Central US","East US 2","North Europe","South Central - US","Southeast Asia","UK South","West Europe","West US","West US 2","East - US 2 EUAP","Central US EUAP"],"apiVersions":["2023-04-03","2021-06-03-preview"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"operations","locations":["North - Central US","East US","Australia Central","Brazil South","Central India","Central - US","East US 2","North Europe","South Central US","Southeast Asia","UK South","West - Europe","West US","West US 2","East US 2 EUAP","Central US EUAP"],"apiVersions":["2023-04-03","2023-04-01","2021-06-03-preview","2021-06-01-preview"],"defaultApiVersion":"2021-06-01-preview","capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: "{\n \"name\": \"1ef2ee96-5120-3c42-9efe-6b9dd1672063\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-05-09T20:49:25.1217535Z\"\n }" headers: cache-control: - no-cache content-length: - - '1347' + - '126' content-type: - - application/json; charset=utf-8 + - application/json date: - - Tue, 28 Mar 2023 22:07:12 GMT + - Tue, 09 May 2023 20:54:56 GMT expires: - '-1' pragma: - no-cache + server: + - nginx strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding x-content-type-options: - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' status: code: 200 message: OK @@ -872,48 +747,36 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - aks update + - aks create Connection: - keep-alive - Content-Length: - - '0' ParameterSetName: - - --resource-group --name --yes --output --aks-custom-headers --enable-azuremonitormetrics - --enable-managed-identity --enable-windows-recording-rules + - --resource-group --name --location --ssh-key-value --node-vm-size --enable-managed-identity + --output User-Agent: - - python/3.10.10 (Linux-5.15.0-1034-azure-x86_64-with-glibc2.31) AZURECLI/2.46.0 - VSTS_7b238909-6802-4b65-b90d-184bca47f458_build_261_0 azuremonitormetrics.register_dashboard_rp - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/microsoft.dashboard/register?api-version=2019-08-01 + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/22.0.0b Python/3.8.10 + (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/96eef21e-2051-423c-9efe-6b9dd1672063?api-version=2016-03-30 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Dashboard","namespace":"Microsoft.Dashboard","authorizations":[{"applicationId":"ce34e7e5-485f-4d76-964f-b3d2b16d1e4f","roleDefinitionId":"996b8381-eac0-46be-8daf-9619bafd1073"},{"applicationId":"6f2d169c-08f3-4a4c-a982-bcaf2d038c45"}],"resourceTypes":[{"resourceType":"locations","locations":[],"apiVersions":["2022-10-01-preview","2022-08-01","2022-05-01-preview","2021-09-01-preview"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2022-10-01-preview","2022-08-01","2022-05-01-preview","2021-09-01-preview"],"capabilities":"None"},{"resourceType":"locations/operationStatuses","locations":["East - US 2 EUAP","Central US EUAP","South Central US","West Europe","North Europe","UK - South","East US","East US 2","West Central US","Australia East","Sweden Central","West - US 3","East Asia"],"apiVersions":["2022-10-01-preview","2022-08-01","2022-05-01-preview","2021-09-01-preview"],"capabilities":"None"},{"resourceType":"grafana","locations":["South - Central US","West Central US","West Europe","East US","East US 2","North Europe","UK - South","Australia East","Sweden Central","West US 3","East Asia","East US - 2 EUAP","Central US EUAP"],"apiVersions":["2022-10-01-preview","2022-08-01","2022-05-01-preview","2021-09-01-preview"],"capabilities":"SystemAssignedResourceIdentity, - SupportsTags, SupportsLocation"},{"resourceType":"operations","locations":[],"apiVersions":["2022-10-01-preview","2022-08-01","2022-05-01-preview","2021-09-01-preview"],"capabilities":"None"},{"resourceType":"grafana/privateEndpointConnections","locations":["South - Central US","West Central US","West Europe","North Europe","UK South","East - US","East US 2","Australia East","Sweden Central","West US 3","East Asia","East - US 2 EUAP","Central US EUAP"],"apiVersions":["2022-10-01-preview","2022-08-01","2022-05-01-preview"],"capabilities":"None"},{"resourceType":"grafana/privateLinkResources","locations":["South - Central US","West Central US","West Europe","North Europe","UK South","East - US","East US 2","Australia East","Sweden Central","West US 3","East Asia","East - US 2 EUAP","Central US EUAP"],"apiVersions":["2022-10-01-preview","2022-08-01","2022-05-01-preview"],"capabilities":"None"},{"resourceType":"locations/checkNameAvailability","locations":[],"apiVersions":["2022-10-01-preview","2022-08-01","2022-05-01-preview","2021-09-01-preview"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: "{\n \"name\": \"1ef2ee96-5120-3c42-9efe-6b9dd1672063\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-05-09T20:49:25.1217535Z\"\n }" headers: cache-control: - no-cache content-length: - - '2549' + - '126' content-type: - - application/json; charset=utf-8 + - application/json date: - - Tue, 28 Mar 2023 22:07:13 GMT + - Tue, 09 May 2023 20:55:27 GMT expires: - '-1' pragma: - no-cache + server: + - nginx strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -922,8 +785,6 @@ interactions: - Accept-Encoding x-content-type-options: - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' status: code: 200 message: OK @@ -931,143 +792,146 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - aks update + - aks create Connection: - keep-alive ParameterSetName: - - --resource-group --name --yes --output --aks-custom-headers --enable-azuremonitormetrics - --enable-managed-identity --enable-windows-recording-rules + - --resource-group --name --location --ssh-key-value --node-vm-size --enable-managed-identity + --output User-Agent: - - AZURECLI/2.46.0 azsdk-python-azure-mgmt-resource/22.0.0 Python/3.10.10 (Linux-5.15.0-1034-azure-x86_64-with-glibc2.31) - VSTS_7b238909-6802-4b65-b90d-184bca47f458_build_261_0 - method: HEAD - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/DefaultResourceGroup-WUS2?api-version=2022-09-01 + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/22.0.0b Python/3.8.10 + (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/96eef21e-2051-423c-9efe-6b9dd1672063?api-version=2016-03-30 response: body: - string: '' + string: "{\n \"name\": \"1ef2ee96-5120-3c42-9efe-6b9dd1672063\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-05-09T20:49:25.1217535Z\"\n }" headers: cache-control: - no-cache content-length: - - '0' + - '126' + content-type: + - application/json date: - - Tue, 28 Mar 2023 22:07:13 GMT + - Tue, 09 May 2023 20:55:58 GMT expires: - '-1' pragma: - no-cache + server: + - nginx strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding x-content-type-options: - nosniff status: - code: 204 - message: No Content + code: 200 + message: OK - request: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - aks update + - aks create Connection: - keep-alive ParameterSetName: - - --resource-group --name --yes --output --aks-custom-headers --enable-azuremonitormetrics - --enable-managed-identity --enable-windows-recording-rules + - --resource-group --name --location --ssh-key-value --node-vm-size --enable-managed-identity + --output User-Agent: - - AZURECLI/2.46.0 azsdk-python-azure-mgmt-resource/22.0.0 Python/3.10.10 (Linux-5.15.0-1034-azure-x86_64-with-glibc2.31) - VSTS_7b238909-6802-4b65-b90d-184bca47f458_build_261_0 + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/22.0.0b Python/3.8.10 + (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/DefaultResourceGroup-WUS2/providers/microsoft.monitor/accounts/DefaultAzureMonitorWorkspace-WUS2?api-version=2021-06-03-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/96eef21e-2051-423c-9efe-6b9dd1672063?api-version=2016-03-30 response: body: - string: '{"error":{"code":"ResourceNotFound","message":"The Resource ''microsoft.monitor/accounts/DefaultAzureMonitorWorkspace-WUS2'' - under resource group ''DefaultResourceGroup-WUS2'' was not found. For more - details please go to https://aka.ms/ARMResourceNotFoundFix"}}' + string: "{\n \"name\": \"1ef2ee96-5120-3c42-9efe-6b9dd1672063\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-05-09T20:49:25.1217535Z\"\n }" headers: cache-control: - no-cache content-length: - - '257' + - '126' content-type: - - application/json; charset=utf-8 + - application/json date: - - Tue, 28 Mar 2023 22:07:13 GMT + - Tue, 09 May 2023 20:56:28 GMT expires: - '-1' pragma: - no-cache + server: + - nginx strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding x-content-type-options: - nosniff - x-ms-failure-cause: - - gateway status: - code: 404 - message: Not Found + code: 200 + message: OK - request: - body: '{"location": "westus2", "properties": {}}' + body: null headers: Accept: - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - aks update + - aks create Connection: - keep-alive - Content-Length: - - '41' - Content-Type: - - application/json ParameterSetName: - - --resource-group --name --yes --output --aks-custom-headers --enable-azuremonitormetrics - --enable-managed-identity --enable-windows-recording-rules + - --resource-group --name --location --ssh-key-value --node-vm-size --enable-managed-identity + --output User-Agent: - - python/3.10.10 (Linux-5.15.0-1034-azure-x86_64-with-glibc2.31) AZURECLI/2.46.0 - VSTS_7b238909-6802-4b65-b90d-184bca47f458_build_261_0 azuremonitormetrics.create_default_mac - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/DefaultResourceGroup-WUS2/providers/microsoft.monitor/accounts/DefaultAzureMonitorWorkspace-WUS2?api-version=2021-06-03-preview + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/22.0.0b Python/3.8.10 + (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/96eef21e-2051-423c-9efe-6b9dd1672063?api-version=2016-03-30 response: body: - string: '{"properties":{"accountId":"3692cbea-1f07-4dce-be75-8ef691e9da54","metrics":{"prometheusQueryEndpoint":"https://defaultazuremonitorworkspace-wus2-vyc0.westus2.prometheus.monitor.azure.com","internalId":"mac_3692cbea-1f07-4dce-be75-8ef691e9da54"},"provisioningState":"Succeeded","defaultIngestionSettings":{"dataCollectionRuleResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MA_defaultazuremonitorworkspace-wus2_westus2_managed/providers/Microsoft.Insights/dataCollectionRules/defaultazuremonitorworkspace-wus2","dataCollectionEndpointResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MA_defaultazuremonitorworkspace-wus2_westus2_managed/providers/Microsoft.Insights/dataCollectionEndpoints/defaultazuremonitorworkspace-wus2"},"publicNetworkAccess":"Enabled"},"location":"westus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.monitor/accounts/defaultazuremonitorworkspace-wus2","name":"DefaultAzureMonitorWorkspace-WUS2","type":"Microsoft.Monitor/accounts","etag":"\"e4001492-0000-0800-0000-642365240000\"","systemData":{"createdBy":"azureclilivetest@azuresdkteam.onmicrosoft.com","createdByType":"User","createdAt":"2023-03-28T22:07:15.6018744Z","lastModifiedBy":"azureclilivetest@azuresdkteam.onmicrosoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-28T22:07:15.6018744Z"}}' + string: "{\n \"name\": \"1ef2ee96-5120-3c42-9efe-6b9dd1672063\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-05-09T20:49:25.1217535Z\"\n }" headers: - api-supported-versions: - - 2021-06-01-preview, 2021-06-03-preview, 2023-04-01, 2023-04-03 cache-control: - no-cache content-length: - - '1423' + - '126' content-type: - - application/json; charset=utf-8 + - application/json date: - - Tue, 28 Mar 2023 22:07:32 GMT + - Tue, 09 May 2023 20:56:57 GMT expires: - '-1' pragma: - no-cache - request-context: - - appId=cid-v1:74683e7d-3ee8-4856-bfe7-e63c83b6737e server: - - Microsoft-HTTPAPI/2.0 + - nginx strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-content-type-options: - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' status: code: 200 message: OK @@ -1075,49 +939,47 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - aks update + - aks create Connection: - keep-alive ParameterSetName: - - --resource-group --name --yes --output --aks-custom-headers --enable-azuremonitormetrics - --enable-managed-identity --enable-windows-recording-rules + - --resource-group --name --location --ssh-key-value --node-vm-size --enable-managed-identity + --output User-Agent: - - AZURECLI/2.46.0 azsdk-python-azure-mgmt-resource/22.0.0 Python/3.10.10 (Linux-5.15.0-1034-azure-x86_64-with-glibc2.31) - VSTS_7b238909-6802-4b65-b90d-184bca47f458_build_261_0 + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/22.0.0b Python/3.8.10 + (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.monitor/accounts/defaultazuremonitorworkspace-wus2?api-version=2021-06-03-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/96eef21e-2051-423c-9efe-6b9dd1672063?api-version=2016-03-30 response: body: - string: '{"properties":{"accountId":"3692cbea-1f07-4dce-be75-8ef691e9da54","metrics":{"prometheusQueryEndpoint":"https://defaultazuremonitorworkspace-wus2-vyc0.westus2.prometheus.monitor.azure.com","internalId":"mac_3692cbea-1f07-4dce-be75-8ef691e9da54"},"provisioningState":"Succeeded","defaultIngestionSettings":{"dataCollectionRuleResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MA_defaultazuremonitorworkspace-wus2_westus2_managed/providers/Microsoft.Insights/dataCollectionRules/defaultazuremonitorworkspace-wus2","dataCollectionEndpointResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MA_defaultazuremonitorworkspace-wus2_westus2_managed/providers/Microsoft.Insights/dataCollectionEndpoints/defaultazuremonitorworkspace-wus2"},"publicNetworkAccess":"Enabled"},"location":"westus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.monitor/accounts/defaultazuremonitorworkspace-wus2","name":"DefaultAzureMonitorWorkspace-WUS2","type":"Microsoft.Monitor/accounts","etag":"\"e4001492-0000-0800-0000-642365240000\"","systemData":{"createdBy":"azureclilivetest@azuresdkteam.onmicrosoft.com","createdByType":"User","createdAt":"2023-03-28T22:07:15.6018744Z","lastModifiedBy":"azureclilivetest@azuresdkteam.onmicrosoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-28T22:07:15.6018744Z"}}' + string: "{\n \"name\": \"1ef2ee96-5120-3c42-9efe-6b9dd1672063\",\n \"status\": + \"Succeeded\",\n \"startTime\": \"2023-05-09T20:49:25.1217535Z\",\n \"endTime\": + \"2023-05-09T20:57:16.7871964Z\"\n }" headers: - api-supported-versions: - - 2021-06-01-preview, 2021-06-03-preview, 2023-04-01, 2023-04-03 cache-control: - no-cache content-length: - - '1423' + - '170' content-type: - - application/json; charset=utf-8 + - application/json date: - - Tue, 28 Mar 2023 22:07:33 GMT + - Tue, 09 May 2023 20:57:28 GMT expires: - '-1' pragma: - no-cache - request-context: - - appId=cid-v1:74683e7d-3ee8-4856-bfe7-e63c83b6737e server: - - Microsoft-HTTPAPI/2.0 + - nginx strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-content-type-options: - nosniff status: @@ -1131,138 +993,83 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - aks update + - aks create Connection: - keep-alive ParameterSetName: - - --resource-group --name --yes --output --aks-custom-headers --enable-azuremonitormetrics - --enable-managed-identity --enable-windows-recording-rules + - --resource-group --name --location --ssh-key-value --node-vm-size --enable-managed-identity + --output User-Agent: - - python/3.10.10 (Linux-5.15.0-1034-azure-x86_64-with-glibc2.31) AZURECLI/2.46.0 - VSTS_7b238909-6802-4b65-b90d-184bca47f458_build_261_0 azuremonitormetrics.get_mac_region_and_check_support.mac_subscription_location_support_check + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/22.0.0b Python/3.8.10 + (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/locations?api-version=2019-11-01 - response: - body: - string: "{\"value\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus\",\"name\":\"eastus\",\"displayName\":\"East - US\",\"regionalDisplayName\":\"(US) East US\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Recommended\",\"geographyGroup\":\"US\",\"longitude\":\"-79.8164\",\"latitude\":\"37.3719\",\"physicalLocation\":\"Virginia\",\"pairedRegion\":[{\"name\":\"westus\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus2\",\"name\":\"eastus2\",\"displayName\":\"East - US 2\",\"regionalDisplayName\":\"(US) East US 2\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Recommended\",\"geographyGroup\":\"US\",\"longitude\":\"-78.3889\",\"latitude\":\"36.6681\",\"physicalLocation\":\"Virginia\",\"pairedRegion\":[{\"name\":\"centralus\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/centralus\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southcentralus\",\"name\":\"southcentralus\",\"displayName\":\"South - Central US\",\"regionalDisplayName\":\"(US) South Central US\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Recommended\",\"geographyGroup\":\"US\",\"longitude\":\"-98.5\",\"latitude\":\"29.4167\",\"physicalLocation\":\"Texas\",\"pairedRegion\":[{\"name\":\"northcentralus\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/northcentralus\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus2\",\"name\":\"westus2\",\"displayName\":\"West - US 2\",\"regionalDisplayName\":\"(US) West US 2\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Recommended\",\"geographyGroup\":\"US\",\"longitude\":\"-119.852\",\"latitude\":\"47.233\",\"physicalLocation\":\"Washington\",\"pairedRegion\":[{\"name\":\"westcentralus\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westcentralus\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus3\",\"name\":\"westus3\",\"displayName\":\"West - US 3\",\"regionalDisplayName\":\"(US) West US 3\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Recommended\",\"geographyGroup\":\"US\",\"longitude\":\"-112.074036\",\"latitude\":\"33.448376\",\"physicalLocation\":\"Phoenix\",\"pairedRegion\":[{\"name\":\"eastus\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiaeast\",\"name\":\"australiaeast\",\"displayName\":\"Australia - East\",\"regionalDisplayName\":\"(Asia Pacific) Australia East\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Recommended\",\"geographyGroup\":\"Asia - Pacific\",\"longitude\":\"151.2094\",\"latitude\":\"-33.86\",\"physicalLocation\":\"New - South Wales\",\"pairedRegion\":[{\"name\":\"australiasoutheast\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiasoutheast\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southeastasia\",\"name\":\"southeastasia\",\"displayName\":\"Southeast - Asia\",\"regionalDisplayName\":\"(Asia Pacific) Southeast Asia\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Recommended\",\"geographyGroup\":\"Asia - Pacific\",\"longitude\":\"103.833\",\"latitude\":\"1.283\",\"physicalLocation\":\"Singapore\",\"pairedRegion\":[{\"name\":\"eastasia\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastasia\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/northeurope\",\"name\":\"northeurope\",\"displayName\":\"North - Europe\",\"regionalDisplayName\":\"(Europe) North Europe\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Recommended\",\"geographyGroup\":\"Europe\",\"longitude\":\"-6.2597\",\"latitude\":\"53.3478\",\"physicalLocation\":\"Ireland\",\"pairedRegion\":[{\"name\":\"westeurope\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westeurope\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/swedencentral\",\"name\":\"swedencentral\",\"displayName\":\"Sweden - Central\",\"regionalDisplayName\":\"(Europe) Sweden Central\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Recommended\",\"geographyGroup\":\"Europe\",\"longitude\":\"17.14127\",\"latitude\":\"60.67488\",\"physicalLocation\":\"G\xE4vle\",\"pairedRegion\":[{\"name\":\"swedensouth\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/swedensouth\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uksouth\",\"name\":\"uksouth\",\"displayName\":\"UK - South\",\"regionalDisplayName\":\"(Europe) UK South\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Recommended\",\"geographyGroup\":\"Europe\",\"longitude\":\"-0.799\",\"latitude\":\"50.941\",\"physicalLocation\":\"London\",\"pairedRegion\":[{\"name\":\"ukwest\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/ukwest\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westeurope\",\"name\":\"westeurope\",\"displayName\":\"West - Europe\",\"regionalDisplayName\":\"(Europe) West Europe\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Recommended\",\"geographyGroup\":\"Europe\",\"longitude\":\"4.9\",\"latitude\":\"52.3667\",\"physicalLocation\":\"Netherlands\",\"pairedRegion\":[{\"name\":\"northeurope\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/northeurope\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/centralus\",\"name\":\"centralus\",\"displayName\":\"Central - US\",\"regionalDisplayName\":\"(US) Central US\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Recommended\",\"geographyGroup\":\"US\",\"longitude\":\"-93.6208\",\"latitude\":\"41.5908\",\"physicalLocation\":\"Iowa\",\"pairedRegion\":[{\"name\":\"eastus2\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus2\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southafricanorth\",\"name\":\"southafricanorth\",\"displayName\":\"South - Africa North\",\"regionalDisplayName\":\"(Africa) South Africa North\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Recommended\",\"geographyGroup\":\"Africa\",\"longitude\":\"28.218370\",\"latitude\":\"-25.731340\",\"physicalLocation\":\"Johannesburg\",\"pairedRegion\":[{\"name\":\"southafricawest\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southafricawest\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/centralindia\",\"name\":\"centralindia\",\"displayName\":\"Central - India\",\"regionalDisplayName\":\"(Asia Pacific) Central India\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Recommended\",\"geographyGroup\":\"Asia - Pacific\",\"longitude\":\"73.9197\",\"latitude\":\"18.5822\",\"physicalLocation\":\"Pune\",\"pairedRegion\":[{\"name\":\"southindia\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southindia\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastasia\",\"name\":\"eastasia\",\"displayName\":\"East - Asia\",\"regionalDisplayName\":\"(Asia Pacific) East Asia\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Recommended\",\"geographyGroup\":\"Asia - Pacific\",\"longitude\":\"114.188\",\"latitude\":\"22.267\",\"physicalLocation\":\"Hong - Kong\",\"pairedRegion\":[{\"name\":\"southeastasia\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southeastasia\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/japaneast\",\"name\":\"japaneast\",\"displayName\":\"Japan - East\",\"regionalDisplayName\":\"(Asia Pacific) Japan East\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Recommended\",\"geographyGroup\":\"Asia - Pacific\",\"longitude\":\"139.77\",\"latitude\":\"35.68\",\"physicalLocation\":\"Tokyo, - Saitama\",\"pairedRegion\":[{\"name\":\"japanwest\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/japanwest\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/koreacentral\",\"name\":\"koreacentral\",\"displayName\":\"Korea - Central\",\"regionalDisplayName\":\"(Asia Pacific) Korea Central\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Recommended\",\"geographyGroup\":\"Asia - Pacific\",\"longitude\":\"126.9780\",\"latitude\":\"37.5665\",\"physicalLocation\":\"Seoul\",\"pairedRegion\":[{\"name\":\"koreasouth\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/koreasouth\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/canadacentral\",\"name\":\"canadacentral\",\"displayName\":\"Canada - Central\",\"regionalDisplayName\":\"(Canada) Canada Central\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Recommended\",\"geographyGroup\":\"Canada\",\"longitude\":\"-79.383\",\"latitude\":\"43.653\",\"physicalLocation\":\"Toronto\",\"pairedRegion\":[{\"name\":\"canadaeast\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/canadaeast\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/francecentral\",\"name\":\"francecentral\",\"displayName\":\"France - Central\",\"regionalDisplayName\":\"(Europe) France Central\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Recommended\",\"geographyGroup\":\"Europe\",\"longitude\":\"2.3730\",\"latitude\":\"46.3772\",\"physicalLocation\":\"Paris\",\"pairedRegion\":[{\"name\":\"francesouth\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/francesouth\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/germanywestcentral\",\"name\":\"germanywestcentral\",\"displayName\":\"Germany - West Central\",\"regionalDisplayName\":\"(Europe) Germany West Central\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Recommended\",\"geographyGroup\":\"Europe\",\"longitude\":\"8.682127\",\"latitude\":\"50.110924\",\"physicalLocation\":\"Frankfurt\",\"pairedRegion\":[{\"name\":\"germanynorth\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/germanynorth\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/norwayeast\",\"name\":\"norwayeast\",\"displayName\":\"Norway - East\",\"regionalDisplayName\":\"(Europe) Norway East\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Recommended\",\"geographyGroup\":\"Europe\",\"longitude\":\"10.752245\",\"latitude\":\"59.913868\",\"physicalLocation\":\"Norway\",\"pairedRegion\":[{\"name\":\"norwaywest\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/norwaywest\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/switzerlandnorth\",\"name\":\"switzerlandnorth\",\"displayName\":\"Switzerland - North\",\"regionalDisplayName\":\"(Europe) Switzerland North\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Recommended\",\"geographyGroup\":\"Europe\",\"longitude\":\"8.564572\",\"latitude\":\"47.451542\",\"physicalLocation\":\"Zurich\",\"pairedRegion\":[{\"name\":\"switzerlandwest\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/switzerlandwest\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uaenorth\",\"name\":\"uaenorth\",\"displayName\":\"UAE - North\",\"regionalDisplayName\":\"(Middle East) UAE North\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Recommended\",\"geographyGroup\":\"Middle - East\",\"longitude\":\"55.316666\",\"latitude\":\"25.266666\",\"physicalLocation\":\"Dubai\",\"pairedRegion\":[{\"name\":\"uaecentral\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uaecentral\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/brazilsouth\",\"name\":\"brazilsouth\",\"displayName\":\"Brazil - South\",\"regionalDisplayName\":\"(South America) Brazil South\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Recommended\",\"geographyGroup\":\"South - America\",\"longitude\":\"-46.633\",\"latitude\":\"-23.55\",\"physicalLocation\":\"Sao - Paulo State\",\"pairedRegion\":[{\"name\":\"southcentralus\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southcentralus\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus2euap\",\"name\":\"eastus2euap\",\"displayName\":\"East - US 2 EUAP\",\"regionalDisplayName\":\"(US) East US 2 EUAP\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Recommended\",\"geographyGroup\":\"US\",\"longitude\":\"-78.3889\",\"latitude\":\"36.6681\",\"pairedRegion\":[{\"name\":\"centraluseuap\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/centraluseuap\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/qatarcentral\",\"name\":\"qatarcentral\",\"displayName\":\"Qatar - Central\",\"regionalDisplayName\":\"(Middle East) Qatar Central\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Recommended\",\"geographyGroup\":\"Middle - East\",\"longitude\":\"51.439327\",\"latitude\":\"25.551462\",\"physicalLocation\":\"Doha\",\"pairedRegion\":[]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/centralusstage\",\"name\":\"centralusstage\",\"displayName\":\"Central - US (Stage)\",\"regionalDisplayName\":\"(US) Central US (Stage)\",\"metadata\":{\"regionType\":\"Logical\",\"regionCategory\":\"Other\",\"geographyGroup\":\"US\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastusstage\",\"name\":\"eastusstage\",\"displayName\":\"East - US (Stage)\",\"regionalDisplayName\":\"(US) East US (Stage)\",\"metadata\":{\"regionType\":\"Logical\",\"regionCategory\":\"Other\",\"geographyGroup\":\"US\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus2stage\",\"name\":\"eastus2stage\",\"displayName\":\"East - US 2 (Stage)\",\"regionalDisplayName\":\"(US) East US 2 (Stage)\",\"metadata\":{\"regionType\":\"Logical\",\"regionCategory\":\"Other\",\"geographyGroup\":\"US\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/northcentralusstage\",\"name\":\"northcentralusstage\",\"displayName\":\"North - Central US (Stage)\",\"regionalDisplayName\":\"(US) North Central US (Stage)\",\"metadata\":{\"regionType\":\"Logical\",\"regionCategory\":\"Other\",\"geographyGroup\":\"US\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southcentralusstage\",\"name\":\"southcentralusstage\",\"displayName\":\"South - Central US (Stage)\",\"regionalDisplayName\":\"(US) South Central US (Stage)\",\"metadata\":{\"regionType\":\"Logical\",\"regionCategory\":\"Other\",\"geographyGroup\":\"US\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westusstage\",\"name\":\"westusstage\",\"displayName\":\"West - US (Stage)\",\"regionalDisplayName\":\"(US) West US (Stage)\",\"metadata\":{\"regionType\":\"Logical\",\"regionCategory\":\"Other\",\"geographyGroup\":\"US\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus2stage\",\"name\":\"westus2stage\",\"displayName\":\"West - US 2 (Stage)\",\"regionalDisplayName\":\"(US) West US 2 (Stage)\",\"metadata\":{\"regionType\":\"Logical\",\"regionCategory\":\"Other\",\"geographyGroup\":\"US\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/asia\",\"name\":\"asia\",\"displayName\":\"Asia\",\"regionalDisplayName\":\"Asia\",\"metadata\":{\"regionType\":\"Logical\",\"regionCategory\":\"Other\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/asiapacific\",\"name\":\"asiapacific\",\"displayName\":\"Asia - Pacific\",\"regionalDisplayName\":\"Asia Pacific\",\"metadata\":{\"regionType\":\"Logical\",\"regionCategory\":\"Other\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australia\",\"name\":\"australia\",\"displayName\":\"Australia\",\"regionalDisplayName\":\"Australia\",\"metadata\":{\"regionType\":\"Logical\",\"regionCategory\":\"Other\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/brazil\",\"name\":\"brazil\",\"displayName\":\"Brazil\",\"regionalDisplayName\":\"Brazil\",\"metadata\":{\"regionType\":\"Logical\",\"regionCategory\":\"Other\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/canada\",\"name\":\"canada\",\"displayName\":\"Canada\",\"regionalDisplayName\":\"Canada\",\"metadata\":{\"regionType\":\"Logical\",\"regionCategory\":\"Other\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/europe\",\"name\":\"europe\",\"displayName\":\"Europe\",\"regionalDisplayName\":\"Europe\",\"metadata\":{\"regionType\":\"Logical\",\"regionCategory\":\"Other\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/france\",\"name\":\"france\",\"displayName\":\"France\",\"regionalDisplayName\":\"France\",\"metadata\":{\"regionType\":\"Logical\",\"regionCategory\":\"Other\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/germany\",\"name\":\"germany\",\"displayName\":\"Germany\",\"regionalDisplayName\":\"Germany\",\"metadata\":{\"regionType\":\"Logical\",\"regionCategory\":\"Other\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/global\",\"name\":\"global\",\"displayName\":\"Global\",\"regionalDisplayName\":\"Global\",\"metadata\":{\"regionType\":\"Logical\",\"regionCategory\":\"Other\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/india\",\"name\":\"india\",\"displayName\":\"India\",\"regionalDisplayName\":\"India\",\"metadata\":{\"regionType\":\"Logical\",\"regionCategory\":\"Other\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/japan\",\"name\":\"japan\",\"displayName\":\"Japan\",\"regionalDisplayName\":\"Japan\",\"metadata\":{\"regionType\":\"Logical\",\"regionCategory\":\"Other\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/korea\",\"name\":\"korea\",\"displayName\":\"Korea\",\"regionalDisplayName\":\"Korea\",\"metadata\":{\"regionType\":\"Logical\",\"regionCategory\":\"Other\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/norway\",\"name\":\"norway\",\"displayName\":\"Norway\",\"regionalDisplayName\":\"Norway\",\"metadata\":{\"regionType\":\"Logical\",\"regionCategory\":\"Other\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/singapore\",\"name\":\"singapore\",\"displayName\":\"Singapore\",\"regionalDisplayName\":\"Singapore\",\"metadata\":{\"regionType\":\"Logical\",\"regionCategory\":\"Other\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southafrica\",\"name\":\"southafrica\",\"displayName\":\"South - Africa\",\"regionalDisplayName\":\"South Africa\",\"metadata\":{\"regionType\":\"Logical\",\"regionCategory\":\"Other\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/switzerland\",\"name\":\"switzerland\",\"displayName\":\"Switzerland\",\"regionalDisplayName\":\"Switzerland\",\"metadata\":{\"regionType\":\"Logical\",\"regionCategory\":\"Other\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uae\",\"name\":\"uae\",\"displayName\":\"United - Arab Emirates\",\"regionalDisplayName\":\"United Arab Emirates\",\"metadata\":{\"regionType\":\"Logical\",\"regionCategory\":\"Other\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uk\",\"name\":\"uk\",\"displayName\":\"United - Kingdom\",\"regionalDisplayName\":\"United Kingdom\",\"metadata\":{\"regionType\":\"Logical\",\"regionCategory\":\"Other\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/unitedstates\",\"name\":\"unitedstates\",\"displayName\":\"United - States\",\"regionalDisplayName\":\"United States\",\"metadata\":{\"regionType\":\"Logical\",\"regionCategory\":\"Other\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/unitedstateseuap\",\"name\":\"unitedstateseuap\",\"displayName\":\"United - States EUAP\",\"regionalDisplayName\":\"United States EUAP\",\"metadata\":{\"regionType\":\"Logical\",\"regionCategory\":\"Other\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastasiastage\",\"name\":\"eastasiastage\",\"displayName\":\"East - Asia (Stage)\",\"regionalDisplayName\":\"(Asia Pacific) East Asia (Stage)\",\"metadata\":{\"regionType\":\"Logical\",\"regionCategory\":\"Other\",\"geographyGroup\":\"Asia - Pacific\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southeastasiastage\",\"name\":\"southeastasiastage\",\"displayName\":\"Southeast - Asia (Stage)\",\"regionalDisplayName\":\"(Asia Pacific) Southeast Asia (Stage)\",\"metadata\":{\"regionType\":\"Logical\",\"regionCategory\":\"Other\",\"geographyGroup\":\"Asia - Pacific\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastusstg\",\"name\":\"eastusstg\",\"displayName\":\"East - US STG\",\"regionalDisplayName\":\"(US) East US STG\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Other\",\"geographyGroup\":\"US\",\"longitude\":\"-79.8164\",\"latitude\":\"37.3719\",\"physicalLocation\":\"Virginia\",\"pairedRegion\":[{\"name\":\"southcentralusstg\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southcentralusstg\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southcentralusstg\",\"name\":\"southcentralusstg\",\"displayName\":\"South - Central US STG\",\"regionalDisplayName\":\"(US) South Central US STG\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Other\",\"geographyGroup\":\"US\",\"longitude\":\"-98.5\",\"latitude\":\"29.4167\",\"physicalLocation\":\"Texas\",\"pairedRegion\":[{\"name\":\"eastusstg\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastusstg\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/northcentralus\",\"name\":\"northcentralus\",\"displayName\":\"North - Central US\",\"regionalDisplayName\":\"(US) North Central US\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Other\",\"geographyGroup\":\"US\",\"longitude\":\"-87.6278\",\"latitude\":\"41.8819\",\"physicalLocation\":\"Illinois\",\"pairedRegion\":[{\"name\":\"southcentralus\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southcentralus\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus\",\"name\":\"westus\",\"displayName\":\"West - US\",\"regionalDisplayName\":\"(US) West US\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Other\",\"geographyGroup\":\"US\",\"longitude\":\"-122.417\",\"latitude\":\"37.783\",\"physicalLocation\":\"California\",\"pairedRegion\":[{\"name\":\"eastus\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/jioindiawest\",\"name\":\"jioindiawest\",\"displayName\":\"Jio - India West\",\"regionalDisplayName\":\"(Asia Pacific) Jio India West\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Other\",\"geographyGroup\":\"Asia - Pacific\",\"longitude\":\"70.05773\",\"latitude\":\"22.470701\",\"physicalLocation\":\"Jamnagar\",\"pairedRegion\":[{\"name\":\"jioindiacentral\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/jioindiacentral\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/taiwannorth\",\"name\":\"taiwannorth\",\"displayName\":\"Taiwan - North\",\"regionalDisplayName\":\"(Asia Pacific) Taiwan North\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Other\",\"geographyGroup\":\"Asia - Pacific\",\"longitude\":\"121.3662962\",\"latitude\":\"25.0174719\",\"physicalLocation\":\"Taiwan - North\",\"pairedRegion\":[{\"name\":\"taiwannw\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/taiwannw\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/centraluseuap\",\"name\":\"centraluseuap\",\"displayName\":\"Central - US EUAP\",\"regionalDisplayName\":\"(US) Central US EUAP\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Other\",\"geographyGroup\":\"US\",\"longitude\":\"-93.6208\",\"latitude\":\"41.5908\",\"pairedRegion\":[{\"name\":\"eastus2euap\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus2euap\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westcentralus\",\"name\":\"westcentralus\",\"displayName\":\"West - Central US\",\"regionalDisplayName\":\"(US) West Central US\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Other\",\"geographyGroup\":\"US\",\"longitude\":\"-110.234\",\"latitude\":\"40.890\",\"physicalLocation\":\"Wyoming\",\"pairedRegion\":[{\"name\":\"westus2\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus2\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southafricawest\",\"name\":\"southafricawest\",\"displayName\":\"South - Africa West\",\"regionalDisplayName\":\"(Africa) South Africa West\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Other\",\"geographyGroup\":\"Africa\",\"longitude\":\"18.843266\",\"latitude\":\"-34.075691\",\"physicalLocation\":\"Cape - Town\",\"pairedRegion\":[{\"name\":\"southafricanorth\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southafricanorth\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiacentral\",\"name\":\"australiacentral\",\"displayName\":\"Australia - Central\",\"regionalDisplayName\":\"(Asia Pacific) Australia Central\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Other\",\"geographyGroup\":\"Asia - Pacific\",\"longitude\":\"149.1244\",\"latitude\":\"-35.3075\",\"physicalLocation\":\"Canberra\",\"pairedRegion\":[{\"name\":\"australiacentral\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiacentral\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiacentral2\",\"name\":\"australiacentral2\",\"displayName\":\"Australia - Central 2\",\"regionalDisplayName\":\"(Asia Pacific) Australia Central 2\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Other\",\"geographyGroup\":\"Asia - Pacific\",\"longitude\":\"149.1244\",\"latitude\":\"-35.3075\",\"physicalLocation\":\"Canberra\",\"pairedRegion\":[{\"name\":\"australiacentral2\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiacentral2\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiasoutheast\",\"name\":\"australiasoutheast\",\"displayName\":\"Australia - Southeast\",\"regionalDisplayName\":\"(Asia Pacific) Australia Southeast\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Other\",\"geographyGroup\":\"Asia - Pacific\",\"longitude\":\"144.9631\",\"latitude\":\"-37.8136\",\"physicalLocation\":\"Victoria\",\"pairedRegion\":[{\"name\":\"australiaeast\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiaeast\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/japanwest\",\"name\":\"japanwest\",\"displayName\":\"Japan - West\",\"regionalDisplayName\":\"(Asia Pacific) Japan West\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Other\",\"geographyGroup\":\"Asia - Pacific\",\"longitude\":\"135.5022\",\"latitude\":\"34.6939\",\"physicalLocation\":\"Osaka\",\"pairedRegion\":[{\"name\":\"japaneast\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/japaneast\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/jioindiacentral\",\"name\":\"jioindiacentral\",\"displayName\":\"Jio - India Central\",\"regionalDisplayName\":\"(Asia Pacific) Jio India Central\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Other\",\"geographyGroup\":\"Asia - Pacific\",\"longitude\":\"79.08886\",\"latitude\":\"21.146633\",\"physicalLocation\":\"Nagpur\",\"pairedRegion\":[{\"name\":\"jioindiawest\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/jioindiawest\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/koreasouth\",\"name\":\"koreasouth\",\"displayName\":\"Korea - South\",\"regionalDisplayName\":\"(Asia Pacific) Korea South\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Other\",\"geographyGroup\":\"Asia - Pacific\",\"longitude\":\"129.0756\",\"latitude\":\"35.1796\",\"physicalLocation\":\"Busan\",\"pairedRegion\":[{\"name\":\"koreacentral\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/koreacentral\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southindia\",\"name\":\"southindia\",\"displayName\":\"South - India\",\"regionalDisplayName\":\"(Asia Pacific) South India\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Other\",\"geographyGroup\":\"Asia - Pacific\",\"longitude\":\"80.1636\",\"latitude\":\"12.9822\",\"physicalLocation\":\"Chennai\",\"pairedRegion\":[{\"name\":\"centralindia\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/centralindia\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/taiwannorthwest\",\"name\":\"taiwannorthwest\",\"displayName\":\"Taiwan - Northwest\",\"regionalDisplayName\":\"(Asia Pacific) Taiwan Northwest\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Other\",\"geographyGroup\":\"Asia - Pacific\",\"longitude\":\"120.921008\",\"latitude\":\"24.7848456\",\"physicalLocation\":\"Taiwan - Northwest\",\"pairedRegion\":[{\"name\":\"taiwann\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/taiwann\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westindia\",\"name\":\"westindia\",\"displayName\":\"West - India\",\"regionalDisplayName\":\"(Asia Pacific) West India\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Other\",\"geographyGroup\":\"Asia - Pacific\",\"longitude\":\"72.868\",\"latitude\":\"19.088\",\"physicalLocation\":\"Mumbai\",\"pairedRegion\":[{\"name\":\"southindia\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southindia\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/canadaeast\",\"name\":\"canadaeast\",\"displayName\":\"Canada - East\",\"regionalDisplayName\":\"(Canada) Canada East\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Other\",\"geographyGroup\":\"Canada\",\"longitude\":\"-71.217\",\"latitude\":\"46.817\",\"physicalLocation\":\"Quebec\",\"pairedRegion\":[{\"name\":\"canadacentral\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/canadacentral\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/francesouth\",\"name\":\"francesouth\",\"displayName\":\"France - South\",\"regionalDisplayName\":\"(Europe) France South\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Other\",\"geographyGroup\":\"Europe\",\"longitude\":\"2.1972\",\"latitude\":\"43.8345\",\"physicalLocation\":\"Marseille\",\"pairedRegion\":[{\"name\":\"francecentral\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/francecentral\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/germanynorth\",\"name\":\"germanynorth\",\"displayName\":\"Germany - North\",\"regionalDisplayName\":\"(Europe) Germany North\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Other\",\"geographyGroup\":\"Europe\",\"longitude\":\"8.806422\",\"latitude\":\"53.073635\",\"physicalLocation\":\"Berlin\",\"pairedRegion\":[{\"name\":\"germanywestcentral\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/germanywestcentral\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/norwaywest\",\"name\":\"norwaywest\",\"displayName\":\"Norway - West\",\"regionalDisplayName\":\"(Europe) Norway West\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Other\",\"geographyGroup\":\"Europe\",\"longitude\":\"5.733107\",\"latitude\":\"58.969975\",\"physicalLocation\":\"Norway\",\"pairedRegion\":[{\"name\":\"norwayeast\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/norwayeast\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/swedensouth\",\"name\":\"swedensouth\",\"displayName\":\"Sweden - South\",\"regionalDisplayName\":\"(Europe) Sweden South\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Other\",\"geographyGroup\":\"Europe\",\"longitude\":\"13.0007\",\"latitude\":\"55.6059\",\"physicalLocation\":\"Malmo\",\"pairedRegion\":[{\"name\":\"swedencentral\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/swedencentral\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/switzerlandwest\",\"name\":\"switzerlandwest\",\"displayName\":\"Switzerland - West\",\"regionalDisplayName\":\"(Europe) Switzerland West\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Other\",\"geographyGroup\":\"Europe\",\"longitude\":\"6.143158\",\"latitude\":\"46.204391\",\"physicalLocation\":\"Geneva\",\"pairedRegion\":[{\"name\":\"switzerlandnorth\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/switzerlandnorth\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/ukwest\",\"name\":\"ukwest\",\"displayName\":\"UK - West\",\"regionalDisplayName\":\"(Europe) UK West\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Other\",\"geographyGroup\":\"Europe\",\"longitude\":\"-3.084\",\"latitude\":\"53.427\",\"physicalLocation\":\"Cardiff\",\"pairedRegion\":[{\"name\":\"uksouth\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uksouth\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uaecentral\",\"name\":\"uaecentral\",\"displayName\":\"UAE - Central\",\"regionalDisplayName\":\"(Middle East) UAE Central\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Other\",\"geographyGroup\":\"Middle - East\",\"longitude\":\"54.366669\",\"latitude\":\"24.466667\",\"physicalLocation\":\"Abu - Dhabi\",\"pairedRegion\":[{\"name\":\"uaenorth\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uaenorth\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/brazilsoutheast\",\"name\":\"brazilsoutheast\",\"displayName\":\"Brazil - Southeast\",\"regionalDisplayName\":\"(South America) Brazil Southeast\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Other\",\"geographyGroup\":\"South - America\",\"longitude\":\"-43.2075\",\"latitude\":\"-22.90278\",\"physicalLocation\":\"Rio\",\"pairedRegion\":[{\"name\":\"brazilsouth\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/brazilsouth\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/polandcentral\",\"name\":\"polandcentral\",\"displayName\":\"Poland - Central\",\"regionalDisplayName\":\"(Europe) Poland Central\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Other\",\"geographyGroup\":\"Europe\",\"longitude\":\"21.01666\",\"latitude\":\"52.23334\",\"physicalLocation\":\"Warsaw\",\"pairedRegion\":[]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/israelcentral\",\"name\":\"israelcentral\",\"displayName\":\"Israel - Central\",\"regionalDisplayName\":\"(Middle East) Israel Central\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Other\",\"geographyGroup\":\"Middle - East\",\"longitude\":\"33.4506633\",\"latitude\":\"31.2655698\",\"physicalLocation\":\"Israel\",\"pairedRegion\":[{\"name\":\"swedencentral\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/swedencentral\"}]}}]}" - headers: - cache-control: - - no-cache - content-length: - - '32589' + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2023-03-02-preview + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\",\n + \ \"location\": \"westus2\",\n \"name\": \"cliakstest000002\",\n \"type\": + \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": + \"Succeeded\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": + \"1.25.6\",\n \"currentKubernetesVersion\": \"1.25.6\",\n \"dnsPrefix\": + \"cliakstest-clitest000001-79a739\",\n \"fqdn\": \"cliakstest-clitest000001-79a739-iqxcydbj.hcp.westus2.azmk8s.io\",\n + \ \"azurePortalFQDN\": \"cliakstest-clitest000001-79a739-iqxcydbj.portal.hcp.westus2.azmk8s.io\",\n + \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": + 3,\n \"vmSize\": \"standard_d2s_v3\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": + \"Managed\",\n \"kubeletDiskType\": \"OS\",\n \"workloadRuntime\": + \"OCIContainer\",\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n + \ \"enableAutoScaling\": false,\n \"provisioningState\": \"Succeeded\",\n + \ \"powerState\": {\n \"code\": \"Running\"\n },\n \"orchestratorVersion\": + \"1.25.6\",\n \"currentOrchestratorVersion\": \"1.25.6\",\n \"enableNodePublicIP\": + false,\n \"enableCustomCATrust\": false,\n \"mode\": \"System\",\n + \ \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\": false,\n + \ \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"nodeImageVersion\": + \"AKSUbuntu-2204gen2containerd-202304.20.0\",\n \"upgradeSettings\": {},\n + \ \"enableFIPS\": false,\n \"networkProfile\": {}\n }\n ],\n \"linuxProfile\": + {\n \"adminUsername\": \"azureuser\",\n \"ssh\": {\n \"publicKeys\": + [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCvSmDv2/j+2YOKt8Upeh5kRqWfa6Ruqyux98ejQPu6RssXtqmdYZTCMo0U0klQpXFIJI3ASBtFvMX3lBtqKLbjehzIirpjkesUCQvEEgKOd6iGp9ORvMr8FCn0RZr1Idw1dp7KmsCcxbMVPc5YGyvkrBtWl0BI0W/gVQxQ3+iF+NBrwuYAeLVnjmxp6moiCElvxm9ehp00Sr+7hpjPjzLi7qpDN2FITOggiXhrvXWJI/2cqfcPTvDXDQH+e6+avyApRPa/OvkCM7Jm/gXdUzes0xm1Y6aI61hzc8m9K1QjqleMeHPDTUYLCb8cCEnn70itMEkfuqwp6yftFWxCcylR + azcli_aks_live_test@example.com\\n\"\n }\n ]\n }\n },\n \"servicePrincipalProfile\": + {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \"nodeResourceGroup\": + \"MC_clitest000001_cliakstest000002_westus2\",\n \"enableRBAC\": true,\n + \ \"enablePodSecurityPolicy\": false,\n \"enableLTS\": \"KubernetesOfficial\",\n + \ \"networkProfile\": {\n \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\": + \"Standard\",\n \"loadBalancerProfile\": {\n \"managedOutboundIPs\": + {\n \"count\": 1\n },\n \"effectiveOutboundIPs\": [\n {\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.Network/publicIPAddresses/73659bc3-b205-4e4a-a308-90499313bb61\"\n + \ }\n ],\n \"backendPoolType\": \"nodeIPConfiguration\"\n },\n + \ \"podCidr\": \"10.244.0.0/16\",\n \"serviceCidr\": \"10.0.0.0/16\",\n + \ \"dnsServiceIP\": \"10.0.0.10\",\n \"dockerBridgeCidr\": \"172.17.0.1/16\",\n + \ \"outboundType\": \"loadBalancer\",\n \"podCidrs\": [\n \"10.244.0.0/16\"\n + \ ],\n \"serviceCidrs\": [\n \"10.0.0.0/16\"\n ],\n \"ipFamilies\": + [\n \"IPv4\"\n ]\n },\n \"maxAgentPools\": 100,\n \"identityProfile\": + {\n \"kubeletidentity\": {\n \"resourceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cliakstest000002-agentpool\",\n + \ \"clientId\":\"00000000-0000-0000-0000-000000000001\",\n \"objectId\":\"00000000-0000-0000-0000-000000000001\"\n + \ }\n },\n \"disableLocalAccounts\": false,\n \"securityProfile\": + {},\n \"storageProfile\": {\n \"diskCSIDriver\": {\n \"enabled\": + true,\n \"version\": \"v1\"\n },\n \"fileCSIDriver\": {\n \"enabled\": + true\n },\n \"snapshotController\": {\n \"enabled\": true\n }\n + \ },\n \"oidcIssuerProfile\": {\n \"enabled\": false\n },\n \"workloadAutoScalerProfile\": + {}\n },\n \"identity\": {\n \"type\": \"SystemAssigned\",\n \"principalId\":\"00000000-0000-0000-0000-000000000001\",\n + \ \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\n },\n \"sku\": + {\n \"name\": \"Base\",\n \"tier\": \"Free\"\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '4158' content-type: - - application/json; charset=utf-8 + - application/json date: - - Tue, 28 Mar 2023 22:07:35 GMT + - Tue, 09 May 2023 20:57:29 GMT expires: - '-1' pragma: - no-cache + server: + - nginx strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked vary: - Accept-Encoding x-content-type-options: @@ -1274,7 +1081,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate CommandName: @@ -1282,488 +1089,79 @@ interactions: Connection: - keep-alive ParameterSetName: - - --resource-group --name --yes --output --aks-custom-headers --enable-azuremonitormetrics - --enable-managed-identity --enable-windows-recording-rules + - --resource-group --name --yes --output --enable-azuremonitormetrics --enable-managed-identity + --enable-windows-recording-rules User-Agent: - - python/3.10.10 (Linux-5.15.0-1034-azure-x86_64-with-glibc2.31) AZURECLI/2.46.0 - VSTS_7b238909-6802-4b65-b90d-184bca47f458_build_261_0 azuremonitormetrics.get_mac_region_and_check_support.mac_subscription_dcr_dcra_regions_support_check + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/22.0.0b Python/3.8.10 + (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Insights?api-version=2020-10-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/microsoft.insights","namespace":"microsoft.insights","authorizations":[{"applicationId":"6bccf540-eb86-4037-af03-7fa058c2db75","roleDefinitionId":"89dcede2-9219-403a-9723-d3c6473f9472"},{"applicationId":"11c174dc-1945-4a9a-a36b-c79a0f246b9b","roleDefinitionId":"dd9d4347-f397-45f2-b538-85f21c90037b"},{"applicationId":"035f9e1d-4f00-4419-bf50-bf2d87eb4878","roleDefinitionId":"323795fe-ba3d-4f5a-ad42-afb4e1ea9485"},{"applicationId":"f5c26e74-f226-4ae8-85f0-b4af0080ac9e","roleDefinitionId":"529d7ae6-e892-4d43-809d-8547aeb90643"},{"applicationId":"b503eb83-1222-4dcc-b116-b98ed5216e05","roleDefinitionId":"68699c37-c689-44d4-9248-494b782d46ae"},{"applicationId":"ca7f3f0b-7d91-482c-8e09-c5d840d0eac5","roleDefinitionId":"5d5a2e56-9835-44aa-93db-d2f19e155438"},{"applicationId":"3af5a1e8-2459-45cb-8683-bcd6cccbcc13","roleDefinitionId":"b1309299-720d-4159-9897-6158a61aee41"},{"applicationId":"6a0a243c-0886-468a-a4c2-eff52c7445da","roleDefinitionId":"d2eda64b-c5e6-4930-8642-2d80ecd7c2e2"},{"applicationId":"707be275-6b9d-4ee7-88f9-c0c2bd646e0f","roleDefinitionId":"fa027d90-6ba0-4c33-9a54-59edaf2327e7"},{"applicationId":"461e8683-5575-4561-ac7f-899cc907d62a","roleDefinitionId":"68699c37-c689-44d4-9248-494b782d46ae"},{"applicationId":"562db366-1b96-45d2-aa4a-f2148cef2240","roleDefinitionId":"4109c8be-c1c8-4be0-af52-9d3c76c140ab"},{"applicationId":"e933bd07-d2ee-4f1d-933c-3752b819567b","roleDefinitionId":"abbcfd44-e662-419a-9b5a-478f8e2f57c9"},{"applicationId":"f6b60513-f290-450e-a2f3-9930de61c5e7","roleDefinitionId":"4ef11659-08ac-48af-98a7-25fb6b1e1bc4"},{"applicationId":"12743ff8-d3de-49d0-a4ce-6c91a4245ea0","roleDefinitionId":"207b20a7-6802-4ae4-aaa2-1a36dd45bba0"},{"applicationId":"58ef1dbd-684c-47d6-8ffc-61ea7a197b95","roleDefinitionId":"dd9d4347-f397-45f2-b538-85f21c90037b"}],"resourceTypes":[{"resourceType":"components","locations":["East - US","South Central US","North Europe","West Europe","Southeast Asia","West - US 2","UK South","Canada Central","Central India","Japan East","Australia - East","Korea Central","France Central","Central US","East US 2","East Asia","West - US","South Africa North","North Central US","Brazil South","Switzerland North","Norway - East","Norway West","Australia Southeast","Australia Central 2","Germany West - Central","Switzerland West","UAE Central","UK West","Japan West","Brazil Southeast","UAE - North","Australia Central","France South","South India","West US 3","Korea - South","Sweden Central","Canada East","Jio India Central","Jio India West","Qatar - Central","West Central US"],"apiVersions":["2020-02-02-preview","2020-02-02","2018-05-01-preview","2015-05-01","2014-12-01-preview","2014-08-01","2014-04-01"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"components/query","locations":["West - Central US"],"apiVersions":["2018-04-20"],"capabilities":"None"},{"resourceType":"components/metadata","locations":["West - Central US"],"apiVersions":["2018-04-20"],"capabilities":"None"},{"resourceType":"components/metrics","locations":["Australia - Central 2","Australia Central","Australia East","Australia Southeast","Brazil - South","Brazil Southeast","Canada Central","Canada East","Central India","Central - US","East Asia","East US 2","East US","France Central","France South","Germany - West Central","Japan East","Japan West","Jio India Central","Jio India West","Korea - Central","Korea South","North Central US","North Europe","Norway East","Norway - West","South Africa North","South Central US","South India","Southeast Asia","Sweden - Central","Switzerland North","Switzerland West","UAE Central","UAE North","UK - South","UK West","West Europe","West US 2","West US 3","West US","West Central - US"],"apiVersions":["2018-04-20","2014-04-01"],"capabilities":"None"},{"resourceType":"components/events","locations":["East - US","South Central US","North Europe","West Europe","Southeast Asia","West - US 2","UK South","Central India","Canada Central","Japan East","Australia - East","Korea Central","France Central","East US 2","East Asia","West US","Central - US","South Africa North","North Central US","West Central US"],"apiVersions":["2018-04-20"],"capabilities":"None"},{"resourceType":"components/syntheticmonitorlocations","locations":["East - US","South Central US","North Europe","West Europe","Southeast Asia","West - US 2","UK South","Canada Central","Central India","Japan East","Australia - East","Korea Central","France Central","Central US","East US 2","East Asia","West - US","South Africa North","North Central US","Brazil South","Switzerland North","Norway - East","Norway West","Australia Southeast","Australia Central 2","Germany West - Central","Switzerland West","UAE Central","UK West","Japan West","Brazil Southeast","UAE - North","Australia Central","France South","South India","West US 3","Korea - South","Sweden Central","Canada East","Jio India Central","Jio India West","Qatar - Central","West Central US"],"apiVersions":["2020-02-02-preview","2020-02-02","2018-05-01-preview","2015-05-01","2014-12-01-preview","2014-08-01","2014-04-01"],"capabilities":"None"},{"resourceType":"components/analyticsItems","locations":["East - US","South Central US","North Europe","West Europe","Southeast Asia","West - US 2","UK South","Canada Central","Central India","Japan East","Australia - East","Korea Central","France Central","Central US","East US 2","East Asia","West - US","South Africa North","North Central US","Brazil South","Switzerland North","Norway - East","Norway West","Australia Southeast","Australia Central 2","Germany West - Central","Switzerland West","UAE Central","UK West","Japan West","Brazil Southeast","UAE - North","Australia Central","France South","South India","West US 3","Korea - South","Sweden Central","Canada East","Jio India Central","Jio India West","Qatar - Central","West Central US"],"apiVersions":["2020-02-02-preview","2020-02-02","2018-05-01-preview","2015-05-01","2014-12-01-preview","2014-08-01","2014-04-01"],"capabilities":"None"},{"resourceType":"components/webtests","locations":["East - US","South Central US","North Europe","West Europe","Southeast Asia","West - US 2","UK South","Canada Central","Central India","Japan East","Australia - East","Korea Central","France Central","Central US","East US 2","East Asia","West - US","South Africa North","North Central US","Brazil South","Switzerland North","Norway - East","Norway West","Australia Southeast","Australia Central 2","Germany West - Central","Switzerland West","UAE Central","UK West","Japan West","Brazil Southeast","UAE - North","Australia Central","France South","South India","West US 3","Korea - South","Sweden Central","Canada East","Jio India Central","Jio India West","Qatar - Central","West Central US"],"apiVersions":["2022-06-15","2020-02-02-preview","2020-02-02","2018-05-01-preview","2015-05-01","2014-12-01-preview","2014-08-01","2014-04-01"],"capabilities":"None"},{"resourceType":"components/workItemConfigs","locations":["East - US","South Central US","North Europe","West Europe","Southeast Asia","West - US 2","UK South","Canada Central","Central India","Japan East","Australia - East","Korea Central","France Central","Central US","East US 2","East Asia","West - US","South Africa North","North Central US","Brazil South","Switzerland North","Norway - East","Norway West","Australia Southeast","Australia Central 2","Germany West - Central","Switzerland West","UAE Central","UK West","Japan West","Brazil Southeast","UAE - North","Australia Central","France South","South India","West US 3","Korea - South","Sweden Central","Canada East","Jio India Central","Jio India West","Qatar - Central","West Central US"],"apiVersions":["2020-02-02-preview","2020-02-02","2018-05-01-preview","2015-05-01","2014-12-01-preview","2014-08-01","2014-04-01"],"capabilities":"None"},{"resourceType":"components/myFavorites","locations":["East - US","South Central US","North Europe","West Europe","Southeast Asia","West - US 2","UK South","Canada Central","Central India","Japan East","Australia - East","Korea Central","France Central","Central US","East US 2","East Asia","West - US","South Africa North","North Central US","Brazil South","Switzerland North","Norway - East","Norway West","Australia Southeast","Australia Central 2","Germany West - Central","Switzerland West","UAE Central","UK West","Japan West","Brazil Southeast","UAE - North","Australia Central","France South","South India","West US 3","Korea - South","Sweden Central","Canada East","Jio India Central","Jio India West","Qatar - Central","West Central US"],"apiVersions":["2020-02-02-preview","2020-02-02","2018-05-01-preview","2015-05-01","2014-12-01-preview","2014-08-01","2014-04-01"],"capabilities":"None"},{"resourceType":"components/operations","locations":["Australia - Central 2","Australia Central","Australia East","Australia Southeast","Brazil - South","Brazil Southeast","Canada Central","Canada East","Central India","Central - US","East Asia","East US 2","East US","France Central","France South","Germany - West Central","Japan East","Japan West","Jio India Central","Jio India West","Korea - Central","Korea South","North Central US","North Europe","Norway East","Norway - West","South Africa North","South Central US","South India","Southeast Asia","Sweden - Central","Switzerland North","Switzerland West","UAE Central","UAE North","UK - South","UK West","West Europe","West US 2","West US 3","West US","Qatar Central","West - Central US"],"apiVersions":["2020-02-02-preview","2020-02-02","2018-05-01-preview","2015-05-01","2014-12-01-preview","2014-08-01","2014-04-01"],"capabilities":"None"},{"resourceType":"components/exportConfiguration","locations":["East - US","South Central US","North Europe","West Europe","Southeast Asia","West - US 2","UK South","Canada Central","Central India","Japan East","Australia - East","Korea Central","France Central","Central US","East US 2","East Asia","West - US","South Africa North","North Central US","Brazil South","Switzerland North","Norway - East","Norway West","Australia Southeast","Australia Central 2","Germany West - Central","Switzerland West","UAE Central","UK West","Japan West","Brazil Southeast","UAE - North","Australia Central","France South","South India","West US 3","Korea - South","Sweden Central","Canada East","Jio India Central","Jio India West","Qatar - Central","West Central US"],"apiVersions":["2020-02-02-preview","2020-02-02","2018-05-01-preview","2015-05-01","2014-12-01-preview","2014-08-01","2014-04-01"],"capabilities":"None"},{"resourceType":"components/purge","locations":["Australia - Central 2","Australia Central","Australia East","Australia Southeast","Brazil - South","Brazil Southeast","Canada Central","Canada East","Central India","Central - US","East Asia","East US 2","East US","France Central","France South","Germany - West Central","Japan East","Japan West","Jio India Central","Jio India West","Korea - Central","Korea South","North Central US","North Europe","Norway East","Norway - West","South Africa North","South Central US","South India","Southeast Asia","Sweden - Central","Switzerland North","Switzerland West","UAE Central","UAE North","UK - South","UK West","West Europe","West US 2","West US 3","West US","Qatar Central","West - Central US"],"apiVersions":["2020-02-02-preview","2020-02-02","2018-05-01-preview","2015-05-01","2014-12-01-preview","2014-08-01","2014-04-01"],"capabilities":"None"},{"resourceType":"components/api","locations":["Australia - Central 2","Australia Central","Australia East","Australia Southeast","Brazil - South","Brazil Southeast","Canada Central","Canada East","Central India","Central - US","East Asia","East US 2","East US","France Central","France South","Germany - West Central","Japan East","Japan West","Jio India Central","Jio India West","Korea - Central","Korea South","North Central US","North Europe","Norway East","Norway - West","South Africa North","South Central US","South India","Southeast Asia","Sweden - Central","Switzerland North","Switzerland West","UAE Central","UAE North","UK - South","UK West","West Europe","West US 2","West US 3","West US","Qatar Central","West - Central US"],"apiVersions":["2020-02-02-preview","2020-02-02","2018-05-01-preview","2015-05-01","2014-12-01-preview","2014-08-01","2014-04-01"],"capabilities":"None"},{"resourceType":"components/aggregate","locations":["East - US","South Central US","North Europe","West Europe","Southeast Asia","West - US 2","UK South","Canada Central","Central India","Japan East","Australia - East","Korea Central","France Central","Central US","East US 2","East Asia","West - US","South Africa North","North Central US","Brazil South","Switzerland North","Norway - East","Norway West","Australia Southeast","Australia Central 2","Germany West - Central","Switzerland West","UAE Central","UK West","Japan West","Brazil Southeast","UAE - North","Australia Central","France South","South India","West US 3","Korea - South","Sweden Central","Canada East","Jio India Central","Jio India West","Qatar - Central","West Central US"],"apiVersions":["2020-02-02-preview","2020-02-02","2018-05-01-preview","2015-05-01","2014-12-01-preview","2014-08-01","2014-04-01"],"capabilities":"None"},{"resourceType":"components/metricDefinitions","locations":["East - US","South Central US","North Europe","West Europe","Southeast Asia","West - US 2","UK South","Canada Central","Central India","Japan East","Australia - East","Korea Central","France Central","Central US","East US 2","East Asia","West - US","South Africa North","North Central US","Brazil South","Switzerland North","Norway - East","Norway West","Australia Southeast","Australia Central 2","Germany West - Central","Switzerland West","UAE Central","UK West","Japan West","Brazil Southeast","UAE - North","Australia Central","France South","South India","West US 3","Korea - South","Sweden Central","Canada East","Jio India Central","Jio India West","Qatar - Central","West Central US"],"apiVersions":["2020-02-02-preview","2020-02-02","2018-05-01-preview","2015-05-01","2014-12-01-preview","2014-08-01","2014-04-01"],"capabilities":"None"},{"resourceType":"components/extendQueries","locations":["Australia - Central 2","Australia Central","Australia East","Australia Southeast","Brazil - South","Brazil Southeast","Canada Central","Canada East","Central India","Central - US","East Asia","East US 2","East US","France Central","France South","Germany - West Central","Japan East","Japan West","Jio India Central","Jio India West","Korea - Central","Korea South","North Central US","North Europe","Norway East","Norway - West","South Africa North","South Central US","South India","Southeast Asia","Sweden - Central","Switzerland North","Switzerland West","UAE Central","UAE North","UK - South","UK West","West Europe","West US 2","West US 3","West US","Qatar Central","West - Central US"],"apiVersions":["2020-02-02-preview","2020-02-02","2018-05-01-preview","2015-05-01","2014-12-01-preview","2014-08-01","2014-04-01"],"capabilities":"None"},{"resourceType":"components/apiKeys","locations":["East - US","South Central US","North Europe","West Europe","Southeast Asia","West - US 2","UK South","Canada Central","Central India","Japan East","Australia - East","Korea Central","France Central","Central US","East US 2","East Asia","West - US","South Africa North","North Central US","Brazil South","Switzerland North","Norway - East","Norway West","Australia Southeast","Australia Central 2","Germany West - Central","Switzerland West","UAE Central","UK West","Japan West","Brazil Southeast","UAE - North","Australia Central","France South","South India","West US 3","Korea - South","Sweden Central","Canada East","Jio India Central","Jio India West","Qatar - Central","West Central US"],"apiVersions":["2020-02-02-preview","2020-02-02","2018-05-01-preview","2015-05-01","2014-12-01-preview","2014-08-01","2014-04-01"],"capabilities":"None"},{"resourceType":"components/myAnalyticsItems","locations":["East - US","South Central US","North Europe","West Europe","Southeast Asia","West - US 2","UK South","Canada Central","Central India","Japan East","Australia - East","Korea Central","France Central","Central US","East US 2","East Asia","West - US","South Africa North","North Central US","Brazil South","Switzerland North","Norway - East","Norway West","Australia Southeast","Australia Central 2","Germany West - Central","Switzerland West","UAE Central","UK West","Japan West","Brazil Southeast","UAE - North","Australia Central","France South","South India","West US 3","Korea - South","Sweden Central","Canada East","Jio India Central","Jio India West","Qatar - Central","West Central US"],"apiVersions":["2020-02-02-preview","2020-02-02","2018-05-01-preview","2015-05-01","2014-12-01-preview","2014-08-01","2014-04-01"],"capabilities":"None"},{"resourceType":"components/favorites","locations":["East - US","South Central US","North Europe","West Europe","Southeast Asia","West - US 2","UK South","Canada Central","Central India","Japan East","Australia - East","Korea Central","France Central","Central US","East US 2","East Asia","West - US","South Africa North","North Central US","Brazil South","Switzerland North","Norway - East","Norway West","Australia Southeast","Australia Central 2","Germany West - Central","Switzerland West","UAE Central","UK West","Japan West","Brazil Southeast","UAE - North","Australia Central","France South","South India","West US 3","Korea - South","Sweden Central","Canada East","Jio India Central","Jio India West","Qatar - Central","West Central US"],"apiVersions":["2020-02-02-preview","2020-02-02","2018-05-01-preview","2015-05-01","2014-12-01-preview","2014-08-01","2014-04-01"],"capabilities":"None"},{"resourceType":"components/defaultWorkItemConfig","locations":["East - US","South Central US","North Europe","West Europe","Southeast Asia","West - US 2","UK South","Canada Central","Central India","Japan East","Australia - East","Korea Central","France Central","Central US","East US 2","East Asia","West - US","South Africa North","North Central US","Brazil South","Switzerland North","Norway - East","Norway West","Australia Southeast","Australia Central 2","Germany West - Central","Switzerland West","UAE Central","UK West","Japan West","Brazil Southeast","UAE - North","Australia Central","France South","South India","West US 3","Korea - South","Sweden Central","Canada East","Jio India Central","Jio India West","Qatar - Central","West Central US"],"apiVersions":["2020-02-02-preview","2020-02-02","2018-05-01-preview","2015-05-01","2014-12-01-preview","2014-08-01","2014-04-01"],"capabilities":"None"},{"resourceType":"components/annotations","locations":["East - US","South Central US","North Europe","West Europe","Southeast Asia","West - US 2","UK South","Canada Central","Central India","Japan East","Australia - East","Korea Central","France Central","Central US","East US 2","East Asia","West - US","South Africa North","North Central US","Brazil South","Switzerland North","Norway - East","Norway West","Australia Southeast","Australia Central 2","Germany West - Central","Switzerland West","UAE Central","UK West","Japan West","Brazil Southeast","UAE - North","Australia Central","France South","South India","West US 3","Korea - South","Sweden Central","Canada East","Jio India Central","Jio India West","Qatar - Central","West Central US"],"apiVersions":["2020-02-02-preview","2020-02-02","2018-05-01-preview","2015-05-01","2014-12-01-preview","2014-08-01","2014-04-01"],"capabilities":"None"},{"resourceType":"components/proactiveDetectionConfigs","locations":["East - US","South Central US","North Europe","West Europe","Southeast Asia","West - US 2","UK South","Canada Central","Central India","Japan East","Australia - East","Korea Central","France Central","Central US","East US 2","East Asia","West - US","South Africa North","North Central US","Brazil South","Switzerland North","Norway - East","Norway West","Australia Southeast","Australia Central 2","Germany West - Central","Switzerland West","UAE Central","UK West","Japan West","Brazil Southeast","UAE - North","Australia Central","France South","South India","West US 3","Korea - South","Sweden Central","Canada East","Jio India Central","Jio India West","Qatar - Central","West Central US"],"apiVersions":["2020-02-02-preview","2020-02-02","2018-05-01-preview","2015-05-01","2014-12-01-preview","2014-08-01","2014-04-01"],"capabilities":"None"},{"resourceType":"components/move","locations":["East - US","South Central US","North Europe","West Europe","Southeast Asia","West - US 2","UK South","Canada Central","Central India","Japan East","Australia - East","Korea Central","France Central","Central US","East US 2","East Asia","West - US","South Africa North","North Central US","Brazil South","Switzerland North","Norway - East","Norway West","Australia Southeast","Australia Central 2","Germany West - Central","Switzerland West","UAE Central","UK West","Japan West","Brazil Southeast","UAE - North","Australia Central","France South","South India","West US 3","Korea - South","Sweden Central","Canada East","Jio India Central","Jio India West","Qatar - Central","West Central US"],"apiVersions":["2020-02-02-preview","2020-02-02","2018-05-01-preview","2015-05-01","2014-12-01-preview","2014-08-01","2014-04-01"],"capabilities":"None"},{"resourceType":"components/currentBillingFeatures","locations":["East - US","South Central US","North Europe","West Europe","Southeast Asia","West - US 2","UK South","Canada Central","Central India","Japan East","Australia - East","Korea Central","France Central","Central US","East US 2","East Asia","West - US","South Africa North","North Central US","Brazil South","Switzerland North","Norway - East","Norway West","Australia Southeast","Australia Central 2","Germany West - Central","Switzerland West","UAE Central","UK West","Japan West","Brazil Southeast","UAE - North","Australia Central","France South","South India","West US 3","Korea - South","Sweden Central","Canada East","Jio India Central","Jio India West","Qatar - Central","West Central US"],"apiVersions":["2020-02-02-preview","2020-02-02","2018-05-01-preview","2015-05-01","2014-12-01-preview","2014-08-01","2014-04-01"],"capabilities":"None"},{"resourceType":"components/quotaStatus","locations":["East - US","South Central US","North Europe","West Europe","Southeast Asia","West - US 2","UK South","Canada Central","Central India","Japan East","Australia - East","Korea Central","France Central","Central US","East US 2","East Asia","West - US","South Africa North","North Central US","Brazil South","Switzerland North","Norway - East","Norway West","Australia Southeast","Australia Central 2","Germany West - Central","Switzerland West","UAE Central","UK West","Japan West","Brazil Southeast","UAE - North","Australia Central","France South","South India","West US 3","Korea - South","Sweden Central","Canada East","Jio India Central","Jio India West","Qatar - Central","Germany North","West Central US"],"apiVersions":["2020-02-02-preview","2020-02-02","2018-05-01-preview","2015-05-01","2014-12-01-preview","2014-08-01","2014-04-01"],"capabilities":"None"},{"resourceType":"components/featureCapabilities","locations":["East - US","South Central US","North Europe","West Europe","Southeast Asia","West - US 2","UK South","Canada Central","Central India","Japan East","Australia - East","Korea Central","France Central","Central US","East US 2","East Asia","West - US","South Africa North","North Central US","Brazil South","Switzerland North","Norway - East","Norway West","Australia Southeast","Australia Central 2","Germany West - Central","Switzerland West","UAE Central","UK West","Japan West","Brazil Southeast","UAE - North","Australia Central","France South","South India","West US 3","Korea - South","Sweden Central","Canada East","Jio India Central","Jio India West","Qatar - Central","West Central US"],"apiVersions":["2020-02-02-preview","2020-02-02","2018-05-01-preview","2015-05-01","2014-12-01-preview","2014-08-01","2014-04-01"],"capabilities":"None"},{"resourceType":"components/getAvailableBillingFeatures","locations":["East - US","South Central US","North Europe","West Europe","Southeast Asia","West - US 2","UK South","Canada Central","Central India","Japan East","Australia - East","Korea Central","France Central","Central US","East US 2","East Asia","West - US","South Africa North","North Central US","Brazil South","Switzerland North","Norway - East","Norway West","Australia Southeast","Australia Central 2","Germany West - Central","Switzerland West","UAE Central","UK West","Japan West","Brazil Southeast","UAE - North","Australia Central","France South","South India","West US 3","Korea - South","Sweden Central","Canada East","Jio India Central","Jio India West","Qatar - Central","West Central US"],"apiVersions":["2020-02-02-preview","2020-02-02","2018-05-01-preview","2015-05-01","2014-12-01-preview","2014-08-01","2014-04-01"],"capabilities":"None"},{"resourceType":"webtests","locations":["East - US","South Central US","North Europe","West Europe","Southeast Asia","West - US 2","UK South","Central India","Canada Central","Japan East","Australia - East","Korea Central","France Central","Central US","East US 2","East Asia","West - US","South Africa North","North Central US","Brazil South","Switzerland North","Norway - East","Norway West","Australia Southeast","Australia Central 2","Germany West - Central","Switzerland West","UAE Central","UK West","Brazil Southeast","Japan - West","UAE North","Australia Central","France South","South India","West US - 3","Korea South","Sweden Central","Canada East","Jio India Central","Jio India - West","Qatar Central","West Central US"],"apiVersions":["2022-06-15","2018-05-01-preview","2015-05-01","2014-08-01","2014-04-01"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"webtests/getTestResultFile","locations":["East - US","South Central US","North Europe","West Europe","Southeast Asia","West - US 2","UK South","Central India","Canada Central","Japan East","Australia - East","Korea Central","France Central","East US 2","East Asia","West US","Central - US","South Africa North","North Central US","West Central US"],"apiVersions":["2020-02-10-preview"],"capabilities":"None"},{"resourceType":"scheduledqueryrules","locations":["West - Central US","Australia East","Central US","East US","East US 2","France Central","Japan - East","North Europe","South Africa North","Southeast Asia","UK South","West - Europe","West US 2","Central India","Canada Central","Australia Southeast","South - Central US","Australia Central","Korea Central","East Asia","West US","North - Central US","Brazil South","UK West","Switzerland North","Switzerland West","UAE - Central","Germany West Central","Australia Central 2","Brazil SouthEast","Norway - East","UAE North","Japan West","South India","France South","Norway West","West - US 3","Sweden Central","Korea South","Jio India West","Canada East","Jio India - Central","Qatar Central","South Africa West","Germany North","East US 2 EUAP","Central - US EUAP"],"apiVersions":["2023-03-15-preview","2022-08-01-preview","2022-06-15","2021-08-01","2021-02-01-preview","2020-05-01-preview","2018-04-16","2017-09-01-preview"],"defaultApiVersion":"2022-08-01-preview","capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, - SupportsLocation"},{"resourceType":"components/pricingPlans","locations":["East - US","South Central US","North Europe","West Europe","Southeast Asia","West - US 2","UK South","Canada Central","Central India","Japan East","Australia - East","Korea Central","France Central","Central US","East US 2","East Asia","West - US","South Africa North","North Central US","Brazil South","Switzerland North","Norway - East","Norway West","Australia Southeast","Australia Central 2","Germany West - Central","Switzerland West","UAE Central","UK West","Japan West","Brazil Southeast","UAE - North","Australia Central","France South","South India","West US 3","Korea - South","Sweden Central","Canada East","Jio India Central","Jio India West","Qatar - Central","West Central US"],"apiVersions":["2017-10-01"],"capabilities":"None"},{"resourceType":"migrateToNewPricingModel","locations":["East - US","South Central US","North Europe","West Europe","Southeast Asia","West - US 2","West Central US"],"apiVersions":["2017-10-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-10-01"}],"capabilities":"None"},{"resourceType":"rollbackToLegacyPricingModel","locations":["East - US","South Central US","North Europe","West Europe","Southeast Asia","West - US 2","West Central US"],"apiVersions":["2017-10-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-10-01"}],"capabilities":"None"},{"resourceType":"listMigrationdate","locations":["East - US","South Central US","North Europe","West Europe","Southeast Asia","West - US 2","West Central US"],"apiVersions":["2017-10-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-10-01"}],"capabilities":"None"},{"resourceType":"logprofiles","locations":[],"apiVersions":["2016-03-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2016-03-01"}],"capabilities":"None"},{"resourceType":"migratealertrules","locations":[],"apiVersions":["2018-03-01"],"capabilities":"None"},{"resourceType":"metricalerts","locations":["Global","West - Europe","North Europe","Sweden Central","Germany West Central","East US 2 - EUAP"],"apiVersions":["2018-03-01","2017-09-01-preview"],"capabilities":"SupportsTags, - SupportsLocation"},{"resourceType":"alertrules","locations":["West US","East - US","North Europe","West Europe","East Asia","Southeast Asia","Japan East","Japan - West","North Central US","South Central US","East US 2","Central US","Australia - East","Australia Southeast","Brazil South","UK South","UK West","South India","Central - India","West India","Canada East","Canada Central","West Central US","West - US 2","Korea South","Korea Central","Australia Central","Australia Central - 2","France Central","France South","South Africa North","UAE Central","UAE - North","East US 2 EUAP","Central US EUAP"],"apiVersions":["2016-03-01","2014-04-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2016-03-01"}],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"autoscalesettings","locations":["West - US","East US","North Europe","South Central US","East US 2","Central US","Australia - Southeast","Brazil South","UK South","UK West","South India","Central India","West - India","Canada East","Canada Central","West Central US","West US 2","Korea - South","Korea Central","Australia Central","Australia Central 2","France Central","France - South","West Europe","East Asia","Southeast Asia","Japan East","Japan West","North - Central US","Australia East","South Africa North","UAE Central","UAE North","Switzerland - North","Switzerland West","Germany North","Germany West Central","Norway East","Norway - West","West US 3","Jio India West","Sweden Central","Qatar Central","Poland - Central","East US 2 EUAP","Central US EUAP"],"apiVersions":["2023-01-01-preview","2022-10-01","2021-05-01-preview","2015-04-01","2014-04-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2015-04-01"}],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"eventtypes","locations":[],"apiVersions":["2017-03-01-preview","2016-09-01-preview","2015-04-01","2014-11-01","2014-04-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2015-04-01"}],"capabilities":"SupportsExtension"},{"resourceType":"locations","locations":["East - US"],"apiVersions":["2015-04-01","2014-04-01"],"capabilities":"None"},{"resourceType":"locations/operationResults","locations":[],"apiVersions":["2015-04-01","2014-04-01"],"capabilities":"None"},{"resourceType":"vmInsightsOnboardingStatuses","locations":[],"apiVersions":["2018-11-27-preview"],"capabilities":"SupportsExtension"},{"resourceType":"operations","locations":[],"apiVersions":["2015-04-01","2014-06-01","2014-04-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2015-04-01"}],"capabilities":"None"},{"resourceType":"diagnosticSettings","locations":["West - US","East US","North Europe","West Europe","East Asia","Southeast Asia","Japan - East","Japan West","North Central US","South Central US","East US 2","Central - US","Australia East","Australia Southeast","Brazil South","UK South","UK West","South - India","Central India","West India","Canada East","Canada Central","West Central - US","West US 2","Korea South","Korea Central","Australia Central","Australia - Central 2","France Central","France South","South Africa North","UAE Central","UAE - North","Switzerland North","Switzerland West","Germany North","Germany West - Central","Norway East","Norway West","West US 3","Jio India West","Sweden - Central","Qatar Central","Poland Central","East US 2 EUAP","Central US EUAP"],"apiVersions":["2021-05-01-preview","2017-05-01-preview","2016-09-01","2015-07-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2016-09-01"}],"capabilities":"SupportsExtension"},{"resourceType":"diagnosticSettingsCategories","locations":["West - US","East US","North Europe","West Europe","East Asia","Southeast Asia","Japan - East","Japan West","North Central US","South Central US","East US 2","Central - US","Australia East","Australia Southeast","Brazil South","UK South","UK West","South - India","Central India","West India","Canada East","Canada Central","West Central - US","West US 2","Korea South","Korea Central","Australia Central","Australia - Central 2","France Central","France South","South Africa North","UAE Central","UAE - North","Switzerland North","Switzerland West","Germany North","Germany West - Central","Norway East","Norway West","West US 3","Jio India West","Sweden - Central","Qatar Central","Poland Central","East US 2 EUAP","Central US EUAP"],"apiVersions":["2021-05-01-preview","2017-05-01-preview"],"capabilities":"SupportsExtension"},{"resourceType":"extendedDiagnosticSettings","locations":["West - US","East US","North Europe","West Europe","East Asia","Southeast Asia","Japan - East","Japan West","North Central US","South Central US","East US 2","Central - US","Australia East","Australia Southeast","Brazil South","UK South","UK West","South - India","Central India","West India","Canada East","Canada Central","West Central - US","West US 2","Korea South","Korea Central","Australia Central","Australia - Central 2","France Central","France South","South Africa North","UAE Central","UAE - North","Switzerland North","Switzerland West","Germany North","Germany West - Central","Norway East","Norway West","West US 3","Jio India West","Sweden - Central","Qatar Central","Poland Central","East US 2 EUAP","Central US EUAP"],"apiVersions":["2017-02-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-02-01"}],"capabilities":"SupportsExtension"},{"resourceType":"metricDefinitions","locations":["East - US","West US","West Europe","East Asia","Southeast Asia","Japan East","Japan - West","North Central US","South Central US","East US 2","Canada East","Canada - Central","Central US","Australia East","Australia Southeast","Australia Central","Australia - Central 2","Brazil South","Brazil Southeast","South India","Central India","West - India","North Europe","West US 2","Jio India West","Sweden Central","West - US 3","West Central US","Korea South","Korea Central","UK South","UK West","France - Central","France South","South Africa North","South Africa West","UAE Central","UAE - North","Qatar Central","Poland Central","Switzerland North","Switzerland West","Germany - North","Germany West Central","Norway East","Norway West","East US 2 EUAP","Central - US EUAP"],"apiVersions":["2022-04-01-preview","2021-05-01","2018-01-01","2017-12-01-preview","2017-09-01-preview","2017-05-01-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-01-01"}],"capabilities":"SupportsExtension"},{"resourceType":"logDefinitions","locations":["West - US","East US","North Europe","West Europe","East Asia","Southeast Asia","Japan - East","Japan West","North Central US","South Central US","East US 2","Central - US","Australia East","Australia Southeast","Brazil South","UK South","UK West","South - India","Central India","West India","Canada East","Canada Central","West Central - US","West US 2","Korea South","Korea Central","Australia Central","Australia - Central 2","France Central","France South","East US 2 EUAP","Central US EUAP"],"apiVersions":["2015-07-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2015-07-01"}],"capabilities":"SupportsExtension"},{"resourceType":"eventCategories","locations":[],"apiVersions":["2015-04-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2015-04-01"}],"capabilities":"None"},{"resourceType":"metrics","locations":["East - US","West US","West Europe","East Asia","Southeast Asia","Japan East","Japan - West","North Central US","South Central US","East US 2","Canada East","Canada - Central","Central US","Australia East","Australia Southeast","Australia Central","Australia - Central 2","Brazil South","Brazil Southeast","South India","Central India","West - India","North Europe","West US 2","Jio India West","Sweden Central","West - US 3","West Central US","Korea South","Korea Central","UK South","UK West","France - Central","France South","South Africa North","South Africa West","UAE Central","UAE - North","Qatar Central","Poland Central","Switzerland North","Switzerland West","Germany - North","Germany West Central","Norway East","Norway West","East US 2 EUAP","Central - US EUAP"],"apiVersions":["2021-05-01","2019-07-01","2018-01-01","2017-12-01-preview","2017-09-01-preview","2017-05-01-preview","2016-09-01","2016-06-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-01-01"}],"capabilities":"SupportsExtension"},{"resourceType":"metricbatch","locations":["East - US 2 EUAP","Central US EUAP"],"apiVersions":["2019-01-01-preview"],"capabilities":"None"},{"resourceType":"metricNamespaces","locations":["East - US","West US","West Europe","East Asia","Southeast Asia","Japan East","Japan - West","North Central US","South Central US","East US 2","Canada East","Canada - Central","Central US","Australia East","Australia Southeast","Australia Central","Australia - Central 2","Brazil South","Brazil Southeast","South India","Central India","West - India","North Europe","West US 2","Jio India West","Sweden Central","West - US 3","West Central US","Korea South","Korea Central","UK South","UK West","France - Central","France South","South Africa North","South Africa West","UAE Central","UAE - North","Qatar Central","Poland Central","Switzerland North","Switzerland West","Germany - North","Germany West Central","Norway East","Norway West","East US 2 EUAP","Central - US EUAP"],"apiVersions":["2017-12-01-preview"],"capabilities":"SupportsExtension"},{"resourceType":"notificationstatus","locations":[],"apiVersions":["2023-01-01","2022-06-01","2022-04-01","2021-09-01"],"capabilities":"None"},{"resourceType":"createnotifications","locations":[],"apiVersions":["2023-01-01","2022-06-01","2022-04-01","2021-09-01"],"capabilities":"None"},{"resourceType":"tenantactiongroups","locations":[],"apiVersions":["2023-03-01-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2023-03-01-preview"}],"capabilities":"SupportsExtension"},{"resourceType":"actiongroups","locations":["Global","Sweden - Central","Germany West Central","North Central US","South Central US","East - US 2 EUAP","Central US EUAP"],"apiVersions":["2023-01-01","2022-06-01","2022-04-01","2021-09-01","2019-06-01","2019-03-01","2018-09-01","2018-03-01","2017-04-01","2017-03-01-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-04-01"}],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"activityLogAlerts","locations":["Global"],"apiVersions":["2020-10-01","2017-04-01","2017-03-01-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-04-01"}],"capabilities":"SupportsTags, - SupportsLocation"},{"resourceType":"metricbaselines","locations":["West Europe","North - Europe"],"apiVersions":["2019-03-01","2018-09-01"],"capabilities":"SupportsExtension"},{"resourceType":"workbooks","locations":["West - Europe","South Central US","East US","North Europe","Southeast Asia","West - US 2","Japan East","Australia East","Korea Central","France Central","Central - US","East US 2","East Asia","West US","Canada Central","Central India","UK - South","UK West","South Africa North","North Central US","Brazil South","Switzerland - North","Norway East","Norway West","Australia Southeast","Australia Central - 2","Germany West Central","Switzerland West","UAE Central","Japan West","Brazil - Southeast","UAE North","Australia Central","France South","South India","West - US 3","Korea South","Canada East","Sweden Central","Jio India Central","Jio - India West","Qatar Central","West Central US","Central US EUAP","East US 2 - EUAP"],"apiVersions":["2022-04-01","2021-08-01","2021-03-08","2020-10-20","2020-02-12","2018-06-17-preview","2018-06-01-preview"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"workbooktemplates","locations":["West - Europe","South Central US","East US","North Europe","Southeast Asia","West - US 2","Japan East","Australia East","Korea Central","France Central","Central - US","East US 2","East Asia","West US","Canada Central","Central India","UK - South","UK West","South Africa North","North Central US","Brazil South","Switzerland - North","Norway East","Norway West","Australia Southeast","Australia Central - 2","Germany West Central","Switzerland West","UAE Central","Japan West","Brazil - Southeast","UAE North","Australia Central","France South","South India","West - US 3","Korea South","Canada East","Sweden Central","Jio India Central","Jio - India West","Qatar Central","West Central US"],"apiVersions":["2020-11-20","2019-10-17-preview"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"myWorkbooks","locations":["West - Europe","South Central US","East US","North Europe","Southeast Asia","West - US 2","UK South","Canada Central","Central India","Japan East","Australia - East","Korea Central","France Central","Central US","East US 2","East Asia","West - US","South Africa North","North Central US","Brazil South","Switzerland North","Norway - East","Norway West","Australia Southeast","West Central US","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2021-03-08","2020-10-20","2020-02-12","2018-06-17-preview","2018-06-15-preview","2018-06-01-preview","2016-06-15-preview"],"capabilities":"SupportsExtension"},{"resourceType":"logs","locations":["East - US","East US 2","West US","Central US","North Central US","South Central US","North - Europe","West Europe","East Asia","Southeast Asia","Japan East","Japan West","Australia - East","Australia Southeast","Brazil South","South India","Central India","West - India","Canada Central","Canada East","West US 2","West Central US","UK South","UK - West","Korea Central","Korea South","France Central","France South","Australia - Central","South Africa North","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-03-01-preview"],"capabilities":"SupportsExtension"},{"resourceType":"transactions","locations":["East - US","South Central US","North Europe","West Europe","Southeast Asia","West - US 2","UK South","Central India","Canada Central","Japan East","Australia - East","Korea Central","France Central","East US 2","East Asia","West US","Central - US","South Africa North","North Central US","East US 2 EUAP","Central US EUAP","West - Central US"],"apiVersions":["2019-10-17-preview"],"capabilities":"SupportsExtension"},{"resourceType":"topology","locations":["East - US","South Central US","North Europe","West Europe","Southeast Asia","West - US 2","UK South","Central India","Canada Central","Japan East","Australia - East","Korea Central","France Central","East US 2","East Asia","West US","Central - US","South Africa North","North Central US","East US 2 EUAP","Central US EUAP","West - Central US"],"apiVersions":["2019-10-17-preview"],"capabilities":"SupportsExtension"},{"resourceType":"generateLiveToken","locations":["West - Central US"],"apiVersions":["2021-10-14","2020-06-02-preview"],"capabilities":"SupportsExtension"},{"resourceType":"monitoredObjects","locations":[],"apiVersions":["2021-09-01-preview"],"defaultApiVersion":"2021-09-01-preview","capabilities":"None"},{"resourceType":"dataCollectionRules","locations":["Australia - Southeast","Canada Central","Japan East","Australia East","Central India","Germany - West Central","North Central US","South Central US","East US","Central US","West - Europe","West US 2","Southeast Asia","East US 2","UK South","North Europe","West - US","Australia Central","West Central US","East Asia","UK West","Korea Central","France - Central","South Africa North","Switzerland North","Australia Central 2","Brazil - Southeast","Canada East","France South","Korea South","Norway West","UAE North","Japan - West","Norway East","Switzerland West","Brazil South","Jio India Central","Jio - India West","Sweden Central","South India","UAE Central","West US 3","West - India","Qatar Central","East US 2 EUAP","Central US EUAP"],"apiVersions":["2022-06-01","2021-09-01-preview","2021-04-01","2019-11-01-preview"],"defaultApiVersion":"2021-09-01-preview","capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, - SupportsLocation"},{"resourceType":"dataCollectionRuleAssociations","locations":["Australia - Southeast","Canada Central","Japan East","Australia East","Central India","Germany - West Central","North Central US","South Central US","East US","Central US","West - Europe","West US 2","Southeast Asia","East US 2","UK South","North Europe","West - US","Australia Central","West Central US","East Asia","UK West","Korea Central","France - Central","South Africa North","Switzerland North","Brazil South","Australia - Central 2","Brazil Southeast","Canada East","France South","Korea South","Norway - West","UAE North","Japan West","Norway East","Switzerland West","Jio India - Central","Jio India West","Sweden Central","Germany North","South India","UAE - Central","West US 3","West India","Qatar Central","East US 2 EUAP","Central - US EUAP"],"apiVersions":["2022-06-01","2021-09-01-preview","2021-04-01","2019-11-01-preview"],"defaultApiVersion":"2021-09-01-preview","capabilities":"SupportsExtension"},{"resourceType":"dataCollectionEndpoints","locations":["Australia - Southeast","Canada Central","Japan East","Australia East","Central India","Germany - West Central","North Central US","South Central US","East US","Central US","West - Europe","West US 2","Southeast Asia","East US 2","UK South","North Europe","West - US","Australia Central","West Central US","East Asia","UK West","Korea Central","France - Central","South Africa North","Switzerland North","Brazil South","Australia - Central 2","Brazil Southeast","Canada East","France South","Korea South","Norway - West","UAE North","Japan West","Norway East","Switzerland West","Jio India - Central","Jio India West","Sweden Central","Germany North","South India","UAE - Central","West US 3","West India","Qatar Central","East US 2 EUAP","Central - US EUAP"],"apiVersions":["2022-06-01","2021-09-01-preview","2021-04-01"],"defaultApiVersion":"2021-09-01-preview","capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"dataCollectionEndpoints/scopedPrivateLinkProxies","locations":["Australia - Southeast","Canada Central","Japan East","Australia East","Central India","Germany - West Central","North Central US","South Central US","East US","Central US","West - Europe","West US 2","Southeast Asia","East US 2","UK South","North Europe","West - US","Australia Central","West Central US","East Asia","UK West","Korea Central","France - Central","South Africa North","Switzerland North","Brazil South","Australia - Central 2","Brazil Southeast","Canada East","France South","Korea South","Norway - West","UAE North","Japan West","Norway East","Switzerland West","Jio India - Central","Jio India West","Sweden Central","Germany North","South India","West - India","UAE Central","West US 3","Qatar Central","East US 2 EUAP","Central - US EUAP"],"apiVersions":["2021-09-01-preview","2021-04-01"],"defaultApiVersion":"2021-09-01-preview","capabilities":"None"},{"resourceType":"components/linkedstorageaccounts","locations":["East - US","South Central US","North Europe","West Europe","Southeast Asia","West - US 2","UK South","Canada Central","Central India","Japan East","Australia - East","Korea Central","France Central","Central US","East US 2","East Asia","West - US","South Africa North","North Central US","Brazil South","Switzerland North","Norway - East","Norway West","Australia Southeast","West Central US"],"apiVersions":["2020-03-01-preview"],"capabilities":"None"},{"resourceType":"privateLinkScopes","locations":["Global"],"apiVersions":["2021-09-01","2021-07-01-preview","2019-10-17-preview"],"defaultApiVersion":"2019-10-17-preview","capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"privateLinkScopes/privateEndpointConnections","locations":["Global"],"apiVersions":["2021-09-01","2021-07-01-preview","2019-10-17-preview"],"defaultApiVersion":"2019-10-17-preview","capabilities":"None"},{"resourceType":"privateLinkScopes/privateEndpointConnectionProxies","locations":["Global"],"apiVersions":["2021-09-01","2021-07-01-preview","2019-10-17-preview"],"defaultApiVersion":"2019-10-17-preview","capabilities":"None"},{"resourceType":"privateLinkScopes/scopedResources","locations":["Global"],"apiVersions":["2021-09-01","2021-07-01-preview","2019-10-17-preview"],"defaultApiVersion":"2019-10-17-preview","capabilities":"None"},{"resourceType":"privateLinkScopeOperationStatuses","locations":["Global"],"apiVersions":["2021-09-01","2021-07-01-preview","2019-10-17-preview"],"defaultApiVersion":"2019-10-17-preview","capabilities":"None"},{"resourceType":"locations/notifyNetworkSecurityPerimeterUpdatesAvailable","locations":["East - US 2 EUAP"],"apiVersions":["2021-10-01"],"defaultApiVersion":"2021-10-01","capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' - headers: - cache-control: - - no-cache - content-length: - - '50435' + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2023-03-02-preview + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\",\n + \ \"location\": \"westus2\",\n \"name\": \"cliakstest000002\",\n \"type\": + \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": + \"Succeeded\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": + \"1.25.6\",\n \"currentKubernetesVersion\": \"1.25.6\",\n \"dnsPrefix\": + \"cliakstest-clitest000001-79a739\",\n \"fqdn\": \"cliakstest-clitest000001-79a739-iqxcydbj.hcp.westus2.azmk8s.io\",\n + \ \"azurePortalFQDN\": \"cliakstest-clitest000001-79a739-iqxcydbj.portal.hcp.westus2.azmk8s.io\",\n + \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": + 3,\n \"vmSize\": \"standard_d2s_v3\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": + \"Managed\",\n \"kubeletDiskType\": \"OS\",\n \"workloadRuntime\": + \"OCIContainer\",\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n + \ \"enableAutoScaling\": false,\n \"provisioningState\": \"Succeeded\",\n + \ \"powerState\": {\n \"code\": \"Running\"\n },\n \"orchestratorVersion\": + \"1.25.6\",\n \"currentOrchestratorVersion\": \"1.25.6\",\n \"enableNodePublicIP\": + false,\n \"enableCustomCATrust\": false,\n \"mode\": \"System\",\n + \ \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\": false,\n + \ \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"nodeImageVersion\": + \"AKSUbuntu-2204gen2containerd-202304.20.0\",\n \"upgradeSettings\": {},\n + \ \"enableFIPS\": false,\n \"networkProfile\": {}\n }\n ],\n \"linuxProfile\": + {\n \"adminUsername\": \"azureuser\",\n \"ssh\": {\n \"publicKeys\": + [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCvSmDv2/j+2YOKt8Upeh5kRqWfa6Ruqyux98ejQPu6RssXtqmdYZTCMo0U0klQpXFIJI3ASBtFvMX3lBtqKLbjehzIirpjkesUCQvEEgKOd6iGp9ORvMr8FCn0RZr1Idw1dp7KmsCcxbMVPc5YGyvkrBtWl0BI0W/gVQxQ3+iF+NBrwuYAeLVnjmxp6moiCElvxm9ehp00Sr+7hpjPjzLi7qpDN2FITOggiXhrvXWJI/2cqfcPTvDXDQH+e6+avyApRPa/OvkCM7Jm/gXdUzes0xm1Y6aI61hzc8m9K1QjqleMeHPDTUYLCb8cCEnn70itMEkfuqwp6yftFWxCcylR + azcli_aks_live_test@example.com\\n\"\n }\n ]\n }\n },\n \"servicePrincipalProfile\": + {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \"nodeResourceGroup\": + \"MC_clitest000001_cliakstest000002_westus2\",\n \"enableRBAC\": true,\n + \ \"enablePodSecurityPolicy\": false,\n \"enableLTS\": \"KubernetesOfficial\",\n + \ \"networkProfile\": {\n \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\": + \"Standard\",\n \"loadBalancerProfile\": {\n \"managedOutboundIPs\": + {\n \"count\": 1\n },\n \"effectiveOutboundIPs\": [\n {\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.Network/publicIPAddresses/73659bc3-b205-4e4a-a308-90499313bb61\"\n + \ }\n ],\n \"backendPoolType\": \"nodeIPConfiguration\"\n },\n + \ \"podCidr\": \"10.244.0.0/16\",\n \"serviceCidr\": \"10.0.0.0/16\",\n + \ \"dnsServiceIP\": \"10.0.0.10\",\n \"dockerBridgeCidr\": \"172.17.0.1/16\",\n + \ \"outboundType\": \"loadBalancer\",\n \"podCidrs\": [\n \"10.244.0.0/16\"\n + \ ],\n \"serviceCidrs\": [\n \"10.0.0.0/16\"\n ],\n \"ipFamilies\": + [\n \"IPv4\"\n ]\n },\n \"maxAgentPools\": 100,\n \"identityProfile\": + {\n \"kubeletidentity\": {\n \"resourceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cliakstest000002-agentpool\",\n + \ \"clientId\":\"00000000-0000-0000-0000-000000000001\",\n \"objectId\":\"00000000-0000-0000-0000-000000000001\"\n + \ }\n },\n \"disableLocalAccounts\": false,\n \"securityProfile\": + {},\n \"storageProfile\": {\n \"diskCSIDriver\": {\n \"enabled\": + true,\n \"version\": \"v1\"\n },\n \"fileCSIDriver\": {\n \"enabled\": + true\n },\n \"snapshotController\": {\n \"enabled\": true\n }\n + \ },\n \"oidcIssuerProfile\": {\n \"enabled\": false\n },\n \"workloadAutoScalerProfile\": + {}\n },\n \"identity\": {\n \"type\": \"SystemAssigned\",\n \"principalId\":\"00000000-0000-0000-0000-000000000001\",\n + \ \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\n },\n \"sku\": + {\n \"name\": \"Base\",\n \"tier\": \"Free\"\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '4158' content-type: - - application/json; charset=utf-8 + - application/json date: - - Tue, 28 Mar 2023 22:07:34 GMT + - Tue, 09 May 2023 20:57:30 GMT expires: - '-1' pragma: - no-cache + server: + - nginx strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked vary: - Accept-Encoding x-content-type-options: @@ -1772,8 +1170,7 @@ interactions: code: 200 message: OK - request: - body: '{"name": "MSProm-WUS2-cliakstest000002", "location": "westus2", "kind": - "Linux", "properties": {}}' + body: null headers: Accept: - '*/*' @@ -1783,62 +1180,87 @@ interactions: - aks update Connection: - keep-alive - Content-Length: - - '98' - Content-Type: - - application/json ParameterSetName: - - --resource-group --name --yes --output --aks-custom-headers --enable-azuremonitormetrics - --enable-managed-identity --enable-windows-recording-rules + - --resource-group --name --yes --output --enable-azuremonitormetrics --enable-managed-identity + --enable-windows-recording-rules User-Agent: - - python/3.10.10 (Linux-5.15.0-1034-azure-x86_64-with-glibc2.31) AZURECLI/2.46.0 - VSTS_7b238909-6802-4b65-b90d-184bca47f458_build_261_0 azuremonitormetrics.create_dce - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionEndpoints/MSProm-WUS2-cliakstest000002?api-version=2021-09-01-preview + - python/3.8.10 (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) AZURECLI/2.48.1 + azuremonitormetrics.check_azuremonitormetrics_profile + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2023-01-01 response: body: - string: '{"properties":{"immutableId":"dce-2d5984ab4af64a2a8004119629bdca5d","configurationAccess":{"endpoint":"https://msprom-wus2-cliakstest000002-ul0j.westus2-1.handler.control.monitor.azure.com"},"logsIngestion":{"endpoint":"https://msprom-wus2-cliakstest000002-ul0j.westus2-1.ingest.monitor.azure.com"},"metricsIngestion":{"endpoint":"https://msprom-wus2-cliakstest000002-ul0j.westus2-1.metrics.ingest.monitor.azure.com"},"networkAcls":{"publicNetworkAccess":"Enabled"},"provisioningState":"Succeeded"},"location":"westus2","kind":"Linux","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionEndpoints/MSProm-WUS2-cliakstest000002","name":"MSProm-WUS2-cliakstest000002","type":"Microsoft.Insights/dataCollectionEndpoints","etag":"\"540116b3-0000-0800-0000-6423652a0000\"","systemData":{"createdBy":"azureclilivetest@azuresdkteam.onmicrosoft.com","createdByType":"User","createdAt":"2023-03-28T22:07:37.3901495Z","lastModifiedBy":"azureclilivetest@azuresdkteam.onmicrosoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-28T22:07:37.3901495Z"}}' + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\",\n + \ \"location\": \"westus2\",\n \"name\": \"cliakstest000002\",\n \"type\": + \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": + \"Succeeded\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": + \"1.25.6\",\n \"currentKubernetesVersion\": \"1.25.6\",\n \"dnsPrefix\": + \"cliakstest-clitest000001-79a739\",\n \"fqdn\": \"cliakstest-clitest000001-79a739-iqxcydbj.hcp.westus2.azmk8s.io\",\n + \ \"azurePortalFQDN\": \"cliakstest-clitest000001-79a739-iqxcydbj.portal.hcp.westus2.azmk8s.io\",\n + \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": + 3,\n \"vmSize\": \"standard_d2s_v3\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": + \"Managed\",\n \"kubeletDiskType\": \"OS\",\n \"workloadRuntime\": + \"OCIContainer\",\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n + \ \"enableAutoScaling\": false,\n \"provisioningState\": \"Succeeded\",\n + \ \"powerState\": {\n \"code\": \"Running\"\n },\n \"orchestratorVersion\": + \"1.25.6\",\n \"currentOrchestratorVersion\": \"1.25.6\",\n \"enableNodePublicIP\": + false,\n \"mode\": \"System\",\n \"enableEncryptionAtHost\": false,\n + \ \"enableUltraSSD\": false,\n \"osType\": \"Linux\",\n \"osSKU\": + \"Ubuntu\",\n \"nodeImageVersion\": \"AKSUbuntu-2204gen2containerd-202304.20.0\",\n + \ \"upgradeSettings\": {},\n \"enableFIPS\": false\n }\n ],\n + \ \"linuxProfile\": {\n \"adminUsername\": \"azureuser\",\n \"ssh\": + {\n \"publicKeys\": [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCvSmDv2/j+2YOKt8Upeh5kRqWfa6Ruqyux98ejQPu6RssXtqmdYZTCMo0U0klQpXFIJI3ASBtFvMX3lBtqKLbjehzIirpjkesUCQvEEgKOd6iGp9ORvMr8FCn0RZr1Idw1dp7KmsCcxbMVPc5YGyvkrBtWl0BI0W/gVQxQ3+iF+NBrwuYAeLVnjmxp6moiCElvxm9ehp00Sr+7hpjPjzLi7qpDN2FITOggiXhrvXWJI/2cqfcPTvDXDQH+e6+avyApRPa/OvkCM7Jm/gXdUzes0xm1Y6aI61hzc8m9K1QjqleMeHPDTUYLCb8cCEnn70itMEkfuqwp6yftFWxCcylR + azcli_aks_live_test@example.com\\n\"\n }\n ]\n }\n },\n \"servicePrincipalProfile\": + {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \"nodeResourceGroup\": + \"MC_clitest000001_cliakstest000002_westus2\",\n \"enableRBAC\": true,\n + \ \"enablePodSecurityPolicy\": false,\n \"networkProfile\": {\n \"networkPlugin\": + \"kubenet\",\n \"loadBalancerSku\": \"Standard\",\n \"loadBalancerProfile\": + {\n \"managedOutboundIPs\": {\n \"count\": 1\n },\n \"effectiveOutboundIPs\": + [\n {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.Network/publicIPAddresses/73659bc3-b205-4e4a-a308-90499313bb61\"\n + \ }\n ]\n },\n \"podCidr\": \"10.244.0.0/16\",\n \"serviceCidr\": + \"10.0.0.0/16\",\n \"dnsServiceIP\": \"10.0.0.10\",\n \"dockerBridgeCidr\": + \"172.17.0.1/16\",\n \"outboundType\": \"loadBalancer\",\n \"podCidrs\": + [\n \"10.244.0.0/16\"\n ],\n \"serviceCidrs\": [\n \"10.0.0.0/16\"\n + \ ],\n \"ipFamilies\": [\n \"IPv4\"\n ]\n },\n \"maxAgentPools\": + 100,\n \"identityProfile\": {\n \"kubeletidentity\": {\n \"resourceId\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cliakstest000002-agentpool\",\n + \ \"clientId\":\"00000000-0000-0000-0000-000000000001\",\n \"objectId\":\"00000000-0000-0000-0000-000000000001\"\n + \ }\n },\n \"disableLocalAccounts\": false,\n \"securityProfile\": + {},\n \"storageProfile\": {\n \"diskCSIDriver\": {\n \"enabled\": + true\n },\n \"fileCSIDriver\": {\n \"enabled\": true\n },\n \"snapshotController\": + {\n \"enabled\": true\n }\n },\n \"oidcIssuerProfile\": {\n \"enabled\": + false\n },\n \"workloadAutoScalerProfile\": {}\n },\n \"identity\": + {\n \"type\": \"SystemAssigned\",\n \"principalId\":\"00000000-0000-0000-0000-000000000001\",\n + \ \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\n },\n \"sku\": + {\n \"name\": \"Basic\",\n \"tier\": \"Free\"\n }\n }" headers: - api-supported-versions: - - 2021-04-01, 2021-09-01-preview, 2022-06-01 cache-control: - no-cache content-length: - - '1127' + - '3990' content-type: - - application/json; charset=utf-8 + - application/json date: - - Tue, 28 Mar 2023 22:07:39 GMT + - Tue, 09 May 2023 20:57:30 GMT expires: - '-1' pragma: - no-cache - request-context: - - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3 server: - - Microsoft-HTTPAPI/2.0 + - nginx strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-content-type-options: - nosniff - x-ms-ratelimit-remaining-subscription-resource-requests: - - '59' status: code: 200 message: OK - request: - body: '{"location": "westus2", "kind": "Linux", "properties": {"dataCollectionEndpointId": - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionEndpoints/MSProm-WUS2-cliakstest000002", - "dataSources": {"prometheusForwarder": [{"name": "PrometheusDataSource", "streams": - ["Microsoft-PrometheusMetrics"], "labelIncludeFilter": {}}]}, "dataFlows": [{"destinations": - ["MonitoringAccount1"], "streams": ["Microsoft-PrometheusMetrics"]}], "description": - "DCR description", "destinations": {"monitoringAccounts": [{"accountResourceId": - "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.monitor/accounts/defaultazuremonitorworkspace-wus2", - "name": "MonitoringAccount1"}]}}}' + body: null headers: Accept: - '*/*' @@ -1848,57 +1270,41 @@ interactions: - aks update Connection: - keep-alive - Content-Length: - - '793' - Content-Type: - - application/json ParameterSetName: - - --resource-group --name --yes --output --aks-custom-headers --enable-azuremonitormetrics - --enable-managed-identity --enable-windows-recording-rules + - --resource-group --name --yes --output --enable-azuremonitormetrics --enable-managed-identity + --enable-windows-recording-rules User-Agent: - - python/3.10.10 (Linux-5.15.0-1034-azure-x86_64-with-glibc2.31) AZURECLI/2.46.0 - VSTS_7b238909-6802-4b65-b90d-184bca47f458_build_261_0 azuremonitormetrics.create_dcr - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/MSProm-WUS2-cliakstest000002?api-version=2021-09-01-preview + - python/3.8.10 (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) AZURECLI/2.48.1 + azuremonitormetrics.get_mac_sub_list + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers?api-version=2021-04-01&$select=namespace,registrationstate response: body: - string: '{"properties":{"description":"DCR description","immutableId":"dcr-a389e53abc704366bb5567d219c69d00","dataCollectionEndpointId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionEndpoints/MSProm-WUS2-cliakstest000002","dataSources":{"prometheusForwarder":[{"streams":["Microsoft-PrometheusMetrics"],"labelIncludeFilter":{},"name":"PrometheusDataSource"}]},"destinations":{"monitoringAccounts":[{"accountResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.monitor/accounts/defaultazuremonitorworkspace-wus2","accountId":"3692cbea-1f07-4dce-be75-8ef691e9da54","name":"MonitoringAccount1"}]},"dataFlows":[{"streams":["Microsoft-PrometheusMetrics"],"destinations":["MonitoringAccount1"]}],"provisioningState":"Succeeded"},"location":"westus2","kind":"Linux","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/MSProm-WUS2-cliakstest000002","name":"MSProm-WUS2-cliakstest000002","type":"Microsoft.Insights/dataCollectionRules","etag":"\"54012db3-0000-0800-0000-6423652d0000\"","systemData":{"createdBy":"azureclilivetest@azuresdkteam.onmicrosoft.com","createdByType":"User","createdAt":"2023-03-28T22:07:41.3529152Z","lastModifiedBy":"azureclilivetest@azuresdkteam.onmicrosoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-28T22:07:41.3529152Z"}}' + string: '{"value":[{"namespace":"Microsoft.Security","registrationState":"Registered"},{"namespace":"Microsoft.Compute","registrationState":"Registered"},{"namespace":"Microsoft.ContainerService","registrationState":"Registered"},{"namespace":"Microsoft.ContainerInstance","registrationState":"Registered"},{"namespace":"Microsoft.OperationsManagement","registrationState":"Registered"},{"namespace":"Microsoft.Capacity","registrationState":"Registered"},{"namespace":"Microsoft.Storage","registrationState":"Registered"},{"namespace":"Microsoft.Advisor","registrationState":"Registered"},{"namespace":"Microsoft.ManagedIdentity","registrationState":"Registered"},{"namespace":"Microsoft.KeyVault","registrationState":"Registered"},{"namespace":"Microsoft.ContainerRegistry","registrationState":"Registered"},{"namespace":"Microsoft.Kusto","registrationState":"Registered"},{"namespace":"Microsoft.Migrate","registrationState":"Registered"},{"namespace":"Microsoft.Diagnostics","registrationState":"Registered"},{"namespace":"Microsoft.MarketplaceNotifications","registrationState":"Registered"},{"namespace":"Microsoft.ChangeAnalysis","registrationState":"Registered"},{"namespace":"microsoft.insights","registrationState":"Registered"},{"namespace":"Microsoft.Logic","registrationState":"Registered"},{"namespace":"Microsoft.Web","registrationState":"Registered"},{"namespace":"Microsoft.ResourceHealth","registrationState":"Registered"},{"namespace":"Microsoft.Monitor","registrationState":"Registered"},{"namespace":"Microsoft.Dashboard","registrationState":"Registered"},{"namespace":"Microsoft.ManagedServices","registrationState":"Registered"},{"namespace":"Microsoft.NotificationHubs","registrationState":"Registered"},{"namespace":"Microsoft.DataLakeStore","registrationState":"Registered"},{"namespace":"Microsoft.Blueprint","registrationState":"Registered"},{"namespace":"Microsoft.Databricks","registrationState":"Registered"},{"namespace":"Microsoft.Relay","registrationState":"Registered"},{"namespace":"Microsoft.Maintenance","registrationState":"Registered"},{"namespace":"Microsoft.HealthcareApis","registrationState":"Registered"},{"namespace":"Microsoft.AppPlatform","registrationState":"Registered"},{"namespace":"Microsoft.DevTestLab","registrationState":"Registered"},{"namespace":"Microsoft.DataLakeAnalytics","registrationState":"Registered"},{"namespace":"Microsoft.Media","registrationState":"Registering"},{"namespace":"Microsoft.Devices","registrationState":"Registered"},{"namespace":"Microsoft.Automation","registrationState":"Registered"},{"namespace":"Microsoft.BotService","registrationState":"Registered"},{"namespace":"Microsoft.Management","registrationState":"Registered"},{"namespace":"Microsoft.CustomProviders","registrationState":"Registered"},{"namespace":"Microsoft.MixedReality","registrationState":"Registered"},{"namespace":"Microsoft.ServiceFabricMesh","registrationState":"Registering"},{"namespace":"Microsoft.DataMigration","registrationState":"Registered"},{"namespace":"Microsoft.RecoveryServices","registrationState":"Registered"},{"namespace":"Microsoft.DesktopVirtualization","registrationState":"Registered"},{"namespace":"Microsoft.DataProtection","registrationState":"Registered"},{"namespace":"Microsoft.DocumentDB","registrationState":"Registered"},{"namespace":"Microsoft.TimeSeriesInsights","registrationState":"Registered"},{"namespace":"Microsoft.Cache","registrationState":"Registered"},{"namespace":"Microsoft.DBforMySQL","registrationState":"Registered"},{"namespace":"Microsoft.SecurityInsights","registrationState":"Registered"},{"namespace":"Microsoft.ApiManagement","registrationState":"Registered"},{"namespace":"Microsoft.EventHub","registrationState":"Registered"},{"namespace":"Microsoft.AVS","registrationState":"Registered"},{"namespace":"Microsoft.PowerBIDedicated","registrationState":"Registered"},{"namespace":"Microsoft.EventGrid","registrationState":"Registered"},{"namespace":"Microsoft.Maps","registrationState":"Registered"},{"namespace":"Microsoft.MachineLearningServices","registrationState":"Registering"},{"namespace":"Microsoft.StreamAnalytics","registrationState":"Registered"},{"namespace":"Microsoft.Search","registrationState":"Registered"},{"namespace":"Microsoft.DBforMariaDB","registrationState":"Registered"},{"namespace":"Microsoft.CognitiveServices","registrationState":"Registered"},{"namespace":"Microsoft.Cdn","registrationState":"Registered"},{"namespace":"Microsoft.HDInsight","registrationState":"Registered"},{"namespace":"Microsoft.ServiceFabric","registrationState":"Registered"},{"namespace":"Microsoft.DBforPostgreSQL","registrationState":"Registered"},{"namespace":"Microsoft.CloudShell","registrationState":"Registered"},{"namespace":"Microsoft.AlertsManagement","registrationState":"Registered"},{"namespace":"Microsoft.OperationalInsights","registrationState":"Registered"},{"namespace":"Microsoft.PolicyInsights","registrationState":"Registered"},{"namespace":"Microsoft.GuestConfiguration","registrationState":"Registered"},{"namespace":"Microsoft.Network","registrationState":"Registered"},{"namespace":"Microsoft.ServiceBus","registrationState":"Registered"},{"namespace":"Microsoft.Sql","registrationState":"Registered"},{"namespace":"Dynatrace.Observability","registrationState":"NotRegistered"},{"namespace":"GitHub.Network","registrationState":"NotRegistered"},{"namespace":"Microsoft.AAD","registrationState":"NotRegistered"},{"namespace":"microsoft.aadiam","registrationState":"NotRegistered"},{"namespace":"Microsoft.Addons","registrationState":"NotRegistered"},{"namespace":"Microsoft.ADHybridHealthService","registrationState":"Registered"},{"namespace":"Microsoft.AgFoodPlatform","registrationState":"NotRegistered"},{"namespace":"Microsoft.AnalysisServices","registrationState":"NotRegistered"},{"namespace":"Microsoft.AnyBuild","registrationState":"NotRegistered"},{"namespace":"Microsoft.ApiSecurity","registrationState":"NotRegistered"},{"namespace":"Microsoft.App","registrationState":"NotRegistered"},{"namespace":"Microsoft.AppAssessment","registrationState":"NotRegistered"},{"namespace":"Microsoft.AppComplianceAutomation","registrationState":"NotRegistered"},{"namespace":"Microsoft.AppConfiguration","registrationState":"NotRegistered"},{"namespace":"Microsoft.Attestation","registrationState":"NotRegistered"},{"namespace":"Microsoft.Authorization","registrationState":"Registered"},{"namespace":"Microsoft.Automanage","registrationState":"NotRegistered"},{"namespace":"Microsoft.AutonomousDevelopmentPlatform","registrationState":"NotRegistered"},{"namespace":"Microsoft.AutonomousSystems","registrationState":"NotRegistered"},{"namespace":"Microsoft.AzureActiveDirectory","registrationState":"NotRegistered"},{"namespace":"Microsoft.AzureArcData","registrationState":"NotRegistered"},{"namespace":"Microsoft.AzureCIS","registrationState":"NotRegistered"},{"namespace":"Microsoft.AzureData","registrationState":"NotRegistered"},{"namespace":"Microsoft.AzurePercept","registrationState":"NotRegistered"},{"namespace":"Microsoft.AzureScan","registrationState":"NotRegistered"},{"namespace":"Microsoft.AzureSphere","registrationState":"NotRegistered"},{"namespace":"Microsoft.AzureStack","registrationState":"NotRegistered"},{"namespace":"Microsoft.AzureStackHCI","registrationState":"NotRegistered"},{"namespace":"Microsoft.BackupSolutions","registrationState":"NotRegistered"},{"namespace":"Microsoft.BareMetalInfrastructure","registrationState":"NotRegistered"},{"namespace":"Microsoft.Batch","registrationState":"NotRegistered"},{"namespace":"Microsoft.Billing","registrationState":"Registered"},{"namespace":"Microsoft.BillingBenefits","registrationState":"NotRegistered"},{"namespace":"Microsoft.Bing","registrationState":"NotRegistered"},{"namespace":"Microsoft.BlockchainTokens","registrationState":"NotRegistered"},{"namespace":"Microsoft.Carbon","registrationState":"NotRegistered"},{"namespace":"Microsoft.CertificateRegistration","registrationState":"NotRegistered"},{"namespace":"Microsoft.Chaos","registrationState":"NotRegistered"},{"namespace":"Microsoft.ClassicCompute","registrationState":"NotRegistered"},{"namespace":"Microsoft.ClassicInfrastructureMigrate","registrationState":"NotRegistered"},{"namespace":"Microsoft.ClassicNetwork","registrationState":"NotRegistered"},{"namespace":"Microsoft.ClassicStorage","registrationState":"NotRegistered"},{"namespace":"Microsoft.ClassicSubscription","registrationState":"Registered"},{"namespace":"Microsoft.CleanRoom","registrationState":"NotRegistered"},{"namespace":"Microsoft.CloudTest","registrationState":"NotRegistered"},{"namespace":"Microsoft.CodeSigning","registrationState":"NotRegistered"},{"namespace":"Microsoft.Codespaces","registrationState":"NotRegistered"},{"namespace":"Microsoft.CognitiveSearch","registrationState":"NotRegistered"},{"namespace":"Microsoft.Commerce","registrationState":"Registered"},{"namespace":"Microsoft.Communication","registrationState":"NotRegistered"},{"namespace":"Microsoft.ConfidentialLedger","registrationState":"NotRegistered"},{"namespace":"Microsoft.Confluent","registrationState":"NotRegistered"},{"namespace":"Microsoft.ConnectedCache","registrationState":"NotRegistered"},{"namespace":"microsoft.connectedopenstack","registrationState":"NotRegistered"},{"namespace":"Microsoft.ConnectedVehicle","registrationState":"NotRegistered"},{"namespace":"Microsoft.ConnectedVMwarevSphere","registrationState":"NotRegistered"},{"namespace":"Microsoft.Consumption","registrationState":"Registered"},{"namespace":"Microsoft.CostManagement","registrationState":"Registered"},{"namespace":"Microsoft.CostManagementExports","registrationState":"NotRegistered"},{"namespace":"Microsoft.CustomerLockbox","registrationState":"NotRegistered"},{"namespace":"Microsoft.D365CustomerInsights","registrationState":"NotRegistered"},{"namespace":"Microsoft.DatabaseWatcher","registrationState":"NotRegistered"},{"namespace":"Microsoft.DataBox","registrationState":"NotRegistered"},{"namespace":"Microsoft.DataBoxEdge","registrationState":"NotRegistered"},{"namespace":"Microsoft.DataCatalog","registrationState":"NotRegistered"},{"namespace":"Microsoft.DataCollaboration","registrationState":"NotRegistered"},{"namespace":"Microsoft.Datadog","registrationState":"NotRegistered"},{"namespace":"Microsoft.DataFactory","registrationState":"NotRegistered"},{"namespace":"Microsoft.DataReplication","registrationState":"NotRegistered"},{"namespace":"Microsoft.DataShare","registrationState":"NotRegistered"},{"namespace":"Microsoft.DelegatedNetwork","registrationState":"NotRegistered"},{"namespace":"Microsoft.DeploymentManager","registrationState":"NotRegistered"},{"namespace":"Microsoft.DevAI","registrationState":"NotRegistered"},{"namespace":"Microsoft.DevCenter","registrationState":"NotRegistered"},{"namespace":"Microsoft.DevHub","registrationState":"NotRegistered"},{"namespace":"Microsoft.DeviceUpdate","registrationState":"NotRegistered"},{"namespace":"Microsoft.DevOps","registrationState":"NotRegistered"},{"namespace":"Microsoft.DigitalTwins","registrationState":"NotRegistered"},{"namespace":"Microsoft.DomainRegistration","registrationState":"NotRegistered"},{"namespace":"Microsoft.Easm","registrationState":"NotRegistered"},{"namespace":"Microsoft.EdgeOrder","registrationState":"NotRegistered"},{"namespace":"Microsoft.EdgeOrderPartner","registrationState":"NotRegistered"},{"namespace":"Microsoft.EdgeZones","registrationState":"NotRegistered"},{"namespace":"Microsoft.Elastic","registrationState":"NotRegistered"},{"namespace":"Microsoft.ElasticSan","registrationState":"NotRegistered"},{"namespace":"Microsoft.ExtendedLocation","registrationState":"NotRegistered"},{"namespace":"Microsoft.Falcon","registrationState":"NotRegistered"},{"namespace":"Microsoft.Features","registrationState":"Registered"},{"namespace":"Microsoft.FluidRelay","registrationState":"NotRegistered"},{"namespace":"Microsoft.GraphServices","registrationState":"NotRegistered"},{"namespace":"Microsoft.HanaOnAzure","registrationState":"NotRegistered"},{"namespace":"Microsoft.HardwareSecurityModules","registrationState":"NotRegistered"},{"namespace":"Microsoft.HealthBot","registrationState":"NotRegistered"},{"namespace":"Microsoft.Help","registrationState":"NotRegistered"},{"namespace":"Microsoft.HpcWorkbench","registrationState":"NotRegistered"},{"namespace":"Microsoft.HybridCompute","registrationState":"NotRegistered"},{"namespace":"Microsoft.HybridConnectivity","registrationState":"NotRegistered"},{"namespace":"Microsoft.HybridContainerService","registrationState":"NotRegistered"},{"namespace":"Microsoft.HybridNetwork","registrationState":"NotRegistered"},{"namespace":"Microsoft.Impact","registrationState":"NotRegistered"},{"namespace":"Microsoft.IoTCentral","registrationState":"NotRegistered"},{"namespace":"Microsoft.IoTFirmwareDefense","registrationState":"NotRegistered"},{"namespace":"Microsoft.IoTSecurity","registrationState":"NotRegistered"},{"namespace":"Microsoft.Kubernetes","registrationState":"NotRegistered"},{"namespace":"Microsoft.KubernetesConfiguration","registrationState":"NotRegistered"},{"namespace":"Microsoft.LabServices","registrationState":"NotRegistered"},{"namespace":"Microsoft.LoadTestService","registrationState":"NotRegistered"},{"namespace":"Microsoft.Logz","registrationState":"NotRegistered"},{"namespace":"Microsoft.MachineLearning","registrationState":"NotRegistered"},{"namespace":"Microsoft.ManagedNetworkFabric","registrationState":"NotRegistered"},{"namespace":"Microsoft.ManagedStorageClass","registrationState":"NotRegistered"},{"namespace":"Microsoft.ManufacturingPlatform","registrationState":"NotRegistered"},{"namespace":"Microsoft.Marketplace","registrationState":"NotRegistered"},{"namespace":"Microsoft.MarketplaceOrdering","registrationState":"Registered"},{"namespace":"Microsoft.Metaverse","registrationState":"NotRegistered"},{"namespace":"Microsoft.Mission","registrationState":"NotRegistered"},{"namespace":"Microsoft.MobileNetwork","registrationState":"NotRegistered"},{"namespace":"Microsoft.MobilePacketCore","registrationState":"NotRegistered"},{"namespace":"Microsoft.ModSimWorkbench","registrationState":"NotRegistered"},{"namespace":"Microsoft.NetApp","registrationState":"NotRegistered"},{"namespace":"Microsoft.NetworkAnalytics","registrationState":"NotRegistered"},{"namespace":"Microsoft.NetworkCloud","registrationState":"NotRegistered"},{"namespace":"Microsoft.NetworkFunction","registrationState":"NotRegistered"},{"namespace":"Microsoft.Nutanix","registrationState":"NotRegistered"},{"namespace":"Microsoft.ObjectStore","registrationState":"NotRegistered"},{"namespace":"Microsoft.OffAzure","registrationState":"NotRegistered"},{"namespace":"Microsoft.OffAzureSpringBoot","registrationState":"NotRegistered"},{"namespace":"Microsoft.OpenEnergyPlatform","registrationState":"NotRegistered"},{"namespace":"Microsoft.OpenLogisticsPlatform","registrationState":"NotRegistered"},{"namespace":"Microsoft.OperatorVoicemail","registrationState":"NotRegistered"},{"namespace":"Microsoft.OracleDiscovery","registrationState":"NotRegistered"},{"namespace":"Microsoft.Orbital","registrationState":"NotRegistered"},{"namespace":"Microsoft.Peering","registrationState":"NotRegistered"},{"namespace":"Microsoft.Pki","registrationState":"NotRegistered"},{"namespace":"Microsoft.PlayFab","registrationState":"NotRegistered"},{"namespace":"Microsoft.Portal","registrationState":"Registered"},{"namespace":"Microsoft.PowerBI","registrationState":"NotRegistered"},{"namespace":"Microsoft.PowerPlatform","registrationState":"NotRegistered"},{"namespace":"Microsoft.ProfessionalService","registrationState":"NotRegistered"},{"namespace":"Microsoft.ProviderHub","registrationState":"NotRegistered"},{"namespace":"Microsoft.Purview","registrationState":"NotRegistered"},{"namespace":"Microsoft.Quantum","registrationState":"NotRegistered"},{"namespace":"Microsoft.Quota","registrationState":"NotRegistered"},{"namespace":"Microsoft.RecommendationsService","registrationState":"NotRegistered"},{"namespace":"Microsoft.RedHatOpenShift","registrationState":"NotRegistered"},{"namespace":"Microsoft.ResourceConnector","registrationState":"NotRegistered"},{"namespace":"Microsoft.ResourceGraph","registrationState":"Registered"},{"namespace":"Microsoft.Resources","registrationState":"Registered"},{"namespace":"Microsoft.SaaS","registrationState":"NotRegistered"},{"namespace":"Microsoft.SaaSHub","registrationState":"NotRegistered"},{"namespace":"Microsoft.Scom","registrationState":"NotRegistered"},{"namespace":"Microsoft.ScVmm","registrationState":"NotRegistered"},{"namespace":"Microsoft.SecurityDetonation","registrationState":"NotRegistered"},{"namespace":"Microsoft.SecurityDevOps","registrationState":"NotRegistered"},{"namespace":"Microsoft.SerialConsole","registrationState":"Registered"},{"namespace":"Microsoft.ServiceLinker","registrationState":"NotRegistered"},{"namespace":"Microsoft.ServiceNetworking","registrationState":"NotRegistered"},{"namespace":"Microsoft.ServicesHub","registrationState":"NotRegistered"},{"namespace":"Microsoft.SignalRService","registrationState":"NotRegistered"},{"namespace":"Microsoft.Singularity","registrationState":"NotRegistered"},{"namespace":"Microsoft.SoftwarePlan","registrationState":"NotRegistered"},{"namespace":"Microsoft.Solutions","registrationState":"NotRegistered"},{"namespace":"Microsoft.SqlVirtualMachine","registrationState":"NotRegistered"},{"namespace":"Microsoft.StandbyPool","registrationState":"NotRegistered"},{"namespace":"Microsoft.StorageCache","registrationState":"NotRegistered"},{"namespace":"Microsoft.StorageMover","registrationState":"NotRegistered"},{"namespace":"Microsoft.StorageSync","registrationState":"NotRegistered"},{"namespace":"Microsoft.Subscription","registrationState":"NotRegistered"},{"namespace":"microsoft.support","registrationState":"Registered"},{"namespace":"Microsoft.Synapse","registrationState":"NotRegistered"},{"namespace":"Microsoft.Syntex","registrationState":"NotRegistered"},{"namespace":"Microsoft.SystemIntegrityMonitoring","registrationState":"NotRegistered"},{"namespace":"Microsoft.TestBase","registrationState":"NotRegistered"},{"namespace":"Microsoft.UsageBilling","registrationState":"NotRegistered"},{"namespace":"Microsoft.VideoIndexer","registrationState":"NotRegistered"},{"namespace":"Microsoft.VirtualMachineImages","registrationState":"NotRegistered"},{"namespace":"microsoft.visualstudio","registrationState":"NotRegistered"},{"namespace":"Microsoft.VMware","registrationState":"NotRegistered"},{"namespace":"Microsoft.VoiceServices","registrationState":"NotRegistered"},{"namespace":"Microsoft.VSOnline","registrationState":"NotRegistered"},{"namespace":"Microsoft.WindowsESU","registrationState":"NotRegistered"},{"namespace":"Microsoft.WindowsIoT","registrationState":"NotRegistered"},{"namespace":"Microsoft.WindowsPushNotificationServices","registrationState":"NotRegistered"},{"namespace":"Microsoft.WorkloadBuilder","registrationState":"NotRegistered"},{"namespace":"Microsoft.Workloads","registrationState":"NotRegistered"},{"namespace":"NewRelic.Observability","registrationState":"NotRegistered"},{"namespace":"NGINX.NGINXPLUS","registrationState":"NotRegistered"},{"namespace":"PaloAltoNetworks.Cloudngfw","registrationState":"NotRegistered"},{"namespace":"Qumulo.Storage","registrationState":"NotRegistered"},{"namespace":"SolarWinds.Observability","registrationState":"NotRegistered"},{"namespace":"Wandisco.Fusion","registrationState":"NotRegistered"},{"namespace":"Microsoft.ProjectArcadia","registrationState":"NotRegistered"}]}' headers: - api-supported-versions: - - 2019-11-01-preview, 2021-04-01, 2021-09-01-preview, 2022-06-01 cache-control: - no-cache content-length: - - '1486' + - '19647' content-type: - application/json; charset=utf-8 date: - - Tue, 28 Mar 2023 22:07:43 GMT + - Tue, 09 May 2023 20:57:36 GMT expires: - '-1' pragma: - no-cache - request-context: - - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3 - server: - - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-content-type-options: - nosniff - x-ms-ratelimit-remaining-subscription-resource-requests: - - '149' status: code: 200 message: OK - request: - body: '{"location": "westus2", "properties": {"dataCollectionRuleId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/MSProm-WUS2-cliakstest000002", - "description": "Promtheus data collection association between DCR, DCE and target - AKS resource"}}' + body: null headers: Accept: - '*/*' @@ -1909,427 +1315,122 @@ interactions: Connection: - keep-alive Content-Length: - - '322' - Content-Type: - - application/json + - '0' ParameterSetName: - - --resource-group --name --yes --output --aks-custom-headers --enable-azuremonitormetrics - --enable-managed-identity --enable-windows-recording-rules + - --resource-group --name --yes --output --enable-azuremonitormetrics --enable-managed-identity + --enable-windows-recording-rules User-Agent: - - python/3.10.10 (Linux-5.15.0-1034-azure-x86_64-with-glibc2.31) AZURECLI/2.46.0 - VSTS_7b238909-6802-4b65-b90d-184bca47f458_build_261_0 azuremonitormetrics.create_dcra - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/providers/Microsoft.Insights/dataCollectionRuleAssociations/MSProm-WUS2-cliakstest000002?api-version=2021-09-01-preview + - python/3.8.10 (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) AZURECLI/2.48.1 + azuremonitormetrics.register_monitor_rp + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/microsoft.monitor/register?api-version=2021-04-01 response: body: - string: '{"properties":{"description":"Promtheus data collection association - between DCR, DCE and target AKS resource","dataCollectionRuleId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/MSProm-WUS2-cliakstest000002"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/providers/Microsoft.Insights/dataCollectionRuleAssociations/MSProm-WUS2-cliakstest000002","name":"MSProm-WUS2-cliakstest000002","type":"Microsoft.Insights/dataCollectionRuleAssociations","etag":"\"540139b3-0000-0800-0000-642365300000\"","systemData":{"createdBy":"azureclilivetest@azuresdkteam.onmicrosoft.com","createdByType":"User","createdAt":"2023-03-28T22:07:43.7965806Z","lastModifiedBy":"azureclilivetest@azuresdkteam.onmicrosoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-28T22:07:43.7965806Z"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Monitor","namespace":"Microsoft.Monitor","authorizations":[{"applicationId":"be14bf7e-8ab4-49b0-9dc6-a0eddd6fa73e","roleDefinitionId":"803a038d-eff1-4489-a0c2-dbc204ebac3c"},{"applicationId":"e158b4a5-21ab-442e-ae73-2e19f4e7d763","roleDefinitionId":"e46476d4-e741-4936-a72b-b768349eed70","managedByRoleDefinitionId":"50cd84fb-5e4c-4801-a8d2-4089ab77e6cd"}],"resourceTypes":[{"resourceType":"accounts","locations":["East + US","Central India","Central US","East US 2","North Europe","South Central + US","Southeast Asia","UK South","West Europe","West US","West US 2","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2023-04-03","2021-06-03-preview"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"operations","locations":["North + Central US","East US","Australia Central","Australia Southeast","Brazil South","Canada + Central","Central India","Central US","East Asia","East US 2","North Europe","Norway + East","South Africa North","South Central US","Southeast Asia","UAE North","UK + South","West Central US","West Europe","West US","West US 2","East US 2 EUAP","Central + US EUAP"],"apiVersions":["2023-04-03","2023-04-01","2021-06-03-preview","2021-06-01-preview"],"defaultApiVersion":"2021-06-01-preview","capabilities":"None"},{"resourceType":"locations","locations":[],"apiVersions":["2023-04-03","2023-04-01","2021-06-03-preview","2021-06-01-preview"],"capabilities":"None"},{"resourceType":"locations/operationResults","locations":["East + US","Central India","Central US","East US 2","North Europe","South Central + US","Southeast Asia","UK South","West Europe","West US","West US 2","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2023-04-03","2021-06-03-preview"],"capabilities":"None"},{"resourceType":"locations/operationStatuses","locations":["East + US","Central India","Central US","East US 2","North Europe","South Central + US","Southeast Asia","UK South","West Europe","West US","West US 2","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2023-04-03","2021-06-03-preview"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: - api-supported-versions: - - 2019-11-01-preview, 2021-04-01, 2021-09-01-preview, 2022-06-01 cache-control: - no-cache content-length: - - '971' + - '2246' content-type: - application/json; charset=utf-8 date: - - Tue, 28 Mar 2023 22:07:44 GMT + - Tue, 09 May 2023 20:57:36 GMT expires: - '-1' pragma: - no-cache - request-context: - - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3 - server: - - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding,Accept-Encoding x-content-type-options: - nosniff - x-ms-ratelimit-remaining-subscription-resource-requests: - - '299' + x-ms-ratelimit-remaining-subscription-writes: + - '1199' status: code: 200 message: OK - request: body: null headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update Connection: - - close - Host: - - defaultrulessc.blob.core.windows.net + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --resource-group --name --yes --output --enable-azuremonitormetrics --enable-managed-identity + --enable-windows-recording-rules User-Agent: - - Python-urllib/3.10 - method: GET - uri: https://defaultrulessc.blob.core.windows.net/defaultrules/ManagedPrometheusDefaultRecordingRules.json - response: - body: - string: "{\r\n \"$schema\": \"https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#\",\r\n - \ \"contentVersion\": \"1.0.0.0\",\r\n \"parameters\": {\r\n \"clusterName\": - {\r\n \"type\": \"string\",\r\n \"metadata\": {\r\n - \ \"description\": \"Cluster name\"\r\n }\r\n },\r\n - \ \"azureMonitorWorkspaceResourceId\": {\r\n \"type\": \"string\",\r\n - \ \"metadata\": {\r\n \"description\": \"ResourceId - of Monitoring Account (MAC) to associate to\"\r\n }\r\n },\r\n - \ \"location\": {\r\n \"type\": \"string\",\r\n \"defaultValue\": - \"[resourceGroup().location]\"\r\n }\r\n },\r\n \"variables\": - {\r\n \"nodeRecordingRuleGroup\": \"NodeRecordingRulesRuleGroup-\",\r\n - \ \"nodeRecordingRuleGroupName\": \"[concat(variables('nodeRecordingRuleGroup'), - parameters('clusterName'))]\",\r\n \"nodeRecordingRuleGroupDescription\": - \"Node Recording Rules RuleGroup\",\r\n \"kubernetesRecordingRuleGroup\": - \"KubernetesReccordingRulesRuleGroup-\",\r\n \"kubernetesRecordingRuleGroupName\": - \"[concat(variables('kubernetesRecordingRuleGroup'), parameters('clusterName'))]\",\r\n - \ \"kubernetesRecordingRuleGroupDescription\": \"Kubernetes Recording - Rules RuleGroup\",\r\n \"nodeRecordingRuleGroupWin\": \"NodeRecordingRulesRuleGroup-Win-\",\r\n - \ \"nodeAndKubernetesRecordingRuleGroupWin\": \"NodeAndKubernetesRecordingRulesRuleGroup-Win-\",\r\n - \ \"nodeRecordingRuleGroupNameWin\": \"[concat(variables('nodeRecordingRuleGroupWin'), - parameters('clusterName'))]\",\r\n \"nodeAndKubernetesRecordingRuleGroupNameWin\": - \"[concat(variables('nodeAndKubernetesRecordingRuleGroupWin'), parameters('clusterName'))]\",\r\n - \ \"RecordingRuleGroupDescriptionWin\": \"Kubernetes Recording Rules - RuleGroup for Win\",\r\n \"version\": \" - 0.1\"\r\n },\r\n \"resources\": - [\r\n {\r\n \"name\": \"[variables('nodeRecordingRuleGroupName')]\",\r\n - \ \"type\": \"Microsoft.AlertsManagement/prometheusRuleGroups\",\r\n - \ \"apiVersion\": \"2021-07-22-preview\",\r\n \"location\": - \"[parameters('location')]\",\r\n \"properties\": {\r\n \"description\": - \"[concat(variables('nodeRecordingRuleGroupDescription'), variables('version'))]\",\r\n - \ \"scopes\": [ \"[parameters('azureMonitorWorkspaceResourceId')]\" - ],\r\n \"enabled\": true,\r\n \"clusterName\": - \"[parameters('clusterName')]\",\r\n \"interval\": \"PT1M\",\r\n - \ \"rules\": [\r\n {\r\n \"record\": - \"instance:node_num_cpu:sum\",\r\n \"expression\": - \"count without (cpu, mode) ( node_cpu_seconds_total{job=\\\"node\\\",mode=\\\"idle\\\"})\"\r\n - \ },\r\n {\r\n \"record\": - \"instance:node_cpu_utilisation:rate5m\",\r\n \"expression\": - \"1 - avg without (cpu) ( sum without (mode) (rate(node_cpu_seconds_total{job=\\\"node\\\", - mode=~\\\"idle|iowait|steal\\\"}[5m])))\"\r\n },\r\n {\r\n - \ \"record\": \"instance:node_load1_per_cpu:ratio\",\r\n - \ \"expression\": \"( node_load1{job=\\\"node\\\"}/ - \ instance:node_num_cpu:sum{job=\\\"node\\\"})\"\r\n },\r\n - \ {\r\n \"record\": \"instance:node_memory_utilisation:ratio\",\r\n - \ \"expression\": \"1 - ( ( node_memory_MemAvailable_bytes{job=\\\"node\\\"} - \ or ( node_memory_Buffers_bytes{job=\\\"node\\\"} + node_memory_Cached_bytes{job=\\\"node\\\"} - \ + node_memory_MemFree_bytes{job=\\\"node\\\"} + node_memory_Slab_bytes{job=\\\"node\\\"} - \ ) )/ node_memory_MemTotal_bytes{job=\\\"node\\\"})\"\r\n },\r\n - \ {\r\n \"record\": \"instance:node_vmstat_pgmajfault:rate5m\",\r\n - \ \"expression\": \"rate(node_vmstat_pgmajfault{job=\\\"node\\\"}[5m])\"\r\n - \ },\r\n {\r\n \"record\": - \"instance_device:node_disk_io_time_seconds:rate5m\",\r\n \"expression\": - \"rate(node_disk_io_time_seconds_total{job=\\\"node\\\", device!=\\\"\\\"}[5m])\"\r\n - \ },\r\n {\r\n \"record\": - \"instance_device:node_disk_io_time_weighted_seconds:rate5m\",\r\n \"expression\": - \"rate(node_disk_io_time_weighted_seconds_total{job=\\\"node\\\", device!=\\\"\\\"}[5m])\"\r\n - \ },\r\n {\r\n \"record\": - \"instance:node_network_receive_bytes_excluding_lo:rate5m\",\r\n \"expression\": - \"sum without (device) ( rate(node_network_receive_bytes_total{job=\\\"node\\\", - device!=\\\"lo\\\"}[5m]))\"\r\n },\r\n {\r\n - \ \"record\": \"instance:node_network_transmit_bytes_excluding_lo:rate5m\",\r\n - \ \"expression\": \"sum without (device) ( rate(node_network_transmit_bytes_total{job=\\\"node\\\", - device!=\\\"lo\\\"}[5m]))\"\r\n },\r\n {\r\n - \ \"record\": \"instance:node_network_receive_drop_excluding_lo:rate5m\",\r\n - \ \"expression\": \"sum without (device) ( rate(node_network_receive_drop_total{job=\\\"node\\\", - device!=\\\"lo\\\"}[5m]))\"\r\n },\r\n {\r\n - \ \"record\": \"instance:node_network_transmit_drop_excluding_lo:rate5m\",\r\n - \ \"expression\": \"sum without (device) ( rate(node_network_transmit_drop_total{job=\\\"node\\\", - device!=\\\"lo\\\"}[5m]))\"\r\n }\r\n ]\r\n - \ }\r\n },\r\n {\r\n \"name\": \"[variables('kubernetesRecordingRuleGroupName')]\",\r\n - \ \"type\": \"Microsoft.AlertsManagement/prometheusRuleGroups\",\r\n - \ \"apiVersion\": \"2021-07-22-preview\",\r\n \"location\": - \"[parameters('location')]\",\r\n \"properties\": {\r\n \"description\": - \"[concat(variables('kubernetesRecordingRuleGroupDescription'), variables('version'))]\",\r\n - \ \"scopes\": [ \"[parameters('azureMonitorWorkspaceResourceId')]\" - ],\r\n \"enabled\": true,\r\n \"clusterName\": - \"[parameters('clusterName')]\",\r\n \"interval\": \"PT1M\",\r\n - \ \"rules\": [\r\n {\r\n \"record\": - \"node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate\",\r\n - \ \"expression\": \"sum by (cluster, namespace, pod, - container) ( irate(container_cpu_usage_seconds_total{job=\\\"cadvisor\\\", - image!=\\\"\\\"}[5m])) * on (cluster, namespace, pod) group_left(node) topk - by (cluster, namespace, pod) ( 1, max by(cluster, namespace, pod, node) (kube_pod_info{node!=\\\"\\\"}))\"\r\n - \ },\r\n {\r\n \"record\": - \"node_namespace_pod_container:container_memory_working_set_bytes\",\r\n \"expression\": - \"container_memory_working_set_bytes{job=\\\"cadvisor\\\", image!=\\\"\\\"}* - on (namespace, pod) group_left(node) topk by(namespace, pod) (1, max by(namespace, - pod, node) (kube_pod_info{node!=\\\"\\\"}))\"\r\n },\r\n - \ {\r\n \"record\": \"node_namespace_pod_container:container_memory_rss\",\r\n - \ \"expression\": \"container_memory_rss{job=\\\"cadvisor\\\", - image!=\\\"\\\"}* on (namespace, pod) group_left(node) topk by(namespace, - pod) (1, max by(namespace, pod, node) (kube_pod_info{node!=\\\"\\\"}))\"\r\n - \ },\r\n {\r\n \"record\": - \"node_namespace_pod_container:container_memory_cache\",\r\n \"expression\": - \"container_memory_cache{job=\\\"cadvisor\\\", image!=\\\"\\\"}* on (namespace, - pod) group_left(node) topk by(namespace, pod) (1, max by(namespace, pod, - node) (kube_pod_info{node!=\\\"\\\"}))\"\r\n },\r\n {\r\n - \ \"record\": \"node_namespace_pod_container:container_memory_swap\",\r\n - \ \"expression\": \"container_memory_swap{job=\\\"cadvisor\\\", - image!=\\\"\\\"}* on (namespace, pod) group_left(node) topk by(namespace, - pod) (1, max by(namespace, pod, node) (kube_pod_info{node!=\\\"\\\"}))\"\r\n - \ },\r\n {\r\n \"record\": - \"cluster:namespace:pod_memory:active:kube_pod_container_resource_requests\",\r\n - \ \"expression\": \"kube_pod_container_resource_requests{resource=\\\"memory\\\",job=\\\"kube-state-metrics\\\"} - \ * on (namespace, pod, cluster)group_left() max by (namespace, pod, cluster) - ( (kube_pod_status_phase{phase=~\\\"Pending|Running\\\"} == 1))\"\r\n },\r\n - \ {\r\n \"record\": \"namespace_memory:kube_pod_container_resource_requests:sum\",\r\n - \ \"expression\": \"sum by (namespace, cluster) ( sum - by (namespace, pod, cluster) ( max by (namespace, pod, container, cluster) - ( kube_pod_container_resource_requests{resource=\\\"memory\\\",job=\\\"kube-state-metrics\\\"} - \ ) * on(namespace, pod, cluster) group_left() max by (namespace, pod, - cluster) ( kube_pod_status_phase{phase=~\\\"Pending|Running\\\"} - == 1 ) ))\"\r\n },\r\n {\r\n - \ \"record\": \"cluster:namespace:pod_cpu:active:kube_pod_container_resource_requests\",\r\n - \ \"expression\": \"kube_pod_container_resource_requests{resource=\\\"cpu\\\",job=\\\"kube-state-metrics\\\"} - \ * on (namespace, pod, cluster)group_left() max by (namespace, pod, cluster) - ( (kube_pod_status_phase{phase=~\\\"Pending|Running\\\"} == 1))\"\r\n },\r\n - \ {\r\n \"record\": \"namespace_cpu:kube_pod_container_resource_requests:sum\",\r\n - \ \"expression\": \"sum by (namespace, cluster) ( sum - by (namespace, pod, cluster) ( max by (namespace, pod, container, cluster) - ( kube_pod_container_resource_requests{resource=\\\"cpu\\\",job=\\\"kube-state-metrics\\\"} - \ ) * on(namespace, pod, cluster) group_left() max by (namespace, pod, - cluster) ( kube_pod_status_phase{phase=~\\\"Pending|Running\\\"} - == 1 ) ))\"\r\n },\r\n {\r\n - \ \"record\": \"cluster:namespace:pod_memory:active:kube_pod_container_resource_limits\",\r\n - \ \"expression\": \"kube_pod_container_resource_limits{resource=\\\"memory\\\",job=\\\"kube-state-metrics\\\"} - \ * on (namespace, pod, cluster)group_left() max by (namespace, pod, cluster) - ( (kube_pod_status_phase{phase=~\\\"Pending|Running\\\"} == 1))\"\r\n },\r\n - \ {\r\n \"record\": \"namespace_memory:kube_pod_container_resource_limits:sum\",\r\n - \ \"expression\": \"sum by (namespace, cluster) ( sum - by (namespace, pod, cluster) ( max by (namespace, pod, container, cluster) - ( kube_pod_container_resource_limits{resource=\\\"memory\\\",job=\\\"kube-state-metrics\\\"} - \ ) * on(namespace, pod, cluster) group_left() max by (namespace, pod, - cluster) ( kube_pod_status_phase{phase=~\\\"Pending|Running\\\"} - == 1 ) ))\"\r\n },\r\n {\r\n - \ \"record\": \"cluster:namespace:pod_cpu:active:kube_pod_container_resource_limits\",\r\n - \ \"expression\": \"kube_pod_container_resource_limits{resource=\\\"cpu\\\",job=\\\"kube-state-metrics\\\"} - \ * on (namespace, pod, cluster)group_left() max by (namespace, pod, cluster) - ( (kube_pod_status_phase{phase=~\\\"Pending|Running\\\"} == 1) )\"\r\n },\r\n - \ {\r\n \"record\": \"namespace_cpu:kube_pod_container_resource_limits:sum\",\r\n - \ \"expression\": \"sum by (namespace, cluster) ( sum - by (namespace, pod, cluster) ( max by (namespace, pod, container, cluster) - ( kube_pod_container_resource_limits{resource=\\\"cpu\\\",job=\\\"kube-state-metrics\\\"} - \ ) * on(namespace, pod, cluster) group_left() max by (namespace, pod, - cluster) ( kube_pod_status_phase{phase=~\\\"Pending|Running\\\"} - == 1 ) ))\"\r\n },\r\n {\r\n - \ \"record\": \"namespace_workload_pod:kube_pod_owner:relabel\",\r\n - \ \"expression\": \"max by (cluster, namespace, workload, - pod) ( label_replace( label_replace( kube_pod_owner{job=\\\"kube-state-metrics\\\", - owner_kind=\\\"ReplicaSet\\\"}, \\\"replicaset\\\", \\\"$1\\\", \\\"owner_name\\\", - \\\"(.*)\\\" ) * on(replicaset, namespace) group_left(owner_name) topk - by(replicaset, namespace) ( 1, max by (replicaset, namespace, owner_name) - ( kube_replicaset_owner{job=\\\"kube-state-metrics\\\"} ) ), - \ \\\"workload\\\", \\\"$1\\\", \\\"owner_name\\\", \\\"(.*)\\\" ))\",\r\n - \ \"labels\": {\r\n \"workload_type\": - \"deployment\"\r\n }\r\n },\r\n - \ {\r\n \"record\": \"namespace_workload_pod:kube_pod_owner:relabel\",\r\n - \ \"expression\": \"max by (cluster, namespace, workload, - pod) ( label_replace( kube_pod_owner{job=\\\"kube-state-metrics\\\", owner_kind=\\\"DaemonSet\\\"}, - \ \\\"workload\\\", \\\"$1\\\", \\\"owner_name\\\", \\\"(.*)\\\" ))\",\r\n - \ \"labels\": {\r\n \"workload_type\": - \"daemonset\"\r\n }\r\n },\r\n {\r\n - \ \"record\": \"namespace_workload_pod:kube_pod_owner:relabel\",\r\n - \ \"expression\": \"max by (cluster, namespace, workload, - pod) ( label_replace( kube_pod_owner{job=\\\"kube-state-metrics\\\", owner_kind=\\\"StatefulSet\\\"}, - \ \\\"workload\\\", \\\"$1\\\", \\\"owner_name\\\", \\\"(.*)\\\" ))\",\r\n - \ \"labels\": {\r\n \"workload_type\": - \"statefulset\"\r\n }\r\n },\r\n - \ {\r\n \"record\": \"namespace_workload_pod:kube_pod_owner:relabel\",\r\n - \ \"expression\": \"max by (cluster, namespace, workload, - pod) ( label_replace( kube_pod_owner{job=\\\"kube-state-metrics\\\", owner_kind=\\\"Job\\\"}, - \ \\\"workload\\\", \\\"$1\\\", \\\"owner_name\\\", \\\"(.*)\\\" ))\",\r\n - \ \"labels\": {\r\n \"workload_type\": - \"job\"\r\n }\r\n },\r\n {\r\n - \ \"record\": \":node_memory_MemAvailable_bytes:sum\",\r\n - \ \"expression\": \"sum( node_memory_MemAvailable_bytes{job=\\\"node\\\"} - or ( node_memory_Buffers_bytes{job=\\\"node\\\"} + node_memory_Cached_bytes{job=\\\"node\\\"} - + node_memory_MemFree_bytes{job=\\\"node\\\"} + node_memory_Slab_bytes{job=\\\"node\\\"} - \ )) by (cluster)\"\r\n },\r\n {\r\n - \ \"record\": \"cluster:node_cpu:ratio_rate5m\",\r\n - \ \"expression\": \"sum(rate(node_cpu_seconds_total{job=\\\"node\\\",mode!=\\\"idle\\\",mode!=\\\"iowait\\\",mode!=\\\"steal\\\"}[5m])) - by (cluster) /count(sum(node_cpu_seconds_total{job=\\\"node\\\"}) by (cluster, - instance, cpu)) by (cluster)\"\r\n }\r\n ]\r\n - \ }\r\n },\r\n {\r\n \"name\": \"[variables('nodeRecordingRuleGroupNameWin')]\",\r\n - \ \"type\": \"Microsoft.AlertsManagement/prometheusRuleGroups\",\r\n - \ \"apiVersion\": \"2021-07-22-preview\",\r\n \"location\": - \"[parameters('location')]\",\r\n \"properties\": {\r\n \"description\": - \"[concat(variables('RecordingRuleGroupDescriptionWin'), variables('version'))]\",\r\n - \ \"scopes\": [ \"[parameters('azureMonitorWorkspaceResourceId')]\" - ],\r\n \"enabled\": false,\r\n \"clusterName\": - \"[parameters('clusterName')]\",\r\n \"interval\": \"PT1M\",\r\n - \ \"rules\": [\r\n {\r\n \"record\": - \"node:windows_node:sum\",\r\n \"expression\": \"count - (windows_system_system_up_time{job=\\\"windows-exporter\\\"})\"\r\n },\r\n - \ {\r\n \"record\": \"node:windows_node_num_cpu:sum\",\r\n - \ \"expression\": \"count by (instance) (sum by (instance, - core) (windows_cpu_time_total{job=\\\"windows-exporter\\\"}))\"\r\n },\r\n - \ {\r\n \"record\": \":windows_node_cpu_utilisation:avg5m\",\r\n - \ \"expression\": \"1 - avg(rate(windows_cpu_time_total{job=\\\"windows-exporter\\\",mode=\\\"idle\\\"}[5m]))\"\r\n - \ },\r\n {\r\n \"record\": - \"node:windows_node_cpu_utilisation:avg5m\",\r\n \"expression\": - \"1 - avg by (instance) (rate(windows_cpu_time_total{job=\\\"windows-exporter\\\",mode=\\\"idle\\\"}[5m]))\"\r\n - \ },\r\n {\r\n \"record\": - \":windows_node_memory_utilisation:\",\r\n \"expression\": - \"1 -sum(windows_memory_available_bytes{job=\\\"windows-exporter\\\"})/sum(windows_os_visible_memory_bytes{job=\\\"windows-exporter\\\"})\"\r\n - \ },\r\n {\r\n \"record\": - \":windows_node_memory_MemFreeCached_bytes:sum\",\r\n \"expression\": - \"sum(windows_memory_available_bytes{job=\\\"windows-exporter\\\"} + windows_memory_cache_bytes{job=\\\"windows-exporter\\\"})\"\r\n - \ },\r\n {\r\n \"record\": - \"node:windows_node_memory_totalCached_bytes:sum\",\r\n \"expression\": - \"(windows_memory_cache_bytes{job=\\\"windows-exporter\\\"} + windows_memory_modified_page_list_bytes{job=\\\"windows-exporter\\\"} - + windows_memory_standby_cache_core_bytes{job=\\\"windows-exporter\\\"} + - windows_memory_standby_cache_normal_priority_bytes{job=\\\"windows-exporter\\\"} - + windows_memory_standby_cache_reserve_bytes{job=\\\"windows-exporter\\\"})\"\r\n - \ },\r\n {\r\n \"record\": - \":windows_node_memory_MemTotal_bytes:sum\",\r\n \"expression\": - \"sum(windows_os_visible_memory_bytes{job=\\\"windows-exporter\\\"})\"\r\n - \ },\r\n {\r\n \"record\": - \"node:windows_node_memory_bytes_available:sum\",\r\n \"expression\": - \"sum by (instance) ((windows_memory_available_bytes{job=\\\"windows-exporter\\\"}))\"\r\n - \ },\r\n {\r\n \"record\": - \"node:windows_node_memory_bytes_total:sum\",\r\n \"expression\": - \"sum by (instance) (windows_os_visible_memory_bytes{job=\\\"windows-exporter\\\"})\"\r\n - \ },\r\n {\r\n \"record\": - \"node:windows_node_memory_utilisation:ratio\",\r\n \"expression\": - \"(node:windows_node_memory_bytes_total:sum - node:windows_node_memory_bytes_available:sum) - / scalar(sum(node:windows_node_memory_bytes_total:sum))\"\r\n },\r\n - \ {\r\n \"record\": \"node:windows_node_memory_utilisation:\",\r\n - \ \"expression\": \"1 - (node:windows_node_memory_bytes_available:sum - / node:windows_node_memory_bytes_total:sum)\"\r\n },\r\n - \ {\r\n \"record\": \"node:windows_node_memory_swap_io_pages:irate\",\r\n - \ \"expression\": \"irate(windows_memory_swap_page_operations_total{job=\\\"windows-exporter\\\"}[5m])\"\r\n - \ },\r\n {\r\n \"record\": - \":windows_node_disk_utilisation:avg_irate\",\r\n \"expression\": - \"avg(irate(windows_logical_disk_read_seconds_total{job=\\\"windows-exporter\\\"}[5m]) - + irate(windows_logical_disk_write_seconds_total{job=\\\"windows-exporter\\\"}[5m]))\"\r\n - \ },\r\n {\r\n \"record\": - \"node:windows_node_disk_utilisation:avg_irate\",\r\n \"expression\": - \"avg by (instance) ((irate(windows_logical_disk_read_seconds_total{job=\\\"windows-exporter\\\"}[5m]) - + irate(windows_logical_disk_write_seconds_total{job=\\\"windows-exporter\\\"}[5m])))\"\r\n - \ }\r\n ]\r\n }\r\n },\r\n - \ {\r\n \"name\": \"[variables('nodeAndKubernetesRecordingRuleGroupNameWin')]\",\r\n - \ \"type\": \"Microsoft.AlertsManagement/prometheusRuleGroups\",\r\n - \ \"apiVersion\": \"2021-07-22-preview\",\r\n \"location\": - \"[parameters('location')]\",\r\n \"properties\": {\r\n \"description\": - \"[concat(variables('RecordingRuleGroupDescriptionWin'), variables('version'))]\",\r\n - \ \"scopes\": [ \"[parameters('azureMonitorWorkspaceResourceId')]\" - ],\r\n \"enabled\": false,\r\n \"clusterName\": - \"[parameters('clusterName')]\",\r\n \"interval\": \"PT1M\",\r\n - \ \"rules\": [\r\n {\r\n \"record\": - \"node:windows_node_filesystem_usage:\",\r\n \"expression\": - \"max by (instance,volume)((windows_logical_disk_size_bytes{job=\\\"windows-exporter\\\"} - - windows_logical_disk_free_bytes{job=\\\"windows-exporter\\\"}) / windows_logical_disk_size_bytes{job=\\\"windows-exporter\\\"})\"\r\n - \ },\r\n {\r\n \"record\": - \"node:windows_node_filesystem_avail:\",\r\n \"expression\": - \"max by (instance, volume) (windows_logical_disk_free_bytes{job=\\\"windows-exporter\\\"} - / windows_logical_disk_size_bytes{job=\\\"windows-exporter\\\"})\"\r\n },\r\n - \ {\r\n \"record\": \":windows_node_net_utilisation:sum_irate\",\r\n - \ \"expression\": \"sum(irate(windows_net_bytes_total{job=\\\"windows-exporter\\\"}[5m]))\"\r\n - \ },\r\n {\r\n \"record\": - \"node:windows_node_net_utilisation:sum_irate\",\r\n \"expression\": - \"sum by (instance) ((irate(windows_net_bytes_total{job=\\\"windows-exporter\\\"}[5m])))\"\r\n - \ },\r\n {\r\n \"record\": - \":windows_node_net_saturation:sum_irate\",\r\n \"expression\": - \"sum(irate(windows_net_packets_received_discarded_total{job=\\\"windows-exporter\\\"}[5m])) - + sum(irate(windows_net_packets_outbound_discarded_total{job=\\\"windows-exporter\\\"}[5m]))\"\r\n - \ },\r\n {\r\n \"record\": - \"node:windows_node_net_saturation:sum_irate\",\r\n \"expression\": - \"sum by (instance) ((irate(windows_net_packets_received_discarded_total{job=\\\"windows-exporter\\\"}[5m]) - + irate(windows_net_packets_outbound_discarded_total{job=\\\"windows-exporter\\\"}[5m])))\"\r\n - \ },\r\n {\r\n \"record\": - \"windows_pod_container_available\",\r\n \"expression\": - \"windows_container_available{job=\\\"windows-exporter\\\"} * on(container_id) - group_left(container, pod, namespace) max(kube_pod_container_info{job=\\\"kube-state-metrics\\\"}) - by(container, container_id, pod, namespace)\"\r\n },\r\n - \ {\r\n \"record\": \"windows_container_total_runtime\",\r\n - \ \"expression\": \"windows_container_cpu_usage_seconds_total{job=\\\"windows-exporter\\\"} - * on(container_id) group_left(container, pod, namespace) max(kube_pod_container_info{job=\\\"kube-state-metrics\\\"}) - by(container, container_id, pod, namespace)\"\r\n },\r\n - \ {\r\n \"record\": \"windows_container_memory_usage\",\r\n - \ \"expression\": \"windows_container_memory_usage_commit_bytes{job=\\\"windows-exporter\\\"} - * on(container_id) group_left(container, pod, namespace) max(kube_pod_container_info{job=\\\"kube-state-metrics\\\"}) - by(container, container_id, pod, namespace)\"\r\n },\r\n - \ {\r\n \"record\": \"windows_container_private_working_set_usage\",\r\n - \ \"expression\": \"windows_container_memory_usage_private_working_set_bytes{job=\\\"windows-exporter\\\"} - * on(container_id) group_left(container, pod, namespace) max(kube_pod_container_info{job=\\\"kube-state-metrics\\\"}) - by(container, container_id, pod, namespace)\"\r\n },\r\n - \ {\r\n \"record\": \"windows_container_network_received_bytes_total\",\r\n - \ \"expression\": \"windows_container_network_receive_bytes_total{job=\\\"windows-exporter\\\"} - * on(container_id) group_left(container, pod, namespace) max(kube_pod_container_info{job=\\\"kube-state-metrics\\\"}) - by(container, container_id, pod, namespace)\"\r\n },\r\n - \ {\r\n \"record\": \"windows_container_network_transmitted_bytes_total\",\r\n - \ \"expression\": \"windows_container_network_transmit_bytes_total{job=\\\"windows-exporter\\\"} - * on(container_id) group_left(container, pod, namespace) max(kube_pod_container_info{job=\\\"kube-state-metrics\\\"}) - by(container, container_id, pod, namespace)\"\r\n },\r\n - \ {\r\n \"record\": \"kube_pod_windows_container_resource_memory_request\",\r\n - \ \"expression\": \"max by (namespace, pod, container) - (kube_pod_container_resource_requests{resource=\\\"memory\\\",job=\\\"kube-state-metrics\\\"}) - * on(container,pod,namespace) (windows_pod_container_available)\"\r\n },\r\n - \ {\r\n \"record\": \"kube_pod_windows_container_resource_memory_limit\",\r\n - \ \"expression\": \"kube_pod_container_resource_limits{resource=\\\"memory\\\",job=\\\"kube-state-metrics\\\"} - * on(container,pod,namespace) (windows_pod_container_available)\"\r\n },\r\n - \ {\r\n \"record\": \"kube_pod_windows_container_resource_cpu_cores_request\",\r\n - \ \"expression\": \"max by (namespace, pod, container) - ( kube_pod_container_resource_requests{resource=\\\"cpu\\\",job=\\\"kube-state-metrics\\\"}) - * on(container,pod,namespace) (windows_pod_container_available)\"\r\n },\r\n - \ {\r\n \"record\": \"kube_pod_windows_container_resource_cpu_cores_limit\",\r\n - \ \"expression\": \"kube_pod_container_resource_limits{resource=\\\"cpu\\\",job=\\\"kube-state-metrics\\\"} - * on(container,pod,namespace) (windows_pod_container_available)\"\r\n },\r\n - \ {\r\n \"record\": \"namespace_pod_container:windows_container_cpu_usage_seconds_total:sum_rate\",\r\n - \ \"expression\": \"sum by (namespace, pod, container) - (rate(windows_container_total_runtime{}[5m]))\"\r\n }\r\n - \ ]\r\n }\r\n }\r\n ]\r\n}\r\n" - headers: - connection: - - close - content-length: - - '26657' - content-md5: - - AK9BuUl7gJCDOzjIXVX8Lw== + - python/3.8.10 (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) AZURECLI/2.48.1 + azuremonitormetrics.register_dashboard_rp + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/microsoft.dashboard/register?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Dashboard","namespace":"Microsoft.Dashboard","authorizations":[{"applicationId":"ce34e7e5-485f-4d76-964f-b3d2b16d1e4f","roleDefinitionId":"996b8381-eac0-46be-8daf-9619bafd1073"},{"applicationId":"6f2d169c-08f3-4a4c-a982-bcaf2d038c45"}],"resourceTypes":[{"resourceType":"locations","locations":[],"apiVersions":["2022-10-01-preview","2022-08-01","2022-05-01-preview","2021-09-01-preview"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2022-10-01-preview","2022-08-01","2022-05-01-preview","2021-09-01-preview"],"capabilities":"None"},{"resourceType":"locations/operationStatuses","locations":["East + US 2 EUAP","Central US EUAP","South Central US","West Europe","North Europe","UK + South","East US","East US 2","West Central US","Australia East","Sweden Central","West + US","West US 3","East Asia"],"apiVersions":["2022-10-01-preview","2022-08-01","2022-05-01-preview","2021-09-01-preview"],"capabilities":"None"},{"resourceType":"grafana","locations":["South + Central US","West Central US","West Europe","East US","East US 2","North Europe","UK + South","Australia East","Sweden Central","West US 3","East Asia","East US + 2 EUAP","Central US EUAP"],"apiVersions":["2022-10-01-preview","2022-08-01","2022-05-01-preview","2021-09-01-preview"],"capabilities":"SystemAssignedResourceIdentity, + SupportsTags, SupportsLocation"},{"resourceType":"operations","locations":[],"apiVersions":["2022-10-01-preview","2022-08-01","2022-05-01-preview","2021-09-01-preview"],"capabilities":"None"},{"resourceType":"grafana/privateEndpointConnections","locations":["South + Central US","West Central US","West Europe","North Europe","UK South","East + US","East US 2","Australia East","Sweden Central","West US 3","East Asia","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2022-10-01-preview","2022-08-01","2022-05-01-preview"],"capabilities":"None"},{"resourceType":"grafana/privateLinkResources","locations":["South + Central US","West Central US","West Europe","North Europe","UK South","East + US","East US 2","Australia East","Sweden Central","West US 3","East Asia","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2022-10-01-preview","2022-08-01","2022-05-01-preview"],"capabilities":"None"},{"resourceType":"locations/checkNameAvailability","locations":[],"apiVersions":["2022-10-01-preview","2022-08-01","2022-05-01-preview","2021-09-01-preview"],"capabilities":"None"},{"resourceType":"grafana/managedPrivateEndpoints","locations":["East + US 2 EUAP","Central US EUAP"],"apiVersions":["2022-10-01-preview"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + headers: + cache-control: + - no-cache + content-length: + - '2807' content-type: - - application/json + - application/json; charset=utf-8 date: - - Tue, 28 Mar 2023 22:07:44 GMT - etag: - - '0x8DB24C02F4BBCEA' - last-modified: - - Tue, 14 Mar 2023 19:13:24 GMT - server: - - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - x-ms-blob-type: - - BlockBlob - x-ms-lease-status: - - unlocked - x-ms-version: - - '2009-09-19' + - Tue, 09 May 2023 20:57:37 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' status: code: 200 message: OK - request: - body: '{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.AlertsManagement/prometheusRuleGroups/NodeRecordingRulesRuleGroup-cliakstest000002", - "name": "NodeRecordingRulesRuleGroup-cliakstest000002", "type": "Microsoft.AlertsManagement/prometheusRuleGroups", - "location": "westus2", "properties": {"scopes": ["/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.monitor/accounts/defaultazuremonitorworkspace-wus2"], - "enabled": true, "clusterName": "cliakstest000002", "interval": "PT1M", "rules": - [{"record": "instance:node_num_cpu:sum", "expression": "count without (cpu, - mode) ( node_cpu_seconds_total{job=\"node\",mode=\"idle\"})"}, {"record": "instance:node_cpu_utilisation:rate5m", - "expression": "1 - avg without (cpu) ( sum without (mode) (rate(node_cpu_seconds_total{job=\"node\", - mode=~\"idle|iowait|steal\"}[5m])))"}, {"record": "instance:node_load1_per_cpu:ratio", - "expression": "( node_load1{job=\"node\"}/ instance:node_num_cpu:sum{job=\"node\"})"}, - {"record": "instance:node_memory_utilisation:ratio", "expression": "1 - ( ( node_memory_MemAvailable_bytes{job=\"node\"} or ( node_memory_Buffers_bytes{job=\"node\"} + node_memory_Cached_bytes{job=\"node\"} + node_memory_MemFree_bytes{job=\"node\"} + node_memory_Slab_bytes{job=\"node\"} ) )/ node_memory_MemTotal_bytes{job=\"node\"})"}, - {"record": "instance:node_vmstat_pgmajfault:rate5m", "expression": "rate(node_vmstat_pgmajfault{job=\"node\"}[5m])"}, - {"record": "instance_device:node_disk_io_time_seconds:rate5m", "expression": - "rate(node_disk_io_time_seconds_total{job=\"node\", device!=\"\"}[5m])"}, {"record": - "instance_device:node_disk_io_time_weighted_seconds:rate5m", "expression": "rate(node_disk_io_time_weighted_seconds_total{job=\"node\", - device!=\"\"}[5m])"}, {"record": "instance:node_network_receive_bytes_excluding_lo:rate5m", - "expression": "sum without (device) ( rate(node_network_receive_bytes_total{job=\"node\", - device!=\"lo\"}[5m]))"}, {"record": "instance:node_network_transmit_bytes_excluding_lo:rate5m", - "expression": "sum without (device) ( rate(node_network_transmit_bytes_total{job=\"node\", - device!=\"lo\"}[5m]))"}, {"record": "instance:node_network_receive_drop_excluding_lo:rate5m", - "expression": "sum without (device) ( rate(node_network_receive_drop_total{job=\"node\", - device!=\"lo\"}[5m]))"}, {"record": "instance:node_network_transmit_drop_excluding_lo:rate5m", - "expression": "sum without (device) ( rate(node_network_transmit_drop_total{job=\"node\", - device!=\"lo\"}[5m]))"}]}}' + body: null headers: Accept: - '*/*' @@ -2339,351 +1440,1872 @@ interactions: - aks update Connection: - keep-alive - Content-Length: - - '2647' - Content-Type: - - application/json ParameterSetName: - - --resource-group --name --yes --output --aks-custom-headers --enable-azuremonitormetrics - --enable-managed-identity --enable-windows-recording-rules + - --resource-group --name --yes --output --enable-azuremonitormetrics --enable-managed-identity + --enable-windows-recording-rules User-Agent: - - python/3.10.10 (Linux-5.15.0-1034-azure-x86_64-with-glibc2.31) AZURECLI/2.46.0 - VSTS_7b238909-6802-4b65-b90d-184bca47f458_build_261_0 azuremonitormetrics.put_rules.NodeRecordingRulesRuleGroup-cliakstestgctra - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.AlertsManagement/prometheusRuleGroups/NodeRecordingRulesRuleGroup-cliakstest000002?api-version=2021-07-22-preview + - python/3.8.10 (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) AZURECLI/2.48.1 + azuremonitormetrics.get_supported_rp_locations + method: GET + uri: https://management.azure.com/providers/Microsoft.Monitor?api-version=2022-01-01 response: body: - string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.AlertsManagement/prometheusRuleGroups/NodeRecordingRulesRuleGroup-cliakstest000002\",\r\n - \ \"name\": \"NodeRecordingRulesRuleGroup-cliakstest000002\",\r\n \"type\": - \"Microsoft.AlertsManagement/prometheusRuleGroups\",\r\n \"location\": \"westus2\",\r\n - \ \"properties\": {\r\n \"enabled\": true,\r\n \"clusterName\": \"cliakstest000002\",\r\n - \ \"scopes\": [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.monitor/accounts/defaultazuremonitorworkspace-wus2\"\r\n - \ ],\r\n \"rules\": [\r\n {\r\n \"record\": \"instance:node_num_cpu:sum\",\r\n - \ \"expression\": \"count without (cpu, mode) ( node_cpu_seconds_total{job=\\\"node\\\",mode=\\\"idle\\\"})\"\r\n - \ },\r\n {\r\n \"record\": \"instance:node_cpu_utilisation:rate5m\",\r\n - \ \"expression\": \"1 - avg without (cpu) ( sum without (mode) (rate(node_cpu_seconds_total{job=\\\"node\\\", - mode=~\\\"idle|iowait|steal\\\"}[5m])))\"\r\n },\r\n {\r\n \"record\": - \"instance:node_load1_per_cpu:ratio\",\r\n \"expression\": \"( node_load1{job=\\\"node\\\"}/ - \ instance:node_num_cpu:sum{job=\\\"node\\\"})\"\r\n },\r\n {\r\n - \ \"record\": \"instance:node_memory_utilisation:ratio\",\r\n \"expression\": - \"1 - ( ( node_memory_MemAvailable_bytes{job=\\\"node\\\"} or ( - \ node_memory_Buffers_bytes{job=\\\"node\\\"} + node_memory_Cached_bytes{job=\\\"node\\\"} - \ + node_memory_MemFree_bytes{job=\\\"node\\\"} + node_memory_Slab_bytes{job=\\\"node\\\"} - \ ) )/ node_memory_MemTotal_bytes{job=\\\"node\\\"})\"\r\n },\r\n - \ {\r\n \"record\": \"instance:node_vmstat_pgmajfault:rate5m\",\r\n - \ \"expression\": \"rate(node_vmstat_pgmajfault{job=\\\"node\\\"}[5m])\"\r\n - \ },\r\n {\r\n \"record\": \"instance_device:node_disk_io_time_seconds:rate5m\",\r\n - \ \"expression\": \"rate(node_disk_io_time_seconds_total{job=\\\"node\\\", - device!=\\\"\\\"}[5m])\"\r\n },\r\n {\r\n \"record\": \"instance_device:node_disk_io_time_weighted_seconds:rate5m\",\r\n - \ \"expression\": \"rate(node_disk_io_time_weighted_seconds_total{job=\\\"node\\\", - device!=\\\"\\\"}[5m])\"\r\n },\r\n {\r\n \"record\": \"instance:node_network_receive_bytes_excluding_lo:rate5m\",\r\n - \ \"expression\": \"sum without (device) ( rate(node_network_receive_bytes_total{job=\\\"node\\\", - device!=\\\"lo\\\"}[5m]))\"\r\n },\r\n {\r\n \"record\": - \"instance:node_network_transmit_bytes_excluding_lo:rate5m\",\r\n \"expression\": - \"sum without (device) ( rate(node_network_transmit_bytes_total{job=\\\"node\\\", - device!=\\\"lo\\\"}[5m]))\"\r\n },\r\n {\r\n \"record\": - \"instance:node_network_receive_drop_excluding_lo:rate5m\",\r\n \"expression\": - \"sum without (device) ( rate(node_network_receive_drop_total{job=\\\"node\\\", - device!=\\\"lo\\\"}[5m]))\"\r\n },\r\n {\r\n \"record\": - \"instance:node_network_transmit_drop_excluding_lo:rate5m\",\r\n \"expression\": - \"sum without (device) ( rate(node_network_transmit_drop_total{job=\\\"node\\\", - device!=\\\"lo\\\"}[5m]))\"\r\n }\r\n ],\r\n \"interval\": \"PT1M\"\r\n - \ }\r\n}" + string: '{"namespace":"Microsoft.Monitor","resourceTypes":[{"resourceType":"accounts","locations":["East + US 2 EUAP","Central US EUAP","North Central US","East US","Australia Central","Australia + Southeast","Brazil South","Canada Central","Central India","Central US","East + Asia","East US 2","North Europe","Norway East","South Africa North","South + Central US","Southeast Asia","UAE North","UK South","West Central US","West + Europe","West US","West US 2"],"apiVersions":["2023-04-01","2021-06-01-preview"],"capabilities":"SupportsTags, + SupportsLocation"},{"resourceType":"operations","locations":["East US 2 EUAP","Central + US EUAP","North Central US","East US","Australia Central","Australia Southeast","Brazil + South","Canada Central","Central India","Central US","East Asia","East US + 2","North Europe","Norway East","South Africa North","South Central US","Southeast + Asia","UAE North","UK South","West Central US","West Europe","West US","West + US 2"],"apiVersions":["2023-04-03","2023-04-01","2021-06-03-preview","2021-06-01-preview"],"defaultApiVersion":"2021-06-01-preview","capabilities":"None"},{"resourceType":"locations","locations":[],"apiVersions":["2023-04-03","2023-04-01","2021-06-03-preview","2021-06-01-preview"],"capabilities":"None"},{"resourceType":"locations/operationResults","locations":["East + US 2 EUAP","Central US EUAP","North Central US","East US","Australia Central","Australia + Southeast","Brazil South","Canada Central","Central India","Central US","East + Asia","East US 2","North Europe","Norway East","South Africa North","South + Central US","Southeast Asia","UAE North","UK South","West Central US","West + Europe","West US","West US 2"],"apiVersions":["2023-04-01","2021-06-01-preview"],"capabilities":"None"},{"resourceType":"locations/operationStatuses","locations":["East + US 2 EUAP","Central US EUAP","North Central US","East US","Australia Central","Australia + Southeast","Brazil South","Canada Central","Central India","Central US","East + Asia","East US 2","North Europe","Norway East","South Africa North","South + Central US","Southeast Asia","UAE North","UK South","West Central US","West + Europe","West US","West US 2"],"apiVersions":["2023-04-01","2021-06-01-preview"],"capabilities":"None"}]}' headers: - api-supported-versions: - - 2021-07-22-preview, 2023-03-01 - arr-disable-session-affinity: - - 'true' cache-control: - no-cache content-length: - - '3090' + - '2213' content-type: - application/json; charset=utf-8 date: - - Tue, 28 Mar 2023 22:07:49 GMT + - Tue, 09 May 2023 20:57:38 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-IIS/10.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding,Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-ms-ratelimit-remaining-subscription-resource-requests: - - '299' - x-powered-by: - - ASP.NET status: code: 200 message: OK - request: - body: '{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.AlertsManagement/prometheusRuleGroups/KubernetesRecordingRulesRuleGroup-cliakstest000002", - "name": "KubernetesRecordingRulesRuleGroup-cliakstest000002", "type": "Microsoft.AlertsManagement/prometheusRuleGroups", - "location": "westus2", "properties": {"scopes": ["/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.monitor/accounts/defaultazuremonitorworkspace-wus2"], - "enabled": true, "clusterName": "cliakstest000002", "interval": "PT1M", "rules": - [{"record": "node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate", - "expression": "sum by (cluster, namespace, pod, container) ( irate(container_cpu_usage_seconds_total{job=\"cadvisor\", - image!=\"\"}[5m])) * on (cluster, namespace, pod) group_left(node) topk by (cluster, - namespace, pod) ( 1, max by(cluster, namespace, pod, node) (kube_pod_info{node!=\"\"}))"}, - {"record": "node_namespace_pod_container:container_memory_working_set_bytes", - "expression": "container_memory_working_set_bytes{job=\"cadvisor\", image!=\"\"}* - on (namespace, pod) group_left(node) topk by(namespace, pod) (1, max by(namespace, - pod, node) (kube_pod_info{node!=\"\"}))"}, {"record": "node_namespace_pod_container:container_memory_rss", - "expression": "container_memory_rss{job=\"cadvisor\", image!=\"\"}* on (namespace, - pod) group_left(node) topk by(namespace, pod) (1, max by(namespace, pod, node) - (kube_pod_info{node!=\"\"}))"}, {"record": "node_namespace_pod_container:container_memory_cache", - "expression": "container_memory_cache{job=\"cadvisor\", image!=\"\"}* on (namespace, - pod) group_left(node) topk by(namespace, pod) (1, max by(namespace, pod, node) - (kube_pod_info{node!=\"\"}))"}, {"record": "node_namespace_pod_container:container_memory_swap", - "expression": "container_memory_swap{job=\"cadvisor\", image!=\"\"}* on (namespace, - pod) group_left(node) topk by(namespace, pod) (1, max by(namespace, pod, node) - (kube_pod_info{node!=\"\"}))"}, {"record": "cluster:namespace:pod_memory:active:kube_pod_container_resource_requests", - "expression": "kube_pod_container_resource_requests{resource=\"memory\",job=\"kube-state-metrics\"} * - on (namespace, pod, cluster)group_left() max by (namespace, pod, cluster) ( (kube_pod_status_phase{phase=~\"Pending|Running\"} - == 1))"}, {"record": "namespace_memory:kube_pod_container_resource_requests:sum", - "expression": "sum by (namespace, cluster) ( sum by (namespace, pod, cluster) - ( max by (namespace, pod, container, cluster) ( kube_pod_container_resource_requests{resource=\"memory\",job=\"kube-state-metrics\"} ) - * on(namespace, pod, cluster) group_left() max by (namespace, pod, cluster) - ( kube_pod_status_phase{phase=~\"Pending|Running\"} == 1 ) ))"}, - {"record": "cluster:namespace:pod_cpu:active:kube_pod_container_resource_requests", - "expression": "kube_pod_container_resource_requests{resource=\"cpu\",job=\"kube-state-metrics\"} * - on (namespace, pod, cluster)group_left() max by (namespace, pod, cluster) ( (kube_pod_status_phase{phase=~\"Pending|Running\"} - == 1))"}, {"record": "namespace_cpu:kube_pod_container_resource_requests:sum", - "expression": "sum by (namespace, cluster) ( sum by (namespace, pod, cluster) - ( max by (namespace, pod, container, cluster) ( kube_pod_container_resource_requests{resource=\"cpu\",job=\"kube-state-metrics\"} ) - * on(namespace, pod, cluster) group_left() max by (namespace, pod, cluster) - ( kube_pod_status_phase{phase=~\"Pending|Running\"} == 1 ) ))"}, - {"record": "cluster:namespace:pod_memory:active:kube_pod_container_resource_limits", - "expression": "kube_pod_container_resource_limits{resource=\"memory\",job=\"kube-state-metrics\"} * - on (namespace, pod, cluster)group_left() max by (namespace, pod, cluster) ( (kube_pod_status_phase{phase=~\"Pending|Running\"} - == 1))"}, {"record": "namespace_memory:kube_pod_container_resource_limits:sum", - "expression": "sum by (namespace, cluster) ( sum by (namespace, pod, cluster) - ( max by (namespace, pod, container, cluster) ( kube_pod_container_resource_limits{resource=\"memory\",job=\"kube-state-metrics\"} ) - * on(namespace, pod, cluster) group_left() max by (namespace, pod, cluster) - ( kube_pod_status_phase{phase=~\"Pending|Running\"} == 1 ) ))"}, - {"record": "cluster:namespace:pod_cpu:active:kube_pod_container_resource_limits", - "expression": "kube_pod_container_resource_limits{resource=\"cpu\",job=\"kube-state-metrics\"} * - on (namespace, pod, cluster)group_left() max by (namespace, pod, cluster) ( - (kube_pod_status_phase{phase=~\"Pending|Running\"} == 1) )"}, {"record": "namespace_cpu:kube_pod_container_resource_limits:sum", - "expression": "sum by (namespace, cluster) ( sum by (namespace, pod, cluster) - ( max by (namespace, pod, container, cluster) ( kube_pod_container_resource_limits{resource=\"cpu\",job=\"kube-state-metrics\"} ) - * on(namespace, pod, cluster) group_left() max by (namespace, pod, cluster) - ( kube_pod_status_phase{phase=~\"Pending|Running\"} == 1 ) ))"}, - {"record": "namespace_workload_pod:kube_pod_owner:relabel", "expression": "max - by (cluster, namespace, workload, pod) ( label_replace( label_replace( kube_pod_owner{job=\"kube-state-metrics\", - owner_kind=\"ReplicaSet\"}, \"replicaset\", \"$1\", \"owner_name\", \"(.*)\" ) - * on(replicaset, namespace) group_left(owner_name) topk by(replicaset, namespace) - ( 1, max by (replicaset, namespace, owner_name) ( kube_replicaset_owner{job=\"kube-state-metrics\"} ) ), \"workload\", - \"$1\", \"owner_name\", \"(.*)\" ))", "labels": {"workload_type": "deployment"}}, - {"record": "namespace_workload_pod:kube_pod_owner:relabel", "expression": "max - by (cluster, namespace, workload, pod) ( label_replace( kube_pod_owner{job=\"kube-state-metrics\", - owner_kind=\"DaemonSet\"}, \"workload\", \"$1\", \"owner_name\", \"(.*)\" ))", - "labels": {"workload_type": "daemonset"}}, {"record": "namespace_workload_pod:kube_pod_owner:relabel", - "expression": "max by (cluster, namespace, workload, pod) ( label_replace( kube_pod_owner{job=\"kube-state-metrics\", - owner_kind=\"StatefulSet\"}, \"workload\", \"$1\", \"owner_name\", \"(.*)\" ))", - "labels": {"workload_type": "statefulset"}}, {"record": "namespace_workload_pod:kube_pod_owner:relabel", - "expression": "max by (cluster, namespace, workload, pod) ( label_replace( kube_pod_owner{job=\"kube-state-metrics\", - owner_kind=\"Job\"}, \"workload\", \"$1\", \"owner_name\", \"(.*)\" ))", - "labels": {"workload_type": "job"}}, {"record": ":node_memory_MemAvailable_bytes:sum", - "expression": "sum( node_memory_MemAvailable_bytes{job=\"node\"} or ( node_memory_Buffers_bytes{job=\"node\"} - + node_memory_Cached_bytes{job=\"node\"} + node_memory_MemFree_bytes{job=\"node\"} - + node_memory_Slab_bytes{job=\"node\"} )) by (cluster)"}, {"record": "cluster:node_cpu:ratio_rate5m", - "expression": "sum(rate(node_cpu_seconds_total{job=\"node\",mode!=\"idle\",mode!=\"iowait\",mode!=\"steal\"}[5m])) - by (cluster) /count(sum(node_cpu_seconds_total{job=\"node\"}) by (cluster, instance, - cpu)) by (cluster)"}]}}' + body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate CommandName: - aks update Connection: - keep-alive - Content-Length: - - '7325' - Content-Type: - - application/json ParameterSetName: - - --resource-group --name --yes --output --aks-custom-headers --enable-azuremonitormetrics - --enable-managed-identity --enable-windows-recording-rules + - --resource-group --name --yes --output --enable-azuremonitormetrics --enable-managed-identity + --enable-windows-recording-rules User-Agent: - - python/3.10.10 (Linux-5.15.0-1034-azure-x86_64-with-glibc2.31) AZURECLI/2.46.0 - VSTS_7b238909-6802-4b65-b90d-184bca47f458_build_261_0 azuremonitormetrics.put_rules.KubernetesRecordingRulesRuleGroup-cliakstestgctra - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.AlertsManagement/prometheusRuleGroups/KubernetesRecordingRulesRuleGroup-cliakstest000002?api-version=2021-07-22-preview + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-resource/22.0.0 Python/3.8.10 (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) + method: HEAD + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/DefaultResourceGroup-westus2?api-version=2022-09-01 response: body: - string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.AlertsManagement/prometheusRuleGroups/KubernetesRecordingRulesRuleGroup-cliakstest000002\",\r\n - \ \"name\": \"KubernetesRecordingRulesRuleGroup-cliakstest000002\",\r\n \"type\": - \"Microsoft.AlertsManagement/prometheusRuleGroups\",\r\n \"location\": \"westus2\",\r\n - \ \"properties\": {\r\n \"enabled\": true,\r\n \"clusterName\": \"cliakstest000002\",\r\n - \ \"scopes\": [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.monitor/accounts/defaultazuremonitorworkspace-wus2\"\r\n - \ ],\r\n \"rules\": [\r\n {\r\n \"record\": \"node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate\",\r\n - \ \"expression\": \"sum by (cluster, namespace, pod, container) ( irate(container_cpu_usage_seconds_total{job=\\\"cadvisor\\\", - image!=\\\"\\\"}[5m])) * on (cluster, namespace, pod) group_left(node) topk - by (cluster, namespace, pod) ( 1, max by(cluster, namespace, pod, node) (kube_pod_info{node!=\\\"\\\"}))\"\r\n - \ },\r\n {\r\n \"record\": \"node_namespace_pod_container:container_memory_working_set_bytes\",\r\n - \ \"expression\": \"container_memory_working_set_bytes{job=\\\"cadvisor\\\", - image!=\\\"\\\"}* on (namespace, pod) group_left(node) topk by(namespace, - pod) (1, max by(namespace, pod, node) (kube_pod_info{node!=\\\"\\\"}))\"\r\n - \ },\r\n {\r\n \"record\": \"node_namespace_pod_container:container_memory_rss\",\r\n - \ \"expression\": \"container_memory_rss{job=\\\"cadvisor\\\", image!=\\\"\\\"}* + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Tue, 09 May 2023 20:57:38 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 204 + message: No Content +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --yes --output --enable-azuremonitormetrics --enable-managed-identity + --enable-windows-recording-rules + User-Agent: + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-resource/22.0.0 Python/3.8.10 (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/DefaultResourceGroup-westus2/providers/microsoft.monitor/accounts/DefaultAzureMonitorWorkspace-westus2?api-version=2023-04-03 + response: + body: + string: '{"properties":{"accountId":"ec050f19-1529-4ec2-9d0c-e6677ca07ac8","metrics":{"prometheusQueryEndpoint":"https://defaultazuremonitorworkspace-westus2-9jg3.westus2.prometheus.monitor.azure.com","internalId":"mac_ec050f19-1529-4ec2-9d0c-e6677ca07ac8"},"provisioningState":"Succeeded","defaultIngestionSettings":{"dataCollectionRuleResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MA_defaultazuremonitorworkspace-westus2_westus2_managed/providers/Microsoft.Insights/dataCollectionRules/defaultazuremonitorworkspace-westus2","dataCollectionEndpointResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MA_defaultazuremonitorworkspace-westus2_westus2_managed/providers/Microsoft.Insights/dataCollectionEndpoints/defaultazuremonitorworkspace-westus2"},"publicNetworkAccess":"Enabled"},"location":"westus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-westus2/providers/microsoft.monitor/accounts/defaultazuremonitorworkspace-westus2","name":"DefaultAzureMonitorWorkspace-westus2","type":"Microsoft.Monitor/accounts","etag":"\"3d030879-0000-0800-0000-6452ca160000\"","systemData":{"createdBy":"3fac8b4e-cd90-4baa-a5d2-66d52bc8349d","createdByType":"Application","createdAt":"2023-05-03T20:54:27.8807957Z","lastModifiedBy":"3fac8b4e-cd90-4baa-a5d2-66d52bc8349d","lastModifiedByType":"Application","lastModifiedAt":"2023-05-03T20:54:27.8807957Z"}}' + headers: + api-supported-versions: + - 2021-06-01-preview, 2021-06-03-preview, 2023-04-01, 2023-04-03 + cache-control: + - no-cache + content-length: + - '1443' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 09 May 2023 20:57:37 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:74683e7d-3ee8-4856-bfe7-e63c83b6737e + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"name": "MSProm-westus2-cliakstest000002", "location": "westus2", "kind": + "Linux", "properties": {}}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + Content-Length: + - '101' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --name --yes --output --enable-azuremonitormetrics --enable-managed-identity + --enable-windows-recording-rules + User-Agent: + - python/3.8.10 (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) AZURECLI/2.48.1 + azuremonitormetrics.create_dce + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionEndpoints/MSProm-westus2-cliakstest000002?api-version=2022-06-01 + response: + body: + string: '{"properties":{"immutableId":"dce-774618264e494684a32d52af1450dd5b","configurationAccess":{"endpoint":"https://msprom-westus2-cliakstest000002-78nk.westus2-1.handler.control.monitor.azure.com"},"logsIngestion":{"endpoint":"https://msprom-westus2-cliakstest000002-78nk.westus2-1.ingest.monitor.azure.com"},"metricsIngestion":{"endpoint":"https://msprom-westus2-cliakstest000002-78nk.westus2-1.metrics.ingest.monitor.azure.com"},"networkAcls":{"publicNetworkAccess":"Enabled"},"provisioningState":"Succeeded"},"location":"westus2","kind":"Linux","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionEndpoints/MSProm-westus2-cliakstest000002","name":"MSProm-westus2-cliakstest000002","type":"Microsoft.Insights/dataCollectionEndpoints","etag":"\"3407f308-0000-0800-0000-645ab3c50000\"","systemData":{"createdBy":"3fac8b4e-cd90-4baa-a5d2-66d52bc8349d","createdByType":"Application","createdAt":"2023-05-09T20:57:40.3946876Z","lastModifiedBy":"3fac8b4e-cd90-4baa-a5d2-66d52bc8349d","lastModifiedByType":"Application","lastModifiedAt":"2023-05-09T20:57:40.3946876Z"}}' + headers: + api-supported-versions: + - 2021-04-01, 2021-09-01-preview, 2022-06-01, 2023-03-11 + cache-control: + - no-cache + content-length: + - '1138' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 09 May 2023 20:57:42 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '59' + status: + code: 200 + message: OK +- request: + body: '{"location": "westus2", "kind": "Linux", "properties": {"dataCollectionEndpointId": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionEndpoints/MSProm-westus2-cliakstest000002", + "dataSources": {"prometheusForwarder": [{"name": "PrometheusDataSource", "streams": + ["Microsoft-PrometheusMetrics"], "labelIncludeFilter": {}}]}, "dataFlows": [{"destinations": + ["MonitoringAccount1"], "streams": ["Microsoft-PrometheusMetrics"]}], "description": + "DCR description", "destinations": {"monitoringAccounts": [{"accountResourceId": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/DefaultResourceGroup-westus2/providers/microsoft.monitor/accounts/DefaultAzureMonitorWorkspace-westus2", + "name": "MonitoringAccount1"}]}}}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + Content-Length: + - '802' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --name --yes --output --enable-azuremonitormetrics --enable-managed-identity + --enable-windows-recording-rules + User-Agent: + - python/3.8.10 (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) AZURECLI/2.48.1 + azuremonitormetrics.create_dcr + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/MSProm-westus2-cliakstest000002?api-version=2022-06-01 + response: + body: + string: '{"properties":{"description":"DCR description","immutableId":"dcr-b062b555454e4f3ca8e72739fe31acd3","dataCollectionEndpointId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionEndpoints/MSProm-westus2-cliakstest000002","dataSources":{"prometheusForwarder":[{"streams":["Microsoft-PrometheusMetrics"],"labelIncludeFilter":{},"name":"PrometheusDataSource"}]},"destinations":{"monitoringAccounts":[{"accountResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/DefaultResourceGroup-westus2/providers/microsoft.monitor/accounts/DefaultAzureMonitorWorkspace-westus2","accountId":"ec050f19-1529-4ec2-9d0c-e6677ca07ac8","name":"MonitoringAccount1"}]},"dataFlows":[{"streams":["Microsoft-PrometheusMetrics"],"destinations":["MonitoringAccount1"]}],"provisioningState":"Succeeded"},"location":"westus2","kind":"Linux","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/MSProm-westus2-cliakstest000002","name":"MSProm-westus2-cliakstest000002","type":"Microsoft.Insights/dataCollectionRules","etag":"\"3407450a-0000-0800-0000-645ab3c90000\"","systemData":{"createdBy":"3fac8b4e-cd90-4baa-a5d2-66d52bc8349d","createdByType":"Application","createdAt":"2023-05-09T20:57:44.6667141Z","lastModifiedBy":"3fac8b4e-cd90-4baa-a5d2-66d52bc8349d","lastModifiedByType":"Application","lastModifiedAt":"2023-05-09T20:57:44.6667141Z"}}' + headers: + api-supported-versions: + - 2019-11-01-preview, 2021-04-01, 2021-09-01-preview, 2022-06-01, 2023-03-11 + cache-control: + - no-cache + content-length: + - '1497' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 09 May 2023 20:57:46 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '149' + status: + code: 200 + message: OK +- request: + body: '{"location": "westus2", "properties": {"dataCollectionRuleId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/MSProm-westus2-cliakstest000002", + "description": "Promtheus data collection association between DCR, DCE and target + AKS resource"}}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + Content-Length: + - '325' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --name --yes --output --enable-azuremonitormetrics --enable-managed-identity + --enable-windows-recording-rules + User-Agent: + - python/3.8.10 (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) AZURECLI/2.48.1 + azuremonitormetrics.create_dcra + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/providers/Microsoft.Insights/dataCollectionRuleAssociations/ContainerInsightsMetricsExtension-westus2-cliakstest000002?api-version=2022-06-01 + response: + body: + string: '{"properties":{"description":"Promtheus data collection association + between DCR, DCE and target AKS resource","dataCollectionRuleId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/MSProm-westus2-cliakstest000002"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/providers/Microsoft.Insights/dataCollectionRuleAssociations/ContainerInsightsMetricsExtension-westus2-cliakstest000002","name":"ContainerInsightsMetricsExtension-westus2-cliakstest000002","type":"Microsoft.Insights/dataCollectionRuleAssociations","etag":"\"3407110b-0000-0800-0000-645ab3cb0000\"","systemData":{"createdBy":"3fac8b4e-cd90-4baa-a5d2-66d52bc8349d","createdByType":"Application","createdAt":"2023-05-09T20:57:47.1810464Z","lastModifiedBy":"3fac8b4e-cd90-4baa-a5d2-66d52bc8349d","lastModifiedByType":"Application","lastModifiedAt":"2023-05-09T20:57:47.1810464Z"}}' + headers: + api-supported-versions: + - 2019-11-01-preview, 2021-04-01, 2021-09-01-preview, 2022-06-01, 2023-03-11 + cache-control: + - no-cache + content-length: + - '1030' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 09 May 2023 20:57:47 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '299' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --yes --output --enable-azuremonitormetrics --enable-managed-identity + --enable-windows-recording-rules + User-Agent: + - python/3.8.10 (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) AZURECLI/2.48.1 + azuremonitormetrics.get_recording_rules_template + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/DefaultResourceGroup-westus2/providers/microsoft.monitor/accounts/DefaultAzureMonitorWorkspace-westus2/providers/microsoft.alertsManagement/alertRuleRecommendations?api-version=2023-01-01-preview + response: + body: + string: "{\r\n \"value\": [\r\n {\r\n \"id\": \"subscriptions/79a7390d-3a85-432d-9f6f-a11a703c8b83/resourceGroups/DefaultResourceGroup-westus2/providers/microsoft.monitor/accounts/DefaultAzureMonitorWorkspace-westus2/providers/microsoft.alertsManagement/alertRuleRecommendations/NodeRecordingRulesRuleGroup\",\r\n + \ \"name\": \"NodeRecordingRulesRuleGroup\",\r\n \"type\": \"Microsoft.AlertsManagement/AlertRuleRecommendations\",\r\n + \ \"location\": \"global\",\r\n \"properties\": {\r\n \"alertRuleType\": + \"Microsoft.AlertsManagement/prometheusRuleGroups\",\r\n \"displayInformation\": + {\r\n \"AlertRuleNamePrefix\": \"NodeRecordingRulesRuleGroup\",\r\n + \ \"RuleTitle\": \"This would be the info message for prom recording + rules\"\r\n },\r\n \"rulesArmTemplate\": {\r\n \"$schema\": + \"https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#\",\r\n + \ \"contentVersion\": \"1.0.0.0\",\r\n \"parameters\": {\r\n + \ \"targetResourceId\": {\r\n \"type\": \"string\",\r\n + \ \"defaultValue\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/DefaultResourceGroup-westus2/providers/microsoft.monitor/accounts/DefaultAzureMonitorWorkspace-westus2\"\r\n + \ },\r\n \"targetResourceName\": {\r\n \"type\": + \"string\",\r\n \"defaultValue\": \"defaultazuremonitorworkspace-westus2\"\r\n + \ },\r\n \"actionGroupIds\": {\r\n \"type\": + \"array\",\r\n \"defaultValue\": [],\r\n \"metadata\": + {\r\n \"description\": \"Insert Action groups ids to attach + them to the below alert rules.\"\r\n }\r\n },\r\n + \ \"location\": {\r\n \"type\": \"string\",\r\n \"defaultValue\": + \"westus2\"\r\n },\r\n \"clusterNameForPrometheus\": + {\r\n \"type\": \"string\"\r\n },\r\n \"alertNamePrefix\": + {\r\n \"type\": \"string\",\r\n \"defaultValue\": + \"NodeRecordingRulesRuleGroup\",\r\n \"minLength\": 1,\r\n \"metadata\": + {\r\n \"description\": \"prefix of the alert rule name\"\r\n + \ }\r\n },\r\n \"alertName\": {\r\n \"type\": + \"string\",\r\n \"defaultValue\": \"[concat(parameters('alertNamePrefix'), + ' - ', parameters('clusterNameForPrometheus'))]\",\r\n \"minLength\": + 1,\r\n \"metadata\": {\r\n \"description\": \"Name + of the alert rule\"\r\n }\r\n }\r\n },\r\n + \ \"variables\": {\r\n \"scopes\": \"[array(parameters('targetResourceId'))]\",\r\n + \ \"copy\": [\r\n {\r\n \"name\": \"actionsForPrometheusRuleGroups\",\r\n + \ \"count\": \"[length(parameters('actionGroupIds'))]\",\r\n + \ \"input\": {\r\n \"actiongroupId\": \"[parameters('actionGroupIds')[copyIndex('actionsForPrometheusRuleGroups')]]\"\r\n + \ }\r\n }\r\n ]\r\n },\r\n + \ \"resources\": [\r\n {\r\n \"name\": \"[parameters('alertName')]\",\r\n + \ \"type\": \"Microsoft.AlertsManagement/prometheusRuleGroups\",\r\n + \ \"apiVersion\": \"2021-07-22-preview\",\r\n \"location\": + \"[parameters('location')]\",\r\n \"properties\": {\r\n \"description\": + \"Node Recording Rules RuleGroup\",\r\n \"scopes\": \"[variables('scopes')]\",\r\n + \ \"clusterName\": \"[parameters('clusterNameForPrometheus')]\",\r\n + \ \"interval\": \"PT1M\",\r\n \"rules\": [\r\n + \ {\r\n \"record\": \"instance:node_num_cpu:sum\",\r\n + \ \"expression\": \"count without (cpu, mode) ( node_cpu_seconds_total{job=\\\"node\\\",mode=\\\"idle\\\"})\"\r\n + \ },\r\n {\r\n \"record\": + \"instance:node_cpu_utilisation:rate5m\",\r\n \"expression\": + \"1 - avg without (cpu) ( sum without (mode) (rate(node_cpu_seconds_total{job=\\\"node\\\", + mode=~\\\"idle|iowait|steal\\\"}[5m])))\"\r\n },\r\n {\r\n + \ \"record\": \"instance:node_load1_per_cpu:ratio\",\r\n + \ \"expression\": \"( node_load1{job=\\\"node\\\"}/ instance:node_num_cpu:sum{job=\\\"node\\\"})\"\r\n + \ },\r\n {\r\n \"record\": + \"instance:node_memory_utilisation:ratio\",\r\n \"expression\": + \"1 - ( ( node_memory_MemAvailable_bytes{job=\\\"node\\\"} or ( + \ node_memory_Buffers_bytes{job=\\\"node\\\"} + node_memory_Cached_bytes{job=\\\"node\\\"} + \ + node_memory_MemFree_bytes{job=\\\"node\\\"} + node_memory_Slab_bytes{job=\\\"node\\\"} + \ ) )/ node_memory_MemTotal_bytes{job=\\\"node\\\"})\"\r\n },\r\n + \ {\r\n \"record\": \"instance:node_vmstat_pgmajfault:rate5m\",\r\n + \ \"expression\": \"rate(node_vmstat_pgmajfault{job=\\\"node\\\"}[5m])\"\r\n + \ },\r\n {\r\n \"record\": + \"instance_device:node_disk_io_time_seconds:rate5m\",\r\n \"expression\": + \"rate(node_disk_io_time_seconds_total{job=\\\"node\\\", device!=\\\"\\\"}[5m])\"\r\n + \ },\r\n {\r\n \"record\": + \"instance_device:node_disk_io_time_weighted_seconds:rate5m\",\r\n \"expression\": + \"rate(node_disk_io_time_weighted_seconds_total{job=\\\"node\\\", device!=\\\"\\\"}[5m])\"\r\n + \ },\r\n {\r\n \"record\": + \"instance:node_network_receive_bytes_excluding_lo:rate5m\",\r\n \"expression\": + \"sum without (device) ( rate(node_network_receive_bytes_total{job=\\\"node\\\", + device!=\\\"lo\\\"}[5m]))\"\r\n },\r\n {\r\n + \ \"record\": \"instance:node_network_transmit_bytes_excluding_lo:rate5m\",\r\n + \ \"expression\": \"sum without (device) ( rate(node_network_transmit_bytes_total{job=\\\"node\\\", + device!=\\\"lo\\\"}[5m]))\"\r\n },\r\n {\r\n + \ \"record\": \"instance:node_network_receive_drop_excluding_lo:rate5m\",\r\n + \ \"expression\": \"sum without (device) ( rate(node_network_receive_drop_total{job=\\\"node\\\", + device!=\\\"lo\\\"}[5m]))\"\r\n },\r\n {\r\n + \ \"record\": \"instance:node_network_transmit_drop_excluding_lo:rate5m\",\r\n + \ \"expression\": \"sum without (device) ( rate(node_network_transmit_drop_total{job=\\\"node\\\", + device!=\\\"lo\\\"}[5m]))\"\r\n }\r\n ]\r\n + \ }\r\n }\r\n ]\r\n }\r\n }\r\n + \ },\r\n {\r\n \"id\": \"subscriptions/79a7390d-3a85-432d-9f6f-a11a703c8b83/resourceGroups/DefaultResourceGroup-westus2/providers/microsoft.monitor/accounts/DefaultAzureMonitorWorkspace-westus2/providers/microsoft.alertsManagement/alertRuleRecommendations/KubernetesRecordingRulesRuleGroup\",\r\n + \ \"name\": \"KubernetesRecordingRulesRuleGroup\",\r\n \"type\": + \"Microsoft.AlertsManagement/AlertRuleRecommendations\",\r\n \"location\": + \"global\",\r\n \"properties\": {\r\n \"alertRuleType\": \"Microsoft.AlertsManagement/prometheusRuleGroups\",\r\n + \ \"displayInformation\": {\r\n \"AlertRuleNamePrefix\": \"KubernetesRecordingRulesRuleGroup\",\r\n + \ \"RuleTitle\": \"This would be the info message for prom recording + rules\"\r\n },\r\n \"rulesArmTemplate\": {\r\n \"$schema\": + \"https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#\",\r\n + \ \"contentVersion\": \"1.0.0.0\",\r\n \"parameters\": {\r\n + \ \"targetResourceId\": {\r\n \"type\": \"string\",\r\n + \ \"defaultValue\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/DefaultResourceGroup-westus2/providers/microsoft.monitor/accounts/DefaultAzureMonitorWorkspace-westus2\"\r\n + \ },\r\n \"targetResourceName\": {\r\n \"type\": + \"string\",\r\n \"defaultValue\": \"defaultazuremonitorworkspace-westus2\"\r\n + \ },\r\n \"actionGroupIds\": {\r\n \"type\": + \"array\",\r\n \"defaultValue\": [],\r\n \"metadata\": + {\r\n \"description\": \"Insert Action groups ids to attach + them to the below alert rules.\"\r\n }\r\n },\r\n + \ \"location\": {\r\n \"type\": \"string\",\r\n \"defaultValue\": + \"westus2\"\r\n },\r\n \"clusterNameForPrometheus\": + {\r\n \"type\": \"string\"\r\n },\r\n \"alertNamePrefix\": + {\r\n \"type\": \"string\",\r\n \"defaultValue\": + \"KubernetesRecordingRulesRuleGroup\",\r\n \"minLength\": 1,\r\n + \ \"metadata\": {\r\n \"description\": \"prefix + of the alert rule name\"\r\n }\r\n },\r\n \"alertName\": + {\r\n \"type\": \"string\",\r\n \"defaultValue\": + \"[concat(parameters('alertNamePrefix'), ' - ', parameters('clusterNameForPrometheus'))]\",\r\n + \ \"minLength\": 1,\r\n \"metadata\": {\r\n \"description\": + \"Name of the alert rule\"\r\n }\r\n }\r\n },\r\n + \ \"variables\": {\r\n \"scopes\": \"[array(parameters('targetResourceId'))]\",\r\n + \ \"copy\": [\r\n {\r\n \"name\": \"actionsForPrometheusRuleGroups\",\r\n + \ \"count\": \"[length(parameters('actionGroupIds'))]\",\r\n + \ \"input\": {\r\n \"actiongroupId\": \"[parameters('actionGroupIds')[copyIndex('actionsForPrometheusRuleGroups')]]\"\r\n + \ }\r\n }\r\n ]\r\n },\r\n + \ \"resources\": [\r\n {\r\n \"name\": \"[parameters('alertName')]\",\r\n + \ \"type\": \"Microsoft.AlertsManagement/prometheusRuleGroups\",\r\n + \ \"apiVersion\": \"2021-07-22-preview\",\r\n \"location\": + \"[parameters('location')]\",\r\n \"properties\": {\r\n \"description\": + \"Kubernetes Recording Rules RuleGroup\",\r\n \"scopes\": \"[variables('scopes')]\",\r\n + \ \"clusterName\": \"[parameters('clusterNameForPrometheus')]\",\r\n + \ \"interval\": \"PT1M\",\r\n \"rules\": [\r\n + \ {\r\n \"record\": \"node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate\",\r\n + \ \"expression\": \"sum by (cluster, namespace, pod, container) + ( irate(container_cpu_usage_seconds_total{job=\\\"cadvisor\\\", image!=\\\"\\\"}[5m])) + * on (cluster, namespace, pod) group_left(node) topk by (cluster, namespace, + pod) ( 1, max by(cluster, namespace, pod, node) (kube_pod_info{node!=\\\"\\\"}))\"\r\n + \ },\r\n {\r\n \"record\": + \"node_namespace_pod_container:container_memory_working_set_bytes\",\r\n \"expression\": + \"container_memory_working_set_bytes{job=\\\"cadvisor\\\", image!=\\\"\\\"}* on (namespace, pod) group_left(node) topk by(namespace, pod) (1, max by(namespace, - pod, node) (kube_pod_info{node!=\\\"\\\"}))\"\r\n },\r\n {\r\n \"record\": - \"node_namespace_pod_container:container_memory_cache\",\r\n \"expression\": + pod, node) (kube_pod_info{node!=\\\"\\\"}))\"\r\n },\r\n + \ {\r\n \"record\": \"node_namespace_pod_container:container_memory_rss\",\r\n + \ \"expression\": \"container_memory_rss{job=\\\"cadvisor\\\", + image!=\\\"\\\"}* on (namespace, pod) group_left(node) topk by(namespace, + pod) (1, max by(namespace, pod, node) (kube_pod_info{node!=\\\"\\\"}))\"\r\n + \ },\r\n {\r\n \"record\": + \"node_namespace_pod_container:container_memory_cache\",\r\n \"expression\": \"container_memory_cache{job=\\\"cadvisor\\\", image!=\\\"\\\"}* on (namespace, pod) group_left(node) topk by(namespace, pod) (1, max by(namespace, pod, - node) (kube_pod_info{node!=\\\"\\\"}))\"\r\n },\r\n {\r\n \"record\": - \"node_namespace_pod_container:container_memory_swap\",\r\n \"expression\": - \"container_memory_swap{job=\\\"cadvisor\\\", image!=\\\"\\\"}* on (namespace, - pod) group_left(node) topk by(namespace, pod) (1, max by(namespace, pod, - node) (kube_pod_info{node!=\\\"\\\"}))\"\r\n },\r\n {\r\n \"record\": + node) (kube_pod_info{node!=\\\"\\\"}))\"\r\n },\r\n {\r\n + \ \"record\": \"node_namespace_pod_container:container_memory_swap\",\r\n + \ \"expression\": \"container_memory_swap{job=\\\"cadvisor\\\", + image!=\\\"\\\"}* on (namespace, pod) group_left(node) topk by(namespace, + pod) (1, max by(namespace, pod, node) (kube_pod_info{node!=\\\"\\\"}))\"\r\n + \ },\r\n {\r\n \"record\": \"cluster:namespace:pod_memory:active:kube_pod_container_resource_requests\",\r\n - \ \"expression\": \"kube_pod_container_resource_requests{resource=\\\"memory\\\",job=\\\"kube-state-metrics\\\"} + \ \"expression\": \"kube_pod_container_resource_requests{resource=\\\"memory\\\",job=\\\"kube-state-metrics\\\"} \ * on (namespace, pod, cluster)group_left() max by (namespace, pod, cluster) - ( (kube_pod_status_phase{phase=~\\\"Pending|Running\\\"} == 1))\"\r\n },\r\n - \ {\r\n \"record\": \"namespace_memory:kube_pod_container_resource_requests:sum\",\r\n - \ \"expression\": \"sum by (namespace, cluster) ( sum by (namespace, - pod, cluster) ( max by (namespace, pod, container, cluster) ( kube_pod_container_resource_requests{resource=\\\"memory\\\",job=\\\"kube-state-metrics\\\"} + ( (kube_pod_status_phase{phase=~\\\"Pending|Running\\\"} == 1))\"\r\n },\r\n + \ {\r\n \"record\": \"namespace_memory:kube_pod_container_resource_requests:sum\",\r\n + \ \"expression\": \"sum by (namespace, cluster) ( sum + by (namespace, pod, cluster) ( max by (namespace, pod, container, cluster) + ( kube_pod_container_resource_requests{resource=\\\"memory\\\",job=\\\"kube-state-metrics\\\"} \ ) * on(namespace, pod, cluster) group_left() max by (namespace, pod, cluster) ( kube_pod_status_phase{phase=~\\\"Pending|Running\\\"} - == 1 ) ))\"\r\n },\r\n {\r\n \"record\": \"cluster:namespace:pod_cpu:active:kube_pod_container_resource_requests\",\r\n - \ \"expression\": \"kube_pod_container_resource_requests{resource=\\\"cpu\\\",job=\\\"kube-state-metrics\\\"} + == 1 ) ))\"\r\n },\r\n {\r\n \"record\": + \"cluster:namespace:pod_cpu:active:kube_pod_container_resource_requests\",\r\n + \ \"expression\": \"kube_pod_container_resource_requests{resource=\\\"cpu\\\",job=\\\"kube-state-metrics\\\"} \ * on (namespace, pod, cluster)group_left() max by (namespace, pod, cluster) - ( (kube_pod_status_phase{phase=~\\\"Pending|Running\\\"} == 1))\"\r\n },\r\n - \ {\r\n \"record\": \"namespace_cpu:kube_pod_container_resource_requests:sum\",\r\n - \ \"expression\": \"sum by (namespace, cluster) ( sum by (namespace, - pod, cluster) ( max by (namespace, pod, container, cluster) ( kube_pod_container_resource_requests{resource=\\\"cpu\\\",job=\\\"kube-state-metrics\\\"} + ( (kube_pod_status_phase{phase=~\\\"Pending|Running\\\"} == 1))\"\r\n },\r\n + \ {\r\n \"record\": \"namespace_cpu:kube_pod_container_resource_requests:sum\",\r\n + \ \"expression\": \"sum by (namespace, cluster) ( sum + by (namespace, pod, cluster) ( max by (namespace, pod, container, cluster) + ( kube_pod_container_resource_requests{resource=\\\"cpu\\\",job=\\\"kube-state-metrics\\\"} \ ) * on(namespace, pod, cluster) group_left() max by (namespace, pod, cluster) ( kube_pod_status_phase{phase=~\\\"Pending|Running\\\"} - == 1 ) ))\"\r\n },\r\n {\r\n \"record\": \"cluster:namespace:pod_memory:active:kube_pod_container_resource_limits\",\r\n - \ \"expression\": \"kube_pod_container_resource_limits{resource=\\\"memory\\\",job=\\\"kube-state-metrics\\\"} + == 1 ) ))\"\r\n },\r\n {\r\n \"record\": + \"cluster:namespace:pod_memory:active:kube_pod_container_resource_limits\",\r\n + \ \"expression\": \"kube_pod_container_resource_limits{resource=\\\"memory\\\",job=\\\"kube-state-metrics\\\"} \ * on (namespace, pod, cluster)group_left() max by (namespace, pod, cluster) - ( (kube_pod_status_phase{phase=~\\\"Pending|Running\\\"} == 1))\"\r\n },\r\n - \ {\r\n \"record\": \"namespace_memory:kube_pod_container_resource_limits:sum\",\r\n - \ \"expression\": \"sum by (namespace, cluster) ( sum by (namespace, - pod, cluster) ( max by (namespace, pod, container, cluster) ( kube_pod_container_resource_limits{resource=\\\"memory\\\",job=\\\"kube-state-metrics\\\"} + ( (kube_pod_status_phase{phase=~\\\"Pending|Running\\\"} == 1))\"\r\n },\r\n + \ {\r\n \"record\": \"namespace_memory:kube_pod_container_resource_limits:sum\",\r\n + \ \"expression\": \"sum by (namespace, cluster) ( sum + by (namespace, pod, cluster) ( max by (namespace, pod, container, cluster) + ( kube_pod_container_resource_limits{resource=\\\"memory\\\",job=\\\"kube-state-metrics\\\"} \ ) * on(namespace, pod, cluster) group_left() max by (namespace, pod, cluster) ( kube_pod_status_phase{phase=~\\\"Pending|Running\\\"} - == 1 ) ))\"\r\n },\r\n {\r\n \"record\": \"cluster:namespace:pod_cpu:active:kube_pod_container_resource_limits\",\r\n - \ \"expression\": \"kube_pod_container_resource_limits{resource=\\\"cpu\\\",job=\\\"kube-state-metrics\\\"} + == 1 ) ))\"\r\n },\r\n {\r\n \"record\": + \"cluster:namespace:pod_cpu:active:kube_pod_container_resource_limits\",\r\n + \ \"expression\": \"kube_pod_container_resource_limits{resource=\\\"cpu\\\",job=\\\"kube-state-metrics\\\"} \ * on (namespace, pod, cluster)group_left() max by (namespace, pod, cluster) - ( (kube_pod_status_phase{phase=~\\\"Pending|Running\\\"} == 1) )\"\r\n },\r\n - \ {\r\n \"record\": \"namespace_cpu:kube_pod_container_resource_limits:sum\",\r\n - \ \"expression\": \"sum by (namespace, cluster) ( sum by (namespace, - pod, cluster) ( max by (namespace, pod, container, cluster) ( kube_pod_container_resource_limits{resource=\\\"cpu\\\",job=\\\"kube-state-metrics\\\"} + ( (kube_pod_status_phase{phase=~\\\"Pending|Running\\\"} == 1) )\"\r\n },\r\n + \ {\r\n \"record\": \"namespace_cpu:kube_pod_container_resource_limits:sum\",\r\n + \ \"expression\": \"sum by (namespace, cluster) ( sum + by (namespace, pod, cluster) ( max by (namespace, pod, container, cluster) + ( kube_pod_container_resource_limits{resource=\\\"cpu\\\",job=\\\"kube-state-metrics\\\"} \ ) * on(namespace, pod, cluster) group_left() max by (namespace, pod, cluster) ( kube_pod_status_phase{phase=~\\\"Pending|Running\\\"} - == 1 ) ))\"\r\n },\r\n {\r\n \"record\": \"namespace_workload_pod:kube_pod_owner:relabel\",\r\n - \ \"expression\": \"max by (cluster, namespace, workload, pod) ( label_replace( - \ label_replace( kube_pod_owner{job=\\\"kube-state-metrics\\\", owner_kind=\\\"ReplicaSet\\\"}, + == 1 ) ))\"\r\n },\r\n {\r\n \"record\": + \"namespace_workload_pod:kube_pod_owner:relabel\",\r\n \"expression\": + \"max by (cluster, namespace, workload, pod) ( label_replace( label_replace( + \ kube_pod_owner{job=\\\"kube-state-metrics\\\", owner_kind=\\\"ReplicaSet\\\"}, \ \\\"replicaset\\\", \\\"$1\\\", \\\"owner_name\\\", \\\"(.*)\\\" ) * on(replicaset, namespace) group_left(owner_name) topk by(replicaset, namespace) ( 1, max by (replicaset, namespace, owner_name) ( kube_replicaset_owner{job=\\\"kube-state-metrics\\\"} \ ) ), \\\"workload\\\", \\\"$1\\\", \\\"owner_name\\\", \\\"(.*)\\\" - \ ))\",\r\n \"labels\": {\r\n \"workload_type\": \"deployment\"\r\n - \ }\r\n },\r\n {\r\n \"record\": \"namespace_workload_pod:kube_pod_owner:relabel\",\r\n - \ \"expression\": \"max by (cluster, namespace, workload, pod) ( label_replace( - \ kube_pod_owner{job=\\\"kube-state-metrics\\\", owner_kind=\\\"DaemonSet\\\"}, + \ ))\",\r\n \"labels\": {\r\n \"workload_type\": + \"deployment\"\r\n }\r\n },\r\n {\r\n + \ \"record\": \"namespace_workload_pod:kube_pod_owner:relabel\",\r\n + \ \"expression\": \"max by (cluster, namespace, workload, + pod) ( label_replace( kube_pod_owner{job=\\\"kube-state-metrics\\\", owner_kind=\\\"DaemonSet\\\"}, \ \\\"workload\\\", \\\"$1\\\", \\\"owner_name\\\", \\\"(.*)\\\" ))\",\r\n - \ \"labels\": {\r\n \"workload_type\": \"daemonset\"\r\n }\r\n - \ },\r\n {\r\n \"record\": \"namespace_workload_pod:kube_pod_owner:relabel\",\r\n - \ \"expression\": \"max by (cluster, namespace, workload, pod) ( label_replace( - \ kube_pod_owner{job=\\\"kube-state-metrics\\\", owner_kind=\\\"StatefulSet\\\"}, + \ \"labels\": {\r\n \"workload_type\": + \"daemonset\"\r\n }\r\n },\r\n {\r\n + \ \"record\": \"namespace_workload_pod:kube_pod_owner:relabel\",\r\n + \ \"expression\": \"max by (cluster, namespace, workload, + pod) ( label_replace( kube_pod_owner{job=\\\"kube-state-metrics\\\", owner_kind=\\\"StatefulSet\\\"}, \ \\\"workload\\\", \\\"$1\\\", \\\"owner_name\\\", \\\"(.*)\\\" ))\",\r\n - \ \"labels\": {\r\n \"workload_type\": \"statefulset\"\r\n - \ }\r\n },\r\n {\r\n \"record\": \"namespace_workload_pod:kube_pod_owner:relabel\",\r\n - \ \"expression\": \"max by (cluster, namespace, workload, pod) ( label_replace( - \ kube_pod_owner{job=\\\"kube-state-metrics\\\", owner_kind=\\\"Job\\\"}, + \ \"labels\": {\r\n \"workload_type\": + \"statefulset\"\r\n }\r\n },\r\n {\r\n + \ \"record\": \"namespace_workload_pod:kube_pod_owner:relabel\",\r\n + \ \"expression\": \"max by (cluster, namespace, workload, + pod) ( label_replace( kube_pod_owner{job=\\\"kube-state-metrics\\\", owner_kind=\\\"Job\\\"}, \ \\\"workload\\\", \\\"$1\\\", \\\"owner_name\\\", \\\"(.*)\\\" ))\",\r\n - \ \"labels\": {\r\n \"workload_type\": \"job\"\r\n }\r\n - \ },\r\n {\r\n \"record\": \":node_memory_MemAvailable_bytes:sum\",\r\n - \ \"expression\": \"sum( node_memory_MemAvailable_bytes{job=\\\"node\\\"} + \ \"labels\": {\r\n \"workload_type\": + \"job\"\r\n }\r\n },\r\n {\r\n + \ \"record\": \":node_memory_MemAvailable_bytes:sum\",\r\n + \ \"expression\": \"sum( node_memory_MemAvailable_bytes{job=\\\"node\\\"} or ( node_memory_Buffers_bytes{job=\\\"node\\\"} + node_memory_Cached_bytes{job=\\\"node\\\"} + node_memory_MemFree_bytes{job=\\\"node\\\"} + node_memory_Slab_bytes{job=\\\"node\\\"} - \ )) by (cluster)\"\r\n },\r\n {\r\n \"record\": \"cluster:node_cpu:ratio_rate5m\",\r\n - \ \"expression\": \"sum(rate(node_cpu_seconds_total{job=\\\"node\\\",mode!=\\\"idle\\\",mode!=\\\"iowait\\\",mode!=\\\"steal\\\"}[5m])) + \ )) by (cluster)\"\r\n },\r\n {\r\n \"record\": + \"cluster:node_cpu:ratio_rate5m\",\r\n \"expression\": + \"sum(rate(node_cpu_seconds_total{job=\\\"node\\\",mode!=\\\"idle\\\",mode!=\\\"iowait\\\",mode!=\\\"steal\\\"}[5m])) by (cluster) /count(sum(node_cpu_seconds_total{job=\\\"node\\\"}) by (cluster, - instance, cpu)) by (cluster)\"\r\n }\r\n ],\r\n \"interval\": \"PT1M\"\r\n + instance, cpu)) by (cluster)\"\r\n }\r\n ]\r\n + \ }\r\n }\r\n ]\r\n }\r\n }\r\n + \ },\r\n {\r\n \"id\": \"subscriptions/79a7390d-3a85-432d-9f6f-a11a703c8b83/resourceGroups/DefaultResourceGroup-westus2/providers/microsoft.monitor/accounts/DefaultAzureMonitorWorkspace-westus2/providers/microsoft.alertsManagement/alertRuleRecommendations/NodeRecordingRulesRuleGroup-Win\",\r\n + \ \"name\": \"NodeRecordingRulesRuleGroup-Win\",\r\n \"type\": \"Microsoft.AlertsManagement/AlertRuleRecommendations\",\r\n + \ \"location\": \"global\",\r\n \"properties\": {\r\n \"alertRuleType\": + \"Microsoft.AlertsManagement/prometheusRuleGroups\",\r\n \"displayInformation\": + {\r\n \"AlertRuleNamePrefix\": \"NodeRecordingRulesRuleGroup-Win\",\r\n + \ \"RuleTitle\": \"Windows Recording Rules\"\r\n },\r\n \"rulesArmTemplate\": + {\r\n \"$schema\": \"https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#\",\r\n + \ \"contentVersion\": \"1.0.0.0\",\r\n \"parameters\": {\r\n + \ \"targetResourceId\": {\r\n \"type\": \"string\",\r\n + \ \"defaultValue\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/DefaultResourceGroup-westus2/providers/microsoft.monitor/accounts/DefaultAzureMonitorWorkspace-westus2\"\r\n + \ },\r\n \"targetResourceName\": {\r\n \"type\": + \"string\",\r\n \"defaultValue\": \"defaultazuremonitorworkspace-westus2\"\r\n + \ },\r\n \"actionGroupIds\": {\r\n \"type\": + \"array\",\r\n \"defaultValue\": [],\r\n \"metadata\": + {\r\n \"description\": \"Insert Action groups ids to attach + them to the below alert rules.\"\r\n }\r\n },\r\n + \ \"location\": {\r\n \"type\": \"string\",\r\n \"defaultValue\": + \"westus2\"\r\n },\r\n \"clusterNameForPrometheus\": + {\r\n \"type\": \"string\"\r\n },\r\n \"alertNamePrefix\": + {\r\n \"type\": \"string\",\r\n \"defaultValue\": + \"NodeRecordingRulesRuleGroup-Win\",\r\n \"minLength\": 1,\r\n + \ \"metadata\": {\r\n \"description\": \"prefix + of the alert rule name\"\r\n }\r\n },\r\n \"alertName\": + {\r\n \"type\": \"string\",\r\n \"defaultValue\": + \"[concat(parameters('alertNamePrefix'), ' - ', parameters('clusterNameForPrometheus'))]\",\r\n + \ \"minLength\": 1,\r\n \"metadata\": {\r\n \"description\": + \"Name of the alert rule\"\r\n }\r\n }\r\n },\r\n + \ \"variables\": {\r\n \"scopes\": \"[array(parameters('targetResourceId'))]\",\r\n + \ \"copy\": [\r\n {\r\n \"name\": \"actionsForPrometheusRuleGroups\",\r\n + \ \"count\": \"[length(parameters('actionGroupIds'))]\",\r\n + \ \"input\": {\r\n \"actiongroupId\": \"[parameters('actionGroupIds')[copyIndex('actionsForPrometheusRuleGroups')]]\"\r\n + \ }\r\n }\r\n ]\r\n },\r\n + \ \"resources\": [\r\n {\r\n \"name\": \"[parameters('alertName')]\",\r\n + \ \"type\": \"Microsoft.AlertsManagement/prometheusRuleGroups\",\r\n + \ \"apiVersion\": \"2021-07-22-preview\",\r\n \"location\": + \"[parameters('location')]\",\r\n \"properties\": {\r\n \"description\": + \"Node Recording Rules RuleGroup for Windows\",\r\n \"scopes\": + \"[variables('scopes')]\",\r\n \"clusterName\": \"[parameters('clusterNameForPrometheus')]\",\r\n + \ \"interval\": \"PT1M\",\r\n \"rules\": [\r\n + \ {\r\n \"record\": \"node:windows_node:sum\",\r\n + \ \"expression\": \"count (windows_system_system_up_time{job=\\\"windows-exporter\\\"})\"\r\n + \ },\r\n {\r\n \"record\": + \"node:windows_node_num_cpu:sum\",\r\n \"expression\": + \"count by (instance) (sum by (instance, core) (windows_cpu_time_total{job=\\\"windows-exporter\\\"}))\"\r\n + \ },\r\n {\r\n \"record\": + \":windows_node_cpu_utilisation:avg5m\",\r\n \"expression\": + \"1 - avg(rate(windows_cpu_time_total{job=\\\"windows-exporter\\\",mode=\\\"idle\\\"}[5m]))\"\r\n + \ },\r\n {\r\n \"record\": + \"node:windows_node_cpu_utilisation:avg5m\",\r\n \"expression\": + \"1 - avg by (instance) (rate(windows_cpu_time_total{job=\\\"windows-exporter\\\",mode=\\\"idle\\\"}[5m]))\"\r\n + \ },\r\n {\r\n \"record\": + \":windows_node_memory_utilisation:\",\r\n \"expression\": + \"1 -sum(windows_memory_available_bytes{job=\\\"windows-exporter\\\"})/sum(windows_os_visible_memory_bytes{job=\\\"windows-exporter\\\"})\"\r\n + \ },\r\n {\r\n \"record\": + \":windows_node_memory_MemFreeCached_bytes:sum\",\r\n \"expression\": + \"sum(windows_memory_available_bytes{job=\\\"windows-exporter\\\"} + windows_memory_cache_bytes{job=\\\"windows-exporter\\\"})\"\r\n + \ },\r\n {\r\n \"record\": + \"node:windows_node_memory_totalCached_bytes:sum\",\r\n \"expression\": + \"(windows_memory_cache_bytes{job=\\\"windows-exporter\\\"} + windows_memory_modified_page_list_bytes{job=\\\"windows-exporter\\\"} + + windows_memory_standby_cache_core_bytes{job=\\\"windows-exporter\\\"} + + windows_memory_standby_cache_normal_priority_bytes{job=\\\"windows-exporter\\\"} + + windows_memory_standby_cache_reserve_bytes{job=\\\"windows-exporter\\\"})\"\r\n + \ },\r\n {\r\n \"record\": + \":windows_node_memory_MemTotal_bytes:sum\",\r\n \"expression\": + \"sum(windows_os_visible_memory_bytes{job=\\\"windows-exporter\\\"})\"\r\n + \ },\r\n {\r\n \"record\": + \"node:windows_node_memory_bytes_available:sum\",\r\n \"expression\": + \"sum by (instance) ((windows_memory_available_bytes{job=\\\"windows-exporter\\\"}))\"\r\n + \ },\r\n {\r\n \"record\": + \"node:windows_node_memory_bytes_total:sum\",\r\n \"expression\": + \"sum by (instance) (windows_os_visible_memory_bytes{job=\\\"windows-exporter\\\"})\"\r\n + \ },\r\n {\r\n \"record\": + \"node:windows_node_memory_utilisation:ratio\",\r\n \"expression\": + \"(node:windows_node_memory_bytes_total:sum - node:windows_node_memory_bytes_available:sum) + / scalar(sum(node:windows_node_memory_bytes_total:sum))\"\r\n },\r\n + \ {\r\n \"record\": \"node:windows_node_memory_utilisation:\",\r\n + \ \"expression\": \"1 - (node:windows_node_memory_bytes_available:sum + / node:windows_node_memory_bytes_total:sum)\"\r\n },\r\n + \ {\r\n \"record\": \"node:windows_node_memory_swap_io_pages:irate\",\r\n + \ \"expression\": \"irate(windows_memory_swap_page_operations_total{job=\\\"windows-exporter\\\"}[5m])\"\r\n + \ },\r\n {\r\n \"record\": + \":windows_node_disk_utilisation:avg_irate\",\r\n \"expression\": + \"avg(irate(windows_logical_disk_read_seconds_total{job=\\\"windows-exporter\\\"}[5m]) + + irate(windows_logical_disk_write_seconds_total{job=\\\"windows-exporter\\\"}[5m]))\"\r\n + \ },\r\n {\r\n \"record\": + \"node:windows_node_disk_utilisation:avg_irate\",\r\n \"expression\": + \"avg by (instance) ((irate(windows_logical_disk_read_seconds_total{job=\\\"windows-exporter\\\"}[5m]) + + irate(windows_logical_disk_write_seconds_total{job=\\\"windows-exporter\\\"}[5m])))\"\r\n + \ }\r\n ]\r\n }\r\n }\r\n + \ ]\r\n }\r\n }\r\n },\r\n {\r\n \"id\": \"subscriptions/79a7390d-3a85-432d-9f6f-a11a703c8b83/resourceGroups/DefaultResourceGroup-westus2/providers/microsoft.monitor/accounts/DefaultAzureMonitorWorkspace-westus2/providers/microsoft.alertsManagement/alertRuleRecommendations/NodeAndKubernetesRecordingRulesRuleGroup-Win\",\r\n + \ \"name\": \"NodeAndKubernetesRecordingRulesRuleGroup-Win\",\r\n \"type\": + \"Microsoft.AlertsManagement/AlertRuleRecommendations\",\r\n \"location\": + \"global\",\r\n \"properties\": {\r\n \"alertRuleType\": \"Microsoft.AlertsManagement/prometheusRuleGroups\",\r\n + \ \"displayInformation\": {\r\n \"AlertRuleNamePrefix\": \"NodeAndKubernetesRecordingRulesRuleGroup-Win\",\r\n + \ \"RuleTitle\": \"Windows Recording Rules\"\r\n },\r\n \"rulesArmTemplate\": + {\r\n \"$schema\": \"https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#\",\r\n + \ \"contentVersion\": \"1.0.0.0\",\r\n \"parameters\": {\r\n + \ \"targetResourceId\": {\r\n \"type\": \"string\",\r\n + \ \"defaultValue\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/DefaultResourceGroup-westus2/providers/microsoft.monitor/accounts/DefaultAzureMonitorWorkspace-westus2\"\r\n + \ },\r\n \"targetResourceName\": {\r\n \"type\": + \"string\",\r\n \"defaultValue\": \"defaultazuremonitorworkspace-westus2\"\r\n + \ },\r\n \"actionGroupIds\": {\r\n \"type\": + \"array\",\r\n \"defaultValue\": [],\r\n \"metadata\": + {\r\n \"description\": \"Insert Action groups ids to attach + them to the below alert rules.\"\r\n }\r\n },\r\n + \ \"location\": {\r\n \"type\": \"string\",\r\n \"defaultValue\": + \"westus2\"\r\n },\r\n \"clusterNameForPrometheus\": + {\r\n \"type\": \"string\"\r\n },\r\n \"alertNamePrefix\": + {\r\n \"type\": \"string\",\r\n \"defaultValue\": + \"NodeAndKubernetesRecordingRulesRuleGroup-Win\",\r\n \"minLength\": + 1,\r\n \"metadata\": {\r\n \"description\": \"prefix + of the alert rule name\"\r\n }\r\n },\r\n \"alertName\": + {\r\n \"type\": \"string\",\r\n \"defaultValue\": + \"[concat(parameters('alertNamePrefix'), ' - ', parameters('clusterNameForPrometheus'))]\",\r\n + \ \"minLength\": 1,\r\n \"metadata\": {\r\n \"description\": + \"Name of the alert rule\"\r\n }\r\n }\r\n },\r\n + \ \"variables\": {\r\n \"scopes\": \"[array(parameters('targetResourceId'))]\",\r\n + \ \"copy\": [\r\n {\r\n \"name\": \"actionsForPrometheusRuleGroups\",\r\n + \ \"count\": \"[length(parameters('actionGroupIds'))]\",\r\n + \ \"input\": {\r\n \"actiongroupId\": \"[parameters('actionGroupIds')[copyIndex('actionsForPrometheusRuleGroups')]]\"\r\n + \ }\r\n }\r\n ]\r\n },\r\n + \ \"resources\": [\r\n {\r\n \"name\": \"[parameters('alertName')]\",\r\n + \ \"type\": \"Microsoft.AlertsManagement/prometheusRuleGroups\",\r\n + \ \"apiVersion\": \"2021-07-22-preview\",\r\n \"location\": + \"[parameters('location')]\",\r\n \"properties\": {\r\n \"description\": + \"Node and Kubernetes Recording Rules RuleGroup for Windows\",\r\n \"scopes\": + \"[variables('scopes')]\",\r\n \"clusterName\": \"[parameters('clusterNameForPrometheus')]\",\r\n + \ \"interval\": \"PT1M\",\r\n \"rules\": [\r\n + \ {\r\n \"record\": \"node:windows_node_filesystem_usage:\",\r\n + \ \"expression\": \"max by (instance,volume)((windows_logical_disk_size_bytes{job=\\\"windows-exporter\\\"} + - windows_logical_disk_free_bytes{job=\\\"windows-exporter\\\"}) / windows_logical_disk_size_bytes{job=\\\"windows-exporter\\\"})\"\r\n + \ },\r\n {\r\n \"record\": + \"node:windows_node_filesystem_avail:\",\r\n \"expression\": + \"max by (instance, volume) (windows_logical_disk_free_bytes{job=\\\"windows-exporter\\\"} + / windows_logical_disk_size_bytes{job=\\\"windows-exporter\\\"})\"\r\n },\r\n + \ {\r\n \"record\": \":windows_node_net_utilisation:sum_irate\",\r\n + \ \"expression\": \"sum(irate(windows_net_bytes_total{job=\\\"windows-exporter\\\"}[5m]))\"\r\n + \ },\r\n {\r\n \"record\": + \"node:windows_node_net_utilisation:sum_irate\",\r\n \"expression\": + \"sum by (instance) ((irate(windows_net_bytes_total{job=\\\"windows-exporter\\\"}[5m])))\"\r\n + \ },\r\n {\r\n \"record\": + \":windows_node_net_saturation:sum_irate\",\r\n \"expression\": + \"sum(irate(windows_net_packets_received_discarded_total{job=\\\"windows-exporter\\\"}[5m])) + + sum(irate(windows_net_packets_outbound_discarded_total{job=\\\"windows-exporter\\\"}[5m]))\"\r\n + \ },\r\n {\r\n \"record\": + \"node:windows_node_net_saturation:sum_irate\",\r\n \"expression\": + \"sum by (instance) ((irate(windows_net_packets_received_discarded_total{job=\\\"windows-exporter\\\"}[5m]) + + irate(windows_net_packets_outbound_discarded_total{job=\\\"windows-exporter\\\"}[5m])))\"\r\n + \ },\r\n {\r\n \"record\": + \"windows_pod_container_available\",\r\n \"expression\": + \"windows_container_available{job=\\\"windows-exporter\\\"} * on(container_id) + group_left(container, pod, namespace) max(kube_pod_container_info{job=\\\"kube-state-metrics\\\"}) + by(container, container_id, pod, namespace)\"\r\n },\r\n + \ {\r\n \"record\": \"windows_container_total_runtime\",\r\n + \ \"expression\": \"windows_container_cpu_usage_seconds_total{job=\\\"windows-exporter\\\"} + * on(container_id) group_left(container, pod, namespace) max(kube_pod_container_info{job=\\\"kube-state-metrics\\\"}) + by(container, container_id, pod, namespace)\"\r\n },\r\n + \ {\r\n \"record\": \"windows_container_memory_usage\",\r\n + \ \"expression\": \"windows_container_memory_usage_commit_bytes{job=\\\"windows-exporter\\\"} + * on(container_id) group_left(container, pod, namespace) max(kube_pod_container_info{job=\\\"kube-state-metrics\\\"}) + by(container, container_id, pod, namespace)\"\r\n },\r\n + \ {\r\n \"record\": \"windows_container_private_working_set_usage\",\r\n + \ \"expression\": \"windows_container_memory_usage_private_working_set_bytes{job=\\\"windows-exporter\\\"} + * on(container_id) group_left(container, pod, namespace) max(kube_pod_container_info{job=\\\"kube-state-metrics\\\"}) + by(container, container_id, pod, namespace)\"\r\n },\r\n + \ {\r\n \"record\": \"windows_container_network_received_bytes_total\",\r\n + \ \"expression\": \"windows_container_network_receive_bytes_total{job=\\\"windows-exporter\\\"} + * on(container_id) group_left(container, pod, namespace) max(kube_pod_container_info{job=\\\"kube-state-metrics\\\"}) + by(container, container_id, pod, namespace)\"\r\n },\r\n + \ {\r\n \"record\": \"windows_container_network_transmitted_bytes_total\",\r\n + \ \"expression\": \"windows_container_network_transmit_bytes_total{job=\\\"windows-exporter\\\"} + * on(container_id) group_left(container, pod, namespace) max(kube_pod_container_info{job=\\\"kube-state-metrics\\\"}) + by(container, container_id, pod, namespace)\"\r\n },\r\n + \ {\r\n \"record\": \"kube_pod_windows_container_resource_memory_request\",\r\n + \ \"expression\": \"max by (namespace, pod, container) (kube_pod_container_resource_requests{resource=\\\"memory\\\",job=\\\"kube-state-metrics\\\"}) + * on(container,pod,namespace) (windows_pod_container_available)\"\r\n },\r\n + \ {\r\n \"record\": \"kube_pod_windows_container_resource_memory_limit\",\r\n + \ \"expression\": \"kube_pod_container_resource_limits{resource=\\\"memory\\\",job=\\\"kube-state-metrics\\\"} + * on(container,pod,namespace) (windows_pod_container_available)\"\r\n },\r\n + \ {\r\n \"record\": \"kube_pod_windows_container_resource_cpu_cores_request\",\r\n + \ \"expression\": \"max by (namespace, pod, container) ( + kube_pod_container_resource_requests{resource=\\\"cpu\\\",job=\\\"kube-state-metrics\\\"}) + * on(container,pod,namespace) (windows_pod_container_available)\"\r\n },\r\n + \ {\r\n \"record\": \"kube_pod_windows_container_resource_cpu_cores_limit\",\r\n + \ \"expression\": \"kube_pod_container_resource_limits{resource=\\\"cpu\\\",job=\\\"kube-state-metrics\\\"} + * on(container,pod,namespace) (windows_pod_container_available)\"\r\n },\r\n + \ {\r\n \"record\": \"namespace_pod_container:windows_container_cpu_usage_seconds_total:sum_rate\",\r\n + \ \"expression\": \"sum by (namespace, pod, container) (rate(windows_container_total_runtime{}[5m]))\"\r\n + \ }\r\n ]\r\n }\r\n }\r\n + \ ]\r\n }\r\n }\r\n },\r\n {\r\n \"id\": \"subscriptions/79a7390d-3a85-432d-9f6f-a11a703c8b83/resourceGroups/DefaultResourceGroup-westus2/providers/microsoft.monitor/accounts/DefaultAzureMonitorWorkspace-westus2/providers/microsoft.alertsManagement/alertRuleRecommendations/KubernetesAlert-DefaultAlerts\",\r\n + \ \"name\": \"KubernetesAlert-DefaultAlerts\",\r\n \"type\": \"Microsoft.AlertsManagement/AlertRuleRecommendations\",\r\n + \ \"location\": \"global\",\r\n \"properties\": {\r\n \"alertRuleType\": + \"Microsoft.AlertsManagement/prometheusRuleGroups\",\r\n \"displayInformation\": + {\r\n \"AlertRuleNamePrefix\": \"KubernetesAlert-DefaultAlerts\",\r\n + \ \"RuleTitle\": \"This would be the info message for prom\"\r\n },\r\n + \ \"rulesArmTemplate\": {\r\n \"$schema\": \"https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#\",\r\n + \ \"contentVersion\": \"1.0.0.0\",\r\n \"parameters\": {\r\n + \ \"targetResourceId\": {\r\n \"type\": \"string\",\r\n + \ \"defaultValue\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/DefaultResourceGroup-westus2/providers/microsoft.monitor/accounts/DefaultAzureMonitorWorkspace-westus2\"\r\n + \ },\r\n \"targetResourceName\": {\r\n \"type\": + \"string\",\r\n \"defaultValue\": \"defaultazuremonitorworkspace-westus2\"\r\n + \ },\r\n \"actionGroupIds\": {\r\n \"type\": + \"array\",\r\n \"defaultValue\": [],\r\n \"metadata\": + {\r\n \"description\": \"Insert Action groups ids to attach + them to the below alert rules.\"\r\n }\r\n },\r\n + \ \"location\": {\r\n \"type\": \"string\",\r\n \"defaultValue\": + \"westus2\"\r\n },\r\n \"clusterNameForPrometheus\": + {\r\n \"type\": \"string\"\r\n },\r\n \"alertNamePrefix\": + {\r\n \"type\": \"string\",\r\n \"defaultValue\": + \"KubernetesAlert-DefaultAlerts\",\r\n \"minLength\": 1,\r\n + \ \"metadata\": {\r\n \"description\": \"prefix + of the alert rule name\"\r\n }\r\n },\r\n \"alertName\": + {\r\n \"type\": \"string\",\r\n \"defaultValue\": + \"[concat(parameters('alertNamePrefix'), ' - ', parameters('clusterNameForPrometheus'))]\",\r\n + \ \"minLength\": 1,\r\n \"metadata\": {\r\n \"description\": + \"Name of the alert rule\"\r\n }\r\n }\r\n },\r\n + \ \"variables\": {\r\n \"scopes\": \"[array(parameters('targetResourceId'))]\",\r\n + \ \"copy\": [\r\n {\r\n \"name\": \"actionsForPrometheusRuleGroups\",\r\n + \ \"count\": \"[length(parameters('actionGroupIds'))]\",\r\n + \ \"input\": {\r\n \"actiongroupId\": \"[parameters('actionGroupIds')[copyIndex('actionsForPrometheusRuleGroups')]]\"\r\n + \ }\r\n }\r\n ]\r\n },\r\n + \ \"resources\": [\r\n {\r\n \"name\": \"[parameters('alertName')]\",\r\n + \ \"type\": \"Microsoft.AlertsManagement/prometheusRuleGroups\",\r\n + \ \"apiVersion\": \"2021-07-22-preview\",\r\n \"location\": + \"[parameters('location')]\",\r\n \"properties\": {\r\n \"description\": + \"Kubernetes Alert RuleGroup-DefaultAlerts\",\r\n \"scopes\": + \"[variables('scopes')]\",\r\n \"clusterName\": \"[parameters('clusterNameForPrometheus')]\",\r\n + \ \"interval\": \"PT1M\",\r\n \"rules\": [\r\n + \ {\r\n \"alert\": \"KubePodCrashLooping\",\r\n + \ \"expression\": \"max_over_time(kube_pod_container_status_waiting_reason{reason=\\\"CrashLoopBackOff\\\", + job=\\\"kube-state-metrics\\\"}[5m]) >= 1\",\r\n \"for\": + \"PT15M\",\r\n \"labels\": {\r\n \"severity\": + \"warning\"\r\n },\r\n \"Severity\": + 3,\r\n \"actions\": \"[variables('actionsForPrometheusRuleGroups')]\"\r\n + \ },\r\n {\r\n \"alert\": + \"KubePodNotReady\",\r\n \"expression\": \"sum by (namespace, + pod, cluster) ( max by(namespace, pod, cluster) ( kube_pod_status_phase{job=\\\"kube-state-metrics\\\", + phase=~\\\"Pending|Unknown\\\"} ) * on(namespace, pod, cluster) group_left(owner_kind) + topk by(namespace, pod, cluster) ( 1, max by(namespace, pod, owner_kind, + cluster) (kube_pod_owner{owner_kind!=\\\"Job\\\"}) )) > 0\",\r\n \"for\": + \"PT15M\",\r\n \"labels\": {\r\n \"severity\": + \"warning\"\r\n },\r\n \"Severity\": + 3,\r\n \"actions\": \"[variables('actionsForPrometheusRuleGroups')]\"\r\n + \ },\r\n {\r\n \"alert\": + \"KubeDeploymentReplicasMismatch\",\r\n \"expression\": + \"( kube_deployment_spec_replicas{job=\\\"kube-state-metrics\\\"} > kube_deployment_status_replicas_available{job=\\\"kube-state-metrics\\\"}) + and ( changes(kube_deployment_status_replicas_updated{job=\\\"kube-state-metrics\\\"}[10m]) + \ == 0)\",\r\n \"for\": \"PT15M\",\r\n \"labels\": + {\r\n \"severity\": \"warning\"\r\n },\r\n + \ \"Severity\": 3,\r\n \"actions\": \"[variables('actionsForPrometheusRuleGroups')]\"\r\n + \ },\r\n {\r\n \"alert\": + \"KubeStatefulSetReplicasMismatch\",\r\n \"expression\": + \"( kube_statefulset_status_replicas_ready{job=\\\"kube-state-metrics\\\"} + \ != kube_statefulset_status_replicas{job=\\\"kube-state-metrics\\\"}) + and ( changes(kube_statefulset_status_replicas_updated{job=\\\"kube-state-metrics\\\"}[10m]) + \ == 0)\",\r\n \"for\": \"PT15M\",\r\n \"labels\": + {\r\n \"severity\": \"warning\"\r\n },\r\n + \ \"Severity\": 3,\r\n \"actions\": \"[variables('actionsForPrometheusRuleGroups')]\"\r\n + \ },\r\n {\r\n \"alert\": + \"KubeJobNotCompleted\",\r\n \"expression\": \"time() - + max by(namespace, job_name, cluster) (kube_job_status_start_time{job=\\\"kube-state-metrics\\\"} + \ and kube_job_status_active{job=\\\"kube-state-metrics\\\"} > 0) > 43200\",\r\n + \ \"labels\": {\r\n \"severity\": \"warning\"\r\n + \ },\r\n \"Severity\": 3,\r\n \"actions\": + \"[variables('actionsForPrometheusRuleGroups')]\"\r\n },\r\n + \ {\r\n \"alert\": \"KubeJobFailed\",\r\n + \ \"expression\": \"kube_job_failed{job=\\\"kube-state-metrics\\\"} + \ > 0\",\r\n \"for\": \"PT15M\",\r\n \"labels\": + {\r\n \"severity\": \"warning\"\r\n },\r\n + \ \"Severity\": 3,\r\n \"actions\": \"[variables('actionsForPrometheusRuleGroups')]\"\r\n + \ },\r\n {\r\n \"alert\": + \"KubeHpaReplicasMismatch\",\r\n \"expression\": \"(kube_horizontalpodautoscaler_status_desired_replicas{job=\\\"kube-state-metrics\\\"} + \ !=kube_horizontalpodautoscaler_status_current_replicas{job=\\\"kube-state-metrics\\\"}) + \ and(kube_horizontalpodautoscaler_status_current_replicas{job=\\\"kube-state-metrics\\\"} + \ >kube_horizontalpodautoscaler_spec_min_replicas{job=\\\"kube-state-metrics\\\"}) + \ and(kube_horizontalpodautoscaler_status_current_replicas{job=\\\"kube-state-metrics\\\"} + \ 1.5\",\r\n \"for\": + \"PT5M\",\r\n \"labels\": {\r\n \"severity\": + \"warning\"\r\n },\r\n \"Severity\": + 3,\r\n \"actions\": \"[variables('actionsForPrometheusRuleGroups')]\"\r\n + \ },\r\n {\r\n \"alert\": + \"KubeMemoryQuotaOvercommit\",\r\n \"expression\": \"sum(min + without(resource) (kube_resourcequota{job=\\\"kube-state-metrics\\\", type=\\\"hard\\\", + resource=~\\\"(memory|requests.memory)\\\"})) /sum(kube_node_status_allocatable{resource=\\\"memory\\\", + job=\\\"kube-state-metrics\\\"}) > 1.5\",\r\n \"for\": + \"PT5M\",\r\n \"labels\": {\r\n \"severity\": + \"warning\"\r\n },\r\n \"Severity\": + 3,\r\n \"actions\": \"[variables('actionsForPrometheusRuleGroups')]\"\r\n + \ },\r\n {\r\n \"alert\": + \"KubeQuotaAlmostFull\",\r\n \"expression\": \"kube_resourcequota{job=\\\"kube-state-metrics\\\", + type=\\\"used\\\"} / ignoring(instance, job, type)(kube_resourcequota{job=\\\"kube-state-metrics\\\", + type=\\\"hard\\\"} > 0) > 0.9 < 1\",\r\n \"for\": \"PT15M\",\r\n + \ \"labels\": {\r\n \"severity\": \"warning\"\r\n + \ },\r\n \"Severity\": 3,\r\n \"actions\": + \"[variables('actionsForPrometheusRuleGroups')]\"\r\n },\r\n + \ {\r\n \"alert\": \"KubeVersionMismatch\",\r\n + \ \"expression\": \"count by (cluster) (count by (git_version, + cluster) (label_replace(kubernetes_build_info{job!~\\\"kube-dns|coredns\\\"},\\\"git_version\\\",\\\"$1\\\",\\\"git_version\\\",\\\"(v[0-9]*.[0-9]*).*\\\"))) + > 1\",\r\n \"for\": \"PT15M\",\r\n \"labels\": + {\r\n \"severity\": \"warning\"\r\n },\r\n + \ \"Severity\": 3,\r\n \"actions\": \"[variables('actionsForPrometheusRuleGroups')]\"\r\n + \ },\r\n {\r\n \"alert\": + \"KubeNodeNotReady\",\r\n \"expression\": \"kube_node_status_condition{job=\\\"kube-state-metrics\\\",condition=\\\"Ready\\\",status=\\\"true\\\"} + == 0\",\r\n \"for\": \"PT15M\",\r\n \"labels\": + {\r\n \"severity\": \"warning\"\r\n },\r\n + \ \"Severity\": 3,\r\n \"actions\": \"[variables('actionsForPrometheusRuleGroups')]\"\r\n + \ },\r\n {\r\n \"alert\": + \"KubeNodeUnreachable\",\r\n \"expression\": \"(kube_node_spec_taint{job=\\\"kube-state-metrics\\\",key=\\\"node.kubernetes.io/unreachable\\\",effect=\\\"NoSchedule\\\"} + unless ignoring(key,value) kube_node_spec_taint{job=\\\"kube-state-metrics\\\",key=~\\\"ToBeDeletedByClusterAutoscaler|cloud.google.com/impending-node-termination|aws-node-termination-handler/spot-itn\\\"}) + == 1\",\r\n \"for\": \"PT15M\",\r\n \"labels\": + {\r\n \"severity\": \"warning\"\r\n },\r\n + \ \"Severity\": 3,\r\n \"actions\": \"[variables('actionsForPrometheusRuleGroups')]\"\r\n + \ },\r\n {\r\n \"alert\": + \"KubeletTooManyPods\",\r\n \"expression\": \"count by(cluster, + node) ( (kube_pod_status_phase{job=\\\"kube-state-metrics\\\",phase=\\\"Running\\\"} + == 1) * on(instance,pod,namespace,cluster) group_left(node) topk by(instance,pod,namespace,cluster) + (1, kube_pod_info{job=\\\"kube-state-metrics\\\"}))/max by(cluster, node) + ( kube_node_status_capacity{job=\\\"kube-state-metrics\\\",resource=\\\"pods\\\"} + != 1) > 0.95\",\r\n \"for\": \"PT15M\",\r\n \"labels\": + {\r\n \"severity\": \"warning\"\r\n },\r\n + \ \"Severity\": 3,\r\n \"actions\": \"[variables('actionsForPrometheusRuleGroups')]\"\r\n + \ },\r\n {\r\n \"alert\": + \"KubeNodeReadinessFlapping\",\r\n \"expression\": \"sum(changes(kube_node_status_condition{status=\\\"true\\\",condition=\\\"Ready\\\"}[15m])) + by (cluster, node) > 2\",\r\n \"for\": \"PT15M\",\r\n \"labels\": + {\r\n \"severity\": \"warning\"\r\n },\r\n + \ \"Severity\": 3,\r\n \"actions\": \"[variables('actionsForPrometheusRuleGroups')]\"\r\n + \ }\r\n ]\r\n }\r\n }\r\n + \ ]\r\n }\r\n }\r\n }\r\n ]\r\n}" + headers: + api-supported-versions: + - 2023-01-01-preview + arr-disable-session-affinity: + - 'true' + cache-control: + - no-cache + content-length: + - '49079' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 09 May 2023 20:57:48 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '299' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.AlertsManagement/prometheusRuleGroups/NodeRecordingRulesRuleGroup-cliakstest000002", + "name": "NodeRecordingRulesRuleGroup-cliakstest000002", "type": "Microsoft.AlertsManagement/prometheusRuleGroups", + "location": "westus2", "properties": {"scopes": ["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/DefaultResourceGroup-westus2/providers/microsoft.monitor/accounts/DefaultAzureMonitorWorkspace-westus2"], + "enabled": true, "clusterName": "cliakstest000002", "interval": "PT1M", "rules": + [{"record": "instance:node_num_cpu:sum", "expression": "count without (cpu, + mode) ( node_cpu_seconds_total{job=\"node\",mode=\"idle\"})"}, {"record": "instance:node_cpu_utilisation:rate5m", + "expression": "1 - avg without (cpu) ( sum without (mode) (rate(node_cpu_seconds_total{job=\"node\", + mode=~\"idle|iowait|steal\"}[5m])))"}, {"record": "instance:node_load1_per_cpu:ratio", + "expression": "( node_load1{job=\"node\"}/ instance:node_num_cpu:sum{job=\"node\"})"}, + {"record": "instance:node_memory_utilisation:ratio", "expression": "1 - ( ( node_memory_MemAvailable_bytes{job=\"node\"} or ( node_memory_Buffers_bytes{job=\"node\"} + node_memory_Cached_bytes{job=\"node\"} + node_memory_MemFree_bytes{job=\"node\"} + node_memory_Slab_bytes{job=\"node\"} ) )/ node_memory_MemTotal_bytes{job=\"node\"})"}, + {"record": "instance:node_vmstat_pgmajfault:rate5m", "expression": "rate(node_vmstat_pgmajfault{job=\"node\"}[5m])"}, + {"record": "instance_device:node_disk_io_time_seconds:rate5m", "expression": + "rate(node_disk_io_time_seconds_total{job=\"node\", device!=\"\"}[5m])"}, {"record": + "instance_device:node_disk_io_time_weighted_seconds:rate5m", "expression": "rate(node_disk_io_time_weighted_seconds_total{job=\"node\", + device!=\"\"}[5m])"}, {"record": "instance:node_network_receive_bytes_excluding_lo:rate5m", + "expression": "sum without (device) ( rate(node_network_receive_bytes_total{job=\"node\", + device!=\"lo\"}[5m]))"}, {"record": "instance:node_network_transmit_bytes_excluding_lo:rate5m", + "expression": "sum without (device) ( rate(node_network_transmit_bytes_total{job=\"node\", + device!=\"lo\"}[5m]))"}, {"record": "instance:node_network_receive_drop_excluding_lo:rate5m", + "expression": "sum without (device) ( rate(node_network_receive_drop_total{job=\"node\", + device!=\"lo\"}[5m]))"}, {"record": "instance:node_network_transmit_drop_excluding_lo:rate5m", + "expression": "sum without (device) ( rate(node_network_transmit_drop_total{job=\"node\", + device!=\"lo\"}[5m]))"}]}}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + Content-Length: + - '2653' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --name --yes --output --enable-azuremonitormetrics --enable-managed-identity + --enable-windows-recording-rules + User-Agent: + - python/3.8.10 (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) AZURECLI/2.48.1 + azuremonitormetrics.put_rules.NodeRecordingRulesRuleGroup-cliakstestq6vea + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.AlertsManagement/prometheusRuleGroups/NodeRecordingRulesRuleGroup-cliakstest000002?api-version=2023-03-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.AlertsManagement/prometheusRuleGroups/NodeRecordingRulesRuleGroup-cliakstest000002\",\r\n + \ \"name\": \"NodeRecordingRulesRuleGroup-cliakstest000002\",\r\n \"type\": + \"Microsoft.AlertsManagement/prometheusRuleGroups\",\r\n \"location\": \"westus2\",\r\n + \ \"properties\": {\r\n \"enabled\": true,\r\n \"clusterName\": \"cliakstest000002\",\r\n + \ \"scopes\": [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/DefaultResourceGroup-westus2/providers/microsoft.monitor/accounts/DefaultAzureMonitorWorkspace-westus2\"\r\n + \ ],\r\n \"rules\": [\r\n {\r\n \"record\": \"instance:node_num_cpu:sum\",\r\n + \ \"expression\": \"count without (cpu, mode) ( node_cpu_seconds_total{job=\\\"node\\\",mode=\\\"idle\\\"})\"\r\n + \ },\r\n {\r\n \"record\": \"instance:node_cpu_utilisation:rate5m\",\r\n + \ \"expression\": \"1 - avg without (cpu) ( sum without (mode) (rate(node_cpu_seconds_total{job=\\\"node\\\", + mode=~\\\"idle|iowait|steal\\\"}[5m])))\"\r\n },\r\n {\r\n \"record\": + \"instance:node_load1_per_cpu:ratio\",\r\n \"expression\": \"( node_load1{job=\\\"node\\\"}/ + \ instance:node_num_cpu:sum{job=\\\"node\\\"})\"\r\n },\r\n {\r\n + \ \"record\": \"instance:node_memory_utilisation:ratio\",\r\n \"expression\": + \"1 - ( ( node_memory_MemAvailable_bytes{job=\\\"node\\\"} or ( + \ node_memory_Buffers_bytes{job=\\\"node\\\"} + node_memory_Cached_bytes{job=\\\"node\\\"} + \ + node_memory_MemFree_bytes{job=\\\"node\\\"} + node_memory_Slab_bytes{job=\\\"node\\\"} + \ ) )/ node_memory_MemTotal_bytes{job=\\\"node\\\"})\"\r\n },\r\n + \ {\r\n \"record\": \"instance:node_vmstat_pgmajfault:rate5m\",\r\n + \ \"expression\": \"rate(node_vmstat_pgmajfault{job=\\\"node\\\"}[5m])\"\r\n + \ },\r\n {\r\n \"record\": \"instance_device:node_disk_io_time_seconds:rate5m\",\r\n + \ \"expression\": \"rate(node_disk_io_time_seconds_total{job=\\\"node\\\", + device!=\\\"\\\"}[5m])\"\r\n },\r\n {\r\n \"record\": \"instance_device:node_disk_io_time_weighted_seconds:rate5m\",\r\n + \ \"expression\": \"rate(node_disk_io_time_weighted_seconds_total{job=\\\"node\\\", + device!=\\\"\\\"}[5m])\"\r\n },\r\n {\r\n \"record\": \"instance:node_network_receive_bytes_excluding_lo:rate5m\",\r\n + \ \"expression\": \"sum without (device) ( rate(node_network_receive_bytes_total{job=\\\"node\\\", + device!=\\\"lo\\\"}[5m]))\"\r\n },\r\n {\r\n \"record\": + \"instance:node_network_transmit_bytes_excluding_lo:rate5m\",\r\n \"expression\": + \"sum without (device) ( rate(node_network_transmit_bytes_total{job=\\\"node\\\", + device!=\\\"lo\\\"}[5m]))\"\r\n },\r\n {\r\n \"record\": + \"instance:node_network_receive_drop_excluding_lo:rate5m\",\r\n \"expression\": + \"sum without (device) ( rate(node_network_receive_drop_total{job=\\\"node\\\", + device!=\\\"lo\\\"}[5m]))\"\r\n },\r\n {\r\n \"record\": + \"instance:node_network_transmit_drop_excluding_lo:rate5m\",\r\n \"expression\": + \"sum without (device) ( rate(node_network_transmit_drop_total{job=\\\"node\\\", + device!=\\\"lo\\\"}[5m]))\"\r\n }\r\n ],\r\n \"interval\": \"PT1M\"\r\n \ }\r\n}" headers: - api-supported-versions: - - 2021-07-22-preview, 2023-03-01 - arr-disable-session-affinity: - - 'true' + api-supported-versions: + - 2021-07-22-preview, 2023-03-01 + arr-disable-session-affinity: + - 'true' + cache-control: + - no-cache + content-length: + - '3096' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 09 May 2023 20:57:50 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '299' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.AlertsManagement/prometheusRuleGroups/KubernetesRecordingRulesRuleGroup-cliakstest000002", + "name": "KubernetesRecordingRulesRuleGroup-cliakstest000002", "type": "Microsoft.AlertsManagement/prometheusRuleGroups", + "location": "westus2", "properties": {"scopes": ["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/DefaultResourceGroup-westus2/providers/microsoft.monitor/accounts/DefaultAzureMonitorWorkspace-westus2"], + "enabled": true, "clusterName": "cliakstest000002", "interval": "PT1M", "rules": + [{"record": "node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate", + "expression": "sum by (cluster, namespace, pod, container) ( irate(container_cpu_usage_seconds_total{job=\"cadvisor\", + image!=\"\"}[5m])) * on (cluster, namespace, pod) group_left(node) topk by (cluster, + namespace, pod) ( 1, max by(cluster, namespace, pod, node) (kube_pod_info{node!=\"\"}))"}, + {"record": "node_namespace_pod_container:container_memory_working_set_bytes", + "expression": "container_memory_working_set_bytes{job=\"cadvisor\", image!=\"\"}* + on (namespace, pod) group_left(node) topk by(namespace, pod) (1, max by(namespace, + pod, node) (kube_pod_info{node!=\"\"}))"}, {"record": "node_namespace_pod_container:container_memory_rss", + "expression": "container_memory_rss{job=\"cadvisor\", image!=\"\"}* on (namespace, + pod) group_left(node) topk by(namespace, pod) (1, max by(namespace, pod, node) + (kube_pod_info{node!=\"\"}))"}, {"record": "node_namespace_pod_container:container_memory_cache", + "expression": "container_memory_cache{job=\"cadvisor\", image!=\"\"}* on (namespace, + pod) group_left(node) topk by(namespace, pod) (1, max by(namespace, pod, node) + (kube_pod_info{node!=\"\"}))"}, {"record": "node_namespace_pod_container:container_memory_swap", + "expression": "container_memory_swap{job=\"cadvisor\", image!=\"\"}* on (namespace, + pod) group_left(node) topk by(namespace, pod) (1, max by(namespace, pod, node) + (kube_pod_info{node!=\"\"}))"}, {"record": "cluster:namespace:pod_memory:active:kube_pod_container_resource_requests", + "expression": "kube_pod_container_resource_requests{resource=\"memory\",job=\"kube-state-metrics\"} * + on (namespace, pod, cluster)group_left() max by (namespace, pod, cluster) ( (kube_pod_status_phase{phase=~\"Pending|Running\"} + == 1))"}, {"record": "namespace_memory:kube_pod_container_resource_requests:sum", + "expression": "sum by (namespace, cluster) ( sum by (namespace, pod, cluster) + ( max by (namespace, pod, container, cluster) ( kube_pod_container_resource_requests{resource=\"memory\",job=\"kube-state-metrics\"} ) + * on(namespace, pod, cluster) group_left() max by (namespace, pod, cluster) + ( kube_pod_status_phase{phase=~\"Pending|Running\"} == 1 ) ))"}, + {"record": "cluster:namespace:pod_cpu:active:kube_pod_container_resource_requests", + "expression": "kube_pod_container_resource_requests{resource=\"cpu\",job=\"kube-state-metrics\"} * + on (namespace, pod, cluster)group_left() max by (namespace, pod, cluster) ( (kube_pod_status_phase{phase=~\"Pending|Running\"} + == 1))"}, {"record": "namespace_cpu:kube_pod_container_resource_requests:sum", + "expression": "sum by (namespace, cluster) ( sum by (namespace, pod, cluster) + ( max by (namespace, pod, container, cluster) ( kube_pod_container_resource_requests{resource=\"cpu\",job=\"kube-state-metrics\"} ) + * on(namespace, pod, cluster) group_left() max by (namespace, pod, cluster) + ( kube_pod_status_phase{phase=~\"Pending|Running\"} == 1 ) ))"}, + {"record": "cluster:namespace:pod_memory:active:kube_pod_container_resource_limits", + "expression": "kube_pod_container_resource_limits{resource=\"memory\",job=\"kube-state-metrics\"} * + on (namespace, pod, cluster)group_left() max by (namespace, pod, cluster) ( (kube_pod_status_phase{phase=~\"Pending|Running\"} + == 1))"}, {"record": "namespace_memory:kube_pod_container_resource_limits:sum", + "expression": "sum by (namespace, cluster) ( sum by (namespace, pod, cluster) + ( max by (namespace, pod, container, cluster) ( kube_pod_container_resource_limits{resource=\"memory\",job=\"kube-state-metrics\"} ) + * on(namespace, pod, cluster) group_left() max by (namespace, pod, cluster) + ( kube_pod_status_phase{phase=~\"Pending|Running\"} == 1 ) ))"}, + {"record": "cluster:namespace:pod_cpu:active:kube_pod_container_resource_limits", + "expression": "kube_pod_container_resource_limits{resource=\"cpu\",job=\"kube-state-metrics\"} * + on (namespace, pod, cluster)group_left() max by (namespace, pod, cluster) ( + (kube_pod_status_phase{phase=~\"Pending|Running\"} == 1) )"}, {"record": "namespace_cpu:kube_pod_container_resource_limits:sum", + "expression": "sum by (namespace, cluster) ( sum by (namespace, pod, cluster) + ( max by (namespace, pod, container, cluster) ( kube_pod_container_resource_limits{resource=\"cpu\",job=\"kube-state-metrics\"} ) + * on(namespace, pod, cluster) group_left() max by (namespace, pod, cluster) + ( kube_pod_status_phase{phase=~\"Pending|Running\"} == 1 ) ))"}, + {"record": "namespace_workload_pod:kube_pod_owner:relabel", "expression": "max + by (cluster, namespace, workload, pod) ( label_replace( label_replace( kube_pod_owner{job=\"kube-state-metrics\", + owner_kind=\"ReplicaSet\"}, \"replicaset\", \"$1\", \"owner_name\", \"(.*)\" ) + * on(replicaset, namespace) group_left(owner_name) topk by(replicaset, namespace) + ( 1, max by (replicaset, namespace, owner_name) ( kube_replicaset_owner{job=\"kube-state-metrics\"} ) ), \"workload\", + \"$1\", \"owner_name\", \"(.*)\" ))", "labels": {"workload_type": "deployment"}}, + {"record": "namespace_workload_pod:kube_pod_owner:relabel", "expression": "max + by (cluster, namespace, workload, pod) ( label_replace( kube_pod_owner{job=\"kube-state-metrics\", + owner_kind=\"DaemonSet\"}, \"workload\", \"$1\", \"owner_name\", \"(.*)\" ))", + "labels": {"workload_type": "daemonset"}}, {"record": "namespace_workload_pod:kube_pod_owner:relabel", + "expression": "max by (cluster, namespace, workload, pod) ( label_replace( kube_pod_owner{job=\"kube-state-metrics\", + owner_kind=\"StatefulSet\"}, \"workload\", \"$1\", \"owner_name\", \"(.*)\" ))", + "labels": {"workload_type": "statefulset"}}, {"record": "namespace_workload_pod:kube_pod_owner:relabel", + "expression": "max by (cluster, namespace, workload, pod) ( label_replace( kube_pod_owner{job=\"kube-state-metrics\", + owner_kind=\"Job\"}, \"workload\", \"$1\", \"owner_name\", \"(.*)\" ))", + "labels": {"workload_type": "job"}}, {"record": ":node_memory_MemAvailable_bytes:sum", + "expression": "sum( node_memory_MemAvailable_bytes{job=\"node\"} or ( node_memory_Buffers_bytes{job=\"node\"} + + node_memory_Cached_bytes{job=\"node\"} + node_memory_MemFree_bytes{job=\"node\"} + + node_memory_Slab_bytes{job=\"node\"} )) by (cluster)"}, {"record": "cluster:node_cpu:ratio_rate5m", + "expression": "sum(rate(node_cpu_seconds_total{job=\"node\",mode!=\"idle\",mode!=\"iowait\",mode!=\"steal\"}[5m])) + by (cluster) /count(sum(node_cpu_seconds_total{job=\"node\"}) by (cluster, instance, + cpu)) by (cluster)"}]}}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + Content-Length: + - '7331' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --name --yes --output --enable-azuremonitormetrics --enable-managed-identity + --enable-windows-recording-rules + User-Agent: + - python/3.8.10 (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) AZURECLI/2.48.1 + azuremonitormetrics.put_rules.KubernetesRecordingRulesRuleGroup-cliakstestq6vea + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.AlertsManagement/prometheusRuleGroups/KubernetesRecordingRulesRuleGroup-cliakstest000002?api-version=2023-03-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.AlertsManagement/prometheusRuleGroups/KubernetesRecordingRulesRuleGroup-cliakstest000002\",\r\n + \ \"name\": \"KubernetesRecordingRulesRuleGroup-cliakstest000002\",\r\n \"type\": + \"Microsoft.AlertsManagement/prometheusRuleGroups\",\r\n \"location\": \"westus2\",\r\n + \ \"properties\": {\r\n \"enabled\": true,\r\n \"clusterName\": \"cliakstest000002\",\r\n + \ \"scopes\": [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/DefaultResourceGroup-westus2/providers/microsoft.monitor/accounts/DefaultAzureMonitorWorkspace-westus2\"\r\n + \ ],\r\n \"rules\": [\r\n {\r\n \"record\": \"node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate\",\r\n + \ \"expression\": \"sum by (cluster, namespace, pod, container) ( irate(container_cpu_usage_seconds_total{job=\\\"cadvisor\\\", + image!=\\\"\\\"}[5m])) * on (cluster, namespace, pod) group_left(node) topk + by (cluster, namespace, pod) ( 1, max by(cluster, namespace, pod, node) (kube_pod_info{node!=\\\"\\\"}))\"\r\n + \ },\r\n {\r\n \"record\": \"node_namespace_pod_container:container_memory_working_set_bytes\",\r\n + \ \"expression\": \"container_memory_working_set_bytes{job=\\\"cadvisor\\\", + image!=\\\"\\\"}* on (namespace, pod) group_left(node) topk by(namespace, + pod) (1, max by(namespace, pod, node) (kube_pod_info{node!=\\\"\\\"}))\"\r\n + \ },\r\n {\r\n \"record\": \"node_namespace_pod_container:container_memory_rss\",\r\n + \ \"expression\": \"container_memory_rss{job=\\\"cadvisor\\\", image!=\\\"\\\"}* + on (namespace, pod) group_left(node) topk by(namespace, pod) (1, max by(namespace, + pod, node) (kube_pod_info{node!=\\\"\\\"}))\"\r\n },\r\n {\r\n \"record\": + \"node_namespace_pod_container:container_memory_cache\",\r\n \"expression\": + \"container_memory_cache{job=\\\"cadvisor\\\", image!=\\\"\\\"}* on (namespace, + pod) group_left(node) topk by(namespace, pod) (1, max by(namespace, pod, + node) (kube_pod_info{node!=\\\"\\\"}))\"\r\n },\r\n {\r\n \"record\": + \"node_namespace_pod_container:container_memory_swap\",\r\n \"expression\": + \"container_memory_swap{job=\\\"cadvisor\\\", image!=\\\"\\\"}* on (namespace, + pod) group_left(node) topk by(namespace, pod) (1, max by(namespace, pod, + node) (kube_pod_info{node!=\\\"\\\"}))\"\r\n },\r\n {\r\n \"record\": + \"cluster:namespace:pod_memory:active:kube_pod_container_resource_requests\",\r\n + \ \"expression\": \"kube_pod_container_resource_requests{resource=\\\"memory\\\",job=\\\"kube-state-metrics\\\"} + \ * on (namespace, pod, cluster)group_left() max by (namespace, pod, cluster) + ( (kube_pod_status_phase{phase=~\\\"Pending|Running\\\"} == 1))\"\r\n },\r\n + \ {\r\n \"record\": \"namespace_memory:kube_pod_container_resource_requests:sum\",\r\n + \ \"expression\": \"sum by (namespace, cluster) ( sum by (namespace, + pod, cluster) ( max by (namespace, pod, container, cluster) ( kube_pod_container_resource_requests{resource=\\\"memory\\\",job=\\\"kube-state-metrics\\\"} + \ ) * on(namespace, pod, cluster) group_left() max by (namespace, pod, + cluster) ( kube_pod_status_phase{phase=~\\\"Pending|Running\\\"} + == 1 ) ))\"\r\n },\r\n {\r\n \"record\": \"cluster:namespace:pod_cpu:active:kube_pod_container_resource_requests\",\r\n + \ \"expression\": \"kube_pod_container_resource_requests{resource=\\\"cpu\\\",job=\\\"kube-state-metrics\\\"} + \ * on (namespace, pod, cluster)group_left() max by (namespace, pod, cluster) + ( (kube_pod_status_phase{phase=~\\\"Pending|Running\\\"} == 1))\"\r\n },\r\n + \ {\r\n \"record\": \"namespace_cpu:kube_pod_container_resource_requests:sum\",\r\n + \ \"expression\": \"sum by (namespace, cluster) ( sum by (namespace, + pod, cluster) ( max by (namespace, pod, container, cluster) ( kube_pod_container_resource_requests{resource=\\\"cpu\\\",job=\\\"kube-state-metrics\\\"} + \ ) * on(namespace, pod, cluster) group_left() max by (namespace, pod, + cluster) ( kube_pod_status_phase{phase=~\\\"Pending|Running\\\"} + == 1 ) ))\"\r\n },\r\n {\r\n \"record\": \"cluster:namespace:pod_memory:active:kube_pod_container_resource_limits\",\r\n + \ \"expression\": \"kube_pod_container_resource_limits{resource=\\\"memory\\\",job=\\\"kube-state-metrics\\\"} + \ * on (namespace, pod, cluster)group_left() max by (namespace, pod, cluster) + ( (kube_pod_status_phase{phase=~\\\"Pending|Running\\\"} == 1))\"\r\n },\r\n + \ {\r\n \"record\": \"namespace_memory:kube_pod_container_resource_limits:sum\",\r\n + \ \"expression\": \"sum by (namespace, cluster) ( sum by (namespace, + pod, cluster) ( max by (namespace, pod, container, cluster) ( kube_pod_container_resource_limits{resource=\\\"memory\\\",job=\\\"kube-state-metrics\\\"} + \ ) * on(namespace, pod, cluster) group_left() max by (namespace, pod, + cluster) ( kube_pod_status_phase{phase=~\\\"Pending|Running\\\"} + == 1 ) ))\"\r\n },\r\n {\r\n \"record\": \"cluster:namespace:pod_cpu:active:kube_pod_container_resource_limits\",\r\n + \ \"expression\": \"kube_pod_container_resource_limits{resource=\\\"cpu\\\",job=\\\"kube-state-metrics\\\"} + \ * on (namespace, pod, cluster)group_left() max by (namespace, pod, cluster) + ( (kube_pod_status_phase{phase=~\\\"Pending|Running\\\"} == 1) )\"\r\n },\r\n + \ {\r\n \"record\": \"namespace_cpu:kube_pod_container_resource_limits:sum\",\r\n + \ \"expression\": \"sum by (namespace, cluster) ( sum by (namespace, + pod, cluster) ( max by (namespace, pod, container, cluster) ( kube_pod_container_resource_limits{resource=\\\"cpu\\\",job=\\\"kube-state-metrics\\\"} + \ ) * on(namespace, pod, cluster) group_left() max by (namespace, pod, + cluster) ( kube_pod_status_phase{phase=~\\\"Pending|Running\\\"} + == 1 ) ))\"\r\n },\r\n {\r\n \"record\": \"namespace_workload_pod:kube_pod_owner:relabel\",\r\n + \ \"expression\": \"max by (cluster, namespace, workload, pod) ( label_replace( + \ label_replace( kube_pod_owner{job=\\\"kube-state-metrics\\\", owner_kind=\\\"ReplicaSet\\\"}, + \ \\\"replicaset\\\", \\\"$1\\\", \\\"owner_name\\\", \\\"(.*)\\\" ) + * on(replicaset, namespace) group_left(owner_name) topk by(replicaset, namespace) + ( 1, max by (replicaset, namespace, owner_name) ( kube_replicaset_owner{job=\\\"kube-state-metrics\\\"} + \ ) ), \\\"workload\\\", \\\"$1\\\", \\\"owner_name\\\", \\\"(.*)\\\" + \ ))\",\r\n \"labels\": {\r\n \"workload_type\": \"deployment\"\r\n + \ }\r\n },\r\n {\r\n \"record\": \"namespace_workload_pod:kube_pod_owner:relabel\",\r\n + \ \"expression\": \"max by (cluster, namespace, workload, pod) ( label_replace( + \ kube_pod_owner{job=\\\"kube-state-metrics\\\", owner_kind=\\\"DaemonSet\\\"}, + \ \\\"workload\\\", \\\"$1\\\", \\\"owner_name\\\", \\\"(.*)\\\" ))\",\r\n + \ \"labels\": {\r\n \"workload_type\": \"daemonset\"\r\n }\r\n + \ },\r\n {\r\n \"record\": \"namespace_workload_pod:kube_pod_owner:relabel\",\r\n + \ \"expression\": \"max by (cluster, namespace, workload, pod) ( label_replace( + \ kube_pod_owner{job=\\\"kube-state-metrics\\\", owner_kind=\\\"StatefulSet\\\"}, + \ \\\"workload\\\", \\\"$1\\\", \\\"owner_name\\\", \\\"(.*)\\\" ))\",\r\n + \ \"labels\": {\r\n \"workload_type\": \"statefulset\"\r\n + \ }\r\n },\r\n {\r\n \"record\": \"namespace_workload_pod:kube_pod_owner:relabel\",\r\n + \ \"expression\": \"max by (cluster, namespace, workload, pod) ( label_replace( + \ kube_pod_owner{job=\\\"kube-state-metrics\\\", owner_kind=\\\"Job\\\"}, + \ \\\"workload\\\", \\\"$1\\\", \\\"owner_name\\\", \\\"(.*)\\\" ))\",\r\n + \ \"labels\": {\r\n \"workload_type\": \"job\"\r\n }\r\n + \ },\r\n {\r\n \"record\": \":node_memory_MemAvailable_bytes:sum\",\r\n + \ \"expression\": \"sum( node_memory_MemAvailable_bytes{job=\\\"node\\\"} + or ( node_memory_Buffers_bytes{job=\\\"node\\\"} + node_memory_Cached_bytes{job=\\\"node\\\"} + + node_memory_MemFree_bytes{job=\\\"node\\\"} + node_memory_Slab_bytes{job=\\\"node\\\"} + \ )) by (cluster)\"\r\n },\r\n {\r\n \"record\": \"cluster:node_cpu:ratio_rate5m\",\r\n + \ \"expression\": \"sum(rate(node_cpu_seconds_total{job=\\\"node\\\",mode!=\\\"idle\\\",mode!=\\\"iowait\\\",mode!=\\\"steal\\\"}[5m])) + by (cluster) /count(sum(node_cpu_seconds_total{job=\\\"node\\\"}) by (cluster, + instance, cpu)) by (cluster)\"\r\n }\r\n ],\r\n \"interval\": \"PT1M\"\r\n + \ }\r\n}" + headers: + api-supported-versions: + - 2021-07-22-preview, 2023-03-01 + arr-disable-session-affinity: + - 'true' + cache-control: + - no-cache + content-length: + - '8170' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 09 May 2023 20:57:53 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '299' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.AlertsManagement/prometheusRuleGroups/NodeRecordingRulesRuleGroup-Win-cliakstest000002", + "name": "NodeRecordingRulesRuleGroup-Win-cliakstest000002", "type": "Microsoft.AlertsManagement/prometheusRuleGroups", + "location": "westus2", "properties": {"scopes": ["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/DefaultResourceGroup-westus2/providers/microsoft.monitor/accounts/DefaultAzureMonitorWorkspace-westus2"], + "enabled": true, "clusterName": "cliakstest000002", "interval": "PT1M", "rules": + [{"record": "node:windows_node:sum", "expression": "count (windows_system_system_up_time{job=\"windows-exporter\"})"}, + {"record": "node:windows_node_num_cpu:sum", "expression": "count by (instance) + (sum by (instance, core) (windows_cpu_time_total{job=\"windows-exporter\"}))"}, + {"record": ":windows_node_cpu_utilisation:avg5m", "expression": "1 - avg(rate(windows_cpu_time_total{job=\"windows-exporter\",mode=\"idle\"}[5m]))"}, + {"record": "node:windows_node_cpu_utilisation:avg5m", "expression": "1 - avg + by (instance) (rate(windows_cpu_time_total{job=\"windows-exporter\",mode=\"idle\"}[5m]))"}, + {"record": ":windows_node_memory_utilisation:", "expression": "1 -sum(windows_memory_available_bytes{job=\"windows-exporter\"})/sum(windows_os_visible_memory_bytes{job=\"windows-exporter\"})"}, + {"record": ":windows_node_memory_MemFreeCached_bytes:sum", "expression": "sum(windows_memory_available_bytes{job=\"windows-exporter\"} + + windows_memory_cache_bytes{job=\"windows-exporter\"})"}, {"record": "node:windows_node_memory_totalCached_bytes:sum", + "expression": "(windows_memory_cache_bytes{job=\"windows-exporter\"} + windows_memory_modified_page_list_bytes{job=\"windows-exporter\"} + + windows_memory_standby_cache_core_bytes{job=\"windows-exporter\"} + windows_memory_standby_cache_normal_priority_bytes{job=\"windows-exporter\"} + + windows_memory_standby_cache_reserve_bytes{job=\"windows-exporter\"})"}, {"record": + ":windows_node_memory_MemTotal_bytes:sum", "expression": "sum(windows_os_visible_memory_bytes{job=\"windows-exporter\"})"}, + {"record": "node:windows_node_memory_bytes_available:sum", "expression": "sum + by (instance) ((windows_memory_available_bytes{job=\"windows-exporter\"}))"}, + {"record": "node:windows_node_memory_bytes_total:sum", "expression": "sum by + (instance) (windows_os_visible_memory_bytes{job=\"windows-exporter\"})"}, {"record": + "node:windows_node_memory_utilisation:ratio", "expression": "(node:windows_node_memory_bytes_total:sum + - node:windows_node_memory_bytes_available:sum) / scalar(sum(node:windows_node_memory_bytes_total:sum))"}, + {"record": "node:windows_node_memory_utilisation:", "expression": "1 - (node:windows_node_memory_bytes_available:sum + / node:windows_node_memory_bytes_total:sum)"}, {"record": "node:windows_node_memory_swap_io_pages:irate", + "expression": "irate(windows_memory_swap_page_operations_total{job=\"windows-exporter\"}[5m])"}, + {"record": ":windows_node_disk_utilisation:avg_irate", "expression": "avg(irate(windows_logical_disk_read_seconds_total{job=\"windows-exporter\"}[5m]) + + irate(windows_logical_disk_write_seconds_total{job=\"windows-exporter\"}[5m]))"}, + {"record": "node:windows_node_disk_utilisation:avg_irate", "expression": "avg + by (instance) ((irate(windows_logical_disk_read_seconds_total{job=\"windows-exporter\"}[5m]) + + irate(windows_logical_disk_write_seconds_total{job=\"windows-exporter\"}[5m])))"}]}}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + Content-Length: + - '3501' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --name --yes --output --enable-azuremonitormetrics --enable-managed-identity + --enable-windows-recording-rules + User-Agent: + - python/3.8.10 (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) AZURECLI/2.48.1 + azuremonitormetrics.put_rules.NodeRecordingRulesRuleGroup-Win-cliakstestq6vea + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.AlertsManagement/prometheusRuleGroups/NodeRecordingRulesRuleGroup-Win-cliakstest000002?api-version=2023-03-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.AlertsManagement/prometheusRuleGroups/NodeRecordingRulesRuleGroup-Win-cliakstest000002\",\r\n + \ \"name\": \"NodeRecordingRulesRuleGroup-Win-cliakstest000002\",\r\n \"type\": + \"Microsoft.AlertsManagement/prometheusRuleGroups\",\r\n \"location\": \"westus2\",\r\n + \ \"properties\": {\r\n \"enabled\": true,\r\n \"clusterName\": \"cliakstest000002\",\r\n + \ \"scopes\": [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/DefaultResourceGroup-westus2/providers/microsoft.monitor/accounts/DefaultAzureMonitorWorkspace-westus2\"\r\n + \ ],\r\n \"rules\": [\r\n {\r\n \"record\": \"node:windows_node:sum\",\r\n + \ \"expression\": \"count (windows_system_system_up_time{job=\\\"windows-exporter\\\"})\"\r\n + \ },\r\n {\r\n \"record\": \"node:windows_node_num_cpu:sum\",\r\n + \ \"expression\": \"count by (instance) (sum by (instance, core) (windows_cpu_time_total{job=\\\"windows-exporter\\\"}))\"\r\n + \ },\r\n {\r\n \"record\": \":windows_node_cpu_utilisation:avg5m\",\r\n + \ \"expression\": \"1 - avg(rate(windows_cpu_time_total{job=\\\"windows-exporter\\\",mode=\\\"idle\\\"}[5m]))\"\r\n + \ },\r\n {\r\n \"record\": \"node:windows_node_cpu_utilisation:avg5m\",\r\n + \ \"expression\": \"1 - avg by (instance) (rate(windows_cpu_time_total{job=\\\"windows-exporter\\\",mode=\\\"idle\\\"}[5m]))\"\r\n + \ },\r\n {\r\n \"record\": \":windows_node_memory_utilisation:\",\r\n + \ \"expression\": \"1 -sum(windows_memory_available_bytes{job=\\\"windows-exporter\\\"})/sum(windows_os_visible_memory_bytes{job=\\\"windows-exporter\\\"})\"\r\n + \ },\r\n {\r\n \"record\": \":windows_node_memory_MemFreeCached_bytes:sum\",\r\n + \ \"expression\": \"sum(windows_memory_available_bytes{job=\\\"windows-exporter\\\"} + + windows_memory_cache_bytes{job=\\\"windows-exporter\\\"})\"\r\n },\r\n + \ {\r\n \"record\": \"node:windows_node_memory_totalCached_bytes:sum\",\r\n + \ \"expression\": \"(windows_memory_cache_bytes{job=\\\"windows-exporter\\\"} + + windows_memory_modified_page_list_bytes{job=\\\"windows-exporter\\\"} + + windows_memory_standby_cache_core_bytes{job=\\\"windows-exporter\\\"} + windows_memory_standby_cache_normal_priority_bytes{job=\\\"windows-exporter\\\"} + + windows_memory_standby_cache_reserve_bytes{job=\\\"windows-exporter\\\"})\"\r\n + \ },\r\n {\r\n \"record\": \":windows_node_memory_MemTotal_bytes:sum\",\r\n + \ \"expression\": \"sum(windows_os_visible_memory_bytes{job=\\\"windows-exporter\\\"})\"\r\n + \ },\r\n {\r\n \"record\": \"node:windows_node_memory_bytes_available:sum\",\r\n + \ \"expression\": \"sum by (instance) ((windows_memory_available_bytes{job=\\\"windows-exporter\\\"}))\"\r\n + \ },\r\n {\r\n \"record\": \"node:windows_node_memory_bytes_total:sum\",\r\n + \ \"expression\": \"sum by (instance) (windows_os_visible_memory_bytes{job=\\\"windows-exporter\\\"})\"\r\n + \ },\r\n {\r\n \"record\": \"node:windows_node_memory_utilisation:ratio\",\r\n + \ \"expression\": \"(node:windows_node_memory_bytes_total:sum - node:windows_node_memory_bytes_available:sum) + / scalar(sum(node:windows_node_memory_bytes_total:sum))\"\r\n },\r\n + \ {\r\n \"record\": \"node:windows_node_memory_utilisation:\",\r\n + \ \"expression\": \"1 - (node:windows_node_memory_bytes_available:sum + / node:windows_node_memory_bytes_total:sum)\"\r\n },\r\n {\r\n \"record\": + \"node:windows_node_memory_swap_io_pages:irate\",\r\n \"expression\": + \"irate(windows_memory_swap_page_operations_total{job=\\\"windows-exporter\\\"}[5m])\"\r\n + \ },\r\n {\r\n \"record\": \":windows_node_disk_utilisation:avg_irate\",\r\n + \ \"expression\": \"avg(irate(windows_logical_disk_read_seconds_total{job=\\\"windows-exporter\\\"}[5m]) + + irate(windows_logical_disk_write_seconds_total{job=\\\"windows-exporter\\\"}[5m]))\"\r\n + \ },\r\n {\r\n \"record\": \"node:windows_node_disk_utilisation:avg_irate\",\r\n + \ \"expression\": \"avg by (instance) ((irate(windows_logical_disk_read_seconds_total{job=\\\"windows-exporter\\\"}[5m]) + + irate(windows_logical_disk_write_seconds_total{job=\\\"windows-exporter\\\"}[5m])))\"\r\n + \ }\r\n ],\r\n \"interval\": \"PT1M\"\r\n }\r\n}" + headers: + api-supported-versions: + - 2021-07-22-preview, 2023-03-01 + arr-disable-session-affinity: + - 'true' + cache-control: + - no-cache + content-length: + - '4080' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 09 May 2023 20:57:56 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '299' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.AlertsManagement/prometheusRuleGroups/NodeAndKubernetesRecordingRulesRuleGroup-Win-cliakstest000002", + "name": "NodeAndKubernetesRecordingRulesRuleGroup-Win-cliakstest000002", "type": + "Microsoft.AlertsManagement/prometheusRuleGroups", "location": "westus2", "properties": + {"scopes": ["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/DefaultResourceGroup-westus2/providers/microsoft.monitor/accounts/DefaultAzureMonitorWorkspace-westus2"], + "enabled": true, "clusterName": "cliakstest000002", "interval": "PT1M", "rules": + [{"record": "node:windows_node_filesystem_usage:", "expression": "max by (instance,volume)((windows_logical_disk_size_bytes{job=\"windows-exporter\"} + - windows_logical_disk_free_bytes{job=\"windows-exporter\"}) / windows_logical_disk_size_bytes{job=\"windows-exporter\"})"}, + {"record": "node:windows_node_filesystem_avail:", "expression": "max by (instance, + volume) (windows_logical_disk_free_bytes{job=\"windows-exporter\"} / windows_logical_disk_size_bytes{job=\"windows-exporter\"})"}, + {"record": ":windows_node_net_utilisation:sum_irate", "expression": "sum(irate(windows_net_bytes_total{job=\"windows-exporter\"}[5m]))"}, + {"record": "node:windows_node_net_utilisation:sum_irate", "expression": "sum + by (instance) ((irate(windows_net_bytes_total{job=\"windows-exporter\"}[5m])))"}, + {"record": ":windows_node_net_saturation:sum_irate", "expression": "sum(irate(windows_net_packets_received_discarded_total{job=\"windows-exporter\"}[5m])) + + sum(irate(windows_net_packets_outbound_discarded_total{job=\"windows-exporter\"}[5m]))"}, + {"record": "node:windows_node_net_saturation:sum_irate", "expression": "sum + by (instance) ((irate(windows_net_packets_received_discarded_total{job=\"windows-exporter\"}[5m]) + + irate(windows_net_packets_outbound_discarded_total{job=\"windows-exporter\"}[5m])))"}, + {"record": "windows_pod_container_available", "expression": "windows_container_available{job=\"windows-exporter\"} + * on(container_id) group_left(container, pod, namespace) max(kube_pod_container_info{job=\"kube-state-metrics\"}) + by(container, container_id, pod, namespace)"}, {"record": "windows_container_total_runtime", + "expression": "windows_container_cpu_usage_seconds_total{job=\"windows-exporter\"} + * on(container_id) group_left(container, pod, namespace) max(kube_pod_container_info{job=\"kube-state-metrics\"}) + by(container, container_id, pod, namespace)"}, {"record": "windows_container_memory_usage", + "expression": "windows_container_memory_usage_commit_bytes{job=\"windows-exporter\"} + * on(container_id) group_left(container, pod, namespace) max(kube_pod_container_info{job=\"kube-state-metrics\"}) + by(container, container_id, pod, namespace)"}, {"record": "windows_container_private_working_set_usage", + "expression": "windows_container_memory_usage_private_working_set_bytes{job=\"windows-exporter\"} + * on(container_id) group_left(container, pod, namespace) max(kube_pod_container_info{job=\"kube-state-metrics\"}) + by(container, container_id, pod, namespace)"}, {"record": "windows_container_network_received_bytes_total", + "expression": "windows_container_network_receive_bytes_total{job=\"windows-exporter\"} + * on(container_id) group_left(container, pod, namespace) max(kube_pod_container_info{job=\"kube-state-metrics\"}) + by(container, container_id, pod, namespace)"}, {"record": "windows_container_network_transmitted_bytes_total", + "expression": "windows_container_network_transmit_bytes_total{job=\"windows-exporter\"} + * on(container_id) group_left(container, pod, namespace) max(kube_pod_container_info{job=\"kube-state-metrics\"}) + by(container, container_id, pod, namespace)"}, {"record": "kube_pod_windows_container_resource_memory_request", + "expression": "max by (namespace, pod, container) (kube_pod_container_resource_requests{resource=\"memory\",job=\"kube-state-metrics\"}) + * on(container,pod,namespace) (windows_pod_container_available)"}, {"record": + "kube_pod_windows_container_resource_memory_limit", "expression": "kube_pod_container_resource_limits{resource=\"memory\",job=\"kube-state-metrics\"} + * on(container,pod,namespace) (windows_pod_container_available)"}, {"record": + "kube_pod_windows_container_resource_cpu_cores_request", "expression": "max + by (namespace, pod, container) ( kube_pod_container_resource_requests{resource=\"cpu\",job=\"kube-state-metrics\"}) + * on(container,pod,namespace) (windows_pod_container_available)"}, {"record": + "kube_pod_windows_container_resource_cpu_cores_limit", "expression": "kube_pod_container_resource_limits{resource=\"cpu\",job=\"kube-state-metrics\"} + * on(container,pod,namespace) (windows_pod_container_available)"}, {"record": + "namespace_pod_container:windows_container_cpu_usage_seconds_total:sum_rate", + "expression": "sum by (namespace, pod, container) (rate(windows_container_total_runtime{}[5m]))"}]}}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + Content-Length: + - '4923' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --name --yes --output --enable-azuremonitormetrics --enable-managed-identity + --enable-windows-recording-rules + User-Agent: + - python/3.8.10 (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) AZURECLI/2.48.1 + azuremonitormetrics.put_rules.NodeAndKubernetesRecordingRulesRuleGroup-Win-cliakstestq6vea + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.AlertsManagement/prometheusRuleGroups/NodeAndKubernetesRecordingRulesRuleGroup-Win-cliakstest000002?api-version=2023-03-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.AlertsManagement/prometheusRuleGroups/NodeAndKubernetesRecordingRulesRuleGroup-Win-cliakstest000002\",\r\n + \ \"name\": \"NodeAndKubernetesRecordingRulesRuleGroup-Win-cliakstest000002\",\r\n + \ \"type\": \"Microsoft.AlertsManagement/prometheusRuleGroups\",\r\n \"location\": + \"westus2\",\r\n \"properties\": {\r\n \"enabled\": true,\r\n \"clusterName\": + \"cliakstest000002\",\r\n \"scopes\": [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/DefaultResourceGroup-westus2/providers/microsoft.monitor/accounts/DefaultAzureMonitorWorkspace-westus2\"\r\n + \ ],\r\n \"rules\": [\r\n {\r\n \"record\": \"node:windows_node_filesystem_usage:\",\r\n + \ \"expression\": \"max by (instance,volume)((windows_logical_disk_size_bytes{job=\\\"windows-exporter\\\"} + - windows_logical_disk_free_bytes{job=\\\"windows-exporter\\\"}) / windows_logical_disk_size_bytes{job=\\\"windows-exporter\\\"})\"\r\n + \ },\r\n {\r\n \"record\": \"node:windows_node_filesystem_avail:\",\r\n + \ \"expression\": \"max by (instance, volume) (windows_logical_disk_free_bytes{job=\\\"windows-exporter\\\"} + / windows_logical_disk_size_bytes{job=\\\"windows-exporter\\\"})\"\r\n },\r\n + \ {\r\n \"record\": \":windows_node_net_utilisation:sum_irate\",\r\n + \ \"expression\": \"sum(irate(windows_net_bytes_total{job=\\\"windows-exporter\\\"}[5m]))\"\r\n + \ },\r\n {\r\n \"record\": \"node:windows_node_net_utilisation:sum_irate\",\r\n + \ \"expression\": \"sum by (instance) ((irate(windows_net_bytes_total{job=\\\"windows-exporter\\\"}[5m])))\"\r\n + \ },\r\n {\r\n \"record\": \":windows_node_net_saturation:sum_irate\",\r\n + \ \"expression\": \"sum(irate(windows_net_packets_received_discarded_total{job=\\\"windows-exporter\\\"}[5m])) + + sum(irate(windows_net_packets_outbound_discarded_total{job=\\\"windows-exporter\\\"}[5m]))\"\r\n + \ },\r\n {\r\n \"record\": \"node:windows_node_net_saturation:sum_irate\",\r\n + \ \"expression\": \"sum by (instance) ((irate(windows_net_packets_received_discarded_total{job=\\\"windows-exporter\\\"}[5m]) + + irate(windows_net_packets_outbound_discarded_total{job=\\\"windows-exporter\\\"}[5m])))\"\r\n + \ },\r\n {\r\n \"record\": \"windows_pod_container_available\",\r\n + \ \"expression\": \"windows_container_available{job=\\\"windows-exporter\\\"} + * on(container_id) group_left(container, pod, namespace) max(kube_pod_container_info{job=\\\"kube-state-metrics\\\"}) + by(container, container_id, pod, namespace)\"\r\n },\r\n {\r\n \"record\": + \"windows_container_total_runtime\",\r\n \"expression\": \"windows_container_cpu_usage_seconds_total{job=\\\"windows-exporter\\\"} + * on(container_id) group_left(container, pod, namespace) max(kube_pod_container_info{job=\\\"kube-state-metrics\\\"}) + by(container, container_id, pod, namespace)\"\r\n },\r\n {\r\n \"record\": + \"windows_container_memory_usage\",\r\n \"expression\": \"windows_container_memory_usage_commit_bytes{job=\\\"windows-exporter\\\"} + * on(container_id) group_left(container, pod, namespace) max(kube_pod_container_info{job=\\\"kube-state-metrics\\\"}) + by(container, container_id, pod, namespace)\"\r\n },\r\n {\r\n \"record\": + \"windows_container_private_working_set_usage\",\r\n \"expression\": + \"windows_container_memory_usage_private_working_set_bytes{job=\\\"windows-exporter\\\"} + * on(container_id) group_left(container, pod, namespace) max(kube_pod_container_info{job=\\\"kube-state-metrics\\\"}) + by(container, container_id, pod, namespace)\"\r\n },\r\n {\r\n \"record\": + \"windows_container_network_received_bytes_total\",\r\n \"expression\": + \"windows_container_network_receive_bytes_total{job=\\\"windows-exporter\\\"} + * on(container_id) group_left(container, pod, namespace) max(kube_pod_container_info{job=\\\"kube-state-metrics\\\"}) + by(container, container_id, pod, namespace)\"\r\n },\r\n {\r\n \"record\": + \"windows_container_network_transmitted_bytes_total\",\r\n \"expression\": + \"windows_container_network_transmit_bytes_total{job=\\\"windows-exporter\\\"} + * on(container_id) group_left(container, pod, namespace) max(kube_pod_container_info{job=\\\"kube-state-metrics\\\"}) + by(container, container_id, pod, namespace)\"\r\n },\r\n {\r\n \"record\": + \"kube_pod_windows_container_resource_memory_request\",\r\n \"expression\": + \"max by (namespace, pod, container) (kube_pod_container_resource_requests{resource=\\\"memory\\\",job=\\\"kube-state-metrics\\\"}) + * on(container,pod,namespace) (windows_pod_container_available)\"\r\n },\r\n + \ {\r\n \"record\": \"kube_pod_windows_container_resource_memory_limit\",\r\n + \ \"expression\": \"kube_pod_container_resource_limits{resource=\\\"memory\\\",job=\\\"kube-state-metrics\\\"} + * on(container,pod,namespace) (windows_pod_container_available)\"\r\n },\r\n + \ {\r\n \"record\": \"kube_pod_windows_container_resource_cpu_cores_request\",\r\n + \ \"expression\": \"max by (namespace, pod, container) ( kube_pod_container_resource_requests{resource=\\\"cpu\\\",job=\\\"kube-state-metrics\\\"}) + * on(container,pod,namespace) (windows_pod_container_available)\"\r\n },\r\n + \ {\r\n \"record\": \"kube_pod_windows_container_resource_cpu_cores_limit\",\r\n + \ \"expression\": \"kube_pod_container_resource_limits{resource=\\\"cpu\\\",job=\\\"kube-state-metrics\\\"} + * on(container,pod,namespace) (windows_pod_container_available)\"\r\n },\r\n + \ {\r\n \"record\": \"namespace_pod_container:windows_container_cpu_usage_seconds_total:sum_rate\",\r\n + \ \"expression\": \"sum by (namespace, pod, container) (rate(windows_container_total_runtime{}[5m]))\"\r\n + \ }\r\n ],\r\n \"interval\": \"PT1M\"\r\n }\r\n}" + headers: + api-supported-versions: + - 2021-07-22-preview, 2023-03-01 + arr-disable-session-affinity: + - 'true' + cache-control: + - no-cache + content-length: + - '5570' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 09 May 2023 20:58:00 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '299' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"location": "westus2", "sku": {"name": "Base", "tier": "Free"}, "identity": + {"type": "SystemAssigned"}, "properties": {"kubernetesVersion": "1.25.6", "dnsPrefix": + "cliakstest-clitest000001-79a739", "agentPoolProfiles": [{"count": 3, "vmSize": + "standard_d2s_v3", "osDiskSizeGB": 128, "osDiskType": "Managed", "kubeletDiskType": + "OS", "workloadRuntime": "OCIContainer", "maxPods": 110, "osType": "Linux", + "osSKU": "Ubuntu", "enableAutoScaling": false, "type": "VirtualMachineScaleSets", + "mode": "System", "orchestratorVersion": "1.25.6", "upgradeSettings": {}, "powerState": + {"code": "Running"}, "enableNodePublicIP": false, "enableCustomCATrust": false, + "enableEncryptionAtHost": false, "enableUltraSSD": false, "enableFIPS": false, + "networkProfile": {}, "name": "nodepool1"}], "linuxProfile": {"adminUsername": + "azureuser", "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCvSmDv2/j+2YOKt8Upeh5kRqWfa6Ruqyux98ejQPu6RssXtqmdYZTCMo0U0klQpXFIJI3ASBtFvMX3lBtqKLbjehzIirpjkesUCQvEEgKOd6iGp9ORvMr8FCn0RZr1Idw1dp7KmsCcxbMVPc5YGyvkrBtWl0BI0W/gVQxQ3+iF+NBrwuYAeLVnjmxp6moiCElvxm9ehp00Sr+7hpjPjzLi7qpDN2FITOggiXhrvXWJI/2cqfcPTvDXDQH+e6+avyApRPa/OvkCM7Jm/gXdUzes0xm1Y6aI61hzc8m9K1QjqleMeHPDTUYLCb8cCEnn70itMEkfuqwp6yftFWxCcylR + azcli_aks_live_test@example.com\n"}]}}, "servicePrincipalProfile": {"clientId":"00000000-0000-0000-0000-000000000001"}, + "oidcIssuerProfile": {"enabled": false}, "nodeResourceGroup": "MC_clitest000001_cliakstest000002_westus2", + "enableRBAC": true, "enablePodSecurityPolicy": false, "networkProfile": {"networkPlugin": + "kubenet", "podCidr": "10.244.0.0/16", "serviceCidr": "10.0.0.0/16", "dnsServiceIP": + "10.0.0.10", "dockerBridgeCidr": "172.17.0.1/16", "outboundType": "loadBalancer", + "loadBalancerSku": "Standard", "loadBalancerProfile": {"managedOutboundIPs": + {"count": 1, "countIPv6": 0}, "effectiveOutboundIPs": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.Network/publicIPAddresses/73659bc3-b205-4e4a-a308-90499313bb61"}], + "backendPoolType": "nodeIPConfiguration"}, "podCidrs": ["10.244.0.0/16"], "serviceCidrs": + ["10.0.0.0/16"], "ipFamilies": ["IPv4"]}, "identityProfile": {"kubeletidentity": + {"resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cliakstest000002-agentpool", + "clientId":"00000000-0000-0000-0000-000000000001", "objectId":"00000000-0000-0000-0000-000000000001"}}, + "disableLocalAccounts": false, "securityProfile": {}, "storageProfile": {}, + "workloadAutoScalerProfile": {}, "azureMonitorProfile": {"metrics": {"enabled": + true, "kubeStateMetrics": {"metricLabelsAllowlist": "", "metricAnnotationsAllowList": + ""}}}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + Content-Length: + - '2799' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --name --yes --output --enable-azuremonitormetrics --enable-managed-identity + --enable-windows-recording-rules + User-Agent: + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/22.0.0b Python/3.8.10 + (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2023-03-02-preview + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\",\n + \ \"location\": \"westus2\",\n \"name\": \"cliakstest000002\",\n \"type\": + \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": + \"Updating\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": + \"1.25.6\",\n \"currentKubernetesVersion\": \"1.25.6\",\n \"dnsPrefix\": + \"cliakstest-clitest000001-79a739\",\n \"fqdn\": \"cliakstest-clitest000001-79a739-iqxcydbj.hcp.westus2.azmk8s.io\",\n + \ \"azurePortalFQDN\": \"cliakstest-clitest000001-79a739-iqxcydbj.portal.hcp.westus2.azmk8s.io\",\n + \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": + 3,\n \"vmSize\": \"standard_d2s_v3\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": + \"Managed\",\n \"kubeletDiskType\": \"OS\",\n \"workloadRuntime\": + \"OCIContainer\",\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n + \ \"enableAutoScaling\": false,\n \"provisioningState\": \"Updating\",\n + \ \"powerState\": {\n \"code\": \"Running\"\n },\n \"orchestratorVersion\": + \"1.25.6\",\n \"currentOrchestratorVersion\": \"1.25.6\",\n \"enableNodePublicIP\": + false,\n \"enableCustomCATrust\": false,\n \"mode\": \"System\",\n + \ \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\": false,\n + \ \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"nodeImageVersion\": + \"AKSUbuntu-2204gen2containerd-202304.20.0\",\n \"upgradeSettings\": {},\n + \ \"enableFIPS\": false,\n \"networkProfile\": {}\n }\n ],\n \"linuxProfile\": + {\n \"adminUsername\": \"azureuser\",\n \"ssh\": {\n \"publicKeys\": + [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCvSmDv2/j+2YOKt8Upeh5kRqWfa6Ruqyux98ejQPu6RssXtqmdYZTCMo0U0klQpXFIJI3ASBtFvMX3lBtqKLbjehzIirpjkesUCQvEEgKOd6iGp9ORvMr8FCn0RZr1Idw1dp7KmsCcxbMVPc5YGyvkrBtWl0BI0W/gVQxQ3+iF+NBrwuYAeLVnjmxp6moiCElvxm9ehp00Sr+7hpjPjzLi7qpDN2FITOggiXhrvXWJI/2cqfcPTvDXDQH+e6+avyApRPa/OvkCM7Jm/gXdUzes0xm1Y6aI61hzc8m9K1QjqleMeHPDTUYLCb8cCEnn70itMEkfuqwp6yftFWxCcylR + azcli_aks_live_test@example.com\\n\"\n }\n ]\n }\n },\n \"servicePrincipalProfile\": + {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \"nodeResourceGroup\": + \"MC_clitest000001_cliakstest000002_westus2\",\n \"enableRBAC\": true,\n + \ \"enablePodSecurityPolicy\": false,\n \"enableLTS\": \"KubernetesOfficial\",\n + \ \"networkProfile\": {\n \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\": + \"Standard\",\n \"loadBalancerProfile\": {\n \"managedOutboundIPs\": + {\n \"count\": 1\n },\n \"effectiveOutboundIPs\": [\n {\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.Network/publicIPAddresses/73659bc3-b205-4e4a-a308-90499313bb61\"\n + \ }\n ],\n \"backendPoolType\": \"nodeIPConfiguration\"\n },\n + \ \"podCidr\": \"10.244.0.0/16\",\n \"serviceCidr\": \"10.0.0.0/16\",\n + \ \"dnsServiceIP\": \"10.0.0.10\",\n \"dockerBridgeCidr\": \"172.17.0.1/16\",\n + \ \"outboundType\": \"loadBalancer\",\n \"podCidrs\": [\n \"10.244.0.0/16\"\n + \ ],\n \"serviceCidrs\": [\n \"10.0.0.0/16\"\n ],\n \"ipFamilies\": + [\n \"IPv4\"\n ]\n },\n \"maxAgentPools\": 100,\n \"identityProfile\": + {\n \"kubeletidentity\": {\n \"resourceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cliakstest000002-agentpool\",\n + \ \"clientId\":\"00000000-0000-0000-0000-000000000001\",\n \"objectId\":\"00000000-0000-0000-0000-000000000001\"\n + \ }\n },\n \"disableLocalAccounts\": false,\n \"securityProfile\": + {},\n \"storageProfile\": {\n \"diskCSIDriver\": {\n \"enabled\": + true,\n \"version\": \"v1\"\n },\n \"fileCSIDriver\": {\n \"enabled\": + true\n },\n \"snapshotController\": {\n \"enabled\": true\n }\n + \ },\n \"oidcIssuerProfile\": {\n \"enabled\": false\n },\n \"workloadAutoScalerProfile\": + {},\n \"azureMonitorProfile\": {\n \"metrics\": {\n \"enabled\": + true,\n \"kubeStateMetrics\": {\n \"metricLabelsAllowlist\": \"\",\n + \ \"metricAnnotationsAllowList\": \"\"\n }\n }\n }\n },\n \"identity\": + {\n \"type\": \"SystemAssigned\",\n \"principalId\":\"00000000-0000-0000-0000-000000000001\",\n + \ \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\n },\n \"sku\": + {\n \"name\": \"Base\",\n \"tier\": \"Free\"\n }\n }" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/8faf2379-a563-438c-965d-601daec478be?api-version=2016-03-30 + cache-control: + - no-cache + content-length: + - '4343' + content-type: + - application/json + date: + - Tue, 09 May 2023 20:58:06 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --yes --output --enable-azuremonitormetrics --enable-managed-identity + --enable-windows-recording-rules + User-Agent: + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/22.0.0b Python/3.8.10 + (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/8faf2379-a563-438c-965d-601daec478be?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"7923af8f-63a5-8c43-965d-601daec478be\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-05-09T20:58:05.3149123Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 09 May 2023 20:58:06 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --yes --output --enable-azuremonitormetrics --enable-managed-identity + --enable-windows-recording-rules + User-Agent: + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/22.0.0b Python/3.8.10 + (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/8faf2379-a563-438c-965d-601daec478be?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"7923af8f-63a5-8c43-965d-601daec478be\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-05-09T20:58:05.3149123Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 09 May 2023 20:58:36 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --yes --output --enable-azuremonitormetrics --enable-managed-identity + --enable-windows-recording-rules + User-Agent: + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/22.0.0b Python/3.8.10 + (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/8faf2379-a563-438c-965d-601daec478be?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"7923af8f-63a5-8c43-965d-601daec478be\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-05-09T20:58:05.3149123Z\"\n }" + headers: cache-control: - no-cache content-length: - - '8164' + - '126' content-type: - - application/json; charset=utf-8 + - application/json date: - - Tue, 28 Mar 2023 22:07:52 GMT + - Tue, 09 May 2023 20:59:06 GMT expires: - '-1' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - nginx strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - - Accept-Encoding,Accept-Encoding - x-aspnet-version: - - 4.0.30319 + - Accept-Encoding x-content-type-options: - nosniff - x-ms-ratelimit-remaining-subscription-resource-requests: - - '299' - x-powered-by: - - ASP.NET status: code: 200 message: OK - request: - body: '{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.AlertsManagement/prometheusRuleGroups/NodeRecordingRulesRuleGroup-Win-cliakstest000002", - "name": "NodeRecordingRulesRuleGroup-Win-cliakstest000002", "type": "Microsoft.AlertsManagement/prometheusRuleGroups", - "location": "westus2", "properties": {"scopes": ["/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.monitor/accounts/defaultazuremonitorworkspace-wus2"], - "enabled": true, "clusterName": "cliakstest000002", "interval": "PT1M", "rules": - [{"record": "node:windows_node:sum", "expression": "count (windows_system_system_up_time{job=\"windows-exporter\"})"}, - {"record": "node:windows_node_num_cpu:sum", "expression": "count by (instance) - (sum by (instance, core) (windows_cpu_time_total{job=\"windows-exporter\"}))"}, - {"record": ":windows_node_cpu_utilisation:avg5m", "expression": "1 - avg(rate(windows_cpu_time_total{job=\"windows-exporter\",mode=\"idle\"}[5m]))"}, - {"record": "node:windows_node_cpu_utilisation:avg5m", "expression": "1 - avg - by (instance) (rate(windows_cpu_time_total{job=\"windows-exporter\",mode=\"idle\"}[5m]))"}, - {"record": ":windows_node_memory_utilisation:", "expression": "1 -sum(windows_memory_available_bytes{job=\"windows-exporter\"})/sum(windows_os_visible_memory_bytes{job=\"windows-exporter\"})"}, - {"record": ":windows_node_memory_MemFreeCached_bytes:sum", "expression": "sum(windows_memory_available_bytes{job=\"windows-exporter\"} - + windows_memory_cache_bytes{job=\"windows-exporter\"})"}, {"record": "node:windows_node_memory_totalCached_bytes:sum", - "expression": "(windows_memory_cache_bytes{job=\"windows-exporter\"} + windows_memory_modified_page_list_bytes{job=\"windows-exporter\"} - + windows_memory_standby_cache_core_bytes{job=\"windows-exporter\"} + windows_memory_standby_cache_normal_priority_bytes{job=\"windows-exporter\"} - + windows_memory_standby_cache_reserve_bytes{job=\"windows-exporter\"})"}, {"record": - ":windows_node_memory_MemTotal_bytes:sum", "expression": "sum(windows_os_visible_memory_bytes{job=\"windows-exporter\"})"}, - {"record": "node:windows_node_memory_bytes_available:sum", "expression": "sum - by (instance) ((windows_memory_available_bytes{job=\"windows-exporter\"}))"}, - {"record": "node:windows_node_memory_bytes_total:sum", "expression": "sum by - (instance) (windows_os_visible_memory_bytes{job=\"windows-exporter\"})"}, {"record": - "node:windows_node_memory_utilisation:ratio", "expression": "(node:windows_node_memory_bytes_total:sum - - node:windows_node_memory_bytes_available:sum) / scalar(sum(node:windows_node_memory_bytes_total:sum))"}, - {"record": "node:windows_node_memory_utilisation:", "expression": "1 - (node:windows_node_memory_bytes_available:sum - / node:windows_node_memory_bytes_total:sum)"}, {"record": "node:windows_node_memory_swap_io_pages:irate", - "expression": "irate(windows_memory_swap_page_operations_total{job=\"windows-exporter\"}[5m])"}, - {"record": ":windows_node_disk_utilisation:avg_irate", "expression": "avg(irate(windows_logical_disk_read_seconds_total{job=\"windows-exporter\"}[5m]) - + irate(windows_logical_disk_write_seconds_total{job=\"windows-exporter\"}[5m]))"}, - {"record": "node:windows_node_disk_utilisation:avg_irate", "expression": "avg - by (instance) ((irate(windows_logical_disk_read_seconds_total{job=\"windows-exporter\"}[5m]) - + irate(windows_logical_disk_write_seconds_total{job=\"windows-exporter\"}[5m])))"}]}}' + body: null headers: Accept: - '*/*' @@ -2693,147 +3315,194 @@ interactions: - aks update Connection: - keep-alive - Content-Length: - - '3495' - Content-Type: + ParameterSetName: + - --resource-group --name --yes --output --enable-azuremonitormetrics --enable-managed-identity + --enable-windows-recording-rules + User-Agent: + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/22.0.0b Python/3.8.10 + (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/8faf2379-a563-438c-965d-601daec478be?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"7923af8f-63a5-8c43-965d-601daec478be\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-05-09T20:58:05.3149123Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: - application/json + date: + - Tue, 09 May 2023 20:59:36 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive ParameterSetName: - - --resource-group --name --yes --output --aks-custom-headers --enable-azuremonitormetrics - --enable-managed-identity --enable-windows-recording-rules + - --resource-group --name --yes --output --enable-azuremonitormetrics --enable-managed-identity + --enable-windows-recording-rules User-Agent: - - python/3.10.10 (Linux-5.15.0-1034-azure-x86_64-with-glibc2.31) AZURECLI/2.46.0 - VSTS_7b238909-6802-4b65-b90d-184bca47f458_build_261_0 azuremonitormetrics.put_rules.NodeRecordingRulesRuleGroup-Win-cliakstestgctra - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.AlertsManagement/prometheusRuleGroups/NodeRecordingRulesRuleGroup-Win-cliakstest000002?api-version=2021-07-22-preview + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/22.0.0b Python/3.8.10 + (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/8faf2379-a563-438c-965d-601daec478be?api-version=2016-03-30 response: body: - string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.AlertsManagement/prometheusRuleGroups/NodeRecordingRulesRuleGroup-Win-cliakstest000002\",\r\n - \ \"name\": \"NodeRecordingRulesRuleGroup-Win-cliakstest000002\",\r\n \"type\": - \"Microsoft.AlertsManagement/prometheusRuleGroups\",\r\n \"location\": \"westus2\",\r\n - \ \"properties\": {\r\n \"enabled\": true,\r\n \"clusterName\": \"cliakstest000002\",\r\n - \ \"scopes\": [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.monitor/accounts/defaultazuremonitorworkspace-wus2\"\r\n - \ ],\r\n \"rules\": [\r\n {\r\n \"record\": \"node:windows_node:sum\",\r\n - \ \"expression\": \"count (windows_system_system_up_time{job=\\\"windows-exporter\\\"})\"\r\n - \ },\r\n {\r\n \"record\": \"node:windows_node_num_cpu:sum\",\r\n - \ \"expression\": \"count by (instance) (sum by (instance, core) (windows_cpu_time_total{job=\\\"windows-exporter\\\"}))\"\r\n - \ },\r\n {\r\n \"record\": \":windows_node_cpu_utilisation:avg5m\",\r\n - \ \"expression\": \"1 - avg(rate(windows_cpu_time_total{job=\\\"windows-exporter\\\",mode=\\\"idle\\\"}[5m]))\"\r\n - \ },\r\n {\r\n \"record\": \"node:windows_node_cpu_utilisation:avg5m\",\r\n - \ \"expression\": \"1 - avg by (instance) (rate(windows_cpu_time_total{job=\\\"windows-exporter\\\",mode=\\\"idle\\\"}[5m]))\"\r\n - \ },\r\n {\r\n \"record\": \":windows_node_memory_utilisation:\",\r\n - \ \"expression\": \"1 -sum(windows_memory_available_bytes{job=\\\"windows-exporter\\\"})/sum(windows_os_visible_memory_bytes{job=\\\"windows-exporter\\\"})\"\r\n - \ },\r\n {\r\n \"record\": \":windows_node_memory_MemFreeCached_bytes:sum\",\r\n - \ \"expression\": \"sum(windows_memory_available_bytes{job=\\\"windows-exporter\\\"} - + windows_memory_cache_bytes{job=\\\"windows-exporter\\\"})\"\r\n },\r\n - \ {\r\n \"record\": \"node:windows_node_memory_totalCached_bytes:sum\",\r\n - \ \"expression\": \"(windows_memory_cache_bytes{job=\\\"windows-exporter\\\"} - + windows_memory_modified_page_list_bytes{job=\\\"windows-exporter\\\"} + - windows_memory_standby_cache_core_bytes{job=\\\"windows-exporter\\\"} + windows_memory_standby_cache_normal_priority_bytes{job=\\\"windows-exporter\\\"} - + windows_memory_standby_cache_reserve_bytes{job=\\\"windows-exporter\\\"})\"\r\n - \ },\r\n {\r\n \"record\": \":windows_node_memory_MemTotal_bytes:sum\",\r\n - \ \"expression\": \"sum(windows_os_visible_memory_bytes{job=\\\"windows-exporter\\\"})\"\r\n - \ },\r\n {\r\n \"record\": \"node:windows_node_memory_bytes_available:sum\",\r\n - \ \"expression\": \"sum by (instance) ((windows_memory_available_bytes{job=\\\"windows-exporter\\\"}))\"\r\n - \ },\r\n {\r\n \"record\": \"node:windows_node_memory_bytes_total:sum\",\r\n - \ \"expression\": \"sum by (instance) (windows_os_visible_memory_bytes{job=\\\"windows-exporter\\\"})\"\r\n - \ },\r\n {\r\n \"record\": \"node:windows_node_memory_utilisation:ratio\",\r\n - \ \"expression\": \"(node:windows_node_memory_bytes_total:sum - node:windows_node_memory_bytes_available:sum) - / scalar(sum(node:windows_node_memory_bytes_total:sum))\"\r\n },\r\n - \ {\r\n \"record\": \"node:windows_node_memory_utilisation:\",\r\n - \ \"expression\": \"1 - (node:windows_node_memory_bytes_available:sum - / node:windows_node_memory_bytes_total:sum)\"\r\n },\r\n {\r\n \"record\": - \"node:windows_node_memory_swap_io_pages:irate\",\r\n \"expression\": - \"irate(windows_memory_swap_page_operations_total{job=\\\"windows-exporter\\\"}[5m])\"\r\n - \ },\r\n {\r\n \"record\": \":windows_node_disk_utilisation:avg_irate\",\r\n - \ \"expression\": \"avg(irate(windows_logical_disk_read_seconds_total{job=\\\"windows-exporter\\\"}[5m]) - + irate(windows_logical_disk_write_seconds_total{job=\\\"windows-exporter\\\"}[5m]))\"\r\n - \ },\r\n {\r\n \"record\": \"node:windows_node_disk_utilisation:avg_irate\",\r\n - \ \"expression\": \"avg by (instance) ((irate(windows_logical_disk_read_seconds_total{job=\\\"windows-exporter\\\"}[5m]) - + irate(windows_logical_disk_write_seconds_total{job=\\\"windows-exporter\\\"}[5m])))\"\r\n - \ }\r\n ],\r\n \"interval\": \"PT1M\"\r\n }\r\n}" + string: "{\n \"name\": \"7923af8f-63a5-8c43-965d-601daec478be\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-05-09T20:58:05.3149123Z\"\n }" headers: - api-supported-versions: - - 2021-07-22-preview, 2023-03-01 - arr-disable-session-affinity: - - 'true' cache-control: - no-cache content-length: - - '4074' + - '126' content-type: - - application/json; charset=utf-8 + - application/json date: - - Tue, 28 Mar 2023 22:07:55 GMT + - Tue, 09 May 2023 21:00:06 GMT expires: - '-1' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - nginx strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - - Accept-Encoding,Accept-Encoding - x-aspnet-version: - - 4.0.30319 + - Accept-Encoding x-content-type-options: - nosniff - x-ms-ratelimit-remaining-subscription-resource-requests: - - '299' - x-powered-by: - - ASP.NET status: code: 200 message: OK - request: - body: '{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.AlertsManagement/prometheusRuleGroups/NodeAndKubernetesRecordingRulesRuleGroup-Win-cliakstest000002", - "name": "NodeAndKubernetesRecordingRulesRuleGroup-Win-cliakstest000002", "type": - "Microsoft.AlertsManagement/prometheusRuleGroups", "location": "westus2", "properties": - {"scopes": ["/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.monitor/accounts/defaultazuremonitorworkspace-wus2"], - "enabled": true, "clusterName": "cliakstest000002", "interval": "PT1M", "rules": - [{"record": "node:windows_node_filesystem_usage:", "expression": "max by (instance,volume)((windows_logical_disk_size_bytes{job=\"windows-exporter\"} - - windows_logical_disk_free_bytes{job=\"windows-exporter\"}) / windows_logical_disk_size_bytes{job=\"windows-exporter\"})"}, - {"record": "node:windows_node_filesystem_avail:", "expression": "max by (instance, - volume) (windows_logical_disk_free_bytes{job=\"windows-exporter\"} / windows_logical_disk_size_bytes{job=\"windows-exporter\"})"}, - {"record": ":windows_node_net_utilisation:sum_irate", "expression": "sum(irate(windows_net_bytes_total{job=\"windows-exporter\"}[5m]))"}, - {"record": "node:windows_node_net_utilisation:sum_irate", "expression": "sum - by (instance) ((irate(windows_net_bytes_total{job=\"windows-exporter\"}[5m])))"}, - {"record": ":windows_node_net_saturation:sum_irate", "expression": "sum(irate(windows_net_packets_received_discarded_total{job=\"windows-exporter\"}[5m])) - + sum(irate(windows_net_packets_outbound_discarded_total{job=\"windows-exporter\"}[5m]))"}, - {"record": "node:windows_node_net_saturation:sum_irate", "expression": "sum - by (instance) ((irate(windows_net_packets_received_discarded_total{job=\"windows-exporter\"}[5m]) - + irate(windows_net_packets_outbound_discarded_total{job=\"windows-exporter\"}[5m])))"}, - {"record": "windows_pod_container_available", "expression": "windows_container_available{job=\"windows-exporter\"} - * on(container_id) group_left(container, pod, namespace) max(kube_pod_container_info{job=\"kube-state-metrics\"}) - by(container, container_id, pod, namespace)"}, {"record": "windows_container_total_runtime", - "expression": "windows_container_cpu_usage_seconds_total{job=\"windows-exporter\"} - * on(container_id) group_left(container, pod, namespace) max(kube_pod_container_info{job=\"kube-state-metrics\"}) - by(container, container_id, pod, namespace)"}, {"record": "windows_container_memory_usage", - "expression": "windows_container_memory_usage_commit_bytes{job=\"windows-exporter\"} - * on(container_id) group_left(container, pod, namespace) max(kube_pod_container_info{job=\"kube-state-metrics\"}) - by(container, container_id, pod, namespace)"}, {"record": "windows_container_private_working_set_usage", - "expression": "windows_container_memory_usage_private_working_set_bytes{job=\"windows-exporter\"} - * on(container_id) group_left(container, pod, namespace) max(kube_pod_container_info{job=\"kube-state-metrics\"}) - by(container, container_id, pod, namespace)"}, {"record": "windows_container_network_received_bytes_total", - "expression": "windows_container_network_receive_bytes_total{job=\"windows-exporter\"} - * on(container_id) group_left(container, pod, namespace) max(kube_pod_container_info{job=\"kube-state-metrics\"}) - by(container, container_id, pod, namespace)"}, {"record": "windows_container_network_transmitted_bytes_total", - "expression": "windows_container_network_transmit_bytes_total{job=\"windows-exporter\"} - * on(container_id) group_left(container, pod, namespace) max(kube_pod_container_info{job=\"kube-state-metrics\"}) - by(container, container_id, pod, namespace)"}, {"record": "kube_pod_windows_container_resource_memory_request", - "expression": "max by (namespace, pod, container) (kube_pod_container_resource_requests{resource=\"memory\",job=\"kube-state-metrics\"}) - * on(container,pod,namespace) (windows_pod_container_available)"}, {"record": - "kube_pod_windows_container_resource_memory_limit", "expression": "kube_pod_container_resource_limits{resource=\"memory\",job=\"kube-state-metrics\"} - * on(container,pod,namespace) (windows_pod_container_available)"}, {"record": - "kube_pod_windows_container_resource_cpu_cores_request", "expression": "max - by (namespace, pod, container) ( kube_pod_container_resource_requests{resource=\"cpu\",job=\"kube-state-metrics\"}) - * on(container,pod,namespace) (windows_pod_container_available)"}, {"record": - "kube_pod_windows_container_resource_cpu_cores_limit", "expression": "kube_pod_container_resource_limits{resource=\"cpu\",job=\"kube-state-metrics\"} - * on(container,pod,namespace) (windows_pod_container_available)"}, {"record": - "namespace_pod_container:windows_container_cpu_usage_seconds_total:sum_rate", - "expression": "sum by (namespace, pod, container) (rate(windows_container_total_runtime{}[5m]))"}]}}' + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --yes --output --enable-azuremonitormetrics --enable-managed-identity + --enable-windows-recording-rules + User-Agent: + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/22.0.0b Python/3.8.10 + (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/8faf2379-a563-438c-965d-601daec478be?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"7923af8f-63a5-8c43-965d-601daec478be\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-05-09T20:58:05.3149123Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 09 May 2023 21:00:36 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --yes --output --enable-azuremonitormetrics --enable-managed-identity + --enable-windows-recording-rules + User-Agent: + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/22.0.0b Python/3.8.10 + (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/8faf2379-a563-438c-965d-601daec478be?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"7923af8f-63a5-8c43-965d-601daec478be\",\n \"status\": + \"Succeeded\",\n \"startTime\": \"2023-05-09T20:58:05.3149123Z\",\n \"endTime\": + \"2023-05-09T21:00:46.9729352Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '170' + content-type: + - application/json + date: + - Tue, 09 May 2023 21:01:07 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null headers: Accept: - '*/*' @@ -2843,144 +3512,93 @@ interactions: - aks update Connection: - keep-alive - Content-Length: - - '4917' - Content-Type: - - application/json ParameterSetName: - - --resource-group --name --yes --output --aks-custom-headers --enable-azuremonitormetrics - --enable-managed-identity --enable-windows-recording-rules + - --resource-group --name --yes --output --enable-azuremonitormetrics --enable-managed-identity + --enable-windows-recording-rules User-Agent: - - python/3.10.10 (Linux-5.15.0-1034-azure-x86_64-with-glibc2.31) AZURECLI/2.46.0 - VSTS_7b238909-6802-4b65-b90d-184bca47f458_build_261_0 azuremonitormetrics.put_rules.NodeAndKubernetesRecordingRulesRuleGroup-Win-cliakstestgctra - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.AlertsManagement/prometheusRuleGroups/NodeAndKubernetesRecordingRulesRuleGroup-Win-cliakstest000002?api-version=2021-07-22-preview + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/22.0.0b Python/3.8.10 + (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2023-03-02-preview response: body: - string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.AlertsManagement/prometheusRuleGroups/NodeAndKubernetesRecordingRulesRuleGroup-Win-cliakstest000002\",\r\n - \ \"name\": \"NodeAndKubernetesRecordingRulesRuleGroup-Win-cliakstest000002\",\r\n - \ \"type\": \"Microsoft.AlertsManagement/prometheusRuleGroups\",\r\n \"location\": - \"westus2\",\r\n \"properties\": {\r\n \"enabled\": true,\r\n \"clusterName\": - \"cliakstest000002\",\r\n \"scopes\": [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.monitor/accounts/defaultazuremonitorworkspace-wus2\"\r\n - \ ],\r\n \"rules\": [\r\n {\r\n \"record\": \"node:windows_node_filesystem_usage:\",\r\n - \ \"expression\": \"max by (instance,volume)((windows_logical_disk_size_bytes{job=\\\"windows-exporter\\\"} - - windows_logical_disk_free_bytes{job=\\\"windows-exporter\\\"}) / windows_logical_disk_size_bytes{job=\\\"windows-exporter\\\"})\"\r\n - \ },\r\n {\r\n \"record\": \"node:windows_node_filesystem_avail:\",\r\n - \ \"expression\": \"max by (instance, volume) (windows_logical_disk_free_bytes{job=\\\"windows-exporter\\\"} - / windows_logical_disk_size_bytes{job=\\\"windows-exporter\\\"})\"\r\n },\r\n - \ {\r\n \"record\": \":windows_node_net_utilisation:sum_irate\",\r\n - \ \"expression\": \"sum(irate(windows_net_bytes_total{job=\\\"windows-exporter\\\"}[5m]))\"\r\n - \ },\r\n {\r\n \"record\": \"node:windows_node_net_utilisation:sum_irate\",\r\n - \ \"expression\": \"sum by (instance) ((irate(windows_net_bytes_total{job=\\\"windows-exporter\\\"}[5m])))\"\r\n - \ },\r\n {\r\n \"record\": \":windows_node_net_saturation:sum_irate\",\r\n - \ \"expression\": \"sum(irate(windows_net_packets_received_discarded_total{job=\\\"windows-exporter\\\"}[5m])) - + sum(irate(windows_net_packets_outbound_discarded_total{job=\\\"windows-exporter\\\"}[5m]))\"\r\n - \ },\r\n {\r\n \"record\": \"node:windows_node_net_saturation:sum_irate\",\r\n - \ \"expression\": \"sum by (instance) ((irate(windows_net_packets_received_discarded_total{job=\\\"windows-exporter\\\"}[5m]) - + irate(windows_net_packets_outbound_discarded_total{job=\\\"windows-exporter\\\"}[5m])))\"\r\n - \ },\r\n {\r\n \"record\": \"windows_pod_container_available\",\r\n - \ \"expression\": \"windows_container_available{job=\\\"windows-exporter\\\"} - * on(container_id) group_left(container, pod, namespace) max(kube_pod_container_info{job=\\\"kube-state-metrics\\\"}) - by(container, container_id, pod, namespace)\"\r\n },\r\n {\r\n \"record\": - \"windows_container_total_runtime\",\r\n \"expression\": \"windows_container_cpu_usage_seconds_total{job=\\\"windows-exporter\\\"} - * on(container_id) group_left(container, pod, namespace) max(kube_pod_container_info{job=\\\"kube-state-metrics\\\"}) - by(container, container_id, pod, namespace)\"\r\n },\r\n {\r\n \"record\": - \"windows_container_memory_usage\",\r\n \"expression\": \"windows_container_memory_usage_commit_bytes{job=\\\"windows-exporter\\\"} - * on(container_id) group_left(container, pod, namespace) max(kube_pod_container_info{job=\\\"kube-state-metrics\\\"}) - by(container, container_id, pod, namespace)\"\r\n },\r\n {\r\n \"record\": - \"windows_container_private_working_set_usage\",\r\n \"expression\": - \"windows_container_memory_usage_private_working_set_bytes{job=\\\"windows-exporter\\\"} - * on(container_id) group_left(container, pod, namespace) max(kube_pod_container_info{job=\\\"kube-state-metrics\\\"}) - by(container, container_id, pod, namespace)\"\r\n },\r\n {\r\n \"record\": - \"windows_container_network_received_bytes_total\",\r\n \"expression\": - \"windows_container_network_receive_bytes_total{job=\\\"windows-exporter\\\"} - * on(container_id) group_left(container, pod, namespace) max(kube_pod_container_info{job=\\\"kube-state-metrics\\\"}) - by(container, container_id, pod, namespace)\"\r\n },\r\n {\r\n \"record\": - \"windows_container_network_transmitted_bytes_total\",\r\n \"expression\": - \"windows_container_network_transmit_bytes_total{job=\\\"windows-exporter\\\"} - * on(container_id) group_left(container, pod, namespace) max(kube_pod_container_info{job=\\\"kube-state-metrics\\\"}) - by(container, container_id, pod, namespace)\"\r\n },\r\n {\r\n \"record\": - \"kube_pod_windows_container_resource_memory_request\",\r\n \"expression\": - \"max by (namespace, pod, container) (kube_pod_container_resource_requests{resource=\\\"memory\\\",job=\\\"kube-state-metrics\\\"}) - * on(container,pod,namespace) (windows_pod_container_available)\"\r\n },\r\n - \ {\r\n \"record\": \"kube_pod_windows_container_resource_memory_limit\",\r\n - \ \"expression\": \"kube_pod_container_resource_limits{resource=\\\"memory\\\",job=\\\"kube-state-metrics\\\"} - * on(container,pod,namespace) (windows_pod_container_available)\"\r\n },\r\n - \ {\r\n \"record\": \"kube_pod_windows_container_resource_cpu_cores_request\",\r\n - \ \"expression\": \"max by (namespace, pod, container) ( kube_pod_container_resource_requests{resource=\\\"cpu\\\",job=\\\"kube-state-metrics\\\"}) - * on(container,pod,namespace) (windows_pod_container_available)\"\r\n },\r\n - \ {\r\n \"record\": \"kube_pod_windows_container_resource_cpu_cores_limit\",\r\n - \ \"expression\": \"kube_pod_container_resource_limits{resource=\\\"cpu\\\",job=\\\"kube-state-metrics\\\"} - * on(container,pod,namespace) (windows_pod_container_available)\"\r\n },\r\n - \ {\r\n \"record\": \"namespace_pod_container:windows_container_cpu_usage_seconds_total:sum_rate\",\r\n - \ \"expression\": \"sum by (namespace, pod, container) (rate(windows_container_total_runtime{}[5m]))\"\r\n - \ }\r\n ],\r\n \"interval\": \"PT1M\"\r\n }\r\n}" + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\",\n + \ \"location\": \"westus2\",\n \"name\": \"cliakstest000002\",\n \"type\": + \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": + \"Succeeded\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": + \"1.25.6\",\n \"currentKubernetesVersion\": \"1.25.6\",\n \"dnsPrefix\": + \"cliakstest-clitest000001-79a739\",\n \"fqdn\": \"cliakstest-clitest000001-79a739-iqxcydbj.hcp.westus2.azmk8s.io\",\n + \ \"azurePortalFQDN\": \"cliakstest-clitest000001-79a739-iqxcydbj.portal.hcp.westus2.azmk8s.io\",\n + \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": + 3,\n \"vmSize\": \"standard_d2s_v3\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": + \"Managed\",\n \"kubeletDiskType\": \"OS\",\n \"workloadRuntime\": + \"OCIContainer\",\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n + \ \"enableAutoScaling\": false,\n \"provisioningState\": \"Succeeded\",\n + \ \"powerState\": {\n \"code\": \"Running\"\n },\n \"orchestratorVersion\": + \"1.25.6\",\n \"currentOrchestratorVersion\": \"1.25.6\",\n \"enableNodePublicIP\": + false,\n \"enableCustomCATrust\": false,\n \"mode\": \"System\",\n + \ \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\": false,\n + \ \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"nodeImageVersion\": + \"AKSUbuntu-2204gen2containerd-202304.20.0\",\n \"upgradeSettings\": {},\n + \ \"enableFIPS\": false,\n \"networkProfile\": {}\n }\n ],\n \"linuxProfile\": + {\n \"adminUsername\": \"azureuser\",\n \"ssh\": {\n \"publicKeys\": + [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCvSmDv2/j+2YOKt8Upeh5kRqWfa6Ruqyux98ejQPu6RssXtqmdYZTCMo0U0klQpXFIJI3ASBtFvMX3lBtqKLbjehzIirpjkesUCQvEEgKOd6iGp9ORvMr8FCn0RZr1Idw1dp7KmsCcxbMVPc5YGyvkrBtWl0BI0W/gVQxQ3+iF+NBrwuYAeLVnjmxp6moiCElvxm9ehp00Sr+7hpjPjzLi7qpDN2FITOggiXhrvXWJI/2cqfcPTvDXDQH+e6+avyApRPa/OvkCM7Jm/gXdUzes0xm1Y6aI61hzc8m9K1QjqleMeHPDTUYLCb8cCEnn70itMEkfuqwp6yftFWxCcylR + azcli_aks_live_test@example.com\\n\"\n }\n ]\n }\n },\n \"servicePrincipalProfile\": + {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \"nodeResourceGroup\": + \"MC_clitest000001_cliakstest000002_westus2\",\n \"enableRBAC\": true,\n + \ \"enablePodSecurityPolicy\": false,\n \"enableLTS\": \"KubernetesOfficial\",\n + \ \"networkProfile\": {\n \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\": + \"Standard\",\n \"loadBalancerProfile\": {\n \"managedOutboundIPs\": + {\n \"count\": 1\n },\n \"effectiveOutboundIPs\": [\n {\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.Network/publicIPAddresses/73659bc3-b205-4e4a-a308-90499313bb61\"\n + \ }\n ],\n \"backendPoolType\": \"nodeIPConfiguration\"\n },\n + \ \"podCidr\": \"10.244.0.0/16\",\n \"serviceCidr\": \"10.0.0.0/16\",\n + \ \"dnsServiceIP\": \"10.0.0.10\",\n \"dockerBridgeCidr\": \"172.17.0.1/16\",\n + \ \"outboundType\": \"loadBalancer\",\n \"podCidrs\": [\n \"10.244.0.0/16\"\n + \ ],\n \"serviceCidrs\": [\n \"10.0.0.0/16\"\n ],\n \"ipFamilies\": + [\n \"IPv4\"\n ]\n },\n \"maxAgentPools\": 100,\n \"identityProfile\": + {\n \"kubeletidentity\": {\n \"resourceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cliakstest000002-agentpool\",\n + \ \"clientId\":\"00000000-0000-0000-0000-000000000001\",\n \"objectId\":\"00000000-0000-0000-0000-000000000001\"\n + \ }\n },\n \"disableLocalAccounts\": false,\n \"securityProfile\": + {},\n \"storageProfile\": {\n \"diskCSIDriver\": {\n \"enabled\": + true,\n \"version\": \"v1\"\n },\n \"fileCSIDriver\": {\n \"enabled\": + true\n },\n \"snapshotController\": {\n \"enabled\": true\n }\n + \ },\n \"oidcIssuerProfile\": {\n \"enabled\": false\n },\n \"workloadAutoScalerProfile\": + {},\n \"azureMonitorProfile\": {\n \"metrics\": {\n \"enabled\": + true,\n \"kubeStateMetrics\": {\n \"metricLabelsAllowlist\": \"\",\n + \ \"metricAnnotationsAllowList\": \"\"\n }\n }\n }\n },\n \"identity\": + {\n \"type\": \"SystemAssigned\",\n \"principalId\":\"00000000-0000-0000-0000-000000000001\",\n + \ \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\n },\n \"sku\": + {\n \"name\": \"Base\",\n \"tier\": \"Free\"\n }\n }" headers: - api-supported-versions: - - 2021-07-22-preview, 2023-03-01 - arr-disable-session-affinity: - - 'true' cache-control: - no-cache content-length: - - '5564' + - '4345' content-type: - - application/json; charset=utf-8 + - application/json date: - - Tue, 28 Mar 2023 22:07:58 GMT + - Tue, 09 May 2023 21:01:07 GMT expires: - '-1' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - nginx strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - - Accept-Encoding,Accept-Encoding - x-aspnet-version: - - 4.0.30319 + - Accept-Encoding x-content-type-options: - nosniff - x-ms-ratelimit-remaining-subscription-resource-requests: - - '299' - x-powered-by: - - ASP.NET status: code: 200 message: OK - request: - body: '{"location": "westus2", "sku": {"name": "Base", "tier": "Free"}, "identity": - {"type": "SystemAssigned"}, "properties": {"kubernetesVersion": "1.24.9", "dnsPrefix": - "cliakstest-clitest000001-0b1f64", "agentPoolProfiles": [{"count": 3, "vmSize": - "standard_d2s_v3", "osDiskSizeGB": 128, "osDiskType": "Managed", "kubeletDiskType": - "OS", "workloadRuntime": "OCIContainer", "maxPods": 110, "osType": "Linux", - "osSKU": "Ubuntu", "enableAutoScaling": false, "type": "VirtualMachineScaleSets", - "mode": "System", "orchestratorVersion": "1.24.9", "upgradeSettings": {}, "powerState": - {"code": "Running"}, "enableNodePublicIP": false, "enableCustomCATrust": false, - "enableEncryptionAtHost": false, "enableUltraSSD": false, "enableFIPS": false, - "networkProfile": {}, "name": "nodepool1"}], "linuxProfile": {"adminUsername": - "azureuser", "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCbIg1guRHbI0lV11wWDt1r2cUdcNd27CJsg+SfgC7miZeubtwUhbsPdhMQsfDyhOWHq1+ZL0M+nJZV63d/1dhmhtgyOqejUwrPlzKhydsbrsdUor+JmNJDdW01v7BXHyuymT8G4s09jCasNOwiufbP/qp72ruu0bIA1nySsvlf9pCQAuFkAnVnf/rFhUlOkhtRpwcq8SUNY2zRHR/EKb/4NWY1JzR4sa3q2fWIJdrrX0DvLoa5g9bIEd4Df79ba7v+yiUBOS0zT2ll+z4g9izHK3EO5d8hL4jYxcjKs+wcslSYRWrascfscLgMlMGh0CdKeNTDjHpGPncaf3Z+FwwwjWeuiNBxv7bJo13/8B/098KlVDl4GZqsoBCEjPyJfV6hO0y/LkRGkk7oHWKgeWAfKtfLItRp00eZ4fcJNK9kCaSMmEugoZWcI7NGbZXzqFWqbpRI7NcDP9+WIQ+i9U5vqWsqd/zng4kbuAJ6UuKqIzB0upYrLShfQE3SAck8oaLhJqqq56VfDuASNpJKidV+zq27HfSBmbXnkR/5AK337dc3MXKJypoK/QPMLKUAP5XLPbs+NddJQV7EZXd29DLgp+fRIg3edpKdO7ZErWhv7d+3Kws+e1Y+ypmR2WIVSwVyBEUfgv2C8Ts9gnTF4pNcEY/S2aBicz5Ew2+jdyGNQQ== - test@example.com\n"}]}}, "servicePrincipalProfile": {"clientId":"00000000-0000-0000-0000-000000000001"}, - "oidcIssuerProfile": {"enabled": false}, "nodeResourceGroup": "MC_clitest000001_cliakstest000002_westus2", - "enableRBAC": true, "enablePodSecurityPolicy": false, "networkProfile": {"networkPlugin": - "kubenet", "podCidr": "10.244.0.0/16", "serviceCidr": "10.0.0.0/16", "dnsServiceIP": - "10.0.0.10", "dockerBridgeCidr": "172.17.0.1/16", "outboundType": "loadBalancer", - "loadBalancerSku": "Standard", "loadBalancerProfile": {"managedOutboundIPs": - {"count": 1, "countIPv6": 0}, "effectiveOutboundIPs": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.Network/publicIPAddresses/fe26dda4-904a-4ef2-a02a-c1710956f8a4"}], - "backendPoolType": "nodeIPConfiguration"}, "podCidrs": ["10.244.0.0/16"], "serviceCidrs": - ["10.0.0.0/16"], "ipFamilies": ["IPv4"]}, "identityProfile": {"kubeletidentity": - {"resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cliakstest000002-agentpool", - "clientId":"00000000-0000-0000-0000-000000000001", "objectId":"00000000-0000-0000-0000-000000000001"}}, - "disableLocalAccounts": false, "securityProfile": {}, "storageProfile": {}, - "workloadAutoScalerProfile": {}, "azureMonitorProfile": {"metrics": {"enabled": - true, "kubeStateMetrics": {"metricLabelsAllowlist": "", "metricAnnotationsAllowList": - ""}}}}}' + body: null headers: - AKSHTTPCustomFeatures: - - Microsoft.ContainerService/AKS-PrometheusAddonPreview Accept: - application/json Accept-Encoding: @@ -2989,48 +3607,44 @@ interactions: - aks update Connection: - keep-alive - Content-Length: - - '3128' - Content-Type: - - application/json ParameterSetName: - - --resource-group --name --yes --output --aks-custom-headers --enable-azuremonitormetrics - --enable-managed-identity --enable-windows-recording-rules + - --resource-group --name --yes --output --disable-azuremonitormetrics User-Agent: - - AZURECLI/2.46.0 azsdk-python-azure-mgmt-containerservice/21.2.0b Python/3.10.10 - (Linux-5.15.0-1034-azure-x86_64-with-glibc2.31) VSTS_7b238909-6802-4b65-b90d-184bca47f458_build_261_0 - method: PUT + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/22.0.0b Python/3.8.10 + (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) + method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2023-03-02-preview response: body: string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\",\n \ \"location\": \"westus2\",\n \"name\": \"cliakstest000002\",\n \"type\": \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": - \"Updating\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": - \"1.24.9\",\n \"currentKubernetesVersion\": \"1.24.9\",\n \"dnsPrefix\": - \"cliakstest-clitest000001-0b1f64\",\n \"fqdn\": \"cliakstest-clitest000001-0b1f64-amkkzkou.hcp.westus2.azmk8s.io\",\n - \ \"azurePortalFQDN\": \"cliakstest-clitest000001-0b1f64-amkkzkou.portal.hcp.westus2.azmk8s.io\",\n + \"Succeeded\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": + \"1.25.6\",\n \"currentKubernetesVersion\": \"1.25.6\",\n \"dnsPrefix\": + \"cliakstest-clitest000001-79a739\",\n \"fqdn\": \"cliakstest-clitest000001-79a739-iqxcydbj.hcp.westus2.azmk8s.io\",\n + \ \"azurePortalFQDN\": \"cliakstest-clitest000001-79a739-iqxcydbj.portal.hcp.westus2.azmk8s.io\",\n \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": 3,\n \"vmSize\": \"standard_d2s_v3\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": \"Managed\",\n \"kubeletDiskType\": \"OS\",\n \"workloadRuntime\": \"OCIContainer\",\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n - \ \"enableAutoScaling\": false,\n \"provisioningState\": \"Updating\",\n + \ \"enableAutoScaling\": false,\n \"provisioningState\": \"Succeeded\",\n \ \"powerState\": {\n \"code\": \"Running\"\n },\n \"orchestratorVersion\": - \"1.24.9\",\n \"currentOrchestratorVersion\": \"1.24.9\",\n \"enableNodePublicIP\": + \"1.25.6\",\n \"currentOrchestratorVersion\": \"1.25.6\",\n \"enableNodePublicIP\": false,\n \"enableCustomCATrust\": false,\n \"mode\": \"System\",\n \ \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\": false,\n \ \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"nodeImageVersion\": - \"AKSUbuntu-1804gen2containerd-202303.06.0\",\n \"upgradeSettings\": {},\n + \"AKSUbuntu-2204gen2containerd-202304.20.0\",\n \"upgradeSettings\": {},\n \ \"enableFIPS\": false,\n \"networkProfile\": {}\n }\n ],\n \"linuxProfile\": {\n \"adminUsername\": \"azureuser\",\n \"ssh\": {\n \"publicKeys\": - [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCbIg1guRHbI0lV11wWDt1r2cUdcNd27CJsg+SfgC7miZeubtwUhbsPdhMQsfDyhOWHq1+ZL0M+nJZV63d/1dhmhtgyOqejUwrPlzKhydsbrsdUor+JmNJDdW01v7BXHyuymT8G4s09jCasNOwiufbP/qp72ruu0bIA1nySsvlf9pCQAuFkAnVnf/rFhUlOkhtRpwcq8SUNY2zRHR/EKb/4NWY1JzR4sa3q2fWIJdrrX0DvLoa5g9bIEd4Df79ba7v+yiUBOS0zT2ll+z4g9izHK3EO5d8hL4jYxcjKs+wcslSYRWrascfscLgMlMGh0CdKeNTDjHpGPncaf3Z+FwwwjWeuiNBxv7bJo13/8B/098KlVDl4GZqsoBCEjPyJfV6hO0y/LkRGkk7oHWKgeWAfKtfLItRp00eZ4fcJNK9kCaSMmEugoZWcI7NGbZXzqFWqbpRI7NcDP9+WIQ+i9U5vqWsqd/zng4kbuAJ6UuKqIzB0upYrLShfQE3SAck8oaLhJqqq56VfDuASNpJKidV+zq27HfSBmbXnkR/5AK337dc3MXKJypoK/QPMLKUAP5XLPbs+NddJQV7EZXd29DLgp+fRIg3edpKdO7ZErWhv7d+3Kws+e1Y+ypmR2WIVSwVyBEUfgv2C8Ts9gnTF4pNcEY/S2aBicz5Ew2+jdyGNQQ== - test@example.com\\n\"\n }\n ]\n }\n },\n \"servicePrincipalProfile\": + [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCvSmDv2/j+2YOKt8Upeh5kRqWfa6Ruqyux98ejQPu6RssXtqmdYZTCMo0U0klQpXFIJI3ASBtFvMX3lBtqKLbjehzIirpjkesUCQvEEgKOd6iGp9ORvMr8FCn0RZr1Idw1dp7KmsCcxbMVPc5YGyvkrBtWl0BI0W/gVQxQ3+iF+NBrwuYAeLVnjmxp6moiCElvxm9ehp00Sr+7hpjPjzLi7qpDN2FITOggiXhrvXWJI/2cqfcPTvDXDQH+e6+avyApRPa/OvkCM7Jm/gXdUzes0xm1Y6aI61hzc8m9K1QjqleMeHPDTUYLCb8cCEnn70itMEkfuqwp6yftFWxCcylR + azcli_aks_live_test@example.com\\n\"\n }\n ]\n }\n },\n \"servicePrincipalProfile\": {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \"nodeResourceGroup\": \"MC_clitest000001_cliakstest000002_westus2\",\n \"enableRBAC\": true,\n - \ \"enablePodSecurityPolicy\": false,\n \"networkProfile\": {\n \"networkPlugin\": - \"kubenet\",\n \"loadBalancerSku\": \"Standard\",\n \"loadBalancerProfile\": - {\n \"managedOutboundIPs\": {\n \"count\": 1\n },\n \"effectiveOutboundIPs\": - [\n {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.Network/publicIPAddresses/fe26dda4-904a-4ef2-a02a-c1710956f8a4\"\n + \ \"enablePodSecurityPolicy\": false,\n \"enableLTS\": \"KubernetesOfficial\",\n + \ \"networkProfile\": {\n \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\": + \"Standard\",\n \"loadBalancerProfile\": {\n \"managedOutboundIPs\": + {\n \"count\": 1\n },\n \"effectiveOutboundIPs\": [\n {\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.Network/publicIPAddresses/73659bc3-b205-4e4a-a308-90499313bb61\"\n \ }\n ],\n \"backendPoolType\": \"nodeIPConfiguration\"\n },\n \ \"podCidr\": \"10.244.0.0/16\",\n \"serviceCidr\": \"10.0.0.0/16\",\n \ \"dnsServiceIP\": \"10.0.0.10\",\n \"dockerBridgeCidr\": \"172.17.0.1/16\",\n @@ -3048,19 +3662,17 @@ interactions: true,\n \"kubeStateMetrics\": {\n \"metricLabelsAllowlist\": \"\",\n \ \"metricAnnotationsAllowList\": \"\"\n }\n }\n }\n },\n \"identity\": {\n \"type\": \"SystemAssigned\",\n \"principalId\":\"00000000-0000-0000-0000-000000000001\",\n - \ \"tenantId\": \"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a\"\n },\n \"sku\": + \ \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\n },\n \"sku\": {\n \"name\": \"Base\",\n \"tier\": \"Free\"\n }\n }" headers: - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/eaff11df-f2dc-4bf4-911a-27418b2cead0?api-version=2016-03-30 cache-control: - no-cache content-length: - - '4634' + - '4345' content-type: - application/json date: - - Tue, 28 Mar 2023 22:08:04 GMT + - Tue, 09 May 2023 21:01:09 GMT expires: - '-1' pragma: @@ -3075,8 +3687,6 @@ interactions: - Accept-Encoding x-content-type-options: - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1196' status: code: 200 message: OK @@ -3092,38 +3702,41 @@ interactions: Connection: - keep-alive ParameterSetName: - - --resource-group --name --yes --output --aks-custom-headers --enable-azuremonitormetrics - --enable-managed-identity --enable-windows-recording-rules + - --resource-group --name --yes --output --disable-azuremonitormetrics User-Agent: - - AZURECLI/2.46.0 azsdk-python-azure-mgmt-containerservice/21.2.0b Python/3.10.10 - (Linux-5.15.0-1034-azure-x86_64-with-glibc2.31) VSTS_7b238909-6802-4b65-b90d-184bca47f458_build_261_0 + - python/3.8.10 (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) AZURECLI/2.48.1 + azuremonitormetrics.get_dcra method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/eaff11df-f2dc-4bf4-911a-27418b2cead0?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/providers/Microsoft.Insights/dataCollectionRuleAssociations?api-version=2022-06-01 response: body: - string: "{\n \"name\": \"df11ffea-dcf2-f44b-911a-27418b2cead0\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2023-03-28T22:08:02.9769346Z\"\n }" + string: '{"value":[{"properties":{"description":"Promtheus data collection association + between DCR, DCE and target AKS resource","dataCollectionRuleId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/MSProm-westus2-cliakstest000002"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/providers/Microsoft.Insights/dataCollectionRuleAssociations/ContainerInsightsMetricsExtension-westus2-cliakstest000002","name":"ContainerInsightsMetricsExtension-westus2-cliakstest000002","type":"Microsoft.Insights/dataCollectionRuleAssociations","etag":"\"3407110b-0000-0800-0000-645ab3cb0000\"","systemData":{"createdBy":"3fac8b4e-cd90-4baa-a5d2-66d52bc8349d","createdByType":"Application","createdAt":"2023-05-09T20:57:47.1810464Z","lastModifiedBy":"3fac8b4e-cd90-4baa-a5d2-66d52bc8349d","lastModifiedByType":"Application","lastModifiedAt":"2023-05-09T20:57:47.1810464Z"}}],"nextLink":null}' headers: + api-supported-versions: + - 2019-11-01-preview, 2021-04-01, 2021-09-01-preview, 2022-06-01, 2023-03-11 cache-control: - no-cache content-length: - - '126' + - '1058' content-type: - - application/json + - application/json; charset=utf-8 date: - - Tue, 28 Mar 2023 22:08:34 GMT + - Tue, 09 May 2023 21:01:10 GMT expires: - '-1' pragma: - no-cache + request-context: + - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3 server: - - nginx + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - - Accept-Encoding + - Accept-Encoding,Accept-Encoding x-content-type-options: - nosniff status: @@ -3141,38 +3754,40 @@ interactions: Connection: - keep-alive ParameterSetName: - - --resource-group --name --yes --output --aks-custom-headers --enable-azuremonitormetrics - --enable-managed-identity --enable-windows-recording-rules + - --resource-group --name --yes --output --disable-azuremonitormetrics User-Agent: - - AZURECLI/2.46.0 azsdk-python-azure-mgmt-containerservice/21.2.0b Python/3.10.10 - (Linux-5.15.0-1034-azure-x86_64-with-glibc2.31) VSTS_7b238909-6802-4b65-b90d-184bca47f458_build_261_0 + - python/3.8.10 (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) AZURECLI/2.48.1 + azuremonitormetrics.get_dce_from_dcr method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/eaff11df-f2dc-4bf4-911a-27418b2cead0?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/MSProm-westus2-cliakstest000002?api-version=2022-06-01 response: body: - string: "{\n \"name\": \"df11ffea-dcf2-f44b-911a-27418b2cead0\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2023-03-28T22:08:02.9769346Z\"\n }" + string: '{"properties":{"description":"DCR description","immutableId":"dcr-b062b555454e4f3ca8e72739fe31acd3","dataCollectionEndpointId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionEndpoints/MSProm-westus2-cliakstest000002","dataSources":{"prometheusForwarder":[{"streams":["Microsoft-PrometheusMetrics"],"labelIncludeFilter":{},"name":"PrometheusDataSource"}]},"destinations":{"monitoringAccounts":[{"accountResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/DefaultResourceGroup-westus2/providers/microsoft.monitor/accounts/DefaultAzureMonitorWorkspace-westus2","accountId":"ec050f19-1529-4ec2-9d0c-e6677ca07ac8","name":"MonitoringAccount1"}]},"dataFlows":[{"streams":["Microsoft-PrometheusMetrics"],"destinations":["MonitoringAccount1"]}],"provisioningState":"Succeeded"},"location":"westus2","kind":"Linux","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/MSProm-westus2-cliakstest000002","name":"MSProm-westus2-cliakstest000002","type":"Microsoft.Insights/dataCollectionRules","etag":"\"3407450a-0000-0800-0000-645ab3c90000\"","systemData":{"createdBy":"3fac8b4e-cd90-4baa-a5d2-66d52bc8349d","createdByType":"Application","createdAt":"2023-05-09T20:57:44.6667141Z","lastModifiedBy":"3fac8b4e-cd90-4baa-a5d2-66d52bc8349d","lastModifiedByType":"Application","lastModifiedAt":"2023-05-09T20:57:44.6667141Z"}}' headers: + api-supported-versions: + - 2019-11-01-preview, 2021-04-01, 2021-09-01-preview, 2022-06-01, 2023-03-11 cache-control: - no-cache content-length: - - '126' + - '1497' content-type: - - application/json + - application/json; charset=utf-8 date: - - Tue, 28 Mar 2023 22:09:03 GMT + - Tue, 09 May 2023 21:01:11 GMT expires: - '-1' pragma: - no-cache + request-context: + - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3 server: - - nginx + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - - Accept-Encoding + - Accept-Encoding,Accept-Encoding x-content-type-options: - nosniff status: @@ -3190,40 +3805,91 @@ interactions: Connection: - keep-alive ParameterSetName: - - --resource-group --name --yes --output --aks-custom-headers --enable-azuremonitormetrics - --enable-managed-identity --enable-windows-recording-rules + - --resource-group --name --yes --output --disable-azuremonitormetrics User-Agent: - - AZURECLI/2.46.0 azsdk-python-azure-mgmt-containerservice/21.2.0b Python/3.10.10 - (Linux-5.15.0-1034-azure-x86_64-with-glibc2.31) VSTS_7b238909-6802-4b65-b90d-184bca47f458_build_261_0 + - python/3.8.10 (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) AZURECLI/2.48.1 + azuremonitormetrics.get_dcr_if_prometheus_enabled method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/eaff11df-f2dc-4bf4-911a-27418b2cead0?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/MSProm-westus2-cliakstest000002?api-version=2022-06-01 response: body: - string: "{\n \"name\": \"df11ffea-dcf2-f44b-911a-27418b2cead0\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2023-03-28T22:08:02.9769346Z\"\n }" + string: '{"properties":{"description":"DCR description","immutableId":"dcr-b062b555454e4f3ca8e72739fe31acd3","dataCollectionEndpointId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionEndpoints/MSProm-westus2-cliakstest000002","dataSources":{"prometheusForwarder":[{"streams":["Microsoft-PrometheusMetrics"],"labelIncludeFilter":{},"name":"PrometheusDataSource"}]},"destinations":{"monitoringAccounts":[{"accountResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/DefaultResourceGroup-westus2/providers/microsoft.monitor/accounts/DefaultAzureMonitorWorkspace-westus2","accountId":"ec050f19-1529-4ec2-9d0c-e6677ca07ac8","name":"MonitoringAccount1"}]},"dataFlows":[{"streams":["Microsoft-PrometheusMetrics"],"destinations":["MonitoringAccount1"]}],"provisioningState":"Succeeded"},"location":"westus2","kind":"Linux","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/MSProm-westus2-cliakstest000002","name":"MSProm-westus2-cliakstest000002","type":"Microsoft.Insights/dataCollectionRules","etag":"\"3407450a-0000-0800-0000-645ab3c90000\"","systemData":{"createdBy":"3fac8b4e-cd90-4baa-a5d2-66d52bc8349d","createdByType":"Application","createdAt":"2023-05-09T20:57:44.6667141Z","lastModifiedBy":"3fac8b4e-cd90-4baa-a5d2-66d52bc8349d","lastModifiedByType":"Application","lastModifiedAt":"2023-05-09T20:57:44.6667141Z"}}' headers: + api-supported-versions: + - 2019-11-01-preview, 2021-04-01, 2021-09-01-preview, 2022-06-01, 2023-03-11 cache-control: - no-cache content-length: - - '126' + - '1497' content-type: - - application/json + - application/json; charset=utf-8 date: - - Tue, 28 Mar 2023 22:09:33 GMT + - Tue, 09 May 2023 21:01:12 GMT expires: - '-1' pragma: - no-cache + request-context: + - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3 server: - - nginx + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - - Accept-Encoding + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --resource-group --name --yes --output --disable-azuremonitormetrics + User-Agent: + - python/3.8.10 (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) AZURECLI/2.48.1 + azuremonitormetrics.delete_dcra + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/providers/Microsoft.Insights/dataCollectionRuleAssociations/ContainerInsightsMetricsExtension-westus2-cliakstest000002?api-version=2022-06-01 + response: + body: + string: '' + headers: + api-supported-versions: + - 2019-11-01-preview, 2021-04-01, 2021-09-01-preview, 2022-06-01, 2023-03-11 + cache-control: + - no-cache + content-length: + - '0' + date: + - Tue, 09 May 2023 21:01:13 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains x-content-type-options: - nosniff + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' status: code: 200 message: OK @@ -3238,42 +3904,41 @@ interactions: - aks update Connection: - keep-alive + Content-Length: + - '0' ParameterSetName: - - --resource-group --name --yes --output --aks-custom-headers --enable-azuremonitormetrics - --enable-managed-identity --enable-windows-recording-rules + - --resource-group --name --yes --output --disable-azuremonitormetrics User-Agent: - - AZURECLI/2.46.0 azsdk-python-azure-mgmt-containerservice/21.2.0b Python/3.10.10 - (Linux-5.15.0-1034-azure-x86_64-with-glibc2.31) VSTS_7b238909-6802-4b65-b90d-184bca47f458_build_261_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/eaff11df-f2dc-4bf4-911a-27418b2cead0?api-version=2016-03-30 + - python/3.8.10 (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) AZURECLI/2.48.1 + azuremonitormetrics.delete_dcr + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/MSProm-westus2-cliakstest000002?api-version=2022-06-01 response: body: - string: "{\n \"name\": \"df11ffea-dcf2-f44b-911a-27418b2cead0\",\n \"status\": - \"Succeeded\",\n \"startTime\": \"2023-03-28T22:08:02.9769346Z\",\n \"endTime\": - \"2023-03-28T22:09:46.6710662Z\"\n }" + string: '' headers: + api-supported-versions: + - 2019-11-01-preview, 2021-04-01, 2021-09-01-preview, 2022-06-01, 2023-03-11 cache-control: - no-cache content-length: - - '170' - content-type: - - application/json + - '0' date: - - Tue, 28 Mar 2023 22:10:04 GMT + - Tue, 09 May 2023 21:01:15 GMT expires: - '-1' pragma: - no-cache + request-context: + - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3 server: - - nginx + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding x-content-type-options: - nosniff + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' status: code: 200 message: OK @@ -3288,86 +3953,41 @@ interactions: - aks update Connection: - keep-alive + Content-Length: + - '0' ParameterSetName: - - --resource-group --name --yes --output --aks-custom-headers --enable-azuremonitormetrics - --enable-managed-identity --enable-windows-recording-rules + - --resource-group --name --yes --output --disable-azuremonitormetrics User-Agent: - - AZURECLI/2.46.0 azsdk-python-azure-mgmt-containerservice/21.2.0b Python/3.10.10 - (Linux-5.15.0-1034-azure-x86_64-with-glibc2.31) VSTS_7b238909-6802-4b65-b90d-184bca47f458_build_261_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2023-03-02-preview + - python/3.8.10 (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) AZURECLI/2.48.1 + azuremonitormetrics.delete_dce + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionEndpoints/MSProm-westus2-cliakstest000002?api-version=2022-06-01 response: body: - string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\",\n - \ \"location\": \"westus2\",\n \"name\": \"cliakstest000002\",\n \"type\": - \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": - \"Succeeded\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": - \"1.24.9\",\n \"currentKubernetesVersion\": \"1.24.9\",\n \"dnsPrefix\": - \"cliakstest-clitest000001-0b1f64\",\n \"fqdn\": \"cliakstest-clitest000001-0b1f64-amkkzkou.hcp.westus2.azmk8s.io\",\n - \ \"azurePortalFQDN\": \"cliakstest-clitest000001-0b1f64-amkkzkou.portal.hcp.westus2.azmk8s.io\",\n - \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": - 3,\n \"vmSize\": \"standard_d2s_v3\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": - \"Managed\",\n \"kubeletDiskType\": \"OS\",\n \"workloadRuntime\": - \"OCIContainer\",\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n - \ \"enableAutoScaling\": false,\n \"provisioningState\": \"Succeeded\",\n - \ \"powerState\": {\n \"code\": \"Running\"\n },\n \"orchestratorVersion\": - \"1.24.9\",\n \"currentOrchestratorVersion\": \"1.24.9\",\n \"enableNodePublicIP\": - false,\n \"enableCustomCATrust\": false,\n \"mode\": \"System\",\n - \ \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\": false,\n - \ \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"nodeImageVersion\": - \"AKSUbuntu-1804gen2containerd-202303.06.0\",\n \"upgradeSettings\": {},\n - \ \"enableFIPS\": false,\n \"networkProfile\": {}\n }\n ],\n \"linuxProfile\": - {\n \"adminUsername\": \"azureuser\",\n \"ssh\": {\n \"publicKeys\": - [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCbIg1guRHbI0lV11wWDt1r2cUdcNd27CJsg+SfgC7miZeubtwUhbsPdhMQsfDyhOWHq1+ZL0M+nJZV63d/1dhmhtgyOqejUwrPlzKhydsbrsdUor+JmNJDdW01v7BXHyuymT8G4s09jCasNOwiufbP/qp72ruu0bIA1nySsvlf9pCQAuFkAnVnf/rFhUlOkhtRpwcq8SUNY2zRHR/EKb/4NWY1JzR4sa3q2fWIJdrrX0DvLoa5g9bIEd4Df79ba7v+yiUBOS0zT2ll+z4g9izHK3EO5d8hL4jYxcjKs+wcslSYRWrascfscLgMlMGh0CdKeNTDjHpGPncaf3Z+FwwwjWeuiNBxv7bJo13/8B/098KlVDl4GZqsoBCEjPyJfV6hO0y/LkRGkk7oHWKgeWAfKtfLItRp00eZ4fcJNK9kCaSMmEugoZWcI7NGbZXzqFWqbpRI7NcDP9+WIQ+i9U5vqWsqd/zng4kbuAJ6UuKqIzB0upYrLShfQE3SAck8oaLhJqqq56VfDuASNpJKidV+zq27HfSBmbXnkR/5AK337dc3MXKJypoK/QPMLKUAP5XLPbs+NddJQV7EZXd29DLgp+fRIg3edpKdO7ZErWhv7d+3Kws+e1Y+ypmR2WIVSwVyBEUfgv2C8Ts9gnTF4pNcEY/S2aBicz5Ew2+jdyGNQQ== - test@example.com\\n\"\n }\n ]\n }\n },\n \"servicePrincipalProfile\": - {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \"nodeResourceGroup\": - \"MC_clitest000001_cliakstest000002_westus2\",\n \"enableRBAC\": true,\n - \ \"enablePodSecurityPolicy\": false,\n \"networkProfile\": {\n \"networkPlugin\": - \"kubenet\",\n \"loadBalancerSku\": \"Standard\",\n \"loadBalancerProfile\": - {\n \"managedOutboundIPs\": {\n \"count\": 1\n },\n \"effectiveOutboundIPs\": - [\n {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.Network/publicIPAddresses/fe26dda4-904a-4ef2-a02a-c1710956f8a4\"\n - \ }\n ],\n \"backendPoolType\": \"nodeIPConfiguration\"\n },\n - \ \"podCidr\": \"10.244.0.0/16\",\n \"serviceCidr\": \"10.0.0.0/16\",\n - \ \"dnsServiceIP\": \"10.0.0.10\",\n \"dockerBridgeCidr\": \"172.17.0.1/16\",\n - \ \"outboundType\": \"loadBalancer\",\n \"podCidrs\": [\n \"10.244.0.0/16\"\n - \ ],\n \"serviceCidrs\": [\n \"10.0.0.0/16\"\n ],\n \"ipFamilies\": - [\n \"IPv4\"\n ]\n },\n \"maxAgentPools\": 100,\n \"identityProfile\": - {\n \"kubeletidentity\": {\n \"resourceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cliakstest000002-agentpool\",\n - \ \"clientId\":\"00000000-0000-0000-0000-000000000001\",\n \"objectId\":\"00000000-0000-0000-0000-000000000001\"\n - \ }\n },\n \"disableLocalAccounts\": false,\n \"securityProfile\": - {},\n \"storageProfile\": {\n \"diskCSIDriver\": {\n \"enabled\": - true,\n \"version\": \"v1\"\n },\n \"fileCSIDriver\": {\n \"enabled\": - true\n },\n \"snapshotController\": {\n \"enabled\": true\n }\n - \ },\n \"oidcIssuerProfile\": {\n \"enabled\": false\n },\n \"workloadAutoScalerProfile\": - {},\n \"azureMonitorProfile\": {\n \"metrics\": {\n \"enabled\": - true,\n \"kubeStateMetrics\": {\n \"metricLabelsAllowlist\": \"\",\n - \ \"metricAnnotationsAllowList\": \"\"\n }\n }\n }\n },\n \"identity\": - {\n \"type\": \"SystemAssigned\",\n \"principalId\":\"00000000-0000-0000-0000-000000000001\",\n - \ \"tenantId\": \"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a\"\n },\n \"sku\": - {\n \"name\": \"Base\",\n \"tier\": \"Free\"\n }\n }" + string: '' headers: + api-supported-versions: + - 2021-04-01, 2021-09-01-preview, 2022-06-01, 2023-03-11 cache-control: - no-cache content-length: - - '4636' - content-type: - - application/json + - '0' date: - - Tue, 28 Mar 2023 22:10:05 GMT + - Tue, 09 May 2023 21:01:21 GMT expires: - '-1' pragma: - no-cache + request-context: + - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3 server: - - nginx + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding x-content-type-options: - nosniff + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' status: code: 200 message: OK @@ -3375,97 +3995,57 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - aks update Connection: - keep-alive + Content-Length: + - '0' ParameterSetName: - --resource-group --name --yes --output --disable-azuremonitormetrics User-Agent: - - AZURECLI/2.46.0 azsdk-python-azure-mgmt-containerservice/21.2.0b Python/3.10.10 - (Linux-5.15.0-1034-azure-x86_64-with-glibc2.31) VSTS_7b238909-6802-4b65-b90d-184bca47f458_build_261_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2023-03-02-preview + - python/3.8.10 (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) AZURECLI/2.48.1 + azuremonitormetrics.delete_rule.NodeRecordingRulesRuleGroup-cliakstestq6vea + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.AlertsManagement/prometheusRuleGroups/NodeRecordingRulesRuleGroup-cliakstest000002?api-version=2023-03-01 response: body: - string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\",\n - \ \"location\": \"westus2\",\n \"name\": \"cliakstest000002\",\n \"type\": - \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": - \"Succeeded\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": - \"1.24.9\",\n \"currentKubernetesVersion\": \"1.24.9\",\n \"dnsPrefix\": - \"cliakstest-clitest000001-0b1f64\",\n \"fqdn\": \"cliakstest-clitest000001-0b1f64-amkkzkou.hcp.westus2.azmk8s.io\",\n - \ \"azurePortalFQDN\": \"cliakstest-clitest000001-0b1f64-amkkzkou.portal.hcp.westus2.azmk8s.io\",\n - \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": - 3,\n \"vmSize\": \"standard_d2s_v3\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": - \"Managed\",\n \"kubeletDiskType\": \"OS\",\n \"workloadRuntime\": - \"OCIContainer\",\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n - \ \"enableAutoScaling\": false,\n \"provisioningState\": \"Succeeded\",\n - \ \"powerState\": {\n \"code\": \"Running\"\n },\n \"orchestratorVersion\": - \"1.24.9\",\n \"currentOrchestratorVersion\": \"1.24.9\",\n \"enableNodePublicIP\": - false,\n \"enableCustomCATrust\": false,\n \"mode\": \"System\",\n - \ \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\": false,\n - \ \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"nodeImageVersion\": - \"AKSUbuntu-1804gen2containerd-202303.06.0\",\n \"upgradeSettings\": {},\n - \ \"enableFIPS\": false,\n \"networkProfile\": {}\n }\n ],\n \"linuxProfile\": - {\n \"adminUsername\": \"azureuser\",\n \"ssh\": {\n \"publicKeys\": - [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCbIg1guRHbI0lV11wWDt1r2cUdcNd27CJsg+SfgC7miZeubtwUhbsPdhMQsfDyhOWHq1+ZL0M+nJZV63d/1dhmhtgyOqejUwrPlzKhydsbrsdUor+JmNJDdW01v7BXHyuymT8G4s09jCasNOwiufbP/qp72ruu0bIA1nySsvlf9pCQAuFkAnVnf/rFhUlOkhtRpwcq8SUNY2zRHR/EKb/4NWY1JzR4sa3q2fWIJdrrX0DvLoa5g9bIEd4Df79ba7v+yiUBOS0zT2ll+z4g9izHK3EO5d8hL4jYxcjKs+wcslSYRWrascfscLgMlMGh0CdKeNTDjHpGPncaf3Z+FwwwjWeuiNBxv7bJo13/8B/098KlVDl4GZqsoBCEjPyJfV6hO0y/LkRGkk7oHWKgeWAfKtfLItRp00eZ4fcJNK9kCaSMmEugoZWcI7NGbZXzqFWqbpRI7NcDP9+WIQ+i9U5vqWsqd/zng4kbuAJ6UuKqIzB0upYrLShfQE3SAck8oaLhJqqq56VfDuASNpJKidV+zq27HfSBmbXnkR/5AK337dc3MXKJypoK/QPMLKUAP5XLPbs+NddJQV7EZXd29DLgp+fRIg3edpKdO7ZErWhv7d+3Kws+e1Y+ypmR2WIVSwVyBEUfgv2C8Ts9gnTF4pNcEY/S2aBicz5Ew2+jdyGNQQ== - test@example.com\\n\"\n }\n ]\n }\n },\n \"servicePrincipalProfile\": - {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \"nodeResourceGroup\": - \"MC_clitest000001_cliakstest000002_westus2\",\n \"enableRBAC\": true,\n - \ \"enablePodSecurityPolicy\": false,\n \"networkProfile\": {\n \"networkPlugin\": - \"kubenet\",\n \"loadBalancerSku\": \"Standard\",\n \"loadBalancerProfile\": - {\n \"managedOutboundIPs\": {\n \"count\": 1\n },\n \"effectiveOutboundIPs\": - [\n {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.Network/publicIPAddresses/fe26dda4-904a-4ef2-a02a-c1710956f8a4\"\n - \ }\n ],\n \"backendPoolType\": \"nodeIPConfiguration\"\n },\n - \ \"podCidr\": \"10.244.0.0/16\",\n \"serviceCidr\": \"10.0.0.0/16\",\n - \ \"dnsServiceIP\": \"10.0.0.10\",\n \"dockerBridgeCidr\": \"172.17.0.1/16\",\n - \ \"outboundType\": \"loadBalancer\",\n \"podCidrs\": [\n \"10.244.0.0/16\"\n - \ ],\n \"serviceCidrs\": [\n \"10.0.0.0/16\"\n ],\n \"ipFamilies\": - [\n \"IPv4\"\n ]\n },\n \"maxAgentPools\": 100,\n \"identityProfile\": - {\n \"kubeletidentity\": {\n \"resourceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cliakstest000002-agentpool\",\n - \ \"clientId\":\"00000000-0000-0000-0000-000000000001\",\n \"objectId\":\"00000000-0000-0000-0000-000000000001\"\n - \ }\n },\n \"disableLocalAccounts\": false,\n \"securityProfile\": - {},\n \"storageProfile\": {\n \"diskCSIDriver\": {\n \"enabled\": - true,\n \"version\": \"v1\"\n },\n \"fileCSIDriver\": {\n \"enabled\": - true\n },\n \"snapshotController\": {\n \"enabled\": true\n }\n - \ },\n \"oidcIssuerProfile\": {\n \"enabled\": false\n },\n \"workloadAutoScalerProfile\": - {},\n \"azureMonitorProfile\": {\n \"metrics\": {\n \"enabled\": - true,\n \"kubeStateMetrics\": {\n \"metricLabelsAllowlist\": \"\",\n - \ \"metricAnnotationsAllowList\": \"\"\n }\n }\n }\n },\n \"identity\": - {\n \"type\": \"SystemAssigned\",\n \"principalId\":\"00000000-0000-0000-0000-000000000001\",\n - \ \"tenantId\": \"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a\"\n },\n \"sku\": - {\n \"name\": \"Base\",\n \"tier\": \"Free\"\n }\n }" + string: '' headers: + api-supported-versions: + - 2021-07-22-preview, 2023-03-01 + arr-disable-session-affinity: + - 'true' cache-control: - no-cache content-length: - - '4636' - content-type: - - application/json + - '0' date: - - Tue, 28 Mar 2023 22:10:06 GMT + - Tue, 09 May 2023 21:01:22 GMT expires: - '-1' pragma: - no-cache server: - - nginx + - Microsoft-IIS/10.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-aspnet-version: + - 4.0.30319 x-content-type-options: - nosniff + x-ms-ratelimit-remaining-subscription-deletes: + - '14998' + x-powered-by: + - ASP.NET status: code: 200 message: OK - request: - body: '{"location": "westus2", "properties": {}}' + body: null headers: Accept: - '*/*' @@ -3476,42 +4056,44 @@ interactions: Connection: - keep-alive Content-Length: - - '41' - Content-Type: - - application/json + - '0' ParameterSetName: - --resource-group --name --yes --output --disable-azuremonitormetrics User-Agent: - - python/3.10.10 (Linux-5.15.0-1034-azure-x86_64-with-glibc2.31) AZURECLI/2.46.0 - VSTS_7b238909-6802-4b65-b90d-184bca47f458_build_261_0 azuremonitormetrics.delete_dcra + - python/3.8.10 (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) AZURECLI/2.48.1 + azuremonitormetrics.delete_rule.KubernetesRecordingRulesRuleGroup-cliakstestq6vea method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/providers/Microsoft.Insights/dataCollectionRuleAssociations/MSProm-WUS2-cliakstest000002?api-version=2021-09-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.AlertsManagement/prometheusRuleGroups/KubernetesRecordingRulesRuleGroup-cliakstest000002?api-version=2023-03-01 response: body: string: '' headers: api-supported-versions: - - 2019-11-01-preview, 2021-04-01, 2021-09-01-preview, 2022-06-01 + - 2021-07-22-preview, 2023-03-01 + arr-disable-session-affinity: + - 'true' cache-control: - no-cache content-length: - '0' date: - - Tue, 28 Mar 2023 22:10:07 GMT + - Tue, 09 May 2023 21:01:25 GMT expires: - '-1' pragma: - no-cache - request-context: - - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3 server: - - Microsoft-HTTPAPI/2.0 + - Microsoft-IIS/10.0 strict-transport-security: - max-age=31536000; includeSubDomains + x-aspnet-version: + - 4.0.30319 x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-deletes: - '14999' + x-powered-by: + - ASP.NET status: code: 200 message: OK @@ -3531,10 +4113,10 @@ interactions: ParameterSetName: - --resource-group --name --yes --output --disable-azuremonitormetrics User-Agent: - - python/3.10.10 (Linux-5.15.0-1034-azure-x86_64-with-glibc2.31) AZURECLI/2.46.0 - VSTS_7b238909-6802-4b65-b90d-184bca47f458_build_261_0 azuremonitormetrics.delete_rules_node + - python/3.8.10 (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) AZURECLI/2.48.1 + azuremonitormetrics.delete_rule.NodeRecordingRulesRuleGroup-Win-cliakstestq6vea method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.AlertsManagement/prometheusRuleGroups/NodeRecordingRulesRuleGroup-cliakstest000002?api-version=2021-07-22-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.AlertsManagement/prometheusRuleGroups/NodeRecordingRulesRuleGroup-Win-cliakstest000002?api-version=2023-03-01 response: body: string: '' @@ -3548,7 +4130,7 @@ interactions: content-length: - '0' date: - - Tue, 28 Mar 2023 22:10:08 GMT + - Tue, 09 May 2023 21:01:27 GMT expires: - '-1' pragma: @@ -3584,10 +4166,10 @@ interactions: ParameterSetName: - --resource-group --name --yes --output --disable-azuremonitormetrics User-Agent: - - python/3.10.10 (Linux-5.15.0-1034-azure-x86_64-with-glibc2.31) AZURECLI/2.46.0 - VSTS_7b238909-6802-4b65-b90d-184bca47f458_build_261_0 azuremonitormetrics.delete_rules_kubernetes + - python/3.8.10 (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) AZURECLI/2.48.1 + azuremonitormetrics.delete_rule.NodeAndKubernetesRecordingRulesRuleGroup-Win-cliakstestq6vea method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.AlertsManagement/prometheusRuleGroups/KubernetesRecordingRulesRuleGroup-cliakstest000002?api-version=2021-07-22-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.AlertsManagement/prometheusRuleGroups/NodeAndKubernetesRecordingRulesRuleGroup-Win-cliakstest000002?api-version=2023-03-01 response: body: string: '' @@ -3601,7 +4183,7 @@ interactions: content-length: - '0' date: - - Tue, 28 Mar 2023 22:10:11 GMT + - Tue, 09 May 2023 21:01:28 GMT expires: - '-1' pragma: @@ -3623,23 +4205,23 @@ interactions: message: OK - request: body: '{"location": "westus2", "sku": {"name": "Base", "tier": "Free"}, "identity": - {"type": "SystemAssigned"}, "properties": {"kubernetesVersion": "1.24.9", "dnsPrefix": - "cliakstest-clitest000001-0b1f64", "agentPoolProfiles": [{"count": 3, "vmSize": + {"type": "SystemAssigned"}, "properties": {"kubernetesVersion": "1.25.6", "dnsPrefix": + "cliakstest-clitest000001-79a739", "agentPoolProfiles": [{"count": 3, "vmSize": "standard_d2s_v3", "osDiskSizeGB": 128, "osDiskType": "Managed", "kubeletDiskType": "OS", "workloadRuntime": "OCIContainer", "maxPods": 110, "osType": "Linux", "osSKU": "Ubuntu", "enableAutoScaling": false, "type": "VirtualMachineScaleSets", - "mode": "System", "orchestratorVersion": "1.24.9", "upgradeSettings": {}, "powerState": + "mode": "System", "orchestratorVersion": "1.25.6", "upgradeSettings": {}, "powerState": {"code": "Running"}, "enableNodePublicIP": false, "enableCustomCATrust": false, "enableEncryptionAtHost": false, "enableUltraSSD": false, "enableFIPS": false, "networkProfile": {}, "name": "nodepool1"}], "linuxProfile": {"adminUsername": - "azureuser", "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCbIg1guRHbI0lV11wWDt1r2cUdcNd27CJsg+SfgC7miZeubtwUhbsPdhMQsfDyhOWHq1+ZL0M+nJZV63d/1dhmhtgyOqejUwrPlzKhydsbrsdUor+JmNJDdW01v7BXHyuymT8G4s09jCasNOwiufbP/qp72ruu0bIA1nySsvlf9pCQAuFkAnVnf/rFhUlOkhtRpwcq8SUNY2zRHR/EKb/4NWY1JzR4sa3q2fWIJdrrX0DvLoa5g9bIEd4Df79ba7v+yiUBOS0zT2ll+z4g9izHK3EO5d8hL4jYxcjKs+wcslSYRWrascfscLgMlMGh0CdKeNTDjHpGPncaf3Z+FwwwjWeuiNBxv7bJo13/8B/098KlVDl4GZqsoBCEjPyJfV6hO0y/LkRGkk7oHWKgeWAfKtfLItRp00eZ4fcJNK9kCaSMmEugoZWcI7NGbZXzqFWqbpRI7NcDP9+WIQ+i9U5vqWsqd/zng4kbuAJ6UuKqIzB0upYrLShfQE3SAck8oaLhJqqq56VfDuASNpJKidV+zq27HfSBmbXnkR/5AK337dc3MXKJypoK/QPMLKUAP5XLPbs+NddJQV7EZXd29DLgp+fRIg3edpKdO7ZErWhv7d+3Kws+e1Y+ypmR2WIVSwVyBEUfgv2C8Ts9gnTF4pNcEY/S2aBicz5Ew2+jdyGNQQ== - test@example.com\n"}]}}, "servicePrincipalProfile": {"clientId":"00000000-0000-0000-0000-000000000001"}, + "azureuser", "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCvSmDv2/j+2YOKt8Upeh5kRqWfa6Ruqyux98ejQPu6RssXtqmdYZTCMo0U0klQpXFIJI3ASBtFvMX3lBtqKLbjehzIirpjkesUCQvEEgKOd6iGp9ORvMr8FCn0RZr1Idw1dp7KmsCcxbMVPc5YGyvkrBtWl0BI0W/gVQxQ3+iF+NBrwuYAeLVnjmxp6moiCElvxm9ehp00Sr+7hpjPjzLi7qpDN2FITOggiXhrvXWJI/2cqfcPTvDXDQH+e6+avyApRPa/OvkCM7Jm/gXdUzes0xm1Y6aI61hzc8m9K1QjqleMeHPDTUYLCb8cCEnn70itMEkfuqwp6yftFWxCcylR + azcli_aks_live_test@example.com\n"}]}}, "servicePrincipalProfile": {"clientId":"00000000-0000-0000-0000-000000000001"}, "oidcIssuerProfile": {"enabled": false}, "nodeResourceGroup": "MC_clitest000001_cliakstest000002_westus2", "enableRBAC": true, "enablePodSecurityPolicy": false, "networkProfile": {"networkPlugin": "kubenet", "podCidr": "10.244.0.0/16", "serviceCidr": "10.0.0.0/16", "dnsServiceIP": "10.0.0.10", "dockerBridgeCidr": "172.17.0.1/16", "outboundType": "loadBalancer", "loadBalancerSku": "Standard", "loadBalancerProfile": {"managedOutboundIPs": - {"count": 1, "countIPv6": 0}, "effectiveOutboundIPs": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.Network/publicIPAddresses/fe26dda4-904a-4ef2-a02a-c1710956f8a4"}], + {"count": 1, "countIPv6": 0}, "effectiveOutboundIPs": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.Network/publicIPAddresses/73659bc3-b205-4e4a-a308-90499313bb61"}], "backendPoolType": "nodeIPConfiguration"}, "podCidrs": ["10.244.0.0/16"], "serviceCidrs": ["10.0.0.0/16"], "ipFamilies": ["IPv4"]}, "identityProfile": {"kubeletidentity": {"resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cliakstest000002-agentpool", @@ -3657,14 +4239,14 @@ interactions: Connection: - keep-alive Content-Length: - - '3044' + - '2715' Content-Type: - application/json ParameterSetName: - --resource-group --name --yes --output --disable-azuremonitormetrics User-Agent: - - AZURECLI/2.46.0 azsdk-python-azure-mgmt-containerservice/21.2.0b Python/3.10.10 - (Linux-5.15.0-1034-azure-x86_64-with-glibc2.31) VSTS_7b238909-6802-4b65-b90d-184bca47f458_build_261_0 + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/22.0.0b Python/3.8.10 + (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2023-03-02-preview response: @@ -3673,30 +4255,31 @@ interactions: \ \"location\": \"westus2\",\n \"name\": \"cliakstest000002\",\n \"type\": \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": \"Updating\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": - \"1.24.9\",\n \"currentKubernetesVersion\": \"1.24.9\",\n \"dnsPrefix\": - \"cliakstest-clitest000001-0b1f64\",\n \"fqdn\": \"cliakstest-clitest000001-0b1f64-amkkzkou.hcp.westus2.azmk8s.io\",\n - \ \"azurePortalFQDN\": \"cliakstest-clitest000001-0b1f64-amkkzkou.portal.hcp.westus2.azmk8s.io\",\n + \"1.25.6\",\n \"currentKubernetesVersion\": \"1.25.6\",\n \"dnsPrefix\": + \"cliakstest-clitest000001-79a739\",\n \"fqdn\": \"cliakstest-clitest000001-79a739-iqxcydbj.hcp.westus2.azmk8s.io\",\n + \ \"azurePortalFQDN\": \"cliakstest-clitest000001-79a739-iqxcydbj.portal.hcp.westus2.azmk8s.io\",\n \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": 3,\n \"vmSize\": \"standard_d2s_v3\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": \"Managed\",\n \"kubeletDiskType\": \"OS\",\n \"workloadRuntime\": \"OCIContainer\",\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n \ \"enableAutoScaling\": false,\n \"provisioningState\": \"Updating\",\n \ \"powerState\": {\n \"code\": \"Running\"\n },\n \"orchestratorVersion\": - \"1.24.9\",\n \"currentOrchestratorVersion\": \"1.24.9\",\n \"enableNodePublicIP\": + \"1.25.6\",\n \"currentOrchestratorVersion\": \"1.25.6\",\n \"enableNodePublicIP\": false,\n \"enableCustomCATrust\": false,\n \"mode\": \"System\",\n \ \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\": false,\n \ \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"nodeImageVersion\": - \"AKSUbuntu-1804gen2containerd-202303.06.0\",\n \"upgradeSettings\": {},\n + \"AKSUbuntu-2204gen2containerd-202304.20.0\",\n \"upgradeSettings\": {},\n \ \"enableFIPS\": false,\n \"networkProfile\": {}\n }\n ],\n \"linuxProfile\": {\n \"adminUsername\": \"azureuser\",\n \"ssh\": {\n \"publicKeys\": - [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCbIg1guRHbI0lV11wWDt1r2cUdcNd27CJsg+SfgC7miZeubtwUhbsPdhMQsfDyhOWHq1+ZL0M+nJZV63d/1dhmhtgyOqejUwrPlzKhydsbrsdUor+JmNJDdW01v7BXHyuymT8G4s09jCasNOwiufbP/qp72ruu0bIA1nySsvlf9pCQAuFkAnVnf/rFhUlOkhtRpwcq8SUNY2zRHR/EKb/4NWY1JzR4sa3q2fWIJdrrX0DvLoa5g9bIEd4Df79ba7v+yiUBOS0zT2ll+z4g9izHK3EO5d8hL4jYxcjKs+wcslSYRWrascfscLgMlMGh0CdKeNTDjHpGPncaf3Z+FwwwjWeuiNBxv7bJo13/8B/098KlVDl4GZqsoBCEjPyJfV6hO0y/LkRGkk7oHWKgeWAfKtfLItRp00eZ4fcJNK9kCaSMmEugoZWcI7NGbZXzqFWqbpRI7NcDP9+WIQ+i9U5vqWsqd/zng4kbuAJ6UuKqIzB0upYrLShfQE3SAck8oaLhJqqq56VfDuASNpJKidV+zq27HfSBmbXnkR/5AK337dc3MXKJypoK/QPMLKUAP5XLPbs+NddJQV7EZXd29DLgp+fRIg3edpKdO7ZErWhv7d+3Kws+e1Y+ypmR2WIVSwVyBEUfgv2C8Ts9gnTF4pNcEY/S2aBicz5Ew2+jdyGNQQ== - test@example.com\\n\"\n }\n ]\n }\n },\n \"servicePrincipalProfile\": + [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCvSmDv2/j+2YOKt8Upeh5kRqWfa6Ruqyux98ejQPu6RssXtqmdYZTCMo0U0klQpXFIJI3ASBtFvMX3lBtqKLbjehzIirpjkesUCQvEEgKOd6iGp9ORvMr8FCn0RZr1Idw1dp7KmsCcxbMVPc5YGyvkrBtWl0BI0W/gVQxQ3+iF+NBrwuYAeLVnjmxp6moiCElvxm9ehp00Sr+7hpjPjzLi7qpDN2FITOggiXhrvXWJI/2cqfcPTvDXDQH+e6+avyApRPa/OvkCM7Jm/gXdUzes0xm1Y6aI61hzc8m9K1QjqleMeHPDTUYLCb8cCEnn70itMEkfuqwp6yftFWxCcylR + azcli_aks_live_test@example.com\\n\"\n }\n ]\n }\n },\n \"servicePrincipalProfile\": {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \"nodeResourceGroup\": \"MC_clitest000001_cliakstest000002_westus2\",\n \"enableRBAC\": true,\n - \ \"enablePodSecurityPolicy\": false,\n \"networkProfile\": {\n \"networkPlugin\": - \"kubenet\",\n \"loadBalancerSku\": \"Standard\",\n \"loadBalancerProfile\": - {\n \"managedOutboundIPs\": {\n \"count\": 1\n },\n \"effectiveOutboundIPs\": - [\n {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.Network/publicIPAddresses/fe26dda4-904a-4ef2-a02a-c1710956f8a4\"\n + \ \"enablePodSecurityPolicy\": false,\n \"enableLTS\": \"KubernetesOfficial\",\n + \ \"networkProfile\": {\n \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\": + \"Standard\",\n \"loadBalancerProfile\": {\n \"managedOutboundIPs\": + {\n \"count\": 1\n },\n \"effectiveOutboundIPs\": [\n {\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.Network/publicIPAddresses/73659bc3-b205-4e4a-a308-90499313bb61\"\n \ }\n ],\n \"backendPoolType\": \"nodeIPConfiguration\"\n },\n \ \"podCidr\": \"10.244.0.0/16\",\n \"serviceCidr\": \"10.0.0.0/16\",\n \ \"dnsServiceIP\": \"10.0.0.10\",\n \"dockerBridgeCidr\": \"172.17.0.1/16\",\n @@ -3713,19 +4296,19 @@ interactions: {},\n \"azureMonitorProfile\": {\n \"metrics\": {\n \"enabled\": false\n }\n }\n },\n \"identity\": {\n \"type\": \"SystemAssigned\",\n \ \"principalId\":\"00000000-0000-0000-0000-000000000001\",\n \"tenantId\": - \"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a\"\n },\n \"sku\": {\n \"name\": + \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\n },\n \"sku\": {\n \"name\": \"Base\",\n \"tier\": \"Free\"\n }\n }" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/49249210-9174-40ab-8544-77f41495abbc?api-version=2016-03-30 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/d68c4eb5-f645-4b53-a037-6dc39234f539?api-version=2016-03-30 cache-control: - no-cache content-length: - - '4526' + - '4235' content-type: - application/json date: - - Tue, 28 Mar 2023 22:10:17 GMT + - Tue, 09 May 2023 21:01:33 GMT expires: - '-1' pragma: @@ -3741,7 +4324,103 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1197' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --yes --output --disable-azuremonitormetrics + User-Agent: + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/22.0.0b Python/3.8.10 + (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/d68c4eb5-f645-4b53-a037-6dc39234f539?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"b54e8cd6-45f6-534b-a037-6dc39234f539\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-05-09T21:01:33.3795756Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 09 May 2023 21:01:34 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --yes --output --disable-azuremonitormetrics + User-Agent: + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/22.0.0b Python/3.8.10 + (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/d68c4eb5-f645-4b53-a037-6dc39234f539?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"b54e8cd6-45f6-534b-a037-6dc39234f539\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-05-09T21:01:33.3795756Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 09 May 2023 21:02:04 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff status: code: 200 message: OK @@ -3759,14 +4438,14 @@ interactions: ParameterSetName: - --resource-group --name --yes --output --disable-azuremonitormetrics User-Agent: - - AZURECLI/2.46.0 azsdk-python-azure-mgmt-containerservice/21.2.0b Python/3.10.10 - (Linux-5.15.0-1034-azure-x86_64-with-glibc2.31) VSTS_7b238909-6802-4b65-b90d-184bca47f458_build_261_0 + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/22.0.0b Python/3.8.10 + (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/49249210-9174-40ab-8544-77f41495abbc?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/d68c4eb5-f645-4b53-a037-6dc39234f539?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"10922449-7491-ab40-8544-77f41495abbc\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2023-03-28T22:10:16.4930109Z\"\n }" + string: "{\n \"name\": \"b54e8cd6-45f6-534b-a037-6dc39234f539\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-05-09T21:01:33.3795756Z\"\n }" headers: cache-control: - no-cache @@ -3775,7 +4454,7 @@ interactions: content-type: - application/json date: - - Tue, 28 Mar 2023 22:10:47 GMT + - Tue, 09 May 2023 21:02:34 GMT expires: - '-1' pragma: @@ -3807,14 +4486,14 @@ interactions: ParameterSetName: - --resource-group --name --yes --output --disable-azuremonitormetrics User-Agent: - - AZURECLI/2.46.0 azsdk-python-azure-mgmt-containerservice/21.2.0b Python/3.10.10 - (Linux-5.15.0-1034-azure-x86_64-with-glibc2.31) VSTS_7b238909-6802-4b65-b90d-184bca47f458_build_261_0 + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/22.0.0b Python/3.8.10 + (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/49249210-9174-40ab-8544-77f41495abbc?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/d68c4eb5-f645-4b53-a037-6dc39234f539?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"10922449-7491-ab40-8544-77f41495abbc\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2023-03-28T22:10:16.4930109Z\"\n }" + string: "{\n \"name\": \"b54e8cd6-45f6-534b-a037-6dc39234f539\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-05-09T21:01:33.3795756Z\"\n }" headers: cache-control: - no-cache @@ -3823,7 +4502,7 @@ interactions: content-type: - application/json date: - - Tue, 28 Mar 2023 22:11:17 GMT + - Tue, 09 May 2023 21:03:04 GMT expires: - '-1' pragma: @@ -3855,15 +4534,15 @@ interactions: ParameterSetName: - --resource-group --name --yes --output --disable-azuremonitormetrics User-Agent: - - AZURECLI/2.46.0 azsdk-python-azure-mgmt-containerservice/21.2.0b Python/3.10.10 - (Linux-5.15.0-1034-azure-x86_64-with-glibc2.31) VSTS_7b238909-6802-4b65-b90d-184bca47f458_build_261_0 + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/22.0.0b Python/3.8.10 + (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/49249210-9174-40ab-8544-77f41495abbc?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/d68c4eb5-f645-4b53-a037-6dc39234f539?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"10922449-7491-ab40-8544-77f41495abbc\",\n \"status\": - \"Succeeded\",\n \"startTime\": \"2023-03-28T22:10:16.4930109Z\",\n \"endTime\": - \"2023-03-28T22:11:45.8324911Z\"\n }" + string: "{\n \"name\": \"b54e8cd6-45f6-534b-a037-6dc39234f539\",\n \"status\": + \"Succeeded\",\n \"startTime\": \"2023-05-09T21:01:33.3795756Z\",\n \"endTime\": + \"2023-05-09T21:03:14.4643131Z\"\n }" headers: cache-control: - no-cache @@ -3872,7 +4551,7 @@ interactions: content-type: - application/json date: - - Tue, 28 Mar 2023 22:11:47 GMT + - Tue, 09 May 2023 21:03:34 GMT expires: - '-1' pragma: @@ -3904,8 +4583,8 @@ interactions: ParameterSetName: - --resource-group --name --yes --output --disable-azuremonitormetrics User-Agent: - - AZURECLI/2.46.0 azsdk-python-azure-mgmt-containerservice/21.2.0b Python/3.10.10 - (Linux-5.15.0-1034-azure-x86_64-with-glibc2.31) VSTS_7b238909-6802-4b65-b90d-184bca47f458_build_261_0 + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/22.0.0b Python/3.8.10 + (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2023-03-02-preview response: @@ -3914,30 +4593,31 @@ interactions: \ \"location\": \"westus2\",\n \"name\": \"cliakstest000002\",\n \"type\": \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": \"Succeeded\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": - \"1.24.9\",\n \"currentKubernetesVersion\": \"1.24.9\",\n \"dnsPrefix\": - \"cliakstest-clitest000001-0b1f64\",\n \"fqdn\": \"cliakstest-clitest000001-0b1f64-amkkzkou.hcp.westus2.azmk8s.io\",\n - \ \"azurePortalFQDN\": \"cliakstest-clitest000001-0b1f64-amkkzkou.portal.hcp.westus2.azmk8s.io\",\n + \"1.25.6\",\n \"currentKubernetesVersion\": \"1.25.6\",\n \"dnsPrefix\": + \"cliakstest-clitest000001-79a739\",\n \"fqdn\": \"cliakstest-clitest000001-79a739-iqxcydbj.hcp.westus2.azmk8s.io\",\n + \ \"azurePortalFQDN\": \"cliakstest-clitest000001-79a739-iqxcydbj.portal.hcp.westus2.azmk8s.io\",\n \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": 3,\n \"vmSize\": \"standard_d2s_v3\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": \"Managed\",\n \"kubeletDiskType\": \"OS\",\n \"workloadRuntime\": \"OCIContainer\",\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n \ \"enableAutoScaling\": false,\n \"provisioningState\": \"Succeeded\",\n \ \"powerState\": {\n \"code\": \"Running\"\n },\n \"orchestratorVersion\": - \"1.24.9\",\n \"currentOrchestratorVersion\": \"1.24.9\",\n \"enableNodePublicIP\": + \"1.25.6\",\n \"currentOrchestratorVersion\": \"1.25.6\",\n \"enableNodePublicIP\": false,\n \"enableCustomCATrust\": false,\n \"mode\": \"System\",\n \ \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\": false,\n \ \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"nodeImageVersion\": - \"AKSUbuntu-1804gen2containerd-202303.06.0\",\n \"upgradeSettings\": {},\n + \"AKSUbuntu-2204gen2containerd-202304.20.0\",\n \"upgradeSettings\": {},\n \ \"enableFIPS\": false,\n \"networkProfile\": {}\n }\n ],\n \"linuxProfile\": {\n \"adminUsername\": \"azureuser\",\n \"ssh\": {\n \"publicKeys\": - [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCbIg1guRHbI0lV11wWDt1r2cUdcNd27CJsg+SfgC7miZeubtwUhbsPdhMQsfDyhOWHq1+ZL0M+nJZV63d/1dhmhtgyOqejUwrPlzKhydsbrsdUor+JmNJDdW01v7BXHyuymT8G4s09jCasNOwiufbP/qp72ruu0bIA1nySsvlf9pCQAuFkAnVnf/rFhUlOkhtRpwcq8SUNY2zRHR/EKb/4NWY1JzR4sa3q2fWIJdrrX0DvLoa5g9bIEd4Df79ba7v+yiUBOS0zT2ll+z4g9izHK3EO5d8hL4jYxcjKs+wcslSYRWrascfscLgMlMGh0CdKeNTDjHpGPncaf3Z+FwwwjWeuiNBxv7bJo13/8B/098KlVDl4GZqsoBCEjPyJfV6hO0y/LkRGkk7oHWKgeWAfKtfLItRp00eZ4fcJNK9kCaSMmEugoZWcI7NGbZXzqFWqbpRI7NcDP9+WIQ+i9U5vqWsqd/zng4kbuAJ6UuKqIzB0upYrLShfQE3SAck8oaLhJqqq56VfDuASNpJKidV+zq27HfSBmbXnkR/5AK337dc3MXKJypoK/QPMLKUAP5XLPbs+NddJQV7EZXd29DLgp+fRIg3edpKdO7ZErWhv7d+3Kws+e1Y+ypmR2WIVSwVyBEUfgv2C8Ts9gnTF4pNcEY/S2aBicz5Ew2+jdyGNQQ== - test@example.com\\n\"\n }\n ]\n }\n },\n \"servicePrincipalProfile\": + [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCvSmDv2/j+2YOKt8Upeh5kRqWfa6Ruqyux98ejQPu6RssXtqmdYZTCMo0U0klQpXFIJI3ASBtFvMX3lBtqKLbjehzIirpjkesUCQvEEgKOd6iGp9ORvMr8FCn0RZr1Idw1dp7KmsCcxbMVPc5YGyvkrBtWl0BI0W/gVQxQ3+iF+NBrwuYAeLVnjmxp6moiCElvxm9ehp00Sr+7hpjPjzLi7qpDN2FITOggiXhrvXWJI/2cqfcPTvDXDQH+e6+avyApRPa/OvkCM7Jm/gXdUzes0xm1Y6aI61hzc8m9K1QjqleMeHPDTUYLCb8cCEnn70itMEkfuqwp6yftFWxCcylR + azcli_aks_live_test@example.com\\n\"\n }\n ]\n }\n },\n \"servicePrincipalProfile\": {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \"nodeResourceGroup\": \"MC_clitest000001_cliakstest000002_westus2\",\n \"enableRBAC\": true,\n - \ \"enablePodSecurityPolicy\": false,\n \"networkProfile\": {\n \"networkPlugin\": - \"kubenet\",\n \"loadBalancerSku\": \"Standard\",\n \"loadBalancerProfile\": - {\n \"managedOutboundIPs\": {\n \"count\": 1\n },\n \"effectiveOutboundIPs\": - [\n {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.Network/publicIPAddresses/fe26dda4-904a-4ef2-a02a-c1710956f8a4\"\n + \ \"enablePodSecurityPolicy\": false,\n \"enableLTS\": \"KubernetesOfficial\",\n + \ \"networkProfile\": {\n \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\": + \"Standard\",\n \"loadBalancerProfile\": {\n \"managedOutboundIPs\": + {\n \"count\": 1\n },\n \"effectiveOutboundIPs\": [\n {\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.Network/publicIPAddresses/73659bc3-b205-4e4a-a308-90499313bb61\"\n \ }\n ],\n \"backendPoolType\": \"nodeIPConfiguration\"\n },\n \ \"podCidr\": \"10.244.0.0/16\",\n \"serviceCidr\": \"10.0.0.0/16\",\n \ \"dnsServiceIP\": \"10.0.0.10\",\n \"dockerBridgeCidr\": \"172.17.0.1/16\",\n @@ -3954,17 +4634,17 @@ interactions: {},\n \"azureMonitorProfile\": {\n \"metrics\": {\n \"enabled\": false\n }\n }\n },\n \"identity\": {\n \"type\": \"SystemAssigned\",\n \ \"principalId\":\"00000000-0000-0000-0000-000000000001\",\n \"tenantId\": - \"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a\"\n },\n \"sku\": {\n \"name\": + \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\n },\n \"sku\": {\n \"name\": \"Base\",\n \"tier\": \"Free\"\n }\n }" headers: cache-control: - no-cache content-length: - - '4528' + - '4237' content-type: - application/json date: - - Tue, 28 Mar 2023 22:11:48 GMT + - Tue, 09 May 2023 21:03:35 GMT expires: - '-1' pragma: @@ -3998,8 +4678,8 @@ interactions: ParameterSetName: - --resource-group --name --yes --no-wait User-Agent: - - AZURECLI/2.46.0 azsdk-python-azure-mgmt-containerservice/21.2.0b Python/3.10.10 - (Linux-5.15.0-1034-azure-x86_64-with-glibc2.31) VSTS_7b238909-6802-4b65-b90d-184bca47f458_build_261_0 + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/22.0.0b Python/3.8.10 + (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2023-03-02-preview response: @@ -4007,17 +4687,17 @@ interactions: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/e23ba9b9-9050-4447-84c7-5d0c19904fa7?api-version=2016-03-30 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/64af0fc2-151a-4740-9dfb-17bbe66bc550?api-version=2016-03-30 cache-control: - no-cache content-length: - '0' date: - - Tue, 28 Mar 2023 22:11:49 GMT + - Tue, 09 May 2023 21:03:37 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operationresults/e23ba9b9-9050-4447-84c7-5d0c19904fa7?api-version=2016-03-30 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operationresults/64af0fc2-151a-4740-9dfb-17bbe66bc550?api-version=2016-03-30 pragma: - no-cache server: @@ -4027,7 +4707,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-deletes: - - '14998' + - '14999' status: code: 202 message: Accepted From 674076f25871bbe97891a47ed9974048b37d28e8 Mon Sep 17 00:00:00 2001 From: Kaveesh Dubey Date: Tue, 9 May 2023 14:31:10 -0700 Subject: [PATCH 13/27] output wasn't json --- .../azext_aks_preview/tests/latest/test_aks_commands.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/aks-preview/azext_aks_preview/tests/latest/test_aks_commands.py b/src/aks-preview/azext_aks_preview/tests/latest/test_aks_commands.py index 610f4e0d8d2..4e78908dbe4 100644 --- a/src/aks-preview/azext_aks_preview/tests/latest/test_aks_commands.py +++ b/src/aks-preview/azext_aks_preview/tests/latest/test_aks_commands.py @@ -6382,11 +6382,8 @@ def test_aks_create_with_azuremonitormetrics(self, resource_group, resource_grou 'node_vm_size': node_vm_size }) - create_cmd = ' '.join([ - 'aks', 'create', '--resource-group={resource_group}', '--name={name}', '--location={location}', - '--enable-managed-identity', '--enable-azuremonitormetrics --enable-windows-recording-rules', - '--ssh-key-value={ssh_key_value} --node-vm-size={node_vm_size}', - ]) + create_cmd = 'aks create --resource-group={resource_group} --name={name} --location={location} --ssh-key-value={ssh_key_value} --node-vm-size={node_vm_size} ' \ + '--enable-managed-identity --enable-azuremonitormetrics --enable-windows-recording-rules --output=json' self.cmd(create_cmd, checks=[ self.check('provisioningState', 'Succeeded'), ]) @@ -6403,7 +6400,7 @@ def test_aks_create_with_azuremonitormetrics(self, resource_group, resource_grou self.is_empty(), ]) - self.cmd('aks show -g {resource_group} -n {name}', checks=[ + self.cmd('aks show -g {resource_group} -n {name} --output=json', checks=[ self.check('provisioningState', 'Succeeded'), self.check('azureMonitorProfile.metrics.enabled', True), ]) From 98000bc5df287f6170142b7c18d84d57e851f6bf Mon Sep 17 00:00:00 2001 From: Kaveesh Dubey Date: Tue, 9 May 2023 15:05:48 -0700 Subject: [PATCH 14/27] . --- ...t_aks_create_with_azuremonitormetrics.yaml | 645 ++++++++++-------- 1 file changed, 372 insertions(+), 273 deletions(-) diff --git a/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_with_azuremonitormetrics.yaml b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_with_azuremonitormetrics.yaml index c88f94e3e83..fcdb635d381 100644 --- a/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_with_azuremonitormetrics.yaml +++ b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_with_azuremonitormetrics.yaml @@ -11,8 +11,8 @@ interactions: Connection: - keep-alive ParameterSetName: - - --resource-group --name --location --enable-managed-identity --enable-azuremonitormetrics - --enable-windows-recording-rules --ssh-key-value --node-vm-size + - --resource-group --name --location --ssh-key-value --node-vm-size --enable-managed-identity + --enable-azuremonitormetrics --enable-windows-recording-rules --output User-Agent: - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/22.0.0b Python/3.8.10 (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) @@ -31,7 +31,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 09 May 2023 19:19:41 GMT + - Tue, 09 May 2023 21:41:43 GMT expires: - '-1' pragma: @@ -47,7 +47,7 @@ interactions: message: Not Found - request: body: '{"location": "westus2", "identity": {"type": "SystemAssigned"}, "properties": - {"kubernetesVersion": "", "dnsPrefix": "cliakstest-clitestmfq3ejeu5-79a739", + {"kubernetesVersion": "", "dnsPrefix": "cliakstest-clitestseoizsap2-79a739", "agentPoolProfiles": [{"count": 3, "vmSize": "standard_d2s_v3", "osDiskSizeGB": 0, "workloadRuntime": "OCIContainer", "osType": "Linux", "enableAutoScaling": false, "type": "VirtualMachineScaleSets", "mode": "System", "orchestratorVersion": @@ -55,7 +55,7 @@ interactions: false, "scaleSetPriority": "Regular", "scaleSetEvictionPolicy": "Delete", "spotMaxPrice": -1.0, "nodeTaints": [], "enableEncryptionAtHost": false, "enableUltraSSD": false, "enableFIPS": false, "networkProfile": {}, "name": "nodepool1"}], "linuxProfile": - {"adminUsername": "azureuser", "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDefbF/frwrKTFwsnDpZDXLe23htkKgEB5U4e75sYVRKpw2XdlRBHqPElvgHbNc8LRvlna+n7/7ZghqpTmRy9Lv/MLA8m2/FhxmUKvDvo7hB+2E3HofW5nhILP01H1LnlmbxpGP/hMjm92g758m2eqc4GIhQmlDYB4gcteJDi5avWGLbxINmAXahyRwDy06wcS6rtS6ODDBcmNkP+yGUmT+BR4yxPV4ysooJpvegb8vBQS9cHre/9kB1VsEjy+uBmQqrktRnaSsWOpdd9G7urd7K66BKLyj7UxBkbXbZPnRyiNweaEdzueMd5PSxUyQPXpkNwwHWC19MfonR7DP+2F3 + {"adminUsername": "azureuser", "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC/BDSUJ8cOCQbYSYIvKVgl1kB77S+6EBfuYie1VtR0dmxrD5ej+l20VOlwE8qK8Bmzi+fHWNVbVCOQvUjmka7+a8BeWgvCSOPx7iM3qVbRV3tWs5YjGE+zZZ5Swp6IqvAMSF2kv6YVchDTLrRjPxVWVzybvem2RGD0MSokB9I86p3oh8aisvL2AWqimMvClPJ71OjRqvdn+ebpG5iLMY4POxXjIvMIy6eLCUn03FrPH8JBHbRUHD/SytA4/u//5D4KShEV6mTJgJXV2ouPPv9rSGyqYHPJVcfTvYuvVgw4dECb15h4uatDPapvHVqVr9E+eMy18/L+LjWRgoc2NkN9 azcli_aks_live_test@example.com\n"}]}}, "addonProfiles": {}, "enableRBAC": true, "enablePodSecurityPolicy": false, "networkProfile": {"networkPlugin": "kubenet", "podCidr": "10.244.0.0/16", "serviceCidr": "10.0.0.0/16", "dnsServiceIP": "10.0.0.10", @@ -77,8 +77,8 @@ interactions: Content-Type: - application/json ParameterSetName: - - --resource-group --name --location --enable-managed-identity --enable-azuremonitormetrics - --enable-windows-recording-rules --ssh-key-value --node-vm-size + - --resource-group --name --location --ssh-key-value --node-vm-size --enable-managed-identity + --enable-azuremonitormetrics --enable-windows-recording-rules --output User-Agent: - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/22.0.0b Python/3.8.10 (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) @@ -91,8 +91,8 @@ interactions: \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": \"Creating\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": \"1.25.6\",\n \"currentKubernetesVersion\": \"1.25.6\",\n \"dnsPrefix\": - \"cliakstest-clitestmfq3ejeu5-79a739\",\n \"fqdn\": \"cliakstest-clitestmfq3ejeu5-79a739-ajco4565.hcp.westus2.azmk8s.io\",\n - \ \"azurePortalFQDN\": \"cliakstest-clitestmfq3ejeu5-79a739-ajco4565.portal.hcp.westus2.azmk8s.io\",\n + \"cliakstest-clitestseoizsap2-79a739\",\n \"fqdn\": \"cliakstest-clitestseoizsap2-79a739-371v7pcg.hcp.westus2.azmk8s.io\",\n + \ \"azurePortalFQDN\": \"cliakstest-clitestseoizsap2-79a739-371v7pcg.portal.hcp.westus2.azmk8s.io\",\n \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": 3,\n \"vmSize\": \"standard_d2s_v3\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": \"Managed\",\n \"kubeletDiskType\": \"OS\",\n \"workloadRuntime\": @@ -106,7 +106,7 @@ interactions: \"AKSUbuntu-2204gen2containerd-202304.20.0\",\n \"upgradeSettings\": {},\n \ \"enableFIPS\": false,\n \"networkProfile\": {}\n }\n ],\n \"linuxProfile\": {\n \"adminUsername\": \"azureuser\",\n \"ssh\": {\n \"publicKeys\": - [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDefbF/frwrKTFwsnDpZDXLe23htkKgEB5U4e75sYVRKpw2XdlRBHqPElvgHbNc8LRvlna+n7/7ZghqpTmRy9Lv/MLA8m2/FhxmUKvDvo7hB+2E3HofW5nhILP01H1LnlmbxpGP/hMjm92g758m2eqc4GIhQmlDYB4gcteJDi5avWGLbxINmAXahyRwDy06wcS6rtS6ODDBcmNkP+yGUmT+BR4yxPV4ysooJpvegb8vBQS9cHre/9kB1VsEjy+uBmQqrktRnaSsWOpdd9G7urd7K66BKLyj7UxBkbXbZPnRyiNweaEdzueMd5PSxUyQPXpkNwwHWC19MfonR7DP+2F3 + [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC/BDSUJ8cOCQbYSYIvKVgl1kB77S+6EBfuYie1VtR0dmxrD5ej+l20VOlwE8qK8Bmzi+fHWNVbVCOQvUjmka7+a8BeWgvCSOPx7iM3qVbRV3tWs5YjGE+zZZ5Swp6IqvAMSF2kv6YVchDTLrRjPxVWVzybvem2RGD0MSokB9I86p3oh8aisvL2AWqimMvClPJ71OjRqvdn+ebpG5iLMY4POxXjIvMIy6eLCUn03FrPH8JBHbRUHD/SytA4/u//5D4KShEV6mTJgJXV2ouPPv9rSGyqYHPJVcfTvYuvVgw4dECb15h4uatDPapvHVqVr9E+eMy18/L+LjWRgoc2NkN9 azcli_aks_live_test@example.com\\n\"\n }\n ]\n }\n },\n \"servicePrincipalProfile\": {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \"nodeResourceGroup\": \"MC_clitest000001_cliakstest000001_westus2\",\n \"enableRBAC\": true,\n @@ -132,7 +132,7 @@ interactions: \"Base\",\n \"tier\": \"Free\"\n }\n }" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/98db728a-d423-4376-9d11-8eb6b1b0084b?api-version=2016-03-30 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/9452ab00-2cdd-44f0-99e0-0c087bd00358?api-version=2016-03-30 cache-control: - no-cache content-length: @@ -140,7 +140,7 @@ interactions: content-type: - application/json date: - - Tue, 09 May 2023 19:19:48 GMT + - Tue, 09 May 2023 21:41:48 GMT expires: - '-1' pragma: @@ -152,7 +152,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1197' status: code: 201 message: Created @@ -168,17 +168,17 @@ interactions: Connection: - keep-alive ParameterSetName: - - --resource-group --name --location --enable-managed-identity --enable-azuremonitormetrics - --enable-windows-recording-rules --ssh-key-value --node-vm-size + - --resource-group --name --location --ssh-key-value --node-vm-size --enable-managed-identity + --enable-azuremonitormetrics --enable-windows-recording-rules --output User-Agent: - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/22.0.0b Python/3.8.10 (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/98db728a-d423-4376-9d11-8eb6b1b0084b?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/9452ab00-2cdd-44f0-99e0-0c087bd00358?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"8a72db98-23d4-7643-9d11-8eb6b1b0084b\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2023-05-09T19:19:47.9536223Z\"\n }" + string: "{\n \"name\": \"00ab5294-dd2c-f044-99e0-0c087bd00358\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-05-09T21:41:48.5775143Z\"\n }" headers: cache-control: - no-cache @@ -187,7 +187,7 @@ interactions: content-type: - application/json date: - - Tue, 09 May 2023 19:19:48 GMT + - Tue, 09 May 2023 21:41:48 GMT expires: - '-1' pragma: @@ -217,17 +217,17 @@ interactions: Connection: - keep-alive ParameterSetName: - - --resource-group --name --location --enable-managed-identity --enable-azuremonitormetrics - --enable-windows-recording-rules --ssh-key-value --node-vm-size + - --resource-group --name --location --ssh-key-value --node-vm-size --enable-managed-identity + --enable-azuremonitormetrics --enable-windows-recording-rules --output User-Agent: - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/22.0.0b Python/3.8.10 (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/98db728a-d423-4376-9d11-8eb6b1b0084b?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/9452ab00-2cdd-44f0-99e0-0c087bd00358?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"8a72db98-23d4-7643-9d11-8eb6b1b0084b\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2023-05-09T19:19:47.9536223Z\"\n }" + string: "{\n \"name\": \"00ab5294-dd2c-f044-99e0-0c087bd00358\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-05-09T21:41:48.5775143Z\"\n }" headers: cache-control: - no-cache @@ -236,7 +236,7 @@ interactions: content-type: - application/json date: - - Tue, 09 May 2023 19:20:18 GMT + - Tue, 09 May 2023 21:42:18 GMT expires: - '-1' pragma: @@ -266,17 +266,17 @@ interactions: Connection: - keep-alive ParameterSetName: - - --resource-group --name --location --enable-managed-identity --enable-azuremonitormetrics - --enable-windows-recording-rules --ssh-key-value --node-vm-size + - --resource-group --name --location --ssh-key-value --node-vm-size --enable-managed-identity + --enable-azuremonitormetrics --enable-windows-recording-rules --output User-Agent: - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/22.0.0b Python/3.8.10 (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/98db728a-d423-4376-9d11-8eb6b1b0084b?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/9452ab00-2cdd-44f0-99e0-0c087bd00358?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"8a72db98-23d4-7643-9d11-8eb6b1b0084b\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2023-05-09T19:19:47.9536223Z\"\n }" + string: "{\n \"name\": \"00ab5294-dd2c-f044-99e0-0c087bd00358\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-05-09T21:41:48.5775143Z\"\n }" headers: cache-control: - no-cache @@ -285,7 +285,7 @@ interactions: content-type: - application/json date: - - Tue, 09 May 2023 19:20:48 GMT + - Tue, 09 May 2023 21:42:48 GMT expires: - '-1' pragma: @@ -315,17 +315,17 @@ interactions: Connection: - keep-alive ParameterSetName: - - --resource-group --name --location --enable-managed-identity --enable-azuremonitormetrics - --enable-windows-recording-rules --ssh-key-value --node-vm-size + - --resource-group --name --location --ssh-key-value --node-vm-size --enable-managed-identity + --enable-azuremonitormetrics --enable-windows-recording-rules --output User-Agent: - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/22.0.0b Python/3.8.10 (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/98db728a-d423-4376-9d11-8eb6b1b0084b?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/9452ab00-2cdd-44f0-99e0-0c087bd00358?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"8a72db98-23d4-7643-9d11-8eb6b1b0084b\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2023-05-09T19:19:47.9536223Z\"\n }" + string: "{\n \"name\": \"00ab5294-dd2c-f044-99e0-0c087bd00358\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-05-09T21:41:48.5775143Z\"\n }" headers: cache-control: - no-cache @@ -334,7 +334,7 @@ interactions: content-type: - application/json date: - - Tue, 09 May 2023 19:21:19 GMT + - Tue, 09 May 2023 21:43:18 GMT expires: - '-1' pragma: @@ -364,17 +364,17 @@ interactions: Connection: - keep-alive ParameterSetName: - - --resource-group --name --location --enable-managed-identity --enable-azuremonitormetrics - --enable-windows-recording-rules --ssh-key-value --node-vm-size + - --resource-group --name --location --ssh-key-value --node-vm-size --enable-managed-identity + --enable-azuremonitormetrics --enable-windows-recording-rules --output User-Agent: - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/22.0.0b Python/3.8.10 (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/98db728a-d423-4376-9d11-8eb6b1b0084b?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/9452ab00-2cdd-44f0-99e0-0c087bd00358?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"8a72db98-23d4-7643-9d11-8eb6b1b0084b\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2023-05-09T19:19:47.9536223Z\"\n }" + string: "{\n \"name\": \"00ab5294-dd2c-f044-99e0-0c087bd00358\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-05-09T21:41:48.5775143Z\"\n }" headers: cache-control: - no-cache @@ -383,7 +383,7 @@ interactions: content-type: - application/json date: - - Tue, 09 May 2023 19:21:49 GMT + - Tue, 09 May 2023 21:43:49 GMT expires: - '-1' pragma: @@ -413,17 +413,17 @@ interactions: Connection: - keep-alive ParameterSetName: - - --resource-group --name --location --enable-managed-identity --enable-azuremonitormetrics - --enable-windows-recording-rules --ssh-key-value --node-vm-size + - --resource-group --name --location --ssh-key-value --node-vm-size --enable-managed-identity + --enable-azuremonitormetrics --enable-windows-recording-rules --output User-Agent: - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/22.0.0b Python/3.8.10 (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/98db728a-d423-4376-9d11-8eb6b1b0084b?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/9452ab00-2cdd-44f0-99e0-0c087bd00358?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"8a72db98-23d4-7643-9d11-8eb6b1b0084b\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2023-05-09T19:19:47.9536223Z\"\n }" + string: "{\n \"name\": \"00ab5294-dd2c-f044-99e0-0c087bd00358\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-05-09T21:41:48.5775143Z\"\n }" headers: cache-control: - no-cache @@ -432,7 +432,7 @@ interactions: content-type: - application/json date: - - Tue, 09 May 2023 19:22:19 GMT + - Tue, 09 May 2023 21:44:19 GMT expires: - '-1' pragma: @@ -462,17 +462,17 @@ interactions: Connection: - keep-alive ParameterSetName: - - --resource-group --name --location --enable-managed-identity --enable-azuremonitormetrics - --enable-windows-recording-rules --ssh-key-value --node-vm-size + - --resource-group --name --location --ssh-key-value --node-vm-size --enable-managed-identity + --enable-azuremonitormetrics --enable-windows-recording-rules --output User-Agent: - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/22.0.0b Python/3.8.10 (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/98db728a-d423-4376-9d11-8eb6b1b0084b?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/9452ab00-2cdd-44f0-99e0-0c087bd00358?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"8a72db98-23d4-7643-9d11-8eb6b1b0084b\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2023-05-09T19:19:47.9536223Z\"\n }" + string: "{\n \"name\": \"00ab5294-dd2c-f044-99e0-0c087bd00358\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-05-09T21:41:48.5775143Z\"\n }" headers: cache-control: - no-cache @@ -481,7 +481,7 @@ interactions: content-type: - application/json date: - - Tue, 09 May 2023 19:22:49 GMT + - Tue, 09 May 2023 21:44:49 GMT expires: - '-1' pragma: @@ -511,17 +511,17 @@ interactions: Connection: - keep-alive ParameterSetName: - - --resource-group --name --location --enable-managed-identity --enable-azuremonitormetrics - --enable-windows-recording-rules --ssh-key-value --node-vm-size + - --resource-group --name --location --ssh-key-value --node-vm-size --enable-managed-identity + --enable-azuremonitormetrics --enable-windows-recording-rules --output User-Agent: - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/22.0.0b Python/3.8.10 (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/98db728a-d423-4376-9d11-8eb6b1b0084b?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/9452ab00-2cdd-44f0-99e0-0c087bd00358?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"8a72db98-23d4-7643-9d11-8eb6b1b0084b\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2023-05-09T19:19:47.9536223Z\"\n }" + string: "{\n \"name\": \"00ab5294-dd2c-f044-99e0-0c087bd00358\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-05-09T21:41:48.5775143Z\"\n }" headers: cache-control: - no-cache @@ -530,7 +530,7 @@ interactions: content-type: - application/json date: - - Tue, 09 May 2023 19:23:19 GMT + - Tue, 09 May 2023 21:45:19 GMT expires: - '-1' pragma: @@ -560,17 +560,17 @@ interactions: Connection: - keep-alive ParameterSetName: - - --resource-group --name --location --enable-managed-identity --enable-azuremonitormetrics - --enable-windows-recording-rules --ssh-key-value --node-vm-size + - --resource-group --name --location --ssh-key-value --node-vm-size --enable-managed-identity + --enable-azuremonitormetrics --enable-windows-recording-rules --output User-Agent: - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/22.0.0b Python/3.8.10 (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/98db728a-d423-4376-9d11-8eb6b1b0084b?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/9452ab00-2cdd-44f0-99e0-0c087bd00358?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"8a72db98-23d4-7643-9d11-8eb6b1b0084b\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2023-05-09T19:19:47.9536223Z\"\n }" + string: "{\n \"name\": \"00ab5294-dd2c-f044-99e0-0c087bd00358\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-05-09T21:41:48.5775143Z\"\n }" headers: cache-control: - no-cache @@ -579,7 +579,7 @@ interactions: content-type: - application/json date: - - Tue, 09 May 2023 19:23:49 GMT + - Tue, 09 May 2023 21:45:49 GMT expires: - '-1' pragma: @@ -609,17 +609,17 @@ interactions: Connection: - keep-alive ParameterSetName: - - --resource-group --name --location --enable-managed-identity --enable-azuremonitormetrics - --enable-windows-recording-rules --ssh-key-value --node-vm-size + - --resource-group --name --location --ssh-key-value --node-vm-size --enable-managed-identity + --enable-azuremonitormetrics --enable-windows-recording-rules --output User-Agent: - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/22.0.0b Python/3.8.10 (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/98db728a-d423-4376-9d11-8eb6b1b0084b?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/9452ab00-2cdd-44f0-99e0-0c087bd00358?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"8a72db98-23d4-7643-9d11-8eb6b1b0084b\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2023-05-09T19:19:47.9536223Z\"\n }" + string: "{\n \"name\": \"00ab5294-dd2c-f044-99e0-0c087bd00358\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-05-09T21:41:48.5775143Z\"\n }" headers: cache-control: - no-cache @@ -628,7 +628,7 @@ interactions: content-type: - application/json date: - - Tue, 09 May 2023 19:24:19 GMT + - Tue, 09 May 2023 21:46:19 GMT expires: - '-1' pragma: @@ -658,17 +658,17 @@ interactions: Connection: - keep-alive ParameterSetName: - - --resource-group --name --location --enable-managed-identity --enable-azuremonitormetrics - --enable-windows-recording-rules --ssh-key-value --node-vm-size + - --resource-group --name --location --ssh-key-value --node-vm-size --enable-managed-identity + --enable-azuremonitormetrics --enable-windows-recording-rules --output User-Agent: - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/22.0.0b Python/3.8.10 (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/98db728a-d423-4376-9d11-8eb6b1b0084b?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/9452ab00-2cdd-44f0-99e0-0c087bd00358?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"8a72db98-23d4-7643-9d11-8eb6b1b0084b\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2023-05-09T19:19:47.9536223Z\"\n }" + string: "{\n \"name\": \"00ab5294-dd2c-f044-99e0-0c087bd00358\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-05-09T21:41:48.5775143Z\"\n }" headers: cache-control: - no-cache @@ -677,7 +677,7 @@ interactions: content-type: - application/json date: - - Tue, 09 May 2023 19:24:50 GMT + - Tue, 09 May 2023 21:46:50 GMT expires: - '-1' pragma: @@ -707,17 +707,17 @@ interactions: Connection: - keep-alive ParameterSetName: - - --resource-group --name --location --enable-managed-identity --enable-azuremonitormetrics - --enable-windows-recording-rules --ssh-key-value --node-vm-size + - --resource-group --name --location --ssh-key-value --node-vm-size --enable-managed-identity + --enable-azuremonitormetrics --enable-windows-recording-rules --output User-Agent: - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/22.0.0b Python/3.8.10 (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/98db728a-d423-4376-9d11-8eb6b1b0084b?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/9452ab00-2cdd-44f0-99e0-0c087bd00358?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"8a72db98-23d4-7643-9d11-8eb6b1b0084b\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2023-05-09T19:19:47.9536223Z\"\n }" + string: "{\n \"name\": \"00ab5294-dd2c-f044-99e0-0c087bd00358\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-05-09T21:41:48.5775143Z\"\n }" headers: cache-control: - no-cache @@ -726,7 +726,7 @@ interactions: content-type: - application/json date: - - Tue, 09 May 2023 19:25:20 GMT + - Tue, 09 May 2023 21:47:21 GMT expires: - '-1' pragma: @@ -756,17 +756,17 @@ interactions: Connection: - keep-alive ParameterSetName: - - --resource-group --name --location --enable-managed-identity --enable-azuremonitormetrics - --enable-windows-recording-rules --ssh-key-value --node-vm-size + - --resource-group --name --location --ssh-key-value --node-vm-size --enable-managed-identity + --enable-azuremonitormetrics --enable-windows-recording-rules --output User-Agent: - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/22.0.0b Python/3.8.10 (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/98db728a-d423-4376-9d11-8eb6b1b0084b?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/9452ab00-2cdd-44f0-99e0-0c087bd00358?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"8a72db98-23d4-7643-9d11-8eb6b1b0084b\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2023-05-09T19:19:47.9536223Z\"\n }" + string: "{\n \"name\": \"00ab5294-dd2c-f044-99e0-0c087bd00358\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-05-09T21:41:48.5775143Z\"\n }" headers: cache-control: - no-cache @@ -775,7 +775,7 @@ interactions: content-type: - application/json date: - - Tue, 09 May 2023 19:25:50 GMT + - Tue, 09 May 2023 21:47:51 GMT expires: - '-1' pragma: @@ -805,17 +805,17 @@ interactions: Connection: - keep-alive ParameterSetName: - - --resource-group --name --location --enable-managed-identity --enable-azuremonitormetrics - --enable-windows-recording-rules --ssh-key-value --node-vm-size + - --resource-group --name --location --ssh-key-value --node-vm-size --enable-managed-identity + --enable-azuremonitormetrics --enable-windows-recording-rules --output User-Agent: - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/22.0.0b Python/3.8.10 (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/98db728a-d423-4376-9d11-8eb6b1b0084b?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/9452ab00-2cdd-44f0-99e0-0c087bd00358?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"8a72db98-23d4-7643-9d11-8eb6b1b0084b\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2023-05-09T19:19:47.9536223Z\"\n }" + string: "{\n \"name\": \"00ab5294-dd2c-f044-99e0-0c087bd00358\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-05-09T21:41:48.5775143Z\"\n }" headers: cache-control: - no-cache @@ -824,7 +824,7 @@ interactions: content-type: - application/json date: - - Tue, 09 May 2023 19:26:20 GMT + - Tue, 09 May 2023 21:48:20 GMT expires: - '-1' pragma: @@ -854,27 +854,26 @@ interactions: Connection: - keep-alive ParameterSetName: - - --resource-group --name --location --enable-managed-identity --enable-azuremonitormetrics - --enable-windows-recording-rules --ssh-key-value --node-vm-size + - --resource-group --name --location --ssh-key-value --node-vm-size --enable-managed-identity + --enable-azuremonitormetrics --enable-windows-recording-rules --output User-Agent: - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/22.0.0b Python/3.8.10 (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/98db728a-d423-4376-9d11-8eb6b1b0084b?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/9452ab00-2cdd-44f0-99e0-0c087bd00358?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"8a72db98-23d4-7643-9d11-8eb6b1b0084b\",\n \"status\": - \"Succeeded\",\n \"startTime\": \"2023-05-09T19:19:47.9536223Z\",\n \"endTime\": - \"2023-05-09T19:26:49.371626Z\"\n }" + string: "{\n \"name\": \"00ab5294-dd2c-f044-99e0-0c087bd00358\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-05-09T21:41:48.5775143Z\"\n }" headers: cache-control: - no-cache content-length: - - '169' + - '126' content-type: - application/json date: - - Tue, 09 May 2023 19:26:50 GMT + - Tue, 09 May 2023 21:48:51 GMT expires: - '-1' pragma: @@ -904,8 +903,58 @@ interactions: Connection: - keep-alive ParameterSetName: - - --resource-group --name --location --enable-managed-identity --enable-azuremonitormetrics - --enable-windows-recording-rules --ssh-key-value --node-vm-size + - --resource-group --name --location --ssh-key-value --node-vm-size --enable-managed-identity + --enable-azuremonitormetrics --enable-windows-recording-rules --output + User-Agent: + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/22.0.0b Python/3.8.10 + (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/9452ab00-2cdd-44f0-99e0-0c087bd00358?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"00ab5294-dd2c-f044-99e0-0c087bd00358\",\n \"status\": + \"Succeeded\",\n \"startTime\": \"2023-05-09T21:41:48.5775143Z\",\n \"endTime\": + \"2023-05-09T21:48:52.9733706Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '170' + content-type: + - application/json + date: + - Tue, 09 May 2023 21:49:21 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --ssh-key-value --node-vm-size --enable-managed-identity + --enable-azuremonitormetrics --enable-windows-recording-rules --output User-Agent: - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/22.0.0b Python/3.8.10 (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) @@ -918,8 +967,8 @@ interactions: \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": \"Succeeded\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": \"1.25.6\",\n \"currentKubernetesVersion\": \"1.25.6\",\n \"dnsPrefix\": - \"cliakstest-clitestmfq3ejeu5-79a739\",\n \"fqdn\": \"cliakstest-clitestmfq3ejeu5-79a739-ajco4565.hcp.westus2.azmk8s.io\",\n - \ \"azurePortalFQDN\": \"cliakstest-clitestmfq3ejeu5-79a739-ajco4565.portal.hcp.westus2.azmk8s.io\",\n + \"cliakstest-clitestseoizsap2-79a739\",\n \"fqdn\": \"cliakstest-clitestseoizsap2-79a739-371v7pcg.hcp.westus2.azmk8s.io\",\n + \ \"azurePortalFQDN\": \"cliakstest-clitestseoizsap2-79a739-371v7pcg.portal.hcp.westus2.azmk8s.io\",\n \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": 3,\n \"vmSize\": \"standard_d2s_v3\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": \"Managed\",\n \"kubeletDiskType\": \"OS\",\n \"workloadRuntime\": @@ -933,7 +982,7 @@ interactions: \"AKSUbuntu-2204gen2containerd-202304.20.0\",\n \"upgradeSettings\": {},\n \ \"enableFIPS\": false,\n \"networkProfile\": {}\n }\n ],\n \"linuxProfile\": {\n \"adminUsername\": \"azureuser\",\n \"ssh\": {\n \"publicKeys\": - [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDefbF/frwrKTFwsnDpZDXLe23htkKgEB5U4e75sYVRKpw2XdlRBHqPElvgHbNc8LRvlna+n7/7ZghqpTmRy9Lv/MLA8m2/FhxmUKvDvo7hB+2E3HofW5nhILP01H1LnlmbxpGP/hMjm92g758m2eqc4GIhQmlDYB4gcteJDi5avWGLbxINmAXahyRwDy06wcS6rtS6ODDBcmNkP+yGUmT+BR4yxPV4ysooJpvegb8vBQS9cHre/9kB1VsEjy+uBmQqrktRnaSsWOpdd9G7urd7K66BKLyj7UxBkbXbZPnRyiNweaEdzueMd5PSxUyQPXpkNwwHWC19MfonR7DP+2F3 + [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC/BDSUJ8cOCQbYSYIvKVgl1kB77S+6EBfuYie1VtR0dmxrD5ej+l20VOlwE8qK8Bmzi+fHWNVbVCOQvUjmka7+a8BeWgvCSOPx7iM3qVbRV3tWs5YjGE+zZZ5Swp6IqvAMSF2kv6YVchDTLrRjPxVWVzybvem2RGD0MSokB9I86p3oh8aisvL2AWqimMvClPJ71OjRqvdn+ebpG5iLMY4POxXjIvMIy6eLCUn03FrPH8JBHbRUHD/SytA4/u//5D4KShEV6mTJgJXV2ouPPv9rSGyqYHPJVcfTvYuvVgw4dECb15h4uatDPapvHVqVr9E+eMy18/L+LjWRgoc2NkN9 azcli_aks_live_test@example.com\\n\"\n }\n ]\n }\n },\n \"servicePrincipalProfile\": {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \"nodeResourceGroup\": \"MC_clitest000001_cliakstest000001_westus2\",\n \"enableRBAC\": true,\n @@ -941,7 +990,7 @@ interactions: \ \"networkProfile\": {\n \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\": \"Standard\",\n \"loadBalancerProfile\": {\n \"managedOutboundIPs\": {\n \"count\": 1\n },\n \"effectiveOutboundIPs\": [\n {\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000001_westus2/providers/Microsoft.Network/publicIPAddresses/119700fd-511a-4eda-9fb8-907c63710f0b\"\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000001_westus2/providers/Microsoft.Network/publicIPAddresses/5dae7c66-59f9-4312-a604-abbb87a3f34b\"\n \ }\n ],\n \"backendPoolType\": \"nodeIPConfiguration\"\n },\n \ \"podCidr\": \"10.244.0.0/16\",\n \"serviceCidr\": \"10.0.0.0/16\",\n \ \"dnsServiceIP\": \"10.0.0.10\",\n \"dockerBridgeCidr\": \"172.17.0.1/16\",\n @@ -969,7 +1018,7 @@ interactions: content-type: - application/json date: - - Tue, 09 May 2023 19:26:51 GMT + - Tue, 09 May 2023 21:49:21 GMT expires: - '-1' pragma: @@ -999,8 +1048,8 @@ interactions: Connection: - keep-alive ParameterSetName: - - --resource-group --name --location --enable-managed-identity --enable-azuremonitormetrics - --enable-windows-recording-rules --ssh-key-value --node-vm-size + - --resource-group --name --location --ssh-key-value --node-vm-size --enable-managed-identity + --enable-azuremonitormetrics --enable-windows-recording-rules --output User-Agent: - python/3.8.10 (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) AZURECLI/2.48.1 azuremonitormetrics.get_mac_sub_list @@ -1017,7 +1066,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 09 May 2023 19:26:56 GMT + - Tue, 09 May 2023 21:49:27 GMT expires: - '-1' pragma: @@ -1045,8 +1094,8 @@ interactions: Content-Length: - '0' ParameterSetName: - - --resource-group --name --location --enable-managed-identity --enable-azuremonitormetrics - --enable-windows-recording-rules --ssh-key-value --node-vm-size + - --resource-group --name --location --ssh-key-value --node-vm-size --enable-managed-identity + --enable-azuremonitormetrics --enable-windows-recording-rules --output User-Agent: - python/3.8.10 (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) AZURECLI/2.48.1 azuremonitormetrics.register_monitor_rp @@ -1078,13 +1127,17 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 09 May 2023 19:26:57 GMT + - Tue, 09 May 2023 21:49:28 GMT expires: - '-1' pragma: - no-cache strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: @@ -1106,8 +1159,8 @@ interactions: Content-Length: - '0' ParameterSetName: - - --resource-group --name --location --enable-managed-identity --enable-azuremonitormetrics - --enable-windows-recording-rules --ssh-key-value --node-vm-size + - --resource-group --name --location --ssh-key-value --node-vm-size --enable-managed-identity + --enable-azuremonitormetrics --enable-windows-recording-rules --output User-Agent: - python/3.8.10 (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) AZURECLI/2.48.1 azuremonitormetrics.register_dashboard_rp @@ -1139,13 +1192,17 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 09 May 2023 19:26:58 GMT + - Tue, 09 May 2023 21:49:28 GMT expires: - '-1' pragma: - no-cache strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: @@ -1165,8 +1222,8 @@ interactions: Connection: - keep-alive ParameterSetName: - - --resource-group --name --location --enable-managed-identity --enable-azuremonitormetrics - --enable-windows-recording-rules --ssh-key-value --node-vm-size + - --resource-group --name --location --ssh-key-value --node-vm-size --enable-managed-identity + --enable-azuremonitormetrics --enable-windows-recording-rules --output User-Agent: - python/3.8.10 (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) AZURECLI/2.48.1 azuremonitormetrics.get_supported_rp_locations @@ -1204,13 +1261,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 09 May 2023 19:26:57 GMT + - Tue, 09 May 2023 21:49:28 GMT expires: - '-1' pragma: - no-cache strict-transport-security: - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding x-content-type-options: - nosniff status: @@ -1228,8 +1287,8 @@ interactions: Connection: - keep-alive ParameterSetName: - - --resource-group --name --location --enable-managed-identity --enable-azuremonitormetrics - --enable-windows-recording-rules --ssh-key-value --node-vm-size + - --resource-group --name --location --ssh-key-value --node-vm-size --enable-managed-identity + --enable-azuremonitormetrics --enable-windows-recording-rules --output User-Agent: - AZURECLI/2.48.1 azsdk-python-azure-mgmt-resource/22.0.0 Python/3.8.10 (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) method: HEAD @@ -1243,7 +1302,7 @@ interactions: content-length: - '0' date: - - Tue, 09 May 2023 19:26:57 GMT + - Tue, 09 May 2023 21:49:28 GMT expires: - '-1' pragma: @@ -1267,8 +1326,8 @@ interactions: Connection: - keep-alive ParameterSetName: - - --resource-group --name --location --enable-managed-identity --enable-azuremonitormetrics - --enable-windows-recording-rules --ssh-key-value --node-vm-size + - --resource-group --name --location --ssh-key-value --node-vm-size --enable-managed-identity + --enable-azuremonitormetrics --enable-windows-recording-rules --output User-Agent: - AZURECLI/2.48.1 azsdk-python-azure-mgmt-resource/22.0.0 Python/3.8.10 (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) method: GET @@ -1286,7 +1345,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 09 May 2023 19:26:58 GMT + - Tue, 09 May 2023 21:49:29 GMT expires: - '-1' pragma: @@ -1323,8 +1382,8 @@ interactions: Content-Type: - application/json ParameterSetName: - - --resource-group --name --location --enable-managed-identity --enable-azuremonitormetrics - --enable-windows-recording-rules --ssh-key-value --node-vm-size + - --resource-group --name --location --ssh-key-value --node-vm-size --enable-managed-identity + --enable-azuremonitormetrics --enable-windows-recording-rules --output User-Agent: - python/3.8.10 (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) AZURECLI/2.48.1 azuremonitormetrics.create_dce @@ -1332,18 +1391,18 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionEndpoints/MSProm-westus2-cliakstest000001?api-version=2022-06-01 response: body: - string: '{"properties":{"immutableId":"dce-0217486ca5814359a9ec470e4ae01d0d","configurationAccess":{"endpoint":"https://msprom-westus2-cliakstest000001-yowb.westus2-1.handler.control.monitor.azure.com"},"logsIngestion":{"endpoint":"https://msprom-westus2-cliakstest000001-yowb.westus2-1.ingest.monitor.azure.com"},"metricsIngestion":{"endpoint":"https://msprom-westus2-cliakstest000001-yowb.westus2-1.metrics.ingest.monitor.azure.com"},"networkAcls":{"publicNetworkAccess":"Enabled"},"provisioningState":"Succeeded"},"location":"westus2","kind":"Linux","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionEndpoints/MSProm-westus2-cliakstest000001","name":"MSProm-westus2-cliakstest000001","type":"Microsoft.Insights/dataCollectionEndpoints","etag":"\"2d0771ce-0000-0800-0000-645a9e860000\"","systemData":{"createdBy":"3fac8b4e-cd90-4baa-a5d2-66d52bc8349d","createdByType":"Application","createdAt":"2023-05-09T19:27:01.433414Z","lastModifiedBy":"3fac8b4e-cd90-4baa-a5d2-66d52bc8349d","lastModifiedByType":"Application","lastModifiedAt":"2023-05-09T19:27:01.433414Z"}}' + string: '{"properties":{"immutableId":"dce-f98e7f5e0cc14618a1a60bc6dd35044f","configurationAccess":{"endpoint":"https://msprom-westus2-cliakstest000001-5j6w.westus2-1.handler.control.monitor.azure.com"},"logsIngestion":{"endpoint":"https://msprom-westus2-cliakstest000001-5j6w.westus2-1.ingest.monitor.azure.com"},"metricsIngestion":{"endpoint":"https://msprom-westus2-cliakstest000001-5j6w.westus2-1.metrics.ingest.monitor.azure.com"},"networkAcls":{"publicNetworkAccess":"Enabled"},"provisioningState":"Succeeded"},"location":"westus2","kind":"Linux","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionEndpoints/MSProm-westus2-cliakstest000001","name":"MSProm-westus2-cliakstest000001","type":"Microsoft.Insights/dataCollectionEndpoints","etag":"\"38073d53-0000-0800-0000-645ac0010000\"","systemData":{"createdBy":"3fac8b4e-cd90-4baa-a5d2-66d52bc8349d","createdByType":"Application","createdAt":"2023-05-09T21:49:30.9790547Z","lastModifiedBy":"3fac8b4e-cd90-4baa-a5d2-66d52bc8349d","lastModifiedByType":"Application","lastModifiedAt":"2023-05-09T21:49:30.9790547Z"}}' headers: api-supported-versions: - 2021-04-01, 2021-09-01-preview, 2022-06-01, 2023-03-11 cache-control: - no-cache content-length: - - '1136' + - '1138' content-type: - application/json; charset=utf-8 date: - - Tue, 09 May 2023 19:27:03 GMT + - Tue, 09 May 2023 21:49:55 GMT expires: - '-1' pragma: @@ -1354,8 +1413,10 @@ interactions: - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked vary: - - Accept-Encoding + - Accept-Encoding,Accept-Encoding x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: @@ -1386,8 +1447,8 @@ interactions: Content-Type: - application/json ParameterSetName: - - --resource-group --name --location --enable-managed-identity --enable-azuremonitormetrics - --enable-windows-recording-rules --ssh-key-value --node-vm-size + - --resource-group --name --location --ssh-key-value --node-vm-size --enable-managed-identity + --enable-azuremonitormetrics --enable-windows-recording-rules --output User-Agent: - python/3.8.10 (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) AZURECLI/2.48.1 azuremonitormetrics.create_dcr @@ -1395,7 +1456,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/MSProm-westus2-cliakstest000001?api-version=2022-06-01 response: body: - string: '{"properties":{"description":"DCR description","immutableId":"dcr-6138b93bc72d4fdcaea30a8aa3c7d7cc","dataCollectionEndpointId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionEndpoints/MSProm-westus2-cliakstest000001","dataSources":{"prometheusForwarder":[{"streams":["Microsoft-PrometheusMetrics"],"labelIncludeFilter":{},"name":"PrometheusDataSource"}]},"destinations":{"monitoringAccounts":[{"accountResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/DefaultResourceGroup-westus2/providers/microsoft.monitor/accounts/DefaultAzureMonitorWorkspace-westus2","accountId":"ec050f19-1529-4ec2-9d0c-e6677ca07ac8","name":"MonitoringAccount1"}]},"dataFlows":[{"streams":["Microsoft-PrometheusMetrics"],"destinations":["MonitoringAccount1"]}],"provisioningState":"Succeeded"},"location":"westus2","kind":"Linux","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/MSProm-westus2-cliakstest000001","name":"MSProm-westus2-cliakstest000001","type":"Microsoft.Insights/dataCollectionRules","etag":"\"2d0784cf-0000-0800-0000-645a9e890000\"","systemData":{"createdBy":"3fac8b4e-cd90-4baa-a5d2-66d52bc8349d","createdByType":"Application","createdAt":"2023-05-09T19:27:05.3480971Z","lastModifiedBy":"3fac8b4e-cd90-4baa-a5d2-66d52bc8349d","lastModifiedByType":"Application","lastModifiedAt":"2023-05-09T19:27:05.3480971Z"}}' + string: '{"properties":{"description":"DCR description","immutableId":"dcr-b947d5f96a44495d876d48eab79706a5","dataCollectionEndpointId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionEndpoints/MSProm-westus2-cliakstest000001","dataSources":{"prometheusForwarder":[{"streams":["Microsoft-PrometheusMetrics"],"labelIncludeFilter":{},"name":"PrometheusDataSource"}]},"destinations":{"monitoringAccounts":[{"accountResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/DefaultResourceGroup-westus2/providers/microsoft.monitor/accounts/DefaultAzureMonitorWorkspace-westus2","accountId":"ec050f19-1529-4ec2-9d0c-e6677ca07ac8","name":"MonitoringAccount1"}]},"dataFlows":[{"streams":["Microsoft-PrometheusMetrics"],"destinations":["MonitoringAccount1"]}],"provisioningState":"Succeeded"},"location":"westus2","kind":"Linux","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/MSProm-westus2-cliakstest000001","name":"MSProm-westus2-cliakstest000001","type":"Microsoft.Insights/dataCollectionRules","etag":"\"38078a54-0000-0800-0000-645ac0050000\"","systemData":{"createdBy":"3fac8b4e-cd90-4baa-a5d2-66d52bc8349d","createdByType":"Application","createdAt":"2023-05-09T21:49:56.4064219Z","lastModifiedBy":"3fac8b4e-cd90-4baa-a5d2-66d52bc8349d","lastModifiedByType":"Application","lastModifiedAt":"2023-05-09T21:49:56.4064219Z"}}' headers: api-supported-versions: - 2019-11-01-preview, 2021-04-01, 2021-09-01-preview, 2022-06-01, 2023-03-11 @@ -1406,7 +1467,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 09 May 2023 19:27:07 GMT + - Tue, 09 May 2023 21:49:58 GMT expires: - '-1' pragma: @@ -1446,8 +1507,8 @@ interactions: Content-Type: - application/json ParameterSetName: - - --resource-group --name --location --enable-managed-identity --enable-azuremonitormetrics - --enable-windows-recording-rules --ssh-key-value --node-vm-size + - --resource-group --name --location --ssh-key-value --node-vm-size --enable-managed-identity + --enable-azuremonitormetrics --enable-windows-recording-rules --output User-Agent: - python/3.8.10 (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) AZURECLI/2.48.1 azuremonitormetrics.create_dcra @@ -1456,7 +1517,7 @@ interactions: response: body: string: '{"properties":{"description":"Promtheus data collection association - between DCR, DCE and target AKS resource","dataCollectionRuleId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/MSProm-westus2-cliakstest000001"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000001/providers/Microsoft.Insights/dataCollectionRuleAssociations/ContainerInsightsMetricsExtension-westus2-cliakstest000001","name":"ContainerInsightsMetricsExtension-westus2-cliakstest000001","type":"Microsoft.Insights/dataCollectionRuleAssociations","etag":"\"2d0768d0-0000-0800-0000-645a9e8c0000\"","systemData":{"createdBy":"3fac8b4e-cd90-4baa-a5d2-66d52bc8349d","createdByType":"Application","createdAt":"2023-05-09T19:27:07.7361002Z","lastModifiedBy":"3fac8b4e-cd90-4baa-a5d2-66d52bc8349d","lastModifiedByType":"Application","lastModifiedAt":"2023-05-09T19:27:07.7361002Z"}}' + between DCR, DCE and target AKS resource","dataCollectionRuleId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/MSProm-westus2-cliakstest000001"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000001/providers/Microsoft.Insights/dataCollectionRuleAssociations/ContainerInsightsMetricsExtension-westus2-cliakstest000001","name":"ContainerInsightsMetricsExtension-westus2-cliakstest000001","type":"Microsoft.Insights/dataCollectionRuleAssociations","etag":"\"38074355-0000-0800-0000-645ac0070000\"","systemData":{"createdBy":"3fac8b4e-cd90-4baa-a5d2-66d52bc8349d","createdByType":"Application","createdAt":"2023-05-09T21:49:58.5106375Z","lastModifiedBy":"3fac8b4e-cd90-4baa-a5d2-66d52bc8349d","lastModifiedByType":"Application","lastModifiedAt":"2023-05-09T21:49:58.5106375Z"}}' headers: api-supported-versions: - 2019-11-01-preview, 2021-04-01, 2021-09-01-preview, 2022-06-01, 2023-03-11 @@ -1467,7 +1528,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 09 May 2023 19:27:08 GMT + - Tue, 09 May 2023 21:49:59 GMT expires: - '-1' pragma: @@ -1478,10 +1539,8 @@ interactions: - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: @@ -1501,8 +1560,8 @@ interactions: Connection: - keep-alive ParameterSetName: - - --resource-group --name --location --enable-managed-identity --enable-azuremonitormetrics - --enable-windows-recording-rules --ssh-key-value --node-vm-size + - --resource-group --name --location --ssh-key-value --node-vm-size --enable-managed-identity + --enable-azuremonitormetrics --enable-windows-recording-rules --output User-Agent: - python/3.8.10 (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) AZURECLI/2.48.1 azuremonitormetrics.get_recording_rules_template @@ -1881,29 +1940,35 @@ interactions: + irate(windows_net_packets_outbound_discarded_total{job=\\\"windows-exporter\\\"}[5m])))\"\r\n \ },\r\n {\r\n \"record\": \"windows_pod_container_available\",\r\n \"expression\": - \"windows_container_available{job=\\\"windows-exporter\\\"} * on(container_id) - group_left(container, pod, namespace) max(kube_pod_container_info{job=\\\"kube-state-metrics\\\"}) - by(container, container_id, pod, namespace)\"\r\n },\r\n - \ {\r\n \"record\": \"windows_container_total_runtime\",\r\n - \ \"expression\": \"windows_container_cpu_usage_seconds_total{job=\\\"windows-exporter\\\"} - * on(container_id) group_left(container, pod, namespace) max(kube_pod_container_info{job=\\\"kube-state-metrics\\\"}) - by(container, container_id, pod, namespace)\"\r\n },\r\n + \"windows_container_available{job=\\\"windows-exporter\\\", container_id != + \\\"\\\"} * on(container_id) group_left(container, pod, namespace) max(kube_pod_container_info{job=\\\"kube-state-metrics\\\", + container_id != \\\"\\\"}) by(container, container_id, pod, namespace)\"\r\n + \ },\r\n {\r\n \"record\": + \"windows_container_total_runtime\",\r\n \"expression\": + \"windows_container_cpu_usage_seconds_total{job=\\\"windows-exporter\\\", + container_id != \\\"\\\"} * on(container_id) group_left(container, pod, namespace) + max(kube_pod_container_info{job=\\\"kube-state-metrics\\\", container_id != + \\\"\\\"}) by(container, container_id, pod, namespace)\"\r\n },\r\n \ {\r\n \"record\": \"windows_container_memory_usage\",\r\n - \ \"expression\": \"windows_container_memory_usage_commit_bytes{job=\\\"windows-exporter\\\"} - * on(container_id) group_left(container, pod, namespace) max(kube_pod_container_info{job=\\\"kube-state-metrics\\\"}) - by(container, container_id, pod, namespace)\"\r\n },\r\n + \ \"expression\": \"windows_container_memory_usage_commit_bytes{job=\\\"windows-exporter\\\", + container_id != \\\"\\\"} * on(container_id) group_left(container, pod, namespace) + max(kube_pod_container_info{job=\\\"kube-state-metrics\\\", container_id != + \\\"\\\"}) by(container, container_id, pod, namespace)\"\r\n },\r\n \ {\r\n \"record\": \"windows_container_private_working_set_usage\",\r\n - \ \"expression\": \"windows_container_memory_usage_private_working_set_bytes{job=\\\"windows-exporter\\\"} - * on(container_id) group_left(container, pod, namespace) max(kube_pod_container_info{job=\\\"kube-state-metrics\\\"}) - by(container, container_id, pod, namespace)\"\r\n },\r\n + \ \"expression\": \"windows_container_memory_usage_private_working_set_bytes{job=\\\"windows-exporter\\\", + container_id != \\\"\\\"} * on(container_id) group_left(container, pod, namespace) + max(kube_pod_container_info{job=\\\"kube-state-metrics\\\", container_id != + \\\"\\\"}) by(container, container_id, pod, namespace)\"\r\n },\r\n \ {\r\n \"record\": \"windows_container_network_received_bytes_total\",\r\n - \ \"expression\": \"windows_container_network_receive_bytes_total{job=\\\"windows-exporter\\\"} - * on(container_id) group_left(container, pod, namespace) max(kube_pod_container_info{job=\\\"kube-state-metrics\\\"}) - by(container, container_id, pod, namespace)\"\r\n },\r\n + \ \"expression\": \"windows_container_network_receive_bytes_total{job=\\\"windows-exporter\\\", + container_id != \\\"\\\"} * on(container_id) group_left(container, pod, namespace) + max(kube_pod_container_info{job=\\\"kube-state-metrics\\\", container_id != + \\\"\\\"}) by(container, container_id, pod, namespace)\"\r\n },\r\n \ {\r\n \"record\": \"windows_container_network_transmitted_bytes_total\",\r\n - \ \"expression\": \"windows_container_network_transmit_bytes_total{job=\\\"windows-exporter\\\"} - * on(container_id) group_left(container, pod, namespace) max(kube_pod_container_info{job=\\\"kube-state-metrics\\\"}) - by(container, container_id, pod, namespace)\"\r\n },\r\n + \ \"expression\": \"windows_container_network_transmit_bytes_total{job=\\\"windows-exporter\\\", + container_id != \\\"\\\"} * on(container_id) group_left(container, pod, namespace) + max(kube_pod_container_info{job=\\\"kube-state-metrics\\\", container_id != + \\\"\\\"}) by(container, container_id, pod, namespace)\"\r\n },\r\n \ {\r\n \"record\": \"kube_pod_windows_container_resource_memory_request\",\r\n \ \"expression\": \"max by (namespace, pod, container) (kube_pod_container_resource_requests{resource=\\\"memory\\\",job=\\\"kube-state-metrics\\\"}) * on(container,pod,namespace) (windows_pod_container_available)\"\r\n },\r\n @@ -2082,11 +2147,11 @@ interactions: cache-control: - no-cache content-length: - - '49079' + - '49343' content-type: - application/json; charset=utf-8 date: - - Tue, 09 May 2023 19:27:08 GMT + - Tue, 09 May 2023 21:50:01 GMT expires: - '-1' pragma: @@ -2148,11 +2213,11 @@ interactions: Content-Type: - application/json ParameterSetName: - - --resource-group --name --location --enable-managed-identity --enable-azuremonitormetrics - --enable-windows-recording-rules --ssh-key-value --node-vm-size + - --resource-group --name --location --ssh-key-value --node-vm-size --enable-managed-identity + --enable-azuremonitormetrics --enable-windows-recording-rules --output User-Agent: - python/3.8.10 (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) AZURECLI/2.48.1 - azuremonitormetrics.put_rules.NodeRecordingRulesRuleGroup-cliakstesthgb5xp + azuremonitormetrics.put_rules.NodeRecordingRulesRuleGroup-cliakstestdevqav method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.AlertsManagement/prometheusRuleGroups/NodeRecordingRulesRuleGroup-cliakstest000001?api-version=2023-03-01 response: @@ -2205,7 +2270,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 09 May 2023 19:27:12 GMT + - Tue, 09 May 2023 21:50:03 GMT expires: - '-1' pragma: @@ -2318,11 +2383,11 @@ interactions: Content-Type: - application/json ParameterSetName: - - --resource-group --name --location --enable-managed-identity --enable-azuremonitormetrics - --enable-windows-recording-rules --ssh-key-value --node-vm-size + - --resource-group --name --location --ssh-key-value --node-vm-size --enable-managed-identity + --enable-azuremonitormetrics --enable-windows-recording-rules --output User-Agent: - python/3.8.10 (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) AZURECLI/2.48.1 - azuremonitormetrics.put_rules.KubernetesRecordingRulesRuleGroup-cliakstesthgb5xp + azuremonitormetrics.put_rules.KubernetesRecordingRulesRuleGroup-cliakstestdevqav method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.AlertsManagement/prometheusRuleGroups/KubernetesRecordingRulesRuleGroup-cliakstest000001?api-version=2023-03-01 response: @@ -2432,7 +2497,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 09 May 2023 19:27:15 GMT + - Tue, 09 May 2023 21:50:06 GMT expires: - '-1' pragma: @@ -2502,11 +2567,11 @@ interactions: Content-Type: - application/json ParameterSetName: - - --resource-group --name --location --enable-managed-identity --enable-azuremonitormetrics - --enable-windows-recording-rules --ssh-key-value --node-vm-size + - --resource-group --name --location --ssh-key-value --node-vm-size --enable-managed-identity + --enable-azuremonitormetrics --enable-windows-recording-rules --output User-Agent: - python/3.8.10 (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) AZURECLI/2.48.1 - azuremonitormetrics.put_rules.NodeRecordingRulesRuleGroup-Win-cliakstesthgb5xp + azuremonitormetrics.put_rules.NodeRecordingRulesRuleGroup-Win-cliakstestdevqav method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.AlertsManagement/prometheusRuleGroups/NodeRecordingRulesRuleGroup-Win-cliakstest000001?api-version=2023-03-01 response: @@ -2567,7 +2632,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 09 May 2023 19:27:18 GMT + - Tue, 09 May 2023 21:50:09 GMT expires: - '-1' pragma: @@ -2585,7 +2650,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '299' + - '298' x-powered-by: - ASP.NET status: @@ -2609,23 +2674,29 @@ interactions: {"record": "node:windows_node_net_saturation:sum_irate", "expression": "sum by (instance) ((irate(windows_net_packets_received_discarded_total{job=\"windows-exporter\"}[5m]) + irate(windows_net_packets_outbound_discarded_total{job=\"windows-exporter\"}[5m])))"}, - {"record": "windows_pod_container_available", "expression": "windows_container_available{job=\"windows-exporter\"} - * on(container_id) group_left(container, pod, namespace) max(kube_pod_container_info{job=\"kube-state-metrics\"}) + {"record": "windows_pod_container_available", "expression": "windows_container_available{job=\"windows-exporter\", + container_id != \"\"} * on(container_id) group_left(container, pod, namespace) + max(kube_pod_container_info{job=\"kube-state-metrics\", container_id != \"\"}) by(container, container_id, pod, namespace)"}, {"record": "windows_container_total_runtime", - "expression": "windows_container_cpu_usage_seconds_total{job=\"windows-exporter\"} - * on(container_id) group_left(container, pod, namespace) max(kube_pod_container_info{job=\"kube-state-metrics\"}) + "expression": "windows_container_cpu_usage_seconds_total{job=\"windows-exporter\", + container_id != \"\"} * on(container_id) group_left(container, pod, namespace) + max(kube_pod_container_info{job=\"kube-state-metrics\", container_id != \"\"}) by(container, container_id, pod, namespace)"}, {"record": "windows_container_memory_usage", - "expression": "windows_container_memory_usage_commit_bytes{job=\"windows-exporter\"} - * on(container_id) group_left(container, pod, namespace) max(kube_pod_container_info{job=\"kube-state-metrics\"}) + "expression": "windows_container_memory_usage_commit_bytes{job=\"windows-exporter\", + container_id != \"\"} * on(container_id) group_left(container, pod, namespace) + max(kube_pod_container_info{job=\"kube-state-metrics\", container_id != \"\"}) by(container, container_id, pod, namespace)"}, {"record": "windows_container_private_working_set_usage", - "expression": "windows_container_memory_usage_private_working_set_bytes{job=\"windows-exporter\"} - * on(container_id) group_left(container, pod, namespace) max(kube_pod_container_info{job=\"kube-state-metrics\"}) + "expression": "windows_container_memory_usage_private_working_set_bytes{job=\"windows-exporter\", + container_id != \"\"} * on(container_id) group_left(container, pod, namespace) + max(kube_pod_container_info{job=\"kube-state-metrics\", container_id != \"\"}) by(container, container_id, pod, namespace)"}, {"record": "windows_container_network_received_bytes_total", - "expression": "windows_container_network_receive_bytes_total{job=\"windows-exporter\"} - * on(container_id) group_left(container, pod, namespace) max(kube_pod_container_info{job=\"kube-state-metrics\"}) + "expression": "windows_container_network_receive_bytes_total{job=\"windows-exporter\", + container_id != \"\"} * on(container_id) group_left(container, pod, namespace) + max(kube_pod_container_info{job=\"kube-state-metrics\", container_id != \"\"}) by(container, container_id, pod, namespace)"}, {"record": "windows_container_network_transmitted_bytes_total", - "expression": "windows_container_network_transmit_bytes_total{job=\"windows-exporter\"} - * on(container_id) group_left(container, pod, namespace) max(kube_pod_container_info{job=\"kube-state-metrics\"}) + "expression": "windows_container_network_transmit_bytes_total{job=\"windows-exporter\", + container_id != \"\"} * on(container_id) group_left(container, pod, namespace) + max(kube_pod_container_info{job=\"kube-state-metrics\", container_id != \"\"}) by(container, container_id, pod, namespace)"}, {"record": "kube_pod_windows_container_resource_memory_request", "expression": "max by (namespace, pod, container) (kube_pod_container_resource_requests{resource=\"memory\",job=\"kube-state-metrics\"}) * on(container,pod,namespace) (windows_pod_container_available)"}, {"record": @@ -2648,15 +2719,15 @@ interactions: Connection: - keep-alive Content-Length: - - '4923' + - '5187' Content-Type: - application/json ParameterSetName: - - --resource-group --name --location --enable-managed-identity --enable-azuremonitormetrics - --enable-windows-recording-rules --ssh-key-value --node-vm-size + - --resource-group --name --location --ssh-key-value --node-vm-size --enable-managed-identity + --enable-azuremonitormetrics --enable-windows-recording-rules --output User-Agent: - python/3.8.10 (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) AZURECLI/2.48.1 - azuremonitormetrics.put_rules.NodeAndKubernetesRecordingRulesRuleGroup-Win-cliakstesthgb5xp + azuremonitormetrics.put_rules.NodeAndKubernetesRecordingRulesRuleGroup-Win-cliakstestdevqav method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.AlertsManagement/prometheusRuleGroups/NodeAndKubernetesRecordingRulesRuleGroup-Win-cliakstest000001?api-version=2023-03-01 response: @@ -2683,29 +2754,37 @@ interactions: \ \"expression\": \"sum by (instance) ((irate(windows_net_packets_received_discarded_total{job=\\\"windows-exporter\\\"}[5m]) + irate(windows_net_packets_outbound_discarded_total{job=\\\"windows-exporter\\\"}[5m])))\"\r\n \ },\r\n {\r\n \"record\": \"windows_pod_container_available\",\r\n - \ \"expression\": \"windows_container_available{job=\\\"windows-exporter\\\"} - * on(container_id) group_left(container, pod, namespace) max(kube_pod_container_info{job=\\\"kube-state-metrics\\\"}) - by(container, container_id, pod, namespace)\"\r\n },\r\n {\r\n \"record\": - \"windows_container_total_runtime\",\r\n \"expression\": \"windows_container_cpu_usage_seconds_total{job=\\\"windows-exporter\\\"} - * on(container_id) group_left(container, pod, namespace) max(kube_pod_container_info{job=\\\"kube-state-metrics\\\"}) - by(container, container_id, pod, namespace)\"\r\n },\r\n {\r\n \"record\": - \"windows_container_memory_usage\",\r\n \"expression\": \"windows_container_memory_usage_commit_bytes{job=\\\"windows-exporter\\\"} - * on(container_id) group_left(container, pod, namespace) max(kube_pod_container_info{job=\\\"kube-state-metrics\\\"}) - by(container, container_id, pod, namespace)\"\r\n },\r\n {\r\n \"record\": - \"windows_container_private_working_set_usage\",\r\n \"expression\": - \"windows_container_memory_usage_private_working_set_bytes{job=\\\"windows-exporter\\\"} - * on(container_id) group_left(container, pod, namespace) max(kube_pod_container_info{job=\\\"kube-state-metrics\\\"}) - by(container, container_id, pod, namespace)\"\r\n },\r\n {\r\n \"record\": - \"windows_container_network_received_bytes_total\",\r\n \"expression\": - \"windows_container_network_receive_bytes_total{job=\\\"windows-exporter\\\"} - * on(container_id) group_left(container, pod, namespace) max(kube_pod_container_info{job=\\\"kube-state-metrics\\\"}) - by(container, container_id, pod, namespace)\"\r\n },\r\n {\r\n \"record\": - \"windows_container_network_transmitted_bytes_total\",\r\n \"expression\": - \"windows_container_network_transmit_bytes_total{job=\\\"windows-exporter\\\"} - * on(container_id) group_left(container, pod, namespace) max(kube_pod_container_info{job=\\\"kube-state-metrics\\\"}) - by(container, container_id, pod, namespace)\"\r\n },\r\n {\r\n \"record\": - \"kube_pod_windows_container_resource_memory_request\",\r\n \"expression\": - \"max by (namespace, pod, container) (kube_pod_container_resource_requests{resource=\\\"memory\\\",job=\\\"kube-state-metrics\\\"}) + \ \"expression\": \"windows_container_available{job=\\\"windows-exporter\\\", + container_id != \\\"\\\"} * on(container_id) group_left(container, pod, namespace) + max(kube_pod_container_info{job=\\\"kube-state-metrics\\\", container_id != + \\\"\\\"}) by(container, container_id, pod, namespace)\"\r\n },\r\n {\r\n + \ \"record\": \"windows_container_total_runtime\",\r\n \"expression\": + \"windows_container_cpu_usage_seconds_total{job=\\\"windows-exporter\\\", + container_id != \\\"\\\"} * on(container_id) group_left(container, pod, namespace) + max(kube_pod_container_info{job=\\\"kube-state-metrics\\\", container_id != + \\\"\\\"}) by(container, container_id, pod, namespace)\"\r\n },\r\n {\r\n + \ \"record\": \"windows_container_memory_usage\",\r\n \"expression\": + \"windows_container_memory_usage_commit_bytes{job=\\\"windows-exporter\\\", + container_id != \\\"\\\"} * on(container_id) group_left(container, pod, namespace) + max(kube_pod_container_info{job=\\\"kube-state-metrics\\\", container_id != + \\\"\\\"}) by(container, container_id, pod, namespace)\"\r\n },\r\n {\r\n + \ \"record\": \"windows_container_private_working_set_usage\",\r\n \"expression\": + \"windows_container_memory_usage_private_working_set_bytes{job=\\\"windows-exporter\\\", + container_id != \\\"\\\"} * on(container_id) group_left(container, pod, namespace) + max(kube_pod_container_info{job=\\\"kube-state-metrics\\\", container_id != + \\\"\\\"}) by(container, container_id, pod, namespace)\"\r\n },\r\n {\r\n + \ \"record\": \"windows_container_network_received_bytes_total\",\r\n + \ \"expression\": \"windows_container_network_receive_bytes_total{job=\\\"windows-exporter\\\", + container_id != \\\"\\\"} * on(container_id) group_left(container, pod, namespace) + max(kube_pod_container_info{job=\\\"kube-state-metrics\\\", container_id != + \\\"\\\"}) by(container, container_id, pod, namespace)\"\r\n },\r\n {\r\n + \ \"record\": \"windows_container_network_transmitted_bytes_total\",\r\n + \ \"expression\": \"windows_container_network_transmit_bytes_total{job=\\\"windows-exporter\\\", + container_id != \\\"\\\"} * on(container_id) group_left(container, pod, namespace) + max(kube_pod_container_info{job=\\\"kube-state-metrics\\\", container_id != + \\\"\\\"}) by(container, container_id, pod, namespace)\"\r\n },\r\n {\r\n + \ \"record\": \"kube_pod_windows_container_resource_memory_request\",\r\n + \ \"expression\": \"max by (namespace, pod, container) (kube_pod_container_resource_requests{resource=\\\"memory\\\",job=\\\"kube-state-metrics\\\"}) * on(container,pod,namespace) (windows_pod_container_available)\"\r\n },\r\n \ {\r\n \"record\": \"kube_pod_windows_container_resource_memory_limit\",\r\n \ \"expression\": \"kube_pod_container_resource_limits{resource=\\\"memory\\\",job=\\\"kube-state-metrics\\\"} @@ -2727,11 +2806,11 @@ interactions: cache-control: - no-cache content-length: - - '5570' + - '5834' content-type: - application/json; charset=utf-8 date: - - Tue, 09 May 2023 19:27:20 GMT + - Tue, 09 May 2023 21:50:12 GMT expires: - '-1' pragma: @@ -2767,8 +2846,8 @@ interactions: Connection: - keep-alive ParameterSetName: - - --resource-group --name --location --enable-managed-identity --enable-azuremonitormetrics - --enable-windows-recording-rules --ssh-key-value --node-vm-size + - --resource-group --name --location --ssh-key-value --node-vm-size --enable-managed-identity + --enable-azuremonitormetrics --enable-windows-recording-rules --output User-Agent: - python/3.8.10 (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) AZURECLI/2.48.1 azuremonitormetrics.addon_get @@ -2781,8 +2860,8 @@ interactions: \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": \"Succeeded\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": \"1.25.6\",\n \"currentKubernetesVersion\": \"1.25.6\",\n \"dnsPrefix\": - \"cliakstest-clitestmfq3ejeu5-79a739\",\n \"fqdn\": \"cliakstest-clitestmfq3ejeu5-79a739-ajco4565.hcp.westus2.azmk8s.io\",\n - \ \"azurePortalFQDN\": \"cliakstest-clitestmfq3ejeu5-79a739-ajco4565.portal.hcp.westus2.azmk8s.io\",\n + \"cliakstest-clitestseoizsap2-79a739\",\n \"fqdn\": \"cliakstest-clitestseoizsap2-79a739-371v7pcg.hcp.westus2.azmk8s.io\",\n + \ \"azurePortalFQDN\": \"cliakstest-clitestseoizsap2-79a739-371v7pcg.portal.hcp.westus2.azmk8s.io\",\n \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": 3,\n \"vmSize\": \"standard_d2s_v3\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": \"Managed\",\n \"kubeletDiskType\": \"OS\",\n \"workloadRuntime\": @@ -2795,14 +2874,14 @@ interactions: \"Ubuntu\",\n \"nodeImageVersion\": \"AKSUbuntu-2204gen2containerd-202304.20.0\",\n \ \"upgradeSettings\": {},\n \"enableFIPS\": false\n }\n ],\n \ \"linuxProfile\": {\n \"adminUsername\": \"azureuser\",\n \"ssh\": - {\n \"publicKeys\": [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDefbF/frwrKTFwsnDpZDXLe23htkKgEB5U4e75sYVRKpw2XdlRBHqPElvgHbNc8LRvlna+n7/7ZghqpTmRy9Lv/MLA8m2/FhxmUKvDvo7hB+2E3HofW5nhILP01H1LnlmbxpGP/hMjm92g758m2eqc4GIhQmlDYB4gcteJDi5avWGLbxINmAXahyRwDy06wcS6rtS6ODDBcmNkP+yGUmT+BR4yxPV4ysooJpvegb8vBQS9cHre/9kB1VsEjy+uBmQqrktRnaSsWOpdd9G7urd7K66BKLyj7UxBkbXbZPnRyiNweaEdzueMd5PSxUyQPXpkNwwHWC19MfonR7DP+2F3 + {\n \"publicKeys\": [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC/BDSUJ8cOCQbYSYIvKVgl1kB77S+6EBfuYie1VtR0dmxrD5ej+l20VOlwE8qK8Bmzi+fHWNVbVCOQvUjmka7+a8BeWgvCSOPx7iM3qVbRV3tWs5YjGE+zZZ5Swp6IqvAMSF2kv6YVchDTLrRjPxVWVzybvem2RGD0MSokB9I86p3oh8aisvL2AWqimMvClPJ71OjRqvdn+ebpG5iLMY4POxXjIvMIy6eLCUn03FrPH8JBHbRUHD/SytA4/u//5D4KShEV6mTJgJXV2ouPPv9rSGyqYHPJVcfTvYuvVgw4dECb15h4uatDPapvHVqVr9E+eMy18/L+LjWRgoc2NkN9 azcli_aks_live_test@example.com\\n\"\n }\n ]\n }\n },\n \"servicePrincipalProfile\": {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \"nodeResourceGroup\": \"MC_clitest000001_cliakstest000001_westus2\",\n \"enableRBAC\": true,\n \ \"enablePodSecurityPolicy\": false,\n \"networkProfile\": {\n \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\": \"Standard\",\n \"loadBalancerProfile\": {\n \"managedOutboundIPs\": {\n \"count\": 1\n },\n \"effectiveOutboundIPs\": - [\n {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000001_westus2/providers/Microsoft.Network/publicIPAddresses/119700fd-511a-4eda-9fb8-907c63710f0b\"\n + [\n {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000001_westus2/providers/Microsoft.Network/publicIPAddresses/5dae7c66-59f9-4312-a604-abbb87a3f34b\"\n \ }\n ]\n },\n \"podCidr\": \"10.244.0.0/16\",\n \"serviceCidr\": \"10.0.0.0/16\",\n \"dnsServiceIP\": \"10.0.0.10\",\n \"dockerBridgeCidr\": \"172.17.0.1/16\",\n \"outboundType\": \"loadBalancer\",\n \"podCidrs\": @@ -2830,7 +2909,7 @@ interactions: content-type: - application/json date: - - Tue, 09 May 2023 19:27:22 GMT + - Tue, 09 May 2023 21:50:13 GMT expires: - '-1' pragma: @@ -2853,8 +2932,8 @@ interactions: "location": "westus2", "name": "cliakstest000001", "type": "Microsoft.ContainerService/ManagedClusters", "properties": {"provisioningState": "Succeeded", "powerState": {"code": "Running"}, "kubernetesVersion": "1.25.6", "currentKubernetesVersion": "1.25.6", "dnsPrefix": - "cliakstest-clitestmfq3ejeu5-79a739", "fqdn": "cliakstest-clitestmfq3ejeu5-79a739-ajco4565.hcp.westus2.azmk8s.io", - "azurePortalFQDN": "cliakstest-clitestmfq3ejeu5-79a739-ajco4565.portal.hcp.westus2.azmk8s.io", + "cliakstest-clitestseoizsap2-79a739", "fqdn": "cliakstest-clitestseoizsap2-79a739-371v7pcg.hcp.westus2.azmk8s.io", + "azurePortalFQDN": "cliakstest-clitestseoizsap2-79a739-371v7pcg.portal.hcp.westus2.azmk8s.io", "agentPoolProfiles": [{"name": "nodepool1", "count": 3, "vmSize": "standard_d2s_v3", "osDiskSizeGB": 128, "osDiskType": "Managed", "kubeletDiskType": "OS", "workloadRuntime": "OCIContainer", "maxPods": 110, "type": "VirtualMachineScaleSets", "enableAutoScaling": @@ -2863,12 +2942,12 @@ interactions: false, "mode": "System", "enableEncryptionAtHost": false, "enableUltraSSD": false, "osType": "Linux", "osSKU": "Ubuntu", "nodeImageVersion": "AKSUbuntu-2204gen2containerd-202304.20.0", "upgradeSettings": {}, "enableFIPS": false}], "linuxProfile": {"adminUsername": - "azureuser", "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDefbF/frwrKTFwsnDpZDXLe23htkKgEB5U4e75sYVRKpw2XdlRBHqPElvgHbNc8LRvlna+n7/7ZghqpTmRy9Lv/MLA8m2/FhxmUKvDvo7hB+2E3HofW5nhILP01H1LnlmbxpGP/hMjm92g758m2eqc4GIhQmlDYB4gcteJDi5avWGLbxINmAXahyRwDy06wcS6rtS6ODDBcmNkP+yGUmT+BR4yxPV4ysooJpvegb8vBQS9cHre/9kB1VsEjy+uBmQqrktRnaSsWOpdd9G7urd7K66BKLyj7UxBkbXbZPnRyiNweaEdzueMd5PSxUyQPXpkNwwHWC19MfonR7DP+2F3 + "azureuser", "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC/BDSUJ8cOCQbYSYIvKVgl1kB77S+6EBfuYie1VtR0dmxrD5ej+l20VOlwE8qK8Bmzi+fHWNVbVCOQvUjmka7+a8BeWgvCSOPx7iM3qVbRV3tWs5YjGE+zZZ5Swp6IqvAMSF2kv6YVchDTLrRjPxVWVzybvem2RGD0MSokB9I86p3oh8aisvL2AWqimMvClPJ71OjRqvdn+ebpG5iLMY4POxXjIvMIy6eLCUn03FrPH8JBHbRUHD/SytA4/u//5D4KShEV6mTJgJXV2ouPPv9rSGyqYHPJVcfTvYuvVgw4dECb15h4uatDPapvHVqVr9E+eMy18/L+LjWRgoc2NkN9 azcli_aks_live_test@example.com\n"}]}}, "servicePrincipalProfile": {"clientId":"00000000-0000-0000-0000-000000000001"}, "nodeResourceGroup": "MC_clitest000001_cliakstest000001_westus2", "enableRBAC": true, "enablePodSecurityPolicy": false, "networkProfile": {"networkPlugin": "kubenet", "loadBalancerSku": "Standard", "loadBalancerProfile": {"managedOutboundIPs": - {"count": 1}, "effectiveOutboundIPs": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000001_westus2/providers/Microsoft.Network/publicIPAddresses/119700fd-511a-4eda-9fb8-907c63710f0b"}]}, + {"count": 1}, "effectiveOutboundIPs": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000001_westus2/providers/Microsoft.Network/publicIPAddresses/5dae7c66-59f9-4312-a604-abbb87a3f34b"}]}, "podCidr": "10.244.0.0/16", "serviceCidr": "10.0.0.0/16", "dnsServiceIP": "10.0.0.10", "dockerBridgeCidr": "172.17.0.1/16", "outboundType": "loadBalancer", "podCidrs": ["10.244.0.0/16"], "serviceCidrs": ["10.0.0.0/16"], "ipFamilies": ["IPv4"]}, @@ -2897,8 +2976,8 @@ interactions: Content-Type: - application/json ParameterSetName: - - --resource-group --name --location --enable-managed-identity --enable-azuremonitormetrics - --enable-windows-recording-rules --ssh-key-value --node-vm-size + - --resource-group --name --location --ssh-key-value --node-vm-size --enable-managed-identity + --enable-azuremonitormetrics --enable-windows-recording-rules --output User-Agent: - python/3.8.10 (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) AZURECLI/2.48.1 azuremonitormetrics.addon_put @@ -2911,8 +2990,8 @@ interactions: \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": \"Updating\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": \"1.25.6\",\n \"currentKubernetesVersion\": \"1.25.6\",\n \"dnsPrefix\": - \"cliakstest-clitestmfq3ejeu5-79a739\",\n \"fqdn\": \"cliakstest-clitestmfq3ejeu5-79a739-ajco4565.hcp.westus2.azmk8s.io\",\n - \ \"azurePortalFQDN\": \"cliakstest-clitestmfq3ejeu5-79a739-ajco4565.portal.hcp.westus2.azmk8s.io\",\n + \"cliakstest-clitestseoizsap2-79a739\",\n \"fqdn\": \"cliakstest-clitestseoizsap2-79a739-371v7pcg.hcp.westus2.azmk8s.io\",\n + \ \"azurePortalFQDN\": \"cliakstest-clitestseoizsap2-79a739-371v7pcg.portal.hcp.westus2.azmk8s.io\",\n \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": 3,\n \"vmSize\": \"standard_d2s_v3\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": \"Managed\",\n \"kubeletDiskType\": \"OS\",\n \"workloadRuntime\": @@ -2925,14 +3004,14 @@ interactions: \"Ubuntu\",\n \"nodeImageVersion\": \"AKSUbuntu-2204gen2containerd-202304.20.0\",\n \ \"upgradeSettings\": {},\n \"enableFIPS\": false\n }\n ],\n \ \"linuxProfile\": {\n \"adminUsername\": \"azureuser\",\n \"ssh\": - {\n \"publicKeys\": [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDefbF/frwrKTFwsnDpZDXLe23htkKgEB5U4e75sYVRKpw2XdlRBHqPElvgHbNc8LRvlna+n7/7ZghqpTmRy9Lv/MLA8m2/FhxmUKvDvo7hB+2E3HofW5nhILP01H1LnlmbxpGP/hMjm92g758m2eqc4GIhQmlDYB4gcteJDi5avWGLbxINmAXahyRwDy06wcS6rtS6ODDBcmNkP+yGUmT+BR4yxPV4ysooJpvegb8vBQS9cHre/9kB1VsEjy+uBmQqrktRnaSsWOpdd9G7urd7K66BKLyj7UxBkbXbZPnRyiNweaEdzueMd5PSxUyQPXpkNwwHWC19MfonR7DP+2F3 + {\n \"publicKeys\": [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC/BDSUJ8cOCQbYSYIvKVgl1kB77S+6EBfuYie1VtR0dmxrD5ej+l20VOlwE8qK8Bmzi+fHWNVbVCOQvUjmka7+a8BeWgvCSOPx7iM3qVbRV3tWs5YjGE+zZZ5Swp6IqvAMSF2kv6YVchDTLrRjPxVWVzybvem2RGD0MSokB9I86p3oh8aisvL2AWqimMvClPJ71OjRqvdn+ebpG5iLMY4POxXjIvMIy6eLCUn03FrPH8JBHbRUHD/SytA4/u//5D4KShEV6mTJgJXV2ouPPv9rSGyqYHPJVcfTvYuvVgw4dECb15h4uatDPapvHVqVr9E+eMy18/L+LjWRgoc2NkN9 azcli_aks_live_test@example.com\\n\"\n }\n ]\n }\n },\n \"servicePrincipalProfile\": {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \"nodeResourceGroup\": \"MC_clitest000001_cliakstest000001_westus2\",\n \"enableRBAC\": true,\n \ \"enablePodSecurityPolicy\": false,\n \"networkProfile\": {\n \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\": \"Standard\",\n \"loadBalancerProfile\": {\n \"managedOutboundIPs\": {\n \"count\": 1\n },\n \"effectiveOutboundIPs\": - [\n {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000001_westus2/providers/Microsoft.Network/publicIPAddresses/119700fd-511a-4eda-9fb8-907c63710f0b\"\n + [\n {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000001_westus2/providers/Microsoft.Network/publicIPAddresses/5dae7c66-59f9-4312-a604-abbb87a3f34b\"\n \ }\n ]\n },\n \"podCidr\": \"10.244.0.0/16\",\n \"serviceCidr\": \"10.0.0.0/16\",\n \"dnsServiceIP\": \"10.0.0.10\",\n \"dockerBridgeCidr\": \"172.17.0.1/16\",\n \"outboundType\": \"loadBalancer\",\n \"podCidrs\": @@ -2954,7 +3033,7 @@ interactions: \"Basic\",\n \"tier\": \"Free\"\n }\n }" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/d4a02c47-c033-48a6-86b5-949aede5ce72?api-version=2016-03-30 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/8616cc58-7fbb-4abe-ba5b-103ac7efe60d?api-version=2016-03-30 cache-control: - no-cache content-length: @@ -2962,7 +3041,7 @@ interactions: content-type: - application/json date: - - Tue, 09 May 2023 19:27:27 GMT + - Tue, 09 May 2023 21:50:25 GMT expires: - '-1' pragma: @@ -2971,10 +3050,14 @@ interactions: - nginx strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 200 message: OK @@ -3003,8 +3086,8 @@ interactions: \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": \"Updating\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": \"1.25.6\",\n \"currentKubernetesVersion\": \"1.25.6\",\n \"dnsPrefix\": - \"cliakstest-clitestmfq3ejeu5-79a739\",\n \"fqdn\": \"cliakstest-clitestmfq3ejeu5-79a739-ajco4565.hcp.westus2.azmk8s.io\",\n - \ \"azurePortalFQDN\": \"cliakstest-clitestmfq3ejeu5-79a739-ajco4565.portal.hcp.westus2.azmk8s.io\",\n + \"cliakstest-clitestseoizsap2-79a739\",\n \"fqdn\": \"cliakstest-clitestseoizsap2-79a739-371v7pcg.hcp.westus2.azmk8s.io\",\n + \ \"azurePortalFQDN\": \"cliakstest-clitestseoizsap2-79a739-371v7pcg.portal.hcp.westus2.azmk8s.io\",\n \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": 3,\n \"vmSize\": \"standard_d2s_v3\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": \"Managed\",\n \"kubeletDiskType\": \"OS\",\n \"workloadRuntime\": @@ -3018,7 +3101,7 @@ interactions: \"AKSUbuntu-2204gen2containerd-202304.20.0\",\n \"upgradeSettings\": {},\n \ \"enableFIPS\": false,\n \"networkProfile\": {}\n }\n ],\n \"linuxProfile\": {\n \"adminUsername\": \"azureuser\",\n \"ssh\": {\n \"publicKeys\": - [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDefbF/frwrKTFwsnDpZDXLe23htkKgEB5U4e75sYVRKpw2XdlRBHqPElvgHbNc8LRvlna+n7/7ZghqpTmRy9Lv/MLA8m2/FhxmUKvDvo7hB+2E3HofW5nhILP01H1LnlmbxpGP/hMjm92g758m2eqc4GIhQmlDYB4gcteJDi5avWGLbxINmAXahyRwDy06wcS6rtS6ODDBcmNkP+yGUmT+BR4yxPV4ysooJpvegb8vBQS9cHre/9kB1VsEjy+uBmQqrktRnaSsWOpdd9G7urd7K66BKLyj7UxBkbXbZPnRyiNweaEdzueMd5PSxUyQPXpkNwwHWC19MfonR7DP+2F3 + [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC/BDSUJ8cOCQbYSYIvKVgl1kB77S+6EBfuYie1VtR0dmxrD5ej+l20VOlwE8qK8Bmzi+fHWNVbVCOQvUjmka7+a8BeWgvCSOPx7iM3qVbRV3tWs5YjGE+zZZ5Swp6IqvAMSF2kv6YVchDTLrRjPxVWVzybvem2RGD0MSokB9I86p3oh8aisvL2AWqimMvClPJ71OjRqvdn+ebpG5iLMY4POxXjIvMIy6eLCUn03FrPH8JBHbRUHD/SytA4/u//5D4KShEV6mTJgJXV2ouPPv9rSGyqYHPJVcfTvYuvVgw4dECb15h4uatDPapvHVqVr9E+eMy18/L+LjWRgoc2NkN9 azcli_aks_live_test@example.com\\n\"\n }\n ]\n }\n },\n \"servicePrincipalProfile\": {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \"nodeResourceGroup\": \"MC_clitest000001_cliakstest000001_westus2\",\n \"enableRBAC\": true,\n @@ -3026,7 +3109,7 @@ interactions: \ \"networkProfile\": {\n \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\": \"Standard\",\n \"loadBalancerProfile\": {\n \"managedOutboundIPs\": {\n \"count\": 1\n },\n \"effectiveOutboundIPs\": [\n {\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000001_westus2/providers/Microsoft.Network/publicIPAddresses/119700fd-511a-4eda-9fb8-907c63710f0b\"\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000001_westus2/providers/Microsoft.Network/publicIPAddresses/5dae7c66-59f9-4312-a604-abbb87a3f34b\"\n \ }\n ],\n \"backendPoolType\": \"nodeIPConfiguration\"\n },\n \ \"podCidr\": \"10.244.0.0/16\",\n \"serviceCidr\": \"10.0.0.0/16\",\n \ \"dnsServiceIP\": \"10.0.0.10\",\n \"dockerBridgeCidr\": \"172.17.0.1/16\",\n @@ -3054,7 +3137,7 @@ interactions: content-type: - application/json date: - - Tue, 09 May 2023 19:27:28 GMT + - Tue, 09 May 2023 21:50:26 GMT expires: - '-1' pragma: @@ -3063,6 +3146,10 @@ interactions: - nginx strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding x-content-type-options: - nosniff status: @@ -3093,8 +3180,8 @@ interactions: \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": \"Updating\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": \"1.25.6\",\n \"currentKubernetesVersion\": \"1.25.6\",\n \"dnsPrefix\": - \"cliakstest-clitestmfq3ejeu5-79a739\",\n \"fqdn\": \"cliakstest-clitestmfq3ejeu5-79a739-ajco4565.hcp.westus2.azmk8s.io\",\n - \ \"azurePortalFQDN\": \"cliakstest-clitestmfq3ejeu5-79a739-ajco4565.portal.hcp.westus2.azmk8s.io\",\n + \"cliakstest-clitestseoizsap2-79a739\",\n \"fqdn\": \"cliakstest-clitestseoizsap2-79a739-371v7pcg.hcp.westus2.azmk8s.io\",\n + \ \"azurePortalFQDN\": \"cliakstest-clitestseoizsap2-79a739-371v7pcg.portal.hcp.westus2.azmk8s.io\",\n \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": 3,\n \"vmSize\": \"standard_d2s_v3\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": \"Managed\",\n \"kubeletDiskType\": \"OS\",\n \"workloadRuntime\": @@ -3108,7 +3195,7 @@ interactions: \"AKSUbuntu-2204gen2containerd-202304.20.0\",\n \"upgradeSettings\": {},\n \ \"enableFIPS\": false,\n \"networkProfile\": {}\n }\n ],\n \"linuxProfile\": {\n \"adminUsername\": \"azureuser\",\n \"ssh\": {\n \"publicKeys\": - [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDefbF/frwrKTFwsnDpZDXLe23htkKgEB5U4e75sYVRKpw2XdlRBHqPElvgHbNc8LRvlna+n7/7ZghqpTmRy9Lv/MLA8m2/FhxmUKvDvo7hB+2E3HofW5nhILP01H1LnlmbxpGP/hMjm92g758m2eqc4GIhQmlDYB4gcteJDi5avWGLbxINmAXahyRwDy06wcS6rtS6ODDBcmNkP+yGUmT+BR4yxPV4ysooJpvegb8vBQS9cHre/9kB1VsEjy+uBmQqrktRnaSsWOpdd9G7urd7K66BKLyj7UxBkbXbZPnRyiNweaEdzueMd5PSxUyQPXpkNwwHWC19MfonR7DP+2F3 + [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC/BDSUJ8cOCQbYSYIvKVgl1kB77S+6EBfuYie1VtR0dmxrD5ej+l20VOlwE8qK8Bmzi+fHWNVbVCOQvUjmka7+a8BeWgvCSOPx7iM3qVbRV3tWs5YjGE+zZZ5Swp6IqvAMSF2kv6YVchDTLrRjPxVWVzybvem2RGD0MSokB9I86p3oh8aisvL2AWqimMvClPJ71OjRqvdn+ebpG5iLMY4POxXjIvMIy6eLCUn03FrPH8JBHbRUHD/SytA4/u//5D4KShEV6mTJgJXV2ouPPv9rSGyqYHPJVcfTvYuvVgw4dECb15h4uatDPapvHVqVr9E+eMy18/L+LjWRgoc2NkN9 azcli_aks_live_test@example.com\\n\"\n }\n ]\n }\n },\n \"servicePrincipalProfile\": {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \"nodeResourceGroup\": \"MC_clitest000001_cliakstest000001_westus2\",\n \"enableRBAC\": true,\n @@ -3116,7 +3203,7 @@ interactions: \ \"networkProfile\": {\n \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\": \"Standard\",\n \"loadBalancerProfile\": {\n \"managedOutboundIPs\": {\n \"count\": 1\n },\n \"effectiveOutboundIPs\": [\n {\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000001_westus2/providers/Microsoft.Network/publicIPAddresses/119700fd-511a-4eda-9fb8-907c63710f0b\"\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000001_westus2/providers/Microsoft.Network/publicIPAddresses/5dae7c66-59f9-4312-a604-abbb87a3f34b\"\n \ }\n ],\n \"backendPoolType\": \"nodeIPConfiguration\"\n },\n \ \"podCidr\": \"10.244.0.0/16\",\n \"serviceCidr\": \"10.0.0.0/16\",\n \ \"dnsServiceIP\": \"10.0.0.10\",\n \"dockerBridgeCidr\": \"172.17.0.1/16\",\n @@ -3144,7 +3231,7 @@ interactions: content-type: - application/json date: - - Tue, 09 May 2023 19:28:28 GMT + - Tue, 09 May 2023 21:51:28 GMT expires: - '-1' pragma: @@ -3153,6 +3240,10 @@ interactions: - nginx strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding x-content-type-options: - nosniff status: @@ -3183,8 +3274,8 @@ interactions: \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": \"Updating\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": \"1.25.6\",\n \"currentKubernetesVersion\": \"1.25.6\",\n \"dnsPrefix\": - \"cliakstest-clitestmfq3ejeu5-79a739\",\n \"fqdn\": \"cliakstest-clitestmfq3ejeu5-79a739-ajco4565.hcp.westus2.azmk8s.io\",\n - \ \"azurePortalFQDN\": \"cliakstest-clitestmfq3ejeu5-79a739-ajco4565.portal.hcp.westus2.azmk8s.io\",\n + \"cliakstest-clitestseoizsap2-79a739\",\n \"fqdn\": \"cliakstest-clitestseoizsap2-79a739-371v7pcg.hcp.westus2.azmk8s.io\",\n + \ \"azurePortalFQDN\": \"cliakstest-clitestseoizsap2-79a739-371v7pcg.portal.hcp.westus2.azmk8s.io\",\n \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": 3,\n \"vmSize\": \"standard_d2s_v3\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": \"Managed\",\n \"kubeletDiskType\": \"OS\",\n \"workloadRuntime\": @@ -3198,7 +3289,7 @@ interactions: \"AKSUbuntu-2204gen2containerd-202304.20.0\",\n \"upgradeSettings\": {},\n \ \"enableFIPS\": false,\n \"networkProfile\": {}\n }\n ],\n \"linuxProfile\": {\n \"adminUsername\": \"azureuser\",\n \"ssh\": {\n \"publicKeys\": - [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDefbF/frwrKTFwsnDpZDXLe23htkKgEB5U4e75sYVRKpw2XdlRBHqPElvgHbNc8LRvlna+n7/7ZghqpTmRy9Lv/MLA8m2/FhxmUKvDvo7hB+2E3HofW5nhILP01H1LnlmbxpGP/hMjm92g758m2eqc4GIhQmlDYB4gcteJDi5avWGLbxINmAXahyRwDy06wcS6rtS6ODDBcmNkP+yGUmT+BR4yxPV4ysooJpvegb8vBQS9cHre/9kB1VsEjy+uBmQqrktRnaSsWOpdd9G7urd7K66BKLyj7UxBkbXbZPnRyiNweaEdzueMd5PSxUyQPXpkNwwHWC19MfonR7DP+2F3 + [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC/BDSUJ8cOCQbYSYIvKVgl1kB77S+6EBfuYie1VtR0dmxrD5ej+l20VOlwE8qK8Bmzi+fHWNVbVCOQvUjmka7+a8BeWgvCSOPx7iM3qVbRV3tWs5YjGE+zZZ5Swp6IqvAMSF2kv6YVchDTLrRjPxVWVzybvem2RGD0MSokB9I86p3oh8aisvL2AWqimMvClPJ71OjRqvdn+ebpG5iLMY4POxXjIvMIy6eLCUn03FrPH8JBHbRUHD/SytA4/u//5D4KShEV6mTJgJXV2ouPPv9rSGyqYHPJVcfTvYuvVgw4dECb15h4uatDPapvHVqVr9E+eMy18/L+LjWRgoc2NkN9 azcli_aks_live_test@example.com\\n\"\n }\n ]\n }\n },\n \"servicePrincipalProfile\": {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \"nodeResourceGroup\": \"MC_clitest000001_cliakstest000001_westus2\",\n \"enableRBAC\": true,\n @@ -3206,7 +3297,7 @@ interactions: \ \"networkProfile\": {\n \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\": \"Standard\",\n \"loadBalancerProfile\": {\n \"managedOutboundIPs\": {\n \"count\": 1\n },\n \"effectiveOutboundIPs\": [\n {\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000001_westus2/providers/Microsoft.Network/publicIPAddresses/119700fd-511a-4eda-9fb8-907c63710f0b\"\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000001_westus2/providers/Microsoft.Network/publicIPAddresses/5dae7c66-59f9-4312-a604-abbb87a3f34b\"\n \ }\n ],\n \"backendPoolType\": \"nodeIPConfiguration\"\n },\n \ \"podCidr\": \"10.244.0.0/16\",\n \"serviceCidr\": \"10.0.0.0/16\",\n \ \"dnsServiceIP\": \"10.0.0.10\",\n \"dockerBridgeCidr\": \"172.17.0.1/16\",\n @@ -3234,7 +3325,7 @@ interactions: content-type: - application/json date: - - Tue, 09 May 2023 19:29:30 GMT + - Tue, 09 May 2023 21:52:28 GMT expires: - '-1' pragma: @@ -3243,6 +3334,10 @@ interactions: - nginx strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding x-content-type-options: - nosniff status: @@ -3273,8 +3368,8 @@ interactions: \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": \"Succeeded\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": \"1.25.6\",\n \"currentKubernetesVersion\": \"1.25.6\",\n \"dnsPrefix\": - \"cliakstest-clitestmfq3ejeu5-79a739\",\n \"fqdn\": \"cliakstest-clitestmfq3ejeu5-79a739-ajco4565.hcp.westus2.azmk8s.io\",\n - \ \"azurePortalFQDN\": \"cliakstest-clitestmfq3ejeu5-79a739-ajco4565.portal.hcp.westus2.azmk8s.io\",\n + \"cliakstest-clitestseoizsap2-79a739\",\n \"fqdn\": \"cliakstest-clitestseoizsap2-79a739-371v7pcg.hcp.westus2.azmk8s.io\",\n + \ \"azurePortalFQDN\": \"cliakstest-clitestseoizsap2-79a739-371v7pcg.portal.hcp.westus2.azmk8s.io\",\n \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": 3,\n \"vmSize\": \"standard_d2s_v3\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": \"Managed\",\n \"kubeletDiskType\": \"OS\",\n \"workloadRuntime\": @@ -3288,7 +3383,7 @@ interactions: \"AKSUbuntu-2204gen2containerd-202304.20.0\",\n \"upgradeSettings\": {},\n \ \"enableFIPS\": false,\n \"networkProfile\": {}\n }\n ],\n \"linuxProfile\": {\n \"adminUsername\": \"azureuser\",\n \"ssh\": {\n \"publicKeys\": - [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDefbF/frwrKTFwsnDpZDXLe23htkKgEB5U4e75sYVRKpw2XdlRBHqPElvgHbNc8LRvlna+n7/7ZghqpTmRy9Lv/MLA8m2/FhxmUKvDvo7hB+2E3HofW5nhILP01H1LnlmbxpGP/hMjm92g758m2eqc4GIhQmlDYB4gcteJDi5avWGLbxINmAXahyRwDy06wcS6rtS6ODDBcmNkP+yGUmT+BR4yxPV4ysooJpvegb8vBQS9cHre/9kB1VsEjy+uBmQqrktRnaSsWOpdd9G7urd7K66BKLyj7UxBkbXbZPnRyiNweaEdzueMd5PSxUyQPXpkNwwHWC19MfonR7DP+2F3 + [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC/BDSUJ8cOCQbYSYIvKVgl1kB77S+6EBfuYie1VtR0dmxrD5ej+l20VOlwE8qK8Bmzi+fHWNVbVCOQvUjmka7+a8BeWgvCSOPx7iM3qVbRV3tWs5YjGE+zZZ5Swp6IqvAMSF2kv6YVchDTLrRjPxVWVzybvem2RGD0MSokB9I86p3oh8aisvL2AWqimMvClPJ71OjRqvdn+ebpG5iLMY4POxXjIvMIy6eLCUn03FrPH8JBHbRUHD/SytA4/u//5D4KShEV6mTJgJXV2ouPPv9rSGyqYHPJVcfTvYuvVgw4dECb15h4uatDPapvHVqVr9E+eMy18/L+LjWRgoc2NkN9 azcli_aks_live_test@example.com\\n\"\n }\n ]\n }\n },\n \"servicePrincipalProfile\": {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \"nodeResourceGroup\": \"MC_clitest000001_cliakstest000001_westus2\",\n \"enableRBAC\": true,\n @@ -3296,7 +3391,7 @@ interactions: \ \"networkProfile\": {\n \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\": \"Standard\",\n \"loadBalancerProfile\": {\n \"managedOutboundIPs\": {\n \"count\": 1\n },\n \"effectiveOutboundIPs\": [\n {\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000001_westus2/providers/Microsoft.Network/publicIPAddresses/119700fd-511a-4eda-9fb8-907c63710f0b\"\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000001_westus2/providers/Microsoft.Network/publicIPAddresses/5dae7c66-59f9-4312-a604-abbb87a3f34b\"\n \ }\n ],\n \"backendPoolType\": \"nodeIPConfiguration\"\n },\n \ \"podCidr\": \"10.244.0.0/16\",\n \"serviceCidr\": \"10.0.0.0/16\",\n \ \"dnsServiceIP\": \"10.0.0.10\",\n \"dockerBridgeCidr\": \"172.17.0.1/16\",\n @@ -3324,7 +3419,7 @@ interactions: content-type: - application/json date: - - Tue, 09 May 2023 19:30:31 GMT + - Tue, 09 May 2023 21:53:29 GMT expires: - '-1' pragma: @@ -3333,6 +3428,10 @@ interactions: - nginx strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding x-content-type-options: - nosniff status: @@ -3350,7 +3449,7 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -n + - -g -n --output User-Agent: - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/22.0.0b Python/3.8.10 (Linux-5.15.0-1037-azure-x86_64-with-glibc2.29) @@ -3363,8 +3462,8 @@ interactions: \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": \"Succeeded\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": \"1.25.6\",\n \"currentKubernetesVersion\": \"1.25.6\",\n \"dnsPrefix\": - \"cliakstest-clitestmfq3ejeu5-79a739\",\n \"fqdn\": \"cliakstest-clitestmfq3ejeu5-79a739-ajco4565.hcp.westus2.azmk8s.io\",\n - \ \"azurePortalFQDN\": \"cliakstest-clitestmfq3ejeu5-79a739-ajco4565.portal.hcp.westus2.azmk8s.io\",\n + \"cliakstest-clitestseoizsap2-79a739\",\n \"fqdn\": \"cliakstest-clitestseoizsap2-79a739-371v7pcg.hcp.westus2.azmk8s.io\",\n + \ \"azurePortalFQDN\": \"cliakstest-clitestseoizsap2-79a739-371v7pcg.portal.hcp.westus2.azmk8s.io\",\n \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": 3,\n \"vmSize\": \"standard_d2s_v3\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": \"Managed\",\n \"kubeletDiskType\": \"OS\",\n \"workloadRuntime\": @@ -3378,7 +3477,7 @@ interactions: \"AKSUbuntu-2204gen2containerd-202304.20.0\",\n \"upgradeSettings\": {},\n \ \"enableFIPS\": false,\n \"networkProfile\": {}\n }\n ],\n \"linuxProfile\": {\n \"adminUsername\": \"azureuser\",\n \"ssh\": {\n \"publicKeys\": - [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDefbF/frwrKTFwsnDpZDXLe23htkKgEB5U4e75sYVRKpw2XdlRBHqPElvgHbNc8LRvlna+n7/7ZghqpTmRy9Lv/MLA8m2/FhxmUKvDvo7hB+2E3HofW5nhILP01H1LnlmbxpGP/hMjm92g758m2eqc4GIhQmlDYB4gcteJDi5avWGLbxINmAXahyRwDy06wcS6rtS6ODDBcmNkP+yGUmT+BR4yxPV4ysooJpvegb8vBQS9cHre/9kB1VsEjy+uBmQqrktRnaSsWOpdd9G7urd7K66BKLyj7UxBkbXbZPnRyiNweaEdzueMd5PSxUyQPXpkNwwHWC19MfonR7DP+2F3 + [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC/BDSUJ8cOCQbYSYIvKVgl1kB77S+6EBfuYie1VtR0dmxrD5ej+l20VOlwE8qK8Bmzi+fHWNVbVCOQvUjmka7+a8BeWgvCSOPx7iM3qVbRV3tWs5YjGE+zZZ5Swp6IqvAMSF2kv6YVchDTLrRjPxVWVzybvem2RGD0MSokB9I86p3oh8aisvL2AWqimMvClPJ71OjRqvdn+ebpG5iLMY4POxXjIvMIy6eLCUn03FrPH8JBHbRUHD/SytA4/u//5D4KShEV6mTJgJXV2ouPPv9rSGyqYHPJVcfTvYuvVgw4dECb15h4uatDPapvHVqVr9E+eMy18/L+LjWRgoc2NkN9 azcli_aks_live_test@example.com\\n\"\n }\n ]\n }\n },\n \"servicePrincipalProfile\": {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \"nodeResourceGroup\": \"MC_clitest000001_cliakstest000001_westus2\",\n \"enableRBAC\": true,\n @@ -3386,7 +3485,7 @@ interactions: \ \"networkProfile\": {\n \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\": \"Standard\",\n \"loadBalancerProfile\": {\n \"managedOutboundIPs\": {\n \"count\": 1\n },\n \"effectiveOutboundIPs\": [\n {\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000001_westus2/providers/Microsoft.Network/publicIPAddresses/119700fd-511a-4eda-9fb8-907c63710f0b\"\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000001_westus2/providers/Microsoft.Network/publicIPAddresses/5dae7c66-59f9-4312-a604-abbb87a3f34b\"\n \ }\n ],\n \"backendPoolType\": \"nodeIPConfiguration\"\n },\n \ \"podCidr\": \"10.244.0.0/16\",\n \"serviceCidr\": \"10.0.0.0/16\",\n \ \"dnsServiceIP\": \"10.0.0.10\",\n \"dockerBridgeCidr\": \"172.17.0.1/16\",\n @@ -3414,7 +3513,7 @@ interactions: content-type: - application/json date: - - Tue, 09 May 2023 19:30:32 GMT + - Tue, 09 May 2023 21:53:30 GMT expires: - '-1' pragma: @@ -3457,17 +3556,17 @@ interactions: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/1b2fb6a7-a8d8-46e2-9de7-29254397657a?api-version=2016-03-30 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/1e472810-1db0-4d9a-9b27-9dfb1770e4a3?api-version=2016-03-30 cache-control: - no-cache content-length: - '0' date: - - Tue, 09 May 2023 19:30:33 GMT + - Tue, 09 May 2023 21:53:31 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operationresults/1b2fb6a7-a8d8-46e2-9de7-29254397657a?api-version=2016-03-30 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operationresults/1e472810-1db0-4d9a-9b27-9dfb1770e4a3?api-version=2016-03-30 pragma: - no-cache server: From 378f5f7767544d277782198587e06d964220c353 Mon Sep 17 00:00:00 2001 From: Kaveesh Dubey Date: Tue, 9 May 2023 16:36:57 -0700 Subject: [PATCH 15/27] . --- .../azext_aks_preview/tests/latest/test_aks_commands.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/aks-preview/azext_aks_preview/tests/latest/test_aks_commands.py b/src/aks-preview/azext_aks_preview/tests/latest/test_aks_commands.py index 4e78908dbe4..58f5a6f654c 100644 --- a/src/aks-preview/azext_aks_preview/tests/latest/test_aks_commands.py +++ b/src/aks-preview/azext_aks_preview/tests/latest/test_aks_commands.py @@ -6365,7 +6365,7 @@ def test_aks_update_with_defender(self, resource_group, resource_group_location) 'aks delete -g {resource_group} -n {name} --yes --no-wait', checks=[self.is_empty()]) @AllowLargeResponse() - @AKSCustomResourceGroupPreparer(random_name_length=17, name_prefix='clitest', location='centraluseuap') + @AKSCustomResourceGroupPreparer(random_name_length=17, name_prefix='clitest', location='westus2') def test_aks_create_with_azuremonitormetrics(self, resource_group, resource_group_location): # reset the count so in replay mode the random names will start with 0 self.test_resources_count = 0 @@ -6412,9 +6412,9 @@ def test_aks_create_with_azuremonitormetrics(self, resource_group, resource_grou ]) @AllowLargeResponse() - @AKSCustomResourceGroupPreparer(random_name_length=16, name_prefix='clitest', location='westus2') + @AKSCustomResourceGroupPreparer(random_name_length=17, name_prefix='clitest', location='westus2') def test_aks_update_with_azuremonitormetrics(self, resource_group, resource_group_location): - aks_name = self.create_random_name('cliakstest', 15) + aks_name = self.create_random_name('cliakstest', 16) node_vm_size = 'standard_d2s_v3' self.kwargs.update({ 'resource_group': resource_group, From b74574b91d097a279ed9b2b3d6ed01bd148029d2 Mon Sep 17 00:00:00 2001 From: Kaveesh Dubey Date: Tue, 9 May 2023 18:31:00 -0700 Subject: [PATCH 16/27] merge from upstream/main --- src/aks-preview/HISTORY.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/aks-preview/HISTORY.rst b/src/aks-preview/HISTORY.rst index dbc3aa0f178..30bad47711f 100644 --- a/src/aks-preview/HISTORY.rst +++ b/src/aks-preview/HISTORY.rst @@ -11,12 +11,12 @@ To release a new version, please select a new version number (usually plus 1 to Pending +++++++ -* Vendor new SDK and bump API version to 2023-03-02-preview. -* fix: don't use current kube_proxy_config on UPDATE 0.5.138 +++++++ * GA update for Azure Monitor Metrics Addon (managed prometheus metrics) for AKS +* Vendor new SDK and bump API version to 2023-03-02-preview. +* fix: don't use current kube_proxy_config on UPDATE 0.5.137 +++++++ From bce71b54a0737d99c67d37df448f1be6cad8ce2f Mon Sep 17 00:00:00 2001 From: Kaveesh Dubey Date: Tue, 9 May 2023 20:29:07 -0700 Subject: [PATCH 17/27] fix unit test --- .../azuremonitorprofile.py | 25 +++-- .../azuremonitormetrics/dc/delete.py | 14 +-- src/aks-preview/azext_aks_preview/custom.py | 36 +------ .../managed_cluster_decorator.py | 101 +++++++++++++++++- 4 files changed, 125 insertions(+), 51 deletions(-) diff --git a/src/aks-preview/azext_aks_preview/azuremonitormetrics/azuremonitorprofile.py b/src/aks-preview/azext_aks_preview/azuremonitormetrics/azuremonitorprofile.py index 1f01a68f0e1..3a03c3a52e7 100644 --- a/src/aks-preview/azext_aks_preview/azuremonitormetrics/azuremonitorprofile.py +++ b/src/aks-preview/azext_aks_preview/azuremonitormetrics/azuremonitorprofile.py @@ -16,7 +16,16 @@ from azure.cli.core.azclierror import InvalidArgumentValueError -def link_azure_monitor_profile_artifacts(cmd, client, cluster_subscription, cluster_resource_group_name, cluster_name, cluster_region, raw_parameters, create_flow): +# pylint: disable=line-too-long +def link_azure_monitor_profile_artifacts( + cmd, + cluster_subscription, + cluster_resource_group_name, + cluster_name, + cluster_region, + raw_parameters, + create_flow +): # MAC creation if required azure_monitor_workspace_resource_id, azure_monitor_workspace_location = get_azure_monitor_workspace_resource(cmd, cluster_subscription, cluster_region, raw_parameters) # DCE creation @@ -34,18 +43,19 @@ def link_azure_monitor_profile_artifacts(cmd, client, cluster_subscription, clus addon_put(cmd, cluster_subscription, cluster_resource_group_name, cluster_name) -def unlink_azure_monitor_profile_artifacts(cmd, cluster_subscription, cluster_resource_group_name, cluster_name, cluster_region): +# pylint: disable=line-too-long +def unlink_azure_monitor_profile_artifacts(cmd, cluster_subscription, cluster_resource_group_name, cluster_name): # Remove DC* if prometheus is enabled dc_objects_list = get_dc_objects_list(cmd, cluster_subscription, cluster_resource_group_name, cluster_name) delete_dc_objects_if_prometheus_enabled(cmd, dc_objects_list, cluster_subscription, cluster_resource_group_name, cluster_name) - # Delete rules (Conflict({"error":{"code":"InvalidResourceLocation","message":"The resource 'NodeRecordingRulesRuleGroup-' already exists in location 'eastus2' in resource group ''. A resource with the same name cannot be created in location 'eastus'. Please select a new resource name."}}) + # Delete rules (Conflict({"error":{"code":"InvalidResourceLocation","message":"The resource 'NodeRecordingRulesRuleGroup-' already exists in location 'eastus2' in resource group ''. + # A resource with the same name cannot be created in location 'eastus'. Please select a new resource name."}}) delete_rules(cmd, cluster_subscription, cluster_resource_group_name, cluster_name) # pylint: disable=too-many-locals,too-many-branches,too-many-statements,line-too-long def ensure_azure_monitor_profile_prerequisites( cmd, - client, cluster_subscription, cluster_resource_group_name, cluster_name, @@ -64,13 +74,12 @@ def ensure_azure_monitor_profile_prerequisites( if grafana_resource_id != "": raise InvalidArgumentValueError("Azure US Government cloud does not support Azure Managed Grarfana yet. Please follow this documenation for enabling it via the public cloud : aka.ms/ama-grafana-link-ff") - if (remove_azuremonitormetrics): + if remove_azuremonitormetrics: unlink_azure_monitor_profile_artifacts( cmd, cluster_subscription, cluster_resource_group_name, - cluster_name, - cluster_region + cluster_name ) else: # Check if already onboarded @@ -80,7 +89,6 @@ def ensure_azure_monitor_profile_prerequisites( rp_registrations(cmd, cluster_subscription) link_azure_monitor_profile_artifacts( cmd, - client, cluster_subscription, cluster_resource_group_name, cluster_name, @@ -88,4 +96,3 @@ def ensure_azure_monitor_profile_prerequisites( raw_parameters, create_flow ) - return diff --git a/src/aks-preview/azext_aks_preview/azuremonitormetrics/dc/delete.py b/src/aks-preview/azext_aks_preview/azuremonitormetrics/dc/delete.py index c597199ae68..a844d3ca7d6 100644 --- a/src/aks-preview/azext_aks_preview/azuremonitormetrics/dc/delete.py +++ b/src/aks-preview/azext_aks_preview/azuremonitormetrics/dc/delete.py @@ -16,18 +16,18 @@ def get_dce_from_dcr(cmd, dcrId): data = json.loads(r.text) if 'dataCollectionEndpointId' in data['properties']: return str(data['properties']['dataCollectionEndpointId']) - else: - return "" + return "" def get_dc_objects_list(cmd, cluster_subscription, cluster_resource_group_name, cluster_name): try: from azure.cli.core.util import send_raw_request - cluster_resource_id = "/subscriptions/{0}/resourceGroups/{1}/providers/Microsoft.ContainerService/managedClusters/{2}".format( - cluster_subscription, - cluster_resource_group_name, - cluster_name - ) + cluster_resource_id = \ + "/subscriptions/{0}/resourceGroups/{1}/providers/Microsoft.ContainerService/managedClusters/{2}".format( + cluster_subscription, + cluster_resource_group_name, + cluster_name + ) armendpoint = cmd.cli_ctx.cloud.endpoints.resource_manager association_url = f"{armendpoint}{cluster_resource_id}/providers/Microsoft.Insights/dataCollectionRuleAssociations?api-version={DC_API}" headers = ['User-Agent=azuremonitormetrics.get_dcra'] diff --git a/src/aks-preview/azext_aks_preview/custom.py b/src/aks-preview/azext_aks_preview/custom.py index 2b3db93f554..f855d3089fa 100644 --- a/src/aks-preview/azext_aks_preview/custom.py +++ b/src/aks-preview/azext_aks_preview/custom.py @@ -77,9 +77,6 @@ from azext_aks_preview.maintenanceconfiguration import ( aks_maintenanceconfiguration_update_internal, ) -from azext_aks_preview.azuremonitormetrics.azuremonitorprofile import ( - ensure_azure_monitor_profile_prerequisites -) from azure.cli.command_modules.acs._validators import ( extract_comma_separated_string, ) @@ -619,37 +616,8 @@ def aks_create( # exit gracefully return None - try: - # send request to create a real managed cluster - # send request - poller = client.begin_create_or_update( - resource_group_name=resource_group_name, - resource_name=name, - parameters=mc, - headers=get_aks_custom_headers(), - ) - aks_cluster = LongRunningOperation(cmd.cli_ctx)(poller) - # aks_cluster = aks_create_decorator.create_mc(mc) - - # Post processing for Azure Monitor Metrics (Managed Prometheus) addon as - # DCRA creation depends on the cluster creation - if raw_parameters.get("enable_azuremonitormetrics"): - print("Cluster creation successful, enabling Azure Monitor Metrics addon...") - ensure_azure_monitor_profile_prerequisites( - cmd, - client, - get_subscription_id(cmd.cli_ctx), - resource_group_name, - name, - location, - raw_parameters, - False, - True) - print("Success") - - return aks_cluster - except: - return mc + aks_cluster = aks_create_decorator.create_mc(mc) + return aks_cluster # pylint: disable=too-many-locals diff --git a/src/aks-preview/azext_aks_preview/managed_cluster_decorator.py b/src/aks-preview/azext_aks_preview/managed_cluster_decorator.py index e2893bf8134..8cac08bda72 100644 --- a/src/aks-preview/azext_aks_preview/managed_cluster_decorator.py +++ b/src/aks-preview/azext_aks_preview/managed_cluster_decorator.py @@ -156,6 +156,9 @@ def external_functions(self) -> SimpleNamespace: if self.__external_functions is None: external_functions = vars(super().external_functions) external_functions["get_cluster_snapshot_by_snapshot_id"] = get_cluster_snapshot_by_snapshot_id + external_functions[ + "ensure_azure_monitor_profile_prerequisites" + ] = ensure_azure_monitor_profile_prerequisites self.__external_functions = SimpleNamespace(**external_functions) return self.__external_functions @@ -2550,6 +2553,7 @@ def set_up_azure_monitor_profile(self, mc: ManagedCluster) -> ManagedCluster: mc.azure_monitor_profile.metrics.kube_state_metrics = self.models.ManagedClusterAzureMonitorProfileKubeStateMetrics( # pylint:disable=line-too-long metric_labels_allowlist=str(ksm_metric_labels_allow_list), metric_annotations_allow_list=str(ksm_metric_annotations_allow_list)) + self.context.set_intermediate("azuremonitormetrics_addon_enabled", True, overwrite_exists=True) return mc def set_up_auto_upgrade_profile(self, mc: ManagedCluster) -> ManagedCluster: @@ -2640,6 +2644,102 @@ def construct_mc_profile_preview(self, bypass_restore_defaults: bool = False) -> mc = self._restore_defaults_in_mc(mc) return mc + def postprocessing_after_mc_created(self, cluster: ManagedCluster) -> None: + """Postprocessing performed after the cluster is created. + + :return: None + """ + # monitoring addon + monitoring_addon_enabled = self.context.get_intermediate("monitoring_addon_enabled", default_value=False) + if monitoring_addon_enabled: + enable_msi_auth_for_monitoring = self.context.get_enable_msi_auth_for_monitoring() + if not enable_msi_auth_for_monitoring: + # add cluster spn/msi Monitoring Metrics Publisher role assignment to publish metrics to MDM + # mdm metrics is supported only in azure public cloud, so add the role assignment only in this cloud + cloud_name = self.cmd.cli_ctx.cloud.name + if cloud_name.lower() == "azurecloud": + from msrestazure.tools import resource_id + + cluster_resource_id = resource_id( + subscription=self.context.get_subscription_id(), + resource_group=self.context.get_resource_group_name(), + namespace="Microsoft.ContainerService", + type="managedClusters", + name=self.context.get_name(), + ) + self.context.external_functions.add_monitoring_role_assignment( + cluster, cluster_resource_id, self.cmd + ) + elif self.context.raw_param.get("enable_addons") is not None: + # Create the DCR Association here + addon_consts = self.context.get_addon_consts() + CONST_MONITORING_ADDON_NAME = addon_consts.get("CONST_MONITORING_ADDON_NAME") + self.context.external_functions.ensure_container_insights_for_monitoring( + self.cmd, + cluster.addon_profiles[CONST_MONITORING_ADDON_NAME], + self.context.get_subscription_id(), + self.context.get_resource_group_name(), + self.context.get_name(), + self.context.get_location(), + remove_monitoring=False, + aad_route=self.context.get_enable_msi_auth_for_monitoring(), + create_dcr=False, + create_dcra=True, + enable_syslog=self.context.get_enable_syslog(), + ) + + # ingress appgw addon + ingress_appgw_addon_enabled = self.context.get_intermediate("ingress_appgw_addon_enabled", default_value=False) + if ingress_appgw_addon_enabled: + self.context.external_functions.add_ingress_appgw_addon_role_assignment(cluster, self.cmd) + + # virtual node addon + virtual_node_addon_enabled = self.context.get_intermediate("virtual_node_addon_enabled", default_value=False) + if virtual_node_addon_enabled: + self.context.external_functions.add_virtual_node_role_assignment( + self.cmd, cluster, self.context.get_vnet_subnet_id() + ) + + # attach acr + enable_managed_identity = self.context.get_enable_managed_identity() + attach_acr = self.context.get_attach_acr() + if enable_managed_identity and attach_acr: + # Attach ACR to cluster enabled managed identity + if cluster.identity_profile is None or cluster.identity_profile["kubeletidentity"] is None: + logger.warning( + "Your cluster is successfully created, but we failed to attach " + "acr to it, you can manually grant permission to the identity " + "named -agentpool in MC_ resource group to give " + "it permission to pull from ACR." + ) + else: + kubelet_identity_object_id = cluster.identity_profile["kubeletidentity"].object_id + self.context.external_functions.ensure_aks_acr( + self.cmd, + assignee=kubelet_identity_object_id, + acr_name_or_id=attach_acr, + subscription_id=self.context.get_subscription_id(), + is_service_principal=False, + ) + + # azure monitor metrics addon (v2) + azuremonitormetrics_addon_enabled = self.context.get_intermediate( + "azuremonitormetrics_addon_enabled", + default_value=False + ) + if azuremonitormetrics_addon_enabled: + # Create the DC* objects, AMW, recording rules and grafana link here + self.context.external_functions.ensure_azure_monitor_profile_prerequisites( + self.cmd, + self.context.get_subscription_id(), + self.context.get_resource_group_name(), + self.context.get_name(), + self.context.get_location(), + self.__raw_parameters, + self.context.get_disable_azure_monitor_metrics(), + True + ) + class AKSPreviewManagedClusterUpdateDecorator(AKSManagedClusterUpdateDecorator): def __init__( @@ -3057,7 +3157,6 @@ def update_azure_monitor_profile(self, mc: ManagedCluster) -> ManagedCluster: if (self.context.raw_param.get("enable_azuremonitormetrics") or self.context.raw_param.get("disable_azuremonitormetrics")): ensure_azure_monitor_profile_prerequisites( self.cmd, - self.client, self.context.get_subscription_id(), self.context.get_resource_group_name(), self.context.get_name(), From cd4fc17a3b07ba85fec93587c95a7921956a9c17 Mon Sep 17 00:00:00 2001 From: Kaveesh Dubey Date: Tue, 9 May 2023 20:54:29 -0700 Subject: [PATCH 18/27] remove uneeded print --- .../azuremonitormetrics/recordingrules/create.py | 1 - src/aks-preview/azext_aks_preview/custom.py | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/aks-preview/azext_aks_preview/azuremonitormetrics/recordingrules/create.py b/src/aks-preview/azext_aks_preview/azuremonitormetrics/recordingrules/create.py index c6e8892b475..2ab9dba0d7e 100644 --- a/src/aks-preview/azext_aks_preview/azuremonitormetrics/recordingrules/create.py +++ b/src/aks-preview/azext_aks_preview/azuremonitormetrics/recordingrules/create.py @@ -44,7 +44,6 @@ def put_rules(cmd, default_rule_group_id, default_rule_group_name, mac_region, a headers = ['User-Agent=azuremonitormetrics.put_rules.' + default_rule_group_name] send_raw_request(cmd.cli_ctx, "PUT", url, body=body, headers=headers) - print(f"Created rule group ({rule_group_text}) : {default_rule_group_id}") break except CLIError as e: error = e diff --git a/src/aks-preview/azext_aks_preview/custom.py b/src/aks-preview/azext_aks_preview/custom.py index f855d3089fa..82eecb6a694 100644 --- a/src/aks-preview/azext_aks_preview/custom.py +++ b/src/aks-preview/azext_aks_preview/custom.py @@ -616,8 +616,8 @@ def aks_create( # exit gracefully return None - aks_cluster = aks_create_decorator.create_mc(mc) - return aks_cluster + # send request to create a real managed cluster + return aks_create_decorator.create_mc(mc) # pylint: disable=too-many-locals From ebfb1fafe5a5e99e7af71b90d14f6ba37e7a0f8f Mon Sep 17 00:00:00 2001 From: Kaveesh Dubey Date: Tue, 9 May 2023 21:21:56 -0700 Subject: [PATCH 19/27] unused text --- .../azuremonitormetrics/recordingrules/create.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/aks-preview/azext_aks_preview/azuremonitormetrics/recordingrules/create.py b/src/aks-preview/azext_aks_preview/azuremonitormetrics/recordingrules/create.py index 2ab9dba0d7e..ade47e2b85c 100644 --- a/src/aks-preview/azext_aks_preview/azuremonitormetrics/recordingrules/create.py +++ b/src/aks-preview/azext_aks_preview/azuremonitormetrics/recordingrules/create.py @@ -36,9 +36,6 @@ def put_rules(cmd, default_rule_group_id, default_rule_group_name, mac_region, a "rules": default_rules_template[i]["properties"]["rulesArmTemplate"]["resources"][0]["properties"]["rules"] } }) - rule_group_text = "Disabled" - if enable_rules is True: - rule_group_text = "Enabled" for _ in range(3): try: headers = ['User-Agent=azuremonitormetrics.put_rules.' + default_rule_group_name] From 0cad007829caabe662a7c9d1b565308786d76cbe Mon Sep 17 00:00:00 2001 From: bragi92 Date: Tue, 9 May 2023 21:49:50 -0700 Subject: [PATCH 20/27] Update src/aks-preview/azext_aks_preview/azuremonitormetrics/amg/link.py Co-authored-by: Yan Zhu <105691024+yanzhudd@users.noreply.github.com> --- .../azext_aks_preview/azuremonitormetrics/amg/link.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aks-preview/azext_aks_preview/azuremonitormetrics/amg/link.py b/src/aks-preview/azext_aks_preview/azuremonitormetrics/amg/link.py index 2923f7c7ace..af5f5ba64b1 100644 --- a/src/aks-preview/azext_aks_preview/azuremonitormetrics/amg/link.py +++ b/src/aks-preview/azext_aks_preview/azuremonitormetrics/amg/link.py @@ -63,7 +63,7 @@ def link_grafana_instance(cmd, raw_parameters, azure_monitor_workspace_resource_ if "azureMonitorWorkspaceIntegrations" not in json.dumps(targetGrafanaArmPayload): targetGrafanaArmPayload["properties"]["grafanaIntegrations"]["azureMonitorWorkspaceIntegrations"] = [] amwIntegrations = targetGrafanaArmPayload["properties"]["grafanaIntegrations"]["azureMonitorWorkspaceIntegrations"] - if amwIntegrations != [] and azure_monitor_workspace_resource_id in json.dumps(amwIntegrations).lower(): + if amwIntegrations and azure_monitor_workspace_resource_id in json.dumps(amwIntegrations).lower(): return GrafanaLink.ALREADYPRESENT try: grafanaURI = "{0}{1}?api-version={2}".format( From 722f398952a6750be4b9320c478fd209b1766e8b Mon Sep 17 00:00:00 2001 From: Kaveesh Dubey Date: Tue, 9 May 2023 23:13:17 -0700 Subject: [PATCH 21/27] trying 600 sec wait --- .../azext_aks_preview/tests/latest/test_aks_commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aks-preview/azext_aks_preview/tests/latest/test_aks_commands.py b/src/aks-preview/azext_aks_preview/tests/latest/test_aks_commands.py index f691cb56427..73a91d001db 100644 --- a/src/aks-preview/azext_aks_preview/tests/latest/test_aks_commands.py +++ b/src/aks-preview/azext_aks_preview/tests/latest/test_aks_commands.py @@ -6394,7 +6394,7 @@ def test_aks_create_with_azuremonitormetrics(self, resource_group, resource_grou # have now been created. wait_cmd = ' '.join([ 'aks', 'wait', '--resource-group={resource_group}', '--name={name}', '--updated', - '--interval 60', '--timeout 300', + '--interval 60', '--timeout 600', ]) self.cmd(wait_cmd, checks=[ self.is_empty(), From 1340b8c127ed94e43209e0a099b736073cceff95 Mon Sep 17 00:00:00 2001 From: Kaveesh Dubey Date: Wed, 10 May 2023 00:07:30 -0700 Subject: [PATCH 22/27] check_is_postprocessing_required --- .../managed_cluster_decorator.py | 56 +++++++++++++++++++ .../tests/latest/test_aks_commands.py | 2 +- 2 files changed, 57 insertions(+), 1 deletion(-) diff --git a/src/aks-preview/azext_aks_preview/managed_cluster_decorator.py b/src/aks-preview/azext_aks_preview/managed_cluster_decorator.py index 8cac08bda72..45cdb3c5b8e 100644 --- a/src/aks-preview/azext_aks_preview/managed_cluster_decorator.py +++ b/src/aks-preview/azext_aks_preview/managed_cluster_decorator.py @@ -2644,6 +2644,62 @@ def construct_mc_profile_preview(self, bypass_restore_defaults: bool = False) -> mc = self._restore_defaults_in_mc(mc) return mc + def check_is_postprocessing_required(self, mc: ManagedCluster) -> bool: + """Helper function to check if postprocessing is required after sending a PUT request to create the cluster. + + :return: bool + """ + # some addons require post cluster creation role assigment + monitoring_addon_enabled = self.context.get_intermediate("monitoring_addon_enabled", default_value=False) + ingress_appgw_addon_enabled = self.context.get_intermediate("ingress_appgw_addon_enabled", default_value=False) + virtual_node_addon_enabled = self.context.get_intermediate("virtual_node_addon_enabled", default_value=False) + azuremonitormetrics_addon_enabled = self.context.get_intermediate( + "azuremonitormetrics_addon_enabled", + default_value=False + ) + enable_managed_identity = self.context.get_enable_managed_identity() + attach_acr = self.context.get_attach_acr() + need_grant_vnet_permission_to_cluster_identity = self.context.get_intermediate( + "need_post_creation_vnet_permission_granting", default_value=False + ) + + if ( + monitoring_addon_enabled or + ingress_appgw_addon_enabled or + virtual_node_addon_enabled or + azuremonitormetrics_addon_enabled or + (enable_managed_identity and attach_acr) or + need_grant_vnet_permission_to_cluster_identity + ): + return True + return False + + # pylint: disable=unused-argument + def immediate_processing_after_request(self, mc: ManagedCluster) -> None: + """Immediate processing performed when the cluster has not finished creating after a PUT request to the cluster + has been sent. + + :return: None + """ + # vnet + need_grant_vnet_permission_to_cluster_identity = self.context.get_intermediate( + "need_post_creation_vnet_permission_granting", default_value=False + ) + if need_grant_vnet_permission_to_cluster_identity: + # Grant vnet permission to system assigned identity RIGHT AFTER the cluster is put, this operation can + # reduce latency for the role assignment take effect + instant_cluster = self.client.get(self.context.get_resource_group_name(), self.context.get_name()) + if not self.context.external_functions.add_role_assignment( + self.cmd, + "Network Contributor", + instant_cluster.identity.principal_id, + scope=self.context.get_vnet_subnet_id(), + is_service_principal=False, + ): + logger.warning( + "Could not create a role assignment for subnet. Are you an Owner on this subscription?" + ) + def postprocessing_after_mc_created(self, cluster: ManagedCluster) -> None: """Postprocessing performed after the cluster is created. diff --git a/src/aks-preview/azext_aks_preview/tests/latest/test_aks_commands.py b/src/aks-preview/azext_aks_preview/tests/latest/test_aks_commands.py index 73a91d001db..f691cb56427 100644 --- a/src/aks-preview/azext_aks_preview/tests/latest/test_aks_commands.py +++ b/src/aks-preview/azext_aks_preview/tests/latest/test_aks_commands.py @@ -6394,7 +6394,7 @@ def test_aks_create_with_azuremonitormetrics(self, resource_group, resource_grou # have now been created. wait_cmd = ' '.join([ 'aks', 'wait', '--resource-group={resource_group}', '--name={name}', '--updated', - '--interval 60', '--timeout 600', + '--interval 60', '--timeout 300', ]) self.cmd(wait_cmd, checks=[ self.is_empty(), From 128de6ebefcf3f519503758927e8fb582b5f48c1 Mon Sep 17 00:00:00 2001 From: bragi92 Date: Wed, 10 May 2023 00:37:16 -0700 Subject: [PATCH 23/27] Update src/aks-preview/azext_aks_preview/azuremonitormetrics/amw/defaults.py Co-authored-by: Yan Zhu <105691024+yanzhudd@users.noreply.github.com> --- .../azext_aks_preview/azuremonitormetrics/amw/defaults.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/aks-preview/azext_aks_preview/azuremonitormetrics/amw/defaults.py b/src/aks-preview/azext_aks_preview/azuremonitormetrics/amw/defaults.py index 742696c09bb..5628ebb21f4 100644 --- a/src/aks-preview/azext_aks_preview/azuremonitormetrics/amw/defaults.py +++ b/src/aks-preview/azext_aks_preview/azuremonitormetrics/amw/defaults.py @@ -11,7 +11,6 @@ def get_supported_rp_locations(cmd, rp_name): from azure.cli.core.util import send_raw_request - supported_locations = [] headers = ['User-Agent=azuremonitormetrics.get_supported_rp_locations'] armendpoint = cmd.cli_ctx.cloud.endpoints.resource_manager association_url = f"{armendpoint}/providers/{rp_name}?api-version={RP_LOCATION_API}" From 812684c32d9dacd5c3ecbe57796af02d385914d4 Mon Sep 17 00:00:00 2001 From: bragi92 Date: Wed, 10 May 2023 00:37:26 -0700 Subject: [PATCH 24/27] Update src/aks-preview/azext_aks_preview/azuremonitormetrics/azuremonitorprofile.py Co-authored-by: Yan Zhu <105691024+yanzhudd@users.noreply.github.com> --- .../azuremonitormetrics/azuremonitorprofile.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/aks-preview/azext_aks_preview/azuremonitormetrics/azuremonitorprofile.py b/src/aks-preview/azext_aks_preview/azuremonitormetrics/azuremonitorprofile.py index 3a03c3a52e7..5d65c4c2b0a 100644 --- a/src/aks-preview/azext_aks_preview/azuremonitormetrics/azuremonitorprofile.py +++ b/src/aks-preview/azext_aks_preview/azuremonitormetrics/azuremonitorprofile.py @@ -70,9 +70,8 @@ def ensure_azure_monitor_profile_prerequisites( if cloud_name.lower() == "azureusgovernment": grafana_resource_id = raw_parameters.get("grafana_resource_id") - if grafana_resource_id is not None: - if grafana_resource_id != "": - raise InvalidArgumentValueError("Azure US Government cloud does not support Azure Managed Grarfana yet. Please follow this documenation for enabling it via the public cloud : aka.ms/ama-grafana-link-ff") + if grafana_resource_id: + raise InvalidArgumentValueError("Azure US Government cloud does not support Azure Managed Grarfana yet. Please follow this documenation for enabling it via the public cloud : aka.ms/ama-grafana-link-ff") if remove_azuremonitormetrics: unlink_azure_monitor_profile_artifacts( From cb3e5b09ce630ccb8882ffbc51764c564ad91ba0 Mon Sep 17 00:00:00 2001 From: bragi92 Date: Wed, 10 May 2023 00:37:38 -0700 Subject: [PATCH 25/27] Update src/aks-preview/azext_aks_preview/azuremonitormetrics/amw/helper.py Co-authored-by: Yan Zhu <105691024+yanzhudd@users.noreply.github.com> --- .../azext_aks_preview/azuremonitormetrics/amw/helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aks-preview/azext_aks_preview/azuremonitormetrics/amw/helper.py b/src/aks-preview/azext_aks_preview/azuremonitormetrics/amw/helper.py index d063179d3f4..41f8045679e 100644 --- a/src/aks-preview/azext_aks_preview/azuremonitormetrics/amw/helper.py +++ b/src/aks-preview/azext_aks_preview/azuremonitormetrics/amw/helper.py @@ -26,7 +26,7 @@ def get_amw_region(cmd, azure_monitor_workspace_resource_id): def get_azure_monitor_workspace_resource(cmd, cluster_subscription, cluster_region, raw_parameters): azure_monitor_workspace_resource_id = raw_parameters.get("azure_monitor_workspace_resource_id") - if azure_monitor_workspace_resource_id is None or azure_monitor_workspace_resource_id == "": + if not azure_monitor_workspace_resource_id: azure_monitor_workspace_resource_id, azure_monitor_workspace_location = create_default_mac(cmd, cluster_subscription, cluster_region) else: azure_monitor_workspace_resource_id = sanitize_resource_id(azure_monitor_workspace_resource_id) From cdec8af4a49f628cfb45864a37efeb0b0666fb8f Mon Sep 17 00:00:00 2001 From: bragi92 Date: Wed, 10 May 2023 00:40:11 -0700 Subject: [PATCH 26/27] Update src/aks-preview/azext_aks_preview/azuremonitormetrics/dc/delete.py Co-authored-by: Yan Zhu <105691024+yanzhudd@users.noreply.github.com> --- .../azext_aks_preview/azuremonitormetrics/dc/delete.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/aks-preview/azext_aks_preview/azuremonitormetrics/dc/delete.py b/src/aks-preview/azext_aks_preview/azuremonitormetrics/dc/delete.py index a844d3ca7d6..0ec2dc3ad4b 100644 --- a/src/aks-preview/azext_aks_preview/azuremonitormetrics/dc/delete.py +++ b/src/aks-preview/azext_aks_preview/azuremonitormetrics/dc/delete.py @@ -40,8 +40,7 @@ def get_dc_objects_list(cmd, cluster_subscription, cluster_resource_group_name, dc_object_array.append({'name': item['name'], 'dataCollectionRuleId': item['properties']['dataCollectionRuleId'], 'dceId': dce_id}) return dc_object_array except CLIError as e: - error = e - raise CLIError(error) + raise CLIError(e) def delete_dc_objects_if_prometheus_enabled(cmd, dc_objects_list, cluster_subscription, cluster_resource_group_name, cluster_name): From 7b4d7783b27b567eafb565cf952b0a8e1c5f3af1 Mon Sep 17 00:00:00 2001 From: bragi92 Date: Wed, 10 May 2023 00:47:46 -0700 Subject: [PATCH 27/27] Update src/aks-preview/azext_aks_preview/azuremonitormetrics/helper.py Co-authored-by: Yan Zhu <105691024+yanzhudd@users.noreply.github.com> --- src/aks-preview/azext_aks_preview/azuremonitormetrics/helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aks-preview/azext_aks_preview/azuremonitormetrics/helper.py b/src/aks-preview/azext_aks_preview/azuremonitormetrics/helper.py index e2dc39c1572..e4798326a69 100644 --- a/src/aks-preview/azext_aks_preview/azuremonitormetrics/helper.py +++ b/src/aks-preview/azext_aks_preview/azuremonitormetrics/helper.py @@ -66,7 +66,7 @@ def rp_registrations(cmd, subscription_id): isAlertsManagementRpRegistered = True if value["namespace"].lower() == "microsoft.dashboard" and value["registrationState"].lower() == "registered": isAlertsManagementRpRegistered = True - if isInsightsRpRegistered is False: + if not isInsightsRpRegistered: headers = ['User-Agent=azuremonitormetrics.register_insights_rp'] post_request(cmd, subscription_id, "microsoft.insights", headers) if isAlertsManagementRpRegistered is False: