diff --git a/linter_exclusions.yml b/linter_exclusions.yml index e2f0002ae5e..136618ea59e 100644 --- a/linter_exclusions.yml +++ b/linter_exclusions.yml @@ -300,6 +300,9 @@ aks update: load_balancer_outbound_ports: rule_exclusions: - option_length_too_long + enable_managed_identity: + rule_exclusions: + - option_length_too_long aks update-credentials: parameters: aad_server_app_secret: diff --git a/src/azure-cli/azure/cli/command_modules/acs/_help.py b/src/azure-cli/azure/cli/command_modules/acs/_help.py index b33886d64bb..dc284a9f764 100644 --- a/src/azure-cli/azure/cli/command_modules/acs/_help.py +++ b/src/azure-cli/azure/cli/command_modules/acs/_help.py @@ -559,6 +559,12 @@ * Has a special character (Regex match [\\W_]) - Disallowed values: "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!" Reference: https://docs.microsoft.com/en-us/dotnet/api/microsoft.azure.management.compute.models.virtualmachinescalesetosprofile.adminpassword?view=azure-dotnet + - name: --enable-managed-identity + type: bool + short-summary: Update current cluster to use managed identity to manage cluster resource group. + - name: --assign-identity + type: string + short-summary: Specify an existing user assigned identity to manage cluster resource group. examples: - name: Update a kubernetes cluster with standard SKU load balancer to use two AKS created IPs for the load balancer outbound connection usage. text: az aks update -g MyResourceGroup -n MyManagedCluster --load-balancer-managed-outbound-ip-count 2 @@ -586,6 +592,10 @@ text: az aks update -g MyResourceGroup -n MyManagedCluster --disable-ahub - name: Update Windows password of a kubernetes cluster text: az aks update -g MyResourceGroup -n MyManagedCLuster --windows-admin-password "Repl@cePassw0rd12345678" + - name: Update the cluster to use system assigned managed identity in control plane. + text: az aks update -g MyResourceGroup -n MyManagedCluster --enable-managed-identity + - name: Update the cluster to use user assigned managed identity in control plane. + text: az aks update -g MyResourceGroup -n MyManagedCluster --enable-managed-identity --assign-identity """ helps['aks delete'] = """ diff --git a/src/azure-cli/azure/cli/command_modules/acs/_params.py b/src/azure-cli/azure/cli/command_modules/acs/_params.py index a427252eab2..60b30ff5595 100644 --- a/src/azure-cli/azure/cli/command_modules/acs/_params.py +++ b/src/azure-cli/azure/cli/command_modules/acs/_params.py @@ -250,6 +250,9 @@ def load_arguments(self, _): c.argument('enable_ahub', options_list=['--enable-ahub']) c.argument('disable_ahub', options_list=['--disable-ahub']) c.argument('windows_admin_password', options_list=['--windows-admin-password']) + c.argument('enable_managed_identity', action='store_true') + c.argument('assign_identity', type=str, validator=validate_assign_identity) + c.argument('yes', options_list=['--yes', '-y'], help='Do not prompt for confirmation.', action='store_true') with self.argument_context('aks disable-addons') as c: c.argument('addons', options_list=['--addons', '-a']) diff --git a/src/azure-cli/azure/cli/command_modules/acs/custom.py b/src/azure-cli/azure/cli/command_modules/acs/custom.py index abd93a69755..3a65bf2a62c 100644 --- a/src/azure-cli/azure/cli/command_modules/acs/custom.py +++ b/src/azure-cli/azure/cli/command_modules/acs/custom.py @@ -2219,60 +2219,23 @@ def aks_create(cmd, client, resource_group_name, name, ssh_key_value, # pylint: retry_exception = Exception(None) for _ in range(0, max_retry): try: - need_pull_for_result = (monitoring or - (enable_managed_identity and attach_acr) or - ingress_appgw_addon_enabled or - enable_virtual_node or - need_post_creation_vnet_permission_granting) - if need_pull_for_result: - # adding a wait here since we rely on the result for role assignment - result = LongRunningOperation(cmd.cli_ctx)(client.create_or_update( - resource_group_name=resource_group_name, - resource_name=name, - parameters=mc)) - else: - result = sdk_no_wait(no_wait, - client.create_or_update, - resource_group_name=resource_group_name, - resource_name=name, - parameters=mc, - custom_headers=custom_headers) - if monitoring: - cloud_name = cmd.cli_ctx.cloud.name - # add cluster spn/msi Monitoring Metrics Publisher role assignment to publish metrics to MDM - # mdm metrics is supported only in azure public cloud, so add the role assignment only in this cloud - if cloud_name.lower() == 'azurecloud': - from msrestazure.tools import resource_id - cluster_resource_id = resource_id( - subscription=subscription_id, - resource_group=resource_group_name, - namespace='Microsoft.ContainerService', type='managedClusters', - name=name - ) - _add_monitoring_role_assignment(result, cluster_resource_id, cmd) - if enable_managed_identity and attach_acr: - if result.identity_profile is None or result.identity_profile["kubeletidentity"] is None: - logger.warning('Your cluster is successfully created, but we failed to attach acr to it, ' - 'you can manually grant permission to the identity named -agentpool ' - 'in MC_ resource group to give it permission to pull from ACR.') - else: - kubelet_identity_client_id = result.identity_profile["kubeletidentity"].client_id - _ensure_aks_acr(cmd.cli_ctx, - client_id=kubelet_identity_client_id, - acr_name_or_id=attach_acr, - subscription_id=subscription_id) - if ingress_appgw_addon_enabled: - _add_ingress_appgw_addon_role_assignment(result, cmd) - if enable_virtual_node: - _add_virtual_node_role_assignment(cmd, result, vnet_subnet_id) - if need_post_creation_vnet_permission_granting: - if not _create_role_assignment(cmd.cli_ctx, 'Network Contributor', - result.identity.principal_id, scope=vnet_subnet_id, - resolve_assignee=False): - logger.warning('Could not create a role assignment for subnet. ' - 'Are you an Owner on this subscription?') - - return result + created_cluster = _put_managed_cluster_ensuring_permission( + cmd, + client, + subscription_id, + resource_group_name, + name, + mc, + monitoring, + ingress_appgw_addon_enabled, + enable_virtual_node, + need_post_creation_vnet_permission_granting, + vnet_subnet_id, + enable_managed_identity, + attach_acr, + custom_headers, + no_wait) + return created_cluster except CloudError as ex: retry_exception = ex if 'not found in Active Directory tenant' in ex.message: @@ -2486,6 +2449,9 @@ def aks_update(cmd, client, resource_group_name, name, enable_ahub=False, disable_ahub=False, windows_admin_password=None, + enable_managed_identity=False, + assign_identity=None, + yes=False, no_wait=False): update_autoscaler = enable_cluster_autoscaler + disable_cluster_autoscaler + update_cluster_autoscaler update_lb_profile = is_load_balancer_profile_provided(load_balancer_managed_outbound_ip_count, @@ -2506,7 +2472,9 @@ def aks_update(cmd, client, resource_group_name, name, not update_aad_profile and not enable_ahub and not disable_ahub and - not windows_admin_password): + not windows_admin_password and + not enable_managed_identity and + not assign_identity): raise CLIError('Please specify one or more of "--enable-cluster-autoscaler" or ' '"--disable-cluster-autoscaler" or ' '"--update-cluster-autoscaler" or ' @@ -2525,7 +2493,12 @@ def aks_update(cmd, client, resource_group_name, name, '"--aad-admin-group-object-ids" or ' '"--enable-ahub" or ' '"--disable-ahub" or ' - '"--windows-admin-password"') + '"--windows-admin-password" or ' + '"--enable-managed-identity" or ' + '"--assign-identity"') + + if not enable_managed_identity and assign_identity: + raise CLIError('--assign-identity can only be specified when --enable-managed-identity is specified') instance = client.get(resource_group_name, name) # For multi-agent pool, use the az aks nodepool command @@ -2655,7 +2628,72 @@ def aks_update(cmd, client, resource_group_name, name, if windows_admin_password: instance.windows_profile.admin_password = windows_admin_password - return sdk_no_wait(no_wait, client.create_or_update, resource_group_name, name, instance) + current_identity_type = "spn" + if instance.identity is not None: + current_identity_type = instance.identity.type.casefold() + + goal_identity_type = current_identity_type + if enable_managed_identity: + if not assign_identity: + goal_identity_type = "systemassigned" + else: + goal_identity_type = "userassigned" + + if current_identity_type != goal_identity_type: + msg = "" + if current_identity_type == "spn": + msg = ('Your cluster is using service principal, and you are going to update ' + 'the cluster to use {} managed identity.\n After updating, your ' + 'cluster\'s control plane and addon pods will switch to use managed ' + 'identity, but kubelet will KEEP USING SERVICE PRINCIPAL ' + 'until you upgrade your agentpool.\n ' + 'Are you sure you want to perform this operation?').format(goal_identity_type) + else: + msg = ('Your cluster is already using {} managed identity, and you are going to ' + 'update the cluster to use {} managed identity. \nAre you sure you want to ' + 'perform this operation?').format(current_identity_type, goal_identity_type) + if not yes and not prompt_y_n(msg, default="n"): + return None + if goal_identity_type == "systemassigned": + instance.identity = ManagedClusterIdentity( + type="SystemAssigned" + ) + elif goal_identity_type == "userassigned": + user_assigned_identity = { + assign_identity: ManagedClusterIdentityUserAssignedIdentitiesValue() + } + instance.identity = ManagedClusterIdentity( + type="UserAssigned", + user_assigned_identities=user_assigned_identity + ) + + monitoring_addon_enabled = False + ingress_appgw_addon_enabled = False + virtual_node_addon_enabled = False + if instance.addon_profiles is not None: + monitoring_addon_enabled = CONST_MONITORING_ADDON_NAME in instance.addon_profiles and \ + instance.addon_profiles[CONST_MONITORING_ADDON_NAME].enabled + ingress_appgw_addon_enabled = CONST_INGRESS_APPGW_ADDON_NAME in instance.addon_profiles and \ + instance.addon_profiles[CONST_INGRESS_APPGW_ADDON_NAME].enabled + virtual_node_addon_enabled = CONST_VIRTUAL_NODE_ADDON_NAME + 'Linux' in instance.addon_profiles and \ + instance.addon_profiles[CONST_VIRTUAL_NODE_ADDON_NAME + 'Linux'].enabled + + return _put_managed_cluster_ensuring_permission( + cmd, + client, + subscription_id, + resource_group_name, + name, + instance, + monitoring_addon_enabled, + ingress_appgw_addon_enabled, + virtual_node_addon_enabled, + False, + instance.agent_pool_profiles[0].vnet_subnet_id, + _is_msi_cluster(instance), + attach_acr, + None, + no_wait) # pylint: disable=unused-argument,inconsistent-return-statements,too-many-return-statements @@ -4113,3 +4151,80 @@ def _is_msi_cluster(managed_cluster): return (managed_cluster and managed_cluster.identity and (managed_cluster.identity.type.casefold() == "systemassigned" or managed_cluster.identity.type.casefold() == "userassigned")) + + +def _put_managed_cluster_ensuring_permission( + cmd, # pylint: disable=too-many-locals,too-many-statements,too-many-branches + client, + subscription_id, + resource_group_name, + name, + managed_cluster, + monitoring_addon_enabled, + ingress_appgw_addon_enabled, + virtual_node_addon_enabled, + need_grant_vnet_permission_to_cluster_identity, + vnet_subnet_id, + enable_managed_identity, + attach_acr, + headers, + no_wait +): + # some addons require post cluster creation role assigment + need_post_creation_role_assignment = (monitoring_addon_enabled or + ingress_appgw_addon_enabled or + (enable_managed_identity and attach_acr) or + virtual_node_addon_enabled or + need_grant_vnet_permission_to_cluster_identity) + if need_post_creation_role_assignment: + # adding a wait here since we rely on the result for role assignment + cluster = LongRunningOperation(cmd.cli_ctx)(client.create_or_update( + resource_group_name=resource_group_name, + resource_name=name, + parameters=managed_cluster, + custom_headers=headers)) + cloud_name = cmd.cli_ctx.cloud.name + # add cluster spn/msi Monitoring Metrics Publisher role assignment to publish metrics to MDM + # mdm metrics is supported only in azure public cloud, so add the role assignment only in this cloud + if monitoring_addon_enabled and cloud_name.lower() == 'azurecloud': + from msrestazure.tools import resource_id + cluster_resource_id = resource_id( + subscription=subscription_id, + resource_group=resource_group_name, + namespace='Microsoft.ContainerService', type='managedClusters', + name=name + ) + _add_monitoring_role_assignment(cluster, cluster_resource_id, cmd) + if ingress_appgw_addon_enabled: + _add_ingress_appgw_addon_role_assignment(cluster, cmd) + if virtual_node_addon_enabled: + _add_virtual_node_role_assignment(cmd, cluster, vnet_subnet_id) + if need_grant_vnet_permission_to_cluster_identity: + if not _create_role_assignment(cmd.cli_ctx, 'Network Contributor', + cluster.identity.principal_id, scope=vnet_subnet_id, + resolve_assignee=False): + logger.warning('Could not create a role assignment for subnet. ' + 'Are you an Owner on this subscription?') + + if enable_managed_identity and attach_acr: + # Attach ACR to cluster enabled managed identity + if cluster.identity_profile is None or \ + cluster.identity_profile["kubeletidentity"] is None: + logger.warning('Your cluster is successfully created, but we failed to attach ' + 'acr to it, you can manually grant permission to the identity ' + 'named -agentpool in MC_ resource group to give ' + 'it permission to pull from ACR.') + else: + kubelet_identity_client_id = cluster.identity_profile["kubeletidentity"].client_id + _ensure_aks_acr(cmd.cli_ctx, + client_id=kubelet_identity_client_id, + acr_name_or_id=attach_acr, + subscription_id=subscription_id) + else: + cluster = sdk_no_wait(no_wait, client.create_or_update, + resource_group_name=resource_group_name, + resource_name=name, + parameters=managed_cluster, + custom_headers=headers) + + return cluster diff --git a/src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_update_to_msi_cluster.yaml b/src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_update_to_msi_cluster.yaml new file mode 100644 index 00000000000..a466ced2521 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_update_to_msi_cluster.yaml @@ -0,0 +1,1639 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --generate-ssh-keys --service-principal --client-secret + User-Agent: + - python/3.6.9 (Linux-5.4.0-1031-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.21 + msrest_azure/0.6.3 azure-mgmt-resource/12.1.0 Azure-SDK-For-Python AZURECLI/2.22.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000002?api-version=2020-10-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000002","name":"clitest000002","type":"Microsoft.Resources/resourceGroups","location":"westeurope","tags":{"product":"azurecli","cause":"automation","date":"2021-04-28T07:05:57Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '316' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 07:05: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": "westeurope", "properties": {"kubernetesVersion": "", "dnsPrefix": + "cliakstest-clitest2oit5jf3l-8ecadf", "agentPoolProfiles": [{"count": 3, "vmSize": + "Standard_DS2_v2", "osType": "Linux", "type": "VirtualMachineScaleSets", "mode": + "System", "enableNodePublicIP": false, "scaleSetPriority": "Regular", "scaleSetEvictionPolicy": + "Delete", "name": "nodepool1"}], "linuxProfile": {"adminUsername": "azureuser", + "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDSlNNOwMw6aHvdkhUaMmfkjt19xPFa162alrqWaTFan0f864FGHVcSvXUvRBLeRj+x2RMlqr1TR6y73x07vqbaVApfssn52ROE3eKoX2cmez+EMaM19n2BzQLhr1lR/LkixeCM03/hYb3j16uaYeZ+zY060RdnVmPWVhslRRXmst+8cD3EXUkxdzmUa+J03nLyO8nqfCTKUltePz0FQ4IymD8ewa+sWgUlRKBwgoUBh35BFRAGq//OXuHFw6sowEIxwb5KSar4c2SHcewbSbuVFpWR7uhpYLXPJoISeASejQ4nfg+DlIbIf6mNwnLcqrHy6bwmwYeS36TUMHoxbCa7"}]}}, + "servicePrincipalProfile": {"clientId": "http://clitest000001", "secret": "Q0RLpdAs5W9rMKD.RMNmhCMRM6e0OtdG44"}, + "addonProfiles": {}, "enableRBAC": true, "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"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '1243' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --resource-group --name --generate-ssh-keys --service-principal --client-secret + User-Agent: + - python/3.6.9 (Linux-5.4.0-1031-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.21 + msrest_azure/0.6.3 azure-mgmt-containerservice/11.1.0 Azure-SDK-For-Python + AZURECLI/2.22.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000002/providers/Microsoft.ContainerService/managedClusters/cliakstest000003?api-version=2021-02-01 + response: + body: + string: "{\n \"code\": \"ServicePrincipalNotFound\",\n \"message\": \"Service\ + \ principal clientID: http://clitest000001 not found in Active Directory tenant\ + \ 72f988bf-86f1-41af-91ab-2d7cd011db47, Please see https://aka.ms/aks-sp-help\ + \ for more details.\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '248' + content-type: + - application/json + date: + - Wed, 28 Apr 2021 07:06:05 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: 400 + message: Bad Request +- request: + body: '{"location": "westeurope", "properties": {"kubernetesVersion": "", "dnsPrefix": + "cliakstest-clitest2oit5jf3l-8ecadf", "agentPoolProfiles": [{"count": 3, "vmSize": + "Standard_DS2_v2", "osType": "Linux", "type": "VirtualMachineScaleSets", "mode": + "System", "enableNodePublicIP": false, "scaleSetPriority": "Regular", "scaleSetEvictionPolicy": + "Delete", "name": "nodepool1"}], "linuxProfile": {"adminUsername": "azureuser", + "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDSlNNOwMw6aHvdkhUaMmfkjt19xPFa162alrqWaTFan0f864FGHVcSvXUvRBLeRj+x2RMlqr1TR6y73x07vqbaVApfssn52ROE3eKoX2cmez+EMaM19n2BzQLhr1lR/LkixeCM03/hYb3j16uaYeZ+zY060RdnVmPWVhslRRXmst+8cD3EXUkxdzmUa+J03nLyO8nqfCTKUltePz0FQ4IymD8ewa+sWgUlRKBwgoUBh35BFRAGq//OXuHFw6sowEIxwb5KSar4c2SHcewbSbuVFpWR7uhpYLXPJoISeASejQ4nfg+DlIbIf6mNwnLcqrHy6bwmwYeS36TUMHoxbCa7"}]}}, + "servicePrincipalProfile": {"clientId": "http://clitest000001", "secret": "Q0RLpdAs5W9rMKD.RMNmhCMRM6e0OtdG44"}, + "addonProfiles": {}, "enableRBAC": true, "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"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '1243' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --resource-group --name --generate-ssh-keys --service-principal --client-secret + User-Agent: + - python/3.6.9 (Linux-5.4.0-1031-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.21 + msrest_azure/0.6.3 azure-mgmt-containerservice/11.1.0 Azure-SDK-For-Python + AZURECLI/2.22.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000002/providers/Microsoft.ContainerService/managedClusters/cliakstest000003?api-version=2021-02-01 + response: + body: + string: "{\n \"code\": \"ServicePrincipalNotFound\",\n \"message\": \"Service\ + \ principal clientID: http://clitest000001 not found in Active Directory tenant\ + \ 72f988bf-86f1-41af-91ab-2d7cd011db47, Please see https://aka.ms/aks-sp-help\ + \ for more details.\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '248' + content-type: + - application/json + date: + - Wed, 28 Apr 2021 07:06:13 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: 400 + message: Bad Request +- request: + body: '{"location": "westeurope", "properties": {"kubernetesVersion": "", "dnsPrefix": + "cliakstest-clitest2oit5jf3l-8ecadf", "agentPoolProfiles": [{"count": 3, "vmSize": + "Standard_DS2_v2", "osType": "Linux", "type": "VirtualMachineScaleSets", "mode": + "System", "enableNodePublicIP": false, "scaleSetPriority": "Regular", "scaleSetEvictionPolicy": + "Delete", "name": "nodepool1"}], "linuxProfile": {"adminUsername": "azureuser", + "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDSlNNOwMw6aHvdkhUaMmfkjt19xPFa162alrqWaTFan0f864FGHVcSvXUvRBLeRj+x2RMlqr1TR6y73x07vqbaVApfssn52ROE3eKoX2cmez+EMaM19n2BzQLhr1lR/LkixeCM03/hYb3j16uaYeZ+zY060RdnVmPWVhslRRXmst+8cD3EXUkxdzmUa+J03nLyO8nqfCTKUltePz0FQ4IymD8ewa+sWgUlRKBwgoUBh35BFRAGq//OXuHFw6sowEIxwb5KSar4c2SHcewbSbuVFpWR7uhpYLXPJoISeASejQ4nfg+DlIbIf6mNwnLcqrHy6bwmwYeS36TUMHoxbCa7"}]}}, + "servicePrincipalProfile": {"clientId": "http://clitest000001", "secret": "Q0RLpdAs5W9rMKD.RMNmhCMRM6e0OtdG44"}, + "addonProfiles": {}, "enableRBAC": true, "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"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '1243' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --resource-group --name --generate-ssh-keys --service-principal --client-secret + User-Agent: + - python/3.6.9 (Linux-5.4.0-1031-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.21 + msrest_azure/0.6.3 azure-mgmt-containerservice/11.1.0 Azure-SDK-For-Python + AZURECLI/2.22.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000002/providers/Microsoft.ContainerService/managedClusters/cliakstest000003?api-version=2021-02-01 + response: + body: + string: "{\n \"code\": \"ServicePrincipalNotFound\",\n \"message\": \"Service\ + \ principal clientID: http://clitest000001 not found in Active Directory tenant\ + \ 72f988bf-86f1-41af-91ab-2d7cd011db47, Please see https://aka.ms/aks-sp-help\ + \ for more details.\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '248' + content-type: + - application/json + date: + - Wed, 28 Apr 2021 07:06:20 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1197' + status: + code: 400 + message: Bad Request +- request: + body: '{"location": "westeurope", "properties": {"kubernetesVersion": "", "dnsPrefix": + "cliakstest-clitest2oit5jf3l-8ecadf", "agentPoolProfiles": [{"count": 3, "vmSize": + "Standard_DS2_v2", "osType": "Linux", "type": "VirtualMachineScaleSets", "mode": + "System", "enableNodePublicIP": false, "scaleSetPriority": "Regular", "scaleSetEvictionPolicy": + "Delete", "name": "nodepool1"}], "linuxProfile": {"adminUsername": "azureuser", + "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDSlNNOwMw6aHvdkhUaMmfkjt19xPFa162alrqWaTFan0f864FGHVcSvXUvRBLeRj+x2RMlqr1TR6y73x07vqbaVApfssn52ROE3eKoX2cmez+EMaM19n2BzQLhr1lR/LkixeCM03/hYb3j16uaYeZ+zY060RdnVmPWVhslRRXmst+8cD3EXUkxdzmUa+J03nLyO8nqfCTKUltePz0FQ4IymD8ewa+sWgUlRKBwgoUBh35BFRAGq//OXuHFw6sowEIxwb5KSar4c2SHcewbSbuVFpWR7uhpYLXPJoISeASejQ4nfg+DlIbIf6mNwnLcqrHy6bwmwYeS36TUMHoxbCa7"}]}}, + "servicePrincipalProfile": {"clientId": "http://clitest000001", "secret": "Q0RLpdAs5W9rMKD.RMNmhCMRM6e0OtdG44"}, + "addonProfiles": {}, "enableRBAC": true, "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"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '1243' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --resource-group --name --generate-ssh-keys --service-principal --client-secret + User-Agent: + - python/3.6.9 (Linux-5.4.0-1031-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.21 + msrest_azure/0.6.3 azure-mgmt-containerservice/11.1.0 Azure-SDK-For-Python + AZURECLI/2.22.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000002/providers/Microsoft.ContainerService/managedClusters/cliakstest000003?api-version=2021-02-01 + response: + body: + string: "{\n \"code\": \"ServicePrincipalNotFound\",\n \"message\": \"Service\ + \ principal clientID: http://clitest000001 not found in Active Directory tenant\ + \ 72f988bf-86f1-41af-91ab-2d7cd011db47, Please see https://aka.ms/aks-sp-help\ + \ for more details.\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '248' + content-type: + - application/json + date: + - Wed, 28 Apr 2021 07:06:26 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: + - '1196' + status: + code: 400 + message: Bad Request +- request: + body: '{"location": "westeurope", "properties": {"kubernetesVersion": "", "dnsPrefix": + "cliakstest-clitest2oit5jf3l-8ecadf", "agentPoolProfiles": [{"count": 3, "vmSize": + "Standard_DS2_v2", "osType": "Linux", "type": "VirtualMachineScaleSets", "mode": + "System", "enableNodePublicIP": false, "scaleSetPriority": "Regular", "scaleSetEvictionPolicy": + "Delete", "name": "nodepool1"}], "linuxProfile": {"adminUsername": "azureuser", + "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDSlNNOwMw6aHvdkhUaMmfkjt19xPFa162alrqWaTFan0f864FGHVcSvXUvRBLeRj+x2RMlqr1TR6y73x07vqbaVApfssn52ROE3eKoX2cmez+EMaM19n2BzQLhr1lR/LkixeCM03/hYb3j16uaYeZ+zY060RdnVmPWVhslRRXmst+8cD3EXUkxdzmUa+J03nLyO8nqfCTKUltePz0FQ4IymD8ewa+sWgUlRKBwgoUBh35BFRAGq//OXuHFw6sowEIxwb5KSar4c2SHcewbSbuVFpWR7uhpYLXPJoISeASejQ4nfg+DlIbIf6mNwnLcqrHy6bwmwYeS36TUMHoxbCa7"}]}}, + "servicePrincipalProfile": {"clientId": "http://clitest000001", "secret": "Q0RLpdAs5W9rMKD.RMNmhCMRM6e0OtdG44"}, + "addonProfiles": {}, "enableRBAC": true, "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"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '1243' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --resource-group --name --generate-ssh-keys --service-principal --client-secret + User-Agent: + - python/3.6.9 (Linux-5.4.0-1031-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.21 + msrest_azure/0.6.3 azure-mgmt-containerservice/11.1.0 Azure-SDK-For-Python + AZURECLI/2.22.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000002/providers/Microsoft.ContainerService/managedClusters/cliakstest000003?api-version=2021-02-01 + response: + body: + string: "{\n \"code\": \"ServicePrincipalNotFound\",\n \"message\": \"Service\ + \ principal clientID: http://clitest000001 not found in Active Directory tenant\ + \ 72f988bf-86f1-41af-91ab-2d7cd011db47, Please see https://aka.ms/aks-sp-help\ + \ for more details.\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '248' + content-type: + - application/json + date: + - Wed, 28 Apr 2021 07:06:33 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: + - '1195' + status: + code: 400 + message: Bad Request +- request: + body: '{"location": "westeurope", "properties": {"kubernetesVersion": "", "dnsPrefix": + "cliakstest-clitest2oit5jf3l-8ecadf", "agentPoolProfiles": [{"count": 3, "vmSize": + "Standard_DS2_v2", "osType": "Linux", "type": "VirtualMachineScaleSets", "mode": + "System", "enableNodePublicIP": false, "scaleSetPriority": "Regular", "scaleSetEvictionPolicy": + "Delete", "name": "nodepool1"}], "linuxProfile": {"adminUsername": "azureuser", + "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDSlNNOwMw6aHvdkhUaMmfkjt19xPFa162alrqWaTFan0f864FGHVcSvXUvRBLeRj+x2RMlqr1TR6y73x07vqbaVApfssn52ROE3eKoX2cmez+EMaM19n2BzQLhr1lR/LkixeCM03/hYb3j16uaYeZ+zY060RdnVmPWVhslRRXmst+8cD3EXUkxdzmUa+J03nLyO8nqfCTKUltePz0FQ4IymD8ewa+sWgUlRKBwgoUBh35BFRAGq//OXuHFw6sowEIxwb5KSar4c2SHcewbSbuVFpWR7uhpYLXPJoISeASejQ4nfg+DlIbIf6mNwnLcqrHy6bwmwYeS36TUMHoxbCa7"}]}}, + "servicePrincipalProfile": {"clientId": "http://clitest000001", "secret": "Q0RLpdAs5W9rMKD.RMNmhCMRM6e0OtdG44"}, + "addonProfiles": {}, "enableRBAC": true, "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"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '1243' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --resource-group --name --generate-ssh-keys --service-principal --client-secret + User-Agent: + - python/3.6.9 (Linux-5.4.0-1031-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.21 + msrest_azure/0.6.3 azure-mgmt-containerservice/11.1.0 Azure-SDK-For-Python + AZURECLI/2.22.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000002/providers/Microsoft.ContainerService/managedClusters/cliakstest000003?api-version=2021-02-01 + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000002/providers/Microsoft.ContainerService/managedClusters/cliakstest000003\"\ + ,\n \"location\": \"westeurope\",\n \"name\": \"cliakstest000003\",\n \"\ + type\": \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\"\ + : {\n \"provisioningState\": \"Creating\",\n \"powerState\": {\n \"\ + code\": \"Running\"\n },\n \"kubernetesVersion\": \"1.19.9\",\n \"dnsPrefix\"\ + : \"cliakstest-clitest2oit5jf3l-8ecadf\",\n \"fqdn\": \"cliakstest-clitest2oit5jf3l-8ecadf-79f56af7.hcp.westeurope.azmk8s.io\"\ + ,\n \"azurePortalFQDN\": \"cliakstest-clitest2oit5jf3l-8ecadf-79f56af7.portal.hcp.westeurope.azmk8s.io\"\ + ,\n \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \ + \ \"count\": 3,\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.9\",\n\ + \ \"enableNodePublicIP\": false,\n \"nodeLabels\": {},\n \"mode\"\ + : \"System\",\n \"osType\": \"Linux\",\n \"nodeImageVersion\": \"\ + AKSUbuntu-1804gen2containerd-2021.03.31\"\n }\n ],\n \"linuxProfile\"\ + : {\n \"adminUsername\": \"azureuser\",\n \"ssh\": {\n \"publicKeys\"\ + : [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDSlNNOwMw6aHvdkhUaMmfkjt19xPFa162alrqWaTFan0f864FGHVcSvXUvRBLeRj+x2RMlqr1TR6y73x07vqbaVApfssn52ROE3eKoX2cmez+EMaM19n2BzQLhr1lR/LkixeCM03/hYb3j16uaYeZ+zY060RdnVmPWVhslRRXmst+8cD3EXUkxdzmUa+J03nLyO8nqfCTKUltePz0FQ4IymD8ewa+sWgUlRKBwgoUBh35BFRAGq//OXuHFw6sowEIxwb5KSar4c2SHcewbSbuVFpWR7uhpYLXPJoISeASejQ4nfg+DlIbIf6mNwnLcqrHy6bwmwYeS36TUMHoxbCa7\"\ + \n }\n ]\n }\n },\n \"servicePrincipalProfile\": {\n \"\ + clientId\": \"http://clitest000001\"\n },\n \"nodeResourceGroup\": \"\ + MC_clitest000002_cliakstest000003_westeurope\",\n \"enableRBAC\": true,\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 },\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/westeurope/operations/c3f5efb3-4197-4e07-810b-26ca2029289c?api-version=2017-08-31 + cache-control: + - no-cache + content-length: + - '2379' + content-type: + - application/json + date: + - Wed, 28 Apr 2021 07:06:41 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: + - '1194' + 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 --generate-ssh-keys --service-principal --client-secret + User-Agent: + - python/3.6.9 (Linux-5.4.0-1031-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.21 + msrest_azure/0.6.3 azure-mgmt-containerservice/11.1.0 Azure-SDK-For-Python + AZURECLI/2.22.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westeurope/operations/c3f5efb3-4197-4e07-810b-26ca2029289c?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"b3eff5c3-9741-074e-810b-26ca2029289c\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-04-28T07:06:40.7633333Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 28 Apr 2021 07:07:11 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 --generate-ssh-keys --service-principal --client-secret + User-Agent: + - python/3.6.9 (Linux-5.4.0-1031-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.21 + msrest_azure/0.6.3 azure-mgmt-containerservice/11.1.0 Azure-SDK-For-Python + AZURECLI/2.22.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westeurope/operations/c3f5efb3-4197-4e07-810b-26ca2029289c?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"b3eff5c3-9741-074e-810b-26ca2029289c\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-04-28T07:06:40.7633333Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 28 Apr 2021 07:07:42 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 --generate-ssh-keys --service-principal --client-secret + User-Agent: + - python/3.6.9 (Linux-5.4.0-1031-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.21 + msrest_azure/0.6.3 azure-mgmt-containerservice/11.1.0 Azure-SDK-For-Python + AZURECLI/2.22.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westeurope/operations/c3f5efb3-4197-4e07-810b-26ca2029289c?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"b3eff5c3-9741-074e-810b-26ca2029289c\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-04-28T07:06:40.7633333Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 28 Apr 2021 07:08:12 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 --generate-ssh-keys --service-principal --client-secret + User-Agent: + - python/3.6.9 (Linux-5.4.0-1031-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.21 + msrest_azure/0.6.3 azure-mgmt-containerservice/11.1.0 Azure-SDK-For-Python + AZURECLI/2.22.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westeurope/operations/c3f5efb3-4197-4e07-810b-26ca2029289c?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"b3eff5c3-9741-074e-810b-26ca2029289c\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-04-28T07:06:40.7633333Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 28 Apr 2021 07:08:42 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 --generate-ssh-keys --service-principal --client-secret + User-Agent: + - python/3.6.9 (Linux-5.4.0-1031-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.21 + msrest_azure/0.6.3 azure-mgmt-containerservice/11.1.0 Azure-SDK-For-Python + AZURECLI/2.22.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westeurope/operations/c3f5efb3-4197-4e07-810b-26ca2029289c?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"b3eff5c3-9741-074e-810b-26ca2029289c\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-04-28T07:06:40.7633333Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 28 Apr 2021 07:09:12 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 --generate-ssh-keys --service-principal --client-secret + User-Agent: + - python/3.6.9 (Linux-5.4.0-1031-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.21 + msrest_azure/0.6.3 azure-mgmt-containerservice/11.1.0 Azure-SDK-For-Python + AZURECLI/2.22.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westeurope/operations/c3f5efb3-4197-4e07-810b-26ca2029289c?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"b3eff5c3-9741-074e-810b-26ca2029289c\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-04-28T07:06:40.7633333Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 28 Apr 2021 07:09:42 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 --generate-ssh-keys --service-principal --client-secret + User-Agent: + - python/3.6.9 (Linux-5.4.0-1031-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.21 + msrest_azure/0.6.3 azure-mgmt-containerservice/11.1.0 Azure-SDK-For-Python + AZURECLI/2.22.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westeurope/operations/c3f5efb3-4197-4e07-810b-26ca2029289c?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"b3eff5c3-9741-074e-810b-26ca2029289c\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-04-28T07:06:40.7633333Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 28 Apr 2021 07:10:13 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --generate-ssh-keys --service-principal --client-secret + User-Agent: + - python/3.6.9 (Linux-5.4.0-1031-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.21 + msrest_azure/0.6.3 azure-mgmt-containerservice/11.1.0 Azure-SDK-For-Python + AZURECLI/2.22.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westeurope/operations/c3f5efb3-4197-4e07-810b-26ca2029289c?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"b3eff5c3-9741-074e-810b-26ca2029289c\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-04-28T07:06:40.7633333Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 28 Apr 2021 07:10:43 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 --generate-ssh-keys --service-principal --client-secret + User-Agent: + - python/3.6.9 (Linux-5.4.0-1031-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.21 + msrest_azure/0.6.3 azure-mgmt-containerservice/11.1.0 Azure-SDK-For-Python + AZURECLI/2.22.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westeurope/operations/c3f5efb3-4197-4e07-810b-26ca2029289c?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"b3eff5c3-9741-074e-810b-26ca2029289c\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-04-28T07:06:40.7633333Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 28 Apr 2021 07:11:13 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --generate-ssh-keys --service-principal --client-secret + User-Agent: + - python/3.6.9 (Linux-5.4.0-1031-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.21 + msrest_azure/0.6.3 azure-mgmt-containerservice/11.1.0 Azure-SDK-For-Python + AZURECLI/2.22.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westeurope/operations/c3f5efb3-4197-4e07-810b-26ca2029289c?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"b3eff5c3-9741-074e-810b-26ca2029289c\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-04-28T07:06:40.7633333Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 28 Apr 2021 07:11:43 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 --generate-ssh-keys --service-principal --client-secret + User-Agent: + - python/3.6.9 (Linux-5.4.0-1031-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.21 + msrest_azure/0.6.3 azure-mgmt-containerservice/11.1.0 Azure-SDK-For-Python + AZURECLI/2.22.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westeurope/operations/c3f5efb3-4197-4e07-810b-26ca2029289c?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"b3eff5c3-9741-074e-810b-26ca2029289c\",\n \"status\"\ + : \"Succeeded\",\n \"startTime\": \"2021-04-28T07:06:40.7633333Z\",\n \"\ + endTime\": \"2021-04-28T07:11:44.4925462Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '170' + content-type: + - application/json + date: + - Wed, 28 Apr 2021 07:12:13 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --generate-ssh-keys --service-principal --client-secret + User-Agent: + - python/3.6.9 (Linux-5.4.0-1031-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.21 + msrest_azure/0.6.3 azure-mgmt-containerservice/11.1.0 Azure-SDK-For-Python + AZURECLI/2.22.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000002/providers/Microsoft.ContainerService/managedClusters/cliakstest000003?api-version=2021-02-01 + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000002/providers/Microsoft.ContainerService/managedClusters/cliakstest000003\"\ + ,\n \"location\": \"westeurope\",\n \"name\": \"cliakstest000003\",\n \"\ + type\": \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\"\ + : {\n \"provisioningState\": \"Succeeded\",\n \"powerState\": {\n \"\ + code\": \"Running\"\n },\n \"kubernetesVersion\": \"1.19.9\",\n \"dnsPrefix\"\ + : \"cliakstest-clitest2oit5jf3l-8ecadf\",\n \"fqdn\": \"cliakstest-clitest2oit5jf3l-8ecadf-79f56af7.hcp.westeurope.azmk8s.io\"\ + ,\n \"azurePortalFQDN\": \"cliakstest-clitest2oit5jf3l-8ecadf-79f56af7.portal.hcp.westeurope.azmk8s.io\"\ + ,\n \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \ + \ \"count\": 3,\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.9\"\ + ,\n \"enableNodePublicIP\": false,\n \"nodeLabels\": {},\n \"\ + mode\": \"System\",\n \"osType\": \"Linux\",\n \"nodeImageVersion\"\ + : \"AKSUbuntu-1804gen2containerd-2021.03.31\"\n }\n ],\n \"linuxProfile\"\ + : {\n \"adminUsername\": \"azureuser\",\n \"ssh\": {\n \"publicKeys\"\ + : [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDSlNNOwMw6aHvdkhUaMmfkjt19xPFa162alrqWaTFan0f864FGHVcSvXUvRBLeRj+x2RMlqr1TR6y73x07vqbaVApfssn52ROE3eKoX2cmez+EMaM19n2BzQLhr1lR/LkixeCM03/hYb3j16uaYeZ+zY060RdnVmPWVhslRRXmst+8cD3EXUkxdzmUa+J03nLyO8nqfCTKUltePz0FQ4IymD8ewa+sWgUlRKBwgoUBh35BFRAGq//OXuHFw6sowEIxwb5KSar4c2SHcewbSbuVFpWR7uhpYLXPJoISeASejQ4nfg+DlIbIf6mNwnLcqrHy6bwmwYeS36TUMHoxbCa7\"\ + \n }\n ]\n }\n },\n \"servicePrincipalProfile\": {\n \"\ + clientId\": \"http://clitest000001\"\n },\n \"nodeResourceGroup\": \"\ + MC_clitest000002_cliakstest000003_westeurope\",\n \"enableRBAC\": true,\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_clitest000002_cliakstest000003_westeurope/providers/Microsoft.Network/publicIPAddresses/31e8d67b-0962-476a-9de4-535b6227d01a\"\ + \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 },\n \"sku\": {\n \"name\": \"Basic\",\n \"tier\"\ + : \"Free\"\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '2650' + content-type: + - application/json + date: + - Wed, 28 Apr 2021 07:12:13 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --enable-managed-identity --yes + User-Agent: + - python/3.6.9 (Linux-5.4.0-1031-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.21 + msrest_azure/0.6.3 azure-mgmt-containerservice/11.1.0 Azure-SDK-For-Python + AZURECLI/2.22.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000002/providers/Microsoft.ContainerService/managedClusters/cliakstest000003?api-version=2021-02-01 + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000002/providers/Microsoft.ContainerService/managedClusters/cliakstest000003\"\ + ,\n \"location\": \"westeurope\",\n \"name\": \"cliakstest000003\",\n \"\ + type\": \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\"\ + : {\n \"provisioningState\": \"Succeeded\",\n \"powerState\": {\n \"\ + code\": \"Running\"\n },\n \"kubernetesVersion\": \"1.19.9\",\n \"dnsPrefix\"\ + : \"cliakstest-clitest2oit5jf3l-8ecadf\",\n \"fqdn\": \"cliakstest-clitest2oit5jf3l-8ecadf-79f56af7.hcp.westeurope.azmk8s.io\"\ + ,\n \"azurePortalFQDN\": \"cliakstest-clitest2oit5jf3l-8ecadf-79f56af7.portal.hcp.westeurope.azmk8s.io\"\ + ,\n \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \ + \ \"count\": 3,\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.9\"\ + ,\n \"enableNodePublicIP\": false,\n \"nodeLabels\": {},\n \"\ + mode\": \"System\",\n \"osType\": \"Linux\",\n \"nodeImageVersion\"\ + : \"AKSUbuntu-1804gen2containerd-2021.03.31\"\n }\n ],\n \"linuxProfile\"\ + : {\n \"adminUsername\": \"azureuser\",\n \"ssh\": {\n \"publicKeys\"\ + : [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDSlNNOwMw6aHvdkhUaMmfkjt19xPFa162alrqWaTFan0f864FGHVcSvXUvRBLeRj+x2RMlqr1TR6y73x07vqbaVApfssn52ROE3eKoX2cmez+EMaM19n2BzQLhr1lR/LkixeCM03/hYb3j16uaYeZ+zY060RdnVmPWVhslRRXmst+8cD3EXUkxdzmUa+J03nLyO8nqfCTKUltePz0FQ4IymD8ewa+sWgUlRKBwgoUBh35BFRAGq//OXuHFw6sowEIxwb5KSar4c2SHcewbSbuVFpWR7uhpYLXPJoISeASejQ4nfg+DlIbIf6mNwnLcqrHy6bwmwYeS36TUMHoxbCa7\"\ + \n }\n ]\n }\n },\n \"servicePrincipalProfile\": {\n \"\ + clientId\": \"http://clitest000001\"\n },\n \"nodeResourceGroup\": \"\ + MC_clitest000002_cliakstest000003_westeurope\",\n \"enableRBAC\": true,\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_clitest000002_cliakstest000003_westeurope/providers/Microsoft.Network/publicIPAddresses/31e8d67b-0962-476a-9de4-535b6227d01a\"\ + \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 },\n \"sku\": {\n \"name\": \"Basic\",\n \"tier\"\ + : \"Free\"\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '2650' + content-type: + - application/json + date: + - Wed, 28 Apr 2021 07:12:15 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: '{"location": "westeurope", "properties": {"kubernetesVersion": "1.19.9", + "dnsPrefix": "cliakstest-clitest2oit5jf3l-8ecadf", "agentPoolProfiles": [{"count": + 3, "vmSize": "Standard_DS2_v2", "osDiskSizeGB": 128, "osDiskType": "Managed", + "kubeletDiskType": "OS", "maxPods": 110, "osType": "Linux", "type": "VirtualMachineScaleSets", + "mode": "System", "orchestratorVersion": "1.19.9", "enableNodePublicIP": false, + "nodeLabels": {}, "name": "nodepool1"}], "linuxProfile": {"adminUsername": "azureuser", + "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDSlNNOwMw6aHvdkhUaMmfkjt19xPFa162alrqWaTFan0f864FGHVcSvXUvRBLeRj+x2RMlqr1TR6y73x07vqbaVApfssn52ROE3eKoX2cmez+EMaM19n2BzQLhr1lR/LkixeCM03/hYb3j16uaYeZ+zY060RdnVmPWVhslRRXmst+8cD3EXUkxdzmUa+J03nLyO8nqfCTKUltePz0FQ4IymD8ewa+sWgUlRKBwgoUBh35BFRAGq//OXuHFw6sowEIxwb5KSar4c2SHcewbSbuVFpWR7uhpYLXPJoISeASejQ4nfg+DlIbIf6mNwnLcqrHy6bwmwYeS36TUMHoxbCa7"}]}}, + "servicePrincipalProfile": {"clientId": "http://clitest000001"}, "nodeResourceGroup": + "MC_clitest000002_cliakstest000003_westeurope", "enableRBAC": true, "networkProfile": + {"networkPlugin": "kubenet", "podCidr": "10.244.0.0/16", "serviceCidr": "10.0.0.0/16", + "dnsServiceIP": "10.0.0.10", "dockerBridgeCidr": "172.17.0.1/16", "outboundType": + "loadBalancer", "loadBalancerSku": "Standard", "loadBalancerProfile": {"managedOutboundIPs": + {"count": 1}, "effectiveOutboundIPs": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000002_cliakstest000003_westeurope/providers/Microsoft.Network/publicIPAddresses/31e8d67b-0962-476a-9de4-535b6227d01a"}]}}}, + "identity": {"type": "SystemAssigned"}, "sku": {"name": "Basic", "tier": "Free"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + Content-Length: + - '1703' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --resource-group --name --enable-managed-identity --yes + User-Agent: + - python/3.6.9 (Linux-5.4.0-1031-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.21 + msrest_azure/0.6.3 azure-mgmt-containerservice/11.1.0 Azure-SDK-For-Python + AZURECLI/2.22.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000002/providers/Microsoft.ContainerService/managedClusters/cliakstest000003?api-version=2021-02-01 + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000002/providers/Microsoft.ContainerService/managedClusters/cliakstest000003\"\ + ,\n \"location\": \"westeurope\",\n \"name\": \"cliakstest000003\",\n \"\ + type\": \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\"\ + : {\n \"provisioningState\": \"Updating\",\n \"powerState\": {\n \"\ + code\": \"Running\"\n },\n \"kubernetesVersion\": \"1.19.9\",\n \"dnsPrefix\"\ + : \"cliakstest-clitest2oit5jf3l-8ecadf\",\n \"fqdn\": \"cliakstest-clitest2oit5jf3l-8ecadf-79f56af7.hcp.westeurope.azmk8s.io\"\ + ,\n \"azurePortalFQDN\": \"cliakstest-clitest2oit5jf3l-8ecadf-79f56af7.portal.hcp.westeurope.azmk8s.io\"\ + ,\n \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \ + \ \"count\": 3,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\"\ + : 128,\n \"osDiskType\": \"Managed\",\n \"kubeletDiskType\": \"OS\"\ + ,\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n \ + \ \"provisioningState\": \"Updating\",\n \"powerState\": {\n \"\ + code\": \"Running\"\n },\n \"orchestratorVersion\": \"1.19.9\",\n\ + \ \"enableNodePublicIP\": false,\n \"nodeLabels\": {},\n \"mode\"\ + : \"System\",\n \"osType\": \"Linux\",\n \"nodeImageVersion\": \"\ + AKSUbuntu-1804gen2containerd-2021.03.31\"\n }\n ],\n \"linuxProfile\"\ + : {\n \"adminUsername\": \"azureuser\",\n \"ssh\": {\n \"publicKeys\"\ + : [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDSlNNOwMw6aHvdkhUaMmfkjt19xPFa162alrqWaTFan0f864FGHVcSvXUvRBLeRj+x2RMlqr1TR6y73x07vqbaVApfssn52ROE3eKoX2cmez+EMaM19n2BzQLhr1lR/LkixeCM03/hYb3j16uaYeZ+zY060RdnVmPWVhslRRXmst+8cD3EXUkxdzmUa+J03nLyO8nqfCTKUltePz0FQ4IymD8ewa+sWgUlRKBwgoUBh35BFRAGq//OXuHFw6sowEIxwb5KSar4c2SHcewbSbuVFpWR7uhpYLXPJoISeASejQ4nfg+DlIbIf6mNwnLcqrHy6bwmwYeS36TUMHoxbCa7\"\ + \n }\n ]\n }\n },\n \"servicePrincipalProfile\": {\n \"\ + clientId\": \"msi\"\n },\n \"nodeResourceGroup\": \"MC_clitest000002_cliakstest000003_westeurope\"\ + ,\n \"enableRBAC\": true,\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_clitest000002_cliakstest000003_westeurope/providers/Microsoft.Network/publicIPAddresses/31e8d67b-0962-476a-9de4-535b6227d01a\"\ + \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 },\n \"identity\": {\n \"type\": \"SystemAssigned\"\ + ,\n \"principalId\": \"66b92a23-7ff4-4460-98ac-4d2759d20af2\",\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/westeurope/operations/99a22022-b69b-4e6d-821b-d841fef262b4?api-version=2017-08-31 + cache-control: + - no-cache + content-length: + - '2782' + content-type: + - application/json + date: + - Wed, 28 Apr 2021 07:12: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 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --enable-managed-identity --yes + User-Agent: + - python/3.6.9 (Linux-5.4.0-1031-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.21 + msrest_azure/0.6.3 azure-mgmt-containerservice/11.1.0 Azure-SDK-For-Python + AZURECLI/2.22.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westeurope/operations/99a22022-b69b-4e6d-821b-d841fef262b4?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"2220a299-9bb6-6d4e-821b-d841fef262b4\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-04-28T07:12:20.4933333Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 28 Apr 2021 07:12:51 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --enable-managed-identity --yes + User-Agent: + - python/3.6.9 (Linux-5.4.0-1031-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.21 + msrest_azure/0.6.3 azure-mgmt-containerservice/11.1.0 Azure-SDK-For-Python + AZURECLI/2.22.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westeurope/operations/99a22022-b69b-4e6d-821b-d841fef262b4?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"2220a299-9bb6-6d4e-821b-d841fef262b4\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-04-28T07:12:20.4933333Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 28 Apr 2021 07:13:23 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 update + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --enable-managed-identity --yes + User-Agent: + - python/3.6.9 (Linux-5.4.0-1031-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.21 + msrest_azure/0.6.3 azure-mgmt-containerservice/11.1.0 Azure-SDK-For-Python + AZURECLI/2.22.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westeurope/operations/99a22022-b69b-4e6d-821b-d841fef262b4?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"2220a299-9bb6-6d4e-821b-d841fef262b4\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-04-28T07:12:20.4933333Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 28 Apr 2021 07:13:53 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 update + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --enable-managed-identity --yes + User-Agent: + - python/3.6.9 (Linux-5.4.0-1031-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.21 + msrest_azure/0.6.3 azure-mgmt-containerservice/11.1.0 Azure-SDK-For-Python + AZURECLI/2.22.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westeurope/operations/99a22022-b69b-4e6d-821b-d841fef262b4?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"2220a299-9bb6-6d4e-821b-d841fef262b4\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-04-28T07:12:20.4933333Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 28 Apr 2021 07:14: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 update + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --enable-managed-identity --yes + User-Agent: + - python/3.6.9 (Linux-5.4.0-1031-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.21 + msrest_azure/0.6.3 azure-mgmt-containerservice/11.1.0 Azure-SDK-For-Python + AZURECLI/2.22.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westeurope/operations/99a22022-b69b-4e6d-821b-d841fef262b4?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"2220a299-9bb6-6d4e-821b-d841fef262b4\",\n \"status\"\ + : \"Succeeded\",\n \"startTime\": \"2021-04-28T07:12:20.4933333Z\",\n \"\ + endTime\": \"2021-04-28T07:14:43.8940505Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '170' + content-type: + - application/json + date: + - Wed, 28 Apr 2021 07:14:53 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 update + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --enable-managed-identity --yes + User-Agent: + - python/3.6.9 (Linux-5.4.0-1031-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.21 + msrest_azure/0.6.3 azure-mgmt-containerservice/11.1.0 Azure-SDK-For-Python + AZURECLI/2.22.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000002/providers/Microsoft.ContainerService/managedClusters/cliakstest000003?api-version=2021-02-01 + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000002/providers/Microsoft.ContainerService/managedClusters/cliakstest000003\"\ + ,\n \"location\": \"westeurope\",\n \"name\": \"cliakstest000003\",\n \"\ + type\": \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\"\ + : {\n \"provisioningState\": \"Succeeded\",\n \"powerState\": {\n \"\ + code\": \"Running\"\n },\n \"kubernetesVersion\": \"1.19.9\",\n \"dnsPrefix\"\ + : \"cliakstest-clitest2oit5jf3l-8ecadf\",\n \"fqdn\": \"cliakstest-clitest2oit5jf3l-8ecadf-79f56af7.hcp.westeurope.azmk8s.io\"\ + ,\n \"azurePortalFQDN\": \"cliakstest-clitest2oit5jf3l-8ecadf-79f56af7.portal.hcp.westeurope.azmk8s.io\"\ + ,\n \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \ + \ \"count\": 3,\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.9\"\ + ,\n \"enableNodePublicIP\": false,\n \"nodeLabels\": {},\n \"\ + mode\": \"System\",\n \"osType\": \"Linux\",\n \"nodeImageVersion\"\ + : \"AKSUbuntu-1804gen2containerd-2021.03.31\"\n }\n ],\n \"linuxProfile\"\ + : {\n \"adminUsername\": \"azureuser\",\n \"ssh\": {\n \"publicKeys\"\ + : [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDSlNNOwMw6aHvdkhUaMmfkjt19xPFa162alrqWaTFan0f864FGHVcSvXUvRBLeRj+x2RMlqr1TR6y73x07vqbaVApfssn52ROE3eKoX2cmez+EMaM19n2BzQLhr1lR/LkixeCM03/hYb3j16uaYeZ+zY060RdnVmPWVhslRRXmst+8cD3EXUkxdzmUa+J03nLyO8nqfCTKUltePz0FQ4IymD8ewa+sWgUlRKBwgoUBh35BFRAGq//OXuHFw6sowEIxwb5KSar4c2SHcewbSbuVFpWR7uhpYLXPJoISeASejQ4nfg+DlIbIf6mNwnLcqrHy6bwmwYeS36TUMHoxbCa7\"\ + \n }\n ]\n }\n },\n \"servicePrincipalProfile\": {\n \"\ + clientId\": \"msi\"\n },\n \"nodeResourceGroup\": \"MC_clitest000002_cliakstest000003_westeurope\"\ + ,\n \"enableRBAC\": true,\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_clitest000002_cliakstest000003_westeurope/providers/Microsoft.Network/publicIPAddresses/31e8d67b-0962-476a-9de4-535b6227d01a\"\ + \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_clitest000002_cliakstest000003_westeurope/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cliakstest000003-agentpool\"\ + ,\n \"clientId\": \"5fda1f4e-f4b0-4011-a741-d9a345e1638f\",\n \"objectId\"\ + : \"0c517e37-7cb5-4a22-851b-b417fc20511f\"\n }\n }\n },\n \"identity\"\ + : {\n \"type\": \"SystemAssigned\",\n \"principalId\": \"66b92a23-7ff4-4460-98ac-4d2759d20af2\"\ + ,\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: + - '3182' + content-type: + - application/json + date: + - Wed, 28 Apr 2021 07:14: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 delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g -n --yes --no-wait + User-Agent: + - python/3.6.9 (Linux-5.4.0-1031-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.21 + msrest_azure/0.6.3 azure-mgmt-containerservice/11.1.0 Azure-SDK-For-Python + AZURECLI/2.22.1 + accept-language: + - en-US + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000002/providers/Microsoft.ContainerService/managedClusters/cliakstest000003?api-version=2021-02-01 + response: + body: + string: '' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westeurope/operations/62f14ea8-5f4f-49f7-80c5-865b9607a751?api-version=2017-08-31 + cache-control: + - no-cache + content-length: + - '0' + date: + - Wed, 28 Apr 2021 07:14:56 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westeurope/operationresults/62f14ea8-5f4f-49f7-80c5-865b9607a751?api-version=2017-08-31 + 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/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_update_to_msi_cluster_with_addons.yaml b/src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_update_to_msi_cluster_with_addons.yaml new file mode 100644 index 00000000000..2edafde0f9e --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_update_to_msi_cluster_with_addons.yaml @@ -0,0 +1,2777 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --generate-ssh-keys --enable-addons --service-principal + --client-secret + User-Agent: + - python/3.6.9 (Linux-5.4.0-1031-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.21 + msrest_azure/0.6.3 azure-mgmt-resource/12.1.0 Azure-SDK-For-Python AZURECLI/2.22.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000002?api-version=2020-10-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000002","name":"clitest000002","type":"Microsoft.Resources/resourceGroups","location":"westeurope","tags":{"product":"azurecli","cause":"automation","date":"2021-04-28T07:17:47Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '316' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 07:17: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 --generate-ssh-keys --enable-addons --service-principal + --client-secret + User-Agent: + - python/3.6.9 (Linux-5.4.0-1031-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.21 + msrest_azure/0.6.3 azure-mgmt-resource/12.1.0 Azure-SDK-For-Python AZURECLI/2.22.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000002?api-version=2020-10-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000002","name":"clitest000002","type":"Microsoft.Resources/resourceGroups","location":"westeurope","tags":{"product":"azurecli","cause":"automation","date":"2021-04-28T07:17:47Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '316' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 07:17:50 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 --generate-ssh-keys --enable-addons --service-principal + --client-secret + User-Agent: + - python/3.6.9 (Linux-5.4.0-1031-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.21 + msrest_azure/0.6.3 azure-mgmt-resource/12.1.0 Azure-SDK-For-Python AZURECLI/2.22.1 + accept-language: + - en-US + method: HEAD + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/DefaultResourceGroup-WEU?api-version=2020-10-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Wed, 28 Apr 2021 07:17:50 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 --generate-ssh-keys --enable-addons --service-principal + --client-secret + User-Agent: + - python/3.6.9 (Linux-5.4.0-1031-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.21 + msrest_azure/0.6.3 azure-mgmt-resource/12.1.0 Azure-SDK-For-Python AZURECLI/2.22.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/DefaultResourceGroup-WEU/providers/Microsoft.OperationalInsights/workspaces/DefaultWorkspace-8ecadfc9-d1a3-4ea4-b844-0d9f87e4d7c8-WEU?api-version=2015-11-01-preview + response: + body: + string: "{\r\n \"properties\": {\r\n \"source\": \"Azure\",\r\n \"customerId\"\ + : \"01bcdf73-fcc8-4da0-a3b9-c44b5b23673e\",\r\n \"provisioningState\":\ + \ \"Succeeded\",\r\n \"sku\": {\r\n \"name\": \"standalone\",\r\n\ + \ \"maxCapacityReservationLevel\": 3000,\r\n \"lastSkuUpdate\":\ + \ \"Fri, 23 Apr 2021 10:25:46 GMT\"\r\n },\r\n \"retentionInDays\":\ + \ 31,\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\": \"Wed, 28 Apr 2021 12:00:00 GMT\",\r\n \ + \ \"dataIngestionStatus\": \"RespectQuota\"\r\n },\r\n \"publicNetworkAccessForIngestion\"\ + : \"Enabled\",\r\n \"publicNetworkAccessForQuery\": \"Enabled\",\r\n \ + \ \"createdDate\": \"Fri, 23 Apr 2021 10:25:46 GMT\",\r\n \"modifiedDate\"\ + : \"Mon, 26 Apr 2021 11:52:40 GMT\"\r\n },\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-weu/providers/microsoft.operationalinsights/workspaces/defaultworkspace-8ecadfc9-d1a3-4ea4-b844-0d9f87e4d7c8-weu\"\ + ,\r\n \"name\": \"DefaultWorkspace-8ecadfc9-d1a3-4ea4-b844-0d9f87e4d7c8-WEU\"\ + ,\r\n \"type\": \"Microsoft.OperationalInsights/workspaces\",\r\n \"location\"\ + : \"westeurope\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1206' + content-type: + - application/json + date: + - Wed, 28 Apr 2021 07:17: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 --generate-ssh-keys --enable-addons --service-principal + --client-secret + User-Agent: + - python/3.6.9 (Linux-5.4.0-1031-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.21 + msrest_azure/0.6.3 azure-mgmt-resource/12.1.0 Azure-SDK-For-Python AZURECLI/2.22.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-weu/providers/microsoft.operationalinsights/workspaces/defaultworkspace-8ecadfc9-d1a3-4ea4-b844-0d9f87e4d7c8-weu?api-version=2015-11-01-preview + response: + body: + string: "{\r\n \"properties\": {\r\n \"source\": \"Azure\",\r\n \"customerId\"\ + : \"01bcdf73-fcc8-4da0-a3b9-c44b5b23673e\",\r\n \"provisioningState\":\ + \ \"Succeeded\",\r\n \"sku\": {\r\n \"name\": \"standalone\",\r\n\ + \ \"maxCapacityReservationLevel\": 3000,\r\n \"lastSkuUpdate\":\ + \ \"Fri, 23 Apr 2021 10:25:46 GMT\"\r\n },\r\n \"retentionInDays\":\ + \ 31,\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\": \"Wed, 28 Apr 2021 12:00:00 GMT\",\r\n \ + \ \"dataIngestionStatus\": \"RespectQuota\"\r\n },\r\n \"publicNetworkAccessForIngestion\"\ + : \"Enabled\",\r\n \"publicNetworkAccessForQuery\": \"Enabled\",\r\n \ + \ \"createdDate\": \"Fri, 23 Apr 2021 10:25:46 GMT\",\r\n \"modifiedDate\"\ + : \"Mon, 26 Apr 2021 11:52:40 GMT\"\r\n },\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-weu/providers/microsoft.operationalinsights/workspaces/defaultworkspace-8ecadfc9-d1a3-4ea4-b844-0d9f87e4d7c8-weu\"\ + ,\r\n \"name\": \"DefaultWorkspace-8ecadfc9-d1a3-4ea4-b844-0d9f87e4d7c8-WEU\"\ + ,\r\n \"type\": \"Microsoft.OperationalInsights/workspaces\",\r\n \"location\"\ + : \"westeurope\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1206' + content-type: + - application/json + date: + - Wed, 28 Apr 2021 07:17:50 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-weu/providers/microsoft.operationalinsights/workspaces/defaultworkspace-8ecadfc9-d1a3-4ea4-b844-0d9f87e4d7c8-weu"}, + "workspaceRegion": {"value": "westeurope"}, "solutionDeploymentName": {"value": + "ContainerInsights-1619594270634"}}, "mode": "Incremental"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '1957' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --resource-group --name --generate-ssh-keys --enable-addons --service-principal + --client-secret + User-Agent: + - python/3.6.9 (Linux-5.4.0-1031-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.21 + msrest_azure/0.6.3 azure-mgmt-resource/12.1.0 Azure-SDK-For-Python AZURECLI/2.22.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-weu/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2020-10-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/defaultresourcegroup-weu/providers/Microsoft.Resources/deployments/aks-monitoring-1619594270634","name":"aks-monitoring-1619594270634","type":"Microsoft.Resources/deployments","properties":{"templateHash":"13112976782773545168","parameters":{"workspaceResourceId":{"type":"String","value":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-weu/providers/microsoft.operationalinsights/workspaces/defaultworkspace-8ecadfc9-d1a3-4ea4-b844-0d9f87e4d7c8-weu"},"workspaceRegion":{"type":"String","value":"westeurope"},"solutionDeploymentName":{"type":"String","value":"ContainerInsights-1619594270634"}},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2021-04-28T07:17:53.5472013Z","duration":"PT1.4974683S","correlationId":"2074b5e7-b199-434e-9ce8-8a95d2420af4","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-weu/providers/Microsoft.Resources/deployments/aks-monitoring-1619594270634/operationStatuses/08585820126134278795?api-version=2020-10-01 + cache-control: + - no-cache + content-length: + - '1023' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 07:17:54 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": "westeurope", "properties": {"kubernetesVersion": "", "dnsPrefix": + "cliakstest-clitestpxaynqmuk-8ecadf", "agentPoolProfiles": [{"count": 3, "vmSize": + "Standard_DS2_v2", "osType": "Linux", "type": "VirtualMachineScaleSets", "mode": + "System", "enableNodePublicIP": false, "scaleSetPriority": "Regular", "scaleSetEvictionPolicy": + "Delete", "name": "nodepool1"}], "linuxProfile": {"adminUsername": "azureuser", + "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDSlNNOwMw6aHvdkhUaMmfkjt19xPFa162alrqWaTFan0f864FGHVcSvXUvRBLeRj+x2RMlqr1TR6y73x07vqbaVApfssn52ROE3eKoX2cmez+EMaM19n2BzQLhr1lR/LkixeCM03/hYb3j16uaYeZ+zY060RdnVmPWVhslRRXmst+8cD3EXUkxdzmUa+J03nLyO8nqfCTKUltePz0FQ4IymD8ewa+sWgUlRKBwgoUBh35BFRAGq//OXuHFw6sowEIxwb5KSar4c2SHcewbSbuVFpWR7uhpYLXPJoISeASejQ4nfg+DlIbIf6mNwnLcqrHy6bwmwYeS36TUMHoxbCa7"}]}}, + "servicePrincipalProfile": {"clientId": "http://clitest000001", "secret": "QkK~mN--~DphaUEBluE_8C-NJPI1FfUnv0"}, + "addonProfiles": {"omsagent": {"enabled": true, "config": {"logAnalyticsWorkspaceResourceID": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-weu/providers/microsoft.operationalinsights/workspaces/defaultworkspace-8ecadfc9-d1a3-4ea4-b844-0d9f87e4d7c8-weu"}}}, + "enableRBAC": true, "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"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '1523' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --resource-group --name --generate-ssh-keys --enable-addons --service-principal + --client-secret + User-Agent: + - python/3.6.9 (Linux-5.4.0-1031-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.21 + msrest_azure/0.6.3 azure-mgmt-containerservice/11.1.0 Azure-SDK-For-Python + AZURECLI/2.22.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000002/providers/Microsoft.ContainerService/managedClusters/cliakstest000003?api-version=2021-02-01 + response: + body: + string: "{\n \"code\": \"ServicePrincipalNotFound\",\n \"message\": \"Service\ + \ principal clientID: http://clitest000001 not found in Active Directory tenant\ + \ 72f988bf-86f1-41af-91ab-2d7cd011db47, Please see https://aka.ms/aks-sp-help\ + \ for more details.\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '248' + content-type: + - application/json + date: + - Wed, 28 Apr 2021 07:18:02 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: 400 + message: Bad Request +- request: + body: '{"location": "westeurope", "properties": {"kubernetesVersion": "", "dnsPrefix": + "cliakstest-clitestpxaynqmuk-8ecadf", "agentPoolProfiles": [{"count": 3, "vmSize": + "Standard_DS2_v2", "osType": "Linux", "type": "VirtualMachineScaleSets", "mode": + "System", "enableNodePublicIP": false, "scaleSetPriority": "Regular", "scaleSetEvictionPolicy": + "Delete", "name": "nodepool1"}], "linuxProfile": {"adminUsername": "azureuser", + "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDSlNNOwMw6aHvdkhUaMmfkjt19xPFa162alrqWaTFan0f864FGHVcSvXUvRBLeRj+x2RMlqr1TR6y73x07vqbaVApfssn52ROE3eKoX2cmez+EMaM19n2BzQLhr1lR/LkixeCM03/hYb3j16uaYeZ+zY060RdnVmPWVhslRRXmst+8cD3EXUkxdzmUa+J03nLyO8nqfCTKUltePz0FQ4IymD8ewa+sWgUlRKBwgoUBh35BFRAGq//OXuHFw6sowEIxwb5KSar4c2SHcewbSbuVFpWR7uhpYLXPJoISeASejQ4nfg+DlIbIf6mNwnLcqrHy6bwmwYeS36TUMHoxbCa7"}]}}, + "servicePrincipalProfile": {"clientId": "http://clitest000001", "secret": "QkK~mN--~DphaUEBluE_8C-NJPI1FfUnv0"}, + "addonProfiles": {"omsagent": {"enabled": true, "config": {"logAnalyticsWorkspaceResourceID": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-weu/providers/microsoft.operationalinsights/workspaces/defaultworkspace-8ecadfc9-d1a3-4ea4-b844-0d9f87e4d7c8-weu"}}}, + "enableRBAC": true, "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"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '1523' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --resource-group --name --generate-ssh-keys --enable-addons --service-principal + --client-secret + User-Agent: + - python/3.6.9 (Linux-5.4.0-1031-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.21 + msrest_azure/0.6.3 azure-mgmt-containerservice/11.1.0 Azure-SDK-For-Python + AZURECLI/2.22.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000002/providers/Microsoft.ContainerService/managedClusters/cliakstest000003?api-version=2021-02-01 + response: + body: + string: "{\n \"code\": \"ServicePrincipalNotFound\",\n \"message\": \"Service\ + \ principal clientID: http://clitest000001 not found in Active Directory tenant\ + \ 72f988bf-86f1-41af-91ab-2d7cd011db47, Please see https://aka.ms/aks-sp-help\ + \ for more details.\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '248' + content-type: + - application/json + date: + - Wed, 28 Apr 2021 07:18:09 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: 400 + message: Bad Request +- request: + body: '{"location": "westeurope", "properties": {"kubernetesVersion": "", "dnsPrefix": + "cliakstest-clitestpxaynqmuk-8ecadf", "agentPoolProfiles": [{"count": 3, "vmSize": + "Standard_DS2_v2", "osType": "Linux", "type": "VirtualMachineScaleSets", "mode": + "System", "enableNodePublicIP": false, "scaleSetPriority": "Regular", "scaleSetEvictionPolicy": + "Delete", "name": "nodepool1"}], "linuxProfile": {"adminUsername": "azureuser", + "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDSlNNOwMw6aHvdkhUaMmfkjt19xPFa162alrqWaTFan0f864FGHVcSvXUvRBLeRj+x2RMlqr1TR6y73x07vqbaVApfssn52ROE3eKoX2cmez+EMaM19n2BzQLhr1lR/LkixeCM03/hYb3j16uaYeZ+zY060RdnVmPWVhslRRXmst+8cD3EXUkxdzmUa+J03nLyO8nqfCTKUltePz0FQ4IymD8ewa+sWgUlRKBwgoUBh35BFRAGq//OXuHFw6sowEIxwb5KSar4c2SHcewbSbuVFpWR7uhpYLXPJoISeASejQ4nfg+DlIbIf6mNwnLcqrHy6bwmwYeS36TUMHoxbCa7"}]}}, + "servicePrincipalProfile": {"clientId": "http://clitest000001", "secret": "QkK~mN--~DphaUEBluE_8C-NJPI1FfUnv0"}, + "addonProfiles": {"omsagent": {"enabled": true, "config": {"logAnalyticsWorkspaceResourceID": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-weu/providers/microsoft.operationalinsights/workspaces/defaultworkspace-8ecadfc9-d1a3-4ea4-b844-0d9f87e4d7c8-weu"}}}, + "enableRBAC": true, "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"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '1523' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --resource-group --name --generate-ssh-keys --enable-addons --service-principal + --client-secret + User-Agent: + - python/3.6.9 (Linux-5.4.0-1031-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.21 + msrest_azure/0.6.3 azure-mgmt-containerservice/11.1.0 Azure-SDK-For-Python + AZURECLI/2.22.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000002/providers/Microsoft.ContainerService/managedClusters/cliakstest000003?api-version=2021-02-01 + response: + body: + string: "{\n \"code\": \"ServicePrincipalNotFound\",\n \"message\": \"Service\ + \ principal clientID: http://clitest000001 not found in Active Directory tenant\ + \ 72f988bf-86f1-41af-91ab-2d7cd011db47, Please see https://aka.ms/aks-sp-help\ + \ for more details.\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '248' + content-type: + - application/json + date: + - Wed, 28 Apr 2021 07:18:16 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1197' + status: + code: 400 + message: Bad Request +- request: + body: '{"location": "westeurope", "properties": {"kubernetesVersion": "", "dnsPrefix": + "cliakstest-clitestpxaynqmuk-8ecadf", "agentPoolProfiles": [{"count": 3, "vmSize": + "Standard_DS2_v2", "osType": "Linux", "type": "VirtualMachineScaleSets", "mode": + "System", "enableNodePublicIP": false, "scaleSetPriority": "Regular", "scaleSetEvictionPolicy": + "Delete", "name": "nodepool1"}], "linuxProfile": {"adminUsername": "azureuser", + "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDSlNNOwMw6aHvdkhUaMmfkjt19xPFa162alrqWaTFan0f864FGHVcSvXUvRBLeRj+x2RMlqr1TR6y73x07vqbaVApfssn52ROE3eKoX2cmez+EMaM19n2BzQLhr1lR/LkixeCM03/hYb3j16uaYeZ+zY060RdnVmPWVhslRRXmst+8cD3EXUkxdzmUa+J03nLyO8nqfCTKUltePz0FQ4IymD8ewa+sWgUlRKBwgoUBh35BFRAGq//OXuHFw6sowEIxwb5KSar4c2SHcewbSbuVFpWR7uhpYLXPJoISeASejQ4nfg+DlIbIf6mNwnLcqrHy6bwmwYeS36TUMHoxbCa7"}]}}, + "servicePrincipalProfile": {"clientId": "http://clitest000001", "secret": "QkK~mN--~DphaUEBluE_8C-NJPI1FfUnv0"}, + "addonProfiles": {"omsagent": {"enabled": true, "config": {"logAnalyticsWorkspaceResourceID": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-weu/providers/microsoft.operationalinsights/workspaces/defaultworkspace-8ecadfc9-d1a3-4ea4-b844-0d9f87e4d7c8-weu"}}}, + "enableRBAC": true, "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"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '1523' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --resource-group --name --generate-ssh-keys --enable-addons --service-principal + --client-secret + User-Agent: + - python/3.6.9 (Linux-5.4.0-1031-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.21 + msrest_azure/0.6.3 azure-mgmt-containerservice/11.1.0 Azure-SDK-For-Python + AZURECLI/2.22.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000002/providers/Microsoft.ContainerService/managedClusters/cliakstest000003?api-version=2021-02-01 + response: + body: + string: "{\n \"code\": \"ServicePrincipalNotFound\",\n \"message\": \"Service\ + \ principal clientID: http://clitest000001 not found in Active Directory tenant\ + \ 72f988bf-86f1-41af-91ab-2d7cd011db47, Please see https://aka.ms/aks-sp-help\ + \ for more details.\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '248' + content-type: + - application/json + date: + - Wed, 28 Apr 2021 07:18:23 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: + - '1196' + status: + code: 400 + message: Bad Request +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --generate-ssh-keys --enable-addons --service-principal + --client-secret + User-Agent: + - python/3.6.9 (Linux-5.4.0-1031-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.21 + msrest_azure/0.6.3 azure-mgmt-resource/12.1.0 Azure-SDK-For-Python AZURECLI/2.22.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-weu/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585820126134278795?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: + - Wed, 28 Apr 2021 07:18:24 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 --generate-ssh-keys --enable-addons --service-principal + --client-secret + User-Agent: + - python/3.6.9 (Linux-5.4.0-1031-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.21 + msrest_azure/0.6.3 azure-mgmt-resource/12.1.0 Azure-SDK-For-Python AZURECLI/2.22.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-weu/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2020-10-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/defaultresourcegroup-weu/providers/Microsoft.Resources/deployments/aks-monitoring-1619594270634","name":"aks-monitoring-1619594270634","type":"Microsoft.Resources/deployments","properties":{"templateHash":"13112976782773545168","parameters":{"workspaceResourceId":{"type":"String","value":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-weu/providers/microsoft.operationalinsights/workspaces/defaultworkspace-8ecadfc9-d1a3-4ea4-b844-0d9f87e4d7c8-weu"},"workspaceRegion":{"type":"String","value":"westeurope"},"solutionDeploymentName":{"type":"String","value":"ContainerInsights-1619594270634"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2021-04-28T07:18:03.0766134Z","duration":"PT11.0268804S","correlationId":"2074b5e7-b199-434e-9ce8-8a95d2420af4","providers":[{"namespace":"Microsoft.Resources","resourceTypes":[{"resourceType":"deployments","locations":[null]}]}],"dependencies":[],"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/defaultresourcegroup-weu/providers/Microsoft.OperationsManagement/solutions/ContainerInsights(defaultworkspace-8ecadfc9-d1a3-4ea4-b844-0d9f87e4d7c8-weu)"}]}}' + headers: + cache-control: + - no-cache + content-length: + - '1274' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 07:18:24 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": "westeurope", "properties": {"kubernetesVersion": "", "dnsPrefix": + "cliakstest-clitestpxaynqmuk-8ecadf", "agentPoolProfiles": [{"count": 3, "vmSize": + "Standard_DS2_v2", "osType": "Linux", "type": "VirtualMachineScaleSets", "mode": + "System", "enableNodePublicIP": false, "scaleSetPriority": "Regular", "scaleSetEvictionPolicy": + "Delete", "name": "nodepool1"}], "linuxProfile": {"adminUsername": "azureuser", + "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDSlNNOwMw6aHvdkhUaMmfkjt19xPFa162alrqWaTFan0f864FGHVcSvXUvRBLeRj+x2RMlqr1TR6y73x07vqbaVApfssn52ROE3eKoX2cmez+EMaM19n2BzQLhr1lR/LkixeCM03/hYb3j16uaYeZ+zY060RdnVmPWVhslRRXmst+8cD3EXUkxdzmUa+J03nLyO8nqfCTKUltePz0FQ4IymD8ewa+sWgUlRKBwgoUBh35BFRAGq//OXuHFw6sowEIxwb5KSar4c2SHcewbSbuVFpWR7uhpYLXPJoISeASejQ4nfg+DlIbIf6mNwnLcqrHy6bwmwYeS36TUMHoxbCa7"}]}}, + "servicePrincipalProfile": {"clientId": "http://clitest000001", "secret": "QkK~mN--~DphaUEBluE_8C-NJPI1FfUnv0"}, + "addonProfiles": {"omsagent": {"enabled": true, "config": {"logAnalyticsWorkspaceResourceID": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-weu/providers/microsoft.operationalinsights/workspaces/defaultworkspace-8ecadfc9-d1a3-4ea4-b844-0d9f87e4d7c8-weu"}}}, + "enableRBAC": true, "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"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '1523' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --resource-group --name --generate-ssh-keys --enable-addons --service-principal + --client-secret + User-Agent: + - python/3.6.9 (Linux-5.4.0-1031-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.21 + msrest_azure/0.6.3 azure-mgmt-containerservice/11.1.0 Azure-SDK-For-Python + AZURECLI/2.22.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000002/providers/Microsoft.ContainerService/managedClusters/cliakstest000003?api-version=2021-02-01 + response: + body: + string: "{\n \"code\": \"ServicePrincipalNotFound\",\n \"message\": \"Service\ + \ principal clientID: http://clitest000001 not found in Active Directory tenant\ + \ 72f988bf-86f1-41af-91ab-2d7cd011db47, Please see https://aka.ms/aks-sp-help\ + \ for more details.\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '248' + content-type: + - application/json + date: + - Wed, 28 Apr 2021 07:18:29 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: + - '1195' + status: + code: 400 + message: Bad Request +- request: + body: '{"location": "westeurope", "properties": {"kubernetesVersion": "", "dnsPrefix": + "cliakstest-clitestpxaynqmuk-8ecadf", "agentPoolProfiles": [{"count": 3, "vmSize": + "Standard_DS2_v2", "osType": "Linux", "type": "VirtualMachineScaleSets", "mode": + "System", "enableNodePublicIP": false, "scaleSetPriority": "Regular", "scaleSetEvictionPolicy": + "Delete", "name": "nodepool1"}], "linuxProfile": {"adminUsername": "azureuser", + "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDSlNNOwMw6aHvdkhUaMmfkjt19xPFa162alrqWaTFan0f864FGHVcSvXUvRBLeRj+x2RMlqr1TR6y73x07vqbaVApfssn52ROE3eKoX2cmez+EMaM19n2BzQLhr1lR/LkixeCM03/hYb3j16uaYeZ+zY060RdnVmPWVhslRRXmst+8cD3EXUkxdzmUa+J03nLyO8nqfCTKUltePz0FQ4IymD8ewa+sWgUlRKBwgoUBh35BFRAGq//OXuHFw6sowEIxwb5KSar4c2SHcewbSbuVFpWR7uhpYLXPJoISeASejQ4nfg+DlIbIf6mNwnLcqrHy6bwmwYeS36TUMHoxbCa7"}]}}, + "servicePrincipalProfile": {"clientId": "http://clitest000001", "secret": "QkK~mN--~DphaUEBluE_8C-NJPI1FfUnv0"}, + "addonProfiles": {"omsagent": {"enabled": true, "config": {"logAnalyticsWorkspaceResourceID": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-weu/providers/microsoft.operationalinsights/workspaces/defaultworkspace-8ecadfc9-d1a3-4ea4-b844-0d9f87e4d7c8-weu"}}}, + "enableRBAC": true, "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"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '1523' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --resource-group --name --generate-ssh-keys --enable-addons --service-principal + --client-secret + User-Agent: + - python/3.6.9 (Linux-5.4.0-1031-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.21 + msrest_azure/0.6.3 azure-mgmt-containerservice/11.1.0 Azure-SDK-For-Python + AZURECLI/2.22.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000002/providers/Microsoft.ContainerService/managedClusters/cliakstest000003?api-version=2021-02-01 + response: + body: + string: "{\n \"code\": \"ServicePrincipalNotFound\",\n \"message\": \"Service\ + \ principal clientID: http://clitest000001 not found in Active Directory tenant\ + \ 72f988bf-86f1-41af-91ab-2d7cd011db47, Please see https://aka.ms/aks-sp-help\ + \ for more details.\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '248' + content-type: + - application/json + date: + - Wed, 28 Apr 2021 07:18:36 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: + - '1194' + status: + code: 400 + message: Bad Request +- request: + body: '{"location": "westeurope", "properties": {"kubernetesVersion": "", "dnsPrefix": + "cliakstest-clitestpxaynqmuk-8ecadf", "agentPoolProfiles": [{"count": 3, "vmSize": + "Standard_DS2_v2", "osType": "Linux", "type": "VirtualMachineScaleSets", "mode": + "System", "enableNodePublicIP": false, "scaleSetPriority": "Regular", "scaleSetEvictionPolicy": + "Delete", "name": "nodepool1"}], "linuxProfile": {"adminUsername": "azureuser", + "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDSlNNOwMw6aHvdkhUaMmfkjt19xPFa162alrqWaTFan0f864FGHVcSvXUvRBLeRj+x2RMlqr1TR6y73x07vqbaVApfssn52ROE3eKoX2cmez+EMaM19n2BzQLhr1lR/LkixeCM03/hYb3j16uaYeZ+zY060RdnVmPWVhslRRXmst+8cD3EXUkxdzmUa+J03nLyO8nqfCTKUltePz0FQ4IymD8ewa+sWgUlRKBwgoUBh35BFRAGq//OXuHFw6sowEIxwb5KSar4c2SHcewbSbuVFpWR7uhpYLXPJoISeASejQ4nfg+DlIbIf6mNwnLcqrHy6bwmwYeS36TUMHoxbCa7"}]}}, + "servicePrincipalProfile": {"clientId": "http://clitest000001", "secret": "QkK~mN--~DphaUEBluE_8C-NJPI1FfUnv0"}, + "addonProfiles": {"omsagent": {"enabled": true, "config": {"logAnalyticsWorkspaceResourceID": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-weu/providers/microsoft.operationalinsights/workspaces/defaultworkspace-8ecadfc9-d1a3-4ea4-b844-0d9f87e4d7c8-weu"}}}, + "enableRBAC": true, "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"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '1523' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --resource-group --name --generate-ssh-keys --enable-addons --service-principal + --client-secret + User-Agent: + - python/3.6.9 (Linux-5.4.0-1031-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.21 + msrest_azure/0.6.3 azure-mgmt-containerservice/11.1.0 Azure-SDK-For-Python + AZURECLI/2.22.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000002/providers/Microsoft.ContainerService/managedClusters/cliakstest000003?api-version=2021-02-01 + response: + body: + string: "{\n \"code\": \"ServicePrincipalNotFound\",\n \"message\": \"Service\ + \ principal clientID: http://clitest000001 not found in Active Directory tenant\ + \ 72f988bf-86f1-41af-91ab-2d7cd011db47, Please see https://aka.ms/aks-sp-help\ + \ for more details.\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '248' + content-type: + - application/json + date: + - Wed, 28 Apr 2021 07:18:43 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: + - '1193' + status: + code: 400 + message: Bad Request +- request: + body: '{"location": "westeurope", "properties": {"kubernetesVersion": "", "dnsPrefix": + "cliakstest-clitestpxaynqmuk-8ecadf", "agentPoolProfiles": [{"count": 3, "vmSize": + "Standard_DS2_v2", "osType": "Linux", "type": "VirtualMachineScaleSets", "mode": + "System", "enableNodePublicIP": false, "scaleSetPriority": "Regular", "scaleSetEvictionPolicy": + "Delete", "name": "nodepool1"}], "linuxProfile": {"adminUsername": "azureuser", + "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDSlNNOwMw6aHvdkhUaMmfkjt19xPFa162alrqWaTFan0f864FGHVcSvXUvRBLeRj+x2RMlqr1TR6y73x07vqbaVApfssn52ROE3eKoX2cmez+EMaM19n2BzQLhr1lR/LkixeCM03/hYb3j16uaYeZ+zY060RdnVmPWVhslRRXmst+8cD3EXUkxdzmUa+J03nLyO8nqfCTKUltePz0FQ4IymD8ewa+sWgUlRKBwgoUBh35BFRAGq//OXuHFw6sowEIxwb5KSar4c2SHcewbSbuVFpWR7uhpYLXPJoISeASejQ4nfg+DlIbIf6mNwnLcqrHy6bwmwYeS36TUMHoxbCa7"}]}}, + "servicePrincipalProfile": {"clientId": "http://clitest000001", "secret": "QkK~mN--~DphaUEBluE_8C-NJPI1FfUnv0"}, + "addonProfiles": {"omsagent": {"enabled": true, "config": {"logAnalyticsWorkspaceResourceID": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-weu/providers/microsoft.operationalinsights/workspaces/defaultworkspace-8ecadfc9-d1a3-4ea4-b844-0d9f87e4d7c8-weu"}}}, + "enableRBAC": true, "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"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '1523' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --resource-group --name --generate-ssh-keys --enable-addons --service-principal + --client-secret + User-Agent: + - python/3.6.9 (Linux-5.4.0-1031-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.21 + msrest_azure/0.6.3 azure-mgmt-containerservice/11.1.0 Azure-SDK-For-Python + AZURECLI/2.22.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000002/providers/Microsoft.ContainerService/managedClusters/cliakstest000003?api-version=2021-02-01 + response: + body: + string: "{\n \"code\": \"ServicePrincipalNotFound\",\n \"message\": \"Service\ + \ principal clientID: http://clitest000001 not found in Active Directory tenant\ + \ 72f988bf-86f1-41af-91ab-2d7cd011db47, Please see https://aka.ms/aks-sp-help\ + \ for more details.\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '248' + content-type: + - application/json + date: + - Wed, 28 Apr 2021 07:18:50 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: + - '1192' + status: + code: 400 + message: Bad Request +- request: + body: '{"location": "westeurope", "properties": {"kubernetesVersion": "", "dnsPrefix": + "cliakstest-clitestpxaynqmuk-8ecadf", "agentPoolProfiles": [{"count": 3, "vmSize": + "Standard_DS2_v2", "osType": "Linux", "type": "VirtualMachineScaleSets", "mode": + "System", "enableNodePublicIP": false, "scaleSetPriority": "Regular", "scaleSetEvictionPolicy": + "Delete", "name": "nodepool1"}], "linuxProfile": {"adminUsername": "azureuser", + "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDSlNNOwMw6aHvdkhUaMmfkjt19xPFa162alrqWaTFan0f864FGHVcSvXUvRBLeRj+x2RMlqr1TR6y73x07vqbaVApfssn52ROE3eKoX2cmez+EMaM19n2BzQLhr1lR/LkixeCM03/hYb3j16uaYeZ+zY060RdnVmPWVhslRRXmst+8cD3EXUkxdzmUa+J03nLyO8nqfCTKUltePz0FQ4IymD8ewa+sWgUlRKBwgoUBh35BFRAGq//OXuHFw6sowEIxwb5KSar4c2SHcewbSbuVFpWR7uhpYLXPJoISeASejQ4nfg+DlIbIf6mNwnLcqrHy6bwmwYeS36TUMHoxbCa7"}]}}, + "servicePrincipalProfile": {"clientId": "http://clitest000001", "secret": "QkK~mN--~DphaUEBluE_8C-NJPI1FfUnv0"}, + "addonProfiles": {"omsagent": {"enabled": true, "config": {"logAnalyticsWorkspaceResourceID": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-weu/providers/microsoft.operationalinsights/workspaces/defaultworkspace-8ecadfc9-d1a3-4ea4-b844-0d9f87e4d7c8-weu"}}}, + "enableRBAC": true, "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"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '1523' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --resource-group --name --generate-ssh-keys --enable-addons --service-principal + --client-secret + User-Agent: + - python/3.6.9 (Linux-5.4.0-1031-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.21 + msrest_azure/0.6.3 azure-mgmt-containerservice/11.1.0 Azure-SDK-For-Python + AZURECLI/2.22.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000002/providers/Microsoft.ContainerService/managedClusters/cliakstest000003?api-version=2021-02-01 + response: + body: + string: "{\n \"code\": \"ServicePrincipalNotFound\",\n \"message\": \"Service\ + \ principal clientID: http://clitest000001 not found in Active Directory tenant\ + \ 72f988bf-86f1-41af-91ab-2d7cd011db47, Please see https://aka.ms/aks-sp-help\ + \ for more details.\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '248' + content-type: + - application/json + date: + - Wed, 28 Apr 2021 07:18:57 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: + - '1191' + status: + code: 400 + message: Bad Request +- request: + body: '{"location": "westeurope", "properties": {"kubernetesVersion": "", "dnsPrefix": + "cliakstest-clitestpxaynqmuk-8ecadf", "agentPoolProfiles": [{"count": 3, "vmSize": + "Standard_DS2_v2", "osType": "Linux", "type": "VirtualMachineScaleSets", "mode": + "System", "enableNodePublicIP": false, "scaleSetPriority": "Regular", "scaleSetEvictionPolicy": + "Delete", "name": "nodepool1"}], "linuxProfile": {"adminUsername": "azureuser", + "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDSlNNOwMw6aHvdkhUaMmfkjt19xPFa162alrqWaTFan0f864FGHVcSvXUvRBLeRj+x2RMlqr1TR6y73x07vqbaVApfssn52ROE3eKoX2cmez+EMaM19n2BzQLhr1lR/LkixeCM03/hYb3j16uaYeZ+zY060RdnVmPWVhslRRXmst+8cD3EXUkxdzmUa+J03nLyO8nqfCTKUltePz0FQ4IymD8ewa+sWgUlRKBwgoUBh35BFRAGq//OXuHFw6sowEIxwb5KSar4c2SHcewbSbuVFpWR7uhpYLXPJoISeASejQ4nfg+DlIbIf6mNwnLcqrHy6bwmwYeS36TUMHoxbCa7"}]}}, + "servicePrincipalProfile": {"clientId": "http://clitest000001", "secret": "QkK~mN--~DphaUEBluE_8C-NJPI1FfUnv0"}, + "addonProfiles": {"omsagent": {"enabled": true, "config": {"logAnalyticsWorkspaceResourceID": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-weu/providers/microsoft.operationalinsights/workspaces/defaultworkspace-8ecadfc9-d1a3-4ea4-b844-0d9f87e4d7c8-weu"}}}, + "enableRBAC": true, "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"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '1523' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --resource-group --name --generate-ssh-keys --enable-addons --service-principal + --client-secret + User-Agent: + - python/3.6.9 (Linux-5.4.0-1031-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.21 + msrest_azure/0.6.3 azure-mgmt-containerservice/11.1.0 Azure-SDK-For-Python + AZURECLI/2.22.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000002/providers/Microsoft.ContainerService/managedClusters/cliakstest000003?api-version=2021-02-01 + response: + body: + string: "{\n \"code\": \"ServicePrincipalNotFound\",\n \"message\": \"Service\ + \ principal clientID: http://clitest000001 not found in Active Directory tenant\ + \ 72f988bf-86f1-41af-91ab-2d7cd011db47, Please see https://aka.ms/aks-sp-help\ + \ for more details.\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '248' + content-type: + - application/json + date: + - Wed, 28 Apr 2021 07:19:04 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: + - '1190' + status: + code: 400 + message: Bad Request +- request: + body: '{"location": "westeurope", "properties": {"kubernetesVersion": "", "dnsPrefix": + "cliakstest-clitestpxaynqmuk-8ecadf", "agentPoolProfiles": [{"count": 3, "vmSize": + "Standard_DS2_v2", "osType": "Linux", "type": "VirtualMachineScaleSets", "mode": + "System", "enableNodePublicIP": false, "scaleSetPriority": "Regular", "scaleSetEvictionPolicy": + "Delete", "name": "nodepool1"}], "linuxProfile": {"adminUsername": "azureuser", + "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDSlNNOwMw6aHvdkhUaMmfkjt19xPFa162alrqWaTFan0f864FGHVcSvXUvRBLeRj+x2RMlqr1TR6y73x07vqbaVApfssn52ROE3eKoX2cmez+EMaM19n2BzQLhr1lR/LkixeCM03/hYb3j16uaYeZ+zY060RdnVmPWVhslRRXmst+8cD3EXUkxdzmUa+J03nLyO8nqfCTKUltePz0FQ4IymD8ewa+sWgUlRKBwgoUBh35BFRAGq//OXuHFw6sowEIxwb5KSar4c2SHcewbSbuVFpWR7uhpYLXPJoISeASejQ4nfg+DlIbIf6mNwnLcqrHy6bwmwYeS36TUMHoxbCa7"}]}}, + "servicePrincipalProfile": {"clientId": "http://clitest000001", "secret": "QkK~mN--~DphaUEBluE_8C-NJPI1FfUnv0"}, + "addonProfiles": {"omsagent": {"enabled": true, "config": {"logAnalyticsWorkspaceResourceID": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-weu/providers/microsoft.operationalinsights/workspaces/defaultworkspace-8ecadfc9-d1a3-4ea4-b844-0d9f87e4d7c8-weu"}}}, + "enableRBAC": true, "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"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '1523' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --resource-group --name --generate-ssh-keys --enable-addons --service-principal + --client-secret + User-Agent: + - python/3.6.9 (Linux-5.4.0-1031-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.21 + msrest_azure/0.6.3 azure-mgmt-containerservice/11.1.0 Azure-SDK-For-Python + AZURECLI/2.22.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000002/providers/Microsoft.ContainerService/managedClusters/cliakstest000003?api-version=2021-02-01 + response: + body: + string: "{\n \"code\": \"ServicePrincipalNotFound\",\n \"message\": \"Service\ + \ principal clientID: http://clitest000001 not found in Active Directory tenant\ + \ 72f988bf-86f1-41af-91ab-2d7cd011db47, Please see https://aka.ms/aks-sp-help\ + \ for more details.\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '248' + content-type: + - application/json + date: + - Wed, 28 Apr 2021 07:19:11 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: + - '1189' + status: + code: 400 + message: Bad Request +- request: + body: '{"location": "westeurope", "properties": {"kubernetesVersion": "", "dnsPrefix": + "cliakstest-clitestpxaynqmuk-8ecadf", "agentPoolProfiles": [{"count": 3, "vmSize": + "Standard_DS2_v2", "osType": "Linux", "type": "VirtualMachineScaleSets", "mode": + "System", "enableNodePublicIP": false, "scaleSetPriority": "Regular", "scaleSetEvictionPolicy": + "Delete", "name": "nodepool1"}], "linuxProfile": {"adminUsername": "azureuser", + "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDSlNNOwMw6aHvdkhUaMmfkjt19xPFa162alrqWaTFan0f864FGHVcSvXUvRBLeRj+x2RMlqr1TR6y73x07vqbaVApfssn52ROE3eKoX2cmez+EMaM19n2BzQLhr1lR/LkixeCM03/hYb3j16uaYeZ+zY060RdnVmPWVhslRRXmst+8cD3EXUkxdzmUa+J03nLyO8nqfCTKUltePz0FQ4IymD8ewa+sWgUlRKBwgoUBh35BFRAGq//OXuHFw6sowEIxwb5KSar4c2SHcewbSbuVFpWR7uhpYLXPJoISeASejQ4nfg+DlIbIf6mNwnLcqrHy6bwmwYeS36TUMHoxbCa7"}]}}, + "servicePrincipalProfile": {"clientId": "http://clitest000001", "secret": "QkK~mN--~DphaUEBluE_8C-NJPI1FfUnv0"}, + "addonProfiles": {"omsagent": {"enabled": true, "config": {"logAnalyticsWorkspaceResourceID": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-weu/providers/microsoft.operationalinsights/workspaces/defaultworkspace-8ecadfc9-d1a3-4ea4-b844-0d9f87e4d7c8-weu"}}}, + "enableRBAC": true, "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"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '1523' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --resource-group --name --generate-ssh-keys --enable-addons --service-principal + --client-secret + User-Agent: + - python/3.6.9 (Linux-5.4.0-1031-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.21 + msrest_azure/0.6.3 azure-mgmt-containerservice/11.1.0 Azure-SDK-For-Python + AZURECLI/2.22.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000002/providers/Microsoft.ContainerService/managedClusters/cliakstest000003?api-version=2021-02-01 + response: + body: + string: "{\n \"code\": \"ServicePrincipalNotFound\",\n \"message\": \"Service\ + \ principal clientID: http://clitest000001 not found in Active Directory tenant\ + \ 72f988bf-86f1-41af-91ab-2d7cd011db47, Please see https://aka.ms/aks-sp-help\ + \ for more details.\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '248' + content-type: + - application/json + date: + - Wed, 28 Apr 2021 07:19:18 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: + - '1188' + status: + code: 400 + message: Bad Request +- request: + body: '{"location": "westeurope", "properties": {"kubernetesVersion": "", "dnsPrefix": + "cliakstest-clitestpxaynqmuk-8ecadf", "agentPoolProfiles": [{"count": 3, "vmSize": + "Standard_DS2_v2", "osType": "Linux", "type": "VirtualMachineScaleSets", "mode": + "System", "enableNodePublicIP": false, "scaleSetPriority": "Regular", "scaleSetEvictionPolicy": + "Delete", "name": "nodepool1"}], "linuxProfile": {"adminUsername": "azureuser", + "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDSlNNOwMw6aHvdkhUaMmfkjt19xPFa162alrqWaTFan0f864FGHVcSvXUvRBLeRj+x2RMlqr1TR6y73x07vqbaVApfssn52ROE3eKoX2cmez+EMaM19n2BzQLhr1lR/LkixeCM03/hYb3j16uaYeZ+zY060RdnVmPWVhslRRXmst+8cD3EXUkxdzmUa+J03nLyO8nqfCTKUltePz0FQ4IymD8ewa+sWgUlRKBwgoUBh35BFRAGq//OXuHFw6sowEIxwb5KSar4c2SHcewbSbuVFpWR7uhpYLXPJoISeASejQ4nfg+DlIbIf6mNwnLcqrHy6bwmwYeS36TUMHoxbCa7"}]}}, + "servicePrincipalProfile": {"clientId": "http://clitest000001", "secret": "QkK~mN--~DphaUEBluE_8C-NJPI1FfUnv0"}, + "addonProfiles": {"omsagent": {"enabled": true, "config": {"logAnalyticsWorkspaceResourceID": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-weu/providers/microsoft.operationalinsights/workspaces/defaultworkspace-8ecadfc9-d1a3-4ea4-b844-0d9f87e4d7c8-weu"}}}, + "enableRBAC": true, "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"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '1523' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --resource-group --name --generate-ssh-keys --enable-addons --service-principal + --client-secret + User-Agent: + - python/3.6.9 (Linux-5.4.0-1031-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.21 + msrest_azure/0.6.3 azure-mgmt-containerservice/11.1.0 Azure-SDK-For-Python + AZURECLI/2.22.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000002/providers/Microsoft.ContainerService/managedClusters/cliakstest000003?api-version=2021-02-01 + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000002/providers/Microsoft.ContainerService/managedClusters/cliakstest000003\"\ + ,\n \"location\": \"westeurope\",\n \"name\": \"cliakstest000003\",\n \"\ + type\": \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\"\ + : {\n \"provisioningState\": \"Creating\",\n \"powerState\": {\n \"\ + code\": \"Running\"\n },\n \"kubernetesVersion\": \"1.19.9\",\n \"dnsPrefix\"\ + : \"cliakstest-clitestpxaynqmuk-8ecadf\",\n \"fqdn\": \"cliakstest-clitestpxaynqmuk-8ecadf-c37ea9e3.hcp.westeurope.azmk8s.io\"\ + ,\n \"azurePortalFQDN\": \"cliakstest-clitestpxaynqmuk-8ecadf-c37ea9e3.portal.hcp.westeurope.azmk8s.io\"\ + ,\n \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \ + \ \"count\": 3,\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.9\",\n\ + \ \"enableNodePublicIP\": false,\n \"nodeLabels\": {},\n \"mode\"\ + : \"System\",\n \"osType\": \"Linux\",\n \"nodeImageVersion\": \"\ + AKSUbuntu-1804gen2containerd-2021.03.31\"\n }\n ],\n \"linuxProfile\"\ + : {\n \"adminUsername\": \"azureuser\",\n \"ssh\": {\n \"publicKeys\"\ + : [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDSlNNOwMw6aHvdkhUaMmfkjt19xPFa162alrqWaTFan0f864FGHVcSvXUvRBLeRj+x2RMlqr1TR6y73x07vqbaVApfssn52ROE3eKoX2cmez+EMaM19n2BzQLhr1lR/LkixeCM03/hYb3j16uaYeZ+zY060RdnVmPWVhslRRXmst+8cD3EXUkxdzmUa+J03nLyO8nqfCTKUltePz0FQ4IymD8ewa+sWgUlRKBwgoUBh35BFRAGq//OXuHFw6sowEIxwb5KSar4c2SHcewbSbuVFpWR7uhpYLXPJoISeASejQ4nfg+DlIbIf6mNwnLcqrHy6bwmwYeS36TUMHoxbCa7\"\ + \n }\n ]\n }\n },\n \"servicePrincipalProfile\": {\n \"\ + clientId\": \"http://clitest000001\"\n },\n \"addonProfiles\": {\n \ + \ \"omsagent\": {\n \"enabled\": true,\n \"config\": {\n \"logAnalyticsWorkspaceResourceID\"\ + : \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-weu/providers/microsoft.operationalinsights/workspaces/defaultworkspace-8ecadfc9-d1a3-4ea4-b844-0d9f87e4d7c8-weu\"\ + \n }\n }\n },\n \"nodeResourceGroup\": \"MC_clitest000002_cliakstest000003_westeurope\"\ + ,\n \"enableRBAC\": true,\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\ + \ },\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/westeurope/operations/6d8860d8-2875-45f2-bce5-10ee894856af?api-version=2017-08-31 + cache-control: + - no-cache + content-length: + - '2721' + content-type: + - application/json + date: + - Wed, 28 Apr 2021 07:19:27 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1187' + 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 --generate-ssh-keys --enable-addons --service-principal + --client-secret + User-Agent: + - python/3.6.9 (Linux-5.4.0-1031-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.21 + msrest_azure/0.6.3 azure-mgmt-containerservice/11.1.0 Azure-SDK-For-Python + AZURECLI/2.22.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westeurope/operations/6d8860d8-2875-45f2-bce5-10ee894856af?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"d860886d-7528-f245-bce5-10ee894856af\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-04-28T07:19:26.4966666Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 28 Apr 2021 07:19: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 --generate-ssh-keys --enable-addons --service-principal + --client-secret + User-Agent: + - python/3.6.9 (Linux-5.4.0-1031-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.21 + msrest_azure/0.6.3 azure-mgmt-containerservice/11.1.0 Azure-SDK-For-Python + AZURECLI/2.22.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westeurope/operations/6d8860d8-2875-45f2-bce5-10ee894856af?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"d860886d-7528-f245-bce5-10ee894856af\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-04-28T07:19:26.4966666Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 28 Apr 2021 07:20: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 --generate-ssh-keys --enable-addons --service-principal + --client-secret + User-Agent: + - python/3.6.9 (Linux-5.4.0-1031-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.21 + msrest_azure/0.6.3 azure-mgmt-containerservice/11.1.0 Azure-SDK-For-Python + AZURECLI/2.22.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westeurope/operations/6d8860d8-2875-45f2-bce5-10ee894856af?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"d860886d-7528-f245-bce5-10ee894856af\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-04-28T07:19:26.4966666Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 28 Apr 2021 07:20: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 --generate-ssh-keys --enable-addons --service-principal + --client-secret + User-Agent: + - python/3.6.9 (Linux-5.4.0-1031-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.21 + msrest_azure/0.6.3 azure-mgmt-containerservice/11.1.0 Azure-SDK-For-Python + AZURECLI/2.22.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westeurope/operations/6d8860d8-2875-45f2-bce5-10ee894856af?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"d860886d-7528-f245-bce5-10ee894856af\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-04-28T07:19:26.4966666Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 28 Apr 2021 07:21: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 --generate-ssh-keys --enable-addons --service-principal + --client-secret + User-Agent: + - python/3.6.9 (Linux-5.4.0-1031-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.21 + msrest_azure/0.6.3 azure-mgmt-containerservice/11.1.0 Azure-SDK-For-Python + AZURECLI/2.22.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westeurope/operations/6d8860d8-2875-45f2-bce5-10ee894856af?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"d860886d-7528-f245-bce5-10ee894856af\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-04-28T07:19:26.4966666Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 28 Apr 2021 07:21: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 --generate-ssh-keys --enable-addons --service-principal + --client-secret + User-Agent: + - python/3.6.9 (Linux-5.4.0-1031-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.21 + msrest_azure/0.6.3 azure-mgmt-containerservice/11.1.0 Azure-SDK-For-Python + AZURECLI/2.22.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westeurope/operations/6d8860d8-2875-45f2-bce5-10ee894856af?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"d860886d-7528-f245-bce5-10ee894856af\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-04-28T07:19:26.4966666Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 28 Apr 2021 07:22: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 --generate-ssh-keys --enable-addons --service-principal + --client-secret + User-Agent: + - python/3.6.9 (Linux-5.4.0-1031-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.21 + msrest_azure/0.6.3 azure-mgmt-containerservice/11.1.0 Azure-SDK-For-Python + AZURECLI/2.22.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westeurope/operations/6d8860d8-2875-45f2-bce5-10ee894856af?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"d860886d-7528-f245-bce5-10ee894856af\",\n \"status\"\ + : \"Succeeded\",\n \"startTime\": \"2021-04-28T07:19:26.4966666Z\",\n \"\ + endTime\": \"2021-04-28T07:22:33.5247029Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '170' + content-type: + - application/json + date: + - Wed, 28 Apr 2021 07:22: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 --generate-ssh-keys --enable-addons --service-principal + --client-secret + User-Agent: + - python/3.6.9 (Linux-5.4.0-1031-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.21 + msrest_azure/0.6.3 azure-mgmt-containerservice/11.1.0 Azure-SDK-For-Python + AZURECLI/2.22.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000002/providers/Microsoft.ContainerService/managedClusters/cliakstest000003?api-version=2021-02-01 + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000002/providers/Microsoft.ContainerService/managedClusters/cliakstest000003\"\ + ,\n \"location\": \"westeurope\",\n \"name\": \"cliakstest000003\",\n \"\ + type\": \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\"\ + : {\n \"provisioningState\": \"Succeeded\",\n \"powerState\": {\n \"\ + code\": \"Running\"\n },\n \"kubernetesVersion\": \"1.19.9\",\n \"dnsPrefix\"\ + : \"cliakstest-clitestpxaynqmuk-8ecadf\",\n \"fqdn\": \"cliakstest-clitestpxaynqmuk-8ecadf-c37ea9e3.hcp.westeurope.azmk8s.io\"\ + ,\n \"azurePortalFQDN\": \"cliakstest-clitestpxaynqmuk-8ecadf-c37ea9e3.portal.hcp.westeurope.azmk8s.io\"\ + ,\n \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \ + \ \"count\": 3,\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.9\"\ + ,\n \"enableNodePublicIP\": false,\n \"nodeLabels\": {},\n \"\ + mode\": \"System\",\n \"osType\": \"Linux\",\n \"nodeImageVersion\"\ + : \"AKSUbuntu-1804gen2containerd-2021.03.31\"\n }\n ],\n \"linuxProfile\"\ + : {\n \"adminUsername\": \"azureuser\",\n \"ssh\": {\n \"publicKeys\"\ + : [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDSlNNOwMw6aHvdkhUaMmfkjt19xPFa162alrqWaTFan0f864FGHVcSvXUvRBLeRj+x2RMlqr1TR6y73x07vqbaVApfssn52ROE3eKoX2cmez+EMaM19n2BzQLhr1lR/LkixeCM03/hYb3j16uaYeZ+zY060RdnVmPWVhslRRXmst+8cD3EXUkxdzmUa+J03nLyO8nqfCTKUltePz0FQ4IymD8ewa+sWgUlRKBwgoUBh35BFRAGq//OXuHFw6sowEIxwb5KSar4c2SHcewbSbuVFpWR7uhpYLXPJoISeASejQ4nfg+DlIbIf6mNwnLcqrHy6bwmwYeS36TUMHoxbCa7\"\ + \n }\n ]\n }\n },\n \"servicePrincipalProfile\": {\n \"\ + clientId\": \"http://clitest000001\"\n },\n \"addonProfiles\": {\n \ + \ \"omsagent\": {\n \"enabled\": true,\n \"config\": {\n \"logAnalyticsWorkspaceResourceID\"\ + : \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-weu/providers/microsoft.operationalinsights/workspaces/defaultworkspace-8ecadfc9-d1a3-4ea4-b844-0d9f87e4d7c8-weu\"\ + \n }\n }\n },\n \"nodeResourceGroup\": \"MC_clitest000002_cliakstest000003_westeurope\"\ + ,\n \"enableRBAC\": true,\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_clitest000002_cliakstest000003_westeurope/providers/Microsoft.Network/publicIPAddresses/f1253c95-afe2-466c-bc71-ba6774c270fe\"\ + \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 },\n \"sku\": {\n \"name\": \"Basic\",\n \"tier\"\ + : \"Free\"\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '2992' + content-type: + - application/json + date: + - Wed, 28 Apr 2021 07:22:59 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 --generate-ssh-keys --enable-addons --service-principal + --client-secret + User-Agent: + - python/3.6.9 (Linux-5.4.0-1031-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.21 + msrest_azure/0.6.3 azure-mgmt-authorization/0.61.0 Azure-SDK-For-Python AZURECLI/2.22.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000002/providers/Microsoft.ContainerService/managedClusters/cliakstest000003/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: + - Wed, 28 Apr 2021 07:22: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 + 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 --generate-ssh-keys --enable-addons --service-principal + --client-secret + User-Agent: + - python/3.6.9 (Linux-5.4.0-1031-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.21 + msrest_azure/0.6.3 azure-graphrbac/0.60.0 Azure-SDK-For-Python AZURECLI/2.22.1 + accept-language: + - en-US + method: GET + uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/servicePrincipals?$filter=servicePrincipalNames%2Fany%28c%3Ac%20eq%20%27http%3A%2F%2Fclitest000001%27%29&api-version=1.6 + response: + body: + string: '{"odata.metadata":"https://graph.windows.net/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects","value":[{"odata.type":"Microsoft.DirectoryServices.ServicePrincipal","objectType":"ServicePrincipal","objectId":"5d90c137-c283-414c-9e0b-1a151680d3c9","deletionTimestamp":null,"accountEnabled":true,"addIns":[],"alternativeNames":[],"appDisplayName":"clitest000001","appId":"1a2c7494-89d4-4ec9-9660-2d723f9cd71a","applicationTemplateId":null,"appOwnerTenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","appRoleAssignmentRequired":false,"appRoles":[],"displayName":"clitest000001","errorUrl":null,"homepage":"https://clitest000001","informationalUrls":{"termsOfService":null,"support":null,"privacy":null,"marketing":null},"keyCredentials":[],"logoutUrl":null,"notificationEmailAddresses":[],"oauth2Permissions":[{"adminConsentDescription":"Allow + the application to access clitest000001 on behalf of the signed-in user.","adminConsentDisplayName":"Access + clitest000001","id":"dbdbc4d1-3fe3-41dd-af97-14b63cac63a2","isEnabled":true,"type":"User","userConsentDescription":"Allow + the application to access clitest000001 on your behalf.","userConsentDisplayName":"Access + clitest000001","value":"user_impersonation"}],"passwordCredentials":[],"preferredSingleSignOnMode":null,"preferredTokenSigningKeyEndDateTime":null,"preferredTokenSigningKeyThumbprint":null,"publisherName":"Microsoft","replyUrls":[],"samlMetadataUrl":null,"samlSingleSignOnSettings":null,"servicePrincipalNames":["http://clitest000001","1a2c7494-89d4-4ec9-9660-2d723f9cd71a"],"servicePrincipalType":"Application","signInAudience":"AzureADMyOrg","tags":[],"tokenEncryptionKeyId":null}]}' + headers: + access-control-allow-origin: + - '*' + cache-control: + - no-cache + content-length: + - '1746' + content-type: + - application/json; odata=minimalmetadata; streaming=true; charset=utf-8 + dataserviceversion: + - 3.0; + date: + - Wed, 28 Apr 2021 07:22:59 GMT + duration: + - '1026490' + expires: + - '-1' + ocp-aad-diagnostics-server-name: + - nrUJtX9xdvn/cMwehDMvTe81UVHdWbqgNdl58wiXeQA= + ocp-aad-session-key: + - pEwJhmvbi3SG9XPkfWCzRLGI1WTkF0ihJ0tSOe3KCRd8A9g6gihGibJV6ZScfIXFNTUyeGQ1X3COyLT10sXr4V2mSJWoQGGd9VrT5uRLTUS4InyzJ_dLIER5aEZzXNWdlJFu-3XB0eqDnjVgPXSEmhqjiE0xwrL0mqEhDPfZRP8.ml7QEeCPEGMa4w9iZx0an9_x7eAuTWx-hzQ6tZ6gfeU + pragma: + - no-cache + request-id: + - 6f8b6879-841b-45b8-b892-d457a37b68a0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-aspnet-version: + - 4.0.30319 + x-ms-dirapi-data-contract-version: + - '1.6' + x-ms-resource-unit: + - '1' + x-powered-by: + - ASP.NET + 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": "5d90c137-c283-414c-9e0b-1a151680d3c9"}}' + 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 --generate-ssh-keys --enable-addons --service-principal + --client-secret + User-Agent: + - python/3.6.9 (Linux-5.4.0-1031-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.21 + msrest_azure/0.6.3 azure-mgmt-authorization/0.61.0 Azure-SDK-For-Python AZURECLI/2.22.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000002/providers/Microsoft.ContainerService/managedClusters/cliakstest000003/providers/Microsoft.Authorization/roleAssignments/3c272898-77ef-4b3b-9fe8-bacea1e06a64?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":"5d90c137-c283-414c-9e0b-1a151680d3c9","principalType":"ServicePrincipal","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000002/providers/Microsoft.ContainerService/managedClusters/cliakstest000003","condition":null,"conditionVersion":null,"createdOn":"2021-04-28T07:23:00.7886643Z","updatedOn":"2021-04-28T07:23:01.0886678Z","createdBy":null,"updatedBy":"547f6960-a967-417a-a9a4-0f35fbdca11c","delegatedManagedIdentityResourceId":null,"description":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000002/providers/Microsoft.ContainerService/managedClusters/cliakstest000003/providers/Microsoft.Authorization/roleAssignments/3c272898-77ef-4b3b-9fe8-bacea1e06a64","type":"Microsoft.Authorization/roleAssignments","name":"3c272898-77ef-4b3b-9fe8-bacea1e06a64"}' + headers: + cache-control: + - no-cache + content-length: + - '1029' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 07:23:03 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 update + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --enable-managed-identity --yes + User-Agent: + - python/3.6.9 (Linux-5.4.0-1031-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.21 + msrest_azure/0.6.3 azure-mgmt-containerservice/11.1.0 Azure-SDK-For-Python + AZURECLI/2.22.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000002/providers/Microsoft.ContainerService/managedClusters/cliakstest000003?api-version=2021-02-01 + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000002/providers/Microsoft.ContainerService/managedClusters/cliakstest000003\"\ + ,\n \"location\": \"westeurope\",\n \"name\": \"cliakstest000003\",\n \"\ + type\": \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\"\ + : {\n \"provisioningState\": \"Succeeded\",\n \"powerState\": {\n \"\ + code\": \"Running\"\n },\n \"kubernetesVersion\": \"1.19.9\",\n \"dnsPrefix\"\ + : \"cliakstest-clitestpxaynqmuk-8ecadf\",\n \"fqdn\": \"cliakstest-clitestpxaynqmuk-8ecadf-c37ea9e3.hcp.westeurope.azmk8s.io\"\ + ,\n \"azurePortalFQDN\": \"cliakstest-clitestpxaynqmuk-8ecadf-c37ea9e3.portal.hcp.westeurope.azmk8s.io\"\ + ,\n \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \ + \ \"count\": 3,\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.9\"\ + ,\n \"enableNodePublicIP\": false,\n \"nodeLabels\": {},\n \"\ + mode\": \"System\",\n \"osType\": \"Linux\",\n \"nodeImageVersion\"\ + : \"AKSUbuntu-1804gen2containerd-2021.03.31\"\n }\n ],\n \"linuxProfile\"\ + : {\n \"adminUsername\": \"azureuser\",\n \"ssh\": {\n \"publicKeys\"\ + : [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDSlNNOwMw6aHvdkhUaMmfkjt19xPFa162alrqWaTFan0f864FGHVcSvXUvRBLeRj+x2RMlqr1TR6y73x07vqbaVApfssn52ROE3eKoX2cmez+EMaM19n2BzQLhr1lR/LkixeCM03/hYb3j16uaYeZ+zY060RdnVmPWVhslRRXmst+8cD3EXUkxdzmUa+J03nLyO8nqfCTKUltePz0FQ4IymD8ewa+sWgUlRKBwgoUBh35BFRAGq//OXuHFw6sowEIxwb5KSar4c2SHcewbSbuVFpWR7uhpYLXPJoISeASejQ4nfg+DlIbIf6mNwnLcqrHy6bwmwYeS36TUMHoxbCa7\"\ + \n }\n ]\n }\n },\n \"servicePrincipalProfile\": {\n \"\ + clientId\": \"http://clitest000001\"\n },\n \"addonProfiles\": {\n \ + \ \"omsagent\": {\n \"enabled\": true,\n \"config\": {\n \"logAnalyticsWorkspaceResourceID\"\ + : \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-weu/providers/microsoft.operationalinsights/workspaces/defaultworkspace-8ecadfc9-d1a3-4ea4-b844-0d9f87e4d7c8-weu\"\ + \n }\n }\n },\n \"nodeResourceGroup\": \"MC_clitest000002_cliakstest000003_westeurope\"\ + ,\n \"enableRBAC\": true,\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_clitest000002_cliakstest000003_westeurope/providers/Microsoft.Network/publicIPAddresses/f1253c95-afe2-466c-bc71-ba6774c270fe\"\ + \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 },\n \"sku\": {\n \"name\": \"Basic\",\n \"tier\"\ + : \"Free\"\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '2992' + content-type: + - application/json + date: + - Wed, 28 Apr 2021 07:23:04 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"location": "westeurope", "properties": {"kubernetesVersion": "1.19.9", + "dnsPrefix": "cliakstest-clitestpxaynqmuk-8ecadf", "agentPoolProfiles": [{"count": + 3, "vmSize": "Standard_DS2_v2", "osDiskSizeGB": 128, "osDiskType": "Managed", + "kubeletDiskType": "OS", "maxPods": 110, "osType": "Linux", "type": "VirtualMachineScaleSets", + "mode": "System", "orchestratorVersion": "1.19.9", "enableNodePublicIP": false, + "nodeLabels": {}, "name": "nodepool1"}], "linuxProfile": {"adminUsername": "azureuser", + "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDSlNNOwMw6aHvdkhUaMmfkjt19xPFa162alrqWaTFan0f864FGHVcSvXUvRBLeRj+x2RMlqr1TR6y73x07vqbaVApfssn52ROE3eKoX2cmez+EMaM19n2BzQLhr1lR/LkixeCM03/hYb3j16uaYeZ+zY060RdnVmPWVhslRRXmst+8cD3EXUkxdzmUa+J03nLyO8nqfCTKUltePz0FQ4IymD8ewa+sWgUlRKBwgoUBh35BFRAGq//OXuHFw6sowEIxwb5KSar4c2SHcewbSbuVFpWR7uhpYLXPJoISeASejQ4nfg+DlIbIf6mNwnLcqrHy6bwmwYeS36TUMHoxbCa7"}]}}, + "servicePrincipalProfile": {"clientId": "http://clitest000001"}, "addonProfiles": + {"omsagent": {"enabled": true, "config": {"logAnalyticsWorkspaceResourceID": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-weu/providers/microsoft.operationalinsights/workspaces/defaultworkspace-8ecadfc9-d1a3-4ea4-b844-0d9f87e4d7c8-weu"}}}, + "nodeResourceGroup": "MC_clitest000002_cliakstest000003_westeurope", "enableRBAC": + true, "networkProfile": {"networkPlugin": "kubenet", "podCidr": "10.244.0.0/16", + "serviceCidr": "10.0.0.0/16", "dnsServiceIP": "10.0.0.10", "dockerBridgeCidr": + "172.17.0.1/16", "outboundType": "loadBalancer", "loadBalancerSku": "Standard", + "loadBalancerProfile": {"managedOutboundIPs": {"count": 1}, "effectiveOutboundIPs": + [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000002_cliakstest000003_westeurope/providers/Microsoft.Network/publicIPAddresses/f1253c95-afe2-466c-bc71-ba6774c270fe"}]}}}, + "identity": {"type": "SystemAssigned"}, "sku": {"name": "Basic", "tier": "Free"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + Content-Length: + - '2004' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --resource-group --name --enable-managed-identity --yes + User-Agent: + - python/3.6.9 (Linux-5.4.0-1031-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.21 + msrest_azure/0.6.3 azure-mgmt-containerservice/11.1.0 Azure-SDK-For-Python + AZURECLI/2.22.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000002/providers/Microsoft.ContainerService/managedClusters/cliakstest000003?api-version=2021-02-01 + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000002/providers/Microsoft.ContainerService/managedClusters/cliakstest000003\"\ + ,\n \"location\": \"westeurope\",\n \"name\": \"cliakstest000003\",\n \"\ + type\": \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\"\ + : {\n \"provisioningState\": \"Updating\",\n \"powerState\": {\n \"\ + code\": \"Running\"\n },\n \"kubernetesVersion\": \"1.19.9\",\n \"dnsPrefix\"\ + : \"cliakstest-clitestpxaynqmuk-8ecadf\",\n \"fqdn\": \"cliakstest-clitestpxaynqmuk-8ecadf-c37ea9e3.hcp.westeurope.azmk8s.io\"\ + ,\n \"azurePortalFQDN\": \"cliakstest-clitestpxaynqmuk-8ecadf-c37ea9e3.portal.hcp.westeurope.azmk8s.io\"\ + ,\n \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \ + \ \"count\": 3,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\"\ + : 128,\n \"osDiskType\": \"Managed\",\n \"kubeletDiskType\": \"OS\"\ + ,\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n \ + \ \"provisioningState\": \"Updating\",\n \"powerState\": {\n \"\ + code\": \"Running\"\n },\n \"orchestratorVersion\": \"1.19.9\",\n\ + \ \"enableNodePublicIP\": false,\n \"nodeLabels\": {},\n \"mode\"\ + : \"System\",\n \"osType\": \"Linux\",\n \"nodeImageVersion\": \"\ + AKSUbuntu-1804gen2containerd-2021.03.31\"\n }\n ],\n \"linuxProfile\"\ + : {\n \"adminUsername\": \"azureuser\",\n \"ssh\": {\n \"publicKeys\"\ + : [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDSlNNOwMw6aHvdkhUaMmfkjt19xPFa162alrqWaTFan0f864FGHVcSvXUvRBLeRj+x2RMlqr1TR6y73x07vqbaVApfssn52ROE3eKoX2cmez+EMaM19n2BzQLhr1lR/LkixeCM03/hYb3j16uaYeZ+zY060RdnVmPWVhslRRXmst+8cD3EXUkxdzmUa+J03nLyO8nqfCTKUltePz0FQ4IymD8ewa+sWgUlRKBwgoUBh35BFRAGq//OXuHFw6sowEIxwb5KSar4c2SHcewbSbuVFpWR7uhpYLXPJoISeASejQ4nfg+DlIbIf6mNwnLcqrHy6bwmwYeS36TUMHoxbCa7\"\ + \n }\n ]\n }\n },\n \"servicePrincipalProfile\": {\n \"\ + clientId\": \"msi\"\n },\n \"addonProfiles\": {\n \"omsagent\": {\n\ + \ \"enabled\": true,\n \"config\": {\n \"logAnalyticsWorkspaceResourceID\"\ + : \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-weu/providers/microsoft.operationalinsights/workspaces/defaultworkspace-8ecadfc9-d1a3-4ea4-b844-0d9f87e4d7c8-weu\"\ + \n }\n }\n },\n \"nodeResourceGroup\": \"MC_clitest000002_cliakstest000003_westeurope\"\ + ,\n \"enableRBAC\": true,\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_clitest000002_cliakstest000003_westeurope/providers/Microsoft.Network/publicIPAddresses/f1253c95-afe2-466c-bc71-ba6774c270fe\"\ + \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 },\n \"identity\": {\n \"type\": \"SystemAssigned\"\ + ,\n \"principalId\": \"87f348a8-32ac-442c-af1d-7bbda073d0b2\",\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/westeurope/operations/c3fc44a2-cae7-4c03-a382-2a0382d54299?api-version=2017-08-31 + cache-control: + - no-cache + content-length: + - '3124' + content-type: + - application/json + date: + - Wed, 28 Apr 2021 07:23:11 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --enable-managed-identity --yes + User-Agent: + - python/3.6.9 (Linux-5.4.0-1031-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.21 + msrest_azure/0.6.3 azure-mgmt-containerservice/11.1.0 Azure-SDK-For-Python + AZURECLI/2.22.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westeurope/operations/c3fc44a2-cae7-4c03-a382-2a0382d54299?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"a244fcc3-e7ca-034c-a382-2a0382d54299\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-04-28T07:23:09.8266666Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 28 Apr 2021 07:23:41 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 update + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --enable-managed-identity --yes + User-Agent: + - python/3.6.9 (Linux-5.4.0-1031-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.21 + msrest_azure/0.6.3 azure-mgmt-containerservice/11.1.0 Azure-SDK-For-Python + AZURECLI/2.22.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westeurope/operations/c3fc44a2-cae7-4c03-a382-2a0382d54299?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"a244fcc3-e7ca-034c-a382-2a0382d54299\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-04-28T07:23:09.8266666Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 28 Apr 2021 07:24:12 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 update + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --enable-managed-identity --yes + User-Agent: + - python/3.6.9 (Linux-5.4.0-1031-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.21 + msrest_azure/0.6.3 azure-mgmt-containerservice/11.1.0 Azure-SDK-For-Python + AZURECLI/2.22.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westeurope/operations/c3fc44a2-cae7-4c03-a382-2a0382d54299?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"a244fcc3-e7ca-034c-a382-2a0382d54299\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-04-28T07:23:09.8266666Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 28 Apr 2021 07:24:42 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 update + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --enable-managed-identity --yes + User-Agent: + - python/3.6.9 (Linux-5.4.0-1031-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.21 + msrest_azure/0.6.3 azure-mgmt-containerservice/11.1.0 Azure-SDK-For-Python + AZURECLI/2.22.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westeurope/operations/c3fc44a2-cae7-4c03-a382-2a0382d54299?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"a244fcc3-e7ca-034c-a382-2a0382d54299\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-04-28T07:23:09.8266666Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 28 Apr 2021 07:25:12 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 update + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --enable-managed-identity --yes + User-Agent: + - python/3.6.9 (Linux-5.4.0-1031-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.21 + msrest_azure/0.6.3 azure-mgmt-containerservice/11.1.0 Azure-SDK-For-Python + AZURECLI/2.22.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westeurope/operations/c3fc44a2-cae7-4c03-a382-2a0382d54299?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"a244fcc3-e7ca-034c-a382-2a0382d54299\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-04-28T07:23:09.8266666Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 28 Apr 2021 07:25:42 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 update + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --enable-managed-identity --yes + User-Agent: + - python/3.6.9 (Linux-5.4.0-1031-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.21 + msrest_azure/0.6.3 azure-mgmt-containerservice/11.1.0 Azure-SDK-For-Python + AZURECLI/2.22.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westeurope/operations/c3fc44a2-cae7-4c03-a382-2a0382d54299?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"a244fcc3-e7ca-034c-a382-2a0382d54299\",\n \"status\"\ + : \"Succeeded\",\n \"startTime\": \"2021-04-28T07:23:09.8266666Z\",\n \"\ + endTime\": \"2021-04-28T07:25:59.406512Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '169' + content-type: + - application/json + date: + - Wed, 28 Apr 2021 07:26:12 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 update + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --enable-managed-identity --yes + User-Agent: + - python/3.6.9 (Linux-5.4.0-1031-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.21 + msrest_azure/0.6.3 azure-mgmt-containerservice/11.1.0 Azure-SDK-For-Python + AZURECLI/2.22.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000002/providers/Microsoft.ContainerService/managedClusters/cliakstest000003?api-version=2021-02-01 + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000002/providers/Microsoft.ContainerService/managedClusters/cliakstest000003\"\ + ,\n \"location\": \"westeurope\",\n \"name\": \"cliakstest000003\",\n \"\ + type\": \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\"\ + : {\n \"provisioningState\": \"Succeeded\",\n \"powerState\": {\n \"\ + code\": \"Running\"\n },\n \"kubernetesVersion\": \"1.19.9\",\n \"dnsPrefix\"\ + : \"cliakstest-clitestpxaynqmuk-8ecadf\",\n \"fqdn\": \"cliakstest-clitestpxaynqmuk-8ecadf-c37ea9e3.hcp.westeurope.azmk8s.io\"\ + ,\n \"azurePortalFQDN\": \"cliakstest-clitestpxaynqmuk-8ecadf-c37ea9e3.portal.hcp.westeurope.azmk8s.io\"\ + ,\n \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \ + \ \"count\": 3,\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.9\"\ + ,\n \"enableNodePublicIP\": false,\n \"nodeLabels\": {},\n \"\ + mode\": \"System\",\n \"osType\": \"Linux\",\n \"nodeImageVersion\"\ + : \"AKSUbuntu-1804gen2containerd-2021.03.31\"\n }\n ],\n \"linuxProfile\"\ + : {\n \"adminUsername\": \"azureuser\",\n \"ssh\": {\n \"publicKeys\"\ + : [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDSlNNOwMw6aHvdkhUaMmfkjt19xPFa162alrqWaTFan0f864FGHVcSvXUvRBLeRj+x2RMlqr1TR6y73x07vqbaVApfssn52ROE3eKoX2cmez+EMaM19n2BzQLhr1lR/LkixeCM03/hYb3j16uaYeZ+zY060RdnVmPWVhslRRXmst+8cD3EXUkxdzmUa+J03nLyO8nqfCTKUltePz0FQ4IymD8ewa+sWgUlRKBwgoUBh35BFRAGq//OXuHFw6sowEIxwb5KSar4c2SHcewbSbuVFpWR7uhpYLXPJoISeASejQ4nfg+DlIbIf6mNwnLcqrHy6bwmwYeS36TUMHoxbCa7\"\ + \n }\n ]\n }\n },\n \"servicePrincipalProfile\": {\n \"\ + clientId\": \"msi\"\n },\n \"addonProfiles\": {\n \"omsagent\": {\n\ + \ \"enabled\": true,\n \"config\": {\n \"logAnalyticsWorkspaceResourceID\"\ + : \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-weu/providers/microsoft.operationalinsights/workspaces/defaultworkspace-8ecadfc9-d1a3-4ea4-b844-0d9f87e4d7c8-weu\"\ + \n },\n \"identity\": {\n \"resourceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MC_clitest000002_cliakstest000003_westeurope/providers/Microsoft.ManagedIdentity/userAssignedIdentities/omsagent-cliakstest000003\"\ + ,\n \"clientId\": \"cf93a065-0e02-423b-8685-8a1e24b6c288\",\n \"\ + objectId\": \"a0e59bfc-7255-48b9-aee5-f9f4e7e86981\"\n }\n }\n },\n\ + \ \"nodeResourceGroup\": \"MC_clitest000002_cliakstest000003_westeurope\"\ + ,\n \"enableRBAC\": true,\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_clitest000002_cliakstest000003_westeurope/providers/Microsoft.Network/publicIPAddresses/f1253c95-afe2-466c-bc71-ba6774c270fe\"\ + \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_clitest000002_cliakstest000003_westeurope/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cliakstest000003-agentpool\"\ + ,\n \"clientId\": \"08de15e0-a844-4657-9785-7e19616bac5b\",\n \"objectId\"\ + : \"a44f1d94-4a43-4f9f-bb47-2cfae8371f0a\"\n }\n }\n },\n \"identity\"\ + : {\n \"type\": \"SystemAssigned\",\n \"principalId\": \"87f348a8-32ac-442c-af1d-7bbda073d0b2\"\ + ,\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: + - '3890' + content-type: + - application/json + date: + - Wed, 28 Apr 2021 07:26:12 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 update + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --enable-managed-identity --yes + User-Agent: + - python/3.6.9 (Linux-5.4.0-1031-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.21 + msrest_azure/0.6.3 azure-mgmt-authorization/0.61.0 Azure-SDK-For-Python AZURECLI/2.22.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000002/providers/Microsoft.ContainerService/managedClusters/cliakstest000003/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: + - Wed, 28 Apr 2021 07:26:13 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": "a0e59bfc-7255-48b9-aee5-f9f4e7e86981"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + Content-Length: + - '233' + Content-Type: + - application/json; charset=utf-8 + Cookie: + - x-ms-gateway-slice=Production + ParameterSetName: + - --resource-group --name --enable-managed-identity --yes + User-Agent: + - python/3.6.9 (Linux-5.4.0-1031-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.21 + msrest_azure/0.6.3 azure-mgmt-authorization/0.61.0 Azure-SDK-For-Python AZURECLI/2.22.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000002/providers/Microsoft.ContainerService/managedClusters/cliakstest000003/providers/Microsoft.Authorization/roleAssignments/f6ff7f11-5234-452a-aaa9-6b972bead8ef?api-version=2020-04-01-preview + response: + body: + string: '{"error":{"code":"PrincipalNotFound","message":"Principal a0e59bfc725548b9aee5f9f4e7e86981 + does not exist in the directory 72f988bf-86f1-41af-91ab-2d7cd011db47."}}' + headers: + cache-control: + - no-cache + content-length: + - '163' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 07:26:13 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: 400 + message: Bad Request +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --enable-managed-identity --yes + User-Agent: + - python/3.6.9 (Linux-5.4.0-1031-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.21 + msrest_azure/0.6.3 azure-mgmt-authorization/0.61.0 Azure-SDK-For-Python AZURECLI/2.22.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000002/providers/Microsoft.ContainerService/managedClusters/cliakstest000003/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: + - Wed, 28 Apr 2021 07:26:15 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": "a0e59bfc-7255-48b9-aee5-f9f4e7e86981"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + Content-Length: + - '233' + Content-Type: + - application/json; charset=utf-8 + Cookie: + - x-ms-gateway-slice=Production + ParameterSetName: + - --resource-group --name --enable-managed-identity --yes + User-Agent: + - python/3.6.9 (Linux-5.4.0-1031-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.21 + msrest_azure/0.6.3 azure-mgmt-authorization/0.61.0 Azure-SDK-For-Python AZURECLI/2.22.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000002/providers/Microsoft.ContainerService/managedClusters/cliakstest000003/providers/Microsoft.Authorization/roleAssignments/e1bc4ef6-0c6f-418b-a89d-1272ad1d142d?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":"a0e59bfc-7255-48b9-aee5-f9f4e7e86981","principalType":"ServicePrincipal","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000002/providers/Microsoft.ContainerService/managedClusters/cliakstest000003","condition":null,"conditionVersion":null,"createdOn":"2021-04-28T07:26:16.4019745Z","updatedOn":"2021-04-28T07:26:16.6819804Z","createdBy":null,"updatedBy":"547f6960-a967-417a-a9a4-0f35fbdca11c","delegatedManagedIdentityResourceId":null,"description":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000002/providers/Microsoft.ContainerService/managedClusters/cliakstest000003/providers/Microsoft.Authorization/roleAssignments/e1bc4ef6-0c6f-418b-a89d-1272ad1d142d","type":"Microsoft.Authorization/roleAssignments","name":"e1bc4ef6-0c6f-418b-a89d-1272ad1d142d"}' + headers: + cache-control: + - no-cache + content-length: + - '1029' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 07:26:18 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 delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g -n --yes --no-wait + User-Agent: + - python/3.6.9 (Linux-5.4.0-1031-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.21 + msrest_azure/0.6.3 azure-mgmt-containerservice/11.1.0 Azure-SDK-For-Python + AZURECLI/2.22.1 + accept-language: + - en-US + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000002/providers/Microsoft.ContainerService/managedClusters/cliakstest000003?api-version=2021-02-01 + response: + body: + string: '' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westeurope/operations/a608ef35-2edd-4c5f-969c-06cd32e2e295?api-version=2017-08-31 + cache-control: + - no-cache + content-length: + - '0' + date: + - Wed, 28 Apr 2021 07:26:20 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westeurope/operationresults/a608ef35-2edd-4c5f-969c-06cd32e2e295?api-version=2017-08-31 + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-deletes: + - '14998' + status: + code: 202 + message: Accepted +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_aks_commands.py b/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_aks_commands.py index 49e7e5718cf..d6f208f66cb 100644 --- a/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_aks_commands.py +++ b/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_aks_commands.py @@ -4214,3 +4214,62 @@ def test_aks_update_with_windows_password(self, resource_group, resource_group_l # delete self.cmd( 'aks delete -g {resource_group} -n {name} --yes --no-wait', checks=[self.is_empty()]) + + @live_only() + @AllowLargeResponse() + @RoleBasedServicePrincipalPreparer() + @ResourceGroupPreparer(random_name_length=17, name_prefix='clitest', location='westeurope') + def test_aks_update_to_msi_cluster(self, resource_group, resource_group_location, sp_name, sp_password): + aks_name = self.create_random_name('cliakstest', 16) + self.kwargs.update({ + 'resource_group': resource_group, + 'name': aks_name, + 'service_principal': _process_sp_name(sp_name), + 'client_secret': sp_password, + }) + + create_cmd = 'aks create --resource-group={resource_group} --name={name} --generate-ssh-keys ' \ + '--service-principal={service_principal} --client-secret={client_secret} ' + + self.cmd(create_cmd, checks=[ + self.check('provisioningState', 'Succeeded'), + ]) + + # update to MSI cluster + self.cmd('aks update --resource-group={resource_group} --name={name} --enable-managed-identity --yes', checks=[ + self.check('provisioningState', 'Succeeded'), + self.check('identity.type', 'SystemAssigned') + ]) + + # delete + self.cmd( + 'aks delete -g {resource_group} -n {name} --yes --no-wait', checks=[self.is_empty()]) + + @live_only() + @AllowLargeResponse() + @RoleBasedServicePrincipalPreparer() + @ResourceGroupPreparer(random_name_length=17, name_prefix='clitest', location='westeurope') + def test_aks_update_to_msi_cluster_with_addons(self, resource_group, resource_group_location, sp_name, sp_password): + aks_name = self.create_random_name('cliakstest', 16) + self.kwargs.update({ + 'resource_group': resource_group, + 'name': aks_name, + 'service_principal': _process_sp_name(sp_name), + 'client_secret': sp_password, + }) + + create_cmd = 'aks create --resource-group={resource_group} --name={name} --generate-ssh-keys --enable-addons monitoring ' \ + '--service-principal={service_principal} --client-secret={client_secret} ' + self.cmd(create_cmd, checks=[ + self.check('provisioningState', 'Succeeded'), + ]) + + # update to MSI cluster + self.cmd('aks update --resource-group={resource_group} --name={name} --enable-managed-identity --yes', checks=[ + self.check('provisioningState', 'Succeeded'), + self.check('identity.type', 'SystemAssigned') + ]) + + # delete + self.cmd( + 'aks delete -g {resource_group} -n {name} --yes --no-wait', checks=[self.is_empty()])