From 252ede2a1b1923d21deaeb9bd63f0833fc6327bc Mon Sep 17 00:00:00 2001 From: David Michelman Date: Tue, 8 Jun 2021 13:59:35 -0700 Subject: [PATCH 01/20] about to add check for if DCR is available in regions --- src/aks-preview/azext_aks_preview/_consts.py | 1 + src/aks-preview/azext_aks_preview/_help.py | 6 + src/aks-preview/azext_aks_preview/_params.py | 1 + src/aks-preview/azext_aks_preview/custom.py | 178 ++++++++++++++++++- 4 files changed, 182 insertions(+), 4 deletions(-) diff --git a/src/aks-preview/azext_aks_preview/_consts.py b/src/aks-preview/azext_aks_preview/_consts.py index 6d759a00d03..41e8d686b2f 100644 --- a/src/aks-preview/azext_aks_preview/_consts.py +++ b/src/aks-preview/azext_aks_preview/_consts.py @@ -23,6 +23,7 @@ CONST_MONITORING_ADDON_NAME = "omsagent" CONST_MONITORING_LOG_ANALYTICS_WORKSPACE_RESOURCE_ID = "logAnalyticsWorkspaceResourceID" +CONST_MONITORING_USING_AAD_MSI_AUTH = "isUsingAADMSIAuth" CONST_VIRTUAL_NODE_ADDON_NAME = "aciConnector" CONST_VIRTUAL_NODE_SUBNET_NAME = "SubnetName" diff --git a/src/aks-preview/azext_aks_preview/_help.py b/src/aks-preview/azext_aks_preview/_help.py index 59d3b45db58..d91b3b01c23 100644 --- a/src/aks-preview/azext_aks_preview/_help.py +++ b/src/aks-preview/azext_aks_preview/_help.py @@ -223,6 +223,9 @@ - name: --workspace-resource-id type: string short-summary: The resource ID of an existing Log Analytics Workspace to use for storing monitoring data. If not specified, uses the default Log Analytics Workspace if it exists, otherwise creates one. + - name: --enable_aad_msi_auth + type: bool + short-summary: Sends monitoring data using a managed cluster identity instead of a Log Analytics workspace shared key. - name: --enable-cluster-autoscaler type: bool short-summary: Enable cluster autoscaler, default value is false. @@ -1029,6 +1032,9 @@ - name: --workspace-resource-id type: string short-summary: The resource ID of an existing Log Analytics Workspace to use for storing monitoring data. + - name: --enable_aad_msi_auth + type: bool + short-summary: Sends monitoring data using a managed cluster identity instead of a Log Analytics workspace shared key. - name: --subnet-name -s type: string short-summary: The subnet name for the virtual node to use. diff --git a/src/aks-preview/azext_aks_preview/_params.py b/src/aks-preview/azext_aks_preview/_params.py index 5c7a618f291..94341ac1919 100644 --- a/src/aks-preview/azext_aks_preview/_params.py +++ b/src/aks-preview/azext_aks_preview/_params.py @@ -91,6 +91,7 @@ def load_arguments(self, _): c.argument('pod_subnet_id', type=str, validator=validate_pod_subnet_id) c.argument('ppg') c.argument('workspace_resource_id') + c.argument('enable_aad_msi_auth', arg_type=get_three_state_flag(), is_preview=True, help="HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR ") c.argument('skip_subnet_role_assignment', action='store_true') c.argument('enable_fips_image', action='store_true', is_preview=True) c.argument('enable_cluster_autoscaler', action='store_true') diff --git a/src/aks-preview/azext_aks_preview/custom.py b/src/aks-preview/azext_aks_preview/custom.py index 64aff0b8467..3e462018495 100644 --- a/src/aks-preview/azext_aks_preview/custom.py +++ b/src/aks-preview/azext_aks_preview/custom.py @@ -101,6 +101,7 @@ from ._consts import CONST_HTTP_APPLICATION_ROUTING_ADDON_NAME from ._consts import CONST_MONITORING_ADDON_NAME from ._consts import CONST_MONITORING_LOG_ANALYTICS_WORKSPACE_RESOURCE_ID +from ._consts import CONST_MONITORING_USING_AAD_MSI_AUTH from ._consts import CONST_VIRTUAL_NODE_ADDON_NAME from ._consts import CONST_VIRTUAL_NODE_SUBNET_NAME from ._consts import CONST_AZURE_POLICY_ADDON_NAME @@ -317,6 +318,8 @@ def _invoke_deployment(cmd, resource_group_name, deployment_name, template, para logger.info(json.dumps(template, indent=2)) logger.info('==== END TEMPLATE ====') + import pdb + pdb.set_trace() Deployment = cmd.get_models('Deployment', resource_type=ResourceType.MGMT_RESOURCE_RESOURCES) deployment = Deployment(properties=properties) if validate: @@ -2637,7 +2640,156 @@ def _sanitize_loganalytics_ws_resource_id(workspace_resource_id): return workspace_resource_id +def _ensure_DCR_monitoring(cmd, addon, cluster_subscription, cluster_resource_group_name, cluster_name): + """ + Ensures a DCR (data collection rule) exists and is associated with the current AKS cluster + """ + + cluster_resource_id = f"/subscriptions/{cluster_subscription}/resourceGroups/{cluster_resource_group_name}/providers/Microsoft.ContainerService/managedClusters/{cluster_name}" + + if not addon.enabled: + return None + + # workaround for this addon key which has been seen lowercased in the wild + for key in list(addon.config): + if key.lower() == CONST_MONITORING_LOG_ANALYTICS_WORKSPACE_RESOURCE_ID.lower() and key != CONST_MONITORING_LOG_ANALYTICS_WORKSPACE_RESOURCE_ID: + addon.config[CONST_MONITORING_LOG_ANALYTICS_WORKSPACE_RESOURCE_ID] = addon.config.pop( + key) + + workspace_resource_id = addon.config[CONST_MONITORING_LOG_ANALYTICS_WORKSPACE_RESOURCE_ID].strip( + ) + if not workspace_resource_id.startswith('/'): + workspace_resource_id = '/' + workspace_resource_id + + if workspace_resource_id.endswith('/'): + workspace_resource_id = workspace_resource_id.rstrip('/') + + # extract subscription ID and resource group from workspace_resource_id URL + try: + subscription_id = workspace_resource_id.split('/')[2] + resource_group = workspace_resource_id.split('/')[4] + workspace_name = workspace_resource_id.split('/')[8] + except IndexError: + raise CLIError( + 'Could not locate resource group in workspace-resource-id URL.') + + # region of workspace can be different from region of RG so find the location of the workspace_resource_id + resources = cf_resources(cmd.cli_ctx, subscription_id) + from azure.core.exceptions import HttpResponseError + try: + resource = resources.get_by_id( + workspace_resource_id, '2015-11-01-preview') + location = resource.location + except HttpResponseError as ex: + raise ex + + + # todo: check if region supports DCRs and DCR-A + # DCR provider: dataCollectionRules + # DCRA type: dataCollectionRuleAssociations + # URL: GET https://management.azure.com/subscriptions/72c8e8ca-dc16-47dc-b65c-6b5875eb600a/providers/Microsoft.Insights/dataCollectionRules?api-version=2021-04-01 + + + + + + dataCollectionRuleName = f"DCR-{workspace_name}" # TODO: decide on a naming scheme + dcr_resource_id = f"/subscriptions/{subscription_id}/resourceGroups/{resource_group}/providers/Microsoft.Insights/dataCollectionRules/{dataCollectionRuleName}" + + # # get auth token + # from azure.cli.core._profile import Profile + # profile = Profile(cli_ctx=cmd.cli_ctx) + # token_info, _, _ = profile.get_raw_token(None, subscription=subscription_id) + # token_type, token, _ = token_info + # # headers = {} + # # headers['Authorization'] = '{} {}'.format(token_type, token) + # # headers["Content-type"] = "application/json" + # # # doesn't work: headers = ['{"Content-type": "application/json"}'] + + + # create the DCR + + dcr_creation_body = json.dumps({"location": location, + "properties": { + "dataFlows": [ + { + "streams": [ + "Microsoft-Perf", + "Microsoft-ContainerInventory", + "Microsoft-ContainerLog", + "Microsoft-ContainerNodeInventory", + "Microsoft-KubeEvents", + "Microsoft-KubeHealth", + "Microsoft-KubeMonAgentEvents", + "Microsoft-KubeNodeInventory", + "Microsoft-KubePodInventory", + "Microsoft-KubePVInventory", + "Microsoft-KubeServices", + "Microsoft-InsightsMetrics" + ], + "destinations": [ + workspace_name + ] + } + ], + "destinations": { + "logAnalytics": [ + { + "workspaceResourceId": workspace_resource_id, + "name": workspace_name + } + ] + } + } + }) + + url = f"https://management.azure.com/{dcr_resource_id}?api-version=2019-11-01-preview" + url_params = {"dcr_resource_id": dcr_resource_id} + + # import pdb + # pdb.set_trace() + + # from requests import Session, Request + # s = Session() + # req = Request(method="PUT", url=url, headers=headers, params=url_params, data=dcr_creation_body) + # prepped = s.prepare_request(req) + # r = s.send(prepped) + # if not r.ok: + # reason = r.reason + # if r.text: + # reason += '({})'.format(r.text) + # raise CLIError(reason) + + from azure.cli.core.util import send_raw_request + # TODO: does this need retries? + r = send_raw_request(cmd.cli_ctx, "PUT", url, body=dcr_creation_body) + + + # now create the association between the DCR and cluster + association_body = json.dumps({"properties": { + "dataCollectionRuleId": dcr_resource_id, + "description": "routes monitoring data to a Log Analytics workspace" + } + }) + association_url = f"https://management.azure.com/{cluster_resource_id}/providers/Microsoft.Insights/dataCollectionRuleAssociations/send-to-{cluster_name}?api-version=2019-11-01-preview" + + r = send_raw_request(cmd.cli_ctx, "PUT", association_url, body=association_body) + + # s = Session() + # req = Request(method="PUT", url=url, headers=headers, params=url_params, data=association_creation_body) + # prepped = s.prepare_request(req) + # r = s.send(prepped) + # if not r.ok: + # reason = r.reason + # if r.text: + # reason += '({})'.format(r.text) + # raise CLIError(reason) + + def _ensure_container_insights_for_monitoring(cmd, addon): + """ + Adds the ContainerInsights solution to a LA workspace + """ if not addon.enabled: return None @@ -3227,6 +3379,8 @@ def aks_disable_addons(cmd, client, resource_group_name, name, addons, no_wait=F instance = client.get(resource_group_name, name) subscription_id = get_subscription_id(cmd.cli_ctx) + + instance = _update_addons( cmd, instance, @@ -3244,17 +3398,30 @@ def aks_disable_addons(cmd, client, resource_group_name, name, addons, no_wait=F def aks_enable_addons(cmd, client, resource_group_name, name, addons, workspace_resource_id=None, subnet_name=None, appgw_name=None, appgw_subnet_prefix=None, appgw_subnet_cidr=None, appgw_id=None, appgw_subnet_id=None, - appgw_watch_namespace=None, enable_sgxquotehelper=False, enable_secret_rotation=False, no_wait=False): + appgw_watch_namespace=None, enable_sgxquotehelper=False, enable_secret_rotation=False, no_wait=False, enable_aad_msi_auth=False): + instance = client.get(resource_group_name, name) subscription_id = get_subscription_id(cmd.cli_ctx) instance = _update_addons(cmd, instance, subscription_id, resource_group_name, name, addons, enable=True, - workspace_resource_id=workspace_resource_id, subnet_name=subnet_name, + workspace_resource_id=workspace_resource_id, enable_aad_msi_auth=enable_aad_msi_auth, subnet_name=subnet_name, appgw_name=appgw_name, appgw_subnet_prefix=appgw_subnet_prefix, appgw_subnet_cidr=appgw_subnet_cidr, appgw_id=appgw_id, appgw_subnet_id=appgw_subnet_id, appgw_watch_namespace=appgw_watch_namespace, enable_sgxquotehelper=enable_sgxquotehelper, enable_secret_rotation=enable_secret_rotation, no_wait=no_wait) if CONST_MONITORING_ADDON_NAME in instance.addon_profiles and instance.addon_profiles[CONST_MONITORING_ADDON_NAME].enabled: - _ensure_container_insights_for_monitoring( - cmd, instance.addon_profiles[CONST_MONITORING_ADDON_NAME]) + if instance.addon_profiles[CONST_MONITORING_ADDON_NAME].config[CONST_MONITORING_USING_AAD_MSI_AUTH]: + # Ensure the cluster does not use service principal auth + try: + if instance.servicePrincipalProfile.clientId != "": # just checking if this field exists + pass + raise CLIError("--enable-aad-msi-auth can not be used on clusters with service principal auth.") + except AttributeError: + pass + # create a Data Collection Rule (DCR) and associate it with the cluster + _ensure_DCR_monitoring(cmd, instance.addon_profiles[CONST_MONITORING_ADDON_NAME], subscription_id, resource_group_name, name) + else: + # monitoring addon will use legacy path + _ensure_container_insights_for_monitoring( + cmd, instance.addon_profiles[CONST_MONITORING_ADDON_NAME]) monitoring = CONST_MONITORING_ADDON_NAME in instance.addon_profiles and instance.addon_profiles[ CONST_MONITORING_ADDON_NAME].enabled @@ -3312,6 +3479,7 @@ def _update_addons(cmd, # pylint: disable=too-many-branches,too-many-statements addons, enable, workspace_resource_id=None, + enable_aad_msi_auth=False, subnet_name=None, appgw_name=None, appgw_subnet_prefix=None, @@ -3364,6 +3532,8 @@ def _update_addons(cmd, # pylint: disable=too-many-branches,too-many-statements addon_profile.config = { logAnalyticsConstName: workspace_resource_id} + if addon == CONST_MONITORING_ADDON_NAME: # TODO: What is the azure defender addon? Does it use omsagent? + addon_profile.config[CONST_MONITORING_USING_AAD_MSI_AUTH] = enable_aad_msi_auth elif addon == (CONST_VIRTUAL_NODE_ADDON_NAME + os_type): if addon_profile.enabled: raise CLIError('The virtual-node addon is already enabled for this managed cluster.\n' From 7b556682210d0850ac684716f4e03d7f10dca84c Mon Sep 17 00:00:00 2001 From: David Michelman Date: Wed, 9 Jun 2021 17:50:55 -0700 Subject: [PATCH 02/20] tested --- src/aks-preview/azext_aks_preview/_help.py | 4 +- src/aks-preview/azext_aks_preview/_params.py | 2 +- src/aks-preview/azext_aks_preview/custom.py | 438 ++++++++----------- 3 files changed, 197 insertions(+), 247 deletions(-) diff --git a/src/aks-preview/azext_aks_preview/_help.py b/src/aks-preview/azext_aks_preview/_help.py index d91b3b01c23..fc619ff6bb3 100644 --- a/src/aks-preview/azext_aks_preview/_help.py +++ b/src/aks-preview/azext_aks_preview/_help.py @@ -223,7 +223,7 @@ - name: --workspace-resource-id type: string short-summary: The resource ID of an existing Log Analytics Workspace to use for storing monitoring data. If not specified, uses the default Log Analytics Workspace if it exists, otherwise creates one. - - name: --enable_aad_msi_auth + - name: --enable_msi_auth_for_monitoring type: bool short-summary: Sends monitoring data using a managed cluster identity instead of a Log Analytics workspace shared key. - name: --enable-cluster-autoscaler @@ -1032,7 +1032,7 @@ - name: --workspace-resource-id type: string short-summary: The resource ID of an existing Log Analytics Workspace to use for storing monitoring data. - - name: --enable_aad_msi_auth + - name: --enable_msi_auth_for_monitoring type: bool short-summary: Sends monitoring data using a managed cluster identity instead of a Log Analytics workspace shared key. - name: --subnet-name -s diff --git a/src/aks-preview/azext_aks_preview/_params.py b/src/aks-preview/azext_aks_preview/_params.py index 94341ac1919..e782afb3e53 100644 --- a/src/aks-preview/azext_aks_preview/_params.py +++ b/src/aks-preview/azext_aks_preview/_params.py @@ -91,7 +91,7 @@ def load_arguments(self, _): c.argument('pod_subnet_id', type=str, validator=validate_pod_subnet_id) c.argument('ppg') c.argument('workspace_resource_id') - c.argument('enable_aad_msi_auth', arg_type=get_three_state_flag(), is_preview=True, help="HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR ") + c.argument('enable_msi_auth_for_monitoring', arg_type=get_three_state_flag(), is_preview=True, help="HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR ") c.argument('skip_subnet_role_assignment', action='store_true') c.argument('enable_fips_image', action='store_true', is_preview=True) c.argument('enable_cluster_autoscaler', action='store_true') diff --git a/src/aks-preview/azext_aks_preview/custom.py b/src/aks-preview/azext_aks_preview/custom.py index 3e462018495..8a9a29b14dc 100644 --- a/src/aks-preview/azext_aks_preview/custom.py +++ b/src/aks-preview/azext_aks_preview/custom.py @@ -318,8 +318,6 @@ def _invoke_deployment(cmd, resource_group_name, deployment_name, template, para logger.info(json.dumps(template, indent=2)) logger.info('==== END TEMPLATE ====') - import pdb - pdb.set_trace() Deployment = cmd.get_models('Deployment', resource_type=ResourceType.MGMT_RESOURCE_RESOURCES) deployment = Deployment(properties=properties) if validate: @@ -990,6 +988,7 @@ def aks_create(cmd, # pylint: disable=too-many-locals,too-many-statements,to outbound_type=None, enable_addons=None, workspace_resource_id=None, + enable_msi_auth_for_monitoring=False, min_count=None, max_count=None, vnet_subnet_id=None, @@ -1270,8 +1269,9 @@ def aks_create(cmd, # pylint: disable=too-many-locals,too-many-statements,to monitoring = False if CONST_MONITORING_ADDON_NAME in addon_profiles: monitoring = True - _ensure_container_insights_for_monitoring( - cmd, addon_profiles[CONST_MONITORING_ADDON_NAME]) + if enable_msi_auth_for_monitoring and not enable_managed_identity: + raise CLIError("--enable-msi-auth-for-monitoring can not be used on clusters with service principal auth.") + _ensure_container_insights_for_monitoring(cmd, addon_profiles[CONST_MONITORING_ADDON_NAME], subscription_id, resource_group_name, name, location, aad_route=enable_msi_auth_for_monitoring, create_dcr=True, create_dcra=False) # addon is in the list and is enabled ingress_appgw_addon_enabled = CONST_INGRESS_APPGW_ADDON_NAME in addon_profiles and \ @@ -1457,14 +1457,21 @@ def aks_create(cmd, # pylint: disable=too-many-locals,too-many-statements,to attach_acr, headers, no_wait) - return created_cluster + break except CloudError as ex: retry_exception = ex if 'not found in Active Directory tenant' in ex.message: time.sleep(3) else: raise ex - raise retry_exception + else: + raise retry_exception + + # Create the DCR Association here, it must be done after the cluster is created. + if monitoring and enable_msi_auth_for_monitoring: + _ensure_container_insights_for_monitoring(cmd, addon_profiles[CONST_MONITORING_ADDON_NAME], subscription_id, resource_group_name, name, location, aad_route=enable_msi_auth_for_monitoring, create_dcr=False, create_dcra=True) + + return created_cluster def aks_update(cmd, # pylint: disable=too-many-statements,too-many-branches,too-many-locals @@ -2357,6 +2364,7 @@ def _handle_addons_args(cmd, # pylint: disable=too-many-statements resource_group_name, addon_profiles=None, workspace_resource_id=None, + enable_msi_auth_for_monitoring=False, appgw_name=None, appgw_subnet_prefix=None, appgw_subnet_cidr=None, @@ -2388,7 +2396,7 @@ def _handle_addons_args(cmd, # pylint: disable=too-many-statements workspace_resource_id = _sanitize_loganalytics_ws_resource_id(workspace_resource_id) if 'monitoring' in addons: - addon_profiles[CONST_MONITORING_ADDON_NAME] = ManagedClusterAddonProfile(enabled=True, config={CONST_MONITORING_LOG_ANALYTICS_WORKSPACE_RESOURCE_ID: workspace_resource_id}) + addon_profiles[CONST_MONITORING_ADDON_NAME] = ManagedClusterAddonProfile(enabled=True, config={CONST_MONITORING_LOG_ANALYTICS_WORKSPACE_RESOURCE_ID: workspace_resource_id, CONST_MONITORING_USING_AAD_MSI_AUTH: enable_msi_auth_for_monitoring}) addons.remove('monitoring') if 'azure-defender' in addons: addon_profiles[CONST_AZURE_DEFENDER_ADDON_NAME] = ManagedClusterAddonProfile(enabled=True, config={CONST_AZURE_DEFENDER_LOG_ANALYTICS_WORKSPACE_RESOURCE_ID: workspace_resource_id}) @@ -2639,14 +2647,14 @@ def _sanitize_loganalytics_ws_resource_id(workspace_resource_id): workspace_resource_id = workspace_resource_id.rstrip('/') return workspace_resource_id - -def _ensure_DCR_monitoring(cmd, addon, cluster_subscription, cluster_resource_group_name, cluster_name): - """ - Ensures a DCR (data collection rule) exists and is associated with the current AKS cluster +def _ensure_container_insights_for_monitoring(cmd, addon, cluster_subscription, cluster_resource_group_name, cluster_name, cluster_region, remove_monitoring=False, aad_route=False, create_dcr=False, create_dcra=False): """ + Adds the ContainerInsights solution to a LA workspace + Set remove_monitoring to True and create_dcra to True to remove the DCR-Association (DCR = Data Collection Rule) created for monitoring with the AAD route. The association makes + it very hard to manually delete either the DCR or cluster, and it is not obvious how to manually delete the association from the portal. - cluster_resource_id = f"/subscriptions/{cluster_subscription}/resourceGroups/{cluster_resource_group_name}/providers/Microsoft.ContainerService/managedClusters/{cluster_name}" - + create_dcr and create_dcra have no effect if aad_route == False + """ if not addon.enabled: return None @@ -2674,241 +2682,179 @@ def _ensure_DCR_monitoring(cmd, addon, cluster_subscription, cluster_resource_gr 'Could not locate resource group in workspace-resource-id URL.') # region of workspace can be different from region of RG so find the location of the workspace_resource_id - resources = cf_resources(cmd.cli_ctx, subscription_id) - from azure.core.exceptions import HttpResponseError - try: - resource = resources.get_by_id( - workspace_resource_id, '2015-11-01-preview') - location = resource.location - except HttpResponseError as ex: - raise ex - - - # todo: check if region supports DCRs and DCR-A - # DCR provider: dataCollectionRules - # DCRA type: dataCollectionRuleAssociations - # URL: GET https://management.azure.com/subscriptions/72c8e8ca-dc16-47dc-b65c-6b5875eb600a/providers/Microsoft.Insights/dataCollectionRules?api-version=2021-04-01 - - - - - - dataCollectionRuleName = f"DCR-{workspace_name}" # TODO: decide on a naming scheme - dcr_resource_id = f"/subscriptions/{subscription_id}/resourceGroups/{resource_group}/providers/Microsoft.Insights/dataCollectionRules/{dataCollectionRuleName}" - - # # get auth token - # from azure.cli.core._profile import Profile - # profile = Profile(cli_ctx=cmd.cli_ctx) - # token_info, _, _ = profile.get_raw_token(None, subscription=subscription_id) - # token_type, token, _ = token_info - # # headers = {} - # # headers['Authorization'] = '{} {}'.format(token_type, token) - # # headers["Content-type"] = "application/json" - # # # doesn't work: headers = ['{"Content-type": "application/json"}'] - - - # create the DCR + if not remove_monitoring: + resources = cf_resources(cmd.cli_ctx, subscription_id) + from azure.core.exceptions import HttpResponseError + try: + resource = resources.get_by_id( + workspace_resource_id, '2015-11-01-preview') + location = resource.location + except HttpResponseError as ex: + raise ex - dcr_creation_body = json.dumps({"location": location, - "properties": { - "dataFlows": [ - { - "streams": [ - "Microsoft-Perf", - "Microsoft-ContainerInventory", - "Microsoft-ContainerLog", - "Microsoft-ContainerNodeInventory", - "Microsoft-KubeEvents", - "Microsoft-KubeHealth", - "Microsoft-KubeMonAgentEvents", - "Microsoft-KubeNodeInventory", - "Microsoft-KubePodInventory", - "Microsoft-KubePVInventory", - "Microsoft-KubeServices", - "Microsoft-InsightsMetrics" + if aad_route: + cluster_resource_id = f"/subscriptions/{cluster_subscription}/resourceGroups/{cluster_resource_group_name}/providers/Microsoft.ContainerService/managedClusters/{cluster_name}" + dataCollectionRuleName = f"DCR-{workspace_name}" + dcr_resource_id = f"/subscriptions/{subscription_id}/resourceGroups/{resource_group}/providers/Microsoft.Insights/dataCollectionRules/{dataCollectionRuleName}" + from azure.cli.core.util import send_raw_request + + if create_dcr: + # first get the association between region display names and region IDs (because for some reason the "which RPs are available in which regions check returns region display names") + region_names_to_id = {} + # TODO: does this need retries? + r = send_raw_request(cmd.cli_ctx, "GET", f"https://management.azure.com/subscriptions/{subscription_id}/locations?api-version=2019-11-01") + json_response = json.loads(r.text) + for region_data in json_response["value"]: + region_names_to_id[region_data["displayName"]] = region_data["name"] + + # check if region supports DCRs and DCR-A + r = send_raw_request(cmd.cli_ctx, "GET", f"https://management.azure.com/subscriptions/{subscription_id}/providers/Microsoft.Insights?api-version=2020-10-01") + json_response = json.loads(r.text) + for resource in json_response["resourceTypes"]: + region_ids = map(lambda x: region_names_to_id[x], resource["locations"]) # map is lazy, so doing this for every region isn't slow + if resource["resourceType"] == "dataCollectionRules" and location not in region_ids: + raise CLIError(f'Data Collection Rules are not enabled for LA workspace region {location}') + elif resource["resourceType"] == "dataCollectionRuleAssociations" and cluster_region not in region_ids: + raise CLIError(f'Data Collection Rule Associations are not enabled for cluster region {location}') + + # create the DCR + dcr_creation_body = json.dumps({"location": location, + "properties": { + "dataFlows": [ + { + "streams": [ + "Microsoft-Perf", + "Microsoft-ContainerInventory", + "Microsoft-ContainerLog", + "Microsoft-ContainerNodeInventory", + "Microsoft-KubeEvents", + "Microsoft-KubeHealth", + "Microsoft-KubeMonAgentEvents", + "Microsoft-KubeNodeInventory", + "Microsoft-KubePodInventory", + "Microsoft-KubePVInventory", + "Microsoft-KubeServices", + "Microsoft-InsightsMetrics" + ], + "destinations": [ + workspace_name + ] + } ], - "destinations": [ - workspace_name - ] + "destinations": { + "logAnalytics": [ + { + "workspaceResourceId": workspace_resource_id, + "name": workspace_name + } + ] + } + } + }) + + url = f"https://management.azure.com/{dcr_resource_id}?api-version=2019-11-01-preview" + r = send_raw_request(cmd.cli_ctx, "PUT", url, body=dcr_creation_body) + + if create_dcra: + # only create or delete the association between the DCR and cluster + association_body = json.dumps({"location": cluster_region, + "properties": { + "dataCollectionRuleId": dcr_resource_id, + "description": "routes monitoring data to a Log Analytics workspace" } - ], - "destinations": { - "logAnalytics": [ - { - "workspaceResourceId": workspace_resource_id, - "name": workspace_name + }) + association_url = f"https://management.azure.com/{cluster_resource_id}/providers/Microsoft.Insights/dataCollectionRuleAssociations/send-to-{workspace_name}?api-version=2019-11-01-preview" + r = send_raw_request(cmd.cli_ctx, "PUT" if not remove_monitoring else "DELETE", association_url, body=association_body) + + elif not aad_route: + + raise CLIError("solution about to be created") + + # legacy auth with LA workspace solution + unix_time_in_millis = int( + (datetime.datetime.utcnow() - datetime.datetime.utcfromtimestamp(0)).total_seconds() * 1000.0) + + solution_deployment_name = 'ContainerInsights-{}'.format( + unix_time_in_millis) + + # pylint: disable=line-too-long + template = { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "workspaceResourceId": { + "type": "string", + "metadata": { + "description": "Azure Monitor Log Analytics Resource ID" + } + }, + "workspaceRegion": { + "type": "string", + "metadata": { + "description": "Azure Monitor Log Analytics workspace region" + } + }, + "solutionDeploymentName": { + "type": "string", + "metadata": { + "description": "Name of the solution deployment" + } + } + }, + "resources": [ + { + "type": "Microsoft.Resources/deployments", + "name": "[parameters('solutionDeploymentName')]", + "apiVersion": "2017-05-10", + "subscriptionId": "[split(parameters('workspaceResourceId'),'/')[2]]", + "resourceGroup": "[split(parameters('workspaceResourceId'),'/')[4]]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": {}, + "variables": {}, + "resources": [ + { + "apiVersion": "2015-11-01-preview", + "type": "Microsoft.OperationsManagement/solutions", + "location": "[parameters('workspaceRegion')]", + "name": "[Concat('ContainerInsights', '(', split(parameters('workspaceResourceId'),'/')[8], ')')]", + "properties": { + "workspaceResourceId": "[parameters('workspaceResourceId')]" + }, + "plan": { + "name": "[Concat('ContainerInsights', '(', split(parameters('workspaceResourceId'),'/')[8], ')')]", + "product": "[Concat('OMSGallery/', 'ContainerInsights')]", + "promotionCode": "", + "publisher": "Microsoft" } - ] - } - } - }) - - url = f"https://management.azure.com/{dcr_resource_id}?api-version=2019-11-01-preview" - url_params = {"dcr_resource_id": dcr_resource_id} - - # import pdb - # pdb.set_trace() - - # from requests import Session, Request - # s = Session() - # req = Request(method="PUT", url=url, headers=headers, params=url_params, data=dcr_creation_body) - # prepped = s.prepare_request(req) - # r = s.send(prepped) - # if not r.ok: - # reason = r.reason - # if r.text: - # reason += '({})'.format(r.text) - # raise CLIError(reason) - - from azure.cli.core.util import send_raw_request - # TODO: does this need retries? - r = send_raw_request(cmd.cli_ctx, "PUT", url, body=dcr_creation_body) - - - # now create the association between the DCR and cluster - association_body = json.dumps({"properties": { - "dataCollectionRuleId": dcr_resource_id, - "description": "routes monitoring data to a Log Analytics workspace" - } - }) - association_url = f"https://management.azure.com/{cluster_resource_id}/providers/Microsoft.Insights/dataCollectionRuleAssociations/send-to-{cluster_name}?api-version=2019-11-01-preview" - - r = send_raw_request(cmd.cli_ctx, "PUT", association_url, body=association_body) - - # s = Session() - # req = Request(method="PUT", url=url, headers=headers, params=url_params, data=association_creation_body) - # prepped = s.prepare_request(req) - # r = s.send(prepped) - # if not r.ok: - # reason = r.reason - # if r.text: - # reason += '({})'.format(r.text) - # raise CLIError(reason) - - -def _ensure_container_insights_for_monitoring(cmd, addon): - """ - Adds the ContainerInsights solution to a LA workspace - """ - if not addon.enabled: - return None - - # workaround for this addon key which has been seen lowercased in the wild - for key in list(addon.config): - if key.lower() == CONST_MONITORING_LOG_ANALYTICS_WORKSPACE_RESOURCE_ID.lower() and key != CONST_MONITORING_LOG_ANALYTICS_WORKSPACE_RESOURCE_ID: - addon.config[CONST_MONITORING_LOG_ANALYTICS_WORKSPACE_RESOURCE_ID] = addon.config.pop( - key) - - workspace_resource_id = addon.config[CONST_MONITORING_LOG_ANALYTICS_WORKSPACE_RESOURCE_ID].strip( - ) - if not workspace_resource_id.startswith('/'): - workspace_resource_id = '/' + workspace_resource_id - - if workspace_resource_id.endswith('/'): - workspace_resource_id = workspace_resource_id.rstrip('/') - - # extract subscription ID and resource group from workspace_resource_id URL - try: - subscription_id = workspace_resource_id.split('/')[2] - resource_group = workspace_resource_id.split('/')[4] - except IndexError: - raise CLIError( - 'Could not locate resource group in workspace-resource-id URL.') + } + ] + }, + "parameters": {} + } + } + ] + } - # region of workspace can be different from region of RG so find the location of the workspace_resource_id - resources = cf_resources(cmd.cli_ctx, subscription_id) - from azure.core.exceptions import HttpResponseError - try: - resource = resources.get_by_id( - workspace_resource_id, '2015-11-01-preview') - location = resource.location - except HttpResponseError as ex: - raise ex - - unix_time_in_millis = int( - (datetime.datetime.utcnow() - datetime.datetime.utcfromtimestamp(0)).total_seconds() * 1000.0) - - solution_deployment_name = 'ContainerInsights-{}'.format( - unix_time_in_millis) - - # pylint: disable=line-too-long - template = { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { + params = { "workspaceResourceId": { - "type": "string", - "metadata": { - "description": "Azure Monitor Log Analytics Resource ID" - } + "value": workspace_resource_id }, "workspaceRegion": { - "type": "string", - "metadata": { - "description": "Azure Monitor Log Analytics workspace region" - } + "value": location }, "solutionDeploymentName": { - "type": "string", - "metadata": { - "description": "Name of the solution deployment" - } - } - }, - "resources": [ - { - "type": "Microsoft.Resources/deployments", - "name": "[parameters('solutionDeploymentName')]", - "apiVersion": "2017-05-10", - "subscriptionId": "[split(parameters('workspaceResourceId'),'/')[2]]", - "resourceGroup": "[split(parameters('workspaceResourceId'),'/')[4]]", - "properties": { - "mode": "Incremental", - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": {}, - "variables": {}, - "resources": [ - { - "apiVersion": "2015-11-01-preview", - "type": "Microsoft.OperationsManagement/solutions", - "location": "[parameters('workspaceRegion')]", - "name": "[Concat('ContainerInsights', '(', split(parameters('workspaceResourceId'),'/')[8], ')')]", - "properties": { - "workspaceResourceId": "[parameters('workspaceResourceId')]" - }, - "plan": { - "name": "[Concat('ContainerInsights', '(', split(parameters('workspaceResourceId'),'/')[8], ')')]", - "product": "[Concat('OMSGallery/', 'ContainerInsights')]", - "promotionCode": "", - "publisher": "Microsoft" - } - } - ] - }, - "parameters": {} - } + "value": solution_deployment_name } - ] - } - - params = { - "workspaceResourceId": { - "value": workspace_resource_id - }, - "workspaceRegion": { - "value": location - }, - "solutionDeploymentName": { - "value": solution_deployment_name } - } - deployment_name = 'aks-monitoring-{}'.format(unix_time_in_millis) - # publish the Container Insights solution to the Log Analytics workspace - return _invoke_deployment(cmd, resource_group, deployment_name, template, params, - validate=False, no_wait=False, subscription_id=subscription_id) + deployment_name = 'aks-monitoring-{}'.format(unix_time_in_millis) + # publish the Container Insights solution to the Log Analytics workspace + return _invoke_deployment(cmd, resource_group, deployment_name, template, params, + validate=False, no_wait=False, subscription_id=subscription_id) def _ensure_aks_service_principal(cli_ctx, @@ -3379,7 +3325,12 @@ def aks_disable_addons(cmd, client, resource_group_name, name, addons, no_wait=F instance = client.get(resource_group_name, name) subscription_id = get_subscription_id(cmd.cli_ctx) - + try: + if addons == "monitoring" and CONST_MONITORING_ADDON_NAME in instance.addon_profiles and instance.addon_profiles[CONST_MONITORING_ADDON_NAME].enabled and instance.addon_profiles[CONST_MONITORING_ADDON_NAME].config[CONST_MONITORING_USING_AAD_MSI_AUTH]: + # remove the DCR association because the DCR otherwise can't be deleted + _ensure_container_insights_for_monitoring(cmd, instance.addon_profiles[CONST_MONITORING_ADDON_NAME], subscription_id, resource_group_name, name, instance.location, remove_monitoring=True, aad_route=True, create_dcr=False, create_dcra=True) + except TypeError: + pass instance = _update_addons( cmd, @@ -3398,12 +3349,12 @@ def aks_disable_addons(cmd, client, resource_group_name, name, addons, no_wait=F def aks_enable_addons(cmd, client, resource_group_name, name, addons, workspace_resource_id=None, subnet_name=None, appgw_name=None, appgw_subnet_prefix=None, appgw_subnet_cidr=None, appgw_id=None, appgw_subnet_id=None, - appgw_watch_namespace=None, enable_sgxquotehelper=False, enable_secret_rotation=False, no_wait=False, enable_aad_msi_auth=False): + appgw_watch_namespace=None, enable_sgxquotehelper=False, enable_secret_rotation=False, no_wait=False, enable_msi_auth_for_monitoring=False): instance = client.get(resource_group_name, name) subscription_id = get_subscription_id(cmd.cli_ctx) instance = _update_addons(cmd, instance, subscription_id, resource_group_name, name, addons, enable=True, - workspace_resource_id=workspace_resource_id, enable_aad_msi_auth=enable_aad_msi_auth, subnet_name=subnet_name, + workspace_resource_id=workspace_resource_id, enable_msi_auth_for_monitoring=enable_msi_auth_for_monitoring, subnet_name=subnet_name, appgw_name=appgw_name, appgw_subnet_prefix=appgw_subnet_prefix, appgw_subnet_cidr=appgw_subnet_cidr, appgw_id=appgw_id, appgw_subnet_id=appgw_subnet_id, appgw_watch_namespace=appgw_watch_namespace, enable_sgxquotehelper=enable_sgxquotehelper, enable_secret_rotation=enable_secret_rotation, no_wait=no_wait) @@ -3413,15 +3364,14 @@ def aks_enable_addons(cmd, client, resource_group_name, name, addons, workspace_ try: if instance.servicePrincipalProfile.clientId != "": # just checking if this field exists pass - raise CLIError("--enable-aad-msi-auth can not be used on clusters with service principal auth.") + raise CLIError("--enable-msi-auth-for-monitoring can not be used on clusters with service principal auth.") except AttributeError: pass # create a Data Collection Rule (DCR) and associate it with the cluster - _ensure_DCR_monitoring(cmd, instance.addon_profiles[CONST_MONITORING_ADDON_NAME], subscription_id, resource_group_name, name) + _ensure_container_insights_for_monitoring(cmd, instance.addon_profiles[CONST_MONITORING_ADDON_NAME], subscription_id, resource_group_name, name, instance.location, aad_route=True, create_dcr=True, create_dcra=True) else: # monitoring addon will use legacy path - _ensure_container_insights_for_monitoring( - cmd, instance.addon_profiles[CONST_MONITORING_ADDON_NAME]) + _ensure_container_insights_for_monitoring(cmd, instance.addon_profiles[CONST_MONITORING_ADDON_NAME], aad_route=False) monitoring = CONST_MONITORING_ADDON_NAME in instance.addon_profiles and instance.addon_profiles[ CONST_MONITORING_ADDON_NAME].enabled @@ -3479,7 +3429,7 @@ def _update_addons(cmd, # pylint: disable=too-many-branches,too-many-statements addons, enable, workspace_resource_id=None, - enable_aad_msi_auth=False, + enable_msi_auth_for_monitoring=False, subnet_name=None, appgw_name=None, appgw_subnet_prefix=None, @@ -3533,7 +3483,7 @@ def _update_addons(cmd, # pylint: disable=too-many-branches,too-many-statements addon_profile.config = { logAnalyticsConstName: workspace_resource_id} if addon == CONST_MONITORING_ADDON_NAME: # TODO: What is the azure defender addon? Does it use omsagent? - addon_profile.config[CONST_MONITORING_USING_AAD_MSI_AUTH] = enable_aad_msi_auth + addon_profile.config[CONST_MONITORING_USING_AAD_MSI_AUTH] = enable_msi_auth_for_monitoring elif addon == (CONST_VIRTUAL_NODE_ADDON_NAME + os_type): if addon_profile.enabled: raise CLIError('The virtual-node addon is already enabled for this managed cluster.\n' From f9e85a38fb567cc9e8613bfeac65d9d7e30aa356 Mon Sep 17 00:00:00 2001 From: David Michelman Date: Thu, 10 Jun 2021 18:00:12 -0700 Subject: [PATCH 03/20] forgot to remove an exception --- src/aks-preview/azext_aks_preview/custom.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/aks-preview/azext_aks_preview/custom.py b/src/aks-preview/azext_aks_preview/custom.py index 8a9a29b14dc..6c345fac0f6 100644 --- a/src/aks-preview/azext_aks_preview/custom.py +++ b/src/aks-preview/azext_aks_preview/custom.py @@ -2767,9 +2767,6 @@ def _ensure_container_insights_for_monitoring(cmd, addon, cluster_subscription, r = send_raw_request(cmd.cli_ctx, "PUT" if not remove_monitoring else "DELETE", association_url, body=association_body) elif not aad_route: - - raise CLIError("solution about to be created") - # legacy auth with LA workspace solution unix_time_in_millis = int( (datetime.datetime.utcnow() - datetime.datetime.utcfromtimestamp(0)).total_seconds() * 1000.0) From f4a08e90bf19b9f2433644ce7c910219f8690e49 Mon Sep 17 00:00:00 2001 From: David Michelman Date: Fri, 11 Jun 2021 12:44:07 -0700 Subject: [PATCH 04/20] fixed linter problems --- src/aks-preview/az_aks_tool/cli.py | 3 +- src/aks-preview/az_aks_tool/index.py | 4 + src/aks-preview/az_aks_tool/main.py | 4 +- src/aks-preview/azext_aks_preview/custom.py | 88 ++++++++++----------- 4 files changed, 50 insertions(+), 49 deletions(-) diff --git a/src/aks-preview/az_aks_tool/cli.py b/src/aks-preview/az_aks_tool/cli.py index ed21d2ce0a2..ca2a341f27e 100644 --- a/src/aks-preview/az_aks_tool/cli.py +++ b/src/aks-preview/az_aks_tool/cli.py @@ -19,7 +19,6 @@ def get_cli_mod_data(mod_name=const.ACS_MOD_NAME, profile="latest"): # key value pairs of all modules(in azcli & extention) and its absolute path, used later to find test indexes path_table = index.get_path_table() command_modules = path_table["mod"] - inverse_name_table = index.get_name_index(invert=True) # construct 'import_name' & mod_data', used later to find test indexes acs_mod_path = command_modules[mod_name] @@ -38,5 +37,5 @@ def get_cli_test_index(module_data=None, mod_name=const.ACS_MOD_NAME, profile="l if mod_name in module_data: mod_data = module_data[mod_name] else: - mod_data = get_cli_mod_data(mod_name=mod_name, profile=profile) + mod_data = get_cli_mod_data(mod_name=mod_name, profile=profile) return mod_data["files"] diff --git a/src/aks-preview/az_aks_tool/index.py b/src/aks-preview/az_aks_tool/index.py index 11d7e405179..8c5e7880025 100644 --- a/src/aks-preview/az_aks_tool/index.py +++ b/src/aks-preview/az_aks_tool/index.py @@ -46,6 +46,7 @@ def get_repo_path(repo_name, root_path=None): logger.warning("Could not find valid path to repo '{}' from '{}'".format(repo_name, root_path)) return repo_path + def find_files(root_paths, file_pattern): """ Returns the paths to all files that match a given pattern. @@ -60,6 +61,7 @@ def find_files(root_paths, file_pattern): paths.extend(glob.glob(pattern)) return paths + def get_name_index(invert=False, include_whl_extensions=False): """ Returns a dictionary containing the long and short names of modules and extensions is {SHORT:LONG} format or {LONG:SHORT} format when invert=True. """ @@ -114,6 +116,7 @@ def _update_table(paths, key): return table + # pylint: disable=too-many-statements def get_path_table(include_only=None, include_whl_extensions=False): """ Returns a table containing the long and short names of different modules and extensions and the path to them. @@ -201,6 +204,7 @@ def _update_table(package_paths, key): return table + def discover_module_tests(mod_name, mod_data): # get the list of test files in each module diff --git a/src/aks-preview/az_aks_tool/main.py b/src/aks-preview/az_aks_tool/main.py index 57b8f77bd75..5e5e3191728 100644 --- a/src/aks-preview/az_aks_tool/main.py +++ b/src/aks-preview/az_aks_tool/main.py @@ -26,13 +26,13 @@ def init_argparse(args): parser.add_argument("-a", "--all", action="store_true", default=False, help="enbale all tests (cli & ext)") parser.add_argument("-t", "--tests", nargs='+', help="test case names") - parser.add_argument("-cm", "--cli-matrix", type=str, + parser.add_argument("-cm", "--cli-matrix", type=str, help="full path to cli test matrix") parser.add_argument("-cc", "--cli-coverage", nargs="+", help="cli test extra coverage") parser.add_argument("-cf", "--cli-filter", nargs="+", help="cli test filter") - parser.add_argument("-em", "--ext-matrix", type=str, + parser.add_argument("-em", "--ext-matrix", type=str, help="full path to extension test matrix") parser.add_argument("-ec", "--ext-coverage", nargs="+", help="extension test extra coverage") diff --git a/src/aks-preview/azext_aks_preview/custom.py b/src/aks-preview/azext_aks_preview/custom.py index 6c345fac0f6..950cf2481d8 100644 --- a/src/aks-preview/azext_aks_preview/custom.py +++ b/src/aks-preview/azext_aks_preview/custom.py @@ -2647,10 +2647,11 @@ def _sanitize_loganalytics_ws_resource_id(workspace_resource_id): workspace_resource_id = workspace_resource_id.rstrip('/') return workspace_resource_id + def _ensure_container_insights_for_monitoring(cmd, addon, cluster_subscription, cluster_resource_group_name, cluster_name, cluster_region, remove_monitoring=False, aad_route=False, create_dcr=False, create_dcra=False): """ Adds the ContainerInsights solution to a LA workspace - Set remove_monitoring to True and create_dcra to True to remove the DCR-Association (DCR = Data Collection Rule) created for monitoring with the AAD route. The association makes + Set remove_monitoring to True and create_dcra to True to remove the DCR-Association (DCR = Data Collection Rule) created for monitoring with the AAD route. The association makes it very hard to manually delete either the DCR or cluster, and it is not obvious how to manually delete the association from the portal. create_dcr and create_dcra have no effect if aad_route == False @@ -2713,56 +2714,54 @@ def _ensure_container_insights_for_monitoring(cmd, addon, cluster_subscription, for resource in json_response["resourceTypes"]: region_ids = map(lambda x: region_names_to_id[x], resource["locations"]) # map is lazy, so doing this for every region isn't slow if resource["resourceType"] == "dataCollectionRules" and location not in region_ids: - raise CLIError(f'Data Collection Rules are not enabled for LA workspace region {location}') + raise CLIError(f'Data Collection Rules are not enabled for LA workspace region {location}') elif resource["resourceType"] == "dataCollectionRuleAssociations" and cluster_region not in region_ids: - raise CLIError(f'Data Collection Rule Associations are not enabled for cluster region {location}') + raise CLIError(f'Data Collection Rule Associations are not enabled for cluster region {location}') - # create the DCR + # create the DCR dcr_creation_body = json.dumps({"location": location, - "properties": { - "dataFlows": [ - { - "streams": [ - "Microsoft-Perf", - "Microsoft-ContainerInventory", - "Microsoft-ContainerLog", - "Microsoft-ContainerNodeInventory", - "Microsoft-KubeEvents", - "Microsoft-KubeHealth", - "Microsoft-KubeMonAgentEvents", - "Microsoft-KubeNodeInventory", - "Microsoft-KubePodInventory", - "Microsoft-KubePVInventory", - "Microsoft-KubeServices", - "Microsoft-InsightsMetrics" - ], - "destinations": [ - workspace_name - ] - } - ], - "destinations": { - "logAnalytics": [ - { - "workspaceResourceId": workspace_resource_id, - "name": workspace_name - } - ] - } - } - }) + "properties": { + "dataFlows": [ + { + "streams": [ + "Microsoft-Perf", + "Microsoft-ContainerInventory", + "Microsoft-ContainerLog", + "Microsoft-ContainerNodeInventory", + "Microsoft-KubeEvents", + "Microsoft-KubeHealth", + "Microsoft-KubeMonAgentEvents", + "Microsoft-KubeNodeInventory", + "Microsoft-KubePodInventory", + "Microsoft-KubePVInventory", + "Microsoft-KubeServices", + "Microsoft-InsightsMetrics" + ], + "destinations": [ + workspace_name + ] + } + ], + "destinations": { + "logAnalytics": [ + { + "workspaceResourceId": workspace_resource_id, + "name": workspace_name + } + ] + } + }}) url = f"https://management.azure.com/{dcr_resource_id}?api-version=2019-11-01-preview" r = send_raw_request(cmd.cli_ctx, "PUT", url, body=dcr_creation_body) - + if create_dcra: # only create or delete the association between the DCR and cluster association_body = json.dumps({"location": cluster_region, - "properties": { - "dataCollectionRuleId": dcr_resource_id, - "description": "routes monitoring data to a Log Analytics workspace" - } - }) + "properties": { + "dataCollectionRuleId": dcr_resource_id, + "description": "routes monitoring data to a Log Analytics workspace" + }}) association_url = f"https://management.azure.com/{cluster_resource_id}/providers/Microsoft.Insights/dataCollectionRuleAssociations/send-to-{workspace_name}?api-version=2019-11-01-preview" r = send_raw_request(cmd.cli_ctx, "PUT" if not remove_monitoring else "DELETE", association_url, body=association_body) @@ -2850,8 +2849,7 @@ def _ensure_container_insights_for_monitoring(cmd, addon, cluster_subscription, deployment_name = 'aks-monitoring-{}'.format(unix_time_in_millis) # publish the Container Insights solution to the Log Analytics workspace - return _invoke_deployment(cmd, resource_group, deployment_name, template, params, - validate=False, no_wait=False, subscription_id=subscription_id) + return _invoke_deployment(cmd, resource_group, deployment_name, template, params, validate=False, no_wait=False, subscription_id=subscription_id) def _ensure_aks_service_principal(cli_ctx, @@ -3359,7 +3357,7 @@ def aks_enable_addons(cmd, client, resource_group_name, name, addons, workspace_ if instance.addon_profiles[CONST_MONITORING_ADDON_NAME].config[CONST_MONITORING_USING_AAD_MSI_AUTH]: # Ensure the cluster does not use service principal auth try: - if instance.servicePrincipalProfile.clientId != "": # just checking if this field exists + if instance.servicePrincipalProfile.clientId != "": # just checking if this field exists pass raise CLIError("--enable-msi-auth-for-monitoring can not be used on clusters with service principal auth.") except AttributeError: From 10d1429d690158ca495a9e6e3920fd11aad10e8e Mon Sep 17 00:00:00 2001 From: David Michelman Date: Mon, 14 Jun 2021 15:29:11 -0700 Subject: [PATCH 05/20] fixed some linter errors --- linter_exclusions.yml | 6 ++++++ src/aks-preview/azext_aks_preview/_help.py | 2 +- src/aks-preview/azext_aks_preview/_params.py | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/linter_exclusions.yml b/linter_exclusions.yml index 8ce15836f65..e47a82d4a74 100644 --- a/linter_exclusions.yml +++ b/linter_exclusions.yml @@ -76,6 +76,9 @@ aks create: workspace_resource_id: rule_exclusions: - option_length_too_long + enable_msi_auth_for_monitoring: + rule_exclusions: + - option_length_too_long enable_encryption_at_host: rule_exclusions: - option_length_too_long @@ -93,6 +96,9 @@ aks enable-addons: workspace_resource_id: rule_exclusions: - option_length_too_long + enable_msi_auth_for_monitoring: + rule_exclusions: + - option_length_too_long aks nodepool add: parameters: enable_node_public_ip: diff --git a/src/aks-preview/azext_aks_preview/_help.py b/src/aks-preview/azext_aks_preview/_help.py index b687f88137d..94667af12ef 100644 --- a/src/aks-preview/azext_aks_preview/_help.py +++ b/src/aks-preview/azext_aks_preview/_help.py @@ -220,7 +220,7 @@ type: bool short-summary: Use FIPS-enabled OS on agent nodes. - name: --workspace-resource-id - type: string + type: bool short-summary: The resource ID of an existing Log Analytics Workspace to use for storing monitoring data. If not specified, uses the default Log Analytics Workspace if it exists, otherwise creates one. - name: --enable_msi_auth_for_monitoring type: bool diff --git a/src/aks-preview/azext_aks_preview/_params.py b/src/aks-preview/azext_aks_preview/_params.py index d33eb80efe3..25d0079cacc 100644 --- a/src/aks-preview/azext_aks_preview/_params.py +++ b/src/aks-preview/azext_aks_preview/_params.py @@ -91,7 +91,7 @@ def load_arguments(self, _): c.argument('pod_subnet_id', type=str, validator=validate_pod_subnet_id) c.argument('ppg') c.argument('workspace_resource_id') - c.argument('enable_msi_auth_for_monitoring', arg_type=get_three_state_flag(), is_preview=True, help="HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR HURDUR ") + c.argument('enable_msi_auth_for_monitoring', arg_type=get_three_state_flag(), is_preview=True) c.argument('skip_subnet_role_assignment', action='store_true') c.argument('enable_fips_image', action='store_true', is_preview=True) c.argument('enable_cluster_autoscaler', action='store_true') From 4639a0b071f34b19938c148e858a02ad9e37f3b2 Mon Sep 17 00:00:00 2001 From: David Michelman Date: Mon, 14 Jun 2021 17:34:37 -0700 Subject: [PATCH 06/20] fixing linter errors --- src/aks-preview/azext_aks_preview/_help.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/aks-preview/azext_aks_preview/_help.py b/src/aks-preview/azext_aks_preview/_help.py index 94667af12ef..79fce47db5f 100644 --- a/src/aks-preview/azext_aks_preview/_help.py +++ b/src/aks-preview/azext_aks_preview/_help.py @@ -222,7 +222,7 @@ - name: --workspace-resource-id type: bool short-summary: The resource ID of an existing Log Analytics Workspace to use for storing monitoring data. If not specified, uses the default Log Analytics Workspace if it exists, otherwise creates one. - - name: --enable_msi_auth_for_monitoring + - name: --enable-msi-auth-for-monitoring type: bool short-summary: Sends monitoring data using a managed cluster identity instead of a Log Analytics workspace shared key. - name: --enable-cluster-autoscaler @@ -1045,7 +1045,7 @@ - name: --workspace-resource-id type: string short-summary: The resource ID of an existing Log Analytics Workspace to use for storing monitoring data. - - name: --enable_msi_auth_for_monitoring + - name: --enable-msi-auth-for-monitoring type: bool short-summary: Sends monitoring data using a managed cluster identity instead of a Log Analytics workspace shared key. - name: --subnet-name -s From 0b25b7ff6b7cc6ff77cd569a4ce8cd042268a07e Mon Sep 17 00:00:00 2001 From: David Michelman Date: Tue, 15 Jun 2021 10:48:45 -0700 Subject: [PATCH 07/20] fixing some feedback, more to come --- src/aks-preview/az_aks_tool/cli.py | 3 ++- src/aks-preview/az_aks_tool/index.py | 4 ---- src/aks-preview/az_aks_tool/main.py | 4 ++-- src/aks-preview/azext_aks_preview/_consts.py | 2 +- src/aks-preview/azext_aks_preview/_help.py | 2 +- 5 files changed, 6 insertions(+), 9 deletions(-) diff --git a/src/aks-preview/az_aks_tool/cli.py b/src/aks-preview/az_aks_tool/cli.py index ca2a341f27e..ed21d2ce0a2 100644 --- a/src/aks-preview/az_aks_tool/cli.py +++ b/src/aks-preview/az_aks_tool/cli.py @@ -19,6 +19,7 @@ def get_cli_mod_data(mod_name=const.ACS_MOD_NAME, profile="latest"): # key value pairs of all modules(in azcli & extention) and its absolute path, used later to find test indexes path_table = index.get_path_table() command_modules = path_table["mod"] + inverse_name_table = index.get_name_index(invert=True) # construct 'import_name' & mod_data', used later to find test indexes acs_mod_path = command_modules[mod_name] @@ -37,5 +38,5 @@ def get_cli_test_index(module_data=None, mod_name=const.ACS_MOD_NAME, profile="l if mod_name in module_data: mod_data = module_data[mod_name] else: - mod_data = get_cli_mod_data(mod_name=mod_name, profile=profile) + mod_data = get_cli_mod_data(mod_name=mod_name, profile=profile) return mod_data["files"] diff --git a/src/aks-preview/az_aks_tool/index.py b/src/aks-preview/az_aks_tool/index.py index 8c5e7880025..11d7e405179 100644 --- a/src/aks-preview/az_aks_tool/index.py +++ b/src/aks-preview/az_aks_tool/index.py @@ -46,7 +46,6 @@ def get_repo_path(repo_name, root_path=None): logger.warning("Could not find valid path to repo '{}' from '{}'".format(repo_name, root_path)) return repo_path - def find_files(root_paths, file_pattern): """ Returns the paths to all files that match a given pattern. @@ -61,7 +60,6 @@ def find_files(root_paths, file_pattern): paths.extend(glob.glob(pattern)) return paths - def get_name_index(invert=False, include_whl_extensions=False): """ Returns a dictionary containing the long and short names of modules and extensions is {SHORT:LONG} format or {LONG:SHORT} format when invert=True. """ @@ -116,7 +114,6 @@ def _update_table(paths, key): return table - # pylint: disable=too-many-statements def get_path_table(include_only=None, include_whl_extensions=False): """ Returns a table containing the long and short names of different modules and extensions and the path to them. @@ -204,7 +201,6 @@ def _update_table(package_paths, key): return table - def discover_module_tests(mod_name, mod_data): # get the list of test files in each module diff --git a/src/aks-preview/az_aks_tool/main.py b/src/aks-preview/az_aks_tool/main.py index 5e5e3191728..57b8f77bd75 100644 --- a/src/aks-preview/az_aks_tool/main.py +++ b/src/aks-preview/az_aks_tool/main.py @@ -26,13 +26,13 @@ def init_argparse(args): parser.add_argument("-a", "--all", action="store_true", default=False, help="enbale all tests (cli & ext)") parser.add_argument("-t", "--tests", nargs='+', help="test case names") - parser.add_argument("-cm", "--cli-matrix", type=str, + parser.add_argument("-cm", "--cli-matrix", type=str, help="full path to cli test matrix") parser.add_argument("-cc", "--cli-coverage", nargs="+", help="cli test extra coverage") parser.add_argument("-cf", "--cli-filter", nargs="+", help="cli test filter") - parser.add_argument("-em", "--ext-matrix", type=str, + parser.add_argument("-em", "--ext-matrix", type=str, help="full path to extension test matrix") parser.add_argument("-ec", "--ext-coverage", nargs="+", help="extension test extra coverage") diff --git a/src/aks-preview/azext_aks_preview/_consts.py b/src/aks-preview/azext_aks_preview/_consts.py index 385498cdbe5..961bb5b234d 100644 --- a/src/aks-preview/azext_aks_preview/_consts.py +++ b/src/aks-preview/azext_aks_preview/_consts.py @@ -23,7 +23,7 @@ CONST_MONITORING_ADDON_NAME = "omsagent" CONST_MONITORING_LOG_ANALYTICS_WORKSPACE_RESOURCE_ID = "logAnalyticsWorkspaceResourceID" -CONST_MONITORING_USING_AAD_MSI_AUTH = "isUsingAADMSIAuth" +CONST_MONITORING_USING_AAD_MSI_AUTH = "useAADAuth" CONST_VIRTUAL_NODE_ADDON_NAME = "aciConnector" CONST_VIRTUAL_NODE_SUBNET_NAME = "SubnetName" diff --git a/src/aks-preview/azext_aks_preview/_help.py b/src/aks-preview/azext_aks_preview/_help.py index 79fce47db5f..00cea990a24 100644 --- a/src/aks-preview/azext_aks_preview/_help.py +++ b/src/aks-preview/azext_aks_preview/_help.py @@ -220,7 +220,7 @@ type: bool short-summary: Use FIPS-enabled OS on agent nodes. - name: --workspace-resource-id - type: bool + type: string short-summary: The resource ID of an existing Log Analytics Workspace to use for storing monitoring data. If not specified, uses the default Log Analytics Workspace if it exists, otherwise creates one. - name: --enable-msi-auth-for-monitoring type: bool From 6b2873a2f7b36d8e5c2e5a8fcbda49d199d57cf9 Mon Sep 17 00:00:00 2001 From: David Michelman Date: Wed, 16 Jun 2021 10:28:23 -0700 Subject: [PATCH 08/20] fixed all feedback and a bug --- src/aks-preview/azext_aks_preview/custom.py | 108 ++++++++++++++------ 1 file changed, 75 insertions(+), 33 deletions(-) diff --git a/src/aks-preview/azext_aks_preview/custom.py b/src/aks-preview/azext_aks_preview/custom.py index 1a334740a71..95f194b870b 100644 --- a/src/aks-preview/azext_aks_preview/custom.py +++ b/src/aks-preview/azext_aks_preview/custom.py @@ -1252,29 +1252,35 @@ def aks_create(cmd, # pylint: disable=too-many-locals,too-many-statements,to ) addon_profiles = _handle_addons_args( - cmd, - enable_addons, - subscription_id, - resource_group_name, - {}, - workspace_resource_id, - appgw_name, - appgw_subnet_prefix, - appgw_subnet_cidr, - appgw_id, - appgw_subnet_id, - appgw_watch_namespace, - enable_sgxquotehelper, - aci_subnet_name, - vnet_subnet_id, - enable_secret_rotation + cmd = cmd, + addons_str = enable_addons, + subscription_id = subscription_id, + resource_group_name = resource_group_name, + addon_profiles = {}, + workspace_resource_id = workspace_resource_id, + enable_msi_auth_for_monitoring = enable_msi_auth_for_monitoring, + appgw_name = appgw_name, + appgw_subnet_prefix = appgw_subnet_prefix, + appgw_subnet_cidr = appgw_subnet_cidr, + appgw_id = appgw_id, + appgw_subnet_id = appgw_subnet_id, + appgw_watch_namespace = appgw_watch_namespace, + enable_sgxquotehelper = enable_sgxquotehelper, + aci_subnet_name = aci_subnet_name, + vnet_subnet_id = vnet_subnet_id, + enable_secret_rotation = enable_secret_rotation, + ) monitoring = False if CONST_MONITORING_ADDON_NAME in addon_profiles: monitoring = True if enable_msi_auth_for_monitoring and not enable_managed_identity: raise CLIError("--enable-msi-auth-for-monitoring can not be used on clusters with service principal auth.") - _ensure_container_insights_for_monitoring(cmd, addon_profiles[CONST_MONITORING_ADDON_NAME], subscription_id, resource_group_name, name, location, aad_route=enable_msi_auth_for_monitoring, create_dcr=True, create_dcra=False) + _ensure_container_insights_for_monitoring(cmd, + addon_profiles[CONST_MONITORING_ADDON_NAME], subscription_id, + resource_group_name, name, location, + aad_route=enable_msi_auth_for_monitoring, create_dcr=True, + create_dcra=False) # addon is in the list and is enabled ingress_appgw_addon_enabled = CONST_INGRESS_APPGW_ADDON_NAME in addon_profiles and \ @@ -1475,7 +1481,16 @@ def aks_create(cmd, # pylint: disable=too-many-locals,too-many-statements,to # Create the DCR Association here, it must be done after the cluster is created. if monitoring and enable_msi_auth_for_monitoring: - _ensure_container_insights_for_monitoring(cmd, addon_profiles[CONST_MONITORING_ADDON_NAME], subscription_id, resource_group_name, name, location, aad_route=enable_msi_auth_for_monitoring, create_dcr=False, create_dcra=True) + try: + LongRunningOperation(cmd.cli_ctx)(created_cluster) + except AttributeError: + # this means the cluster was already created + pass + _ensure_container_insights_for_monitoring(cmd, + addon_profiles[CONST_MONITORING_ADDON_NAME], subscription_id, + resource_group_name, name, location, + aad_route=enable_msi_auth_for_monitoring, create_dcr=False, + create_dcra=True) return created_cluster @@ -2722,25 +2737,41 @@ def _ensure_container_insights_for_monitoring(cmd, addon, cluster_subscription, dataCollectionRuleName = f"DCR-{workspace_name}" dcr_resource_id = f"/subscriptions/{subscription_id}/resourceGroups/{resource_group}/providers/Microsoft.Insights/dataCollectionRules/{dataCollectionRuleName}" from azure.cli.core.util import send_raw_request + from azure.cli.core.profiles import ResourceType if create_dcr: # first get the association between region display names and region IDs (because for some reason the "which RPs are available in which regions check returns region display names") region_names_to_id = {} - # TODO: does this need retries? - r = send_raw_request(cmd.cli_ctx, "GET", f"https://management.azure.com/subscriptions/{subscription_id}/locations?api-version=2019-11-01") + # retry the request up to two times + for _ in range(3): + try: + r = send_raw_request(cmd.cli_ctx, "GET", f"https://management.azure.com/subscriptions/{subscription_id}/locations?api-version=2019-11-01") + break + except CLIError as e: + pass + else: + # This will run if the above for loop was not broken out of. This means all three requests failed + raise e json_response = json.loads(r.text) for region_data in json_response["value"]: region_names_to_id[region_data["displayName"]] = region_data["name"] # check if region supports DCRs and DCR-A - r = send_raw_request(cmd.cli_ctx, "GET", f"https://management.azure.com/subscriptions/{subscription_id}/providers/Microsoft.Insights?api-version=2020-10-01") + for _ in range(3): + try: + r = send_raw_request(cmd.cli_ctx, "GET", f"https://management.azure.com/subscriptions/{subscription_id}/providers/Microsoft.Insights?api-version=2020-10-01") + break + except CLIError as e: + pass + else: + raise e json_response = json.loads(r.text) for resource in json_response["resourceTypes"]: region_ids = map(lambda x: region_names_to_id[x], resource["locations"]) # map is lazy, so doing this for every region isn't slow if resource["resourceType"] == "dataCollectionRules" and location not in region_ids: - raise CLIError(f'Data Collection Rules are not enabled for LA workspace region {location}') + raise CLIError(f'Data Collection Rules are not supported for LA workspace region {location}') elif resource["resourceType"] == "dataCollectionRuleAssociations" and cluster_region not in region_ids: - raise CLIError(f'Data Collection Rule Associations are not enabled for cluster region {location}') + raise CLIError(f'Data Collection Rule Associations are not supported for cluster region {location}') # create the DCR dcr_creation_body = json.dumps({"location": location, @@ -2775,9 +2806,15 @@ def _ensure_container_insights_for_monitoring(cmd, addon, cluster_subscription, ] } }}) - url = f"https://management.azure.com/{dcr_resource_id}?api-version=2019-11-01-preview" - r = send_raw_request(cmd.cli_ctx, "PUT", url, body=dcr_creation_body) + for _ in range(3): + try: + send_raw_request(cmd.cli_ctx, "PUT", url, body=dcr_creation_body) + break + except CLIError as e: + pass + else: + raise e if create_dcra: # only create or delete the association between the DCR and cluster @@ -2787,9 +2824,16 @@ def _ensure_container_insights_for_monitoring(cmd, addon, cluster_subscription, "description": "routes monitoring data to a Log Analytics workspace" }}) association_url = f"https://management.azure.com/{cluster_resource_id}/providers/Microsoft.Insights/dataCollectionRuleAssociations/send-to-{workspace_name}?api-version=2019-11-01-preview" - r = send_raw_request(cmd.cli_ctx, "PUT" if not remove_monitoring else "DELETE", association_url, body=association_body) + for _ in range(3): + try: + send_raw_request(cmd.cli_ctx, "PUT" if not remove_monitoring else "DELETE", association_url, body=association_body) + break + except CLIError as e: + pass + else: + raise e - elif not aad_route: + else: # legacy auth with LA workspace solution unix_time_in_millis = int( (datetime.datetime.utcnow() - datetime.datetime.utcfromtimestamp(0)).total_seconds() * 1000.0) @@ -3348,7 +3392,7 @@ def aks_disable_addons(cmd, client, resource_group_name, name, addons, no_wait=F try: if addons == "monitoring" and CONST_MONITORING_ADDON_NAME in instance.addon_profiles and instance.addon_profiles[CONST_MONITORING_ADDON_NAME].enabled and instance.addon_profiles[CONST_MONITORING_ADDON_NAME].config[CONST_MONITORING_USING_AAD_MSI_AUTH]: - # remove the DCR association because the DCR otherwise can't be deleted + # remove the DCR association because otherwise the DCR can't be deleted _ensure_container_insights_for_monitoring(cmd, instance.addon_profiles[CONST_MONITORING_ADDON_NAME], subscription_id, resource_group_name, name, instance.location, remove_monitoring=True, aad_route=True, create_dcr=False, create_dcra=True) except TypeError: pass @@ -3392,7 +3436,7 @@ def aks_enable_addons(cmd, client, resource_group_name, name, addons, workspace_ _ensure_container_insights_for_monitoring(cmd, instance.addon_profiles[CONST_MONITORING_ADDON_NAME], subscription_id, resource_group_name, name, instance.location, aad_route=True, create_dcr=True, create_dcra=True) else: # monitoring addon will use legacy path - _ensure_container_insights_for_monitoring(cmd, instance.addon_profiles[CONST_MONITORING_ADDON_NAME], aad_route=False) + _ensure_container_insights_for_monitoring(cmd, instance.addon_profiles[CONST_MONITORING_ADDON_NAME], subscription_id, resource_group_name, name, instance.location, aad_route=False) monitoring = CONST_MONITORING_ADDON_NAME in instance.addon_profiles and instance.addon_profiles[ CONST_MONITORING_ADDON_NAME].enabled @@ -3501,10 +3545,8 @@ def _update_addons(cmd, # pylint: disable=too-many-branches,too-many-statements resource_group_name) workspace_resource_id = _sanitize_loganalytics_ws_resource_id(workspace_resource_id) - addon_profile.config = { - logAnalyticsConstName: workspace_resource_id} - if addon == CONST_MONITORING_ADDON_NAME: # TODO: What is the azure defender addon? Does it use omsagent? - addon_profile.config[CONST_MONITORING_USING_AAD_MSI_AUTH] = enable_msi_auth_for_monitoring + addon_profile.config = {logAnalyticsConstName: workspace_resource_id} + addon_profile.config[CONST_MONITORING_USING_AAD_MSI_AUTH] = enable_msi_auth_for_monitoring elif addon == (CONST_VIRTUAL_NODE_ADDON_NAME + os_type): if addon_profile.enabled: raise CLIError('The virtual-node addon is already enabled for this managed cluster.\n' From a8f31c69ca3b9c21bebaaef1c8f063a3f19b784a Mon Sep 17 00:00:00 2001 From: David Michelman Date: Wed, 16 Jun 2021 12:28:58 -0700 Subject: [PATCH 09/20] cleanup --- src/aks-preview/azext_aks_preview/_help.py | 4 +- src/aks-preview/azext_aks_preview/custom.py | 65 +++++++++++++++------ 2 files changed, 50 insertions(+), 19 deletions(-) diff --git a/src/aks-preview/azext_aks_preview/_help.py b/src/aks-preview/azext_aks_preview/_help.py index 00cea990a24..72031b31e61 100644 --- a/src/aks-preview/azext_aks_preview/_help.py +++ b/src/aks-preview/azext_aks_preview/_help.py @@ -224,7 +224,7 @@ short-summary: The resource ID of an existing Log Analytics Workspace to use for storing monitoring data. If not specified, uses the default Log Analytics Workspace if it exists, otherwise creates one. - name: --enable-msi-auth-for-monitoring type: bool - short-summary: Sends monitoring data using a managed cluster identity instead of a Log Analytics workspace shared key. + short-summary: Sends monitoring data to Log Analytics using the cluster's assigned identity (instead of the Log Analytics Workspace's shared key). - name: --enable-cluster-autoscaler type: bool short-summary: Enable cluster autoscaler, default value is false. @@ -1047,7 +1047,7 @@ short-summary: The resource ID of an existing Log Analytics Workspace to use for storing monitoring data. - name: --enable-msi-auth-for-monitoring type: bool - short-summary: Sends monitoring data using a managed cluster identity instead of a Log Analytics workspace shared key. + short-summary: Sends monitoring data to Log Analytics using the cluster's assigned identity (instead of the Log Analytics Workspace's shared key). - name: --subnet-name -s type: string short-summary: The subnet name for the virtual node to use. diff --git a/src/aks-preview/azext_aks_preview/custom.py b/src/aks-preview/azext_aks_preview/custom.py index 95f194b870b..70cdee981ce 100644 --- a/src/aks-preview/azext_aks_preview/custom.py +++ b/src/aks-preview/azext_aks_preview/custom.py @@ -1268,8 +1268,7 @@ def aks_create(cmd, # pylint: disable=too-many-locals,too-many-statements,to enable_sgxquotehelper = enable_sgxquotehelper, aci_subnet_name = aci_subnet_name, vnet_subnet_id = vnet_subnet_id, - enable_secret_rotation = enable_secret_rotation, - + enable_secret_rotation = enable_secret_rotation, ) monitoring = False if CONST_MONITORING_ADDON_NAME in addon_profiles: @@ -2439,7 +2438,9 @@ def _handle_addons_args(cmd, # pylint: disable=too-many-statements workspace_resource_id = _ensure_default_log_analytics_workspace_for_monitoring( cmd, subscription_id, resource_group_name) workspace_resource_id = _sanitize_loganalytics_ws_resource_id(workspace_resource_id) - addon_profiles[CONST_MONITORING_ADDON_NAME] = ManagedClusterAddonProfile(enabled=True, config={CONST_MONITORING_LOG_ANALYTICS_WORKSPACE_RESOURCE_ID: workspace_resource_id, CONST_MONITORING_USING_AAD_MSI_AUTH: enable_msi_auth_for_monitoring}) + addon_profiles[CONST_MONITORING_ADDON_NAME] = ManagedClusterAddonProfile(enabled=True, + config={CONST_MONITORING_LOG_ANALYTICS_WORKSPACE_RESOURCE_ID: workspace_resource_id, + CONST_MONITORING_USING_AAD_MSI_AUTH: enable_msi_auth_for_monitoring}) addons.remove('monitoring') elif workspace_resource_id: raise CLIError( @@ -2687,13 +2688,26 @@ def _sanitize_loganalytics_ws_resource_id(workspace_resource_id): return workspace_resource_id -def _ensure_container_insights_for_monitoring(cmd, addon, cluster_subscription, cluster_resource_group_name, cluster_name, cluster_region, remove_monitoring=False, aad_route=False, create_dcr=False, create_dcra=False): +def _ensure_container_insights_for_monitoring(cmd, + addon, + cluster_subscription, + cluster_resource_group_name, + cluster_name, + cluster_region, + remove_monitoring=False, + aad_route=False, + create_dcr=False, + create_dcra=False): """ - Adds the ContainerInsights solution to a LA workspace - Set remove_monitoring to True and create_dcra to True to remove the DCR-Association (DCR = Data Collection Rule) created for monitoring with the AAD route. The association makes - it very hard to manually delete either the DCR or cluster, and it is not obvious how to manually delete the association from the portal. - - create_dcr and create_dcra have no effect if aad_route == False + Either adds the ContainerInsights solution to a LA Workspace OR sets up a DCR (Data Collection Rule) and DCRA + (Data Collection Rule Association). Both let the monitoring addon send data to a Log Analytics Workspace. + + Set aad_route == True to set up the DCR data route. Otherwise the solution route will be used. Create_dcr and + create_dcra have no effect if aad_route == False. + + Set remove_monitoring to True and create_dcra to True to remove the DCRA from a cluster. The association makes + it very hard to delete either the DCR or cluster. (It is not obvious how to even navigate to the association from + the portal, and it prevents the cluster and DCR from being deleted individually). """ if not addon.enabled: return None @@ -2740,12 +2754,14 @@ def _ensure_container_insights_for_monitoring(cmd, addon, cluster_subscription, from azure.cli.core.profiles import ResourceType if create_dcr: - # first get the association between region display names and region IDs (because for some reason the "which RPs are available in which regions check returns region display names") + # first get the association between region display names and region IDs (because for some reason + # the "which RPs are available in which regions" check returns region display names) region_names_to_id = {} # retry the request up to two times for _ in range(3): try: - r = send_raw_request(cmd.cli_ctx, "GET", f"https://management.azure.com/subscriptions/{subscription_id}/locations?api-version=2019-11-01") + location_list_url = f"https://management.azure.com/subscriptions/{subscription_id}/locations?api-version=2019-11-01" + r = send_raw_request(cmd.cli_ctx, "GET", location_list_url) break except CLIError as e: pass @@ -2759,7 +2775,8 @@ def _ensure_container_insights_for_monitoring(cmd, addon, cluster_subscription, # check if region supports DCRs and DCR-A for _ in range(3): try: - r = send_raw_request(cmd.cli_ctx, "GET", f"https://management.azure.com/subscriptions/{subscription_id}/providers/Microsoft.Insights?api-version=2020-10-01") + feature_check_url = f"https://management.azure.com/subscriptions/{subscription_id}/providers/Microsoft.Insights?api-version=2020-10-01" + r = send_raw_request(cmd.cli_ctx, "GET", feature_check_url) break except CLIError as e: pass @@ -2806,10 +2823,10 @@ def _ensure_container_insights_for_monitoring(cmd, addon, cluster_subscription, ] } }}) - url = f"https://management.azure.com/{dcr_resource_id}?api-version=2019-11-01-preview" + dcr_url = f"https://management.azure.com/{dcr_resource_id}?api-version=2019-11-01-preview" for _ in range(3): try: - send_raw_request(cmd.cli_ctx, "PUT", url, body=dcr_creation_body) + send_raw_request(cmd.cli_ctx, "PUT", dcr_url, body=dcr_creation_body) break except CLIError as e: pass @@ -2917,7 +2934,8 @@ def _ensure_container_insights_for_monitoring(cmd, addon, cluster_subscription, deployment_name = 'aks-monitoring-{}'.format(unix_time_in_millis) # publish the Container Insights solution to the Log Analytics workspace - return _invoke_deployment(cmd, resource_group, deployment_name, template, params, validate=False, no_wait=False, subscription_id=subscription_id) + return _invoke_deployment(cmd, resource_group, deployment_name, template, params, + validate=False, no_wait=False, subscription_id=subscription_id) def _ensure_aks_service_principal(cli_ctx, @@ -3391,9 +3409,22 @@ def aks_disable_addons(cmd, client, resource_group_name, name, addons, no_wait=F subscription_id = get_subscription_id(cmd.cli_ctx) try: - if addons == "monitoring" and CONST_MONITORING_ADDON_NAME in instance.addon_profiles and instance.addon_profiles[CONST_MONITORING_ADDON_NAME].enabled and instance.addon_profiles[CONST_MONITORING_ADDON_NAME].config[CONST_MONITORING_USING_AAD_MSI_AUTH]: + if addons == "monitoring" and CONST_MONITORING_ADDON_NAME in instance.addon_profiles and \ + instance.addon_profiles[CONST_MONITORING_ADDON_NAME].enabled and \ + instance.addon_profiles[CONST_MONITORING_ADDON_NAME].config[CONST_MONITORING_USING_AAD_MSI_AUTH]: # remove the DCR association because otherwise the DCR can't be deleted - _ensure_container_insights_for_monitoring(cmd, instance.addon_profiles[CONST_MONITORING_ADDON_NAME], subscription_id, resource_group_name, name, instance.location, remove_monitoring=True, aad_route=True, create_dcr=False, create_dcra=True) + _ensure_container_insights_for_monitoring( + cmd, + instance.addon_profiles[CONST_MONITORING_ADDON_NAME], + subscription_id, + resource_group_name, + name, + instance.location, + remove_monitoring=True, + aad_route=True, + create_dcr=False, + create_dcra=True + ) except TypeError: pass From 70ecaa6ad0c1abd232831d2dd4256f3276c8df12 Mon Sep 17 00:00:00 2001 From: David Michelman Date: Thu, 17 Jun 2021 09:02:40 -0700 Subject: [PATCH 10/20] addressed comments and static analyzer errors --- src/aks-preview/azext_aks_preview/custom.py | 104 ++++++++++---------- 1 file changed, 54 insertions(+), 50 deletions(-) diff --git a/src/aks-preview/azext_aks_preview/custom.py b/src/aks-preview/azext_aks_preview/custom.py index 70cdee981ce..15a65989e49 100644 --- a/src/aks-preview/azext_aks_preview/custom.py +++ b/src/aks-preview/azext_aks_preview/custom.py @@ -1252,33 +1252,33 @@ def aks_create(cmd, # pylint: disable=too-many-locals,too-many-statements,to ) addon_profiles = _handle_addons_args( - cmd = cmd, - addons_str = enable_addons, - subscription_id = subscription_id, - resource_group_name = resource_group_name, - addon_profiles = {}, - workspace_resource_id = workspace_resource_id, - enable_msi_auth_for_monitoring = enable_msi_auth_for_monitoring, - appgw_name = appgw_name, - appgw_subnet_prefix = appgw_subnet_prefix, - appgw_subnet_cidr = appgw_subnet_cidr, - appgw_id = appgw_id, - appgw_subnet_id = appgw_subnet_id, - appgw_watch_namespace = appgw_watch_namespace, - enable_sgxquotehelper = enable_sgxquotehelper, - aci_subnet_name = aci_subnet_name, - vnet_subnet_id = vnet_subnet_id, - enable_secret_rotation = enable_secret_rotation, + cmd=cmd, + addons_str=enable_addons, + subscription_id=subscription_id, + resource_group_name=resource_group_name, + addon_profiles={}, + workspace_resource_id=workspace_resource_id, + enable_msi_auth_for_monitoring=enable_msi_auth_for_monitoring, + appgw_name=appgw_name, + appgw_subnet_prefix=appgw_subnet_prefix, + appgw_subnet_cidr=appgw_subnet_cidr, + appgw_id=appgw_id, + appgw_subnet_id=appgw_subnet_id, + appgw_watch_namespace=appgw_watch_namespace, + enable_sgxquotehelper=enable_sgxquotehelper, + aci_subnet_name=aci_subnet_name, + vnet_subnet_id=vnet_subnet_id, + enable_secret_rotation=enable_secret_rotation, ) monitoring = False if CONST_MONITORING_ADDON_NAME in addon_profiles: monitoring = True if enable_msi_auth_for_monitoring and not enable_managed_identity: - raise CLIError("--enable-msi-auth-for-monitoring can not be used on clusters with service principal auth.") - _ensure_container_insights_for_monitoring(cmd, - addon_profiles[CONST_MONITORING_ADDON_NAME], subscription_id, - resource_group_name, name, location, - aad_route=enable_msi_auth_for_monitoring, create_dcr=True, + raise ArgumentUsageError("--enable-msi-auth-for-monitoring can not be used on clusters with service principal auth.") + _ensure_container_insights_for_monitoring(cmd, + addon_profiles[CONST_MONITORING_ADDON_NAME], subscription_id, + resource_group_name, name, location, + aad_route=enable_msi_auth_for_monitoring, create_dcr=True, create_dcra=False) # addon is in the list and is enabled @@ -1452,6 +1452,10 @@ def aks_create(cmd, # pylint: disable=too-many-locals,too-many-statements,to retry_exception = Exception(None) for _ in range(0, max_retry): try: + if monitoring and enable_msi_auth_for_monitoring: + # Creating a DCR Association (for the monitoring addon) requires waiting for cluster creation to finish + no_wait = False + created_cluster = _put_managed_cluster_ensuring_permission( cmd, client, @@ -1468,30 +1472,23 @@ def aks_create(cmd, # pylint: disable=too-many-locals,too-many-statements,to attach_acr, headers, no_wait) - break + + if monitoring and enable_msi_auth_for_monitoring: + # Create the DCR Association here + _ensure_container_insights_for_monitoring(cmd, + addon_profiles[CONST_MONITORING_ADDON_NAME], subscription_id, + resource_group_name, name, location, + aad_route=enable_msi_auth_for_monitoring, create_dcr=False, + create_dcra=True) + + return created_cluster except CloudError as ex: retry_exception = ex if 'not found in Active Directory tenant' in ex.message: time.sleep(3) else: raise ex - else: - raise retry_exception - - # Create the DCR Association here, it must be done after the cluster is created. - if monitoring and enable_msi_auth_for_monitoring: - try: - LongRunningOperation(cmd.cli_ctx)(created_cluster) - except AttributeError: - # this means the cluster was already created - pass - _ensure_container_insights_for_monitoring(cmd, - addon_profiles[CONST_MONITORING_ADDON_NAME], subscription_id, - resource_group_name, name, location, - aad_route=enable_msi_auth_for_monitoring, create_dcr=False, - create_dcra=True) - - return created_cluster + raise retry_exception def aks_update(cmd, # pylint: disable=too-many-statements,too-many-branches,too-many-locals @@ -2440,7 +2437,7 @@ def _handle_addons_args(cmd, # pylint: disable=too-many-statements workspace_resource_id = _sanitize_loganalytics_ws_resource_id(workspace_resource_id) addon_profiles[CONST_MONITORING_ADDON_NAME] = ManagedClusterAddonProfile(enabled=True, config={CONST_MONITORING_LOG_ANALYTICS_WORKSPACE_RESOURCE_ID: workspace_resource_id, - CONST_MONITORING_USING_AAD_MSI_AUTH: enable_msi_auth_for_monitoring}) + CONST_MONITORING_USING_AAD_MSI_AUTH: enable_msi_auth_for_monitoring}) addons.remove('monitoring') elif workspace_resource_id: raise CLIError( @@ -2701,8 +2698,8 @@ def _ensure_container_insights_for_monitoring(cmd, """ Either adds the ContainerInsights solution to a LA Workspace OR sets up a DCR (Data Collection Rule) and DCRA (Data Collection Rule Association). Both let the monitoring addon send data to a Log Analytics Workspace. - - Set aad_route == True to set up the DCR data route. Otherwise the solution route will be used. Create_dcr and + + Set aad_route == True to set up the DCR data route. Otherwise the solution route will be used. Create_dcr and create_dcra have no effect if aad_route == False. Set remove_monitoring to True and create_dcra to True to remove the DCRA from a cluster. The association makes @@ -2762,6 +2759,10 @@ def _ensure_container_insights_for_monitoring(cmd, try: location_list_url = f"https://management.azure.com/subscriptions/{subscription_id}/locations?api-version=2019-11-01" r = send_raw_request(cmd.cli_ctx, "GET", location_list_url) + + # this is required to fool the static analyzer. The else statement will only run if an exception + # is thrown, but flake8 will complain that e is undefined if we don't also define it here. + e = None break except CLIError as e: pass @@ -2777,6 +2778,7 @@ def _ensure_container_insights_for_monitoring(cmd, try: feature_check_url = f"https://management.azure.com/subscriptions/{subscription_id}/providers/Microsoft.Insights?api-version=2020-10-01" r = send_raw_request(cmd.cli_ctx, "GET", feature_check_url) + e = None break except CLIError as e: pass @@ -2785,10 +2787,10 @@ def _ensure_container_insights_for_monitoring(cmd, json_response = json.loads(r.text) for resource in json_response["resourceTypes"]: region_ids = map(lambda x: region_names_to_id[x], resource["locations"]) # map is lazy, so doing this for every region isn't slow - if resource["resourceType"] == "dataCollectionRules" and location not in region_ids: - raise CLIError(f'Data Collection Rules are not supported for LA workspace region {location}') - elif resource["resourceType"] == "dataCollectionRuleAssociations" and cluster_region not in region_ids: - raise CLIError(f'Data Collection Rule Associations are not supported for cluster region {location}') + if resource["resourceType"].lower() == "datacollectionrules" and location not in region_ids: + raise ClientRequestError(f'Data Collection Rules are not supported for LA workspace region {location}') + elif resource["resourceType"].lower() == "datacollectionruleassociations" and cluster_region not in region_ids: + raise ClientRequestError(f'Data Collection Rule Associations are not supported for cluster region {location}') # create the DCR dcr_creation_body = json.dumps({"location": location, @@ -2827,6 +2829,7 @@ def _ensure_container_insights_for_monitoring(cmd, for _ in range(3): try: send_raw_request(cmd.cli_ctx, "PUT", dcr_url, body=dcr_creation_body) + e = None break except CLIError as e: pass @@ -2844,6 +2847,7 @@ def _ensure_container_insights_for_monitoring(cmd, for _ in range(3): try: send_raw_request(cmd.cli_ctx, "PUT" if not remove_monitoring else "DELETE", association_url, body=association_body) + e = None break except CLIError as e: pass @@ -3410,8 +3414,8 @@ def aks_disable_addons(cmd, client, resource_group_name, name, addons, no_wait=F try: if addons == "monitoring" and CONST_MONITORING_ADDON_NAME in instance.addon_profiles and \ - instance.addon_profiles[CONST_MONITORING_ADDON_NAME].enabled and \ - instance.addon_profiles[CONST_MONITORING_ADDON_NAME].config[CONST_MONITORING_USING_AAD_MSI_AUTH]: + instance.addon_profiles[CONST_MONITORING_ADDON_NAME].enabled and \ + instance.addon_profiles[CONST_MONITORING_ADDON_NAME].config[CONST_MONITORING_USING_AAD_MSI_AUTH]: # remove the DCR association because otherwise the DCR can't be deleted _ensure_container_insights_for_monitoring( cmd, @@ -3460,7 +3464,7 @@ def aks_enable_addons(cmd, client, resource_group_name, name, addons, workspace_ try: if instance.servicePrincipalProfile.clientId != "": # just checking if this field exists pass - raise CLIError("--enable-msi-auth-for-monitoring can not be used on clusters with service principal auth.") + raise ArgumentUsageError("--enable-msi-auth-for-monitoring can not be used on clusters with service principal auth.") except AttributeError: pass # create a Data Collection Rule (DCR) and associate it with the cluster From 5f4a2951dc58369d4bd85045cb1012772899e25a Mon Sep 17 00:00:00 2001 From: David Michelman Date: Thu, 17 Jun 2021 12:24:38 -0700 Subject: [PATCH 11/20] Update src/aks-preview/azext_aks_preview/_help.py Co-authored-by: Xing Zhou --- src/aks-preview/azext_aks_preview/_help.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aks-preview/azext_aks_preview/_help.py b/src/aks-preview/azext_aks_preview/_help.py index 72031b31e61..9a7da2e02bc 100644 --- a/src/aks-preview/azext_aks_preview/_help.py +++ b/src/aks-preview/azext_aks_preview/_help.py @@ -224,7 +224,7 @@ short-summary: The resource ID of an existing Log Analytics Workspace to use for storing monitoring data. If not specified, uses the default Log Analytics Workspace if it exists, otherwise creates one. - name: --enable-msi-auth-for-monitoring type: bool - short-summary: Sends monitoring data to Log Analytics using the cluster's assigned identity (instead of the Log Analytics Workspace's shared key). + short-summary: Send monitoring data to Log Analytics using the cluster's assigned identity (instead of the Log Analytics Workspace's shared key). - name: --enable-cluster-autoscaler type: bool short-summary: Enable cluster autoscaler, default value is false. From 9d1852be57ee2b79239fadbb112035d726bf4ab8 Mon Sep 17 00:00:00 2001 From: David Michelman Date: Thu, 17 Jun 2021 12:25:37 -0700 Subject: [PATCH 12/20] Update src/aks-preview/azext_aks_preview/_help.py Co-authored-by: Xing Zhou --- src/aks-preview/azext_aks_preview/_help.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aks-preview/azext_aks_preview/_help.py b/src/aks-preview/azext_aks_preview/_help.py index 9a7da2e02bc..05ff0a95486 100644 --- a/src/aks-preview/azext_aks_preview/_help.py +++ b/src/aks-preview/azext_aks_preview/_help.py @@ -1047,7 +1047,7 @@ short-summary: The resource ID of an existing Log Analytics Workspace to use for storing monitoring data. - name: --enable-msi-auth-for-monitoring type: bool - short-summary: Sends monitoring data to Log Analytics using the cluster's assigned identity (instead of the Log Analytics Workspace's shared key). + short-summary: Send monitoring data to Log Analytics using the cluster's assigned identity (instead of the Log Analytics Workspace's shared key). - name: --subnet-name -s type: string short-summary: The subnet name for the virtual node to use. From be239f6902b898e798ab7861f28ffba7db616b64 Mon Sep 17 00:00:00 2001 From: David Michelman Date: Thu, 17 Jun 2021 09:12:46 -0700 Subject: [PATCH 13/20] fix linter error --- src/aks-preview/azext_aks_preview/custom.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/aks-preview/azext_aks_preview/custom.py b/src/aks-preview/azext_aks_preview/custom.py index 15a65989e49..5ac0ef45c54 100644 --- a/src/aks-preview/azext_aks_preview/custom.py +++ b/src/aks-preview/azext_aks_preview/custom.py @@ -1472,14 +1472,14 @@ def aks_create(cmd, # pylint: disable=too-many-locals,too-many-statements,to attach_acr, headers, no_wait) - + if monitoring and enable_msi_auth_for_monitoring: # Create the DCR Association here _ensure_container_insights_for_monitoring(cmd, - addon_profiles[CONST_MONITORING_ADDON_NAME], subscription_id, - resource_group_name, name, location, - aad_route=enable_msi_auth_for_monitoring, create_dcr=False, - create_dcra=True) + addon_profiles[CONST_MONITORING_ADDON_NAME], subscription_id, + resource_group_name, name, location, + aad_route=enable_msi_auth_for_monitoring, create_dcr=False, + create_dcra=True) return created_cluster except CloudError as ex: From 33a27ef9b128d09f402db20d767149b2a7427962 Mon Sep 17 00:00:00 2001 From: David Michelman Date: Fri, 18 Jun 2021 11:13:54 -0700 Subject: [PATCH 14/20] fixed small errors --- src/aks-preview/azext_aks_preview/_params.py | 2 ++ src/aks-preview/azext_aks_preview/custom.py | 16 ++++++++-------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/aks-preview/azext_aks_preview/_params.py b/src/aks-preview/azext_aks_preview/_params.py index 25d0079cacc..24853f6e819 100644 --- a/src/aks-preview/azext_aks_preview/_params.py +++ b/src/aks-preview/azext_aks_preview/_params.py @@ -262,6 +262,8 @@ def load_arguments(self, _): c.argument('appgw_subnet_id', options_list=['--appgw-subnet-id'], arg_group='Application Gateway') c.argument('appgw_watch_namespace', options_list=['--appgw-watch-namespace'], arg_group='Application Gateway') c.argument('enable_secret_rotation', action='store_true') + c.argument('workspace_resource_id') + c.argument('enable_msi_auth_for_monitoring', arg_type=get_three_state_flag(), is_preview=True) with self.argument_context('aks get-credentials') as c: c.argument('admin', options_list=['--admin', '-a'], default=False) diff --git a/src/aks-preview/azext_aks_preview/custom.py b/src/aks-preview/azext_aks_preview/custom.py index 5ac0ef45c54..f85c1fa228d 100644 --- a/src/aks-preview/azext_aks_preview/custom.py +++ b/src/aks-preview/azext_aks_preview/custom.py @@ -2812,7 +2812,7 @@ def _ensure_container_insights_for_monitoring(cmd, "Microsoft-InsightsMetrics" ], "destinations": [ - workspace_name + "la-workspace" ] } ], @@ -2820,7 +2820,7 @@ def _ensure_container_insights_for_monitoring(cmd, "logAnalytics": [ { "workspaceResourceId": workspace_resource_id, - "name": workspace_name + "name": "la-workspace" } ] } @@ -2829,12 +2829,12 @@ def _ensure_container_insights_for_monitoring(cmd, for _ in range(3): try: send_raw_request(cmd.cli_ctx, "PUT", dcr_url, body=dcr_creation_body) - e = None + error = None break except CLIError as e: - pass + error = e else: - raise e + raise error if create_dcra: # only create or delete the association between the DCR and cluster @@ -2847,12 +2847,12 @@ def _ensure_container_insights_for_monitoring(cmd, for _ in range(3): try: send_raw_request(cmd.cli_ctx, "PUT" if not remove_monitoring else "DELETE", association_url, body=association_body) - e = None + error = None break except CLIError as e: - pass + error = e else: - raise e + raise error else: # legacy auth with LA workspace solution From c4653bb0822f7447a6ea0550881b348eb9d75a2c Mon Sep 17 00:00:00 2001 From: David Michelman Date: Fri, 25 Jun 2021 17:48:04 -0700 Subject: [PATCH 15/20] added unit tests, cleaned up the msi/sp auth check --- src/aks-preview/azext_aks_preview/custom.py | 16 +- ...s_create_with_monitoring_aad_auth_msi.yaml | 1805 +++++++++++++++++ ...s_create_with_monitoring_aad_auth_uai.yaml | 1803 ++++++++++++++++ ...est_aks_create_with_monitoring_errors.yaml | 1451 +++++++++++++ ...ks_create_with_monitoring_legacy_auth.yaml | 1159 +++++++++++ ...t_aks_enable_addons_monitoring_errors.yaml | 793 ++++++++ .../tests/latest/test_aks_commands.py | 146 ++ 7 files changed, 7165 insertions(+), 8 deletions(-) create mode 100644 src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_with_monitoring_aad_auth_msi.yaml create mode 100644 src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_with_monitoring_aad_auth_uai.yaml create mode 100644 src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_with_monitoring_errors.yaml create mode 100644 src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_with_monitoring_legacy_auth.yaml create mode 100644 src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_enable_addons_monitoring_errors.yaml diff --git a/src/aks-preview/azext_aks_preview/custom.py b/src/aks-preview/azext_aks_preview/custom.py index f85c1fa228d..72e096dfebe 100644 --- a/src/aks-preview/azext_aks_preview/custom.py +++ b/src/aks-preview/azext_aks_preview/custom.py @@ -3452,6 +3452,8 @@ def aks_enable_addons(cmd, client, resource_group_name, name, addons, workspace_ appgw_watch_namespace=None, enable_sgxquotehelper=False, enable_secret_rotation=False, no_wait=False, enable_msi_auth_for_monitoring=False): instance = client.get(resource_group_name, name) + msi_auth = True if instance.service_principal_profile.client_id == "msi" else False + subscription_id = get_subscription_id(cmd.cli_ctx) instance = _update_addons(cmd, instance, subscription_id, resource_group_name, name, addons, enable=True, workspace_resource_id=workspace_resource_id, enable_msi_auth_for_monitoring=enable_msi_auth_for_monitoring, subnet_name=subnet_name, @@ -3459,16 +3461,14 @@ def aks_enable_addons(cmd, client, resource_group_name, name, addons, workspace_ enable_sgxquotehelper=enable_sgxquotehelper, enable_secret_rotation=enable_secret_rotation, no_wait=no_wait) if CONST_MONITORING_ADDON_NAME in instance.addon_profiles and instance.addon_profiles[CONST_MONITORING_ADDON_NAME].enabled: + + if instance.addon_profiles[CONST_MONITORING_ADDON_NAME].config[CONST_MONITORING_USING_AAD_MSI_AUTH]: - # Ensure the cluster does not use service principal auth - try: - if instance.servicePrincipalProfile.clientId != "": # just checking if this field exists - pass + if msi_auth: raise ArgumentUsageError("--enable-msi-auth-for-monitoring can not be used on clusters with service principal auth.") - except AttributeError: - pass - # create a Data Collection Rule (DCR) and associate it with the cluster - _ensure_container_insights_for_monitoring(cmd, instance.addon_profiles[CONST_MONITORING_ADDON_NAME], subscription_id, resource_group_name, name, instance.location, aad_route=True, create_dcr=True, create_dcra=True) + else: + # create a Data Collection Rule (DCR) and associate it with the cluster + _ensure_container_insights_for_monitoring(cmd, instance.addon_profiles[CONST_MONITORING_ADDON_NAME], subscription_id, resource_group_name, name, instance.location, aad_route=True, create_dcr=True, create_dcra=True) else: # monitoring addon will use legacy path _ensure_container_insights_for_monitoring(cmd, instance.addon_profiles[CONST_MONITORING_ADDON_NAME], subscription_id, resource_group_name, name, instance.location, aad_route=False) diff --git a/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_with_monitoring_aad_auth_msi.yaml b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_with_monitoring_aad_auth_msi.yaml new file mode 100644 index 00000000000..574fde8f2de --- /dev/null +++ b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_with_monitoring_aad_auth_msi.yaml @@ -0,0 +1,1805 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --generate-ssh-keys --enable-managed-identity + --enable-addons --enable-msi-auth-for-monitoring --node-count + User-Agent: + - AZURECLI/2.24.2 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001?api-version=2020-10-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001","name":"clitest000001","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"product":"azurecli","cause":"automation","date":"2021-06-26T00:07:54Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '313' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 26 Jun 2021 00:07:54 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 --generate-ssh-keys --enable-managed-identity + --enable-addons --enable-msi-auth-for-monitoring --node-count + User-Agent: + - AZURECLI/2.24.2 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001?api-version=2020-10-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001","name":"clitest000001","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"product":"azurecli","cause":"automation","date":"2021-06-26T00:07:54Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '313' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 26 Jun 2021 00:07:54 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 --generate-ssh-keys --enable-managed-identity + --enable-addons --enable-msi-auth-for-monitoring --node-count + User-Agent: + - AZURECLI/2.24.2 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: HEAD + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/DefaultResourceGroup-WUS2?api-version=2020-10-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Sat, 26 Jun 2021 00:07:54 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 --generate-ssh-keys --enable-managed-identity + --enable-addons --enable-msi-auth-for-monitoring --node-count + User-Agent: + - AZURECLI/2.24.2 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/DefaultResourceGroup-WUS2/providers/Microsoft.OperationalInsights/workspaces/DefaultWorkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-WUS2?api-version=2015-11-01-preview + response: + body: + string: '{"error":{"code":"ResourceNotFound","message":"The Resource ''Microsoft.OperationalInsights/workspaces/DefaultWorkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-WUS2'' + under resource group ''DefaultResourceGroup-WUS2'' was not found. For more + details please go to https://aka.ms/ARMResourceNotFoundFix"}}' + headers: + cache-control: + - no-cache + content-length: + - '296' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 26 Jun 2021 00:07:55 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", "properties": {"sku": {"name": "standalone"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '70' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --name --location --generate-ssh-keys --enable-managed-identity + --enable-addons --enable-msi-auth-for-monitoring --node-count + User-Agent: + - AZURECLI/2.24.2 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/DefaultResourceGroup-WUS2/providers/Microsoft.OperationalInsights/workspaces/DefaultWorkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-WUS2?api-version=2015-11-01-preview + response: + body: + string: "{\r\n \"properties\": {\r\n \"source\": \"Azure\",\r\n \"customerId\": + \"a6ec9525-4c1b-4ebf-80ad-1a1da5f6ca3c\",\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"sku\": {\r\n \"name\": \"pergb2018\",\r\n \"lastSkuUpdate\": + \"Fri, 18 Jun 2021 21:03:33 GMT\"\r\n },\r\n \"retentionInDays\": 30,\r\n + \ \"features\": {\r\n \"legacy\": 0,\r\n \"searchVersion\": 1,\r\n + \ \"enableLogAccessUsingOnlyResourcePermissions\": true\r\n },\r\n + \ \"workspaceCapping\": {\r\n \"dailyQuotaGb\": -1.0,\r\n \"quotaNextResetTime\": + \"Sat, 26 Jun 2021 12:00:00 GMT\",\r\n \"dataIngestionStatus\": \"RespectQuota\"\r\n + \ },\r\n \"publicNetworkAccessForIngestion\": \"Enabled\",\r\n \"publicNetworkAccessForQuery\": + \"Enabled\",\r\n \"createdDate\": \"Fri, 18 Jun 2021 21:03:33 GMT\",\r\n + \ \"modifiedDate\": \"Fri, 18 Jun 2021 21:25:31 GMT\"\r\n },\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2\",\r\n + \ \"name\": \"DefaultWorkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-WUS2\",\r\n + \ \"type\": \"Microsoft.OperationalInsights/workspaces\",\r\n \"location\": + \"westus2\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1161' + content-type: + - application/json + date: + - Sat, 26 Jun 2021 00:07:57 GMT + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + - Microsoft-IIS/10.0 + 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' + x-powered-by: + - ASP.NET + - ASP.NET + 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 --generate-ssh-keys --enable-managed-identity + --enable-addons --enable-msi-auth-for-monitoring --node-count + User-Agent: + - AZURECLI/2.24.2 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2?api-version=2015-11-01-preview + response: + body: + string: "{\r\n \"properties\": {\r\n \"source\": \"Azure\",\r\n \"customerId\": + \"a6ec9525-4c1b-4ebf-80ad-1a1da5f6ca3c\",\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"sku\": {\r\n \"name\": \"pergb2018\",\r\n \"lastSkuUpdate\": + \"Fri, 18 Jun 2021 21:03:33 GMT\"\r\n },\r\n \"retentionInDays\": 30,\r\n + \ \"features\": {\r\n \"legacy\": 0,\r\n \"searchVersion\": 1,\r\n + \ \"enableLogAccessUsingOnlyResourcePermissions\": true\r\n },\r\n + \ \"workspaceCapping\": {\r\n \"dailyQuotaGb\": -1.0,\r\n \"quotaNextResetTime\": + \"Sat, 26 Jun 2021 12:00:00 GMT\",\r\n \"dataIngestionStatus\": \"RespectQuota\"\r\n + \ },\r\n \"publicNetworkAccessForIngestion\": \"Enabled\",\r\n \"publicNetworkAccessForQuery\": + \"Enabled\",\r\n \"createdDate\": \"Fri, 18 Jun 2021 21:03:33 GMT\",\r\n + \ \"modifiedDate\": \"Sat, 26 Jun 2021 00:07:56 GMT\"\r\n },\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2\",\r\n + \ \"name\": \"DefaultWorkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-WUS2\",\r\n + \ \"type\": \"Microsoft.OperationalInsights/workspaces\",\r\n \"location\": + \"westus2\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1161' + content-type: + - application/json + date: + - Sat, 26 Jun 2021 00:07:57 GMT + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + - 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 --generate-ssh-keys --enable-managed-identity + --enable-addons --enable-msi-auth-for-monitoring --node-count + User-Agent: + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + AZURECLI/2.24.2 + 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/northcentralus\",\"name\":\"northcentralus\",\"displayName\":\"North + Central US\",\"regionalDisplayName\":\"(US) North Central US\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Recommended\",\"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\":\"Recommended\",\"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/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/jioindiawest\",\"name\":\"jioindiawest\",\"displayName\":\"Jio + India West\",\"regionalDisplayName\":\"(Asia Pacific) Jio India West\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Recommended\",\"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/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/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/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/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/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/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/eastus2euap\",\"name\":\"eastus2euap\",\"displayName\":\"East + US 2 EUAP\",\"regionalDisplayName\":\"(US) East US 2 EUAP\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Other\",\"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/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/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\"}]}}]}" + headers: + cache-control: + - no-cache + content-length: + - '27465' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 26 Jun 2021 00:07:58 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 + ParameterSetName: + - --resource-group --name --location --generate-ssh-keys --enable-managed-identity + --enable-addons --enable-msi-auth-for-monitoring --node-count + User-Agent: + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + AZURECLI/2.24.2 + 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"}],"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"],"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":[],"apiVersions":["2018-04-20"],"capabilities":"None"},{"resourceType":"components/metadata","locations":[],"apiVersions":["2018-04-20"],"capabilities":"None"},{"resourceType":"components/metrics","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","Brazil South","Switzerland North","Australia + Southeast","Norway East","Norway West"],"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"],"apiVersions":["2018-04-20"],"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"],"apiVersions":["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"],"apiVersions":["2020-02-10-preview"],"capabilities":"None"},{"resourceType":"scheduledqueryrules","locations":["Global","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"],"apiVersions":["2021-02-01-preview","2020-05-01-preview","2018-04-16","2017-09-01-preview"],"defaultApiVersion":"2018-04-16","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"components/pricingPlans","locations":["East + US","South Central US","North Europe","West Europe","Southeast Asia","West + US 2"],"apiVersions":["2017-10-01"],"capabilities":"None"},{"resourceType":"migrateToNewPricingModel","locations":["East + US","South Central US","North Europe","West Europe","Southeast Asia","West + US 2"],"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"],"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"],"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"],"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","South Africa North","UAE North"],"apiVersions":["2016-03-01","2015-04-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","West + Europe","East Asia","Southeast Asia","Japan East","Japan West","North Central + US","Australia East","South Africa North","UAE North","Switzerland North","Germany + West Central","Norway East","West US 3","Jio India West"],"apiVersions":["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","South Africa North","UAE North","Switzerland + North","Germany West Central","Norway East","West US 3","Jio India West"],"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","South Africa North","UAE North","Switzerland + North","Germany West Central","Norway East","West US 3","Jio India West"],"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","South Africa North","UAE North","Switzerland + North","Germany West Central","Norway East","West US 3","Jio India West"],"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","West US 3","West Central + US","Korea South","Korea Central","UK South","UK West","France Central","South + Africa North","South Africa West","UAE North","Switzerland North","Germany + West Central","Norway East"],"apiVersions":["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"],"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","West US 3","West Central + US","Korea South","Korea Central","UK South","UK West","France Central","South + Africa North","South Africa West","UAE North","Switzerland North","Germany + West Central","Norway East"],"apiVersions":["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":[],"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","West US 3","West Central + US","Korea South","Korea Central","UK South","UK West","France Central","South + Africa North","South Africa West","UAE North","Switzerland North","Germany + West Central","Norway East"],"apiVersions":["2017-12-01-preview"],"capabilities":"SupportsExtension"},{"resourceType":"actiongroups","locations":["Global"],"apiVersions":["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":"baseline","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","South India","Central India","West India","North + Europe","Norway East","Germany West Central","Switzerland North","West US + 2","West Central US","Korea South","Korea Central","UK South","UK West","France + Central","South Africa North","UAE North"],"apiVersions":["2018-09-01","2017-11-01-preview"],"capabilities":"SupportsExtension"},{"resourceType":"metricbaselines","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","South India","Central India","West India","North + Europe","Norway East","Germany West Central","Switzerland North","West US + 2","West Central US","Korea South","Korea Central","UK South","UK West","France + Central","South Africa North","UAE North"],"apiVersions":["2019-03-01","2018-09-01"],"capabilities":"SupportsExtension"},{"resourceType":"calculatebaseline","locations":[],"apiVersions":["2018-09-01","2017-11-01-preview"],"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 + Central US","West US 3","Korea South"],"apiVersions":["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 + Central US","West US 3","Korea South"],"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"],"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"],"apiVersions":["2018-08-01-preview","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"],"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"],"apiVersions":["2019-10-17-preview"],"capabilities":"SupportsExtension"},{"resourceType":"generateLiveToken","locations":[],"apiVersions":["2020-06-02-preview"],"capabilities":"SupportsExtension"},{"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","France South","Norway West","UAE North","Japan West","Norway East","Switzerland + West"],"apiVersions":["2021-04-01","2019-11-01-preview"],"defaultApiVersion":"2019-11-01-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, 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"],"apiVersions":["2021-04-01","2019-11-01-preview"],"defaultApiVersion":"2019-11-01-preview","capabilities":"SupportsExtension"},{"resourceType":"privateLinkScopes","locations":["Global"],"apiVersions":["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-07-01-preview","2019-10-17-preview"],"defaultApiVersion":"2019-10-17-preview","capabilities":"None"},{"resourceType":"privateLinkScopes/privateEndpointConnectionProxies","locations":["Global"],"apiVersions":["2021-07-01-preview","2019-10-17-preview"],"defaultApiVersion":"2019-10-17-preview","capabilities":"None"},{"resourceType":"privateLinkScopes/scopedResources","locations":["Global"],"apiVersions":["2021-07-01-preview","2019-10-17-preview"],"defaultApiVersion":"2019-10-17-preview","capabilities":"None"},{"resourceType":"components/linkedstorageaccounts","locations":["East + US","West Central 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"],"apiVersions":["2020-03-01-preview"],"capabilities":"None"},{"resourceType":"privateLinkScopeOperationStatuses","locations":["Global"],"apiVersions":["2021-07-01-preview","2019-10-17-preview"],"defaultApiVersion":"2019-10-17-preview","capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + headers: + cache-control: + - no-cache + content-length: + - '24232' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 26 Jun 2021 00:07:59 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: '{"location": "westus2", "properties": {"dataFlows": [{"streams": ["Microsoft-Perf", + "Microsoft-ContainerInventory", "Microsoft-ContainerLog", "Microsoft-ContainerNodeInventory", + "Microsoft-KubeEvents", "Microsoft-KubeHealth", "Microsoft-KubeMonAgentEvents", + "Microsoft-KubeNodeInventory", "Microsoft-KubePodInventory", "Microsoft-KubePVInventory", + "Microsoft-KubeServices", "Microsoft-InsightsMetrics"], "destinations": ["la-workspace"]}], + "destinations": {"logAnalytics": [{"workspaceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2", + "name": "la-workspace"}]}}}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '731' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --name --location --generate-ssh-keys --enable-managed-identity + --enable-addons --enable-msi-auth-for-monitoring --node-count + User-Agent: + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + AZURECLI/2.24.2 + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/defaultresourcegroup-wus2/providers/Microsoft.Insights/dataCollectionRules/DCR-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2?api-version=2019-11-01-preview + response: + body: + string: '{"properties":{"immutableId":"dcr-a60ab5f27496491c98412c6c3d5cca94","destinations":{"logAnalytics":[{"workspaceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2","workspaceId":"a6ec9525-4c1b-4ebf-80ad-1a1da5f6ca3c","name":"la-workspace"}]},"dataFlows":[{"streams":["Microsoft-Perf","Microsoft-ContainerInventory","Microsoft-ContainerLog","Microsoft-ContainerNodeInventory","Microsoft-KubeEvents","Microsoft-KubeHealth","Microsoft-KubeMonAgentEvents","Microsoft-KubeNodeInventory","Microsoft-KubePodInventory","Microsoft-KubePVInventory","Microsoft-KubeServices","Microsoft-InsightsMetrics"],"destinations":["la-workspace"]}],"provisioningState":"Succeeded"},"location":"westus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/defaultresourcegroup-wus2/providers/Microsoft.Insights/dataCollectionRules/DCR-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2","name":"DCR-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2","type":"Microsoft.Insights/dataCollectionRules","etag":"\"56008acb-0000-0800-0000-60d66fe00000\""}' + headers: + api-supported-versions: + - 2019-11-01-preview, 2021-04-01 + cache-control: + - no-cache + content-length: + - '1227' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 26 Jun 2021 00:08:01 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", "properties": {"kubernetesVersion": "", "dnsPrefix": + "cliakstest-clitestxfgslkwdn-3b875b", "agentPoolProfiles": [{"count": 1, "vmSize": + "Standard_DS2_v2", "osType": "Linux", "type": "VirtualMachineScaleSets", "mode": + "System", "enableNodePublicIP": false, "scaleSetPriority": "Regular", "scaleSetEvictionPolicy": + "Delete", "enableEncryptionAtHost": false, "enableUltraSSD": false, "enableFIPS": + false, "name": "nodepool1"}], "linuxProfile": {"adminUsername": "azureuser", + "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCwztmLMdJZrXl6VTfbonQWAMXjuJkRzCW8Lmynohg0hz681LPQC7OenFR36PPz3tDNd90tjX3+khk0NkSBB8Dz+U1/ISOsR17++TmEFWLf1oiTTua/1K82pc8yGoFbDXIFAgMeJxpwYczjvL8BnDa9z3GrzYAEi1B6kbZyGAjc0rRoSb76nYF/dhtp+GtN5oo/qYEt8ogcPpQzlv3hM7AdcYuTHutWMHV7XA/bdhfcXL4jJLW/SPD9l0EAw6boMoOJ4W1X3OWFD0MGs1cphZNIXpOg5fBCN/x9eRmJ45fAGFH/plGh+i0UjQKoLd3eEy5pyAzJ+ttoQ3do3eKT56N0Zj//2Yp9HNxcoeLt4nK3IOE1gR2AdOFMPEloY/heaU82sYipKG4PBm1g8C3AtcS/wP0tQaw2KlCLMmEO6/AiNSPazkXVrbflnWPq2jukydGW+YJ4pD3ACZgTNYVT3JCr9gWCYnkhdvF//Us+3Q2jUJReIJArsOq5xBFEphkguket41AzifO07+s7DULHOkoisxxZALbOxIUdSvcRv5WpzPOTyyKIZB2UI190cK4aHT0+BGmpbhBiYc0lPikDEHqaaR0/Mgaq2RhUZ+zpqboMCuqpYu69pIhU/cz3dko+P272GutYId9YsTyzKIURp66mow40iL0MwzAML/DwugQ6nQ== + damichel@microsoft.com\n"}]}}, "addonProfiles": {"omsagent": {"enabled": true, + "config": {"logAnalyticsWorkspaceResourceID": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2", + "useAADAuth": "True"}}}, "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}, "identity": {"type": "SystemAssigned"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '1973' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --resource-group --name --location --generate-ssh-keys --enable-managed-identity + --enable-addons --enable-msi-auth-for-monitoring --node-count + User-Agent: + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python + AZURECLI/2.24.2 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2021-05-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\": + \"Creating\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": + \"1.19.11\",\n \"dnsPrefix\": \"cliakstest-clitestxfgslkwdn-3b875b\",\n + \ \"fqdn\": \"cliakstest-clitestxfgslkwdn-3b875b-45214b56.hcp.westus2.azmk8s.io\",\n + \ \"azurePortalFQDN\": \"cliakstest-clitestxfgslkwdn-3b875b-45214b56.portal.hcp.westus2.azmk8s.io\",\n + \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": + 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": + \"Managed\",\n \"kubeletDiskType\": \"OS\",\n \"maxPods\": 110,\n + \ \"type\": \"VirtualMachineScaleSets\",\n \"provisioningState\": \"Creating\",\n + \ \"powerState\": {\n \"code\": \"Running\"\n },\n \"orchestratorVersion\": + \"1.19.11\",\n \"enableNodePublicIP\": false,\n \"nodeLabels\": {},\n + \ \"mode\": \"System\",\n \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\": + false,\n \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"nodeImageVersion\": + \"AKSUbuntu-1804gen2containerd-2021.06.02\",\n \"enableFIPS\": false\n + \ }\n ],\n \"linuxProfile\": {\n \"adminUsername\": \"azureuser\",\n + \ \"ssh\": {\n \"publicKeys\": [\n {\n \"keyData\": \"ssh-rsa + AAAAB3NzaC1yc2EAAAADAQABAAACAQCwztmLMdJZrXl6VTfbonQWAMXjuJkRzCW8Lmynohg0hz681LPQC7OenFR36PPz3tDNd90tjX3+khk0NkSBB8Dz+U1/ISOsR17++TmEFWLf1oiTTua/1K82pc8yGoFbDXIFAgMeJxpwYczjvL8BnDa9z3GrzYAEi1B6kbZyGAjc0rRoSb76nYF/dhtp+GtN5oo/qYEt8ogcPpQzlv3hM7AdcYuTHutWMHV7XA/bdhfcXL4jJLW/SPD9l0EAw6boMoOJ4W1X3OWFD0MGs1cphZNIXpOg5fBCN/x9eRmJ45fAGFH/plGh+i0UjQKoLd3eEy5pyAzJ+ttoQ3do3eKT56N0Zj//2Yp9HNxcoeLt4nK3IOE1gR2AdOFMPEloY/heaU82sYipKG4PBm1g8C3AtcS/wP0tQaw2KlCLMmEO6/AiNSPazkXVrbflnWPq2jukydGW+YJ4pD3ACZgTNYVT3JCr9gWCYnkhdvF//Us+3Q2jUJReIJArsOq5xBFEphkguket41AzifO07+s7DULHOkoisxxZALbOxIUdSvcRv5WpzPOTyyKIZB2UI190cK4aHT0+BGmpbhBiYc0lPikDEHqaaR0/Mgaq2RhUZ+zpqboMCuqpYu69pIhU/cz3dko+P272GutYId9YsTyzKIURp66mow40iL0MwzAML/DwugQ6nQ== + damichel@microsoft.com\\n\"\n }\n ]\n }\n },\n \"servicePrincipalProfile\": + {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \"addonProfiles\": + {\n \"omsagent\": {\n \"enabled\": true,\n \"config\": {\n \"logAnalyticsWorkspaceResourceID\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2\",\n + \ \"useAADAuth\": \"True\"\n }\n }\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 },\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 },\n \"maxAgentPools\": 100,\n \"disableLocalAccounts\": + false\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/0b8191e6-2cbf-4e67-9a95-8a806c92aa21?api-version=2016-03-30 + cache-control: + - no-cache + content-length: + - '3433' + content-type: + - application/json + date: + - Sat, 26 Jun 2021 00:08:07 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --generate-ssh-keys --enable-managed-identity + --enable-addons --enable-msi-auth-for-monitoring --node-count + User-Agent: + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python + AZURECLI/2.24.2 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/0b8191e6-2cbf-4e67-9a95-8a806c92aa21?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"e691810b-bf2c-674e-9a95-8a806c92aa21\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-06-26T00:08:08.3066666Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Sat, 26 Jun 2021 00:08:38 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 create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --generate-ssh-keys --enable-managed-identity + --enable-addons --enable-msi-auth-for-monitoring --node-count + User-Agent: + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python + AZURECLI/2.24.2 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/0b8191e6-2cbf-4e67-9a95-8a806c92aa21?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"e691810b-bf2c-674e-9a95-8a806c92aa21\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-06-26T00:08:08.3066666Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Sat, 26 Jun 2021 00:09:08 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 create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --generate-ssh-keys --enable-managed-identity + --enable-addons --enable-msi-auth-for-monitoring --node-count + User-Agent: + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python + AZURECLI/2.24.2 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/0b8191e6-2cbf-4e67-9a95-8a806c92aa21?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"e691810b-bf2c-674e-9a95-8a806c92aa21\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-06-26T00:08:08.3066666Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Sat, 26 Jun 2021 00:09:39 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 create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --generate-ssh-keys --enable-managed-identity + --enable-addons --enable-msi-auth-for-monitoring --node-count + User-Agent: + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python + AZURECLI/2.24.2 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/0b8191e6-2cbf-4e67-9a95-8a806c92aa21?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"e691810b-bf2c-674e-9a95-8a806c92aa21\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-06-26T00:08:08.3066666Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Sat, 26 Jun 2021 00:10:09 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 create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --generate-ssh-keys --enable-managed-identity + --enable-addons --enable-msi-auth-for-monitoring --node-count + User-Agent: + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python + AZURECLI/2.24.2 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/0b8191e6-2cbf-4e67-9a95-8a806c92aa21?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"e691810b-bf2c-674e-9a95-8a806c92aa21\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-06-26T00:08:08.3066666Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Sat, 26 Jun 2021 00:10:39 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 create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --generate-ssh-keys --enable-managed-identity + --enable-addons --enable-msi-auth-for-monitoring --node-count + User-Agent: + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python + AZURECLI/2.24.2 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/0b8191e6-2cbf-4e67-9a95-8a806c92aa21?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"e691810b-bf2c-674e-9a95-8a806c92aa21\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-06-26T00:08:08.3066666Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Sat, 26 Jun 2021 00:11:09 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 create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --generate-ssh-keys --enable-managed-identity + --enable-addons --enable-msi-auth-for-monitoring --node-count + User-Agent: + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python + AZURECLI/2.24.2 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/0b8191e6-2cbf-4e67-9a95-8a806c92aa21?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"e691810b-bf2c-674e-9a95-8a806c92aa21\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-06-26T00:08:08.3066666Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Sat, 26 Jun 2021 00:11:40 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 create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --generate-ssh-keys --enable-managed-identity + --enable-addons --enable-msi-auth-for-monitoring --node-count + User-Agent: + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python + AZURECLI/2.24.2 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/0b8191e6-2cbf-4e67-9a95-8a806c92aa21?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"e691810b-bf2c-674e-9a95-8a806c92aa21\",\n \"status\": + \"Succeeded\",\n \"startTime\": \"2021-06-26T00:08:08.3066666Z\",\n \"endTime\": + \"2021-06-26T00:12:01.2873835Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '170' + content-type: + - application/json + date: + - Sat, 26 Jun 2021 00:12:10 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 create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --generate-ssh-keys --enable-managed-identity + --enable-addons --enable-msi-auth-for-monitoring --node-count + User-Agent: + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python + AZURECLI/2.24.2 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2021-05-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.19.11\",\n \"dnsPrefix\": \"cliakstest-clitestxfgslkwdn-3b875b\",\n + \ \"fqdn\": \"cliakstest-clitestxfgslkwdn-3b875b-45214b56.hcp.westus2.azmk8s.io\",\n + \ \"azurePortalFQDN\": \"cliakstest-clitestxfgslkwdn-3b875b-45214b56.portal.hcp.westus2.azmk8s.io\",\n + \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": + 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": + \"Managed\",\n \"kubeletDiskType\": \"OS\",\n \"maxPods\": 110,\n + \ \"type\": \"VirtualMachineScaleSets\",\n \"provisioningState\": \"Succeeded\",\n + \ \"powerState\": {\n \"code\": \"Running\"\n },\n \"orchestratorVersion\": + \"1.19.11\",\n \"enableNodePublicIP\": false,\n \"nodeLabels\": {},\n + \ \"mode\": \"System\",\n \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\": + false,\n \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"nodeImageVersion\": + \"AKSUbuntu-1804gen2containerd-2021.06.02\",\n \"enableFIPS\": false\n + \ }\n ],\n \"linuxProfile\": {\n \"adminUsername\": \"azureuser\",\n + \ \"ssh\": {\n \"publicKeys\": [\n {\n \"keyData\": \"ssh-rsa + AAAAB3NzaC1yc2EAAAADAQABAAACAQCwztmLMdJZrXl6VTfbonQWAMXjuJkRzCW8Lmynohg0hz681LPQC7OenFR36PPz3tDNd90tjX3+khk0NkSBB8Dz+U1/ISOsR17++TmEFWLf1oiTTua/1K82pc8yGoFbDXIFAgMeJxpwYczjvL8BnDa9z3GrzYAEi1B6kbZyGAjc0rRoSb76nYF/dhtp+GtN5oo/qYEt8ogcPpQzlv3hM7AdcYuTHutWMHV7XA/bdhfcXL4jJLW/SPD9l0EAw6boMoOJ4W1X3OWFD0MGs1cphZNIXpOg5fBCN/x9eRmJ45fAGFH/plGh+i0UjQKoLd3eEy5pyAzJ+ttoQ3do3eKT56N0Zj//2Yp9HNxcoeLt4nK3IOE1gR2AdOFMPEloY/heaU82sYipKG4PBm1g8C3AtcS/wP0tQaw2KlCLMmEO6/AiNSPazkXVrbflnWPq2jukydGW+YJ4pD3ACZgTNYVT3JCr9gWCYnkhdvF//Us+3Q2jUJReIJArsOq5xBFEphkguket41AzifO07+s7DULHOkoisxxZALbOxIUdSvcRv5WpzPOTyyKIZB2UI190cK4aHT0+BGmpbhBiYc0lPikDEHqaaR0/Mgaq2RhUZ+zpqboMCuqpYu69pIhU/cz3dko+P272GutYId9YsTyzKIURp66mow40iL0MwzAML/DwugQ6nQ== + damichel@microsoft.com\\n\"\n }\n ]\n }\n },\n \"servicePrincipalProfile\": + {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \"addonProfiles\": + {\n \"omsagent\": {\n \"enabled\": true,\n \"config\": {\n \"logAnalyticsWorkspaceResourceID\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2\",\n + \ \"useAADAuth\": \"True\"\n },\n \"identity\": {\n \"resourceId\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.ManagedIdentity/userAssignedIdentities/omsagent-cliakstest000002\",\n + \ \"clientId\":\"00000000-0000-0000-0000-000000000001\",\n \"objectId\":\"00000000-0000-0000-0000-000000000001\"\n + \ }\n }\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/1977e1ac-af6c-40fd-9eb6-d62b2f888c92\"\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 },\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 },\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: + - '4459' + content-type: + - application/json + date: + - Sat, 26 Jun 2021 00:12:10 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 create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --generate-ssh-keys --enable-managed-identity + --enable-addons --enable-msi-auth-for-monitoring --node-count + User-Agent: + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-authorization/0.61.0 Azure-SDK-For-Python + AZURECLI/2.24.2 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/providers/Microsoft.Authorization/roleDefinitions?$filter=roleName%20eq%20%27Monitoring%20Metrics%20Publisher%27&api-version=2018-01-01-preview + response: + body: + string: '{"value":[{"properties":{"roleName":"Monitoring Metrics Publisher","type":"BuiltInRole","description":"Enables + publishing metrics against Azure resources","assignableScopes":["/"],"permissions":[{"actions":["Microsoft.Insights/Register/Action","Microsoft.Support/*","Microsoft.Resources/subscriptions/resourceGroups/read"],"notActions":[],"dataActions":["Microsoft.Insights/Metrics/Write"],"notDataActions":[]}],"createdOn":"2018-08-14T00:36:16.5610279Z","updatedOn":"2018-08-14T00:37:18.1465065Z","createdBy":null,"updatedBy":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/3913510d-42f4-4e42-8a64-420c390055eb","type":"Microsoft.Authorization/roleDefinitions","name":"3913510d-42f4-4e42-8a64-420c390055eb"}]}' + headers: + cache-control: + - no-cache + content-length: + - '776' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 26 Jun 2021 00:12:11 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - x-ms-gateway-slice=Production; path=/; secure; samesite=none; httponly + 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: '{"properties": {"roleDefinitionId": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/3913510d-42f4-4e42-8a64-420c390055eb", + "principalId":"00000000-0000-0000-0000-000000000001"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '233' + Content-Type: + - application/json; charset=utf-8 + Cookie: + - x-ms-gateway-slice=Production + ParameterSetName: + - --resource-group --name --location --generate-ssh-keys --enable-managed-identity + --enable-addons --enable-msi-auth-for-monitoring --node-count + User-Agent: + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-authorization/0.61.0 Azure-SDK-For-Python + AZURECLI/2.24.2 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/providers/Microsoft.Authorization/roleAssignments/98158684-ef72-4e1d-9984-2ac25ec98644?api-version=2020-04-01-preview + response: + body: + string: '{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/3913510d-42f4-4e42-8a64-420c390055eb","principalId":"00000000-0000-0000-0000-000000000001","principalType":"ServicePrincipal","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002","condition":null,"conditionVersion":null,"createdOn":"2021-06-26T00:12:12.2696903Z","updatedOn":"2021-06-26T00:12:12.6134852Z","createdBy":null,"updatedBy":"e98be497-f2d1-44cc-8439-9496116db13a","delegatedManagedIdentityResourceId":null,"description":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/providers/Microsoft.Authorization/roleAssignments/98158684-ef72-4e1d-9984-2ac25ec98644","type":"Microsoft.Authorization/roleAssignments","name":"98158684-ef72-4e1d-9984-2ac25ec98644"}' + headers: + cache-control: + - no-cache + content-length: + - '1029' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 26 Jun 2021 00:12:14 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - x-ms-gateway-slice=Production; path=/; secure; samesite=none; httponly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --generate-ssh-keys --enable-managed-identity + --enable-addons --enable-msi-auth-for-monitoring --node-count + User-Agent: + - AZURECLI/2.24.2 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2?api-version=2015-11-01-preview + response: + body: + string: "{\r\n \"properties\": {\r\n \"source\": \"Azure\",\r\n \"customerId\": + \"a6ec9525-4c1b-4ebf-80ad-1a1da5f6ca3c\",\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"sku\": {\r\n \"name\": \"pergb2018\",\r\n \"lastSkuUpdate\": + \"Fri, 18 Jun 2021 21:03:33 GMT\"\r\n },\r\n \"retentionInDays\": 30,\r\n + \ \"features\": {\r\n \"legacy\": 0,\r\n \"searchVersion\": 1,\r\n + \ \"enableLogAccessUsingOnlyResourcePermissions\": true\r\n },\r\n + \ \"workspaceCapping\": {\r\n \"dailyQuotaGb\": -1.0,\r\n \"quotaNextResetTime\": + \"Sat, 26 Jun 2021 12:00:00 GMT\",\r\n \"dataIngestionStatus\": \"RespectQuota\"\r\n + \ },\r\n \"publicNetworkAccessForIngestion\": \"Enabled\",\r\n \"publicNetworkAccessForQuery\": + \"Enabled\",\r\n \"createdDate\": \"Fri, 18 Jun 2021 21:03:33 GMT\",\r\n + \ \"modifiedDate\": \"Sat, 26 Jun 2021 00:07:56 GMT\"\r\n },\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2\",\r\n + \ \"name\": \"DefaultWorkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-WUS2\",\r\n + \ \"type\": \"Microsoft.OperationalInsights/workspaces\",\r\n \"location\": + \"westus2\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1161' + content-type: + - application/json + date: + - Sat, 26 Jun 2021 00:12:14 GMT + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"location": "westus2", "properties": {"dataCollectionRuleId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/defaultresourcegroup-wus2/providers/Microsoft.Insights/dataCollectionRules/DCR-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2", + "description": "routes monitoring data to a Log Analytics workspace"}}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '341' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --name --location --generate-ssh-keys --enable-managed-identity + --enable-addons --enable-msi-auth-for-monitoring --node-count + User-Agent: + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + AZURECLI/2.24.2 + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/providers/Microsoft.Insights/dataCollectionRuleAssociations/send-to-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2?api-version=2019-11-01-preview + response: + body: + string: '{"properties":{"description":"routes monitoring data to a Log Analytics + workspace","dataCollectionRuleId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/defaultresourcegroup-wus2/providers/Microsoft.Insights/dataCollectionRules/DCR-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/providers/Microsoft.Insights/dataCollectionRuleAssociations/send-to-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2","name":"send-to-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2","type":"Microsoft.Insights/dataCollectionRuleAssociations","etag":"\"560076d1-0000-0800-0000-60d670df0000\""}' + headers: + api-supported-versions: + - 2019-11-01-preview, 2021-04-01 + cache-control: + - no-cache + content-length: + - '788' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 26 Jun 2021 00:12:14 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: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - rest + Connection: + - keep-alive + ParameterSetName: + - --method --url + User-Agent: + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + AZURECLI/2.24.2 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/defaultresourcegroup-wus2/providers/Microsoft.Insights/dataCollectionRules/DCR-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2?api-version=2019-11-01-preview + response: + body: + string: '{"properties":{"immutableId":"dcr-a60ab5f27496491c98412c6c3d5cca94","destinations":{"logAnalytics":[{"workspaceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2","workspaceId":"a6ec9525-4c1b-4ebf-80ad-1a1da5f6ca3c","name":"la-workspace"}]},"dataFlows":[{"streams":["Microsoft-Perf","Microsoft-ContainerInventory","Microsoft-ContainerLog","Microsoft-ContainerNodeInventory","Microsoft-KubeEvents","Microsoft-KubeHealth","Microsoft-KubeMonAgentEvents","Microsoft-KubeNodeInventory","Microsoft-KubePodInventory","Microsoft-KubePVInventory","Microsoft-KubeServices","Microsoft-InsightsMetrics"],"destinations":["la-workspace"]}],"provisioningState":"Succeeded"},"location":"westus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/defaultresourcegroup-wus2/providers/Microsoft.Insights/dataCollectionRules/DCR-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2","name":"DCR-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2","type":"Microsoft.Insights/dataCollectionRules","etag":"\"56008acb-0000-0800-0000-60d66fe00000\""}' + headers: + api-supported-versions: + - 2019-11-01-preview, 2021-04-01 + cache-control: + - no-cache + content-length: + - '1227' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 26 Jun 2021 00:12:15 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 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - rest + Connection: + - keep-alive + ParameterSetName: + - --method --url + User-Agent: + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + AZURECLI/2.24.2 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/providers/Microsoft.Insights/dataCollectionRuleAssociations/send-to-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2?api-version=2019-11-01-preview + response: + body: + string: '{"properties":{"description":"routes monitoring data to a Log Analytics + workspace","dataCollectionRuleId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/defaultresourcegroup-wus2/providers/Microsoft.Insights/dataCollectionRules/DCR-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/providers/Microsoft.Insights/dataCollectionRuleAssociations/send-to-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2","name":"send-to-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2","type":"Microsoft.Insights/dataCollectionRuleAssociations","etag":"\"560076d1-0000-0800-0000-60d670df0000\""}' + headers: + api-supported-versions: + - 2019-11-01-preview, 2021-04-01 + cache-control: + - no-cache + content-length: + - '788' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 26 Jun 2021 00:12:15 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 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - rest + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --method --url + User-Agent: + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + AZURECLI/2.24.2 + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/providers/Microsoft.Insights/dataCollectionRuleAssociations/send-to-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2?api-version=2019-11-01-preview + response: + body: + string: '' + headers: + api-supported-versions: + - 2019-11-01-preview, 2021-04-01 + cache-control: + - no-cache + content-length: + - '0' + date: + - Sat, 26 Jun 2021 00:12:16 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 +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - rest + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --method --url + User-Agent: + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + AZURECLI/2.24.2 + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/defaultresourcegroup-wus2/providers/Microsoft.Insights/dataCollectionRules/DCR-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2?api-version=2019-11-01-preview + response: + body: + string: '' + headers: + api-supported-versions: + - 2019-11-01-preview, 2021-04-01 + cache-control: + - no-cache + content-length: + - '0' + date: + - Sat, 26 Jun 2021 00:12:18 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 +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g -n --yes --no-wait + User-Agent: + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python + AZURECLI/2.24.2 + accept-language: + - en-US + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2021-03-01 + response: + body: + string: '' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/63dcfd85-3c30-4758-8bb3-d3d80e6ebcaf?api-version=2016-03-30 + cache-control: + - no-cache + content-length: + - '0' + date: + - Sat, 26 Jun 2021 00:12:19 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operationresults/63dcfd85-3c30-4758-8bb3-d3d80e6ebcaf?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_create_with_monitoring_aad_auth_uai.yaml b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_with_monitoring_aad_auth_uai.yaml new file mode 100644 index 00000000000..55a0b09f523 --- /dev/null +++ b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_with_monitoring_aad_auth_uai.yaml @@ -0,0 +1,1803 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - identity create + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.24.2 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001?api-version=2020-10-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001","name":"clitest000001","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"product":"azurecli","cause":"automation","date":"2021-06-26T00:14:40Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '313' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 26 Jun 2021 00:14:39 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: '{"location": "westus2"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - identity create + Connection: + - keep-alive + Content-Length: + - '23' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g -n + User-Agent: + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-msi/0.2.0 Azure-SDK-For-Python + AZURECLI/2.24.2 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cliakstest000002_uai?api-version=2015-08-31-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cliakstest000002_uai","name":"cliakstest000002_uai","type":"Microsoft.ManagedIdentity/userAssignedIdentities","location":"westus2","tags":{},"properties":{"tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","principalId":"00000000-0000-0000-0000-000000000001","clientId":"00000000-0000-0000-0000-000000000001","clientSecretUrl":"https://control-westus2.identity.azure.net/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cliakstest000002_uai/credentials?tid=72f988bf-86f1-41af-91ab-2d7cd011db47&oid=a11043ec-17e2-43c5-9e42-339c37fe3198&aid=b54285de-2c5c-4302-afb9-3e74adf2685e"}}' + headers: + cache-control: + - no-cache + content-length: + - '822' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 26 Jun 2021 00:14:43 GMT + expires: + - '-1' + location: + - /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cliakstest000002_uai + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --generate-ssh-keys --enable-managed-identity + --enable-addons --enable-msi-auth-for-monitoring --node-count --assign-identity + User-Agent: + - AZURECLI/2.24.2 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001?api-version=2020-10-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001","name":"clitest000001","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"product":"azurecli","cause":"automation","date":"2021-06-26T00:14:40Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '313' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 26 Jun 2021 00:14:44 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 --generate-ssh-keys --enable-managed-identity + --enable-addons --enable-msi-auth-for-monitoring --node-count --assign-identity + User-Agent: + - AZURECLI/2.24.2 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001?api-version=2020-10-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001","name":"clitest000001","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"product":"azurecli","cause":"automation","date":"2021-06-26T00:14:40Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '313' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 26 Jun 2021 00:14:44 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 --generate-ssh-keys --enable-managed-identity + --enable-addons --enable-msi-auth-for-monitoring --node-count --assign-identity + User-Agent: + - AZURECLI/2.24.2 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: HEAD + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/DefaultResourceGroup-WUS2?api-version=2020-10-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Sat, 26 Jun 2021 00:14:45 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 --generate-ssh-keys --enable-managed-identity + --enable-addons --enable-msi-auth-for-monitoring --node-count --assign-identity + User-Agent: + - AZURECLI/2.24.2 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/DefaultResourceGroup-WUS2/providers/Microsoft.OperationalInsights/workspaces/DefaultWorkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-WUS2?api-version=2015-11-01-preview + response: + body: + string: "{\r\n \"properties\": {\r\n \"source\": \"Azure\",\r\n \"customerId\": + \"a6ec9525-4c1b-4ebf-80ad-1a1da5f6ca3c\",\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"sku\": {\r\n \"name\": \"pergb2018\",\r\n \"lastSkuUpdate\": + \"Fri, 18 Jun 2021 21:03:33 GMT\"\r\n },\r\n \"retentionInDays\": 30,\r\n + \ \"features\": {\r\n \"legacy\": 0,\r\n \"searchVersion\": 1,\r\n + \ \"enableLogAccessUsingOnlyResourcePermissions\": true\r\n },\r\n + \ \"workspaceCapping\": {\r\n \"dailyQuotaGb\": -1.0,\r\n \"quotaNextResetTime\": + \"Sat, 26 Jun 2021 12:00:00 GMT\",\r\n \"dataIngestionStatus\": \"RespectQuota\"\r\n + \ },\r\n \"publicNetworkAccessForIngestion\": \"Enabled\",\r\n \"publicNetworkAccessForQuery\": + \"Enabled\",\r\n \"createdDate\": \"Fri, 18 Jun 2021 21:03:33 GMT\",\r\n + \ \"modifiedDate\": \"Sat, 26 Jun 2021 00:07:56 GMT\"\r\n },\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2\",\r\n + \ \"name\": \"DefaultWorkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-WUS2\",\r\n + \ \"type\": \"Microsoft.OperationalInsights/workspaces\",\r\n \"location\": + \"westus2\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1161' + content-type: + - application/json + date: + - Sat, 26 Jun 2021 00:14:45 GMT + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + - ASP.NET + 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 --generate-ssh-keys --enable-managed-identity + --enable-addons --enable-msi-auth-for-monitoring --node-count --assign-identity + User-Agent: + - AZURECLI/2.24.2 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2?api-version=2015-11-01-preview + response: + body: + string: "{\r\n \"properties\": {\r\n \"source\": \"Azure\",\r\n \"customerId\": + \"a6ec9525-4c1b-4ebf-80ad-1a1da5f6ca3c\",\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"sku\": {\r\n \"name\": \"pergb2018\",\r\n \"lastSkuUpdate\": + \"Fri, 18 Jun 2021 21:03:33 GMT\"\r\n },\r\n \"retentionInDays\": 30,\r\n + \ \"features\": {\r\n \"legacy\": 0,\r\n \"searchVersion\": 1,\r\n + \ \"enableLogAccessUsingOnlyResourcePermissions\": true\r\n },\r\n + \ \"workspaceCapping\": {\r\n \"dailyQuotaGb\": -1.0,\r\n \"quotaNextResetTime\": + \"Sat, 26 Jun 2021 12:00:00 GMT\",\r\n \"dataIngestionStatus\": \"RespectQuota\"\r\n + \ },\r\n \"publicNetworkAccessForIngestion\": \"Enabled\",\r\n \"publicNetworkAccessForQuery\": + \"Enabled\",\r\n \"createdDate\": \"Fri, 18 Jun 2021 21:03:33 GMT\",\r\n + \ \"modifiedDate\": \"Sat, 26 Jun 2021 00:07:56 GMT\"\r\n },\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2\",\r\n + \ \"name\": \"DefaultWorkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-WUS2\",\r\n + \ \"type\": \"Microsoft.OperationalInsights/workspaces\",\r\n \"location\": + \"westus2\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1161' + content-type: + - application/json + date: + - Sat, 26 Jun 2021 00:14:44 GMT + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + - 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 --generate-ssh-keys --enable-managed-identity + --enable-addons --enable-msi-auth-for-monitoring --node-count --assign-identity + User-Agent: + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + AZURECLI/2.24.2 + 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/northcentralus\",\"name\":\"northcentralus\",\"displayName\":\"North + Central US\",\"regionalDisplayName\":\"(US) North Central US\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Recommended\",\"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\":\"Recommended\",\"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/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/jioindiawest\",\"name\":\"jioindiawest\",\"displayName\":\"Jio + India West\",\"regionalDisplayName\":\"(Asia Pacific) Jio India West\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Recommended\",\"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/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/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/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/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/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/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/eastus2euap\",\"name\":\"eastus2euap\",\"displayName\":\"East + US 2 EUAP\",\"regionalDisplayName\":\"(US) East US 2 EUAP\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Other\",\"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/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/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\"}]}}]}" + headers: + cache-control: + - no-cache + content-length: + - '27465' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 26 Jun 2021 00:14:45 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 + ParameterSetName: + - --resource-group --name --location --generate-ssh-keys --enable-managed-identity + --enable-addons --enable-msi-auth-for-monitoring --node-count --assign-identity + User-Agent: + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + AZURECLI/2.24.2 + 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"}],"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"],"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":[],"apiVersions":["2018-04-20"],"capabilities":"None"},{"resourceType":"components/metadata","locations":[],"apiVersions":["2018-04-20"],"capabilities":"None"},{"resourceType":"components/metrics","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","Brazil South","Switzerland North","Australia + Southeast","Norway East","Norway West"],"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"],"apiVersions":["2018-04-20"],"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"],"apiVersions":["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"],"apiVersions":["2020-02-10-preview"],"capabilities":"None"},{"resourceType":"scheduledqueryrules","locations":["Global","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"],"apiVersions":["2021-02-01-preview","2020-05-01-preview","2018-04-16","2017-09-01-preview"],"defaultApiVersion":"2018-04-16","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"components/pricingPlans","locations":["East + US","South Central US","North Europe","West Europe","Southeast Asia","West + US 2"],"apiVersions":["2017-10-01"],"capabilities":"None"},{"resourceType":"migrateToNewPricingModel","locations":["East + US","South Central US","North Europe","West Europe","Southeast Asia","West + US 2"],"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"],"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"],"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"],"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","South Africa North","UAE North"],"apiVersions":["2016-03-01","2015-04-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","West + Europe","East Asia","Southeast Asia","Japan East","Japan West","North Central + US","Australia East","South Africa North","UAE North","Switzerland North","Germany + West Central","Norway East","West US 3","Jio India West"],"apiVersions":["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","South Africa North","UAE North","Switzerland + North","Germany West Central","Norway East","West US 3","Jio India West"],"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","South Africa North","UAE North","Switzerland + North","Germany West Central","Norway East","West US 3","Jio India West"],"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","South Africa North","UAE North","Switzerland + North","Germany West Central","Norway East","West US 3","Jio India West"],"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","West US 3","West Central + US","Korea South","Korea Central","UK South","UK West","France Central","South + Africa North","South Africa West","UAE North","Switzerland North","Germany + West Central","Norway East"],"apiVersions":["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"],"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","West US 3","West Central + US","Korea South","Korea Central","UK South","UK West","France Central","South + Africa North","South Africa West","UAE North","Switzerland North","Germany + West Central","Norway East"],"apiVersions":["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":[],"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","West US 3","West Central + US","Korea South","Korea Central","UK South","UK West","France Central","South + Africa North","South Africa West","UAE North","Switzerland North","Germany + West Central","Norway East"],"apiVersions":["2017-12-01-preview"],"capabilities":"SupportsExtension"},{"resourceType":"actiongroups","locations":["Global"],"apiVersions":["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":"baseline","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","South India","Central India","West India","North + Europe","Norway East","Germany West Central","Switzerland North","West US + 2","West Central US","Korea South","Korea Central","UK South","UK West","France + Central","South Africa North","UAE North"],"apiVersions":["2018-09-01","2017-11-01-preview"],"capabilities":"SupportsExtension"},{"resourceType":"metricbaselines","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","South India","Central India","West India","North + Europe","Norway East","Germany West Central","Switzerland North","West US + 2","West Central US","Korea South","Korea Central","UK South","UK West","France + Central","South Africa North","UAE North"],"apiVersions":["2019-03-01","2018-09-01"],"capabilities":"SupportsExtension"},{"resourceType":"calculatebaseline","locations":[],"apiVersions":["2018-09-01","2017-11-01-preview"],"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 + Central US","West US 3","Korea South"],"apiVersions":["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 + Central US","West US 3","Korea South"],"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"],"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"],"apiVersions":["2018-08-01-preview","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"],"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"],"apiVersions":["2019-10-17-preview"],"capabilities":"SupportsExtension"},{"resourceType":"generateLiveToken","locations":[],"apiVersions":["2020-06-02-preview"],"capabilities":"SupportsExtension"},{"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","France South","Norway West","UAE North","Japan West","Norway East","Switzerland + West"],"apiVersions":["2021-04-01","2019-11-01-preview"],"defaultApiVersion":"2019-11-01-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, 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"],"apiVersions":["2021-04-01","2019-11-01-preview"],"defaultApiVersion":"2019-11-01-preview","capabilities":"SupportsExtension"},{"resourceType":"privateLinkScopes","locations":["Global"],"apiVersions":["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-07-01-preview","2019-10-17-preview"],"defaultApiVersion":"2019-10-17-preview","capabilities":"None"},{"resourceType":"privateLinkScopes/privateEndpointConnectionProxies","locations":["Global"],"apiVersions":["2021-07-01-preview","2019-10-17-preview"],"defaultApiVersion":"2019-10-17-preview","capabilities":"None"},{"resourceType":"privateLinkScopes/scopedResources","locations":["Global"],"apiVersions":["2021-07-01-preview","2019-10-17-preview"],"defaultApiVersion":"2019-10-17-preview","capabilities":"None"},{"resourceType":"components/linkedstorageaccounts","locations":["East + US","West Central 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"],"apiVersions":["2020-03-01-preview"],"capabilities":"None"},{"resourceType":"privateLinkScopeOperationStatuses","locations":["Global"],"apiVersions":["2021-07-01-preview","2019-10-17-preview"],"defaultApiVersion":"2019-10-17-preview","capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + headers: + cache-control: + - no-cache + content-length: + - '24232' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 26 Jun 2021 00:14:46 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: '{"location": "westus2", "properties": {"dataFlows": [{"streams": ["Microsoft-Perf", + "Microsoft-ContainerInventory", "Microsoft-ContainerLog", "Microsoft-ContainerNodeInventory", + "Microsoft-KubeEvents", "Microsoft-KubeHealth", "Microsoft-KubeMonAgentEvents", + "Microsoft-KubeNodeInventory", "Microsoft-KubePodInventory", "Microsoft-KubePVInventory", + "Microsoft-KubeServices", "Microsoft-InsightsMetrics"], "destinations": ["la-workspace"]}], + "destinations": {"logAnalytics": [{"workspaceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2", + "name": "la-workspace"}]}}}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '731' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --name --location --generate-ssh-keys --enable-managed-identity + --enable-addons --enable-msi-auth-for-monitoring --node-count --assign-identity + User-Agent: + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + AZURECLI/2.24.2 + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/defaultresourcegroup-wus2/providers/Microsoft.Insights/dataCollectionRules/DCR-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2?api-version=2019-11-01-preview + response: + body: + string: '{"properties":{"immutableId":"dcr-5e049dc6e6b34e2287ad61e9eab62646","destinations":{"logAnalytics":[{"workspaceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2","workspaceId":"a6ec9525-4c1b-4ebf-80ad-1a1da5f6ca3c","name":"la-workspace"}]},"dataFlows":[{"streams":["Microsoft-Perf","Microsoft-ContainerInventory","Microsoft-ContainerLog","Microsoft-ContainerNodeInventory","Microsoft-KubeEvents","Microsoft-KubeHealth","Microsoft-KubeMonAgentEvents","Microsoft-KubeNodeInventory","Microsoft-KubePodInventory","Microsoft-KubePVInventory","Microsoft-KubeServices","Microsoft-InsightsMetrics"],"destinations":["la-workspace"]}],"provisioningState":"Succeeded"},"location":"westus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/defaultresourcegroup-wus2/providers/Microsoft.Insights/dataCollectionRules/DCR-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2","name":"DCR-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2","type":"Microsoft.Insights/dataCollectionRules","etag":"\"56001dd5-0000-0800-0000-60d671770000\""}' + headers: + api-supported-versions: + - 2019-11-01-preview, 2021-04-01 + cache-control: + - no-cache + content-length: + - '1227' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 26 Jun 2021 00:14: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 + 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", "properties": {"kubernetesVersion": "", "dnsPrefix": + "cliakstest-clitestigjzwzgpm-3b875b", "agentPoolProfiles": [{"count": 1, "vmSize": + "Standard_DS2_v2", "osType": "Linux", "type": "VirtualMachineScaleSets", "mode": + "System", "enableNodePublicIP": false, "scaleSetPriority": "Regular", "scaleSetEvictionPolicy": + "Delete", "enableEncryptionAtHost": false, "enableUltraSSD": false, "enableFIPS": + false, "name": "nodepool1"}], "linuxProfile": {"adminUsername": "azureuser", + "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCwztmLMdJZrXl6VTfbonQWAMXjuJkRzCW8Lmynohg0hz681LPQC7OenFR36PPz3tDNd90tjX3+khk0NkSBB8Dz+U1/ISOsR17++TmEFWLf1oiTTua/1K82pc8yGoFbDXIFAgMeJxpwYczjvL8BnDa9z3GrzYAEi1B6kbZyGAjc0rRoSb76nYF/dhtp+GtN5oo/qYEt8ogcPpQzlv3hM7AdcYuTHutWMHV7XA/bdhfcXL4jJLW/SPD9l0EAw6boMoOJ4W1X3OWFD0MGs1cphZNIXpOg5fBCN/x9eRmJ45fAGFH/plGh+i0UjQKoLd3eEy5pyAzJ+ttoQ3do3eKT56N0Zj//2Yp9HNxcoeLt4nK3IOE1gR2AdOFMPEloY/heaU82sYipKG4PBm1g8C3AtcS/wP0tQaw2KlCLMmEO6/AiNSPazkXVrbflnWPq2jukydGW+YJ4pD3ACZgTNYVT3JCr9gWCYnkhdvF//Us+3Q2jUJReIJArsOq5xBFEphkguket41AzifO07+s7DULHOkoisxxZALbOxIUdSvcRv5WpzPOTyyKIZB2UI190cK4aHT0+BGmpbhBiYc0lPikDEHqaaR0/Mgaq2RhUZ+zpqboMCuqpYu69pIhU/cz3dko+P272GutYId9YsTyzKIURp66mow40iL0MwzAML/DwugQ6nQ== + damichel@microsoft.com\n"}]}}, "addonProfiles": {"omsagent": {"enabled": true, + "config": {"logAnalyticsWorkspaceResourceID": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2", + "useAADAuth": "True"}}}, "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}, "identity": {"type": "UserAssigned", "userAssignedIdentities": {"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cliakstest000002_uai": + {}}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '2171' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --resource-group --name --location --generate-ssh-keys --enable-managed-identity + --enable-addons --enable-msi-auth-for-monitoring --node-count --assign-identity + User-Agent: + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python + AZURECLI/2.24.2 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2021-05-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\": + \"Creating\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": + \"1.19.11\",\n \"dnsPrefix\": \"cliakstest-clitestigjzwzgpm-3b875b\",\n + \ \"fqdn\": \"cliakstest-clitestigjzwzgpm-3b875b-a9c56708.hcp.westus2.azmk8s.io\",\n + \ \"azurePortalFQDN\": \"cliakstest-clitestigjzwzgpm-3b875b-a9c56708.portal.hcp.westus2.azmk8s.io\",\n + \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": + 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": + \"Managed\",\n \"kubeletDiskType\": \"OS\",\n \"maxPods\": 110,\n + \ \"type\": \"VirtualMachineScaleSets\",\n \"provisioningState\": \"Creating\",\n + \ \"powerState\": {\n \"code\": \"Running\"\n },\n \"orchestratorVersion\": + \"1.19.11\",\n \"enableNodePublicIP\": false,\n \"nodeLabels\": {},\n + \ \"mode\": \"System\",\n \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\": + false,\n \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"nodeImageVersion\": + \"AKSUbuntu-1804gen2containerd-2021.06.02\",\n \"enableFIPS\": false\n + \ }\n ],\n \"linuxProfile\": {\n \"adminUsername\": \"azureuser\",\n + \ \"ssh\": {\n \"publicKeys\": [\n {\n \"keyData\": \"ssh-rsa + AAAAB3NzaC1yc2EAAAADAQABAAACAQCwztmLMdJZrXl6VTfbonQWAMXjuJkRzCW8Lmynohg0hz681LPQC7OenFR36PPz3tDNd90tjX3+khk0NkSBB8Dz+U1/ISOsR17++TmEFWLf1oiTTua/1K82pc8yGoFbDXIFAgMeJxpwYczjvL8BnDa9z3GrzYAEi1B6kbZyGAjc0rRoSb76nYF/dhtp+GtN5oo/qYEt8ogcPpQzlv3hM7AdcYuTHutWMHV7XA/bdhfcXL4jJLW/SPD9l0EAw6boMoOJ4W1X3OWFD0MGs1cphZNIXpOg5fBCN/x9eRmJ45fAGFH/plGh+i0UjQKoLd3eEy5pyAzJ+ttoQ3do3eKT56N0Zj//2Yp9HNxcoeLt4nK3IOE1gR2AdOFMPEloY/heaU82sYipKG4PBm1g8C3AtcS/wP0tQaw2KlCLMmEO6/AiNSPazkXVrbflnWPq2jukydGW+YJ4pD3ACZgTNYVT3JCr9gWCYnkhdvF//Us+3Q2jUJReIJArsOq5xBFEphkguket41AzifO07+s7DULHOkoisxxZALbOxIUdSvcRv5WpzPOTyyKIZB2UI190cK4aHT0+BGmpbhBiYc0lPikDEHqaaR0/Mgaq2RhUZ+zpqboMCuqpYu69pIhU/cz3dko+P272GutYId9YsTyzKIURp66mow40iL0MwzAML/DwugQ6nQ== + damichel@microsoft.com\\n\"\n }\n ]\n }\n },\n \"servicePrincipalProfile\": + {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \"addonProfiles\": + {\n \"omsagent\": {\n \"enabled\": true,\n \"config\": {\n \"logAnalyticsWorkspaceResourceID\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2\",\n + \ \"useAADAuth\": \"True\"\n }\n }\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 },\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 },\n \"maxAgentPools\": 100,\n \"disableLocalAccounts\": + false\n },\n \"identity\": {\n \"type\": \"UserAssigned\",\n \"userAssignedIdentities\": + {\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cliakstest000002_uai\": + {}\n }\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/2da6f6bd-e046-475e-b3df-c7cd92a55ad1?api-version=2016-03-30 + cache-control: + - no-cache + content-length: + - '3530' + content-type: + - application/json + date: + - Sat, 26 Jun 2021 00:14:53 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: + - '1198' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --generate-ssh-keys --enable-managed-identity + --enable-addons --enable-msi-auth-for-monitoring --node-count --assign-identity + User-Agent: + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python + AZURECLI/2.24.2 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/2da6f6bd-e046-475e-b3df-c7cd92a55ad1?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"bdf6a62d-46e0-5e47-b3df-c7cd92a55ad1\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-06-26T00:14:53.88Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '121' + content-type: + - application/json + date: + - Sat, 26 Jun 2021 00:15: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 + 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 --generate-ssh-keys --enable-managed-identity + --enable-addons --enable-msi-auth-for-monitoring --node-count --assign-identity + User-Agent: + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python + AZURECLI/2.24.2 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/2da6f6bd-e046-475e-b3df-c7cd92a55ad1?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"bdf6a62d-46e0-5e47-b3df-c7cd92a55ad1\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-06-26T00:14:53.88Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '121' + content-type: + - application/json + date: + - Sat, 26 Jun 2021 00:15:54 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 create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --generate-ssh-keys --enable-managed-identity + --enable-addons --enable-msi-auth-for-monitoring --node-count --assign-identity + User-Agent: + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python + AZURECLI/2.24.2 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/2da6f6bd-e046-475e-b3df-c7cd92a55ad1?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"bdf6a62d-46e0-5e47-b3df-c7cd92a55ad1\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-06-26T00:14:53.88Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '121' + content-type: + - application/json + date: + - Sat, 26 Jun 2021 00:16:24 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 create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --generate-ssh-keys --enable-managed-identity + --enable-addons --enable-msi-auth-for-monitoring --node-count --assign-identity + User-Agent: + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python + AZURECLI/2.24.2 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/2da6f6bd-e046-475e-b3df-c7cd92a55ad1?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"bdf6a62d-46e0-5e47-b3df-c7cd92a55ad1\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-06-26T00:14:53.88Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '121' + content-type: + - application/json + date: + - Sat, 26 Jun 2021 00:16:55 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 create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --generate-ssh-keys --enable-managed-identity + --enable-addons --enable-msi-auth-for-monitoring --node-count --assign-identity + User-Agent: + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python + AZURECLI/2.24.2 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/2da6f6bd-e046-475e-b3df-c7cd92a55ad1?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"bdf6a62d-46e0-5e47-b3df-c7cd92a55ad1\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-06-26T00:14:53.88Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '121' + content-type: + - application/json + date: + - Sat, 26 Jun 2021 00:17: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 + 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 --generate-ssh-keys --enable-managed-identity + --enable-addons --enable-msi-auth-for-monitoring --node-count --assign-identity + User-Agent: + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python + AZURECLI/2.24.2 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/2da6f6bd-e046-475e-b3df-c7cd92a55ad1?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"bdf6a62d-46e0-5e47-b3df-c7cd92a55ad1\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-06-26T00:14:53.88Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '121' + content-type: + - application/json + date: + - Sat, 26 Jun 2021 00:17: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 + 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 --generate-ssh-keys --enable-managed-identity + --enable-addons --enable-msi-auth-for-monitoring --node-count --assign-identity + User-Agent: + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python + AZURECLI/2.24.2 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/2da6f6bd-e046-475e-b3df-c7cd92a55ad1?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"bdf6a62d-46e0-5e47-b3df-c7cd92a55ad1\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-06-26T00:14:53.88Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '121' + content-type: + - application/json + date: + - Sat, 26 Jun 2021 00:18: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 + 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 --generate-ssh-keys --enable-managed-identity + --enable-addons --enable-msi-auth-for-monitoring --node-count --assign-identity + User-Agent: + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python + AZURECLI/2.24.2 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/2da6f6bd-e046-475e-b3df-c7cd92a55ad1?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"bdf6a62d-46e0-5e47-b3df-c7cd92a55ad1\",\n \"status\": + \"Succeeded\",\n \"startTime\": \"2021-06-26T00:14:53.88Z\",\n \"endTime\": + \"2021-06-26T00:18:35.8766009Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '165' + content-type: + - application/json + date: + - Sat, 26 Jun 2021 00:18: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 + 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 --generate-ssh-keys --enable-managed-identity + --enable-addons --enable-msi-auth-for-monitoring --node-count --assign-identity + User-Agent: + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python + AZURECLI/2.24.2 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2021-05-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.19.11\",\n \"dnsPrefix\": \"cliakstest-clitestigjzwzgpm-3b875b\",\n + \ \"fqdn\": \"cliakstest-clitestigjzwzgpm-3b875b-a9c56708.hcp.westus2.azmk8s.io\",\n + \ \"azurePortalFQDN\": \"cliakstest-clitestigjzwzgpm-3b875b-a9c56708.portal.hcp.westus2.azmk8s.io\",\n + \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": + 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": + \"Managed\",\n \"kubeletDiskType\": \"OS\",\n \"maxPods\": 110,\n + \ \"type\": \"VirtualMachineScaleSets\",\n \"provisioningState\": \"Succeeded\",\n + \ \"powerState\": {\n \"code\": \"Running\"\n },\n \"orchestratorVersion\": + \"1.19.11\",\n \"enableNodePublicIP\": false,\n \"nodeLabels\": {},\n + \ \"mode\": \"System\",\n \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\": + false,\n \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"nodeImageVersion\": + \"AKSUbuntu-1804gen2containerd-2021.06.02\",\n \"enableFIPS\": false\n + \ }\n ],\n \"linuxProfile\": {\n \"adminUsername\": \"azureuser\",\n + \ \"ssh\": {\n \"publicKeys\": [\n {\n \"keyData\": \"ssh-rsa + AAAAB3NzaC1yc2EAAAADAQABAAACAQCwztmLMdJZrXl6VTfbonQWAMXjuJkRzCW8Lmynohg0hz681LPQC7OenFR36PPz3tDNd90tjX3+khk0NkSBB8Dz+U1/ISOsR17++TmEFWLf1oiTTua/1K82pc8yGoFbDXIFAgMeJxpwYczjvL8BnDa9z3GrzYAEi1B6kbZyGAjc0rRoSb76nYF/dhtp+GtN5oo/qYEt8ogcPpQzlv3hM7AdcYuTHutWMHV7XA/bdhfcXL4jJLW/SPD9l0EAw6boMoOJ4W1X3OWFD0MGs1cphZNIXpOg5fBCN/x9eRmJ45fAGFH/plGh+i0UjQKoLd3eEy5pyAzJ+ttoQ3do3eKT56N0Zj//2Yp9HNxcoeLt4nK3IOE1gR2AdOFMPEloY/heaU82sYipKG4PBm1g8C3AtcS/wP0tQaw2KlCLMmEO6/AiNSPazkXVrbflnWPq2jukydGW+YJ4pD3ACZgTNYVT3JCr9gWCYnkhdvF//Us+3Q2jUJReIJArsOq5xBFEphkguket41AzifO07+s7DULHOkoisxxZALbOxIUdSvcRv5WpzPOTyyKIZB2UI190cK4aHT0+BGmpbhBiYc0lPikDEHqaaR0/Mgaq2RhUZ+zpqboMCuqpYu69pIhU/cz3dko+P272GutYId9YsTyzKIURp66mow40iL0MwzAML/DwugQ6nQ== + damichel@microsoft.com\\n\"\n }\n ]\n }\n },\n \"servicePrincipalProfile\": + {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \"addonProfiles\": + {\n \"omsagent\": {\n \"enabled\": true,\n \"config\": {\n \"logAnalyticsWorkspaceResourceID\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2\",\n + \ \"useAADAuth\": \"True\"\n },\n \"identity\": {\n \"resourceId\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.ManagedIdentity/userAssignedIdentities/omsagent-cliakstest000002\",\n + \ \"clientId\":\"00000000-0000-0000-0000-000000000001\",\n \"objectId\":\"00000000-0000-0000-0000-000000000001\"\n + \ }\n }\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/6f75c2c8-6016-43a8-8a21-38abf695ce95\"\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 },\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 },\n \"identity\": {\n + \ \"type\": \"UserAssigned\",\n \"userAssignedIdentities\": {\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cliakstest000002_uai\": + {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\",\n \"principalId\":\"00000000-0000-0000-0000-000000000001\"\n + \ }\n }\n },\n \"sku\": {\n \"name\": \"Basic\",\n \"tier\": \"Free\"\n + \ }\n }" + headers: + cache-control: + - no-cache + content-length: + - '4677' + content-type: + - application/json + date: + - Sat, 26 Jun 2021 00:18: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 + 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 --generate-ssh-keys --enable-managed-identity + --enable-addons --enable-msi-auth-for-monitoring --node-count --assign-identity + User-Agent: + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-authorization/0.61.0 Azure-SDK-For-Python + AZURECLI/2.24.2 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/providers/Microsoft.Authorization/roleDefinitions?$filter=roleName%20eq%20%27Monitoring%20Metrics%20Publisher%27&api-version=2018-01-01-preview + response: + body: + string: '{"value":[{"properties":{"roleName":"Monitoring Metrics Publisher","type":"BuiltInRole","description":"Enables + publishing metrics against Azure resources","assignableScopes":["/"],"permissions":[{"actions":["Microsoft.Insights/Register/Action","Microsoft.Support/*","Microsoft.Resources/subscriptions/resourceGroups/read"],"notActions":[],"dataActions":["Microsoft.Insights/Metrics/Write"],"notDataActions":[]}],"createdOn":"2018-08-14T00:36:16.5610279Z","updatedOn":"2018-08-14T00:37:18.1465065Z","createdBy":null,"updatedBy":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/3913510d-42f4-4e42-8a64-420c390055eb","type":"Microsoft.Authorization/roleDefinitions","name":"3913510d-42f4-4e42-8a64-420c390055eb"}]}' + headers: + cache-control: + - no-cache + content-length: + - '776' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 26 Jun 2021 00:18:57 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - x-ms-gateway-slice=Production; path=/; secure; samesite=none; httponly + 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: '{"properties": {"roleDefinitionId": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/3913510d-42f4-4e42-8a64-420c390055eb", + "principalId":"00000000-0000-0000-0000-000000000001"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '233' + Content-Type: + - application/json; charset=utf-8 + Cookie: + - x-ms-gateway-slice=Production + ParameterSetName: + - --resource-group --name --location --generate-ssh-keys --enable-managed-identity + --enable-addons --enable-msi-auth-for-monitoring --node-count --assign-identity + User-Agent: + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-authorization/0.61.0 Azure-SDK-For-Python + AZURECLI/2.24.2 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/providers/Microsoft.Authorization/roleAssignments/8e3ac925-cec6-4886-a28c-bf3b44afc21c?api-version=2020-04-01-preview + response: + body: + string: '{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/3913510d-42f4-4e42-8a64-420c390055eb","principalId":"00000000-0000-0000-0000-000000000001","principalType":"ServicePrincipal","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002","condition":null,"conditionVersion":null,"createdOn":"2021-06-26T00:18:58.6120013Z","updatedOn":"2021-06-26T00:18:58.8620452Z","createdBy":null,"updatedBy":"e98be497-f2d1-44cc-8439-9496116db13a","delegatedManagedIdentityResourceId":null,"description":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/providers/Microsoft.Authorization/roleAssignments/8e3ac925-cec6-4886-a28c-bf3b44afc21c","type":"Microsoft.Authorization/roleAssignments","name":"8e3ac925-cec6-4886-a28c-bf3b44afc21c"}' + headers: + cache-control: + - no-cache + content-length: + - '1029' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 26 Jun 2021 00:18:59 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - x-ms-gateway-slice=Production; path=/; secure; samesite=none; httponly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --generate-ssh-keys --enable-managed-identity + --enable-addons --enable-msi-auth-for-monitoring --node-count --assign-identity + User-Agent: + - AZURECLI/2.24.2 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2?api-version=2015-11-01-preview + response: + body: + string: "{\r\n \"properties\": {\r\n \"source\": \"Azure\",\r\n \"customerId\": + \"a6ec9525-4c1b-4ebf-80ad-1a1da5f6ca3c\",\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"sku\": {\r\n \"name\": \"pergb2018\",\r\n \"lastSkuUpdate\": + \"Fri, 18 Jun 2021 21:03:33 GMT\"\r\n },\r\n \"retentionInDays\": 30,\r\n + \ \"features\": {\r\n \"legacy\": 0,\r\n \"searchVersion\": 1,\r\n + \ \"enableLogAccessUsingOnlyResourcePermissions\": true\r\n },\r\n + \ \"workspaceCapping\": {\r\n \"dailyQuotaGb\": -1.0,\r\n \"quotaNextResetTime\": + \"Sat, 26 Jun 2021 12:00:00 GMT\",\r\n \"dataIngestionStatus\": \"RespectQuota\"\r\n + \ },\r\n \"publicNetworkAccessForIngestion\": \"Enabled\",\r\n \"publicNetworkAccessForQuery\": + \"Enabled\",\r\n \"createdDate\": \"Fri, 18 Jun 2021 21:03:33 GMT\",\r\n + \ \"modifiedDate\": \"Sat, 26 Jun 2021 00:07:56 GMT\"\r\n },\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2\",\r\n + \ \"name\": \"DefaultWorkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-WUS2\",\r\n + \ \"type\": \"Microsoft.OperationalInsights/workspaces\",\r\n \"location\": + \"westus2\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1161' + content-type: + - application/json + date: + - Sat, 26 Jun 2021 00:19:00 GMT + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"location": "westus2", "properties": {"dataCollectionRuleId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/defaultresourcegroup-wus2/providers/Microsoft.Insights/dataCollectionRules/DCR-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2", + "description": "routes monitoring data to a Log Analytics workspace"}}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '341' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --name --location --generate-ssh-keys --enable-managed-identity + --enable-addons --enable-msi-auth-for-monitoring --node-count --assign-identity + User-Agent: + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + AZURECLI/2.24.2 + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/providers/Microsoft.Insights/dataCollectionRuleAssociations/send-to-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2?api-version=2019-11-01-preview + response: + body: + string: '{"properties":{"description":"routes monitoring data to a Log Analytics + workspace","dataCollectionRuleId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/defaultresourcegroup-wus2/providers/Microsoft.Insights/dataCollectionRules/DCR-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/providers/Microsoft.Insights/dataCollectionRuleAssociations/send-to-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2","name":"send-to-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2","type":"Microsoft.Insights/dataCollectionRuleAssociations","etag":"\"560004dc-0000-0800-0000-60d672740000\""}' + headers: + api-supported-versions: + - 2019-11-01-preview, 2021-04-01 + cache-control: + - no-cache + content-length: + - '788' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 26 Jun 2021 00:19:00 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: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - rest + Connection: + - keep-alive + ParameterSetName: + - --method --url + User-Agent: + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + AZURECLI/2.24.2 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/defaultresourcegroup-wus2/providers/Microsoft.Insights/dataCollectionRules/DCR-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2?api-version=2019-11-01-preview + response: + body: + string: '{"properties":{"immutableId":"dcr-5e049dc6e6b34e2287ad61e9eab62646","destinations":{"logAnalytics":[{"workspaceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2","workspaceId":"a6ec9525-4c1b-4ebf-80ad-1a1da5f6ca3c","name":"la-workspace"}]},"dataFlows":[{"streams":["Microsoft-Perf","Microsoft-ContainerInventory","Microsoft-ContainerLog","Microsoft-ContainerNodeInventory","Microsoft-KubeEvents","Microsoft-KubeHealth","Microsoft-KubeMonAgentEvents","Microsoft-KubeNodeInventory","Microsoft-KubePodInventory","Microsoft-KubePVInventory","Microsoft-KubeServices","Microsoft-InsightsMetrics"],"destinations":["la-workspace"]}],"provisioningState":"Succeeded"},"location":"westus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/defaultresourcegroup-wus2/providers/Microsoft.Insights/dataCollectionRules/DCR-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2","name":"DCR-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2","type":"Microsoft.Insights/dataCollectionRules","etag":"\"56001dd5-0000-0800-0000-60d671770000\""}' + headers: + api-supported-versions: + - 2019-11-01-preview, 2021-04-01 + cache-control: + - no-cache + content-length: + - '1227' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 26 Jun 2021 00:19:01 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 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - rest + Connection: + - keep-alive + ParameterSetName: + - --method --url + User-Agent: + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + AZURECLI/2.24.2 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/providers/Microsoft.Insights/dataCollectionRuleAssociations/send-to-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2?api-version=2019-11-01-preview + response: + body: + string: '{"properties":{"description":"routes monitoring data to a Log Analytics + workspace","dataCollectionRuleId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/defaultresourcegroup-wus2/providers/Microsoft.Insights/dataCollectionRules/DCR-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/providers/Microsoft.Insights/dataCollectionRuleAssociations/send-to-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2","name":"send-to-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2","type":"Microsoft.Insights/dataCollectionRuleAssociations","etag":"\"560004dc-0000-0800-0000-60d672740000\""}' + headers: + api-supported-versions: + - 2019-11-01-preview, 2021-04-01 + cache-control: + - no-cache + content-length: + - '788' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 26 Jun 2021 00:19:01 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 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - rest + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --method --url + User-Agent: + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + AZURECLI/2.24.2 + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/providers/Microsoft.Insights/dataCollectionRuleAssociations/send-to-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2?api-version=2019-11-01-preview + response: + body: + string: '' + headers: + api-supported-versions: + - 2019-11-01-preview, 2021-04-01 + cache-control: + - no-cache + content-length: + - '0' + date: + - Sat, 26 Jun 2021 00:19:01 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 +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - rest + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --method --url + User-Agent: + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + AZURECLI/2.24.2 + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/defaultresourcegroup-wus2/providers/Microsoft.Insights/dataCollectionRules/DCR-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2?api-version=2019-11-01-preview + response: + body: + string: '{"error":{"code":"ExistingAssociationsPreventDelete","message":"Existing + associations prevent data collection rule from being deleted: \r\n/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest2wh6r5dlo6/providers/microsoft.containerservice/managedclusters/cliakstestdgr4yt/providers/microsoft.insights/datacollectionruleassociations/send-to-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2","details":[{"code":"ExistingAssociationsPreventDelete","message":"Existing + associations prevent data collection rule from being deleted: \r\n/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest2wh6r5dlo6/providers/microsoft.containerservice/managedclusters/cliakstestdgr4yt/providers/microsoft.insights/datacollectionruleassociations/send-to-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2"}]}}' + headers: + api-supported-versions: + - 2019-11-01-preview, 2021-04-01 + cache-control: + - no-cache + content-length: + - '849' + content-type: + - application/json + date: + - Sat, 26 Jun 2021 00:19:02 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: 400 + message: Bad Request +version: 1 diff --git a/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_with_monitoring_errors.yaml b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_with_monitoring_errors.yaml new file mode 100644 index 00000000000..9b533049af6 --- /dev/null +++ b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_with_monitoring_errors.yaml @@ -0,0 +1,1451 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --enable-addons --enable-msi-auth-for-monitoring + --node-count + User-Agent: + - AZURECLI/2.24.2 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001?api-version=2020-10-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001","name":"clitest000001","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"product":"azurecli","cause":"automation","date":"2021-06-26T00:14:40Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '313' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 26 Jun 2021 00:14:39 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 --enable-addons --enable-msi-auth-for-monitoring + --node-count + User-Agent: + - AZURECLI/2.24.2 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001?api-version=2020-10-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001","name":"clitest000001","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"product":"azurecli","cause":"automation","date":"2021-06-26T00:14:40Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '313' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 26 Jun 2021 00:14:39 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 --enable-addons --enable-msi-auth-for-monitoring + --node-count + User-Agent: + - AZURECLI/2.24.2 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: HEAD + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/DefaultResourceGroup-WUS2?api-version=2020-10-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Sat, 26 Jun 2021 00:14:40 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 204 + message: No Content +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --enable-addons --enable-msi-auth-for-monitoring + --node-count + User-Agent: + - AZURECLI/2.24.2 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/DefaultResourceGroup-WUS2/providers/Microsoft.OperationalInsights/workspaces/DefaultWorkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-WUS2?api-version=2015-11-01-preview + response: + body: + string: "{\r\n \"properties\": {\r\n \"source\": \"Azure\",\r\n \"customerId\": + \"a6ec9525-4c1b-4ebf-80ad-1a1da5f6ca3c\",\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"sku\": {\r\n \"name\": \"pergb2018\",\r\n \"lastSkuUpdate\": + \"Fri, 18 Jun 2021 21:03:33 GMT\"\r\n },\r\n \"retentionInDays\": 30,\r\n + \ \"features\": {\r\n \"legacy\": 0,\r\n \"searchVersion\": 1,\r\n + \ \"enableLogAccessUsingOnlyResourcePermissions\": true\r\n },\r\n + \ \"workspaceCapping\": {\r\n \"dailyQuotaGb\": -1.0,\r\n \"quotaNextResetTime\": + \"Sat, 26 Jun 2021 12:00:00 GMT\",\r\n \"dataIngestionStatus\": \"RespectQuota\"\r\n + \ },\r\n \"publicNetworkAccessForIngestion\": \"Enabled\",\r\n \"publicNetworkAccessForQuery\": + \"Enabled\",\r\n \"createdDate\": \"Fri, 18 Jun 2021 21:03:33 GMT\",\r\n + \ \"modifiedDate\": \"Sat, 26 Jun 2021 00:07:56 GMT\"\r\n },\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2\",\r\n + \ \"name\": \"DefaultWorkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-WUS2\",\r\n + \ \"type\": \"Microsoft.OperationalInsights/workspaces\",\r\n \"location\": + \"westus2\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1161' + content-type: + - application/json + date: + - Sat, 26 Jun 2021 00:14:40 GMT + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --enable-addons --enable-msi-auth-for-monitoring + --node-count + User-Agent: + - AZURECLI/2.24.2 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2?api-version=2015-11-01-preview + response: + body: + string: "{\r\n \"properties\": {\r\n \"source\": \"Azure\",\r\n \"customerId\": + \"a6ec9525-4c1b-4ebf-80ad-1a1da5f6ca3c\",\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"sku\": {\r\n \"name\": \"pergb2018\",\r\n \"lastSkuUpdate\": + \"Fri, 18 Jun 2021 21:03:33 GMT\"\r\n },\r\n \"retentionInDays\": 30,\r\n + \ \"features\": {\r\n \"legacy\": 0,\r\n \"searchVersion\": 1,\r\n + \ \"enableLogAccessUsingOnlyResourcePermissions\": true\r\n },\r\n + \ \"workspaceCapping\": {\r\n \"dailyQuotaGb\": -1.0,\r\n \"quotaNextResetTime\": + \"Sat, 26 Jun 2021 12:00:00 GMT\",\r\n \"dataIngestionStatus\": \"RespectQuota\"\r\n + \ },\r\n \"publicNetworkAccessForIngestion\": \"Enabled\",\r\n \"publicNetworkAccessForQuery\": + \"Enabled\",\r\n \"createdDate\": \"Fri, 18 Jun 2021 21:03:33 GMT\",\r\n + \ \"modifiedDate\": \"Sat, 26 Jun 2021 00:07:56 GMT\"\r\n },\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2\",\r\n + \ \"name\": \"DefaultWorkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-WUS2\",\r\n + \ \"type\": \"Microsoft.OperationalInsights/workspaces\",\r\n \"location\": + \"westus2\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1161' + content-type: + - application/json + date: + - Sat, 26 Jun 2021 00:14:40 GMT + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --enable-addons --enable-msi-auth-for-monitoring + --node-count + User-Agent: + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + AZURECLI/2.24.2 + 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/northcentralus\",\"name\":\"northcentralus\",\"displayName\":\"North + Central US\",\"regionalDisplayName\":\"(US) North Central US\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Recommended\",\"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\":\"Recommended\",\"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/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/jioindiawest\",\"name\":\"jioindiawest\",\"displayName\":\"Jio + India West\",\"regionalDisplayName\":\"(Asia Pacific) Jio India West\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Recommended\",\"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/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/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/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/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/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/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/eastus2euap\",\"name\":\"eastus2euap\",\"displayName\":\"East + US 2 EUAP\",\"regionalDisplayName\":\"(US) East US 2 EUAP\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Other\",\"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/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/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\"}]}}]}" + headers: + cache-control: + - no-cache + content-length: + - '27465' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 26 Jun 2021 00:14:41 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 + ParameterSetName: + - --resource-group --name --location --enable-addons --enable-msi-auth-for-monitoring + --node-count + User-Agent: + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + AZURECLI/2.24.2 + 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"}],"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"],"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":[],"apiVersions":["2018-04-20"],"capabilities":"None"},{"resourceType":"components/metadata","locations":[],"apiVersions":["2018-04-20"],"capabilities":"None"},{"resourceType":"components/metrics","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","Brazil South","Switzerland North","Australia + Southeast","Norway East","Norway West"],"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"],"apiVersions":["2018-04-20"],"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"],"apiVersions":["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"],"apiVersions":["2020-02-10-preview"],"capabilities":"None"},{"resourceType":"scheduledqueryrules","locations":["Global","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"],"apiVersions":["2021-02-01-preview","2020-05-01-preview","2018-04-16","2017-09-01-preview"],"defaultApiVersion":"2018-04-16","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"components/pricingPlans","locations":["East + US","South Central US","North Europe","West Europe","Southeast Asia","West + US 2"],"apiVersions":["2017-10-01"],"capabilities":"None"},{"resourceType":"migrateToNewPricingModel","locations":["East + US","South Central US","North Europe","West Europe","Southeast Asia","West + US 2"],"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"],"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"],"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"],"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","South Africa North","UAE North"],"apiVersions":["2016-03-01","2015-04-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","West + Europe","East Asia","Southeast Asia","Japan East","Japan West","North Central + US","Australia East","South Africa North","UAE North","Switzerland North","Germany + West Central","Norway East","West US 3","Jio India West"],"apiVersions":["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","South Africa North","UAE North","Switzerland + North","Germany West Central","Norway East","West US 3","Jio India West"],"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","South Africa North","UAE North","Switzerland + North","Germany West Central","Norway East","West US 3","Jio India West"],"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","South Africa North","UAE North","Switzerland + North","Germany West Central","Norway East","West US 3","Jio India West"],"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","West US 3","West Central + US","Korea South","Korea Central","UK South","UK West","France Central","South + Africa North","South Africa West","UAE North","Switzerland North","Germany + West Central","Norway East"],"apiVersions":["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"],"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","West US 3","West Central + US","Korea South","Korea Central","UK South","UK West","France Central","South + Africa North","South Africa West","UAE North","Switzerland North","Germany + West Central","Norway East"],"apiVersions":["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":[],"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","West US 3","West Central + US","Korea South","Korea Central","UK South","UK West","France Central","South + Africa North","South Africa West","UAE North","Switzerland North","Germany + West Central","Norway East"],"apiVersions":["2017-12-01-preview"],"capabilities":"SupportsExtension"},{"resourceType":"actiongroups","locations":["Global"],"apiVersions":["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":"baseline","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","South India","Central India","West India","North + Europe","Norway East","Germany West Central","Switzerland North","West US + 2","West Central US","Korea South","Korea Central","UK South","UK West","France + Central","South Africa North","UAE North"],"apiVersions":["2018-09-01","2017-11-01-preview"],"capabilities":"SupportsExtension"},{"resourceType":"metricbaselines","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","South India","Central India","West India","North + Europe","Norway East","Germany West Central","Switzerland North","West US + 2","West Central US","Korea South","Korea Central","UK South","UK West","France + Central","South Africa North","UAE North"],"apiVersions":["2019-03-01","2018-09-01"],"capabilities":"SupportsExtension"},{"resourceType":"calculatebaseline","locations":[],"apiVersions":["2018-09-01","2017-11-01-preview"],"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 + Central US","West US 3","Korea South"],"apiVersions":["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 + Central US","West US 3","Korea South"],"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"],"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"],"apiVersions":["2018-08-01-preview","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"],"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"],"apiVersions":["2019-10-17-preview"],"capabilities":"SupportsExtension"},{"resourceType":"generateLiveToken","locations":[],"apiVersions":["2020-06-02-preview"],"capabilities":"SupportsExtension"},{"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","France South","Norway West","UAE North","Japan West","Norway East","Switzerland + West"],"apiVersions":["2021-04-01","2019-11-01-preview"],"defaultApiVersion":"2019-11-01-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, 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"],"apiVersions":["2021-04-01","2019-11-01-preview"],"defaultApiVersion":"2019-11-01-preview","capabilities":"SupportsExtension"},{"resourceType":"privateLinkScopes","locations":["Global"],"apiVersions":["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-07-01-preview","2019-10-17-preview"],"defaultApiVersion":"2019-10-17-preview","capabilities":"None"},{"resourceType":"privateLinkScopes/privateEndpointConnectionProxies","locations":["Global"],"apiVersions":["2021-07-01-preview","2019-10-17-preview"],"defaultApiVersion":"2019-10-17-preview","capabilities":"None"},{"resourceType":"privateLinkScopes/scopedResources","locations":["Global"],"apiVersions":["2021-07-01-preview","2019-10-17-preview"],"defaultApiVersion":"2019-10-17-preview","capabilities":"None"},{"resourceType":"components/linkedstorageaccounts","locations":["East + US","West Central 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"],"apiVersions":["2020-03-01-preview"],"capabilities":"None"},{"resourceType":"privateLinkScopeOperationStatuses","locations":["Global"],"apiVersions":["2021-07-01-preview","2019-10-17-preview"],"defaultApiVersion":"2019-10-17-preview","capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + headers: + cache-control: + - no-cache + content-length: + - '24232' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 26 Jun 2021 00:14:41 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: '{"location": "westus2", "properties": {"dataFlows": [{"streams": ["Microsoft-Perf", + "Microsoft-ContainerInventory", "Microsoft-ContainerLog", "Microsoft-ContainerNodeInventory", + "Microsoft-KubeEvents", "Microsoft-KubeHealth", "Microsoft-KubeMonAgentEvents", + "Microsoft-KubeNodeInventory", "Microsoft-KubePodInventory", "Microsoft-KubePVInventory", + "Microsoft-KubeServices", "Microsoft-InsightsMetrics"], "destinations": ["la-workspace"]}], + "destinations": {"logAnalytics": [{"workspaceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2", + "name": "la-workspace"}]}}}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '731' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --name --location --enable-addons --enable-msi-auth-for-monitoring + --node-count + User-Agent: + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + AZURECLI/2.24.2 + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/defaultresourcegroup-wus2/providers/Microsoft.Insights/dataCollectionRules/DCR-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2?api-version=2019-11-01-preview + response: + body: + string: '{"properties":{"immutableId":"dcr-5e049dc6e6b34e2287ad61e9eab62646","destinations":{"logAnalytics":[{"workspaceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2","workspaceId":"a6ec9525-4c1b-4ebf-80ad-1a1da5f6ca3c","name":"la-workspace"}]},"dataFlows":[{"streams":["Microsoft-Perf","Microsoft-ContainerInventory","Microsoft-ContainerLog","Microsoft-ContainerNodeInventory","Microsoft-KubeEvents","Microsoft-KubeHealth","Microsoft-KubeMonAgentEvents","Microsoft-KubeNodeInventory","Microsoft-KubePodInventory","Microsoft-KubePVInventory","Microsoft-KubeServices","Microsoft-InsightsMetrics"],"destinations":["la-workspace"]}],"provisioningState":"Succeeded"},"location":"westus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/defaultresourcegroup-wus2/providers/Microsoft.Insights/dataCollectionRules/DCR-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2","name":"DCR-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2","type":"Microsoft.Insights/dataCollectionRules","etag":"\"560015d5-0000-0800-0000-60d671720000\""}' + headers: + api-supported-versions: + - 2019-11-01-preview, 2021-04-01 + cache-control: + - no-cache + content-length: + - '1227' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 26 Jun 2021 00:14:43 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", "properties": {"kubernetesVersion": "", "dnsPrefix": + "cliakstest-clitest2wh6r5dlo-3b875b", "agentPoolProfiles": [{"count": 1, "vmSize": + "Standard_DS2_v2", "osType": "Linux", "type": "VirtualMachineScaleSets", "mode": + "System", "enableNodePublicIP": false, "scaleSetPriority": "Regular", "scaleSetEvictionPolicy": + "Delete", "enableEncryptionAtHost": false, "enableUltraSSD": false, "enableFIPS": + false, "name": "nodepool1"}], "linuxProfile": {"adminUsername": "azureuser", + "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCwztmLMdJZrXl6VTfbonQWAMXjuJkRzCW8Lmynohg0hz681LPQC7OenFR36PPz3tDNd90tjX3+khk0NkSBB8Dz+U1/ISOsR17++TmEFWLf1oiTTua/1K82pc8yGoFbDXIFAgMeJxpwYczjvL8BnDa9z3GrzYAEi1B6kbZyGAjc0rRoSb76nYF/dhtp+GtN5oo/qYEt8ogcPpQzlv3hM7AdcYuTHutWMHV7XA/bdhfcXL4jJLW/SPD9l0EAw6boMoOJ4W1X3OWFD0MGs1cphZNIXpOg5fBCN/x9eRmJ45fAGFH/plGh+i0UjQKoLd3eEy5pyAzJ+ttoQ3do3eKT56N0Zj//2Yp9HNxcoeLt4nK3IOE1gR2AdOFMPEloY/heaU82sYipKG4PBm1g8C3AtcS/wP0tQaw2KlCLMmEO6/AiNSPazkXVrbflnWPq2jukydGW+YJ4pD3ACZgTNYVT3JCr9gWCYnkhdvF//Us+3Q2jUJReIJArsOq5xBFEphkguket41AzifO07+s7DULHOkoisxxZALbOxIUdSvcRv5WpzPOTyyKIZB2UI190cK4aHT0+BGmpbhBiYc0lPikDEHqaaR0/Mgaq2RhUZ+zpqboMCuqpYu69pIhU/cz3dko+P272GutYId9YsTyzKIURp66mow40iL0MwzAML/DwugQ6nQ== + damichel@microsoft.com\n"}]}}, "addonProfiles": {"omsagent": {"enabled": true, + "config": {"logAnalyticsWorkspaceResourceID": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2", + "useAADAuth": "True"}}}, "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}, "identity": {"type": "SystemAssigned"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '1973' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --resource-group --name --location --enable-addons --enable-msi-auth-for-monitoring + --node-count + User-Agent: + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python + AZURECLI/2.24.2 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2021-05-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\": + \"Creating\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": + \"1.19.11\",\n \"dnsPrefix\": \"cliakstest-clitest2wh6r5dlo-3b875b\",\n + \ \"fqdn\": \"cliakstest-clitest2wh6r5dlo-3b875b-47eb6e25.hcp.westus2.azmk8s.io\",\n + \ \"azurePortalFQDN\": \"cliakstest-clitest2wh6r5dlo-3b875b-47eb6e25.portal.hcp.westus2.azmk8s.io\",\n + \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": + 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": + \"Managed\",\n \"kubeletDiskType\": \"OS\",\n \"maxPods\": 110,\n + \ \"type\": \"VirtualMachineScaleSets\",\n \"provisioningState\": \"Creating\",\n + \ \"powerState\": {\n \"code\": \"Running\"\n },\n \"orchestratorVersion\": + \"1.19.11\",\n \"enableNodePublicIP\": false,\n \"nodeLabels\": {},\n + \ \"mode\": \"System\",\n \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\": + false,\n \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"nodeImageVersion\": + \"AKSUbuntu-1804gen2containerd-2021.06.02\",\n \"enableFIPS\": false\n + \ }\n ],\n \"linuxProfile\": {\n \"adminUsername\": \"azureuser\",\n + \ \"ssh\": {\n \"publicKeys\": [\n {\n \"keyData\": \"ssh-rsa + AAAAB3NzaC1yc2EAAAADAQABAAACAQCwztmLMdJZrXl6VTfbonQWAMXjuJkRzCW8Lmynohg0hz681LPQC7OenFR36PPz3tDNd90tjX3+khk0NkSBB8Dz+U1/ISOsR17++TmEFWLf1oiTTua/1K82pc8yGoFbDXIFAgMeJxpwYczjvL8BnDa9z3GrzYAEi1B6kbZyGAjc0rRoSb76nYF/dhtp+GtN5oo/qYEt8ogcPpQzlv3hM7AdcYuTHutWMHV7XA/bdhfcXL4jJLW/SPD9l0EAw6boMoOJ4W1X3OWFD0MGs1cphZNIXpOg5fBCN/x9eRmJ45fAGFH/plGh+i0UjQKoLd3eEy5pyAzJ+ttoQ3do3eKT56N0Zj//2Yp9HNxcoeLt4nK3IOE1gR2AdOFMPEloY/heaU82sYipKG4PBm1g8C3AtcS/wP0tQaw2KlCLMmEO6/AiNSPazkXVrbflnWPq2jukydGW+YJ4pD3ACZgTNYVT3JCr9gWCYnkhdvF//Us+3Q2jUJReIJArsOq5xBFEphkguket41AzifO07+s7DULHOkoisxxZALbOxIUdSvcRv5WpzPOTyyKIZB2UI190cK4aHT0+BGmpbhBiYc0lPikDEHqaaR0/Mgaq2RhUZ+zpqboMCuqpYu69pIhU/cz3dko+P272GutYId9YsTyzKIURp66mow40iL0MwzAML/DwugQ6nQ== + damichel@microsoft.com\\n\"\n }\n ]\n }\n },\n \"servicePrincipalProfile\": + {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \"addonProfiles\": + {\n \"omsagent\": {\n \"enabled\": true,\n \"config\": {\n \"logAnalyticsWorkspaceResourceID\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2\",\n + \ \"useAADAuth\": \"True\"\n }\n }\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 },\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 },\n \"maxAgentPools\": 100,\n \"disableLocalAccounts\": + false\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/832e8e71-ea97-4283-9cfa-cd8693c5f8d6?api-version=2016-03-30 + cache-control: + - no-cache + content-length: + - '3433' + content-type: + - application/json + date: + - Sat, 26 Jun 2021 00:14:49 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --enable-addons --enable-msi-auth-for-monitoring + --node-count + User-Agent: + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python + AZURECLI/2.24.2 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/832e8e71-ea97-4283-9cfa-cd8693c5f8d6?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"718e2e83-97ea-8342-9cfa-cd8693c5f8d6\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-06-26T00:14:49.7366666Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Sat, 26 Jun 2021 00:15: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --enable-addons --enable-msi-auth-for-monitoring + --node-count + User-Agent: + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python + AZURECLI/2.24.2 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/832e8e71-ea97-4283-9cfa-cd8693c5f8d6?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"718e2e83-97ea-8342-9cfa-cd8693c5f8d6\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-06-26T00:14:49.7366666Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Sat, 26 Jun 2021 00:15: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --enable-addons --enable-msi-auth-for-monitoring + --node-count + User-Agent: + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python + AZURECLI/2.24.2 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/832e8e71-ea97-4283-9cfa-cd8693c5f8d6?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"718e2e83-97ea-8342-9cfa-cd8693c5f8d6\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-06-26T00:14:49.7366666Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Sat, 26 Jun 2021 00:16: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --enable-addons --enable-msi-auth-for-monitoring + --node-count + User-Agent: + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python + AZURECLI/2.24.2 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/832e8e71-ea97-4283-9cfa-cd8693c5f8d6?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"718e2e83-97ea-8342-9cfa-cd8693c5f8d6\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-06-26T00:14:49.7366666Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Sat, 26 Jun 2021 00:16: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --enable-addons --enable-msi-auth-for-monitoring + --node-count + User-Agent: + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python + AZURECLI/2.24.2 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/832e8e71-ea97-4283-9cfa-cd8693c5f8d6?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"718e2e83-97ea-8342-9cfa-cd8693c5f8d6\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-06-26T00:14:49.7366666Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Sat, 26 Jun 2021 00:17: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --enable-addons --enable-msi-auth-for-monitoring + --node-count + User-Agent: + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python + AZURECLI/2.24.2 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/832e8e71-ea97-4283-9cfa-cd8693c5f8d6?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"718e2e83-97ea-8342-9cfa-cd8693c5f8d6\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-06-26T00:14:49.7366666Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Sat, 26 Jun 2021 00:17: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --enable-addons --enable-msi-auth-for-monitoring + --node-count + User-Agent: + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python + AZURECLI/2.24.2 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/832e8e71-ea97-4283-9cfa-cd8693c5f8d6?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"718e2e83-97ea-8342-9cfa-cd8693c5f8d6\",\n \"status\": + \"Succeeded\",\n \"startTime\": \"2021-06-26T00:14:49.7366666Z\",\n \"endTime\": + \"2021-06-26T00:18:19.9351125Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '170' + content-type: + - application/json + date: + - Sat, 26 Jun 2021 00:18: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --enable-addons --enable-msi-auth-for-monitoring + --node-count + User-Agent: + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python + AZURECLI/2.24.2 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2021-05-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.19.11\",\n \"dnsPrefix\": \"cliakstest-clitest2wh6r5dlo-3b875b\",\n + \ \"fqdn\": \"cliakstest-clitest2wh6r5dlo-3b875b-47eb6e25.hcp.westus2.azmk8s.io\",\n + \ \"azurePortalFQDN\": \"cliakstest-clitest2wh6r5dlo-3b875b-47eb6e25.portal.hcp.westus2.azmk8s.io\",\n + \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": + 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": + \"Managed\",\n \"kubeletDiskType\": \"OS\",\n \"maxPods\": 110,\n + \ \"type\": \"VirtualMachineScaleSets\",\n \"provisioningState\": \"Succeeded\",\n + \ \"powerState\": {\n \"code\": \"Running\"\n },\n \"orchestratorVersion\": + \"1.19.11\",\n \"enableNodePublicIP\": false,\n \"nodeLabels\": {},\n + \ \"mode\": \"System\",\n \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\": + false,\n \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"nodeImageVersion\": + \"AKSUbuntu-1804gen2containerd-2021.06.02\",\n \"enableFIPS\": false\n + \ }\n ],\n \"linuxProfile\": {\n \"adminUsername\": \"azureuser\",\n + \ \"ssh\": {\n \"publicKeys\": [\n {\n \"keyData\": \"ssh-rsa + AAAAB3NzaC1yc2EAAAADAQABAAACAQCwztmLMdJZrXl6VTfbonQWAMXjuJkRzCW8Lmynohg0hz681LPQC7OenFR36PPz3tDNd90tjX3+khk0NkSBB8Dz+U1/ISOsR17++TmEFWLf1oiTTua/1K82pc8yGoFbDXIFAgMeJxpwYczjvL8BnDa9z3GrzYAEi1B6kbZyGAjc0rRoSb76nYF/dhtp+GtN5oo/qYEt8ogcPpQzlv3hM7AdcYuTHutWMHV7XA/bdhfcXL4jJLW/SPD9l0EAw6boMoOJ4W1X3OWFD0MGs1cphZNIXpOg5fBCN/x9eRmJ45fAGFH/plGh+i0UjQKoLd3eEy5pyAzJ+ttoQ3do3eKT56N0Zj//2Yp9HNxcoeLt4nK3IOE1gR2AdOFMPEloY/heaU82sYipKG4PBm1g8C3AtcS/wP0tQaw2KlCLMmEO6/AiNSPazkXVrbflnWPq2jukydGW+YJ4pD3ACZgTNYVT3JCr9gWCYnkhdvF//Us+3Q2jUJReIJArsOq5xBFEphkguket41AzifO07+s7DULHOkoisxxZALbOxIUdSvcRv5WpzPOTyyKIZB2UI190cK4aHT0+BGmpbhBiYc0lPikDEHqaaR0/Mgaq2RhUZ+zpqboMCuqpYu69pIhU/cz3dko+P272GutYId9YsTyzKIURp66mow40iL0MwzAML/DwugQ6nQ== + damichel@microsoft.com\\n\"\n }\n ]\n }\n },\n \"servicePrincipalProfile\": + {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \"addonProfiles\": + {\n \"omsagent\": {\n \"enabled\": true,\n \"config\": {\n \"logAnalyticsWorkspaceResourceID\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2\",\n + \ \"useAADAuth\": \"True\"\n },\n \"identity\": {\n \"resourceId\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.ManagedIdentity/userAssignedIdentities/omsagent-cliakstest000002\",\n + \ \"clientId\":\"00000000-0000-0000-0000-000000000001\",\n \"objectId\":\"00000000-0000-0000-0000-000000000001\"\n + \ }\n }\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/ba9ecfbd-69db-4668-a7ec-63f8b4936a56\"\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 },\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 },\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: + - '4459' + content-type: + - application/json + date: + - Sat, 26 Jun 2021 00:18: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --enable-addons --enable-msi-auth-for-monitoring + --node-count + User-Agent: + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-authorization/0.61.0 Azure-SDK-For-Python + AZURECLI/2.24.2 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/providers/Microsoft.Authorization/roleDefinitions?$filter=roleName%20eq%20%27Monitoring%20Metrics%20Publisher%27&api-version=2018-01-01-preview + response: + body: + string: '{"value":[{"properties":{"roleName":"Monitoring Metrics Publisher","type":"BuiltInRole","description":"Enables + publishing metrics against Azure resources","assignableScopes":["/"],"permissions":[{"actions":["Microsoft.Insights/Register/Action","Microsoft.Support/*","Microsoft.Resources/subscriptions/resourceGroups/read"],"notActions":[],"dataActions":["Microsoft.Insights/Metrics/Write"],"notDataActions":[]}],"createdOn":"2018-08-14T00:36:16.5610279Z","updatedOn":"2018-08-14T00:37:18.1465065Z","createdBy":null,"updatedBy":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/3913510d-42f4-4e42-8a64-420c390055eb","type":"Microsoft.Authorization/roleDefinitions","name":"3913510d-42f4-4e42-8a64-420c390055eb"}]}' + headers: + cache-control: + - no-cache + content-length: + - '776' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 26 Jun 2021 00:18:22 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - x-ms-gateway-slice=Production; path=/; secure; samesite=none; httponly + 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: '{"properties": {"roleDefinitionId": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/3913510d-42f4-4e42-8a64-420c390055eb", + "principalId":"00000000-0000-0000-0000-000000000001"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '233' + Content-Type: + - application/json; charset=utf-8 + Cookie: + - x-ms-gateway-slice=Production + ParameterSetName: + - --resource-group --name --location --enable-addons --enable-msi-auth-for-monitoring + --node-count + User-Agent: + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-authorization/0.61.0 Azure-SDK-For-Python + AZURECLI/2.24.2 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/providers/Microsoft.Authorization/roleAssignments/ca33bc65-7baf-4aea-b2bc-5807275dc8ff?api-version=2020-04-01-preview + response: + body: + string: '{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/3913510d-42f4-4e42-8a64-420c390055eb","principalId":"00000000-0000-0000-0000-000000000001","principalType":"ServicePrincipal","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002","condition":null,"conditionVersion":null,"createdOn":"2021-06-26T00:18:23.4367949Z","updatedOn":"2021-06-26T00:18:23.6711507Z","createdBy":null,"updatedBy":"e98be497-f2d1-44cc-8439-9496116db13a","delegatedManagedIdentityResourceId":null,"description":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/providers/Microsoft.Authorization/roleAssignments/ca33bc65-7baf-4aea-b2bc-5807275dc8ff","type":"Microsoft.Authorization/roleAssignments","name":"ca33bc65-7baf-4aea-b2bc-5807275dc8ff"}' + headers: + cache-control: + - no-cache + content-length: + - '1029' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 26 Jun 2021 00:18:25 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - x-ms-gateway-slice=Production; path=/; secure; samesite=none; httponly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --enable-addons --enable-msi-auth-for-monitoring + --node-count + User-Agent: + - AZURECLI/2.24.2 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2?api-version=2015-11-01-preview + response: + body: + string: "{\r\n \"properties\": {\r\n \"source\": \"Azure\",\r\n \"customerId\": + \"a6ec9525-4c1b-4ebf-80ad-1a1da5f6ca3c\",\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"sku\": {\r\n \"name\": \"pergb2018\",\r\n \"lastSkuUpdate\": + \"Fri, 18 Jun 2021 21:03:33 GMT\"\r\n },\r\n \"retentionInDays\": 30,\r\n + \ \"features\": {\r\n \"legacy\": 0,\r\n \"searchVersion\": 1,\r\n + \ \"enableLogAccessUsingOnlyResourcePermissions\": true\r\n },\r\n + \ \"workspaceCapping\": {\r\n \"dailyQuotaGb\": -1.0,\r\n \"quotaNextResetTime\": + \"Sat, 26 Jun 2021 12:00:00 GMT\",\r\n \"dataIngestionStatus\": \"RespectQuota\"\r\n + \ },\r\n \"publicNetworkAccessForIngestion\": \"Enabled\",\r\n \"publicNetworkAccessForQuery\": + \"Enabled\",\r\n \"createdDate\": \"Fri, 18 Jun 2021 21:03:33 GMT\",\r\n + \ \"modifiedDate\": \"Sat, 26 Jun 2021 00:07:56 GMT\"\r\n },\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2\",\r\n + \ \"name\": \"DefaultWorkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-WUS2\",\r\n + \ \"type\": \"Microsoft.OperationalInsights/workspaces\",\r\n \"location\": + \"westus2\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1161' + content-type: + - application/json + date: + - Sat, 26 Jun 2021 00:18:25 GMT + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"location": "westus2", "properties": {"dataCollectionRuleId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/defaultresourcegroup-wus2/providers/Microsoft.Insights/dataCollectionRules/DCR-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2", + "description": "routes monitoring data to a Log Analytics workspace"}}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '341' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --name --location --enable-addons --enable-msi-auth-for-monitoring + --node-count + User-Agent: + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + AZURECLI/2.24.2 + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/providers/Microsoft.Insights/dataCollectionRuleAssociations/send-to-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2?api-version=2019-11-01-preview + response: + body: + string: '{"properties":{"description":"routes monitoring data to a Log Analytics + workspace","dataCollectionRuleId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/defaultresourcegroup-wus2/providers/Microsoft.Insights/dataCollectionRules/DCR-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/providers/Microsoft.Insights/dataCollectionRuleAssociations/send-to-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2","name":"send-to-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2","type":"Microsoft.Insights/dataCollectionRuleAssociations","etag":"\"560022db-0000-0800-0000-60d672520000\""}' + headers: + api-supported-versions: + - 2019-11-01-preview, 2021-04-01 + cache-control: + - no-cache + content-length: + - '788' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 26 Jun 2021 00:18:25 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 +version: 1 diff --git a/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_with_monitoring_legacy_auth.yaml b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_with_monitoring_legacy_auth.yaml new file mode 100644 index 00000000000..d277b29eed4 --- /dev/null +++ b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_with_monitoring_legacy_auth.yaml @@ -0,0 +1,1159 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --generate-ssh-keys --enable-managed-identity + --enable-addons --node-count + User-Agent: + - AZURECLI/2.24.2 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001?api-version=2020-10-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001","name":"clitest000001","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"product":"azurecli","cause":"automation","date":"2021-06-26T00:41:49Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '313' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 26 Jun 2021 00:41:49 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 --generate-ssh-keys --enable-managed-identity + --enable-addons --node-count + User-Agent: + - AZURECLI/2.24.2 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001?api-version=2020-10-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001","name":"clitest000001","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"product":"azurecli","cause":"automation","date":"2021-06-26T00:41:49Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '313' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 26 Jun 2021 00:41:49 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 --generate-ssh-keys --enable-managed-identity + --enable-addons --node-count + User-Agent: + - AZURECLI/2.24.2 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: HEAD + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/DefaultResourceGroup-WUS2?api-version=2020-10-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Sat, 26 Jun 2021 00:41:49 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 --generate-ssh-keys --enable-managed-identity + --enable-addons --node-count + User-Agent: + - AZURECLI/2.24.2 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/DefaultResourceGroup-WUS2/providers/Microsoft.OperationalInsights/workspaces/DefaultWorkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-WUS2?api-version=2015-11-01-preview + response: + body: + string: "{\r\n \"properties\": {\r\n \"source\": \"Azure\",\r\n \"customerId\": + \"a6ec9525-4c1b-4ebf-80ad-1a1da5f6ca3c\",\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"sku\": {\r\n \"name\": \"pergb2018\",\r\n \"lastSkuUpdate\": + \"Fri, 18 Jun 2021 21:03:33 GMT\"\r\n },\r\n \"retentionInDays\": 30,\r\n + \ \"features\": {\r\n \"legacy\": 0,\r\n \"searchVersion\": 1,\r\n + \ \"enableLogAccessUsingOnlyResourcePermissions\": true\r\n },\r\n + \ \"workspaceCapping\": {\r\n \"dailyQuotaGb\": -1.0,\r\n \"quotaNextResetTime\": + \"Sat, 26 Jun 2021 12:00:00 GMT\",\r\n \"dataIngestionStatus\": \"RespectQuota\"\r\n + \ },\r\n \"publicNetworkAccessForIngestion\": \"Enabled\",\r\n \"publicNetworkAccessForQuery\": + \"Enabled\",\r\n \"createdDate\": \"Fri, 18 Jun 2021 21:03:33 GMT\",\r\n + \ \"modifiedDate\": \"Sat, 26 Jun 2021 00:07:56 GMT\"\r\n },\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2\",\r\n + \ \"name\": \"DefaultWorkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-WUS2\",\r\n + \ \"type\": \"Microsoft.OperationalInsights/workspaces\",\r\n \"location\": + \"westus2\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1161' + content-type: + - application/json + date: + - Sat, 26 Jun 2021 00:41:49 GMT + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + - ASP.NET + 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 --generate-ssh-keys --enable-managed-identity + --enable-addons --node-count + User-Agent: + - AZURECLI/2.24.2 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2?api-version=2015-11-01-preview + response: + body: + string: "{\r\n \"properties\": {\r\n \"source\": \"Azure\",\r\n \"customerId\": + \"a6ec9525-4c1b-4ebf-80ad-1a1da5f6ca3c\",\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"sku\": {\r\n \"name\": \"pergb2018\",\r\n \"lastSkuUpdate\": + \"Fri, 18 Jun 2021 21:03:33 GMT\"\r\n },\r\n \"retentionInDays\": 30,\r\n + \ \"features\": {\r\n \"legacy\": 0,\r\n \"searchVersion\": 1,\r\n + \ \"enableLogAccessUsingOnlyResourcePermissions\": true\r\n },\r\n + \ \"workspaceCapping\": {\r\n \"dailyQuotaGb\": -1.0,\r\n \"quotaNextResetTime\": + \"Sat, 26 Jun 2021 12:00:00 GMT\",\r\n \"dataIngestionStatus\": \"RespectQuota\"\r\n + \ },\r\n \"publicNetworkAccessForIngestion\": \"Enabled\",\r\n \"publicNetworkAccessForQuery\": + \"Enabled\",\r\n \"createdDate\": \"Fri, 18 Jun 2021 21:03:33 GMT\",\r\n + \ \"modifiedDate\": \"Sat, 26 Jun 2021 00:07:56 GMT\"\r\n },\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2\",\r\n + \ \"name\": \"DefaultWorkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-WUS2\",\r\n + \ \"type\": \"Microsoft.OperationalInsights/workspaces\",\r\n \"location\": + \"westus2\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1161' + content-type: + - application/json + date: + - Sat, 26 Jun 2021 00:41:49 GMT + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"properties": {"template": {"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", "parameters": {"workspaceResourceId": {"type": + "string", "metadata": {"description": "Azure Monitor Log Analytics Resource + ID"}}, "workspaceRegion": {"type": "string", "metadata": {"description": "Azure + Monitor Log Analytics workspace region"}}, "solutionDeploymentName": {"type": + "string", "metadata": {"description": "Name of the solution deployment"}}}, + "resources": [{"type": "Microsoft.Resources/deployments", "name": "[parameters(''solutionDeploymentName'')]", + "apiVersion": "2017-05-10", "subscriptionId": "[split(parameters(''workspaceResourceId''),''/'')[2]]", + "resourceGroup": "[split(parameters(''workspaceResourceId''),''/'')[4]]", "properties": + {"mode": "Incremental", "template": {"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", "parameters": {}, "variables": {}, "resources": + [{"apiVersion": "2015-11-01-preview", "type": "Microsoft.OperationsManagement/solutions", + "location": "[parameters(''workspaceRegion'')]", "name": "[Concat(''ContainerInsights'', + ''('', split(parameters(''workspaceResourceId''),''/'')[8], '')'')]", "properties": + {"workspaceResourceId": "[parameters(''workspaceResourceId'')]"}, "plan": {"name": + "[Concat(''ContainerInsights'', ''('', split(parameters(''workspaceResourceId''),''/'')[8], + '')'')]", "product": "[Concat(''OMSGallery/'', ''ContainerInsights'')]", "promotionCode": + "", "publisher": "Microsoft"}}]}, "parameters": {}}}]}, "parameters": {"workspaceResourceId": + {"value": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2"}, + "workspaceRegion": {"value": "westus2"}, "solutionDeploymentName": {"value": + "ContainerInsights-1624668112254"}}, "mode": "incremental"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '1956' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --name --location --generate-ssh-keys --enable-managed-identity + --enable-addons --node-count + User-Agent: + - AZURECLI/2.24.2 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2020-10-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/defaultresourcegroup-wus2/providers/Microsoft.Resources/deployments/aks-monitoring-1624668112254","name":"aks-monitoring-1624668112254","type":"Microsoft.Resources/deployments","properties":{"templateHash":"7932017758444010137","parameters":{"workspaceResourceId":{"type":"String","value":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2"},"workspaceRegion":{"type":"String","value":"westus2"},"solutionDeploymentName":{"type":"String","value":"ContainerInsights-1624668112254"}},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2021-06-26T00:41:50.49261Z","duration":"PT0.0951924S","correlationId":"0a2a11e7-bf07-4e54-87dd-772b51eca3dd","providers":[{"namespace":"Microsoft.Resources","resourceTypes":[{"resourceType":"deployments","locations":[null]}]}],"dependencies":[]}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/Microsoft.Resources/deployments/aks-monitoring-1624668112254/operationStatuses/08585769387750801946?api-version=2020-10-01 + cache-control: + - no-cache + content-length: + - '1020' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 26 Jun 2021 00:41:49 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: '{"location": "westus2", "properties": {"kubernetesVersion": "", "dnsPrefix": + "cliakstest-clitesth543hxdst-3b875b", "agentPoolProfiles": [{"count": 1, "vmSize": + "Standard_DS2_v2", "osType": "Linux", "type": "VirtualMachineScaleSets", "mode": + "System", "enableNodePublicIP": false, "scaleSetPriority": "Regular", "scaleSetEvictionPolicy": + "Delete", "enableEncryptionAtHost": false, "enableUltraSSD": false, "enableFIPS": + false, "name": "nodepool1"}], "linuxProfile": {"adminUsername": "azureuser", + "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCwztmLMdJZrXl6VTfbonQWAMXjuJkRzCW8Lmynohg0hz681LPQC7OenFR36PPz3tDNd90tjX3+khk0NkSBB8Dz+U1/ISOsR17++TmEFWLf1oiTTua/1K82pc8yGoFbDXIFAgMeJxpwYczjvL8BnDa9z3GrzYAEi1B6kbZyGAjc0rRoSb76nYF/dhtp+GtN5oo/qYEt8ogcPpQzlv3hM7AdcYuTHutWMHV7XA/bdhfcXL4jJLW/SPD9l0EAw6boMoOJ4W1X3OWFD0MGs1cphZNIXpOg5fBCN/x9eRmJ45fAGFH/plGh+i0UjQKoLd3eEy5pyAzJ+ttoQ3do3eKT56N0Zj//2Yp9HNxcoeLt4nK3IOE1gR2AdOFMPEloY/heaU82sYipKG4PBm1g8C3AtcS/wP0tQaw2KlCLMmEO6/AiNSPazkXVrbflnWPq2jukydGW+YJ4pD3ACZgTNYVT3JCr9gWCYnkhdvF//Us+3Q2jUJReIJArsOq5xBFEphkguket41AzifO07+s7DULHOkoisxxZALbOxIUdSvcRv5WpzPOTyyKIZB2UI190cK4aHT0+BGmpbhBiYc0lPikDEHqaaR0/Mgaq2RhUZ+zpqboMCuqpYu69pIhU/cz3dko+P272GutYId9YsTyzKIURp66mow40iL0MwzAML/DwugQ6nQ== + damichel@microsoft.com\n"}]}}, "addonProfiles": {"omsagent": {"enabled": true, + "config": {"logAnalyticsWorkspaceResourceID": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2", + "useAADAuth": "False"}}}, "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}, "identity": {"type": "SystemAssigned"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '1974' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --resource-group --name --location --generate-ssh-keys --enable-managed-identity + --enable-addons --node-count + User-Agent: + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python + AZURECLI/2.24.2 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2021-05-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\": + \"Creating\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": + \"1.19.11\",\n \"dnsPrefix\": \"cliakstest-clitesth543hxdst-3b875b\",\n + \ \"fqdn\": \"cliakstest-clitesth543hxdst-3b875b-44199b55.hcp.westus2.azmk8s.io\",\n + \ \"azurePortalFQDN\": \"cliakstest-clitesth543hxdst-3b875b-44199b55.portal.hcp.westus2.azmk8s.io\",\n + \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": + 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": + \"Managed\",\n \"kubeletDiskType\": \"OS\",\n \"maxPods\": 110,\n + \ \"type\": \"VirtualMachineScaleSets\",\n \"provisioningState\": \"Creating\",\n + \ \"powerState\": {\n \"code\": \"Running\"\n },\n \"orchestratorVersion\": + \"1.19.11\",\n \"enableNodePublicIP\": false,\n \"nodeLabels\": {},\n + \ \"mode\": \"System\",\n \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\": + false,\n \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"nodeImageVersion\": + \"AKSUbuntu-1804gen2containerd-2021.06.02\",\n \"enableFIPS\": false\n + \ }\n ],\n \"linuxProfile\": {\n \"adminUsername\": \"azureuser\",\n + \ \"ssh\": {\n \"publicKeys\": [\n {\n \"keyData\": \"ssh-rsa + AAAAB3NzaC1yc2EAAAADAQABAAACAQCwztmLMdJZrXl6VTfbonQWAMXjuJkRzCW8Lmynohg0hz681LPQC7OenFR36PPz3tDNd90tjX3+khk0NkSBB8Dz+U1/ISOsR17++TmEFWLf1oiTTua/1K82pc8yGoFbDXIFAgMeJxpwYczjvL8BnDa9z3GrzYAEi1B6kbZyGAjc0rRoSb76nYF/dhtp+GtN5oo/qYEt8ogcPpQzlv3hM7AdcYuTHutWMHV7XA/bdhfcXL4jJLW/SPD9l0EAw6boMoOJ4W1X3OWFD0MGs1cphZNIXpOg5fBCN/x9eRmJ45fAGFH/plGh+i0UjQKoLd3eEy5pyAzJ+ttoQ3do3eKT56N0Zj//2Yp9HNxcoeLt4nK3IOE1gR2AdOFMPEloY/heaU82sYipKG4PBm1g8C3AtcS/wP0tQaw2KlCLMmEO6/AiNSPazkXVrbflnWPq2jukydGW+YJ4pD3ACZgTNYVT3JCr9gWCYnkhdvF//Us+3Q2jUJReIJArsOq5xBFEphkguket41AzifO07+s7DULHOkoisxxZALbOxIUdSvcRv5WpzPOTyyKIZB2UI190cK4aHT0+BGmpbhBiYc0lPikDEHqaaR0/Mgaq2RhUZ+zpqboMCuqpYu69pIhU/cz3dko+P272GutYId9YsTyzKIURp66mow40iL0MwzAML/DwugQ6nQ== + damichel@microsoft.com\\n\"\n }\n ]\n }\n },\n \"servicePrincipalProfile\": + {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \"addonProfiles\": + {\n \"omsagent\": {\n \"enabled\": true,\n \"config\": {\n \"logAnalyticsWorkspaceResourceID\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2\",\n + \ \"useAADAuth\": \"False\"\n }\n }\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 },\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 },\n \"maxAgentPools\": 100,\n \"disableLocalAccounts\": + false\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/64a1df12-d146-4f57-abe6-50e5fbc5d150?api-version=2016-03-30 + cache-control: + - no-cache + content-length: + - '3434' + content-type: + - application/json + date: + - Sat, 26 Jun 2021 00:41:56 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --generate-ssh-keys --enable-managed-identity + --enable-addons --node-count + User-Agent: + - AZURECLI/2.24.2 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585769387750801946?api-version=2020-10-01 + response: + body: + string: '{"status":"Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '22' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 26 Jun 2021 00:42:19 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 + ParameterSetName: + - --resource-group --name --location --generate-ssh-keys --enable-managed-identity + --enable-addons --node-count + User-Agent: + - AZURECLI/2.24.2 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2020-10-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/defaultresourcegroup-wus2/providers/Microsoft.Resources/deployments/aks-monitoring-1624668112254","name":"aks-monitoring-1624668112254","type":"Microsoft.Resources/deployments","properties":{"templateHash":"7932017758444010137","parameters":{"workspaceResourceId":{"type":"String","value":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2"},"workspaceRegion":{"type":"String","value":"westus2"},"solutionDeploymentName":{"type":"String","value":"ContainerInsights-1624668112254"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2021-06-26T00:41:53.0594674Z","duration":"PT2.6620498S","correlationId":"0a2a11e7-bf07-4e54-87dd-772b51eca3dd","providers":[{"namespace":"Microsoft.Resources","resourceTypes":[{"resourceType":"deployments","locations":[null]}]}],"dependencies":[],"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/defaultresourcegroup-wus2/providers/Microsoft.OperationsManagement/solutions/ContainerInsights(defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2)"}]}}' + headers: + cache-control: + - no-cache + content-length: + - '1274' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 26 Jun 2021 00:42:19 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 --generate-ssh-keys --enable-managed-identity + --enable-addons --node-count + User-Agent: + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python + AZURECLI/2.24.2 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/64a1df12-d146-4f57-abe6-50e5fbc5d150?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"12dfa164-46d1-574f-abe6-50e5fbc5d150\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-06-26T00:41:57.03Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '121' + content-type: + - application/json + date: + - Sat, 26 Jun 2021 00:42: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 create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --generate-ssh-keys --enable-managed-identity + --enable-addons --node-count + User-Agent: + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python + AZURECLI/2.24.2 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/64a1df12-d146-4f57-abe6-50e5fbc5d150?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"12dfa164-46d1-574f-abe6-50e5fbc5d150\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-06-26T00:41:57.03Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '121' + content-type: + - application/json + date: + - Sat, 26 Jun 2021 00:42:57 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 create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --generate-ssh-keys --enable-managed-identity + --enable-addons --node-count + User-Agent: + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python + AZURECLI/2.24.2 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/64a1df12-d146-4f57-abe6-50e5fbc5d150?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"12dfa164-46d1-574f-abe6-50e5fbc5d150\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-06-26T00:41:57.03Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '121' + content-type: + - application/json + date: + - Sat, 26 Jun 2021 00:43: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: + - 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 --generate-ssh-keys --enable-managed-identity + --enable-addons --node-count + User-Agent: + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python + AZURECLI/2.24.2 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/64a1df12-d146-4f57-abe6-50e5fbc5d150?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"12dfa164-46d1-574f-abe6-50e5fbc5d150\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-06-26T00:41:57.03Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '121' + content-type: + - application/json + date: + - Sat, 26 Jun 2021 00:43:57 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 create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --generate-ssh-keys --enable-managed-identity + --enable-addons --node-count + User-Agent: + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python + AZURECLI/2.24.2 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/64a1df12-d146-4f57-abe6-50e5fbc5d150?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"12dfa164-46d1-574f-abe6-50e5fbc5d150\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-06-26T00:41:57.03Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '121' + content-type: + - application/json + date: + - Sat, 26 Jun 2021 00:44: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: + - 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 --generate-ssh-keys --enable-managed-identity + --enable-addons --node-count + User-Agent: + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python + AZURECLI/2.24.2 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/64a1df12-d146-4f57-abe6-50e5fbc5d150?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"12dfa164-46d1-574f-abe6-50e5fbc5d150\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-06-26T00:41:57.03Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '121' + content-type: + - application/json + date: + - Sat, 26 Jun 2021 00:44:57 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 create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --generate-ssh-keys --enable-managed-identity + --enable-addons --node-count + User-Agent: + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python + AZURECLI/2.24.2 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/64a1df12-d146-4f57-abe6-50e5fbc5d150?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"12dfa164-46d1-574f-abe6-50e5fbc5d150\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-06-26T00:41:57.03Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '121' + content-type: + - application/json + date: + - Sat, 26 Jun 2021 00:45: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 create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --generate-ssh-keys --enable-managed-identity + --enable-addons --node-count + User-Agent: + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python + AZURECLI/2.24.2 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/64a1df12-d146-4f57-abe6-50e5fbc5d150?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"12dfa164-46d1-574f-abe6-50e5fbc5d150\",\n \"status\": + \"Succeeded\",\n \"startTime\": \"2021-06-26T00:41:57.03Z\",\n \"endTime\": + \"2021-06-26T00:45:32.2756563Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '165' + content-type: + - application/json + date: + - Sat, 26 Jun 2021 00:45: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: 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 --generate-ssh-keys --enable-managed-identity + --enable-addons --node-count + User-Agent: + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python + AZURECLI/2.24.2 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2021-05-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.19.11\",\n \"dnsPrefix\": \"cliakstest-clitesth543hxdst-3b875b\",\n + \ \"fqdn\": \"cliakstest-clitesth543hxdst-3b875b-44199b55.hcp.westus2.azmk8s.io\",\n + \ \"azurePortalFQDN\": \"cliakstest-clitesth543hxdst-3b875b-44199b55.portal.hcp.westus2.azmk8s.io\",\n + \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": + 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": + \"Managed\",\n \"kubeletDiskType\": \"OS\",\n \"maxPods\": 110,\n + \ \"type\": \"VirtualMachineScaleSets\",\n \"provisioningState\": \"Succeeded\",\n + \ \"powerState\": {\n \"code\": \"Running\"\n },\n \"orchestratorVersion\": + \"1.19.11\",\n \"enableNodePublicIP\": false,\n \"nodeLabels\": {},\n + \ \"mode\": \"System\",\n \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\": + false,\n \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"nodeImageVersion\": + \"AKSUbuntu-1804gen2containerd-2021.06.02\",\n \"enableFIPS\": false\n + \ }\n ],\n \"linuxProfile\": {\n \"adminUsername\": \"azureuser\",\n + \ \"ssh\": {\n \"publicKeys\": [\n {\n \"keyData\": \"ssh-rsa + AAAAB3NzaC1yc2EAAAADAQABAAACAQCwztmLMdJZrXl6VTfbonQWAMXjuJkRzCW8Lmynohg0hz681LPQC7OenFR36PPz3tDNd90tjX3+khk0NkSBB8Dz+U1/ISOsR17++TmEFWLf1oiTTua/1K82pc8yGoFbDXIFAgMeJxpwYczjvL8BnDa9z3GrzYAEi1B6kbZyGAjc0rRoSb76nYF/dhtp+GtN5oo/qYEt8ogcPpQzlv3hM7AdcYuTHutWMHV7XA/bdhfcXL4jJLW/SPD9l0EAw6boMoOJ4W1X3OWFD0MGs1cphZNIXpOg5fBCN/x9eRmJ45fAGFH/plGh+i0UjQKoLd3eEy5pyAzJ+ttoQ3do3eKT56N0Zj//2Yp9HNxcoeLt4nK3IOE1gR2AdOFMPEloY/heaU82sYipKG4PBm1g8C3AtcS/wP0tQaw2KlCLMmEO6/AiNSPazkXVrbflnWPq2jukydGW+YJ4pD3ACZgTNYVT3JCr9gWCYnkhdvF//Us+3Q2jUJReIJArsOq5xBFEphkguket41AzifO07+s7DULHOkoisxxZALbOxIUdSvcRv5WpzPOTyyKIZB2UI190cK4aHT0+BGmpbhBiYc0lPikDEHqaaR0/Mgaq2RhUZ+zpqboMCuqpYu69pIhU/cz3dko+P272GutYId9YsTyzKIURp66mow40iL0MwzAML/DwugQ6nQ== + damichel@microsoft.com\\n\"\n }\n ]\n }\n },\n \"servicePrincipalProfile\": + {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \"addonProfiles\": + {\n \"omsagent\": {\n \"enabled\": true,\n \"config\": {\n \"logAnalyticsWorkspaceResourceID\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2\",\n + \ \"useAADAuth\": \"False\"\n },\n \"identity\": {\n \"resourceId\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.ManagedIdentity/userAssignedIdentities/omsagent-cliakstest000002\",\n + \ \"clientId\":\"00000000-0000-0000-0000-000000000001\",\n \"objectId\":\"00000000-0000-0000-0000-000000000001\"\n + \ }\n }\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/10e83540-c961-43e6-ae16-3bd2101d3df6\"\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 },\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 },\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: + - '4460' + content-type: + - application/json + date: + - Sat, 26 Jun 2021 00:45: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: 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 --generate-ssh-keys --enable-managed-identity + --enable-addons --node-count + User-Agent: + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-authorization/0.61.0 Azure-SDK-For-Python + AZURECLI/2.24.2 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/providers/Microsoft.Authorization/roleDefinitions?$filter=roleName%20eq%20%27Monitoring%20Metrics%20Publisher%27&api-version=2018-01-01-preview + response: + body: + string: '{"value":[{"properties":{"roleName":"Monitoring Metrics Publisher","type":"BuiltInRole","description":"Enables + publishing metrics against Azure resources","assignableScopes":["/"],"permissions":[{"actions":["Microsoft.Insights/Register/Action","Microsoft.Support/*","Microsoft.Resources/subscriptions/resourceGroups/read"],"notActions":[],"dataActions":["Microsoft.Insights/Metrics/Write"],"notDataActions":[]}],"createdOn":"2018-08-14T00:36:16.5610279Z","updatedOn":"2018-08-14T00:37:18.1465065Z","createdBy":null,"updatedBy":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/3913510d-42f4-4e42-8a64-420c390055eb","type":"Microsoft.Authorization/roleDefinitions","name":"3913510d-42f4-4e42-8a64-420c390055eb"}]}' + headers: + cache-control: + - no-cache + content-length: + - '776' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 26 Jun 2021 00:46:00 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - x-ms-gateway-slice=Production; path=/; secure; samesite=none; httponly + 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: '{"properties": {"roleDefinitionId": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/3913510d-42f4-4e42-8a64-420c390055eb", + "principalId":"00000000-0000-0000-0000-000000000001"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '233' + Content-Type: + - application/json; charset=utf-8 + Cookie: + - x-ms-gateway-slice=Production + ParameterSetName: + - --resource-group --name --location --generate-ssh-keys --enable-managed-identity + --enable-addons --node-count + User-Agent: + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-authorization/0.61.0 Azure-SDK-For-Python + AZURECLI/2.24.2 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/providers/Microsoft.Authorization/roleAssignments/b5cc4043-869e-4727-bbd4-b203a5810a84?api-version=2020-04-01-preview + response: + body: + string: '{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/3913510d-42f4-4e42-8a64-420c390055eb","principalId":"00000000-0000-0000-0000-000000000001","principalType":"ServicePrincipal","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002","condition":null,"conditionVersion":null,"createdOn":"2021-06-26T00:46:00.6087831Z","updatedOn":"2021-06-26T00:46:00.8431524Z","createdBy":null,"updatedBy":"e98be497-f2d1-44cc-8439-9496116db13a","delegatedManagedIdentityResourceId":null,"description":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/providers/Microsoft.Authorization/roleAssignments/b5cc4043-869e-4727-bbd4-b203a5810a84","type":"Microsoft.Authorization/roleAssignments","name":"b5cc4043-869e-4727-bbd4-b203a5810a84"}' + headers: + cache-control: + - no-cache + content-length: + - '1029' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 26 Jun 2021 00:46:02 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - x-ms-gateway-slice=Production; path=/; secure; samesite=none; httponly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g -n --yes --no-wait + User-Agent: + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python + AZURECLI/2.24.2 + accept-language: + - en-US + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2021-03-01 + response: + body: + string: '' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/ade05aec-c8df-4807-ad08-58ae8112adaa?api-version=2016-03-30 + cache-control: + - no-cache + content-length: + - '0' + date: + - Sat, 26 Jun 2021 00:46:03 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operationresults/ade05aec-c8df-4807-ad08-58ae8112adaa?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_enable_addons_monitoring_errors.yaml b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_enable_addons_monitoring_errors.yaml new file mode 100644 index 00000000000..fd89a4de5b6 --- /dev/null +++ b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_enable_addons_monitoring_errors.yaml @@ -0,0 +1,793 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --node-count + User-Agent: + - AZURECLI/2.24.2 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001?api-version=2020-10-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001","name":"clitest000001","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"product":"azurecli","cause":"automation","date":"2021-06-26T00:41:49Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '313' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 26 Jun 2021 00:41:49 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: '{"location": "westus2", "properties": {"kubernetesVersion": "", "dnsPrefix": + "cliakstest-clitestdawhbgpmo-3b875b", "agentPoolProfiles": [{"count": 1, "vmSize": + "Standard_DS2_v2", "osType": "Linux", "type": "VirtualMachineScaleSets", "mode": + "System", "enableNodePublicIP": false, "scaleSetPriority": "Regular", "scaleSetEvictionPolicy": + "Delete", "enableEncryptionAtHost": false, "enableUltraSSD": false, "enableFIPS": + false, "name": "nodepool1"}], "linuxProfile": {"adminUsername": "azureuser", + "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCwztmLMdJZrXl6VTfbonQWAMXjuJkRzCW8Lmynohg0hz681LPQC7OenFR36PPz3tDNd90tjX3+khk0NkSBB8Dz+U1/ISOsR17++TmEFWLf1oiTTua/1K82pc8yGoFbDXIFAgMeJxpwYczjvL8BnDa9z3GrzYAEi1B6kbZyGAjc0rRoSb76nYF/dhtp+GtN5oo/qYEt8ogcPpQzlv3hM7AdcYuTHutWMHV7XA/bdhfcXL4jJLW/SPD9l0EAw6boMoOJ4W1X3OWFD0MGs1cphZNIXpOg5fBCN/x9eRmJ45fAGFH/plGh+i0UjQKoLd3eEy5pyAzJ+ttoQ3do3eKT56N0Zj//2Yp9HNxcoeLt4nK3IOE1gR2AdOFMPEloY/heaU82sYipKG4PBm1g8C3AtcS/wP0tQaw2KlCLMmEO6/AiNSPazkXVrbflnWPq2jukydGW+YJ4pD3ACZgTNYVT3JCr9gWCYnkhdvF//Us+3Q2jUJReIJArsOq5xBFEphkguket41AzifO07+s7DULHOkoisxxZALbOxIUdSvcRv5WpzPOTyyKIZB2UI190cK4aHT0+BGmpbhBiYc0lPikDEHqaaR0/Mgaq2RhUZ+zpqboMCuqpYu69pIhU/cz3dko+P272GutYId9YsTyzKIURp66mow40iL0MwzAML/DwugQ6nQ== + damichel@microsoft.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}, "identity": {"type": "SystemAssigned"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '1669' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --resource-group --name --location --node-count + User-Agent: + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python + AZURECLI/2.24.2 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2021-05-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\": + \"Creating\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": + \"1.19.11\",\n \"dnsPrefix\": \"cliakstest-clitestdawhbgpmo-3b875b\",\n + \ \"fqdn\": \"cliakstest-clitestdawhbgpmo-3b875b-cab8b3c9.hcp.westus2.azmk8s.io\",\n + \ \"azurePortalFQDN\": \"cliakstest-clitestdawhbgpmo-3b875b-cab8b3c9.portal.hcp.westus2.azmk8s.io\",\n + \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": + 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": + \"Managed\",\n \"kubeletDiskType\": \"OS\",\n \"maxPods\": 110,\n + \ \"type\": \"VirtualMachineScaleSets\",\n \"provisioningState\": \"Creating\",\n + \ \"powerState\": {\n \"code\": \"Running\"\n },\n \"orchestratorVersion\": + \"1.19.11\",\n \"enableNodePublicIP\": false,\n \"nodeLabels\": {},\n + \ \"mode\": \"System\",\n \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\": + false,\n \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"nodeImageVersion\": + \"AKSUbuntu-1804gen2containerd-2021.06.02\",\n \"enableFIPS\": false\n + \ }\n ],\n \"linuxProfile\": {\n \"adminUsername\": \"azureuser\",\n + \ \"ssh\": {\n \"publicKeys\": [\n {\n \"keyData\": \"ssh-rsa + AAAAB3NzaC1yc2EAAAADAQABAAACAQCwztmLMdJZrXl6VTfbonQWAMXjuJkRzCW8Lmynohg0hz681LPQC7OenFR36PPz3tDNd90tjX3+khk0NkSBB8Dz+U1/ISOsR17++TmEFWLf1oiTTua/1K82pc8yGoFbDXIFAgMeJxpwYczjvL8BnDa9z3GrzYAEi1B6kbZyGAjc0rRoSb76nYF/dhtp+GtN5oo/qYEt8ogcPpQzlv3hM7AdcYuTHutWMHV7XA/bdhfcXL4jJLW/SPD9l0EAw6boMoOJ4W1X3OWFD0MGs1cphZNIXpOg5fBCN/x9eRmJ45fAGFH/plGh+i0UjQKoLd3eEy5pyAzJ+ttoQ3do3eKT56N0Zj//2Yp9HNxcoeLt4nK3IOE1gR2AdOFMPEloY/heaU82sYipKG4PBm1g8C3AtcS/wP0tQaw2KlCLMmEO6/AiNSPazkXVrbflnWPq2jukydGW+YJ4pD3ACZgTNYVT3JCr9gWCYnkhdvF//Us+3Q2jUJReIJArsOq5xBFEphkguket41AzifO07+s7DULHOkoisxxZALbOxIUdSvcRv5WpzPOTyyKIZB2UI190cK4aHT0+BGmpbhBiYc0lPikDEHqaaR0/Mgaq2RhUZ+zpqboMCuqpYu69pIhU/cz3dko+P272GutYId9YsTyzKIURp66mow40iL0MwzAML/DwugQ6nQ== + damichel@microsoft.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 },\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 },\n \"maxAgentPools\": 100,\n \"disableLocalAccounts\": + false\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/4db617d8-f903-40a7-90aa-83163ed89714?api-version=2016-03-30 + cache-control: + - no-cache + content-length: + - '3061' + content-type: + - application/json + date: + - Sat, 26 Jun 2021 00:41:55 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --node-count + User-Agent: + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python + AZURECLI/2.24.2 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/4db617d8-f903-40a7-90aa-83163ed89714?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"d817b64d-03f9-a740-90aa-83163ed89714\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-06-26T00:41:55.9966666Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Sat, 26 Jun 2021 00:42: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 create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --node-count + User-Agent: + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python + AZURECLI/2.24.2 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/4db617d8-f903-40a7-90aa-83163ed89714?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"d817b64d-03f9-a740-90aa-83163ed89714\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-06-26T00:41:55.9966666Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Sat, 26 Jun 2021 00:42: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 + 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 --node-count + User-Agent: + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python + AZURECLI/2.24.2 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/4db617d8-f903-40a7-90aa-83163ed89714?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"d817b64d-03f9-a740-90aa-83163ed89714\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-06-26T00:41:55.9966666Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Sat, 26 Jun 2021 00:43: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 create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --node-count + User-Agent: + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python + AZURECLI/2.24.2 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/4db617d8-f903-40a7-90aa-83163ed89714?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"d817b64d-03f9-a740-90aa-83163ed89714\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-06-26T00:41:55.9966666Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Sat, 26 Jun 2021 00:43: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 + 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 --node-count + User-Agent: + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python + AZURECLI/2.24.2 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/4db617d8-f903-40a7-90aa-83163ed89714?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"d817b64d-03f9-a740-90aa-83163ed89714\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-06-26T00:41:55.9966666Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Sat, 26 Jun 2021 00:44: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: + - 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 --node-count + User-Agent: + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python + AZURECLI/2.24.2 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/4db617d8-f903-40a7-90aa-83163ed89714?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"d817b64d-03f9-a740-90aa-83163ed89714\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-06-26T00:41:55.9966666Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Sat, 26 Jun 2021 00:44:57 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 create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --node-count + User-Agent: + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python + AZURECLI/2.24.2 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/4db617d8-f903-40a7-90aa-83163ed89714?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"d817b64d-03f9-a740-90aa-83163ed89714\",\n \"status\": + \"Succeeded\",\n \"startTime\": \"2021-06-26T00:41:55.9966666Z\",\n \"endTime\": + \"2021-06-26T00:45:13.1336329Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '170' + content-type: + - application/json + date: + - Sat, 26 Jun 2021 00:45: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: + - 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 --node-count + User-Agent: + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python + AZURECLI/2.24.2 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2021-05-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.19.11\",\n \"dnsPrefix\": \"cliakstest-clitestdawhbgpmo-3b875b\",\n + \ \"fqdn\": \"cliakstest-clitestdawhbgpmo-3b875b-cab8b3c9.hcp.westus2.azmk8s.io\",\n + \ \"azurePortalFQDN\": \"cliakstest-clitestdawhbgpmo-3b875b-cab8b3c9.portal.hcp.westus2.azmk8s.io\",\n + \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": + 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": + \"Managed\",\n \"kubeletDiskType\": \"OS\",\n \"maxPods\": 110,\n + \ \"type\": \"VirtualMachineScaleSets\",\n \"provisioningState\": \"Succeeded\",\n + \ \"powerState\": {\n \"code\": \"Running\"\n },\n \"orchestratorVersion\": + \"1.19.11\",\n \"enableNodePublicIP\": false,\n \"nodeLabels\": {},\n + \ \"mode\": \"System\",\n \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\": + false,\n \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"nodeImageVersion\": + \"AKSUbuntu-1804gen2containerd-2021.06.02\",\n \"enableFIPS\": false\n + \ }\n ],\n \"linuxProfile\": {\n \"adminUsername\": \"azureuser\",\n + \ \"ssh\": {\n \"publicKeys\": [\n {\n \"keyData\": \"ssh-rsa + AAAAB3NzaC1yc2EAAAADAQABAAACAQCwztmLMdJZrXl6VTfbonQWAMXjuJkRzCW8Lmynohg0hz681LPQC7OenFR36PPz3tDNd90tjX3+khk0NkSBB8Dz+U1/ISOsR17++TmEFWLf1oiTTua/1K82pc8yGoFbDXIFAgMeJxpwYczjvL8BnDa9z3GrzYAEi1B6kbZyGAjc0rRoSb76nYF/dhtp+GtN5oo/qYEt8ogcPpQzlv3hM7AdcYuTHutWMHV7XA/bdhfcXL4jJLW/SPD9l0EAw6boMoOJ4W1X3OWFD0MGs1cphZNIXpOg5fBCN/x9eRmJ45fAGFH/plGh+i0UjQKoLd3eEy5pyAzJ+ttoQ3do3eKT56N0Zj//2Yp9HNxcoeLt4nK3IOE1gR2AdOFMPEloY/heaU82sYipKG4PBm1g8C3AtcS/wP0tQaw2KlCLMmEO6/AiNSPazkXVrbflnWPq2jukydGW+YJ4pD3ACZgTNYVT3JCr9gWCYnkhdvF//Us+3Q2jUJReIJArsOq5xBFEphkguket41AzifO07+s7DULHOkoisxxZALbOxIUdSvcRv5WpzPOTyyKIZB2UI190cK4aHT0+BGmpbhBiYc0lPikDEHqaaR0/Mgaq2RhUZ+zpqboMCuqpYu69pIhU/cz3dko+P272GutYId9YsTyzKIURp66mow40iL0MwzAML/DwugQ6nQ== + damichel@microsoft.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/9cc1f334-e6d2-439d-9df2-9c634bf43dd0\"\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 },\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 },\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: + - '3724' + content-type: + - application/json + date: + - Sat, 26 Jun 2021 00:45: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 enable-addons + Connection: + - keep-alive + ParameterSetName: + - -a --resource-group --name --enable-msi-auth-for-monitoring + User-Agent: + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python + AZURECLI/2.24.2 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2021-05-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.19.11\",\n \"dnsPrefix\": \"cliakstest-clitestdawhbgpmo-3b875b\",\n + \ \"fqdn\": \"cliakstest-clitestdawhbgpmo-3b875b-cab8b3c9.hcp.westus2.azmk8s.io\",\n + \ \"azurePortalFQDN\": \"cliakstest-clitestdawhbgpmo-3b875b-cab8b3c9.portal.hcp.westus2.azmk8s.io\",\n + \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": + 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": + \"Managed\",\n \"kubeletDiskType\": \"OS\",\n \"maxPods\": 110,\n + \ \"type\": \"VirtualMachineScaleSets\",\n \"provisioningState\": \"Succeeded\",\n + \ \"powerState\": {\n \"code\": \"Running\"\n },\n \"orchestratorVersion\": + \"1.19.11\",\n \"enableNodePublicIP\": false,\n \"nodeLabels\": {},\n + \ \"mode\": \"System\",\n \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\": + false,\n \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"nodeImageVersion\": + \"AKSUbuntu-1804gen2containerd-2021.06.02\",\n \"enableFIPS\": false\n + \ }\n ],\n \"linuxProfile\": {\n \"adminUsername\": \"azureuser\",\n + \ \"ssh\": {\n \"publicKeys\": [\n {\n \"keyData\": \"ssh-rsa + AAAAB3NzaC1yc2EAAAADAQABAAACAQCwztmLMdJZrXl6VTfbonQWAMXjuJkRzCW8Lmynohg0hz681LPQC7OenFR36PPz3tDNd90tjX3+khk0NkSBB8Dz+U1/ISOsR17++TmEFWLf1oiTTua/1K82pc8yGoFbDXIFAgMeJxpwYczjvL8BnDa9z3GrzYAEi1B6kbZyGAjc0rRoSb76nYF/dhtp+GtN5oo/qYEt8ogcPpQzlv3hM7AdcYuTHutWMHV7XA/bdhfcXL4jJLW/SPD9l0EAw6boMoOJ4W1X3OWFD0MGs1cphZNIXpOg5fBCN/x9eRmJ45fAGFH/plGh+i0UjQKoLd3eEy5pyAzJ+ttoQ3do3eKT56N0Zj//2Yp9HNxcoeLt4nK3IOE1gR2AdOFMPEloY/heaU82sYipKG4PBm1g8C3AtcS/wP0tQaw2KlCLMmEO6/AiNSPazkXVrbflnWPq2jukydGW+YJ4pD3ACZgTNYVT3JCr9gWCYnkhdvF//Us+3Q2jUJReIJArsOq5xBFEphkguket41AzifO07+s7DULHOkoisxxZALbOxIUdSvcRv5WpzPOTyyKIZB2UI190cK4aHT0+BGmpbhBiYc0lPikDEHqaaR0/Mgaq2RhUZ+zpqboMCuqpYu69pIhU/cz3dko+P272GutYId9YsTyzKIURp66mow40iL0MwzAML/DwugQ6nQ== + damichel@microsoft.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/9cc1f334-e6d2-439d-9df2-9c634bf43dd0\"\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 },\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 },\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: + - '3724' + content-type: + - application/json + date: + - Sat, 26 Jun 2021 00:45: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 enable-addons + Connection: + - keep-alive + ParameterSetName: + - -a --resource-group --name --enable-msi-auth-for-monitoring + User-Agent: + - AZURECLI/2.24.2 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001?api-version=2020-10-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001","name":"clitest000001","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"product":"azurecli","cause":"automation","date":"2021-06-26T00:41:49Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '313' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 26 Jun 2021 00:45:29 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 enable-addons + Connection: + - keep-alive + ParameterSetName: + - -a --resource-group --name --enable-msi-auth-for-monitoring + User-Agent: + - AZURECLI/2.24.2 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: HEAD + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/DefaultResourceGroup-WUS2?api-version=2020-10-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Sat, 26 Jun 2021 00:45: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 enable-addons + Connection: + - keep-alive + ParameterSetName: + - -a --resource-group --name --enable-msi-auth-for-monitoring + User-Agent: + - AZURECLI/2.24.2 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/DefaultResourceGroup-WUS2/providers/Microsoft.OperationalInsights/workspaces/DefaultWorkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-WUS2?api-version=2015-11-01-preview + response: + body: + string: "{\r\n \"properties\": {\r\n \"source\": \"Azure\",\r\n \"customerId\": + \"a6ec9525-4c1b-4ebf-80ad-1a1da5f6ca3c\",\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"sku\": {\r\n \"name\": \"pergb2018\",\r\n \"lastSkuUpdate\": + \"Fri, 18 Jun 2021 21:03:33 GMT\"\r\n },\r\n \"retentionInDays\": 30,\r\n + \ \"features\": {\r\n \"legacy\": 0,\r\n \"searchVersion\": 1,\r\n + \ \"enableLogAccessUsingOnlyResourcePermissions\": true\r\n },\r\n + \ \"workspaceCapping\": {\r\n \"dailyQuotaGb\": -1.0,\r\n \"quotaNextResetTime\": + \"Sat, 26 Jun 2021 12:00:00 GMT\",\r\n \"dataIngestionStatus\": \"RespectQuota\"\r\n + \ },\r\n \"publicNetworkAccessForIngestion\": \"Enabled\",\r\n \"publicNetworkAccessForQuery\": + \"Enabled\",\r\n \"createdDate\": \"Fri, 18 Jun 2021 21:03:33 GMT\",\r\n + \ \"modifiedDate\": \"Sat, 26 Jun 2021 00:07:56 GMT\"\r\n },\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2\",\r\n + \ \"name\": \"DefaultWorkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-WUS2\",\r\n + \ \"type\": \"Microsoft.OperationalInsights/workspaces\",\r\n \"location\": + \"westus2\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1161' + content-type: + - application/json + date: + - Sat, 26 Jun 2021 00:45:29 GMT + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + - ASP.NET + status: + code: 200 + message: OK +version: 1 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 4305b008b77..5d88c1e0f7d 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 @@ -1149,6 +1149,152 @@ def test_aks_update_to_msi_cluster_with_addons(self, resource_group, resource_gr self.cmd( 'aks delete -g {resource_group} -n {name} --yes --no-wait', checks=[self.is_empty()]) + @live_only() + @AllowLargeResponse() + @AKSCustomResourceGroupPreparer(random_name_length=17, name_prefix='clitest', location='westus2') + def test_aks_create_with_monitoring_aad_auth_msi(self, resource_group, resource_group_location,): + aks_name = self.create_random_name('cliakstest', 16) + self.create_new_cluster_with_monitoring_aad_auth(resource_group, resource_group_location, aks_name, user_assigned_identity=False) + + @live_only() + @AllowLargeResponse() + @AKSCustomResourceGroupPreparer(random_name_length=17, name_prefix='clitest', location='westus2') + def test_aks_create_with_monitoring_aad_auth_uai(self, resource_group, resource_group_location): + aks_name = self.create_random_name('cliakstest', 16) + self.create_new_cluster_with_monitoring_aad_auth(resource_group, resource_group_location, aks_name, user_assigned_identity=True) + + def create_new_cluster_with_monitoring_aad_auth(self, resource_group, resource_group_location, aks_name, user_assigned_identity=False): + self.kwargs.update({ + 'resource_group': resource_group, + 'name': aks_name, + 'location': resource_group_location, + }) + + if user_assigned_identity: + uai_cmd = f'identity create -g {resource_group} -n {aks_name}_uai' + resp = self.cmd(uai_cmd).get_output_in_json() + identity_id = resp["id"] + print("********************") + print(f"identity_id: {identity_id}") + print("********************") + + # create + create_cmd = f'aks create --resource-group={resource_group} --name={aks_name} --location={resource_group_location} ' \ + '--generate-ssh-keys --enable-managed-identity ' \ + '--enable-addons monitoring ' \ + '--enable-msi-auth-for-monitoring ' \ + '--node-count 1 ' + create_cmd += f'--assign-identity {identity_id}' if user_assigned_identity else '' + + response = self.cmd(create_cmd, checks=[ + self.check('addonProfiles.omsagent.enabled', True), + self.check('addonProfiles.omsagent.config.useAADAuth', 'True') + ]).get_output_in_json() + + cluster_resource_id = response["id"] + subscription = cluster_resource_id.split("/")[2] + workspace_resource_id = response["addonProfiles"]["omsagent"]["config"]["logAnalyticsWorkspaceResourceID"] + workspace_name = workspace_resource_id.split("/")[-1] + workspace_resource_group = workspace_resource_id.split("/")[4] + + # check that the DCR was created + dataCollectionRuleName = f"DCR-{workspace_name}" + dcr_resource_id = f"/subscriptions/{subscription}/resourceGroups/{workspace_resource_group}/providers/Microsoft.Insights/dataCollectionRules/{dataCollectionRuleName}" + get_cmd = f'rest --method get --url https://management.azure.com{dcr_resource_id}?api-version=2019-11-01-preview' + self.cmd(get_cmd, checks=[ + self.check('properties.destinations.logAnalytics[0].workspaceResourceId', f'{workspace_resource_id}') + ]) + + # check that the DCR-A was created + dcra_resource_id = f"{cluster_resource_id}/providers/Microsoft.Insights/dataCollectionRuleAssociations/send-to-{workspace_name}" + get_cmd = f'rest --method get --url https://management.azure.com{dcra_resource_id}?api-version=2019-11-01-preview' + self.cmd(get_cmd, checks=[ + self.check('properties.dataCollectionRuleId', f'{dcr_resource_id}') + ]) + + # delete + # TODO: replace rest requests with cli commands. It appears that the dcra deletion can't propogate fast enough. + self.cmd(f'rest --method delete --url https://management.azure.com/{dcra_resource_id}?api-version=2019-11-01-preview', checks=[self.is_empty()]) + self.cmd(f'rest --method delete --url https://management.azure.com/{dcr_resource_id}?api-version=2019-11-01-preview', checks=[self.is_empty()]) + self.cmd('aks delete -g {resource_group} -n {name} --yes --no-wait', checks=[self.is_empty()]) + if user_assigned_identity: + self.cmd('identity delete -g {resource_group} -n {name}_uai') + + @live_only() + @AllowLargeResponse() + @AKSCustomResourceGroupPreparer(random_name_length=17, name_prefix='clitest', location='westus2') + def test_aks_create_with_monitoring_errors(self, resource_group, resource_group_location): + aks_name = self.create_random_name('cliakstest', 16) + self.kwargs.update({ + 'resource_group': resource_group, + 'name': aks_name, + 'location': resource_group_location, + }) + + from azure.cli.core.azclierror import ArgumentUsageError + + # this command should return an exception. (--enable-msi-auth-for-monitoring requires managed identity) + try: + create_cmd = 'aks create --resource-group={resource_group} --name={name} --location={location} ' \ + '--enable-addons monitoring ' \ + '--enable-msi-auth-for-monitoring ' \ + '--node-count 1 ' + response = self.cmd(create_cmd).get_output_in_json() + assert "--enable-msi-auth-for-monitoring should require --enable-managed-identity" == False + except ArgumentUsageError as e: + pass + + @live_only() + @AllowLargeResponse() + @AKSCustomResourceGroupPreparer(random_name_length=17, name_prefix='clitest', location='westus2') + def test_aks_enable_addons_monitoring_errors(self, resource_group, resource_group_location): + aks_name = self.create_random_name('cliakstest', 16) + self.kwargs.update({ + 'resource_group': resource_group, + 'name': aks_name, + 'location': resource_group_location, + }) + + create_cmd = 'aks create --resource-group={resource_group} --name={name} --location={location} ' \ + '--node-count 1 ' + self.cmd(create_cmd) + + from azure.cli.core.azclierror import ArgumentUsageError + + # this command should return an exception. (--enable-msi-auth-for-monitoring requires managed identity) + try: + enable_cmd = 'aks enable-addons -a monitoring --resource-group={resource_group} --name={name} ' \ + '--enable-msi-auth-for-monitoring ' + self.cmd(enable_cmd) + assert "--enable-msi-auth-for-monitoring should require --enable-managed-identity" == False + except ArgumentUsageError as e: + pass + + @live_only() + @AllowLargeResponse() + @AKSCustomResourceGroupPreparer(random_name_length=17, name_prefix='clitest', location='westus2') + def test_aks_create_with_monitoring_legacy_auth(self, resource_group, resource_group_location): + aks_name = self.create_random_name('cliakstest', 16) + self.kwargs.update({ + 'resource_group': resource_group, + 'name': aks_name, + 'location': resource_group_location, + }) + + # create + create_cmd = 'aks create --resource-group={resource_group} --name={name} --location={location} ' \ + '--generate-ssh-keys --enable-managed-identity ' \ + '--enable-addons monitoring ' \ + '--node-count 1 ' + self.cmd(create_cmd, checks=[ + self.check('addonProfiles.omsagent.enabled', True), + self.exists('addonProfiles.omsagent.config.logAnalyticsWorkspaceResourceID'), + self.check('addonProfiles.omsagent.config.useAADAuth', 'False') + ]).get_output_in_json() + + # delete + self.cmd('aks delete -g {resource_group} -n {name} --yes --no-wait', checks=[self.is_empty()]) + @AllowLargeResponse() @AKSCustomResourceGroupPreparer(random_name_length=17, name_prefix='clitest', location='westus2') def test_aks_create_with_auto_upgrade_channel(self, resource_group, resource_group_location): From 5c750d7b46a5dea2d6bd6f7c8e7f103fde76dac8 Mon Sep 17 00:00:00 2001 From: David Michelman Date: Mon, 28 Jun 2021 08:02:52 -0700 Subject: [PATCH 16/20] adding unit tests --- src/aks-preview/azext_aks_preview/custom.py | 8 +- ...s_create_with_monitoring_aad_auth_msi.yaml | 1805 ----------------- ...s_create_with_monitoring_aad_auth_uai.yaml | 1803 ---------------- ...est_aks_create_with_monitoring_errors.yaml | 1451 ------------- ...ks_create_with_monitoring_legacy_auth.yaml | 1159 ----------- ...t_aks_enable_addons_monitoring_errors.yaml | 793 -------- .../tests/latest/test_aks_commands.py | 85 +- 7 files changed, 49 insertions(+), 7055 deletions(-) delete mode 100644 src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_with_monitoring_aad_auth_msi.yaml delete mode 100644 src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_with_monitoring_aad_auth_uai.yaml delete mode 100644 src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_with_monitoring_errors.yaml delete mode 100644 src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_with_monitoring_legacy_auth.yaml delete mode 100644 src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_enable_addons_monitoring_errors.yaml diff --git a/src/aks-preview/azext_aks_preview/custom.py b/src/aks-preview/azext_aks_preview/custom.py index 72e096dfebe..171c90894aa 100644 --- a/src/aks-preview/azext_aks_preview/custom.py +++ b/src/aks-preview/azext_aks_preview/custom.py @@ -1146,7 +1146,7 @@ def aks_create(cmd, # pylint: disable=too-many-locals,too-many-statements,to service_principal_profile = None principal_obj = None - # If customer explicitly provide a service principal, disable managed identity. + # If customer explicitly provides a service principal, disable managed identity. if service_principal and client_secret: enable_managed_identity = False if not enable_managed_identity: @@ -3452,7 +3452,7 @@ def aks_enable_addons(cmd, client, resource_group_name, name, addons, workspace_ appgw_watch_namespace=None, enable_sgxquotehelper=False, enable_secret_rotation=False, no_wait=False, enable_msi_auth_for_monitoring=False): instance = client.get(resource_group_name, name) - msi_auth = True if instance.service_principal_profile.client_id == "msi" else False + msi_auth = True if instance.service_principal_profile.client_id == "msi" else False # this is overwritten by _update_addons(), so the value needs to be recorded here subscription_id = get_subscription_id(cmd.cli_ctx) instance = _update_addons(cmd, instance, subscription_id, resource_group_name, name, addons, enable=True, @@ -3461,10 +3461,8 @@ def aks_enable_addons(cmd, client, resource_group_name, name, addons, workspace_ enable_sgxquotehelper=enable_sgxquotehelper, enable_secret_rotation=enable_secret_rotation, no_wait=no_wait) if CONST_MONITORING_ADDON_NAME in instance.addon_profiles and instance.addon_profiles[CONST_MONITORING_ADDON_NAME].enabled: - - if instance.addon_profiles[CONST_MONITORING_ADDON_NAME].config[CONST_MONITORING_USING_AAD_MSI_AUTH]: - if msi_auth: + if not msi_auth: raise ArgumentUsageError("--enable-msi-auth-for-monitoring can not be used on clusters with service principal auth.") else: # create a Data Collection Rule (DCR) and associate it with the cluster diff --git a/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_with_monitoring_aad_auth_msi.yaml b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_with_monitoring_aad_auth_msi.yaml deleted file mode 100644 index 574fde8f2de..00000000000 --- a/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_with_monitoring_aad_auth_msi.yaml +++ /dev/null @@ -1,1805 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - aks create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --name --location --generate-ssh-keys --enable-managed-identity - --enable-addons --enable-msi-auth-for-monitoring --node-count - User-Agent: - - AZURECLI/2.24.2 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001?api-version=2020-10-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001","name":"clitest000001","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"product":"azurecli","cause":"automation","date":"2021-06-26T00:07:54Z"},"properties":{"provisioningState":"Succeeded"}}' - headers: - cache-control: - - no-cache - content-length: - - '313' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 26 Jun 2021 00:07:54 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 --generate-ssh-keys --enable-managed-identity - --enable-addons --enable-msi-auth-for-monitoring --node-count - User-Agent: - - AZURECLI/2.24.2 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001?api-version=2020-10-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001","name":"clitest000001","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"product":"azurecli","cause":"automation","date":"2021-06-26T00:07:54Z"},"properties":{"provisioningState":"Succeeded"}}' - headers: - cache-control: - - no-cache - content-length: - - '313' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 26 Jun 2021 00:07:54 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 --generate-ssh-keys --enable-managed-identity - --enable-addons --enable-msi-auth-for-monitoring --node-count - User-Agent: - - AZURECLI/2.24.2 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - method: HEAD - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/DefaultResourceGroup-WUS2?api-version=2020-10-01 - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - date: - - Sat, 26 Jun 2021 00:07:54 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 --generate-ssh-keys --enable-managed-identity - --enable-addons --enable-msi-auth-for-monitoring --node-count - User-Agent: - - AZURECLI/2.24.2 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/DefaultResourceGroup-WUS2/providers/Microsoft.OperationalInsights/workspaces/DefaultWorkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-WUS2?api-version=2015-11-01-preview - response: - body: - string: '{"error":{"code":"ResourceNotFound","message":"The Resource ''Microsoft.OperationalInsights/workspaces/DefaultWorkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-WUS2'' - under resource group ''DefaultResourceGroup-WUS2'' was not found. For more - details please go to https://aka.ms/ARMResourceNotFoundFix"}}' - headers: - cache-control: - - no-cache - content-length: - - '296' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 26 Jun 2021 00:07:55 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", "properties": {"sku": {"name": "standalone"}}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - aks create - Connection: - - keep-alive - Content-Length: - - '70' - Content-Type: - - application/json - ParameterSetName: - - --resource-group --name --location --generate-ssh-keys --enable-managed-identity - --enable-addons --enable-msi-auth-for-monitoring --node-count - User-Agent: - - AZURECLI/2.24.2 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/DefaultResourceGroup-WUS2/providers/Microsoft.OperationalInsights/workspaces/DefaultWorkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-WUS2?api-version=2015-11-01-preview - response: - body: - string: "{\r\n \"properties\": {\r\n \"source\": \"Azure\",\r\n \"customerId\": - \"a6ec9525-4c1b-4ebf-80ad-1a1da5f6ca3c\",\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"sku\": {\r\n \"name\": \"pergb2018\",\r\n \"lastSkuUpdate\": - \"Fri, 18 Jun 2021 21:03:33 GMT\"\r\n },\r\n \"retentionInDays\": 30,\r\n - \ \"features\": {\r\n \"legacy\": 0,\r\n \"searchVersion\": 1,\r\n - \ \"enableLogAccessUsingOnlyResourcePermissions\": true\r\n },\r\n - \ \"workspaceCapping\": {\r\n \"dailyQuotaGb\": -1.0,\r\n \"quotaNextResetTime\": - \"Sat, 26 Jun 2021 12:00:00 GMT\",\r\n \"dataIngestionStatus\": \"RespectQuota\"\r\n - \ },\r\n \"publicNetworkAccessForIngestion\": \"Enabled\",\r\n \"publicNetworkAccessForQuery\": - \"Enabled\",\r\n \"createdDate\": \"Fri, 18 Jun 2021 21:03:33 GMT\",\r\n - \ \"modifiedDate\": \"Fri, 18 Jun 2021 21:25:31 GMT\"\r\n },\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2\",\r\n - \ \"name\": \"DefaultWorkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-WUS2\",\r\n - \ \"type\": \"Microsoft.OperationalInsights/workspaces\",\r\n \"location\": - \"westus2\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '1161' - content-type: - - application/json - date: - - Sat, 26 Jun 2021 00:07:57 GMT - pragma: - - no-cache - server: - - Microsoft-IIS/10.0 - - Microsoft-IIS/10.0 - 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' - x-powered-by: - - ASP.NET - - ASP.NET - 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 --generate-ssh-keys --enable-managed-identity - --enable-addons --enable-msi-auth-for-monitoring --node-count - User-Agent: - - AZURECLI/2.24.2 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2?api-version=2015-11-01-preview - response: - body: - string: "{\r\n \"properties\": {\r\n \"source\": \"Azure\",\r\n \"customerId\": - \"a6ec9525-4c1b-4ebf-80ad-1a1da5f6ca3c\",\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"sku\": {\r\n \"name\": \"pergb2018\",\r\n \"lastSkuUpdate\": - \"Fri, 18 Jun 2021 21:03:33 GMT\"\r\n },\r\n \"retentionInDays\": 30,\r\n - \ \"features\": {\r\n \"legacy\": 0,\r\n \"searchVersion\": 1,\r\n - \ \"enableLogAccessUsingOnlyResourcePermissions\": true\r\n },\r\n - \ \"workspaceCapping\": {\r\n \"dailyQuotaGb\": -1.0,\r\n \"quotaNextResetTime\": - \"Sat, 26 Jun 2021 12:00:00 GMT\",\r\n \"dataIngestionStatus\": \"RespectQuota\"\r\n - \ },\r\n \"publicNetworkAccessForIngestion\": \"Enabled\",\r\n \"publicNetworkAccessForQuery\": - \"Enabled\",\r\n \"createdDate\": \"Fri, 18 Jun 2021 21:03:33 GMT\",\r\n - \ \"modifiedDate\": \"Sat, 26 Jun 2021 00:07:56 GMT\"\r\n },\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2\",\r\n - \ \"name\": \"DefaultWorkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-WUS2\",\r\n - \ \"type\": \"Microsoft.OperationalInsights/workspaces\",\r\n \"location\": - \"westus2\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '1161' - content-type: - - application/json - date: - - Sat, 26 Jun 2021 00:07:57 GMT - pragma: - - no-cache - server: - - Microsoft-IIS/10.0 - - Microsoft-IIS/10.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-powered-by: - - ASP.NET - - 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 --generate-ssh-keys --enable-managed-identity - --enable-addons --enable-msi-auth-for-monitoring --node-count - User-Agent: - - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - AZURECLI/2.24.2 - 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/northcentralus\",\"name\":\"northcentralus\",\"displayName\":\"North - Central US\",\"regionalDisplayName\":\"(US) North Central US\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Recommended\",\"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\":\"Recommended\",\"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/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/jioindiawest\",\"name\":\"jioindiawest\",\"displayName\":\"Jio - India West\",\"regionalDisplayName\":\"(Asia Pacific) Jio India West\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Recommended\",\"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/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/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/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/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/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/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/eastus2euap\",\"name\":\"eastus2euap\",\"displayName\":\"East - US 2 EUAP\",\"regionalDisplayName\":\"(US) East US 2 EUAP\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Other\",\"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/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/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\"}]}}]}" - headers: - cache-control: - - no-cache - content-length: - - '27465' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 26 Jun 2021 00:07:58 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 - ParameterSetName: - - --resource-group --name --location --generate-ssh-keys --enable-managed-identity - --enable-addons --enable-msi-auth-for-monitoring --node-count - User-Agent: - - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - AZURECLI/2.24.2 - 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"}],"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"],"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":[],"apiVersions":["2018-04-20"],"capabilities":"None"},{"resourceType":"components/metadata","locations":[],"apiVersions":["2018-04-20"],"capabilities":"None"},{"resourceType":"components/metrics","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","Brazil South","Switzerland North","Australia - Southeast","Norway East","Norway West"],"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"],"apiVersions":["2018-04-20"],"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"],"apiVersions":["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"],"apiVersions":["2020-02-10-preview"],"capabilities":"None"},{"resourceType":"scheduledqueryrules","locations":["Global","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"],"apiVersions":["2021-02-01-preview","2020-05-01-preview","2018-04-16","2017-09-01-preview"],"defaultApiVersion":"2018-04-16","capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"components/pricingPlans","locations":["East - US","South Central US","North Europe","West Europe","Southeast Asia","West - US 2"],"apiVersions":["2017-10-01"],"capabilities":"None"},{"resourceType":"migrateToNewPricingModel","locations":["East - US","South Central US","North Europe","West Europe","Southeast Asia","West - US 2"],"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"],"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"],"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"],"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","South Africa North","UAE North"],"apiVersions":["2016-03-01","2015-04-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","West - Europe","East Asia","Southeast Asia","Japan East","Japan West","North Central - US","Australia East","South Africa North","UAE North","Switzerland North","Germany - West Central","Norway East","West US 3","Jio India West"],"apiVersions":["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","South Africa North","UAE North","Switzerland - North","Germany West Central","Norway East","West US 3","Jio India West"],"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","South Africa North","UAE North","Switzerland - North","Germany West Central","Norway East","West US 3","Jio India West"],"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","South Africa North","UAE North","Switzerland - North","Germany West Central","Norway East","West US 3","Jio India West"],"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","West US 3","West Central - US","Korea South","Korea Central","UK South","UK West","France Central","South - Africa North","South Africa West","UAE North","Switzerland North","Germany - West Central","Norway East"],"apiVersions":["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"],"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","West US 3","West Central - US","Korea South","Korea Central","UK South","UK West","France Central","South - Africa North","South Africa West","UAE North","Switzerland North","Germany - West Central","Norway East"],"apiVersions":["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":[],"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","West US 3","West Central - US","Korea South","Korea Central","UK South","UK West","France Central","South - Africa North","South Africa West","UAE North","Switzerland North","Germany - West Central","Norway East"],"apiVersions":["2017-12-01-preview"],"capabilities":"SupportsExtension"},{"resourceType":"actiongroups","locations":["Global"],"apiVersions":["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":"baseline","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","South India","Central India","West India","North - Europe","Norway East","Germany West Central","Switzerland North","West US - 2","West Central US","Korea South","Korea Central","UK South","UK West","France - Central","South Africa North","UAE North"],"apiVersions":["2018-09-01","2017-11-01-preview"],"capabilities":"SupportsExtension"},{"resourceType":"metricbaselines","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","South India","Central India","West India","North - Europe","Norway East","Germany West Central","Switzerland North","West US - 2","West Central US","Korea South","Korea Central","UK South","UK West","France - Central","South Africa North","UAE North"],"apiVersions":["2019-03-01","2018-09-01"],"capabilities":"SupportsExtension"},{"resourceType":"calculatebaseline","locations":[],"apiVersions":["2018-09-01","2017-11-01-preview"],"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 - Central US","West US 3","Korea South"],"apiVersions":["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 - Central US","West US 3","Korea South"],"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"],"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"],"apiVersions":["2018-08-01-preview","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"],"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"],"apiVersions":["2019-10-17-preview"],"capabilities":"SupportsExtension"},{"resourceType":"generateLiveToken","locations":[],"apiVersions":["2020-06-02-preview"],"capabilities":"SupportsExtension"},{"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","France South","Norway West","UAE North","Japan West","Norway East","Switzerland - West"],"apiVersions":["2021-04-01","2019-11-01-preview"],"defaultApiVersion":"2019-11-01-preview","capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove, 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"],"apiVersions":["2021-04-01","2019-11-01-preview"],"defaultApiVersion":"2019-11-01-preview","capabilities":"SupportsExtension"},{"resourceType":"privateLinkScopes","locations":["Global"],"apiVersions":["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-07-01-preview","2019-10-17-preview"],"defaultApiVersion":"2019-10-17-preview","capabilities":"None"},{"resourceType":"privateLinkScopes/privateEndpointConnectionProxies","locations":["Global"],"apiVersions":["2021-07-01-preview","2019-10-17-preview"],"defaultApiVersion":"2019-10-17-preview","capabilities":"None"},{"resourceType":"privateLinkScopes/scopedResources","locations":["Global"],"apiVersions":["2021-07-01-preview","2019-10-17-preview"],"defaultApiVersion":"2019-10-17-preview","capabilities":"None"},{"resourceType":"components/linkedstorageaccounts","locations":["East - US","West Central 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"],"apiVersions":["2020-03-01-preview"],"capabilities":"None"},{"resourceType":"privateLinkScopeOperationStatuses","locations":["Global"],"apiVersions":["2021-07-01-preview","2019-10-17-preview"],"defaultApiVersion":"2019-10-17-preview","capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' - headers: - cache-control: - - no-cache - content-length: - - '24232' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 26 Jun 2021 00:07:59 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: '{"location": "westus2", "properties": {"dataFlows": [{"streams": ["Microsoft-Perf", - "Microsoft-ContainerInventory", "Microsoft-ContainerLog", "Microsoft-ContainerNodeInventory", - "Microsoft-KubeEvents", "Microsoft-KubeHealth", "Microsoft-KubeMonAgentEvents", - "Microsoft-KubeNodeInventory", "Microsoft-KubePodInventory", "Microsoft-KubePVInventory", - "Microsoft-KubeServices", "Microsoft-InsightsMetrics"], "destinations": ["la-workspace"]}], - "destinations": {"logAnalytics": [{"workspaceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2", - "name": "la-workspace"}]}}}' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - aks create - Connection: - - keep-alive - Content-Length: - - '731' - Content-Type: - - application/json - ParameterSetName: - - --resource-group --name --location --generate-ssh-keys --enable-managed-identity - --enable-addons --enable-msi-auth-for-monitoring --node-count - User-Agent: - - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - AZURECLI/2.24.2 - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/defaultresourcegroup-wus2/providers/Microsoft.Insights/dataCollectionRules/DCR-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2?api-version=2019-11-01-preview - response: - body: - string: '{"properties":{"immutableId":"dcr-a60ab5f27496491c98412c6c3d5cca94","destinations":{"logAnalytics":[{"workspaceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2","workspaceId":"a6ec9525-4c1b-4ebf-80ad-1a1da5f6ca3c","name":"la-workspace"}]},"dataFlows":[{"streams":["Microsoft-Perf","Microsoft-ContainerInventory","Microsoft-ContainerLog","Microsoft-ContainerNodeInventory","Microsoft-KubeEvents","Microsoft-KubeHealth","Microsoft-KubeMonAgentEvents","Microsoft-KubeNodeInventory","Microsoft-KubePodInventory","Microsoft-KubePVInventory","Microsoft-KubeServices","Microsoft-InsightsMetrics"],"destinations":["la-workspace"]}],"provisioningState":"Succeeded"},"location":"westus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/defaultresourcegroup-wus2/providers/Microsoft.Insights/dataCollectionRules/DCR-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2","name":"DCR-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2","type":"Microsoft.Insights/dataCollectionRules","etag":"\"56008acb-0000-0800-0000-60d66fe00000\""}' - headers: - api-supported-versions: - - 2019-11-01-preview, 2021-04-01 - cache-control: - - no-cache - content-length: - - '1227' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 26 Jun 2021 00:08:01 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", "properties": {"kubernetesVersion": "", "dnsPrefix": - "cliakstest-clitestxfgslkwdn-3b875b", "agentPoolProfiles": [{"count": 1, "vmSize": - "Standard_DS2_v2", "osType": "Linux", "type": "VirtualMachineScaleSets", "mode": - "System", "enableNodePublicIP": false, "scaleSetPriority": "Regular", "scaleSetEvictionPolicy": - "Delete", "enableEncryptionAtHost": false, "enableUltraSSD": false, "enableFIPS": - false, "name": "nodepool1"}], "linuxProfile": {"adminUsername": "azureuser", - "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCwztmLMdJZrXl6VTfbonQWAMXjuJkRzCW8Lmynohg0hz681LPQC7OenFR36PPz3tDNd90tjX3+khk0NkSBB8Dz+U1/ISOsR17++TmEFWLf1oiTTua/1K82pc8yGoFbDXIFAgMeJxpwYczjvL8BnDa9z3GrzYAEi1B6kbZyGAjc0rRoSb76nYF/dhtp+GtN5oo/qYEt8ogcPpQzlv3hM7AdcYuTHutWMHV7XA/bdhfcXL4jJLW/SPD9l0EAw6boMoOJ4W1X3OWFD0MGs1cphZNIXpOg5fBCN/x9eRmJ45fAGFH/plGh+i0UjQKoLd3eEy5pyAzJ+ttoQ3do3eKT56N0Zj//2Yp9HNxcoeLt4nK3IOE1gR2AdOFMPEloY/heaU82sYipKG4PBm1g8C3AtcS/wP0tQaw2KlCLMmEO6/AiNSPazkXVrbflnWPq2jukydGW+YJ4pD3ACZgTNYVT3JCr9gWCYnkhdvF//Us+3Q2jUJReIJArsOq5xBFEphkguket41AzifO07+s7DULHOkoisxxZALbOxIUdSvcRv5WpzPOTyyKIZB2UI190cK4aHT0+BGmpbhBiYc0lPikDEHqaaR0/Mgaq2RhUZ+zpqboMCuqpYu69pIhU/cz3dko+P272GutYId9YsTyzKIURp66mow40iL0MwzAML/DwugQ6nQ== - damichel@microsoft.com\n"}]}}, "addonProfiles": {"omsagent": {"enabled": true, - "config": {"logAnalyticsWorkspaceResourceID": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2", - "useAADAuth": "True"}}}, "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}, "identity": {"type": "SystemAssigned"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - aks create - Connection: - - keep-alive - Content-Length: - - '1973' - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - --resource-group --name --location --generate-ssh-keys --enable-managed-identity - --enable-addons --enable-msi-auth-for-monitoring --node-count - User-Agent: - - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python - AZURECLI/2.24.2 - accept-language: - - en-US - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2021-05-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\": - \"Creating\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": - \"1.19.11\",\n \"dnsPrefix\": \"cliakstest-clitestxfgslkwdn-3b875b\",\n - \ \"fqdn\": \"cliakstest-clitestxfgslkwdn-3b875b-45214b56.hcp.westus2.azmk8s.io\",\n - \ \"azurePortalFQDN\": \"cliakstest-clitestxfgslkwdn-3b875b-45214b56.portal.hcp.westus2.azmk8s.io\",\n - \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": - 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": - \"Managed\",\n \"kubeletDiskType\": \"OS\",\n \"maxPods\": 110,\n - \ \"type\": \"VirtualMachineScaleSets\",\n \"provisioningState\": \"Creating\",\n - \ \"powerState\": {\n \"code\": \"Running\"\n },\n \"orchestratorVersion\": - \"1.19.11\",\n \"enableNodePublicIP\": false,\n \"nodeLabels\": {},\n - \ \"mode\": \"System\",\n \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\": - false,\n \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"nodeImageVersion\": - \"AKSUbuntu-1804gen2containerd-2021.06.02\",\n \"enableFIPS\": false\n - \ }\n ],\n \"linuxProfile\": {\n \"adminUsername\": \"azureuser\",\n - \ \"ssh\": {\n \"publicKeys\": [\n {\n \"keyData\": \"ssh-rsa - AAAAB3NzaC1yc2EAAAADAQABAAACAQCwztmLMdJZrXl6VTfbonQWAMXjuJkRzCW8Lmynohg0hz681LPQC7OenFR36PPz3tDNd90tjX3+khk0NkSBB8Dz+U1/ISOsR17++TmEFWLf1oiTTua/1K82pc8yGoFbDXIFAgMeJxpwYczjvL8BnDa9z3GrzYAEi1B6kbZyGAjc0rRoSb76nYF/dhtp+GtN5oo/qYEt8ogcPpQzlv3hM7AdcYuTHutWMHV7XA/bdhfcXL4jJLW/SPD9l0EAw6boMoOJ4W1X3OWFD0MGs1cphZNIXpOg5fBCN/x9eRmJ45fAGFH/plGh+i0UjQKoLd3eEy5pyAzJ+ttoQ3do3eKT56N0Zj//2Yp9HNxcoeLt4nK3IOE1gR2AdOFMPEloY/heaU82sYipKG4PBm1g8C3AtcS/wP0tQaw2KlCLMmEO6/AiNSPazkXVrbflnWPq2jukydGW+YJ4pD3ACZgTNYVT3JCr9gWCYnkhdvF//Us+3Q2jUJReIJArsOq5xBFEphkguket41AzifO07+s7DULHOkoisxxZALbOxIUdSvcRv5WpzPOTyyKIZB2UI190cK4aHT0+BGmpbhBiYc0lPikDEHqaaR0/Mgaq2RhUZ+zpqboMCuqpYu69pIhU/cz3dko+P272GutYId9YsTyzKIURp66mow40iL0MwzAML/DwugQ6nQ== - damichel@microsoft.com\\n\"\n }\n ]\n }\n },\n \"servicePrincipalProfile\": - {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \"addonProfiles\": - {\n \"omsagent\": {\n \"enabled\": true,\n \"config\": {\n \"logAnalyticsWorkspaceResourceID\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2\",\n - \ \"useAADAuth\": \"True\"\n }\n }\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 },\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 },\n \"maxAgentPools\": 100,\n \"disableLocalAccounts\": - false\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/0b8191e6-2cbf-4e67-9a95-8a806c92aa21?api-version=2016-03-30 - cache-control: - - no-cache - content-length: - - '3433' - content-type: - - application/json - date: - - Sat, 26 Jun 2021 00:08:07 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - aks create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --name --location --generate-ssh-keys --enable-managed-identity - --enable-addons --enable-msi-auth-for-monitoring --node-count - User-Agent: - - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python - AZURECLI/2.24.2 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/0b8191e6-2cbf-4e67-9a95-8a806c92aa21?api-version=2016-03-30 - response: - body: - string: "{\n \"name\": \"e691810b-bf2c-674e-9a95-8a806c92aa21\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2021-06-26T00:08:08.3066666Z\"\n }" - headers: - cache-control: - - no-cache - content-length: - - '126' - content-type: - - application/json - date: - - Sat, 26 Jun 2021 00:08:38 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 create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --name --location --generate-ssh-keys --enable-managed-identity - --enable-addons --enable-msi-auth-for-monitoring --node-count - User-Agent: - - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python - AZURECLI/2.24.2 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/0b8191e6-2cbf-4e67-9a95-8a806c92aa21?api-version=2016-03-30 - response: - body: - string: "{\n \"name\": \"e691810b-bf2c-674e-9a95-8a806c92aa21\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2021-06-26T00:08:08.3066666Z\"\n }" - headers: - cache-control: - - no-cache - content-length: - - '126' - content-type: - - application/json - date: - - Sat, 26 Jun 2021 00:09:08 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 create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --name --location --generate-ssh-keys --enable-managed-identity - --enable-addons --enable-msi-auth-for-monitoring --node-count - User-Agent: - - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python - AZURECLI/2.24.2 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/0b8191e6-2cbf-4e67-9a95-8a806c92aa21?api-version=2016-03-30 - response: - body: - string: "{\n \"name\": \"e691810b-bf2c-674e-9a95-8a806c92aa21\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2021-06-26T00:08:08.3066666Z\"\n }" - headers: - cache-control: - - no-cache - content-length: - - '126' - content-type: - - application/json - date: - - Sat, 26 Jun 2021 00:09:39 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 create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --name --location --generate-ssh-keys --enable-managed-identity - --enable-addons --enable-msi-auth-for-monitoring --node-count - User-Agent: - - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python - AZURECLI/2.24.2 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/0b8191e6-2cbf-4e67-9a95-8a806c92aa21?api-version=2016-03-30 - response: - body: - string: "{\n \"name\": \"e691810b-bf2c-674e-9a95-8a806c92aa21\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2021-06-26T00:08:08.3066666Z\"\n }" - headers: - cache-control: - - no-cache - content-length: - - '126' - content-type: - - application/json - date: - - Sat, 26 Jun 2021 00:10:09 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 create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --name --location --generate-ssh-keys --enable-managed-identity - --enable-addons --enable-msi-auth-for-monitoring --node-count - User-Agent: - - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python - AZURECLI/2.24.2 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/0b8191e6-2cbf-4e67-9a95-8a806c92aa21?api-version=2016-03-30 - response: - body: - string: "{\n \"name\": \"e691810b-bf2c-674e-9a95-8a806c92aa21\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2021-06-26T00:08:08.3066666Z\"\n }" - headers: - cache-control: - - no-cache - content-length: - - '126' - content-type: - - application/json - date: - - Sat, 26 Jun 2021 00:10:39 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 create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --name --location --generate-ssh-keys --enable-managed-identity - --enable-addons --enable-msi-auth-for-monitoring --node-count - User-Agent: - - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python - AZURECLI/2.24.2 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/0b8191e6-2cbf-4e67-9a95-8a806c92aa21?api-version=2016-03-30 - response: - body: - string: "{\n \"name\": \"e691810b-bf2c-674e-9a95-8a806c92aa21\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2021-06-26T00:08:08.3066666Z\"\n }" - headers: - cache-control: - - no-cache - content-length: - - '126' - content-type: - - application/json - date: - - Sat, 26 Jun 2021 00:11:09 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 create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --name --location --generate-ssh-keys --enable-managed-identity - --enable-addons --enable-msi-auth-for-monitoring --node-count - User-Agent: - - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python - AZURECLI/2.24.2 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/0b8191e6-2cbf-4e67-9a95-8a806c92aa21?api-version=2016-03-30 - response: - body: - string: "{\n \"name\": \"e691810b-bf2c-674e-9a95-8a806c92aa21\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2021-06-26T00:08:08.3066666Z\"\n }" - headers: - cache-control: - - no-cache - content-length: - - '126' - content-type: - - application/json - date: - - Sat, 26 Jun 2021 00:11:40 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 create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --name --location --generate-ssh-keys --enable-managed-identity - --enable-addons --enable-msi-auth-for-monitoring --node-count - User-Agent: - - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python - AZURECLI/2.24.2 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/0b8191e6-2cbf-4e67-9a95-8a806c92aa21?api-version=2016-03-30 - response: - body: - string: "{\n \"name\": \"e691810b-bf2c-674e-9a95-8a806c92aa21\",\n \"status\": - \"Succeeded\",\n \"startTime\": \"2021-06-26T00:08:08.3066666Z\",\n \"endTime\": - \"2021-06-26T00:12:01.2873835Z\"\n }" - headers: - cache-control: - - no-cache - content-length: - - '170' - content-type: - - application/json - date: - - Sat, 26 Jun 2021 00:12:10 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 create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --name --location --generate-ssh-keys --enable-managed-identity - --enable-addons --enable-msi-auth-for-monitoring --node-count - User-Agent: - - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python - AZURECLI/2.24.2 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2021-05-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.19.11\",\n \"dnsPrefix\": \"cliakstest-clitestxfgslkwdn-3b875b\",\n - \ \"fqdn\": \"cliakstest-clitestxfgslkwdn-3b875b-45214b56.hcp.westus2.azmk8s.io\",\n - \ \"azurePortalFQDN\": \"cliakstest-clitestxfgslkwdn-3b875b-45214b56.portal.hcp.westus2.azmk8s.io\",\n - \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": - 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": - \"Managed\",\n \"kubeletDiskType\": \"OS\",\n \"maxPods\": 110,\n - \ \"type\": \"VirtualMachineScaleSets\",\n \"provisioningState\": \"Succeeded\",\n - \ \"powerState\": {\n \"code\": \"Running\"\n },\n \"orchestratorVersion\": - \"1.19.11\",\n \"enableNodePublicIP\": false,\n \"nodeLabels\": {},\n - \ \"mode\": \"System\",\n \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\": - false,\n \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"nodeImageVersion\": - \"AKSUbuntu-1804gen2containerd-2021.06.02\",\n \"enableFIPS\": false\n - \ }\n ],\n \"linuxProfile\": {\n \"adminUsername\": \"azureuser\",\n - \ \"ssh\": {\n \"publicKeys\": [\n {\n \"keyData\": \"ssh-rsa - AAAAB3NzaC1yc2EAAAADAQABAAACAQCwztmLMdJZrXl6VTfbonQWAMXjuJkRzCW8Lmynohg0hz681LPQC7OenFR36PPz3tDNd90tjX3+khk0NkSBB8Dz+U1/ISOsR17++TmEFWLf1oiTTua/1K82pc8yGoFbDXIFAgMeJxpwYczjvL8BnDa9z3GrzYAEi1B6kbZyGAjc0rRoSb76nYF/dhtp+GtN5oo/qYEt8ogcPpQzlv3hM7AdcYuTHutWMHV7XA/bdhfcXL4jJLW/SPD9l0EAw6boMoOJ4W1X3OWFD0MGs1cphZNIXpOg5fBCN/x9eRmJ45fAGFH/plGh+i0UjQKoLd3eEy5pyAzJ+ttoQ3do3eKT56N0Zj//2Yp9HNxcoeLt4nK3IOE1gR2AdOFMPEloY/heaU82sYipKG4PBm1g8C3AtcS/wP0tQaw2KlCLMmEO6/AiNSPazkXVrbflnWPq2jukydGW+YJ4pD3ACZgTNYVT3JCr9gWCYnkhdvF//Us+3Q2jUJReIJArsOq5xBFEphkguket41AzifO07+s7DULHOkoisxxZALbOxIUdSvcRv5WpzPOTyyKIZB2UI190cK4aHT0+BGmpbhBiYc0lPikDEHqaaR0/Mgaq2RhUZ+zpqboMCuqpYu69pIhU/cz3dko+P272GutYId9YsTyzKIURp66mow40iL0MwzAML/DwugQ6nQ== - damichel@microsoft.com\\n\"\n }\n ]\n }\n },\n \"servicePrincipalProfile\": - {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \"addonProfiles\": - {\n \"omsagent\": {\n \"enabled\": true,\n \"config\": {\n \"logAnalyticsWorkspaceResourceID\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2\",\n - \ \"useAADAuth\": \"True\"\n },\n \"identity\": {\n \"resourceId\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.ManagedIdentity/userAssignedIdentities/omsagent-cliakstest000002\",\n - \ \"clientId\":\"00000000-0000-0000-0000-000000000001\",\n \"objectId\":\"00000000-0000-0000-0000-000000000001\"\n - \ }\n }\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/1977e1ac-af6c-40fd-9eb6-d62b2f888c92\"\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 },\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 },\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: - - '4459' - content-type: - - application/json - date: - - Sat, 26 Jun 2021 00:12:10 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 create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --name --location --generate-ssh-keys --enable-managed-identity - --enable-addons --enable-msi-auth-for-monitoring --node-count - User-Agent: - - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-authorization/0.61.0 Azure-SDK-For-Python - AZURECLI/2.24.2 - accept-language: - - en-US - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/providers/Microsoft.Authorization/roleDefinitions?$filter=roleName%20eq%20%27Monitoring%20Metrics%20Publisher%27&api-version=2018-01-01-preview - response: - body: - string: '{"value":[{"properties":{"roleName":"Monitoring Metrics Publisher","type":"BuiltInRole","description":"Enables - publishing metrics against Azure resources","assignableScopes":["/"],"permissions":[{"actions":["Microsoft.Insights/Register/Action","Microsoft.Support/*","Microsoft.Resources/subscriptions/resourceGroups/read"],"notActions":[],"dataActions":["Microsoft.Insights/Metrics/Write"],"notDataActions":[]}],"createdOn":"2018-08-14T00:36:16.5610279Z","updatedOn":"2018-08-14T00:37:18.1465065Z","createdBy":null,"updatedBy":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/3913510d-42f4-4e42-8a64-420c390055eb","type":"Microsoft.Authorization/roleDefinitions","name":"3913510d-42f4-4e42-8a64-420c390055eb"}]}' - headers: - cache-control: - - no-cache - content-length: - - '776' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 26 Jun 2021 00:12:11 GMT - expires: - - '-1' - pragma: - - no-cache - set-cookie: - - x-ms-gateway-slice=Production; path=/; secure; samesite=none; httponly - 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: '{"properties": {"roleDefinitionId": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/3913510d-42f4-4e42-8a64-420c390055eb", - "principalId":"00000000-0000-0000-0000-000000000001"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - aks create - Connection: - - keep-alive - Content-Length: - - '233' - Content-Type: - - application/json; charset=utf-8 - Cookie: - - x-ms-gateway-slice=Production - ParameterSetName: - - --resource-group --name --location --generate-ssh-keys --enable-managed-identity - --enable-addons --enable-msi-auth-for-monitoring --node-count - User-Agent: - - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-authorization/0.61.0 Azure-SDK-For-Python - AZURECLI/2.24.2 - accept-language: - - en-US - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/providers/Microsoft.Authorization/roleAssignments/98158684-ef72-4e1d-9984-2ac25ec98644?api-version=2020-04-01-preview - response: - body: - string: '{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/3913510d-42f4-4e42-8a64-420c390055eb","principalId":"00000000-0000-0000-0000-000000000001","principalType":"ServicePrincipal","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002","condition":null,"conditionVersion":null,"createdOn":"2021-06-26T00:12:12.2696903Z","updatedOn":"2021-06-26T00:12:12.6134852Z","createdBy":null,"updatedBy":"e98be497-f2d1-44cc-8439-9496116db13a","delegatedManagedIdentityResourceId":null,"description":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/providers/Microsoft.Authorization/roleAssignments/98158684-ef72-4e1d-9984-2ac25ec98644","type":"Microsoft.Authorization/roleAssignments","name":"98158684-ef72-4e1d-9984-2ac25ec98644"}' - headers: - cache-control: - - no-cache - content-length: - - '1029' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 26 Jun 2021 00:12:14 GMT - expires: - - '-1' - pragma: - - no-cache - set-cookie: - - x-ms-gateway-slice=Production; path=/; secure; samesite=none; httponly - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - aks create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --name --location --generate-ssh-keys --enable-managed-identity - --enable-addons --enable-msi-auth-for-monitoring --node-count - User-Agent: - - AZURECLI/2.24.2 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2?api-version=2015-11-01-preview - response: - body: - string: "{\r\n \"properties\": {\r\n \"source\": \"Azure\",\r\n \"customerId\": - \"a6ec9525-4c1b-4ebf-80ad-1a1da5f6ca3c\",\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"sku\": {\r\n \"name\": \"pergb2018\",\r\n \"lastSkuUpdate\": - \"Fri, 18 Jun 2021 21:03:33 GMT\"\r\n },\r\n \"retentionInDays\": 30,\r\n - \ \"features\": {\r\n \"legacy\": 0,\r\n \"searchVersion\": 1,\r\n - \ \"enableLogAccessUsingOnlyResourcePermissions\": true\r\n },\r\n - \ \"workspaceCapping\": {\r\n \"dailyQuotaGb\": -1.0,\r\n \"quotaNextResetTime\": - \"Sat, 26 Jun 2021 12:00:00 GMT\",\r\n \"dataIngestionStatus\": \"RespectQuota\"\r\n - \ },\r\n \"publicNetworkAccessForIngestion\": \"Enabled\",\r\n \"publicNetworkAccessForQuery\": - \"Enabled\",\r\n \"createdDate\": \"Fri, 18 Jun 2021 21:03:33 GMT\",\r\n - \ \"modifiedDate\": \"Sat, 26 Jun 2021 00:07:56 GMT\"\r\n },\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2\",\r\n - \ \"name\": \"DefaultWorkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-WUS2\",\r\n - \ \"type\": \"Microsoft.OperationalInsights/workspaces\",\r\n \"location\": - \"westus2\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '1161' - content-type: - - application/json - date: - - Sat, 26 Jun 2021 00:12:14 GMT - pragma: - - no-cache - server: - - Microsoft-IIS/10.0 - - Microsoft-IIS/10.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-powered-by: - - ASP.NET - - ASP.NET - status: - code: 200 - message: OK -- request: - body: '{"location": "westus2", "properties": {"dataCollectionRuleId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/defaultresourcegroup-wus2/providers/Microsoft.Insights/dataCollectionRules/DCR-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2", - "description": "routes monitoring data to a Log Analytics workspace"}}' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - aks create - Connection: - - keep-alive - Content-Length: - - '341' - Content-Type: - - application/json - ParameterSetName: - - --resource-group --name --location --generate-ssh-keys --enable-managed-identity - --enable-addons --enable-msi-auth-for-monitoring --node-count - User-Agent: - - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - AZURECLI/2.24.2 - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/providers/Microsoft.Insights/dataCollectionRuleAssociations/send-to-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2?api-version=2019-11-01-preview - response: - body: - string: '{"properties":{"description":"routes monitoring data to a Log Analytics - workspace","dataCollectionRuleId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/defaultresourcegroup-wus2/providers/Microsoft.Insights/dataCollectionRules/DCR-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/providers/Microsoft.Insights/dataCollectionRuleAssociations/send-to-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2","name":"send-to-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2","type":"Microsoft.Insights/dataCollectionRuleAssociations","etag":"\"560076d1-0000-0800-0000-60d670df0000\""}' - headers: - api-supported-versions: - - 2019-11-01-preview, 2021-04-01 - cache-control: - - no-cache - content-length: - - '788' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 26 Jun 2021 00:12:14 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: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - rest - Connection: - - keep-alive - ParameterSetName: - - --method --url - User-Agent: - - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - AZURECLI/2.24.2 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/defaultresourcegroup-wus2/providers/Microsoft.Insights/dataCollectionRules/DCR-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2?api-version=2019-11-01-preview - response: - body: - string: '{"properties":{"immutableId":"dcr-a60ab5f27496491c98412c6c3d5cca94","destinations":{"logAnalytics":[{"workspaceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2","workspaceId":"a6ec9525-4c1b-4ebf-80ad-1a1da5f6ca3c","name":"la-workspace"}]},"dataFlows":[{"streams":["Microsoft-Perf","Microsoft-ContainerInventory","Microsoft-ContainerLog","Microsoft-ContainerNodeInventory","Microsoft-KubeEvents","Microsoft-KubeHealth","Microsoft-KubeMonAgentEvents","Microsoft-KubeNodeInventory","Microsoft-KubePodInventory","Microsoft-KubePVInventory","Microsoft-KubeServices","Microsoft-InsightsMetrics"],"destinations":["la-workspace"]}],"provisioningState":"Succeeded"},"location":"westus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/defaultresourcegroup-wus2/providers/Microsoft.Insights/dataCollectionRules/DCR-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2","name":"DCR-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2","type":"Microsoft.Insights/dataCollectionRules","etag":"\"56008acb-0000-0800-0000-60d66fe00000\""}' - headers: - api-supported-versions: - - 2019-11-01-preview, 2021-04-01 - cache-control: - - no-cache - content-length: - - '1227' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 26 Jun 2021 00:12:15 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 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - rest - Connection: - - keep-alive - ParameterSetName: - - --method --url - User-Agent: - - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - AZURECLI/2.24.2 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/providers/Microsoft.Insights/dataCollectionRuleAssociations/send-to-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2?api-version=2019-11-01-preview - response: - body: - string: '{"properties":{"description":"routes monitoring data to a Log Analytics - workspace","dataCollectionRuleId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/defaultresourcegroup-wus2/providers/Microsoft.Insights/dataCollectionRules/DCR-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/providers/Microsoft.Insights/dataCollectionRuleAssociations/send-to-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2","name":"send-to-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2","type":"Microsoft.Insights/dataCollectionRuleAssociations","etag":"\"560076d1-0000-0800-0000-60d670df0000\""}' - headers: - api-supported-versions: - - 2019-11-01-preview, 2021-04-01 - cache-control: - - no-cache - content-length: - - '788' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 26 Jun 2021 00:12:15 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 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - rest - Connection: - - keep-alive - Content-Length: - - '0' - ParameterSetName: - - --method --url - User-Agent: - - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - AZURECLI/2.24.2 - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/providers/Microsoft.Insights/dataCollectionRuleAssociations/send-to-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2?api-version=2019-11-01-preview - response: - body: - string: '' - headers: - api-supported-versions: - - 2019-11-01-preview, 2021-04-01 - cache-control: - - no-cache - content-length: - - '0' - date: - - Sat, 26 Jun 2021 00:12:16 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 -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - rest - Connection: - - keep-alive - Content-Length: - - '0' - ParameterSetName: - - --method --url - User-Agent: - - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - AZURECLI/2.24.2 - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/defaultresourcegroup-wus2/providers/Microsoft.Insights/dataCollectionRules/DCR-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2?api-version=2019-11-01-preview - response: - body: - string: '' - headers: - api-supported-versions: - - 2019-11-01-preview, 2021-04-01 - cache-control: - - no-cache - content-length: - - '0' - date: - - Sat, 26 Jun 2021 00:12:18 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 -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - aks delete - Connection: - - keep-alive - Content-Length: - - '0' - ParameterSetName: - - -g -n --yes --no-wait - User-Agent: - - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python - AZURECLI/2.24.2 - accept-language: - - en-US - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2021-03-01 - response: - body: - string: '' - headers: - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/63dcfd85-3c30-4758-8bb3-d3d80e6ebcaf?api-version=2016-03-30 - cache-control: - - no-cache - content-length: - - '0' - date: - - Sat, 26 Jun 2021 00:12:19 GMT - expires: - - '-1' - location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operationresults/63dcfd85-3c30-4758-8bb3-d3d80e6ebcaf?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_create_with_monitoring_aad_auth_uai.yaml b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_with_monitoring_aad_auth_uai.yaml deleted file mode 100644 index 55a0b09f523..00000000000 --- a/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_with_monitoring_aad_auth_uai.yaml +++ /dev/null @@ -1,1803 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - identity create - Connection: - - keep-alive - ParameterSetName: - - -g -n - User-Agent: - - AZURECLI/2.24.2 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001?api-version=2020-10-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001","name":"clitest000001","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"product":"azurecli","cause":"automation","date":"2021-06-26T00:14:40Z"},"properties":{"provisioningState":"Succeeded"}}' - headers: - cache-control: - - no-cache - content-length: - - '313' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 26 Jun 2021 00:14:39 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: '{"location": "westus2"}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - identity create - Connection: - - keep-alive - Content-Length: - - '23' - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -g -n - User-Agent: - - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-msi/0.2.0 Azure-SDK-For-Python - AZURECLI/2.24.2 - accept-language: - - en-US - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cliakstest000002_uai?api-version=2015-08-31-preview - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cliakstest000002_uai","name":"cliakstest000002_uai","type":"Microsoft.ManagedIdentity/userAssignedIdentities","location":"westus2","tags":{},"properties":{"tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","principalId":"00000000-0000-0000-0000-000000000001","clientId":"00000000-0000-0000-0000-000000000001","clientSecretUrl":"https://control-westus2.identity.azure.net/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cliakstest000002_uai/credentials?tid=72f988bf-86f1-41af-91ab-2d7cd011db47&oid=a11043ec-17e2-43c5-9e42-339c37fe3198&aid=b54285de-2c5c-4302-afb9-3e74adf2685e"}}' - headers: - cache-control: - - no-cache - content-length: - - '822' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 26 Jun 2021 00:14:43 GMT - expires: - - '-1' - location: - - /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cliakstest000002_uai - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - aks create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --name --location --generate-ssh-keys --enable-managed-identity - --enable-addons --enable-msi-auth-for-monitoring --node-count --assign-identity - User-Agent: - - AZURECLI/2.24.2 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001?api-version=2020-10-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001","name":"clitest000001","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"product":"azurecli","cause":"automation","date":"2021-06-26T00:14:40Z"},"properties":{"provisioningState":"Succeeded"}}' - headers: - cache-control: - - no-cache - content-length: - - '313' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 26 Jun 2021 00:14:44 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 --generate-ssh-keys --enable-managed-identity - --enable-addons --enable-msi-auth-for-monitoring --node-count --assign-identity - User-Agent: - - AZURECLI/2.24.2 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001?api-version=2020-10-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001","name":"clitest000001","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"product":"azurecli","cause":"automation","date":"2021-06-26T00:14:40Z"},"properties":{"provisioningState":"Succeeded"}}' - headers: - cache-control: - - no-cache - content-length: - - '313' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 26 Jun 2021 00:14:44 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 --generate-ssh-keys --enable-managed-identity - --enable-addons --enable-msi-auth-for-monitoring --node-count --assign-identity - User-Agent: - - AZURECLI/2.24.2 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - method: HEAD - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/DefaultResourceGroup-WUS2?api-version=2020-10-01 - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - date: - - Sat, 26 Jun 2021 00:14:45 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 --generate-ssh-keys --enable-managed-identity - --enable-addons --enable-msi-auth-for-monitoring --node-count --assign-identity - User-Agent: - - AZURECLI/2.24.2 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/DefaultResourceGroup-WUS2/providers/Microsoft.OperationalInsights/workspaces/DefaultWorkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-WUS2?api-version=2015-11-01-preview - response: - body: - string: "{\r\n \"properties\": {\r\n \"source\": \"Azure\",\r\n \"customerId\": - \"a6ec9525-4c1b-4ebf-80ad-1a1da5f6ca3c\",\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"sku\": {\r\n \"name\": \"pergb2018\",\r\n \"lastSkuUpdate\": - \"Fri, 18 Jun 2021 21:03:33 GMT\"\r\n },\r\n \"retentionInDays\": 30,\r\n - \ \"features\": {\r\n \"legacy\": 0,\r\n \"searchVersion\": 1,\r\n - \ \"enableLogAccessUsingOnlyResourcePermissions\": true\r\n },\r\n - \ \"workspaceCapping\": {\r\n \"dailyQuotaGb\": -1.0,\r\n \"quotaNextResetTime\": - \"Sat, 26 Jun 2021 12:00:00 GMT\",\r\n \"dataIngestionStatus\": \"RespectQuota\"\r\n - \ },\r\n \"publicNetworkAccessForIngestion\": \"Enabled\",\r\n \"publicNetworkAccessForQuery\": - \"Enabled\",\r\n \"createdDate\": \"Fri, 18 Jun 2021 21:03:33 GMT\",\r\n - \ \"modifiedDate\": \"Sat, 26 Jun 2021 00:07:56 GMT\"\r\n },\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2\",\r\n - \ \"name\": \"DefaultWorkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-WUS2\",\r\n - \ \"type\": \"Microsoft.OperationalInsights/workspaces\",\r\n \"location\": - \"westus2\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '1161' - content-type: - - application/json - date: - - Sat, 26 Jun 2021 00:14:45 GMT - pragma: - - no-cache - server: - - Microsoft-IIS/10.0 - - Microsoft-IIS/10.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-powered-by: - - ASP.NET - - ASP.NET - 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 --generate-ssh-keys --enable-managed-identity - --enable-addons --enable-msi-auth-for-monitoring --node-count --assign-identity - User-Agent: - - AZURECLI/2.24.2 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2?api-version=2015-11-01-preview - response: - body: - string: "{\r\n \"properties\": {\r\n \"source\": \"Azure\",\r\n \"customerId\": - \"a6ec9525-4c1b-4ebf-80ad-1a1da5f6ca3c\",\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"sku\": {\r\n \"name\": \"pergb2018\",\r\n \"lastSkuUpdate\": - \"Fri, 18 Jun 2021 21:03:33 GMT\"\r\n },\r\n \"retentionInDays\": 30,\r\n - \ \"features\": {\r\n \"legacy\": 0,\r\n \"searchVersion\": 1,\r\n - \ \"enableLogAccessUsingOnlyResourcePermissions\": true\r\n },\r\n - \ \"workspaceCapping\": {\r\n \"dailyQuotaGb\": -1.0,\r\n \"quotaNextResetTime\": - \"Sat, 26 Jun 2021 12:00:00 GMT\",\r\n \"dataIngestionStatus\": \"RespectQuota\"\r\n - \ },\r\n \"publicNetworkAccessForIngestion\": \"Enabled\",\r\n \"publicNetworkAccessForQuery\": - \"Enabled\",\r\n \"createdDate\": \"Fri, 18 Jun 2021 21:03:33 GMT\",\r\n - \ \"modifiedDate\": \"Sat, 26 Jun 2021 00:07:56 GMT\"\r\n },\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2\",\r\n - \ \"name\": \"DefaultWorkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-WUS2\",\r\n - \ \"type\": \"Microsoft.OperationalInsights/workspaces\",\r\n \"location\": - \"westus2\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '1161' - content-type: - - application/json - date: - - Sat, 26 Jun 2021 00:14:44 GMT - pragma: - - no-cache - server: - - Microsoft-IIS/10.0 - - Microsoft-IIS/10.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-powered-by: - - ASP.NET - - 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 --generate-ssh-keys --enable-managed-identity - --enable-addons --enable-msi-auth-for-monitoring --node-count --assign-identity - User-Agent: - - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - AZURECLI/2.24.2 - 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/northcentralus\",\"name\":\"northcentralus\",\"displayName\":\"North - Central US\",\"regionalDisplayName\":\"(US) North Central US\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Recommended\",\"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\":\"Recommended\",\"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/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/jioindiawest\",\"name\":\"jioindiawest\",\"displayName\":\"Jio - India West\",\"regionalDisplayName\":\"(Asia Pacific) Jio India West\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Recommended\",\"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/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/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/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/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/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/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/eastus2euap\",\"name\":\"eastus2euap\",\"displayName\":\"East - US 2 EUAP\",\"regionalDisplayName\":\"(US) East US 2 EUAP\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Other\",\"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/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/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\"}]}}]}" - headers: - cache-control: - - no-cache - content-length: - - '27465' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 26 Jun 2021 00:14:45 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 - ParameterSetName: - - --resource-group --name --location --generate-ssh-keys --enable-managed-identity - --enable-addons --enable-msi-auth-for-monitoring --node-count --assign-identity - User-Agent: - - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - AZURECLI/2.24.2 - 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"}],"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"],"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":[],"apiVersions":["2018-04-20"],"capabilities":"None"},{"resourceType":"components/metadata","locations":[],"apiVersions":["2018-04-20"],"capabilities":"None"},{"resourceType":"components/metrics","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","Brazil South","Switzerland North","Australia - Southeast","Norway East","Norway West"],"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"],"apiVersions":["2018-04-20"],"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"],"apiVersions":["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"],"apiVersions":["2020-02-10-preview"],"capabilities":"None"},{"resourceType":"scheduledqueryrules","locations":["Global","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"],"apiVersions":["2021-02-01-preview","2020-05-01-preview","2018-04-16","2017-09-01-preview"],"defaultApiVersion":"2018-04-16","capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"components/pricingPlans","locations":["East - US","South Central US","North Europe","West Europe","Southeast Asia","West - US 2"],"apiVersions":["2017-10-01"],"capabilities":"None"},{"resourceType":"migrateToNewPricingModel","locations":["East - US","South Central US","North Europe","West Europe","Southeast Asia","West - US 2"],"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"],"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"],"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"],"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","South Africa North","UAE North"],"apiVersions":["2016-03-01","2015-04-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","West - Europe","East Asia","Southeast Asia","Japan East","Japan West","North Central - US","Australia East","South Africa North","UAE North","Switzerland North","Germany - West Central","Norway East","West US 3","Jio India West"],"apiVersions":["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","South Africa North","UAE North","Switzerland - North","Germany West Central","Norway East","West US 3","Jio India West"],"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","South Africa North","UAE North","Switzerland - North","Germany West Central","Norway East","West US 3","Jio India West"],"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","South Africa North","UAE North","Switzerland - North","Germany West Central","Norway East","West US 3","Jio India West"],"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","West US 3","West Central - US","Korea South","Korea Central","UK South","UK West","France Central","South - Africa North","South Africa West","UAE North","Switzerland North","Germany - West Central","Norway East"],"apiVersions":["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"],"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","West US 3","West Central - US","Korea South","Korea Central","UK South","UK West","France Central","South - Africa North","South Africa West","UAE North","Switzerland North","Germany - West Central","Norway East"],"apiVersions":["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":[],"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","West US 3","West Central - US","Korea South","Korea Central","UK South","UK West","France Central","South - Africa North","South Africa West","UAE North","Switzerland North","Germany - West Central","Norway East"],"apiVersions":["2017-12-01-preview"],"capabilities":"SupportsExtension"},{"resourceType":"actiongroups","locations":["Global"],"apiVersions":["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":"baseline","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","South India","Central India","West India","North - Europe","Norway East","Germany West Central","Switzerland North","West US - 2","West Central US","Korea South","Korea Central","UK South","UK West","France - Central","South Africa North","UAE North"],"apiVersions":["2018-09-01","2017-11-01-preview"],"capabilities":"SupportsExtension"},{"resourceType":"metricbaselines","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","South India","Central India","West India","North - Europe","Norway East","Germany West Central","Switzerland North","West US - 2","West Central US","Korea South","Korea Central","UK South","UK West","France - Central","South Africa North","UAE North"],"apiVersions":["2019-03-01","2018-09-01"],"capabilities":"SupportsExtension"},{"resourceType":"calculatebaseline","locations":[],"apiVersions":["2018-09-01","2017-11-01-preview"],"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 - Central US","West US 3","Korea South"],"apiVersions":["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 - Central US","West US 3","Korea South"],"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"],"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"],"apiVersions":["2018-08-01-preview","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"],"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"],"apiVersions":["2019-10-17-preview"],"capabilities":"SupportsExtension"},{"resourceType":"generateLiveToken","locations":[],"apiVersions":["2020-06-02-preview"],"capabilities":"SupportsExtension"},{"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","France South","Norway West","UAE North","Japan West","Norway East","Switzerland - West"],"apiVersions":["2021-04-01","2019-11-01-preview"],"defaultApiVersion":"2019-11-01-preview","capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove, 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"],"apiVersions":["2021-04-01","2019-11-01-preview"],"defaultApiVersion":"2019-11-01-preview","capabilities":"SupportsExtension"},{"resourceType":"privateLinkScopes","locations":["Global"],"apiVersions":["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-07-01-preview","2019-10-17-preview"],"defaultApiVersion":"2019-10-17-preview","capabilities":"None"},{"resourceType":"privateLinkScopes/privateEndpointConnectionProxies","locations":["Global"],"apiVersions":["2021-07-01-preview","2019-10-17-preview"],"defaultApiVersion":"2019-10-17-preview","capabilities":"None"},{"resourceType":"privateLinkScopes/scopedResources","locations":["Global"],"apiVersions":["2021-07-01-preview","2019-10-17-preview"],"defaultApiVersion":"2019-10-17-preview","capabilities":"None"},{"resourceType":"components/linkedstorageaccounts","locations":["East - US","West Central 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"],"apiVersions":["2020-03-01-preview"],"capabilities":"None"},{"resourceType":"privateLinkScopeOperationStatuses","locations":["Global"],"apiVersions":["2021-07-01-preview","2019-10-17-preview"],"defaultApiVersion":"2019-10-17-preview","capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' - headers: - cache-control: - - no-cache - content-length: - - '24232' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 26 Jun 2021 00:14:46 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: '{"location": "westus2", "properties": {"dataFlows": [{"streams": ["Microsoft-Perf", - "Microsoft-ContainerInventory", "Microsoft-ContainerLog", "Microsoft-ContainerNodeInventory", - "Microsoft-KubeEvents", "Microsoft-KubeHealth", "Microsoft-KubeMonAgentEvents", - "Microsoft-KubeNodeInventory", "Microsoft-KubePodInventory", "Microsoft-KubePVInventory", - "Microsoft-KubeServices", "Microsoft-InsightsMetrics"], "destinations": ["la-workspace"]}], - "destinations": {"logAnalytics": [{"workspaceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2", - "name": "la-workspace"}]}}}' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - aks create - Connection: - - keep-alive - Content-Length: - - '731' - Content-Type: - - application/json - ParameterSetName: - - --resource-group --name --location --generate-ssh-keys --enable-managed-identity - --enable-addons --enable-msi-auth-for-monitoring --node-count --assign-identity - User-Agent: - - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - AZURECLI/2.24.2 - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/defaultresourcegroup-wus2/providers/Microsoft.Insights/dataCollectionRules/DCR-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2?api-version=2019-11-01-preview - response: - body: - string: '{"properties":{"immutableId":"dcr-5e049dc6e6b34e2287ad61e9eab62646","destinations":{"logAnalytics":[{"workspaceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2","workspaceId":"a6ec9525-4c1b-4ebf-80ad-1a1da5f6ca3c","name":"la-workspace"}]},"dataFlows":[{"streams":["Microsoft-Perf","Microsoft-ContainerInventory","Microsoft-ContainerLog","Microsoft-ContainerNodeInventory","Microsoft-KubeEvents","Microsoft-KubeHealth","Microsoft-KubeMonAgentEvents","Microsoft-KubeNodeInventory","Microsoft-KubePodInventory","Microsoft-KubePVInventory","Microsoft-KubeServices","Microsoft-InsightsMetrics"],"destinations":["la-workspace"]}],"provisioningState":"Succeeded"},"location":"westus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/defaultresourcegroup-wus2/providers/Microsoft.Insights/dataCollectionRules/DCR-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2","name":"DCR-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2","type":"Microsoft.Insights/dataCollectionRules","etag":"\"56001dd5-0000-0800-0000-60d671770000\""}' - headers: - api-supported-versions: - - 2019-11-01-preview, 2021-04-01 - cache-control: - - no-cache - content-length: - - '1227' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 26 Jun 2021 00:14: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 - 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", "properties": {"kubernetesVersion": "", "dnsPrefix": - "cliakstest-clitestigjzwzgpm-3b875b", "agentPoolProfiles": [{"count": 1, "vmSize": - "Standard_DS2_v2", "osType": "Linux", "type": "VirtualMachineScaleSets", "mode": - "System", "enableNodePublicIP": false, "scaleSetPriority": "Regular", "scaleSetEvictionPolicy": - "Delete", "enableEncryptionAtHost": false, "enableUltraSSD": false, "enableFIPS": - false, "name": "nodepool1"}], "linuxProfile": {"adminUsername": "azureuser", - "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCwztmLMdJZrXl6VTfbonQWAMXjuJkRzCW8Lmynohg0hz681LPQC7OenFR36PPz3tDNd90tjX3+khk0NkSBB8Dz+U1/ISOsR17++TmEFWLf1oiTTua/1K82pc8yGoFbDXIFAgMeJxpwYczjvL8BnDa9z3GrzYAEi1B6kbZyGAjc0rRoSb76nYF/dhtp+GtN5oo/qYEt8ogcPpQzlv3hM7AdcYuTHutWMHV7XA/bdhfcXL4jJLW/SPD9l0EAw6boMoOJ4W1X3OWFD0MGs1cphZNIXpOg5fBCN/x9eRmJ45fAGFH/plGh+i0UjQKoLd3eEy5pyAzJ+ttoQ3do3eKT56N0Zj//2Yp9HNxcoeLt4nK3IOE1gR2AdOFMPEloY/heaU82sYipKG4PBm1g8C3AtcS/wP0tQaw2KlCLMmEO6/AiNSPazkXVrbflnWPq2jukydGW+YJ4pD3ACZgTNYVT3JCr9gWCYnkhdvF//Us+3Q2jUJReIJArsOq5xBFEphkguket41AzifO07+s7DULHOkoisxxZALbOxIUdSvcRv5WpzPOTyyKIZB2UI190cK4aHT0+BGmpbhBiYc0lPikDEHqaaR0/Mgaq2RhUZ+zpqboMCuqpYu69pIhU/cz3dko+P272GutYId9YsTyzKIURp66mow40iL0MwzAML/DwugQ6nQ== - damichel@microsoft.com\n"}]}}, "addonProfiles": {"omsagent": {"enabled": true, - "config": {"logAnalyticsWorkspaceResourceID": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2", - "useAADAuth": "True"}}}, "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}, "identity": {"type": "UserAssigned", "userAssignedIdentities": {"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cliakstest000002_uai": - {}}}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - aks create - Connection: - - keep-alive - Content-Length: - - '2171' - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - --resource-group --name --location --generate-ssh-keys --enable-managed-identity - --enable-addons --enable-msi-auth-for-monitoring --node-count --assign-identity - User-Agent: - - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python - AZURECLI/2.24.2 - accept-language: - - en-US - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2021-05-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\": - \"Creating\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": - \"1.19.11\",\n \"dnsPrefix\": \"cliakstest-clitestigjzwzgpm-3b875b\",\n - \ \"fqdn\": \"cliakstest-clitestigjzwzgpm-3b875b-a9c56708.hcp.westus2.azmk8s.io\",\n - \ \"azurePortalFQDN\": \"cliakstest-clitestigjzwzgpm-3b875b-a9c56708.portal.hcp.westus2.azmk8s.io\",\n - \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": - 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": - \"Managed\",\n \"kubeletDiskType\": \"OS\",\n \"maxPods\": 110,\n - \ \"type\": \"VirtualMachineScaleSets\",\n \"provisioningState\": \"Creating\",\n - \ \"powerState\": {\n \"code\": \"Running\"\n },\n \"orchestratorVersion\": - \"1.19.11\",\n \"enableNodePublicIP\": false,\n \"nodeLabels\": {},\n - \ \"mode\": \"System\",\n \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\": - false,\n \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"nodeImageVersion\": - \"AKSUbuntu-1804gen2containerd-2021.06.02\",\n \"enableFIPS\": false\n - \ }\n ],\n \"linuxProfile\": {\n \"adminUsername\": \"azureuser\",\n - \ \"ssh\": {\n \"publicKeys\": [\n {\n \"keyData\": \"ssh-rsa - AAAAB3NzaC1yc2EAAAADAQABAAACAQCwztmLMdJZrXl6VTfbonQWAMXjuJkRzCW8Lmynohg0hz681LPQC7OenFR36PPz3tDNd90tjX3+khk0NkSBB8Dz+U1/ISOsR17++TmEFWLf1oiTTua/1K82pc8yGoFbDXIFAgMeJxpwYczjvL8BnDa9z3GrzYAEi1B6kbZyGAjc0rRoSb76nYF/dhtp+GtN5oo/qYEt8ogcPpQzlv3hM7AdcYuTHutWMHV7XA/bdhfcXL4jJLW/SPD9l0EAw6boMoOJ4W1X3OWFD0MGs1cphZNIXpOg5fBCN/x9eRmJ45fAGFH/plGh+i0UjQKoLd3eEy5pyAzJ+ttoQ3do3eKT56N0Zj//2Yp9HNxcoeLt4nK3IOE1gR2AdOFMPEloY/heaU82sYipKG4PBm1g8C3AtcS/wP0tQaw2KlCLMmEO6/AiNSPazkXVrbflnWPq2jukydGW+YJ4pD3ACZgTNYVT3JCr9gWCYnkhdvF//Us+3Q2jUJReIJArsOq5xBFEphkguket41AzifO07+s7DULHOkoisxxZALbOxIUdSvcRv5WpzPOTyyKIZB2UI190cK4aHT0+BGmpbhBiYc0lPikDEHqaaR0/Mgaq2RhUZ+zpqboMCuqpYu69pIhU/cz3dko+P272GutYId9YsTyzKIURp66mow40iL0MwzAML/DwugQ6nQ== - damichel@microsoft.com\\n\"\n }\n ]\n }\n },\n \"servicePrincipalProfile\": - {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \"addonProfiles\": - {\n \"omsagent\": {\n \"enabled\": true,\n \"config\": {\n \"logAnalyticsWorkspaceResourceID\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2\",\n - \ \"useAADAuth\": \"True\"\n }\n }\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 },\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 },\n \"maxAgentPools\": 100,\n \"disableLocalAccounts\": - false\n },\n \"identity\": {\n \"type\": \"UserAssigned\",\n \"userAssignedIdentities\": - {\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cliakstest000002_uai\": - {}\n }\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/2da6f6bd-e046-475e-b3df-c7cd92a55ad1?api-version=2016-03-30 - cache-control: - - no-cache - content-length: - - '3530' - content-type: - - application/json - date: - - Sat, 26 Jun 2021 00:14:53 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: - - '1198' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - aks create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --name --location --generate-ssh-keys --enable-managed-identity - --enable-addons --enable-msi-auth-for-monitoring --node-count --assign-identity - User-Agent: - - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python - AZURECLI/2.24.2 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/2da6f6bd-e046-475e-b3df-c7cd92a55ad1?api-version=2016-03-30 - response: - body: - string: "{\n \"name\": \"bdf6a62d-46e0-5e47-b3df-c7cd92a55ad1\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2021-06-26T00:14:53.88Z\"\n }" - headers: - cache-control: - - no-cache - content-length: - - '121' - content-type: - - application/json - date: - - Sat, 26 Jun 2021 00:15: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 - 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 --generate-ssh-keys --enable-managed-identity - --enable-addons --enable-msi-auth-for-monitoring --node-count --assign-identity - User-Agent: - - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python - AZURECLI/2.24.2 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/2da6f6bd-e046-475e-b3df-c7cd92a55ad1?api-version=2016-03-30 - response: - body: - string: "{\n \"name\": \"bdf6a62d-46e0-5e47-b3df-c7cd92a55ad1\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2021-06-26T00:14:53.88Z\"\n }" - headers: - cache-control: - - no-cache - content-length: - - '121' - content-type: - - application/json - date: - - Sat, 26 Jun 2021 00:15:54 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 create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --name --location --generate-ssh-keys --enable-managed-identity - --enable-addons --enable-msi-auth-for-monitoring --node-count --assign-identity - User-Agent: - - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python - AZURECLI/2.24.2 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/2da6f6bd-e046-475e-b3df-c7cd92a55ad1?api-version=2016-03-30 - response: - body: - string: "{\n \"name\": \"bdf6a62d-46e0-5e47-b3df-c7cd92a55ad1\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2021-06-26T00:14:53.88Z\"\n }" - headers: - cache-control: - - no-cache - content-length: - - '121' - content-type: - - application/json - date: - - Sat, 26 Jun 2021 00:16:24 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 create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --name --location --generate-ssh-keys --enable-managed-identity - --enable-addons --enable-msi-auth-for-monitoring --node-count --assign-identity - User-Agent: - - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python - AZURECLI/2.24.2 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/2da6f6bd-e046-475e-b3df-c7cd92a55ad1?api-version=2016-03-30 - response: - body: - string: "{\n \"name\": \"bdf6a62d-46e0-5e47-b3df-c7cd92a55ad1\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2021-06-26T00:14:53.88Z\"\n }" - headers: - cache-control: - - no-cache - content-length: - - '121' - content-type: - - application/json - date: - - Sat, 26 Jun 2021 00:16:55 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 create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --name --location --generate-ssh-keys --enable-managed-identity - --enable-addons --enable-msi-auth-for-monitoring --node-count --assign-identity - User-Agent: - - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python - AZURECLI/2.24.2 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/2da6f6bd-e046-475e-b3df-c7cd92a55ad1?api-version=2016-03-30 - response: - body: - string: "{\n \"name\": \"bdf6a62d-46e0-5e47-b3df-c7cd92a55ad1\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2021-06-26T00:14:53.88Z\"\n }" - headers: - cache-control: - - no-cache - content-length: - - '121' - content-type: - - application/json - date: - - Sat, 26 Jun 2021 00:17: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 - 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 --generate-ssh-keys --enable-managed-identity - --enable-addons --enable-msi-auth-for-monitoring --node-count --assign-identity - User-Agent: - - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python - AZURECLI/2.24.2 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/2da6f6bd-e046-475e-b3df-c7cd92a55ad1?api-version=2016-03-30 - response: - body: - string: "{\n \"name\": \"bdf6a62d-46e0-5e47-b3df-c7cd92a55ad1\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2021-06-26T00:14:53.88Z\"\n }" - headers: - cache-control: - - no-cache - content-length: - - '121' - content-type: - - application/json - date: - - Sat, 26 Jun 2021 00:17: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 - 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 --generate-ssh-keys --enable-managed-identity - --enable-addons --enable-msi-auth-for-monitoring --node-count --assign-identity - User-Agent: - - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python - AZURECLI/2.24.2 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/2da6f6bd-e046-475e-b3df-c7cd92a55ad1?api-version=2016-03-30 - response: - body: - string: "{\n \"name\": \"bdf6a62d-46e0-5e47-b3df-c7cd92a55ad1\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2021-06-26T00:14:53.88Z\"\n }" - headers: - cache-control: - - no-cache - content-length: - - '121' - content-type: - - application/json - date: - - Sat, 26 Jun 2021 00:18: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 - 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 --generate-ssh-keys --enable-managed-identity - --enable-addons --enable-msi-auth-for-monitoring --node-count --assign-identity - User-Agent: - - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python - AZURECLI/2.24.2 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/2da6f6bd-e046-475e-b3df-c7cd92a55ad1?api-version=2016-03-30 - response: - body: - string: "{\n \"name\": \"bdf6a62d-46e0-5e47-b3df-c7cd92a55ad1\",\n \"status\": - \"Succeeded\",\n \"startTime\": \"2021-06-26T00:14:53.88Z\",\n \"endTime\": - \"2021-06-26T00:18:35.8766009Z\"\n }" - headers: - cache-control: - - no-cache - content-length: - - '165' - content-type: - - application/json - date: - - Sat, 26 Jun 2021 00:18: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 - 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 --generate-ssh-keys --enable-managed-identity - --enable-addons --enable-msi-auth-for-monitoring --node-count --assign-identity - User-Agent: - - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python - AZURECLI/2.24.2 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2021-05-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.19.11\",\n \"dnsPrefix\": \"cliakstest-clitestigjzwzgpm-3b875b\",\n - \ \"fqdn\": \"cliakstest-clitestigjzwzgpm-3b875b-a9c56708.hcp.westus2.azmk8s.io\",\n - \ \"azurePortalFQDN\": \"cliakstest-clitestigjzwzgpm-3b875b-a9c56708.portal.hcp.westus2.azmk8s.io\",\n - \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": - 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": - \"Managed\",\n \"kubeletDiskType\": \"OS\",\n \"maxPods\": 110,\n - \ \"type\": \"VirtualMachineScaleSets\",\n \"provisioningState\": \"Succeeded\",\n - \ \"powerState\": {\n \"code\": \"Running\"\n },\n \"orchestratorVersion\": - \"1.19.11\",\n \"enableNodePublicIP\": false,\n \"nodeLabels\": {},\n - \ \"mode\": \"System\",\n \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\": - false,\n \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"nodeImageVersion\": - \"AKSUbuntu-1804gen2containerd-2021.06.02\",\n \"enableFIPS\": false\n - \ }\n ],\n \"linuxProfile\": {\n \"adminUsername\": \"azureuser\",\n - \ \"ssh\": {\n \"publicKeys\": [\n {\n \"keyData\": \"ssh-rsa - AAAAB3NzaC1yc2EAAAADAQABAAACAQCwztmLMdJZrXl6VTfbonQWAMXjuJkRzCW8Lmynohg0hz681LPQC7OenFR36PPz3tDNd90tjX3+khk0NkSBB8Dz+U1/ISOsR17++TmEFWLf1oiTTua/1K82pc8yGoFbDXIFAgMeJxpwYczjvL8BnDa9z3GrzYAEi1B6kbZyGAjc0rRoSb76nYF/dhtp+GtN5oo/qYEt8ogcPpQzlv3hM7AdcYuTHutWMHV7XA/bdhfcXL4jJLW/SPD9l0EAw6boMoOJ4W1X3OWFD0MGs1cphZNIXpOg5fBCN/x9eRmJ45fAGFH/plGh+i0UjQKoLd3eEy5pyAzJ+ttoQ3do3eKT56N0Zj//2Yp9HNxcoeLt4nK3IOE1gR2AdOFMPEloY/heaU82sYipKG4PBm1g8C3AtcS/wP0tQaw2KlCLMmEO6/AiNSPazkXVrbflnWPq2jukydGW+YJ4pD3ACZgTNYVT3JCr9gWCYnkhdvF//Us+3Q2jUJReIJArsOq5xBFEphkguket41AzifO07+s7DULHOkoisxxZALbOxIUdSvcRv5WpzPOTyyKIZB2UI190cK4aHT0+BGmpbhBiYc0lPikDEHqaaR0/Mgaq2RhUZ+zpqboMCuqpYu69pIhU/cz3dko+P272GutYId9YsTyzKIURp66mow40iL0MwzAML/DwugQ6nQ== - damichel@microsoft.com\\n\"\n }\n ]\n }\n },\n \"servicePrincipalProfile\": - {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \"addonProfiles\": - {\n \"omsagent\": {\n \"enabled\": true,\n \"config\": {\n \"logAnalyticsWorkspaceResourceID\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2\",\n - \ \"useAADAuth\": \"True\"\n },\n \"identity\": {\n \"resourceId\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.ManagedIdentity/userAssignedIdentities/omsagent-cliakstest000002\",\n - \ \"clientId\":\"00000000-0000-0000-0000-000000000001\",\n \"objectId\":\"00000000-0000-0000-0000-000000000001\"\n - \ }\n }\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/6f75c2c8-6016-43a8-8a21-38abf695ce95\"\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 },\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 },\n \"identity\": {\n - \ \"type\": \"UserAssigned\",\n \"userAssignedIdentities\": {\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cliakstest000002_uai\": - {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\",\n \"principalId\":\"00000000-0000-0000-0000-000000000001\"\n - \ }\n }\n },\n \"sku\": {\n \"name\": \"Basic\",\n \"tier\": \"Free\"\n - \ }\n }" - headers: - cache-control: - - no-cache - content-length: - - '4677' - content-type: - - application/json - date: - - Sat, 26 Jun 2021 00:18: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 - 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 --generate-ssh-keys --enable-managed-identity - --enable-addons --enable-msi-auth-for-monitoring --node-count --assign-identity - User-Agent: - - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-authorization/0.61.0 Azure-SDK-For-Python - AZURECLI/2.24.2 - accept-language: - - en-US - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/providers/Microsoft.Authorization/roleDefinitions?$filter=roleName%20eq%20%27Monitoring%20Metrics%20Publisher%27&api-version=2018-01-01-preview - response: - body: - string: '{"value":[{"properties":{"roleName":"Monitoring Metrics Publisher","type":"BuiltInRole","description":"Enables - publishing metrics against Azure resources","assignableScopes":["/"],"permissions":[{"actions":["Microsoft.Insights/Register/Action","Microsoft.Support/*","Microsoft.Resources/subscriptions/resourceGroups/read"],"notActions":[],"dataActions":["Microsoft.Insights/Metrics/Write"],"notDataActions":[]}],"createdOn":"2018-08-14T00:36:16.5610279Z","updatedOn":"2018-08-14T00:37:18.1465065Z","createdBy":null,"updatedBy":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/3913510d-42f4-4e42-8a64-420c390055eb","type":"Microsoft.Authorization/roleDefinitions","name":"3913510d-42f4-4e42-8a64-420c390055eb"}]}' - headers: - cache-control: - - no-cache - content-length: - - '776' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 26 Jun 2021 00:18:57 GMT - expires: - - '-1' - pragma: - - no-cache - set-cookie: - - x-ms-gateway-slice=Production; path=/; secure; samesite=none; httponly - 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: '{"properties": {"roleDefinitionId": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/3913510d-42f4-4e42-8a64-420c390055eb", - "principalId":"00000000-0000-0000-0000-000000000001"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - aks create - Connection: - - keep-alive - Content-Length: - - '233' - Content-Type: - - application/json; charset=utf-8 - Cookie: - - x-ms-gateway-slice=Production - ParameterSetName: - - --resource-group --name --location --generate-ssh-keys --enable-managed-identity - --enable-addons --enable-msi-auth-for-monitoring --node-count --assign-identity - User-Agent: - - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-authorization/0.61.0 Azure-SDK-For-Python - AZURECLI/2.24.2 - accept-language: - - en-US - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/providers/Microsoft.Authorization/roleAssignments/8e3ac925-cec6-4886-a28c-bf3b44afc21c?api-version=2020-04-01-preview - response: - body: - string: '{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/3913510d-42f4-4e42-8a64-420c390055eb","principalId":"00000000-0000-0000-0000-000000000001","principalType":"ServicePrincipal","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002","condition":null,"conditionVersion":null,"createdOn":"2021-06-26T00:18:58.6120013Z","updatedOn":"2021-06-26T00:18:58.8620452Z","createdBy":null,"updatedBy":"e98be497-f2d1-44cc-8439-9496116db13a","delegatedManagedIdentityResourceId":null,"description":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/providers/Microsoft.Authorization/roleAssignments/8e3ac925-cec6-4886-a28c-bf3b44afc21c","type":"Microsoft.Authorization/roleAssignments","name":"8e3ac925-cec6-4886-a28c-bf3b44afc21c"}' - headers: - cache-control: - - no-cache - content-length: - - '1029' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 26 Jun 2021 00:18:59 GMT - expires: - - '-1' - pragma: - - no-cache - set-cookie: - - x-ms-gateway-slice=Production; path=/; secure; samesite=none; httponly - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1198' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - aks create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --name --location --generate-ssh-keys --enable-managed-identity - --enable-addons --enable-msi-auth-for-monitoring --node-count --assign-identity - User-Agent: - - AZURECLI/2.24.2 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2?api-version=2015-11-01-preview - response: - body: - string: "{\r\n \"properties\": {\r\n \"source\": \"Azure\",\r\n \"customerId\": - \"a6ec9525-4c1b-4ebf-80ad-1a1da5f6ca3c\",\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"sku\": {\r\n \"name\": \"pergb2018\",\r\n \"lastSkuUpdate\": - \"Fri, 18 Jun 2021 21:03:33 GMT\"\r\n },\r\n \"retentionInDays\": 30,\r\n - \ \"features\": {\r\n \"legacy\": 0,\r\n \"searchVersion\": 1,\r\n - \ \"enableLogAccessUsingOnlyResourcePermissions\": true\r\n },\r\n - \ \"workspaceCapping\": {\r\n \"dailyQuotaGb\": -1.0,\r\n \"quotaNextResetTime\": - \"Sat, 26 Jun 2021 12:00:00 GMT\",\r\n \"dataIngestionStatus\": \"RespectQuota\"\r\n - \ },\r\n \"publicNetworkAccessForIngestion\": \"Enabled\",\r\n \"publicNetworkAccessForQuery\": - \"Enabled\",\r\n \"createdDate\": \"Fri, 18 Jun 2021 21:03:33 GMT\",\r\n - \ \"modifiedDate\": \"Sat, 26 Jun 2021 00:07:56 GMT\"\r\n },\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2\",\r\n - \ \"name\": \"DefaultWorkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-WUS2\",\r\n - \ \"type\": \"Microsoft.OperationalInsights/workspaces\",\r\n \"location\": - \"westus2\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '1161' - content-type: - - application/json - date: - - Sat, 26 Jun 2021 00:19:00 GMT - pragma: - - no-cache - server: - - Microsoft-IIS/10.0 - - Microsoft-IIS/10.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-powered-by: - - ASP.NET - - ASP.NET - status: - code: 200 - message: OK -- request: - body: '{"location": "westus2", "properties": {"dataCollectionRuleId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/defaultresourcegroup-wus2/providers/Microsoft.Insights/dataCollectionRules/DCR-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2", - "description": "routes monitoring data to a Log Analytics workspace"}}' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - aks create - Connection: - - keep-alive - Content-Length: - - '341' - Content-Type: - - application/json - ParameterSetName: - - --resource-group --name --location --generate-ssh-keys --enable-managed-identity - --enable-addons --enable-msi-auth-for-monitoring --node-count --assign-identity - User-Agent: - - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - AZURECLI/2.24.2 - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/providers/Microsoft.Insights/dataCollectionRuleAssociations/send-to-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2?api-version=2019-11-01-preview - response: - body: - string: '{"properties":{"description":"routes monitoring data to a Log Analytics - workspace","dataCollectionRuleId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/defaultresourcegroup-wus2/providers/Microsoft.Insights/dataCollectionRules/DCR-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/providers/Microsoft.Insights/dataCollectionRuleAssociations/send-to-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2","name":"send-to-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2","type":"Microsoft.Insights/dataCollectionRuleAssociations","etag":"\"560004dc-0000-0800-0000-60d672740000\""}' - headers: - api-supported-versions: - - 2019-11-01-preview, 2021-04-01 - cache-control: - - no-cache - content-length: - - '788' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 26 Jun 2021 00:19:00 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: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - rest - Connection: - - keep-alive - ParameterSetName: - - --method --url - User-Agent: - - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - AZURECLI/2.24.2 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/defaultresourcegroup-wus2/providers/Microsoft.Insights/dataCollectionRules/DCR-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2?api-version=2019-11-01-preview - response: - body: - string: '{"properties":{"immutableId":"dcr-5e049dc6e6b34e2287ad61e9eab62646","destinations":{"logAnalytics":[{"workspaceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2","workspaceId":"a6ec9525-4c1b-4ebf-80ad-1a1da5f6ca3c","name":"la-workspace"}]},"dataFlows":[{"streams":["Microsoft-Perf","Microsoft-ContainerInventory","Microsoft-ContainerLog","Microsoft-ContainerNodeInventory","Microsoft-KubeEvents","Microsoft-KubeHealth","Microsoft-KubeMonAgentEvents","Microsoft-KubeNodeInventory","Microsoft-KubePodInventory","Microsoft-KubePVInventory","Microsoft-KubeServices","Microsoft-InsightsMetrics"],"destinations":["la-workspace"]}],"provisioningState":"Succeeded"},"location":"westus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/defaultresourcegroup-wus2/providers/Microsoft.Insights/dataCollectionRules/DCR-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2","name":"DCR-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2","type":"Microsoft.Insights/dataCollectionRules","etag":"\"56001dd5-0000-0800-0000-60d671770000\""}' - headers: - api-supported-versions: - - 2019-11-01-preview, 2021-04-01 - cache-control: - - no-cache - content-length: - - '1227' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 26 Jun 2021 00:19:01 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 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - rest - Connection: - - keep-alive - ParameterSetName: - - --method --url - User-Agent: - - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - AZURECLI/2.24.2 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/providers/Microsoft.Insights/dataCollectionRuleAssociations/send-to-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2?api-version=2019-11-01-preview - response: - body: - string: '{"properties":{"description":"routes monitoring data to a Log Analytics - workspace","dataCollectionRuleId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/defaultresourcegroup-wus2/providers/Microsoft.Insights/dataCollectionRules/DCR-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/providers/Microsoft.Insights/dataCollectionRuleAssociations/send-to-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2","name":"send-to-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2","type":"Microsoft.Insights/dataCollectionRuleAssociations","etag":"\"560004dc-0000-0800-0000-60d672740000\""}' - headers: - api-supported-versions: - - 2019-11-01-preview, 2021-04-01 - cache-control: - - no-cache - content-length: - - '788' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 26 Jun 2021 00:19:01 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 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - rest - Connection: - - keep-alive - Content-Length: - - '0' - ParameterSetName: - - --method --url - User-Agent: - - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - AZURECLI/2.24.2 - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/providers/Microsoft.Insights/dataCollectionRuleAssociations/send-to-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2?api-version=2019-11-01-preview - response: - body: - string: '' - headers: - api-supported-versions: - - 2019-11-01-preview, 2021-04-01 - cache-control: - - no-cache - content-length: - - '0' - date: - - Sat, 26 Jun 2021 00:19:01 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 -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - rest - Connection: - - keep-alive - Content-Length: - - '0' - ParameterSetName: - - --method --url - User-Agent: - - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - AZURECLI/2.24.2 - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/defaultresourcegroup-wus2/providers/Microsoft.Insights/dataCollectionRules/DCR-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2?api-version=2019-11-01-preview - response: - body: - string: '{"error":{"code":"ExistingAssociationsPreventDelete","message":"Existing - associations prevent data collection rule from being deleted: \r\n/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest2wh6r5dlo6/providers/microsoft.containerservice/managedclusters/cliakstestdgr4yt/providers/microsoft.insights/datacollectionruleassociations/send-to-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2","details":[{"code":"ExistingAssociationsPreventDelete","message":"Existing - associations prevent data collection rule from being deleted: \r\n/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest2wh6r5dlo6/providers/microsoft.containerservice/managedclusters/cliakstestdgr4yt/providers/microsoft.insights/datacollectionruleassociations/send-to-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2"}]}}' - headers: - api-supported-versions: - - 2019-11-01-preview, 2021-04-01 - cache-control: - - no-cache - content-length: - - '849' - content-type: - - application/json - date: - - Sat, 26 Jun 2021 00:19:02 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: 400 - message: Bad Request -version: 1 diff --git a/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_with_monitoring_errors.yaml b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_with_monitoring_errors.yaml deleted file mode 100644 index 9b533049af6..00000000000 --- a/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_with_monitoring_errors.yaml +++ /dev/null @@ -1,1451 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - aks create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --name --location --enable-addons --enable-msi-auth-for-monitoring - --node-count - User-Agent: - - AZURECLI/2.24.2 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001?api-version=2020-10-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001","name":"clitest000001","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"product":"azurecli","cause":"automation","date":"2021-06-26T00:14:40Z"},"properties":{"provisioningState":"Succeeded"}}' - headers: - cache-control: - - no-cache - content-length: - - '313' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 26 Jun 2021 00:14:39 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 --enable-addons --enable-msi-auth-for-monitoring - --node-count - User-Agent: - - AZURECLI/2.24.2 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001?api-version=2020-10-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001","name":"clitest000001","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"product":"azurecli","cause":"automation","date":"2021-06-26T00:14:40Z"},"properties":{"provisioningState":"Succeeded"}}' - headers: - cache-control: - - no-cache - content-length: - - '313' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 26 Jun 2021 00:14:39 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 --enable-addons --enable-msi-auth-for-monitoring - --node-count - User-Agent: - - AZURECLI/2.24.2 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - method: HEAD - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/DefaultResourceGroup-WUS2?api-version=2020-10-01 - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - date: - - Sat, 26 Jun 2021 00:14:40 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - status: - code: 204 - message: No Content -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - aks create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --name --location --enable-addons --enable-msi-auth-for-monitoring - --node-count - User-Agent: - - AZURECLI/2.24.2 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/DefaultResourceGroup-WUS2/providers/Microsoft.OperationalInsights/workspaces/DefaultWorkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-WUS2?api-version=2015-11-01-preview - response: - body: - string: "{\r\n \"properties\": {\r\n \"source\": \"Azure\",\r\n \"customerId\": - \"a6ec9525-4c1b-4ebf-80ad-1a1da5f6ca3c\",\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"sku\": {\r\n \"name\": \"pergb2018\",\r\n \"lastSkuUpdate\": - \"Fri, 18 Jun 2021 21:03:33 GMT\"\r\n },\r\n \"retentionInDays\": 30,\r\n - \ \"features\": {\r\n \"legacy\": 0,\r\n \"searchVersion\": 1,\r\n - \ \"enableLogAccessUsingOnlyResourcePermissions\": true\r\n },\r\n - \ \"workspaceCapping\": {\r\n \"dailyQuotaGb\": -1.0,\r\n \"quotaNextResetTime\": - \"Sat, 26 Jun 2021 12:00:00 GMT\",\r\n \"dataIngestionStatus\": \"RespectQuota\"\r\n - \ },\r\n \"publicNetworkAccessForIngestion\": \"Enabled\",\r\n \"publicNetworkAccessForQuery\": - \"Enabled\",\r\n \"createdDate\": \"Fri, 18 Jun 2021 21:03:33 GMT\",\r\n - \ \"modifiedDate\": \"Sat, 26 Jun 2021 00:07:56 GMT\"\r\n },\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2\",\r\n - \ \"name\": \"DefaultWorkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-WUS2\",\r\n - \ \"type\": \"Microsoft.OperationalInsights/workspaces\",\r\n \"location\": - \"westus2\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '1161' - content-type: - - application/json - date: - - Sat, 26 Jun 2021 00:14:40 GMT - pragma: - - no-cache - server: - - Microsoft-IIS/10.0 - - Microsoft-IIS/10.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-powered-by: - - ASP.NET - - ASP.NET - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - aks create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --name --location --enable-addons --enable-msi-auth-for-monitoring - --node-count - User-Agent: - - AZURECLI/2.24.2 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2?api-version=2015-11-01-preview - response: - body: - string: "{\r\n \"properties\": {\r\n \"source\": \"Azure\",\r\n \"customerId\": - \"a6ec9525-4c1b-4ebf-80ad-1a1da5f6ca3c\",\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"sku\": {\r\n \"name\": \"pergb2018\",\r\n \"lastSkuUpdate\": - \"Fri, 18 Jun 2021 21:03:33 GMT\"\r\n },\r\n \"retentionInDays\": 30,\r\n - \ \"features\": {\r\n \"legacy\": 0,\r\n \"searchVersion\": 1,\r\n - \ \"enableLogAccessUsingOnlyResourcePermissions\": true\r\n },\r\n - \ \"workspaceCapping\": {\r\n \"dailyQuotaGb\": -1.0,\r\n \"quotaNextResetTime\": - \"Sat, 26 Jun 2021 12:00:00 GMT\",\r\n \"dataIngestionStatus\": \"RespectQuota\"\r\n - \ },\r\n \"publicNetworkAccessForIngestion\": \"Enabled\",\r\n \"publicNetworkAccessForQuery\": - \"Enabled\",\r\n \"createdDate\": \"Fri, 18 Jun 2021 21:03:33 GMT\",\r\n - \ \"modifiedDate\": \"Sat, 26 Jun 2021 00:07:56 GMT\"\r\n },\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2\",\r\n - \ \"name\": \"DefaultWorkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-WUS2\",\r\n - \ \"type\": \"Microsoft.OperationalInsights/workspaces\",\r\n \"location\": - \"westus2\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '1161' - content-type: - - application/json - date: - - Sat, 26 Jun 2021 00:14:40 GMT - pragma: - - no-cache - server: - - Microsoft-IIS/10.0 - - Microsoft-IIS/10.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-powered-by: - - ASP.NET - - ASP.NET - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - aks create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --name --location --enable-addons --enable-msi-auth-for-monitoring - --node-count - User-Agent: - - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - AZURECLI/2.24.2 - 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/northcentralus\",\"name\":\"northcentralus\",\"displayName\":\"North - Central US\",\"regionalDisplayName\":\"(US) North Central US\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Recommended\",\"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\":\"Recommended\",\"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/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/jioindiawest\",\"name\":\"jioindiawest\",\"displayName\":\"Jio - India West\",\"regionalDisplayName\":\"(Asia Pacific) Jio India West\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Recommended\",\"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/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/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/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/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/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/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/eastus2euap\",\"name\":\"eastus2euap\",\"displayName\":\"East - US 2 EUAP\",\"regionalDisplayName\":\"(US) East US 2 EUAP\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Other\",\"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/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/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\"}]}}]}" - headers: - cache-control: - - no-cache - content-length: - - '27465' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 26 Jun 2021 00:14:41 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 - ParameterSetName: - - --resource-group --name --location --enable-addons --enable-msi-auth-for-monitoring - --node-count - User-Agent: - - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - AZURECLI/2.24.2 - 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"}],"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"],"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":[],"apiVersions":["2018-04-20"],"capabilities":"None"},{"resourceType":"components/metadata","locations":[],"apiVersions":["2018-04-20"],"capabilities":"None"},{"resourceType":"components/metrics","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","Brazil South","Switzerland North","Australia - Southeast","Norway East","Norway West"],"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"],"apiVersions":["2018-04-20"],"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"],"apiVersions":["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"],"apiVersions":["2020-02-10-preview"],"capabilities":"None"},{"resourceType":"scheduledqueryrules","locations":["Global","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"],"apiVersions":["2021-02-01-preview","2020-05-01-preview","2018-04-16","2017-09-01-preview"],"defaultApiVersion":"2018-04-16","capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"components/pricingPlans","locations":["East - US","South Central US","North Europe","West Europe","Southeast Asia","West - US 2"],"apiVersions":["2017-10-01"],"capabilities":"None"},{"resourceType":"migrateToNewPricingModel","locations":["East - US","South Central US","North Europe","West Europe","Southeast Asia","West - US 2"],"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"],"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"],"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"],"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","South Africa North","UAE North"],"apiVersions":["2016-03-01","2015-04-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","West - Europe","East Asia","Southeast Asia","Japan East","Japan West","North Central - US","Australia East","South Africa North","UAE North","Switzerland North","Germany - West Central","Norway East","West US 3","Jio India West"],"apiVersions":["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","South Africa North","UAE North","Switzerland - North","Germany West Central","Norway East","West US 3","Jio India West"],"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","South Africa North","UAE North","Switzerland - North","Germany West Central","Norway East","West US 3","Jio India West"],"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","South Africa North","UAE North","Switzerland - North","Germany West Central","Norway East","West US 3","Jio India West"],"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","West US 3","West Central - US","Korea South","Korea Central","UK South","UK West","France Central","South - Africa North","South Africa West","UAE North","Switzerland North","Germany - West Central","Norway East"],"apiVersions":["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"],"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","West US 3","West Central - US","Korea South","Korea Central","UK South","UK West","France Central","South - Africa North","South Africa West","UAE North","Switzerland North","Germany - West Central","Norway East"],"apiVersions":["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":[],"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","West US 3","West Central - US","Korea South","Korea Central","UK South","UK West","France Central","South - Africa North","South Africa West","UAE North","Switzerland North","Germany - West Central","Norway East"],"apiVersions":["2017-12-01-preview"],"capabilities":"SupportsExtension"},{"resourceType":"actiongroups","locations":["Global"],"apiVersions":["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":"baseline","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","South India","Central India","West India","North - Europe","Norway East","Germany West Central","Switzerland North","West US - 2","West Central US","Korea South","Korea Central","UK South","UK West","France - Central","South Africa North","UAE North"],"apiVersions":["2018-09-01","2017-11-01-preview"],"capabilities":"SupportsExtension"},{"resourceType":"metricbaselines","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","South India","Central India","West India","North - Europe","Norway East","Germany West Central","Switzerland North","West US - 2","West Central US","Korea South","Korea Central","UK South","UK West","France - Central","South Africa North","UAE North"],"apiVersions":["2019-03-01","2018-09-01"],"capabilities":"SupportsExtension"},{"resourceType":"calculatebaseline","locations":[],"apiVersions":["2018-09-01","2017-11-01-preview"],"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 - Central US","West US 3","Korea South"],"apiVersions":["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 - Central US","West US 3","Korea South"],"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"],"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"],"apiVersions":["2018-08-01-preview","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"],"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"],"apiVersions":["2019-10-17-preview"],"capabilities":"SupportsExtension"},{"resourceType":"generateLiveToken","locations":[],"apiVersions":["2020-06-02-preview"],"capabilities":"SupportsExtension"},{"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","France South","Norway West","UAE North","Japan West","Norway East","Switzerland - West"],"apiVersions":["2021-04-01","2019-11-01-preview"],"defaultApiVersion":"2019-11-01-preview","capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove, 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"],"apiVersions":["2021-04-01","2019-11-01-preview"],"defaultApiVersion":"2019-11-01-preview","capabilities":"SupportsExtension"},{"resourceType":"privateLinkScopes","locations":["Global"],"apiVersions":["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-07-01-preview","2019-10-17-preview"],"defaultApiVersion":"2019-10-17-preview","capabilities":"None"},{"resourceType":"privateLinkScopes/privateEndpointConnectionProxies","locations":["Global"],"apiVersions":["2021-07-01-preview","2019-10-17-preview"],"defaultApiVersion":"2019-10-17-preview","capabilities":"None"},{"resourceType":"privateLinkScopes/scopedResources","locations":["Global"],"apiVersions":["2021-07-01-preview","2019-10-17-preview"],"defaultApiVersion":"2019-10-17-preview","capabilities":"None"},{"resourceType":"components/linkedstorageaccounts","locations":["East - US","West Central 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"],"apiVersions":["2020-03-01-preview"],"capabilities":"None"},{"resourceType":"privateLinkScopeOperationStatuses","locations":["Global"],"apiVersions":["2021-07-01-preview","2019-10-17-preview"],"defaultApiVersion":"2019-10-17-preview","capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' - headers: - cache-control: - - no-cache - content-length: - - '24232' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 26 Jun 2021 00:14:41 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: '{"location": "westus2", "properties": {"dataFlows": [{"streams": ["Microsoft-Perf", - "Microsoft-ContainerInventory", "Microsoft-ContainerLog", "Microsoft-ContainerNodeInventory", - "Microsoft-KubeEvents", "Microsoft-KubeHealth", "Microsoft-KubeMonAgentEvents", - "Microsoft-KubeNodeInventory", "Microsoft-KubePodInventory", "Microsoft-KubePVInventory", - "Microsoft-KubeServices", "Microsoft-InsightsMetrics"], "destinations": ["la-workspace"]}], - "destinations": {"logAnalytics": [{"workspaceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2", - "name": "la-workspace"}]}}}' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - aks create - Connection: - - keep-alive - Content-Length: - - '731' - Content-Type: - - application/json - ParameterSetName: - - --resource-group --name --location --enable-addons --enable-msi-auth-for-monitoring - --node-count - User-Agent: - - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - AZURECLI/2.24.2 - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/defaultresourcegroup-wus2/providers/Microsoft.Insights/dataCollectionRules/DCR-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2?api-version=2019-11-01-preview - response: - body: - string: '{"properties":{"immutableId":"dcr-5e049dc6e6b34e2287ad61e9eab62646","destinations":{"logAnalytics":[{"workspaceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2","workspaceId":"a6ec9525-4c1b-4ebf-80ad-1a1da5f6ca3c","name":"la-workspace"}]},"dataFlows":[{"streams":["Microsoft-Perf","Microsoft-ContainerInventory","Microsoft-ContainerLog","Microsoft-ContainerNodeInventory","Microsoft-KubeEvents","Microsoft-KubeHealth","Microsoft-KubeMonAgentEvents","Microsoft-KubeNodeInventory","Microsoft-KubePodInventory","Microsoft-KubePVInventory","Microsoft-KubeServices","Microsoft-InsightsMetrics"],"destinations":["la-workspace"]}],"provisioningState":"Succeeded"},"location":"westus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/defaultresourcegroup-wus2/providers/Microsoft.Insights/dataCollectionRules/DCR-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2","name":"DCR-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2","type":"Microsoft.Insights/dataCollectionRules","etag":"\"560015d5-0000-0800-0000-60d671720000\""}' - headers: - api-supported-versions: - - 2019-11-01-preview, 2021-04-01 - cache-control: - - no-cache - content-length: - - '1227' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 26 Jun 2021 00:14:43 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", "properties": {"kubernetesVersion": "", "dnsPrefix": - "cliakstest-clitest2wh6r5dlo-3b875b", "agentPoolProfiles": [{"count": 1, "vmSize": - "Standard_DS2_v2", "osType": "Linux", "type": "VirtualMachineScaleSets", "mode": - "System", "enableNodePublicIP": false, "scaleSetPriority": "Regular", "scaleSetEvictionPolicy": - "Delete", "enableEncryptionAtHost": false, "enableUltraSSD": false, "enableFIPS": - false, "name": "nodepool1"}], "linuxProfile": {"adminUsername": "azureuser", - "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCwztmLMdJZrXl6VTfbonQWAMXjuJkRzCW8Lmynohg0hz681LPQC7OenFR36PPz3tDNd90tjX3+khk0NkSBB8Dz+U1/ISOsR17++TmEFWLf1oiTTua/1K82pc8yGoFbDXIFAgMeJxpwYczjvL8BnDa9z3GrzYAEi1B6kbZyGAjc0rRoSb76nYF/dhtp+GtN5oo/qYEt8ogcPpQzlv3hM7AdcYuTHutWMHV7XA/bdhfcXL4jJLW/SPD9l0EAw6boMoOJ4W1X3OWFD0MGs1cphZNIXpOg5fBCN/x9eRmJ45fAGFH/plGh+i0UjQKoLd3eEy5pyAzJ+ttoQ3do3eKT56N0Zj//2Yp9HNxcoeLt4nK3IOE1gR2AdOFMPEloY/heaU82sYipKG4PBm1g8C3AtcS/wP0tQaw2KlCLMmEO6/AiNSPazkXVrbflnWPq2jukydGW+YJ4pD3ACZgTNYVT3JCr9gWCYnkhdvF//Us+3Q2jUJReIJArsOq5xBFEphkguket41AzifO07+s7DULHOkoisxxZALbOxIUdSvcRv5WpzPOTyyKIZB2UI190cK4aHT0+BGmpbhBiYc0lPikDEHqaaR0/Mgaq2RhUZ+zpqboMCuqpYu69pIhU/cz3dko+P272GutYId9YsTyzKIURp66mow40iL0MwzAML/DwugQ6nQ== - damichel@microsoft.com\n"}]}}, "addonProfiles": {"omsagent": {"enabled": true, - "config": {"logAnalyticsWorkspaceResourceID": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2", - "useAADAuth": "True"}}}, "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}, "identity": {"type": "SystemAssigned"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - aks create - Connection: - - keep-alive - Content-Length: - - '1973' - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - --resource-group --name --location --enable-addons --enable-msi-auth-for-monitoring - --node-count - User-Agent: - - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python - AZURECLI/2.24.2 - accept-language: - - en-US - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2021-05-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\": - \"Creating\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": - \"1.19.11\",\n \"dnsPrefix\": \"cliakstest-clitest2wh6r5dlo-3b875b\",\n - \ \"fqdn\": \"cliakstest-clitest2wh6r5dlo-3b875b-47eb6e25.hcp.westus2.azmk8s.io\",\n - \ \"azurePortalFQDN\": \"cliakstest-clitest2wh6r5dlo-3b875b-47eb6e25.portal.hcp.westus2.azmk8s.io\",\n - \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": - 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": - \"Managed\",\n \"kubeletDiskType\": \"OS\",\n \"maxPods\": 110,\n - \ \"type\": \"VirtualMachineScaleSets\",\n \"provisioningState\": \"Creating\",\n - \ \"powerState\": {\n \"code\": \"Running\"\n },\n \"orchestratorVersion\": - \"1.19.11\",\n \"enableNodePublicIP\": false,\n \"nodeLabels\": {},\n - \ \"mode\": \"System\",\n \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\": - false,\n \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"nodeImageVersion\": - \"AKSUbuntu-1804gen2containerd-2021.06.02\",\n \"enableFIPS\": false\n - \ }\n ],\n \"linuxProfile\": {\n \"adminUsername\": \"azureuser\",\n - \ \"ssh\": {\n \"publicKeys\": [\n {\n \"keyData\": \"ssh-rsa - AAAAB3NzaC1yc2EAAAADAQABAAACAQCwztmLMdJZrXl6VTfbonQWAMXjuJkRzCW8Lmynohg0hz681LPQC7OenFR36PPz3tDNd90tjX3+khk0NkSBB8Dz+U1/ISOsR17++TmEFWLf1oiTTua/1K82pc8yGoFbDXIFAgMeJxpwYczjvL8BnDa9z3GrzYAEi1B6kbZyGAjc0rRoSb76nYF/dhtp+GtN5oo/qYEt8ogcPpQzlv3hM7AdcYuTHutWMHV7XA/bdhfcXL4jJLW/SPD9l0EAw6boMoOJ4W1X3OWFD0MGs1cphZNIXpOg5fBCN/x9eRmJ45fAGFH/plGh+i0UjQKoLd3eEy5pyAzJ+ttoQ3do3eKT56N0Zj//2Yp9HNxcoeLt4nK3IOE1gR2AdOFMPEloY/heaU82sYipKG4PBm1g8C3AtcS/wP0tQaw2KlCLMmEO6/AiNSPazkXVrbflnWPq2jukydGW+YJ4pD3ACZgTNYVT3JCr9gWCYnkhdvF//Us+3Q2jUJReIJArsOq5xBFEphkguket41AzifO07+s7DULHOkoisxxZALbOxIUdSvcRv5WpzPOTyyKIZB2UI190cK4aHT0+BGmpbhBiYc0lPikDEHqaaR0/Mgaq2RhUZ+zpqboMCuqpYu69pIhU/cz3dko+P272GutYId9YsTyzKIURp66mow40iL0MwzAML/DwugQ6nQ== - damichel@microsoft.com\\n\"\n }\n ]\n }\n },\n \"servicePrincipalProfile\": - {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \"addonProfiles\": - {\n \"omsagent\": {\n \"enabled\": true,\n \"config\": {\n \"logAnalyticsWorkspaceResourceID\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2\",\n - \ \"useAADAuth\": \"True\"\n }\n }\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 },\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 },\n \"maxAgentPools\": 100,\n \"disableLocalAccounts\": - false\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/832e8e71-ea97-4283-9cfa-cd8693c5f8d6?api-version=2016-03-30 - cache-control: - - no-cache - content-length: - - '3433' - content-type: - - application/json - date: - - Sat, 26 Jun 2021 00:14:49 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - aks create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --name --location --enable-addons --enable-msi-auth-for-monitoring - --node-count - User-Agent: - - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python - AZURECLI/2.24.2 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/832e8e71-ea97-4283-9cfa-cd8693c5f8d6?api-version=2016-03-30 - response: - body: - string: "{\n \"name\": \"718e2e83-97ea-8342-9cfa-cd8693c5f8d6\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2021-06-26T00:14:49.7366666Z\"\n }" - headers: - cache-control: - - no-cache - content-length: - - '126' - content-type: - - application/json - date: - - Sat, 26 Jun 2021 00:15: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: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - aks create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --name --location --enable-addons --enable-msi-auth-for-monitoring - --node-count - User-Agent: - - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python - AZURECLI/2.24.2 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/832e8e71-ea97-4283-9cfa-cd8693c5f8d6?api-version=2016-03-30 - response: - body: - string: "{\n \"name\": \"718e2e83-97ea-8342-9cfa-cd8693c5f8d6\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2021-06-26T00:14:49.7366666Z\"\n }" - headers: - cache-control: - - no-cache - content-length: - - '126' - content-type: - - application/json - date: - - Sat, 26 Jun 2021 00:15: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: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - aks create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --name --location --enable-addons --enable-msi-auth-for-monitoring - --node-count - User-Agent: - - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python - AZURECLI/2.24.2 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/832e8e71-ea97-4283-9cfa-cd8693c5f8d6?api-version=2016-03-30 - response: - body: - string: "{\n \"name\": \"718e2e83-97ea-8342-9cfa-cd8693c5f8d6\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2021-06-26T00:14:49.7366666Z\"\n }" - headers: - cache-control: - - no-cache - content-length: - - '126' - content-type: - - application/json - date: - - Sat, 26 Jun 2021 00:16: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: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - aks create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --name --location --enable-addons --enable-msi-auth-for-monitoring - --node-count - User-Agent: - - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python - AZURECLI/2.24.2 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/832e8e71-ea97-4283-9cfa-cd8693c5f8d6?api-version=2016-03-30 - response: - body: - string: "{\n \"name\": \"718e2e83-97ea-8342-9cfa-cd8693c5f8d6\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2021-06-26T00:14:49.7366666Z\"\n }" - headers: - cache-control: - - no-cache - content-length: - - '126' - content-type: - - application/json - date: - - Sat, 26 Jun 2021 00:16: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: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - aks create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --name --location --enable-addons --enable-msi-auth-for-monitoring - --node-count - User-Agent: - - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python - AZURECLI/2.24.2 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/832e8e71-ea97-4283-9cfa-cd8693c5f8d6?api-version=2016-03-30 - response: - body: - string: "{\n \"name\": \"718e2e83-97ea-8342-9cfa-cd8693c5f8d6\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2021-06-26T00:14:49.7366666Z\"\n }" - headers: - cache-control: - - no-cache - content-length: - - '126' - content-type: - - application/json - date: - - Sat, 26 Jun 2021 00:17: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: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - aks create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --name --location --enable-addons --enable-msi-auth-for-monitoring - --node-count - User-Agent: - - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python - AZURECLI/2.24.2 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/832e8e71-ea97-4283-9cfa-cd8693c5f8d6?api-version=2016-03-30 - response: - body: - string: "{\n \"name\": \"718e2e83-97ea-8342-9cfa-cd8693c5f8d6\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2021-06-26T00:14:49.7366666Z\"\n }" - headers: - cache-control: - - no-cache - content-length: - - '126' - content-type: - - application/json - date: - - Sat, 26 Jun 2021 00:17: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: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - aks create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --name --location --enable-addons --enable-msi-auth-for-monitoring - --node-count - User-Agent: - - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python - AZURECLI/2.24.2 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/832e8e71-ea97-4283-9cfa-cd8693c5f8d6?api-version=2016-03-30 - response: - body: - string: "{\n \"name\": \"718e2e83-97ea-8342-9cfa-cd8693c5f8d6\",\n \"status\": - \"Succeeded\",\n \"startTime\": \"2021-06-26T00:14:49.7366666Z\",\n \"endTime\": - \"2021-06-26T00:18:19.9351125Z\"\n }" - headers: - cache-control: - - no-cache - content-length: - - '170' - content-type: - - application/json - date: - - Sat, 26 Jun 2021 00:18: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: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - aks create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --name --location --enable-addons --enable-msi-auth-for-monitoring - --node-count - User-Agent: - - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python - AZURECLI/2.24.2 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2021-05-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.19.11\",\n \"dnsPrefix\": \"cliakstest-clitest2wh6r5dlo-3b875b\",\n - \ \"fqdn\": \"cliakstest-clitest2wh6r5dlo-3b875b-47eb6e25.hcp.westus2.azmk8s.io\",\n - \ \"azurePortalFQDN\": \"cliakstest-clitest2wh6r5dlo-3b875b-47eb6e25.portal.hcp.westus2.azmk8s.io\",\n - \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": - 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": - \"Managed\",\n \"kubeletDiskType\": \"OS\",\n \"maxPods\": 110,\n - \ \"type\": \"VirtualMachineScaleSets\",\n \"provisioningState\": \"Succeeded\",\n - \ \"powerState\": {\n \"code\": \"Running\"\n },\n \"orchestratorVersion\": - \"1.19.11\",\n \"enableNodePublicIP\": false,\n \"nodeLabels\": {},\n - \ \"mode\": \"System\",\n \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\": - false,\n \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"nodeImageVersion\": - \"AKSUbuntu-1804gen2containerd-2021.06.02\",\n \"enableFIPS\": false\n - \ }\n ],\n \"linuxProfile\": {\n \"adminUsername\": \"azureuser\",\n - \ \"ssh\": {\n \"publicKeys\": [\n {\n \"keyData\": \"ssh-rsa - AAAAB3NzaC1yc2EAAAADAQABAAACAQCwztmLMdJZrXl6VTfbonQWAMXjuJkRzCW8Lmynohg0hz681LPQC7OenFR36PPz3tDNd90tjX3+khk0NkSBB8Dz+U1/ISOsR17++TmEFWLf1oiTTua/1K82pc8yGoFbDXIFAgMeJxpwYczjvL8BnDa9z3GrzYAEi1B6kbZyGAjc0rRoSb76nYF/dhtp+GtN5oo/qYEt8ogcPpQzlv3hM7AdcYuTHutWMHV7XA/bdhfcXL4jJLW/SPD9l0EAw6boMoOJ4W1X3OWFD0MGs1cphZNIXpOg5fBCN/x9eRmJ45fAGFH/plGh+i0UjQKoLd3eEy5pyAzJ+ttoQ3do3eKT56N0Zj//2Yp9HNxcoeLt4nK3IOE1gR2AdOFMPEloY/heaU82sYipKG4PBm1g8C3AtcS/wP0tQaw2KlCLMmEO6/AiNSPazkXVrbflnWPq2jukydGW+YJ4pD3ACZgTNYVT3JCr9gWCYnkhdvF//Us+3Q2jUJReIJArsOq5xBFEphkguket41AzifO07+s7DULHOkoisxxZALbOxIUdSvcRv5WpzPOTyyKIZB2UI190cK4aHT0+BGmpbhBiYc0lPikDEHqaaR0/Mgaq2RhUZ+zpqboMCuqpYu69pIhU/cz3dko+P272GutYId9YsTyzKIURp66mow40iL0MwzAML/DwugQ6nQ== - damichel@microsoft.com\\n\"\n }\n ]\n }\n },\n \"servicePrincipalProfile\": - {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \"addonProfiles\": - {\n \"omsagent\": {\n \"enabled\": true,\n \"config\": {\n \"logAnalyticsWorkspaceResourceID\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2\",\n - \ \"useAADAuth\": \"True\"\n },\n \"identity\": {\n \"resourceId\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.ManagedIdentity/userAssignedIdentities/omsagent-cliakstest000002\",\n - \ \"clientId\":\"00000000-0000-0000-0000-000000000001\",\n \"objectId\":\"00000000-0000-0000-0000-000000000001\"\n - \ }\n }\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/ba9ecfbd-69db-4668-a7ec-63f8b4936a56\"\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 },\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 },\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: - - '4459' - content-type: - - application/json - date: - - Sat, 26 Jun 2021 00:18: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: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - aks create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --name --location --enable-addons --enable-msi-auth-for-monitoring - --node-count - User-Agent: - - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-authorization/0.61.0 Azure-SDK-For-Python - AZURECLI/2.24.2 - accept-language: - - en-US - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/providers/Microsoft.Authorization/roleDefinitions?$filter=roleName%20eq%20%27Monitoring%20Metrics%20Publisher%27&api-version=2018-01-01-preview - response: - body: - string: '{"value":[{"properties":{"roleName":"Monitoring Metrics Publisher","type":"BuiltInRole","description":"Enables - publishing metrics against Azure resources","assignableScopes":["/"],"permissions":[{"actions":["Microsoft.Insights/Register/Action","Microsoft.Support/*","Microsoft.Resources/subscriptions/resourceGroups/read"],"notActions":[],"dataActions":["Microsoft.Insights/Metrics/Write"],"notDataActions":[]}],"createdOn":"2018-08-14T00:36:16.5610279Z","updatedOn":"2018-08-14T00:37:18.1465065Z","createdBy":null,"updatedBy":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/3913510d-42f4-4e42-8a64-420c390055eb","type":"Microsoft.Authorization/roleDefinitions","name":"3913510d-42f4-4e42-8a64-420c390055eb"}]}' - headers: - cache-control: - - no-cache - content-length: - - '776' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 26 Jun 2021 00:18:22 GMT - expires: - - '-1' - pragma: - - no-cache - set-cookie: - - x-ms-gateway-slice=Production; path=/; secure; samesite=none; httponly - 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: '{"properties": {"roleDefinitionId": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/3913510d-42f4-4e42-8a64-420c390055eb", - "principalId":"00000000-0000-0000-0000-000000000001"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - aks create - Connection: - - keep-alive - Content-Length: - - '233' - Content-Type: - - application/json; charset=utf-8 - Cookie: - - x-ms-gateway-slice=Production - ParameterSetName: - - --resource-group --name --location --enable-addons --enable-msi-auth-for-monitoring - --node-count - User-Agent: - - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-authorization/0.61.0 Azure-SDK-For-Python - AZURECLI/2.24.2 - accept-language: - - en-US - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/providers/Microsoft.Authorization/roleAssignments/ca33bc65-7baf-4aea-b2bc-5807275dc8ff?api-version=2020-04-01-preview - response: - body: - string: '{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/3913510d-42f4-4e42-8a64-420c390055eb","principalId":"00000000-0000-0000-0000-000000000001","principalType":"ServicePrincipal","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002","condition":null,"conditionVersion":null,"createdOn":"2021-06-26T00:18:23.4367949Z","updatedOn":"2021-06-26T00:18:23.6711507Z","createdBy":null,"updatedBy":"e98be497-f2d1-44cc-8439-9496116db13a","delegatedManagedIdentityResourceId":null,"description":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/providers/Microsoft.Authorization/roleAssignments/ca33bc65-7baf-4aea-b2bc-5807275dc8ff","type":"Microsoft.Authorization/roleAssignments","name":"ca33bc65-7baf-4aea-b2bc-5807275dc8ff"}' - headers: - cache-control: - - no-cache - content-length: - - '1029' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 26 Jun 2021 00:18:25 GMT - expires: - - '-1' - pragma: - - no-cache - set-cookie: - - x-ms-gateway-slice=Production; path=/; secure; samesite=none; httponly - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - aks create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --name --location --enable-addons --enable-msi-auth-for-monitoring - --node-count - User-Agent: - - AZURECLI/2.24.2 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2?api-version=2015-11-01-preview - response: - body: - string: "{\r\n \"properties\": {\r\n \"source\": \"Azure\",\r\n \"customerId\": - \"a6ec9525-4c1b-4ebf-80ad-1a1da5f6ca3c\",\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"sku\": {\r\n \"name\": \"pergb2018\",\r\n \"lastSkuUpdate\": - \"Fri, 18 Jun 2021 21:03:33 GMT\"\r\n },\r\n \"retentionInDays\": 30,\r\n - \ \"features\": {\r\n \"legacy\": 0,\r\n \"searchVersion\": 1,\r\n - \ \"enableLogAccessUsingOnlyResourcePermissions\": true\r\n },\r\n - \ \"workspaceCapping\": {\r\n \"dailyQuotaGb\": -1.0,\r\n \"quotaNextResetTime\": - \"Sat, 26 Jun 2021 12:00:00 GMT\",\r\n \"dataIngestionStatus\": \"RespectQuota\"\r\n - \ },\r\n \"publicNetworkAccessForIngestion\": \"Enabled\",\r\n \"publicNetworkAccessForQuery\": - \"Enabled\",\r\n \"createdDate\": \"Fri, 18 Jun 2021 21:03:33 GMT\",\r\n - \ \"modifiedDate\": \"Sat, 26 Jun 2021 00:07:56 GMT\"\r\n },\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2\",\r\n - \ \"name\": \"DefaultWorkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-WUS2\",\r\n - \ \"type\": \"Microsoft.OperationalInsights/workspaces\",\r\n \"location\": - \"westus2\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '1161' - content-type: - - application/json - date: - - Sat, 26 Jun 2021 00:18:25 GMT - pragma: - - no-cache - server: - - Microsoft-IIS/10.0 - - Microsoft-IIS/10.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-powered-by: - - ASP.NET - - ASP.NET - status: - code: 200 - message: OK -- request: - body: '{"location": "westus2", "properties": {"dataCollectionRuleId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/defaultresourcegroup-wus2/providers/Microsoft.Insights/dataCollectionRules/DCR-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2", - "description": "routes monitoring data to a Log Analytics workspace"}}' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - aks create - Connection: - - keep-alive - Content-Length: - - '341' - Content-Type: - - application/json - ParameterSetName: - - --resource-group --name --location --enable-addons --enable-msi-auth-for-monitoring - --node-count - User-Agent: - - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - AZURECLI/2.24.2 - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/providers/Microsoft.Insights/dataCollectionRuleAssociations/send-to-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2?api-version=2019-11-01-preview - response: - body: - string: '{"properties":{"description":"routes monitoring data to a Log Analytics - workspace","dataCollectionRuleId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/defaultresourcegroup-wus2/providers/Microsoft.Insights/dataCollectionRules/DCR-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/providers/Microsoft.Insights/dataCollectionRuleAssociations/send-to-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2","name":"send-to-defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2","type":"Microsoft.Insights/dataCollectionRuleAssociations","etag":"\"560022db-0000-0800-0000-60d672520000\""}' - headers: - api-supported-versions: - - 2019-11-01-preview, 2021-04-01 - cache-control: - - no-cache - content-length: - - '788' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 26 Jun 2021 00:18:25 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 -version: 1 diff --git a/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_with_monitoring_legacy_auth.yaml b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_with_monitoring_legacy_auth.yaml deleted file mode 100644 index d277b29eed4..00000000000 --- a/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_with_monitoring_legacy_auth.yaml +++ /dev/null @@ -1,1159 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - aks create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --name --location --generate-ssh-keys --enable-managed-identity - --enable-addons --node-count - User-Agent: - - AZURECLI/2.24.2 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001?api-version=2020-10-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001","name":"clitest000001","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"product":"azurecli","cause":"automation","date":"2021-06-26T00:41:49Z"},"properties":{"provisioningState":"Succeeded"}}' - headers: - cache-control: - - no-cache - content-length: - - '313' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 26 Jun 2021 00:41:49 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 --generate-ssh-keys --enable-managed-identity - --enable-addons --node-count - User-Agent: - - AZURECLI/2.24.2 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001?api-version=2020-10-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001","name":"clitest000001","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"product":"azurecli","cause":"automation","date":"2021-06-26T00:41:49Z"},"properties":{"provisioningState":"Succeeded"}}' - headers: - cache-control: - - no-cache - content-length: - - '313' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 26 Jun 2021 00:41:49 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 --generate-ssh-keys --enable-managed-identity - --enable-addons --node-count - User-Agent: - - AZURECLI/2.24.2 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - method: HEAD - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/DefaultResourceGroup-WUS2?api-version=2020-10-01 - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - date: - - Sat, 26 Jun 2021 00:41:49 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 --generate-ssh-keys --enable-managed-identity - --enable-addons --node-count - User-Agent: - - AZURECLI/2.24.2 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/DefaultResourceGroup-WUS2/providers/Microsoft.OperationalInsights/workspaces/DefaultWorkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-WUS2?api-version=2015-11-01-preview - response: - body: - string: "{\r\n \"properties\": {\r\n \"source\": \"Azure\",\r\n \"customerId\": - \"a6ec9525-4c1b-4ebf-80ad-1a1da5f6ca3c\",\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"sku\": {\r\n \"name\": \"pergb2018\",\r\n \"lastSkuUpdate\": - \"Fri, 18 Jun 2021 21:03:33 GMT\"\r\n },\r\n \"retentionInDays\": 30,\r\n - \ \"features\": {\r\n \"legacy\": 0,\r\n \"searchVersion\": 1,\r\n - \ \"enableLogAccessUsingOnlyResourcePermissions\": true\r\n },\r\n - \ \"workspaceCapping\": {\r\n \"dailyQuotaGb\": -1.0,\r\n \"quotaNextResetTime\": - \"Sat, 26 Jun 2021 12:00:00 GMT\",\r\n \"dataIngestionStatus\": \"RespectQuota\"\r\n - \ },\r\n \"publicNetworkAccessForIngestion\": \"Enabled\",\r\n \"publicNetworkAccessForQuery\": - \"Enabled\",\r\n \"createdDate\": \"Fri, 18 Jun 2021 21:03:33 GMT\",\r\n - \ \"modifiedDate\": \"Sat, 26 Jun 2021 00:07:56 GMT\"\r\n },\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2\",\r\n - \ \"name\": \"DefaultWorkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-WUS2\",\r\n - \ \"type\": \"Microsoft.OperationalInsights/workspaces\",\r\n \"location\": - \"westus2\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '1161' - content-type: - - application/json - date: - - Sat, 26 Jun 2021 00:41:49 GMT - pragma: - - no-cache - server: - - Microsoft-IIS/10.0 - - Microsoft-IIS/10.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-powered-by: - - ASP.NET - - ASP.NET - 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 --generate-ssh-keys --enable-managed-identity - --enable-addons --node-count - User-Agent: - - AZURECLI/2.24.2 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2?api-version=2015-11-01-preview - response: - body: - string: "{\r\n \"properties\": {\r\n \"source\": \"Azure\",\r\n \"customerId\": - \"a6ec9525-4c1b-4ebf-80ad-1a1da5f6ca3c\",\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"sku\": {\r\n \"name\": \"pergb2018\",\r\n \"lastSkuUpdate\": - \"Fri, 18 Jun 2021 21:03:33 GMT\"\r\n },\r\n \"retentionInDays\": 30,\r\n - \ \"features\": {\r\n \"legacy\": 0,\r\n \"searchVersion\": 1,\r\n - \ \"enableLogAccessUsingOnlyResourcePermissions\": true\r\n },\r\n - \ \"workspaceCapping\": {\r\n \"dailyQuotaGb\": -1.0,\r\n \"quotaNextResetTime\": - \"Sat, 26 Jun 2021 12:00:00 GMT\",\r\n \"dataIngestionStatus\": \"RespectQuota\"\r\n - \ },\r\n \"publicNetworkAccessForIngestion\": \"Enabled\",\r\n \"publicNetworkAccessForQuery\": - \"Enabled\",\r\n \"createdDate\": \"Fri, 18 Jun 2021 21:03:33 GMT\",\r\n - \ \"modifiedDate\": \"Sat, 26 Jun 2021 00:07:56 GMT\"\r\n },\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2\",\r\n - \ \"name\": \"DefaultWorkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-WUS2\",\r\n - \ \"type\": \"Microsoft.OperationalInsights/workspaces\",\r\n \"location\": - \"westus2\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '1161' - content-type: - - application/json - date: - - Sat, 26 Jun 2021 00:41:49 GMT - pragma: - - no-cache - server: - - Microsoft-IIS/10.0 - - Microsoft-IIS/10.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-powered-by: - - ASP.NET - - ASP.NET - status: - code: 200 - message: OK -- request: - body: '{"properties": {"template": {"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", "parameters": {"workspaceResourceId": {"type": - "string", "metadata": {"description": "Azure Monitor Log Analytics Resource - ID"}}, "workspaceRegion": {"type": "string", "metadata": {"description": "Azure - Monitor Log Analytics workspace region"}}, "solutionDeploymentName": {"type": - "string", "metadata": {"description": "Name of the solution deployment"}}}, - "resources": [{"type": "Microsoft.Resources/deployments", "name": "[parameters(''solutionDeploymentName'')]", - "apiVersion": "2017-05-10", "subscriptionId": "[split(parameters(''workspaceResourceId''),''/'')[2]]", - "resourceGroup": "[split(parameters(''workspaceResourceId''),''/'')[4]]", "properties": - {"mode": "Incremental", "template": {"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", "parameters": {}, "variables": {}, "resources": - [{"apiVersion": "2015-11-01-preview", "type": "Microsoft.OperationsManagement/solutions", - "location": "[parameters(''workspaceRegion'')]", "name": "[Concat(''ContainerInsights'', - ''('', split(parameters(''workspaceResourceId''),''/'')[8], '')'')]", "properties": - {"workspaceResourceId": "[parameters(''workspaceResourceId'')]"}, "plan": {"name": - "[Concat(''ContainerInsights'', ''('', split(parameters(''workspaceResourceId''),''/'')[8], - '')'')]", "product": "[Concat(''OMSGallery/'', ''ContainerInsights'')]", "promotionCode": - "", "publisher": "Microsoft"}}]}, "parameters": {}}}]}, "parameters": {"workspaceResourceId": - {"value": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2"}, - "workspaceRegion": {"value": "westus2"}, "solutionDeploymentName": {"value": - "ContainerInsights-1624668112254"}}, "mode": "incremental"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - aks create - Connection: - - keep-alive - Content-Length: - - '1956' - Content-Type: - - application/json - ParameterSetName: - - --resource-group --name --location --generate-ssh-keys --enable-managed-identity - --enable-addons --node-count - User-Agent: - - AZURECLI/2.24.2 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2020-10-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/defaultresourcegroup-wus2/providers/Microsoft.Resources/deployments/aks-monitoring-1624668112254","name":"aks-monitoring-1624668112254","type":"Microsoft.Resources/deployments","properties":{"templateHash":"7932017758444010137","parameters":{"workspaceResourceId":{"type":"String","value":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2"},"workspaceRegion":{"type":"String","value":"westus2"},"solutionDeploymentName":{"type":"String","value":"ContainerInsights-1624668112254"}},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2021-06-26T00:41:50.49261Z","duration":"PT0.0951924S","correlationId":"0a2a11e7-bf07-4e54-87dd-772b51eca3dd","providers":[{"namespace":"Microsoft.Resources","resourceTypes":[{"resourceType":"deployments","locations":[null]}]}],"dependencies":[]}}' - headers: - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/Microsoft.Resources/deployments/aks-monitoring-1624668112254/operationStatuses/08585769387750801946?api-version=2020-10-01 - cache-control: - - no-cache - content-length: - - '1020' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 26 Jun 2021 00:41:49 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - status: - code: 201 - message: Created -- request: - body: '{"location": "westus2", "properties": {"kubernetesVersion": "", "dnsPrefix": - "cliakstest-clitesth543hxdst-3b875b", "agentPoolProfiles": [{"count": 1, "vmSize": - "Standard_DS2_v2", "osType": "Linux", "type": "VirtualMachineScaleSets", "mode": - "System", "enableNodePublicIP": false, "scaleSetPriority": "Regular", "scaleSetEvictionPolicy": - "Delete", "enableEncryptionAtHost": false, "enableUltraSSD": false, "enableFIPS": - false, "name": "nodepool1"}], "linuxProfile": {"adminUsername": "azureuser", - "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCwztmLMdJZrXl6VTfbonQWAMXjuJkRzCW8Lmynohg0hz681LPQC7OenFR36PPz3tDNd90tjX3+khk0NkSBB8Dz+U1/ISOsR17++TmEFWLf1oiTTua/1K82pc8yGoFbDXIFAgMeJxpwYczjvL8BnDa9z3GrzYAEi1B6kbZyGAjc0rRoSb76nYF/dhtp+GtN5oo/qYEt8ogcPpQzlv3hM7AdcYuTHutWMHV7XA/bdhfcXL4jJLW/SPD9l0EAw6boMoOJ4W1X3OWFD0MGs1cphZNIXpOg5fBCN/x9eRmJ45fAGFH/plGh+i0UjQKoLd3eEy5pyAzJ+ttoQ3do3eKT56N0Zj//2Yp9HNxcoeLt4nK3IOE1gR2AdOFMPEloY/heaU82sYipKG4PBm1g8C3AtcS/wP0tQaw2KlCLMmEO6/AiNSPazkXVrbflnWPq2jukydGW+YJ4pD3ACZgTNYVT3JCr9gWCYnkhdvF//Us+3Q2jUJReIJArsOq5xBFEphkguket41AzifO07+s7DULHOkoisxxZALbOxIUdSvcRv5WpzPOTyyKIZB2UI190cK4aHT0+BGmpbhBiYc0lPikDEHqaaR0/Mgaq2RhUZ+zpqboMCuqpYu69pIhU/cz3dko+P272GutYId9YsTyzKIURp66mow40iL0MwzAML/DwugQ6nQ== - damichel@microsoft.com\n"}]}}, "addonProfiles": {"omsagent": {"enabled": true, - "config": {"logAnalyticsWorkspaceResourceID": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2", - "useAADAuth": "False"}}}, "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}, "identity": {"type": "SystemAssigned"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - aks create - Connection: - - keep-alive - Content-Length: - - '1974' - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - --resource-group --name --location --generate-ssh-keys --enable-managed-identity - --enable-addons --node-count - User-Agent: - - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python - AZURECLI/2.24.2 - accept-language: - - en-US - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2021-05-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\": - \"Creating\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": - \"1.19.11\",\n \"dnsPrefix\": \"cliakstest-clitesth543hxdst-3b875b\",\n - \ \"fqdn\": \"cliakstest-clitesth543hxdst-3b875b-44199b55.hcp.westus2.azmk8s.io\",\n - \ \"azurePortalFQDN\": \"cliakstest-clitesth543hxdst-3b875b-44199b55.portal.hcp.westus2.azmk8s.io\",\n - \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": - 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": - \"Managed\",\n \"kubeletDiskType\": \"OS\",\n \"maxPods\": 110,\n - \ \"type\": \"VirtualMachineScaleSets\",\n \"provisioningState\": \"Creating\",\n - \ \"powerState\": {\n \"code\": \"Running\"\n },\n \"orchestratorVersion\": - \"1.19.11\",\n \"enableNodePublicIP\": false,\n \"nodeLabels\": {},\n - \ \"mode\": \"System\",\n \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\": - false,\n \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"nodeImageVersion\": - \"AKSUbuntu-1804gen2containerd-2021.06.02\",\n \"enableFIPS\": false\n - \ }\n ],\n \"linuxProfile\": {\n \"adminUsername\": \"azureuser\",\n - \ \"ssh\": {\n \"publicKeys\": [\n {\n \"keyData\": \"ssh-rsa - AAAAB3NzaC1yc2EAAAADAQABAAACAQCwztmLMdJZrXl6VTfbonQWAMXjuJkRzCW8Lmynohg0hz681LPQC7OenFR36PPz3tDNd90tjX3+khk0NkSBB8Dz+U1/ISOsR17++TmEFWLf1oiTTua/1K82pc8yGoFbDXIFAgMeJxpwYczjvL8BnDa9z3GrzYAEi1B6kbZyGAjc0rRoSb76nYF/dhtp+GtN5oo/qYEt8ogcPpQzlv3hM7AdcYuTHutWMHV7XA/bdhfcXL4jJLW/SPD9l0EAw6boMoOJ4W1X3OWFD0MGs1cphZNIXpOg5fBCN/x9eRmJ45fAGFH/plGh+i0UjQKoLd3eEy5pyAzJ+ttoQ3do3eKT56N0Zj//2Yp9HNxcoeLt4nK3IOE1gR2AdOFMPEloY/heaU82sYipKG4PBm1g8C3AtcS/wP0tQaw2KlCLMmEO6/AiNSPazkXVrbflnWPq2jukydGW+YJ4pD3ACZgTNYVT3JCr9gWCYnkhdvF//Us+3Q2jUJReIJArsOq5xBFEphkguket41AzifO07+s7DULHOkoisxxZALbOxIUdSvcRv5WpzPOTyyKIZB2UI190cK4aHT0+BGmpbhBiYc0lPikDEHqaaR0/Mgaq2RhUZ+zpqboMCuqpYu69pIhU/cz3dko+P272GutYId9YsTyzKIURp66mow40iL0MwzAML/DwugQ6nQ== - damichel@microsoft.com\\n\"\n }\n ]\n }\n },\n \"servicePrincipalProfile\": - {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \"addonProfiles\": - {\n \"omsagent\": {\n \"enabled\": true,\n \"config\": {\n \"logAnalyticsWorkspaceResourceID\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2\",\n - \ \"useAADAuth\": \"False\"\n }\n }\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 },\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 },\n \"maxAgentPools\": 100,\n \"disableLocalAccounts\": - false\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/64a1df12-d146-4f57-abe6-50e5fbc5d150?api-version=2016-03-30 - cache-control: - - no-cache - content-length: - - '3434' - content-type: - - application/json - date: - - Sat, 26 Jun 2021 00:41:56 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - aks create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --name --location --generate-ssh-keys --enable-managed-identity - --enable-addons --node-count - User-Agent: - - AZURECLI/2.24.2 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585769387750801946?api-version=2020-10-01 - response: - body: - string: '{"status":"Succeeded"}' - headers: - cache-control: - - no-cache - content-length: - - '22' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 26 Jun 2021 00:42:19 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 - ParameterSetName: - - --resource-group --name --location --generate-ssh-keys --enable-managed-identity - --enable-addons --node-count - User-Agent: - - AZURECLI/2.24.2 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2020-10-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/defaultresourcegroup-wus2/providers/Microsoft.Resources/deployments/aks-monitoring-1624668112254","name":"aks-monitoring-1624668112254","type":"Microsoft.Resources/deployments","properties":{"templateHash":"7932017758444010137","parameters":{"workspaceResourceId":{"type":"String","value":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2"},"workspaceRegion":{"type":"String","value":"westus2"},"solutionDeploymentName":{"type":"String","value":"ContainerInsights-1624668112254"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2021-06-26T00:41:53.0594674Z","duration":"PT2.6620498S","correlationId":"0a2a11e7-bf07-4e54-87dd-772b51eca3dd","providers":[{"namespace":"Microsoft.Resources","resourceTypes":[{"resourceType":"deployments","locations":[null]}]}],"dependencies":[],"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/defaultresourcegroup-wus2/providers/Microsoft.OperationsManagement/solutions/ContainerInsights(defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2)"}]}}' - headers: - cache-control: - - no-cache - content-length: - - '1274' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 26 Jun 2021 00:42:19 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 --generate-ssh-keys --enable-managed-identity - --enable-addons --node-count - User-Agent: - - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python - AZURECLI/2.24.2 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/64a1df12-d146-4f57-abe6-50e5fbc5d150?api-version=2016-03-30 - response: - body: - string: "{\n \"name\": \"12dfa164-46d1-574f-abe6-50e5fbc5d150\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2021-06-26T00:41:57.03Z\"\n }" - headers: - cache-control: - - no-cache - content-length: - - '121' - content-type: - - application/json - date: - - Sat, 26 Jun 2021 00:42: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 create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --name --location --generate-ssh-keys --enable-managed-identity - --enable-addons --node-count - User-Agent: - - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python - AZURECLI/2.24.2 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/64a1df12-d146-4f57-abe6-50e5fbc5d150?api-version=2016-03-30 - response: - body: - string: "{\n \"name\": \"12dfa164-46d1-574f-abe6-50e5fbc5d150\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2021-06-26T00:41:57.03Z\"\n }" - headers: - cache-control: - - no-cache - content-length: - - '121' - content-type: - - application/json - date: - - Sat, 26 Jun 2021 00:42:57 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 create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --name --location --generate-ssh-keys --enable-managed-identity - --enable-addons --node-count - User-Agent: - - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python - AZURECLI/2.24.2 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/64a1df12-d146-4f57-abe6-50e5fbc5d150?api-version=2016-03-30 - response: - body: - string: "{\n \"name\": \"12dfa164-46d1-574f-abe6-50e5fbc5d150\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2021-06-26T00:41:57.03Z\"\n }" - headers: - cache-control: - - no-cache - content-length: - - '121' - content-type: - - application/json - date: - - Sat, 26 Jun 2021 00:43: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: - - 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 --generate-ssh-keys --enable-managed-identity - --enable-addons --node-count - User-Agent: - - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python - AZURECLI/2.24.2 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/64a1df12-d146-4f57-abe6-50e5fbc5d150?api-version=2016-03-30 - response: - body: - string: "{\n \"name\": \"12dfa164-46d1-574f-abe6-50e5fbc5d150\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2021-06-26T00:41:57.03Z\"\n }" - headers: - cache-control: - - no-cache - content-length: - - '121' - content-type: - - application/json - date: - - Sat, 26 Jun 2021 00:43:57 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 create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --name --location --generate-ssh-keys --enable-managed-identity - --enable-addons --node-count - User-Agent: - - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python - AZURECLI/2.24.2 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/64a1df12-d146-4f57-abe6-50e5fbc5d150?api-version=2016-03-30 - response: - body: - string: "{\n \"name\": \"12dfa164-46d1-574f-abe6-50e5fbc5d150\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2021-06-26T00:41:57.03Z\"\n }" - headers: - cache-control: - - no-cache - content-length: - - '121' - content-type: - - application/json - date: - - Sat, 26 Jun 2021 00:44: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: - - 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 --generate-ssh-keys --enable-managed-identity - --enable-addons --node-count - User-Agent: - - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python - AZURECLI/2.24.2 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/64a1df12-d146-4f57-abe6-50e5fbc5d150?api-version=2016-03-30 - response: - body: - string: "{\n \"name\": \"12dfa164-46d1-574f-abe6-50e5fbc5d150\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2021-06-26T00:41:57.03Z\"\n }" - headers: - cache-control: - - no-cache - content-length: - - '121' - content-type: - - application/json - date: - - Sat, 26 Jun 2021 00:44:57 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 create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --name --location --generate-ssh-keys --enable-managed-identity - --enable-addons --node-count - User-Agent: - - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python - AZURECLI/2.24.2 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/64a1df12-d146-4f57-abe6-50e5fbc5d150?api-version=2016-03-30 - response: - body: - string: "{\n \"name\": \"12dfa164-46d1-574f-abe6-50e5fbc5d150\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2021-06-26T00:41:57.03Z\"\n }" - headers: - cache-control: - - no-cache - content-length: - - '121' - content-type: - - application/json - date: - - Sat, 26 Jun 2021 00:45: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 create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --name --location --generate-ssh-keys --enable-managed-identity - --enable-addons --node-count - User-Agent: - - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python - AZURECLI/2.24.2 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/64a1df12-d146-4f57-abe6-50e5fbc5d150?api-version=2016-03-30 - response: - body: - string: "{\n \"name\": \"12dfa164-46d1-574f-abe6-50e5fbc5d150\",\n \"status\": - \"Succeeded\",\n \"startTime\": \"2021-06-26T00:41:57.03Z\",\n \"endTime\": - \"2021-06-26T00:45:32.2756563Z\"\n }" - headers: - cache-control: - - no-cache - content-length: - - '165' - content-type: - - application/json - date: - - Sat, 26 Jun 2021 00:45: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: 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 --generate-ssh-keys --enable-managed-identity - --enable-addons --node-count - User-Agent: - - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python - AZURECLI/2.24.2 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2021-05-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.19.11\",\n \"dnsPrefix\": \"cliakstest-clitesth543hxdst-3b875b\",\n - \ \"fqdn\": \"cliakstest-clitesth543hxdst-3b875b-44199b55.hcp.westus2.azmk8s.io\",\n - \ \"azurePortalFQDN\": \"cliakstest-clitesth543hxdst-3b875b-44199b55.portal.hcp.westus2.azmk8s.io\",\n - \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": - 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": - \"Managed\",\n \"kubeletDiskType\": \"OS\",\n \"maxPods\": 110,\n - \ \"type\": \"VirtualMachineScaleSets\",\n \"provisioningState\": \"Succeeded\",\n - \ \"powerState\": {\n \"code\": \"Running\"\n },\n \"orchestratorVersion\": - \"1.19.11\",\n \"enableNodePublicIP\": false,\n \"nodeLabels\": {},\n - \ \"mode\": \"System\",\n \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\": - false,\n \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"nodeImageVersion\": - \"AKSUbuntu-1804gen2containerd-2021.06.02\",\n \"enableFIPS\": false\n - \ }\n ],\n \"linuxProfile\": {\n \"adminUsername\": \"azureuser\",\n - \ \"ssh\": {\n \"publicKeys\": [\n {\n \"keyData\": \"ssh-rsa - AAAAB3NzaC1yc2EAAAADAQABAAACAQCwztmLMdJZrXl6VTfbonQWAMXjuJkRzCW8Lmynohg0hz681LPQC7OenFR36PPz3tDNd90tjX3+khk0NkSBB8Dz+U1/ISOsR17++TmEFWLf1oiTTua/1K82pc8yGoFbDXIFAgMeJxpwYczjvL8BnDa9z3GrzYAEi1B6kbZyGAjc0rRoSb76nYF/dhtp+GtN5oo/qYEt8ogcPpQzlv3hM7AdcYuTHutWMHV7XA/bdhfcXL4jJLW/SPD9l0EAw6boMoOJ4W1X3OWFD0MGs1cphZNIXpOg5fBCN/x9eRmJ45fAGFH/plGh+i0UjQKoLd3eEy5pyAzJ+ttoQ3do3eKT56N0Zj//2Yp9HNxcoeLt4nK3IOE1gR2AdOFMPEloY/heaU82sYipKG4PBm1g8C3AtcS/wP0tQaw2KlCLMmEO6/AiNSPazkXVrbflnWPq2jukydGW+YJ4pD3ACZgTNYVT3JCr9gWCYnkhdvF//Us+3Q2jUJReIJArsOq5xBFEphkguket41AzifO07+s7DULHOkoisxxZALbOxIUdSvcRv5WpzPOTyyKIZB2UI190cK4aHT0+BGmpbhBiYc0lPikDEHqaaR0/Mgaq2RhUZ+zpqboMCuqpYu69pIhU/cz3dko+P272GutYId9YsTyzKIURp66mow40iL0MwzAML/DwugQ6nQ== - damichel@microsoft.com\\n\"\n }\n ]\n }\n },\n \"servicePrincipalProfile\": - {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \"addonProfiles\": - {\n \"omsagent\": {\n \"enabled\": true,\n \"config\": {\n \"logAnalyticsWorkspaceResourceID\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2\",\n - \ \"useAADAuth\": \"False\"\n },\n \"identity\": {\n \"resourceId\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.ManagedIdentity/userAssignedIdentities/omsagent-cliakstest000002\",\n - \ \"clientId\":\"00000000-0000-0000-0000-000000000001\",\n \"objectId\":\"00000000-0000-0000-0000-000000000001\"\n - \ }\n }\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/10e83540-c961-43e6-ae16-3bd2101d3df6\"\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 },\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 },\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: - - '4460' - content-type: - - application/json - date: - - Sat, 26 Jun 2021 00:45: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: 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 --generate-ssh-keys --enable-managed-identity - --enable-addons --node-count - User-Agent: - - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-authorization/0.61.0 Azure-SDK-For-Python - AZURECLI/2.24.2 - accept-language: - - en-US - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/providers/Microsoft.Authorization/roleDefinitions?$filter=roleName%20eq%20%27Monitoring%20Metrics%20Publisher%27&api-version=2018-01-01-preview - response: - body: - string: '{"value":[{"properties":{"roleName":"Monitoring Metrics Publisher","type":"BuiltInRole","description":"Enables - publishing metrics against Azure resources","assignableScopes":["/"],"permissions":[{"actions":["Microsoft.Insights/Register/Action","Microsoft.Support/*","Microsoft.Resources/subscriptions/resourceGroups/read"],"notActions":[],"dataActions":["Microsoft.Insights/Metrics/Write"],"notDataActions":[]}],"createdOn":"2018-08-14T00:36:16.5610279Z","updatedOn":"2018-08-14T00:37:18.1465065Z","createdBy":null,"updatedBy":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/3913510d-42f4-4e42-8a64-420c390055eb","type":"Microsoft.Authorization/roleDefinitions","name":"3913510d-42f4-4e42-8a64-420c390055eb"}]}' - headers: - cache-control: - - no-cache - content-length: - - '776' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 26 Jun 2021 00:46:00 GMT - expires: - - '-1' - pragma: - - no-cache - set-cookie: - - x-ms-gateway-slice=Production; path=/; secure; samesite=none; httponly - 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: '{"properties": {"roleDefinitionId": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/3913510d-42f4-4e42-8a64-420c390055eb", - "principalId":"00000000-0000-0000-0000-000000000001"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - aks create - Connection: - - keep-alive - Content-Length: - - '233' - Content-Type: - - application/json; charset=utf-8 - Cookie: - - x-ms-gateway-slice=Production - ParameterSetName: - - --resource-group --name --location --generate-ssh-keys --enable-managed-identity - --enable-addons --node-count - User-Agent: - - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-authorization/0.61.0 Azure-SDK-For-Python - AZURECLI/2.24.2 - accept-language: - - en-US - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/providers/Microsoft.Authorization/roleAssignments/b5cc4043-869e-4727-bbd4-b203a5810a84?api-version=2020-04-01-preview - response: - body: - string: '{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/3913510d-42f4-4e42-8a64-420c390055eb","principalId":"00000000-0000-0000-0000-000000000001","principalType":"ServicePrincipal","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002","condition":null,"conditionVersion":null,"createdOn":"2021-06-26T00:46:00.6087831Z","updatedOn":"2021-06-26T00:46:00.8431524Z","createdBy":null,"updatedBy":"e98be497-f2d1-44cc-8439-9496116db13a","delegatedManagedIdentityResourceId":null,"description":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/providers/Microsoft.Authorization/roleAssignments/b5cc4043-869e-4727-bbd4-b203a5810a84","type":"Microsoft.Authorization/roleAssignments","name":"b5cc4043-869e-4727-bbd4-b203a5810a84"}' - headers: - cache-control: - - no-cache - content-length: - - '1029' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 26 Jun 2021 00:46:02 GMT - expires: - - '-1' - pragma: - - no-cache - set-cookie: - - x-ms-gateway-slice=Production; path=/; secure; samesite=none; httponly - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1198' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - aks delete - Connection: - - keep-alive - Content-Length: - - '0' - ParameterSetName: - - -g -n --yes --no-wait - User-Agent: - - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python - AZURECLI/2.24.2 - accept-language: - - en-US - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2021-03-01 - response: - body: - string: '' - headers: - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/ade05aec-c8df-4807-ad08-58ae8112adaa?api-version=2016-03-30 - cache-control: - - no-cache - content-length: - - '0' - date: - - Sat, 26 Jun 2021 00:46:03 GMT - expires: - - '-1' - location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operationresults/ade05aec-c8df-4807-ad08-58ae8112adaa?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_enable_addons_monitoring_errors.yaml b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_enable_addons_monitoring_errors.yaml deleted file mode 100644 index fd89a4de5b6..00000000000 --- a/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_enable_addons_monitoring_errors.yaml +++ /dev/null @@ -1,793 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - aks create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --name --location --node-count - User-Agent: - - AZURECLI/2.24.2 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001?api-version=2020-10-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001","name":"clitest000001","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"product":"azurecli","cause":"automation","date":"2021-06-26T00:41:49Z"},"properties":{"provisioningState":"Succeeded"}}' - headers: - cache-control: - - no-cache - content-length: - - '313' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 26 Jun 2021 00:41:49 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: '{"location": "westus2", "properties": {"kubernetesVersion": "", "dnsPrefix": - "cliakstest-clitestdawhbgpmo-3b875b", "agentPoolProfiles": [{"count": 1, "vmSize": - "Standard_DS2_v2", "osType": "Linux", "type": "VirtualMachineScaleSets", "mode": - "System", "enableNodePublicIP": false, "scaleSetPriority": "Regular", "scaleSetEvictionPolicy": - "Delete", "enableEncryptionAtHost": false, "enableUltraSSD": false, "enableFIPS": - false, "name": "nodepool1"}], "linuxProfile": {"adminUsername": "azureuser", - "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCwztmLMdJZrXl6VTfbonQWAMXjuJkRzCW8Lmynohg0hz681LPQC7OenFR36PPz3tDNd90tjX3+khk0NkSBB8Dz+U1/ISOsR17++TmEFWLf1oiTTua/1K82pc8yGoFbDXIFAgMeJxpwYczjvL8BnDa9z3GrzYAEi1B6kbZyGAjc0rRoSb76nYF/dhtp+GtN5oo/qYEt8ogcPpQzlv3hM7AdcYuTHutWMHV7XA/bdhfcXL4jJLW/SPD9l0EAw6boMoOJ4W1X3OWFD0MGs1cphZNIXpOg5fBCN/x9eRmJ45fAGFH/plGh+i0UjQKoLd3eEy5pyAzJ+ttoQ3do3eKT56N0Zj//2Yp9HNxcoeLt4nK3IOE1gR2AdOFMPEloY/heaU82sYipKG4PBm1g8C3AtcS/wP0tQaw2KlCLMmEO6/AiNSPazkXVrbflnWPq2jukydGW+YJ4pD3ACZgTNYVT3JCr9gWCYnkhdvF//Us+3Q2jUJReIJArsOq5xBFEphkguket41AzifO07+s7DULHOkoisxxZALbOxIUdSvcRv5WpzPOTyyKIZB2UI190cK4aHT0+BGmpbhBiYc0lPikDEHqaaR0/Mgaq2RhUZ+zpqboMCuqpYu69pIhU/cz3dko+P272GutYId9YsTyzKIURp66mow40iL0MwzAML/DwugQ6nQ== - damichel@microsoft.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}, "identity": {"type": "SystemAssigned"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - aks create - Connection: - - keep-alive - Content-Length: - - '1669' - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - --resource-group --name --location --node-count - User-Agent: - - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python - AZURECLI/2.24.2 - accept-language: - - en-US - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2021-05-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\": - \"Creating\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": - \"1.19.11\",\n \"dnsPrefix\": \"cliakstest-clitestdawhbgpmo-3b875b\",\n - \ \"fqdn\": \"cliakstest-clitestdawhbgpmo-3b875b-cab8b3c9.hcp.westus2.azmk8s.io\",\n - \ \"azurePortalFQDN\": \"cliakstest-clitestdawhbgpmo-3b875b-cab8b3c9.portal.hcp.westus2.azmk8s.io\",\n - \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": - 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": - \"Managed\",\n \"kubeletDiskType\": \"OS\",\n \"maxPods\": 110,\n - \ \"type\": \"VirtualMachineScaleSets\",\n \"provisioningState\": \"Creating\",\n - \ \"powerState\": {\n \"code\": \"Running\"\n },\n \"orchestratorVersion\": - \"1.19.11\",\n \"enableNodePublicIP\": false,\n \"nodeLabels\": {},\n - \ \"mode\": \"System\",\n \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\": - false,\n \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"nodeImageVersion\": - \"AKSUbuntu-1804gen2containerd-2021.06.02\",\n \"enableFIPS\": false\n - \ }\n ],\n \"linuxProfile\": {\n \"adminUsername\": \"azureuser\",\n - \ \"ssh\": {\n \"publicKeys\": [\n {\n \"keyData\": \"ssh-rsa - AAAAB3NzaC1yc2EAAAADAQABAAACAQCwztmLMdJZrXl6VTfbonQWAMXjuJkRzCW8Lmynohg0hz681LPQC7OenFR36PPz3tDNd90tjX3+khk0NkSBB8Dz+U1/ISOsR17++TmEFWLf1oiTTua/1K82pc8yGoFbDXIFAgMeJxpwYczjvL8BnDa9z3GrzYAEi1B6kbZyGAjc0rRoSb76nYF/dhtp+GtN5oo/qYEt8ogcPpQzlv3hM7AdcYuTHutWMHV7XA/bdhfcXL4jJLW/SPD9l0EAw6boMoOJ4W1X3OWFD0MGs1cphZNIXpOg5fBCN/x9eRmJ45fAGFH/plGh+i0UjQKoLd3eEy5pyAzJ+ttoQ3do3eKT56N0Zj//2Yp9HNxcoeLt4nK3IOE1gR2AdOFMPEloY/heaU82sYipKG4PBm1g8C3AtcS/wP0tQaw2KlCLMmEO6/AiNSPazkXVrbflnWPq2jukydGW+YJ4pD3ACZgTNYVT3JCr9gWCYnkhdvF//Us+3Q2jUJReIJArsOq5xBFEphkguket41AzifO07+s7DULHOkoisxxZALbOxIUdSvcRv5WpzPOTyyKIZB2UI190cK4aHT0+BGmpbhBiYc0lPikDEHqaaR0/Mgaq2RhUZ+zpqboMCuqpYu69pIhU/cz3dko+P272GutYId9YsTyzKIURp66mow40iL0MwzAML/DwugQ6nQ== - damichel@microsoft.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 },\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 },\n \"maxAgentPools\": 100,\n \"disableLocalAccounts\": - false\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/4db617d8-f903-40a7-90aa-83163ed89714?api-version=2016-03-30 - cache-control: - - no-cache - content-length: - - '3061' - content-type: - - application/json - date: - - Sat, 26 Jun 2021 00:41:55 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - aks create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --name --location --node-count - User-Agent: - - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python - AZURECLI/2.24.2 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/4db617d8-f903-40a7-90aa-83163ed89714?api-version=2016-03-30 - response: - body: - string: "{\n \"name\": \"d817b64d-03f9-a740-90aa-83163ed89714\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2021-06-26T00:41:55.9966666Z\"\n }" - headers: - cache-control: - - no-cache - content-length: - - '126' - content-type: - - application/json - date: - - Sat, 26 Jun 2021 00:42: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 create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --name --location --node-count - User-Agent: - - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python - AZURECLI/2.24.2 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/4db617d8-f903-40a7-90aa-83163ed89714?api-version=2016-03-30 - response: - body: - string: "{\n \"name\": \"d817b64d-03f9-a740-90aa-83163ed89714\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2021-06-26T00:41:55.9966666Z\"\n }" - headers: - cache-control: - - no-cache - content-length: - - '126' - content-type: - - application/json - date: - - Sat, 26 Jun 2021 00:42: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 - 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 --node-count - User-Agent: - - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python - AZURECLI/2.24.2 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/4db617d8-f903-40a7-90aa-83163ed89714?api-version=2016-03-30 - response: - body: - string: "{\n \"name\": \"d817b64d-03f9-a740-90aa-83163ed89714\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2021-06-26T00:41:55.9966666Z\"\n }" - headers: - cache-control: - - no-cache - content-length: - - '126' - content-type: - - application/json - date: - - Sat, 26 Jun 2021 00:43: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 create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --name --location --node-count - User-Agent: - - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python - AZURECLI/2.24.2 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/4db617d8-f903-40a7-90aa-83163ed89714?api-version=2016-03-30 - response: - body: - string: "{\n \"name\": \"d817b64d-03f9-a740-90aa-83163ed89714\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2021-06-26T00:41:55.9966666Z\"\n }" - headers: - cache-control: - - no-cache - content-length: - - '126' - content-type: - - application/json - date: - - Sat, 26 Jun 2021 00:43: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 - 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 --node-count - User-Agent: - - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python - AZURECLI/2.24.2 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/4db617d8-f903-40a7-90aa-83163ed89714?api-version=2016-03-30 - response: - body: - string: "{\n \"name\": \"d817b64d-03f9-a740-90aa-83163ed89714\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2021-06-26T00:41:55.9966666Z\"\n }" - headers: - cache-control: - - no-cache - content-length: - - '126' - content-type: - - application/json - date: - - Sat, 26 Jun 2021 00:44: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: - - 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 --node-count - User-Agent: - - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python - AZURECLI/2.24.2 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/4db617d8-f903-40a7-90aa-83163ed89714?api-version=2016-03-30 - response: - body: - string: "{\n \"name\": \"d817b64d-03f9-a740-90aa-83163ed89714\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2021-06-26T00:41:55.9966666Z\"\n }" - headers: - cache-control: - - no-cache - content-length: - - '126' - content-type: - - application/json - date: - - Sat, 26 Jun 2021 00:44:57 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 create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --name --location --node-count - User-Agent: - - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python - AZURECLI/2.24.2 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/4db617d8-f903-40a7-90aa-83163ed89714?api-version=2016-03-30 - response: - body: - string: "{\n \"name\": \"d817b64d-03f9-a740-90aa-83163ed89714\",\n \"status\": - \"Succeeded\",\n \"startTime\": \"2021-06-26T00:41:55.9966666Z\",\n \"endTime\": - \"2021-06-26T00:45:13.1336329Z\"\n }" - headers: - cache-control: - - no-cache - content-length: - - '170' - content-type: - - application/json - date: - - Sat, 26 Jun 2021 00:45: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: - - 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 --node-count - User-Agent: - - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python - AZURECLI/2.24.2 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2021-05-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.19.11\",\n \"dnsPrefix\": \"cliakstest-clitestdawhbgpmo-3b875b\",\n - \ \"fqdn\": \"cliakstest-clitestdawhbgpmo-3b875b-cab8b3c9.hcp.westus2.azmk8s.io\",\n - \ \"azurePortalFQDN\": \"cliakstest-clitestdawhbgpmo-3b875b-cab8b3c9.portal.hcp.westus2.azmk8s.io\",\n - \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": - 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": - \"Managed\",\n \"kubeletDiskType\": \"OS\",\n \"maxPods\": 110,\n - \ \"type\": \"VirtualMachineScaleSets\",\n \"provisioningState\": \"Succeeded\",\n - \ \"powerState\": {\n \"code\": \"Running\"\n },\n \"orchestratorVersion\": - \"1.19.11\",\n \"enableNodePublicIP\": false,\n \"nodeLabels\": {},\n - \ \"mode\": \"System\",\n \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\": - false,\n \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"nodeImageVersion\": - \"AKSUbuntu-1804gen2containerd-2021.06.02\",\n \"enableFIPS\": false\n - \ }\n ],\n \"linuxProfile\": {\n \"adminUsername\": \"azureuser\",\n - \ \"ssh\": {\n \"publicKeys\": [\n {\n \"keyData\": \"ssh-rsa - AAAAB3NzaC1yc2EAAAADAQABAAACAQCwztmLMdJZrXl6VTfbonQWAMXjuJkRzCW8Lmynohg0hz681LPQC7OenFR36PPz3tDNd90tjX3+khk0NkSBB8Dz+U1/ISOsR17++TmEFWLf1oiTTua/1K82pc8yGoFbDXIFAgMeJxpwYczjvL8BnDa9z3GrzYAEi1B6kbZyGAjc0rRoSb76nYF/dhtp+GtN5oo/qYEt8ogcPpQzlv3hM7AdcYuTHutWMHV7XA/bdhfcXL4jJLW/SPD9l0EAw6boMoOJ4W1X3OWFD0MGs1cphZNIXpOg5fBCN/x9eRmJ45fAGFH/plGh+i0UjQKoLd3eEy5pyAzJ+ttoQ3do3eKT56N0Zj//2Yp9HNxcoeLt4nK3IOE1gR2AdOFMPEloY/heaU82sYipKG4PBm1g8C3AtcS/wP0tQaw2KlCLMmEO6/AiNSPazkXVrbflnWPq2jukydGW+YJ4pD3ACZgTNYVT3JCr9gWCYnkhdvF//Us+3Q2jUJReIJArsOq5xBFEphkguket41AzifO07+s7DULHOkoisxxZALbOxIUdSvcRv5WpzPOTyyKIZB2UI190cK4aHT0+BGmpbhBiYc0lPikDEHqaaR0/Mgaq2RhUZ+zpqboMCuqpYu69pIhU/cz3dko+P272GutYId9YsTyzKIURp66mow40iL0MwzAML/DwugQ6nQ== - damichel@microsoft.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/9cc1f334-e6d2-439d-9df2-9c634bf43dd0\"\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 },\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 },\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: - - '3724' - content-type: - - application/json - date: - - Sat, 26 Jun 2021 00:45: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 enable-addons - Connection: - - keep-alive - ParameterSetName: - - -a --resource-group --name --enable-msi-auth-for-monitoring - User-Agent: - - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - msrest/0.6.21 msrest_azure/0.6.4 azure-mgmt-containerservice/11.0.0 Azure-SDK-For-Python - AZURECLI/2.24.2 - accept-language: - - en-US - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2021-05-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.19.11\",\n \"dnsPrefix\": \"cliakstest-clitestdawhbgpmo-3b875b\",\n - \ \"fqdn\": \"cliakstest-clitestdawhbgpmo-3b875b-cab8b3c9.hcp.westus2.azmk8s.io\",\n - \ \"azurePortalFQDN\": \"cliakstest-clitestdawhbgpmo-3b875b-cab8b3c9.portal.hcp.westus2.azmk8s.io\",\n - \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": - 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": - \"Managed\",\n \"kubeletDiskType\": \"OS\",\n \"maxPods\": 110,\n - \ \"type\": \"VirtualMachineScaleSets\",\n \"provisioningState\": \"Succeeded\",\n - \ \"powerState\": {\n \"code\": \"Running\"\n },\n \"orchestratorVersion\": - \"1.19.11\",\n \"enableNodePublicIP\": false,\n \"nodeLabels\": {},\n - \ \"mode\": \"System\",\n \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\": - false,\n \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"nodeImageVersion\": - \"AKSUbuntu-1804gen2containerd-2021.06.02\",\n \"enableFIPS\": false\n - \ }\n ],\n \"linuxProfile\": {\n \"adminUsername\": \"azureuser\",\n - \ \"ssh\": {\n \"publicKeys\": [\n {\n \"keyData\": \"ssh-rsa - AAAAB3NzaC1yc2EAAAADAQABAAACAQCwztmLMdJZrXl6VTfbonQWAMXjuJkRzCW8Lmynohg0hz681LPQC7OenFR36PPz3tDNd90tjX3+khk0NkSBB8Dz+U1/ISOsR17++TmEFWLf1oiTTua/1K82pc8yGoFbDXIFAgMeJxpwYczjvL8BnDa9z3GrzYAEi1B6kbZyGAjc0rRoSb76nYF/dhtp+GtN5oo/qYEt8ogcPpQzlv3hM7AdcYuTHutWMHV7XA/bdhfcXL4jJLW/SPD9l0EAw6boMoOJ4W1X3OWFD0MGs1cphZNIXpOg5fBCN/x9eRmJ45fAGFH/plGh+i0UjQKoLd3eEy5pyAzJ+ttoQ3do3eKT56N0Zj//2Yp9HNxcoeLt4nK3IOE1gR2AdOFMPEloY/heaU82sYipKG4PBm1g8C3AtcS/wP0tQaw2KlCLMmEO6/AiNSPazkXVrbflnWPq2jukydGW+YJ4pD3ACZgTNYVT3JCr9gWCYnkhdvF//Us+3Q2jUJReIJArsOq5xBFEphkguket41AzifO07+s7DULHOkoisxxZALbOxIUdSvcRv5WpzPOTyyKIZB2UI190cK4aHT0+BGmpbhBiYc0lPikDEHqaaR0/Mgaq2RhUZ+zpqboMCuqpYu69pIhU/cz3dko+P272GutYId9YsTyzKIURp66mow40iL0MwzAML/DwugQ6nQ== - damichel@microsoft.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/9cc1f334-e6d2-439d-9df2-9c634bf43dd0\"\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 },\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 },\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: - - '3724' - content-type: - - application/json - date: - - Sat, 26 Jun 2021 00:45: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 enable-addons - Connection: - - keep-alive - ParameterSetName: - - -a --resource-group --name --enable-msi-auth-for-monitoring - User-Agent: - - AZURECLI/2.24.2 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001?api-version=2020-10-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001","name":"clitest000001","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"product":"azurecli","cause":"automation","date":"2021-06-26T00:41:49Z"},"properties":{"provisioningState":"Succeeded"}}' - headers: - cache-control: - - no-cache - content-length: - - '313' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 26 Jun 2021 00:45:29 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 enable-addons - Connection: - - keep-alive - ParameterSetName: - - -a --resource-group --name --enable-msi-auth-for-monitoring - User-Agent: - - AZURECLI/2.24.2 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - method: HEAD - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/DefaultResourceGroup-WUS2?api-version=2020-10-01 - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - date: - - Sat, 26 Jun 2021 00:45: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 enable-addons - Connection: - - keep-alive - ParameterSetName: - - -a --resource-group --name --enable-msi-auth-for-monitoring - User-Agent: - - AZURECLI/2.24.2 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/DefaultResourceGroup-WUS2/providers/Microsoft.OperationalInsights/workspaces/DefaultWorkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-WUS2?api-version=2015-11-01-preview - response: - body: - string: "{\r\n \"properties\": {\r\n \"source\": \"Azure\",\r\n \"customerId\": - \"a6ec9525-4c1b-4ebf-80ad-1a1da5f6ca3c\",\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"sku\": {\r\n \"name\": \"pergb2018\",\r\n \"lastSkuUpdate\": - \"Fri, 18 Jun 2021 21:03:33 GMT\"\r\n },\r\n \"retentionInDays\": 30,\r\n - \ \"features\": {\r\n \"legacy\": 0,\r\n \"searchVersion\": 1,\r\n - \ \"enableLogAccessUsingOnlyResourcePermissions\": true\r\n },\r\n - \ \"workspaceCapping\": {\r\n \"dailyQuotaGb\": -1.0,\r\n \"quotaNextResetTime\": - \"Sat, 26 Jun 2021 12:00:00 GMT\",\r\n \"dataIngestionStatus\": \"RespectQuota\"\r\n - \ },\r\n \"publicNetworkAccessForIngestion\": \"Enabled\",\r\n \"publicNetworkAccessForQuery\": - \"Enabled\",\r\n \"createdDate\": \"Fri, 18 Jun 2021 21:03:33 GMT\",\r\n - \ \"modifiedDate\": \"Sat, 26 Jun 2021 00:07:56 GMT\"\r\n },\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-wus2\",\r\n - \ \"name\": \"DefaultWorkspace-3b875bf3-0eec-4d8c-bdee-25c7ccc1f130-WUS2\",\r\n - \ \"type\": \"Microsoft.OperationalInsights/workspaces\",\r\n \"location\": - \"westus2\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '1161' - content-type: - - application/json - date: - - Sat, 26 Jun 2021 00:45:29 GMT - pragma: - - no-cache - server: - - Microsoft-IIS/10.0 - - Microsoft-IIS/10.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-powered-by: - - ASP.NET - - ASP.NET - status: - code: 200 - message: OK -version: 1 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 5d88c1e0f7d..a35da4adf5a 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 @@ -1185,7 +1185,7 @@ def create_new_cluster_with_monitoring_aad_auth(self, resource_group, resource_g '--enable-msi-auth-for-monitoring ' \ '--node-count 1 ' create_cmd += f'--assign-identity {identity_id}' if user_assigned_identity else '' - + response = self.cmd(create_cmd, checks=[ self.check('addonProfiles.omsagent.enabled', True), self.check('addonProfiles.omsagent.config.useAADAuth', 'True') @@ -1212,63 +1212,70 @@ def create_new_cluster_with_monitoring_aad_auth(self, resource_group, resource_g self.check('properties.dataCollectionRuleId', f'{dcr_resource_id}') ]) - # delete - # TODO: replace rest requests with cli commands. It appears that the dcra deletion can't propogate fast enough. - self.cmd(f'rest --method delete --url https://management.azure.com/{dcra_resource_id}?api-version=2019-11-01-preview', checks=[self.is_empty()]) - self.cmd(f'rest --method delete --url https://management.azure.com/{dcr_resource_id}?api-version=2019-11-01-preview', checks=[self.is_empty()]) - self.cmd('aks delete -g {resource_group} -n {name} --yes --no-wait', checks=[self.is_empty()]) - if user_assigned_identity: - self.cmd('identity delete -g {resource_group} -n {name}_uai') - @live_only() @AllowLargeResponse() @AKSCustomResourceGroupPreparer(random_name_length=17, name_prefix='clitest', location='westus2') - def test_aks_create_with_monitoring_errors(self, resource_group, resource_group_location): + def test_aks_enable_monitoring_with_aad_auth_msi(self, resource_group, resource_group_location,): aks_name = self.create_random_name('cliakstest', 16) - self.kwargs.update({ - 'resource_group': resource_group, - 'name': aks_name, - 'location': resource_group_location, - }) - - from azure.cli.core.azclierror import ArgumentUsageError - - # this command should return an exception. (--enable-msi-auth-for-monitoring requires managed identity) - try: - create_cmd = 'aks create --resource-group={resource_group} --name={name} --location={location} ' \ - '--enable-addons monitoring ' \ - '--enable-msi-auth-for-monitoring ' \ - '--node-count 1 ' - response = self.cmd(create_cmd).get_output_in_json() - assert "--enable-msi-auth-for-monitoring should require --enable-managed-identity" == False - except ArgumentUsageError as e: - pass + self.enable_monitoring_existing_cluster_aad_atuh(resource_group, resource_group_location, aks_name, user_assigned_identity=False) @live_only() @AllowLargeResponse() @AKSCustomResourceGroupPreparer(random_name_length=17, name_prefix='clitest', location='westus2') - def test_aks_enable_addons_monitoring_errors(self, resource_group, resource_group_location): + def test_aks_enable_monitoring_with_aad_auth_uai(self, resource_group, resource_group_location): aks_name = self.create_random_name('cliakstest', 16) + self.enable_monitoring_existing_cluster_aad_atuh(resource_group, resource_group_location, aks_name, user_assigned_identity=True) + + def enable_monitoring_existing_cluster_aad_atuh(self, resource_group, resource_group_location, aks_name, user_assigned_identity=False): self.kwargs.update({ 'resource_group': resource_group, 'name': aks_name, 'location': resource_group_location, }) - create_cmd = 'aks create --resource-group={resource_group} --name={name} --location={location} ' \ + if user_assigned_identity: + uai_cmd = f'identity create -g {resource_group} -n {aks_name}_uai' + resp = self.cmd(uai_cmd).get_output_in_json() + identity_id = resp["id"] + print("********************") + print(f"identity_id: {identity_id}") + print("********************") + + # create + create_cmd = f'aks create --resource-group={resource_group} --name={aks_name} --location={resource_group_location} ' \ + '--generate-ssh-keys --enable-managed-identity ' \ '--node-count 1 ' + create_cmd += f'--assign-identity {identity_id}' if user_assigned_identity else '' self.cmd(create_cmd) - from azure.cli.core.azclierror import ArgumentUsageError + enable_monitoring_cmd = f'aks enable-addons -a monitoring --resource-group={resource_group} --name={aks_name} ' \ + '--enable-msi-auth-for-monitoring ' - # this command should return an exception. (--enable-msi-auth-for-monitoring requires managed identity) - try: - enable_cmd = 'aks enable-addons -a monitoring --resource-group={resource_group} --name={name} ' \ - '--enable-msi-auth-for-monitoring ' - self.cmd(enable_cmd) - assert "--enable-msi-auth-for-monitoring should require --enable-managed-identity" == False - except ArgumentUsageError as e: - pass + response = self.cmd(enable_monitoring_cmd, checks=[ + self.check('addonProfiles.omsagent.enabled', True), + self.check('addonProfiles.omsagent.config.useAADAuth', 'True') + ]).get_output_in_json() + + cluster_resource_id = response["id"] + subscription = cluster_resource_id.split("/")[2] + workspace_resource_id = response["addonProfiles"]["omsagent"]["config"]["logAnalyticsWorkspaceResourceID"] + workspace_name = workspace_resource_id.split("/")[-1] + workspace_resource_group = workspace_resource_id.split("/")[4] + + # check that the DCR was created + dataCollectionRuleName = f"DCR-{workspace_name}" + dcr_resource_id = f"/subscriptions/{subscription}/resourceGroups/{workspace_resource_group}/providers/Microsoft.Insights/dataCollectionRules/{dataCollectionRuleName}" + get_cmd = f'rest --method get --url https://management.azure.com{dcr_resource_id}?api-version=2019-11-01-preview' + self.cmd(get_cmd, checks=[ + self.check('properties.destinations.logAnalytics[0].workspaceResourceId', f'{workspace_resource_id}') + ]) + + # check that the DCR-A was created + dcra_resource_id = f"{cluster_resource_id}/providers/Microsoft.Insights/dataCollectionRuleAssociations/send-to-{workspace_name}" + get_cmd = f'rest --method get --url https://management.azure.com{dcra_resource_id}?api-version=2019-11-01-preview' + self.cmd(get_cmd, checks=[ + self.check('properties.dataCollectionRuleId', f'{dcr_resource_id}') + ]) @live_only() @AllowLargeResponse() From 4f3a72092ceb202943080a2b84f2ce0ed1334491 Mon Sep 17 00:00:00 2001 From: David Michelman Date: Mon, 28 Jun 2021 10:11:54 -0700 Subject: [PATCH 17/20] commenting out tests which require a subscription-level feature flag --- .../tests/latest/test_aks_commands.py | 256 +++++++++--------- 1 file changed, 129 insertions(+), 127 deletions(-) diff --git a/src/aks-preview/azext_aks_preview/tests/latest/test_aks_commands.py b/src/aks-preview/azext_aks_preview/tests/latest/test_aks_commands.py index a35da4adf5a..5e3af0c77a5 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 @@ -1149,133 +1149,135 @@ def test_aks_update_to_msi_cluster_with_addons(self, resource_group, resource_gr self.cmd( 'aks delete -g {resource_group} -n {name} --yes --no-wait', checks=[self.is_empty()]) - @live_only() - @AllowLargeResponse() - @AKSCustomResourceGroupPreparer(random_name_length=17, name_prefix='clitest', location='westus2') - def test_aks_create_with_monitoring_aad_auth_msi(self, resource_group, resource_group_location,): - aks_name = self.create_random_name('cliakstest', 16) - self.create_new_cluster_with_monitoring_aad_auth(resource_group, resource_group_location, aks_name, user_assigned_identity=False) - - @live_only() - @AllowLargeResponse() - @AKSCustomResourceGroupPreparer(random_name_length=17, name_prefix='clitest', location='westus2') - def test_aks_create_with_monitoring_aad_auth_uai(self, resource_group, resource_group_location): - aks_name = self.create_random_name('cliakstest', 16) - self.create_new_cluster_with_monitoring_aad_auth(resource_group, resource_group_location, aks_name, user_assigned_identity=True) - - def create_new_cluster_with_monitoring_aad_auth(self, resource_group, resource_group_location, aks_name, user_assigned_identity=False): - self.kwargs.update({ - 'resource_group': resource_group, - 'name': aks_name, - 'location': resource_group_location, - }) - - if user_assigned_identity: - uai_cmd = f'identity create -g {resource_group} -n {aks_name}_uai' - resp = self.cmd(uai_cmd).get_output_in_json() - identity_id = resp["id"] - print("********************") - print(f"identity_id: {identity_id}") - print("********************") - - # create - create_cmd = f'aks create --resource-group={resource_group} --name={aks_name} --location={resource_group_location} ' \ - '--generate-ssh-keys --enable-managed-identity ' \ - '--enable-addons monitoring ' \ - '--enable-msi-auth-for-monitoring ' \ - '--node-count 1 ' - create_cmd += f'--assign-identity {identity_id}' if user_assigned_identity else '' - - response = self.cmd(create_cmd, checks=[ - self.check('addonProfiles.omsagent.enabled', True), - self.check('addonProfiles.omsagent.config.useAADAuth', 'True') - ]).get_output_in_json() - - cluster_resource_id = response["id"] - subscription = cluster_resource_id.split("/")[2] - workspace_resource_id = response["addonProfiles"]["omsagent"]["config"]["logAnalyticsWorkspaceResourceID"] - workspace_name = workspace_resource_id.split("/")[-1] - workspace_resource_group = workspace_resource_id.split("/")[4] - - # check that the DCR was created - dataCollectionRuleName = f"DCR-{workspace_name}" - dcr_resource_id = f"/subscriptions/{subscription}/resourceGroups/{workspace_resource_group}/providers/Microsoft.Insights/dataCollectionRules/{dataCollectionRuleName}" - get_cmd = f'rest --method get --url https://management.azure.com{dcr_resource_id}?api-version=2019-11-01-preview' - self.cmd(get_cmd, checks=[ - self.check('properties.destinations.logAnalytics[0].workspaceResourceId', f'{workspace_resource_id}') - ]) - - # check that the DCR-A was created - dcra_resource_id = f"{cluster_resource_id}/providers/Microsoft.Insights/dataCollectionRuleAssociations/send-to-{workspace_name}" - get_cmd = f'rest --method get --url https://management.azure.com{dcra_resource_id}?api-version=2019-11-01-preview' - self.cmd(get_cmd, checks=[ - self.check('properties.dataCollectionRuleId', f'{dcr_resource_id}') - ]) - - @live_only() - @AllowLargeResponse() - @AKSCustomResourceGroupPreparer(random_name_length=17, name_prefix='clitest', location='westus2') - def test_aks_enable_monitoring_with_aad_auth_msi(self, resource_group, resource_group_location,): - aks_name = self.create_random_name('cliakstest', 16) - self.enable_monitoring_existing_cluster_aad_atuh(resource_group, resource_group_location, aks_name, user_assigned_identity=False) - - @live_only() - @AllowLargeResponse() - @AKSCustomResourceGroupPreparer(random_name_length=17, name_prefix='clitest', location='westus2') - def test_aks_enable_monitoring_with_aad_auth_uai(self, resource_group, resource_group_location): - aks_name = self.create_random_name('cliakstest', 16) - self.enable_monitoring_existing_cluster_aad_atuh(resource_group, resource_group_location, aks_name, user_assigned_identity=True) - - def enable_monitoring_existing_cluster_aad_atuh(self, resource_group, resource_group_location, aks_name, user_assigned_identity=False): - self.kwargs.update({ - 'resource_group': resource_group, - 'name': aks_name, - 'location': resource_group_location, - }) - - if user_assigned_identity: - uai_cmd = f'identity create -g {resource_group} -n {aks_name}_uai' - resp = self.cmd(uai_cmd).get_output_in_json() - identity_id = resp["id"] - print("********************") - print(f"identity_id: {identity_id}") - print("********************") - - # create - create_cmd = f'aks create --resource-group={resource_group} --name={aks_name} --location={resource_group_location} ' \ - '--generate-ssh-keys --enable-managed-identity ' \ - '--node-count 1 ' - create_cmd += f'--assign-identity {identity_id}' if user_assigned_identity else '' - self.cmd(create_cmd) - - enable_monitoring_cmd = f'aks enable-addons -a monitoring --resource-group={resource_group} --name={aks_name} ' \ - '--enable-msi-auth-for-monitoring ' - - response = self.cmd(enable_monitoring_cmd, checks=[ - self.check('addonProfiles.omsagent.enabled', True), - self.check('addonProfiles.omsagent.config.useAADAuth', 'True') - ]).get_output_in_json() - - cluster_resource_id = response["id"] - subscription = cluster_resource_id.split("/")[2] - workspace_resource_id = response["addonProfiles"]["omsagent"]["config"]["logAnalyticsWorkspaceResourceID"] - workspace_name = workspace_resource_id.split("/")[-1] - workspace_resource_group = workspace_resource_id.split("/")[4] - - # check that the DCR was created - dataCollectionRuleName = f"DCR-{workspace_name}" - dcr_resource_id = f"/subscriptions/{subscription}/resourceGroups/{workspace_resource_group}/providers/Microsoft.Insights/dataCollectionRules/{dataCollectionRuleName}" - get_cmd = f'rest --method get --url https://management.azure.com{dcr_resource_id}?api-version=2019-11-01-preview' - self.cmd(get_cmd, checks=[ - self.check('properties.destinations.logAnalytics[0].workspaceResourceId', f'{workspace_resource_id}') - ]) - - # check that the DCR-A was created - dcra_resource_id = f"{cluster_resource_id}/providers/Microsoft.Insights/dataCollectionRuleAssociations/send-to-{workspace_name}" - get_cmd = f'rest --method get --url https://management.azure.com{dcra_resource_id}?api-version=2019-11-01-preview' - self.cmd(get_cmd, checks=[ - self.check('properties.dataCollectionRuleId', f'{dcr_resource_id}') - ]) + # # These tests require subscription-level feature flags to be set by AKS and Azure Monitor. The features will be + # # broadly rolling out soon, then these tests can be uncommented. (written on 6/29/2021) + # @live_only() + # @AllowLargeResponse() + # @AKSCustomResourceGroupPreparer(random_name_length=17, name_prefix='clitest', location='westus2') + # def test_aks_create_with_monitoring_aad_auth_msi(self, resource_group, resource_group_location,): + # aks_name = self.create_random_name('cliakstest', 16) + # self.create_new_cluster_with_monitoring_aad_auth(resource_group, resource_group_location, aks_name, user_assigned_identity=False) + + # @live_only() + # @AllowLargeResponse() + # @AKSCustomResourceGroupPreparer(random_name_length=17, name_prefix='clitest', location='westus2') + # def test_aks_create_with_monitoring_aad_auth_uai(self, resource_group, resource_group_location): + # aks_name = self.create_random_name('cliakstest', 16) + # self.create_new_cluster_with_monitoring_aad_auth(resource_group, resource_group_location, aks_name, user_assigned_identity=True) + + # def create_new_cluster_with_monitoring_aad_auth(self, resource_group, resource_group_location, aks_name, user_assigned_identity=False): + # self.kwargs.update({ + # 'resource_group': resource_group, + # 'name': aks_name, + # 'location': resource_group_location, + # }) + + # if user_assigned_identity: + # uai_cmd = f'identity create -g {resource_group} -n {aks_name}_uai' + # resp = self.cmd(uai_cmd).get_output_in_json() + # identity_id = resp["id"] + # print("********************") + # print(f"identity_id: {identity_id}") + # print("********************") + + # # create + # create_cmd = f'aks create --resource-group={resource_group} --name={aks_name} --location={resource_group_location} ' \ + # '--generate-ssh-keys --enable-managed-identity ' \ + # '--enable-addons monitoring ' \ + # '--enable-msi-auth-for-monitoring ' \ + # '--node-count 1 ' + # create_cmd += f'--assign-identity {identity_id}' if user_assigned_identity else '' + + # response = self.cmd(create_cmd, checks=[ + # self.check('addonProfiles.omsagent.enabled', True), + # self.check('addonProfiles.omsagent.config.useAADAuth', 'True') + # ]).get_output_in_json() + + # cluster_resource_id = response["id"] + # subscription = cluster_resource_id.split("/")[2] + # workspace_resource_id = response["addonProfiles"]["omsagent"]["config"]["logAnalyticsWorkspaceResourceID"] + # workspace_name = workspace_resource_id.split("/")[-1] + # workspace_resource_group = workspace_resource_id.split("/")[4] + + # # check that the DCR was created + # dataCollectionRuleName = f"DCR-{workspace_name}" + # dcr_resource_id = f"/subscriptions/{subscription}/resourceGroups/{workspace_resource_group}/providers/Microsoft.Insights/dataCollectionRules/{dataCollectionRuleName}" + # get_cmd = f'rest --method get --url https://management.azure.com{dcr_resource_id}?api-version=2019-11-01-preview' + # self.cmd(get_cmd, checks=[ + # self.check('properties.destinations.logAnalytics[0].workspaceResourceId', f'{workspace_resource_id}') + # ]) + + # # check that the DCR-A was created + # dcra_resource_id = f"{cluster_resource_id}/providers/Microsoft.Insights/dataCollectionRuleAssociations/send-to-{workspace_name}" + # get_cmd = f'rest --method get --url https://management.azure.com{dcra_resource_id}?api-version=2019-11-01-preview' + # self.cmd(get_cmd, checks=[ + # self.check('properties.dataCollectionRuleId', f'{dcr_resource_id}') + # ]) + + # @live_only() + # @AllowLargeResponse() + # @AKSCustomResourceGroupPreparer(random_name_length=17, name_prefix='clitest', location='westus2') + # def test_aks_enable_monitoring_with_aad_auth_msi(self, resource_group, resource_group_location,): + # aks_name = self.create_random_name('cliakstest', 16) + # self.enable_monitoring_existing_cluster_aad_atuh(resource_group, resource_group_location, aks_name, user_assigned_identity=False) + + # @live_only() + # @AllowLargeResponse() + # @AKSCustomResourceGroupPreparer(random_name_length=17, name_prefix='clitest', location='westus2') + # def test_aks_enable_monitoring_with_aad_auth_uai(self, resource_group, resource_group_location): + # aks_name = self.create_random_name('cliakstest', 16) + # self.enable_monitoring_existing_cluster_aad_atuh(resource_group, resource_group_location, aks_name, user_assigned_identity=True) + + # def enable_monitoring_existing_cluster_aad_atuh(self, resource_group, resource_group_location, aks_name, user_assigned_identity=False): + # self.kwargs.update({ + # 'resource_group': resource_group, + # 'name': aks_name, + # 'location': resource_group_location, + # }) + + # if user_assigned_identity: + # uai_cmd = f'identity create -g {resource_group} -n {aks_name}_uai' + # resp = self.cmd(uai_cmd).get_output_in_json() + # identity_id = resp["id"] + # print("********************") + # print(f"identity_id: {identity_id}") + # print("********************") + + # # create + # create_cmd = f'aks create --resource-group={resource_group} --name={aks_name} --location={resource_group_location} ' \ + # '--generate-ssh-keys --enable-managed-identity ' \ + # '--node-count 1 ' + # create_cmd += f'--assign-identity {identity_id}' if user_assigned_identity else '' + # self.cmd(create_cmd) + + # enable_monitoring_cmd = f'aks enable-addons -a monitoring --resource-group={resource_group} --name={aks_name} ' \ + # '--enable-msi-auth-for-monitoring ' + + # response = self.cmd(enable_monitoring_cmd, checks=[ + # self.check('addonProfiles.omsagent.enabled', True), + # self.check('addonProfiles.omsagent.config.useAADAuth', 'True') + # ]).get_output_in_json() + + # cluster_resource_id = response["id"] + # subscription = cluster_resource_id.split("/")[2] + # workspace_resource_id = response["addonProfiles"]["omsagent"]["config"]["logAnalyticsWorkspaceResourceID"] + # workspace_name = workspace_resource_id.split("/")[-1] + # workspace_resource_group = workspace_resource_id.split("/")[4] + + # # check that the DCR was created + # dataCollectionRuleName = f"DCR-{workspace_name}" + # dcr_resource_id = f"/subscriptions/{subscription}/resourceGroups/{workspace_resource_group}/providers/Microsoft.Insights/dataCollectionRules/{dataCollectionRuleName}" + # get_cmd = f'rest --method get --url https://management.azure.com{dcr_resource_id}?api-version=2019-11-01-preview' + # self.cmd(get_cmd, checks=[ + # self.check('properties.destinations.logAnalytics[0].workspaceResourceId', f'{workspace_resource_id}') + # ]) + + # # check that the DCR-A was created + # dcra_resource_id = f"{cluster_resource_id}/providers/Microsoft.Insights/dataCollectionRuleAssociations/send-to-{workspace_name}" + # get_cmd = f'rest --method get --url https://management.azure.com{dcra_resource_id}?api-version=2019-11-01-preview' + # self.cmd(get_cmd, checks=[ + # self.check('properties.dataCollectionRuleId', f'{dcr_resource_id}') + # ]) @live_only() @AllowLargeResponse() From 2c6e1075ea6728ecaccc36c813559cfbef7e3aec Mon Sep 17 00:00:00 2001 From: David Michelman Date: Wed, 30 Jun 2021 14:39:17 -0700 Subject: [PATCH 18/20] uncommented tests, put them in a list to not run --- .../ext_matrix_default.json | 6 +- src/aks-preview/azext_aks_preview/custom.py | 16 +- .../tests/latest/test_aks_commands.py | 276 +++++++++--------- 3 files changed, 159 insertions(+), 139 deletions(-) diff --git a/src/aks-preview/azcli_aks_live_test/ext_matrix_default.json b/src/aks-preview/azcli_aks_live_test/ext_matrix_default.json index dffce3ffd09..d60baa9e4b6 100644 --- a/src/aks-preview/azcli_aks_live_test/ext_matrix_default.json +++ b/src/aks-preview/azcli_aks_live_test/ext_matrix_default.json @@ -26,7 +26,11 @@ "test_aks_create_with_pod_identity_enabled", "test_aks_create_using_azurecni_with_pod_identity_enabled", "test_aks_pod_identity_usage", - "test_aks_create_with_fips" + "test_aks_create_with_fips", + "test_aks_create_with_monitoring_aad_auth_msi", + "test_aks_create_with_monitoring_aad_auth_uai", + "test_aks_enable_monitoring_with_aad_auth_msi", + "test_aks_enable_monitoring_with_aad_auth_uai" ], "unknown": [ "test_aks_create_and_update_with_managed_aad_enable_azure_rbac", diff --git a/src/aks-preview/azext_aks_preview/custom.py b/src/aks-preview/azext_aks_preview/custom.py index 171c90894aa..98d7a41927e 100644 --- a/src/aks-preview/azext_aks_preview/custom.py +++ b/src/aks-preview/azext_aks_preview/custom.py @@ -2762,13 +2762,13 @@ def _ensure_container_insights_for_monitoring(cmd, # this is required to fool the static analyzer. The else statement will only run if an exception # is thrown, but flake8 will complain that e is undefined if we don't also define it here. - e = None + error = None break except CLIError as e: - pass + error = e else: # This will run if the above for loop was not broken out of. This means all three requests failed - raise e + raise error json_response = json.loads(r.text) for region_data in json_response["value"]: region_names_to_id[region_data["displayName"]] = region_data["name"] @@ -2778,12 +2778,12 @@ def _ensure_container_insights_for_monitoring(cmd, try: feature_check_url = f"https://management.azure.com/subscriptions/{subscription_id}/providers/Microsoft.Insights?api-version=2020-10-01" r = send_raw_request(cmd.cli_ctx, "GET", feature_check_url) - e = None + error = None break except CLIError as e: - pass + error = e else: - raise e + raise error json_response = json.loads(r.text) for resource in json_response["resourceTypes"]: region_ids = map(lambda x: region_names_to_id[x], resource["locations"]) # map is lazy, so doing this for every region isn't slow @@ -3415,6 +3415,7 @@ def aks_disable_addons(cmd, client, resource_group_name, name, addons, no_wait=F try: if addons == "monitoring" and CONST_MONITORING_ADDON_NAME in instance.addon_profiles and \ instance.addon_profiles[CONST_MONITORING_ADDON_NAME].enabled and \ + CONST_MONITORING_USING_AAD_MSI_AUTH in instance.addon_profiles[CONST_MONITORING_ADDON_NAME].config and \ instance.addon_profiles[CONST_MONITORING_ADDON_NAME].config[CONST_MONITORING_USING_AAD_MSI_AUTH]: # remove the DCR association because otherwise the DCR can't be deleted _ensure_container_insights_for_monitoring( @@ -3461,7 +3462,8 @@ def aks_enable_addons(cmd, client, resource_group_name, name, addons, workspace_ enable_sgxquotehelper=enable_sgxquotehelper, enable_secret_rotation=enable_secret_rotation, no_wait=no_wait) if CONST_MONITORING_ADDON_NAME in instance.addon_profiles and instance.addon_profiles[CONST_MONITORING_ADDON_NAME].enabled: - if instance.addon_profiles[CONST_MONITORING_ADDON_NAME].config[CONST_MONITORING_USING_AAD_MSI_AUTH]: + if CONST_MONITORING_USING_AAD_MSI_AUTH in instance.addon_profiles[CONST_MONITORING_ADDON_NAME].config and \ + instance.addon_profiles[CONST_MONITORING_ADDON_NAME].config[CONST_MONITORING_USING_AAD_MSI_AUTH]: if not msi_auth: raise ArgumentUsageError("--enable-msi-auth-for-monitoring can not be used on clusters with service principal auth.") else: 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 5e3af0c77a5..3b393210186 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 @@ -1149,135 +1149,146 @@ def test_aks_update_to_msi_cluster_with_addons(self, resource_group, resource_gr self.cmd( 'aks delete -g {resource_group} -n {name} --yes --no-wait', checks=[self.is_empty()]) - # # These tests require subscription-level feature flags to be set by AKS and Azure Monitor. The features will be - # # broadly rolling out soon, then these tests can be uncommented. (written on 6/29/2021) - # @live_only() - # @AllowLargeResponse() - # @AKSCustomResourceGroupPreparer(random_name_length=17, name_prefix='clitest', location='westus2') - # def test_aks_create_with_monitoring_aad_auth_msi(self, resource_group, resource_group_location,): - # aks_name = self.create_random_name('cliakstest', 16) - # self.create_new_cluster_with_monitoring_aad_auth(resource_group, resource_group_location, aks_name, user_assigned_identity=False) - - # @live_only() - # @AllowLargeResponse() - # @AKSCustomResourceGroupPreparer(random_name_length=17, name_prefix='clitest', location='westus2') - # def test_aks_create_with_monitoring_aad_auth_uai(self, resource_group, resource_group_location): - # aks_name = self.create_random_name('cliakstest', 16) - # self.create_new_cluster_with_monitoring_aad_auth(resource_group, resource_group_location, aks_name, user_assigned_identity=True) - - # def create_new_cluster_with_monitoring_aad_auth(self, resource_group, resource_group_location, aks_name, user_assigned_identity=False): - # self.kwargs.update({ - # 'resource_group': resource_group, - # 'name': aks_name, - # 'location': resource_group_location, - # }) - - # if user_assigned_identity: - # uai_cmd = f'identity create -g {resource_group} -n {aks_name}_uai' - # resp = self.cmd(uai_cmd).get_output_in_json() - # identity_id = resp["id"] - # print("********************") - # print(f"identity_id: {identity_id}") - # print("********************") - - # # create - # create_cmd = f'aks create --resource-group={resource_group} --name={aks_name} --location={resource_group_location} ' \ - # '--generate-ssh-keys --enable-managed-identity ' \ - # '--enable-addons monitoring ' \ - # '--enable-msi-auth-for-monitoring ' \ - # '--node-count 1 ' - # create_cmd += f'--assign-identity {identity_id}' if user_assigned_identity else '' - - # response = self.cmd(create_cmd, checks=[ - # self.check('addonProfiles.omsagent.enabled', True), - # self.check('addonProfiles.omsagent.config.useAADAuth', 'True') - # ]).get_output_in_json() - - # cluster_resource_id = response["id"] - # subscription = cluster_resource_id.split("/")[2] - # workspace_resource_id = response["addonProfiles"]["omsagent"]["config"]["logAnalyticsWorkspaceResourceID"] - # workspace_name = workspace_resource_id.split("/")[-1] - # workspace_resource_group = workspace_resource_id.split("/")[4] - - # # check that the DCR was created - # dataCollectionRuleName = f"DCR-{workspace_name}" - # dcr_resource_id = f"/subscriptions/{subscription}/resourceGroups/{workspace_resource_group}/providers/Microsoft.Insights/dataCollectionRules/{dataCollectionRuleName}" - # get_cmd = f'rest --method get --url https://management.azure.com{dcr_resource_id}?api-version=2019-11-01-preview' - # self.cmd(get_cmd, checks=[ - # self.check('properties.destinations.logAnalytics[0].workspaceResourceId', f'{workspace_resource_id}') - # ]) - - # # check that the DCR-A was created - # dcra_resource_id = f"{cluster_resource_id}/providers/Microsoft.Insights/dataCollectionRuleAssociations/send-to-{workspace_name}" - # get_cmd = f'rest --method get --url https://management.azure.com{dcra_resource_id}?api-version=2019-11-01-preview' - # self.cmd(get_cmd, checks=[ - # self.check('properties.dataCollectionRuleId', f'{dcr_resource_id}') - # ]) - - # @live_only() - # @AllowLargeResponse() - # @AKSCustomResourceGroupPreparer(random_name_length=17, name_prefix='clitest', location='westus2') - # def test_aks_enable_monitoring_with_aad_auth_msi(self, resource_group, resource_group_location,): - # aks_name = self.create_random_name('cliakstest', 16) - # self.enable_monitoring_existing_cluster_aad_atuh(resource_group, resource_group_location, aks_name, user_assigned_identity=False) - - # @live_only() - # @AllowLargeResponse() - # @AKSCustomResourceGroupPreparer(random_name_length=17, name_prefix='clitest', location='westus2') - # def test_aks_enable_monitoring_with_aad_auth_uai(self, resource_group, resource_group_location): - # aks_name = self.create_random_name('cliakstest', 16) - # self.enable_monitoring_existing_cluster_aad_atuh(resource_group, resource_group_location, aks_name, user_assigned_identity=True) - - # def enable_monitoring_existing_cluster_aad_atuh(self, resource_group, resource_group_location, aks_name, user_assigned_identity=False): - # self.kwargs.update({ - # 'resource_group': resource_group, - # 'name': aks_name, - # 'location': resource_group_location, - # }) - - # if user_assigned_identity: - # uai_cmd = f'identity create -g {resource_group} -n {aks_name}_uai' - # resp = self.cmd(uai_cmd).get_output_in_json() - # identity_id = resp["id"] - # print("********************") - # print(f"identity_id: {identity_id}") - # print("********************") - - # # create - # create_cmd = f'aks create --resource-group={resource_group} --name={aks_name} --location={resource_group_location} ' \ - # '--generate-ssh-keys --enable-managed-identity ' \ - # '--node-count 1 ' - # create_cmd += f'--assign-identity {identity_id}' if user_assigned_identity else '' - # self.cmd(create_cmd) - - # enable_monitoring_cmd = f'aks enable-addons -a monitoring --resource-group={resource_group} --name={aks_name} ' \ - # '--enable-msi-auth-for-monitoring ' - - # response = self.cmd(enable_monitoring_cmd, checks=[ - # self.check('addonProfiles.omsagent.enabled', True), - # self.check('addonProfiles.omsagent.config.useAADAuth', 'True') - # ]).get_output_in_json() - - # cluster_resource_id = response["id"] - # subscription = cluster_resource_id.split("/")[2] - # workspace_resource_id = response["addonProfiles"]["omsagent"]["config"]["logAnalyticsWorkspaceResourceID"] - # workspace_name = workspace_resource_id.split("/")[-1] - # workspace_resource_group = workspace_resource_id.split("/")[4] - - # # check that the DCR was created - # dataCollectionRuleName = f"DCR-{workspace_name}" - # dcr_resource_id = f"/subscriptions/{subscription}/resourceGroups/{workspace_resource_group}/providers/Microsoft.Insights/dataCollectionRules/{dataCollectionRuleName}" - # get_cmd = f'rest --method get --url https://management.azure.com{dcr_resource_id}?api-version=2019-11-01-preview' - # self.cmd(get_cmd, checks=[ - # self.check('properties.destinations.logAnalytics[0].workspaceResourceId', f'{workspace_resource_id}') - # ]) - - # # check that the DCR-A was created - # dcra_resource_id = f"{cluster_resource_id}/providers/Microsoft.Insights/dataCollectionRuleAssociations/send-to-{workspace_name}" - # get_cmd = f'rest --method get --url https://management.azure.com{dcra_resource_id}?api-version=2019-11-01-preview' - # self.cmd(get_cmd, checks=[ - # self.check('properties.dataCollectionRuleId', f'{dcr_resource_id}') - # ]) + @live_only() + @AllowLargeResponse() + @AKSCustomResourceGroupPreparer(random_name_length=17, name_prefix='clitest', location='westus2') + def test_aks_create_with_monitoring_aad_auth_msi(self, resource_group, resource_group_location,): + aks_name = self.create_random_name('cliakstest', 16) + self.create_new_cluster_with_monitoring_aad_auth(resource_group, resource_group_location, aks_name, user_assigned_identity=False) + + @live_only() + @AllowLargeResponse() + @AKSCustomResourceGroupPreparer(random_name_length=17, name_prefix='clitest', location='westus2') + def test_aks_create_with_monitoring_aad_auth_uai(self, resource_group, resource_group_location): + aks_name = self.create_random_name('cliakstest', 16) + self.create_new_cluster_with_monitoring_aad_auth(resource_group, resource_group_location, aks_name, user_assigned_identity=True) + + def create_new_cluster_with_monitoring_aad_auth(self, resource_group, resource_group_location, aks_name, user_assigned_identity=False): + self.kwargs.update({ + 'resource_group': resource_group, + 'name': aks_name, + 'location': resource_group_location, + }) + + if user_assigned_identity: + uai_cmd = f'identity create -g {resource_group} -n {aks_name}_uai' + resp = self.cmd(uai_cmd).get_output_in_json() + identity_id = resp["id"] + print("********************") + print(f"identity_id: {identity_id}") + print("********************") + + # create + create_cmd = f'aks create --resource-group={resource_group} --name={aks_name} --location={resource_group_location} ' \ + '--generate-ssh-keys --enable-managed-identity ' \ + '--enable-addons monitoring ' \ + '--enable-msi-auth-for-monitoring ' \ + '--node-count 1 ' + create_cmd += f'--assign-identity {identity_id}' if user_assigned_identity else '' + + response = self.cmd(create_cmd, checks=[ + self.check('addonProfiles.omsagent.enabled', True), + self.check('addonProfiles.omsagent.config.useAADAuth', 'True') + ]).get_output_in_json() + + cluster_resource_id = response["id"] + subscription = cluster_resource_id.split("/")[2] + workspace_resource_id = response["addonProfiles"]["omsagent"]["config"]["logAnalyticsWorkspaceResourceID"] + workspace_name = workspace_resource_id.split("/")[-1] + workspace_resource_group = workspace_resource_id.split("/")[4] + + # check that the DCR was created + dataCollectionRuleName = f"DCR-{workspace_name}" + dcr_resource_id = f"/subscriptions/{subscription}/resourceGroups/{workspace_resource_group}/providers/Microsoft.Insights/dataCollectionRules/{dataCollectionRuleName}" + get_cmd = f'rest --method get --url https://management.azure.com{dcr_resource_id}?api-version=2019-11-01-preview' + self.cmd(get_cmd, checks=[ + self.check('properties.destinations.logAnalytics[0].workspaceResourceId', f'{workspace_resource_id}') + ]) + + # check that the DCR-A was created + dcra_resource_id = f"{cluster_resource_id}/providers/Microsoft.Insights/dataCollectionRuleAssociations/send-to-{workspace_name}" + get_cmd = f'rest --method get --url https://management.azure.com{dcra_resource_id}?api-version=2019-11-01-preview' + self.cmd(get_cmd, checks=[ + self.check('properties.dataCollectionRuleId', f'{dcr_resource_id}') + ]) + + # make sure monitoring can be smoothly disabled + self.cmd(f'aks disable-addons -a monitoring -g={resource_group} -n={aks_name}') + + # delete + self.cmd(f'aks delete -g {resource_group} -n {aks_name} --yes --no-wait', checks=[self.is_empty()]) + + + @live_only() + @AllowLargeResponse() + @AKSCustomResourceGroupPreparer(random_name_length=17, name_prefix='clitest', location='westus2') + def test_aks_enable_monitoring_with_aad_auth_msi(self, resource_group, resource_group_location,): + aks_name = self.create_random_name('cliakstest', 16) + self.enable_monitoring_existing_cluster_aad_atuh(resource_group, resource_group_location, aks_name, user_assigned_identity=False) + + @live_only() + @AllowLargeResponse() + @AKSCustomResourceGroupPreparer(random_name_length=17, name_prefix='clitest', location='westus2') + def test_aks_enable_monitoring_with_aad_auth_uai(self, resource_group, resource_group_location): + aks_name = self.create_random_name('cliakstest', 16) + self.enable_monitoring_existing_cluster_aad_atuh(resource_group, resource_group_location, aks_name, user_assigned_identity=True) + + def enable_monitoring_existing_cluster_aad_atuh(self, resource_group, resource_group_location, aks_name, user_assigned_identity=False): + self.kwargs.update({ + 'resource_group': resource_group, + 'name': aks_name, + 'location': resource_group_location, + }) + + if user_assigned_identity: + uai_cmd = f'identity create -g {resource_group} -n {aks_name}_uai' + resp = self.cmd(uai_cmd).get_output_in_json() + identity_id = resp["id"] + print("********************") + print(f"identity_id: {identity_id}") + print("********************") + + # create + create_cmd = f'aks create --resource-group={resource_group} --name={aks_name} --location={resource_group_location} ' \ + '--generate-ssh-keys --enable-managed-identity ' \ + '--node-count 1 ' + create_cmd += f'--assign-identity {identity_id}' if user_assigned_identity else '' + self.cmd(create_cmd) + + enable_monitoring_cmd = f'aks enable-addons -a monitoring --resource-group={resource_group} --name={aks_name} ' \ + '--enable-msi-auth-for-monitoring ' + + response = self.cmd(enable_monitoring_cmd, checks=[ + self.check('addonProfiles.omsagent.enabled', True), + self.check('addonProfiles.omsagent.config.useAADAuth', 'True') + ]).get_output_in_json() + + cluster_resource_id = response["id"] + subscription = cluster_resource_id.split("/")[2] + workspace_resource_id = response["addonProfiles"]["omsagent"]["config"]["logAnalyticsWorkspaceResourceID"] + workspace_name = workspace_resource_id.split("/")[-1] + workspace_resource_group = workspace_resource_id.split("/")[4] + + # check that the DCR was created + dataCollectionRuleName = f"DCR-{workspace_name}" + dcr_resource_id = f"/subscriptions/{subscription}/resourceGroups/{workspace_resource_group}/providers/Microsoft.Insights/dataCollectionRules/{dataCollectionRuleName}" + get_cmd = f'rest --method get --url https://management.azure.com{dcr_resource_id}?api-version=2019-11-01-preview' + self.cmd(get_cmd, checks=[ + self.check('properties.destinations.logAnalytics[0].workspaceResourceId', f'{workspace_resource_id}') + ]) + + # check that the DCR-A was created + dcra_resource_id = f"{cluster_resource_id}/providers/Microsoft.Insights/dataCollectionRuleAssociations/send-to-{workspace_name}" + get_cmd = f'rest --method get --url https://management.azure.com{dcra_resource_id}?api-version=2019-11-01-preview' + self.cmd(get_cmd, checks=[ + self.check('properties.dataCollectionRuleId', f'{dcr_resource_id}') + ]) + + # make sure monitoring can be smoothly disabled + self.cmd(f'aks disable-addons -a monitoring -g={resource_group} -n={aks_name}') + + # delete + self.cmd(f'aks delete -g {resource_group} -n {aks_name} --yes --no-wait', checks=[self.is_empty()]) @live_only() @AllowLargeResponse() @@ -1299,10 +1310,13 @@ def test_aks_create_with_monitoring_legacy_auth(self, resource_group, resource_g self.check('addonProfiles.omsagent.enabled', True), self.exists('addonProfiles.omsagent.config.logAnalyticsWorkspaceResourceID'), self.check('addonProfiles.omsagent.config.useAADAuth', 'False') - ]).get_output_in_json() + ]) + + # make sure monitoring can be smoothly disabled + self.cmd(f'aks disable-addons -a monitoring -g={resource_group} -n={aks_name}') # delete - self.cmd('aks delete -g {resource_group} -n {name} --yes --no-wait', checks=[self.is_empty()]) + self.cmd(f'aks delete -g {resource_group} -n {aks_name} --yes --no-wait', checks=[self.is_empty()]) @AllowLargeResponse() @AKSCustomResourceGroupPreparer(random_name_length=17, name_prefix='clitest', location='westus2') From fb3767ac5a406b44ae4f6578606a5a4e74dc705d Mon Sep 17 00:00:00 2001 From: David Michelman Date: Wed, 7 Jul 2021 17:46:09 -0700 Subject: [PATCH 19/20] bumping version number --- src/aks-preview/setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aks-preview/setup.py b/src/aks-preview/setup.py index b23e457def9..7c41e65e76f 100644 --- a/src/aks-preview/setup.py +++ b/src/aks-preview/setup.py @@ -8,7 +8,7 @@ from codecs import open as open1 from setuptools import setup, find_packages -VERSION = "0.5.19" +VERSION = "0.5.20" CLASSIFIERS = [ 'Development Status :: 4 - Beta', 'Intended Audience :: Developers', From 7211a81932a6b255de476d58ebccd82d9c9d5df7 Mon Sep 17 00:00:00 2001 From: David Michelman Date: Wed, 7 Jul 2021 18:52:47 -0700 Subject: [PATCH 20/20] fixed a bug in regions where DCRs are not enabled --- src/aks-preview/azext_aks_preview/custom.py | 4 +-- .../tests/latest/test_aks_commands.py | 26 +++++++++++++++++-- src/aks-preview/setup.py | 2 +- 3 files changed, 27 insertions(+), 5 deletions(-) diff --git a/src/aks-preview/azext_aks_preview/custom.py b/src/aks-preview/azext_aks_preview/custom.py index f50aba90bca..5e5d4336899 100644 --- a/src/aks-preview/azext_aks_preview/custom.py +++ b/src/aks-preview/azext_aks_preview/custom.py @@ -3418,7 +3418,7 @@ def aks_disable_addons(cmd, client, resource_group_name, name, addons, no_wait=F if addons == "monitoring" and CONST_MONITORING_ADDON_NAME in instance.addon_profiles and \ instance.addon_profiles[CONST_MONITORING_ADDON_NAME].enabled and \ CONST_MONITORING_USING_AAD_MSI_AUTH in instance.addon_profiles[CONST_MONITORING_ADDON_NAME].config and \ - instance.addon_profiles[CONST_MONITORING_ADDON_NAME].config[CONST_MONITORING_USING_AAD_MSI_AUTH]: + str(instance.addon_profiles[CONST_MONITORING_ADDON_NAME].config[CONST_MONITORING_USING_AAD_MSI_AUTH]).lower() == 'true': # remove the DCR association because otherwise the DCR can't be deleted _ensure_container_insights_for_monitoring( cmd, @@ -3465,7 +3465,7 @@ def aks_enable_addons(cmd, client, resource_group_name, name, addons, workspace_ if CONST_MONITORING_ADDON_NAME in instance.addon_profiles and instance.addon_profiles[CONST_MONITORING_ADDON_NAME].enabled: if CONST_MONITORING_USING_AAD_MSI_AUTH in instance.addon_profiles[CONST_MONITORING_ADDON_NAME].config and \ - instance.addon_profiles[CONST_MONITORING_ADDON_NAME].config[CONST_MONITORING_USING_AAD_MSI_AUTH]: + str(instance.addon_profiles[CONST_MONITORING_ADDON_NAME].config[CONST_MONITORING_USING_AAD_MSI_AUTH]).lower() == 'true': if not msi_auth: raise ArgumentUsageError("--enable-msi-auth-for-monitoring can not be used on clusters with service principal auth.") else: 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 c54257888b2..876ba3418c3 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 @@ -1306,11 +1306,33 @@ def test_aks_create_with_monitoring_legacy_auth(self, resource_group, resource_g '--generate-ssh-keys --enable-managed-identity ' \ '--enable-addons monitoring ' \ '--node-count 1 ' - self.cmd(create_cmd, checks=[ + response = self.cmd(create_cmd, checks=[ self.check('addonProfiles.omsagent.enabled', True), self.exists('addonProfiles.omsagent.config.logAnalyticsWorkspaceResourceID'), self.check('addonProfiles.omsagent.config.useAADAuth', 'False') - ]) + ]).get_output_in_json() + + # make sure a DCR was not created + + cluster_resource_id = response["id"] + subscription = cluster_resource_id.split("/")[2] + workspace_resource_id = response["addonProfiles"]["omsagent"]["config"]["logAnalyticsWorkspaceResourceID"] + workspace_name = workspace_resource_id.split("/")[-1] + workspace_resource_group = workspace_resource_id.split("/")[4] + + try: + # check that the DCR was created + dataCollectionRuleName = f"DCR-{workspace_name}" + dcr_resource_id = f"/subscriptions/{subscription}/resourceGroups/{workspace_resource_group}/providers/Microsoft.Insights/dataCollectionRules/{dataCollectionRuleName}" + get_cmd = f'rest --method get --url https://management.azure.com{dcr_resource_id}?api-version=2019-11-01-preview' + self.cmd(get_cmd, checks=[ + self.check('properties.destinations.logAnalytics[0].workspaceResourceId', f'{workspace_resource_id}') + ]) + + assert False + except Exception as err: + pass # this is expected + # make sure monitoring can be smoothly disabled self.cmd(f'aks disable-addons -a monitoring -g={resource_group} -n={aks_name}') diff --git a/src/aks-preview/setup.py b/src/aks-preview/setup.py index 7c41e65e76f..fa4e30ceeb1 100644 --- a/src/aks-preview/setup.py +++ b/src/aks-preview/setup.py @@ -8,7 +8,7 @@ from codecs import open as open1 from setuptools import setup, find_packages -VERSION = "0.5.20" +VERSION = "0.5.21" CLASSIFIERS = [ 'Development Status :: 4 - Beta', 'Intended Audience :: Developers',