From 6a96032fe0169e913855397f16be33db0f12f7e1 Mon Sep 17 00:00:00 2001 From: Bin Xia Date: Thu, 11 Jun 2020 15:32:45 +0800 Subject: [PATCH 1/4] Support updating an existing AAD-Integrated cluster to the new AKS-managed AAD experience --- src/aks-preview/HISTORY.md | 4 + src/aks-preview/azext_aks_preview/_help.py | 9 + src/aks-preview/azext_aks_preview/custom.py | 12 +- ...ks_byo_appgw_with_ingress_appgw_addon.yaml | 4 +- ...s_byo_subnet_with_ingress_appgw_addon.yaml | 4 +- ...ate_aadv1_and_update_with_managed_aad.yaml | 946 ++++++++++++++++++ ...ks_create_and_update_with_managed_aad.yaml | 4 +- ...te_nonaad_and_update_with_managed_aad.yaml | 587 +++++++++++ ...t_aks_create_with_ingress_appgw_addon.yaml | 4 +- .../tests/latest/test_aks_commands.py | 62 +- src/aks-preview/setup.py | 2 +- 11 files changed, 1627 insertions(+), 11 deletions(-) create mode 100644 src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_aadv1_and_update_with_managed_aad.yaml create mode 100644 src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_nonaad_and_update_with_managed_aad.yaml diff --git a/src/aks-preview/HISTORY.md b/src/aks-preview/HISTORY.md index 1a80e2ae92e..ea126858fb9 100644 --- a/src/aks-preview/HISTORY.md +++ b/src/aks-preview/HISTORY.md @@ -2,6 +2,10 @@ Release History =============== +0.4.53 ++++++ +* Support "--enable-aad" for "az aks update" to update an existing AAD-Integrated cluster to the new AKS-managed AAD experience + 0.4.52 +++++ * Add --uptime-sla for az aks update diff --git a/src/aks-preview/azext_aks_preview/_help.py b/src/aks-preview/azext_aks_preview/_help.py index c52d0bef353..e51896bad57 100644 --- a/src/aks-preview/azext_aks_preview/_help.py +++ b/src/aks-preview/azext_aks_preview/_help.py @@ -262,6 +262,8 @@ text: az aks create -g MyResourceGroup -n MyManagedCluster --node-osdisk-diskencryptionset-id - name: Create a kubernetes cluster with userDefinedRouting, standard load balancer SKU and a custom subnet preconfigured with a route table text: az aks create -g MyResourceGroup -n MyManagedCluster --outbound-type userDefinedRouting --load-balancer-sku standard --vnet-subnet-id customUserSubnetVnetID + - name: Create a kubernetes cluster with managed AAD enabled. + text: az aks create -g MyResourceGroup -n MyManagedCluster --enable-aad --aad-admin-group-object-ids --aad-tenant-id """.format(sp_cache=AKS_SERVICE_PRINCIPAL_CACHE) @@ -352,6 +354,9 @@ - name: --api-server-authorized-ip-ranges type: string short-summary: Comma seperated list of authorized apiserver IP ranges. Set to "" to allow all traffic on a previously restricted cluster. Set to 0.0.0.0/32 to restrict apiserver traffic to node pools. + - name: --enable-aad + type: bool + short-summary: Enable managed AAD feature for cluster. - name: --aad-admin-group-object-ids type: string short-summary: Comma seperated list of aad group object IDs that will be set as cluster admin. @@ -386,6 +391,10 @@ text: az aks update -g MyResourceGroup -n MyManagedCluster --api-server-authorized-ip-ranges "" - name: Restrict apiserver traffic in a kubernetes cluster to agentpool nodes. text: az aks update -g MyResourceGroup -n MyManagedCluster --api-server-authorized-ip-ranges 0.0.0.0/32 + - name: Update a AKS-managed AAD cluster with tenant ID or admin group object IDs. + text: az aks update -g MyResourceGroup -n MyManagedCluster --aad-admin-group-object-ids --aad-tenant-id + - name: Update an existing AKS AAD-Integrated cluster to the new AKS-managed AAD experience. + text: az aks update -g MyResourceGroup -n MyManagedCluster --enable-aad """ helps['aks kollect'] = """ diff --git a/src/aks-preview/azext_aks_preview/custom.py b/src/aks-preview/azext_aks_preview/custom.py index 150fb64f2cc..3b4c374e653 100644 --- a/src/aks-preview/azext_aks_preview/custom.py +++ b/src/aks-preview/azext_aks_preview/custom.py @@ -1132,6 +1132,7 @@ def aks_update(cmd, # pylint: disable=too-many-statements,too-many-branches, attach_acr=None, detach_acr=None, uptime_sla=False, + enable_aad=False, aad_tenant_id=None, aad_admin_group_object_ids=None, aks_custom_headers=None): @@ -1153,6 +1154,7 @@ def aks_update(cmd, # pylint: disable=too-many-statements,too-many-branches, not update_pod_security and \ not update_lb_profile and \ not uptime_sla and \ + not enable_aad and \ not update_aad_profile: raise CLIError('Please specify "--enable-cluster-autoscaler" or ' '"--disable-cluster-autoscaler" or ' @@ -1281,10 +1283,18 @@ def aks_update(cmd, # pylint: disable=too-many-statements,too-many-branches, instance.api_server_access_profile = \ _populate_api_server_access_profile(api_server_authorized_ip_ranges, instance) + if enable_aad: + if instance.aad_profile is None: + raise CLIError('Cannot specify "--enable-aad" for a non-AAD cluster') + if instance.aad_profile.managed: + raise CLIError('Cannot specify "--enable-aad" if managed AAD is already enabled') + instance.aad_profile = ManagedClusterAADProfile( + managed=True + ) if update_aad_profile: if instance.aad_profile is None or not instance.aad_profile.managed: raise CLIError('Cannot specify "--aad-tenant-id/--aad-admin-group-object-ids"' - ' if managed aad not is enabled') + ' if managed AAD is not enabled') if aad_tenant_id is not None: instance.aad_profile.tenant_id = aad_tenant_id if aad_admin_group_object_ids is not None: diff --git a/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_byo_appgw_with_ingress_appgw_addon.yaml b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_byo_appgw_with_ingress_appgw_addon.yaml index cf8ee2c470c..64f1b326543 100644 --- a/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_byo_appgw_with_ingress_appgw_addon.yaml +++ b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_byo_appgw_with_ingress_appgw_addon.yaml @@ -1643,8 +1643,8 @@ interactions: false, "scaleSetPriority": "Regular", "scaleSetEvictionPolicy": "Delete", "name": "nodepool1"}], "linuxProfile": {"adminUsername": "azureuser", "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDdabawEfwOujYnckZRvvkrcqoR+c2bLuoiOddqujUWHu+fBTEwDd8nB0vBemdGLNHmo7B3qpXyq9pcplUaGYzCmRZtnYy35UOtCinMqyT3mIJshJA1cIw70nFJbr2gvDl+XXtxmd59k5bWMUjzNdynurjhcA53b1fMHTFXSd5ugtbJ4SyZxPkNWxRtJ9Dg2RslMZ+3ZA9y8iAAMxnX85HpG1UMpwzvEM/jPoFd43UYB5TFZIRAcvlkZTQKaBtFW+Khg7Jx5C3iyPzSMAgDzS4WsJBCfABpJ8nnGzBEi/orhFydtkE/zsXOEMY8ppUpnBLN+LXD1gqWhEYRLF7atYd3 - vsonline@c541134d8e01\\n"}]}}, "servicePrincipalProfile": {"clientId": "xxxx", - "secret": "yyyy"}, "addonProfiles": {"IngressApplicationGateway": + vsonline@c541134d8e01\\n"}]}}, "servicePrincipalProfile": {"clientId": "", + "secret": ""}, "addonProfiles": {"IngressApplicationGateway": {"enabled": true, "config": {"applicationGatewayId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/applicationGateways/appgw"}}}, "enableRBAC": true, "enablePodSecurityPolicy": false, "networkProfile": {"networkPlugin": "kubenet", "podCidr": "10.244.0.0/16", "serviceCidr": "10.0.0.0/16", "dnsServiceIP": diff --git a/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_byo_subnet_with_ingress_appgw_addon.yaml b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_byo_subnet_with_ingress_appgw_addon.yaml index add5904370c..ad8110299c1 100644 --- a/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_byo_subnet_with_ingress_appgw_addon.yaml +++ b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_byo_subnet_with_ingress_appgw_addon.yaml @@ -791,8 +791,8 @@ interactions: false, "scaleSetPriority": "Regular", "scaleSetEvictionPolicy": "Delete", "name": "nodepool1"}], "linuxProfile": {"adminUsername": "azureuser", "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDdabawEfwOujYnckZRvvkrcqoR+c2bLuoiOddqujUWHu+fBTEwDd8nB0vBemdGLNHmo7B3qpXyq9pcplUaGYzCmRZtnYy35UOtCinMqyT3mIJshJA1cIw70nFJbr2gvDl+XXtxmd59k5bWMUjzNdynurjhcA53b1fMHTFXSd5ugtbJ4SyZxPkNWxRtJ9Dg2RslMZ+3ZA9y8iAAMxnX85HpG1UMpwzvEM/jPoFd43UYB5TFZIRAcvlkZTQKaBtFW+Khg7Jx5C3iyPzSMAgDzS4WsJBCfABpJ8nnGzBEi/orhFydtkE/zsXOEMY8ppUpnBLN+LXD1gqWhEYRLF7atYd3 - vsonline@c541134d8e01\\n"}]}}, "servicePrincipalProfile": {"clientId": "efe70525-74c7-4e99-b80d-970b901032c4", - "secret": "1fa5b2295678c53514fa$"}, "addonProfiles": {"IngressApplicationGateway": + vsonline@c541134d8e01\\n"}]}}, "servicePrincipalProfile": {"clientId": "", + "secret": ""}, "addonProfiles": {"IngressApplicationGateway": {"enabled": true, "config": {"applicationGatewayName": "gateway", "subnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/virtualNetworks/cliakstest000003/subnets/appgw-subnet"}}}, "enableRBAC": true, "enablePodSecurityPolicy": false, "networkProfile": {"networkPlugin": diff --git a/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_aadv1_and_update_with_managed_aad.yaml b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_aadv1_and_update_with_managed_aad.yaml new file mode 100644 index 00000000000..ec147faf26d --- /dev/null +++ b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_aadv1_and_update_with_managed_aad.yaml @@ -0,0 +1,946 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --vm-set-type -c --aad-server-app-id --aad-server-app-secret + --aad-client-app-id --aad-tenant-id -o + User-Agent: + - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.16 + msrest_azure/0.6.3 azure-mgmt-resource/9.0.0 Azure-SDK-For-Python AZURECLI/2.7.0 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001?api-version=2019-07-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001","name":"clitest000001","type":"Microsoft.Resources/resourceGroups","location":"canadacentral","tags":{"product":"azurecli","cause":"automation","date":"2020-06-20T11:38:55Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '319' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 20 Jun 2020 11:38:57 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": "canadacentral", "properties": {"kubernetesVersion": "", "dnsPrefix": + "cliakstest-clitestk2in5hptv-8ecadf", "agentPoolProfiles": [{"count": 1, "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 AAAAB3NzaC1yc2EAAAADAQABAAABAQCpjMMxo6YidpgcxNuptFFZffNPTzBZgvdc9LcmKcfNG3o5FmW6MX8Aej848hN6wAHHicQwzQxzkNhO7zj3EMho0WuDC1d9D9aknZcp+K58tmeh21ZVlULntonv2q7VFkg+j9OJ8UY5QczvAx9ClsbXmI4gpWjc/N7XNm00DipBzfBbyMe9mWI0vl0kpmSltLGDQRbr8H6njD8uWjcTaXYC7Ysx3gdsSES54H3W0IcqqeiPWifbIO/zPr429B4pZKo5/2xkF5m4ez3UKv8ivU9LBAL6mW7np1j0G57L1Q62XJWSyG7JEMQWP4SLlZ7GBBFCPuPEqd3w6WqxUyr0R/+V"}]}}, + "servicePrincipalProfile": {"clientId": "", + "secret": ""}, "addonProfiles": {}, "enableRBAC": true, + "enablePodSecurityPolicy": false, "networkProfile": {"networkPlugin": "kubenet", + "podCidr": "10.244.0.0/16", "serviceCidr": "10.0.0.0/16", "dnsServiceIP": "10.0.0.10", + "dockerBridgeCidr": "172.17.0.1/16", "outboundType": "loadBalancer", "loadBalancerSku": + "standard"}, "aadProfile": {"clientAppID": "00000000-0000-0000-0000-000000000002", + "serverAppID": "00000000-0000-0000-0000-000000000001", "serverAppSecret": "fake-secret", + "tenantID": "d5b55040-0c14-48cc-a028-91457fc190d9"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '1484' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --resource-group --name --vm-set-type -c --aad-server-app-id --aad-server-app-secret + --aad-client-app-id --aad-tenant-id -o + User-Agent: + - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.16 + msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.3 Azure-SDK-For-Python + AZURECLI/2.7.0 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2020-04-01 + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\"\ + ,\n \"location\": \"canadacentral\",\n \"name\": \"cliakstest000002\",\n\ + \ \"type\": \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\"\ + : {\n \"provisioningState\": \"Creating\",\n \"kubernetesVersion\": \"\ + 1.15.11\",\n \"dnsPrefix\": \"cliakstest-clitestk2in5hptv-8ecadf\",\n \ + \ \"fqdn\": \"cliakstest-clitestk2in5hptv-8ecadf-1ae94b14.hcp.canadacentral.azmk8s.io\"\ + ,\n \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \ + \ \"count\": 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\"\ + : 128,\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\"\ + ,\n \"provisioningState\": \"Creating\",\n \"orchestratorVersion\"\ + : \"1.15.11\",\n \"enableNodePublicIP\": false,\n \"nodeLabels\":\ + \ {},\n \"mode\": \"System\",\n \"osType\": \"Linux\"\n }\n ],\n\ + \ \"linuxProfile\": {\n \"adminUsername\": \"azureuser\",\n \"ssh\"\ + : {\n \"publicKeys\": [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCpjMMxo6YidpgcxNuptFFZffNPTzBZgvdc9LcmKcfNG3o5FmW6MX8Aej848hN6wAHHicQwzQxzkNhO7zj3EMho0WuDC1d9D9aknZcp+K58tmeh21ZVlULntonv2q7VFkg+j9OJ8UY5QczvAx9ClsbXmI4gpWjc/N7XNm00DipBzfBbyMe9mWI0vl0kpmSltLGDQRbr8H6njD8uWjcTaXYC7Ysx3gdsSES54H3W0IcqqeiPWifbIO/zPr429B4pZKo5/2xkF5m4ez3UKv8ivU9LBAL6mW7np1j0G57L1Q62XJWSyG7JEMQWP4SLlZ7GBBFCPuPEqd3w6WqxUyr0R/+V\"\ + \n }\n ]\n }\n },\n \"servicePrincipalProfile\": {\n \"\ + clientId\": \"c6d9cfb8-35b5-4d65-890f-2e2846ba859a\"\n },\n \"addonProfiles\"\ + : {\n \"KubeDashboard\": {\n \"enabled\": true,\n \"config\": null\n\ + \ }\n },\n \"nodeResourceGroup\": \"MC_clitest000001_cliakstest000002_canadacentral\"\ + ,\n \"enableRBAC\": true,\n \"enablePodSecurityPolicy\": false,\n \"\ + networkProfile\": {\n \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\"\ + : \"standard\",\n \"loadBalancerProfile\": {\n \"managedOutboundIPs\"\ + : {\n \"count\": 1\n }\n },\n \"podCidr\": \"10.244.0.0/16\"\ + ,\n \"serviceCidr\": \"10.0.0.0/16\",\n \"dnsServiceIP\": \"10.0.0.10\"\ + ,\n \"dockerBridgeCidr\": \"172.17.0.1/16\",\n \"outboundType\": \"\ + loadBalancer\"\n },\n \"aadProfile\": {\n \"adminGroupObjectIDs\":\ + \ null,\n \"clientAppID\": \"00000000-0000-0000-0000-000000000002\",\n\ + \ \"serverAppID\": \"00000000-0000-0000-0000-000000000001\",\n \"tenantID\"\ + : \"d5b55040-0c14-48cc-a028-91457fc190d9\"\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/canadacentral/operations/2a206004-ac90-4899-b749-9df6bf33ffca?api-version=2016-03-30 + cache-control: + - no-cache + content-length: + - '2433' + content-type: + - application/json + date: + - Sat, 20 Jun 2020 11:39: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: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --vm-set-type -c --aad-server-app-id --aad-server-app-secret + --aad-client-app-id --aad-tenant-id -o + User-Agent: + - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.16 + msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.3 Azure-SDK-For-Python + AZURECLI/2.7.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/canadacentral/operations/2a206004-ac90-4899-b749-9df6bf33ffca?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"0460202a-90ac-9948-b749-9df6bf33ffca\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2020-06-20T11:39:04.2937992Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Sat, 20 Jun 2020 11:39:34 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --vm-set-type -c --aad-server-app-id --aad-server-app-secret + --aad-client-app-id --aad-tenant-id -o + User-Agent: + - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.16 + msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.3 Azure-SDK-For-Python + AZURECLI/2.7.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/canadacentral/operations/2a206004-ac90-4899-b749-9df6bf33ffca?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"0460202a-90ac-9948-b749-9df6bf33ffca\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2020-06-20T11:39:04.2937992Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Sat, 20 Jun 2020 11:40:05 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 --vm-set-type -c --aad-server-app-id --aad-server-app-secret + --aad-client-app-id --aad-tenant-id -o + User-Agent: + - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.16 + msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.3 Azure-SDK-For-Python + AZURECLI/2.7.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/canadacentral/operations/2a206004-ac90-4899-b749-9df6bf33ffca?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"0460202a-90ac-9948-b749-9df6bf33ffca\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2020-06-20T11:39:04.2937992Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Sat, 20 Jun 2020 11:40:35 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 --vm-set-type -c --aad-server-app-id --aad-server-app-secret + --aad-client-app-id --aad-tenant-id -o + User-Agent: + - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.16 + msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.3 Azure-SDK-For-Python + AZURECLI/2.7.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/canadacentral/operations/2a206004-ac90-4899-b749-9df6bf33ffca?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"0460202a-90ac-9948-b749-9df6bf33ffca\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2020-06-20T11:39:04.2937992Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Sat, 20 Jun 2020 11:41:05 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 --vm-set-type -c --aad-server-app-id --aad-server-app-secret + --aad-client-app-id --aad-tenant-id -o + User-Agent: + - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.16 + msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.3 Azure-SDK-For-Python + AZURECLI/2.7.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/canadacentral/operations/2a206004-ac90-4899-b749-9df6bf33ffca?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"0460202a-90ac-9948-b749-9df6bf33ffca\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2020-06-20T11:39:04.2937992Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Sat, 20 Jun 2020 11:41:35 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 --vm-set-type -c --aad-server-app-id --aad-server-app-secret + --aad-client-app-id --aad-tenant-id -o + User-Agent: + - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.16 + msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.3 Azure-SDK-For-Python + AZURECLI/2.7.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/canadacentral/operations/2a206004-ac90-4899-b749-9df6bf33ffca?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"0460202a-90ac-9948-b749-9df6bf33ffca\",\n \"status\"\ + : \"Succeeded\",\n \"startTime\": \"2020-06-20T11:39:04.2937992Z\",\n \"\ + endTime\": \"2020-06-20T11:42:06.5485641Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '170' + content-type: + - application/json + date: + - Sat, 20 Jun 2020 11:42:06 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --vm-set-type -c --aad-server-app-id --aad-server-app-secret + --aad-client-app-id --aad-tenant-id -o + User-Agent: + - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.16 + msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.3 Azure-SDK-For-Python + AZURECLI/2.7.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2020-04-01 + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\"\ + ,\n \"location\": \"canadacentral\",\n \"name\": \"cliakstest000002\",\n\ + \ \"type\": \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\"\ + : {\n \"provisioningState\": \"Succeeded\",\n \"kubernetesVersion\": \"\ + 1.15.11\",\n \"dnsPrefix\": \"cliakstest-clitestk2in5hptv-8ecadf\",\n \ + \ \"fqdn\": \"cliakstest-clitestk2in5hptv-8ecadf-1ae94b14.hcp.canadacentral.azmk8s.io\"\ + ,\n \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \ + \ \"count\": 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\"\ + : 128,\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\"\ + ,\n \"provisioningState\": \"Succeeded\",\n \"orchestratorVersion\"\ + : \"1.15.11\",\n \"enableNodePublicIP\": false,\n \"nodeLabels\":\ + \ {},\n \"mode\": \"System\",\n \"osType\": \"Linux\",\n \"nodeImageVersion\"\ + : \"AKSUbuntu-1604-2020.06.10\"\n }\n ],\n \"linuxProfile\": {\n \ + \ \"adminUsername\": \"azureuser\",\n \"ssh\": {\n \"publicKeys\"\ + : [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCpjMMxo6YidpgcxNuptFFZffNPTzBZgvdc9LcmKcfNG3o5FmW6MX8Aej848hN6wAHHicQwzQxzkNhO7zj3EMho0WuDC1d9D9aknZcp+K58tmeh21ZVlULntonv2q7VFkg+j9OJ8UY5QczvAx9ClsbXmI4gpWjc/N7XNm00DipBzfBbyMe9mWI0vl0kpmSltLGDQRbr8H6njD8uWjcTaXYC7Ysx3gdsSES54H3W0IcqqeiPWifbIO/zPr429B4pZKo5/2xkF5m4ez3UKv8ivU9LBAL6mW7np1j0G57L1Q62XJWSyG7JEMQWP4SLlZ7GBBFCPuPEqd3w6WqxUyr0R/+V\"\ + \n }\n ]\n }\n },\n \"servicePrincipalProfile\": {\n \"\ + clientId\": \"c6d9cfb8-35b5-4d65-890f-2e2846ba859a\"\n },\n \"addonProfiles\"\ + : {\n \"KubeDashboard\": {\n \"enabled\": true,\n \"config\": null\n\ + \ }\n },\n \"nodeResourceGroup\": \"MC_clitest000001_cliakstest000002_canadacentral\"\ + ,\n \"enableRBAC\": true,\n \"enablePodSecurityPolicy\": false,\n \"\ + networkProfile\": {\n \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\"\ + : \"Standard\",\n \"loadBalancerProfile\": {\n \"managedOutboundIPs\"\ + : {\n \"count\": 1\n },\n \"effectiveOutboundIPs\": [\n \ + \ {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_canadacentral/providers/Microsoft.Network/publicIPAddresses/b29ef30d-7b11-40ef-8729-6893c317dd1c\"\ + \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 \"\ + aadProfile\": {\n \"adminGroupObjectIDs\": null,\n \"clientAppID\":\ + \ \"00000000-0000-0000-0000-000000000002\",\n \"serverAppID\": \"00000000-0000-0000-0000-000000000001\"\ + ,\n \"tenantID\": \"d5b55040-0c14-48cc-a028-91457fc190d9\"\n },\n \"\ + maxAgentPools\": 100\n },\n \"sku\": {\n \"name\": \"Basic\",\n \"tier\"\ + : \"Free\"\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '2761' + content-type: + - application/json + date: + - Sat, 20 Jun 2020 11:42:06 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --enable-aad --aad-admin-group-object-ids --aad-tenant-id + -o + User-Agent: + - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.16 + msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.3 Azure-SDK-For-Python + AZURECLI/2.7.0 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2020-04-01 + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\"\ + ,\n \"location\": \"canadacentral\",\n \"name\": \"cliakstest000002\",\n\ + \ \"type\": \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\"\ + : {\n \"provisioningState\": \"Succeeded\",\n \"kubernetesVersion\": \"\ + 1.15.11\",\n \"dnsPrefix\": \"cliakstest-clitestk2in5hptv-8ecadf\",\n \ + \ \"fqdn\": \"cliakstest-clitestk2in5hptv-8ecadf-1ae94b14.hcp.canadacentral.azmk8s.io\"\ + ,\n \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \ + \ \"count\": 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\"\ + : 128,\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\"\ + ,\n \"provisioningState\": \"Succeeded\",\n \"orchestratorVersion\"\ + : \"1.15.11\",\n \"enableNodePublicIP\": false,\n \"nodeLabels\":\ + \ {},\n \"mode\": \"System\",\n \"osType\": \"Linux\",\n \"nodeImageVersion\"\ + : \"AKSUbuntu-1604-2020.06.10\"\n }\n ],\n \"linuxProfile\": {\n \ + \ \"adminUsername\": \"azureuser\",\n \"ssh\": {\n \"publicKeys\"\ + : [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCpjMMxo6YidpgcxNuptFFZffNPTzBZgvdc9LcmKcfNG3o5FmW6MX8Aej848hN6wAHHicQwzQxzkNhO7zj3EMho0WuDC1d9D9aknZcp+K58tmeh21ZVlULntonv2q7VFkg+j9OJ8UY5QczvAx9ClsbXmI4gpWjc/N7XNm00DipBzfBbyMe9mWI0vl0kpmSltLGDQRbr8H6njD8uWjcTaXYC7Ysx3gdsSES54H3W0IcqqeiPWifbIO/zPr429B4pZKo5/2xkF5m4ez3UKv8ivU9LBAL6mW7np1j0G57L1Q62XJWSyG7JEMQWP4SLlZ7GBBFCPuPEqd3w6WqxUyr0R/+V\"\ + \n }\n ]\n }\n },\n \"servicePrincipalProfile\": {\n \"\ + clientId\": \"c6d9cfb8-35b5-4d65-890f-2e2846ba859a\"\n },\n \"addonProfiles\"\ + : {\n \"KubeDashboard\": {\n \"enabled\": true,\n \"config\": null\n\ + \ }\n },\n \"nodeResourceGroup\": \"MC_clitest000001_cliakstest000002_canadacentral\"\ + ,\n \"enableRBAC\": true,\n \"enablePodSecurityPolicy\": false,\n \"\ + networkProfile\": {\n \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\"\ + : \"Standard\",\n \"loadBalancerProfile\": {\n \"managedOutboundIPs\"\ + : {\n \"count\": 1\n },\n \"effectiveOutboundIPs\": [\n \ + \ {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_canadacentral/providers/Microsoft.Network/publicIPAddresses/b29ef30d-7b11-40ef-8729-6893c317dd1c\"\ + \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 \"\ + aadProfile\": {\n \"adminGroupObjectIDs\": null,\n \"clientAppID\":\ + \ \"00000000-0000-0000-0000-000000000002\",\n \"serverAppID\": \"00000000-0000-0000-0000-000000000001\"\ + ,\n \"tenantID\": \"d5b55040-0c14-48cc-a028-91457fc190d9\"\n },\n \"\ + maxAgentPools\": 100\n },\n \"sku\": {\n \"name\": \"Basic\",\n \"tier\"\ + : \"Free\"\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '2761' + content-type: + - application/json + date: + - Sat, 20 Jun 2020 11:42:10 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: 'b''{"location": "canadacentral", "properties": {"kubernetesVersion": "1.15.11", + "dnsPrefix": "cliakstest-clitestk2in5hptv-8ecadf", "agentPoolProfiles": [{"count": + 1, "vmSize": "Standard_DS2_v2", "osDiskSizeGB": 128, "maxPods": 110, "osType": + "Linux", "type": "VirtualMachineScaleSets", "mode": "System", "orchestratorVersion": + "1.15.11", "nodeImageVersion": "AKSUbuntu-1604-2020.06.10", "enableNodePublicIP": + false, "nodeLabels": {}, "name": "nodepool1"}], "linuxProfile": {"adminUsername": + "azureuser", "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCpjMMxo6YidpgcxNuptFFZffNPTzBZgvdc9LcmKcfNG3o5FmW6MX8Aej848hN6wAHHicQwzQxzkNhO7zj3EMho0WuDC1d9D9aknZcp+K58tmeh21ZVlULntonv2q7VFkg+j9OJ8UY5QczvAx9ClsbXmI4gpWjc/N7XNm00DipBzfBbyMe9mWI0vl0kpmSltLGDQRbr8H6njD8uWjcTaXYC7Ysx3gdsSES54H3W0IcqqeiPWifbIO/zPr429B4pZKo5/2xkF5m4ez3UKv8ivU9LBAL6mW7np1j0G57L1Q62XJWSyG7JEMQWP4SLlZ7GBBFCPuPEqd3w6WqxUyr0R/+V"}]}}, + "servicePrincipalProfile": {"clientId": "c6d9cfb8-35b5-4d65-890f-2e2846ba859a"}, + "addonProfiles": {"KubeDashboard": {"enabled": true}}, "nodeResourceGroup": + "MC_clitest000001_cliakstest000002_canadacentral", "enableRBAC": true, "enablePodSecurityPolicy": + false, "networkProfile": {"networkPlugin": "kubenet", "podCidr": "10.244.0.0/16", + "serviceCidr": "10.0.0.0/16", "dnsServiceIP": "10.0.0.10", "dockerBridgeCidr": + "172.17.0.1/16", "outboundType": "loadBalancer", "loadBalancerSku": "Standard", + "loadBalancerProfile": {"managedOutboundIPs": {"count": 1}, "effectiveOutboundIPs": + [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_canadacentral/providers/Microsoft.Network/publicIPAddresses/b29ef30d-7b11-40ef-8729-6893c317dd1c"}]}}, + "aadProfile": {"managed": true, "adminGroupObjectIDs": ["00000000-0000-0000-0000-000000000003"], + "tenantID": "00000000-0000-0000-0000-000000000004"}}, "sku": {"name": "Basic", + "tier": "Free"}}''' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + Content-Length: + - '1917' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --resource-group --name --enable-aad --aad-admin-group-object-ids --aad-tenant-id + -o + User-Agent: + - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.16 + msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.3 Azure-SDK-For-Python + AZURECLI/2.7.0 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2020-04-01 + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\"\ + ,\n \"location\": \"canadacentral\",\n \"name\": \"cliakstest000002\",\n\ + \ \"type\": \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\"\ + : {\n \"provisioningState\": \"Updating\",\n \"kubernetesVersion\": \"\ + 1.15.11\",\n \"dnsPrefix\": \"cliakstest-clitestk2in5hptv-8ecadf\",\n \ + \ \"fqdn\": \"cliakstest-clitestk2in5hptv-8ecadf-1ae94b14.hcp.canadacentral.azmk8s.io\"\ + ,\n \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \ + \ \"count\": 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\"\ + : 128,\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\"\ + ,\n \"provisioningState\": \"Updating\",\n \"orchestratorVersion\"\ + : \"1.15.11\",\n \"enableNodePublicIP\": false,\n \"nodeLabels\":\ + \ {},\n \"mode\": \"System\",\n \"osType\": \"Linux\",\n \"nodeImageVersion\"\ + : \"AKSUbuntu-1604-2020.06.10\"\n }\n ],\n \"linuxProfile\": {\n \ + \ \"adminUsername\": \"azureuser\",\n \"ssh\": {\n \"publicKeys\"\ + : [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCpjMMxo6YidpgcxNuptFFZffNPTzBZgvdc9LcmKcfNG3o5FmW6MX8Aej848hN6wAHHicQwzQxzkNhO7zj3EMho0WuDC1d9D9aknZcp+K58tmeh21ZVlULntonv2q7VFkg+j9OJ8UY5QczvAx9ClsbXmI4gpWjc/N7XNm00DipBzfBbyMe9mWI0vl0kpmSltLGDQRbr8H6njD8uWjcTaXYC7Ysx3gdsSES54H3W0IcqqeiPWifbIO/zPr429B4pZKo5/2xkF5m4ez3UKv8ivU9LBAL6mW7np1j0G57L1Q62XJWSyG7JEMQWP4SLlZ7GBBFCPuPEqd3w6WqxUyr0R/+V\"\ + \n }\n ]\n }\n },\n \"servicePrincipalProfile\": {\n \"\ + clientId\": \"c6d9cfb8-35b5-4d65-890f-2e2846ba859a\"\n },\n \"addonProfiles\"\ + : {\n \"KubeDashboard\": {\n \"enabled\": true,\n \"config\": null\n\ + \ }\n },\n \"nodeResourceGroup\": \"MC_clitest000001_cliakstest000002_canadacentral\"\ + ,\n \"enableRBAC\": true,\n \"enablePodSecurityPolicy\": false,\n \"\ + networkProfile\": {\n \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\"\ + : \"Standard\",\n \"loadBalancerProfile\": {\n \"managedOutboundIPs\"\ + : {\n \"count\": 1\n },\n \"effectiveOutboundIPs\": [\n \ + \ {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_canadacentral/providers/Microsoft.Network/publicIPAddresses/b29ef30d-7b11-40ef-8729-6893c317dd1c\"\ + \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 \"\ + aadProfile\": {\n \"managed\": true,\n \"adminGroupObjectIDs\": [\n\ + \ \"00000000-0000-0000-0000-000000000003\"\n ],\n \"tenantID\":\ + \ \"00000000-0000-0000-0000-000000000004\"\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/canadacentral/operations/46712567-0b64-4e88-836a-206a7b462e22?api-version=2016-03-30 + cache-control: + - no-cache + content-length: + - '2709' + content-type: + - application/json + date: + - Sat, 20 Jun 2020 11:42:14 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-aad --aad-admin-group-object-ids --aad-tenant-id + -o + User-Agent: + - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.16 + msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.3 Azure-SDK-For-Python + AZURECLI/2.7.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/canadacentral/operations/46712567-0b64-4e88-836a-206a7b462e22?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"67257146-640b-884e-836a-206a7b462e22\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2020-06-20T11:42:13.940534Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '125' + content-type: + - application/json + date: + - Sat, 20 Jun 2020 11:42:44 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-aad --aad-admin-group-object-ids --aad-tenant-id + -o + User-Agent: + - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.16 + msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.3 Azure-SDK-For-Python + AZURECLI/2.7.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/canadacentral/operations/46712567-0b64-4e88-836a-206a7b462e22?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"67257146-640b-884e-836a-206a7b462e22\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2020-06-20T11:42:13.940534Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '125' + content-type: + - application/json + date: + - Sat, 20 Jun 2020 11:43:14 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-aad --aad-admin-group-object-ids --aad-tenant-id + -o + User-Agent: + - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.16 + msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.3 Azure-SDK-For-Python + AZURECLI/2.7.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/canadacentral/operations/46712567-0b64-4e88-836a-206a7b462e22?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"67257146-640b-884e-836a-206a7b462e22\",\n \"status\"\ + : \"Succeeded\",\n \"startTime\": \"2020-06-20T11:42:13.940534Z\",\n \"\ + endTime\": \"2020-06-20T11:43:40.8523709Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '169' + content-type: + - application/json + date: + - Sat, 20 Jun 2020 11:43:45 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-aad --aad-admin-group-object-ids --aad-tenant-id + -o + User-Agent: + - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.16 + msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.3 Azure-SDK-For-Python + AZURECLI/2.7.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2020-04-01 + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\"\ + ,\n \"location\": \"canadacentral\",\n \"name\": \"cliakstest000002\",\n\ + \ \"type\": \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\"\ + : {\n \"provisioningState\": \"Succeeded\",\n \"kubernetesVersion\": \"\ + 1.15.11\",\n \"dnsPrefix\": \"cliakstest-clitestk2in5hptv-8ecadf\",\n \ + \ \"fqdn\": \"cliakstest-clitestk2in5hptv-8ecadf-1ae94b14.hcp.canadacentral.azmk8s.io\"\ + ,\n \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \ + \ \"count\": 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\"\ + : 128,\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\"\ + ,\n \"provisioningState\": \"Succeeded\",\n \"orchestratorVersion\"\ + : \"1.15.11\",\n \"enableNodePublicIP\": false,\n \"nodeLabels\":\ + \ {},\n \"mode\": \"System\",\n \"osType\": \"Linux\",\n \"nodeImageVersion\"\ + : \"AKSUbuntu-1604-2020.06.10\"\n }\n ],\n \"linuxProfile\": {\n \ + \ \"adminUsername\": \"azureuser\",\n \"ssh\": {\n \"publicKeys\"\ + : [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCpjMMxo6YidpgcxNuptFFZffNPTzBZgvdc9LcmKcfNG3o5FmW6MX8Aej848hN6wAHHicQwzQxzkNhO7zj3EMho0WuDC1d9D9aknZcp+K58tmeh21ZVlULntonv2q7VFkg+j9OJ8UY5QczvAx9ClsbXmI4gpWjc/N7XNm00DipBzfBbyMe9mWI0vl0kpmSltLGDQRbr8H6njD8uWjcTaXYC7Ysx3gdsSES54H3W0IcqqeiPWifbIO/zPr429B4pZKo5/2xkF5m4ez3UKv8ivU9LBAL6mW7np1j0G57L1Q62XJWSyG7JEMQWP4SLlZ7GBBFCPuPEqd3w6WqxUyr0R/+V\"\ + \n }\n ]\n }\n },\n \"servicePrincipalProfile\": {\n \"\ + clientId\": \"c6d9cfb8-35b5-4d65-890f-2e2846ba859a\"\n },\n \"addonProfiles\"\ + : {\n \"KubeDashboard\": {\n \"enabled\": true,\n \"config\": null\n\ + \ }\n },\n \"nodeResourceGroup\": \"MC_clitest000001_cliakstest000002_canadacentral\"\ + ,\n \"enableRBAC\": true,\n \"enablePodSecurityPolicy\": false,\n \"\ + networkProfile\": {\n \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\"\ + : \"Standard\",\n \"loadBalancerProfile\": {\n \"managedOutboundIPs\"\ + : {\n \"count\": 1\n },\n \"effectiveOutboundIPs\": [\n \ + \ {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_canadacentral/providers/Microsoft.Network/publicIPAddresses/b29ef30d-7b11-40ef-8729-6893c317dd1c\"\ + \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 \"\ + aadProfile\": {\n \"managed\": true,\n \"adminGroupObjectIDs\": [\n\ + \ \"00000000-0000-0000-0000-000000000003\"\n ],\n \"tenantID\":\ + \ \"00000000-0000-0000-0000-000000000004\"\n },\n \"maxAgentPools\": 100\n\ + \ },\n \"sku\": {\n \"name\": \"Basic\",\n \"tier\": \"Free\"\n }\n\ + \ }" + headers: + cache-control: + - no-cache + content-length: + - '2711' + content-type: + - application/json + date: + - Sat, 20 Jun 2020 11:43:46 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 +version: 1 diff --git a/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_and_update_with_managed_aad.yaml b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_and_update_with_managed_aad.yaml index c8267540c55..d80c1a114d7 100644 --- a/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_and_update_with_managed_aad.yaml +++ b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_and_update_with_managed_aad.yaml @@ -52,8 +52,8 @@ interactions: "enableNodePublicIP": false, "scaleSetPriority": "Regular", "scaleSetEvictionPolicy": "Delete", "name": "nodepool1"}], "linuxProfile": {"adminUsername": "azureuser", "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDiOFgDVZSitF+jMxvBpJmYO8ReNVZMG+n996WvKxFfaR9903Zykxrvu7RUqdpZZ0hzzueeLJPJpiGxvk8ur4vnkXJkX7H8fvZZw6EI5PhuD76xXXRdXp9I2dH91oTqJ0Ne/s01K2PcJC+SzkU+icGLsIqP47QVoBL+H1nMapzcZVYYXzPd2u1bJZbGgJZSxEOJenybNY/1qhJGIEhMqLPXcz8QDuqLMrz3WMGLmfwv5SMTzd9ejfRAJ85RXeciTSjUtT37HUDafiql3JxhrrbUkgyuoVMztGp6DvTHb0XKDS06su1jBxQpGuquCKcpJNIa7Z3pJmWSM/b7VahsHzWP - pmiller@gmail.com\n"}]}}, "servicePrincipalProfile": {"clientId": "709e9be8-2b36-441f-81b5-16bd257fb5cb", - "secret": "b39ff07ddb2703825634$"}, "addonProfiles": {}, "enableRBAC": true, + pmiller@gmail.com\n"}]}}, "servicePrincipalProfile": {"clientId": "", + "secret": ""}, "addonProfiles": {}, "enableRBAC": true, "enablePodSecurityPolicy": false, "networkProfile": {"networkPlugin": "kubenet", "podCidr": "10.244.0.0/16", "serviceCidr": "10.0.0.0/16", "dnsServiceIP": "10.0.0.10", "dockerBridgeCidr": "172.17.0.1/16", "outboundType": "loadBalancer", "loadBalancerSku": diff --git a/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_nonaad_and_update_with_managed_aad.yaml b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_nonaad_and_update_with_managed_aad.yaml new file mode 100644 index 00000000000..106272e387b --- /dev/null +++ b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_nonaad_and_update_with_managed_aad.yaml @@ -0,0 +1,587 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --vm-set-type -c -o + User-Agent: + - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.16 + msrest_azure/0.6.3 azure-mgmt-resource/9.0.0 Azure-SDK-For-Python AZURECLI/2.7.0 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001?api-version=2019-07-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001","name":"clitest000001","type":"Microsoft.Resources/resourceGroups","location":"westcentralus","tags":{"product":"azurecli","cause":"automation","date":"2020-06-17T05:33:03Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '319' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 17 Jun 2020 05:33:06 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": "westcentralus", "properties": {"kubernetesVersion": "", "dnsPrefix": + "cliakstest-clitestnykit3b6a-8ecadf", "agentPoolProfiles": [{"count": 1, "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 AAAAB3NzaC1yc2EAAAADAQABAAABAQCpjMMxo6YidpgcxNuptFFZffNPTzBZgvdc9LcmKcfNG3o5FmW6MX8Aej848hN6wAHHicQwzQxzkNhO7zj3EMho0WuDC1d9D9aknZcp+K58tmeh21ZVlULntonv2q7VFkg+j9OJ8UY5QczvAx9ClsbXmI4gpWjc/N7XNm00DipBzfBbyMe9mWI0vl0kpmSltLGDQRbr8H6njD8uWjcTaXYC7Ysx3gdsSES54H3W0IcqqeiPWifbIO/zPr429B4pZKo5/2xkF5m4ez3UKv8ivU9LBAL6mW7np1j0G57L1Q62XJWSyG7JEMQWP4SLlZ7GBBFCPuPEqd3w6WqxUyr0R/+V"}]}}, + "servicePrincipalProfile": {"clientId": "", + "secret": ""}, "addonProfiles": {}, "enableRBAC": true, + "enablePodSecurityPolicy": false, "networkProfile": {"networkPlugin": "kubenet", + "podCidr": "10.244.0.0/16", "serviceCidr": "10.0.0.0/16", "dnsServiceIP": "10.0.0.10", + "dockerBridgeCidr": "172.17.0.1/16", "outboundType": "loadBalancer", "loadBalancerSku": + "standard"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '1272' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --resource-group --name --vm-set-type -c -o + User-Agent: + - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.16 + msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.3 Azure-SDK-For-Python + AZURECLI/2.7.0 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2020-04-01 + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\"\ + ,\n \"location\": \"westcentralus\",\n \"name\": \"cliakstest000002\",\n\ + \ \"type\": \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\"\ + : {\n \"provisioningState\": \"Creating\",\n \"kubernetesVersion\": \"\ + 1.15.11\",\n \"dnsPrefix\": \"cliakstest-clitestnykit3b6a-8ecadf\",\n \ + \ \"fqdn\": \"cliakstest-clitestnykit3b6a-8ecadf-5eb0349a.hcp.westcentralus.azmk8s.io\"\ + ,\n \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \ + \ \"count\": 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\"\ + : 128,\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\"\ + ,\n \"provisioningState\": \"Creating\",\n \"orchestratorVersion\"\ + : \"1.15.11\",\n \"enableNodePublicIP\": false,\n \"nodeLabels\":\ + \ {},\n \"mode\": \"System\",\n \"osType\": \"Linux\"\n }\n ],\n\ + \ \"linuxProfile\": {\n \"adminUsername\": \"azureuser\",\n \"ssh\"\ + : {\n \"publicKeys\": [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCpjMMxo6YidpgcxNuptFFZffNPTzBZgvdc9LcmKcfNG3o5FmW6MX8Aej848hN6wAHHicQwzQxzkNhO7zj3EMho0WuDC1d9D9aknZcp+K58tmeh21ZVlULntonv2q7VFkg+j9OJ8UY5QczvAx9ClsbXmI4gpWjc/N7XNm00DipBzfBbyMe9mWI0vl0kpmSltLGDQRbr8H6njD8uWjcTaXYC7Ysx3gdsSES54H3W0IcqqeiPWifbIO/zPr429B4pZKo5/2xkF5m4ez3UKv8ivU9LBAL6mW7np1j0G57L1Q62XJWSyG7JEMQWP4SLlZ7GBBFCPuPEqd3w6WqxUyr0R/+V\"\ + \n }\n ]\n }\n },\n \"servicePrincipalProfile\": {\n \"\ + clientId\": \"c6d9cfb8-35b5-4d65-890f-2e2846ba859a\"\n },\n \"addonProfiles\"\ + : {\n \"KubeDashboard\": {\n \"enabled\": true,\n \"config\": null\n\ + \ }\n },\n \"nodeResourceGroup\": \"MC_clitest000001_cliakstest000002_westcentralus\"\ + ,\n \"enableRBAC\": true,\n \"enablePodSecurityPolicy\": false,\n \"\ + networkProfile\": {\n \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\"\ + : \"standard\",\n \"loadBalancerProfile\": {\n \"managedOutboundIPs\"\ + : {\n \"count\": 1\n }\n },\n \"podCidr\": \"10.244.0.0/16\"\ + ,\n \"serviceCidr\": \"10.0.0.0/16\",\n \"dnsServiceIP\": \"10.0.0.10\"\ + ,\n \"dockerBridgeCidr\": \"172.17.0.1/16\",\n \"outboundType\": \"\ + loadBalancer\"\n },\n \"maxAgentPools\": 100\n },\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/westcentralus/operations/2869161a-3cb1-4e61-97ae-693caa77c25c?api-version=2016-03-30 + cache-control: + - no-cache + content-length: + - '2202' + content-type: + - application/json + date: + - Wed, 17 Jun 2020 05:33: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: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --vm-set-type -c -o + User-Agent: + - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.16 + msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.3 Azure-SDK-For-Python + AZURECLI/2.7.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westcentralus/operations/2869161a-3cb1-4e61-97ae-693caa77c25c?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"1a166928-b13c-614e-97ae-693caa77c25c\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2020-06-17T05:33:13.3829724Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 17 Jun 2020 05:33: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 --vm-set-type -c -o + User-Agent: + - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.16 + msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.3 Azure-SDK-For-Python + AZURECLI/2.7.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westcentralus/operations/2869161a-3cb1-4e61-97ae-693caa77c25c?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"1a166928-b13c-614e-97ae-693caa77c25c\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2020-06-17T05:33:13.3829724Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 17 Jun 2020 05:34:14 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 --vm-set-type -c -o + User-Agent: + - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.16 + msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.3 Azure-SDK-For-Python + AZURECLI/2.7.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westcentralus/operations/2869161a-3cb1-4e61-97ae-693caa77c25c?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"1a166928-b13c-614e-97ae-693caa77c25c\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2020-06-17T05:33:13.3829724Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 17 Jun 2020 05:34:44 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 --vm-set-type -c -o + User-Agent: + - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.16 + msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.3 Azure-SDK-For-Python + AZURECLI/2.7.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westcentralus/operations/2869161a-3cb1-4e61-97ae-693caa77c25c?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"1a166928-b13c-614e-97ae-693caa77c25c\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2020-06-17T05:33:13.3829724Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 17 Jun 2020 05:35: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: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --vm-set-type -c -o + User-Agent: + - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.16 + msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.3 Azure-SDK-For-Python + AZURECLI/2.7.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westcentralus/operations/2869161a-3cb1-4e61-97ae-693caa77c25c?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"1a166928-b13c-614e-97ae-693caa77c25c\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2020-06-17T05:33:13.3829724Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 17 Jun 2020 05:35:44 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 --vm-set-type -c -o + User-Agent: + - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.16 + msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.3 Azure-SDK-For-Python + AZURECLI/2.7.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westcentralus/operations/2869161a-3cb1-4e61-97ae-693caa77c25c?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"1a166928-b13c-614e-97ae-693caa77c25c\",\n \"status\"\ + : \"Succeeded\",\n \"startTime\": \"2020-06-17T05:33:13.3829724Z\",\n \"\ + endTime\": \"2020-06-17T05:36:01.4799952Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '170' + content-type: + - application/json + date: + - Wed, 17 Jun 2020 05:36:17 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 --vm-set-type -c -o + User-Agent: + - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.16 + msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.3 Azure-SDK-For-Python + AZURECLI/2.7.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2020-04-01 + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\"\ + ,\n \"location\": \"westcentralus\",\n \"name\": \"cliakstest000002\",\n\ + \ \"type\": \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\"\ + : {\n \"provisioningState\": \"Succeeded\",\n \"kubernetesVersion\": \"\ + 1.15.11\",\n \"dnsPrefix\": \"cliakstest-clitestnykit3b6a-8ecadf\",\n \ + \ \"fqdn\": \"cliakstest-clitestnykit3b6a-8ecadf-5eb0349a.hcp.westcentralus.azmk8s.io\"\ + ,\n \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \ + \ \"count\": 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\"\ + : 128,\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\"\ + ,\n \"provisioningState\": \"Succeeded\",\n \"orchestratorVersion\"\ + : \"1.15.11\",\n \"enableNodePublicIP\": false,\n \"nodeLabels\":\ + \ {},\n \"mode\": \"System\",\n \"osType\": \"Linux\",\n \"nodeImageVersion\"\ + : \"AKSUbuntu-1604-2020.06.10\"\n }\n ],\n \"linuxProfile\": {\n \ + \ \"adminUsername\": \"azureuser\",\n \"ssh\": {\n \"publicKeys\"\ + : [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCpjMMxo6YidpgcxNuptFFZffNPTzBZgvdc9LcmKcfNG3o5FmW6MX8Aej848hN6wAHHicQwzQxzkNhO7zj3EMho0WuDC1d9D9aknZcp+K58tmeh21ZVlULntonv2q7VFkg+j9OJ8UY5QczvAx9ClsbXmI4gpWjc/N7XNm00DipBzfBbyMe9mWI0vl0kpmSltLGDQRbr8H6njD8uWjcTaXYC7Ysx3gdsSES54H3W0IcqqeiPWifbIO/zPr429B4pZKo5/2xkF5m4ez3UKv8ivU9LBAL6mW7np1j0G57L1Q62XJWSyG7JEMQWP4SLlZ7GBBFCPuPEqd3w6WqxUyr0R/+V\"\ + \n }\n ]\n }\n },\n \"servicePrincipalProfile\": {\n \"\ + clientId\": \"c6d9cfb8-35b5-4d65-890f-2e2846ba859a\"\n },\n \"addonProfiles\"\ + : {\n \"KubeDashboard\": {\n \"enabled\": true,\n \"config\": null\n\ + \ }\n },\n \"nodeResourceGroup\": \"MC_clitest000001_cliakstest000002_westcentralus\"\ + ,\n \"enableRBAC\": true,\n \"enablePodSecurityPolicy\": false,\n \"\ + networkProfile\": {\n \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\"\ + : \"Standard\",\n \"loadBalancerProfile\": {\n \"managedOutboundIPs\"\ + : {\n \"count\": 1\n },\n \"effectiveOutboundIPs\": [\n \ + \ {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_westcentralus/providers/Microsoft.Network/publicIPAddresses/01795ffb-e2d0-432d-8f76-bbdcc557ef31\"\ + \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: + - '2530' + content-type: + - application/json + date: + - Wed, 17 Jun 2020 05:36:18 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --enable-aad --aad-admin-group-object-ids --aad-tenant-id + -o + User-Agent: + - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.16 + msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.3 Azure-SDK-For-Python + AZURECLI/2.7.0 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2020-04-01 + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\"\ + ,\n \"location\": \"westcentralus\",\n \"name\": \"cliakstest000002\",\n\ + \ \"type\": \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\"\ + : {\n \"provisioningState\": \"Succeeded\",\n \"kubernetesVersion\": \"\ + 1.15.11\",\n \"dnsPrefix\": \"cliakstest-clitestnykit3b6a-8ecadf\",\n \ + \ \"fqdn\": \"cliakstest-clitestnykit3b6a-8ecadf-5eb0349a.hcp.westcentralus.azmk8s.io\"\ + ,\n \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \ + \ \"count\": 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\"\ + : 128,\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\"\ + ,\n \"provisioningState\": \"Succeeded\",\n \"orchestratorVersion\"\ + : \"1.15.11\",\n \"enableNodePublicIP\": false,\n \"nodeLabels\":\ + \ {},\n \"mode\": \"System\",\n \"osType\": \"Linux\",\n \"nodeImageVersion\"\ + : \"AKSUbuntu-1604-2020.06.10\"\n }\n ],\n \"linuxProfile\": {\n \ + \ \"adminUsername\": \"azureuser\",\n \"ssh\": {\n \"publicKeys\"\ + : [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCpjMMxo6YidpgcxNuptFFZffNPTzBZgvdc9LcmKcfNG3o5FmW6MX8Aej848hN6wAHHicQwzQxzkNhO7zj3EMho0WuDC1d9D9aknZcp+K58tmeh21ZVlULntonv2q7VFkg+j9OJ8UY5QczvAx9ClsbXmI4gpWjc/N7XNm00DipBzfBbyMe9mWI0vl0kpmSltLGDQRbr8H6njD8uWjcTaXYC7Ysx3gdsSES54H3W0IcqqeiPWifbIO/zPr429B4pZKo5/2xkF5m4ez3UKv8ivU9LBAL6mW7np1j0G57L1Q62XJWSyG7JEMQWP4SLlZ7GBBFCPuPEqd3w6WqxUyr0R/+V\"\ + \n }\n ]\n }\n },\n \"servicePrincipalProfile\": {\n \"\ + clientId\": \"c6d9cfb8-35b5-4d65-890f-2e2846ba859a\"\n },\n \"addonProfiles\"\ + : {\n \"KubeDashboard\": {\n \"enabled\": true,\n \"config\": null\n\ + \ }\n },\n \"nodeResourceGroup\": \"MC_clitest000001_cliakstest000002_westcentralus\"\ + ,\n \"enableRBAC\": true,\n \"enablePodSecurityPolicy\": false,\n \"\ + networkProfile\": {\n \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\"\ + : \"Standard\",\n \"loadBalancerProfile\": {\n \"managedOutboundIPs\"\ + : {\n \"count\": 1\n },\n \"effectiveOutboundIPs\": [\n \ + \ {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_westcentralus/providers/Microsoft.Network/publicIPAddresses/01795ffb-e2d0-432d-8f76-bbdcc557ef31\"\ + \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: + - '2530' + content-type: + - application/json + date: + - Wed, 17 Jun 2020 05:36:18 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +version: 1 diff --git a/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_with_ingress_appgw_addon.yaml b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_with_ingress_appgw_addon.yaml index dcd8244149a..be2c6a603df 100644 --- a/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_with_ingress_appgw_addon.yaml +++ b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_with_ingress_appgw_addon.yaml @@ -51,8 +51,8 @@ interactions: "System", "enableNodePublicIP": false, "scaleSetPriority": "Regular", "scaleSetEvictionPolicy": "Delete", "name": "nodepool1"}], "linuxProfile": {"adminUsername": "azureuser", "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDdabawEfwOujYnckZRvvkrcqoR+c2bLuoiOddqujUWHu+fBTEwDd8nB0vBemdGLNHmo7B3qpXyq9pcplUaGYzCmRZtnYy35UOtCinMqyT3mIJshJA1cIw70nFJbr2gvDl+XXtxmd59k5bWMUjzNdynurjhcA53b1fMHTFXSd5ugtbJ4SyZxPkNWxRtJ9Dg2RslMZ+3ZA9y8iAAMxnX85HpG1UMpwzvEM/jPoFd43UYB5TFZIRAcvlkZTQKaBtFW+Khg7Jx5C3iyPzSMAgDzS4WsJBCfABpJ8nnGzBEi/orhFydtkE/zsXOEMY8ppUpnBLN+LXD1gqWhEYRLF7atYd3 - vsonline@c541134d8e01\n"}]}}, "servicePrincipalProfile": {"clientId": "xxxx", - "secret": "yyyy"}, "addonProfiles": {"IngressApplicationGateway": + vsonline@c541134d8e01\n"}]}}, "servicePrincipalProfile": {"clientId": "", + "secret": ""}, "addonProfiles": {"IngressApplicationGateway": {"enabled": true, "config": {"subnetPrefix": "10.2.0.0/16"}}}, "enableRBAC": true, "enablePodSecurityPolicy": false, "networkProfile": {"networkPlugin": "kubenet", "podCidr": "10.244.0.0/16", "serviceCidr": "10.0.0.0/16", "dnsServiceIP": diff --git a/src/aks-preview/azext_aks_preview/tests/latest/test_aks_commands.py b/src/aks-preview/azext_aks_preview/tests/latest/test_aks_commands.py index 827de9a85e7..ef55ba7040f 100644 --- a/src/aks-preview/azext_aks_preview/tests/latest/test_aks_commands.py +++ b/src/aks-preview/azext_aks_preview/tests/latest/test_aks_commands.py @@ -31,7 +31,7 @@ def test_aks_create_and_update_with_managed_aad(self, resource_group, resource_g }) create_cmd = 'aks create --resource-group={resource_group} --name={name} ' \ - '--vm-set-type AvailabilitySet -c 1 ' \ + '--vm-set-type VirtualMachineScaleSets -c 1 ' \ '--enable-aad --aad-admin-group-object-ids 00000000-0000-0000-0000-000000000001 -o json' self.cmd(create_cmd, checks=[ self.check('provisioningState', 'Succeeded'), @@ -49,6 +49,66 @@ def test_aks_create_and_update_with_managed_aad(self, resource_group, resource_g self.check('aadProfile.tenantId', '00000000-0000-0000-0000-000000000003') ]) + @live_only() # without live only fails with needs .ssh fails (maybe generate-ssh-keys would fix) and maybe az login. + @AllowLargeResponse() + @ResourceGroupPreparer(random_name_length=17, name_prefix='clitest', location='canadacentral') + def test_aks_create_aadv1_and_update_with_managed_aad(self, resource_group, resource_group_location): + aks_name = self.create_random_name('cliakstest', 16) + self.kwargs.update({ + 'resource_group': resource_group, + 'name': aks_name + }) + + create_cmd = 'aks create --resource-group={resource_group} --name={name} ' \ + '--vm-set-type VirtualMachineScaleSets -c 1 ' \ + '--aad-server-app-id 00000000-0000-0000-0000-000000000001 ' \ + '--aad-server-app-secret fake-secret ' \ + '--aad-client-app-id 00000000-0000-0000-0000-000000000002 ' \ + '--aad-tenant-id d5b55040-0c14-48cc-a028-91457fc190d9 ' \ + '-o json' + self.cmd(create_cmd, checks=[ + self.check('provisioningState', 'Succeeded'), + self.check('aadProfile.managed', None), + self.check('aadProfile.serverAppId', '00000000-0000-0000-0000-000000000001'), + self.check('aadProfile.clientAppId', '00000000-0000-0000-0000-000000000002'), + self.check('aadProfile.tenantId', 'd5b55040-0c14-48cc-a028-91457fc190d9') + ]) + + update_cmd = 'aks update --resource-group={resource_group} --name={name} ' \ + '--enable-aad ' \ + '--aad-admin-group-object-ids 00000000-0000-0000-0000-000000000003 ' \ + '--aad-tenant-id 00000000-0000-0000-0000-000000000004 -o json' + self.cmd(update_cmd, checks=[ + self.check('provisioningState', 'Succeeded'), + self.check('aadProfile.managed', True), + self.check('aadProfile.adminGroupObjectIds[0]', '00000000-0000-0000-0000-000000000003'), + self.check('aadProfile.tenantId', '00000000-0000-0000-0000-000000000004') + ]) + + @live_only() # without live only fails with needs .ssh fails (maybe generate-ssh-keys would fix) and maybe az login. + @AllowLargeResponse() + @ResourceGroupPreparer(random_name_length=17, name_prefix='clitest', location='westus2') + def test_aks_create_nonaad_and_update_with_managed_aad(self, resource_group, resource_group_location): + aks_name = self.create_random_name('cliakstest', 16) + self.kwargs.update({ + 'resource_group': resource_group, + 'name': aks_name + }) + + create_cmd = 'aks create --resource-group={resource_group} --name={name} ' \ + '--vm-set-type VirtualMachineScaleSets -c 1 ' \ + '-o json' + self.cmd(create_cmd, checks=[ + self.check('provisioningState', 'Succeeded'), + self.check('aadProfile', None) + ]) + + update_cmd = 'aks update --resource-group={resource_group} --name={name} ' \ + '--enable-aad ' \ + '--aad-admin-group-object-ids 00000000-0000-0000-0000-000000000001 ' \ + '--aad-tenant-id 00000000-0000-0000-0000-000000000002 -o json' + self.cmd(update_cmd, expect_failure=True) + @AllowLargeResponse() @ResourceGroupPreparer(random_name_length=17, name_prefix='clitest', location='westus2') def test_aks_create_with_ingress_appgw_addon(self, resource_group, resource_group_location): diff --git a/src/aks-preview/setup.py b/src/aks-preview/setup.py index 7f8d9227d86..6e6ed2a26af 100644 --- a/src/aks-preview/setup.py +++ b/src/aks-preview/setup.py @@ -8,7 +8,7 @@ from codecs import open as open1 from setuptools import setup, find_packages -VERSION = "0.4.52" +VERSION = "0.4.53" CLASSIFIERS = [ 'Development Status :: 4 - Beta', 'Intended Audience :: Developers', From 6a50934442d60f1de185dbc469e7a7bd4fadc407 Mon Sep 17 00:00:00 2001 From: Bin Xia Date: Sat, 20 Jun 2020 12:16:07 +0000 Subject: [PATCH 2/4] update location for test_aks_create_nonaad_and_update_with_managed_aad --- ...te_nonaad_and_update_with_managed_aad.yaml | 143 ++++++++++++------ .../tests/latest/test_aks_commands.py | 2 +- 2 files changed, 97 insertions(+), 48 deletions(-) diff --git a/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_nonaad_and_update_with_managed_aad.yaml b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_nonaad_and_update_with_managed_aad.yaml index 106272e387b..9b16e040943 100644 --- a/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_nonaad_and_update_with_managed_aad.yaml +++ b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_nonaad_and_update_with_managed_aad.yaml @@ -21,7 +21,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001","name":"clitest000001","type":"Microsoft.Resources/resourceGroups","location":"westcentralus","tags":{"product":"azurecli","cause":"automation","date":"2020-06-17T05:33:03Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001","name":"clitest000001","type":"Microsoft.Resources/resourceGroups","location":"canadacentral","tags":{"product":"azurecli","cause":"automation","date":"2020-06-20T12:10:01Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 17 Jun 2020 05:33:06 GMT + - Sat, 20 Jun 2020 12:10:05 GMT expires: - '-1' pragma: @@ -45,8 +45,8 @@ interactions: code: 200 message: OK - request: - body: '{"location": "westcentralus", "properties": {"kubernetesVersion": "", "dnsPrefix": - "cliakstest-clitestnykit3b6a-8ecadf", "agentPoolProfiles": [{"count": 1, "vmSize": + body: '{"location": "canadacentral", "properties": {"kubernetesVersion": "", "dnsPrefix": + "cliakstest-clitest6tbu2hweu-8ecadf", "agentPoolProfiles": [{"count": 1, "vmSize": "Standard_DS2_v2", "osType": "Linux", "type": "VirtualMachineScaleSets", "mode": "System", "enableNodePublicIP": false, "scaleSetPriority": "Regular", "scaleSetEvictionPolicy": "Delete", "name": "nodepool1"}], "linuxProfile": {"adminUsername": "azureuser", @@ -83,11 +83,11 @@ interactions: response: body: string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\"\ - ,\n \"location\": \"westcentralus\",\n \"name\": \"cliakstest000002\",\n\ + ,\n \"location\": \"canadacentral\",\n \"name\": \"cliakstest000002\",\n\ \ \"type\": \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\"\ : {\n \"provisioningState\": \"Creating\",\n \"kubernetesVersion\": \"\ - 1.15.11\",\n \"dnsPrefix\": \"cliakstest-clitestnykit3b6a-8ecadf\",\n \ - \ \"fqdn\": \"cliakstest-clitestnykit3b6a-8ecadf-5eb0349a.hcp.westcentralus.azmk8s.io\"\ + 1.15.11\",\n \"dnsPrefix\": \"cliakstest-clitest6tbu2hweu-8ecadf\",\n \ + \ \"fqdn\": \"cliakstest-clitest6tbu2hweu-8ecadf-6f77d203.hcp.canadacentral.azmk8s.io\"\ ,\n \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \ \ \"count\": 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\"\ : 128,\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\"\ @@ -99,7 +99,7 @@ interactions: \n }\n ]\n }\n },\n \"servicePrincipalProfile\": {\n \"\ clientId\": \"c6d9cfb8-35b5-4d65-890f-2e2846ba859a\"\n },\n \"addonProfiles\"\ : {\n \"KubeDashboard\": {\n \"enabled\": true,\n \"config\": null\n\ - \ }\n },\n \"nodeResourceGroup\": \"MC_clitest000001_cliakstest000002_westcentralus\"\ + \ }\n },\n \"nodeResourceGroup\": \"MC_clitest000001_cliakstest000002_canadacentral\"\ ,\n \"enableRBAC\": true,\n \"enablePodSecurityPolicy\": false,\n \"\ networkProfile\": {\n \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\"\ : \"standard\",\n \"loadBalancerProfile\": {\n \"managedOutboundIPs\"\ @@ -110,7 +110,7 @@ interactions: name\": \"Basic\",\n \"tier\": \"Free\"\n }\n }" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westcentralus/operations/2869161a-3cb1-4e61-97ae-693caa77c25c?api-version=2016-03-30 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/canadacentral/operations/9cc21b4f-5a1e-44b1-804f-af1f192d1618?api-version=2016-03-30 cache-control: - no-cache content-length: @@ -118,7 +118,7 @@ interactions: content-type: - application/json date: - - Wed, 17 Jun 2020 05:33:13 GMT + - Sat, 20 Jun 2020 12:10:11 GMT expires: - '-1' pragma: @@ -152,11 +152,11 @@ interactions: msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.3 Azure-SDK-For-Python AZURECLI/2.7.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westcentralus/operations/2869161a-3cb1-4e61-97ae-693caa77c25c?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/canadacentral/operations/9cc21b4f-5a1e-44b1-804f-af1f192d1618?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"1a166928-b13c-614e-97ae-693caa77c25c\",\n \"status\"\ - : \"InProgress\",\n \"startTime\": \"2020-06-17T05:33:13.3829724Z\"\n }" + string: "{\n \"name\": \"4f1bc29c-1e5a-b144-804f-af1f192d1618\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2020-06-20T12:10:11.2515983Z\"\n }" headers: cache-control: - no-cache @@ -165,7 +165,7 @@ interactions: content-type: - application/json date: - - Wed, 17 Jun 2020 05:33:43 GMT + - Sat, 20 Jun 2020 12:10:41 GMT expires: - '-1' pragma: @@ -201,11 +201,11 @@ interactions: msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.3 Azure-SDK-For-Python AZURECLI/2.7.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westcentralus/operations/2869161a-3cb1-4e61-97ae-693caa77c25c?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/canadacentral/operations/9cc21b4f-5a1e-44b1-804f-af1f192d1618?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"1a166928-b13c-614e-97ae-693caa77c25c\",\n \"status\"\ - : \"InProgress\",\n \"startTime\": \"2020-06-17T05:33:13.3829724Z\"\n }" + string: "{\n \"name\": \"4f1bc29c-1e5a-b144-804f-af1f192d1618\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2020-06-20T12:10:11.2515983Z\"\n }" headers: cache-control: - no-cache @@ -214,7 +214,7 @@ interactions: content-type: - application/json date: - - Wed, 17 Jun 2020 05:34:14 GMT + - Sat, 20 Jun 2020 12:11:12 GMT expires: - '-1' pragma: @@ -250,11 +250,11 @@ interactions: msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.3 Azure-SDK-For-Python AZURECLI/2.7.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westcentralus/operations/2869161a-3cb1-4e61-97ae-693caa77c25c?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/canadacentral/operations/9cc21b4f-5a1e-44b1-804f-af1f192d1618?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"1a166928-b13c-614e-97ae-693caa77c25c\",\n \"status\"\ - : \"InProgress\",\n \"startTime\": \"2020-06-17T05:33:13.3829724Z\"\n }" + string: "{\n \"name\": \"4f1bc29c-1e5a-b144-804f-af1f192d1618\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2020-06-20T12:10:11.2515983Z\"\n }" headers: cache-control: - no-cache @@ -263,7 +263,7 @@ interactions: content-type: - application/json date: - - Wed, 17 Jun 2020 05:34:44 GMT + - Sat, 20 Jun 2020 12:11:41 GMT expires: - '-1' pragma: @@ -299,11 +299,11 @@ interactions: msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.3 Azure-SDK-For-Python AZURECLI/2.7.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westcentralus/operations/2869161a-3cb1-4e61-97ae-693caa77c25c?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/canadacentral/operations/9cc21b4f-5a1e-44b1-804f-af1f192d1618?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"1a166928-b13c-614e-97ae-693caa77c25c\",\n \"status\"\ - : \"InProgress\",\n \"startTime\": \"2020-06-17T05:33:13.3829724Z\"\n }" + string: "{\n \"name\": \"4f1bc29c-1e5a-b144-804f-af1f192d1618\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2020-06-20T12:10:11.2515983Z\"\n }" headers: cache-control: - no-cache @@ -312,7 +312,7 @@ interactions: content-type: - application/json date: - - Wed, 17 Jun 2020 05:35:15 GMT + - Sat, 20 Jun 2020 12:12:11 GMT expires: - '-1' pragma: @@ -348,11 +348,11 @@ interactions: msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.3 Azure-SDK-For-Python AZURECLI/2.7.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westcentralus/operations/2869161a-3cb1-4e61-97ae-693caa77c25c?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/canadacentral/operations/9cc21b4f-5a1e-44b1-804f-af1f192d1618?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"1a166928-b13c-614e-97ae-693caa77c25c\",\n \"status\"\ - : \"InProgress\",\n \"startTime\": \"2020-06-17T05:33:13.3829724Z\"\n }" + string: "{\n \"name\": \"4f1bc29c-1e5a-b144-804f-af1f192d1618\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2020-06-20T12:10:11.2515983Z\"\n }" headers: cache-control: - no-cache @@ -361,7 +361,7 @@ interactions: content-type: - application/json date: - - Wed, 17 Jun 2020 05:35:44 GMT + - Sat, 20 Jun 2020 12:12:42 GMT expires: - '-1' pragma: @@ -397,12 +397,61 @@ interactions: msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.3 Azure-SDK-For-Python AZURECLI/2.7.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westcentralus/operations/2869161a-3cb1-4e61-97ae-693caa77c25c?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/canadacentral/operations/9cc21b4f-5a1e-44b1-804f-af1f192d1618?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"1a166928-b13c-614e-97ae-693caa77c25c\",\n \"status\"\ - : \"Succeeded\",\n \"startTime\": \"2020-06-17T05:33:13.3829724Z\",\n \"\ - endTime\": \"2020-06-17T05:36:01.4799952Z\"\n }" + string: "{\n \"name\": \"4f1bc29c-1e5a-b144-804f-af1f192d1618\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2020-06-20T12:10:11.2515983Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Sat, 20 Jun 2020 12:13: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 --vm-set-type -c -o + User-Agent: + - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.16 + msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.3 Azure-SDK-For-Python + AZURECLI/2.7.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/canadacentral/operations/9cc21b4f-5a1e-44b1-804f-af1f192d1618?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"4f1bc29c-1e5a-b144-804f-af1f192d1618\",\n \"status\"\ + : \"Succeeded\",\n \"startTime\": \"2020-06-20T12:10:11.2515983Z\",\n \"\ + endTime\": \"2020-06-20T12:13:20.0029822Z\"\n }" headers: cache-control: - no-cache @@ -411,7 +460,7 @@ interactions: content-type: - application/json date: - - Wed, 17 Jun 2020 05:36:17 GMT + - Sat, 20 Jun 2020 12:13:43 GMT expires: - '-1' pragma: @@ -451,11 +500,11 @@ interactions: response: body: string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\"\ - ,\n \"location\": \"westcentralus\",\n \"name\": \"cliakstest000002\",\n\ + ,\n \"location\": \"canadacentral\",\n \"name\": \"cliakstest000002\",\n\ \ \"type\": \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\"\ : {\n \"provisioningState\": \"Succeeded\",\n \"kubernetesVersion\": \"\ - 1.15.11\",\n \"dnsPrefix\": \"cliakstest-clitestnykit3b6a-8ecadf\",\n \ - \ \"fqdn\": \"cliakstest-clitestnykit3b6a-8ecadf-5eb0349a.hcp.westcentralus.azmk8s.io\"\ + 1.15.11\",\n \"dnsPrefix\": \"cliakstest-clitest6tbu2hweu-8ecadf\",\n \ + \ \"fqdn\": \"cliakstest-clitest6tbu2hweu-8ecadf-6f77d203.hcp.canadacentral.azmk8s.io\"\ ,\n \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \ \ \"count\": 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\"\ : 128,\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\"\ @@ -468,12 +517,12 @@ interactions: \n }\n ]\n }\n },\n \"servicePrincipalProfile\": {\n \"\ clientId\": \"c6d9cfb8-35b5-4d65-890f-2e2846ba859a\"\n },\n \"addonProfiles\"\ : {\n \"KubeDashboard\": {\n \"enabled\": true,\n \"config\": null\n\ - \ }\n },\n \"nodeResourceGroup\": \"MC_clitest000001_cliakstest000002_westcentralus\"\ + \ }\n },\n \"nodeResourceGroup\": \"MC_clitest000001_cliakstest000002_canadacentral\"\ ,\n \"enableRBAC\": true,\n \"enablePodSecurityPolicy\": false,\n \"\ networkProfile\": {\n \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\"\ : \"Standard\",\n \"loadBalancerProfile\": {\n \"managedOutboundIPs\"\ : {\n \"count\": 1\n },\n \"effectiveOutboundIPs\": [\n \ - \ {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_westcentralus/providers/Microsoft.Network/publicIPAddresses/01795ffb-e2d0-432d-8f76-bbdcc557ef31\"\ + \ {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_canadacentral/providers/Microsoft.Network/publicIPAddresses/d7556d0d-1133-4749-85c7-4a12fc907308\"\ \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 \"\ @@ -487,7 +536,7 @@ interactions: content-type: - application/json date: - - Wed, 17 Jun 2020 05:36:18 GMT + - Sat, 20 Jun 2020 12:13:43 GMT expires: - '-1' pragma: @@ -530,11 +579,11 @@ interactions: response: body: string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\"\ - ,\n \"location\": \"westcentralus\",\n \"name\": \"cliakstest000002\",\n\ + ,\n \"location\": \"canadacentral\",\n \"name\": \"cliakstest000002\",\n\ \ \"type\": \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\"\ : {\n \"provisioningState\": \"Succeeded\",\n \"kubernetesVersion\": \"\ - 1.15.11\",\n \"dnsPrefix\": \"cliakstest-clitestnykit3b6a-8ecadf\",\n \ - \ \"fqdn\": \"cliakstest-clitestnykit3b6a-8ecadf-5eb0349a.hcp.westcentralus.azmk8s.io\"\ + 1.15.11\",\n \"dnsPrefix\": \"cliakstest-clitest6tbu2hweu-8ecadf\",\n \ + \ \"fqdn\": \"cliakstest-clitest6tbu2hweu-8ecadf-6f77d203.hcp.canadacentral.azmk8s.io\"\ ,\n \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \ \ \"count\": 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\"\ : 128,\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\"\ @@ -547,12 +596,12 @@ interactions: \n }\n ]\n }\n },\n \"servicePrincipalProfile\": {\n \"\ clientId\": \"c6d9cfb8-35b5-4d65-890f-2e2846ba859a\"\n },\n \"addonProfiles\"\ : {\n \"KubeDashboard\": {\n \"enabled\": true,\n \"config\": null\n\ - \ }\n },\n \"nodeResourceGroup\": \"MC_clitest000001_cliakstest000002_westcentralus\"\ + \ }\n },\n \"nodeResourceGroup\": \"MC_clitest000001_cliakstest000002_canadacentral\"\ ,\n \"enableRBAC\": true,\n \"enablePodSecurityPolicy\": false,\n \"\ networkProfile\": {\n \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\"\ : \"Standard\",\n \"loadBalancerProfile\": {\n \"managedOutboundIPs\"\ : {\n \"count\": 1\n },\n \"effectiveOutboundIPs\": [\n \ - \ {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_westcentralus/providers/Microsoft.Network/publicIPAddresses/01795ffb-e2d0-432d-8f76-bbdcc557ef31\"\ + \ {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_canadacentral/providers/Microsoft.Network/publicIPAddresses/d7556d0d-1133-4749-85c7-4a12fc907308\"\ \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 \"\ @@ -566,7 +615,7 @@ interactions: content-type: - application/json date: - - Wed, 17 Jun 2020 05:36:18 GMT + - Sat, 20 Jun 2020 12:13:45 GMT expires: - '-1' pragma: diff --git a/src/aks-preview/azext_aks_preview/tests/latest/test_aks_commands.py b/src/aks-preview/azext_aks_preview/tests/latest/test_aks_commands.py index ef55ba7040f..034534be724 100644 --- a/src/aks-preview/azext_aks_preview/tests/latest/test_aks_commands.py +++ b/src/aks-preview/azext_aks_preview/tests/latest/test_aks_commands.py @@ -87,7 +87,7 @@ def test_aks_create_aadv1_and_update_with_managed_aad(self, resource_group, reso @live_only() # without live only fails with needs .ssh fails (maybe generate-ssh-keys would fix) and maybe az login. @AllowLargeResponse() - @ResourceGroupPreparer(random_name_length=17, name_prefix='clitest', location='westus2') + @ResourceGroupPreparer(random_name_length=17, name_prefix='clitest', location='canadacentral') def test_aks_create_nonaad_and_update_with_managed_aad(self, resource_group, resource_group_location): aks_name = self.create_random_name('cliakstest', 16) self.kwargs.update({ From bd030e06fe3cec9adefe7136d11ee7ab09eee6c0 Mon Sep 17 00:00:00 2001 From: Bin Xia Date: Tue, 23 Jun 2020 11:32:44 +0000 Subject: [PATCH 3/4] update recording --- ...ate_aadv1_and_update_with_managed_aad.yaml | 332 ++++++++++++------ ...te_nonaad_and_update_with_managed_aad.yaml | 207 ++++++----- 2 files changed, 344 insertions(+), 195 deletions(-) diff --git a/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_aadv1_and_update_with_managed_aad.yaml b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_aadv1_and_update_with_managed_aad.yaml index ec147faf26d..7d6e15c01dc 100644 --- a/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_aadv1_and_update_with_managed_aad.yaml +++ b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_aadv1_and_update_with_managed_aad.yaml @@ -14,15 +14,15 @@ interactions: - --resource-group --name --vm-set-type -c --aad-server-app-id --aad-server-app-secret --aad-client-app-id --aad-tenant-id -o User-Agent: - - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.16 - msrest_azure/0.6.3 azure-mgmt-resource/9.0.0 Azure-SDK-For-Python AZURECLI/2.7.0 + - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.9 + msrest_azure/0.6.3 azure-mgmt-resource/10.0.0 Azure-SDK-For-Python AZURECLI/2.8.0 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001","name":"clitest000001","type":"Microsoft.Resources/resourceGroups","location":"canadacentral","tags":{"product":"azurecli","cause":"automation","date":"2020-06-20T11:38:55Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001","name":"clitest000001","type":"Microsoft.Resources/resourceGroups","location":"canadacentral","tags":{"product":"azurecli","cause":"automation","date":"2020-06-23T10:58:05Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -31,7 +31,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sat, 20 Jun 2020 11:38:57 GMT + - Tue, 23 Jun 2020 10:58:08 GMT expires: - '-1' pragma: @@ -47,7 +47,7 @@ interactions: message: OK - request: body: '{"location": "canadacentral", "properties": {"kubernetesVersion": "", "dnsPrefix": - "cliakstest-clitestk2in5hptv-8ecadf", "agentPoolProfiles": [{"count": 1, "vmSize": + "cliakstest-clitestcojnsmdi7-8ecadf", "agentPoolProfiles": [{"count": 1, "vmSize": "Standard_DS2_v2", "osType": "Linux", "type": "VirtualMachineScaleSets", "mode": "System", "enableNodePublicIP": false, "scaleSetPriority": "Regular", "scaleSetEvictionPolicy": "Delete", "name": "nodepool1"}], "linuxProfile": {"adminUsername": "azureuser", @@ -77,21 +77,21 @@ interactions: - --resource-group --name --vm-set-type -c --aad-server-app-id --aad-server-app-secret --aad-client-app-id --aad-tenant-id -o User-Agent: - - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.16 - msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.3 Azure-SDK-For-Python - AZURECLI/2.7.0 + - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.9 + msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.4 Azure-SDK-For-Python + AZURECLI/2.8.0 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2020-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2020-06-01 response: body: string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\"\ ,\n \"location\": \"canadacentral\",\n \"name\": \"cliakstest000002\",\n\ \ \"type\": \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\"\ : {\n \"provisioningState\": \"Creating\",\n \"kubernetesVersion\": \"\ - 1.15.11\",\n \"dnsPrefix\": \"cliakstest-clitestk2in5hptv-8ecadf\",\n \ - \ \"fqdn\": \"cliakstest-clitestk2in5hptv-8ecadf-1ae94b14.hcp.canadacentral.azmk8s.io\"\ + 1.15.11\",\n \"dnsPrefix\": \"cliakstest-clitestcojnsmdi7-8ecadf\",\n \ + \ \"fqdn\": \"cliakstest-clitestcojnsmdi7-8ecadf-c6fd27c8.hcp.canadacentral.azmk8s.io\"\ ,\n \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \ \ \"count\": 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\"\ : 128,\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\"\ @@ -118,7 +118,7 @@ interactions: \ }" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/canadacentral/operations/2a206004-ac90-4899-b749-9df6bf33ffca?api-version=2016-03-30 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/canadacentral/operations/44b9270e-b276-43c7-ae9a-a51cb0dfe62a?api-version=2016-03-30 cache-control: - no-cache content-length: @@ -126,7 +126,7 @@ interactions: content-type: - application/json date: - - Sat, 20 Jun 2020 11:39:04 GMT + - Tue, 23 Jun 2020 10:58:16 GMT expires: - '-1' pragma: @@ -157,15 +157,15 @@ interactions: - --resource-group --name --vm-set-type -c --aad-server-app-id --aad-server-app-secret --aad-client-app-id --aad-tenant-id -o User-Agent: - - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.16 - msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.3 Azure-SDK-For-Python - AZURECLI/2.7.0 + - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.9 + msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.4 Azure-SDK-For-Python + AZURECLI/2.8.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/canadacentral/operations/2a206004-ac90-4899-b749-9df6bf33ffca?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/canadacentral/operations/44b9270e-b276-43c7-ae9a-a51cb0dfe62a?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"0460202a-90ac-9948-b749-9df6bf33ffca\",\n \"status\"\ - : \"InProgress\",\n \"startTime\": \"2020-06-20T11:39:04.2937992Z\"\n }" + string: "{\n \"name\": \"0e27b944-76b2-c743-ae9a-a51cb0dfe62a\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2020-06-23T10:58:15.9171802Z\"\n }" headers: cache-control: - no-cache @@ -174,7 +174,7 @@ interactions: content-type: - application/json date: - - Sat, 20 Jun 2020 11:39:34 GMT + - Tue, 23 Jun 2020 10:58:46 GMT expires: - '-1' pragma: @@ -207,15 +207,15 @@ interactions: - --resource-group --name --vm-set-type -c --aad-server-app-id --aad-server-app-secret --aad-client-app-id --aad-tenant-id -o User-Agent: - - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.16 - msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.3 Azure-SDK-For-Python - AZURECLI/2.7.0 + - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.9 + msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.4 Azure-SDK-For-Python + AZURECLI/2.8.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/canadacentral/operations/2a206004-ac90-4899-b749-9df6bf33ffca?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/canadacentral/operations/44b9270e-b276-43c7-ae9a-a51cb0dfe62a?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"0460202a-90ac-9948-b749-9df6bf33ffca\",\n \"status\"\ - : \"InProgress\",\n \"startTime\": \"2020-06-20T11:39:04.2937992Z\"\n }" + string: "{\n \"name\": \"0e27b944-76b2-c743-ae9a-a51cb0dfe62a\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2020-06-23T10:58:15.9171802Z\"\n }" headers: cache-control: - no-cache @@ -224,7 +224,7 @@ interactions: content-type: - application/json date: - - Sat, 20 Jun 2020 11:40:05 GMT + - Tue, 23 Jun 2020 10:59:16 GMT expires: - '-1' pragma: @@ -257,15 +257,15 @@ interactions: - --resource-group --name --vm-set-type -c --aad-server-app-id --aad-server-app-secret --aad-client-app-id --aad-tenant-id -o User-Agent: - - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.16 - msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.3 Azure-SDK-For-Python - AZURECLI/2.7.0 + - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.9 + msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.4 Azure-SDK-For-Python + AZURECLI/2.8.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/canadacentral/operations/2a206004-ac90-4899-b749-9df6bf33ffca?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/canadacentral/operations/44b9270e-b276-43c7-ae9a-a51cb0dfe62a?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"0460202a-90ac-9948-b749-9df6bf33ffca\",\n \"status\"\ - : \"InProgress\",\n \"startTime\": \"2020-06-20T11:39:04.2937992Z\"\n }" + string: "{\n \"name\": \"0e27b944-76b2-c743-ae9a-a51cb0dfe62a\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2020-06-23T10:58:15.9171802Z\"\n }" headers: cache-control: - no-cache @@ -274,7 +274,7 @@ interactions: content-type: - application/json date: - - Sat, 20 Jun 2020 11:40:35 GMT + - Tue, 23 Jun 2020 10:59:46 GMT expires: - '-1' pragma: @@ -307,15 +307,15 @@ interactions: - --resource-group --name --vm-set-type -c --aad-server-app-id --aad-server-app-secret --aad-client-app-id --aad-tenant-id -o User-Agent: - - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.16 - msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.3 Azure-SDK-For-Python - AZURECLI/2.7.0 + - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.9 + msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.4 Azure-SDK-For-Python + AZURECLI/2.8.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/canadacentral/operations/2a206004-ac90-4899-b749-9df6bf33ffca?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/canadacentral/operations/44b9270e-b276-43c7-ae9a-a51cb0dfe62a?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"0460202a-90ac-9948-b749-9df6bf33ffca\",\n \"status\"\ - : \"InProgress\",\n \"startTime\": \"2020-06-20T11:39:04.2937992Z\"\n }" + string: "{\n \"name\": \"0e27b944-76b2-c743-ae9a-a51cb0dfe62a\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2020-06-23T10:58:15.9171802Z\"\n }" headers: cache-control: - no-cache @@ -324,7 +324,7 @@ interactions: content-type: - application/json date: - - Sat, 20 Jun 2020 11:41:05 GMT + - Tue, 23 Jun 2020 11:00:17 GMT expires: - '-1' pragma: @@ -357,15 +357,15 @@ interactions: - --resource-group --name --vm-set-type -c --aad-server-app-id --aad-server-app-secret --aad-client-app-id --aad-tenant-id -o User-Agent: - - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.16 - msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.3 Azure-SDK-For-Python - AZURECLI/2.7.0 + - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.9 + msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.4 Azure-SDK-For-Python + AZURECLI/2.8.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/canadacentral/operations/2a206004-ac90-4899-b749-9df6bf33ffca?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/canadacentral/operations/44b9270e-b276-43c7-ae9a-a51cb0dfe62a?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"0460202a-90ac-9948-b749-9df6bf33ffca\",\n \"status\"\ - : \"InProgress\",\n \"startTime\": \"2020-06-20T11:39:04.2937992Z\"\n }" + string: "{\n \"name\": \"0e27b944-76b2-c743-ae9a-a51cb0dfe62a\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2020-06-23T10:58:15.9171802Z\"\n }" headers: cache-control: - no-cache @@ -374,7 +374,7 @@ interactions: content-type: - application/json date: - - Sat, 20 Jun 2020 11:41:35 GMT + - Tue, 23 Jun 2020 11:00:47 GMT expires: - '-1' pragma: @@ -407,16 +407,66 @@ interactions: - --resource-group --name --vm-set-type -c --aad-server-app-id --aad-server-app-secret --aad-client-app-id --aad-tenant-id -o User-Agent: - - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.16 - msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.3 Azure-SDK-For-Python - AZURECLI/2.7.0 + - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.9 + msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.4 Azure-SDK-For-Python + AZURECLI/2.8.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/canadacentral/operations/2a206004-ac90-4899-b749-9df6bf33ffca?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/canadacentral/operations/44b9270e-b276-43c7-ae9a-a51cb0dfe62a?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"0460202a-90ac-9948-b749-9df6bf33ffca\",\n \"status\"\ - : \"Succeeded\",\n \"startTime\": \"2020-06-20T11:39:04.2937992Z\",\n \"\ - endTime\": \"2020-06-20T11:42:06.5485641Z\"\n }" + string: "{\n \"name\": \"0e27b944-76b2-c743-ae9a-a51cb0dfe62a\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2020-06-23T10:58:15.9171802Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 23 Jun 2020 11:01:17 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 --vm-set-type -c --aad-server-app-id --aad-server-app-secret + --aad-client-app-id --aad-tenant-id -o + User-Agent: + - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.9 + msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.4 Azure-SDK-For-Python + AZURECLI/2.8.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/canadacentral/operations/44b9270e-b276-43c7-ae9a-a51cb0dfe62a?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"0e27b944-76b2-c743-ae9a-a51cb0dfe62a\",\n \"status\"\ + : \"Succeeded\",\n \"startTime\": \"2020-06-23T10:58:15.9171802Z\",\n \"\ + endTime\": \"2020-06-23T11:01:34.2489102Z\"\n }" headers: cache-control: - no-cache @@ -425,7 +475,7 @@ interactions: content-type: - application/json date: - - Sat, 20 Jun 2020 11:42:06 GMT + - Tue, 23 Jun 2020 11:01:48 GMT expires: - '-1' pragma: @@ -458,19 +508,19 @@ interactions: - --resource-group --name --vm-set-type -c --aad-server-app-id --aad-server-app-secret --aad-client-app-id --aad-tenant-id -o User-Agent: - - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.16 - msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.3 Azure-SDK-For-Python - AZURECLI/2.7.0 + - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.9 + msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.4 Azure-SDK-For-Python + AZURECLI/2.8.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2020-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2020-06-01 response: body: string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\"\ ,\n \"location\": \"canadacentral\",\n \"name\": \"cliakstest000002\",\n\ \ \"type\": \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\"\ : {\n \"provisioningState\": \"Succeeded\",\n \"kubernetesVersion\": \"\ - 1.15.11\",\n \"dnsPrefix\": \"cliakstest-clitestk2in5hptv-8ecadf\",\n \ - \ \"fqdn\": \"cliakstest-clitestk2in5hptv-8ecadf-1ae94b14.hcp.canadacentral.azmk8s.io\"\ + 1.15.11\",\n \"dnsPrefix\": \"cliakstest-clitestcojnsmdi7-8ecadf\",\n \ + \ \"fqdn\": \"cliakstest-clitestcojnsmdi7-8ecadf-c6fd27c8.hcp.canadacentral.azmk8s.io\"\ ,\n \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \ \ \"count\": 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\"\ : 128,\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\"\ @@ -488,7 +538,7 @@ interactions: networkProfile\": {\n \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\"\ : \"Standard\",\n \"loadBalancerProfile\": {\n \"managedOutboundIPs\"\ : {\n \"count\": 1\n },\n \"effectiveOutboundIPs\": [\n \ - \ {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_canadacentral/providers/Microsoft.Network/publicIPAddresses/b29ef30d-7b11-40ef-8729-6893c317dd1c\"\ + \ {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_canadacentral/providers/Microsoft.Network/publicIPAddresses/04c8253c-6e60-4927-ab53-b991759a418f\"\ \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 \"\ @@ -505,7 +555,7 @@ interactions: content-type: - application/json date: - - Sat, 20 Jun 2020 11:42:06 GMT + - Tue, 23 Jun 2020 11:01:48 GMT expires: - '-1' pragma: @@ -538,21 +588,21 @@ interactions: - --resource-group --name --enable-aad --aad-admin-group-object-ids --aad-tenant-id -o User-Agent: - - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.16 - msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.3 Azure-SDK-For-Python - AZURECLI/2.7.0 + - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.9 + msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.4 Azure-SDK-For-Python + AZURECLI/2.8.0 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2020-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2020-06-01 response: body: string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\"\ ,\n \"location\": \"canadacentral\",\n \"name\": \"cliakstest000002\",\n\ \ \"type\": \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\"\ : {\n \"provisioningState\": \"Succeeded\",\n \"kubernetesVersion\": \"\ - 1.15.11\",\n \"dnsPrefix\": \"cliakstest-clitestk2in5hptv-8ecadf\",\n \ - \ \"fqdn\": \"cliakstest-clitestk2in5hptv-8ecadf-1ae94b14.hcp.canadacentral.azmk8s.io\"\ + 1.15.11\",\n \"dnsPrefix\": \"cliakstest-clitestcojnsmdi7-8ecadf\",\n \ + \ \"fqdn\": \"cliakstest-clitestcojnsmdi7-8ecadf-c6fd27c8.hcp.canadacentral.azmk8s.io\"\ ,\n \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \ \ \"count\": 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\"\ : 128,\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\"\ @@ -570,7 +620,7 @@ interactions: networkProfile\": {\n \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\"\ : \"Standard\",\n \"loadBalancerProfile\": {\n \"managedOutboundIPs\"\ : {\n \"count\": 1\n },\n \"effectiveOutboundIPs\": [\n \ - \ {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_canadacentral/providers/Microsoft.Network/publicIPAddresses/b29ef30d-7b11-40ef-8729-6893c317dd1c\"\ + \ {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_canadacentral/providers/Microsoft.Network/publicIPAddresses/04c8253c-6e60-4927-ab53-b991759a418f\"\ \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 \"\ @@ -587,7 +637,7 @@ interactions: content-type: - application/json date: - - Sat, 20 Jun 2020 11:42:10 GMT + - Tue, 23 Jun 2020 11:01:49 GMT expires: - '-1' pragma: @@ -607,7 +657,7 @@ interactions: message: OK - request: body: 'b''{"location": "canadacentral", "properties": {"kubernetesVersion": "1.15.11", - "dnsPrefix": "cliakstest-clitestk2in5hptv-8ecadf", "agentPoolProfiles": [{"count": + "dnsPrefix": "cliakstest-clitestcojnsmdi7-8ecadf", "agentPoolProfiles": [{"count": 1, "vmSize": "Standard_DS2_v2", "osDiskSizeGB": 128, "maxPods": 110, "osType": "Linux", "type": "VirtualMachineScaleSets", "mode": "System", "orchestratorVersion": "1.15.11", "nodeImageVersion": "AKSUbuntu-1604-2020.06.10", "enableNodePublicIP": @@ -620,7 +670,7 @@ interactions: "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_clitest000001_cliakstest000002_canadacentral/providers/Microsoft.Network/publicIPAddresses/b29ef30d-7b11-40ef-8729-6893c317dd1c"}]}}, + [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_canadacentral/providers/Microsoft.Network/publicIPAddresses/04c8253c-6e60-4927-ab53-b991759a418f"}]}}, "aadProfile": {"managed": true, "adminGroupObjectIDs": ["00000000-0000-0000-0000-000000000003"], "tenantID": "00000000-0000-0000-0000-000000000004"}}, "sku": {"name": "Basic", "tier": "Free"}}''' @@ -641,21 +691,21 @@ interactions: - --resource-group --name --enable-aad --aad-admin-group-object-ids --aad-tenant-id -o User-Agent: - - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.16 - msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.3 Azure-SDK-For-Python - AZURECLI/2.7.0 + - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.9 + msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.4 Azure-SDK-For-Python + AZURECLI/2.8.0 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2020-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2020-06-01 response: body: string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\"\ ,\n \"location\": \"canadacentral\",\n \"name\": \"cliakstest000002\",\n\ \ \"type\": \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\"\ : {\n \"provisioningState\": \"Updating\",\n \"kubernetesVersion\": \"\ - 1.15.11\",\n \"dnsPrefix\": \"cliakstest-clitestk2in5hptv-8ecadf\",\n \ - \ \"fqdn\": \"cliakstest-clitestk2in5hptv-8ecadf-1ae94b14.hcp.canadacentral.azmk8s.io\"\ + 1.15.11\",\n \"dnsPrefix\": \"cliakstest-clitestcojnsmdi7-8ecadf\",\n \ + \ \"fqdn\": \"cliakstest-clitestcojnsmdi7-8ecadf-c6fd27c8.hcp.canadacentral.azmk8s.io\"\ ,\n \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \ \ \"count\": 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\"\ : 128,\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\"\ @@ -673,7 +723,7 @@ interactions: networkProfile\": {\n \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\"\ : \"Standard\",\n \"loadBalancerProfile\": {\n \"managedOutboundIPs\"\ : {\n \"count\": 1\n },\n \"effectiveOutboundIPs\": [\n \ - \ {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_canadacentral/providers/Microsoft.Network/publicIPAddresses/b29ef30d-7b11-40ef-8729-6893c317dd1c\"\ + \ {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_canadacentral/providers/Microsoft.Network/publicIPAddresses/04c8253c-6e60-4927-ab53-b991759a418f\"\ \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 \"\ @@ -684,7 +734,7 @@ interactions: \ }" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/canadacentral/operations/46712567-0b64-4e88-836a-206a7b462e22?api-version=2016-03-30 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/canadacentral/operations/04ba4021-d2ac-4dbd-919c-b771fb091d0a?api-version=2016-03-30 cache-control: - no-cache content-length: @@ -692,7 +742,7 @@ interactions: content-type: - application/json date: - - Sat, 20 Jun 2020 11:42:14 GMT + - Tue, 23 Jun 2020 11:01:54 GMT expires: - '-1' pragma: @@ -727,24 +777,74 @@ interactions: - --resource-group --name --enable-aad --aad-admin-group-object-ids --aad-tenant-id -o User-Agent: - - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.16 - msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.3 Azure-SDK-For-Python - AZURECLI/2.7.0 + - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.9 + msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.4 Azure-SDK-For-Python + AZURECLI/2.8.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/canadacentral/operations/04ba4021-d2ac-4dbd-919c-b771fb091d0a?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"2140ba04-acd2-bd4d-919c-b771fb091d0a\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2020-06-23T11:01:54.2995652Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 23 Jun 2020 11:02:25 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --enable-aad --aad-admin-group-object-ids --aad-tenant-id + -o + User-Agent: + - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.9 + msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.4 Azure-SDK-For-Python + AZURECLI/2.8.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/canadacentral/operations/46712567-0b64-4e88-836a-206a7b462e22?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/canadacentral/operations/04ba4021-d2ac-4dbd-919c-b771fb091d0a?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"67257146-640b-884e-836a-206a7b462e22\",\n \"status\"\ - : \"InProgress\",\n \"startTime\": \"2020-06-20T11:42:13.940534Z\"\n }" + string: "{\n \"name\": \"2140ba04-acd2-bd4d-919c-b771fb091d0a\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2020-06-23T11:01:54.2995652Z\"\n }" headers: cache-control: - no-cache content-length: - - '125' + - '126' content-type: - application/json date: - - Sat, 20 Jun 2020 11:42:44 GMT + - Tue, 23 Jun 2020 11:02:55 GMT expires: - '-1' pragma: @@ -777,24 +877,24 @@ interactions: - --resource-group --name --enable-aad --aad-admin-group-object-ids --aad-tenant-id -o User-Agent: - - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.16 - msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.3 Azure-SDK-For-Python - AZURECLI/2.7.0 + - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.9 + msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.4 Azure-SDK-For-Python + AZURECLI/2.8.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/canadacentral/operations/46712567-0b64-4e88-836a-206a7b462e22?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/canadacentral/operations/04ba4021-d2ac-4dbd-919c-b771fb091d0a?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"67257146-640b-884e-836a-206a7b462e22\",\n \"status\"\ - : \"InProgress\",\n \"startTime\": \"2020-06-20T11:42:13.940534Z\"\n }" + string: "{\n \"name\": \"2140ba04-acd2-bd4d-919c-b771fb091d0a\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2020-06-23T11:01:54.2995652Z\"\n }" headers: cache-control: - no-cache content-length: - - '125' + - '126' content-type: - application/json date: - - Sat, 20 Jun 2020 11:43:14 GMT + - Tue, 23 Jun 2020 11:03:25 GMT expires: - '-1' pragma: @@ -827,25 +927,25 @@ interactions: - --resource-group --name --enable-aad --aad-admin-group-object-ids --aad-tenant-id -o User-Agent: - - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.16 - msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.3 Azure-SDK-For-Python - AZURECLI/2.7.0 + - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.9 + msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.4 Azure-SDK-For-Python + AZURECLI/2.8.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/canadacentral/operations/46712567-0b64-4e88-836a-206a7b462e22?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/canadacentral/operations/04ba4021-d2ac-4dbd-919c-b771fb091d0a?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"67257146-640b-884e-836a-206a7b462e22\",\n \"status\"\ - : \"Succeeded\",\n \"startTime\": \"2020-06-20T11:42:13.940534Z\",\n \"\ - endTime\": \"2020-06-20T11:43:40.8523709Z\"\n }" + string: "{\n \"name\": \"2140ba04-acd2-bd4d-919c-b771fb091d0a\",\n \"status\"\ + : \"Succeeded\",\n \"startTime\": \"2020-06-23T11:01:54.2995652Z\",\n \"\ + endTime\": \"2020-06-23T11:03:40.43908Z\"\n }" headers: cache-control: - no-cache content-length: - - '169' + - '168' content-type: - application/json date: - - Sat, 20 Jun 2020 11:43:45 GMT + - Tue, 23 Jun 2020 11:03:55 GMT expires: - '-1' pragma: @@ -878,19 +978,19 @@ interactions: - --resource-group --name --enable-aad --aad-admin-group-object-ids --aad-tenant-id -o User-Agent: - - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.16 - msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.3 Azure-SDK-For-Python - AZURECLI/2.7.0 + - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.9 + msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.4 Azure-SDK-For-Python + AZURECLI/2.8.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2020-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2020-06-01 response: body: string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\"\ ,\n \"location\": \"canadacentral\",\n \"name\": \"cliakstest000002\",\n\ \ \"type\": \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\"\ : {\n \"provisioningState\": \"Succeeded\",\n \"kubernetesVersion\": \"\ - 1.15.11\",\n \"dnsPrefix\": \"cliakstest-clitestk2in5hptv-8ecadf\",\n \ - \ \"fqdn\": \"cliakstest-clitestk2in5hptv-8ecadf-1ae94b14.hcp.canadacentral.azmk8s.io\"\ + 1.15.11\",\n \"dnsPrefix\": \"cliakstest-clitestcojnsmdi7-8ecadf\",\n \ + \ \"fqdn\": \"cliakstest-clitestcojnsmdi7-8ecadf-c6fd27c8.hcp.canadacentral.azmk8s.io\"\ ,\n \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \ \ \"count\": 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\"\ : 128,\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\"\ @@ -908,7 +1008,7 @@ interactions: networkProfile\": {\n \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\"\ : \"Standard\",\n \"loadBalancerProfile\": {\n \"managedOutboundIPs\"\ : {\n \"count\": 1\n },\n \"effectiveOutboundIPs\": [\n \ - \ {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_canadacentral/providers/Microsoft.Network/publicIPAddresses/b29ef30d-7b11-40ef-8729-6893c317dd1c\"\ + \ {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_canadacentral/providers/Microsoft.Network/publicIPAddresses/04c8253c-6e60-4927-ab53-b991759a418f\"\ \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 \"\ @@ -925,7 +1025,7 @@ interactions: content-type: - application/json date: - - Sat, 20 Jun 2020 11:43:46 GMT + - Tue, 23 Jun 2020 11:03:56 GMT expires: - '-1' pragma: diff --git a/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_nonaad_and_update_with_managed_aad.yaml b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_nonaad_and_update_with_managed_aad.yaml index 9b16e040943..a2c44008406 100644 --- a/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_nonaad_and_update_with_managed_aad.yaml +++ b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_nonaad_and_update_with_managed_aad.yaml @@ -13,15 +13,15 @@ interactions: ParameterSetName: - --resource-group --name --vm-set-type -c -o User-Agent: - - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.16 - msrest_azure/0.6.3 azure-mgmt-resource/9.0.0 Azure-SDK-For-Python AZURECLI/2.7.0 + - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.9 + msrest_azure/0.6.3 azure-mgmt-resource/10.0.0 Azure-SDK-For-Python AZURECLI/2.8.0 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001","name":"clitest000001","type":"Microsoft.Resources/resourceGroups","location":"canadacentral","tags":{"product":"azurecli","cause":"automation","date":"2020-06-20T12:10:01Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001","name":"clitest000001","type":"Microsoft.Resources/resourceGroups","location":"canadacentral","tags":{"product":"azurecli","cause":"automation","date":"2020-06-23T11:33:56Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sat, 20 Jun 2020 12:10:05 GMT + - Tue, 23 Jun 2020 11:33:59 GMT expires: - '-1' pragma: @@ -46,7 +46,7 @@ interactions: message: OK - request: body: '{"location": "canadacentral", "properties": {"kubernetesVersion": "", "dnsPrefix": - "cliakstest-clitest6tbu2hweu-8ecadf", "agentPoolProfiles": [{"count": 1, "vmSize": + "cliakstest-clitestwqe3hkkdx-8ecadf", "agentPoolProfiles": [{"count": 1, "vmSize": "Standard_DS2_v2", "osType": "Linux", "type": "VirtualMachineScaleSets", "mode": "System", "enableNodePublicIP": false, "scaleSetPriority": "Regular", "scaleSetEvictionPolicy": "Delete", "name": "nodepool1"}], "linuxProfile": {"adminUsername": "azureuser", @@ -73,21 +73,21 @@ interactions: ParameterSetName: - --resource-group --name --vm-set-type -c -o User-Agent: - - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.16 - msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.3 Azure-SDK-For-Python - AZURECLI/2.7.0 + - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.9 + msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.4 Azure-SDK-For-Python + AZURECLI/2.8.0 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2020-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2020-06-01 response: body: string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\"\ ,\n \"location\": \"canadacentral\",\n \"name\": \"cliakstest000002\",\n\ \ \"type\": \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\"\ : {\n \"provisioningState\": \"Creating\",\n \"kubernetesVersion\": \"\ - 1.15.11\",\n \"dnsPrefix\": \"cliakstest-clitest6tbu2hweu-8ecadf\",\n \ - \ \"fqdn\": \"cliakstest-clitest6tbu2hweu-8ecadf-6f77d203.hcp.canadacentral.azmk8s.io\"\ + 1.15.11\",\n \"dnsPrefix\": \"cliakstest-clitestwqe3hkkdx-8ecadf\",\n \ + \ \"fqdn\": \"cliakstest-clitestwqe3hkkdx-8ecadf-c20e3a93.hcp.canadacentral.azmk8s.io\"\ ,\n \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \ \ \"count\": 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\"\ : 128,\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\"\ @@ -110,7 +110,7 @@ interactions: name\": \"Basic\",\n \"tier\": \"Free\"\n }\n }" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/canadacentral/operations/9cc21b4f-5a1e-44b1-804f-af1f192d1618?api-version=2016-03-30 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/canadacentral/operations/8c2336b1-41bf-418c-a867-82e468ce078f?api-version=2016-03-30 cache-control: - no-cache content-length: @@ -118,7 +118,7 @@ interactions: content-type: - application/json date: - - Sat, 20 Jun 2020 12:10:11 GMT + - Tue, 23 Jun 2020 11:34:05 GMT expires: - '-1' pragma: @@ -148,15 +148,15 @@ interactions: ParameterSetName: - --resource-group --name --vm-set-type -c -o User-Agent: - - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.16 - msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.3 Azure-SDK-For-Python - AZURECLI/2.7.0 + - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.9 + msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.4 Azure-SDK-For-Python + AZURECLI/2.8.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/canadacentral/operations/9cc21b4f-5a1e-44b1-804f-af1f192d1618?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/canadacentral/operations/8c2336b1-41bf-418c-a867-82e468ce078f?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"4f1bc29c-1e5a-b144-804f-af1f192d1618\",\n \"status\"\ - : \"InProgress\",\n \"startTime\": \"2020-06-20T12:10:11.2515983Z\"\n }" + string: "{\n \"name\": \"b136238c-bf41-8c41-a867-82e468ce078f\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2020-06-23T11:34:05.4157705Z\"\n }" headers: cache-control: - no-cache @@ -165,7 +165,7 @@ interactions: content-type: - application/json date: - - Sat, 20 Jun 2020 12:10:41 GMT + - Tue, 23 Jun 2020 11:34:35 GMT expires: - '-1' pragma: @@ -197,15 +197,15 @@ interactions: ParameterSetName: - --resource-group --name --vm-set-type -c -o User-Agent: - - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.16 - msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.3 Azure-SDK-For-Python - AZURECLI/2.7.0 + - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.9 + msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.4 Azure-SDK-For-Python + AZURECLI/2.8.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/canadacentral/operations/9cc21b4f-5a1e-44b1-804f-af1f192d1618?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/canadacentral/operations/8c2336b1-41bf-418c-a867-82e468ce078f?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"4f1bc29c-1e5a-b144-804f-af1f192d1618\",\n \"status\"\ - : \"InProgress\",\n \"startTime\": \"2020-06-20T12:10:11.2515983Z\"\n }" + string: "{\n \"name\": \"b136238c-bf41-8c41-a867-82e468ce078f\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2020-06-23T11:34:05.4157705Z\"\n }" headers: cache-control: - no-cache @@ -214,7 +214,7 @@ interactions: content-type: - application/json date: - - Sat, 20 Jun 2020 12:11:12 GMT + - Tue, 23 Jun 2020 11:35:06 GMT expires: - '-1' pragma: @@ -246,15 +246,15 @@ interactions: ParameterSetName: - --resource-group --name --vm-set-type -c -o User-Agent: - - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.16 - msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.3 Azure-SDK-For-Python - AZURECLI/2.7.0 + - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.9 + msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.4 Azure-SDK-For-Python + AZURECLI/2.8.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/canadacentral/operations/9cc21b4f-5a1e-44b1-804f-af1f192d1618?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/canadacentral/operations/8c2336b1-41bf-418c-a867-82e468ce078f?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"4f1bc29c-1e5a-b144-804f-af1f192d1618\",\n \"status\"\ - : \"InProgress\",\n \"startTime\": \"2020-06-20T12:10:11.2515983Z\"\n }" + string: "{\n \"name\": \"b136238c-bf41-8c41-a867-82e468ce078f\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2020-06-23T11:34:05.4157705Z\"\n }" headers: cache-control: - no-cache @@ -263,7 +263,7 @@ interactions: content-type: - application/json date: - - Sat, 20 Jun 2020 12:11:41 GMT + - Tue, 23 Jun 2020 11:35:36 GMT expires: - '-1' pragma: @@ -295,15 +295,15 @@ interactions: ParameterSetName: - --resource-group --name --vm-set-type -c -o User-Agent: - - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.16 - msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.3 Azure-SDK-For-Python - AZURECLI/2.7.0 + - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.9 + msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.4 Azure-SDK-For-Python + AZURECLI/2.8.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/canadacentral/operations/9cc21b4f-5a1e-44b1-804f-af1f192d1618?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/canadacentral/operations/8c2336b1-41bf-418c-a867-82e468ce078f?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"4f1bc29c-1e5a-b144-804f-af1f192d1618\",\n \"status\"\ - : \"InProgress\",\n \"startTime\": \"2020-06-20T12:10:11.2515983Z\"\n }" + string: "{\n \"name\": \"b136238c-bf41-8c41-a867-82e468ce078f\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2020-06-23T11:34:05.4157705Z\"\n }" headers: cache-control: - no-cache @@ -312,7 +312,7 @@ interactions: content-type: - application/json date: - - Sat, 20 Jun 2020 12:12:11 GMT + - Tue, 23 Jun 2020 11:36:07 GMT expires: - '-1' pragma: @@ -344,15 +344,15 @@ interactions: ParameterSetName: - --resource-group --name --vm-set-type -c -o User-Agent: - - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.16 - msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.3 Azure-SDK-For-Python - AZURECLI/2.7.0 + - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.9 + msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.4 Azure-SDK-For-Python + AZURECLI/2.8.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/canadacentral/operations/9cc21b4f-5a1e-44b1-804f-af1f192d1618?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/canadacentral/operations/8c2336b1-41bf-418c-a867-82e468ce078f?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"4f1bc29c-1e5a-b144-804f-af1f192d1618\",\n \"status\"\ - : \"InProgress\",\n \"startTime\": \"2020-06-20T12:10:11.2515983Z\"\n }" + string: "{\n \"name\": \"b136238c-bf41-8c41-a867-82e468ce078f\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2020-06-23T11:34:05.4157705Z\"\n }" headers: cache-control: - no-cache @@ -361,7 +361,7 @@ interactions: content-type: - application/json date: - - Sat, 20 Jun 2020 12:12:42 GMT + - Tue, 23 Jun 2020 11:36:37 GMT expires: - '-1' pragma: @@ -393,15 +393,15 @@ interactions: ParameterSetName: - --resource-group --name --vm-set-type -c -o User-Agent: - - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.16 - msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.3 Azure-SDK-For-Python - AZURECLI/2.7.0 + - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.9 + msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.4 Azure-SDK-For-Python + AZURECLI/2.8.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/canadacentral/operations/9cc21b4f-5a1e-44b1-804f-af1f192d1618?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/canadacentral/operations/8c2336b1-41bf-418c-a867-82e468ce078f?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"4f1bc29c-1e5a-b144-804f-af1f192d1618\",\n \"status\"\ - : \"InProgress\",\n \"startTime\": \"2020-06-20T12:10:11.2515983Z\"\n }" + string: "{\n \"name\": \"b136238c-bf41-8c41-a867-82e468ce078f\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2020-06-23T11:34:05.4157705Z\"\n }" headers: cache-control: - no-cache @@ -410,7 +410,7 @@ interactions: content-type: - application/json date: - - Sat, 20 Jun 2020 12:13:12 GMT + - Tue, 23 Jun 2020 11:37:07 GMT expires: - '-1' pragma: @@ -442,16 +442,65 @@ interactions: ParameterSetName: - --resource-group --name --vm-set-type -c -o User-Agent: - - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.16 - msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.3 Azure-SDK-For-Python - AZURECLI/2.7.0 + - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.9 + msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.4 Azure-SDK-For-Python + AZURECLI/2.8.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/canadacentral/operations/9cc21b4f-5a1e-44b1-804f-af1f192d1618?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/canadacentral/operations/8c2336b1-41bf-418c-a867-82e468ce078f?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"4f1bc29c-1e5a-b144-804f-af1f192d1618\",\n \"status\"\ - : \"Succeeded\",\n \"startTime\": \"2020-06-20T12:10:11.2515983Z\",\n \"\ - endTime\": \"2020-06-20T12:13:20.0029822Z\"\n }" + string: "{\n \"name\": \"b136238c-bf41-8c41-a867-82e468ce078f\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2020-06-23T11:34:05.4157705Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 23 Jun 2020 11:37:37 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 --vm-set-type -c -o + User-Agent: + - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.9 + msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.4 Azure-SDK-For-Python + AZURECLI/2.8.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/canadacentral/operations/8c2336b1-41bf-418c-a867-82e468ce078f?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"b136238c-bf41-8c41-a867-82e468ce078f\",\n \"status\"\ + : \"Succeeded\",\n \"startTime\": \"2020-06-23T11:34:05.4157705Z\",\n \"\ + endTime\": \"2020-06-23T11:38:01.9352258Z\"\n }" headers: cache-control: - no-cache @@ -460,7 +509,7 @@ interactions: content-type: - application/json date: - - Sat, 20 Jun 2020 12:13:43 GMT + - Tue, 23 Jun 2020 11:38:07 GMT expires: - '-1' pragma: @@ -492,19 +541,19 @@ interactions: ParameterSetName: - --resource-group --name --vm-set-type -c -o User-Agent: - - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.16 - msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.3 Azure-SDK-For-Python - AZURECLI/2.7.0 + - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.9 + msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.4 Azure-SDK-For-Python + AZURECLI/2.8.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2020-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2020-06-01 response: body: string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\"\ ,\n \"location\": \"canadacentral\",\n \"name\": \"cliakstest000002\",\n\ \ \"type\": \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\"\ : {\n \"provisioningState\": \"Succeeded\",\n \"kubernetesVersion\": \"\ - 1.15.11\",\n \"dnsPrefix\": \"cliakstest-clitest6tbu2hweu-8ecadf\",\n \ - \ \"fqdn\": \"cliakstest-clitest6tbu2hweu-8ecadf-6f77d203.hcp.canadacentral.azmk8s.io\"\ + 1.15.11\",\n \"dnsPrefix\": \"cliakstest-clitestwqe3hkkdx-8ecadf\",\n \ + \ \"fqdn\": \"cliakstest-clitestwqe3hkkdx-8ecadf-c20e3a93.hcp.canadacentral.azmk8s.io\"\ ,\n \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \ \ \"count\": 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\"\ : 128,\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\"\ @@ -522,7 +571,7 @@ interactions: networkProfile\": {\n \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\"\ : \"Standard\",\n \"loadBalancerProfile\": {\n \"managedOutboundIPs\"\ : {\n \"count\": 1\n },\n \"effectiveOutboundIPs\": [\n \ - \ {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_canadacentral/providers/Microsoft.Network/publicIPAddresses/d7556d0d-1133-4749-85c7-4a12fc907308\"\ + \ {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_canadacentral/providers/Microsoft.Network/publicIPAddresses/c44c711a-af14-4da4-a079-e323f2ec2eaf\"\ \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 \"\ @@ -536,7 +585,7 @@ interactions: content-type: - application/json date: - - Sat, 20 Jun 2020 12:13:43 GMT + - Tue, 23 Jun 2020 11:38:09 GMT expires: - '-1' pragma: @@ -569,21 +618,21 @@ interactions: - --resource-group --name --enable-aad --aad-admin-group-object-ids --aad-tenant-id -o User-Agent: - - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.16 - msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.3 Azure-SDK-For-Python - AZURECLI/2.7.0 + - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.9 + msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.4 Azure-SDK-For-Python + AZURECLI/2.8.0 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2020-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2020-06-01 response: body: string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\"\ ,\n \"location\": \"canadacentral\",\n \"name\": \"cliakstest000002\",\n\ \ \"type\": \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\"\ : {\n \"provisioningState\": \"Succeeded\",\n \"kubernetesVersion\": \"\ - 1.15.11\",\n \"dnsPrefix\": \"cliakstest-clitest6tbu2hweu-8ecadf\",\n \ - \ \"fqdn\": \"cliakstest-clitest6tbu2hweu-8ecadf-6f77d203.hcp.canadacentral.azmk8s.io\"\ + 1.15.11\",\n \"dnsPrefix\": \"cliakstest-clitestwqe3hkkdx-8ecadf\",\n \ + \ \"fqdn\": \"cliakstest-clitestwqe3hkkdx-8ecadf-c20e3a93.hcp.canadacentral.azmk8s.io\"\ ,\n \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \ \ \"count\": 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\"\ : 128,\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\"\ @@ -601,7 +650,7 @@ interactions: networkProfile\": {\n \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\"\ : \"Standard\",\n \"loadBalancerProfile\": {\n \"managedOutboundIPs\"\ : {\n \"count\": 1\n },\n \"effectiveOutboundIPs\": [\n \ - \ {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_canadacentral/providers/Microsoft.Network/publicIPAddresses/d7556d0d-1133-4749-85c7-4a12fc907308\"\ + \ {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_canadacentral/providers/Microsoft.Network/publicIPAddresses/c44c711a-af14-4da4-a079-e323f2ec2eaf\"\ \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 \"\ @@ -615,7 +664,7 @@ interactions: content-type: - application/json date: - - Sat, 20 Jun 2020 12:13:45 GMT + - Tue, 23 Jun 2020 11:38:10 GMT expires: - '-1' pragma: From 1ac66e50ef63ad7b18d689dcb649da3e7fdc97fa Mon Sep 17 00:00:00 2001 From: Bin Xia Date: Wed, 24 Jun 2020 00:38:22 +0000 Subject: [PATCH 4/4] add --enable-aad in the error msg --- src/aks-preview/azext_aks_preview/custom.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/aks-preview/azext_aks_preview/custom.py b/src/aks-preview/azext_aks_preview/custom.py index 06ae8336f97..6c526da4948 100644 --- a/src/aks-preview/azext_aks_preview/custom.py +++ b/src/aks-preview/azext_aks_preview/custom.py @@ -1171,6 +1171,7 @@ def aks_update(cmd, # pylint: disable=too-many-statements,too-many-branches, '"--load-balancer-managed-outbound-ip-count" or ' '"--load-balancer-outbound-ips" or ' '"--load-balancer-outbound-ip-prefixes" or ' + '"--enable-aad" or ' '"--aad-tenant-id" or ' '"--aad-admin-group-object-ids"')