From 2e5c36e7fedfc94a5c09141f13972122a7905302 Mon Sep 17 00:00:00 2001 From: Fuming Zhang Date: Tue, 7 May 2024 17:47:59 +0800 Subject: [PATCH] update --- .../azure/cli/command_modules/acs/custom.py | 2 +- .../acs/managed_cluster_decorator.py | 17 +- ...naged_identity_with_service_principal.yaml | 2015 ----------------- .../acs/tests/latest/test_aks_commands.py | 84 - .../latest/test_managed_cluster_decorator.py | 62 +- 5 files changed, 63 insertions(+), 2117 deletions(-) delete mode 100644 src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_managed_identity_with_service_principal.yaml 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 4fdbc622354..55c70f66a41 100644 --- a/src/azure-cli/azure/cli/command_modules/acs/custom.py +++ b/src/azure-cli/azure/cli/command_modules/acs/custom.py @@ -524,7 +524,7 @@ def aks_create( disable_public_fqdn=False, service_principal=None, client_secret=None, - enable_managed_identity=True, + enable_managed_identity=False, assign_identity=None, assign_kubelet_identity=None, enable_aad=False, 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 1c743768af8..50d60d3a27f 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 @@ -1610,11 +1610,9 @@ def _get_enable_managed_identity( # read the original value passed by the command enable_managed_identity = self.raw_param.get("enable_managed_identity") # In create mode, try to read the property value corresponding to the parameter from the `mc` object - read_from_mc = False if self.decorator_mode == DecoratorMode.CREATE: if self.mc and self.mc.identity: enable_managed_identity = check_is_msi_cluster(self.mc) - read_from_mc = True # skip dynamic completion & validation if option read_only is specified if read_only: @@ -1622,15 +1620,26 @@ def _get_enable_managed_identity( # dynamic completion for create mode only if self.decorator_mode == DecoratorMode.CREATE: + # if user does not specify service principal or client secret, + # backfill the value of enable_managed_identity to True ( service_principal, client_secret, ) = self._get_service_principal_and_client_secret(read_only=True) - if not read_from_mc and service_principal and client_secret: - enable_managed_identity = False + if not (service_principal or client_secret) and not enable_managed_identity: + enable_managed_identity = True # validation if enable_validation: + if self.decorator_mode == DecoratorMode.CREATE: + ( + service_principal, + client_secret, + ) = self._get_service_principal_and_client_secret(read_only=True) + if (service_principal or client_secret) and enable_managed_identity: + raise MutuallyExclusiveArgumentError( + "Cannot specify --enable-managed-identity and --service-principal/--client-secret at same time" + ) if not enable_managed_identity and self._get_assign_identity(enable_validation=False): raise RequiredArgumentMissingError( "--assign-identity can only be specified when --enable-managed-identity is specified" diff --git a/src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_managed_identity_with_service_principal.yaml b/src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_managed_identity_with_service_principal.yaml deleted file mode 100644 index d2be38ea91a..00000000000 --- a/src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_managed_identity_with_service_principal.yaml +++ /dev/null @@ -1,2015 +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 --dns-name-prefix --node-count --ssh-key-value - --service-principal --client-secret --enable-managed-identity - User-Agent: - - AZURECLI/2.49.0 azsdk-python-azure-mgmt-containerservice/24.0.0 Python/3.8.10 - (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000001?api-version=2024-02-01 - response: - body: - string: '{"error":{"code":"ResourceNotFound","message":"The Resource ''Microsoft.ContainerService/managedClusters/cliakstest000001'' - 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: - - Thu, 29 Jun 2023 11:15:38 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-failure-cause: - - gateway - status: - code: 404 - message: Not Found -- request: - body: '{"location": "westus2", "properties": {"kubernetesVersion": "", "dnsPrefix": - "cliaksdns000002", "agentPoolProfiles": [{"count": 1, "vmSize": "Standard_DS2_v2", - "osDiskSizeGB": 0, "osType": "Linux", "enableAutoScaling": false, "type": "VirtualMachineScaleSets", - "mode": "System", "orchestratorVersion": "", "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 AAAAB3NzaC1yc2EAAAADAQABAAABAQCw4P22/hE86EX0l2HMO+M6Gw+CW6O4Yl84NLjVqF7NtK8xwQKcZwGeIwNBv/HxJ0uMJlOCG1ZMPPvSZHDp07QvAjYKKryIkIGilxLUh4fNOEQiZqAXB2badERUdwLRB4f6kHc0vb35GHw3tlyjjDjvQTO7UgZQxnbipxyrJAYfMHxfXjST1tvmln3v87WvBGsY2hr1Iqx/gMO3AIqaNoJntl1sIeAcg8xXdYW3PP6N1gYToFsDxsQZU2rfefIRDniuP4fYy2J4shtEAkyzv1BlOBJGHBqCzyrhXVqFElLSFV99QhLUi43zXL4Ge1QKJBztH/q48ohMBt3WenkP2KsT - azcli_aks_live_test@example.com\n"}]}}, "servicePrincipalProfile": {"clientId":"00000000-0000-0000-0000-000000000001", - "secret":"fake-secret"}, "addonProfiles": {}, "enableRBAC": true, "networkProfile": - {"networkPlugin": "kubenet", "podCidr": "10.244.0.0/16", "serviceCidr": "10.0.0.0/16", - "dnsServiceIP": "10.0.0.10", "outboundType": "loadBalancer", "loadBalancerSku": - "standard"}, "disableLocalAccounts": false, "storageProfile": {}}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - aks create - Connection: - - keep-alive - Content-Length: - - '1467' - Content-Type: - - application/json - ParameterSetName: - - --resource-group --name --location --dns-name-prefix --node-count --ssh-key-value - --service-principal --client-secret --enable-managed-identity - User-Agent: - - AZURECLI/2.49.0 azsdk-python-azure-mgmt-containerservice/24.0.0 Python/3.8.10 - (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29) - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000001?api-version=2024-02-01 - response: - body: - string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000001\",\n - \ \"location\": \"westus2\",\n \"name\": \"cliakstest000001\",\n \"type\": - \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": - \"Creating\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": - \"1.25.6\",\n \"currentKubernetesVersion\": \"1.25.6\",\n \"dnsPrefix\": - \"cliaksdns000002\",\n \"fqdn\": \"cliaksdns000002-jy7sgrwv.hcp.westus2.azmk8s.io\",\n - \ \"azurePortalFQDN\": \"cliaksdns000002-jy7sgrwv.portal.hcp.westus2.azmk8s.io\",\n - \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": - 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": - \"Managed\",\n \"kubeletDiskType\": \"OS\",\n \"maxPods\": 110,\n - \ \"type\": \"VirtualMachineScaleSets\",\n \"enableAutoScaling\": false,\n - \ \"provisioningState\": \"Creating\",\n \"powerState\": {\n \"code\": - \"Running\"\n },\n \"orchestratorVersion\": \"1.25.6\",\n \"currentOrchestratorVersion\": - \"1.25.6\",\n \"enableNodePublicIP\": false,\n \"mode\": \"System\",\n - \ \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\": false,\n - \ \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"nodeImageVersion\": - \"AKSUbuntu-2204gen2containerd-202306.19.0\",\n \"upgradeSettings\": {},\n - \ \"enableFIPS\": false\n }\n ],\n \"linuxProfile\": {\n \"adminUsername\": - \"azureuser\",\n \"ssh\": {\n \"publicKeys\": [\n {\n \"keyData\": - \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCw4P22/hE86EX0l2HMO+M6Gw+CW6O4Yl84NLjVqF7NtK8xwQKcZwGeIwNBv/HxJ0uMJlOCG1ZMPPvSZHDp07QvAjYKKryIkIGilxLUh4fNOEQiZqAXB2badERUdwLRB4f6kHc0vb35GHw3tlyjjDjvQTO7UgZQxnbipxyrJAYfMHxfXjST1tvmln3v87WvBGsY2hr1Iqx/gMO3AIqaNoJntl1sIeAcg8xXdYW3PP6N1gYToFsDxsQZU2rfefIRDniuP4fYy2J4shtEAkyzv1BlOBJGHBqCzyrhXVqFElLSFV99QhLUi43zXL4Ge1QKJBztH/q48ohMBt3WenkP2KsT - azcli_aks_live_test@example.com\\n\"\n }\n ]\n }\n },\n \"servicePrincipalProfile\": - {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \"nodeResourceGroup\": - \"MC_clitest000001_cliakstest000001_westus2\",\n \"enableRBAC\": true,\n - \ \"supportPlan\": \"KubernetesOfficial\",\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 \"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 \"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 \"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/westus2/operations/3161c246-7db8-4d3a-b5e5-3ea82bccc887?api-version=2016-03-30 - cache-control: - - no-cache - content-length: - - '3049' - content-type: - - application/json - date: - - Thu, 29 Jun 2023 11:15:43 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1198' - 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 --dns-name-prefix --node-count --ssh-key-value - --service-principal --client-secret --enable-managed-identity - User-Agent: - - AZURECLI/2.49.0 azsdk-python-azure-mgmt-containerservice/24.0.0 Python/3.8.10 - (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/3161c246-7db8-4d3a-b5e5-3ea82bccc887?api-version=2016-03-30 - response: - body: - string: "{\n \"name\": \"46c26131-b87d-3a4d-b5e5-3ea82bccc887\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2023-06-29T11:15:43.3450054Z\"\n }" - headers: - cache-control: - - no-cache - content-length: - - '126' - content-type: - - application/json - date: - - Thu, 29 Jun 2023 11:15:43 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - aks create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --name --location --dns-name-prefix --node-count --ssh-key-value - --service-principal --client-secret --enable-managed-identity - User-Agent: - - AZURECLI/2.49.0 azsdk-python-azure-mgmt-containerservice/24.0.0 Python/3.8.10 - (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/3161c246-7db8-4d3a-b5e5-3ea82bccc887?api-version=2016-03-30 - response: - body: - string: "{\n \"name\": \"46c26131-b87d-3a4d-b5e5-3ea82bccc887\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2023-06-29T11:15:43.3450054Z\"\n }" - headers: - cache-control: - - no-cache - content-length: - - '126' - content-type: - - application/json - date: - - Thu, 29 Jun 2023 11:16:13 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - aks create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --name --location --dns-name-prefix --node-count --ssh-key-value - --service-principal --client-secret --enable-managed-identity - User-Agent: - - AZURECLI/2.49.0 azsdk-python-azure-mgmt-containerservice/24.0.0 Python/3.8.10 - (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/3161c246-7db8-4d3a-b5e5-3ea82bccc887?api-version=2016-03-30 - response: - body: - string: "{\n \"name\": \"46c26131-b87d-3a4d-b5e5-3ea82bccc887\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2023-06-29T11:15:43.3450054Z\"\n }" - headers: - cache-control: - - no-cache - content-length: - - '126' - content-type: - - application/json - date: - - Thu, 29 Jun 2023 11:16:43 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - aks create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --name --location --dns-name-prefix --node-count --ssh-key-value - --service-principal --client-secret --enable-managed-identity - User-Agent: - - AZURECLI/2.49.0 azsdk-python-azure-mgmt-containerservice/24.0.0 Python/3.8.10 - (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/3161c246-7db8-4d3a-b5e5-3ea82bccc887?api-version=2016-03-30 - response: - body: - string: "{\n \"name\": \"46c26131-b87d-3a4d-b5e5-3ea82bccc887\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2023-06-29T11:15:43.3450054Z\"\n }" - headers: - cache-control: - - no-cache - content-length: - - '126' - content-type: - - application/json - date: - - Thu, 29 Jun 2023 11:17:13 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - aks create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --name --location --dns-name-prefix --node-count --ssh-key-value - --service-principal --client-secret --enable-managed-identity - User-Agent: - - AZURECLI/2.49.0 azsdk-python-azure-mgmt-containerservice/24.0.0 Python/3.8.10 - (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/3161c246-7db8-4d3a-b5e5-3ea82bccc887?api-version=2016-03-30 - response: - body: - string: "{\n \"name\": \"46c26131-b87d-3a4d-b5e5-3ea82bccc887\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2023-06-29T11:15:43.3450054Z\"\n }" - headers: - cache-control: - - no-cache - content-length: - - '126' - content-type: - - application/json - date: - - Thu, 29 Jun 2023 11:17:43 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - aks create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --name --location --dns-name-prefix --node-count --ssh-key-value - --service-principal --client-secret --enable-managed-identity - User-Agent: - - AZURECLI/2.49.0 azsdk-python-azure-mgmt-containerservice/24.0.0 Python/3.8.10 - (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/3161c246-7db8-4d3a-b5e5-3ea82bccc887?api-version=2016-03-30 - response: - body: - string: "{\n \"name\": \"46c26131-b87d-3a4d-b5e5-3ea82bccc887\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2023-06-29T11:15:43.3450054Z\"\n }" - headers: - cache-control: - - no-cache - content-length: - - '126' - content-type: - - application/json - date: - - Thu, 29 Jun 2023 11:18:14 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - aks create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --name --location --dns-name-prefix --node-count --ssh-key-value - --service-principal --client-secret --enable-managed-identity - User-Agent: - - AZURECLI/2.49.0 azsdk-python-azure-mgmt-containerservice/24.0.0 Python/3.8.10 - (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/3161c246-7db8-4d3a-b5e5-3ea82bccc887?api-version=2016-03-30 - response: - body: - string: "{\n \"name\": \"46c26131-b87d-3a4d-b5e5-3ea82bccc887\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2023-06-29T11:15:43.3450054Z\"\n }" - headers: - cache-control: - - no-cache - content-length: - - '126' - content-type: - - application/json - date: - - Thu, 29 Jun 2023 11:18:44 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - aks create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --name --location --dns-name-prefix --node-count --ssh-key-value - --service-principal --client-secret --enable-managed-identity - User-Agent: - - AZURECLI/2.49.0 azsdk-python-azure-mgmt-containerservice/24.0.0 Python/3.8.10 - (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/3161c246-7db8-4d3a-b5e5-3ea82bccc887?api-version=2016-03-30 - response: - body: - string: "{\n \"name\": \"46c26131-b87d-3a4d-b5e5-3ea82bccc887\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2023-06-29T11:15:43.3450054Z\"\n }" - headers: - cache-control: - - no-cache - content-length: - - '126' - content-type: - - application/json - date: - - Thu, 29 Jun 2023 11:19:14 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - aks create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --name --location --dns-name-prefix --node-count --ssh-key-value - --service-principal --client-secret --enable-managed-identity - User-Agent: - - AZURECLI/2.49.0 azsdk-python-azure-mgmt-containerservice/24.0.0 Python/3.8.10 - (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/3161c246-7db8-4d3a-b5e5-3ea82bccc887?api-version=2016-03-30 - response: - body: - string: "{\n \"name\": \"46c26131-b87d-3a4d-b5e5-3ea82bccc887\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2023-06-29T11:15:43.3450054Z\"\n }" - headers: - cache-control: - - no-cache - content-length: - - '126' - content-type: - - application/json - date: - - Thu, 29 Jun 2023 11:19:44 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - aks create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --name --location --dns-name-prefix --node-count --ssh-key-value - --service-principal --client-secret --enable-managed-identity - User-Agent: - - AZURECLI/2.49.0 azsdk-python-azure-mgmt-containerservice/24.0.0 Python/3.8.10 - (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/3161c246-7db8-4d3a-b5e5-3ea82bccc887?api-version=2016-03-30 - response: - body: - string: "{\n \"name\": \"46c26131-b87d-3a4d-b5e5-3ea82bccc887\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2023-06-29T11:15:43.3450054Z\"\n }" - headers: - cache-control: - - no-cache - content-length: - - '126' - content-type: - - application/json - date: - - Thu, 29 Jun 2023 11:20:14 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - aks create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --name --location --dns-name-prefix --node-count --ssh-key-value - --service-principal --client-secret --enable-managed-identity - User-Agent: - - AZURECLI/2.49.0 azsdk-python-azure-mgmt-containerservice/24.0.0 Python/3.8.10 - (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/3161c246-7db8-4d3a-b5e5-3ea82bccc887?api-version=2016-03-30 - response: - body: - string: "{\n \"name\": \"46c26131-b87d-3a4d-b5e5-3ea82bccc887\",\n \"status\": - \"Succeeded\",\n \"startTime\": \"2023-06-29T11:15:43.3450054Z\",\n \"endTime\": - \"2023-06-29T11:20:29.0152985Z\"\n }" - headers: - cache-control: - - no-cache - content-length: - - '170' - content-type: - - application/json - date: - - Thu, 29 Jun 2023 11:20:45 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - aks create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --name --location --dns-name-prefix --node-count --ssh-key-value - --service-principal --client-secret --enable-managed-identity - User-Agent: - - AZURECLI/2.49.0 azsdk-python-azure-mgmt-containerservice/24.0.0 Python/3.8.10 - (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000001?api-version=2024-02-01 - response: - body: - string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000001\",\n - \ \"location\": \"westus2\",\n \"name\": \"cliakstest000001\",\n \"type\": - \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": - \"Succeeded\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": - \"1.25.6\",\n \"currentKubernetesVersion\": \"1.25.6\",\n \"dnsPrefix\": - \"cliaksdns000002\",\n \"fqdn\": \"cliaksdns000002-jy7sgrwv.hcp.westus2.azmk8s.io\",\n - \ \"azurePortalFQDN\": \"cliaksdns000002-jy7sgrwv.portal.hcp.westus2.azmk8s.io\",\n - \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": - 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": - \"Managed\",\n \"kubeletDiskType\": \"OS\",\n \"maxPods\": 110,\n - \ \"type\": \"VirtualMachineScaleSets\",\n \"enableAutoScaling\": false,\n - \ \"provisioningState\": \"Succeeded\",\n \"powerState\": {\n \"code\": - \"Running\"\n },\n \"orchestratorVersion\": \"1.25.6\",\n \"currentOrchestratorVersion\": - \"1.25.6\",\n \"enableNodePublicIP\": false,\n \"mode\": \"System\",\n - \ \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\": false,\n - \ \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"nodeImageVersion\": - \"AKSUbuntu-2204gen2containerd-202306.19.0\",\n \"upgradeSettings\": {},\n - \ \"enableFIPS\": false\n }\n ],\n \"linuxProfile\": {\n \"adminUsername\": - \"azureuser\",\n \"ssh\": {\n \"publicKeys\": [\n {\n \"keyData\": - \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCw4P22/hE86EX0l2HMO+M6Gw+CW6O4Yl84NLjVqF7NtK8xwQKcZwGeIwNBv/HxJ0uMJlOCG1ZMPPvSZHDp07QvAjYKKryIkIGilxLUh4fNOEQiZqAXB2badERUdwLRB4f6kHc0vb35GHw3tlyjjDjvQTO7UgZQxnbipxyrJAYfMHxfXjST1tvmln3v87WvBGsY2hr1Iqx/gMO3AIqaNoJntl1sIeAcg8xXdYW3PP6N1gYToFsDxsQZU2rfefIRDniuP4fYy2J4shtEAkyzv1BlOBJGHBqCzyrhXVqFElLSFV99QhLUi43zXL4Ge1QKJBztH/q48ohMBt3WenkP2KsT - azcli_aks_live_test@example.com\\n\"\n }\n ]\n }\n },\n \"servicePrincipalProfile\": - {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \"nodeResourceGroup\": - \"MC_clitest000001_cliakstest000001_westus2\",\n \"enableRBAC\": true,\n - \ \"supportPlan\": \"KubernetesOfficial\",\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_cliakstest000001_westus2/providers/Microsoft.Network/publicIPAddresses/b258545a-7c62-4664-a564-43bffe8ad59b\"\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 \"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 \"sku\": {\n \"name\": - \"Base\",\n \"tier\": \"Free\"\n }\n }" - headers: - cache-control: - - no-cache - content-length: - - '3313' - content-type: - - application/json - date: - - Thu, 29 Jun 2023 11:20:46 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - aks list - Connection: - - keep-alive - ParameterSetName: - - -g - User-Agent: - - AZURECLI/2.49.0 azsdk-python-azure-mgmt-containerservice/24.0.0 Python/3.8.10 - (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters?api-version=2024-02-01 - response: - body: - string: "{\n \"value\": [\n {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000001\",\n - \ \"location\": \"westus2\",\n \"name\": \"cliakstest000001\",\n \"type\": - \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": - \"Succeeded\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n - \ \"kubernetesVersion\": \"1.25.6\",\n \"currentKubernetesVersion\": - \"1.25.6\",\n \"dnsPrefix\": \"cliaksdns000002\",\n \"fqdn\": \"cliaksdns000002-jy7sgrwv.hcp.westus2.azmk8s.io\",\n - \ \"azurePortalFQDN\": \"cliaksdns000002-jy7sgrwv.portal.hcp.westus2.azmk8s.io\",\n - \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n - \ \"count\": 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\": - 128,\n \"osDiskType\": \"Managed\",\n \"kubeletDiskType\": \"OS\",\n - \ \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n - \ \"enableAutoScaling\": false,\n \"provisioningState\": \"Succeeded\",\n - \ \"powerState\": {\n \"code\": \"Running\"\n },\n \"orchestratorVersion\": - \"1.25.6\",\n \"currentOrchestratorVersion\": \"1.25.6\",\n \"enableNodePublicIP\": - false,\n \"mode\": \"System\",\n \"enableEncryptionAtHost\": false,\n - \ \"enableUltraSSD\": false,\n \"osType\": \"Linux\",\n \"osSKU\": - \"Ubuntu\",\n \"nodeImageVersion\": \"AKSUbuntu-2204gen2containerd-202306.19.0\",\n - \ \"upgradeSettings\": {},\n \"enableFIPS\": false\n }\n ],\n - \ \"linuxProfile\": {\n \"adminUsername\": \"azureuser\",\n \"ssh\": - {\n \"publicKeys\": [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCw4P22/hE86EX0l2HMO+M6Gw+CW6O4Yl84NLjVqF7NtK8xwQKcZwGeIwNBv/HxJ0uMJlOCG1ZMPPvSZHDp07QvAjYKKryIkIGilxLUh4fNOEQiZqAXB2badERUdwLRB4f6kHc0vb35GHw3tlyjjDjvQTO7UgZQxnbipxyrJAYfMHxfXjST1tvmln3v87WvBGsY2hr1Iqx/gMO3AIqaNoJntl1sIeAcg8xXdYW3PP6N1gYToFsDxsQZU2rfefIRDniuP4fYy2J4shtEAkyzv1BlOBJGHBqCzyrhXVqFElLSFV99QhLUi43zXL4Ge1QKJBztH/q48ohMBt3WenkP2KsT - azcli_aks_live_test@example.com\\n\"\n }\n ]\n }\n },\n - \ \"servicePrincipalProfile\": {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n - \ },\n \"nodeResourceGroup\": \"MC_clitest000001_cliakstest000001_westus2\",\n - \ \"enableRBAC\": true,\n \"supportPlan\": \"KubernetesOfficial\",\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_cliakstest000001_westus2/providers/Microsoft.Network/publicIPAddresses/b258545a-7c62-4664-a564-43bffe8ad59b\"\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 \"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 \"sku\": {\n - \ \"name\": \"Base\",\n \"tier\": \"Free\"\n }\n }\n ]\n }" - headers: - cache-control: - - no-cache - content-length: - - '3556' - content-type: - - application/json - date: - - Thu, 29 Jun 2023 11:20:46 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - aks list - Connection: - - keep-alive - ParameterSetName: - - -g -o - User-Agent: - - AZURECLI/2.49.0 azsdk-python-azure-mgmt-containerservice/24.0.0 Python/3.8.10 - (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters?api-version=2024-02-01 - response: - body: - string: "{\n \"value\": [\n {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000001\",\n - \ \"location\": \"westus2\",\n \"name\": \"cliakstest000001\",\n \"type\": - \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": - \"Succeeded\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n - \ \"kubernetesVersion\": \"1.25.6\",\n \"currentKubernetesVersion\": - \"1.25.6\",\n \"dnsPrefix\": \"cliaksdns000002\",\n \"fqdn\": \"cliaksdns000002-jy7sgrwv.hcp.westus2.azmk8s.io\",\n - \ \"azurePortalFQDN\": \"cliaksdns000002-jy7sgrwv.portal.hcp.westus2.azmk8s.io\",\n - \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n - \ \"count\": 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\": - 128,\n \"osDiskType\": \"Managed\",\n \"kubeletDiskType\": \"OS\",\n - \ \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n - \ \"enableAutoScaling\": false,\n \"provisioningState\": \"Succeeded\",\n - \ \"powerState\": {\n \"code\": \"Running\"\n },\n \"orchestratorVersion\": - \"1.25.6\",\n \"currentOrchestratorVersion\": \"1.25.6\",\n \"enableNodePublicIP\": - false,\n \"mode\": \"System\",\n \"enableEncryptionAtHost\": false,\n - \ \"enableUltraSSD\": false,\n \"osType\": \"Linux\",\n \"osSKU\": - \"Ubuntu\",\n \"nodeImageVersion\": \"AKSUbuntu-2204gen2containerd-202306.19.0\",\n - \ \"upgradeSettings\": {},\n \"enableFIPS\": false\n }\n ],\n - \ \"linuxProfile\": {\n \"adminUsername\": \"azureuser\",\n \"ssh\": - {\n \"publicKeys\": [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCw4P22/hE86EX0l2HMO+M6Gw+CW6O4Yl84NLjVqF7NtK8xwQKcZwGeIwNBv/HxJ0uMJlOCG1ZMPPvSZHDp07QvAjYKKryIkIGilxLUh4fNOEQiZqAXB2badERUdwLRB4f6kHc0vb35GHw3tlyjjDjvQTO7UgZQxnbipxyrJAYfMHxfXjST1tvmln3v87WvBGsY2hr1Iqx/gMO3AIqaNoJntl1sIeAcg8xXdYW3PP6N1gYToFsDxsQZU2rfefIRDniuP4fYy2J4shtEAkyzv1BlOBJGHBqCzyrhXVqFElLSFV99QhLUi43zXL4Ge1QKJBztH/q48ohMBt3WenkP2KsT - azcli_aks_live_test@example.com\\n\"\n }\n ]\n }\n },\n - \ \"servicePrincipalProfile\": {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n - \ },\n \"nodeResourceGroup\": \"MC_clitest000001_cliakstest000001_westus2\",\n - \ \"enableRBAC\": true,\n \"supportPlan\": \"KubernetesOfficial\",\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_cliakstest000001_westus2/providers/Microsoft.Network/publicIPAddresses/b258545a-7c62-4664-a564-43bffe8ad59b\"\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 \"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 \"sku\": {\n - \ \"name\": \"Base\",\n \"tier\": \"Free\"\n }\n }\n ]\n }" - headers: - cache-control: - - no-cache - content-length: - - '3556' - content-type: - - application/json - date: - - Thu, 29 Jun 2023 11:20:48 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 show - Connection: - - keep-alive - ParameterSetName: - - -g -n - User-Agent: - - AZURECLI/2.49.0 azsdk-python-azure-mgmt-containerservice/24.0.0 Python/3.8.10 - (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000001?api-version=2024-02-01 - response: - body: - string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000001\",\n - \ \"location\": \"westus2\",\n \"name\": \"cliakstest000001\",\n \"type\": - \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": - \"Succeeded\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": - \"1.25.6\",\n \"currentKubernetesVersion\": \"1.25.6\",\n \"dnsPrefix\": - \"cliaksdns000002\",\n \"fqdn\": \"cliaksdns000002-jy7sgrwv.hcp.westus2.azmk8s.io\",\n - \ \"azurePortalFQDN\": \"cliaksdns000002-jy7sgrwv.portal.hcp.westus2.azmk8s.io\",\n - \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": - 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": - \"Managed\",\n \"kubeletDiskType\": \"OS\",\n \"maxPods\": 110,\n - \ \"type\": \"VirtualMachineScaleSets\",\n \"enableAutoScaling\": false,\n - \ \"provisioningState\": \"Succeeded\",\n \"powerState\": {\n \"code\": - \"Running\"\n },\n \"orchestratorVersion\": \"1.25.6\",\n \"currentOrchestratorVersion\": - \"1.25.6\",\n \"enableNodePublicIP\": false,\n \"mode\": \"System\",\n - \ \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\": false,\n - \ \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"nodeImageVersion\": - \"AKSUbuntu-2204gen2containerd-202306.19.0\",\n \"upgradeSettings\": {},\n - \ \"enableFIPS\": false\n }\n ],\n \"linuxProfile\": {\n \"adminUsername\": - \"azureuser\",\n \"ssh\": {\n \"publicKeys\": [\n {\n \"keyData\": - \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCw4P22/hE86EX0l2HMO+M6Gw+CW6O4Yl84NLjVqF7NtK8xwQKcZwGeIwNBv/HxJ0uMJlOCG1ZMPPvSZHDp07QvAjYKKryIkIGilxLUh4fNOEQiZqAXB2badERUdwLRB4f6kHc0vb35GHw3tlyjjDjvQTO7UgZQxnbipxyrJAYfMHxfXjST1tvmln3v87WvBGsY2hr1Iqx/gMO3AIqaNoJntl1sIeAcg8xXdYW3PP6N1gYToFsDxsQZU2rfefIRDniuP4fYy2J4shtEAkyzv1BlOBJGHBqCzyrhXVqFElLSFV99QhLUi43zXL4Ge1QKJBztH/q48ohMBt3WenkP2KsT - azcli_aks_live_test@example.com\\n\"\n }\n ]\n }\n },\n \"servicePrincipalProfile\": - {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \"nodeResourceGroup\": - \"MC_clitest000001_cliakstest000001_westus2\",\n \"enableRBAC\": true,\n - \ \"supportPlan\": \"KubernetesOfficial\",\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_cliakstest000001_westus2/providers/Microsoft.Network/publicIPAddresses/b258545a-7c62-4664-a564-43bffe8ad59b\"\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 \"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 \"sku\": {\n \"name\": - \"Base\",\n \"tier\": \"Free\"\n }\n }" - headers: - cache-control: - - no-cache - content-length: - - '3313' - content-type: - - application/json - date: - - Thu, 29 Jun 2023 11:20:48 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 get-credentials - Connection: - - keep-alive - Content-Length: - - '0' - ParameterSetName: - - -g -n --file - User-Agent: - - AZURECLI/2.49.0 azsdk-python-azure-mgmt-containerservice/24.0.0 Python/3.8.10 - (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29) - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000001/listClusterUserCredential?api-version=2024-02-01 - response: - body: - string: "{\n \"kubeconfigs\": [\n {\n \"name\": \"clusterUser\",\n \"value\": - \"YXBpVmVyc2lvbjogdjEKY2x1c3RlcnM6Ci0gY2x1c3RlcjoKICAgIGNlcnRpZmljYXRlLWF1dGhvcml0eS1kYXRhOiBMUzB0TFMxQ1JVZEpUaUJEUlZKVVNVWkpRMEZVUlMwdExTMHRDazFKU1VVMlZFTkRRWFJIWjBGM1NVSkJaMGxTUVVsc1pVeFlWSHBSWW5rMlpUVjNRV3hsZGpKUVYyTjNSRkZaU2t0dldrbG9kbU5PUVZGRlRFSlJRWGNLUkZSRlRFMUJhMGRCTVZWRlFYaE5RMWt5UlhkSlFtTk9UV3BOZDA1cVNUVk5WRVYzVG1wQmVsZG9aMUJOYWtFeFRYcEJNazFxYTNoTlZFVXlUVVJPWVFwTlFUQjRRM3BCU2tKblRsWkNRVTFVUVcxT2FFMUpTVU5KYWtGT1FtZHJjV2hyYVVjNWR6QkNRVkZGUmtGQlQwTkJaemhCVFVsSlEwTm5TME5CWjBWQkNqTmlja3RRY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SlFrRkdUVUprZDBrd1JFRmxNekJHTkUxd2JGQk5lRzR6VlhObGFpc0tNSFJZWWtGaWRFcGpkVEVyZW1SdFJXVTVhemRFYWxoT1RURlZVMFZPY1RseFozb3dORWhMVURjMFNGSXhSeXROVldSTlpHY3JlbkpHZFdjMVZUaEhZUXBVSzBSaVpWSmxaMjlvU3l0M2RHUllWVk5wV0M5SlNFZDZhMWhEYlRsaGQwUXpLMFl6ZFROYVFWWlFaRE4xUTJ4Q1NYZDZia3h1VlU5d1puZ3ZUMGxPQ2xWelRXRkxiVUZyUkZaeksyVjJibkpsUVdjMmVXbzNTVUYwVkdaRGVVbEJTWFl3TkcxSE5USk9jak00V1hWWE9TdDZhVkY2VXpkT1V6RkxRamhMUWs4S1FUUkxRbEV5VldwVGFVOUxjVmxpY3pGM1QxcERWemhDVkd4aVJXaFRObmhFVm1obFEzcG9SbGcwZWpVdmMwUk1PVzVoYVdwV01qQjZObVJJYlRKWFpBcGlaeTlxU2xjMGQxTlplRUpxY2tFMmRXSjRjRzgyV201TWFFaFVlVVpHUlM5V1JqbFFVM2hXU1dwWWFXUTNVR1pxTm5FelVIQmtiR2hWY3owS0xTMHRMUzFGVGtRZ1VsTkJJRkJTU1ZaQlZFVWdTMFZaTFMwdExTMEsKICAgIHRva2VuOiA3dXZxYWRqcHBrOXd3aDdsdzQ2MmJhZ3lidXJ0NTdxNDh6dGZuMmt2ZGZ3ZThlbXhwZTVpb3N0M3NzYTE1dnB4M2VuZTljeGRxdTBmOWF3OTd4NGJ2bnJoMXJ1d3R0c3NrMzBxZjB2ZzdwNGJyNzd4MmJvcnd4MXdhZmk4c3RxZwo=\"\n - \ }\n ]\n }" - headers: - cache-control: - - no-cache - content-length: - - '13084' - content-type: - - application/json - date: - - Thu, 29 Jun 2023 11:20:49 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - aks scale - Connection: - - keep-alive - ParameterSetName: - - -g -n --node-count - User-Agent: - - AZURECLI/2.49.0 azsdk-python-azure-mgmt-containerservice/24.0.0 Python/3.8.10 - (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000001?api-version=2024-02-01 - response: - body: - string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000001\",\n - \ \"location\": \"westus2\",\n \"name\": \"cliakstest000001\",\n \"type\": - \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": - \"Succeeded\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": - \"1.25.6\",\n \"currentKubernetesVersion\": \"1.25.6\",\n \"dnsPrefix\": - \"cliaksdns000002\",\n \"fqdn\": \"cliaksdns000002-jy7sgrwv.hcp.westus2.azmk8s.io\",\n - \ \"azurePortalFQDN\": \"cliaksdns000002-jy7sgrwv.portal.hcp.westus2.azmk8s.io\",\n - \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": - 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": - \"Managed\",\n \"kubeletDiskType\": \"OS\",\n \"maxPods\": 110,\n - \ \"type\": \"VirtualMachineScaleSets\",\n \"enableAutoScaling\": false,\n - \ \"provisioningState\": \"Succeeded\",\n \"powerState\": {\n \"code\": - \"Running\"\n },\n \"orchestratorVersion\": \"1.25.6\",\n \"currentOrchestratorVersion\": - \"1.25.6\",\n \"enableNodePublicIP\": false,\n \"mode\": \"System\",\n - \ \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\": false,\n - \ \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"nodeImageVersion\": - \"AKSUbuntu-2204gen2containerd-202306.19.0\",\n \"upgradeSettings\": {},\n - \ \"enableFIPS\": false\n }\n ],\n \"linuxProfile\": {\n \"adminUsername\": - \"azureuser\",\n \"ssh\": {\n \"publicKeys\": [\n {\n \"keyData\": - \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCw4P22/hE86EX0l2HMO+M6Gw+CW6O4Yl84NLjVqF7NtK8xwQKcZwGeIwNBv/HxJ0uMJlOCG1ZMPPvSZHDp07QvAjYKKryIkIGilxLUh4fNOEQiZqAXB2badERUdwLRB4f6kHc0vb35GHw3tlyjjDjvQTO7UgZQxnbipxyrJAYfMHxfXjST1tvmln3v87WvBGsY2hr1Iqx/gMO3AIqaNoJntl1sIeAcg8xXdYW3PP6N1gYToFsDxsQZU2rfefIRDniuP4fYy2J4shtEAkyzv1BlOBJGHBqCzyrhXVqFElLSFV99QhLUi43zXL4Ge1QKJBztH/q48ohMBt3WenkP2KsT - azcli_aks_live_test@example.com\\n\"\n }\n ]\n }\n },\n \"servicePrincipalProfile\": - {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \"nodeResourceGroup\": - \"MC_clitest000001_cliakstest000001_westus2\",\n \"enableRBAC\": true,\n - \ \"supportPlan\": \"KubernetesOfficial\",\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_cliakstest000001_westus2/providers/Microsoft.Network/publicIPAddresses/b258545a-7c62-4664-a564-43bffe8ad59b\"\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 \"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 \"sku\": {\n \"name\": - \"Base\",\n \"tier\": \"Free\"\n }\n }" - headers: - cache-control: - - no-cache - content-length: - - '3313' - content-type: - - application/json - date: - - Thu, 29 Jun 2023 11:20:50 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: '{"location": "westus2", "sku": {"name": "Base", "tier": "Free"}, "properties": - {"kubernetesVersion": "1.25.6", "dnsPrefix": "cliaksdns000002", "agentPoolProfiles": - [{"count": 3, "vmSize": "Standard_DS2_v2", "osDiskSizeGB": 128, "osDiskType": - "Managed", "kubeletDiskType": "OS", "maxPods": 110, "osType": "Linux", "osSKU": - "Ubuntu", "enableAutoScaling": false, "type": "VirtualMachineScaleSets", "mode": - "System", "orchestratorVersion": "1.25.6", "upgradeSettings": {}, "powerState": - {"code": "Running"}, "enableNodePublicIP": false, "enableEncryptionAtHost": - false, "enableUltraSSD": false, "enableFIPS": false, "name": "nodepool1"}], - "linuxProfile": {"adminUsername": "azureuser", "ssh": {"publicKeys": [{"keyData": - "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCw4P22/hE86EX0l2HMO+M6Gw+CW6O4Yl84NLjVqF7NtK8xwQKcZwGeIwNBv/HxJ0uMJlOCG1ZMPPvSZHDp07QvAjYKKryIkIGilxLUh4fNOEQiZqAXB2badERUdwLRB4f6kHc0vb35GHw3tlyjjDjvQTO7UgZQxnbipxyrJAYfMHxfXjST1tvmln3v87WvBGsY2hr1Iqx/gMO3AIqaNoJntl1sIeAcg8xXdYW3PP6N1gYToFsDxsQZU2rfefIRDniuP4fYy2J4shtEAkyzv1BlOBJGHBqCzyrhXVqFElLSFV99QhLUi43zXL4Ge1QKJBztH/q48ohMBt3WenkP2KsT - azcli_aks_live_test@example.com\n"}]}}, "oidcIssuerProfile": {"enabled": false}, - "nodeResourceGroup": "MC_clitest000001_cliakstest000001_westus2", "enableRBAC": - true, "supportPlan": "KubernetesOfficial", "networkProfile": {"networkPlugin": - "kubenet", "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_cliakstest000001_westus2/providers/Microsoft.Network/publicIPAddresses/b258545a-7c62-4664-a564-43bffe8ad59b"}]}, - "podCidrs": ["10.244.0.0/16"], "serviceCidrs": ["10.0.0.0/16"], "ipFamilies": - ["IPv4"]}, "disableLocalAccounts": false, "securityProfile": {}, "storageProfile": - {"diskCSIDriver": {"enabled": true}, "fileCSIDriver": {"enabled": true}, "snapshotController": - {"enabled": true}}, "workloadAutoScalerProfile": {}}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - aks scale - Connection: - - keep-alive - Content-Length: - - '2099' - Content-Type: - - application/json - ParameterSetName: - - -g -n --node-count - User-Agent: - - AZURECLI/2.49.0 azsdk-python-azure-mgmt-containerservice/24.0.0 Python/3.8.10 - (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29) - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000001?api-version=2024-02-01 - response: - body: - string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000001\",\n - \ \"location\": \"westus2\",\n \"name\": \"cliakstest000001\",\n \"type\": - \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": - \"Updating\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": - \"1.25.6\",\n \"currentKubernetesVersion\": \"1.25.6\",\n \"dnsPrefix\": - \"cliaksdns000002\",\n \"fqdn\": \"cliaksdns000002-jy7sgrwv.hcp.westus2.azmk8s.io\",\n - \ \"azurePortalFQDN\": \"cliaksdns000002-jy7sgrwv.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 \"enableAutoScaling\": false,\n - \ \"provisioningState\": \"Updating\",\n \"powerState\": {\n \"code\": - \"Running\"\n },\n \"orchestratorVersion\": \"1.25.6\",\n \"currentOrchestratorVersion\": - \"1.25.6\",\n \"enableNodePublicIP\": false,\n \"mode\": \"System\",\n - \ \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\": false,\n - \ \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"nodeImageVersion\": - \"AKSUbuntu-2204gen2containerd-202306.19.0\",\n \"upgradeSettings\": {},\n - \ \"enableFIPS\": false\n }\n ],\n \"linuxProfile\": {\n \"adminUsername\": - \"azureuser\",\n \"ssh\": {\n \"publicKeys\": [\n {\n \"keyData\": - \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCw4P22/hE86EX0l2HMO+M6Gw+CW6O4Yl84NLjVqF7NtK8xwQKcZwGeIwNBv/HxJ0uMJlOCG1ZMPPvSZHDp07QvAjYKKryIkIGilxLUh4fNOEQiZqAXB2badERUdwLRB4f6kHc0vb35GHw3tlyjjDjvQTO7UgZQxnbipxyrJAYfMHxfXjST1tvmln3v87WvBGsY2hr1Iqx/gMO3AIqaNoJntl1sIeAcg8xXdYW3PP6N1gYToFsDxsQZU2rfefIRDniuP4fYy2J4shtEAkyzv1BlOBJGHBqCzyrhXVqFElLSFV99QhLUi43zXL4Ge1QKJBztH/q48ohMBt3WenkP2KsT - azcli_aks_live_test@example.com\\n\"\n }\n ]\n }\n },\n \"servicePrincipalProfile\": - {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \"nodeResourceGroup\": - \"MC_clitest000001_cliakstest000001_westus2\",\n \"enableRBAC\": true,\n - \ \"supportPlan\": \"KubernetesOfficial\",\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_cliakstest000001_westus2/providers/Microsoft.Network/publicIPAddresses/b258545a-7c62-4664-a564-43bffe8ad59b\"\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 \"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 \"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/westus2/operations/cacbd3e3-9568-4f10-bba0-25fecdd44215?api-version=2016-03-30 - cache-control: - - no-cache - content-length: - - '3311' - content-type: - - application/json - date: - - Thu, 29 Jun 2023 11:20: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 - x-ms-ratelimit-remaining-subscription-writes: - - '1198' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - aks scale - Connection: - - keep-alive - ParameterSetName: - - -g -n --node-count - User-Agent: - - AZURECLI/2.49.0 azsdk-python-azure-mgmt-containerservice/24.0.0 Python/3.8.10 - (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/cacbd3e3-9568-4f10-bba0-25fecdd44215?api-version=2016-03-30 - response: - body: - string: "{\n \"name\": \"e3d3cbca-6895-104f-bba0-25fecdd44215\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2023-06-29T11:20:55.7677164Z\"\n }" - headers: - cache-control: - - no-cache - content-length: - - '126' - content-type: - - application/json - date: - - Thu, 29 Jun 2023 11:20: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 scale - Connection: - - keep-alive - ParameterSetName: - - -g -n --node-count - User-Agent: - - AZURECLI/2.49.0 azsdk-python-azure-mgmt-containerservice/24.0.0 Python/3.8.10 - (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/cacbd3e3-9568-4f10-bba0-25fecdd44215?api-version=2016-03-30 - response: - body: - string: "{\n \"name\": \"e3d3cbca-6895-104f-bba0-25fecdd44215\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2023-06-29T11:20:55.7677164Z\"\n }" - headers: - cache-control: - - no-cache - content-length: - - '126' - content-type: - - application/json - date: - - Thu, 29 Jun 2023 11:21: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 scale - Connection: - - keep-alive - ParameterSetName: - - -g -n --node-count - User-Agent: - - AZURECLI/2.49.0 azsdk-python-azure-mgmt-containerservice/24.0.0 Python/3.8.10 - (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/cacbd3e3-9568-4f10-bba0-25fecdd44215?api-version=2016-03-30 - response: - body: - string: "{\n \"name\": \"e3d3cbca-6895-104f-bba0-25fecdd44215\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2023-06-29T11:20:55.7677164Z\"\n }" - headers: - cache-control: - - no-cache - content-length: - - '126' - content-type: - - application/json - date: - - Thu, 29 Jun 2023 11:21: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 scale - Connection: - - keep-alive - ParameterSetName: - - -g -n --node-count - User-Agent: - - AZURECLI/2.49.0 azsdk-python-azure-mgmt-containerservice/24.0.0 Python/3.8.10 - (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/cacbd3e3-9568-4f10-bba0-25fecdd44215?api-version=2016-03-30 - response: - body: - string: "{\n \"name\": \"e3d3cbca-6895-104f-bba0-25fecdd44215\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2023-06-29T11:20:55.7677164Z\"\n }" - headers: - cache-control: - - no-cache - content-length: - - '126' - content-type: - - application/json - date: - - Thu, 29 Jun 2023 11:22: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 scale - Connection: - - keep-alive - ParameterSetName: - - -g -n --node-count - User-Agent: - - AZURECLI/2.49.0 azsdk-python-azure-mgmt-containerservice/24.0.0 Python/3.8.10 - (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/cacbd3e3-9568-4f10-bba0-25fecdd44215?api-version=2016-03-30 - response: - body: - string: "{\n \"name\": \"e3d3cbca-6895-104f-bba0-25fecdd44215\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2023-06-29T11:20:55.7677164Z\"\n }" - headers: - cache-control: - - no-cache - content-length: - - '126' - content-type: - - application/json - date: - - Thu, 29 Jun 2023 11:22: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 scale - Connection: - - keep-alive - ParameterSetName: - - -g -n --node-count - User-Agent: - - AZURECLI/2.49.0 azsdk-python-azure-mgmt-containerservice/24.0.0 Python/3.8.10 - (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/cacbd3e3-9568-4f10-bba0-25fecdd44215?api-version=2016-03-30 - response: - body: - string: "{\n \"name\": \"e3d3cbca-6895-104f-bba0-25fecdd44215\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2023-06-29T11:20:55.7677164Z\"\n }" - headers: - cache-control: - - no-cache - content-length: - - '126' - content-type: - - application/json - date: - - Thu, 29 Jun 2023 11:23: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 scale - Connection: - - keep-alive - ParameterSetName: - - -g -n --node-count - User-Agent: - - AZURECLI/2.49.0 azsdk-python-azure-mgmt-containerservice/24.0.0 Python/3.8.10 - (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/cacbd3e3-9568-4f10-bba0-25fecdd44215?api-version=2016-03-30 - response: - body: - string: "{\n \"name\": \"e3d3cbca-6895-104f-bba0-25fecdd44215\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2023-06-29T11:20:55.7677164Z\"\n }" - headers: - cache-control: - - no-cache - content-length: - - '126' - content-type: - - application/json - date: - - Thu, 29 Jun 2023 11:23: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 scale - Connection: - - keep-alive - ParameterSetName: - - -g -n --node-count - User-Agent: - - AZURECLI/2.49.0 azsdk-python-azure-mgmt-containerservice/24.0.0 Python/3.8.10 - (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/cacbd3e3-9568-4f10-bba0-25fecdd44215?api-version=2016-03-30 - response: - body: - string: "{\n \"name\": \"e3d3cbca-6895-104f-bba0-25fecdd44215\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2023-06-29T11:20:55.7677164Z\"\n }" - headers: - cache-control: - - no-cache - content-length: - - '126' - content-type: - - application/json - date: - - Thu, 29 Jun 2023 11:24: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 scale - Connection: - - keep-alive - ParameterSetName: - - -g -n --node-count - User-Agent: - - AZURECLI/2.49.0 azsdk-python-azure-mgmt-containerservice/24.0.0 Python/3.8.10 - (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/cacbd3e3-9568-4f10-bba0-25fecdd44215?api-version=2016-03-30 - response: - body: - string: "{\n \"name\": \"e3d3cbca-6895-104f-bba0-25fecdd44215\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2023-06-29T11:20:55.7677164Z\"\n }" - headers: - cache-control: - - no-cache - content-length: - - '126' - content-type: - - application/json - date: - - Thu, 29 Jun 2023 11:24: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 scale - Connection: - - keep-alive - ParameterSetName: - - -g -n --node-count - User-Agent: - - AZURECLI/2.49.0 azsdk-python-azure-mgmt-containerservice/24.0.0 Python/3.8.10 - (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/cacbd3e3-9568-4f10-bba0-25fecdd44215?api-version=2016-03-30 - response: - body: - string: "{\n \"name\": \"e3d3cbca-6895-104f-bba0-25fecdd44215\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2023-06-29T11:20:55.7677164Z\"\n }" - headers: - cache-control: - - no-cache - content-length: - - '126' - content-type: - - application/json - date: - - Thu, 29 Jun 2023 11:25: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 scale - Connection: - - keep-alive - ParameterSetName: - - -g -n --node-count - User-Agent: - - AZURECLI/2.49.0 azsdk-python-azure-mgmt-containerservice/24.0.0 Python/3.8.10 - (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/cacbd3e3-9568-4f10-bba0-25fecdd44215?api-version=2016-03-30 - response: - body: - string: "{\n \"name\": \"e3d3cbca-6895-104f-bba0-25fecdd44215\",\n \"status\": - \"Succeeded\",\n \"startTime\": \"2023-06-29T11:20:55.7677164Z\",\n \"endTime\": - \"2023-06-29T11:25:40.5528185Z\"\n }" - headers: - cache-control: - - no-cache - content-length: - - '170' - content-type: - - application/json - date: - - Thu, 29 Jun 2023 11:25: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 scale - Connection: - - keep-alive - ParameterSetName: - - -g -n --node-count - User-Agent: - - AZURECLI/2.49.0 azsdk-python-azure-mgmt-containerservice/24.0.0 Python/3.8.10 - (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000001?api-version=2024-02-01 - response: - body: - string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000001\",\n - \ \"location\": \"westus2\",\n \"name\": \"cliakstest000001\",\n \"type\": - \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": - \"Succeeded\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": - \"1.25.6\",\n \"currentKubernetesVersion\": \"1.25.6\",\n \"dnsPrefix\": - \"cliaksdns000002\",\n \"fqdn\": \"cliaksdns000002-jy7sgrwv.hcp.westus2.azmk8s.io\",\n - \ \"azurePortalFQDN\": \"cliaksdns000002-jy7sgrwv.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 \"enableAutoScaling\": false,\n - \ \"provisioningState\": \"Succeeded\",\n \"powerState\": {\n \"code\": - \"Running\"\n },\n \"orchestratorVersion\": \"1.25.6\",\n \"currentOrchestratorVersion\": - \"1.25.6\",\n \"enableNodePublicIP\": false,\n \"mode\": \"System\",\n - \ \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\": false,\n - \ \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"nodeImageVersion\": - \"AKSUbuntu-2204gen2containerd-202306.19.0\",\n \"upgradeSettings\": {},\n - \ \"enableFIPS\": false\n }\n ],\n \"linuxProfile\": {\n \"adminUsername\": - \"azureuser\",\n \"ssh\": {\n \"publicKeys\": [\n {\n \"keyData\": - \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCw4P22/hE86EX0l2HMO+M6Gw+CW6O4Yl84NLjVqF7NtK8xwQKcZwGeIwNBv/HxJ0uMJlOCG1ZMPPvSZHDp07QvAjYKKryIkIGilxLUh4fNOEQiZqAXB2badERUdwLRB4f6kHc0vb35GHw3tlyjjDjvQTO7UgZQxnbipxyrJAYfMHxfXjST1tvmln3v87WvBGsY2hr1Iqx/gMO3AIqaNoJntl1sIeAcg8xXdYW3PP6N1gYToFsDxsQZU2rfefIRDniuP4fYy2J4shtEAkyzv1BlOBJGHBqCzyrhXVqFElLSFV99QhLUi43zXL4Ge1QKJBztH/q48ohMBt3WenkP2KsT - azcli_aks_live_test@example.com\\n\"\n }\n ]\n }\n },\n \"servicePrincipalProfile\": - {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \"nodeResourceGroup\": - \"MC_clitest000001_cliakstest000001_westus2\",\n \"enableRBAC\": true,\n - \ \"supportPlan\": \"KubernetesOfficial\",\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_cliakstest000001_westus2/providers/Microsoft.Network/publicIPAddresses/b258545a-7c62-4664-a564-43bffe8ad59b\"\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 \"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 \"sku\": {\n \"name\": - \"Base\",\n \"tier\": \"Free\"\n }\n }" - headers: - cache-control: - - no-cache - content-length: - - '3313' - content-type: - - application/json - date: - - Thu, 29 Jun 2023 11:25: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 show - Connection: - - keep-alive - ParameterSetName: - - -g -n - User-Agent: - - AZURECLI/2.49.0 azsdk-python-azure-mgmt-containerservice/24.0.0 Python/3.8.10 - (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000001?api-version=2024-02-01 - response: - body: - string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000001\",\n - \ \"location\": \"westus2\",\n \"name\": \"cliakstest000001\",\n \"type\": - \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": - \"Succeeded\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": - \"1.25.6\",\n \"currentKubernetesVersion\": \"1.25.6\",\n \"dnsPrefix\": - \"cliaksdns000002\",\n \"fqdn\": \"cliaksdns000002-jy7sgrwv.hcp.westus2.azmk8s.io\",\n - \ \"azurePortalFQDN\": \"cliaksdns000002-jy7sgrwv.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 \"enableAutoScaling\": false,\n - \ \"provisioningState\": \"Succeeded\",\n \"powerState\": {\n \"code\": - \"Running\"\n },\n \"orchestratorVersion\": \"1.25.6\",\n \"currentOrchestratorVersion\": - \"1.25.6\",\n \"enableNodePublicIP\": false,\n \"mode\": \"System\",\n - \ \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\": false,\n - \ \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"nodeImageVersion\": - \"AKSUbuntu-2204gen2containerd-202306.19.0\",\n \"upgradeSettings\": {},\n - \ \"enableFIPS\": false\n }\n ],\n \"linuxProfile\": {\n \"adminUsername\": - \"azureuser\",\n \"ssh\": {\n \"publicKeys\": [\n {\n \"keyData\": - \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCw4P22/hE86EX0l2HMO+M6Gw+CW6O4Yl84NLjVqF7NtK8xwQKcZwGeIwNBv/HxJ0uMJlOCG1ZMPPvSZHDp07QvAjYKKryIkIGilxLUh4fNOEQiZqAXB2badERUdwLRB4f6kHc0vb35GHw3tlyjjDjvQTO7UgZQxnbipxyrJAYfMHxfXjST1tvmln3v87WvBGsY2hr1Iqx/gMO3AIqaNoJntl1sIeAcg8xXdYW3PP6N1gYToFsDxsQZU2rfefIRDniuP4fYy2J4shtEAkyzv1BlOBJGHBqCzyrhXVqFElLSFV99QhLUi43zXL4Ge1QKJBztH/q48ohMBt3WenkP2KsT - azcli_aks_live_test@example.com\\n\"\n }\n ]\n }\n },\n \"servicePrincipalProfile\": - {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \"nodeResourceGroup\": - \"MC_clitest000001_cliakstest000001_westus2\",\n \"enableRBAC\": true,\n - \ \"supportPlan\": \"KubernetesOfficial\",\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_cliakstest000001_westus2/providers/Microsoft.Network/publicIPAddresses/b258545a-7c62-4664-a564-43bffe8ad59b\"\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 \"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 \"sku\": {\n \"name\": - \"Base\",\n \"tier\": \"Free\"\n }\n }" - headers: - cache-control: - - no-cache - content-length: - - '3313' - content-type: - - application/json - date: - - Thu, 29 Jun 2023 11:26:00 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.49.0 azsdk-python-azure-mgmt-containerservice/24.0.0 Python/3.8.10 - (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29) - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000001?api-version=2024-02-01 - response: - body: - string: '' - headers: - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/33d4ea55-3244-4887-9795-9a346e6d4626?api-version=2016-03-30 - cache-control: - - no-cache - content-length: - - '0' - date: - - Thu, 29 Jun 2023 11:26:01 GMT - expires: - - '-1' - location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operationresults/33d4ea55-3244-4887-9795-9a346e6d4626?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 7fcfdfc088e..8a68e307abc 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 @@ -2026,90 +2026,6 @@ def test_aks_availability_zones(self, resource_group, resource_group_location, s 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') - @AKSCustomRoleBasedServicePrincipalPreparer() - def test_aks_managed_identity_with_service_principal(self, resource_group, resource_group_location, sp_name, sp_password): - # reset the count so in replay mode the random names will start with 0 - self.test_resources_count = 0 - # kwargs for string formatting - aks_name = self.create_random_name('cliakstest', 16) - self.kwargs.update({ - 'resource_group': resource_group, - 'name': aks_name, - 'dns_name_prefix': self.create_random_name('cliaksdns', 16), - 'ssh_key_value': self.generate_ssh_keys(), - 'location': resource_group_location, - 'service_principal': sp_name, - 'client_secret': sp_password, - 'resource_type': 'Microsoft.ContainerService/ManagedClusters' - }) - - # create - create_cmd = 'aks create --resource-group={resource_group} --name={name} --location={location} ' \ - '--dns-name-prefix={dns_name_prefix} --node-count=1 --ssh-key-value={ssh_key_value} ' \ - '--service-principal={service_principal} --client-secret={client_secret} --enable-managed-identity' - - self.cmd(create_cmd, checks=[ - self.exists('fqdn'), - self.exists('nodeResourceGroup'), - self.exists('servicePrincipalProfile'), - self.not_exists('identity'), - self.check('provisioningState', 'Succeeded'), - ]) - - # list - self.cmd('aks list -g {resource_group}', checks=[ - self.check('[0].type', '{resource_type}'), - StringContainCheck(aks_name), - StringContainCheck(resource_group) - ]) - - # list in tabular format - self.cmd('aks list -g {resource_group} -o table', checks=[ - StringContainCheck(aks_name), - StringContainCheck(resource_group) - ]) - - # show - self.cmd('aks show -g {resource_group} -n {name}', checks=[ - self.check('type', '{resource_type}'), - self.check('name', '{name}'), - self.exists('nodeResourceGroup'), - self.check('resourceGroup', '{resource_group}'), - self.check('agentPoolProfiles[0].count', 1), - self.check('agentPoolProfiles[0].osType', 'Linux'), - self.check('agentPoolProfiles[0].vmSize', 'Standard_DS2_v2'), - self.check('dnsPrefix', '{dns_name_prefix}'), - self.exists('kubernetesVersion'), - self.not_exists('identity'), - ]) - - # get-credentials - fd, temp_path = tempfile.mkstemp() - self.kwargs.update({'file': temp_path}) - try: - self.cmd( - 'aks get-credentials -g {resource_group} -n {name} --file "{file}"') - self.assertGreater(os.path.getsize(temp_path), 0) - finally: - os.close(fd) - os.remove(temp_path) - - # scale up - self.cmd('aks scale -g {resource_group} -n {name} --node-count 3', checks=[ - self.check('agentPoolProfiles[0].count', 3) - ]) - - # show again - self.cmd('aks show -g {resource_group} -n {name}', checks=[ - self.check('agentPoolProfiles[0].count', 3) - ]) - - # 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') @AKSCustomRoleBasedServicePrincipalPreparer() 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 dc3a6951a73..9a1369984c3 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 @@ -928,7 +928,8 @@ def test_get_enable_managed_identity(self): identity = self.models.ManagedClusterIdentity() mc = self.models.ManagedCluster(location="test_location", identity=identity) ctx_1.attach_mc(mc) - self.assertEqual(ctx_1.get_enable_managed_identity(), False) + self.assertEqual(ctx_1._get_enable_managed_identity(read_only=True), False) + self.assertEqual(ctx_1.get_enable_managed_identity(), True) # dynamic completion ctx_2 = AKSManagedClusterContext( @@ -944,7 +945,9 @@ def test_get_enable_managed_identity(self): DecoratorMode.CREATE, ) self.assertEqual(ctx_2._get_enable_managed_identity(read_only=True), True) - self.assertEqual(ctx_2.get_enable_managed_identity(), False) + # fail on mutually exclusive enable_managed_identity and service_principal/client_secret + with self.assertRaises(MutuallyExclusiveArgumentError): + ctx_2.get_enable_managed_identity() # custom value ctx_3 = AKSManagedClusterContext( @@ -952,6 +955,8 @@ def test_get_enable_managed_identity(self): AKSManagedClusterParamDict( { "enable_managed_identity": False, + "service_principal": "test_service_principal", + "client_secret": "test_client_secret", "assign_identity": "test_assign_identity", } ), @@ -997,6 +1002,8 @@ def test_get_assign_identity(self): AKSManagedClusterParamDict( { "enable_managed_identity": False, + "service_principal": "test_service_principal", + "client_secret": "test_client_secret", "assign_identity": "test_assign_identity", } ), @@ -1160,7 +1167,10 @@ def test_get_attach_acr(self): DecoratorMode.CREATE, ) # fail on service_principal/client_secret not specified - with self.assertRaises(RequiredArgumentMissingError): + with patch( + "azure.cli.command_modules.acs.managed_cluster_decorator.AKSManagedClusterContext._get_enable_managed_identity", + return_value=False, + ), self.assertRaises(RequiredArgumentMissingError): ctx_3.get_attach_acr() # custom value (update mode) @@ -5933,15 +5943,32 @@ def test_set_up_service_principal_profile(self): ) mc_2 = self.models.ManagedCluster(location="test_location") dec_2.context.attach_mc(mc_2) - dec_mc_2 = dec_2.set_up_service_principal_profile(mc_2) - service_principal_profile_2 = self.models.ManagedClusterServicePrincipalProfile( + # fail on mutually exclusive enable_managed_identity and service_principal/client_secret + with self.assertRaises(MutuallyExclusiveArgumentError): + dec_2.set_up_service_principal_profile(mc_2) + + # custom value + dec_3 = AKSManagedClusterCreateDecorator( + self.cmd, + self.client, + { + "enable_managed_identity": False, + "service_principal": "test_service_principal", + "client_secret": "test_client_secret", + }, + ResourceType.MGMT_CONTAINERSERVICE, + ) + mc_3 = self.models.ManagedCluster(location="test_location") + dec_3.context.attach_mc(mc_3) + dec_mc_3 = dec_3.set_up_service_principal_profile(mc_3) + service_principal_profile_3 = self.models.ManagedClusterServicePrincipalProfile( client_id="test_service_principal", secret="test_client_secret" ) - ground_truth_mc_2 = self.models.ManagedCluster( + ground_truth_mc_3 = self.models.ManagedCluster( location="test_location", - service_principal_profile=service_principal_profile_2, + service_principal_profile=service_principal_profile_3, ) - self.assertEqual(dec_mc_2, ground_truth_mc_2) + self.assertEqual(dec_mc_3, ground_truth_mc_3) def test_process_add_role_assignment_for_vnet_subnet(self): # default value in `aks_create` @@ -6140,7 +6167,10 @@ def test_process_attach_acr(self): mc_3 = self.models.ManagedCluster(location="test_location") dec_3.context.attach_mc(mc_3) # fail on service_principal/client_secret not specified - with self.assertRaises(RequiredArgumentMissingError): + with patch( + "azure.cli.command_modules.acs.managed_cluster_decorator.AKSManagedClusterContext._get_enable_managed_identity", + return_value=False, + ), self.assertRaises(RequiredArgumentMissingError): dec_3.process_attach_acr(mc_3) service_principal_profile_3 = self.models.ManagedClusterServicePrincipalProfile( client_id="test_service_principal", secret="test_client_secret" @@ -6995,6 +7025,8 @@ def test_set_up_identity(self): self.client, { "enable_managed_identity": False, + "service_principal": "test_service_principal", + "client_secret": "test_client_secret", "assign_identity": None, }, ResourceType.MGMT_CONTAINERSERVICE, @@ -7067,6 +7099,8 @@ def test_set_up_identity(self): self.client, { "enable_managed_identity": False, + "service_principal": "test_service_principal", + "client_secret": "test_client_secret", "assign_identity": "test_assign_identity", }, ResourceType.MGMT_CONTAINERSERVICE, @@ -7077,22 +7111,24 @@ def test_set_up_identity(self): with self.assertRaises(RequiredArgumentMissingError): dec_4.set_up_identity(mc_4) - # custom, identity disabled by sp + # custom, identity backfilled to msi as no sp specified dec_5 = AKSManagedClusterCreateDecorator( self.cmd, self.client, { - "enable_managed_identity": True, - "service_principal": "test_service_principal", - "client_secret": "test_client_secret", + "enable_managed_identity": False, }, ResourceType.MGMT_CONTAINERSERVICE, ) mc_5 = self.models.ManagedCluster(location="test_location") dec_5.context.attach_mc(mc_5) dec_mc_5 = dec_5.set_up_identity(mc_5) + identity_5 = self.models.ManagedClusterIdentity( + type="SystemAssigned", + ) ground_truth_mc_5 = self.models.ManagedCluster( location="test_location", + identity=identity_5, ) self.assertEqual(dec_mc_5, ground_truth_mc_5)