From e5472e2b3c330694ff9a4562faa1c6e456a6ee6e Mon Sep 17 00:00:00 2001 From: Will Daly Date: Tue, 1 Aug 2023 12:35:08 -0700 Subject: [PATCH] [AKS] Add --network-dataplane to az aks update command --- .../azure/cli/command_modules/acs/_help.py | 6 + .../azure/cli/command_modules/acs/_params.py | 1 + .../azure/cli/command_modules/acs/custom.py | 1 + .../acs/managed_cluster_decorator.py | 5 + ...s_migrate_cluster_to_cilium_dataplane.yaml | 2307 +++++++++++++++++ .../acs/tests/latest/test_aks_commands.py | 41 +- .../latest/test_managed_cluster_decorator.py | 111 + 7 files changed, 2471 insertions(+), 1 deletion(-) create mode 100644 src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_migrate_cluster_to_cilium_dataplane.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 689d4aea341..e20427401c0 100644 --- a/src/azure-cli/azure/cli/command_modules/acs/_help.py +++ b/src/azure-cli/azure/cli/command_modules/acs/_help.py @@ -614,6 +614,12 @@ - name: --pod-cidr type: string short-summary: Update the pod CIDR for a cluster. Used when updating a cluster from Azure CNI to Azure CNI Overlay. + - name: --network-dataplane + type: string + short-summary: The network dataplane to use. + long-summary: | + Network dataplane used in the Kubernetes cluster. + Specify "azure" to use the Azure dataplane (default) or "cilium" to enable Cilium dataplane. - name: --load-balancer-managed-outbound-ip-count type: int short-summary: Load balancer managed outbound IP count. 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 ad560c78c70..bdf7a7bb0ce 100644 --- a/src/azure-cli/azure/cli/command_modules/acs/_params.py +++ b/src/azure-cli/azure/cli/command_modules/acs/_params.py @@ -328,6 +328,7 @@ def load_arguments(self, _): c.argument('load_balancer_idle_timeout', type=int, validator=validate_load_balancer_idle_timeout) c.argument('nat_gateway_managed_outbound_ip_count', type=int, validator=validate_nat_gateway_managed_outbound_ip_count) c.argument('nat_gateway_idle_timeout', type=int, validator=validate_nat_gateway_idle_timeout) + c.argument('network_dataplane', arg_type=get_enum_type(network_dataplanes)) c.argument('outbound_type', arg_type=get_enum_type(outbound_types)) c.argument('auto_upgrade_channel', arg_type=get_enum_type(auto_upgrade_channels)) c.argument('cluster_autoscaler_profile', nargs='+', options_list=["--cluster-autoscaler-profile", "--ca-profile"], 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 33fd3e85acf..17e1ac32ece 100644 --- a/src/azure-cli/azure/cli/command_modules/acs/custom.py +++ b/src/azure-cli/azure/cli/command_modules/acs/custom.py @@ -652,6 +652,7 @@ def aks_update( disable_local_accounts=False, enable_local_accounts=False, network_plugin_mode=None, + network_dataplane=None, pod_cidr=None, load_balancer_managed_outbound_ip_count=None, load_balancer_managed_outbound_ipv6_count=None, diff --git a/src/azure-cli/azure/cli/command_modules/acs/managed_cluster_decorator.py b/src/azure-cli/azure/cli/command_modules/acs/managed_cluster_decorator.py index 6ef7615a3f8..a501176a5f0 100644 --- a/src/azure-cli/azure/cli/command_modules/acs/managed_cluster_decorator.py +++ b/src/azure-cli/azure/cli/command_modules/acs/managed_cluster_decorator.py @@ -6687,6 +6687,11 @@ def update_network_plugin_settings(self, mc: ManagedCluster) -> ManagedCluster: _, _ ) = self.context.get_pod_cidr_and_service_cidr_and_dns_service_ip_and_docker_bridge_address_and_network_policy() + + network_dataplane = self.context.get_network_dataplane() + if network_dataplane: + mc.network_profile.network_dataplane = network_dataplane + if pod_cidr: mc.network_profile.pod_cidr = pod_cidr return mc diff --git a/src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_migrate_cluster_to_cilium_dataplane.yaml b/src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_migrate_cluster_to_cilium_dataplane.yaml new file mode 100644 index 00000000000..0b63a3d395b --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_migrate_cluster_to_cilium_dataplane.yaml @@ -0,0 +1,2307 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks get-versions + Connection: + - keep-alive + ParameterSetName: + - -l --query + User-Agent: + - AZURECLI/2.51.0 azsdk-python-azure-mgmt-containerservice/25.0.0 Python/3.10.12 + (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/kubernetesVersions?api-version=2023-06-01 + response: + body: + string: "{\n \"values\": [\n {\n \"version\": \"1.27\",\n \"capabilities\": + {\n \"supportPlan\": [\n \"KubernetesOfficial\",\n \"AKSLongTermSupport\"\n + \ ]\n },\n \"patchVersions\": {\n \"1.27.1\": {\n \"upgrades\": + [\n \"1.27.3\"\n ]\n },\n \"1.27.3\": {\n \"upgrades\": + []\n }\n }\n },\n {\n \"version\": \"1.24\",\n \"capabilities\": + {\n \"supportPlan\": [\n \"KubernetesOfficial\"\n ]\n },\n + \ \"patchVersions\": {\n \"1.24.10\": {\n \"upgrades\": [\n \"1.24.15\",\n + \ \"1.25.6\",\n \"1.25.11\"\n ]\n },\n \"1.24.15\": + {\n \"upgrades\": [\n \"1.25.6\",\n \"1.25.11\"\n ]\n + \ }\n }\n },\n {\n \"version\": \"1.25\",\n \"capabilities\": + {\n \"supportPlan\": [\n \"KubernetesOfficial\"\n ]\n },\n + \ \"patchVersions\": {\n \"1.25.11\": {\n \"upgrades\": [\n \"1.26.3\",\n + \ \"1.26.6\"\n ]\n },\n \"1.25.6\": {\n \"upgrades\": + [\n \"1.25.11\",\n \"1.26.3\",\n \"1.26.6\"\n ]\n }\n + \ }\n },\n {\n \"version\": \"1.26\",\n \"capabilities\": {\n + \ \"supportPlan\": [\n \"KubernetesOfficial\"\n ]\n },\n \"patchVersions\": + {\n \"1.26.3\": {\n \"upgrades\": [\n \"1.27.1\",\n \"1.27.3\",\n + \ \"1.26.6\"\n ]\n },\n \"1.26.6\": {\n \"upgrades\": + [\n \"1.27.1\",\n \"1.27.3\"\n ]\n }\n }\n }\n ]\n + }" + headers: + cache-control: + - no-cache + content-length: + - '1326' + content-type: + - application/json + date: + - Tue, 01 Aug 2023 22:13:19 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --network-plugin --ssh-key-value --kubernetes-version + --network-plugin-mode + User-Agent: + - AZURECLI/2.51.0 azsdk-python-azure-mgmt-containerservice/25.0.0 Python/3.10.12 + (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2023-06-01 + response: + body: + string: '{"error":{"code":"ResourceNotFound","message":"The Resource ''Microsoft.ContainerService/managedClusters/cliakstest000002'' + under resource group ''clitest000001'' was not found. For more details please + go to https://aka.ms/ARMResourceNotFoundFix"}}' + headers: + cache-control: + - no-cache + content-length: + - '244' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 01 Aug 2023 22:13:20 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-failure-cause: + - gateway + status: + code: 404 + message: Not Found +- request: + body: '{"location": "eastus", "identity": {"type": "SystemAssigned"}, "properties": + {"kubernetesVersion": "1.27.3", "dnsPrefix": "cliakstest-clitestpghvkf4ni-18153b", + "agentPoolProfiles": [{"count": 3, "vmSize": "Standard_DS2_v2", "osDiskSizeGB": + 0, "osType": "Linux", "enableAutoScaling": false, "type": "VirtualMachineScaleSets", + "mode": "System", "orchestratorVersion": "1.27.3", "upgradeSettings": {}, "enableNodePublicIP": + false, "scaleSetPriority": "Regular", "scaleSetEvictionPolicy": "Delete", "spotMaxPrice": + -1.0, "nodeTaints": [], "enableEncryptionAtHost": false, "enableUltraSSD": false, + "enableFIPS": false, "name": "nodepool1"}], "linuxProfile": {"adminUsername": + "azureuser", "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCbIg1guRHbI0lV11wWDt1r2cUdcNd27CJsg+SfgC7miZeubtwUhbsPdhMQsfDyhOWHq1+ZL0M+nJZV63d/1dhmhtgyOqejUwrPlzKhydsbrsdUor+JmNJDdW01v7BXHyuymT8G4s09jCasNOwiufbP/qp72ruu0bIA1nySsvlf9pCQAuFkAnVnf/rFhUlOkhtRpwcq8SUNY2zRHR/EKb/4NWY1JzR4sa3q2fWIJdrrX0DvLoa5g9bIEd4Df79ba7v+yiUBOS0zT2ll+z4g9izHK3EO5d8hL4jYxcjKs+wcslSYRWrascfscLgMlMGh0CdKeNTDjHpGPncaf3Z+FwwwjWeuiNBxv7bJo13/8B/098KlVDl4GZqsoBCEjPyJfV6hO0y/LkRGkk7oHWKgeWAfKtfLItRp00eZ4fcJNK9kCaSMmEugoZWcI7NGbZXzqFWqbpRI7NcDP9+WIQ+i9U5vqWsqd/zng4kbuAJ6UuKqIzB0upYrLShfQE3SAck8oaLhJqqq56VfDuASNpJKidV+zq27HfSBmbXnkR/5AK337dc3MXKJypoK/QPMLKUAP5XLPbs+NddJQV7EZXd29DLgp+fRIg3edpKdO7ZErWhv7d+3Kws+e1Y+ypmR2WIVSwVyBEUfgv2C8Ts9gnTF4pNcEY/S2aBicz5Ew2+jdyGNQQ== + test@example.com\n"}]}}, "addonProfiles": {}, "enableRBAC": true, "networkProfile": + {"networkPlugin": "azure", "networkPluginMode": "overlay", "outboundType": "loadBalancer", + "loadBalancerSku": "standard"}, "disableLocalAccounts": false, "storageProfile": + {}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '1705' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --name --location --network-plugin --ssh-key-value --kubernetes-version + --network-plugin-mode + User-Agent: + - AZURECLI/2.51.0 azsdk-python-azure-mgmt-containerservice/25.0.0 Python/3.10.12 + (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2023-06-01 + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\",\n + \ \"location\": \"eastus\",\n \"name\": \"cliakstest000002\",\n \"type\": + \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": + \"Creating\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": + \"1.27.3\",\n \"currentKubernetesVersion\": \"1.27.3\",\n \"dnsPrefix\": + \"cliakstest-clitestpghvkf4ni-18153b\",\n \"fqdn\": \"cliakstest-clitestpghvkf4ni-18153b-jeu6rftd.hcp.eastus.azmk8s.io\",\n + \ \"azurePortalFQDN\": \"cliakstest-clitestpghvkf4ni-18153b-jeu6rftd.portal.hcp.eastus.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\": 250,\n + \ \"type\": \"VirtualMachineScaleSets\",\n \"enableAutoScaling\": false,\n + \ \"provisioningState\": \"Creating\",\n \"powerState\": {\n \"code\": + \"Running\"\n },\n \"orchestratorVersion\": \"1.27.3\",\n \"currentOrchestratorVersion\": + \"1.27.3\",\n \"enableNodePublicIP\": false,\n \"mode\": \"System\",\n + \ \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\": false,\n + \ \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"nodeImageVersion\": + \"AKSUbuntu-2204gen2containerd-202307.12.0\",\n \"upgradeSettings\": {},\n + \ \"enableFIPS\": false\n }\n ],\n \"linuxProfile\": {\n \"adminUsername\": + \"azureuser\",\n \"ssh\": {\n \"publicKeys\": [\n {\n \"keyData\": + \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCbIg1guRHbI0lV11wWDt1r2cUdcNd27CJsg+SfgC7miZeubtwUhbsPdhMQsfDyhOWHq1+ZL0M+nJZV63d/1dhmhtgyOqejUwrPlzKhydsbrsdUor+JmNJDdW01v7BXHyuymT8G4s09jCasNOwiufbP/qp72ruu0bIA1nySsvlf9pCQAuFkAnVnf/rFhUlOkhtRpwcq8SUNY2zRHR/EKb/4NWY1JzR4sa3q2fWIJdrrX0DvLoa5g9bIEd4Df79ba7v+yiUBOS0zT2ll+z4g9izHK3EO5d8hL4jYxcjKs+wcslSYRWrascfscLgMlMGh0CdKeNTDjHpGPncaf3Z+FwwwjWeuiNBxv7bJo13/8B/098KlVDl4GZqsoBCEjPyJfV6hO0y/LkRGkk7oHWKgeWAfKtfLItRp00eZ4fcJNK9kCaSMmEugoZWcI7NGbZXzqFWqbpRI7NcDP9+WIQ+i9U5vqWsqd/zng4kbuAJ6UuKqIzB0upYrLShfQE3SAck8oaLhJqqq56VfDuASNpJKidV+zq27HfSBmbXnkR/5AK337dc3MXKJypoK/QPMLKUAP5XLPbs+NddJQV7EZXd29DLgp+fRIg3edpKdO7ZErWhv7d+3Kws+e1Y+ypmR2WIVSwVyBEUfgv2C8Ts9gnTF4pNcEY/S2aBicz5Ew2+jdyGNQQ== + test@example.com\\n\"\n }\n ]\n }\n },\n \"windowsProfile\": + {\n \"adminUsername\": \"azureuser\",\n \"enableCSIProxy\": true\n },\n + \ \"servicePrincipalProfile\": {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n + \ },\n \"nodeResourceGroup\": \"MC_clitest000001_cliakstest000002_eastus\",\n + \ \"enableRBAC\": true,\n \"supportPlan\": \"KubernetesOfficial\",\n \"networkProfile\": + {\n \"networkPlugin\": \"azure\",\n \"networkPluginMode\": \"overlay\",\n + \ \"networkDataplane\": \"azure\",\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 \"outboundType\": + \"loadBalancer\",\n \"podCidrs\": [\n \"10.244.0.0/16\"\n ],\n \"serviceCidrs\": + [\n \"10.0.0.0/16\"\n ],\n \"ipFamilies\": [\n \"IPv4\"\n ]\n + \ },\n \"maxAgentPools\": 100,\n \"autoUpgradeProfile\": {\n \"nodeOSUpgradeChannel\": + \"NodeImage\"\n },\n \"disableLocalAccounts\": false,\n \"securityProfile\": + {},\n \"storageProfile\": {\n \"diskCSIDriver\": {\n \"enabled\": + true\n },\n \"fileCSIDriver\": {\n \"enabled\": true\n },\n \"snapshotController\": + {\n \"enabled\": true\n }\n },\n \"oidcIssuerProfile\": {\n \"enabled\": + false\n },\n \"workloadAutoScalerProfile\": {}\n },\n \"identity\": + {\n \"type\": \"SystemAssigned\",\n \"principalId\":\"00000000-0000-0000-0000-000000000001\",\n + \ \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\n },\n \"sku\": + {\n \"name\": \"Base\",\n \"tier\": \"Free\"\n }\n }" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/4e54589e-9354-4b63-a8ad-d56499aa7690?api-version=2017-08-31 + cache-control: + - no-cache + content-length: + - '3822' + content-type: + - application/json + date: + - Tue, 01 Aug 2023 22:13:25 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 --network-plugin --ssh-key-value --kubernetes-version + --network-plugin-mode + User-Agent: + - AZURECLI/2.51.0 azsdk-python-azure-mgmt-containerservice/25.0.0 Python/3.10.12 + (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/4e54589e-9354-4b63-a8ad-d56499aa7690?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"9e58544e-5493-634b-a8ad-d56499aa7690\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-08-01T22:13:25.0978328Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 01 Aug 2023 22:13:25 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --network-plugin --ssh-key-value --kubernetes-version + --network-plugin-mode + User-Agent: + - AZURECLI/2.51.0 azsdk-python-azure-mgmt-containerservice/25.0.0 Python/3.10.12 + (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/4e54589e-9354-4b63-a8ad-d56499aa7690?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"9e58544e-5493-634b-a8ad-d56499aa7690\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-08-01T22:13:25.0978328Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 01 Aug 2023 22:13:55 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --network-plugin --ssh-key-value --kubernetes-version + --network-plugin-mode + User-Agent: + - AZURECLI/2.51.0 azsdk-python-azure-mgmt-containerservice/25.0.0 Python/3.10.12 + (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/4e54589e-9354-4b63-a8ad-d56499aa7690?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"9e58544e-5493-634b-a8ad-d56499aa7690\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-08-01T22:13:25.0978328Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 01 Aug 2023 22:14:25 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --network-plugin --ssh-key-value --kubernetes-version + --network-plugin-mode + User-Agent: + - AZURECLI/2.51.0 azsdk-python-azure-mgmt-containerservice/25.0.0 Python/3.10.12 + (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/4e54589e-9354-4b63-a8ad-d56499aa7690?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"9e58544e-5493-634b-a8ad-d56499aa7690\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-08-01T22:13:25.0978328Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 01 Aug 2023 22:14:55 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --network-plugin --ssh-key-value --kubernetes-version + --network-plugin-mode + User-Agent: + - AZURECLI/2.51.0 azsdk-python-azure-mgmt-containerservice/25.0.0 Python/3.10.12 + (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/4e54589e-9354-4b63-a8ad-d56499aa7690?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"9e58544e-5493-634b-a8ad-d56499aa7690\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-08-01T22:13:25.0978328Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 01 Aug 2023 22:15:25 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --network-plugin --ssh-key-value --kubernetes-version + --network-plugin-mode + User-Agent: + - AZURECLI/2.51.0 azsdk-python-azure-mgmt-containerservice/25.0.0 Python/3.10.12 + (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/4e54589e-9354-4b63-a8ad-d56499aa7690?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"9e58544e-5493-634b-a8ad-d56499aa7690\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-08-01T22:13:25.0978328Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 01 Aug 2023 22:15:56 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --network-plugin --ssh-key-value --kubernetes-version + --network-plugin-mode + User-Agent: + - AZURECLI/2.51.0 azsdk-python-azure-mgmt-containerservice/25.0.0 Python/3.10.12 + (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/4e54589e-9354-4b63-a8ad-d56499aa7690?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"9e58544e-5493-634b-a8ad-d56499aa7690\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-08-01T22:13:25.0978328Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 01 Aug 2023 22:16:26 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --network-plugin --ssh-key-value --kubernetes-version + --network-plugin-mode + User-Agent: + - AZURECLI/2.51.0 azsdk-python-azure-mgmt-containerservice/25.0.0 Python/3.10.12 + (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/4e54589e-9354-4b63-a8ad-d56499aa7690?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"9e58544e-5493-634b-a8ad-d56499aa7690\",\n \"status\": + \"Succeeded\",\n \"startTime\": \"2023-08-01T22:13:25.0978328Z\",\n \"endTime\": + \"2023-08-01T22:16:42.0867009Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '170' + content-type: + - application/json + date: + - Tue, 01 Aug 2023 22:16:56 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --network-plugin --ssh-key-value --kubernetes-version + --network-plugin-mode + User-Agent: + - AZURECLI/2.51.0 azsdk-python-azure-mgmt-containerservice/25.0.0 Python/3.10.12 + (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2023-06-01 + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\",\n + \ \"location\": \"eastus\",\n \"name\": \"cliakstest000002\",\n \"type\": + \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": + \"Succeeded\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": + \"1.27.3\",\n \"currentKubernetesVersion\": \"1.27.3\",\n \"dnsPrefix\": + \"cliakstest-clitestpghvkf4ni-18153b\",\n \"fqdn\": \"cliakstest-clitestpghvkf4ni-18153b-jeu6rftd.hcp.eastus.azmk8s.io\",\n + \ \"azurePortalFQDN\": \"cliakstest-clitestpghvkf4ni-18153b-jeu6rftd.portal.hcp.eastus.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\": 250,\n + \ \"type\": \"VirtualMachineScaleSets\",\n \"enableAutoScaling\": false,\n + \ \"provisioningState\": \"Succeeded\",\n \"powerState\": {\n \"code\": + \"Running\"\n },\n \"orchestratorVersion\": \"1.27.3\",\n \"currentOrchestratorVersion\": + \"1.27.3\",\n \"enableNodePublicIP\": false,\n \"mode\": \"System\",\n + \ \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\": false,\n + \ \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"nodeImageVersion\": + \"AKSUbuntu-2204gen2containerd-202307.12.0\",\n \"upgradeSettings\": {},\n + \ \"enableFIPS\": false\n }\n ],\n \"linuxProfile\": {\n \"adminUsername\": + \"azureuser\",\n \"ssh\": {\n \"publicKeys\": [\n {\n \"keyData\": + \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCbIg1guRHbI0lV11wWDt1r2cUdcNd27CJsg+SfgC7miZeubtwUhbsPdhMQsfDyhOWHq1+ZL0M+nJZV63d/1dhmhtgyOqejUwrPlzKhydsbrsdUor+JmNJDdW01v7BXHyuymT8G4s09jCasNOwiufbP/qp72ruu0bIA1nySsvlf9pCQAuFkAnVnf/rFhUlOkhtRpwcq8SUNY2zRHR/EKb/4NWY1JzR4sa3q2fWIJdrrX0DvLoa5g9bIEd4Df79ba7v+yiUBOS0zT2ll+z4g9izHK3EO5d8hL4jYxcjKs+wcslSYRWrascfscLgMlMGh0CdKeNTDjHpGPncaf3Z+FwwwjWeuiNBxv7bJo13/8B/098KlVDl4GZqsoBCEjPyJfV6hO0y/LkRGkk7oHWKgeWAfKtfLItRp00eZ4fcJNK9kCaSMmEugoZWcI7NGbZXzqFWqbpRI7NcDP9+WIQ+i9U5vqWsqd/zng4kbuAJ6UuKqIzB0upYrLShfQE3SAck8oaLhJqqq56VfDuASNpJKidV+zq27HfSBmbXnkR/5AK337dc3MXKJypoK/QPMLKUAP5XLPbs+NddJQV7EZXd29DLgp+fRIg3edpKdO7ZErWhv7d+3Kws+e1Y+ypmR2WIVSwVyBEUfgv2C8Ts9gnTF4pNcEY/S2aBicz5Ew2+jdyGNQQ== + test@example.com\\n\"\n }\n ]\n }\n },\n \"windowsProfile\": + {\n \"adminUsername\": \"azureuser\",\n \"enableCSIProxy\": true\n },\n + \ \"servicePrincipalProfile\": {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n + \ },\n \"nodeResourceGroup\": \"MC_clitest000001_cliakstest000002_eastus\",\n + \ \"enableRBAC\": true,\n \"supportPlan\": \"KubernetesOfficial\",\n \"networkProfile\": + {\n \"networkPlugin\": \"azure\",\n \"networkPluginMode\": \"overlay\",\n + \ \"networkDataplane\": \"azure\",\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_eastus/providers/Microsoft.Network/publicIPAddresses/0985f9d8-6233-42cb-a660-be16bfaa4fa1\"\n + \ }\n ]\n },\n \"podCidr\": \"10.244.0.0/16\",\n \"serviceCidr\": + \"10.0.0.0/16\",\n \"dnsServiceIP\": \"10.0.0.10\",\n \"outboundType\": + \"loadBalancer\",\n \"podCidrs\": [\n \"10.244.0.0/16\"\n ],\n \"serviceCidrs\": + [\n \"10.0.0.0/16\"\n ],\n \"ipFamilies\": [\n \"IPv4\"\n ]\n + \ },\n \"maxAgentPools\": 100,\n \"identityProfile\": {\n \"kubeletidentity\": + {\n \"resourceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MC_clitest000001_cliakstest000002_eastus/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 \"nodeOSUpgradeChannel\": + \"NodeImage\"\n },\n \"disableLocalAccounts\": false,\n \"securityProfile\": + {},\n \"storageProfile\": {\n \"diskCSIDriver\": {\n \"enabled\": + true\n },\n \"fileCSIDriver\": {\n \"enabled\": true\n },\n \"snapshotController\": + {\n \"enabled\": true\n }\n },\n \"oidcIssuerProfile\": {\n \"enabled\": + false\n },\n \"workloadAutoScalerProfile\": {}\n },\n \"identity\": + {\n \"type\": \"SystemAssigned\",\n \"principalId\":\"00000000-0000-0000-0000-000000000001\",\n + \ \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\n },\n \"sku\": + {\n \"name\": \"Base\",\n \"tier\": \"Free\"\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '4473' + content-type: + - application/json + date: + - Tue, 01 Aug 2023 22:16:57 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - -g -n --network-dataplane + User-Agent: + - AZURECLI/2.51.0 azsdk-python-azure-mgmt-containerservice/25.0.0 Python/3.10.12 + (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2023-06-01 + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\",\n + \ \"location\": \"eastus\",\n \"name\": \"cliakstest000002\",\n \"type\": + \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": + \"Succeeded\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": + \"1.27.3\",\n \"currentKubernetesVersion\": \"1.27.3\",\n \"dnsPrefix\": + \"cliakstest-clitestpghvkf4ni-18153b\",\n \"fqdn\": \"cliakstest-clitestpghvkf4ni-18153b-jeu6rftd.hcp.eastus.azmk8s.io\",\n + \ \"azurePortalFQDN\": \"cliakstest-clitestpghvkf4ni-18153b-jeu6rftd.portal.hcp.eastus.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\": 250,\n + \ \"type\": \"VirtualMachineScaleSets\",\n \"enableAutoScaling\": false,\n + \ \"provisioningState\": \"Succeeded\",\n \"powerState\": {\n \"code\": + \"Running\"\n },\n \"orchestratorVersion\": \"1.27.3\",\n \"currentOrchestratorVersion\": + \"1.27.3\",\n \"enableNodePublicIP\": false,\n \"mode\": \"System\",\n + \ \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\": false,\n + \ \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"nodeImageVersion\": + \"AKSUbuntu-2204gen2containerd-202307.12.0\",\n \"upgradeSettings\": {},\n + \ \"enableFIPS\": false\n }\n ],\n \"linuxProfile\": {\n \"adminUsername\": + \"azureuser\",\n \"ssh\": {\n \"publicKeys\": [\n {\n \"keyData\": + \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCbIg1guRHbI0lV11wWDt1r2cUdcNd27CJsg+SfgC7miZeubtwUhbsPdhMQsfDyhOWHq1+ZL0M+nJZV63d/1dhmhtgyOqejUwrPlzKhydsbrsdUor+JmNJDdW01v7BXHyuymT8G4s09jCasNOwiufbP/qp72ruu0bIA1nySsvlf9pCQAuFkAnVnf/rFhUlOkhtRpwcq8SUNY2zRHR/EKb/4NWY1JzR4sa3q2fWIJdrrX0DvLoa5g9bIEd4Df79ba7v+yiUBOS0zT2ll+z4g9izHK3EO5d8hL4jYxcjKs+wcslSYRWrascfscLgMlMGh0CdKeNTDjHpGPncaf3Z+FwwwjWeuiNBxv7bJo13/8B/098KlVDl4GZqsoBCEjPyJfV6hO0y/LkRGkk7oHWKgeWAfKtfLItRp00eZ4fcJNK9kCaSMmEugoZWcI7NGbZXzqFWqbpRI7NcDP9+WIQ+i9U5vqWsqd/zng4kbuAJ6UuKqIzB0upYrLShfQE3SAck8oaLhJqqq56VfDuASNpJKidV+zq27HfSBmbXnkR/5AK337dc3MXKJypoK/QPMLKUAP5XLPbs+NddJQV7EZXd29DLgp+fRIg3edpKdO7ZErWhv7d+3Kws+e1Y+ypmR2WIVSwVyBEUfgv2C8Ts9gnTF4pNcEY/S2aBicz5Ew2+jdyGNQQ== + test@example.com\\n\"\n }\n ]\n }\n },\n \"windowsProfile\": + {\n \"adminUsername\": \"azureuser\",\n \"enableCSIProxy\": true\n },\n + \ \"servicePrincipalProfile\": {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n + \ },\n \"nodeResourceGroup\": \"MC_clitest000001_cliakstest000002_eastus\",\n + \ \"enableRBAC\": true,\n \"supportPlan\": \"KubernetesOfficial\",\n \"networkProfile\": + {\n \"networkPlugin\": \"azure\",\n \"networkPluginMode\": \"overlay\",\n + \ \"networkDataplane\": \"azure\",\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_eastus/providers/Microsoft.Network/publicIPAddresses/0985f9d8-6233-42cb-a660-be16bfaa4fa1\"\n + \ }\n ]\n },\n \"podCidr\": \"10.244.0.0/16\",\n \"serviceCidr\": + \"10.0.0.0/16\",\n \"dnsServiceIP\": \"10.0.0.10\",\n \"outboundType\": + \"loadBalancer\",\n \"podCidrs\": [\n \"10.244.0.0/16\"\n ],\n \"serviceCidrs\": + [\n \"10.0.0.0/16\"\n ],\n \"ipFamilies\": [\n \"IPv4\"\n ]\n + \ },\n \"maxAgentPools\": 100,\n \"identityProfile\": {\n \"kubeletidentity\": + {\n \"resourceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MC_clitest000001_cliakstest000002_eastus/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 \"nodeOSUpgradeChannel\": + \"NodeImage\"\n },\n \"disableLocalAccounts\": false,\n \"securityProfile\": + {},\n \"storageProfile\": {\n \"diskCSIDriver\": {\n \"enabled\": + true\n },\n \"fileCSIDriver\": {\n \"enabled\": true\n },\n \"snapshotController\": + {\n \"enabled\": true\n }\n },\n \"oidcIssuerProfile\": {\n \"enabled\": + false\n },\n \"workloadAutoScalerProfile\": {}\n },\n \"identity\": + {\n \"type\": \"SystemAssigned\",\n \"principalId\":\"00000000-0000-0000-0000-000000000001\",\n + \ \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\n },\n \"sku\": + {\n \"name\": \"Base\",\n \"tier\": \"Free\"\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '4473' + content-type: + - application/json + date: + - Tue, 01 Aug 2023 22:16:59 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"location": "eastus", "sku": {"name": "Base", "tier": "Free"}, "identity": + {"type": "SystemAssigned"}, "properties": {"kubernetesVersion": "1.27.3", "dnsPrefix": + "cliakstest-clitestpghvkf4ni-18153b", "agentPoolProfiles": [{"count": 3, "vmSize": + "Standard_DS2_v2", "osDiskSizeGB": 128, "osDiskType": "Managed", "kubeletDiskType": + "OS", "maxPods": 250, "osType": "Linux", "osSKU": "Ubuntu", "enableAutoScaling": + false, "type": "VirtualMachineScaleSets", "mode": "System", "orchestratorVersion": + "1.27.3", "upgradeSettings": {}, "powerState": {"code": "Running"}, "enableNodePublicIP": + false, "enableEncryptionAtHost": false, "enableUltraSSD": false, "enableFIPS": + false, "name": "nodepool1"}], "linuxProfile": {"adminUsername": "azureuser", + "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCbIg1guRHbI0lV11wWDt1r2cUdcNd27CJsg+SfgC7miZeubtwUhbsPdhMQsfDyhOWHq1+ZL0M+nJZV63d/1dhmhtgyOqejUwrPlzKhydsbrsdUor+JmNJDdW01v7BXHyuymT8G4s09jCasNOwiufbP/qp72ruu0bIA1nySsvlf9pCQAuFkAnVnf/rFhUlOkhtRpwcq8SUNY2zRHR/EKb/4NWY1JzR4sa3q2fWIJdrrX0DvLoa5g9bIEd4Df79ba7v+yiUBOS0zT2ll+z4g9izHK3EO5d8hL4jYxcjKs+wcslSYRWrascfscLgMlMGh0CdKeNTDjHpGPncaf3Z+FwwwjWeuiNBxv7bJo13/8B/098KlVDl4GZqsoBCEjPyJfV6hO0y/LkRGkk7oHWKgeWAfKtfLItRp00eZ4fcJNK9kCaSMmEugoZWcI7NGbZXzqFWqbpRI7NcDP9+WIQ+i9U5vqWsqd/zng4kbuAJ6UuKqIzB0upYrLShfQE3SAck8oaLhJqqq56VfDuASNpJKidV+zq27HfSBmbXnkR/5AK337dc3MXKJypoK/QPMLKUAP5XLPbs+NddJQV7EZXd29DLgp+fRIg3edpKdO7ZErWhv7d+3Kws+e1Y+ypmR2WIVSwVyBEUfgv2C8Ts9gnTF4pNcEY/S2aBicz5Ew2+jdyGNQQ== + test@example.com\n"}]}}, "windowsProfile": {"adminUsername": "azureuser", "enableCSIProxy": + true}, "servicePrincipalProfile": {"clientId":"00000000-0000-0000-0000-000000000001"}, + "oidcIssuerProfile": {"enabled": false}, "nodeResourceGroup": "MC_clitest000001_cliakstest000002_eastus", + "enableRBAC": true, "networkProfile": {"networkPlugin": "azure", "networkPluginMode": + "overlay", "networkDataplane": "cilium", "podCidr": "10.244.0.0/16", "serviceCidr": + "10.0.0.0/16", "dnsServiceIP": "10.0.0.10", "outboundType": "loadBalancer", + "loadBalancerSku": "Standard", "loadBalancerProfile": {"managedOutboundIPs": + {"count": 1}, "effectiveOutboundIPs": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_eastus/providers/Microsoft.Network/publicIPAddresses/0985f9d8-6233-42cb-a660-be16bfaa4fa1"}]}, + "podCidrs": ["10.244.0.0/16"], "serviceCidrs": ["10.0.0.0/16"], "ipFamilies": + ["IPv4"]}, "autoUpgradeProfile": {"nodeOSUpgradeChannel": "NodeImage"}, "identityProfile": + {"kubeletidentity": {"resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MC_clitest000001_cliakstest000002_eastus/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cliakstest000002-agentpool", + "clientId":"00000000-0000-0000-0000-000000000001", "objectId":"00000000-0000-0000-0000-000000000001"}}, + "disableLocalAccounts": false, "securityProfile": {}, "storageProfile": {}, + "workloadAutoScalerProfile": {}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + Content-Length: + - '2966' + Content-Type: + - application/json + ParameterSetName: + - -g -n --network-dataplane + User-Agent: + - AZURECLI/2.51.0 azsdk-python-azure-mgmt-containerservice/25.0.0 Python/3.10.12 + (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2023-06-01 + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\",\n + \ \"location\": \"eastus\",\n \"name\": \"cliakstest000002\",\n \"type\": + \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": + \"Updating\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": + \"1.27.3\",\n \"currentKubernetesVersion\": \"1.27.3\",\n \"dnsPrefix\": + \"cliakstest-clitestpghvkf4ni-18153b\",\n \"fqdn\": \"cliakstest-clitestpghvkf4ni-18153b-jeu6rftd.hcp.eastus.azmk8s.io\",\n + \ \"azurePortalFQDN\": \"cliakstest-clitestpghvkf4ni-18153b-jeu6rftd.portal.hcp.eastus.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\": 250,\n + \ \"type\": \"VirtualMachineScaleSets\",\n \"enableAutoScaling\": false,\n + \ \"provisioningState\": \"Updating\",\n \"powerState\": {\n \"code\": + \"Running\"\n },\n \"orchestratorVersion\": \"1.27.3\",\n \"currentOrchestratorVersion\": + \"1.27.3\",\n \"enableNodePublicIP\": false,\n \"mode\": \"System\",\n + \ \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\": false,\n + \ \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"nodeImageVersion\": + \"AKSUbuntu-2204gen2containerd-202307.12.0\",\n \"upgradeSettings\": {},\n + \ \"enableFIPS\": false\n }\n ],\n \"linuxProfile\": {\n \"adminUsername\": + \"azureuser\",\n \"ssh\": {\n \"publicKeys\": [\n {\n \"keyData\": + \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCbIg1guRHbI0lV11wWDt1r2cUdcNd27CJsg+SfgC7miZeubtwUhbsPdhMQsfDyhOWHq1+ZL0M+nJZV63d/1dhmhtgyOqejUwrPlzKhydsbrsdUor+JmNJDdW01v7BXHyuymT8G4s09jCasNOwiufbP/qp72ruu0bIA1nySsvlf9pCQAuFkAnVnf/rFhUlOkhtRpwcq8SUNY2zRHR/EKb/4NWY1JzR4sa3q2fWIJdrrX0DvLoa5g9bIEd4Df79ba7v+yiUBOS0zT2ll+z4g9izHK3EO5d8hL4jYxcjKs+wcslSYRWrascfscLgMlMGh0CdKeNTDjHpGPncaf3Z+FwwwjWeuiNBxv7bJo13/8B/098KlVDl4GZqsoBCEjPyJfV6hO0y/LkRGkk7oHWKgeWAfKtfLItRp00eZ4fcJNK9kCaSMmEugoZWcI7NGbZXzqFWqbpRI7NcDP9+WIQ+i9U5vqWsqd/zng4kbuAJ6UuKqIzB0upYrLShfQE3SAck8oaLhJqqq56VfDuASNpJKidV+zq27HfSBmbXnkR/5AK337dc3MXKJypoK/QPMLKUAP5XLPbs+NddJQV7EZXd29DLgp+fRIg3edpKdO7ZErWhv7d+3Kws+e1Y+ypmR2WIVSwVyBEUfgv2C8Ts9gnTF4pNcEY/S2aBicz5Ew2+jdyGNQQ== + test@example.com\\n\"\n }\n ]\n }\n },\n \"windowsProfile\": + {\n \"adminUsername\": \"azureuser\",\n \"enableCSIProxy\": true\n },\n + \ \"servicePrincipalProfile\": {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n + \ },\n \"nodeResourceGroup\": \"MC_clitest000001_cliakstest000002_eastus\",\n + \ \"enableRBAC\": true,\n \"supportPlan\": \"KubernetesOfficial\",\n \"networkProfile\": + {\n \"networkPlugin\": \"azure\",\n \"networkPluginMode\": \"overlay\",\n + \ \"networkPolicy\": \"cilium\",\n \"networkDataplane\": \"cilium\",\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_eastus/providers/Microsoft.Network/publicIPAddresses/0985f9d8-6233-42cb-a660-be16bfaa4fa1\"\n + \ }\n ]\n },\n \"podCidr\": \"10.244.0.0/16\",\n \"serviceCidr\": + \"10.0.0.0/16\",\n \"dnsServiceIP\": \"10.0.0.10\",\n \"outboundType\": + \"loadBalancer\",\n \"podCidrs\": [\n \"10.244.0.0/16\"\n ],\n \"serviceCidrs\": + [\n \"10.0.0.0/16\"\n ],\n \"ipFamilies\": [\n \"IPv4\"\n ]\n + \ },\n \"maxAgentPools\": 100,\n \"identityProfile\": {\n \"kubeletidentity\": + {\n \"resourceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MC_clitest000001_cliakstest000002_eastus/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 \"nodeOSUpgradeChannel\": + \"NodeImage\"\n },\n \"disableLocalAccounts\": false,\n \"securityProfile\": + {},\n \"storageProfile\": {\n \"diskCSIDriver\": {\n \"enabled\": + true\n },\n \"fileCSIDriver\": {\n \"enabled\": true\n },\n \"snapshotController\": + {\n \"enabled\": true\n }\n },\n \"oidcIssuerProfile\": {\n \"enabled\": + false\n },\n \"workloadAutoScalerProfile\": {}\n },\n \"identity\": + {\n \"type\": \"SystemAssigned\",\n \"principalId\":\"00000000-0000-0000-0000-000000000001\",\n + \ \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\n },\n \"sku\": + {\n \"name\": \"Base\",\n \"tier\": \"Free\"\n }\n }" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/0dfc3bc8-0c20-49f4-9f9f-8ab31185bf58?api-version=2017-08-31 + cache-control: + - no-cache + content-length: + - '4503' + content-type: + - application/json + date: + - Tue, 01 Aug 2023 22:17:03 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: + - -g -n --network-dataplane + User-Agent: + - AZURECLI/2.51.0 azsdk-python-azure-mgmt-containerservice/25.0.0 Python/3.10.12 + (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/0dfc3bc8-0c20-49f4-9f9f-8ab31185bf58?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"c83bfc0d-200c-f449-9f9f-8ab31185bf58\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-08-01T22:17:03.2563303Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 01 Aug 2023 22:17:03 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: + - -g -n --network-dataplane + User-Agent: + - AZURECLI/2.51.0 azsdk-python-azure-mgmt-containerservice/25.0.0 Python/3.10.12 + (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/0dfc3bc8-0c20-49f4-9f9f-8ab31185bf58?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"c83bfc0d-200c-f449-9f9f-8ab31185bf58\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-08-01T22:17:03.2563303Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 01 Aug 2023 22:17:33 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: + - -g -n --network-dataplane + User-Agent: + - AZURECLI/2.51.0 azsdk-python-azure-mgmt-containerservice/25.0.0 Python/3.10.12 + (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/0dfc3bc8-0c20-49f4-9f9f-8ab31185bf58?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"c83bfc0d-200c-f449-9f9f-8ab31185bf58\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-08-01T22:17:03.2563303Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 01 Aug 2023 22:18:03 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: + - -g -n --network-dataplane + User-Agent: + - AZURECLI/2.51.0 azsdk-python-azure-mgmt-containerservice/25.0.0 Python/3.10.12 + (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/0dfc3bc8-0c20-49f4-9f9f-8ab31185bf58?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"c83bfc0d-200c-f449-9f9f-8ab31185bf58\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-08-01T22:17:03.2563303Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 01 Aug 2023 22:18:33 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: + - -g -n --network-dataplane + User-Agent: + - AZURECLI/2.51.0 azsdk-python-azure-mgmt-containerservice/25.0.0 Python/3.10.12 + (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/0dfc3bc8-0c20-49f4-9f9f-8ab31185bf58?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"c83bfc0d-200c-f449-9f9f-8ab31185bf58\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-08-01T22:17:03.2563303Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 01 Aug 2023 22:19:04 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - -g -n --network-dataplane + User-Agent: + - AZURECLI/2.51.0 azsdk-python-azure-mgmt-containerservice/25.0.0 Python/3.10.12 + (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/0dfc3bc8-0c20-49f4-9f9f-8ab31185bf58?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"c83bfc0d-200c-f449-9f9f-8ab31185bf58\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-08-01T22:17:03.2563303Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 01 Aug 2023 22:19:34 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - -g -n --network-dataplane + User-Agent: + - AZURECLI/2.51.0 azsdk-python-azure-mgmt-containerservice/25.0.0 Python/3.10.12 + (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/0dfc3bc8-0c20-49f4-9f9f-8ab31185bf58?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"c83bfc0d-200c-f449-9f9f-8ab31185bf58\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-08-01T22:17:03.2563303Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 01 Aug 2023 22:20:04 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - -g -n --network-dataplane + User-Agent: + - AZURECLI/2.51.0 azsdk-python-azure-mgmt-containerservice/25.0.0 Python/3.10.12 + (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/0dfc3bc8-0c20-49f4-9f9f-8ab31185bf58?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"c83bfc0d-200c-f449-9f9f-8ab31185bf58\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-08-01T22:17:03.2563303Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 01 Aug 2023 22:20:34 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - -g -n --network-dataplane + User-Agent: + - AZURECLI/2.51.0 azsdk-python-azure-mgmt-containerservice/25.0.0 Python/3.10.12 + (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/0dfc3bc8-0c20-49f4-9f9f-8ab31185bf58?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"c83bfc0d-200c-f449-9f9f-8ab31185bf58\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-08-01T22:17:03.2563303Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 01 Aug 2023 22:21:05 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - -g -n --network-dataplane + User-Agent: + - AZURECLI/2.51.0 azsdk-python-azure-mgmt-containerservice/25.0.0 Python/3.10.12 + (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/0dfc3bc8-0c20-49f4-9f9f-8ab31185bf58?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"c83bfc0d-200c-f449-9f9f-8ab31185bf58\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-08-01T22:17:03.2563303Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 01 Aug 2023 22:21:35 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - -g -n --network-dataplane + User-Agent: + - AZURECLI/2.51.0 azsdk-python-azure-mgmt-containerservice/25.0.0 Python/3.10.12 + (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/0dfc3bc8-0c20-49f4-9f9f-8ab31185bf58?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"c83bfc0d-200c-f449-9f9f-8ab31185bf58\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-08-01T22:17:03.2563303Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 01 Aug 2023 22:22:05 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - -g -n --network-dataplane + User-Agent: + - AZURECLI/2.51.0 azsdk-python-azure-mgmt-containerservice/25.0.0 Python/3.10.12 + (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/0dfc3bc8-0c20-49f4-9f9f-8ab31185bf58?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"c83bfc0d-200c-f449-9f9f-8ab31185bf58\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-08-01T22:17:03.2563303Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 01 Aug 2023 22:22:35 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - -g -n --network-dataplane + User-Agent: + - AZURECLI/2.51.0 azsdk-python-azure-mgmt-containerservice/25.0.0 Python/3.10.12 + (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/0dfc3bc8-0c20-49f4-9f9f-8ab31185bf58?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"c83bfc0d-200c-f449-9f9f-8ab31185bf58\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-08-01T22:17:03.2563303Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 01 Aug 2023 22:23:06 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - -g -n --network-dataplane + User-Agent: + - AZURECLI/2.51.0 azsdk-python-azure-mgmt-containerservice/25.0.0 Python/3.10.12 + (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/0dfc3bc8-0c20-49f4-9f9f-8ab31185bf58?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"c83bfc0d-200c-f449-9f9f-8ab31185bf58\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-08-01T22:17:03.2563303Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 01 Aug 2023 22:23:36 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - -g -n --network-dataplane + User-Agent: + - AZURECLI/2.51.0 azsdk-python-azure-mgmt-containerservice/25.0.0 Python/3.10.12 + (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/0dfc3bc8-0c20-49f4-9f9f-8ab31185bf58?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"c83bfc0d-200c-f449-9f9f-8ab31185bf58\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-08-01T22:17:03.2563303Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 01 Aug 2023 22:24:06 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - -g -n --network-dataplane + User-Agent: + - AZURECLI/2.51.0 azsdk-python-azure-mgmt-containerservice/25.0.0 Python/3.10.12 + (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/0dfc3bc8-0c20-49f4-9f9f-8ab31185bf58?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"c83bfc0d-200c-f449-9f9f-8ab31185bf58\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-08-01T22:17:03.2563303Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 01 Aug 2023 22:24:36 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - -g -n --network-dataplane + User-Agent: + - AZURECLI/2.51.0 azsdk-python-azure-mgmt-containerservice/25.0.0 Python/3.10.12 + (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/0dfc3bc8-0c20-49f4-9f9f-8ab31185bf58?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"c83bfc0d-200c-f449-9f9f-8ab31185bf58\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-08-01T22:17:03.2563303Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 01 Aug 2023 22:25:07 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - -g -n --network-dataplane + User-Agent: + - AZURECLI/2.51.0 azsdk-python-azure-mgmt-containerservice/25.0.0 Python/3.10.12 + (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/0dfc3bc8-0c20-49f4-9f9f-8ab31185bf58?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"c83bfc0d-200c-f449-9f9f-8ab31185bf58\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-08-01T22:17:03.2563303Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 01 Aug 2023 22:25:37 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - -g -n --network-dataplane + User-Agent: + - AZURECLI/2.51.0 azsdk-python-azure-mgmt-containerservice/25.0.0 Python/3.10.12 + (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/0dfc3bc8-0c20-49f4-9f9f-8ab31185bf58?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"c83bfc0d-200c-f449-9f9f-8ab31185bf58\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-08-01T22:17:03.2563303Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 01 Aug 2023 22:26:07 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - -g -n --network-dataplane + User-Agent: + - AZURECLI/2.51.0 azsdk-python-azure-mgmt-containerservice/25.0.0 Python/3.10.12 + (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/0dfc3bc8-0c20-49f4-9f9f-8ab31185bf58?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"c83bfc0d-200c-f449-9f9f-8ab31185bf58\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-08-01T22:17:03.2563303Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 01 Aug 2023 22:26:37 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - -g -n --network-dataplane + User-Agent: + - AZURECLI/2.51.0 azsdk-python-azure-mgmt-containerservice/25.0.0 Python/3.10.12 + (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/0dfc3bc8-0c20-49f4-9f9f-8ab31185bf58?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"c83bfc0d-200c-f449-9f9f-8ab31185bf58\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-08-01T22:17:03.2563303Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 01 Aug 2023 22:27:08 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - -g -n --network-dataplane + User-Agent: + - AZURECLI/2.51.0 azsdk-python-azure-mgmt-containerservice/25.0.0 Python/3.10.12 + (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/0dfc3bc8-0c20-49f4-9f9f-8ab31185bf58?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"c83bfc0d-200c-f449-9f9f-8ab31185bf58\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-08-01T22:17:03.2563303Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 01 Aug 2023 22:27:38 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - -g -n --network-dataplane + User-Agent: + - AZURECLI/2.51.0 azsdk-python-azure-mgmt-containerservice/25.0.0 Python/3.10.12 + (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/0dfc3bc8-0c20-49f4-9f9f-8ab31185bf58?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"c83bfc0d-200c-f449-9f9f-8ab31185bf58\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-08-01T22:17:03.2563303Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 01 Aug 2023 22:28:08 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - -g -n --network-dataplane + User-Agent: + - AZURECLI/2.51.0 azsdk-python-azure-mgmt-containerservice/25.0.0 Python/3.10.12 + (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/0dfc3bc8-0c20-49f4-9f9f-8ab31185bf58?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"c83bfc0d-200c-f449-9f9f-8ab31185bf58\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-08-01T22:17:03.2563303Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 01 Aug 2023 22:28:38 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - -g -n --network-dataplane + User-Agent: + - AZURECLI/2.51.0 azsdk-python-azure-mgmt-containerservice/25.0.0 Python/3.10.12 + (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/0dfc3bc8-0c20-49f4-9f9f-8ab31185bf58?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"c83bfc0d-200c-f449-9f9f-8ab31185bf58\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-08-01T22:17:03.2563303Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 01 Aug 2023 22:29:08 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - -g -n --network-dataplane + User-Agent: + - AZURECLI/2.51.0 azsdk-python-azure-mgmt-containerservice/25.0.0 Python/3.10.12 + (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/0dfc3bc8-0c20-49f4-9f9f-8ab31185bf58?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"c83bfc0d-200c-f449-9f9f-8ab31185bf58\",\n \"status\": + \"Succeeded\",\n \"startTime\": \"2023-08-01T22:17:03.2563303Z\",\n \"endTime\": + \"2023-08-01T22:29:29.5938814Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '170' + content-type: + - application/json + date: + - Tue, 01 Aug 2023 22:29:39 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - -g -n --network-dataplane + User-Agent: + - AZURECLI/2.51.0 azsdk-python-azure-mgmt-containerservice/25.0.0 Python/3.10.12 + (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2023-06-01 + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\",\n + \ \"location\": \"eastus\",\n \"name\": \"cliakstest000002\",\n \"type\": + \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": + \"Succeeded\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": + \"1.27.3\",\n \"currentKubernetesVersion\": \"1.27.3\",\n \"dnsPrefix\": + \"cliakstest-clitestpghvkf4ni-18153b\",\n \"fqdn\": \"cliakstest-clitestpghvkf4ni-18153b-jeu6rftd.hcp.eastus.azmk8s.io\",\n + \ \"azurePortalFQDN\": \"cliakstest-clitestpghvkf4ni-18153b-jeu6rftd.portal.hcp.eastus.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\": 250,\n + \ \"type\": \"VirtualMachineScaleSets\",\n \"enableAutoScaling\": false,\n + \ \"provisioningState\": \"Succeeded\",\n \"powerState\": {\n \"code\": + \"Running\"\n },\n \"orchestratorVersion\": \"1.27.3\",\n \"currentOrchestratorVersion\": + \"1.27.3\",\n \"enableNodePublicIP\": false,\n \"mode\": \"System\",\n + \ \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\": false,\n + \ \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"nodeImageVersion\": + \"AKSUbuntu-2204gen2containerd-202307.12.0\",\n \"upgradeSettings\": {},\n + \ \"enableFIPS\": false\n }\n ],\n \"linuxProfile\": {\n \"adminUsername\": + \"azureuser\",\n \"ssh\": {\n \"publicKeys\": [\n {\n \"keyData\": + \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCbIg1guRHbI0lV11wWDt1r2cUdcNd27CJsg+SfgC7miZeubtwUhbsPdhMQsfDyhOWHq1+ZL0M+nJZV63d/1dhmhtgyOqejUwrPlzKhydsbrsdUor+JmNJDdW01v7BXHyuymT8G4s09jCasNOwiufbP/qp72ruu0bIA1nySsvlf9pCQAuFkAnVnf/rFhUlOkhtRpwcq8SUNY2zRHR/EKb/4NWY1JzR4sa3q2fWIJdrrX0DvLoa5g9bIEd4Df79ba7v+yiUBOS0zT2ll+z4g9izHK3EO5d8hL4jYxcjKs+wcslSYRWrascfscLgMlMGh0CdKeNTDjHpGPncaf3Z+FwwwjWeuiNBxv7bJo13/8B/098KlVDl4GZqsoBCEjPyJfV6hO0y/LkRGkk7oHWKgeWAfKtfLItRp00eZ4fcJNK9kCaSMmEugoZWcI7NGbZXzqFWqbpRI7NcDP9+WIQ+i9U5vqWsqd/zng4kbuAJ6UuKqIzB0upYrLShfQE3SAck8oaLhJqqq56VfDuASNpJKidV+zq27HfSBmbXnkR/5AK337dc3MXKJypoK/QPMLKUAP5XLPbs+NddJQV7EZXd29DLgp+fRIg3edpKdO7ZErWhv7d+3Kws+e1Y+ypmR2WIVSwVyBEUfgv2C8Ts9gnTF4pNcEY/S2aBicz5Ew2+jdyGNQQ== + test@example.com\\n\"\n }\n ]\n }\n },\n \"windowsProfile\": + {\n \"adminUsername\": \"azureuser\",\n \"enableCSIProxy\": true\n },\n + \ \"servicePrincipalProfile\": {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n + \ },\n \"nodeResourceGroup\": \"MC_clitest000001_cliakstest000002_eastus\",\n + \ \"enableRBAC\": true,\n \"supportPlan\": \"KubernetesOfficial\",\n \"networkProfile\": + {\n \"networkPlugin\": \"azure\",\n \"networkPluginMode\": \"overlay\",\n + \ \"networkPolicy\": \"cilium\",\n \"networkDataplane\": \"cilium\",\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_eastus/providers/Microsoft.Network/publicIPAddresses/0985f9d8-6233-42cb-a660-be16bfaa4fa1\"\n + \ }\n ]\n },\n \"podCidr\": \"10.244.0.0/16\",\n \"serviceCidr\": + \"10.0.0.0/16\",\n \"dnsServiceIP\": \"10.0.0.10\",\n \"outboundType\": + \"loadBalancer\",\n \"podCidrs\": [\n \"10.244.0.0/16\"\n ],\n \"serviceCidrs\": + [\n \"10.0.0.0/16\"\n ],\n \"ipFamilies\": [\n \"IPv4\"\n ]\n + \ },\n \"maxAgentPools\": 100,\n \"identityProfile\": {\n \"kubeletidentity\": + {\n \"resourceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MC_clitest000001_cliakstest000002_eastus/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 \"nodeOSUpgradeChannel\": + \"NodeImage\"\n },\n \"disableLocalAccounts\": false,\n \"securityProfile\": + {},\n \"storageProfile\": {\n \"diskCSIDriver\": {\n \"enabled\": + true\n },\n \"fileCSIDriver\": {\n \"enabled\": true\n },\n \"snapshotController\": + {\n \"enabled\": true\n }\n },\n \"oidcIssuerProfile\": {\n \"enabled\": + false\n },\n \"workloadAutoScalerProfile\": {}\n },\n \"identity\": + {\n \"type\": \"SystemAssigned\",\n \"principalId\":\"00000000-0000-0000-0000-000000000001\",\n + \ \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\n },\n \"sku\": + {\n \"name\": \"Base\",\n \"tier\": \"Free\"\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '4505' + content-type: + - application/json + date: + - Tue, 01 Aug 2023 22:29:40 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g -n --yes --no-wait + User-Agent: + - AZURECLI/2.51.0 azsdk-python-azure-mgmt-containerservice/25.0.0 Python/3.10.12 + (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2023-06-01 + response: + body: + string: '' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/30625656-1d2a-419e-8708-0eb90c77ff0c?api-version=2017-08-31 + cache-control: + - no-cache + content-length: + - '0' + date: + - Tue, 01 Aug 2023 22:29:41 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operationresults/30625656-1d2a-419e-8708-0eb90c77ff0c?api-version=2017-08-31 + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' + status: + code: 202 + message: Accepted +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_aks_commands.py b/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_aks_commands.py index 665483defb0..8a387374c54 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 @@ -7724,6 +7724,45 @@ def test_aks_azure_cni_overlay_migration(self, resource_group, resource_group_lo self.cmd( 'aks delete -g {resource_group} -n {name} --yes --no-wait', checks=[self.is_empty()]) + @AllowLargeResponse() + @AKSCustomResourceGroupPreparer(random_name_length=17, name_prefix='clitest', location='eastus', preserve_default_location=True) + def test_aks_migrate_cluster_to_cilium_dataplane(self, resource_group, resource_group_location): + _, create_version = self._get_versions(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, + 'k8s_version': create_version, + 'ssh_key_value': self.generate_ssh_keys(), + }) + + # create with Azure CNI overlay + create_cmd = 'aks create --resource-group={resource_group} --name={name} --location={location} ' \ + '--network-plugin azure --ssh-key-value={ssh_key_value} --kubernetes-version {k8s_version} ' \ + '--network-plugin-mode=overlay' + self.cmd(create_cmd, checks=[ + self.check('provisioningState', 'Succeeded'), + self.check('networkProfile.networkPlugin', 'azure'), + self.check('networkProfile.networkPluginMode', 'overlay'), + self.check('networkProfile.networkDataplane', 'azure'), + ]) + + # update to enable cilium dataplane + update_cmd = 'aks update -g {resource_group} -n {name} --network-dataplane=cilium' + + self.cmd(update_cmd, checks=[ + self.check('provisioningState', 'Succeeded'), + self.check('networkProfile.networkPlugin', 'azure'), + self.check('networkProfile.networkPluginMode', 'overlay'), + self.check('networkProfile.networkDataplane', 'cilium'), + self.check('networkProfile.networkPolicy', 'cilium'), + ]) + + # delete + self.cmd( + 'aks delete -g {resource_group} -n {name} --yes --no-wait', checks=[self.is_empty()]) + @AllowLargeResponse() @AKSCustomResourceGroupPreparer(random_name_length=17, name_prefix='clitest', location='westus2') def test_aks_create_node_resource_group(self, resource_group, resource_group_location): @@ -8943,4 +8982,4 @@ def test_aks_maintenanceconfiguration(self, resource_group, resource_group_locat # delete self.cmd( - 'aks delete -g {resource_group} -n {name} --yes --no-wait', checks=[self.is_empty()]) \ No newline at end of file + 'aks delete -g {resource_group} -n {name} --yes --no-wait', checks=[self.is_empty()]) diff --git a/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_managed_cluster_decorator.py b/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_managed_cluster_decorator.py index a74f624a81f..99d9d420c8d 100644 --- a/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_managed_cluster_decorator.py +++ b/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_managed_cluster_decorator.py @@ -9707,6 +9707,117 @@ def test_update_network_plugin_settings(self): self.assertEqual(dec_mc_2, ground_truth_mc_2) + # test no updates made with same network plugin mode + dec_3 = AKSManagedClusterUpdateDecorator( + self.cmd, + self.client, + { + "network_plugin_mode": "overlay", + }, + ResourceType.MGMT_CONTAINERSERVICE, + ) + mc_3 = self.models.ManagedCluster( + location="test_location", + network_profile=self.models.ContainerServiceNetworkProfile( + network_plugin="azure", + network_plugin_mode="overlay", + pod_cidr="100.64.0.0/16", + service_cidr="192.168.0.0/16" + ), + ) + + dec_3.context.attach_mc(mc_3) + # fail on passing the wrong mc object + with self.assertRaises(CLIInternalError): + dec_3.update_network_plugin_settings(None) + dec_mc_3 = dec_3.update_network_plugin_settings(mc_3) + + ground_truth_mc_3 = self.models.ManagedCluster( + location="test_location", + network_profile=self.models.ContainerServiceNetworkProfile( + network_plugin="azure", + network_plugin_mode="overlay", + pod_cidr="100.64.0.0/16", + service_cidr="192.168.0.0/16", + ), + ) + + self.assertEqual(dec_mc_3, ground_truth_mc_3) + + # test update network dataplane + dec_4 = AKSManagedClusterUpdateDecorator( + self.cmd, + self.client, + { + "network_dataplane": "cilium", + }, + ResourceType.MGMT_CONTAINERSERVICE, + ) + mc_4 = self.models.ManagedCluster( + location="test_location", + network_profile=self.models.ContainerServiceNetworkProfile( + network_plugin="azure", + network_plugin_mode="overlay", + network_dataplane="cilium", + pod_cidr="100.64.0.0/16", + service_cidr="192.168.0.0/16" + ), + ) + + dec_4.context.attach_mc(mc_4) + # fail on passing the wrong mc object + with self.assertRaises(CLIInternalError): + dec_4.update_network_plugin_settings(None) + dec_mc_4 = dec_4.update_network_plugin_settings(mc_4) + + ground_truth_mc_4 = self.models.ManagedCluster( + location="test_location", + network_profile=self.models.ContainerServiceNetworkProfile( + network_plugin="azure", + network_plugin_mode="overlay", + network_dataplane="cilium", + pod_cidr="100.64.0.0/16", + service_cidr="192.168.0.0/16", + ), + ) + + self.assertEqual(dec_mc_4, ground_truth_mc_4) + + # test no updates made with empty network plugin settings + dec_5 = AKSManagedClusterUpdateDecorator( + self.cmd, + self.client, + {}, + ResourceType.MGMT_CONTAINERSERVICE, + ) + mc_5 = self.models.ManagedCluster( + location="test_location", + network_profile=self.models.ContainerServiceNetworkProfile( + network_plugin="azure", + network_plugin_mode="overlay", + pod_cidr="100.64.0.0/16", + service_cidr="192.168.0.0/16" + ), + ) + + dec_5.context.attach_mc(mc_5) + # fail on passing the wrong mc object + with self.assertRaises(CLIInternalError): + dec_5.update_network_plugin_settings(None) + dec_mc_5 = dec_5.update_network_plugin_settings(mc_5) + + ground_truth_mc_5 = self.models.ManagedCluster( + location="test_location", + network_profile=self.models.ContainerServiceNetworkProfile( + network_plugin="azure", + network_plugin_mode="overlay", + pod_cidr="100.64.0.0/16", + service_cidr="192.168.0.0/16", + ), + ) + + self.assertEqual(dec_mc_5, ground_truth_mc_5) + def test_update_mc_profile_default(self): import inspect