From 4ac5e3629028d37a0e06bca64e795d121317abfe Mon Sep 17 00:00:00 2001 From: Fuming Zhang Date: Fri, 20 Aug 2021 18:24:35 +0800 Subject: [PATCH 1/2] Revert "update new recording file (#19258)" This reverts commit 71635be5ca3aa53b9e755e1221104daa01b4e578. --- ..._aks_create_with_auto_upgrade_channel.yaml | 685 ++++++++++-------- 1 file changed, 399 insertions(+), 286 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_create_with_auto_upgrade_channel.yaml b/src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_create_with_auto_upgrade_channel.yaml index f25885395b0..6ca31e01b49 100644 --- a/src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_create_with_auto_upgrade_channel.yaml +++ b/src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_create_with_auto_upgrade_channel.yaml @@ -14,12 +14,13 @@ interactions: - --resource-group --name --location --generate-ssh-keys --enable-managed-identity --auto-upgrade-channel User-Agent: - - AZURECLI/2.27.1 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.11 (Linux-5.4.0-1055-azure-x86_64-with-glibc2.27) + - AZURECLI/2.27.0 (DOCKER) azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.9 + (Linux-4.19.104-microsoft-standard-x86_64-with) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001","name":"clitest000001","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"product":"azurecli","cause":"automation","date":"2021-08-18T08:48:30Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001","name":"clitest000001","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"product":"azurecli","cause":"automation","date":"2021-08-16T07:25:15Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -28,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 18 Aug 2021 08:48:31 GMT + - Tue, 17 Aug 2021 19:08:19 GMT expires: - '-1' pragma: @@ -43,18 +44,18 @@ interactions: code: 200 message: OK - request: - body: '{"location": "westus2", "identity": {"type": "SystemAssigned"}, "properties": - {"kubernetesVersion": "", "dnsPrefix": "cliakstest-clitestwjp7btsub-8ecadf", - "agentPoolProfiles": [{"count": 3, "vmSize": "Standard_DS2_v2", "osType": "Linux", - "type": "VirtualMachineScaleSets", "mode": "System", "enableNodePublicIP": false, - "scaleSetPriority": "Regular", "scaleSetEvictionPolicy": "Delete", "spotMaxPrice": - -1.0, "enableEncryptionAtHost": false, "enableUltraSSD": false, "name": "nodepool1"}], - "linuxProfile": {"adminUsername": "azureuser", "ssh": {"publicKeys": [{"keyData": - "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDrhJu0ibUw87PNxMqO2MDJPrYvl3p5YkKV1w002MquZbD+3yN/e4rpw6LghxRST9Pq+fiVNeWre5D/o0kyrS+FohJCaT4CS1/5r4Vrly7We4UK5cdmKmjU3riZ22Vh7UR+/qPCska5mg/PufPCa46+MJGGNJOkARHzSB/H1OLy45NMaClnTJDIZ7ljHsj73fIBKuD9zrOUhgzf53YAA8EQFJiK5jahDgX19g0fsuEMuJMLxwuG/DAJC/1QosrMcx4eZUzAKfuuKjrP7S2/ROddDnuIvhTleSjWIA7Rr+Kgm29Pu4iX7kCuqoq9ZIzZXyzG4AZGtkPuoE2e7OHJ8/X1"}]}}, + body: '{"identity": {"type": "SystemAssigned"}, "properties": {"kubernetesVersion": + "", "dnsPrefix": "cliakstest-clitesthvgxefxgf-8ecadf", "agentPoolProfiles": + [{"count": 3, "vmSize": "Standard_DS2_v2", "osType": "Linux", "type": "VirtualMachineScaleSets", + "mode": "System", "enableNodePublicIP": false, "scaleSetPriority": "Regular", + "scaleSetEvictionPolicy": "Delete", "spotMaxPrice": -1.0, "enableEncryptionAtHost": + false, "enableUltraSSD": false, "name": "nodepool1"}], "linuxProfile": {"adminUsername": + "azureuser", "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC7BrN7Z7fvja6OUPwYKSlh8XUH5GKbFAv+01WJwQIHF+6XLJ8Q2SDdmKq2ABvU//T8Vl+83IfCbrSzPzmryQrDUsYP+SeyiTsrkAla9hQaawtdoD5bcp7xjQdbu2AuuJGrfLJbBJ9eTaKhMCvddLZNpe+FcXapW9TS+NRh2t2/eg+vwf0g9o8ucywEaV8YWANbHKZ+cK5mTpZrN9/ZXEEhl5aRQD9xzqzWo2slfH3gRwQjA4jlgzHxUUtQoSvuA69TC2snbMk5LZ0r/XCtt4pxgfwjBCeWVl3WPCs1Df3oUKzEnRRbiMzBxjRBRrMsqu5kcetpcPDDe5kWTKBMNjKT"}]}}, "addonProfiles": {}, "enableRBAC": true, "networkProfile": {"networkPlugin": "kubenet", "podCidr": "10.244.0.0/16", "serviceCidr": "10.0.0.0/16", "dnsServiceIP": "10.0.0.10", "dockerBridgeCidr": "172.17.0.1/16", "outboundType": "loadBalancer", - "loadBalancerSku": "standard"}, "autoUpgradeProfile": {"upgradeChannel": "rapid"}}}' + "loadBalancerSku": "standard"}, "autoUpgradeProfile": {"upgradeChannel": "rapid"}}, + "location": "westus2"}' headers: Accept: - application/json @@ -72,46 +73,48 @@ interactions: - --resource-group --name --location --generate-ssh-keys --enable-managed-identity --auto-upgrade-channel User-Agent: - - AZURECLI/2.27.1 azsdk-python-azure-mgmt-containerservice/16.1.0 Python/3.8.11 - (Linux-5.4.0-1055-azure-x86_64-with-glibc2.27) + - AZURECLI/2.27.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.0.0 Python/3.8.9 + (Linux-4.19.104-microsoft-standard-x86_64-with) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2021-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2021-05-01 response: body: - string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\",\n - \ \"location\": \"westus2\",\n \"name\": \"cliakstest000002\",\n \"type\": - \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": - \"Creating\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": - \"1.20.7\",\n \"dnsPrefix\": \"cliakstest-clitestwjp7btsub-8ecadf\",\n \"fqdn\": - \"cliakstest-clitestwjp7btsub-8ecadf-3c523aac.hcp.westus2.azmk8s.io\",\n \"azurePortalFQDN\": - \"cliakstest-clitestwjp7btsub-8ecadf-3c523aac.portal.hcp.westus2.azmk8s.io\",\n - \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": - 3,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": - \"Managed\",\n \"kubeletDiskType\": \"OS\",\n \"maxPods\": 110,\n - \ \"type\": \"VirtualMachineScaleSets\",\n \"provisioningState\": \"Creating\",\n - \ \"powerState\": {\n \"code\": \"Running\"\n },\n \"orchestratorVersion\": - \"1.20.7\",\n \"enableNodePublicIP\": false,\n \"nodeLabels\": {},\n - \ \"mode\": \"System\",\n \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\": - false,\n \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"nodeImageVersion\": - \"AKSUbuntu-1804gen2containerd-2021.07.25\",\n \"enableFIPS\": false\n - \ }\n ],\n \"linuxProfile\": {\n \"adminUsername\": \"azureuser\",\n - \ \"ssh\": {\n \"publicKeys\": [\n {\n \"keyData\": \"ssh-rsa - AAAAB3NzaC1yc2EAAAADAQABAAABAQDrhJu0ibUw87PNxMqO2MDJPrYvl3p5YkKV1w002MquZbD+3yN/e4rpw6LghxRST9Pq+fiVNeWre5D/o0kyrS+FohJCaT4CS1/5r4Vrly7We4UK5cdmKmjU3riZ22Vh7UR+/qPCska5mg/PufPCa46+MJGGNJOkARHzSB/H1OLy45NMaClnTJDIZ7ljHsj73fIBKuD9zrOUhgzf53YAA8EQFJiK5jahDgX19g0fsuEMuJMLxwuG/DAJC/1QosrMcx4eZUzAKfuuKjrP7S2/ROddDnuIvhTleSjWIA7Rr+Kgm29Pu4iX7kCuqoq9ZIzZXyzG4AZGtkPuoE2e7OHJ8/X1\"\n - \ }\n ]\n }\n },\n \"servicePrincipalProfile\": {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n - \ },\n \"nodeResourceGroup\": \"MC_clitest000001_cliakstest000002_westus2\",\n - \ \"enableRBAC\": true,\n \"networkProfile\": {\n \"networkPlugin\": - \"kubenet\",\n \"loadBalancerSku\": \"standard\",\n \"loadBalancerProfile\": - {\n \"managedOutboundIPs\": {\n \"count\": 1\n }\n },\n \"podCidr\": - \"10.244.0.0/16\",\n \"serviceCidr\": \"10.0.0.0/16\",\n \"dnsServiceIP\": - \"10.0.0.10\",\n \"dockerBridgeCidr\": \"172.17.0.1/16\",\n \"outboundType\": - \"loadBalancer\"\n },\n \"maxAgentPools\": 100,\n \"autoUpgradeProfile\": - {\n \"upgradeChannel\": \"rapid\"\n }\n },\n \"identity\": {\n \"type\": - \"SystemAssigned\",\n \"principalId\":\"00000000-0000-0000-0000-000000000001\",\n - \ \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\n },\n \"sku\": - {\n \"name\": \"Basic\",\n \"tier\": \"Free\"\n }\n }" + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\"\ + ,\n \"location\": \"westus2\",\n \"name\": \"cliakstest000002\",\n \"type\"\ + : \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \ + \ \"provisioningState\": \"Creating\",\n \"powerState\": {\n \"code\"\ + : \"Running\"\n },\n \"kubernetesVersion\": \"1.20.7\",\n \"dnsPrefix\"\ + : \"cliakstest-clitesthvgxefxgf-8ecadf\",\n \"fqdn\": \"cliakstest-clitesthvgxefxgf-8ecadf-f50f966d.hcp.westus2.azmk8s.io\"\ + ,\n \"azurePortalFQDN\": \"cliakstest-clitesthvgxefxgf-8ecadf-f50f966d.portal.hcp.westus2.azmk8s.io\"\ + ,\n \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \ + \ \"count\": 3,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\"\ + : 128,\n \"osDiskType\": \"Managed\",\n \"kubeletDiskType\": \"OS\"\ + ,\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n \ + \ \"provisioningState\": \"Creating\",\n \"powerState\": {\n \"\ + code\": \"Running\"\n },\n \"orchestratorVersion\": \"1.20.7\",\n\ + \ \"enableNodePublicIP\": false,\n \"nodeLabels\": {},\n \"mode\"\ + : \"System\",\n \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\"\ + : false,\n \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"\ + nodeImageVersion\": \"AKSUbuntu-1804gen2containerd-2021.07.25\",\n \"\ + enableFIPS\": false\n }\n ],\n \"linuxProfile\": {\n \"adminUsername\"\ + : \"azureuser\",\n \"ssh\": {\n \"publicKeys\": [\n {\n \ + \ \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC7BrN7Z7fvja6OUPwYKSlh8XUH5GKbFAv+01WJwQIHF+6XLJ8Q2SDdmKq2ABvU//T8Vl+83IfCbrSzPzmryQrDUsYP+SeyiTsrkAla9hQaawtdoD5bcp7xjQdbu2AuuJGrfLJbBJ9eTaKhMCvddLZNpe+FcXapW9TS+NRh2t2/eg+vwf0g9o8ucywEaV8YWANbHKZ+cK5mTpZrN9/ZXEEhl5aRQD9xzqzWo2slfH3gRwQjA4jlgzHxUUtQoSvuA69TC2snbMk5LZ0r/XCtt4pxgfwjBCeWVl3WPCs1Df3oUKzEnRRbiMzBxjRBRrMsqu5kcetpcPDDe5kWTKBMNjKT\"\ + \n }\n ]\n }\n },\n \"servicePrincipalProfile\": {\n \"\ + clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \"nodeResourceGroup\"\ + : \"MC_clitest000001_cliakstest000002_westus2\",\n \"enableRBAC\": true,\n\ + \ \"networkProfile\": {\n \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\"\ + : \"standard\",\n \"loadBalancerProfile\": {\n \"managedOutboundIPs\"\ + : {\n \"count\": 1\n }\n },\n \"podCidr\": \"10.244.0.0/16\"\ + ,\n \"serviceCidr\": \"10.0.0.0/16\",\n \"dnsServiceIP\": \"10.0.0.10\"\ + ,\n \"dockerBridgeCidr\": \"172.17.0.1/16\",\n \"outboundType\": \"\ + loadBalancer\"\n },\n \"maxAgentPools\": 100,\n \"autoUpgradeProfile\"\ + : {\n \"upgradeChannel\": \"rapid\"\n }\n },\n \"identity\": {\n \ + \ \"type\": \"SystemAssigned\",\n \"principalId\":\"00000000-0000-0000-0000-000000000001\"\ + ,\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\n },\n \"sku\"\ + : {\n \"name\": \"Basic\",\n \"tier\": \"Free\"\n }\n }" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/51685376-84be-4118-aa67-af455525bed2?api-version=2016-03-30 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/3226c745-1e77-4bfa-ad0f-51aad83f93c5?api-version=2016-03-30 cache-control: - no-cache content-length: @@ -119,7 +122,7 @@ interactions: content-type: - application/json date: - - Wed, 18 Aug 2021 08:48:39 GMT + - Tue, 17 Aug 2021 19:08:22 GMT expires: - '-1' pragma: @@ -150,23 +153,23 @@ interactions: - --resource-group --name --location --generate-ssh-keys --enable-managed-identity --auto-upgrade-channel User-Agent: - - AZURECLI/2.27.1 azsdk-python-azure-mgmt-containerservice/16.1.0 Python/3.8.11 - (Linux-5.4.0-1055-azure-x86_64-with-glibc2.27) + - AZURECLI/2.27.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.0.0 Python/3.8.9 + (Linux-4.19.104-microsoft-standard-x86_64-with) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/51685376-84be-4118-aa67-af455525bed2?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/3226c745-1e77-4bfa-ad0f-51aad83f93c5?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"76536851-be84-1841-aa67-af455525bed2\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2021-08-18T08:48:39.5933333Z\"\n }" + string: "{\n \"name\": \"45c72632-771e-fa4b-ad0f-51aad83f93c5\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-08-17T19:08:23.2Z\"\n }" headers: cache-control: - no-cache content-length: - - '126' + - '120' content-type: - application/json date: - - Wed, 18 Aug 2021 08:49:09 GMT + - Tue, 17 Aug 2021 19:08:52 GMT expires: - '-1' pragma: @@ -199,23 +202,23 @@ interactions: - --resource-group --name --location --generate-ssh-keys --enable-managed-identity --auto-upgrade-channel User-Agent: - - AZURECLI/2.27.1 azsdk-python-azure-mgmt-containerservice/16.1.0 Python/3.8.11 - (Linux-5.4.0-1055-azure-x86_64-with-glibc2.27) + - AZURECLI/2.27.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.0.0 Python/3.8.9 + (Linux-4.19.104-microsoft-standard-x86_64-with) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/51685376-84be-4118-aa67-af455525bed2?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/3226c745-1e77-4bfa-ad0f-51aad83f93c5?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"76536851-be84-1841-aa67-af455525bed2\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2021-08-18T08:48:39.5933333Z\"\n }" + string: "{\n \"name\": \"45c72632-771e-fa4b-ad0f-51aad83f93c5\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-08-17T19:08:23.2Z\"\n }" headers: cache-control: - no-cache content-length: - - '126' + - '120' content-type: - application/json date: - - Wed, 18 Aug 2021 08:49:40 GMT + - Tue, 17 Aug 2021 19:09:22 GMT expires: - '-1' pragma: @@ -248,23 +251,23 @@ interactions: - --resource-group --name --location --generate-ssh-keys --enable-managed-identity --auto-upgrade-channel User-Agent: - - AZURECLI/2.27.1 azsdk-python-azure-mgmt-containerservice/16.1.0 Python/3.8.11 - (Linux-5.4.0-1055-azure-x86_64-with-glibc2.27) + - AZURECLI/2.27.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.0.0 Python/3.8.9 + (Linux-4.19.104-microsoft-standard-x86_64-with) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/51685376-84be-4118-aa67-af455525bed2?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/3226c745-1e77-4bfa-ad0f-51aad83f93c5?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"76536851-be84-1841-aa67-af455525bed2\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2021-08-18T08:48:39.5933333Z\"\n }" + string: "{\n \"name\": \"45c72632-771e-fa4b-ad0f-51aad83f93c5\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-08-17T19:08:23.2Z\"\n }" headers: cache-control: - no-cache content-length: - - '126' + - '120' content-type: - application/json date: - - Wed, 18 Aug 2021 08:50:09 GMT + - Tue, 17 Aug 2021 19:09:53 GMT expires: - '-1' pragma: @@ -297,23 +300,23 @@ interactions: - --resource-group --name --location --generate-ssh-keys --enable-managed-identity --auto-upgrade-channel User-Agent: - - AZURECLI/2.27.1 azsdk-python-azure-mgmt-containerservice/16.1.0 Python/3.8.11 - (Linux-5.4.0-1055-azure-x86_64-with-glibc2.27) + - AZURECLI/2.27.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.0.0 Python/3.8.9 + (Linux-4.19.104-microsoft-standard-x86_64-with) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/51685376-84be-4118-aa67-af455525bed2?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/3226c745-1e77-4bfa-ad0f-51aad83f93c5?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"76536851-be84-1841-aa67-af455525bed2\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2021-08-18T08:48:39.5933333Z\"\n }" + string: "{\n \"name\": \"45c72632-771e-fa4b-ad0f-51aad83f93c5\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-08-17T19:08:23.2Z\"\n }" headers: cache-control: - no-cache content-length: - - '126' + - '120' content-type: - application/json date: - - Wed, 18 Aug 2021 08:50:39 GMT + - Tue, 17 Aug 2021 19:10:23 GMT expires: - '-1' pragma: @@ -346,23 +349,23 @@ interactions: - --resource-group --name --location --generate-ssh-keys --enable-managed-identity --auto-upgrade-channel User-Agent: - - AZURECLI/2.27.1 azsdk-python-azure-mgmt-containerservice/16.1.0 Python/3.8.11 - (Linux-5.4.0-1055-azure-x86_64-with-glibc2.27) + - AZURECLI/2.27.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.0.0 Python/3.8.9 + (Linux-4.19.104-microsoft-standard-x86_64-with) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/51685376-84be-4118-aa67-af455525bed2?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/3226c745-1e77-4bfa-ad0f-51aad83f93c5?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"76536851-be84-1841-aa67-af455525bed2\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2021-08-18T08:48:39.5933333Z\"\n }" + string: "{\n \"name\": \"45c72632-771e-fa4b-ad0f-51aad83f93c5\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-08-17T19:08:23.2Z\"\n }" headers: cache-control: - no-cache content-length: - - '126' + - '120' content-type: - application/json date: - - Wed, 18 Aug 2021 08:51:10 GMT + - Tue, 17 Aug 2021 19:10:53 GMT expires: - '-1' pragma: @@ -395,23 +398,23 @@ interactions: - --resource-group --name --location --generate-ssh-keys --enable-managed-identity --auto-upgrade-channel User-Agent: - - AZURECLI/2.27.1 azsdk-python-azure-mgmt-containerservice/16.1.0 Python/3.8.11 - (Linux-5.4.0-1055-azure-x86_64-with-glibc2.27) + - AZURECLI/2.27.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.0.0 Python/3.8.9 + (Linux-4.19.104-microsoft-standard-x86_64-with) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/51685376-84be-4118-aa67-af455525bed2?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/3226c745-1e77-4bfa-ad0f-51aad83f93c5?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"76536851-be84-1841-aa67-af455525bed2\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2021-08-18T08:48:39.5933333Z\"\n }" + string: "{\n \"name\": \"45c72632-771e-fa4b-ad0f-51aad83f93c5\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-08-17T19:08:23.2Z\"\n }" headers: cache-control: - no-cache content-length: - - '126' + - '120' content-type: - application/json date: - - Wed, 18 Aug 2021 08:51:40 GMT + - Tue, 17 Aug 2021 19:11:23 GMT expires: - '-1' pragma: @@ -444,24 +447,73 @@ interactions: - --resource-group --name --location --generate-ssh-keys --enable-managed-identity --auto-upgrade-channel User-Agent: - - AZURECLI/2.27.1 azsdk-python-azure-mgmt-containerservice/16.1.0 Python/3.8.11 - (Linux-5.4.0-1055-azure-x86_64-with-glibc2.27) + - AZURECLI/2.27.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.0.0 Python/3.8.9 + (Linux-4.19.104-microsoft-standard-x86_64-with) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/51685376-84be-4118-aa67-af455525bed2?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/3226c745-1e77-4bfa-ad0f-51aad83f93c5?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"76536851-be84-1841-aa67-af455525bed2\",\n \"status\": - \"Succeeded\",\n \"startTime\": \"2021-08-18T08:48:39.5933333Z\",\n \"endTime\": - \"2021-08-18T08:51:45.1534335Z\"\n }" + string: "{\n \"name\": \"45c72632-771e-fa4b-ad0f-51aad83f93c5\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-08-17T19:08:23.2Z\"\n }" headers: cache-control: - no-cache content-length: - - '170' + - '120' + content-type: + - application/json + date: + - Tue, 17 Aug 2021 19:11:53 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --generate-ssh-keys --enable-managed-identity + --auto-upgrade-channel + User-Agent: + - AZURECLI/2.27.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.0.0 Python/3.8.9 + (Linux-4.19.104-microsoft-standard-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/3226c745-1e77-4bfa-ad0f-51aad83f93c5?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"45c72632-771e-fa4b-ad0f-51aad83f93c5\",\n \"status\"\ + : \"Succeeded\",\n \"startTime\": \"2021-08-17T19:08:23.2Z\",\n \"endTime\"\ + : \"2021-08-17T19:12:00.0138999Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '164' content-type: - application/json date: - - Wed, 18 Aug 2021 08:52:10 GMT + - Tue, 17 Aug 2021 19:12:24 GMT expires: - '-1' pragma: @@ -494,47 +546,50 @@ interactions: - --resource-group --name --location --generate-ssh-keys --enable-managed-identity --auto-upgrade-channel User-Agent: - - AZURECLI/2.27.1 azsdk-python-azure-mgmt-containerservice/16.1.0 Python/3.8.11 - (Linux-5.4.0-1055-azure-x86_64-with-glibc2.27) + - AZURECLI/2.27.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.0.0 Python/3.8.9 + (Linux-4.19.104-microsoft-standard-x86_64-with) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2021-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2021-05-01 response: body: - string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\",\n - \ \"location\": \"westus2\",\n \"name\": \"cliakstest000002\",\n \"type\": - \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": - \"Succeeded\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": - \"1.20.7\",\n \"dnsPrefix\": \"cliakstest-clitestwjp7btsub-8ecadf\",\n \"fqdn\": - \"cliakstest-clitestwjp7btsub-8ecadf-3c523aac.hcp.westus2.azmk8s.io\",\n \"azurePortalFQDN\": - \"cliakstest-clitestwjp7btsub-8ecadf-3c523aac.portal.hcp.westus2.azmk8s.io\",\n - \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": - 3,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": - \"Managed\",\n \"kubeletDiskType\": \"OS\",\n \"maxPods\": 110,\n - \ \"type\": \"VirtualMachineScaleSets\",\n \"provisioningState\": \"Succeeded\",\n - \ \"powerState\": {\n \"code\": \"Running\"\n },\n \"orchestratorVersion\": - \"1.20.7\",\n \"enableNodePublicIP\": false,\n \"nodeLabels\": {},\n - \ \"mode\": \"System\",\n \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\": - false,\n \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"nodeImageVersion\": - \"AKSUbuntu-1804gen2containerd-2021.07.25\",\n \"enableFIPS\": false\n - \ }\n ],\n \"linuxProfile\": {\n \"adminUsername\": \"azureuser\",\n - \ \"ssh\": {\n \"publicKeys\": [\n {\n \"keyData\": \"ssh-rsa - AAAAB3NzaC1yc2EAAAADAQABAAABAQDrhJu0ibUw87PNxMqO2MDJPrYvl3p5YkKV1w002MquZbD+3yN/e4rpw6LghxRST9Pq+fiVNeWre5D/o0kyrS+FohJCaT4CS1/5r4Vrly7We4UK5cdmKmjU3riZ22Vh7UR+/qPCska5mg/PufPCa46+MJGGNJOkARHzSB/H1OLy45NMaClnTJDIZ7ljHsj73fIBKuD9zrOUhgzf53YAA8EQFJiK5jahDgX19g0fsuEMuJMLxwuG/DAJC/1QosrMcx4eZUzAKfuuKjrP7S2/ROddDnuIvhTleSjWIA7Rr+Kgm29Pu4iX7kCuqoq9ZIzZXyzG4AZGtkPuoE2e7OHJ8/X1\"\n - \ }\n ]\n }\n },\n \"servicePrincipalProfile\": {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n - \ },\n \"nodeResourceGroup\": \"MC_clitest000001_cliakstest000002_westus2\",\n - \ \"enableRBAC\": true,\n \"networkProfile\": {\n \"networkPlugin\": - \"kubenet\",\n \"loadBalancerSku\": \"Standard\",\n \"loadBalancerProfile\": - {\n \"managedOutboundIPs\": {\n \"count\": 1\n },\n \"effectiveOutboundIPs\": - [\n {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.Network/publicIPAddresses/e56b8f21-cfc7-4a60-8b93-150ba24ccb58\"\n - \ }\n ]\n },\n \"podCidr\": \"10.244.0.0/16\",\n \"serviceCidr\": - \"10.0.0.0/16\",\n \"dnsServiceIP\": \"10.0.0.10\",\n \"dockerBridgeCidr\": - \"172.17.0.1/16\",\n \"outboundType\": \"loadBalancer\"\n },\n \"maxAgentPools\": - 100,\n \"identityProfile\": {\n \"kubeletidentity\": {\n \"resourceId\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cliakstest000002-agentpool\",\n - \ \"clientId\":\"00000000-0000-0000-0000-000000000001\",\n \"objectId\":\"00000000-0000-0000-0000-000000000001\"\n - \ }\n },\n \"autoUpgradeProfile\": {\n \"upgradeChannel\": \"rapid\"\n - \ }\n },\n \"identity\": {\n \"type\": \"SystemAssigned\",\n \"principalId\":\"00000000-0000-0000-0000-000000000001\",\n - \ \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\n },\n \"sku\": - {\n \"name\": \"Basic\",\n \"tier\": \"Free\"\n }\n }" + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\"\ + ,\n \"location\": \"westus2\",\n \"name\": \"cliakstest000002\",\n \"type\"\ + : \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \ + \ \"provisioningState\": \"Succeeded\",\n \"powerState\": {\n \"code\"\ + : \"Running\"\n },\n \"kubernetesVersion\": \"1.20.7\",\n \"dnsPrefix\"\ + : \"cliakstest-clitesthvgxefxgf-8ecadf\",\n \"fqdn\": \"cliakstest-clitesthvgxefxgf-8ecadf-f50f966d.hcp.westus2.azmk8s.io\"\ + ,\n \"azurePortalFQDN\": \"cliakstest-clitesthvgxefxgf-8ecadf-f50f966d.portal.hcp.westus2.azmk8s.io\"\ + ,\n \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \ + \ \"count\": 3,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\"\ + : 128,\n \"osDiskType\": \"Managed\",\n \"kubeletDiskType\": \"OS\"\ + ,\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n \ + \ \"provisioningState\": \"Succeeded\",\n \"powerState\": {\n \ + \ \"code\": \"Running\"\n },\n \"orchestratorVersion\": \"1.20.7\"\ + ,\n \"enableNodePublicIP\": false,\n \"nodeLabels\": {},\n \"\ + mode\": \"System\",\n \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\"\ + : false,\n \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"\ + nodeImageVersion\": \"AKSUbuntu-1804gen2containerd-2021.07.25\",\n \"\ + enableFIPS\": false\n }\n ],\n \"linuxProfile\": {\n \"adminUsername\"\ + : \"azureuser\",\n \"ssh\": {\n \"publicKeys\": [\n {\n \ + \ \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC7BrN7Z7fvja6OUPwYKSlh8XUH5GKbFAv+01WJwQIHF+6XLJ8Q2SDdmKq2ABvU//T8Vl+83IfCbrSzPzmryQrDUsYP+SeyiTsrkAla9hQaawtdoD5bcp7xjQdbu2AuuJGrfLJbBJ9eTaKhMCvddLZNpe+FcXapW9TS+NRh2t2/eg+vwf0g9o8ucywEaV8YWANbHKZ+cK5mTpZrN9/ZXEEhl5aRQD9xzqzWo2slfH3gRwQjA4jlgzHxUUtQoSvuA69TC2snbMk5LZ0r/XCtt4pxgfwjBCeWVl3WPCs1Df3oUKzEnRRbiMzBxjRBRrMsqu5kcetpcPDDe5kWTKBMNjKT\"\ + \n }\n ]\n }\n },\n \"servicePrincipalProfile\": {\n \"\ + clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \"nodeResourceGroup\"\ + : \"MC_clitest000001_cliakstest000002_westus2\",\n \"enableRBAC\": true,\n\ + \ \"networkProfile\": {\n \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\"\ + : \"Standard\",\n \"loadBalancerProfile\": {\n \"managedOutboundIPs\"\ + : {\n \"count\": 1\n },\n \"effectiveOutboundIPs\": [\n \ + \ {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.Network/publicIPAddresses/5404bfc5-8ced-44be-9c39-1f8b7c5dd8e9\"\ + \n }\n ]\n },\n \"podCidr\": \"10.244.0.0/16\",\n \"serviceCidr\"\ + : \"10.0.0.0/16\",\n \"dnsServiceIP\": \"10.0.0.10\",\n \"dockerBridgeCidr\"\ + : \"172.17.0.1/16\",\n \"outboundType\": \"loadBalancer\"\n },\n \"\ + maxAgentPools\": 100,\n \"identityProfile\": {\n \"kubeletidentity\"\ + : {\n \"resourceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cliakstest000002-agentpool\"\ + ,\n \"clientId\":\"00000000-0000-0000-0000-000000000001\",\n \"objectId\"\ + :\"00000000-0000-0000-0000-000000000001\"\n }\n },\n \"autoUpgradeProfile\"\ + : {\n \"upgradeChannel\": \"rapid\"\n }\n },\n \"identity\": {\n \ + \ \"type\": \"SystemAssigned\",\n \"principalId\":\"00000000-0000-0000-0000-000000000001\"\ + ,\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\n },\n \"sku\"\ + : {\n \"name\": \"Basic\",\n \"tier\": \"Free\"\n }\n }" headers: cache-control: - no-cache @@ -543,7 +598,7 @@ interactions: content-type: - application/json date: - - Wed, 18 Aug 2021 08:52:11 GMT + - Tue, 17 Aug 2021 19:12:24 GMT expires: - '-1' pragma: @@ -575,47 +630,50 @@ interactions: ParameterSetName: - --resource-group --name --auto-upgrade-channel User-Agent: - - AZURECLI/2.27.1 azsdk-python-azure-mgmt-containerservice/16.1.0 Python/3.8.11 - (Linux-5.4.0-1055-azure-x86_64-with-glibc2.27) + - AZURECLI/2.27.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.0.0 Python/3.8.9 + (Linux-4.19.104-microsoft-standard-x86_64-with) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2021-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2021-05-01 response: body: - string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\",\n - \ \"location\": \"westus2\",\n \"name\": \"cliakstest000002\",\n \"type\": - \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": - \"Succeeded\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": - \"1.20.7\",\n \"dnsPrefix\": \"cliakstest-clitestwjp7btsub-8ecadf\",\n \"fqdn\": - \"cliakstest-clitestwjp7btsub-8ecadf-3c523aac.hcp.westus2.azmk8s.io\",\n \"azurePortalFQDN\": - \"cliakstest-clitestwjp7btsub-8ecadf-3c523aac.portal.hcp.westus2.azmk8s.io\",\n - \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": - 3,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": - \"Managed\",\n \"kubeletDiskType\": \"OS\",\n \"maxPods\": 110,\n - \ \"type\": \"VirtualMachineScaleSets\",\n \"provisioningState\": \"Succeeded\",\n - \ \"powerState\": {\n \"code\": \"Running\"\n },\n \"orchestratorVersion\": - \"1.20.7\",\n \"enableNodePublicIP\": false,\n \"nodeLabels\": {},\n - \ \"mode\": \"System\",\n \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\": - false,\n \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"nodeImageVersion\": - \"AKSUbuntu-1804gen2containerd-2021.07.25\",\n \"enableFIPS\": false\n - \ }\n ],\n \"linuxProfile\": {\n \"adminUsername\": \"azureuser\",\n - \ \"ssh\": {\n \"publicKeys\": [\n {\n \"keyData\": \"ssh-rsa - AAAAB3NzaC1yc2EAAAADAQABAAABAQDrhJu0ibUw87PNxMqO2MDJPrYvl3p5YkKV1w002MquZbD+3yN/e4rpw6LghxRST9Pq+fiVNeWre5D/o0kyrS+FohJCaT4CS1/5r4Vrly7We4UK5cdmKmjU3riZ22Vh7UR+/qPCska5mg/PufPCa46+MJGGNJOkARHzSB/H1OLy45NMaClnTJDIZ7ljHsj73fIBKuD9zrOUhgzf53YAA8EQFJiK5jahDgX19g0fsuEMuJMLxwuG/DAJC/1QosrMcx4eZUzAKfuuKjrP7S2/ROddDnuIvhTleSjWIA7Rr+Kgm29Pu4iX7kCuqoq9ZIzZXyzG4AZGtkPuoE2e7OHJ8/X1\"\n - \ }\n ]\n }\n },\n \"servicePrincipalProfile\": {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n - \ },\n \"nodeResourceGroup\": \"MC_clitest000001_cliakstest000002_westus2\",\n - \ \"enableRBAC\": true,\n \"networkProfile\": {\n \"networkPlugin\": - \"kubenet\",\n \"loadBalancerSku\": \"Standard\",\n \"loadBalancerProfile\": - {\n \"managedOutboundIPs\": {\n \"count\": 1\n },\n \"effectiveOutboundIPs\": - [\n {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.Network/publicIPAddresses/e56b8f21-cfc7-4a60-8b93-150ba24ccb58\"\n - \ }\n ]\n },\n \"podCidr\": \"10.244.0.0/16\",\n \"serviceCidr\": - \"10.0.0.0/16\",\n \"dnsServiceIP\": \"10.0.0.10\",\n \"dockerBridgeCidr\": - \"172.17.0.1/16\",\n \"outboundType\": \"loadBalancer\"\n },\n \"maxAgentPools\": - 100,\n \"identityProfile\": {\n \"kubeletidentity\": {\n \"resourceId\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cliakstest000002-agentpool\",\n - \ \"clientId\":\"00000000-0000-0000-0000-000000000001\",\n \"objectId\":\"00000000-0000-0000-0000-000000000001\"\n - \ }\n },\n \"autoUpgradeProfile\": {\n \"upgradeChannel\": \"rapid\"\n - \ }\n },\n \"identity\": {\n \"type\": \"SystemAssigned\",\n \"principalId\":\"00000000-0000-0000-0000-000000000001\",\n - \ \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\n },\n \"sku\": - {\n \"name\": \"Basic\",\n \"tier\": \"Free\"\n }\n }" + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\"\ + ,\n \"location\": \"westus2\",\n \"name\": \"cliakstest000002\",\n \"type\"\ + : \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \ + \ \"provisioningState\": \"Succeeded\",\n \"powerState\": {\n \"code\"\ + : \"Running\"\n },\n \"kubernetesVersion\": \"1.20.7\",\n \"dnsPrefix\"\ + : \"cliakstest-clitesthvgxefxgf-8ecadf\",\n \"fqdn\": \"cliakstest-clitesthvgxefxgf-8ecadf-f50f966d.hcp.westus2.azmk8s.io\"\ + ,\n \"azurePortalFQDN\": \"cliakstest-clitesthvgxefxgf-8ecadf-f50f966d.portal.hcp.westus2.azmk8s.io\"\ + ,\n \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \ + \ \"count\": 3,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\"\ + : 128,\n \"osDiskType\": \"Managed\",\n \"kubeletDiskType\": \"OS\"\ + ,\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n \ + \ \"provisioningState\": \"Succeeded\",\n \"powerState\": {\n \ + \ \"code\": \"Running\"\n },\n \"orchestratorVersion\": \"1.20.7\"\ + ,\n \"enableNodePublicIP\": false,\n \"nodeLabels\": {},\n \"\ + mode\": \"System\",\n \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\"\ + : false,\n \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"\ + nodeImageVersion\": \"AKSUbuntu-1804gen2containerd-2021.07.25\",\n \"\ + enableFIPS\": false\n }\n ],\n \"linuxProfile\": {\n \"adminUsername\"\ + : \"azureuser\",\n \"ssh\": {\n \"publicKeys\": [\n {\n \ + \ \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC7BrN7Z7fvja6OUPwYKSlh8XUH5GKbFAv+01WJwQIHF+6XLJ8Q2SDdmKq2ABvU//T8Vl+83IfCbrSzPzmryQrDUsYP+SeyiTsrkAla9hQaawtdoD5bcp7xjQdbu2AuuJGrfLJbBJ9eTaKhMCvddLZNpe+FcXapW9TS+NRh2t2/eg+vwf0g9o8ucywEaV8YWANbHKZ+cK5mTpZrN9/ZXEEhl5aRQD9xzqzWo2slfH3gRwQjA4jlgzHxUUtQoSvuA69TC2snbMk5LZ0r/XCtt4pxgfwjBCeWVl3WPCs1Df3oUKzEnRRbiMzBxjRBRrMsqu5kcetpcPDDe5kWTKBMNjKT\"\ + \n }\n ]\n }\n },\n \"servicePrincipalProfile\": {\n \"\ + clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \"nodeResourceGroup\"\ + : \"MC_clitest000001_cliakstest000002_westus2\",\n \"enableRBAC\": true,\n\ + \ \"networkProfile\": {\n \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\"\ + : \"Standard\",\n \"loadBalancerProfile\": {\n \"managedOutboundIPs\"\ + : {\n \"count\": 1\n },\n \"effectiveOutboundIPs\": [\n \ + \ {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.Network/publicIPAddresses/5404bfc5-8ced-44be-9c39-1f8b7c5dd8e9\"\ + \n }\n ]\n },\n \"podCidr\": \"10.244.0.0/16\",\n \"serviceCidr\"\ + : \"10.0.0.0/16\",\n \"dnsServiceIP\": \"10.0.0.10\",\n \"dockerBridgeCidr\"\ + : \"172.17.0.1/16\",\n \"outboundType\": \"loadBalancer\"\n },\n \"\ + maxAgentPools\": 100,\n \"identityProfile\": {\n \"kubeletidentity\"\ + : {\n \"resourceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cliakstest000002-agentpool\"\ + ,\n \"clientId\":\"00000000-0000-0000-0000-000000000001\",\n \"objectId\"\ + :\"00000000-0000-0000-0000-000000000001\"\n }\n },\n \"autoUpgradeProfile\"\ + : {\n \"upgradeChannel\": \"rapid\"\n }\n },\n \"identity\": {\n \ + \ \"type\": \"SystemAssigned\",\n \"principalId\":\"00000000-0000-0000-0000-000000000001\"\ + ,\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\n },\n \"sku\"\ + : {\n \"name\": \"Basic\",\n \"tier\": \"Free\"\n }\n }" headers: cache-control: - no-cache @@ -624,7 +682,7 @@ interactions: content-type: - application/json date: - - Wed, 18 Aug 2021 08:52:11 GMT + - Tue, 17 Aug 2021 19:12:24 GMT expires: - '-1' pragma: @@ -643,25 +701,26 @@ interactions: code: 200 message: OK - request: - body: '{"location": "westus2", "sku": {"name": "Basic", "tier": "Free"}, "identity": - {"type": "SystemAssigned"}, "properties": {"kubernetesVersion": "1.20.7", "dnsPrefix": - "cliakstest-clitestwjp7btsub-8ecadf", "agentPoolProfiles": [{"count": 3, "vmSize": - "Standard_DS2_v2", "osDiskSizeGB": 128, "osDiskType": "Managed", "kubeletDiskType": - "OS", "maxPods": 110, "osType": "Linux", "osSKU": "Ubuntu", "type": "VirtualMachineScaleSets", - "mode": "System", "orchestratorVersion": "1.20.7", "enableNodePublicIP": false, - "nodeLabels": {}, "enableEncryptionAtHost": false, "enableUltraSSD": false, - "enableFIPS": false, "name": "nodepool1"}], "linuxProfile": {"adminUsername": - "azureuser", "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDrhJu0ibUw87PNxMqO2MDJPrYvl3p5YkKV1w002MquZbD+3yN/e4rpw6LghxRST9Pq+fiVNeWre5D/o0kyrS+FohJCaT4CS1/5r4Vrly7We4UK5cdmKmjU3riZ22Vh7UR+/qPCska5mg/PufPCa46+MJGGNJOkARHzSB/H1OLy45NMaClnTJDIZ7ljHsj73fIBKuD9zrOUhgzf53YAA8EQFJiK5jahDgX19g0fsuEMuJMLxwuG/DAJC/1QosrMcx4eZUzAKfuuKjrP7S2/ROddDnuIvhTleSjWIA7Rr+Kgm29Pu4iX7kCuqoq9ZIzZXyzG4AZGtkPuoE2e7OHJ8/X1"}]}}, + body: '{"identity": {"type": "SystemAssigned"}, "properties": {"kubernetesVersion": + "1.20.7", "dnsPrefix": "cliakstest-clitesthvgxefxgf-8ecadf", "agentPoolProfiles": + [{"count": 3, "vmSize": "Standard_DS2_v2", "osDiskSizeGB": 128, "osDiskType": + "Managed", "kubeletDiskType": "OS", "maxPods": 110, "osType": "Linux", "osSKU": + "Ubuntu", "type": "VirtualMachineScaleSets", "mode": "System", "orchestratorVersion": + "1.20.7", "enableNodePublicIP": false, "nodeLabels": {}, "enableEncryptionAtHost": + false, "enableUltraSSD": false, "enableFIPS": false, "name": "nodepool1"}], + "linuxProfile": {"adminUsername": "azureuser", "ssh": {"publicKeys": [{"keyData": + "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC7BrN7Z7fvja6OUPwYKSlh8XUH5GKbFAv+01WJwQIHF+6XLJ8Q2SDdmKq2ABvU//T8Vl+83IfCbrSzPzmryQrDUsYP+SeyiTsrkAla9hQaawtdoD5bcp7xjQdbu2AuuJGrfLJbBJ9eTaKhMCvddLZNpe+FcXapW9TS+NRh2t2/eg+vwf0g9o8ucywEaV8YWANbHKZ+cK5mTpZrN9/ZXEEhl5aRQD9xzqzWo2slfH3gRwQjA4jlgzHxUUtQoSvuA69TC2snbMk5LZ0r/XCtt4pxgfwjBCeWVl3WPCs1Df3oUKzEnRRbiMzBxjRBRrMsqu5kcetpcPDDe5kWTKBMNjKT"}]}}, "servicePrincipalProfile": {"clientId":"00000000-0000-0000-0000-000000000001"}, "nodeResourceGroup": "MC_clitest000001_cliakstest000002_westus2", "enableRBAC": true, "networkProfile": {"networkPlugin": "kubenet", "podCidr": "10.244.0.0/16", "serviceCidr": "10.0.0.0/16", "dnsServiceIP": "10.0.0.10", "dockerBridgeCidr": "172.17.0.1/16", "outboundType": "loadBalancer", "loadBalancerSku": "Standard", "loadBalancerProfile": {"managedOutboundIPs": {"count": 1}, "effectiveOutboundIPs": - [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.Network/publicIPAddresses/e56b8f21-cfc7-4a60-8b93-150ba24ccb58"}]}}, + [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.Network/publicIPAddresses/5404bfc5-8ced-44be-9c39-1f8b7c5dd8e9"}]}}, "autoUpgradeProfile": {"upgradeChannel": "stable"}, "identityProfile": {"kubeletidentity": {"resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cliakstest000002-agentpool", - "clientId":"00000000-0000-0000-0000-000000000001", "objectId":"00000000-0000-0000-0000-000000000001"}}}}' + "clientId":"00000000-0000-0000-0000-000000000001", "objectId":"00000000-0000-0000-0000-000000000001"}}}, + "location": "westus2", "sku": {"name": "Basic", "tier": "Free"}}' headers: Accept: - application/json @@ -678,50 +737,53 @@ interactions: ParameterSetName: - --resource-group --name --auto-upgrade-channel User-Agent: - - AZURECLI/2.27.1 azsdk-python-azure-mgmt-containerservice/16.1.0 Python/3.8.11 - (Linux-5.4.0-1055-azure-x86_64-with-glibc2.27) + - AZURECLI/2.27.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.0.0 Python/3.8.9 + (Linux-4.19.104-microsoft-standard-x86_64-with) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2021-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2021-05-01 response: body: - string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\",\n - \ \"location\": \"westus2\",\n \"name\": \"cliakstest000002\",\n \"type\": - \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": - \"Updating\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": - \"1.20.7\",\n \"dnsPrefix\": \"cliakstest-clitestwjp7btsub-8ecadf\",\n \"fqdn\": - \"cliakstest-clitestwjp7btsub-8ecadf-3c523aac.hcp.westus2.azmk8s.io\",\n \"azurePortalFQDN\": - \"cliakstest-clitestwjp7btsub-8ecadf-3c523aac.portal.hcp.westus2.azmk8s.io\",\n - \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": - 3,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": - \"Managed\",\n \"kubeletDiskType\": \"OS\",\n \"maxPods\": 110,\n - \ \"type\": \"VirtualMachineScaleSets\",\n \"provisioningState\": \"Updating\",\n - \ \"powerState\": {\n \"code\": \"Running\"\n },\n \"orchestratorVersion\": - \"1.20.7\",\n \"enableNodePublicIP\": false,\n \"nodeLabels\": {},\n - \ \"mode\": \"System\",\n \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\": - false,\n \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"nodeImageVersion\": - \"AKSUbuntu-1804gen2containerd-2021.07.25\",\n \"enableFIPS\": false\n - \ }\n ],\n \"linuxProfile\": {\n \"adminUsername\": \"azureuser\",\n - \ \"ssh\": {\n \"publicKeys\": [\n {\n \"keyData\": \"ssh-rsa - AAAAB3NzaC1yc2EAAAADAQABAAABAQDrhJu0ibUw87PNxMqO2MDJPrYvl3p5YkKV1w002MquZbD+3yN/e4rpw6LghxRST9Pq+fiVNeWre5D/o0kyrS+FohJCaT4CS1/5r4Vrly7We4UK5cdmKmjU3riZ22Vh7UR+/qPCska5mg/PufPCa46+MJGGNJOkARHzSB/H1OLy45NMaClnTJDIZ7ljHsj73fIBKuD9zrOUhgzf53YAA8EQFJiK5jahDgX19g0fsuEMuJMLxwuG/DAJC/1QosrMcx4eZUzAKfuuKjrP7S2/ROddDnuIvhTleSjWIA7Rr+Kgm29Pu4iX7kCuqoq9ZIzZXyzG4AZGtkPuoE2e7OHJ8/X1\"\n - \ }\n ]\n }\n },\n \"servicePrincipalProfile\": {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n - \ },\n \"nodeResourceGroup\": \"MC_clitest000001_cliakstest000002_westus2\",\n - \ \"enableRBAC\": true,\n \"networkProfile\": {\n \"networkPlugin\": - \"kubenet\",\n \"loadBalancerSku\": \"Standard\",\n \"loadBalancerProfile\": - {\n \"managedOutboundIPs\": {\n \"count\": 1\n },\n \"effectiveOutboundIPs\": - [\n {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.Network/publicIPAddresses/e56b8f21-cfc7-4a60-8b93-150ba24ccb58\"\n - \ }\n ]\n },\n \"podCidr\": \"10.244.0.0/16\",\n \"serviceCidr\": - \"10.0.0.0/16\",\n \"dnsServiceIP\": \"10.0.0.10\",\n \"dockerBridgeCidr\": - \"172.17.0.1/16\",\n \"outboundType\": \"loadBalancer\"\n },\n \"maxAgentPools\": - 100,\n \"identityProfile\": {\n \"kubeletidentity\": {\n \"resourceId\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cliakstest000002-agentpool\",\n - \ \"clientId\":\"00000000-0000-0000-0000-000000000001\",\n \"objectId\":\"00000000-0000-0000-0000-000000000001\"\n - \ }\n },\n \"autoUpgradeProfile\": {\n \"upgradeChannel\": \"stable\"\n - \ }\n },\n \"identity\": {\n \"type\": \"SystemAssigned\",\n \"principalId\":\"00000000-0000-0000-0000-000000000001\",\n - \ \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\n },\n \"sku\": - {\n \"name\": \"Basic\",\n \"tier\": \"Free\"\n }\n }" + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\"\ + ,\n \"location\": \"westus2\",\n \"name\": \"cliakstest000002\",\n \"type\"\ + : \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \ + \ \"provisioningState\": \"Updating\",\n \"powerState\": {\n \"code\"\ + : \"Running\"\n },\n \"kubernetesVersion\": \"1.20.7\",\n \"dnsPrefix\"\ + : \"cliakstest-clitesthvgxefxgf-8ecadf\",\n \"fqdn\": \"cliakstest-clitesthvgxefxgf-8ecadf-f50f966d.hcp.westus2.azmk8s.io\"\ + ,\n \"azurePortalFQDN\": \"cliakstest-clitesthvgxefxgf-8ecadf-f50f966d.portal.hcp.westus2.azmk8s.io\"\ + ,\n \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \ + \ \"count\": 3,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\"\ + : 128,\n \"osDiskType\": \"Managed\",\n \"kubeletDiskType\": \"OS\"\ + ,\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n \ + \ \"provisioningState\": \"Updating\",\n \"powerState\": {\n \"\ + code\": \"Running\"\n },\n \"orchestratorVersion\": \"1.20.7\",\n\ + \ \"enableNodePublicIP\": false,\n \"nodeLabels\": {},\n \"mode\"\ + : \"System\",\n \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\"\ + : false,\n \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"\ + nodeImageVersion\": \"AKSUbuntu-1804gen2containerd-2021.07.25\",\n \"\ + enableFIPS\": false\n }\n ],\n \"linuxProfile\": {\n \"adminUsername\"\ + : \"azureuser\",\n \"ssh\": {\n \"publicKeys\": [\n {\n \ + \ \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC7BrN7Z7fvja6OUPwYKSlh8XUH5GKbFAv+01WJwQIHF+6XLJ8Q2SDdmKq2ABvU//T8Vl+83IfCbrSzPzmryQrDUsYP+SeyiTsrkAla9hQaawtdoD5bcp7xjQdbu2AuuJGrfLJbBJ9eTaKhMCvddLZNpe+FcXapW9TS+NRh2t2/eg+vwf0g9o8ucywEaV8YWANbHKZ+cK5mTpZrN9/ZXEEhl5aRQD9xzqzWo2slfH3gRwQjA4jlgzHxUUtQoSvuA69TC2snbMk5LZ0r/XCtt4pxgfwjBCeWVl3WPCs1Df3oUKzEnRRbiMzBxjRBRrMsqu5kcetpcPDDe5kWTKBMNjKT\"\ + \n }\n ]\n }\n },\n \"servicePrincipalProfile\": {\n \"\ + clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \"nodeResourceGroup\"\ + : \"MC_clitest000001_cliakstest000002_westus2\",\n \"enableRBAC\": true,\n\ + \ \"networkProfile\": {\n \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\"\ + : \"Standard\",\n \"loadBalancerProfile\": {\n \"managedOutboundIPs\"\ + : {\n \"count\": 1\n },\n \"effectiveOutboundIPs\": [\n \ + \ {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.Network/publicIPAddresses/5404bfc5-8ced-44be-9c39-1f8b7c5dd8e9\"\ + \n }\n ]\n },\n \"podCidr\": \"10.244.0.0/16\",\n \"serviceCidr\"\ + : \"10.0.0.0/16\",\n \"dnsServiceIP\": \"10.0.0.10\",\n \"dockerBridgeCidr\"\ + : \"172.17.0.1/16\",\n \"outboundType\": \"loadBalancer\"\n },\n \"\ + maxAgentPools\": 100,\n \"identityProfile\": {\n \"kubeletidentity\"\ + : {\n \"resourceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cliakstest000002-agentpool\"\ + ,\n \"clientId\":\"00000000-0000-0000-0000-000000000001\",\n \"objectId\"\ + :\"00000000-0000-0000-0000-000000000001\"\n }\n },\n \"autoUpgradeProfile\"\ + : {\n \"upgradeChannel\": \"stable\"\n }\n },\n \"identity\": {\n \ + \ \"type\": \"SystemAssigned\",\n \"principalId\":\"00000000-0000-0000-0000-000000000001\"\ + ,\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\n },\n \"sku\"\ + : {\n \"name\": \"Basic\",\n \"tier\": \"Free\"\n }\n }" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/b5027526-291e-4216-94ff-2bcc61811cfa?api-version=2016-03-30 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/f6261f05-9be1-4c82-83a8-fb500a14cd3a?api-version=2016-03-30 cache-control: - no-cache content-length: @@ -729,7 +791,7 @@ interactions: content-type: - application/json date: - - Wed, 18 Aug 2021 08:52:14 GMT + - Tue, 17 Aug 2021 19:12:26 GMT expires: - '-1' pragma: @@ -745,7 +807,55 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --auto-upgrade-channel + User-Agent: + - AZURECLI/2.27.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.0.0 Python/3.8.9 + (Linux-4.19.104-microsoft-standard-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/f6261f05-9be1-4c82-83a8-fb500a14cd3a?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"051f26f6-e19b-824c-83a8-fb500a14cd3a\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-08-17T19:12:27.4266666Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 17 Aug 2021 19:12:57 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff status: code: 200 message: OK @@ -763,14 +873,14 @@ interactions: ParameterSetName: - --resource-group --name --auto-upgrade-channel User-Agent: - - AZURECLI/2.27.1 azsdk-python-azure-mgmt-containerservice/16.1.0 Python/3.8.11 - (Linux-5.4.0-1055-azure-x86_64-with-glibc2.27) + - AZURECLI/2.27.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.0.0 Python/3.8.9 + (Linux-4.19.104-microsoft-standard-x86_64-with) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/b5027526-291e-4216-94ff-2bcc61811cfa?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/f6261f05-9be1-4c82-83a8-fb500a14cd3a?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"267502b5-1e29-1642-94ff-2bcc61811cfa\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2021-08-18T08:52:14.4333333Z\"\n }" + string: "{\n \"name\": \"051f26f6-e19b-824c-83a8-fb500a14cd3a\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-08-17T19:12:27.4266666Z\"\n }" headers: cache-control: - no-cache @@ -779,7 +889,7 @@ interactions: content-type: - application/json date: - - Wed, 18 Aug 2021 08:52:45 GMT + - Tue, 17 Aug 2021 19:13:27 GMT expires: - '-1' pragma: @@ -811,15 +921,15 @@ interactions: ParameterSetName: - --resource-group --name --auto-upgrade-channel User-Agent: - - AZURECLI/2.27.1 azsdk-python-azure-mgmt-containerservice/16.1.0 Python/3.8.11 - (Linux-5.4.0-1055-azure-x86_64-with-glibc2.27) + - AZURECLI/2.27.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.0.0 Python/3.8.9 + (Linux-4.19.104-microsoft-standard-x86_64-with) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/b5027526-291e-4216-94ff-2bcc61811cfa?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/f6261f05-9be1-4c82-83a8-fb500a14cd3a?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"267502b5-1e29-1642-94ff-2bcc61811cfa\",\n \"status\": - \"Succeeded\",\n \"startTime\": \"2021-08-18T08:52:14.4333333Z\",\n \"endTime\": - \"2021-08-18T08:53:11.5914726Z\"\n }" + string: "{\n \"name\": \"051f26f6-e19b-824c-83a8-fb500a14cd3a\",\n \"status\"\ + : \"Succeeded\",\n \"startTime\": \"2021-08-17T19:12:27.4266666Z\",\n \"\ + endTime\": \"2021-08-17T19:13:34.0430299Z\"\n }" headers: cache-control: - no-cache @@ -828,7 +938,7 @@ interactions: content-type: - application/json date: - - Wed, 18 Aug 2021 08:53:14 GMT + - Tue, 17 Aug 2021 19:13:57 GMT expires: - '-1' pragma: @@ -860,47 +970,50 @@ interactions: ParameterSetName: - --resource-group --name --auto-upgrade-channel User-Agent: - - AZURECLI/2.27.1 azsdk-python-azure-mgmt-containerservice/16.1.0 Python/3.8.11 - (Linux-5.4.0-1055-azure-x86_64-with-glibc2.27) + - AZURECLI/2.27.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.0.0 Python/3.8.9 + (Linux-4.19.104-microsoft-standard-x86_64-with) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2021-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2021-05-01 response: body: - string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\",\n - \ \"location\": \"westus2\",\n \"name\": \"cliakstest000002\",\n \"type\": - \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": - \"Succeeded\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": - \"1.20.7\",\n \"dnsPrefix\": \"cliakstest-clitestwjp7btsub-8ecadf\",\n \"fqdn\": - \"cliakstest-clitestwjp7btsub-8ecadf-3c523aac.hcp.westus2.azmk8s.io\",\n \"azurePortalFQDN\": - \"cliakstest-clitestwjp7btsub-8ecadf-3c523aac.portal.hcp.westus2.azmk8s.io\",\n - \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": - 3,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": - \"Managed\",\n \"kubeletDiskType\": \"OS\",\n \"maxPods\": 110,\n - \ \"type\": \"VirtualMachineScaleSets\",\n \"provisioningState\": \"Succeeded\",\n - \ \"powerState\": {\n \"code\": \"Running\"\n },\n \"orchestratorVersion\": - \"1.20.7\",\n \"enableNodePublicIP\": false,\n \"nodeLabels\": {},\n - \ \"mode\": \"System\",\n \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\": - false,\n \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"nodeImageVersion\": - \"AKSUbuntu-1804gen2containerd-2021.07.25\",\n \"enableFIPS\": false\n - \ }\n ],\n \"linuxProfile\": {\n \"adminUsername\": \"azureuser\",\n - \ \"ssh\": {\n \"publicKeys\": [\n {\n \"keyData\": \"ssh-rsa - AAAAB3NzaC1yc2EAAAADAQABAAABAQDrhJu0ibUw87PNxMqO2MDJPrYvl3p5YkKV1w002MquZbD+3yN/e4rpw6LghxRST9Pq+fiVNeWre5D/o0kyrS+FohJCaT4CS1/5r4Vrly7We4UK5cdmKmjU3riZ22Vh7UR+/qPCska5mg/PufPCa46+MJGGNJOkARHzSB/H1OLy45NMaClnTJDIZ7ljHsj73fIBKuD9zrOUhgzf53YAA8EQFJiK5jahDgX19g0fsuEMuJMLxwuG/DAJC/1QosrMcx4eZUzAKfuuKjrP7S2/ROddDnuIvhTleSjWIA7Rr+Kgm29Pu4iX7kCuqoq9ZIzZXyzG4AZGtkPuoE2e7OHJ8/X1\"\n - \ }\n ]\n }\n },\n \"servicePrincipalProfile\": {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n - \ },\n \"nodeResourceGroup\": \"MC_clitest000001_cliakstest000002_westus2\",\n - \ \"enableRBAC\": true,\n \"networkProfile\": {\n \"networkPlugin\": - \"kubenet\",\n \"loadBalancerSku\": \"Standard\",\n \"loadBalancerProfile\": - {\n \"managedOutboundIPs\": {\n \"count\": 1\n },\n \"effectiveOutboundIPs\": - [\n {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.Network/publicIPAddresses/e56b8f21-cfc7-4a60-8b93-150ba24ccb58\"\n - \ }\n ]\n },\n \"podCidr\": \"10.244.0.0/16\",\n \"serviceCidr\": - \"10.0.0.0/16\",\n \"dnsServiceIP\": \"10.0.0.10\",\n \"dockerBridgeCidr\": - \"172.17.0.1/16\",\n \"outboundType\": \"loadBalancer\"\n },\n \"maxAgentPools\": - 100,\n \"identityProfile\": {\n \"kubeletidentity\": {\n \"resourceId\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cliakstest000002-agentpool\",\n - \ \"clientId\":\"00000000-0000-0000-0000-000000000001\",\n \"objectId\":\"00000000-0000-0000-0000-000000000001\"\n - \ }\n },\n \"autoUpgradeProfile\": {\n \"upgradeChannel\": \"stable\"\n - \ }\n },\n \"identity\": {\n \"type\": \"SystemAssigned\",\n \"principalId\":\"00000000-0000-0000-0000-000000000001\",\n - \ \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\n },\n \"sku\": - {\n \"name\": \"Basic\",\n \"tier\": \"Free\"\n }\n }" + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\"\ + ,\n \"location\": \"westus2\",\n \"name\": \"cliakstest000002\",\n \"type\"\ + : \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \ + \ \"provisioningState\": \"Succeeded\",\n \"powerState\": {\n \"code\"\ + : \"Running\"\n },\n \"kubernetesVersion\": \"1.20.7\",\n \"dnsPrefix\"\ + : \"cliakstest-clitesthvgxefxgf-8ecadf\",\n \"fqdn\": \"cliakstest-clitesthvgxefxgf-8ecadf-f50f966d.hcp.westus2.azmk8s.io\"\ + ,\n \"azurePortalFQDN\": \"cliakstest-clitesthvgxefxgf-8ecadf-f50f966d.portal.hcp.westus2.azmk8s.io\"\ + ,\n \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \ + \ \"count\": 3,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\"\ + : 128,\n \"osDiskType\": \"Managed\",\n \"kubeletDiskType\": \"OS\"\ + ,\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n \ + \ \"provisioningState\": \"Succeeded\",\n \"powerState\": {\n \ + \ \"code\": \"Running\"\n },\n \"orchestratorVersion\": \"1.20.7\"\ + ,\n \"enableNodePublicIP\": false,\n \"nodeLabels\": {},\n \"\ + mode\": \"System\",\n \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\"\ + : false,\n \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"\ + nodeImageVersion\": \"AKSUbuntu-1804gen2containerd-2021.07.25\",\n \"\ + enableFIPS\": false\n }\n ],\n \"linuxProfile\": {\n \"adminUsername\"\ + : \"azureuser\",\n \"ssh\": {\n \"publicKeys\": [\n {\n \ + \ \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC7BrN7Z7fvja6OUPwYKSlh8XUH5GKbFAv+01WJwQIHF+6XLJ8Q2SDdmKq2ABvU//T8Vl+83IfCbrSzPzmryQrDUsYP+SeyiTsrkAla9hQaawtdoD5bcp7xjQdbu2AuuJGrfLJbBJ9eTaKhMCvddLZNpe+FcXapW9TS+NRh2t2/eg+vwf0g9o8ucywEaV8YWANbHKZ+cK5mTpZrN9/ZXEEhl5aRQD9xzqzWo2slfH3gRwQjA4jlgzHxUUtQoSvuA69TC2snbMk5LZ0r/XCtt4pxgfwjBCeWVl3WPCs1Df3oUKzEnRRbiMzBxjRBRrMsqu5kcetpcPDDe5kWTKBMNjKT\"\ + \n }\n ]\n }\n },\n \"servicePrincipalProfile\": {\n \"\ + clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \"nodeResourceGroup\"\ + : \"MC_clitest000001_cliakstest000002_westus2\",\n \"enableRBAC\": true,\n\ + \ \"networkProfile\": {\n \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\"\ + : \"Standard\",\n \"loadBalancerProfile\": {\n \"managedOutboundIPs\"\ + : {\n \"count\": 1\n },\n \"effectiveOutboundIPs\": [\n \ + \ {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.Network/publicIPAddresses/5404bfc5-8ced-44be-9c39-1f8b7c5dd8e9\"\ + \n }\n ]\n },\n \"podCidr\": \"10.244.0.0/16\",\n \"serviceCidr\"\ + : \"10.0.0.0/16\",\n \"dnsServiceIP\": \"10.0.0.10\",\n \"dockerBridgeCidr\"\ + : \"172.17.0.1/16\",\n \"outboundType\": \"loadBalancer\"\n },\n \"\ + maxAgentPools\": 100,\n \"identityProfile\": {\n \"kubeletidentity\"\ + : {\n \"resourceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cliakstest000002-agentpool\"\ + ,\n \"clientId\":\"00000000-0000-0000-0000-000000000001\",\n \"objectId\"\ + :\"00000000-0000-0000-0000-000000000001\"\n }\n },\n \"autoUpgradeProfile\"\ + : {\n \"upgradeChannel\": \"stable\"\n }\n },\n \"identity\": {\n \ + \ \"type\": \"SystemAssigned\",\n \"principalId\":\"00000000-0000-0000-0000-000000000001\"\ + ,\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\n },\n \"sku\"\ + : {\n \"name\": \"Basic\",\n \"tier\": \"Free\"\n }\n }" headers: cache-control: - no-cache @@ -909,7 +1022,7 @@ interactions: content-type: - application/json date: - - Wed, 18 Aug 2021 08:53:15 GMT + - Tue, 17 Aug 2021 19:13:58 GMT expires: - '-1' pragma: @@ -943,26 +1056,26 @@ interactions: ParameterSetName: - -g -n --yes --no-wait User-Agent: - - AZURECLI/2.27.1 azsdk-python-azure-mgmt-containerservice/16.1.0 Python/3.8.11 - (Linux-5.4.0-1055-azure-x86_64-with-glibc2.27) + - AZURECLI/2.27.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.0.0 Python/3.8.9 + (Linux-4.19.104-microsoft-standard-x86_64-with) method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2021-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2021-05-01 response: body: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/8bac5ed3-ec77-4aa4-b3ed-54e8ace20b99?api-version=2016-03-30 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/61a63911-78fb-4afc-ad8f-09240ddd32f7?api-version=2016-03-30 cache-control: - no-cache content-length: - '0' date: - - Wed, 18 Aug 2021 08:53:17 GMT + - Tue, 17 Aug 2021 19:13:59 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operationresults/8bac5ed3-ec77-4aa4-b3ed-54e8ace20b99?api-version=2016-03-30 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operationresults/61a63911-78fb-4afc-ad8f-09240ddd32f7?api-version=2016-03-30 pragma: - no-cache server: From d7cc707dcf8ee120b3f72fb8583d8954e7bde0a8 Mon Sep 17 00:00:00 2001 From: Fuming Zhang Date: Fri, 20 Aug 2021 18:24:54 +0800 Subject: [PATCH 2/2] Revert "[ACS] `az aks create/update`: Add parameter `--auto-upgrade-channel` to support auto upgrade (#18825)" This reverts commit 6918b294a9edf8cc686220e99b95ae61fba280e8. --- .../azure/cli/command_modules/acs/_help.py | 6 - .../azure/cli/command_modules/acs/_params.py | 10 - .../azure/cli/command_modules/acs/custom.py | 23 +- ..._aks_create_with_auto_upgrade_channel.yaml | 1092 ----------------- .../acs/tests/latest/test_aks_commands.py | 29 - 5 files changed, 1 insertion(+), 1159 deletions(-) delete mode 100644 src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_create_with_auto_upgrade_channel.yaml diff --git a/src/azure-cli/azure/cli/command_modules/acs/_help.py b/src/azure-cli/azure/cli/command_modules/acs/_help.py index 71347c91a81..ae8a912e64d 100644 --- a/src/azure-cli/azure/cli/command_modules/acs/_help.py +++ b/src/azure-cli/azure/cli/command_modules/acs/_help.py @@ -312,9 +312,6 @@ type: string short-summary: How outbound traffic will be configured for a cluster. long-summary: Select between loadBalancer and userDefinedRouting. If not set, defaults to type loadBalancer. Requires --vnet-subnet-id to be provided with a preconfigured route table and --load-balancer-sku to be Standard. - - name: --auto-upgrade-channel - type: string - short-summary: Specify the upgrade channel for autoupgrade. - name: --enable-cluster-autoscaler type: bool short-summary: Enable cluster autoscaler, default value is false. @@ -549,9 +546,6 @@ type: int short-summary: Load balancer idle timeout in minutes. long-summary: Desired idle timeout for load balancer outbound flows, default is 30 minutes. Please specify a value in the range of [4, 100]. - - name: --auto-upgrade-channel - type: string - short-summary: Specify the upgrade channel for autoupgrade. - name: --attach-acr type: string short-summary: Grant the 'acrpull' role assignment to the ACR specified by name or resource ID. diff --git a/src/azure-cli/azure/cli/command_modules/acs/_params.py b/src/azure-cli/azure/cli/command_modules/acs/_params.py index e49ae6047e1..de1de8e23ab 100644 --- a/src/azure-cli/azure/cli/command_modules/acs/_params.py +++ b/src/azure-cli/azure/cli/command_modules/acs/_params.py @@ -64,14 +64,6 @@ "westus", ] -auto_upgrade_channels = [ - "rapid", - "stable", - "patch", - "node-image", - "none" -] - storage_profile_types = ["StorageAccount", "ManagedDisks"] nodepool_mode_type = ["System", "User"] @@ -211,7 +203,6 @@ def load_arguments(self, _): validator=validate_load_balancer_idle_timeout) c.argument('outbound_type', arg_type=get_enum_type([CONST_OUTBOUND_TYPE_LOAD_BALANCER, CONST_OUTBOUND_TYPE_USER_DEFINED_ROUTING])) - c.argument('auto_upgrade_channel', arg_type=get_enum_type(auto_upgrade_channels)) c.argument('enable_cluster_autoscaler', action='store_true') c.argument('cluster_autoscaler_profile', nargs='+', options_list=["--cluster-autoscaler-profile", "--ca-profile"], validator=validate_cluster_autoscaler_profile, help="Space-separated list of key=value pairs for configuring cluster autoscaler. Pass an empty string to clear the profile.") @@ -305,7 +296,6 @@ def load_arguments(self, _): validator=validate_load_balancer_outbound_ports) c.argument('load_balancer_idle_timeout', type=int, validator=validate_load_balancer_idle_timeout) - c.argument('auto_upgrade_channel', arg_type=get_enum_type(auto_upgrade_channels)) c.argument('api_server_authorized_ip_ranges', type=str, validator=validate_ip_ranges) c.argument('enable_ahub', options_list=['--enable-ahub']) diff --git a/src/azure-cli/azure/cli/command_modules/acs/custom.py b/src/azure-cli/azure/cli/command_modules/acs/custom.py index a5c49ee3d27..01ff805a4e2 100644 --- a/src/azure-cli/azure/cli/command_modules/acs/custom.py +++ b/src/azure-cli/azure/cli/command_modules/acs/custom.py @@ -2036,7 +2036,6 @@ def aks_create(cmd, client, resource_group_name, name, ssh_key_value, # pylint: load_balancer_outbound_ports=None, load_balancer_idle_timeout=None, outbound_type=None, - auto_upgrade_channel=None, enable_addons=None, workspace_resource_id=None, vnet_subnet_id=None, @@ -2100,9 +2099,6 @@ def aks_create(cmd, client, resource_group_name, name, ssh_key_value, # pylint: ManagedClusterAADProfile = cmd.get_models('ManagedClusterAADProfile', resource_type=ResourceType.MGMT_CONTAINERSERVICE, operation_group='managed_clusters') - ManagedClusterAutoUpgradeProfile = cmd.get_models('ManagedClusterAutoUpgradeProfile', - resource_type=ResourceType.MGMT_CONTAINERSERVICE, - operation_group='managed_clusters') ManagedClusterAgentPoolProfile = cmd.get_models('ManagedClusterAgentPoolProfile', resource_type=ResourceType.MGMT_CONTAINERSERVICE, operation_group='managed_clusters') @@ -2433,10 +2429,6 @@ def aks_create(cmd, client, resource_group_name, name, ssh_key_value, # pylint: cluster_identity_object_id, assign_kubelet_identity) - auto_upgrade_profile = None - if auto_upgrade_channel is not None: - auto_upgrade_profile = ManagedClusterAutoUpgradeProfile(upgrade_channel=auto_upgrade_channel) - mc = ManagedCluster( location=location, tags=tags, @@ -2454,8 +2446,7 @@ def aks_create(cmd, client, resource_group_name, name, ssh_key_value, # pylint: api_server_access_profile=api_server_access_profile, identity=identity, disk_encryption_set_id=node_osdisk_diskencryptionset_id, - identity_profile=identity_profile, - auto_upgrade_profile=auto_upgrade_profile + identity_profile=identity_profile ) use_custom_private_dns_zone = False @@ -2763,7 +2754,6 @@ def aks_update(cmd, client, resource_group_name, name, enable_ahub=False, disable_ahub=False, windows_admin_password=None, - auto_upgrade_channel=None, enable_managed_identity=False, assign_identity=None, yes=False, @@ -2776,9 +2766,6 @@ def aks_update(cmd, client, resource_group_name, name, ManagedClusterAADProfile = cmd.get_models('ManagedClusterAADProfile', resource_type=ResourceType.MGMT_CONTAINERSERVICE, operation_group='managed_clusters') - ManagedClusterAutoUpgradeProfile = cmd.get_models('ManagedClusterAutoUpgradeProfile', - resource_type=ResourceType.MGMT_CONTAINERSERVICE, - operation_group='managed_clusters') ManagedClusterIdentity = cmd.get_models('ManagedClusterIdentity', resource_type=ResourceType.MGMT_CONTAINERSERVICE, operation_group='managed_clusters') @@ -2808,7 +2795,6 @@ def aks_update(cmd, client, resource_group_name, name, not update_aad_profile and not enable_ahub and not disable_ahub and - not auto_upgrade_channel and not windows_admin_password and not enable_managed_identity and not assign_identity): @@ -2821,7 +2807,6 @@ def aks_update(cmd, client, resource_group_name, name, '"--load-balancer-outbound-ip-prefixes" or' '"--load-balancer-outbound-ports" or' '"--load-balancer-idle-timeout" or' - '"--auto-upgrade-channel" or ' '"--attach-acr" or "--detach-acr" or' '"--uptime-sla" or' '"--no-uptime-sla" or ' @@ -2983,12 +2968,6 @@ def aks_update(cmd, client, resource_group_name, name, if disable_ahub: instance.windows_profile.license_type = 'None' - if instance.auto_upgrade_profile is None: - instance.auto_upgrade_profile = ManagedClusterAutoUpgradeProfile() - - if auto_upgrade_channel is not None: - instance.auto_upgrade_profile.upgrade_channel = auto_upgrade_channel - if windows_admin_password: instance.windows_profile.admin_password = windows_admin_password diff --git a/src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_create_with_auto_upgrade_channel.yaml b/src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_create_with_auto_upgrade_channel.yaml deleted file mode 100644 index 6ca31e01b49..00000000000 --- a/src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_create_with_auto_upgrade_channel.yaml +++ /dev/null @@ -1,1092 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - aks create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --name --location --generate-ssh-keys --enable-managed-identity - --auto-upgrade-channel - User-Agent: - - AZURECLI/2.27.0 (DOCKER) azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.9 - (Linux-4.19.104-microsoft-standard-x86_64-with) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001?api-version=2021-04-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001","name":"clitest000001","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"product":"azurecli","cause":"automation","date":"2021-08-16T07:25:15Z"},"properties":{"provisioningState":"Succeeded"}}' - headers: - cache-control: - - no-cache - content-length: - - '313' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 17 Aug 2021 19:08:19 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: '{"identity": {"type": "SystemAssigned"}, "properties": {"kubernetesVersion": - "", "dnsPrefix": "cliakstest-clitesthvgxefxgf-8ecadf", "agentPoolProfiles": - [{"count": 3, "vmSize": "Standard_DS2_v2", "osType": "Linux", "type": "VirtualMachineScaleSets", - "mode": "System", "enableNodePublicIP": false, "scaleSetPriority": "Regular", - "scaleSetEvictionPolicy": "Delete", "spotMaxPrice": -1.0, "enableEncryptionAtHost": - false, "enableUltraSSD": false, "name": "nodepool1"}], "linuxProfile": {"adminUsername": - "azureuser", "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC7BrN7Z7fvja6OUPwYKSlh8XUH5GKbFAv+01WJwQIHF+6XLJ8Q2SDdmKq2ABvU//T8Vl+83IfCbrSzPzmryQrDUsYP+SeyiTsrkAla9hQaawtdoD5bcp7xjQdbu2AuuJGrfLJbBJ9eTaKhMCvddLZNpe+FcXapW9TS+NRh2t2/eg+vwf0g9o8ucywEaV8YWANbHKZ+cK5mTpZrN9/ZXEEhl5aRQD9xzqzWo2slfH3gRwQjA4jlgzHxUUtQoSvuA69TC2snbMk5LZ0r/XCtt4pxgfwjBCeWVl3WPCs1Df3oUKzEnRRbiMzBxjRBRrMsqu5kcetpcPDDe5kWTKBMNjKT"}]}}, - "addonProfiles": {}, "enableRBAC": true, "networkProfile": {"networkPlugin": - "kubenet", "podCidr": "10.244.0.0/16", "serviceCidr": "10.0.0.0/16", "dnsServiceIP": - "10.0.0.10", "dockerBridgeCidr": "172.17.0.1/16", "outboundType": "loadBalancer", - "loadBalancerSku": "standard"}, "autoUpgradeProfile": {"upgradeChannel": "rapid"}}, - "location": "westus2"}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - aks create - Connection: - - keep-alive - Content-Length: - - '1287' - Content-Type: - - application/json - ParameterSetName: - - --resource-group --name --location --generate-ssh-keys --enable-managed-identity - --auto-upgrade-channel - User-Agent: - - AZURECLI/2.27.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.0.0 Python/3.8.9 - (Linux-4.19.104-microsoft-standard-x86_64-with) - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2021-05-01 - response: - body: - string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\"\ - ,\n \"location\": \"westus2\",\n \"name\": \"cliakstest000002\",\n \"type\"\ - : \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \ - \ \"provisioningState\": \"Creating\",\n \"powerState\": {\n \"code\"\ - : \"Running\"\n },\n \"kubernetesVersion\": \"1.20.7\",\n \"dnsPrefix\"\ - : \"cliakstest-clitesthvgxefxgf-8ecadf\",\n \"fqdn\": \"cliakstest-clitesthvgxefxgf-8ecadf-f50f966d.hcp.westus2.azmk8s.io\"\ - ,\n \"azurePortalFQDN\": \"cliakstest-clitesthvgxefxgf-8ecadf-f50f966d.portal.hcp.westus2.azmk8s.io\"\ - ,\n \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \ - \ \"count\": 3,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\"\ - : 128,\n \"osDiskType\": \"Managed\",\n \"kubeletDiskType\": \"OS\"\ - ,\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n \ - \ \"provisioningState\": \"Creating\",\n \"powerState\": {\n \"\ - code\": \"Running\"\n },\n \"orchestratorVersion\": \"1.20.7\",\n\ - \ \"enableNodePublicIP\": false,\n \"nodeLabels\": {},\n \"mode\"\ - : \"System\",\n \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\"\ - : false,\n \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"\ - nodeImageVersion\": \"AKSUbuntu-1804gen2containerd-2021.07.25\",\n \"\ - enableFIPS\": false\n }\n ],\n \"linuxProfile\": {\n \"adminUsername\"\ - : \"azureuser\",\n \"ssh\": {\n \"publicKeys\": [\n {\n \ - \ \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC7BrN7Z7fvja6OUPwYKSlh8XUH5GKbFAv+01WJwQIHF+6XLJ8Q2SDdmKq2ABvU//T8Vl+83IfCbrSzPzmryQrDUsYP+SeyiTsrkAla9hQaawtdoD5bcp7xjQdbu2AuuJGrfLJbBJ9eTaKhMCvddLZNpe+FcXapW9TS+NRh2t2/eg+vwf0g9o8ucywEaV8YWANbHKZ+cK5mTpZrN9/ZXEEhl5aRQD9xzqzWo2slfH3gRwQjA4jlgzHxUUtQoSvuA69TC2snbMk5LZ0r/XCtt4pxgfwjBCeWVl3WPCs1Df3oUKzEnRRbiMzBxjRBRrMsqu5kcetpcPDDe5kWTKBMNjKT\"\ - \n }\n ]\n }\n },\n \"servicePrincipalProfile\": {\n \"\ - clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \"nodeResourceGroup\"\ - : \"MC_clitest000001_cliakstest000002_westus2\",\n \"enableRBAC\": true,\n\ - \ \"networkProfile\": {\n \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\"\ - : \"standard\",\n \"loadBalancerProfile\": {\n \"managedOutboundIPs\"\ - : {\n \"count\": 1\n }\n },\n \"podCidr\": \"10.244.0.0/16\"\ - ,\n \"serviceCidr\": \"10.0.0.0/16\",\n \"dnsServiceIP\": \"10.0.0.10\"\ - ,\n \"dockerBridgeCidr\": \"172.17.0.1/16\",\n \"outboundType\": \"\ - loadBalancer\"\n },\n \"maxAgentPools\": 100,\n \"autoUpgradeProfile\"\ - : {\n \"upgradeChannel\": \"rapid\"\n }\n },\n \"identity\": {\n \ - \ \"type\": \"SystemAssigned\",\n \"principalId\":\"00000000-0000-0000-0000-000000000001\"\ - ,\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\n },\n \"sku\"\ - : {\n \"name\": \"Basic\",\n \"tier\": \"Free\"\n }\n }" - headers: - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/3226c745-1e77-4bfa-ad0f-51aad83f93c5?api-version=2016-03-30 - cache-control: - - no-cache - content-length: - - '2682' - content-type: - - application/json - date: - - Tue, 17 Aug 2021 19:08:22 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - aks create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --name --location --generate-ssh-keys --enable-managed-identity - --auto-upgrade-channel - User-Agent: - - AZURECLI/2.27.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.0.0 Python/3.8.9 - (Linux-4.19.104-microsoft-standard-x86_64-with) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/3226c745-1e77-4bfa-ad0f-51aad83f93c5?api-version=2016-03-30 - response: - body: - string: "{\n \"name\": \"45c72632-771e-fa4b-ad0f-51aad83f93c5\",\n \"status\"\ - : \"InProgress\",\n \"startTime\": \"2021-08-17T19:08:23.2Z\"\n }" - headers: - cache-control: - - no-cache - content-length: - - '120' - content-type: - - application/json - date: - - Tue, 17 Aug 2021 19:08:52 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - aks create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --name --location --generate-ssh-keys --enable-managed-identity - --auto-upgrade-channel - User-Agent: - - AZURECLI/2.27.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.0.0 Python/3.8.9 - (Linux-4.19.104-microsoft-standard-x86_64-with) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/3226c745-1e77-4bfa-ad0f-51aad83f93c5?api-version=2016-03-30 - response: - body: - string: "{\n \"name\": \"45c72632-771e-fa4b-ad0f-51aad83f93c5\",\n \"status\"\ - : \"InProgress\",\n \"startTime\": \"2021-08-17T19:08:23.2Z\"\n }" - headers: - cache-control: - - no-cache - content-length: - - '120' - content-type: - - application/json - date: - - Tue, 17 Aug 2021 19:09:22 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - aks create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --name --location --generate-ssh-keys --enable-managed-identity - --auto-upgrade-channel - User-Agent: - - AZURECLI/2.27.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.0.0 Python/3.8.9 - (Linux-4.19.104-microsoft-standard-x86_64-with) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/3226c745-1e77-4bfa-ad0f-51aad83f93c5?api-version=2016-03-30 - response: - body: - string: "{\n \"name\": \"45c72632-771e-fa4b-ad0f-51aad83f93c5\",\n \"status\"\ - : \"InProgress\",\n \"startTime\": \"2021-08-17T19:08:23.2Z\"\n }" - headers: - cache-control: - - no-cache - content-length: - - '120' - content-type: - - application/json - date: - - Tue, 17 Aug 2021 19:09:53 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - aks create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --name --location --generate-ssh-keys --enable-managed-identity - --auto-upgrade-channel - User-Agent: - - AZURECLI/2.27.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.0.0 Python/3.8.9 - (Linux-4.19.104-microsoft-standard-x86_64-with) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/3226c745-1e77-4bfa-ad0f-51aad83f93c5?api-version=2016-03-30 - response: - body: - string: "{\n \"name\": \"45c72632-771e-fa4b-ad0f-51aad83f93c5\",\n \"status\"\ - : \"InProgress\",\n \"startTime\": \"2021-08-17T19:08:23.2Z\"\n }" - headers: - cache-control: - - no-cache - content-length: - - '120' - content-type: - - application/json - date: - - Tue, 17 Aug 2021 19:10:23 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - aks create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --name --location --generate-ssh-keys --enable-managed-identity - --auto-upgrade-channel - User-Agent: - - AZURECLI/2.27.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.0.0 Python/3.8.9 - (Linux-4.19.104-microsoft-standard-x86_64-with) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/3226c745-1e77-4bfa-ad0f-51aad83f93c5?api-version=2016-03-30 - response: - body: - string: "{\n \"name\": \"45c72632-771e-fa4b-ad0f-51aad83f93c5\",\n \"status\"\ - : \"InProgress\",\n \"startTime\": \"2021-08-17T19:08:23.2Z\"\n }" - headers: - cache-control: - - no-cache - content-length: - - '120' - content-type: - - application/json - date: - - Tue, 17 Aug 2021 19:10:53 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - aks create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --name --location --generate-ssh-keys --enable-managed-identity - --auto-upgrade-channel - User-Agent: - - AZURECLI/2.27.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.0.0 Python/3.8.9 - (Linux-4.19.104-microsoft-standard-x86_64-with) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/3226c745-1e77-4bfa-ad0f-51aad83f93c5?api-version=2016-03-30 - response: - body: - string: "{\n \"name\": \"45c72632-771e-fa4b-ad0f-51aad83f93c5\",\n \"status\"\ - : \"InProgress\",\n \"startTime\": \"2021-08-17T19:08:23.2Z\"\n }" - headers: - cache-control: - - no-cache - content-length: - - '120' - content-type: - - application/json - date: - - Tue, 17 Aug 2021 19:11:23 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - aks create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --name --location --generate-ssh-keys --enable-managed-identity - --auto-upgrade-channel - User-Agent: - - AZURECLI/2.27.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.0.0 Python/3.8.9 - (Linux-4.19.104-microsoft-standard-x86_64-with) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/3226c745-1e77-4bfa-ad0f-51aad83f93c5?api-version=2016-03-30 - response: - body: - string: "{\n \"name\": \"45c72632-771e-fa4b-ad0f-51aad83f93c5\",\n \"status\"\ - : \"InProgress\",\n \"startTime\": \"2021-08-17T19:08:23.2Z\"\n }" - headers: - cache-control: - - no-cache - content-length: - - '120' - content-type: - - application/json - date: - - Tue, 17 Aug 2021 19:11:53 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - aks create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --name --location --generate-ssh-keys --enable-managed-identity - --auto-upgrade-channel - User-Agent: - - AZURECLI/2.27.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.0.0 Python/3.8.9 - (Linux-4.19.104-microsoft-standard-x86_64-with) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/3226c745-1e77-4bfa-ad0f-51aad83f93c5?api-version=2016-03-30 - response: - body: - string: "{\n \"name\": \"45c72632-771e-fa4b-ad0f-51aad83f93c5\",\n \"status\"\ - : \"Succeeded\",\n \"startTime\": \"2021-08-17T19:08:23.2Z\",\n \"endTime\"\ - : \"2021-08-17T19:12:00.0138999Z\"\n }" - headers: - cache-control: - - no-cache - content-length: - - '164' - content-type: - - application/json - date: - - Tue, 17 Aug 2021 19:12:24 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - aks create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --name --location --generate-ssh-keys --enable-managed-identity - --auto-upgrade-channel - User-Agent: - - AZURECLI/2.27.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.0.0 Python/3.8.9 - (Linux-4.19.104-microsoft-standard-x86_64-with) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2021-05-01 - response: - body: - string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\"\ - ,\n \"location\": \"westus2\",\n \"name\": \"cliakstest000002\",\n \"type\"\ - : \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \ - \ \"provisioningState\": \"Succeeded\",\n \"powerState\": {\n \"code\"\ - : \"Running\"\n },\n \"kubernetesVersion\": \"1.20.7\",\n \"dnsPrefix\"\ - : \"cliakstest-clitesthvgxefxgf-8ecadf\",\n \"fqdn\": \"cliakstest-clitesthvgxefxgf-8ecadf-f50f966d.hcp.westus2.azmk8s.io\"\ - ,\n \"azurePortalFQDN\": \"cliakstest-clitesthvgxefxgf-8ecadf-f50f966d.portal.hcp.westus2.azmk8s.io\"\ - ,\n \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \ - \ \"count\": 3,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\"\ - : 128,\n \"osDiskType\": \"Managed\",\n \"kubeletDiskType\": \"OS\"\ - ,\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n \ - \ \"provisioningState\": \"Succeeded\",\n \"powerState\": {\n \ - \ \"code\": \"Running\"\n },\n \"orchestratorVersion\": \"1.20.7\"\ - ,\n \"enableNodePublicIP\": false,\n \"nodeLabels\": {},\n \"\ - mode\": \"System\",\n \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\"\ - : false,\n \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"\ - nodeImageVersion\": \"AKSUbuntu-1804gen2containerd-2021.07.25\",\n \"\ - enableFIPS\": false\n }\n ],\n \"linuxProfile\": {\n \"adminUsername\"\ - : \"azureuser\",\n \"ssh\": {\n \"publicKeys\": [\n {\n \ - \ \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC7BrN7Z7fvja6OUPwYKSlh8XUH5GKbFAv+01WJwQIHF+6XLJ8Q2SDdmKq2ABvU//T8Vl+83IfCbrSzPzmryQrDUsYP+SeyiTsrkAla9hQaawtdoD5bcp7xjQdbu2AuuJGrfLJbBJ9eTaKhMCvddLZNpe+FcXapW9TS+NRh2t2/eg+vwf0g9o8ucywEaV8YWANbHKZ+cK5mTpZrN9/ZXEEhl5aRQD9xzqzWo2slfH3gRwQjA4jlgzHxUUtQoSvuA69TC2snbMk5LZ0r/XCtt4pxgfwjBCeWVl3WPCs1Df3oUKzEnRRbiMzBxjRBRrMsqu5kcetpcPDDe5kWTKBMNjKT\"\ - \n }\n ]\n }\n },\n \"servicePrincipalProfile\": {\n \"\ - clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \"nodeResourceGroup\"\ - : \"MC_clitest000001_cliakstest000002_westus2\",\n \"enableRBAC\": true,\n\ - \ \"networkProfile\": {\n \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\"\ - : \"Standard\",\n \"loadBalancerProfile\": {\n \"managedOutboundIPs\"\ - : {\n \"count\": 1\n },\n \"effectiveOutboundIPs\": [\n \ - \ {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.Network/publicIPAddresses/5404bfc5-8ced-44be-9c39-1f8b7c5dd8e9\"\ - \n }\n ]\n },\n \"podCidr\": \"10.244.0.0/16\",\n \"serviceCidr\"\ - : \"10.0.0.0/16\",\n \"dnsServiceIP\": \"10.0.0.10\",\n \"dockerBridgeCidr\"\ - : \"172.17.0.1/16\",\n \"outboundType\": \"loadBalancer\"\n },\n \"\ - maxAgentPools\": 100,\n \"identityProfile\": {\n \"kubeletidentity\"\ - : {\n \"resourceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cliakstest000002-agentpool\"\ - ,\n \"clientId\":\"00000000-0000-0000-0000-000000000001\",\n \"objectId\"\ - :\"00000000-0000-0000-0000-000000000001\"\n }\n },\n \"autoUpgradeProfile\"\ - : {\n \"upgradeChannel\": \"rapid\"\n }\n },\n \"identity\": {\n \ - \ \"type\": \"SystemAssigned\",\n \"principalId\":\"00000000-0000-0000-0000-000000000001\"\ - ,\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\n },\n \"sku\"\ - : {\n \"name\": \"Basic\",\n \"tier\": \"Free\"\n }\n }" - headers: - cache-control: - - no-cache - content-length: - - '3345' - content-type: - - application/json - date: - - Tue, 17 Aug 2021 19:12:24 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - aks update - Connection: - - keep-alive - ParameterSetName: - - --resource-group --name --auto-upgrade-channel - User-Agent: - - AZURECLI/2.27.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.0.0 Python/3.8.9 - (Linux-4.19.104-microsoft-standard-x86_64-with) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2021-05-01 - response: - body: - string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\"\ - ,\n \"location\": \"westus2\",\n \"name\": \"cliakstest000002\",\n \"type\"\ - : \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \ - \ \"provisioningState\": \"Succeeded\",\n \"powerState\": {\n \"code\"\ - : \"Running\"\n },\n \"kubernetesVersion\": \"1.20.7\",\n \"dnsPrefix\"\ - : \"cliakstest-clitesthvgxefxgf-8ecadf\",\n \"fqdn\": \"cliakstest-clitesthvgxefxgf-8ecadf-f50f966d.hcp.westus2.azmk8s.io\"\ - ,\n \"azurePortalFQDN\": \"cliakstest-clitesthvgxefxgf-8ecadf-f50f966d.portal.hcp.westus2.azmk8s.io\"\ - ,\n \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \ - \ \"count\": 3,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\"\ - : 128,\n \"osDiskType\": \"Managed\",\n \"kubeletDiskType\": \"OS\"\ - ,\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n \ - \ \"provisioningState\": \"Succeeded\",\n \"powerState\": {\n \ - \ \"code\": \"Running\"\n },\n \"orchestratorVersion\": \"1.20.7\"\ - ,\n \"enableNodePublicIP\": false,\n \"nodeLabels\": {},\n \"\ - mode\": \"System\",\n \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\"\ - : false,\n \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"\ - nodeImageVersion\": \"AKSUbuntu-1804gen2containerd-2021.07.25\",\n \"\ - enableFIPS\": false\n }\n ],\n \"linuxProfile\": {\n \"adminUsername\"\ - : \"azureuser\",\n \"ssh\": {\n \"publicKeys\": [\n {\n \ - \ \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC7BrN7Z7fvja6OUPwYKSlh8XUH5GKbFAv+01WJwQIHF+6XLJ8Q2SDdmKq2ABvU//T8Vl+83IfCbrSzPzmryQrDUsYP+SeyiTsrkAla9hQaawtdoD5bcp7xjQdbu2AuuJGrfLJbBJ9eTaKhMCvddLZNpe+FcXapW9TS+NRh2t2/eg+vwf0g9o8ucywEaV8YWANbHKZ+cK5mTpZrN9/ZXEEhl5aRQD9xzqzWo2slfH3gRwQjA4jlgzHxUUtQoSvuA69TC2snbMk5LZ0r/XCtt4pxgfwjBCeWVl3WPCs1Df3oUKzEnRRbiMzBxjRBRrMsqu5kcetpcPDDe5kWTKBMNjKT\"\ - \n }\n ]\n }\n },\n \"servicePrincipalProfile\": {\n \"\ - clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \"nodeResourceGroup\"\ - : \"MC_clitest000001_cliakstest000002_westus2\",\n \"enableRBAC\": true,\n\ - \ \"networkProfile\": {\n \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\"\ - : \"Standard\",\n \"loadBalancerProfile\": {\n \"managedOutboundIPs\"\ - : {\n \"count\": 1\n },\n \"effectiveOutboundIPs\": [\n \ - \ {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.Network/publicIPAddresses/5404bfc5-8ced-44be-9c39-1f8b7c5dd8e9\"\ - \n }\n ]\n },\n \"podCidr\": \"10.244.0.0/16\",\n \"serviceCidr\"\ - : \"10.0.0.0/16\",\n \"dnsServiceIP\": \"10.0.0.10\",\n \"dockerBridgeCidr\"\ - : \"172.17.0.1/16\",\n \"outboundType\": \"loadBalancer\"\n },\n \"\ - maxAgentPools\": 100,\n \"identityProfile\": {\n \"kubeletidentity\"\ - : {\n \"resourceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cliakstest000002-agentpool\"\ - ,\n \"clientId\":\"00000000-0000-0000-0000-000000000001\",\n \"objectId\"\ - :\"00000000-0000-0000-0000-000000000001\"\n }\n },\n \"autoUpgradeProfile\"\ - : {\n \"upgradeChannel\": \"rapid\"\n }\n },\n \"identity\": {\n \ - \ \"type\": \"SystemAssigned\",\n \"principalId\":\"00000000-0000-0000-0000-000000000001\"\ - ,\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\n },\n \"sku\"\ - : {\n \"name\": \"Basic\",\n \"tier\": \"Free\"\n }\n }" - headers: - cache-control: - - no-cache - content-length: - - '3345' - content-type: - - application/json - date: - - Tue, 17 Aug 2021 19:12:24 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: '{"identity": {"type": "SystemAssigned"}, "properties": {"kubernetesVersion": - "1.20.7", "dnsPrefix": "cliakstest-clitesthvgxefxgf-8ecadf", "agentPoolProfiles": - [{"count": 3, "vmSize": "Standard_DS2_v2", "osDiskSizeGB": 128, "osDiskType": - "Managed", "kubeletDiskType": "OS", "maxPods": 110, "osType": "Linux", "osSKU": - "Ubuntu", "type": "VirtualMachineScaleSets", "mode": "System", "orchestratorVersion": - "1.20.7", "enableNodePublicIP": false, "nodeLabels": {}, "enableEncryptionAtHost": - false, "enableUltraSSD": false, "enableFIPS": false, "name": "nodepool1"}], - "linuxProfile": {"adminUsername": "azureuser", "ssh": {"publicKeys": [{"keyData": - "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC7BrN7Z7fvja6OUPwYKSlh8XUH5GKbFAv+01WJwQIHF+6XLJ8Q2SDdmKq2ABvU//T8Vl+83IfCbrSzPzmryQrDUsYP+SeyiTsrkAla9hQaawtdoD5bcp7xjQdbu2AuuJGrfLJbBJ9eTaKhMCvddLZNpe+FcXapW9TS+NRh2t2/eg+vwf0g9o8ucywEaV8YWANbHKZ+cK5mTpZrN9/ZXEEhl5aRQD9xzqzWo2slfH3gRwQjA4jlgzHxUUtQoSvuA69TC2snbMk5LZ0r/XCtt4pxgfwjBCeWVl3WPCs1Df3oUKzEnRRbiMzBxjRBRrMsqu5kcetpcPDDe5kWTKBMNjKT"}]}}, - "servicePrincipalProfile": {"clientId":"00000000-0000-0000-0000-000000000001"}, - "nodeResourceGroup": "MC_clitest000001_cliakstest000002_westus2", "enableRBAC": - true, "networkProfile": {"networkPlugin": "kubenet", "podCidr": "10.244.0.0/16", - "serviceCidr": "10.0.0.0/16", "dnsServiceIP": "10.0.0.10", "dockerBridgeCidr": - "172.17.0.1/16", "outboundType": "loadBalancer", "loadBalancerSku": "Standard", - "loadBalancerProfile": {"managedOutboundIPs": {"count": 1}, "effectiveOutboundIPs": - [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.Network/publicIPAddresses/5404bfc5-8ced-44be-9c39-1f8b7c5dd8e9"}]}}, - "autoUpgradeProfile": {"upgradeChannel": "stable"}, "identityProfile": {"kubeletidentity": - {"resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cliakstest000002-agentpool", - "clientId":"00000000-0000-0000-0000-000000000001", "objectId":"00000000-0000-0000-0000-000000000001"}}}, - "location": "westus2", "sku": {"name": "Basic", "tier": "Free"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - aks update - Connection: - - keep-alive - Content-Length: - - '2178' - Content-Type: - - application/json - ParameterSetName: - - --resource-group --name --auto-upgrade-channel - User-Agent: - - AZURECLI/2.27.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.0.0 Python/3.8.9 - (Linux-4.19.104-microsoft-standard-x86_64-with) - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2021-05-01 - response: - body: - string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\"\ - ,\n \"location\": \"westus2\",\n \"name\": \"cliakstest000002\",\n \"type\"\ - : \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \ - \ \"provisioningState\": \"Updating\",\n \"powerState\": {\n \"code\"\ - : \"Running\"\n },\n \"kubernetesVersion\": \"1.20.7\",\n \"dnsPrefix\"\ - : \"cliakstest-clitesthvgxefxgf-8ecadf\",\n \"fqdn\": \"cliakstest-clitesthvgxefxgf-8ecadf-f50f966d.hcp.westus2.azmk8s.io\"\ - ,\n \"azurePortalFQDN\": \"cliakstest-clitesthvgxefxgf-8ecadf-f50f966d.portal.hcp.westus2.azmk8s.io\"\ - ,\n \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \ - \ \"count\": 3,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\"\ - : 128,\n \"osDiskType\": \"Managed\",\n \"kubeletDiskType\": \"OS\"\ - ,\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n \ - \ \"provisioningState\": \"Updating\",\n \"powerState\": {\n \"\ - code\": \"Running\"\n },\n \"orchestratorVersion\": \"1.20.7\",\n\ - \ \"enableNodePublicIP\": false,\n \"nodeLabels\": {},\n \"mode\"\ - : \"System\",\n \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\"\ - : false,\n \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"\ - nodeImageVersion\": \"AKSUbuntu-1804gen2containerd-2021.07.25\",\n \"\ - enableFIPS\": false\n }\n ],\n \"linuxProfile\": {\n \"adminUsername\"\ - : \"azureuser\",\n \"ssh\": {\n \"publicKeys\": [\n {\n \ - \ \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC7BrN7Z7fvja6OUPwYKSlh8XUH5GKbFAv+01WJwQIHF+6XLJ8Q2SDdmKq2ABvU//T8Vl+83IfCbrSzPzmryQrDUsYP+SeyiTsrkAla9hQaawtdoD5bcp7xjQdbu2AuuJGrfLJbBJ9eTaKhMCvddLZNpe+FcXapW9TS+NRh2t2/eg+vwf0g9o8ucywEaV8YWANbHKZ+cK5mTpZrN9/ZXEEhl5aRQD9xzqzWo2slfH3gRwQjA4jlgzHxUUtQoSvuA69TC2snbMk5LZ0r/XCtt4pxgfwjBCeWVl3WPCs1Df3oUKzEnRRbiMzBxjRBRrMsqu5kcetpcPDDe5kWTKBMNjKT\"\ - \n }\n ]\n }\n },\n \"servicePrincipalProfile\": {\n \"\ - clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \"nodeResourceGroup\"\ - : \"MC_clitest000001_cliakstest000002_westus2\",\n \"enableRBAC\": true,\n\ - \ \"networkProfile\": {\n \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\"\ - : \"Standard\",\n \"loadBalancerProfile\": {\n \"managedOutboundIPs\"\ - : {\n \"count\": 1\n },\n \"effectiveOutboundIPs\": [\n \ - \ {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.Network/publicIPAddresses/5404bfc5-8ced-44be-9c39-1f8b7c5dd8e9\"\ - \n }\n ]\n },\n \"podCidr\": \"10.244.0.0/16\",\n \"serviceCidr\"\ - : \"10.0.0.0/16\",\n \"dnsServiceIP\": \"10.0.0.10\",\n \"dockerBridgeCidr\"\ - : \"172.17.0.1/16\",\n \"outboundType\": \"loadBalancer\"\n },\n \"\ - maxAgentPools\": 100,\n \"identityProfile\": {\n \"kubeletidentity\"\ - : {\n \"resourceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cliakstest000002-agentpool\"\ - ,\n \"clientId\":\"00000000-0000-0000-0000-000000000001\",\n \"objectId\"\ - :\"00000000-0000-0000-0000-000000000001\"\n }\n },\n \"autoUpgradeProfile\"\ - : {\n \"upgradeChannel\": \"stable\"\n }\n },\n \"identity\": {\n \ - \ \"type\": \"SystemAssigned\",\n \"principalId\":\"00000000-0000-0000-0000-000000000001\"\ - ,\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\n },\n \"sku\"\ - : {\n \"name\": \"Basic\",\n \"tier\": \"Free\"\n }\n }" - headers: - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/f6261f05-9be1-4c82-83a8-fb500a14cd3a?api-version=2016-03-30 - cache-control: - - no-cache - content-length: - - '3344' - content-type: - - application/json - date: - - Tue, 17 Aug 2021 19:12:26 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - aks update - Connection: - - keep-alive - ParameterSetName: - - --resource-group --name --auto-upgrade-channel - User-Agent: - - AZURECLI/2.27.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.0.0 Python/3.8.9 - (Linux-4.19.104-microsoft-standard-x86_64-with) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/f6261f05-9be1-4c82-83a8-fb500a14cd3a?api-version=2016-03-30 - response: - body: - string: "{\n \"name\": \"051f26f6-e19b-824c-83a8-fb500a14cd3a\",\n \"status\"\ - : \"InProgress\",\n \"startTime\": \"2021-08-17T19:12:27.4266666Z\"\n }" - headers: - cache-control: - - no-cache - content-length: - - '126' - content-type: - - application/json - date: - - Tue, 17 Aug 2021 19:12:57 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - aks update - Connection: - - keep-alive - ParameterSetName: - - --resource-group --name --auto-upgrade-channel - User-Agent: - - AZURECLI/2.27.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.0.0 Python/3.8.9 - (Linux-4.19.104-microsoft-standard-x86_64-with) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/f6261f05-9be1-4c82-83a8-fb500a14cd3a?api-version=2016-03-30 - response: - body: - string: "{\n \"name\": \"051f26f6-e19b-824c-83a8-fb500a14cd3a\",\n \"status\"\ - : \"InProgress\",\n \"startTime\": \"2021-08-17T19:12:27.4266666Z\"\n }" - headers: - cache-control: - - no-cache - content-length: - - '126' - content-type: - - application/json - date: - - Tue, 17 Aug 2021 19:13:27 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - aks update - Connection: - - keep-alive - ParameterSetName: - - --resource-group --name --auto-upgrade-channel - User-Agent: - - AZURECLI/2.27.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.0.0 Python/3.8.9 - (Linux-4.19.104-microsoft-standard-x86_64-with) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/f6261f05-9be1-4c82-83a8-fb500a14cd3a?api-version=2016-03-30 - response: - body: - string: "{\n \"name\": \"051f26f6-e19b-824c-83a8-fb500a14cd3a\",\n \"status\"\ - : \"Succeeded\",\n \"startTime\": \"2021-08-17T19:12:27.4266666Z\",\n \"\ - endTime\": \"2021-08-17T19:13:34.0430299Z\"\n }" - headers: - cache-control: - - no-cache - content-length: - - '170' - content-type: - - application/json - date: - - Tue, 17 Aug 2021 19:13:57 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - aks update - Connection: - - keep-alive - ParameterSetName: - - --resource-group --name --auto-upgrade-channel - User-Agent: - - AZURECLI/2.27.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.0.0 Python/3.8.9 - (Linux-4.19.104-microsoft-standard-x86_64-with) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2021-05-01 - response: - body: - string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\"\ - ,\n \"location\": \"westus2\",\n \"name\": \"cliakstest000002\",\n \"type\"\ - : \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \ - \ \"provisioningState\": \"Succeeded\",\n \"powerState\": {\n \"code\"\ - : \"Running\"\n },\n \"kubernetesVersion\": \"1.20.7\",\n \"dnsPrefix\"\ - : \"cliakstest-clitesthvgxefxgf-8ecadf\",\n \"fqdn\": \"cliakstest-clitesthvgxefxgf-8ecadf-f50f966d.hcp.westus2.azmk8s.io\"\ - ,\n \"azurePortalFQDN\": \"cliakstest-clitesthvgxefxgf-8ecadf-f50f966d.portal.hcp.westus2.azmk8s.io\"\ - ,\n \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \ - \ \"count\": 3,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\"\ - : 128,\n \"osDiskType\": \"Managed\",\n \"kubeletDiskType\": \"OS\"\ - ,\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n \ - \ \"provisioningState\": \"Succeeded\",\n \"powerState\": {\n \ - \ \"code\": \"Running\"\n },\n \"orchestratorVersion\": \"1.20.7\"\ - ,\n \"enableNodePublicIP\": false,\n \"nodeLabels\": {},\n \"\ - mode\": \"System\",\n \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\"\ - : false,\n \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"\ - nodeImageVersion\": \"AKSUbuntu-1804gen2containerd-2021.07.25\",\n \"\ - enableFIPS\": false\n }\n ],\n \"linuxProfile\": {\n \"adminUsername\"\ - : \"azureuser\",\n \"ssh\": {\n \"publicKeys\": [\n {\n \ - \ \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC7BrN7Z7fvja6OUPwYKSlh8XUH5GKbFAv+01WJwQIHF+6XLJ8Q2SDdmKq2ABvU//T8Vl+83IfCbrSzPzmryQrDUsYP+SeyiTsrkAla9hQaawtdoD5bcp7xjQdbu2AuuJGrfLJbBJ9eTaKhMCvddLZNpe+FcXapW9TS+NRh2t2/eg+vwf0g9o8ucywEaV8YWANbHKZ+cK5mTpZrN9/ZXEEhl5aRQD9xzqzWo2slfH3gRwQjA4jlgzHxUUtQoSvuA69TC2snbMk5LZ0r/XCtt4pxgfwjBCeWVl3WPCs1Df3oUKzEnRRbiMzBxjRBRrMsqu5kcetpcPDDe5kWTKBMNjKT\"\ - \n }\n ]\n }\n },\n \"servicePrincipalProfile\": {\n \"\ - clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \"nodeResourceGroup\"\ - : \"MC_clitest000001_cliakstest000002_westus2\",\n \"enableRBAC\": true,\n\ - \ \"networkProfile\": {\n \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\"\ - : \"Standard\",\n \"loadBalancerProfile\": {\n \"managedOutboundIPs\"\ - : {\n \"count\": 1\n },\n \"effectiveOutboundIPs\": [\n \ - \ {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.Network/publicIPAddresses/5404bfc5-8ced-44be-9c39-1f8b7c5dd8e9\"\ - \n }\n ]\n },\n \"podCidr\": \"10.244.0.0/16\",\n \"serviceCidr\"\ - : \"10.0.0.0/16\",\n \"dnsServiceIP\": \"10.0.0.10\",\n \"dockerBridgeCidr\"\ - : \"172.17.0.1/16\",\n \"outboundType\": \"loadBalancer\"\n },\n \"\ - maxAgentPools\": 100,\n \"identityProfile\": {\n \"kubeletidentity\"\ - : {\n \"resourceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cliakstest000002-agentpool\"\ - ,\n \"clientId\":\"00000000-0000-0000-0000-000000000001\",\n \"objectId\"\ - :\"00000000-0000-0000-0000-000000000001\"\n }\n },\n \"autoUpgradeProfile\"\ - : {\n \"upgradeChannel\": \"stable\"\n }\n },\n \"identity\": {\n \ - \ \"type\": \"SystemAssigned\",\n \"principalId\":\"00000000-0000-0000-0000-000000000001\"\ - ,\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\n },\n \"sku\"\ - : {\n \"name\": \"Basic\",\n \"tier\": \"Free\"\n }\n }" - headers: - cache-control: - - no-cache - content-length: - - '3346' - content-type: - - application/json - date: - - Tue, 17 Aug 2021 19:13:58 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - aks delete - Connection: - - keep-alive - Content-Length: - - '0' - ParameterSetName: - - -g -n --yes --no-wait - User-Agent: - - AZURECLI/2.27.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.0.0 Python/3.8.9 - (Linux-4.19.104-microsoft-standard-x86_64-with) - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2021-05-01 - response: - body: - string: '' - headers: - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/61a63911-78fb-4afc-ad8f-09240ddd32f7?api-version=2016-03-30 - cache-control: - - no-cache - content-length: - - '0' - date: - - Tue, 17 Aug 2021 19:13:59 GMT - expires: - - '-1' - location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operationresults/61a63911-78fb-4afc-ad8f-09240ddd32f7?api-version=2016-03-30 - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-deletes: - - '14999' - status: - code: 202 - message: Accepted -version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_aks_commands.py b/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_aks_commands.py index 381333ac312..e5521072c84 100644 --- a/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_aks_commands.py +++ b/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_aks_commands.py @@ -4598,35 +4598,6 @@ def test_aks_update_to_msi_cluster_with_addons(self, resource_group, resource_gr self.cmd( 'aks delete -g {resource_group} -n {name} --yes --no-wait', checks=[self.is_empty()]) - @AllowLargeResponse() - @ResourceGroupPreparer(random_name_length=17, name_prefix='clitest', location='westus2') - def test_aks_create_with_auto_upgrade_channel(self, resource_group, resource_group_location): - aks_name = self.create_random_name('cliakstest', 16) - self.kwargs.update({ - 'resource_group': resource_group, - 'name': aks_name, - 'location': resource_group_location, - }) - - # create - create_cmd = 'aks create --resource-group={resource_group} --name={name} --location={location} ' \ - '--generate-ssh-keys --enable-managed-identity ' \ - '--auto-upgrade-channel rapid' - self.cmd(create_cmd, checks=[ - self.check('provisioningState', 'Succeeded'), - self.check('autoUpgradeProfile.upgradeChannel', 'rapid') - ]) - - # update upgrade channel - self.cmd('aks update --resource-group={resource_group} --name={name} --auto-upgrade-channel stable', checks=[ - self.check('provisioningState', 'Succeeded'), - self.check('autoUpgradeProfile.upgradeChannel', 'stable') - ]) - - # delete - self.cmd( - 'aks delete -g {resource_group} -n {name} --yes --no-wait', checks=[self.is_empty()]) - @live_only() @AllowLargeResponse() @AKSCustomResourceGroupPreparer(random_name_length=17, name_prefix='clitest', location='westus2')