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/HISTORY.rst b/src/aks-preview/HISTORY.rst index 29985e525da..30bad47711f 100644 --- a/src/aks-preview/HISTORY.rst +++ b/src/aks-preview/HISTORY.rst @@ -11,6 +11,10 @@ To release a new version, please select a new version number (usually plus 1 to Pending +++++++ + +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 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..0393bad3d2e 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') + 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 @@ -522,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', validator=validate_ksm_labels, is_preview=True) - c.argument('ksm_metric_annotations_allow_list', validator=validate_ksm_annotations, 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/_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/__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 new file mode 100644 index 00000000000..4d40878f2e3 --- /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 azext_aks_preview.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, 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/__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 new file mode 100644 index 00000000000..af5f5ba64b1 --- /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 azext_aks_preview.azuremonitormetrics.constants import ( + GRAFANA_API, + GRAFANA_ROLE_ASSIGNMENT_API, + GrafanaLink +) +from azext_aks_preview.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/__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 new file mode 100644 index 00000000000..f861f037def --- /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 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 azext_aks_preview.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..5628ebb21f4 --- /dev/null +++ b/src/aks-preview/azext_aks_preview/azuremonitormetrics/amw/defaults.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 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 + + +def get_supported_rp_locations(cmd, rp_name): + from azure.cli.core.util import send_raw_request + 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..41f8045679e --- /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 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 +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 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) + 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..5d65c4c2b0a --- /dev/null +++ b/src/aks-preview/azext_aks_preview/azuremonitormetrics/azuremonitorprofile.py @@ -0,0 +1,97 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- +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 + + +# 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 + 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, cluster_subscription, cluster_resource_group_name, cluster_name) + + +# 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(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, + 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: + 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 + ) + 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, + cluster_subscription, + cluster_resource_group_name, + cluster_name, + cluster_region, + raw_parameters, + create_flow + ) 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/__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 new file mode 100644 index 00000000000..8d43bedd552 --- /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 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 + + +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..9dae595df8e --- /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 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 +) +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..1a5dd8a071b --- /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 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 + + +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..b7b9d3ce41d --- /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 azext_aks_preview.azuremonitormetrics.constants import ( + DC_TYPE, + MapToClosestMACRegion +) +from azext_aks_preview.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..0ec2dc3ad4b --- /dev/null +++ b/src/aks-preview/azext_aks_preview/azuremonitormetrics/dc/delete.py @@ -0,0 +1,76 @@ +# -------------------------------------------------------------------------------------------- +# 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 azext_aks_preview.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']) + 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: + raise CLIError(e) + + +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..e4798326a69 --- /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 azext_aks_preview.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 not isInsightsRpRegistered: + 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/__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 new file mode 100644 index 00000000000..ade47e2b85c --- /dev/null +++ b/src/aks-preview/azext_aks_preview/azuremonitormetrics/recordingrules/create.py @@ -0,0 +1,111 @@ +# -------------------------------------------------------------------------------------------- +# 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 azext_aks_preview.azuremonitormetrics.constants import ALERTS_API, RULES_API +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'] + 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'] + + +# 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, + "name": default_rule_group_name, + "type": "Microsoft.AlertsManagement/prometheusRuleGroups", + "location": mac_region, + "properties": { + "scopes": [ + azure_monitor_workspace_resource_id + ], + "enabled": enable_rules, + "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 + + +# 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()) + 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, 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( + 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, True, 1) + + enable_windows_recording_rules = raw_parameters.get("enable_windows_recording_rules") + + if enable_windows_recording_rules is not True: + enable_windows_recording_rules = False + + 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) 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..0bd782ac3af --- /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 azext_aks_preview.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/__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/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 deleted file mode 100644 index e27c12d3fda..00000000000 --- a/src/aks-preview/azext_aks_preview/azuremonitorprofile.py +++ /dev/null @@ -1,731 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 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)] - - -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): - # 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) - # DCE creation - dce_resource_id = create_dce(cmd, cluster_subscription, cluster_resource_group_name, cluster_name, mac_region) - # 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) - # 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) - - -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) - # 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) - - -# 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 -): - if (remove_azuremonitormetrics): - unlink_azure_monitor_profile_artifacts( - cmd, - cluster_subscription, - cluster_resource_group_name, - cluster_name, - cluster_region - ) - 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) - # Do RP registrations if required - rp_registrations(cmd, cluster_subscription) - link_azure_monitor_profile_artifacts( - cmd, - cluster_subscription, - cluster_resource_group_name, - cluster_name, - cluster_region, - raw_parameters - ) - return diff --git a/src/aks-preview/azext_aks_preview/custom.py b/src/aks-preview/azext_aks_preview/custom.py index 32a24a6032b..82eecb6a694 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() @@ -608,6 +615,7 @@ def aks_create( except DecoratorEarlyExitException: # exit gracefully return None + # send request to create a real managed cluster return aks_create_decorator.create_mc(mc) 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 2864a7bd8ca..45cdb3c5b8e 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 ( @@ -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 @@ -2531,6 +2534,28 @@ 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)) + self.context.set_intermediate("azuremonitormetrics_addon_enabled", True, overwrite_exists=True) + 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 @@ -2612,11 +2637,165 @@ 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) 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. + + :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__( @@ -3034,7 +3213,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(), 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..fcdb635d381 --- /dev/null +++ b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_with_azuremonitormetrics.yaml @@ -0,0 +1,3583 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + 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) + 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 21:41:43 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-clitestseoizsap2-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 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", + "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 --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: 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-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\": + \"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 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 \"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/9452ab00-2cdd-44f0-99e0-0c087bd00358?api-version=2016-03-30 + cache-control: + - no-cache + content-length: + - '3702' + content-type: + - application/json + date: + - Tue, 09 May 2023 21:41: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: + - '1197' + 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 --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\": + \"InProgress\",\n \"startTime\": \"2023-05-09T21:41:48.5775143Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 09 May 2023 21:41: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 --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\": + \"InProgress\",\n \"startTime\": \"2023-05-09T21:41:48.5775143Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 09 May 2023 21:42: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 --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\": + \"InProgress\",\n \"startTime\": \"2023-05-09T21:41:48.5775143Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 09 May 2023 21:42: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 --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\": + \"InProgress\",\n \"startTime\": \"2023-05-09T21:41:48.5775143Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 09 May 2023 21:43: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 --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\": + \"InProgress\",\n \"startTime\": \"2023-05-09T21:41:48.5775143Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 09 May 2023 21:43: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 --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\": + \"InProgress\",\n \"startTime\": \"2023-05-09T21:41:48.5775143Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 09 May 2023 21:44: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 --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\": + \"InProgress\",\n \"startTime\": \"2023-05-09T21:41:48.5775143Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 09 May 2023 21:44: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 --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\": + \"InProgress\",\n \"startTime\": \"2023-05-09T21:41:48.5775143Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 09 May 2023 21:45: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 --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\": + \"InProgress\",\n \"startTime\": \"2023-05-09T21:41:48.5775143Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 09 May 2023 21:45: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 --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\": + \"InProgress\",\n \"startTime\": \"2023-05-09T21:41:48.5775143Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 09 May 2023 21:46: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 --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\": + \"InProgress\",\n \"startTime\": \"2023-05-09T21:41:48.5775143Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 09 May 2023 21:46: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 --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\": + \"InProgress\",\n \"startTime\": \"2023-05-09T21:41:48.5775143Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 09 May 2023 21:47: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) + 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\": + \"InProgress\",\n \"startTime\": \"2023-05-09T21:41:48.5775143Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 09 May 2023 21:47: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 --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\": + \"InProgress\",\n \"startTime\": \"2023-05-09T21:41:48.5775143Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 09 May 2023 21:48: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 --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\": + \"InProgress\",\n \"startTime\": \"2023-05-09T21:41:48.5775143Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 09 May 2023 21:48: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 --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) + 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-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\": + \"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 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 \"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/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 + \ \"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 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: + - 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 21:49:27 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 --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 + 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 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: + - '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 --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 + 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 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: + - '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 --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 + 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 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: + 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 --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 + 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 21:49:28 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 --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 + 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 21:49:29 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 --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 + 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-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: + - '1138' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 09 May 2023 21:49:55 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: + - '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 --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 + 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-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 + cache-control: + - no-cache + content-length: + - '1497' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 09 May 2023 21:49:58 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 --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 + 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":"\"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 + cache-control: + - no-cache + content-length: + - '1030' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 09 May 2023 21:49:59 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: + - '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 --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 + 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\\\", 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\\\"} + * 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: + - '49343' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 09 May 2023 21:50:01 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 --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-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: + 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 21:50:03 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 --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-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: + 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 21:50:06 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 --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-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: + 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 21:50:09 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: + - '298' + 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\", + 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\", + 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\", + 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\", + 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\", + 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\", + 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": + "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: + - '5187' + Content-Type: + - application/json + ParameterSetName: + - --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-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: + 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\\\", + 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\\\"} + * 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: + - '5834' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 09 May 2023 21:50: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: 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: + - 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-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\": + \"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 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/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\": + [\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 21:50:13 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-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": + 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 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/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"]}, + "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 --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 + 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-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\": + \"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 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/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\": + [\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/8616cc58-7fbb-4abe-ba5b-103ac7efe60d?api-version=2016-03-30 + cache-control: + - no-cache + content-length: + - '4184' + content-type: + - application/json + date: + - Tue, 09 May 2023 21:50:25 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: + - '1198' + 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-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\": + \"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 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 \"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/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 + \ \"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 21:50:26 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 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-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\": + \"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 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 \"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/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 + \ \"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 21:51: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 + 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-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\": + \"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 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 \"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/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 + \ \"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 21:52: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 + 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-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\": + \"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 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 \"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/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 + \ \"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 21:53: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: + - 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 --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/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-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\": + \"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 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 \"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/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 + \ \"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 21:53: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: + - 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/1e472810-1db0-4d9a-9b27-9dfb1770e4a3?api-version=2016-03-30 + cache-control: + - no-cache + content-length: + - '0' + date: + - 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/1e472810-1db0-4d9a-9b27-9dfb1770e4a3?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 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 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 09f00c75348..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 @@ -6365,9 +6365,56 @@ 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=16, name_prefix='clitest', location='westus2') + @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 + # 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 = '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'), + ]) + + # 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} --output=json', 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=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, @@ -6386,7 +6433,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'), 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",