diff --git a/src/aks-preview/HISTORY.rst b/src/aks-preview/HISTORY.rst index f0eb26efef9..f20f43df574 100644 --- a/src/aks-preview/HISTORY.rst +++ b/src/aks-preview/HISTORY.rst @@ -12,6 +12,11 @@ To release a new version, please select a new version number (usually plus 1 to Pending +++++++ +0.5.155 ++++++++ +* Add `--enable-cost-analysis` and `--disable-cost-analysis` to the `az aks update` command. +* Add `--enable-cost-analysis` to the `az aks create` command. + 0.5.154 +++++++ * Vendor new SDK and bump API version to 2023-07-02-preview. diff --git a/src/aks-preview/azext_aks_preview/_help.py b/src/aks-preview/azext_aks_preview/_help.py index 2581a57af3f..0ae63df1f38 100644 --- a/src/aks-preview/azext_aks_preview/_help.py +++ b/src/aks-preview/azext_aks_preview/_help.py @@ -570,6 +570,9 @@ - name: --nodepool-taints type: string short-summary: The node taints for all node pools in this cluster. + - name: --enable-cost-analysis + type: bool + short-summary: Enable exporting Kubernetes Namespace and Deployment details to the Cost Analysis views in the Azure portal. For more information see aka.ms/aks/docs/cost-analysis. examples: - name: Create a Kubernetes cluster with an existing SSH public key. text: az aks create -g MyResourceGroup -n MyManagedCluster --ssh-key-value /path/to/publickey @@ -1066,6 +1069,12 @@ - name: --enable-network-observability type: bool short-summary: Enable network observability on a cluster. + - name: --enable-cost-analysis + type: bool + short-summary: Enable exporting Kubernetes Namespace and Deployment details to the Cost Analysis views in the Azure portal. For more information see aka.ms/aks/docs/cost-analysis. + - name: --disable-cost-analysis + type: bool + short-summary: Disable exporting Kubernetes Namespace and Deployment details to the Cost Analysis views in the Azure portal. examples: - name: Reconcile the cluster back to its current state. text: az aks update -g MyResourceGroup -n MyManagedCluster diff --git a/src/aks-preview/azext_aks_preview/_params.py b/src/aks-preview/azext_aks_preview/_params.py index e874e9057fd..d351e20d1fc 100644 --- a/src/aks-preview/azext_aks_preview/_params.py +++ b/src/aks-preview/azext_aks_preview/_params.py @@ -449,6 +449,7 @@ def load_arguments(self, _): c.argument('ksm_metric_annotations_allow_list') c.argument('grafana_resource_id', validator=validate_grafanaresourceid) c.argument('enable_windows_recording_rules', action='store_true') + c.argument('enable_cost_analysis', is_preview=True, action='store_true') with self.argument_context('aks update') as c: # managed cluster paramerters @@ -573,6 +574,8 @@ def load_arguments(self, _): c.argument('guardrails_version', help='The guardrails version', is_preview=True) c.argument('guardrails_excluded_ns', is_preview=True) c.argument('enable_network_observability', action='store_true', is_preview=True, help="enable network observability for cluster") + c.argument('enable_cost_analysis', is_preview=True, action='store_true') + c.argument('disable_cost_analysis', is_preview=True, action='store_true') with self.argument_context('aks upgrade') as c: c.argument('kubernetes_version', completer=get_k8s_upgrades_completion_list) diff --git a/src/aks-preview/azext_aks_preview/custom.py b/src/aks-preview/azext_aks_preview/custom.py index 5271b8d43c2..25b2bd13e7d 100644 --- a/src/aks-preview/azext_aks_preview/custom.py +++ b/src/aks-preview/azext_aks_preview/custom.py @@ -590,6 +590,8 @@ def aks_create( ksm_metric_annotations_allow_list=None, grafana_resource_id=None, enable_windows_recording_rules=False, + # metrics profile + enable_cost_analysis=False, ): # DO NOT MOVE: get all the original parameters and save them as a dictionary raw_parameters = locals() @@ -755,6 +757,9 @@ def aks_update( guardrails_version=None, guardrails_excluded_ns=None, enable_network_observability=None, + # metrics profile + enable_cost_analysis=False, + disable_cost_analysis=False, ): # DO NOT MOVE: get all the original parameters and save them as a dictionary raw_parameters = locals() diff --git a/src/aks-preview/azext_aks_preview/managed_cluster_decorator.py b/src/aks-preview/azext_aks_preview/managed_cluster_decorator.py index 9fcd882102f..1579f1c1d91 100644 --- a/src/aks-preview/azext_aks_preview/managed_cluster_decorator.py +++ b/src/aks-preview/azext_aks_preview/managed_cluster_decorator.py @@ -2276,6 +2276,41 @@ def get_nodepool_taints(self) -> Union[List[str], None]: """ return self.agentpool_context.get_node_taints() + def _get_enable_cost_analysis(self, enable_validation: bool = False) -> bool: + """Internal function to obtain the value of enable_cost_analysis. + + When enabled, if both enable_cost_analysis and disable_cost_analysis are + specified, raise a MutuallyExclusiveArgumentError. + + :return: bool + """ + enable_cost_analysis = self.raw_param.get("enable_cost_analysis") + + # This parameter does not need dynamic completion. + if enable_validation: + if enable_cost_analysis and self.get_disable_cost_analysis(): + raise MutuallyExclusiveArgumentError( + "Cannot specify --enable-cost-analysis and --disable-cost-analysis at the same time." + ) + + return enable_cost_analysis + + def get_enable_cost_analysis(self) -> bool: + """Obtain the value of enable_cost_analysis. + + :return: bool + """ + return self._get_enable_cost_analysis(enable_validation=True) + + def get_disable_cost_analysis(self) -> bool: + """Obtain the value of disable_cost_analysis. + + :return: bool + """ + # Note: No need to check for mutually exclusive parameter with enable-cost-analysis here + # because it's already checked in _get_enable_cost_analysis + return self.raw_param.get("disable_cost_analysis") + class AKSPreviewManagedClusterCreateDecorator(AKSManagedClusterCreateDecorator): def __init__( @@ -2714,6 +2749,29 @@ def set_up_sku(self, mc: ManagedCluster) -> ManagedCluster: ) return mc + def set_up_cost_analysis(self, mc: ManagedCluster) -> ManagedCluster: + self._ensure_mc(mc) + + if self.context.get_enable_cost_analysis(): + if mc.metrics_profile is None: + mc.metrics_profile = self.models.ManagedClusterMetricsProfile() + if mc.metrics_profile.cost_analysis is None: + mc.metrics_profile.cost_analysis = self.models.ManagedClusterCostAnalysis() + + # set enabled + mc.metrics_profile.cost_analysis.enabled = True + + # Default is disabled so no need to worry about that here + + return mc + + def set_up_metrics_profile(self, mc: ManagedCluster) -> ManagedCluster: + self._ensure_mc(mc) + + mc = self.set_up_cost_analysis(mc) + + return mc + def construct_mc_profile_preview(self, bypass_restore_defaults: bool = False) -> ManagedCluster: """The overall controller used to construct the default ManagedCluster profile. @@ -2757,6 +2815,8 @@ def construct_mc_profile_preview(self, bypass_restore_defaults: bool = False) -> mc = self.set_up_azure_service_mesh_profile(mc) # set up azure monitor profile mc = self.set_up_azure_monitor_profile(mc) + # set up metrics profile + mc = self.set_up_metrics_profile(mc) # DO NOT MOVE: keep this at the bottom, restore defaults mc = self._restore_defaults_in_mc(mc) @@ -3601,6 +3661,40 @@ def update_nodepool_taints_mc(self, mc: ManagedCluster) -> ManagedCluster: agent_profile.node_taints = nodepool_taints return mc + def update_cost_analysis(self, mc: ManagedCluster) -> ManagedCluster: + self._ensure_mc(mc) + + if self.context.get_enable_cost_analysis(): + if mc.metrics_profile is None: + mc.metrics_profile = self.models.ManagedClusterMetricsProfile() + if mc.metrics_profile.cost_analysis is None: + mc.metrics_profile.cost_analysis = self.models.ManagedClusterCostAnalysis() + + # set enabled + mc.metrics_profile.cost_analysis.enabled = True + + if self.context.get_disable_cost_analysis(): + if mc.metrics_profile is None: + mc.metrics_profile = self.models.ManagedClusterMetricsProfile() + if mc.metrics_profile.cost_analysis is None: + mc.metrics_profile.cost_analysis = self.models.ManagedClusterCostAnalysis() + + # set disabled + mc.metrics_profile.cost_analysis.enabled = False + + return mc + + def update_metrics_profile(self, mc: ManagedCluster) -> ManagedCluster: + """Updates the metricsProfile field of the managed cluster + + :return: the ManagedCluster object + """ + self._ensure_mc(mc) + + mc = self.update_cost_analysis(mc) + + return mc + def update_mc_profile_preview(self) -> ManagedCluster: """The overall controller used to update the preview ManagedCluster profile. @@ -3656,5 +3750,7 @@ def update_mc_profile_preview(self) -> ManagedCluster: mc = self.update_nodepool_taints_mc(mc) # update network_observability in network_profile mc = self.update_enable_network_observability_in_network_profile(mc) + # update metrics profile + mc = self.update_metrics_profile(mc) return mc diff --git a/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_with_enable_cost_analysis.yaml b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_with_enable_cost_analysis.yaml new file mode 100644 index 00000000000..1d9ae7aadf0 --- /dev/null +++ b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_with_enable_cost_analysis.yaml @@ -0,0 +1,831 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --ssh-key-value --node-count --tier --enable-cost-analysis + --aks-custom-headers + User-Agent: + - AZURECLI/2.51.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/25.0.0b + Python/3.10.12 (Linux-5.15.0-1042-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000001?api-version=2023-07-02-preview + 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: + - Wed, 30 Aug 2023 21:54:22 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-failure-cause: + - gateway + x-msedge-ref: + - 'Ref A: CC655A700F95442E88AF88E0824A71EF Ref B: CO6AA3150217025 Ref C: 2023-08-30T21:54:22Z' + status: + code: 404 + message: Not Found +- request: + body: '{"location": "westcentralus", "sku": {"name": "Base", "tier": "Standard"}, + "identity": {"type": "SystemAssigned"}, "properties": {"kubernetesVersion": + "", "dnsPrefix": "cliakstest-clitestka6f2rj7r-8ecadf", "agentPoolProfiles": + [{"count": 1, "vmSize": "Standard_DS2_v2", "osDiskSizeGB": 0, "workloadRuntime": + "OCIContainer", "osType": "Linux", "enableAutoScaling": false, "type": "VirtualMachineScaleSets", + "mode": "System", "orchestratorVersion": "", "upgradeSettings": {}, "enableNodePublicIP": + false, "enableCustomCATrust": false, "scaleSetPriority": "Regular", "scaleSetEvictionPolicy": + "Delete", "spotMaxPrice": -1.0, "nodeTaints": [], "enableEncryptionAtHost": + false, "enableUltraSSD": false, "enableFIPS": false, "networkProfile": {}, "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, "enablePodSecurityPolicy": + false, "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": + {}, "metricsProfile": {"costAnalysis": {"enabled": true}}}}' + headers: + AKSHTTPCustomFeatures: + - Microsoft.ContainerService/ClusterCostAnalysis + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '1978' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --name --location --ssh-key-value --node-count --tier --enable-cost-analysis + --aks-custom-headers + User-Agent: + - AZURECLI/2.51.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/25.0.0b + Python/3.10.12 (Linux-5.15.0-1042-azure-x86_64-with) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000001?api-version=2023-07-02-preview + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000001\",\n + \ \"location\": \"westcentralus\",\n \"name\": \"cliakstest000001\",\n \"type\": + \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": + \"Creating\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": + \"1.26.6\",\n \"currentKubernetesVersion\": \"1.26.6\",\n \"dnsPrefix\": + \"cliakstest-clitestka6f2rj7r-8ecadf\",\n \"fqdn\": \"cliakstest-clitestka6f2rj7r-8ecadf-ewl795bp.hcp.westcentralus.azmk8s.io\",\n + \ \"azurePortalFQDN\": \"cliakstest-clitestka6f2rj7r-8ecadf-ewl795bp.portal.hcp.westcentralus.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 \"workloadRuntime\": + \"OCIContainer\",\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n + \ \"enableAutoScaling\": false,\n \"provisioningState\": \"Creating\",\n + \ \"powerState\": {\n \"code\": \"Running\"\n },\n \"orchestratorVersion\": + \"1.26.6\",\n \"currentOrchestratorVersion\": \"1.26.6\",\n \"enableNodePublicIP\": + false,\n \"enableCustomCATrust\": false,\n \"mode\": \"System\",\n + \ \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\": false,\n + \ \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"nodeImageVersion\": + \"AKSUbuntu-2204gen2containerd-202308.16.0\",\n \"upgradeSettings\": {},\n + \ \"enableFIPS\": false,\n \"networkProfile\": {},\n \"securityProfile\": + {\n \"sshAccess\": \"LocalUser\"\n }\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 \"servicePrincipalProfile\": + {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \"nodeResourceGroup\": + \"MC_clitest000001_cliakstest000001_westcentralus\",\n \"enableRBAC\": true,\n + \ \"enablePodSecurityPolicy\": false,\n \"supportPlan\": \"KubernetesOfficial\",\n + \ \"networkProfile\": {\n \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\": + \"standard\",\n \"loadBalancerProfile\": {\n \"managedOutboundIPs\": + {\n \"count\": 1\n },\n \"backendPoolType\": \"nodeIPConfiguration\"\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 \"version\": \"v1\"\n },\n \"fileCSIDriver\": {\n \"enabled\": + true\n },\n \"snapshotController\": {\n \"enabled\": true\n }\n + \ },\n \"oidcIssuerProfile\": {\n \"enabled\": false\n },\n \"nodeResourceGroupProfile\": + {\n \"restrictionLevel\": \"Unrestricted\"\n },\n \"workloadAutoScalerProfile\": + {},\n \"metricsProfile\": {\n \"costAnalysis\": {\n \"enabled\": + true\n }\n },\n \"resourceUID\": \"64efba96663b280001a9a890\"\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\": \"Standard\"\n }\n }" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westcentralus/operations/2c306164-65dd-402f-94c1-e27958346653?api-version=2016-03-30 + cache-control: + - no-cache + content-length: + - '4172' + content-type: + - application/json + date: + - Wed, 30 Aug 2023 21:54:30 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-msedge-ref: + - 'Ref A: 0CD169B3196C4365AB534D769AE706EC Ref B: CO6AA3150217025 Ref C: 2023-08-30T21:54:23Z' + 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 --ssh-key-value --node-count --tier --enable-cost-analysis + --aks-custom-headers + User-Agent: + - AZURECLI/2.51.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/25.0.0b + Python/3.10.12 (Linux-5.15.0-1042-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westcentralus/operations/2c306164-65dd-402f-94c1-e27958346653?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"6461302c-dd65-2f40-94c1-e27958346653\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-08-30T21:54:30.4201367Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 30 Aug 2023 21:54:30 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 7C64284DA9D14AC2AD76AB8D8B242EB1 Ref B: CO6AA3150217025 Ref C: 2023-08-30T21:54:30Z' + 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 --ssh-key-value --node-count --tier --enable-cost-analysis + --aks-custom-headers + User-Agent: + - AZURECLI/2.51.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/25.0.0b + Python/3.10.12 (Linux-5.15.0-1042-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westcentralus/operations/2c306164-65dd-402f-94c1-e27958346653?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"6461302c-dd65-2f40-94c1-e27958346653\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-08-30T21:54:30.4201367Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 30 Aug 2023 21:55:00 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 9C487F79E33041848161070B1C8DC877 Ref B: CO6AA3150217025 Ref C: 2023-08-30T21:55:00Z' + 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 --ssh-key-value --node-count --tier --enable-cost-analysis + --aks-custom-headers + User-Agent: + - AZURECLI/2.51.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/25.0.0b + Python/3.10.12 (Linux-5.15.0-1042-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westcentralus/operations/2c306164-65dd-402f-94c1-e27958346653?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"6461302c-dd65-2f40-94c1-e27958346653\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-08-30T21:54:30.4201367Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 30 Aug 2023 21:55:30 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 25FB17BBBE7E415298DC3188AD115B47 Ref B: CO6AA3150217025 Ref C: 2023-08-30T21:55:31Z' + 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 --ssh-key-value --node-count --tier --enable-cost-analysis + --aks-custom-headers + User-Agent: + - AZURECLI/2.51.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/25.0.0b + Python/3.10.12 (Linux-5.15.0-1042-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westcentralus/operations/2c306164-65dd-402f-94c1-e27958346653?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"6461302c-dd65-2f40-94c1-e27958346653\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-08-30T21:54:30.4201367Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 30 Aug 2023 21:56:01 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 71B0A083284240589C2E23B5522E020B Ref B: CO6AA3150217025 Ref C: 2023-08-30T21:56:01Z' + 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 --ssh-key-value --node-count --tier --enable-cost-analysis + --aks-custom-headers + User-Agent: + - AZURECLI/2.51.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/25.0.0b + Python/3.10.12 (Linux-5.15.0-1042-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westcentralus/operations/2c306164-65dd-402f-94c1-e27958346653?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"6461302c-dd65-2f40-94c1-e27958346653\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-08-30T21:54:30.4201367Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 30 Aug 2023 21:56:31 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 9ADA781190C04857BF92BE3869649851 Ref B: CO6AA3150217025 Ref C: 2023-08-30T21:56:31Z' + 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 --ssh-key-value --node-count --tier --enable-cost-analysis + --aks-custom-headers + User-Agent: + - AZURECLI/2.51.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/25.0.0b + Python/3.10.12 (Linux-5.15.0-1042-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westcentralus/operations/2c306164-65dd-402f-94c1-e27958346653?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"6461302c-dd65-2f40-94c1-e27958346653\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-08-30T21:54:30.4201367Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 30 Aug 2023 21:57:01 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 63222FA0EFAB402B93F37A9115D0C7B4 Ref B: CO6AA3150217025 Ref C: 2023-08-30T21:57:01Z' + 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 --ssh-key-value --node-count --tier --enable-cost-analysis + --aks-custom-headers + User-Agent: + - AZURECLI/2.51.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/25.0.0b + Python/3.10.12 (Linux-5.15.0-1042-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westcentralus/operations/2c306164-65dd-402f-94c1-e27958346653?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"6461302c-dd65-2f40-94c1-e27958346653\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-08-30T21:54:30.4201367Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 30 Aug 2023 21:57:31 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 75E327242805456A89FA2C19980DDB45 Ref B: CO6AA3150217025 Ref C: 2023-08-30T21:57:32Z' + 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 --ssh-key-value --node-count --tier --enable-cost-analysis + --aks-custom-headers + User-Agent: + - AZURECLI/2.51.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/25.0.0b + Python/3.10.12 (Linux-5.15.0-1042-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westcentralus/operations/2c306164-65dd-402f-94c1-e27958346653?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"6461302c-dd65-2f40-94c1-e27958346653\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-08-30T21:54:30.4201367Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 30 Aug 2023 21:58:01 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: E288B59EFC934C20828CA3A0F2885E26 Ref B: CO6AA3150217025 Ref C: 2023-08-30T21:58:02Z' + 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 --ssh-key-value --node-count --tier --enable-cost-analysis + --aks-custom-headers + User-Agent: + - AZURECLI/2.51.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/25.0.0b + Python/3.10.12 (Linux-5.15.0-1042-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westcentralus/operations/2c306164-65dd-402f-94c1-e27958346653?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"6461302c-dd65-2f40-94c1-e27958346653\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-08-30T21:54:30.4201367Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 30 Aug 2023 21:58:31 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 1B502D8BB4AB4FE9959A3E9D3004360D Ref B: CO6AA3150217025 Ref C: 2023-08-30T21:58:32Z' + 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 --ssh-key-value --node-count --tier --enable-cost-analysis + --aks-custom-headers + User-Agent: + - AZURECLI/2.51.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/25.0.0b + Python/3.10.12 (Linux-5.15.0-1042-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westcentralus/operations/2c306164-65dd-402f-94c1-e27958346653?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"6461302c-dd65-2f40-94c1-e27958346653\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-08-30T21:54:30.4201367Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 30 Aug 2023 21:59:02 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: AF46D12827D24143AC19FC1A900218C6 Ref B: CO6AA3150217025 Ref C: 2023-08-30T21:59:02Z' + 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 --ssh-key-value --node-count --tier --enable-cost-analysis + --aks-custom-headers + User-Agent: + - AZURECLI/2.51.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/25.0.0b + Python/3.10.12 (Linux-5.15.0-1042-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westcentralus/operations/2c306164-65dd-402f-94c1-e27958346653?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"6461302c-dd65-2f40-94c1-e27958346653\",\n \"status\": + \"Succeeded\",\n \"startTime\": \"2023-08-30T21:54:30.4201367Z\",\n \"endTime\": + \"2023-08-30T21:59:27.0689892Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '170' + content-type: + - application/json + date: + - Wed, 30 Aug 2023 21:59:32 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: B07DC3E045594DAB995C879932446E30 Ref B: CO6AA3150217025 Ref C: 2023-08-30T21:59:32Z' + 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 --ssh-key-value --node-count --tier --enable-cost-analysis + --aks-custom-headers + User-Agent: + - AZURECLI/2.51.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/25.0.0b + Python/3.10.12 (Linux-5.15.0-1042-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000001?api-version=2023-07-02-preview + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000001\",\n + \ \"location\": \"westcentralus\",\n \"name\": \"cliakstest000001\",\n \"type\": + \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": + \"Succeeded\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": + \"1.26.6\",\n \"currentKubernetesVersion\": \"1.26.6\",\n \"dnsPrefix\": + \"cliakstest-clitestka6f2rj7r-8ecadf\",\n \"fqdn\": \"cliakstest-clitestka6f2rj7r-8ecadf-ewl795bp.hcp.westcentralus.azmk8s.io\",\n + \ \"azurePortalFQDN\": \"cliakstest-clitestka6f2rj7r-8ecadf-ewl795bp.portal.hcp.westcentralus.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 \"workloadRuntime\": + \"OCIContainer\",\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n + \ \"enableAutoScaling\": false,\n \"provisioningState\": \"Succeeded\",\n + \ \"powerState\": {\n \"code\": \"Running\"\n },\n \"orchestratorVersion\": + \"1.26.6\",\n \"currentOrchestratorVersion\": \"1.26.6\",\n \"enableNodePublicIP\": + false,\n \"enableCustomCATrust\": false,\n \"mode\": \"System\",\n + \ \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\": false,\n + \ \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"nodeImageVersion\": + \"AKSUbuntu-2204gen2containerd-202308.16.0\",\n \"upgradeSettings\": {},\n + \ \"enableFIPS\": false,\n \"networkProfile\": {},\n \"securityProfile\": + {\n \"sshAccess\": \"LocalUser\"\n }\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 \"servicePrincipalProfile\": + {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \"nodeResourceGroup\": + \"MC_clitest000001_cliakstest000001_westcentralus\",\n \"enableRBAC\": true,\n + \ \"enablePodSecurityPolicy\": false,\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_westcentralus/providers/Microsoft.Network/publicIPAddresses/e1abbf16-56a7-4be4-a764-72825fc33a15\"\n + \ }\n ],\n \"backendPoolType\": \"nodeIPConfiguration\"\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_cliakstest000001_westcentralus/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cliakstest000001-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 \"version\": \"v1\"\n },\n \"fileCSIDriver\": {\n \"enabled\": + true\n },\n \"snapshotController\": {\n \"enabled\": true\n }\n + \ },\n \"oidcIssuerProfile\": {\n \"enabled\": false\n },\n \"nodeResourceGroupProfile\": + {\n \"restrictionLevel\": \"Unrestricted\"\n },\n \"workloadAutoScalerProfile\": + {},\n \"metricsProfile\": {\n \"costAnalysis\": {\n \"enabled\": + true\n }\n },\n \"resourceUID\": \"64efba96663b280001a9a890\"\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\": \"Standard\"\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '4837' + content-type: + - application/json + date: + - Wed, 30 Aug 2023 21:59:32 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: E40DC09CC57448E9A57419F66C1A7729 Ref B: CO6AA3150217025 Ref C: 2023-08-30T21:59:33Z' + 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 (DOCKER) azsdk-python-azure-mgmt-containerservice/25.0.0b + Python/3.10.12 (Linux-5.15.0-1042-azure-x86_64-with) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000001?api-version=2023-07-02-preview + response: + body: + string: '' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westcentralus/operations/d1357726-978e-4fd2-a3ed-15528fffc940?api-version=2016-03-30 + cache-control: + - no-cache + content-length: + - '0' + date: + - Wed, 30 Aug 2023 21:59:34 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westcentralus/operationresults/d1357726-978e-4fd2-a3ed-15528fffc940?api-version=2016-03-30 + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' + x-msedge-ref: + - 'Ref A: 0842149A07D64921B8F0BF7CB0610856 Ref B: CO6AA3150219031 Ref C: 2023-08-30T21:59:34Z' + status: + code: 202 + message: Accepted +version: 1 diff --git a/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_update_enable_cost_analysis.yaml b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_update_enable_cost_analysis.yaml new file mode 100644 index 00000000000..9a3408c289e --- /dev/null +++ b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_update_enable_cost_analysis.yaml @@ -0,0 +1,2695 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --ssh-key-value --node-count --tier + User-Agent: + - AZURECLI/2.51.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/25.0.0b + Python/3.10.12 (Linux-5.15.0-1042-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000001?api-version=2023-07-02-preview + 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: + - Wed, 30 Aug 2023 22:11:40 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-failure-cause: + - gateway + x-msedge-ref: + - 'Ref A: 80ED146B50B04E7E9EEFAE27A49BC0E7 Ref B: CO6AA3150217019 Ref C: 2023-08-30T22:11:41Z' + status: + code: 404 + message: Not Found +- request: + body: '{"location": "westcentralus", "sku": {"name": "Base", "tier": "Standard"}, + "identity": {"type": "SystemAssigned"}, "properties": {"kubernetesVersion": + "", "dnsPrefix": "cliakstest-clitest356bq72zg-8ecadf", "agentPoolProfiles": + [{"count": 1, "vmSize": "Standard_DS2_v2", "osDiskSizeGB": 0, "workloadRuntime": + "OCIContainer", "osType": "Linux", "enableAutoScaling": false, "type": "VirtualMachineScaleSets", + "mode": "System", "orchestratorVersion": "", "upgradeSettings": {}, "enableNodePublicIP": + false, "enableCustomCATrust": false, "scaleSetPriority": "Regular", "scaleSetEvictionPolicy": + "Delete", "spotMaxPrice": -1.0, "nodeTaints": [], "enableEncryptionAtHost": + false, "enableUltraSSD": false, "enableFIPS": false, "networkProfile": {}, "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, "enablePodSecurityPolicy": + false, "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: + - '1923' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --name --location --ssh-key-value --node-count --tier + User-Agent: + - AZURECLI/2.51.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/25.0.0b + Python/3.10.12 (Linux-5.15.0-1042-azure-x86_64-with) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000001?api-version=2023-07-02-preview + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000001\",\n + \ \"location\": \"westcentralus\",\n \"name\": \"cliakstest000001\",\n \"type\": + \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": + \"Creating\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": + \"1.26.6\",\n \"currentKubernetesVersion\": \"1.26.6\",\n \"dnsPrefix\": + \"cliakstest-clitest356bq72zg-8ecadf\",\n \"fqdn\": \"cliakstest-clitest356bq72zg-8ecadf-ztwpw65l.hcp.westcentralus.azmk8s.io\",\n + \ \"azurePortalFQDN\": \"cliakstest-clitest356bq72zg-8ecadf-ztwpw65l.portal.hcp.westcentralus.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 \"workloadRuntime\": + \"OCIContainer\",\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n + \ \"enableAutoScaling\": false,\n \"provisioningState\": \"Creating\",\n + \ \"powerState\": {\n \"code\": \"Running\"\n },\n \"orchestratorVersion\": + \"1.26.6\",\n \"currentOrchestratorVersion\": \"1.26.6\",\n \"enableNodePublicIP\": + false,\n \"enableCustomCATrust\": false,\n \"mode\": \"System\",\n + \ \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\": false,\n + \ \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"nodeImageVersion\": + \"AKSUbuntu-2204gen2containerd-202308.16.0\",\n \"upgradeSettings\": {},\n + \ \"enableFIPS\": false,\n \"networkProfile\": {},\n \"securityProfile\": + {\n \"sshAccess\": \"LocalUser\"\n }\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 \"servicePrincipalProfile\": + {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \"nodeResourceGroup\": + \"MC_clitest000001_cliakstest000001_westcentralus\",\n \"enableRBAC\": true,\n + \ \"enablePodSecurityPolicy\": false,\n \"supportPlan\": \"KubernetesOfficial\",\n + \ \"networkProfile\": {\n \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\": + \"standard\",\n \"loadBalancerProfile\": {\n \"managedOutboundIPs\": + {\n \"count\": 1\n },\n \"backendPoolType\": \"nodeIPConfiguration\"\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 \"version\": \"v1\"\n },\n \"fileCSIDriver\": {\n \"enabled\": + true\n },\n \"snapshotController\": {\n \"enabled\": true\n }\n + \ },\n \"oidcIssuerProfile\": {\n \"enabled\": false\n },\n \"nodeResourceGroupProfile\": + {\n \"restrictionLevel\": \"Unrestricted\"\n },\n \"workloadAutoScalerProfile\": + {},\n \"metricsProfile\": {\n \"costAnalysis\": {\n \"enabled\": + false\n }\n },\n \"resourceUID\": \"64efbea50e6a6b00015ea868\"\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\": \"Standard\"\n }\n }" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westcentralus/operations/5f3e2e0f-985c-4763-acb4-9f3f7003b4a6?api-version=2016-03-30 + cache-control: + - no-cache + content-length: + - '4173' + content-type: + - application/json + date: + - Wed, 30 Aug 2023 22:11:48 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-msedge-ref: + - 'Ref A: 876527D8D5CA44BBAA20183AE3D54FA7 Ref B: CO6AA3150217019 Ref C: 2023-08-30T22:11:41Z' + 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 --ssh-key-value --node-count --tier + User-Agent: + - AZURECLI/2.51.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/25.0.0b + Python/3.10.12 (Linux-5.15.0-1042-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westcentralus/operations/5f3e2e0f-985c-4763-acb4-9f3f7003b4a6?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"0f2e3e5f-5c98-6347-acb4-9f3f7003b4a6\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-08-30T22:11:49.2184543Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 30 Aug 2023 22:11:48 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 32775794F9E14BEAB41FBF80DB9E3CAF Ref B: CO6AA3150217019 Ref C: 2023-08-30T22:11:49Z' + 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 --ssh-key-value --node-count --tier + User-Agent: + - AZURECLI/2.51.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/25.0.0b + Python/3.10.12 (Linux-5.15.0-1042-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westcentralus/operations/5f3e2e0f-985c-4763-acb4-9f3f7003b4a6?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"0f2e3e5f-5c98-6347-acb4-9f3f7003b4a6\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-08-30T22:11:49.2184543Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 30 Aug 2023 22:12:19 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 15975270E6DA4B54A59B4994BBC5F955 Ref B: CO6AA3150217019 Ref C: 2023-08-30T22:12:19Z' + 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 --ssh-key-value --node-count --tier + User-Agent: + - AZURECLI/2.51.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/25.0.0b + Python/3.10.12 (Linux-5.15.0-1042-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westcentralus/operations/5f3e2e0f-985c-4763-acb4-9f3f7003b4a6?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"0f2e3e5f-5c98-6347-acb4-9f3f7003b4a6\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-08-30T22:11:49.2184543Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 30 Aug 2023 22:12:50 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: BC3AB24B150D4B288D1A8A4527BA9A75 Ref B: CO6AA3150217019 Ref C: 2023-08-30T22:12:49Z' + 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 --ssh-key-value --node-count --tier + User-Agent: + - AZURECLI/2.51.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/25.0.0b + Python/3.10.12 (Linux-5.15.0-1042-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westcentralus/operations/5f3e2e0f-985c-4763-acb4-9f3f7003b4a6?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"0f2e3e5f-5c98-6347-acb4-9f3f7003b4a6\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-08-30T22:11:49.2184543Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 30 Aug 2023 22:13:20 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: E44F1F4751534443810CB686C973A6D5 Ref B: CO6AA3150217019 Ref C: 2023-08-30T22:13:20Z' + 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 --ssh-key-value --node-count --tier + User-Agent: + - AZURECLI/2.51.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/25.0.0b + Python/3.10.12 (Linux-5.15.0-1042-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westcentralus/operations/5f3e2e0f-985c-4763-acb4-9f3f7003b4a6?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"0f2e3e5f-5c98-6347-acb4-9f3f7003b4a6\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-08-30T22:11:49.2184543Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 30 Aug 2023 22:13:50 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 593397D7CC974481859D10B0617EB3FC Ref B: CO6AA3150217019 Ref C: 2023-08-30T22:13:50Z' + 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 --ssh-key-value --node-count --tier + User-Agent: + - AZURECLI/2.51.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/25.0.0b + Python/3.10.12 (Linux-5.15.0-1042-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westcentralus/operations/5f3e2e0f-985c-4763-acb4-9f3f7003b4a6?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"0f2e3e5f-5c98-6347-acb4-9f3f7003b4a6\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-08-30T22:11:49.2184543Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 30 Aug 2023 22:14:20 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: D9E95AFA60E6489D9F8DFA400610640A Ref B: CO6AA3150217019 Ref C: 2023-08-30T22:14:20Z' + 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 --ssh-key-value --node-count --tier + User-Agent: + - AZURECLI/2.51.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/25.0.0b + Python/3.10.12 (Linux-5.15.0-1042-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westcentralus/operations/5f3e2e0f-985c-4763-acb4-9f3f7003b4a6?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"0f2e3e5f-5c98-6347-acb4-9f3f7003b4a6\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-08-30T22:11:49.2184543Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 30 Aug 2023 22:14:51 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 2F9498108909435687F4853EE01C0EA4 Ref B: CO6AA3150217019 Ref C: 2023-08-30T22:14:51Z' + 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 --ssh-key-value --node-count --tier + User-Agent: + - AZURECLI/2.51.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/25.0.0b + Python/3.10.12 (Linux-5.15.0-1042-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westcentralus/operations/5f3e2e0f-985c-4763-acb4-9f3f7003b4a6?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"0f2e3e5f-5c98-6347-acb4-9f3f7003b4a6\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-08-30T22:11:49.2184543Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 30 Aug 2023 22:15:21 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 49CE7B1AE3194033B698386C4A20506E Ref B: CO6AA3150217019 Ref C: 2023-08-30T22:15:21Z' + 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 --ssh-key-value --node-count --tier + User-Agent: + - AZURECLI/2.51.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/25.0.0b + Python/3.10.12 (Linux-5.15.0-1042-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westcentralus/operations/5f3e2e0f-985c-4763-acb4-9f3f7003b4a6?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"0f2e3e5f-5c98-6347-acb4-9f3f7003b4a6\",\n \"status\": + \"Succeeded\",\n \"startTime\": \"2023-08-30T22:11:49.2184543Z\",\n \"endTime\": + \"2023-08-30T22:15:30.5278278Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '170' + content-type: + - application/json + date: + - Wed, 30 Aug 2023 22:15:51 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 57B3D40358F1481A9B8BFA5713408B0E Ref B: CO6AA3150217019 Ref C: 2023-08-30T22:15:51Z' + 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 --ssh-key-value --node-count --tier + User-Agent: + - AZURECLI/2.51.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/25.0.0b + Python/3.10.12 (Linux-5.15.0-1042-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000001?api-version=2023-07-02-preview + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000001\",\n + \ \"location\": \"westcentralus\",\n \"name\": \"cliakstest000001\",\n \"type\": + \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": + \"Succeeded\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": + \"1.26.6\",\n \"currentKubernetesVersion\": \"1.26.6\",\n \"dnsPrefix\": + \"cliakstest-clitest356bq72zg-8ecadf\",\n \"fqdn\": \"cliakstest-clitest356bq72zg-8ecadf-ztwpw65l.hcp.westcentralus.azmk8s.io\",\n + \ \"azurePortalFQDN\": \"cliakstest-clitest356bq72zg-8ecadf-ztwpw65l.portal.hcp.westcentralus.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 \"workloadRuntime\": + \"OCIContainer\",\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n + \ \"enableAutoScaling\": false,\n \"provisioningState\": \"Succeeded\",\n + \ \"powerState\": {\n \"code\": \"Running\"\n },\n \"orchestratorVersion\": + \"1.26.6\",\n \"currentOrchestratorVersion\": \"1.26.6\",\n \"enableNodePublicIP\": + false,\n \"enableCustomCATrust\": false,\n \"mode\": \"System\",\n + \ \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\": false,\n + \ \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"nodeImageVersion\": + \"AKSUbuntu-2204gen2containerd-202308.16.0\",\n \"upgradeSettings\": {},\n + \ \"enableFIPS\": false,\n \"networkProfile\": {},\n \"securityProfile\": + {\n \"sshAccess\": \"LocalUser\"\n }\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 \"servicePrincipalProfile\": + {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \"nodeResourceGroup\": + \"MC_clitest000001_cliakstest000001_westcentralus\",\n \"enableRBAC\": true,\n + \ \"enablePodSecurityPolicy\": false,\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_westcentralus/providers/Microsoft.Network/publicIPAddresses/9ac0757b-3b43-401a-be0c-8ed3410b7246\"\n + \ }\n ],\n \"backendPoolType\": \"nodeIPConfiguration\"\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_cliakstest000001_westcentralus/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cliakstest000001-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 \"version\": \"v1\"\n },\n \"fileCSIDriver\": {\n \"enabled\": + true\n },\n \"snapshotController\": {\n \"enabled\": true\n }\n + \ },\n \"oidcIssuerProfile\": {\n \"enabled\": false\n },\n \"nodeResourceGroupProfile\": + {\n \"restrictionLevel\": \"Unrestricted\"\n },\n \"workloadAutoScalerProfile\": + {},\n \"metricsProfile\": {\n \"costAnalysis\": {\n \"enabled\": + false\n }\n },\n \"resourceUID\": \"64efbea50e6a6b00015ea868\"\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\": \"Standard\"\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '4838' + content-type: + - application/json + date: + - Wed, 30 Aug 2023 22:15:52 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 371000DB4DEE40B7BB356C71015CE4CB Ref B: CO6AA3150217019 Ref C: 2023-08-30T22:15:51Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --enable-cost-analysis --aks-custom-headers + User-Agent: + - AZURECLI/2.51.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/25.0.0b + Python/3.10.12 (Linux-5.15.0-1042-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000001?api-version=2023-07-02-preview + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000001\",\n + \ \"location\": \"westcentralus\",\n \"name\": \"cliakstest000001\",\n \"type\": + \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": + \"Succeeded\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": + \"1.26.6\",\n \"currentKubernetesVersion\": \"1.26.6\",\n \"dnsPrefix\": + \"cliakstest-clitest356bq72zg-8ecadf\",\n \"fqdn\": \"cliakstest-clitest356bq72zg-8ecadf-ztwpw65l.hcp.westcentralus.azmk8s.io\",\n + \ \"azurePortalFQDN\": \"cliakstest-clitest356bq72zg-8ecadf-ztwpw65l.portal.hcp.westcentralus.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 \"workloadRuntime\": + \"OCIContainer\",\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n + \ \"enableAutoScaling\": false,\n \"provisioningState\": \"Succeeded\",\n + \ \"powerState\": {\n \"code\": \"Running\"\n },\n \"orchestratorVersion\": + \"1.26.6\",\n \"currentOrchestratorVersion\": \"1.26.6\",\n \"enableNodePublicIP\": + false,\n \"enableCustomCATrust\": false,\n \"mode\": \"System\",\n + \ \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\": false,\n + \ \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"nodeImageVersion\": + \"AKSUbuntu-2204gen2containerd-202308.16.0\",\n \"upgradeSettings\": {},\n + \ \"enableFIPS\": false,\n \"networkProfile\": {},\n \"securityProfile\": + {\n \"sshAccess\": \"LocalUser\"\n }\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 \"servicePrincipalProfile\": + {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \"nodeResourceGroup\": + \"MC_clitest000001_cliakstest000001_westcentralus\",\n \"enableRBAC\": true,\n + \ \"enablePodSecurityPolicy\": false,\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_westcentralus/providers/Microsoft.Network/publicIPAddresses/9ac0757b-3b43-401a-be0c-8ed3410b7246\"\n + \ }\n ],\n \"backendPoolType\": \"nodeIPConfiguration\"\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_cliakstest000001_westcentralus/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cliakstest000001-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 \"version\": \"v1\"\n },\n \"fileCSIDriver\": {\n \"enabled\": + true\n },\n \"snapshotController\": {\n \"enabled\": true\n }\n + \ },\n \"oidcIssuerProfile\": {\n \"enabled\": false\n },\n \"nodeResourceGroupProfile\": + {\n \"restrictionLevel\": \"Unrestricted\"\n },\n \"workloadAutoScalerProfile\": + {},\n \"metricsProfile\": {\n \"costAnalysis\": {\n \"enabled\": + false\n }\n },\n \"resourceUID\": \"64efbea50e6a6b00015ea868\"\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\": \"Standard\"\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '4838' + content-type: + - application/json + date: + - Wed, 30 Aug 2023 22:15:53 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 06BC9A6EA10646E182612BF0DD859E55 Ref B: CO6AA3150220031 Ref C: 2023-08-30T22:15:53Z' + status: + code: 200 + message: OK +- request: + body: '{"location": "westcentralus", "sku": {"name": "Base", "tier": "Standard"}, + "identity": {"type": "SystemAssigned"}, "properties": {"kubernetesVersion": + "1.26.6", "dnsPrefix": "cliakstest-clitest356bq72zg-8ecadf", "agentPoolProfiles": + [{"count": 1, "vmSize": "Standard_DS2_v2", "osDiskSizeGB": 128, "osDiskType": + "Managed", "kubeletDiskType": "OS", "workloadRuntime": "OCIContainer", "maxPods": + 110, "osType": "Linux", "osSKU": "Ubuntu", "enableAutoScaling": false, "type": + "VirtualMachineScaleSets", "mode": "System", "orchestratorVersion": "1.26.6", + "upgradeSettings": {}, "powerState": {"code": "Running"}, "enableNodePublicIP": + false, "enableCustomCATrust": false, "enableEncryptionAtHost": false, "enableUltraSSD": + false, "enableFIPS": false, "networkProfile": {}, "securityProfile": {"sshAccess": + "LocalUser"}, "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"}]}}, "servicePrincipalProfile": {"clientId":"00000000-0000-0000-0000-000000000001"}, + "oidcIssuerProfile": {"enabled": false}, "nodeResourceGroup": "MC_clitest000001_cliakstest000001_westcentralus", + "nodeResourceGroupProfile": {"restrictionLevel": "Unrestricted"}, "enableRBAC": + true, "enablePodSecurityPolicy": false, "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_westcentralus/providers/Microsoft.Network/publicIPAddresses/9ac0757b-3b43-401a-be0c-8ed3410b7246"}], + "backendPoolType": "nodeIPConfiguration"}, "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_cliakstest000001_westcentralus/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cliakstest000001-agentpool", + "clientId":"00000000-0000-0000-0000-000000000001", "objectId":"00000000-0000-0000-0000-000000000001"}}, + "disableLocalAccounts": false, "securityProfile": {}, "storageProfile": {}, + "workloadAutoScalerProfile": {}, "metricsProfile": {"costAnalysis": {"enabled": + true}}}}' + headers: + AKSHTTPCustomFeatures: + - Microsoft.ContainerService/ClusterCostAnalysis + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + Content-Length: + - '3195' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --name --enable-cost-analysis --aks-custom-headers + User-Agent: + - AZURECLI/2.51.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/25.0.0b + Python/3.10.12 (Linux-5.15.0-1042-azure-x86_64-with) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000001?api-version=2023-07-02-preview + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000001\",\n + \ \"location\": \"westcentralus\",\n \"name\": \"cliakstest000001\",\n \"type\": + \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": + \"Updating\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": + \"1.26.6\",\n \"currentKubernetesVersion\": \"1.26.6\",\n \"dnsPrefix\": + \"cliakstest-clitest356bq72zg-8ecadf\",\n \"fqdn\": \"cliakstest-clitest356bq72zg-8ecadf-ztwpw65l.hcp.westcentralus.azmk8s.io\",\n + \ \"azurePortalFQDN\": \"cliakstest-clitest356bq72zg-8ecadf-ztwpw65l.portal.hcp.westcentralus.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 \"workloadRuntime\": + \"OCIContainer\",\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n + \ \"enableAutoScaling\": false,\n \"provisioningState\": \"Updating\",\n + \ \"powerState\": {\n \"code\": \"Running\"\n },\n \"orchestratorVersion\": + \"1.26.6\",\n \"currentOrchestratorVersion\": \"1.26.6\",\n \"enableNodePublicIP\": + false,\n \"enableCustomCATrust\": false,\n \"mode\": \"System\",\n + \ \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\": false,\n + \ \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"nodeImageVersion\": + \"AKSUbuntu-2204gen2containerd-202308.16.0\",\n \"upgradeSettings\": {},\n + \ \"enableFIPS\": false,\n \"networkProfile\": {},\n \"securityProfile\": + {\n \"sshAccess\": \"LocalUser\"\n }\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 \"servicePrincipalProfile\": + {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \"nodeResourceGroup\": + \"MC_clitest000001_cliakstest000001_westcentralus\",\n \"enableRBAC\": true,\n + \ \"enablePodSecurityPolicy\": false,\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_westcentralus/providers/Microsoft.Network/publicIPAddresses/9ac0757b-3b43-401a-be0c-8ed3410b7246\"\n + \ }\n ],\n \"backendPoolType\": \"nodeIPConfiguration\"\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_cliakstest000001_westcentralus/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cliakstest000001-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 \"version\": \"v1\"\n },\n \"fileCSIDriver\": {\n \"enabled\": + true\n },\n \"snapshotController\": {\n \"enabled\": true\n }\n + \ },\n \"oidcIssuerProfile\": {\n \"enabled\": false\n },\n \"nodeResourceGroupProfile\": + {\n \"restrictionLevel\": \"Unrestricted\"\n },\n \"workloadAutoScalerProfile\": + {},\n \"metricsProfile\": {\n \"costAnalysis\": {\n \"enabled\": + true\n }\n },\n \"resourceUID\": \"64efbea50e6a6b00015ea868\"\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\": \"Standard\"\n }\n }" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westcentralus/operations/51c8313d-77fd-462b-b7a7-e1755af1f737?api-version=2016-03-30 + cache-control: + - no-cache + content-length: + - '4835' + content-type: + - application/json + date: + - Wed, 30 Aug 2023 22:15:59 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-msedge-ref: + - 'Ref A: 44B3811EA922403982EC086F691569C2 Ref B: CO6AA3150220031 Ref C: 2023-08-30T22:15:54Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --enable-cost-analysis --aks-custom-headers + User-Agent: + - AZURECLI/2.51.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/25.0.0b + Python/3.10.12 (Linux-5.15.0-1042-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westcentralus/operations/51c8313d-77fd-462b-b7a7-e1755af1f737?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"3d31c851-fd77-2b46-b7a7-e1755af1f737\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-08-30T22:15:59.734294Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '125' + content-type: + - application/json + date: + - Wed, 30 Aug 2023 22:15:59 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: B86B4CFADBF543ADB0582D7DD95D2A07 Ref B: CO6AA3150220031 Ref C: 2023-08-30T22:16:00Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --enable-cost-analysis --aks-custom-headers + User-Agent: + - AZURECLI/2.51.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/25.0.0b + Python/3.10.12 (Linux-5.15.0-1042-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westcentralus/operations/51c8313d-77fd-462b-b7a7-e1755af1f737?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"3d31c851-fd77-2b46-b7a7-e1755af1f737\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-08-30T22:15:59.734294Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '125' + content-type: + - application/json + date: + - Wed, 30 Aug 2023 22:16:30 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: B3AA2D325B3D4FDE8329F860F510DBD5 Ref B: CO6AA3150220031 Ref C: 2023-08-30T22:16:30Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --enable-cost-analysis --aks-custom-headers + User-Agent: + - AZURECLI/2.51.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/25.0.0b + Python/3.10.12 (Linux-5.15.0-1042-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westcentralus/operations/51c8313d-77fd-462b-b7a7-e1755af1f737?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"3d31c851-fd77-2b46-b7a7-e1755af1f737\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-08-30T22:15:59.734294Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '125' + content-type: + - application/json + date: + - Wed, 30 Aug 2023 22:17:00 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 5C3F982B2F164EB7BC4197E8E68F33C0 Ref B: CO6AA3150220031 Ref C: 2023-08-30T22:17:00Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --enable-cost-analysis --aks-custom-headers + User-Agent: + - AZURECLI/2.51.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/25.0.0b + Python/3.10.12 (Linux-5.15.0-1042-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westcentralus/operations/51c8313d-77fd-462b-b7a7-e1755af1f737?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"3d31c851-fd77-2b46-b7a7-e1755af1f737\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-08-30T22:15:59.734294Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '125' + content-type: + - application/json + date: + - Wed, 30 Aug 2023 22:17:30 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: A9D8DC794E4F4F3885B4315B437400BB Ref B: CO6AA3150220031 Ref C: 2023-08-30T22:17:31Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --enable-cost-analysis --aks-custom-headers + User-Agent: + - AZURECLI/2.51.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/25.0.0b + Python/3.10.12 (Linux-5.15.0-1042-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westcentralus/operations/51c8313d-77fd-462b-b7a7-e1755af1f737?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"3d31c851-fd77-2b46-b7a7-e1755af1f737\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-08-30T22:15:59.734294Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '125' + content-type: + - application/json + date: + - Wed, 30 Aug 2023 22:18:00 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 8564FD6C09B1495AAE9E35236ABDBD72 Ref B: CO6AA3150220031 Ref C: 2023-08-30T22:18:01Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --enable-cost-analysis --aks-custom-headers + User-Agent: + - AZURECLI/2.51.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/25.0.0b + Python/3.10.12 (Linux-5.15.0-1042-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westcentralus/operations/51c8313d-77fd-462b-b7a7-e1755af1f737?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"3d31c851-fd77-2b46-b7a7-e1755af1f737\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-08-30T22:15:59.734294Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '125' + content-type: + - application/json + date: + - Wed, 30 Aug 2023 22:18:30 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 1023482827C141289DEB2D8FC4CBFD04 Ref B: CO6AA3150220031 Ref C: 2023-08-30T22:18:31Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --enable-cost-analysis --aks-custom-headers + User-Agent: + - AZURECLI/2.51.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/25.0.0b + Python/3.10.12 (Linux-5.15.0-1042-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westcentralus/operations/51c8313d-77fd-462b-b7a7-e1755af1f737?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"3d31c851-fd77-2b46-b7a7-e1755af1f737\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-08-30T22:15:59.734294Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '125' + content-type: + - application/json + date: + - Wed, 30 Aug 2023 22:19:01 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 41207C023AFD45B7A841FB39A0869FB7 Ref B: CO6AA3150220031 Ref C: 2023-08-30T22:19:01Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --enable-cost-analysis --aks-custom-headers + User-Agent: + - AZURECLI/2.51.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/25.0.0b + Python/3.10.12 (Linux-5.15.0-1042-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westcentralus/operations/51c8313d-77fd-462b-b7a7-e1755af1f737?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"3d31c851-fd77-2b46-b7a7-e1755af1f737\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-08-30T22:15:59.734294Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '125' + content-type: + - application/json + date: + - Wed, 30 Aug 2023 22:19:31 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 70689D1954B242A882A1D516C8EFF6B5 Ref B: CO6AA3150220031 Ref C: 2023-08-30T22:19:31Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --enable-cost-analysis --aks-custom-headers + User-Agent: + - AZURECLI/2.51.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/25.0.0b + Python/3.10.12 (Linux-5.15.0-1042-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westcentralus/operations/51c8313d-77fd-462b-b7a7-e1755af1f737?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"3d31c851-fd77-2b46-b7a7-e1755af1f737\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-08-30T22:15:59.734294Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '125' + content-type: + - application/json + date: + - Wed, 30 Aug 2023 22:20:01 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 320524B727D84F44A3215BF160C7E3C4 Ref B: CO6AA3150220031 Ref C: 2023-08-30T22:20:02Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --enable-cost-analysis --aks-custom-headers + User-Agent: + - AZURECLI/2.51.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/25.0.0b + Python/3.10.12 (Linux-5.15.0-1042-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westcentralus/operations/51c8313d-77fd-462b-b7a7-e1755af1f737?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"3d31c851-fd77-2b46-b7a7-e1755af1f737\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-08-30T22:15:59.734294Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '125' + content-type: + - application/json + date: + - Wed, 30 Aug 2023 22:20:31 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 5CBC0670AA194206A0F257303FD63511 Ref B: CO6AA3150220031 Ref C: 2023-08-30T22:20:32Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --enable-cost-analysis --aks-custom-headers + User-Agent: + - AZURECLI/2.51.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/25.0.0b + Python/3.10.12 (Linux-5.15.0-1042-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westcentralus/operations/51c8313d-77fd-462b-b7a7-e1755af1f737?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"3d31c851-fd77-2b46-b7a7-e1755af1f737\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-08-30T22:15:59.734294Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '125' + content-type: + - application/json + date: + - Wed, 30 Aug 2023 22:21:02 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 9F6FFB816F2D4217A7B5F5B051D3D1D4 Ref B: CO6AA3150220031 Ref C: 2023-08-30T22:21:02Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --enable-cost-analysis --aks-custom-headers + User-Agent: + - AZURECLI/2.51.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/25.0.0b + Python/3.10.12 (Linux-5.15.0-1042-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westcentralus/operations/51c8313d-77fd-462b-b7a7-e1755af1f737?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"3d31c851-fd77-2b46-b7a7-e1755af1f737\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-08-30T22:15:59.734294Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '125' + content-type: + - application/json + date: + - Wed, 30 Aug 2023 22:21:32 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 765843C7EFB64942BE755BAF62204CBE Ref B: CO6AA3150220031 Ref C: 2023-08-30T22:21:33Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --enable-cost-analysis --aks-custom-headers + User-Agent: + - AZURECLI/2.51.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/25.0.0b + Python/3.10.12 (Linux-5.15.0-1042-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westcentralus/operations/51c8313d-77fd-462b-b7a7-e1755af1f737?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"3d31c851-fd77-2b46-b7a7-e1755af1f737\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-08-30T22:15:59.734294Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '125' + content-type: + - application/json + date: + - Wed, 30 Aug 2023 22:22:03 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: FD7D1DBD0587467F8E3E02EEC7834489 Ref B: CO6AA3150220031 Ref C: 2023-08-30T22:22:03Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --enable-cost-analysis --aks-custom-headers + User-Agent: + - AZURECLI/2.51.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/25.0.0b + Python/3.10.12 (Linux-5.15.0-1042-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westcentralus/operations/51c8313d-77fd-462b-b7a7-e1755af1f737?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"3d31c851-fd77-2b46-b7a7-e1755af1f737\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-08-30T22:15:59.734294Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '125' + content-type: + - application/json + date: + - Wed, 30 Aug 2023 22:22:33 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 910AADCA9577491FA23BE884690B1ED7 Ref B: CO6AA3150220031 Ref C: 2023-08-30T22:22:33Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --enable-cost-analysis --aks-custom-headers + User-Agent: + - AZURECLI/2.51.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/25.0.0b + Python/3.10.12 (Linux-5.15.0-1042-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westcentralus/operations/51c8313d-77fd-462b-b7a7-e1755af1f737?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"3d31c851-fd77-2b46-b7a7-e1755af1f737\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-08-30T22:15:59.734294Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '125' + content-type: + - application/json + date: + - Wed, 30 Aug 2023 22:23:03 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 4A28DE6B07B4472DAA12A49833888AC6 Ref B: CO6AA3150220031 Ref C: 2023-08-30T22:23:03Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --enable-cost-analysis --aks-custom-headers + User-Agent: + - AZURECLI/2.51.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/25.0.0b + Python/3.10.12 (Linux-5.15.0-1042-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westcentralus/operations/51c8313d-77fd-462b-b7a7-e1755af1f737?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"3d31c851-fd77-2b46-b7a7-e1755af1f737\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-08-30T22:15:59.734294Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '125' + content-type: + - application/json + date: + - Wed, 30 Aug 2023 22:23:34 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: E5A1679B6EB34352BF431EB38973530F Ref B: CO6AA3150220031 Ref C: 2023-08-30T22:23:33Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --enable-cost-analysis --aks-custom-headers + User-Agent: + - AZURECLI/2.51.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/25.0.0b + Python/3.10.12 (Linux-5.15.0-1042-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westcentralus/operations/51c8313d-77fd-462b-b7a7-e1755af1f737?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"3d31c851-fd77-2b46-b7a7-e1755af1f737\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-08-30T22:15:59.734294Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '125' + content-type: + - application/json + date: + - Wed, 30 Aug 2023 22:24:04 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 7556C0A173714F22B9019C3FECFE0A50 Ref B: CO6AA3150220031 Ref C: 2023-08-30T22:24:04Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --enable-cost-analysis --aks-custom-headers + User-Agent: + - AZURECLI/2.51.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/25.0.0b + Python/3.10.12 (Linux-5.15.0-1042-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westcentralus/operations/51c8313d-77fd-462b-b7a7-e1755af1f737?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"3d31c851-fd77-2b46-b7a7-e1755af1f737\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-08-30T22:15:59.734294Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '125' + content-type: + - application/json + date: + - Wed, 30 Aug 2023 22:24:34 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 4BA63AE80584469894120F6C14342DFE Ref B: CO6AA3150220031 Ref C: 2023-08-30T22:24:34Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --enable-cost-analysis --aks-custom-headers + User-Agent: + - AZURECLI/2.51.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/25.0.0b + Python/3.10.12 (Linux-5.15.0-1042-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westcentralus/operations/51c8313d-77fd-462b-b7a7-e1755af1f737?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"3d31c851-fd77-2b46-b7a7-e1755af1f737\",\n \"status\": + \"Succeeded\",\n \"startTime\": \"2023-08-30T22:15:59.734294Z\",\n \"endTime\": + \"2023-08-30T22:24:41.5752284Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '169' + content-type: + - application/json + date: + - Wed, 30 Aug 2023 22:25:04 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: F2ACAC7BB5D14AD3967996BF19899C5D Ref B: CO6AA3150220031 Ref C: 2023-08-30T22:25:04Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --enable-cost-analysis --aks-custom-headers + User-Agent: + - AZURECLI/2.51.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/25.0.0b + Python/3.10.12 (Linux-5.15.0-1042-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000001?api-version=2023-07-02-preview + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000001\",\n + \ \"location\": \"westcentralus\",\n \"name\": \"cliakstest000001\",\n \"type\": + \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": + \"Succeeded\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": + \"1.26.6\",\n \"currentKubernetesVersion\": \"1.26.6\",\n \"dnsPrefix\": + \"cliakstest-clitest356bq72zg-8ecadf\",\n \"fqdn\": \"cliakstest-clitest356bq72zg-8ecadf-ztwpw65l.hcp.westcentralus.azmk8s.io\",\n + \ \"azurePortalFQDN\": \"cliakstest-clitest356bq72zg-8ecadf-ztwpw65l.portal.hcp.westcentralus.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 \"workloadRuntime\": + \"OCIContainer\",\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n + \ \"enableAutoScaling\": false,\n \"provisioningState\": \"Succeeded\",\n + \ \"powerState\": {\n \"code\": \"Running\"\n },\n \"orchestratorVersion\": + \"1.26.6\",\n \"currentOrchestratorVersion\": \"1.26.6\",\n \"enableNodePublicIP\": + false,\n \"enableCustomCATrust\": false,\n \"mode\": \"System\",\n + \ \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\": false,\n + \ \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"nodeImageVersion\": + \"AKSUbuntu-2204gen2containerd-202308.16.0\",\n \"upgradeSettings\": {},\n + \ \"enableFIPS\": false,\n \"networkProfile\": {},\n \"securityProfile\": + {\n \"sshAccess\": \"LocalUser\"\n }\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 \"servicePrincipalProfile\": + {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \"nodeResourceGroup\": + \"MC_clitest000001_cliakstest000001_westcentralus\",\n \"enableRBAC\": true,\n + \ \"enablePodSecurityPolicy\": false,\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_westcentralus/providers/Microsoft.Network/publicIPAddresses/9ac0757b-3b43-401a-be0c-8ed3410b7246\"\n + \ }\n ],\n \"backendPoolType\": \"nodeIPConfiguration\"\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_cliakstest000001_westcentralus/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cliakstest000001-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 \"version\": \"v1\"\n },\n \"fileCSIDriver\": {\n \"enabled\": + true\n },\n \"snapshotController\": {\n \"enabled\": true\n }\n + \ },\n \"oidcIssuerProfile\": {\n \"enabled\": false\n },\n \"nodeResourceGroupProfile\": + {\n \"restrictionLevel\": \"Unrestricted\"\n },\n \"workloadAutoScalerProfile\": + {},\n \"metricsProfile\": {\n \"costAnalysis\": {\n \"enabled\": + true\n }\n },\n \"resourceUID\": \"64efbea50e6a6b00015ea868\"\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\": \"Standard\"\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '4837' + content-type: + - application/json + date: + - Wed, 30 Aug 2023 22:25:05 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: AA8314A4711F4583B3F1D06A16B9C458 Ref B: CO6AA3150220031 Ref C: 2023-08-30T22:25:04Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --disable-cost-analysis --aks-custom-headers + User-Agent: + - AZURECLI/2.51.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/25.0.0b + Python/3.10.12 (Linux-5.15.0-1042-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000001?api-version=2023-07-02-preview + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000001\",\n + \ \"location\": \"westcentralus\",\n \"name\": \"cliakstest000001\",\n \"type\": + \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": + \"Succeeded\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": + \"1.26.6\",\n \"currentKubernetesVersion\": \"1.26.6\",\n \"dnsPrefix\": + \"cliakstest-clitest356bq72zg-8ecadf\",\n \"fqdn\": \"cliakstest-clitest356bq72zg-8ecadf-ztwpw65l.hcp.westcentralus.azmk8s.io\",\n + \ \"azurePortalFQDN\": \"cliakstest-clitest356bq72zg-8ecadf-ztwpw65l.portal.hcp.westcentralus.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 \"workloadRuntime\": + \"OCIContainer\",\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n + \ \"enableAutoScaling\": false,\n \"provisioningState\": \"Succeeded\",\n + \ \"powerState\": {\n \"code\": \"Running\"\n },\n \"orchestratorVersion\": + \"1.26.6\",\n \"currentOrchestratorVersion\": \"1.26.6\",\n \"enableNodePublicIP\": + false,\n \"enableCustomCATrust\": false,\n \"mode\": \"System\",\n + \ \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\": false,\n + \ \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"nodeImageVersion\": + \"AKSUbuntu-2204gen2containerd-202308.16.0\",\n \"upgradeSettings\": {},\n + \ \"enableFIPS\": false,\n \"networkProfile\": {},\n \"securityProfile\": + {\n \"sshAccess\": \"LocalUser\"\n }\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 \"servicePrincipalProfile\": + {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \"nodeResourceGroup\": + \"MC_clitest000001_cliakstest000001_westcentralus\",\n \"enableRBAC\": true,\n + \ \"enablePodSecurityPolicy\": false,\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_westcentralus/providers/Microsoft.Network/publicIPAddresses/9ac0757b-3b43-401a-be0c-8ed3410b7246\"\n + \ }\n ],\n \"backendPoolType\": \"nodeIPConfiguration\"\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_cliakstest000001_westcentralus/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cliakstest000001-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 \"version\": \"v1\"\n },\n \"fileCSIDriver\": {\n \"enabled\": + true\n },\n \"snapshotController\": {\n \"enabled\": true\n }\n + \ },\n \"oidcIssuerProfile\": {\n \"enabled\": false\n },\n \"nodeResourceGroupProfile\": + {\n \"restrictionLevel\": \"Unrestricted\"\n },\n \"workloadAutoScalerProfile\": + {},\n \"metricsProfile\": {\n \"costAnalysis\": {\n \"enabled\": + true\n }\n },\n \"resourceUID\": \"64efbea50e6a6b00015ea868\"\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\": \"Standard\"\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '4837' + content-type: + - application/json + date: + - Wed, 30 Aug 2023 22:25:06 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 8A331837B6494F3581B773A82CFF7921 Ref B: CO6AA3150219045 Ref C: 2023-08-30T22:25:06Z' + status: + code: 200 + message: OK +- request: + body: '{"location": "westcentralus", "sku": {"name": "Base", "tier": "Standard"}, + "identity": {"type": "SystemAssigned"}, "properties": {"kubernetesVersion": + "1.26.6", "dnsPrefix": "cliakstest-clitest356bq72zg-8ecadf", "agentPoolProfiles": + [{"count": 1, "vmSize": "Standard_DS2_v2", "osDiskSizeGB": 128, "osDiskType": + "Managed", "kubeletDiskType": "OS", "workloadRuntime": "OCIContainer", "maxPods": + 110, "osType": "Linux", "osSKU": "Ubuntu", "enableAutoScaling": false, "type": + "VirtualMachineScaleSets", "mode": "System", "orchestratorVersion": "1.26.6", + "upgradeSettings": {}, "powerState": {"code": "Running"}, "enableNodePublicIP": + false, "enableCustomCATrust": false, "enableEncryptionAtHost": false, "enableUltraSSD": + false, "enableFIPS": false, "networkProfile": {}, "securityProfile": {"sshAccess": + "LocalUser"}, "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"}]}}, "servicePrincipalProfile": {"clientId":"00000000-0000-0000-0000-000000000001"}, + "oidcIssuerProfile": {"enabled": false}, "nodeResourceGroup": "MC_clitest000001_cliakstest000001_westcentralus", + "nodeResourceGroupProfile": {"restrictionLevel": "Unrestricted"}, "enableRBAC": + true, "enablePodSecurityPolicy": false, "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_westcentralus/providers/Microsoft.Network/publicIPAddresses/9ac0757b-3b43-401a-be0c-8ed3410b7246"}], + "backendPoolType": "nodeIPConfiguration"}, "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_cliakstest000001_westcentralus/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cliakstest000001-agentpool", + "clientId":"00000000-0000-0000-0000-000000000001", "objectId":"00000000-0000-0000-0000-000000000001"}}, + "disableLocalAccounts": false, "securityProfile": {}, "storageProfile": {}, + "workloadAutoScalerProfile": {}, "metricsProfile": {"costAnalysis": {"enabled": + false}}}}' + headers: + AKSHTTPCustomFeatures: + - Microsoft.ContainerService/ClusterCostAnalysis + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + Content-Length: + - '3196' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --name --disable-cost-analysis --aks-custom-headers + User-Agent: + - AZURECLI/2.51.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/25.0.0b + Python/3.10.12 (Linux-5.15.0-1042-azure-x86_64-with) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000001?api-version=2023-07-02-preview + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000001\",\n + \ \"location\": \"westcentralus\",\n \"name\": \"cliakstest000001\",\n \"type\": + \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": + \"Updating\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": + \"1.26.6\",\n \"currentKubernetesVersion\": \"1.26.6\",\n \"dnsPrefix\": + \"cliakstest-clitest356bq72zg-8ecadf\",\n \"fqdn\": \"cliakstest-clitest356bq72zg-8ecadf-ztwpw65l.hcp.westcentralus.azmk8s.io\",\n + \ \"azurePortalFQDN\": \"cliakstest-clitest356bq72zg-8ecadf-ztwpw65l.portal.hcp.westcentralus.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 \"workloadRuntime\": + \"OCIContainer\",\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n + \ \"enableAutoScaling\": false,\n \"provisioningState\": \"Updating\",\n + \ \"powerState\": {\n \"code\": \"Running\"\n },\n \"orchestratorVersion\": + \"1.26.6\",\n \"currentOrchestratorVersion\": \"1.26.6\",\n \"enableNodePublicIP\": + false,\n \"enableCustomCATrust\": false,\n \"mode\": \"System\",\n + \ \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\": false,\n + \ \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"nodeImageVersion\": + \"AKSUbuntu-2204gen2containerd-202308.16.0\",\n \"upgradeSettings\": {},\n + \ \"enableFIPS\": false,\n \"networkProfile\": {},\n \"securityProfile\": + {\n \"sshAccess\": \"LocalUser\"\n }\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 \"servicePrincipalProfile\": + {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \"nodeResourceGroup\": + \"MC_clitest000001_cliakstest000001_westcentralus\",\n \"enableRBAC\": true,\n + \ \"enablePodSecurityPolicy\": false,\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_westcentralus/providers/Microsoft.Network/publicIPAddresses/9ac0757b-3b43-401a-be0c-8ed3410b7246\"\n + \ }\n ],\n \"backendPoolType\": \"nodeIPConfiguration\"\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_cliakstest000001_westcentralus/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cliakstest000001-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 \"version\": \"v1\"\n },\n \"fileCSIDriver\": {\n \"enabled\": + true\n },\n \"snapshotController\": {\n \"enabled\": true\n }\n + \ },\n \"oidcIssuerProfile\": {\n \"enabled\": false\n },\n \"nodeResourceGroupProfile\": + {\n \"restrictionLevel\": \"Unrestricted\"\n },\n \"workloadAutoScalerProfile\": + {},\n \"metricsProfile\": {\n \"costAnalysis\": {\n \"enabled\": + false\n }\n },\n \"resourceUID\": \"64efbea50e6a6b00015ea868\"\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\": \"Standard\"\n }\n }" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westcentralus/operations/7094c3a9-4929-4300-b837-5d330c614710?api-version=2016-03-30 + cache-control: + - no-cache + content-length: + - '4836' + content-type: + - application/json + date: + - Wed, 30 Aug 2023 22:25:11 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-msedge-ref: + - 'Ref A: 6B01E796C8884E47A4FD0FAE397335CB Ref B: CO6AA3150219045 Ref C: 2023-08-30T22:25:07Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --disable-cost-analysis --aks-custom-headers + User-Agent: + - AZURECLI/2.51.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/25.0.0b + Python/3.10.12 (Linux-5.15.0-1042-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westcentralus/operations/7094c3a9-4929-4300-b837-5d330c614710?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"a9c39470-2949-0043-b837-5d330c614710\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-08-30T22:25:12.2972551Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 30 Aug 2023 22:25:12 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 12A50C50A40849E9B5C2A7FEE48DE421 Ref B: CO6AA3150219045 Ref C: 2023-08-30T22:25:12Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --disable-cost-analysis --aks-custom-headers + User-Agent: + - AZURECLI/2.51.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/25.0.0b + Python/3.10.12 (Linux-5.15.0-1042-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westcentralus/operations/7094c3a9-4929-4300-b837-5d330c614710?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"a9c39470-2949-0043-b837-5d330c614710\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-08-30T22:25:12.2972551Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 30 Aug 2023 22:25:42 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: B89CB803174F47279AF11ADC9CFDE3A0 Ref B: CO6AA3150219045 Ref C: 2023-08-30T22:25:42Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --disable-cost-analysis --aks-custom-headers + User-Agent: + - AZURECLI/2.51.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/25.0.0b + Python/3.10.12 (Linux-5.15.0-1042-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westcentralus/operations/7094c3a9-4929-4300-b837-5d330c614710?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"a9c39470-2949-0043-b837-5d330c614710\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-08-30T22:25:12.2972551Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 30 Aug 2023 22:26:12 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 37CEFA6EA2A5483C90F774376554493F Ref B: CO6AA3150219045 Ref C: 2023-08-30T22:26:13Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --disable-cost-analysis --aks-custom-headers + User-Agent: + - AZURECLI/2.51.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/25.0.0b + Python/3.10.12 (Linux-5.15.0-1042-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westcentralus/operations/7094c3a9-4929-4300-b837-5d330c614710?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"a9c39470-2949-0043-b837-5d330c614710\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-08-30T22:25:12.2972551Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 30 Aug 2023 22:26:42 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: A8D48E8B7554463EAED9F33408B6BDB7 Ref B: CO6AA3150219045 Ref C: 2023-08-30T22:26:43Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --disable-cost-analysis --aks-custom-headers + User-Agent: + - AZURECLI/2.51.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/25.0.0b + Python/3.10.12 (Linux-5.15.0-1042-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westcentralus/operations/7094c3a9-4929-4300-b837-5d330c614710?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"a9c39470-2949-0043-b837-5d330c614710\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-08-30T22:25:12.2972551Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 30 Aug 2023 22:27:13 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 02EE803ACF584F0280F46CE049E69662 Ref B: CO6AA3150219045 Ref C: 2023-08-30T22:27:13Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --disable-cost-analysis --aks-custom-headers + User-Agent: + - AZURECLI/2.51.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/25.0.0b + Python/3.10.12 (Linux-5.15.0-1042-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westcentralus/operations/7094c3a9-4929-4300-b837-5d330c614710?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"a9c39470-2949-0043-b837-5d330c614710\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-08-30T22:25:12.2972551Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 30 Aug 2023 22:27:43 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 1C101C073A2E41ADACE2B75595D372FB Ref B: CO6AA3150219045 Ref C: 2023-08-30T22:27:44Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --disable-cost-analysis --aks-custom-headers + User-Agent: + - AZURECLI/2.51.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/25.0.0b + Python/3.10.12 (Linux-5.15.0-1042-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westcentralus/operations/7094c3a9-4929-4300-b837-5d330c614710?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"a9c39470-2949-0043-b837-5d330c614710\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-08-30T22:25:12.2972551Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 30 Aug 2023 22:28:13 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 6171BC79CEAE45B5B29D3413C4F51F27 Ref B: CO6AA3150219045 Ref C: 2023-08-30T22:28:14Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --disable-cost-analysis --aks-custom-headers + User-Agent: + - AZURECLI/2.51.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/25.0.0b + Python/3.10.12 (Linux-5.15.0-1042-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westcentralus/operations/7094c3a9-4929-4300-b837-5d330c614710?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"a9c39470-2949-0043-b837-5d330c614710\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-08-30T22:25:12.2972551Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 30 Aug 2023 22:28:43 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: B568E3B370524314AB9BC2483F6D62F8 Ref B: CO6AA3150219045 Ref C: 2023-08-30T22:28:44Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --disable-cost-analysis --aks-custom-headers + User-Agent: + - AZURECLI/2.51.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/25.0.0b + Python/3.10.12 (Linux-5.15.0-1042-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westcentralus/operations/7094c3a9-4929-4300-b837-5d330c614710?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"a9c39470-2949-0043-b837-5d330c614710\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-08-30T22:25:12.2972551Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 30 Aug 2023 22:29:15 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 50DF763755104DB7B486EF5F98AFB5EF Ref B: CO6AA3150219045 Ref C: 2023-08-30T22:29:14Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --disable-cost-analysis --aks-custom-headers + User-Agent: + - AZURECLI/2.51.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/25.0.0b + Python/3.10.12 (Linux-5.15.0-1042-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westcentralus/operations/7094c3a9-4929-4300-b837-5d330c614710?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"a9c39470-2949-0043-b837-5d330c614710\",\n \"status\": + \"Succeeded\",\n \"startTime\": \"2023-08-30T22:25:12.2972551Z\",\n \"endTime\": + \"2023-08-30T22:29:37.0894631Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '170' + content-type: + - application/json + date: + - Wed, 30 Aug 2023 22:29:45 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 6B04CB32AF604D56BB84D80791AD1BE4 Ref B: CO6AA3150219045 Ref C: 2023-08-30T22:29:45Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --disable-cost-analysis --aks-custom-headers + User-Agent: + - AZURECLI/2.51.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/25.0.0b + Python/3.10.12 (Linux-5.15.0-1042-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000001?api-version=2023-07-02-preview + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000001\",\n + \ \"location\": \"westcentralus\",\n \"name\": \"cliakstest000001\",\n \"type\": + \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": + \"Succeeded\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": + \"1.26.6\",\n \"currentKubernetesVersion\": \"1.26.6\",\n \"dnsPrefix\": + \"cliakstest-clitest356bq72zg-8ecadf\",\n \"fqdn\": \"cliakstest-clitest356bq72zg-8ecadf-ztwpw65l.hcp.westcentralus.azmk8s.io\",\n + \ \"azurePortalFQDN\": \"cliakstest-clitest356bq72zg-8ecadf-ztwpw65l.portal.hcp.westcentralus.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 \"workloadRuntime\": + \"OCIContainer\",\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n + \ \"enableAutoScaling\": false,\n \"provisioningState\": \"Succeeded\",\n + \ \"powerState\": {\n \"code\": \"Running\"\n },\n \"orchestratorVersion\": + \"1.26.6\",\n \"currentOrchestratorVersion\": \"1.26.6\",\n \"enableNodePublicIP\": + false,\n \"enableCustomCATrust\": false,\n \"mode\": \"System\",\n + \ \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\": false,\n + \ \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"nodeImageVersion\": + \"AKSUbuntu-2204gen2containerd-202308.16.0\",\n \"upgradeSettings\": {},\n + \ \"enableFIPS\": false,\n \"networkProfile\": {},\n \"securityProfile\": + {\n \"sshAccess\": \"LocalUser\"\n }\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 \"servicePrincipalProfile\": + {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \"nodeResourceGroup\": + \"MC_clitest000001_cliakstest000001_westcentralus\",\n \"enableRBAC\": true,\n + \ \"enablePodSecurityPolicy\": false,\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_westcentralus/providers/Microsoft.Network/publicIPAddresses/9ac0757b-3b43-401a-be0c-8ed3410b7246\"\n + \ }\n ],\n \"backendPoolType\": \"nodeIPConfiguration\"\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_cliakstest000001_westcentralus/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cliakstest000001-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 \"version\": \"v1\"\n },\n \"fileCSIDriver\": {\n \"enabled\": + true\n },\n \"snapshotController\": {\n \"enabled\": true\n }\n + \ },\n \"oidcIssuerProfile\": {\n \"enabled\": false\n },\n \"nodeResourceGroupProfile\": + {\n \"restrictionLevel\": \"Unrestricted\"\n },\n \"workloadAutoScalerProfile\": + {},\n \"metricsProfile\": {\n \"costAnalysis\": {\n \"enabled\": + false\n }\n },\n \"resourceUID\": \"64efbea50e6a6b00015ea868\"\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\": \"Standard\"\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '4838' + content-type: + - application/json + date: + - Wed, 30 Aug 2023 22:29:46 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 810A8536388A47F6B6DB9AC6D66AE6EC Ref B: CO6AA3150219045 Ref C: 2023-08-30T22:29:45Z' + 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 (DOCKER) azsdk-python-azure-mgmt-containerservice/25.0.0b + Python/3.10.12 (Linux-5.15.0-1042-azure-x86_64-with) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000001?api-version=2023-07-02-preview + response: + body: + string: '' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westcentralus/operations/a6dfeb32-e81b-451f-b225-03d7dc965583?api-version=2016-03-30 + cache-control: + - no-cache + content-length: + - '0' + date: + - Wed, 30 Aug 2023 22:29:47 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westcentralus/operationresults/a6dfeb32-e81b-451f-b225-03d7dc965583?api-version=2016-03-30 + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' + x-msedge-ref: + - 'Ref A: D484207CCA7D46FB9A754BA0FFDE9C91 Ref B: CO6AA3150220031 Ref C: 2023-08-30T22:29:46Z' + status: + code: 202 + message: Accepted +version: 1 diff --git a/src/aks-preview/azext_aks_preview/tests/latest/test_aks_commands.py b/src/aks-preview/azext_aks_preview/tests/latest/test_aks_commands.py index 14b1eaf6b0e..beddbf7c006 100644 --- a/src/aks-preview/azext_aks_preview/tests/latest/test_aks_commands.py +++ b/src/aks-preview/azext_aks_preview/tests/latest/test_aks_commands.py @@ -7560,6 +7560,78 @@ def test_aks_create_with_enable_network_observability(self, resource_group, reso 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='westcentralus', + preserve_default_location=True) + def test_aks_create_with_enable_cost_analysis(self, resource_group, resource_group_location): + # 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, + 'ssh_key_value': self.generate_ssh_keys(), + 'location': resource_group_location, + }) + + # create + create_cmd = 'aks create --resource-group={resource_group} --name={name} --location={location} ' \ + '--ssh-key-value={ssh_key_value} --node-count=1 --tier standard --enable-cost-analysis ' \ + '--aks-custom-headers AKSHTTPCustomFeatures=Microsoft.ContainerService/ClusterCostAnalysis' + self.cmd(create_cmd, checks=[ + self.check('provisioningState', 'Succeeded'), + self.check('metricsProfile.costAnalysis.enabled', True), + ]) + + # 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='westcentralus', + preserve_default_location=True) + def test_aks_update_enable_cost_analysis(self, resource_group, resource_group_location): + # 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, + 'ssh_key_value': self.generate_ssh_keys(), + 'location': resource_group_location, + }) + + # create + create_cmd = 'aks create --resource-group={resource_group} --name={name} --location={location} ' \ + '--ssh-key-value={ssh_key_value} --node-count=1 --tier standard ' + self.cmd(create_cmd, checks=[ + self.check('provisioningState', 'Succeeded') + ]) + + # update to enable + update_cmd = 'aks update --resource-group={resource_group} --name={name} --enable-cost-analysis ' \ + '--aks-custom-headers AKSHTTPCustomFeatures=Microsoft.ContainerService/ClusterCostAnalysis ' + self.cmd(update_cmd, checks=[ + self.check('provisioningState', 'Succeeded'), + self.check('metricsProfile.costAnalysis.enabled', True), + ]) + + # update to disable + update_cmd = 'aks update --resource-group={resource_group} --name={name} --disable-cost-analysis ' \ + '--aks-custom-headers AKSHTTPCustomFeatures=Microsoft.ContainerService/ClusterCostAnalysis ' + self.cmd(update_cmd, checks=[ + self.check('provisioningState', 'Succeeded'), + self.check('metricsProfile.costAnalysis.enabled', False), + ]) + + # 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='eastus', preserve_default_location=True) def test_aks_create_with_custom_headers(self, resource_group, resource_group_location): diff --git a/src/aks-preview/azext_aks_preview/tests/latest/test_managed_cluster_decorator.py b/src/aks-preview/azext_aks_preview/tests/latest/test_managed_cluster_decorator.py index 31ba6dedb4e..606c4d949e6 100644 --- a/src/aks-preview/azext_aks_preview/tests/latest/test_managed_cluster_decorator.py +++ b/src/aks-preview/azext_aks_preview/tests/latest/test_managed_cluster_decorator.py @@ -6473,6 +6473,38 @@ def test_update_upgrade_settings(self): with self.assertRaises(InvalidArgumentValueError): dec_6.update_upgrade_settings(mc_6) + def test_enable_disable_cost_analysis(self): + # Should not update mc if unset + dec_0 = AKSPreviewManagedClusterUpdateDecorator( + self.cmd, + self.client, + {}, + CUSTOM_MGMT_AKS_PREVIEW, + ) + mc_0 = self.models.ManagedCluster( + location="test_location", + ) + dec_0.context.attach_mc(mc_0) + dec_mc_0 = dec_0.update_metrics_profile(mc_0) + ground_truth_mc_0 = self.models.ManagedCluster( + location="test_location", + ) + self.assertEqual(dec_mc_0, ground_truth_mc_0) + + # Should error if both set + dec_6 = AKSPreviewManagedClusterUpdateDecorator( + self.cmd, + self.client, + {"disable_cost_analysis": True, "enable_cost_analysis": True}, + CUSTOM_MGMT_AKS_PREVIEW, + ) + mc_6 = self.models.ManagedCluster( + location="test_location", + ) + dec_6.context.attach_mc(mc_6) + with self.assertRaises(MutuallyExclusiveArgumentError): + dec_6.update_metrics_profile(mc_6) + def test_update_mc_profile_preview(self): import inspect diff --git a/src/aks-preview/setup.py b/src/aks-preview/setup.py index ff21e2f4a87..a5ccf4eaa4c 100644 --- a/src/aks-preview/setup.py +++ b/src/aks-preview/setup.py @@ -9,7 +9,7 @@ from setuptools import setup, find_packages -VERSION = "0.5.154" +VERSION = "0.5.155" CLASSIFIERS = [ "Development Status :: 4 - Beta",