From ad9f3870de86a79a9998987fd9608a74155aba78 Mon Sep 17 00:00:00 2001 From: Charlie McBride Date: Thu, 12 Jan 2023 12:55:04 -0800 Subject: [PATCH 01/17] add NRG Profile + Restriction Level to the Preview CLI Update + Create paths --- src/aks-preview/azext_aks_preview/_consts.py | 4 ++ src/aks-preview/azext_aks_preview/_help.py | 8 +++ src/aks-preview/azext_aks_preview/_params.py | 8 +++ src/aks-preview/azext_aks_preview/custom.py | 2 + .../managed_cluster_decorator.py | 50 +++++++++++++++++++ 5 files changed, 72 insertions(+) diff --git a/src/aks-preview/azext_aks_preview/_consts.py b/src/aks-preview/azext_aks_preview/_consts.py index c2a83411077..844f8912507 100644 --- a/src/aks-preview/azext_aks_preview/_consts.py +++ b/src/aks-preview/azext_aks_preview/_consts.py @@ -83,6 +83,10 @@ CONST_NODE_IMAGE_UPGRADE_CHANNEL = "node-image" CONST_NONE_UPGRADE_CHANNEL = "none" +# consts for nrg-lockdown restriction level +CONST_NRG_LOCKDOWN_RESTRICTION_LEVEL_READONLY = "ReadOnly" +CONST_NRG_LOCKDOWN_RESTRICTION_LEVEL_UNRESTRICTED = "Unrestricted" + # network plugin CONST_NETWORK_PLUGIN_KUBENET = "kubenet" CONST_NETWORK_PLUGIN_AZURE = "azure" diff --git a/src/aks-preview/azext_aks_preview/_help.py b/src/aks-preview/azext_aks_preview/_help.py index 17f5044e6ba..8ecd46d892a 100644 --- a/src/aks-preview/azext_aks_preview/_help.py +++ b/src/aks-preview/azext_aks_preview/_help.py @@ -289,6 +289,10 @@ - name: --node-resource-group type: string short-summary: The node resource group is the resource group where all customer's resources will be created in, such as virtual machines. + – name: --nrg-lockdown-restriction-level + type: string + short-summary: Restriction level on the managed node resource group + long-summary: The restriction level of permissions allowed on the cluster's managed node resource group, supported values are unrestricted, and readonly (recommended: readonly) - name: --uptime-sla type: bool short-summary: Enable a paid managed cluster service with a financially backed SLA. @@ -680,6 +684,10 @@ type: bool short-summary: Disable pod security policy long-summary: PodSecurityPolicy is deprecated. See https://aka.ms/aks/psp for details. + – name: --nrg-lockdown-restriction-level + type: string + short-summary: Restriction level on the managed node resource group + long-summary: The restriction level of permissions allowed on the cluster's managed node resource group, supported values are unrestricted, and readonly (recommended: readonly) - name: --attach-acr type: string short-summary: Grant the 'acrpull' role assignment to the ACR specified by name or resource ID. diff --git a/src/aks-preview/azext_aks_preview/_params.py b/src/aks-preview/azext_aks_preview/_params.py index dd25949c640..79eaea73a69 100644 --- a/src/aks-preview/azext_aks_preview/_params.py +++ b/src/aks-preview/azext_aks_preview/_params.py @@ -45,6 +45,8 @@ CONST_NODEPOOL_MODE_SYSTEM, CONST_NODEPOOL_MODE_USER, CONST_NONE_UPGRADE_CHANNEL, + CONST_NRG_LOCKDOWN_RESTRICTION_LEVEL_READONLY, + CONST_NRG_LOCKDOWN_RESTRICTION_LEVEL_UNRESTRICTED, CONST_OS_DISK_TYPE_EPHEMERAL, CONST_OS_DISK_TYPE_MANAGED, CONST_OS_SKU_CBLMARINER, @@ -176,6 +178,10 @@ CONST_NODE_IMAGE_UPGRADE_CHANNEL, CONST_NONE_UPGRADE_CHANNEL, ] +nrg_lockdown_restriction_levels = [ + CONST_NRG_LOCKDOWN_RESTRICTION_LEVEL_READONLY, + CONST_NRG_LOCKDOWN_RESTRICTION_LEVEL_UNRESTRICTED, +] # consts for credential credential_formats = [CONST_CREDENTIAL_FORMAT_AZURE, CONST_CREDENTIAL_FORMAT_EXEC] @@ -224,6 +230,7 @@ def load_arguments(self, _): c.argument('load_balancer_outbound_ports', type=int, validator=validate_load_balancer_outbound_ports) c.argument('load_balancer_idle_timeout', type=int, validator=validate_load_balancer_idle_timeout) c.argument('load_balancer_backend_pool_type', validator=validate_load_balancer_backend_pool_type) + c.argument('nrg_lockdown_restriction_level', arg_type=get_enum_type(nrg_lockdown_restriction_levels)) c.argument('nat_gateway_managed_outbound_ip_count', type=int, validator=validate_nat_gateway_managed_outbound_ip_count) c.argument('nat_gateway_idle_timeout', type=int, validator=validate_nat_gateway_idle_timeout) c.argument('outbound_type', arg_type=get_enum_type(outbound_types)) @@ -365,6 +372,7 @@ def load_arguments(self, _): c.argument('load_balancer_outbound_ports', type=int, validator=validate_load_balancer_outbound_ports) c.argument('load_balancer_idle_timeout', type=int, validator=validate_load_balancer_idle_timeout) c.argument('load_balancer_backend_pool_type', validator=validate_load_balancer_backend_pool_type) + c.argument('nrg_lockdown_restriction_level', arg_type=get_enum_type(nrg_lockdown_restriction_levels)) c.argument('nat_gateway_managed_outbound_ip_count', type=int, validator=validate_nat_gateway_managed_outbound_ip_count) c.argument('nat_gateway_idle_timeout', type=int, validator=validate_nat_gateway_idle_timeout) c.argument('kube_proxy_config') diff --git a/src/aks-preview/azext_aks_preview/custom.py b/src/aks-preview/azext_aks_preview/custom.py index e809fbaa46f..a67882f2a04 100644 --- a/src/aks-preview/azext_aks_preview/custom.py +++ b/src/aks-preview/azext_aks_preview/custom.py @@ -602,6 +602,7 @@ def aks_create( attach_acr=None, skip_subnet_role_assignment=False, node_resource_group=None, + nrg_lockdown_restriction_level=None, enable_defender=False, defender_config=None, disk_driver_version=None, @@ -755,6 +756,7 @@ def aks_update( gmsa_root_domain_name=None, attach_acr=None, detach_acr=None, + nrg_lockdown_restriction_level=None, enable_defender=False, disable_defender=False, defender_config=None, 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 545a1e9e273..49669751f7e 100644 --- a/src/aks-preview/azext_aks_preview/managed_cluster_decorator.py +++ b/src/aks-preview/azext_aks_preview/managed_cluster_decorator.py @@ -472,6 +472,26 @@ def get_load_balancer_backend_pool_type(self) -> str: # this parameter does not need validation return load_balancer_backend_pool_type + def get_nrg_lockdown_restriction_level(self) -> Union[str, None]: + """Obtain the value of nrg_lockdown_restriction_level. + :return: string or None + """ + # read the original value passed by the command + nrg_lockdown_restriction_level = self.raw_param.get("nrg_lockdown_restriction_level") + + # In create mode, try to read the property value corresponding to the parameter from the `mc` object. + if self.decorator_mode == DecoratorMode.CREATE: + if ( + self.mc and + self.mc.node_resource_group_profile and + self.mc.node_resource_group_profile.restriction_level is not None + ): + nrg_lockdown_restriction_level = self.mc.node_resource_group_profile.restriction_level + + # this parameter does not need dynamic completion + # this parameter does not need validation + return nrg_lockdown_restriction_level + def get_kube_proxy_config(self) -> Union[Dict, ContainerServiceNetworkProfileKubeProxyConfig, None]: """Obtain the value of kube_proxy_config. @@ -2125,6 +2145,19 @@ def set_up_kube_proxy_config(self, mc: ManagedCluster) -> ManagedCluster: mc.network_profile.kube_proxy_config = self.context.get_kube_proxy_config() return mc + def set_up_node_resource_group_profile(self, mc: ManagedCluster) -> ManagedCluster: + """Set up node resource group profile for the ManagedCluster object. + :return: the ManagedCluster object + """ + self._ensure_mc(mc) + + node_resource_group_profile = None + nrg_lockdown_restriction_level = self.context.get_nrg_lockdown_restriction_level() + if nrg_lockdown_restriction_level: + node_resource_group_profile = self.models.ManagedClusterNodeResourceGroupProfile(restriction_level=nrg_lockdown_restriction_level) + mc.node_resource_group_profile = node_resource_group_profile + return mc + def construct_mc_profile_preview(self, bypass_restore_defaults: bool = False) -> ManagedCluster: """The overall controller used to construct the default ManagedCluster profile. @@ -2158,6 +2191,8 @@ def construct_mc_profile_preview(self, bypass_restore_defaults: bool = False) -> mc = self.set_up_kube_proxy_config(mc) # set up custom ca trust certificates mc = self.set_up_custom_ca_trust_certificates(mc) + # set up node resource group profile + mc = self.set_up_node_resource_group_profile(mc) # DO NOT MOVE: keep this at the bottom, restore defaults mc = self._restore_defaults_in_mc(mc) @@ -2609,6 +2644,19 @@ def update_linux_profile(self, mc: ManagedCluster) -> ManagedCluster: ) return mc + def update_node_resource_group_profile(self, mc: ManagedCluster) -> ManagedCluster: + """Update node resource group profile for the ManagedCluster object. + :return: the ManagedCluster object + """ + self._ensure_mc(mc) + + nrg_lockdown_restriction_level = self.context.get_nrg_lockdown_restriction_level() + if nrg_lockdown_restriction_level is not None: + if mc.node_resource_group_profile is None: + mc.node_resource_group_profile = self.models.ManagedClusterNodeResourceGroupProfile() + mc.node_resource_group_profile.restriction_level = nrg_lockdown_restriction_level + return mc + def update_mc_profile_preview(self) -> ManagedCluster: """The overall controller used to update the preview ManagedCluster profile. @@ -2646,5 +2694,7 @@ def update_mc_profile_preview(self) -> ManagedCluster: mc = self.update_kube_proxy_config(mc) # update custom ca trust certificates mc = self.update_custom_ca_trust_certificates(mc) + # update node resource group profile + mc = self.update_node_resource_group_profile(mc) return mc From c928b597b2e8e580a83b459953917f5c9ce6dc24 Mon Sep 17 00:00:00 2001 From: Charlie McBride Date: Thu, 12 Jan 2023 13:02:51 -0800 Subject: [PATCH 02/17] update casing --- src/aks-preview/azext_aks_preview/_help.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/aks-preview/azext_aks_preview/_help.py b/src/aks-preview/azext_aks_preview/_help.py index 8ecd46d892a..8c3bd937469 100644 --- a/src/aks-preview/azext_aks_preview/_help.py +++ b/src/aks-preview/azext_aks_preview/_help.py @@ -292,7 +292,7 @@ – name: --nrg-lockdown-restriction-level type: string short-summary: Restriction level on the managed node resource group - long-summary: The restriction level of permissions allowed on the cluster's managed node resource group, supported values are unrestricted, and readonly (recommended: readonly) + long-summary: The restriction level of permissions allowed on the cluster's managed node resource group, supported values are Unrestricted, and ReadOnly (recommended: readonly) - name: --uptime-sla type: bool short-summary: Enable a paid managed cluster service with a financially backed SLA. @@ -687,7 +687,7 @@ – name: --nrg-lockdown-restriction-level type: string short-summary: Restriction level on the managed node resource group - long-summary: The restriction level of permissions allowed on the cluster's managed node resource group, supported values are unrestricted, and readonly (recommended: readonly) + long-summary: The restriction level of permissions allowed on the cluster's managed node resource group, supported values are Unrestricted, and ReadOnly (recommended: readonly) - name: --attach-acr type: string short-summary: Grant the 'acrpull' role assignment to the ACR specified by name or resource ID. From 6164f0d072eeb7bac46e71648e97746b54daa7fe Mon Sep 17 00:00:00 2001 From: Charlie McBride Date: Thu, 12 Jan 2023 13:10:49 -0800 Subject: [PATCH 03/17] add test --- .../tests/latest/test_aks_commands.py | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) 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 836e0b2dbf2..ab2ea43f97c 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 @@ -3002,6 +3002,37 @@ def test_aks_create_with_auto_upgrade_channel(self, resource_group, resource_gro self.cmd( 'aks delete -g {resource_group} -n {name} --yes --no-wait', checks=[self.is_empty()]) + @AllowLargeResponse() + @AKSCustomResourceGroupPreparer(random_name_length=17, name_prefix='clitest', location='westus2') + def test_aks_create_and_update_with_nrg_restriction_level(self, resource_group, resource_group_location): + aks_name = self.create_random_name('cliakstest', 16) + self.kwargs.update({ + 'resource_group': resource_group, + 'name': aks_name, + 'location': resource_group_location, + 'ssh_key_value': self.generate_ssh_keys() + }) + + # create + create_cmd = 'aks create --resource-group={resource_group} --name={name} --location={location} ' \ + '--enable-managed-identity ' \ + '--nrg-lockdown-restriction-level ReadOnly ' \ + '--ssh-key-value={ssh_key_value}' + self.cmd(create_cmd, checks=[ + self.check('provisioningState', 'Succeeded'), + self.check('nodeResourceGroupProfile.restrictionLevel', 'ReadOnly') + ]) + + # update upgrade channel + self.cmd('aks update --resource-group={resource_group} --name={name} --nrg-lockdown-restriction-level Unrestricted', checks=[ + self.check('provisioningState', 'Succeeded'), + self.check('nodeResourceGroupProfile.restrictionLevel', 'Unrestricted') + ]) + + # delete + self.cmd( + 'aks delete -g {resource_group} -n {name} --yes --no-wait', checks=[self.is_empty()]) + @AllowLargeResponse() @AKSCustomResourceGroupPreparer(random_name_length=17, name_prefix='clitest', location='westus2') def test_aks_create_with_node_config(self, resource_group, resource_group_location): From e0c2c70548a0af9e2cc807bc0a61a91e07721f20 Mon Sep 17 00:00:00 2001 From: Charlie McBride Date: Thu, 12 Jan 2023 13:20:49 -0800 Subject: [PATCH 04/17] update version --- src/aks-preview/setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aks-preview/setup.py b/src/aks-preview/setup.py index 38524efbfe9..149c82a3f15 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.122" +VERSION = "0.5.123" CLASSIFIERS = [ "Development Status :: 4 - Beta", From 9ca46735f4eb576dcc903b717693a2c67ae1ed1c Mon Sep 17 00:00:00 2001 From: Charlie McBride Date: Thu, 12 Jan 2023 15:56:02 -0800 Subject: [PATCH 05/17] fix test, and run --- ...and_update_with_nrg_restriction_level.yaml | 1121 +++++++++++++++++ .../tests/latest/test_aks_commands.py | 5 +- 2 files changed, 1124 insertions(+), 2 deletions(-) create mode 100644 src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_and_update_with_nrg_restriction_level.yaml diff --git a/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_and_update_with_nrg_restriction_level.yaml b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_and_update_with_nrg_restriction_level.yaml new file mode 100644 index 00000000000..ec9d818a5c9 --- /dev/null +++ b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_and_update_with_nrg_restriction_level.yaml @@ -0,0 +1,1121 @@ +interactions: +- request: + body: '{"location": "westus2", "identity": {"type": "SystemAssigned"}, "properties": + {"kubernetesVersion": "", "dnsPrefix": "cliakstest-clitestttpefesf3-8ecadf", + "agentPoolProfiles": [{"count": 3, "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": {}, "nodeResourceGroupProfile": {"restrictionLevel": + "ReadOnly"}, "enableRBAC": true, "enablePodSecurityPolicy": false, "networkProfile": + {"networkPlugin": "kubenet", "podCidr": "10.244.0.0/16", "serviceCidr": "10.0.0.0/16", + "dnsServiceIP": "10.0.0.10", "dockerBridgeCidr": "172.17.0.1/16", "outboundType": + "loadBalancer", "loadBalancerSku": "standard"}, "disableLocalAccounts": false, + "storageProfile": {}}}' + headers: + AKSHTTPCustomFeatures: + - Microsoft.ContainerService/NRGLockdownPreview + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '1971' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --name --location --enable-managed-identity --nrg-lockdown-restriction-level + --ssh-key-value --aks-custom-headers + User-Agent: + - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b + Python/3.10.9 (Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2022-11-02-preview + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\"\ + ,\n \"location\": \"westus2\",\n \"name\": \"cliakstest000002\",\n \"type\"\ + : \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \ + \ \"provisioningState\": \"Creating\",\n \"powerState\": {\n \"code\"\ + : \"Running\"\n },\n \"kubernetesVersion\": \"1.24.6\",\n \"currentKubernetesVersion\"\ + : \"1.24.6\",\n \"dnsPrefix\": \"cliakstest-clitestttpefesf3-8ecadf\",\n\ + \ \"fqdn\": \"cliakstest-clitestttpefesf3-8ecadf-d1e33e4a.hcp.westus2.azmk8s.io\"\ + ,\n \"azurePortalFQDN\": \"cliakstest-clitestttpefesf3-8ecadf-d1e33e4a.portal.hcp.westus2.azmk8s.io\"\ + ,\n \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \ + \ \"count\": 3,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\"\ + : 128,\n \"osDiskType\": \"Managed\",\n \"kubeletDiskType\": \"OS\"\ + ,\n \"workloadRuntime\": \"OCIContainer\",\n \"maxPods\": 110,\n \ + \ \"type\": \"VirtualMachineScaleSets\",\n \"enableAutoScaling\": false,\n\ + \ \"provisioningState\": \"Creating\",\n \"powerState\": {\n \ + \ \"code\": \"Running\"\n },\n \"orchestratorVersion\": \"1.24.6\"\ + ,\n \"currentOrchestratorVersion\": \"1.24.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-1804gen2containerd-2022.12.19\",\n \"upgradeSettings\":\ + \ {},\n \"enableFIPS\": false,\n \"networkProfile\": {}\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_cliakstest000002_westus2\",\n\ + \ \"enableRBAC\": true,\n \"enablePodSecurityPolicy\": false,\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 \"dockerBridgeCidr\": \"172.17.0.1/16\"\ + ,\n \"outboundType\": \"loadBalancer\",\n \"podCidrs\": [\n \"10.244.0.0/16\"\ + \n ],\n \"serviceCidrs\": [\n \"10.0.0.0/16\"\n ],\n \"ipFamilies\"\ + : [\n \"IPv4\"\n ]\n },\n \"maxAgentPools\": 100,\n \"disableLocalAccounts\"\ + : false,\n \"securityProfile\": {},\n \"storageProfile\": {\n \"diskCSIDriver\"\ + : {\n \"enabled\": true,\n \"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\"\ + : \"ReadOnly\"\n },\n \"workloadAutoScalerProfile\": {}\n },\n \"identity\"\ + : {\n \"type\": \"SystemAssigned\",\n \"principalId\":\"00000000-0000-0000-0000-000000000001\"\ + ,\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\n },\n \"sku\"\ + : {\n \"name\": \"Basic\",\n \"tier\": \"Free\"\n }\n }" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/4f47c860-3562-48a8-a8c8-f1e2c84bb458?api-version=2016-03-30 + cache-control: + - no-cache + content-length: + - '3879' + content-type: + - application/json + date: + - Thu, 12 Jan 2023 23:49:00 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --enable-managed-identity --nrg-lockdown-restriction-level + --ssh-key-value --aks-custom-headers + User-Agent: + - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b + Python/3.10.9 (Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/4f47c860-3562-48a8-a8c8-f1e2c84bb458?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"60c8474f-6235-a848-a8c8-f1e2c84bb458\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2023-01-12T23:49:01.3047888Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Thu, 12 Jan 2023 23:49:31 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --enable-managed-identity --nrg-lockdown-restriction-level + --ssh-key-value --aks-custom-headers + User-Agent: + - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b + Python/3.10.9 (Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/4f47c860-3562-48a8-a8c8-f1e2c84bb458?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"60c8474f-6235-a848-a8c8-f1e2c84bb458\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2023-01-12T23:49:01.3047888Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Thu, 12 Jan 2023 23:50:01 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --enable-managed-identity --nrg-lockdown-restriction-level + --ssh-key-value --aks-custom-headers + User-Agent: + - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b + Python/3.10.9 (Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/4f47c860-3562-48a8-a8c8-f1e2c84bb458?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"60c8474f-6235-a848-a8c8-f1e2c84bb458\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2023-01-12T23:49:01.3047888Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Thu, 12 Jan 2023 23:50:31 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --enable-managed-identity --nrg-lockdown-restriction-level + --ssh-key-value --aks-custom-headers + User-Agent: + - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b + Python/3.10.9 (Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/4f47c860-3562-48a8-a8c8-f1e2c84bb458?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"60c8474f-6235-a848-a8c8-f1e2c84bb458\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2023-01-12T23:49:01.3047888Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Thu, 12 Jan 2023 23:51:01 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --enable-managed-identity --nrg-lockdown-restriction-level + --ssh-key-value --aks-custom-headers + User-Agent: + - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b + Python/3.10.9 (Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/4f47c860-3562-48a8-a8c8-f1e2c84bb458?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"60c8474f-6235-a848-a8c8-f1e2c84bb458\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2023-01-12T23:49:01.3047888Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Thu, 12 Jan 2023 23:51:31 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --enable-managed-identity --nrg-lockdown-restriction-level + --ssh-key-value --aks-custom-headers + User-Agent: + - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b + Python/3.10.9 (Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/4f47c860-3562-48a8-a8c8-f1e2c84bb458?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"60c8474f-6235-a848-a8c8-f1e2c84bb458\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2023-01-12T23:49:01.3047888Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Thu, 12 Jan 2023 23:52:02 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --enable-managed-identity --nrg-lockdown-restriction-level + --ssh-key-value --aks-custom-headers + User-Agent: + - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b + Python/3.10.9 (Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/4f47c860-3562-48a8-a8c8-f1e2c84bb458?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"60c8474f-6235-a848-a8c8-f1e2c84bb458\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2023-01-12T23:49:01.3047888Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Thu, 12 Jan 2023 23:52:31 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --enable-managed-identity --nrg-lockdown-restriction-level + --ssh-key-value --aks-custom-headers + User-Agent: + - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b + Python/3.10.9 (Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/4f47c860-3562-48a8-a8c8-f1e2c84bb458?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"60c8474f-6235-a848-a8c8-f1e2c84bb458\",\n \"status\"\ + : \"Succeeded\",\n \"startTime\": \"2023-01-12T23:49:01.3047888Z\",\n \"\ + endTime\": \"2023-01-12T23:52:43.9042793Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '170' + content-type: + - application/json + date: + - Thu, 12 Jan 2023 23:53:01 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --enable-managed-identity --nrg-lockdown-restriction-level + --ssh-key-value --aks-custom-headers + User-Agent: + - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b + Python/3.10.9 (Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2022-11-02-preview + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\"\ + ,\n \"location\": \"westus2\",\n \"name\": \"cliakstest000002\",\n \"type\"\ + : \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \ + \ \"provisioningState\": \"Succeeded\",\n \"powerState\": {\n \"code\"\ + : \"Running\"\n },\n \"kubernetesVersion\": \"1.24.6\",\n \"currentKubernetesVersion\"\ + : \"1.24.6\",\n \"dnsPrefix\": \"cliakstest-clitestttpefesf3-8ecadf\",\n\ + \ \"fqdn\": \"cliakstest-clitestttpefesf3-8ecadf-d1e33e4a.hcp.westus2.azmk8s.io\"\ + ,\n \"azurePortalFQDN\": \"cliakstest-clitestttpefesf3-8ecadf-d1e33e4a.portal.hcp.westus2.azmk8s.io\"\ + ,\n \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \ + \ \"count\": 3,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\"\ + : 128,\n \"osDiskType\": \"Managed\",\n \"kubeletDiskType\": \"OS\"\ + ,\n \"workloadRuntime\": \"OCIContainer\",\n \"maxPods\": 110,\n \ + \ \"type\": \"VirtualMachineScaleSets\",\n \"enableAutoScaling\": false,\n\ + \ \"provisioningState\": \"Succeeded\",\n \"powerState\": {\n \ + \ \"code\": \"Running\"\n },\n \"orchestratorVersion\": \"1.24.6\"\ + ,\n \"currentOrchestratorVersion\": \"1.24.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-1804gen2containerd-2022.12.19\",\n \"upgradeSettings\":\ + \ {},\n \"enableFIPS\": false,\n \"networkProfile\": {}\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_cliakstest000002_westus2\",\n\ + \ \"enableRBAC\": true,\n \"enablePodSecurityPolicy\": false,\n \"networkProfile\"\ + : {\n \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\": \"Standard\"\ + ,\n \"loadBalancerProfile\": {\n \"managedOutboundIPs\": {\n \"\ + count\": 1\n },\n \"effectiveOutboundIPs\": [\n {\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.Network/publicIPAddresses/575c2af7-d919-486d-8a66-360df0150e3f\"\ + \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 \"dockerBridgeCidr\": \"172.17.0.1/16\"\ + ,\n \"outboundType\": \"loadBalancer\",\n \"podCidrs\": [\n \"10.244.0.0/16\"\ + \n ],\n \"serviceCidrs\": [\n \"10.0.0.0/16\"\n ],\n \"ipFamilies\"\ + : [\n \"IPv4\"\n ]\n },\n \"maxAgentPools\": 100,\n \"identityProfile\"\ + : {\n \"kubeletidentity\": {\n \"resourceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cliakstest000002-agentpool\"\ + ,\n \"clientId\":\"00000000-0000-0000-0000-000000000001\",\n \"objectId\"\ + :\"00000000-0000-0000-0000-000000000001\"\n }\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\"\ + : \"ReadOnly\"\n },\n \"workloadAutoScalerProfile\": {}\n },\n \"identity\"\ + : {\n \"type\": \"SystemAssigned\",\n \"principalId\":\"00000000-0000-0000-0000-000000000001\"\ + ,\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\n },\n \"sku\"\ + : {\n \"name\": \"Basic\",\n \"tier\": \"Free\"\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '4532' + content-type: + - application/json + date: + - Thu, 12 Jan 2023 23:53:02 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --nrg-lockdown-restriction-level --aks-custom-headers + User-Agent: + - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b + Python/3.10.9 (Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2022-11-02-preview + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\"\ + ,\n \"location\": \"westus2\",\n \"name\": \"cliakstest000002\",\n \"type\"\ + : \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \ + \ \"provisioningState\": \"Succeeded\",\n \"powerState\": {\n \"code\"\ + : \"Running\"\n },\n \"kubernetesVersion\": \"1.24.6\",\n \"currentKubernetesVersion\"\ + : \"1.24.6\",\n \"dnsPrefix\": \"cliakstest-clitestttpefesf3-8ecadf\",\n\ + \ \"fqdn\": \"cliakstest-clitestttpefesf3-8ecadf-d1e33e4a.hcp.westus2.azmk8s.io\"\ + ,\n \"azurePortalFQDN\": \"cliakstest-clitestttpefesf3-8ecadf-d1e33e4a.portal.hcp.westus2.azmk8s.io\"\ + ,\n \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \ + \ \"count\": 3,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\"\ + : 128,\n \"osDiskType\": \"Managed\",\n \"kubeletDiskType\": \"OS\"\ + ,\n \"workloadRuntime\": \"OCIContainer\",\n \"maxPods\": 110,\n \ + \ \"type\": \"VirtualMachineScaleSets\",\n \"enableAutoScaling\": false,\n\ + \ \"provisioningState\": \"Succeeded\",\n \"powerState\": {\n \ + \ \"code\": \"Running\"\n },\n \"orchestratorVersion\": \"1.24.6\"\ + ,\n \"currentOrchestratorVersion\": \"1.24.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-1804gen2containerd-2022.12.19\",\n \"upgradeSettings\":\ + \ {},\n \"enableFIPS\": false,\n \"networkProfile\": {}\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_cliakstest000002_westus2\",\n\ + \ \"enableRBAC\": true,\n \"enablePodSecurityPolicy\": false,\n \"networkProfile\"\ + : {\n \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\": \"Standard\"\ + ,\n \"loadBalancerProfile\": {\n \"managedOutboundIPs\": {\n \"\ + count\": 1\n },\n \"effectiveOutboundIPs\": [\n {\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.Network/publicIPAddresses/575c2af7-d919-486d-8a66-360df0150e3f\"\ + \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 \"dockerBridgeCidr\": \"172.17.0.1/16\"\ + ,\n \"outboundType\": \"loadBalancer\",\n \"podCidrs\": [\n \"10.244.0.0/16\"\ + \n ],\n \"serviceCidrs\": [\n \"10.0.0.0/16\"\n ],\n \"ipFamilies\"\ + : [\n \"IPv4\"\n ]\n },\n \"maxAgentPools\": 100,\n \"identityProfile\"\ + : {\n \"kubeletidentity\": {\n \"resourceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cliakstest000002-agentpool\"\ + ,\n \"clientId\":\"00000000-0000-0000-0000-000000000001\",\n \"objectId\"\ + :\"00000000-0000-0000-0000-000000000001\"\n }\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\"\ + : \"ReadOnly\"\n },\n \"workloadAutoScalerProfile\": {}\n },\n \"identity\"\ + : {\n \"type\": \"SystemAssigned\",\n \"principalId\":\"00000000-0000-0000-0000-000000000001\"\ + ,\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\n },\n \"sku\"\ + : {\n \"name\": \"Basic\",\n \"tier\": \"Free\"\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '4532' + content-type: + - application/json + date: + - Thu, 12 Jan 2023 23:53:03 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"location": "westus2", "sku": {"name": "Basic", "tier": "Free"}, "identity": + {"type": "SystemAssigned"}, "properties": {"kubernetesVersion": "1.24.6", "dnsPrefix": + "cliakstest-clitestttpefesf3-8ecadf", "agentPoolProfiles": [{"count": 3, "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.24.6", "upgradeSettings": {}, "powerState": + {"code": "Running"}, "enableNodePublicIP": false, "enableCustomCATrust": false, + "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"}]}}, "servicePrincipalProfile": {"clientId":"00000000-0000-0000-0000-000000000001"}, + "oidcIssuerProfile": {"enabled": false}, "nodeResourceGroup": "MC_clitest000001_cliakstest000002_westus2", + "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", "dockerBridgeCidr": "172.17.0.1/16", "outboundType": "loadBalancer", + "loadBalancerSku": "Standard", "loadBalancerProfile": {"managedOutboundIPs": + {"count": 1, "countIPv6": 0}, "effectiveOutboundIPs": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.Network/publicIPAddresses/575c2af7-d919-486d-8a66-360df0150e3f"}], + "backendPoolType": "nodeIPConfiguration"}, "podCidrs": ["10.244.0.0/16"], "serviceCidrs": + ["10.0.0.0/16"], "ipFamilies": ["IPv4"]}, "identityProfile": {"kubeletidentity": + {"resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cliakstest000002-agentpool", + "clientId":"00000000-0000-0000-0000-000000000001", "objectId":"00000000-0000-0000-0000-000000000001"}}, + "disableLocalAccounts": false, "securityProfile": {}, "storageProfile": {}, + "workloadAutoScalerProfile": {}}}' + headers: + AKSHTTPCustomFeatures: + - Microsoft.ContainerService/NRGLockdownPreview + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + Content-Length: + - '3058' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --name --nrg-lockdown-restriction-level --aks-custom-headers + User-Agent: + - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b + Python/3.10.9 (Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2022-11-02-preview + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\"\ + ,\n \"location\": \"westus2\",\n \"name\": \"cliakstest000002\",\n \"type\"\ + : \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \ + \ \"provisioningState\": \"Updating\",\n \"powerState\": {\n \"code\"\ + : \"Running\"\n },\n \"kubernetesVersion\": \"1.24.6\",\n \"currentKubernetesVersion\"\ + : \"1.24.6\",\n \"dnsPrefix\": \"cliakstest-clitestttpefesf3-8ecadf\",\n\ + \ \"fqdn\": \"cliakstest-clitestttpefesf3-8ecadf-d1e33e4a.hcp.westus2.azmk8s.io\"\ + ,\n \"azurePortalFQDN\": \"cliakstest-clitestttpefesf3-8ecadf-d1e33e4a.portal.hcp.westus2.azmk8s.io\"\ + ,\n \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \ + \ \"count\": 3,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\"\ + : 128,\n \"osDiskType\": \"Managed\",\n \"kubeletDiskType\": \"OS\"\ + ,\n \"workloadRuntime\": \"OCIContainer\",\n \"maxPods\": 110,\n \ + \ \"type\": \"VirtualMachineScaleSets\",\n \"enableAutoScaling\": false,\n\ + \ \"provisioningState\": \"Updating\",\n \"powerState\": {\n \ + \ \"code\": \"Running\"\n },\n \"orchestratorVersion\": \"1.24.6\"\ + ,\n \"currentOrchestratorVersion\": \"1.24.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-1804gen2containerd-2022.12.19\",\n \"upgradeSettings\":\ + \ {},\n \"enableFIPS\": false,\n \"networkProfile\": {}\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_cliakstest000002_westus2\",\n\ + \ \"enableRBAC\": true,\n \"enablePodSecurityPolicy\": false,\n \"networkProfile\"\ + : {\n \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\": \"Standard\"\ + ,\n \"loadBalancerProfile\": {\n \"managedOutboundIPs\": {\n \"\ + count\": 1\n },\n \"effectiveOutboundIPs\": [\n {\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.Network/publicIPAddresses/575c2af7-d919-486d-8a66-360df0150e3f\"\ + \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 \"dockerBridgeCidr\": \"172.17.0.1/16\"\ + ,\n \"outboundType\": \"loadBalancer\",\n \"podCidrs\": [\n \"10.244.0.0/16\"\ + \n ],\n \"serviceCidrs\": [\n \"10.0.0.0/16\"\n ],\n \"ipFamilies\"\ + : [\n \"IPv4\"\n ]\n },\n \"maxAgentPools\": 100,\n \"identityProfile\"\ + : {\n \"kubeletidentity\": {\n \"resourceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cliakstest000002-agentpool\"\ + ,\n \"clientId\":\"00000000-0000-0000-0000-000000000001\",\n \"objectId\"\ + :\"00000000-0000-0000-0000-000000000001\"\n }\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 },\n \"\ + identity\": {\n \"type\": \"SystemAssigned\",\n \"principalId\":\"00000000-0000-0000-0000-000000000001\"\ + ,\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\n },\n \"sku\"\ + : {\n \"name\": \"Basic\",\n \"tier\": \"Free\"\n }\n }" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/6d512844-317a-4850-bf32-45aa2b2ffd56?api-version=2016-03-30 + cache-control: + - no-cache + content-length: + - '4534' + content-type: + - application/json + date: + - Thu, 12 Jan 2023 23:53:06 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --nrg-lockdown-restriction-level --aks-custom-headers + User-Agent: + - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b + Python/3.10.9 (Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/6d512844-317a-4850-bf32-45aa2b2ffd56?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"4428516d-7a31-5048-bf32-45aa2b2ffd56\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2023-01-12T23:53:06.8363086Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Thu, 12 Jan 2023 23:53:36 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --nrg-lockdown-restriction-level --aks-custom-headers + User-Agent: + - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b + Python/3.10.9 (Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/6d512844-317a-4850-bf32-45aa2b2ffd56?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"4428516d-7a31-5048-bf32-45aa2b2ffd56\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2023-01-12T23:53:06.8363086Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Thu, 12 Jan 2023 23:54:06 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --nrg-lockdown-restriction-level --aks-custom-headers + User-Agent: + - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b + Python/3.10.9 (Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/6d512844-317a-4850-bf32-45aa2b2ffd56?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"4428516d-7a31-5048-bf32-45aa2b2ffd56\",\n \"status\"\ + : \"Succeeded\",\n \"startTime\": \"2023-01-12T23:53:06.8363086Z\",\n \"\ + endTime\": \"2023-01-12T23:54:36.1384914Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '170' + content-type: + - application/json + date: + - Thu, 12 Jan 2023 23:54:36 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --nrg-lockdown-restriction-level --aks-custom-headers + User-Agent: + - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b + Python/3.10.9 (Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2022-11-02-preview + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\"\ + ,\n \"location\": \"westus2\",\n \"name\": \"cliakstest000002\",\n \"type\"\ + : \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \ + \ \"provisioningState\": \"Succeeded\",\n \"powerState\": {\n \"code\"\ + : \"Running\"\n },\n \"kubernetesVersion\": \"1.24.6\",\n \"currentKubernetesVersion\"\ + : \"1.24.6\",\n \"dnsPrefix\": \"cliakstest-clitestttpefesf3-8ecadf\",\n\ + \ \"fqdn\": \"cliakstest-clitestttpefesf3-8ecadf-d1e33e4a.hcp.westus2.azmk8s.io\"\ + ,\n \"azurePortalFQDN\": \"cliakstest-clitestttpefesf3-8ecadf-d1e33e4a.portal.hcp.westus2.azmk8s.io\"\ + ,\n \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \ + \ \"count\": 3,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\"\ + : 128,\n \"osDiskType\": \"Managed\",\n \"kubeletDiskType\": \"OS\"\ + ,\n \"workloadRuntime\": \"OCIContainer\",\n \"maxPods\": 110,\n \ + \ \"type\": \"VirtualMachineScaleSets\",\n \"enableAutoScaling\": false,\n\ + \ \"provisioningState\": \"Succeeded\",\n \"powerState\": {\n \ + \ \"code\": \"Running\"\n },\n \"orchestratorVersion\": \"1.24.6\"\ + ,\n \"currentOrchestratorVersion\": \"1.24.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-1804gen2containerd-2022.12.19\",\n \"upgradeSettings\":\ + \ {},\n \"enableFIPS\": false,\n \"networkProfile\": {}\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_cliakstest000002_westus2\",\n\ + \ \"enableRBAC\": true,\n \"enablePodSecurityPolicy\": false,\n \"networkProfile\"\ + : {\n \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\": \"Standard\"\ + ,\n \"loadBalancerProfile\": {\n \"managedOutboundIPs\": {\n \"\ + count\": 1\n },\n \"effectiveOutboundIPs\": [\n {\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.Network/publicIPAddresses/575c2af7-d919-486d-8a66-360df0150e3f\"\ + \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 \"dockerBridgeCidr\": \"172.17.0.1/16\"\ + ,\n \"outboundType\": \"loadBalancer\",\n \"podCidrs\": [\n \"10.244.0.0/16\"\ + \n ],\n \"serviceCidrs\": [\n \"10.0.0.0/16\"\n ],\n \"ipFamilies\"\ + : [\n \"IPv4\"\n ]\n },\n \"maxAgentPools\": 100,\n \"identityProfile\"\ + : {\n \"kubeletidentity\": {\n \"resourceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cliakstest000002-agentpool\"\ + ,\n \"clientId\":\"00000000-0000-0000-0000-000000000001\",\n \"objectId\"\ + :\"00000000-0000-0000-0000-000000000001\"\n }\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 },\n \"\ + identity\": {\n \"type\": \"SystemAssigned\",\n \"principalId\":\"00000000-0000-0000-0000-000000000001\"\ + ,\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\n },\n \"sku\"\ + : {\n \"name\": \"Basic\",\n \"tier\": \"Free\"\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '4536' + content-type: + - application/json + date: + - Thu, 12 Jan 2023 23:54:37 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g -n --yes --no-wait + User-Agent: + - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b + Python/3.10.9 (Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2022-11-02-preview + response: + body: + string: '' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/12d1ab6b-693f-4e89-a6e9-65232d84191a?api-version=2016-03-30 + cache-control: + - no-cache + content-length: + - '0' + date: + - Thu, 12 Jan 2023 23:54:39 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operationresults/12d1ab6b-693f-4e89-a6e9-65232d84191a?api-version=2016-03-30 + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' + status: + code: 202 + message: Accepted +version: 1 diff --git a/src/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 ab2ea43f97c..ee8ce1fa44a 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 @@ -3017,14 +3017,15 @@ def test_aks_create_and_update_with_nrg_restriction_level(self, resource_group, create_cmd = 'aks create --resource-group={resource_group} --name={name} --location={location} ' \ '--enable-managed-identity ' \ '--nrg-lockdown-restriction-level ReadOnly ' \ - '--ssh-key-value={ssh_key_value}' + '--ssh-key-value={ssh_key_value} ' \ + '--aks-custom-headers AKSHTTPCustomFeatures=Microsoft.ContainerService/NRGLockdownPreview' self.cmd(create_cmd, checks=[ self.check('provisioningState', 'Succeeded'), self.check('nodeResourceGroupProfile.restrictionLevel', 'ReadOnly') ]) # update upgrade channel - self.cmd('aks update --resource-group={resource_group} --name={name} --nrg-lockdown-restriction-level Unrestricted', checks=[ + self.cmd('aks update --resource-group={resource_group} --name={name} --nrg-lockdown-restriction-level Unrestricted --aks-custom-headers AKSHTTPCustomFeatures=Microsoft.ContainerService/NRGLockdownPreview', checks=[ self.check('provisioningState', 'Succeeded'), self.check('nodeResourceGroupProfile.restrictionLevel', 'Unrestricted') ]) From 749537eb3db1845da23597268f49c957ecde6cd2 Mon Sep 17 00:00:00 2001 From: Charlie McBride Date: Thu, 12 Jan 2023 16:23:28 -0800 Subject: [PATCH 06/17] add . --- src/aks-preview/azext_aks_preview/_help.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/aks-preview/azext_aks_preview/_help.py b/src/aks-preview/azext_aks_preview/_help.py index 8c3bd937469..cd5dff08f5b 100644 --- a/src/aks-preview/azext_aks_preview/_help.py +++ b/src/aks-preview/azext_aks_preview/_help.py @@ -291,8 +291,8 @@ short-summary: The node resource group is the resource group where all customer's resources will be created in, such as virtual machines. – name: --nrg-lockdown-restriction-level type: string - short-summary: Restriction level on the managed node resource group - long-summary: The restriction level of permissions allowed on the cluster's managed node resource group, supported values are Unrestricted, and ReadOnly (recommended: readonly) + short-summary: Restriction level on the managed node resource group. + long-summary: The restriction level of permissions allowed on the cluster's managed node resource group, supported values are Unrestricted, and ReadOnly (recommended: readonly). - name: --uptime-sla type: bool short-summary: Enable a paid managed cluster service with a financially backed SLA. @@ -686,8 +686,8 @@ long-summary: PodSecurityPolicy is deprecated. See https://aka.ms/aks/psp for details. – name: --nrg-lockdown-restriction-level type: string - short-summary: Restriction level on the managed node resource group - long-summary: The restriction level of permissions allowed on the cluster's managed node resource group, supported values are Unrestricted, and ReadOnly (recommended: readonly) + short-summary: Restriction level on the managed node resource. + long-summary: The restriction level of permissions allowed on the cluster's managed node resource group, supported values are Unrestricted, and ReadOnly (recommended: readonly). - name: --attach-acr type: string short-summary: Grant the 'acrpull' role assignment to the ACR specified by name or resource ID. From b0acea6983de9020d7e865f60302e9d144f367ad Mon Sep 17 00:00:00 2001 From: Charlie McBride Date: Thu, 12 Jan 2023 16:35:36 -0800 Subject: [PATCH 07/17] fix char used --- src/aks-preview/azext_aks_preview/_help.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/aks-preview/azext_aks_preview/_help.py b/src/aks-preview/azext_aks_preview/_help.py index cd5dff08f5b..20bf364517a 100644 --- a/src/aks-preview/azext_aks_preview/_help.py +++ b/src/aks-preview/azext_aks_preview/_help.py @@ -289,7 +289,7 @@ - name: --node-resource-group type: string short-summary: The node resource group is the resource group where all customer's resources will be created in, such as virtual machines. - – name: --nrg-lockdown-restriction-level + - name: --nrg-lockdown-restriction-level type: string short-summary: Restriction level on the managed node resource group. long-summary: The restriction level of permissions allowed on the cluster's managed node resource group, supported values are Unrestricted, and ReadOnly (recommended: readonly). @@ -684,7 +684,7 @@ type: bool short-summary: Disable pod security policy long-summary: PodSecurityPolicy is deprecated. See https://aka.ms/aks/psp for details. - – name: --nrg-lockdown-restriction-level + - name: --nrg-lockdown-restriction-level type: string short-summary: Restriction level on the managed node resource. long-summary: The restriction level of permissions allowed on the cluster's managed node resource group, supported values are Unrestricted, and ReadOnly (recommended: readonly). From 67af1f0968912c32a09480275b0b4c3be0c20848 Mon Sep 17 00:00:00 2001 From: Charlie McBride Date: Thu, 12 Jan 2023 16:39:55 -0800 Subject: [PATCH 08/17] remove : --- src/aks-preview/azext_aks_preview/_help.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/aks-preview/azext_aks_preview/_help.py b/src/aks-preview/azext_aks_preview/_help.py index 20bf364517a..601967dfe0d 100644 --- a/src/aks-preview/azext_aks_preview/_help.py +++ b/src/aks-preview/azext_aks_preview/_help.py @@ -292,7 +292,7 @@ - name: --nrg-lockdown-restriction-level type: string short-summary: Restriction level on the managed node resource group. - long-summary: The restriction level of permissions allowed on the cluster's managed node resource group, supported values are Unrestricted, and ReadOnly (recommended: readonly). + long-summary: The restriction level of permissions allowed on the cluster's managed node resource group, supported values are Unrestricted, and ReadOnly (recommended ReadOnly). - name: --uptime-sla type: bool short-summary: Enable a paid managed cluster service with a financially backed SLA. @@ -687,7 +687,7 @@ - name: --nrg-lockdown-restriction-level type: string short-summary: Restriction level on the managed node resource. - long-summary: The restriction level of permissions allowed on the cluster's managed node resource group, supported values are Unrestricted, and ReadOnly (recommended: readonly). + long-summary: The restriction level of permissions allowed on the cluster's managed node resource group, supported values are Unrestricted, and ReadOnly (recommended ReadOnly). - name: --attach-acr type: string short-summary: Grant the 'acrpull' role assignment to the ACR specified by name or resource ID. From 6ee278f12d4d4f9df72794f6b7573ef5ab9d0b2b Mon Sep 17 00:00:00 2001 From: Charlie McBride Date: Thu, 12 Jan 2023 16:55:45 -0800 Subject: [PATCH 09/17] --nrg-restriction --- src/aks-preview/azext_aks_preview/_help.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/aks-preview/azext_aks_preview/_help.py b/src/aks-preview/azext_aks_preview/_help.py index 601967dfe0d..41a881f2dd0 100644 --- a/src/aks-preview/azext_aks_preview/_help.py +++ b/src/aks-preview/azext_aks_preview/_help.py @@ -289,7 +289,7 @@ - name: --node-resource-group type: string short-summary: The node resource group is the resource group where all customer's resources will be created in, such as virtual machines. - - name: --nrg-lockdown-restriction-level + - name: --nrg-restriction type: string short-summary: Restriction level on the managed node resource group. long-summary: The restriction level of permissions allowed on the cluster's managed node resource group, supported values are Unrestricted, and ReadOnly (recommended ReadOnly). @@ -684,7 +684,7 @@ type: bool short-summary: Disable pod security policy long-summary: PodSecurityPolicy is deprecated. See https://aka.ms/aks/psp for details. - - name: --nrg-lockdown-restriction-level + - name: --nrg-restriction type: string short-summary: Restriction level on the managed node resource. long-summary: The restriction level of permissions allowed on the cluster's managed node resource group, supported values are Unrestricted, and ReadOnly (recommended ReadOnly). From 0418ea37f8439d9319101512ac8b819661670f3d Mon Sep 17 00:00:00 2001 From: Charlie McBride Date: Thu, 12 Jan 2023 17:06:52 -0800 Subject: [PATCH 10/17] Revert "--nrg-restriction" This reverts commit 6ee278f12d4d4f9df72794f6b7573ef5ab9d0b2b. --- src/aks-preview/azext_aks_preview/_help.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/aks-preview/azext_aks_preview/_help.py b/src/aks-preview/azext_aks_preview/_help.py index 41a881f2dd0..601967dfe0d 100644 --- a/src/aks-preview/azext_aks_preview/_help.py +++ b/src/aks-preview/azext_aks_preview/_help.py @@ -289,7 +289,7 @@ - name: --node-resource-group type: string short-summary: The node resource group is the resource group where all customer's resources will be created in, such as virtual machines. - - name: --nrg-restriction + - name: --nrg-lockdown-restriction-level type: string short-summary: Restriction level on the managed node resource group. long-summary: The restriction level of permissions allowed on the cluster's managed node resource group, supported values are Unrestricted, and ReadOnly (recommended ReadOnly). @@ -684,7 +684,7 @@ type: bool short-summary: Disable pod security policy long-summary: PodSecurityPolicy is deprecated. See https://aka.ms/aks/psp for details. - - name: --nrg-restriction + - name: --nrg-lockdown-restriction-level type: string short-summary: Restriction level on the managed node resource. long-summary: The restriction level of permissions allowed on the cluster's managed node resource group, supported values are Unrestricted, and ReadOnly (recommended ReadOnly). From 7e9de8fff49d0217da456b486a71ca19306f15e0 Mon Sep 17 00:00:00 2001 From: Charlie McBride Date: Tue, 17 Jan 2023 12:50:05 -0800 Subject: [PATCH 11/17] updated to --nrg-restriction + updated comment --- src/aks-preview/azext_aks_preview/_consts.py | 6 +- src/aks-preview/azext_aks_preview/_help.py | 4 +- src/aks-preview/azext_aks_preview/_params.py | 12 +- src/aks-preview/azext_aks_preview/custom.py | 4 +- .../managed_cluster_decorator.py | 22 +- ...and_update_with_nrg_restriction_level.yaml | 301 ++++++++++++------ .../tests/latest/test_aks_commands.py | 6 +- 7 files changed, 226 insertions(+), 129 deletions(-) diff --git a/src/aks-preview/azext_aks_preview/_consts.py b/src/aks-preview/azext_aks_preview/_consts.py index 844f8912507..f983363a5a8 100644 --- a/src/aks-preview/azext_aks_preview/_consts.py +++ b/src/aks-preview/azext_aks_preview/_consts.py @@ -83,9 +83,9 @@ CONST_NODE_IMAGE_UPGRADE_CHANNEL = "node-image" CONST_NONE_UPGRADE_CHANNEL = "none" -# consts for nrg-lockdown restriction level -CONST_NRG_LOCKDOWN_RESTRICTION_LEVEL_READONLY = "ReadOnly" -CONST_NRG_LOCKDOWN_RESTRICTION_LEVEL_UNRESTRICTED = "Unrestricted" +# consts for nrg restriction level +CONST_NRG_RESTRICTION_READONLY = "ReadOnly" +CONST_NRG_RESTRICTION_UNRESTRICTED = "Unrestricted" # network plugin CONST_NETWORK_PLUGIN_KUBENET = "kubenet" diff --git a/src/aks-preview/azext_aks_preview/_help.py b/src/aks-preview/azext_aks_preview/_help.py index 601967dfe0d..41a881f2dd0 100644 --- a/src/aks-preview/azext_aks_preview/_help.py +++ b/src/aks-preview/azext_aks_preview/_help.py @@ -289,7 +289,7 @@ - name: --node-resource-group type: string short-summary: The node resource group is the resource group where all customer's resources will be created in, such as virtual machines. - - name: --nrg-lockdown-restriction-level + - name: --nrg-restriction type: string short-summary: Restriction level on the managed node resource group. long-summary: The restriction level of permissions allowed on the cluster's managed node resource group, supported values are Unrestricted, and ReadOnly (recommended ReadOnly). @@ -684,7 +684,7 @@ type: bool short-summary: Disable pod security policy long-summary: PodSecurityPolicy is deprecated. See https://aka.ms/aks/psp for details. - - name: --nrg-lockdown-restriction-level + - name: --nrg-restriction type: string short-summary: Restriction level on the managed node resource. long-summary: The restriction level of permissions allowed on the cluster's managed node resource group, supported values are Unrestricted, and ReadOnly (recommended ReadOnly). diff --git a/src/aks-preview/azext_aks_preview/_params.py b/src/aks-preview/azext_aks_preview/_params.py index 7e7b6b1e13c..01889211cf5 100644 --- a/src/aks-preview/azext_aks_preview/_params.py +++ b/src/aks-preview/azext_aks_preview/_params.py @@ -45,8 +45,8 @@ CONST_NODEPOOL_MODE_SYSTEM, CONST_NODEPOOL_MODE_USER, CONST_NONE_UPGRADE_CHANNEL, - CONST_NRG_LOCKDOWN_RESTRICTION_LEVEL_READONLY, - CONST_NRG_LOCKDOWN_RESTRICTION_LEVEL_UNRESTRICTED, + CONST_NRG_RESTRICTION_READONLY, + CONST_NRG_RESTRICTION_UNRESTRICTED, CONST_OS_DISK_TYPE_EPHEMERAL, CONST_OS_DISK_TYPE_MANAGED, CONST_OS_SKU_CBLMARINER, @@ -179,8 +179,8 @@ CONST_NONE_UPGRADE_CHANNEL, ] nrg_lockdown_restriction_levels = [ - CONST_NRG_LOCKDOWN_RESTRICTION_LEVEL_READONLY, - CONST_NRG_LOCKDOWN_RESTRICTION_LEVEL_UNRESTRICTED, + CONST_NRG_RESTRICTION_READONLY, + CONST_NRG_RESTRICTION_UNRESTRICTED, ] # consts for credential @@ -230,7 +230,7 @@ def load_arguments(self, _): c.argument('load_balancer_outbound_ports', type=int, validator=validate_load_balancer_outbound_ports) c.argument('load_balancer_idle_timeout', type=int, validator=validate_load_balancer_idle_timeout) c.argument('load_balancer_backend_pool_type', validator=validate_load_balancer_backend_pool_type) - c.argument('nrg_lockdown_restriction_level', arg_type=get_enum_type(nrg_lockdown_restriction_levels)) + c.argument('nrg_restriction', arg_type=get_enum_type(nrg_lockdown_restriction_levels)) c.argument('nat_gateway_managed_outbound_ip_count', type=int, validator=validate_nat_gateway_managed_outbound_ip_count) c.argument('nat_gateway_idle_timeout', type=int, validator=validate_nat_gateway_idle_timeout) c.argument('outbound_type', arg_type=get_enum_type(outbound_types)) @@ -372,7 +372,7 @@ def load_arguments(self, _): c.argument('load_balancer_outbound_ports', type=int, validator=validate_load_balancer_outbound_ports) c.argument('load_balancer_idle_timeout', type=int, validator=validate_load_balancer_idle_timeout) c.argument('load_balancer_backend_pool_type', validator=validate_load_balancer_backend_pool_type) - c.argument('nrg_lockdown_restriction_level', arg_type=get_enum_type(nrg_lockdown_restriction_levels)) + c.argument('nrg_restriction', arg_type=get_enum_type(nrg_lockdown_restriction_levels)) c.argument('nat_gateway_managed_outbound_ip_count', type=int, validator=validate_nat_gateway_managed_outbound_ip_count) c.argument('nat_gateway_idle_timeout', type=int, validator=validate_nat_gateway_idle_timeout) c.argument('kube_proxy_config') diff --git a/src/aks-preview/azext_aks_preview/custom.py b/src/aks-preview/azext_aks_preview/custom.py index a67882f2a04..f1ced00f154 100644 --- a/src/aks-preview/azext_aks_preview/custom.py +++ b/src/aks-preview/azext_aks_preview/custom.py @@ -602,7 +602,7 @@ def aks_create( attach_acr=None, skip_subnet_role_assignment=False, node_resource_group=None, - nrg_lockdown_restriction_level=None, + nrg_restriction=None, enable_defender=False, defender_config=None, disk_driver_version=None, @@ -756,7 +756,7 @@ def aks_update( gmsa_root_domain_name=None, attach_acr=None, detach_acr=None, - nrg_lockdown_restriction_level=None, + nrg_restriction=None, enable_defender=False, disable_defender=False, defender_config=None, 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 9f975a42b5a..026cc8277a6 100644 --- a/src/aks-preview/azext_aks_preview/managed_cluster_decorator.py +++ b/src/aks-preview/azext_aks_preview/managed_cluster_decorator.py @@ -467,12 +467,12 @@ def get_load_balancer_backend_pool_type(self) -> str: # this parameter does not need validation return load_balancer_backend_pool_type - def get_nrg_lockdown_restriction_level(self) -> Union[str, None]: - """Obtain the value of nrg_lockdown_restriction_level. + def get_nrg_restriction(self) -> Union[str, None]: + """Obtain the value of nrg_restriction. :return: string or None """ # read the original value passed by the command - nrg_lockdown_restriction_level = self.raw_param.get("nrg_lockdown_restriction_level") + nrg_restriction = self.raw_param.get("nrg_restriction") # In create mode, try to read the property value corresponding to the parameter from the `mc` object. if self.decorator_mode == DecoratorMode.CREATE: @@ -481,11 +481,11 @@ def get_nrg_lockdown_restriction_level(self) -> Union[str, None]: self.mc.node_resource_group_profile and self.mc.node_resource_group_profile.restriction_level is not None ): - nrg_lockdown_restriction_level = self.mc.node_resource_group_profile.restriction_level + nrg_restriction = self.mc.node_resource_group_profile.restriction_level # this parameter does not need dynamic completion # this parameter does not need validation - return nrg_lockdown_restriction_level + return nrg_restriction def get_kube_proxy_config(self) -> Union[Dict, ContainerServiceNetworkProfileKubeProxyConfig, None]: """Obtain the value of kube_proxy_config. @@ -2147,9 +2147,9 @@ def set_up_node_resource_group_profile(self, mc: ManagedCluster) -> ManagedClust self._ensure_mc(mc) node_resource_group_profile = None - nrg_lockdown_restriction_level = self.context.get_nrg_lockdown_restriction_level() - if nrg_lockdown_restriction_level: - node_resource_group_profile = self.models.ManagedClusterNodeResourceGroupProfile(restriction_level=nrg_lockdown_restriction_level) + nrg_restriction = self.context.get_nrg_restriction() + if nrg_restriction: + node_resource_group_profile = self.models.ManagedClusterNodeResourceGroupProfile(restriction_level=nrg_restriction) mc.node_resource_group_profile = node_resource_group_profile return mc @@ -2699,11 +2699,11 @@ def update_node_resource_group_profile(self, mc: ManagedCluster) -> ManagedClust """ self._ensure_mc(mc) - nrg_lockdown_restriction_level = self.context.get_nrg_lockdown_restriction_level() - if nrg_lockdown_restriction_level is not None: + nrg_restriction = self.context.get_nrg_restriction() + if nrg_restriction is not None: if mc.node_resource_group_profile is None: mc.node_resource_group_profile = self.models.ManagedClusterNodeResourceGroupProfile() - mc.node_resource_group_profile.restriction_level = nrg_lockdown_restriction_level + mc.node_resource_group_profile.restriction_level = nrg_restriction return mc def update_mc_profile_preview(self) -> ManagedCluster: diff --git a/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_and_update_with_nrg_restriction_level.yaml b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_and_update_with_nrg_restriction_level.yaml index ec9d818a5c9..fc9c1c62a0c 100644 --- a/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_and_update_with_nrg_restriction_level.yaml +++ b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_and_update_with_nrg_restriction_level.yaml @@ -1,7 +1,7 @@ interactions: - request: body: '{"location": "westus2", "identity": {"type": "SystemAssigned"}, "properties": - {"kubernetesVersion": "", "dnsPrefix": "cliakstest-clitestttpefesf3-8ecadf", + {"kubernetesVersion": "", "dnsPrefix": "cliakstest-clitestys2ovgoo5-8ecadf", "agentPoolProfiles": [{"count": 3, "vmSize": "Standard_DS2_v2", "osDiskSizeGB": 0, "workloadRuntime": "OCIContainer", "osType": "Linux", "enableAutoScaling": false, "type": "VirtualMachineScaleSets", "mode": "System", "orchestratorVersion": @@ -32,7 +32,7 @@ interactions: Content-Type: - application/json ParameterSetName: - - --resource-group --name --location --enable-managed-identity --nrg-lockdown-restriction-level + - --resource-group --name --location --enable-managed-identity --nrg-restriction --ssh-key-value --aks-custom-headers User-Agent: - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b @@ -46,9 +46,9 @@ interactions: : \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \ \ \"provisioningState\": \"Creating\",\n \"powerState\": {\n \"code\"\ : \"Running\"\n },\n \"kubernetesVersion\": \"1.24.6\",\n \"currentKubernetesVersion\"\ - : \"1.24.6\",\n \"dnsPrefix\": \"cliakstest-clitestttpefesf3-8ecadf\",\n\ - \ \"fqdn\": \"cliakstest-clitestttpefesf3-8ecadf-d1e33e4a.hcp.westus2.azmk8s.io\"\ - ,\n \"azurePortalFQDN\": \"cliakstest-clitestttpefesf3-8ecadf-d1e33e4a.portal.hcp.westus2.azmk8s.io\"\ + : \"1.24.6\",\n \"dnsPrefix\": \"cliakstest-clitestys2ovgoo5-8ecadf\",\n\ + \ \"fqdn\": \"cliakstest-clitestys2ovgoo5-8ecadf-40c2e8c5.hcp.westus2.azmk8s.io\"\ + ,\n \"azurePortalFQDN\": \"cliakstest-clitestys2ovgoo5-8ecadf-40c2e8c5.portal.hcp.westus2.azmk8s.io\"\ ,\n \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \ \ \"count\": 3,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\"\ : 128,\n \"osDiskType\": \"Managed\",\n \"kubeletDiskType\": \"OS\"\ @@ -88,7 +88,7 @@ interactions: : {\n \"name\": \"Basic\",\n \"tier\": \"Free\"\n }\n }" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/4f47c860-3562-48a8-a8c8-f1e2c84bb458?api-version=2016-03-30 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/27325960-5393-4075-8a08-95809df917cf?api-version=2016-03-30 cache-control: - no-cache content-length: @@ -96,7 +96,7 @@ interactions: content-type: - application/json date: - - Thu, 12 Jan 2023 23:49:00 GMT + - Tue, 17 Jan 2023 20:41:49 GMT expires: - '-1' pragma: @@ -124,26 +124,26 @@ interactions: Connection: - keep-alive ParameterSetName: - - --resource-group --name --location --enable-managed-identity --nrg-lockdown-restriction-level + - --resource-group --name --location --enable-managed-identity --nrg-restriction --ssh-key-value --aks-custom-headers User-Agent: - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b Python/3.10.9 (Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/4f47c860-3562-48a8-a8c8-f1e2c84bb458?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/27325960-5393-4075-8a08-95809df917cf?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"60c8474f-6235-a848-a8c8-f1e2c84bb458\",\n \"status\"\ - : \"InProgress\",\n \"startTime\": \"2023-01-12T23:49:01.3047888Z\"\n }" + string: "{\n \"name\": \"60593227-9353-7540-8a08-95809df917cf\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2023-01-17T20:41:50.098354Z\"\n }" headers: cache-control: - no-cache content-length: - - '126' + - '125' content-type: - application/json date: - - Thu, 12 Jan 2023 23:49:31 GMT + - Tue, 17 Jan 2023 20:42:20 GMT expires: - '-1' pragma: @@ -173,26 +173,26 @@ interactions: Connection: - keep-alive ParameterSetName: - - --resource-group --name --location --enable-managed-identity --nrg-lockdown-restriction-level + - --resource-group --name --location --enable-managed-identity --nrg-restriction --ssh-key-value --aks-custom-headers User-Agent: - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b Python/3.10.9 (Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/4f47c860-3562-48a8-a8c8-f1e2c84bb458?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/27325960-5393-4075-8a08-95809df917cf?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"60c8474f-6235-a848-a8c8-f1e2c84bb458\",\n \"status\"\ - : \"InProgress\",\n \"startTime\": \"2023-01-12T23:49:01.3047888Z\"\n }" + string: "{\n \"name\": \"60593227-9353-7540-8a08-95809df917cf\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2023-01-17T20:41:50.098354Z\"\n }" headers: cache-control: - no-cache content-length: - - '126' + - '125' content-type: - application/json date: - - Thu, 12 Jan 2023 23:50:01 GMT + - Tue, 17 Jan 2023 20:42:50 GMT expires: - '-1' pragma: @@ -222,26 +222,26 @@ interactions: Connection: - keep-alive ParameterSetName: - - --resource-group --name --location --enable-managed-identity --nrg-lockdown-restriction-level + - --resource-group --name --location --enable-managed-identity --nrg-restriction --ssh-key-value --aks-custom-headers User-Agent: - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b Python/3.10.9 (Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/4f47c860-3562-48a8-a8c8-f1e2c84bb458?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/27325960-5393-4075-8a08-95809df917cf?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"60c8474f-6235-a848-a8c8-f1e2c84bb458\",\n \"status\"\ - : \"InProgress\",\n \"startTime\": \"2023-01-12T23:49:01.3047888Z\"\n }" + string: "{\n \"name\": \"60593227-9353-7540-8a08-95809df917cf\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2023-01-17T20:41:50.098354Z\"\n }" headers: cache-control: - no-cache content-length: - - '126' + - '125' content-type: - application/json date: - - Thu, 12 Jan 2023 23:50:31 GMT + - Tue, 17 Jan 2023 20:43:20 GMT expires: - '-1' pragma: @@ -271,26 +271,26 @@ interactions: Connection: - keep-alive ParameterSetName: - - --resource-group --name --location --enable-managed-identity --nrg-lockdown-restriction-level + - --resource-group --name --location --enable-managed-identity --nrg-restriction --ssh-key-value --aks-custom-headers User-Agent: - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b Python/3.10.9 (Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/4f47c860-3562-48a8-a8c8-f1e2c84bb458?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/27325960-5393-4075-8a08-95809df917cf?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"60c8474f-6235-a848-a8c8-f1e2c84bb458\",\n \"status\"\ - : \"InProgress\",\n \"startTime\": \"2023-01-12T23:49:01.3047888Z\"\n }" + string: "{\n \"name\": \"60593227-9353-7540-8a08-95809df917cf\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2023-01-17T20:41:50.098354Z\"\n }" headers: cache-control: - no-cache content-length: - - '126' + - '125' content-type: - application/json date: - - Thu, 12 Jan 2023 23:51:01 GMT + - Tue, 17 Jan 2023 20:43:50 GMT expires: - '-1' pragma: @@ -320,26 +320,26 @@ interactions: Connection: - keep-alive ParameterSetName: - - --resource-group --name --location --enable-managed-identity --nrg-lockdown-restriction-level + - --resource-group --name --location --enable-managed-identity --nrg-restriction --ssh-key-value --aks-custom-headers User-Agent: - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b Python/3.10.9 (Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/4f47c860-3562-48a8-a8c8-f1e2c84bb458?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/27325960-5393-4075-8a08-95809df917cf?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"60c8474f-6235-a848-a8c8-f1e2c84bb458\",\n \"status\"\ - : \"InProgress\",\n \"startTime\": \"2023-01-12T23:49:01.3047888Z\"\n }" + string: "{\n \"name\": \"60593227-9353-7540-8a08-95809df917cf\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2023-01-17T20:41:50.098354Z\"\n }" headers: cache-control: - no-cache content-length: - - '126' + - '125' content-type: - application/json date: - - Thu, 12 Jan 2023 23:51:31 GMT + - Tue, 17 Jan 2023 20:44:20 GMT expires: - '-1' pragma: @@ -369,26 +369,26 @@ interactions: Connection: - keep-alive ParameterSetName: - - --resource-group --name --location --enable-managed-identity --nrg-lockdown-restriction-level + - --resource-group --name --location --enable-managed-identity --nrg-restriction --ssh-key-value --aks-custom-headers User-Agent: - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b Python/3.10.9 (Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/4f47c860-3562-48a8-a8c8-f1e2c84bb458?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/27325960-5393-4075-8a08-95809df917cf?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"60c8474f-6235-a848-a8c8-f1e2c84bb458\",\n \"status\"\ - : \"InProgress\",\n \"startTime\": \"2023-01-12T23:49:01.3047888Z\"\n }" + string: "{\n \"name\": \"60593227-9353-7540-8a08-95809df917cf\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2023-01-17T20:41:50.098354Z\"\n }" headers: cache-control: - no-cache content-length: - - '126' + - '125' content-type: - application/json date: - - Thu, 12 Jan 2023 23:52:02 GMT + - Tue, 17 Jan 2023 20:44:50 GMT expires: - '-1' pragma: @@ -418,26 +418,26 @@ interactions: Connection: - keep-alive ParameterSetName: - - --resource-group --name --location --enable-managed-identity --nrg-lockdown-restriction-level + - --resource-group --name --location --enable-managed-identity --nrg-restriction --ssh-key-value --aks-custom-headers User-Agent: - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b Python/3.10.9 (Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/4f47c860-3562-48a8-a8c8-f1e2c84bb458?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/27325960-5393-4075-8a08-95809df917cf?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"60c8474f-6235-a848-a8c8-f1e2c84bb458\",\n \"status\"\ - : \"InProgress\",\n \"startTime\": \"2023-01-12T23:49:01.3047888Z\"\n }" + string: "{\n \"name\": \"60593227-9353-7540-8a08-95809df917cf\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2023-01-17T20:41:50.098354Z\"\n }" headers: cache-control: - no-cache content-length: - - '126' + - '125' content-type: - application/json date: - - Thu, 12 Jan 2023 23:52:31 GMT + - Tue, 17 Jan 2023 20:45:20 GMT expires: - '-1' pragma: @@ -467,27 +467,76 @@ interactions: Connection: - keep-alive ParameterSetName: - - --resource-group --name --location --enable-managed-identity --nrg-lockdown-restriction-level + - --resource-group --name --location --enable-managed-identity --nrg-restriction --ssh-key-value --aks-custom-headers User-Agent: - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b Python/3.10.9 (Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/4f47c860-3562-48a8-a8c8-f1e2c84bb458?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/27325960-5393-4075-8a08-95809df917cf?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"60c8474f-6235-a848-a8c8-f1e2c84bb458\",\n \"status\"\ - : \"Succeeded\",\n \"startTime\": \"2023-01-12T23:49:01.3047888Z\",\n \"\ - endTime\": \"2023-01-12T23:52:43.9042793Z\"\n }" + string: "{\n \"name\": \"60593227-9353-7540-8a08-95809df917cf\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2023-01-17T20:41:50.098354Z\"\n }" headers: cache-control: - no-cache content-length: - - '170' + - '125' + content-type: + - application/json + date: + - Tue, 17 Jan 2023 20:45:51 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --enable-managed-identity --nrg-restriction + --ssh-key-value --aks-custom-headers + User-Agent: + - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b + Python/3.10.9 (Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/27325960-5393-4075-8a08-95809df917cf?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"60593227-9353-7540-8a08-95809df917cf\",\n \"status\"\ + : \"Succeeded\",\n \"startTime\": \"2023-01-17T20:41:50.098354Z\",\n \"\ + endTime\": \"2023-01-17T20:46:05.9041171Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '169' content-type: - application/json date: - - Thu, 12 Jan 2023 23:53:01 GMT + - Tue, 17 Jan 2023 20:46:21 GMT expires: - '-1' pragma: @@ -517,7 +566,7 @@ interactions: Connection: - keep-alive ParameterSetName: - - --resource-group --name --location --enable-managed-identity --nrg-lockdown-restriction-level + - --resource-group --name --location --enable-managed-identity --nrg-restriction --ssh-key-value --aks-custom-headers User-Agent: - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b @@ -531,9 +580,9 @@ interactions: : \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \ \ \"provisioningState\": \"Succeeded\",\n \"powerState\": {\n \"code\"\ : \"Running\"\n },\n \"kubernetesVersion\": \"1.24.6\",\n \"currentKubernetesVersion\"\ - : \"1.24.6\",\n \"dnsPrefix\": \"cliakstest-clitestttpefesf3-8ecadf\",\n\ - \ \"fqdn\": \"cliakstest-clitestttpefesf3-8ecadf-d1e33e4a.hcp.westus2.azmk8s.io\"\ - ,\n \"azurePortalFQDN\": \"cliakstest-clitestttpefesf3-8ecadf-d1e33e4a.portal.hcp.westus2.azmk8s.io\"\ + : \"1.24.6\",\n \"dnsPrefix\": \"cliakstest-clitestys2ovgoo5-8ecadf\",\n\ + \ \"fqdn\": \"cliakstest-clitestys2ovgoo5-8ecadf-40c2e8c5.hcp.westus2.azmk8s.io\"\ + ,\n \"azurePortalFQDN\": \"cliakstest-clitestys2ovgoo5-8ecadf-40c2e8c5.portal.hcp.westus2.azmk8s.io\"\ ,\n \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \ \ \"count\": 3,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\"\ : 128,\n \"osDiskType\": \"Managed\",\n \"kubeletDiskType\": \"OS\"\ @@ -557,7 +606,7 @@ interactions: : {\n \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\": \"Standard\"\ ,\n \"loadBalancerProfile\": {\n \"managedOutboundIPs\": {\n \"\ count\": 1\n },\n \"effectiveOutboundIPs\": [\n {\n \"\ - id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.Network/publicIPAddresses/575c2af7-d919-486d-8a66-360df0150e3f\"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.Network/publicIPAddresses/3c6c6320-3c06-4ab6-9bf5-8da8569fe751\"\ \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 \"dockerBridgeCidr\": \"172.17.0.1/16\"\ @@ -584,7 +633,7 @@ interactions: content-type: - application/json date: - - Thu, 12 Jan 2023 23:53:02 GMT + - Tue, 17 Jan 2023 20:46:21 GMT expires: - '-1' pragma: @@ -614,7 +663,7 @@ interactions: Connection: - keep-alive ParameterSetName: - - --resource-group --name --nrg-lockdown-restriction-level --aks-custom-headers + - --resource-group --name --nrg-restriction --aks-custom-headers User-Agent: - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b Python/3.10.9 (Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with) @@ -627,9 +676,9 @@ interactions: : \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \ \ \"provisioningState\": \"Succeeded\",\n \"powerState\": {\n \"code\"\ : \"Running\"\n },\n \"kubernetesVersion\": \"1.24.6\",\n \"currentKubernetesVersion\"\ - : \"1.24.6\",\n \"dnsPrefix\": \"cliakstest-clitestttpefesf3-8ecadf\",\n\ - \ \"fqdn\": \"cliakstest-clitestttpefesf3-8ecadf-d1e33e4a.hcp.westus2.azmk8s.io\"\ - ,\n \"azurePortalFQDN\": \"cliakstest-clitestttpefesf3-8ecadf-d1e33e4a.portal.hcp.westus2.azmk8s.io\"\ + : \"1.24.6\",\n \"dnsPrefix\": \"cliakstest-clitestys2ovgoo5-8ecadf\",\n\ + \ \"fqdn\": \"cliakstest-clitestys2ovgoo5-8ecadf-40c2e8c5.hcp.westus2.azmk8s.io\"\ + ,\n \"azurePortalFQDN\": \"cliakstest-clitestys2ovgoo5-8ecadf-40c2e8c5.portal.hcp.westus2.azmk8s.io\"\ ,\n \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \ \ \"count\": 3,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\"\ : 128,\n \"osDiskType\": \"Managed\",\n \"kubeletDiskType\": \"OS\"\ @@ -653,7 +702,7 @@ interactions: : {\n \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\": \"Standard\"\ ,\n \"loadBalancerProfile\": {\n \"managedOutboundIPs\": {\n \"\ count\": 1\n },\n \"effectiveOutboundIPs\": [\n {\n \"\ - id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.Network/publicIPAddresses/575c2af7-d919-486d-8a66-360df0150e3f\"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.Network/publicIPAddresses/3c6c6320-3c06-4ab6-9bf5-8da8569fe751\"\ \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 \"dockerBridgeCidr\": \"172.17.0.1/16\"\ @@ -680,7 +729,7 @@ interactions: content-type: - application/json date: - - Thu, 12 Jan 2023 23:53:03 GMT + - Tue, 17 Jan 2023 20:46:23 GMT expires: - '-1' pragma: @@ -701,7 +750,7 @@ interactions: - request: body: '{"location": "westus2", "sku": {"name": "Basic", "tier": "Free"}, "identity": {"type": "SystemAssigned"}, "properties": {"kubernetesVersion": "1.24.6", "dnsPrefix": - "cliakstest-clitestttpefesf3-8ecadf", "agentPoolProfiles": [{"count": 3, "vmSize": + "cliakstest-clitestys2ovgoo5-8ecadf", "agentPoolProfiles": [{"count": 3, "vmSize": "Standard_DS2_v2", "osDiskSizeGB": 128, "osDiskType": "Managed", "kubeletDiskType": "OS", "workloadRuntime": "OCIContainer", "maxPods": 110, "osType": "Linux", "osSKU": "Ubuntu", "enableAutoScaling": false, "type": "VirtualMachineScaleSets", @@ -717,7 +766,7 @@ interactions: "kubenet", "podCidr": "10.244.0.0/16", "serviceCidr": "10.0.0.0/16", "dnsServiceIP": "10.0.0.10", "dockerBridgeCidr": "172.17.0.1/16", "outboundType": "loadBalancer", "loadBalancerSku": "Standard", "loadBalancerProfile": {"managedOutboundIPs": - {"count": 1, "countIPv6": 0}, "effectiveOutboundIPs": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.Network/publicIPAddresses/575c2af7-d919-486d-8a66-360df0150e3f"}], + {"count": 1, "countIPv6": 0}, "effectiveOutboundIPs": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.Network/publicIPAddresses/3c6c6320-3c06-4ab6-9bf5-8da8569fe751"}], "backendPoolType": "nodeIPConfiguration"}, "podCidrs": ["10.244.0.0/16"], "serviceCidrs": ["10.0.0.0/16"], "ipFamilies": ["IPv4"]}, "identityProfile": {"kubeletidentity": {"resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cliakstest000002-agentpool", @@ -740,7 +789,7 @@ interactions: Content-Type: - application/json ParameterSetName: - - --resource-group --name --nrg-lockdown-restriction-level --aks-custom-headers + - --resource-group --name --nrg-restriction --aks-custom-headers User-Agent: - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b Python/3.10.9 (Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with) @@ -753,9 +802,9 @@ interactions: : \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \ \ \"provisioningState\": \"Updating\",\n \"powerState\": {\n \"code\"\ : \"Running\"\n },\n \"kubernetesVersion\": \"1.24.6\",\n \"currentKubernetesVersion\"\ - : \"1.24.6\",\n \"dnsPrefix\": \"cliakstest-clitestttpefesf3-8ecadf\",\n\ - \ \"fqdn\": \"cliakstest-clitestttpefesf3-8ecadf-d1e33e4a.hcp.westus2.azmk8s.io\"\ - ,\n \"azurePortalFQDN\": \"cliakstest-clitestttpefesf3-8ecadf-d1e33e4a.portal.hcp.westus2.azmk8s.io\"\ + : \"1.24.6\",\n \"dnsPrefix\": \"cliakstest-clitestys2ovgoo5-8ecadf\",\n\ + \ \"fqdn\": \"cliakstest-clitestys2ovgoo5-8ecadf-40c2e8c5.hcp.westus2.azmk8s.io\"\ + ,\n \"azurePortalFQDN\": \"cliakstest-clitestys2ovgoo5-8ecadf-40c2e8c5.portal.hcp.westus2.azmk8s.io\"\ ,\n \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \ \ \"count\": 3,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\"\ : 128,\n \"osDiskType\": \"Managed\",\n \"kubeletDiskType\": \"OS\"\ @@ -779,7 +828,7 @@ interactions: : {\n \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\": \"Standard\"\ ,\n \"loadBalancerProfile\": {\n \"managedOutboundIPs\": {\n \"\ count\": 1\n },\n \"effectiveOutboundIPs\": [\n {\n \"\ - id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.Network/publicIPAddresses/575c2af7-d919-486d-8a66-360df0150e3f\"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.Network/publicIPAddresses/3c6c6320-3c06-4ab6-9bf5-8da8569fe751\"\ \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 \"dockerBridgeCidr\": \"172.17.0.1/16\"\ @@ -800,7 +849,7 @@ interactions: : {\n \"name\": \"Basic\",\n \"tier\": \"Free\"\n }\n }" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/6d512844-317a-4850-bf32-45aa2b2ffd56?api-version=2016-03-30 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/99fd7981-b96b-4e99-a729-a1da7f276922?api-version=2016-03-30 cache-control: - no-cache content-length: @@ -808,7 +857,7 @@ interactions: content-type: - application/json date: - - Thu, 12 Jan 2023 23:53:06 GMT + - Tue, 17 Jan 2023 20:46:26 GMT expires: - '-1' pragma: @@ -840,16 +889,64 @@ interactions: Connection: - keep-alive ParameterSetName: - - --resource-group --name --nrg-lockdown-restriction-level --aks-custom-headers + - --resource-group --name --nrg-restriction --aks-custom-headers + User-Agent: + - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b + Python/3.10.9 (Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/99fd7981-b96b-4e99-a729-a1da7f276922?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"8179fd99-6bb9-994e-a729-a1da7f276922\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2023-01-17T20:46:26.1008412Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 17 Jan 2023 20:46:55 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --nrg-restriction --aks-custom-headers User-Agent: - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b Python/3.10.9 (Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/6d512844-317a-4850-bf32-45aa2b2ffd56?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/99fd7981-b96b-4e99-a729-a1da7f276922?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"4428516d-7a31-5048-bf32-45aa2b2ffd56\",\n \"status\"\ - : \"InProgress\",\n \"startTime\": \"2023-01-12T23:53:06.8363086Z\"\n }" + string: "{\n \"name\": \"8179fd99-6bb9-994e-a729-a1da7f276922\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2023-01-17T20:46:26.1008412Z\"\n }" headers: cache-control: - no-cache @@ -858,7 +955,7 @@ interactions: content-type: - application/json date: - - Thu, 12 Jan 2023 23:53:36 GMT + - Tue, 17 Jan 2023 20:47:25 GMT expires: - '-1' pragma: @@ -888,16 +985,16 @@ interactions: Connection: - keep-alive ParameterSetName: - - --resource-group --name --nrg-lockdown-restriction-level --aks-custom-headers + - --resource-group --name --nrg-restriction --aks-custom-headers User-Agent: - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b Python/3.10.9 (Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/6d512844-317a-4850-bf32-45aa2b2ffd56?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/99fd7981-b96b-4e99-a729-a1da7f276922?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"4428516d-7a31-5048-bf32-45aa2b2ffd56\",\n \"status\"\ - : \"InProgress\",\n \"startTime\": \"2023-01-12T23:53:06.8363086Z\"\n }" + string: "{\n \"name\": \"8179fd99-6bb9-994e-a729-a1da7f276922\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2023-01-17T20:46:26.1008412Z\"\n }" headers: cache-control: - no-cache @@ -906,7 +1003,7 @@ interactions: content-type: - application/json date: - - Thu, 12 Jan 2023 23:54:06 GMT + - Tue, 17 Jan 2023 20:47:56 GMT expires: - '-1' pragma: @@ -936,17 +1033,17 @@ interactions: Connection: - keep-alive ParameterSetName: - - --resource-group --name --nrg-lockdown-restriction-level --aks-custom-headers + - --resource-group --name --nrg-restriction --aks-custom-headers User-Agent: - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b Python/3.10.9 (Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/6d512844-317a-4850-bf32-45aa2b2ffd56?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/99fd7981-b96b-4e99-a729-a1da7f276922?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"4428516d-7a31-5048-bf32-45aa2b2ffd56\",\n \"status\"\ - : \"Succeeded\",\n \"startTime\": \"2023-01-12T23:53:06.8363086Z\",\n \"\ - endTime\": \"2023-01-12T23:54:36.1384914Z\"\n }" + string: "{\n \"name\": \"8179fd99-6bb9-994e-a729-a1da7f276922\",\n \"status\"\ + : \"Succeeded\",\n \"startTime\": \"2023-01-17T20:46:26.1008412Z\",\n \"\ + endTime\": \"2023-01-17T20:48:02.8389508Z\"\n }" headers: cache-control: - no-cache @@ -955,7 +1052,7 @@ interactions: content-type: - application/json date: - - Thu, 12 Jan 2023 23:54:36 GMT + - Tue, 17 Jan 2023 20:48:25 GMT expires: - '-1' pragma: @@ -985,7 +1082,7 @@ interactions: Connection: - keep-alive ParameterSetName: - - --resource-group --name --nrg-lockdown-restriction-level --aks-custom-headers + - --resource-group --name --nrg-restriction --aks-custom-headers User-Agent: - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b Python/3.10.9 (Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with) @@ -998,9 +1095,9 @@ interactions: : \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \ \ \"provisioningState\": \"Succeeded\",\n \"powerState\": {\n \"code\"\ : \"Running\"\n },\n \"kubernetesVersion\": \"1.24.6\",\n \"currentKubernetesVersion\"\ - : \"1.24.6\",\n \"dnsPrefix\": \"cliakstest-clitestttpefesf3-8ecadf\",\n\ - \ \"fqdn\": \"cliakstest-clitestttpefesf3-8ecadf-d1e33e4a.hcp.westus2.azmk8s.io\"\ - ,\n \"azurePortalFQDN\": \"cliakstest-clitestttpefesf3-8ecadf-d1e33e4a.portal.hcp.westus2.azmk8s.io\"\ + : \"1.24.6\",\n \"dnsPrefix\": \"cliakstest-clitestys2ovgoo5-8ecadf\",\n\ + \ \"fqdn\": \"cliakstest-clitestys2ovgoo5-8ecadf-40c2e8c5.hcp.westus2.azmk8s.io\"\ + ,\n \"azurePortalFQDN\": \"cliakstest-clitestys2ovgoo5-8ecadf-40c2e8c5.portal.hcp.westus2.azmk8s.io\"\ ,\n \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \ \ \"count\": 3,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\"\ : 128,\n \"osDiskType\": \"Managed\",\n \"kubeletDiskType\": \"OS\"\ @@ -1024,7 +1121,7 @@ interactions: : {\n \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\": \"Standard\"\ ,\n \"loadBalancerProfile\": {\n \"managedOutboundIPs\": {\n \"\ count\": 1\n },\n \"effectiveOutboundIPs\": [\n {\n \"\ - id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.Network/publicIPAddresses/575c2af7-d919-486d-8a66-360df0150e3f\"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.Network/publicIPAddresses/3c6c6320-3c06-4ab6-9bf5-8da8569fe751\"\ \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 \"dockerBridgeCidr\": \"172.17.0.1/16\"\ @@ -1051,7 +1148,7 @@ interactions: content-type: - application/json date: - - Thu, 12 Jan 2023 23:54:37 GMT + - Tue, 17 Jan 2023 20:48:26 GMT expires: - '-1' pragma: @@ -1094,17 +1191,17 @@ interactions: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/12d1ab6b-693f-4e89-a6e9-65232d84191a?api-version=2016-03-30 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/e4d6707b-538d-4112-96d1-ab524860855d?api-version=2016-03-30 cache-control: - no-cache content-length: - '0' date: - - Thu, 12 Jan 2023 23:54:39 GMT + - Tue, 17 Jan 2023 20:48:28 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operationresults/12d1ab6b-693f-4e89-a6e9-65232d84191a?api-version=2016-03-30 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operationresults/e4d6707b-538d-4112-96d1-ab524860855d?api-version=2016-03-30 pragma: - no-cache server: 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 ee8ce1fa44a..87a0584b9ac 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 @@ -3016,7 +3016,7 @@ def test_aks_create_and_update_with_nrg_restriction_level(self, resource_group, # create create_cmd = 'aks create --resource-group={resource_group} --name={name} --location={location} ' \ '--enable-managed-identity ' \ - '--nrg-lockdown-restriction-level ReadOnly ' \ + '--nrg-restriction ReadOnly ' \ '--ssh-key-value={ssh_key_value} ' \ '--aks-custom-headers AKSHTTPCustomFeatures=Microsoft.ContainerService/NRGLockdownPreview' self.cmd(create_cmd, checks=[ @@ -3024,8 +3024,8 @@ def test_aks_create_and_update_with_nrg_restriction_level(self, resource_group, self.check('nodeResourceGroupProfile.restrictionLevel', 'ReadOnly') ]) - # update upgrade channel - self.cmd('aks update --resource-group={resource_group} --name={name} --nrg-lockdown-restriction-level Unrestricted --aks-custom-headers AKSHTTPCustomFeatures=Microsoft.ContainerService/NRGLockdownPreview', checks=[ + # update nrg restriction + self.cmd('aks update --resource-group={resource_group} --name={name} --nrg-restriction Unrestricted --aks-custom-headers AKSHTTPCustomFeatures=Microsoft.ContainerService/NRGLockdownPreview', checks=[ self.check('provisioningState', 'Succeeded'), self.check('nodeResourceGroupProfile.restrictionLevel', 'Unrestricted') ]) From 4be5b827d8f010cc051ca57dc89e49954320812c Mon Sep 17 00:00:00 2001 From: Charlie McBride Date: Tue, 17 Jan 2023 12:56:35 -0800 Subject: [PATCH 12/17] add comment for what the version changed --- src/aks-preview/HISTORY.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/aks-preview/HISTORY.rst b/src/aks-preview/HISTORY.rst index 549254e34fe..51c74344516 100644 --- a/src/aks-preview/HISTORY.rst +++ b/src/aks-preview/HISTORY.rst @@ -12,6 +12,10 @@ To release a new version, please select a new version number (usually plus 1 to Pending +++++++ +0.5.123 ++++++++ +* Add `--nrg-restriction ` option for chosing the node resource group restriction level in `aks create` and `aks update` + 0.5.122 +++++++ * Vendor new SDK and bump API version to 2022-11-02-preview. From 80b747645dc69624f1df9094eaa844e5424c50f0 Mon Sep 17 00:00:00 2001 From: Charlie McBride Date: Wed, 18 Jan 2023 12:27:12 -0800 Subject: [PATCH 13/17] Revert "updated to --nrg-restriction + updated comment" This reverts commit 7e9de8fff49d0217da456b486a71ca19306f15e0. --- src/aks-preview/azext_aks_preview/_consts.py | 6 +- src/aks-preview/azext_aks_preview/_help.py | 4 +- src/aks-preview/azext_aks_preview/_params.py | 12 +- src/aks-preview/azext_aks_preview/custom.py | 4 +- .../managed_cluster_decorator.py | 22 +- ...and_update_with_nrg_restriction_level.yaml | 301 ++++++------------ .../tests/latest/test_aks_commands.py | 6 +- 7 files changed, 129 insertions(+), 226 deletions(-) diff --git a/src/aks-preview/azext_aks_preview/_consts.py b/src/aks-preview/azext_aks_preview/_consts.py index a998ba74a92..ec3ae55e4f8 100644 --- a/src/aks-preview/azext_aks_preview/_consts.py +++ b/src/aks-preview/azext_aks_preview/_consts.py @@ -84,9 +84,9 @@ CONST_NODE_IMAGE_UPGRADE_CHANNEL = "node-image" CONST_NONE_UPGRADE_CHANNEL = "none" -# consts for nrg restriction level -CONST_NRG_RESTRICTION_READONLY = "ReadOnly" -CONST_NRG_RESTRICTION_UNRESTRICTED = "Unrestricted" +# consts for nrg-lockdown restriction level +CONST_NRG_LOCKDOWN_RESTRICTION_LEVEL_READONLY = "ReadOnly" +CONST_NRG_LOCKDOWN_RESTRICTION_LEVEL_UNRESTRICTED = "Unrestricted" # network plugin CONST_NETWORK_PLUGIN_KUBENET = "kubenet" diff --git a/src/aks-preview/azext_aks_preview/_help.py b/src/aks-preview/azext_aks_preview/_help.py index 76faeb20619..457657c3530 100644 --- a/src/aks-preview/azext_aks_preview/_help.py +++ b/src/aks-preview/azext_aks_preview/_help.py @@ -292,7 +292,7 @@ - name: --node-resource-group type: string short-summary: The node resource group is the resource group where all customer's resources will be created in, such as virtual machines. - - name: --nrg-restriction + - name: --nrg-lockdown-restriction-level type: string short-summary: Restriction level on the managed node resource group. long-summary: The restriction level of permissions allowed on the cluster's managed node resource group, supported values are Unrestricted, and ReadOnly (recommended ReadOnly). @@ -687,7 +687,7 @@ type: bool short-summary: Disable pod security policy long-summary: PodSecurityPolicy is deprecated. See https://aka.ms/aks/psp for details. - - name: --nrg-restriction + - name: --nrg-lockdown-restriction-level type: string short-summary: Restriction level on the managed node resource. long-summary: The restriction level of permissions allowed on the cluster's managed node resource group, supported values are Unrestricted, and ReadOnly (recommended ReadOnly). diff --git a/src/aks-preview/azext_aks_preview/_params.py b/src/aks-preview/azext_aks_preview/_params.py index 5a4ba52785e..16ceba7876e 100644 --- a/src/aks-preview/azext_aks_preview/_params.py +++ b/src/aks-preview/azext_aks_preview/_params.py @@ -45,8 +45,8 @@ CONST_NODEPOOL_MODE_SYSTEM, CONST_NODEPOOL_MODE_USER, CONST_NONE_UPGRADE_CHANNEL, - CONST_NRG_RESTRICTION_READONLY, - CONST_NRG_RESTRICTION_UNRESTRICTED, + CONST_NRG_LOCKDOWN_RESTRICTION_LEVEL_READONLY, + CONST_NRG_LOCKDOWN_RESTRICTION_LEVEL_UNRESTRICTED, CONST_OS_DISK_TYPE_EPHEMERAL, CONST_OS_DISK_TYPE_MANAGED, CONST_OS_SKU_CBLMARINER, @@ -193,8 +193,8 @@ CONST_NONE_UPGRADE_CHANNEL, ] nrg_lockdown_restriction_levels = [ - CONST_NRG_RESTRICTION_READONLY, - CONST_NRG_RESTRICTION_UNRESTRICTED, + CONST_NRG_LOCKDOWN_RESTRICTION_LEVEL_READONLY, + CONST_NRG_LOCKDOWN_RESTRICTION_LEVEL_UNRESTRICTED, ] # consts for maintenance configuration @@ -260,7 +260,7 @@ def load_arguments(self, _): c.argument('load_balancer_outbound_ports', type=int, validator=validate_load_balancer_outbound_ports) c.argument('load_balancer_idle_timeout', type=int, validator=validate_load_balancer_idle_timeout) c.argument('load_balancer_backend_pool_type', validator=validate_load_balancer_backend_pool_type) - c.argument('nrg_restriction', arg_type=get_enum_type(nrg_lockdown_restriction_levels)) + c.argument('nrg_lockdown_restriction_level', arg_type=get_enum_type(nrg_lockdown_restriction_levels)) c.argument('nat_gateway_managed_outbound_ip_count', type=int, validator=validate_nat_gateway_managed_outbound_ip_count) c.argument('nat_gateway_idle_timeout', type=int, validator=validate_nat_gateway_idle_timeout) c.argument('outbound_type', arg_type=get_enum_type(outbound_types)) @@ -403,7 +403,7 @@ def load_arguments(self, _): c.argument('load_balancer_outbound_ports', type=int, validator=validate_load_balancer_outbound_ports) c.argument('load_balancer_idle_timeout', type=int, validator=validate_load_balancer_idle_timeout) c.argument('load_balancer_backend_pool_type', validator=validate_load_balancer_backend_pool_type) - c.argument('nrg_restriction', arg_type=get_enum_type(nrg_lockdown_restriction_levels)) + c.argument('nrg_lockdown_restriction_level', arg_type=get_enum_type(nrg_lockdown_restriction_levels)) c.argument('nat_gateway_managed_outbound_ip_count', type=int, validator=validate_nat_gateway_managed_outbound_ip_count) c.argument('nat_gateway_idle_timeout', type=int, validator=validate_nat_gateway_idle_timeout) c.argument('kube_proxy_config') diff --git a/src/aks-preview/azext_aks_preview/custom.py b/src/aks-preview/azext_aks_preview/custom.py index 06465400b49..96251cfe3ff 100644 --- a/src/aks-preview/azext_aks_preview/custom.py +++ b/src/aks-preview/azext_aks_preview/custom.py @@ -627,7 +627,7 @@ def aks_create( attach_acr=None, skip_subnet_role_assignment=False, node_resource_group=None, - nrg_restriction=None, + nrg_lockdown_restriction_level=None, enable_defender=False, defender_config=None, disk_driver_version=None, @@ -782,7 +782,7 @@ def aks_update( gmsa_root_domain_name=None, attach_acr=None, detach_acr=None, - nrg_restriction=None, + nrg_lockdown_restriction_level=None, enable_defender=False, disable_defender=False, defender_config=None, 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 026cc8277a6..9f975a42b5a 100644 --- a/src/aks-preview/azext_aks_preview/managed_cluster_decorator.py +++ b/src/aks-preview/azext_aks_preview/managed_cluster_decorator.py @@ -467,12 +467,12 @@ def get_load_balancer_backend_pool_type(self) -> str: # this parameter does not need validation return load_balancer_backend_pool_type - def get_nrg_restriction(self) -> Union[str, None]: - """Obtain the value of nrg_restriction. + def get_nrg_lockdown_restriction_level(self) -> Union[str, None]: + """Obtain the value of nrg_lockdown_restriction_level. :return: string or None """ # read the original value passed by the command - nrg_restriction = self.raw_param.get("nrg_restriction") + nrg_lockdown_restriction_level = self.raw_param.get("nrg_lockdown_restriction_level") # In create mode, try to read the property value corresponding to the parameter from the `mc` object. if self.decorator_mode == DecoratorMode.CREATE: @@ -481,11 +481,11 @@ def get_nrg_restriction(self) -> Union[str, None]: self.mc.node_resource_group_profile and self.mc.node_resource_group_profile.restriction_level is not None ): - nrg_restriction = self.mc.node_resource_group_profile.restriction_level + nrg_lockdown_restriction_level = self.mc.node_resource_group_profile.restriction_level # this parameter does not need dynamic completion # this parameter does not need validation - return nrg_restriction + return nrg_lockdown_restriction_level def get_kube_proxy_config(self) -> Union[Dict, ContainerServiceNetworkProfileKubeProxyConfig, None]: """Obtain the value of kube_proxy_config. @@ -2147,9 +2147,9 @@ def set_up_node_resource_group_profile(self, mc: ManagedCluster) -> ManagedClust self._ensure_mc(mc) node_resource_group_profile = None - nrg_restriction = self.context.get_nrg_restriction() - if nrg_restriction: - node_resource_group_profile = self.models.ManagedClusterNodeResourceGroupProfile(restriction_level=nrg_restriction) + nrg_lockdown_restriction_level = self.context.get_nrg_lockdown_restriction_level() + if nrg_lockdown_restriction_level: + node_resource_group_profile = self.models.ManagedClusterNodeResourceGroupProfile(restriction_level=nrg_lockdown_restriction_level) mc.node_resource_group_profile = node_resource_group_profile return mc @@ -2699,11 +2699,11 @@ def update_node_resource_group_profile(self, mc: ManagedCluster) -> ManagedClust """ self._ensure_mc(mc) - nrg_restriction = self.context.get_nrg_restriction() - if nrg_restriction is not None: + nrg_lockdown_restriction_level = self.context.get_nrg_lockdown_restriction_level() + if nrg_lockdown_restriction_level is not None: if mc.node_resource_group_profile is None: mc.node_resource_group_profile = self.models.ManagedClusterNodeResourceGroupProfile() - mc.node_resource_group_profile.restriction_level = nrg_restriction + mc.node_resource_group_profile.restriction_level = nrg_lockdown_restriction_level return mc def update_mc_profile_preview(self) -> ManagedCluster: diff --git a/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_and_update_with_nrg_restriction_level.yaml b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_and_update_with_nrg_restriction_level.yaml index fc9c1c62a0c..ec9d818a5c9 100644 --- a/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_and_update_with_nrg_restriction_level.yaml +++ b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_and_update_with_nrg_restriction_level.yaml @@ -1,7 +1,7 @@ interactions: - request: body: '{"location": "westus2", "identity": {"type": "SystemAssigned"}, "properties": - {"kubernetesVersion": "", "dnsPrefix": "cliakstest-clitestys2ovgoo5-8ecadf", + {"kubernetesVersion": "", "dnsPrefix": "cliakstest-clitestttpefesf3-8ecadf", "agentPoolProfiles": [{"count": 3, "vmSize": "Standard_DS2_v2", "osDiskSizeGB": 0, "workloadRuntime": "OCIContainer", "osType": "Linux", "enableAutoScaling": false, "type": "VirtualMachineScaleSets", "mode": "System", "orchestratorVersion": @@ -32,7 +32,7 @@ interactions: Content-Type: - application/json ParameterSetName: - - --resource-group --name --location --enable-managed-identity --nrg-restriction + - --resource-group --name --location --enable-managed-identity --nrg-lockdown-restriction-level --ssh-key-value --aks-custom-headers User-Agent: - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b @@ -46,9 +46,9 @@ interactions: : \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \ \ \"provisioningState\": \"Creating\",\n \"powerState\": {\n \"code\"\ : \"Running\"\n },\n \"kubernetesVersion\": \"1.24.6\",\n \"currentKubernetesVersion\"\ - : \"1.24.6\",\n \"dnsPrefix\": \"cliakstest-clitestys2ovgoo5-8ecadf\",\n\ - \ \"fqdn\": \"cliakstest-clitestys2ovgoo5-8ecadf-40c2e8c5.hcp.westus2.azmk8s.io\"\ - ,\n \"azurePortalFQDN\": \"cliakstest-clitestys2ovgoo5-8ecadf-40c2e8c5.portal.hcp.westus2.azmk8s.io\"\ + : \"1.24.6\",\n \"dnsPrefix\": \"cliakstest-clitestttpefesf3-8ecadf\",\n\ + \ \"fqdn\": \"cliakstest-clitestttpefesf3-8ecadf-d1e33e4a.hcp.westus2.azmk8s.io\"\ + ,\n \"azurePortalFQDN\": \"cliakstest-clitestttpefesf3-8ecadf-d1e33e4a.portal.hcp.westus2.azmk8s.io\"\ ,\n \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \ \ \"count\": 3,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\"\ : 128,\n \"osDiskType\": \"Managed\",\n \"kubeletDiskType\": \"OS\"\ @@ -88,7 +88,7 @@ interactions: : {\n \"name\": \"Basic\",\n \"tier\": \"Free\"\n }\n }" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/27325960-5393-4075-8a08-95809df917cf?api-version=2016-03-30 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/4f47c860-3562-48a8-a8c8-f1e2c84bb458?api-version=2016-03-30 cache-control: - no-cache content-length: @@ -96,7 +96,7 @@ interactions: content-type: - application/json date: - - Tue, 17 Jan 2023 20:41:49 GMT + - Thu, 12 Jan 2023 23:49:00 GMT expires: - '-1' pragma: @@ -124,75 +124,26 @@ interactions: Connection: - keep-alive ParameterSetName: - - --resource-group --name --location --enable-managed-identity --nrg-restriction + - --resource-group --name --location --enable-managed-identity --nrg-lockdown-restriction-level --ssh-key-value --aks-custom-headers User-Agent: - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b Python/3.10.9 (Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/27325960-5393-4075-8a08-95809df917cf?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/4f47c860-3562-48a8-a8c8-f1e2c84bb458?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"60593227-9353-7540-8a08-95809df917cf\",\n \"status\"\ - : \"InProgress\",\n \"startTime\": \"2023-01-17T20:41:50.098354Z\"\n }" + string: "{\n \"name\": \"60c8474f-6235-a848-a8c8-f1e2c84bb458\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2023-01-12T23:49:01.3047888Z\"\n }" headers: cache-control: - no-cache content-length: - - '125' - content-type: - - application/json - date: - - Tue, 17 Jan 2023 20:42:20 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - aks create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --name --location --enable-managed-identity --nrg-restriction - --ssh-key-value --aks-custom-headers - User-Agent: - - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b - Python/3.10.9 (Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/27325960-5393-4075-8a08-95809df917cf?api-version=2016-03-30 - response: - body: - string: "{\n \"name\": \"60593227-9353-7540-8a08-95809df917cf\",\n \"status\"\ - : \"InProgress\",\n \"startTime\": \"2023-01-17T20:41:50.098354Z\"\n }" - headers: - cache-control: - - no-cache - content-length: - - '125' + - '126' content-type: - application/json date: - - Tue, 17 Jan 2023 20:42:50 GMT + - Thu, 12 Jan 2023 23:49:31 GMT expires: - '-1' pragma: @@ -222,26 +173,26 @@ interactions: Connection: - keep-alive ParameterSetName: - - --resource-group --name --location --enable-managed-identity --nrg-restriction + - --resource-group --name --location --enable-managed-identity --nrg-lockdown-restriction-level --ssh-key-value --aks-custom-headers User-Agent: - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b Python/3.10.9 (Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/27325960-5393-4075-8a08-95809df917cf?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/4f47c860-3562-48a8-a8c8-f1e2c84bb458?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"60593227-9353-7540-8a08-95809df917cf\",\n \"status\"\ - : \"InProgress\",\n \"startTime\": \"2023-01-17T20:41:50.098354Z\"\n }" + string: "{\n \"name\": \"60c8474f-6235-a848-a8c8-f1e2c84bb458\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2023-01-12T23:49:01.3047888Z\"\n }" headers: cache-control: - no-cache content-length: - - '125' + - '126' content-type: - application/json date: - - Tue, 17 Jan 2023 20:43:20 GMT + - Thu, 12 Jan 2023 23:50:01 GMT expires: - '-1' pragma: @@ -271,26 +222,26 @@ interactions: Connection: - keep-alive ParameterSetName: - - --resource-group --name --location --enable-managed-identity --nrg-restriction + - --resource-group --name --location --enable-managed-identity --nrg-lockdown-restriction-level --ssh-key-value --aks-custom-headers User-Agent: - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b Python/3.10.9 (Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/27325960-5393-4075-8a08-95809df917cf?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/4f47c860-3562-48a8-a8c8-f1e2c84bb458?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"60593227-9353-7540-8a08-95809df917cf\",\n \"status\"\ - : \"InProgress\",\n \"startTime\": \"2023-01-17T20:41:50.098354Z\"\n }" + string: "{\n \"name\": \"60c8474f-6235-a848-a8c8-f1e2c84bb458\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2023-01-12T23:49:01.3047888Z\"\n }" headers: cache-control: - no-cache content-length: - - '125' + - '126' content-type: - application/json date: - - Tue, 17 Jan 2023 20:43:50 GMT + - Thu, 12 Jan 2023 23:50:31 GMT expires: - '-1' pragma: @@ -320,26 +271,26 @@ interactions: Connection: - keep-alive ParameterSetName: - - --resource-group --name --location --enable-managed-identity --nrg-restriction + - --resource-group --name --location --enable-managed-identity --nrg-lockdown-restriction-level --ssh-key-value --aks-custom-headers User-Agent: - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b Python/3.10.9 (Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/27325960-5393-4075-8a08-95809df917cf?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/4f47c860-3562-48a8-a8c8-f1e2c84bb458?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"60593227-9353-7540-8a08-95809df917cf\",\n \"status\"\ - : \"InProgress\",\n \"startTime\": \"2023-01-17T20:41:50.098354Z\"\n }" + string: "{\n \"name\": \"60c8474f-6235-a848-a8c8-f1e2c84bb458\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2023-01-12T23:49:01.3047888Z\"\n }" headers: cache-control: - no-cache content-length: - - '125' + - '126' content-type: - application/json date: - - Tue, 17 Jan 2023 20:44:20 GMT + - Thu, 12 Jan 2023 23:51:01 GMT expires: - '-1' pragma: @@ -369,26 +320,26 @@ interactions: Connection: - keep-alive ParameterSetName: - - --resource-group --name --location --enable-managed-identity --nrg-restriction + - --resource-group --name --location --enable-managed-identity --nrg-lockdown-restriction-level --ssh-key-value --aks-custom-headers User-Agent: - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b Python/3.10.9 (Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/27325960-5393-4075-8a08-95809df917cf?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/4f47c860-3562-48a8-a8c8-f1e2c84bb458?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"60593227-9353-7540-8a08-95809df917cf\",\n \"status\"\ - : \"InProgress\",\n \"startTime\": \"2023-01-17T20:41:50.098354Z\"\n }" + string: "{\n \"name\": \"60c8474f-6235-a848-a8c8-f1e2c84bb458\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2023-01-12T23:49:01.3047888Z\"\n }" headers: cache-control: - no-cache content-length: - - '125' + - '126' content-type: - application/json date: - - Tue, 17 Jan 2023 20:44:50 GMT + - Thu, 12 Jan 2023 23:51:31 GMT expires: - '-1' pragma: @@ -418,26 +369,26 @@ interactions: Connection: - keep-alive ParameterSetName: - - --resource-group --name --location --enable-managed-identity --nrg-restriction + - --resource-group --name --location --enable-managed-identity --nrg-lockdown-restriction-level --ssh-key-value --aks-custom-headers User-Agent: - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b Python/3.10.9 (Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/27325960-5393-4075-8a08-95809df917cf?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/4f47c860-3562-48a8-a8c8-f1e2c84bb458?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"60593227-9353-7540-8a08-95809df917cf\",\n \"status\"\ - : \"InProgress\",\n \"startTime\": \"2023-01-17T20:41:50.098354Z\"\n }" + string: "{\n \"name\": \"60c8474f-6235-a848-a8c8-f1e2c84bb458\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2023-01-12T23:49:01.3047888Z\"\n }" headers: cache-control: - no-cache content-length: - - '125' + - '126' content-type: - application/json date: - - Tue, 17 Jan 2023 20:45:20 GMT + - Thu, 12 Jan 2023 23:52:02 GMT expires: - '-1' pragma: @@ -467,26 +418,26 @@ interactions: Connection: - keep-alive ParameterSetName: - - --resource-group --name --location --enable-managed-identity --nrg-restriction + - --resource-group --name --location --enable-managed-identity --nrg-lockdown-restriction-level --ssh-key-value --aks-custom-headers User-Agent: - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b Python/3.10.9 (Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/27325960-5393-4075-8a08-95809df917cf?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/4f47c860-3562-48a8-a8c8-f1e2c84bb458?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"60593227-9353-7540-8a08-95809df917cf\",\n \"status\"\ - : \"InProgress\",\n \"startTime\": \"2023-01-17T20:41:50.098354Z\"\n }" + string: "{\n \"name\": \"60c8474f-6235-a848-a8c8-f1e2c84bb458\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2023-01-12T23:49:01.3047888Z\"\n }" headers: cache-control: - no-cache content-length: - - '125' + - '126' content-type: - application/json date: - - Tue, 17 Jan 2023 20:45:51 GMT + - Thu, 12 Jan 2023 23:52:31 GMT expires: - '-1' pragma: @@ -516,27 +467,27 @@ interactions: Connection: - keep-alive ParameterSetName: - - --resource-group --name --location --enable-managed-identity --nrg-restriction + - --resource-group --name --location --enable-managed-identity --nrg-lockdown-restriction-level --ssh-key-value --aks-custom-headers User-Agent: - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b Python/3.10.9 (Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/27325960-5393-4075-8a08-95809df917cf?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/4f47c860-3562-48a8-a8c8-f1e2c84bb458?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"60593227-9353-7540-8a08-95809df917cf\",\n \"status\"\ - : \"Succeeded\",\n \"startTime\": \"2023-01-17T20:41:50.098354Z\",\n \"\ - endTime\": \"2023-01-17T20:46:05.9041171Z\"\n }" + string: "{\n \"name\": \"60c8474f-6235-a848-a8c8-f1e2c84bb458\",\n \"status\"\ + : \"Succeeded\",\n \"startTime\": \"2023-01-12T23:49:01.3047888Z\",\n \"\ + endTime\": \"2023-01-12T23:52:43.9042793Z\"\n }" headers: cache-control: - no-cache content-length: - - '169' + - '170' content-type: - application/json date: - - Tue, 17 Jan 2023 20:46:21 GMT + - Thu, 12 Jan 2023 23:53:01 GMT expires: - '-1' pragma: @@ -566,7 +517,7 @@ interactions: Connection: - keep-alive ParameterSetName: - - --resource-group --name --location --enable-managed-identity --nrg-restriction + - --resource-group --name --location --enable-managed-identity --nrg-lockdown-restriction-level --ssh-key-value --aks-custom-headers User-Agent: - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b @@ -580,9 +531,9 @@ interactions: : \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \ \ \"provisioningState\": \"Succeeded\",\n \"powerState\": {\n \"code\"\ : \"Running\"\n },\n \"kubernetesVersion\": \"1.24.6\",\n \"currentKubernetesVersion\"\ - : \"1.24.6\",\n \"dnsPrefix\": \"cliakstest-clitestys2ovgoo5-8ecadf\",\n\ - \ \"fqdn\": \"cliakstest-clitestys2ovgoo5-8ecadf-40c2e8c5.hcp.westus2.azmk8s.io\"\ - ,\n \"azurePortalFQDN\": \"cliakstest-clitestys2ovgoo5-8ecadf-40c2e8c5.portal.hcp.westus2.azmk8s.io\"\ + : \"1.24.6\",\n \"dnsPrefix\": \"cliakstest-clitestttpefesf3-8ecadf\",\n\ + \ \"fqdn\": \"cliakstest-clitestttpefesf3-8ecadf-d1e33e4a.hcp.westus2.azmk8s.io\"\ + ,\n \"azurePortalFQDN\": \"cliakstest-clitestttpefesf3-8ecadf-d1e33e4a.portal.hcp.westus2.azmk8s.io\"\ ,\n \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \ \ \"count\": 3,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\"\ : 128,\n \"osDiskType\": \"Managed\",\n \"kubeletDiskType\": \"OS\"\ @@ -606,7 +557,7 @@ interactions: : {\n \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\": \"Standard\"\ ,\n \"loadBalancerProfile\": {\n \"managedOutboundIPs\": {\n \"\ count\": 1\n },\n \"effectiveOutboundIPs\": [\n {\n \"\ - id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.Network/publicIPAddresses/3c6c6320-3c06-4ab6-9bf5-8da8569fe751\"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.Network/publicIPAddresses/575c2af7-d919-486d-8a66-360df0150e3f\"\ \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 \"dockerBridgeCidr\": \"172.17.0.1/16\"\ @@ -633,7 +584,7 @@ interactions: content-type: - application/json date: - - Tue, 17 Jan 2023 20:46:21 GMT + - Thu, 12 Jan 2023 23:53:02 GMT expires: - '-1' pragma: @@ -663,7 +614,7 @@ interactions: Connection: - keep-alive ParameterSetName: - - --resource-group --name --nrg-restriction --aks-custom-headers + - --resource-group --name --nrg-lockdown-restriction-level --aks-custom-headers User-Agent: - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b Python/3.10.9 (Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with) @@ -676,9 +627,9 @@ interactions: : \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \ \ \"provisioningState\": \"Succeeded\",\n \"powerState\": {\n \"code\"\ : \"Running\"\n },\n \"kubernetesVersion\": \"1.24.6\",\n \"currentKubernetesVersion\"\ - : \"1.24.6\",\n \"dnsPrefix\": \"cliakstest-clitestys2ovgoo5-8ecadf\",\n\ - \ \"fqdn\": \"cliakstest-clitestys2ovgoo5-8ecadf-40c2e8c5.hcp.westus2.azmk8s.io\"\ - ,\n \"azurePortalFQDN\": \"cliakstest-clitestys2ovgoo5-8ecadf-40c2e8c5.portal.hcp.westus2.azmk8s.io\"\ + : \"1.24.6\",\n \"dnsPrefix\": \"cliakstest-clitestttpefesf3-8ecadf\",\n\ + \ \"fqdn\": \"cliakstest-clitestttpefesf3-8ecadf-d1e33e4a.hcp.westus2.azmk8s.io\"\ + ,\n \"azurePortalFQDN\": \"cliakstest-clitestttpefesf3-8ecadf-d1e33e4a.portal.hcp.westus2.azmk8s.io\"\ ,\n \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \ \ \"count\": 3,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\"\ : 128,\n \"osDiskType\": \"Managed\",\n \"kubeletDiskType\": \"OS\"\ @@ -702,7 +653,7 @@ interactions: : {\n \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\": \"Standard\"\ ,\n \"loadBalancerProfile\": {\n \"managedOutboundIPs\": {\n \"\ count\": 1\n },\n \"effectiveOutboundIPs\": [\n {\n \"\ - id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.Network/publicIPAddresses/3c6c6320-3c06-4ab6-9bf5-8da8569fe751\"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.Network/publicIPAddresses/575c2af7-d919-486d-8a66-360df0150e3f\"\ \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 \"dockerBridgeCidr\": \"172.17.0.1/16\"\ @@ -729,7 +680,7 @@ interactions: content-type: - application/json date: - - Tue, 17 Jan 2023 20:46:23 GMT + - Thu, 12 Jan 2023 23:53:03 GMT expires: - '-1' pragma: @@ -750,7 +701,7 @@ interactions: - request: body: '{"location": "westus2", "sku": {"name": "Basic", "tier": "Free"}, "identity": {"type": "SystemAssigned"}, "properties": {"kubernetesVersion": "1.24.6", "dnsPrefix": - "cliakstest-clitestys2ovgoo5-8ecadf", "agentPoolProfiles": [{"count": 3, "vmSize": + "cliakstest-clitestttpefesf3-8ecadf", "agentPoolProfiles": [{"count": 3, "vmSize": "Standard_DS2_v2", "osDiskSizeGB": 128, "osDiskType": "Managed", "kubeletDiskType": "OS", "workloadRuntime": "OCIContainer", "maxPods": 110, "osType": "Linux", "osSKU": "Ubuntu", "enableAutoScaling": false, "type": "VirtualMachineScaleSets", @@ -766,7 +717,7 @@ interactions: "kubenet", "podCidr": "10.244.0.0/16", "serviceCidr": "10.0.0.0/16", "dnsServiceIP": "10.0.0.10", "dockerBridgeCidr": "172.17.0.1/16", "outboundType": "loadBalancer", "loadBalancerSku": "Standard", "loadBalancerProfile": {"managedOutboundIPs": - {"count": 1, "countIPv6": 0}, "effectiveOutboundIPs": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.Network/publicIPAddresses/3c6c6320-3c06-4ab6-9bf5-8da8569fe751"}], + {"count": 1, "countIPv6": 0}, "effectiveOutboundIPs": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.Network/publicIPAddresses/575c2af7-d919-486d-8a66-360df0150e3f"}], "backendPoolType": "nodeIPConfiguration"}, "podCidrs": ["10.244.0.0/16"], "serviceCidrs": ["10.0.0.0/16"], "ipFamilies": ["IPv4"]}, "identityProfile": {"kubeletidentity": {"resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cliakstest000002-agentpool", @@ -789,7 +740,7 @@ interactions: Content-Type: - application/json ParameterSetName: - - --resource-group --name --nrg-restriction --aks-custom-headers + - --resource-group --name --nrg-lockdown-restriction-level --aks-custom-headers User-Agent: - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b Python/3.10.9 (Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with) @@ -802,9 +753,9 @@ interactions: : \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \ \ \"provisioningState\": \"Updating\",\n \"powerState\": {\n \"code\"\ : \"Running\"\n },\n \"kubernetesVersion\": \"1.24.6\",\n \"currentKubernetesVersion\"\ - : \"1.24.6\",\n \"dnsPrefix\": \"cliakstest-clitestys2ovgoo5-8ecadf\",\n\ - \ \"fqdn\": \"cliakstest-clitestys2ovgoo5-8ecadf-40c2e8c5.hcp.westus2.azmk8s.io\"\ - ,\n \"azurePortalFQDN\": \"cliakstest-clitestys2ovgoo5-8ecadf-40c2e8c5.portal.hcp.westus2.azmk8s.io\"\ + : \"1.24.6\",\n \"dnsPrefix\": \"cliakstest-clitestttpefesf3-8ecadf\",\n\ + \ \"fqdn\": \"cliakstest-clitestttpefesf3-8ecadf-d1e33e4a.hcp.westus2.azmk8s.io\"\ + ,\n \"azurePortalFQDN\": \"cliakstest-clitestttpefesf3-8ecadf-d1e33e4a.portal.hcp.westus2.azmk8s.io\"\ ,\n \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \ \ \"count\": 3,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\"\ : 128,\n \"osDiskType\": \"Managed\",\n \"kubeletDiskType\": \"OS\"\ @@ -828,7 +779,7 @@ interactions: : {\n \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\": \"Standard\"\ ,\n \"loadBalancerProfile\": {\n \"managedOutboundIPs\": {\n \"\ count\": 1\n },\n \"effectiveOutboundIPs\": [\n {\n \"\ - id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.Network/publicIPAddresses/3c6c6320-3c06-4ab6-9bf5-8da8569fe751\"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.Network/publicIPAddresses/575c2af7-d919-486d-8a66-360df0150e3f\"\ \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 \"dockerBridgeCidr\": \"172.17.0.1/16\"\ @@ -849,7 +800,7 @@ interactions: : {\n \"name\": \"Basic\",\n \"tier\": \"Free\"\n }\n }" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/99fd7981-b96b-4e99-a729-a1da7f276922?api-version=2016-03-30 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/6d512844-317a-4850-bf32-45aa2b2ffd56?api-version=2016-03-30 cache-control: - no-cache content-length: @@ -857,7 +808,7 @@ interactions: content-type: - application/json date: - - Tue, 17 Jan 2023 20:46:26 GMT + - Thu, 12 Jan 2023 23:53:06 GMT expires: - '-1' pragma: @@ -889,64 +840,16 @@ interactions: Connection: - keep-alive ParameterSetName: - - --resource-group --name --nrg-restriction --aks-custom-headers - User-Agent: - - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b - Python/3.10.9 (Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/99fd7981-b96b-4e99-a729-a1da7f276922?api-version=2016-03-30 - response: - body: - string: "{\n \"name\": \"8179fd99-6bb9-994e-a729-a1da7f276922\",\n \"status\"\ - : \"InProgress\",\n \"startTime\": \"2023-01-17T20:46:26.1008412Z\"\n }" - headers: - cache-control: - - no-cache - content-length: - - '126' - content-type: - - application/json - date: - - Tue, 17 Jan 2023 20:46:55 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - aks update - Connection: - - keep-alive - ParameterSetName: - - --resource-group --name --nrg-restriction --aks-custom-headers + - --resource-group --name --nrg-lockdown-restriction-level --aks-custom-headers User-Agent: - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b Python/3.10.9 (Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/99fd7981-b96b-4e99-a729-a1da7f276922?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/6d512844-317a-4850-bf32-45aa2b2ffd56?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"8179fd99-6bb9-994e-a729-a1da7f276922\",\n \"status\"\ - : \"InProgress\",\n \"startTime\": \"2023-01-17T20:46:26.1008412Z\"\n }" + string: "{\n \"name\": \"4428516d-7a31-5048-bf32-45aa2b2ffd56\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2023-01-12T23:53:06.8363086Z\"\n }" headers: cache-control: - no-cache @@ -955,7 +858,7 @@ interactions: content-type: - application/json date: - - Tue, 17 Jan 2023 20:47:25 GMT + - Thu, 12 Jan 2023 23:53:36 GMT expires: - '-1' pragma: @@ -985,16 +888,16 @@ interactions: Connection: - keep-alive ParameterSetName: - - --resource-group --name --nrg-restriction --aks-custom-headers + - --resource-group --name --nrg-lockdown-restriction-level --aks-custom-headers User-Agent: - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b Python/3.10.9 (Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/99fd7981-b96b-4e99-a729-a1da7f276922?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/6d512844-317a-4850-bf32-45aa2b2ffd56?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"8179fd99-6bb9-994e-a729-a1da7f276922\",\n \"status\"\ - : \"InProgress\",\n \"startTime\": \"2023-01-17T20:46:26.1008412Z\"\n }" + string: "{\n \"name\": \"4428516d-7a31-5048-bf32-45aa2b2ffd56\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2023-01-12T23:53:06.8363086Z\"\n }" headers: cache-control: - no-cache @@ -1003,7 +906,7 @@ interactions: content-type: - application/json date: - - Tue, 17 Jan 2023 20:47:56 GMT + - Thu, 12 Jan 2023 23:54:06 GMT expires: - '-1' pragma: @@ -1033,17 +936,17 @@ interactions: Connection: - keep-alive ParameterSetName: - - --resource-group --name --nrg-restriction --aks-custom-headers + - --resource-group --name --nrg-lockdown-restriction-level --aks-custom-headers User-Agent: - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b Python/3.10.9 (Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/99fd7981-b96b-4e99-a729-a1da7f276922?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/6d512844-317a-4850-bf32-45aa2b2ffd56?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"8179fd99-6bb9-994e-a729-a1da7f276922\",\n \"status\"\ - : \"Succeeded\",\n \"startTime\": \"2023-01-17T20:46:26.1008412Z\",\n \"\ - endTime\": \"2023-01-17T20:48:02.8389508Z\"\n }" + string: "{\n \"name\": \"4428516d-7a31-5048-bf32-45aa2b2ffd56\",\n \"status\"\ + : \"Succeeded\",\n \"startTime\": \"2023-01-12T23:53:06.8363086Z\",\n \"\ + endTime\": \"2023-01-12T23:54:36.1384914Z\"\n }" headers: cache-control: - no-cache @@ -1052,7 +955,7 @@ interactions: content-type: - application/json date: - - Tue, 17 Jan 2023 20:48:25 GMT + - Thu, 12 Jan 2023 23:54:36 GMT expires: - '-1' pragma: @@ -1082,7 +985,7 @@ interactions: Connection: - keep-alive ParameterSetName: - - --resource-group --name --nrg-restriction --aks-custom-headers + - --resource-group --name --nrg-lockdown-restriction-level --aks-custom-headers User-Agent: - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b Python/3.10.9 (Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with) @@ -1095,9 +998,9 @@ interactions: : \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \ \ \"provisioningState\": \"Succeeded\",\n \"powerState\": {\n \"code\"\ : \"Running\"\n },\n \"kubernetesVersion\": \"1.24.6\",\n \"currentKubernetesVersion\"\ - : \"1.24.6\",\n \"dnsPrefix\": \"cliakstest-clitestys2ovgoo5-8ecadf\",\n\ - \ \"fqdn\": \"cliakstest-clitestys2ovgoo5-8ecadf-40c2e8c5.hcp.westus2.azmk8s.io\"\ - ,\n \"azurePortalFQDN\": \"cliakstest-clitestys2ovgoo5-8ecadf-40c2e8c5.portal.hcp.westus2.azmk8s.io\"\ + : \"1.24.6\",\n \"dnsPrefix\": \"cliakstest-clitestttpefesf3-8ecadf\",\n\ + \ \"fqdn\": \"cliakstest-clitestttpefesf3-8ecadf-d1e33e4a.hcp.westus2.azmk8s.io\"\ + ,\n \"azurePortalFQDN\": \"cliakstest-clitestttpefesf3-8ecadf-d1e33e4a.portal.hcp.westus2.azmk8s.io\"\ ,\n \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \ \ \"count\": 3,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\"\ : 128,\n \"osDiskType\": \"Managed\",\n \"kubeletDiskType\": \"OS\"\ @@ -1121,7 +1024,7 @@ interactions: : {\n \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\": \"Standard\"\ ,\n \"loadBalancerProfile\": {\n \"managedOutboundIPs\": {\n \"\ count\": 1\n },\n \"effectiveOutboundIPs\": [\n {\n \"\ - id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.Network/publicIPAddresses/3c6c6320-3c06-4ab6-9bf5-8da8569fe751\"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.Network/publicIPAddresses/575c2af7-d919-486d-8a66-360df0150e3f\"\ \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 \"dockerBridgeCidr\": \"172.17.0.1/16\"\ @@ -1148,7 +1051,7 @@ interactions: content-type: - application/json date: - - Tue, 17 Jan 2023 20:48:26 GMT + - Thu, 12 Jan 2023 23:54:37 GMT expires: - '-1' pragma: @@ -1191,17 +1094,17 @@ interactions: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/e4d6707b-538d-4112-96d1-ab524860855d?api-version=2016-03-30 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/12d1ab6b-693f-4e89-a6e9-65232d84191a?api-version=2016-03-30 cache-control: - no-cache content-length: - '0' date: - - Tue, 17 Jan 2023 20:48:28 GMT + - Thu, 12 Jan 2023 23:54:39 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operationresults/e4d6707b-538d-4112-96d1-ab524860855d?api-version=2016-03-30 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operationresults/12d1ab6b-693f-4e89-a6e9-65232d84191a?api-version=2016-03-30 pragma: - no-cache server: 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 aa6e3422952..c3eb8cb9ec7 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 @@ -3039,7 +3039,7 @@ def test_aks_create_and_update_with_nrg_restriction_level(self, resource_group, # create create_cmd = 'aks create --resource-group={resource_group} --name={name} --location={location} ' \ '--enable-managed-identity ' \ - '--nrg-restriction ReadOnly ' \ + '--nrg-lockdown-restriction-level ReadOnly ' \ '--ssh-key-value={ssh_key_value} ' \ '--aks-custom-headers AKSHTTPCustomFeatures=Microsoft.ContainerService/NRGLockdownPreview' self.cmd(create_cmd, checks=[ @@ -3047,8 +3047,8 @@ def test_aks_create_and_update_with_nrg_restriction_level(self, resource_group, self.check('nodeResourceGroupProfile.restrictionLevel', 'ReadOnly') ]) - # update nrg restriction - self.cmd('aks update --resource-group={resource_group} --name={name} --nrg-restriction Unrestricted --aks-custom-headers AKSHTTPCustomFeatures=Microsoft.ContainerService/NRGLockdownPreview', checks=[ + # update upgrade channel + self.cmd('aks update --resource-group={resource_group} --name={name} --nrg-lockdown-restriction-level Unrestricted --aks-custom-headers AKSHTTPCustomFeatures=Microsoft.ContainerService/NRGLockdownPreview', checks=[ self.check('provisioningState', 'Succeeded'), self.check('nodeResourceGroupProfile.restrictionLevel', 'Unrestricted') ]) From 2ceb6d5f3cba64deed8b06d6f8110ccd7a986ec4 Mon Sep 17 00:00:00 2001 From: Charlie McBride Date: Wed, 18 Jan 2023 12:28:47 -0800 Subject: [PATCH 14/17] fix comments --- src/aks-preview/HISTORY.rst | 2 +- .../azext_aks_preview/tests/latest/test_aks_commands.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/aks-preview/HISTORY.rst b/src/aks-preview/HISTORY.rst index a9a32486209..d080c19d148 100644 --- a/src/aks-preview/HISTORY.rst +++ b/src/aks-preview/HISTORY.rst @@ -14,7 +14,7 @@ Pending 0.5.126 +++++++ -* Add `--nrg-restriction ` option for chosing the node resource group restriction level in `aks create` and `aks update` +* Add `--nrg-lockdown-restriction-level ` option for chosing the node resource group restriction level in `aks create` and `aks update` 0.5.125 +++++++ 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 c3eb8cb9ec7..2ee304a36c8 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 @@ -3047,7 +3047,7 @@ def test_aks_create_and_update_with_nrg_restriction_level(self, resource_group, self.check('nodeResourceGroupProfile.restrictionLevel', 'ReadOnly') ]) - # update upgrade channel + # update the nrg restriction level self.cmd('aks update --resource-group={resource_group} --name={name} --nrg-lockdown-restriction-level Unrestricted --aks-custom-headers AKSHTTPCustomFeatures=Microsoft.ContainerService/NRGLockdownPreview', checks=[ self.check('provisioningState', 'Succeeded'), self.check('nodeResourceGroupProfile.restrictionLevel', 'Unrestricted') From 9494ead9f8cea0338e9aca62aa0613d1c0a56865 Mon Sep 17 00:00:00 2001 From: Charlie McBride Date: Wed, 18 Jan 2023 12:31:28 -0800 Subject: [PATCH 15/17] add exclusion --- src/aks-preview/linter_exclusions.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/aks-preview/linter_exclusions.yml b/src/aks-preview/linter_exclusions.yml index b2e587a2148..f0ff68c9ad1 100644 --- a/src/aks-preview/linter_exclusions.yml +++ b/src/aks-preview/linter_exclusions.yml @@ -101,6 +101,9 @@ aks update: data_collection_settings: rule_exclusions: - option_length_too_long + nrg_lockdown_restriction_level: + rule_exclusions: + - option_length_too_long aks delete: parameters: ignore_pod_disruption_budget: From b38c228832b8320e4dc928bea4289a1399adadf2 Mon Sep 17 00:00:00 2001 From: Charlie McBride Date: Wed, 18 Jan 2023 13:03:47 -0800 Subject: [PATCH 16/17] fix lint --- src/aks-preview/linter_exclusions.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/aks-preview/linter_exclusions.yml b/src/aks-preview/linter_exclusions.yml index f0ff68c9ad1..3c726a26fc4 100644 --- a/src/aks-preview/linter_exclusions.yml +++ b/src/aks-preview/linter_exclusions.yml @@ -45,6 +45,9 @@ aks create: data_collection_settings: rule_exclusions: - option_length_too_long + nrg_lockdown_restriction_level: + rule_exclusions: + - option_length_too_long aks update: parameters: enable_pod_identity_with_kubenet: From 258c2ab9d480398832907f484f152c4602cb163e Mon Sep 17 00:00:00 2001 From: Charlie McBride Date: Wed, 18 Jan 2023 13:04:00 -0800 Subject: [PATCH 17/17] run test --- ...and_update_with_nrg_restriction_level.yaml | 1382 ++++++++++++++++- 1 file changed, 1303 insertions(+), 79 deletions(-) diff --git a/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_and_update_with_nrg_restriction_level.yaml b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_and_update_with_nrg_restriction_level.yaml index ec9d818a5c9..12e31aaf101 100644 --- a/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_and_update_with_nrg_restriction_level.yaml +++ b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_and_update_with_nrg_restriction_level.yaml @@ -1,7 +1,7 @@ interactions: - request: body: '{"location": "westus2", "identity": {"type": "SystemAssigned"}, "properties": - {"kubernetesVersion": "", "dnsPrefix": "cliakstest-clitestttpefesf3-8ecadf", + {"kubernetesVersion": "", "dnsPrefix": "cliakstest-clitestadvu2ma7y-8ecadf", "agentPoolProfiles": [{"count": 3, "vmSize": "Standard_DS2_v2", "osDiskSizeGB": 0, "workloadRuntime": "OCIContainer", "osType": "Linux", "enableAutoScaling": false, "type": "VirtualMachineScaleSets", "mode": "System", "orchestratorVersion": @@ -46,9 +46,9 @@ interactions: : \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \ \ \"provisioningState\": \"Creating\",\n \"powerState\": {\n \"code\"\ : \"Running\"\n },\n \"kubernetesVersion\": \"1.24.6\",\n \"currentKubernetesVersion\"\ - : \"1.24.6\",\n \"dnsPrefix\": \"cliakstest-clitestttpefesf3-8ecadf\",\n\ - \ \"fqdn\": \"cliakstest-clitestttpefesf3-8ecadf-d1e33e4a.hcp.westus2.azmk8s.io\"\ - ,\n \"azurePortalFQDN\": \"cliakstest-clitestttpefesf3-8ecadf-d1e33e4a.portal.hcp.westus2.azmk8s.io\"\ + : \"1.24.6\",\n \"dnsPrefix\": \"cliakstest-clitestadvu2ma7y-8ecadf\",\n\ + \ \"fqdn\": \"cliakstest-clitestadvu2ma7y-8ecadf-87a0da27.hcp.westus2.azmk8s.io\"\ + ,\n \"azurePortalFQDN\": \"cliakstest-clitestadvu2ma7y-8ecadf-87a0da27.portal.hcp.westus2.azmk8s.io\"\ ,\n \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \ \ \"count\": 3,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\"\ : 128,\n \"osDiskType\": \"Managed\",\n \"kubeletDiskType\": \"OS\"\ @@ -88,7 +88,7 @@ interactions: : {\n \"name\": \"Basic\",\n \"tier\": \"Free\"\n }\n }" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/4f47c860-3562-48a8-a8c8-f1e2c84bb458?api-version=2016-03-30 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/a2820943-0cf2-4894-af48-89efc1bace7a?api-version=2016-03-30 cache-control: - no-cache content-length: @@ -96,7 +96,7 @@ interactions: content-type: - application/json date: - - Thu, 12 Jan 2023 23:49:00 GMT + - Wed, 18 Jan 2023 20:45:15 GMT expires: - '-1' pragma: @@ -130,11 +130,11 @@ interactions: - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b Python/3.10.9 (Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/4f47c860-3562-48a8-a8c8-f1e2c84bb458?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/a2820943-0cf2-4894-af48-89efc1bace7a?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"60c8474f-6235-a848-a8c8-f1e2c84bb458\",\n \"status\"\ - : \"InProgress\",\n \"startTime\": \"2023-01-12T23:49:01.3047888Z\"\n }" + string: "{\n \"name\": \"430982a2-f20c-9448-af48-89efc1bace7a\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2023-01-18T20:45:15.5130419Z\"\n }" headers: cache-control: - no-cache @@ -143,7 +143,7 @@ interactions: content-type: - application/json date: - - Thu, 12 Jan 2023 23:49:31 GMT + - Wed, 18 Jan 2023 20:45:45 GMT expires: - '-1' pragma: @@ -179,11 +179,11 @@ interactions: - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b Python/3.10.9 (Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/4f47c860-3562-48a8-a8c8-f1e2c84bb458?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/a2820943-0cf2-4894-af48-89efc1bace7a?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"60c8474f-6235-a848-a8c8-f1e2c84bb458\",\n \"status\"\ - : \"InProgress\",\n \"startTime\": \"2023-01-12T23:49:01.3047888Z\"\n }" + string: "{\n \"name\": \"430982a2-f20c-9448-af48-89efc1bace7a\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2023-01-18T20:45:15.5130419Z\"\n }" headers: cache-control: - no-cache @@ -192,7 +192,7 @@ interactions: content-type: - application/json date: - - Thu, 12 Jan 2023 23:50:01 GMT + - Wed, 18 Jan 2023 20:46:15 GMT expires: - '-1' pragma: @@ -228,11 +228,11 @@ interactions: - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b Python/3.10.9 (Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/4f47c860-3562-48a8-a8c8-f1e2c84bb458?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/a2820943-0cf2-4894-af48-89efc1bace7a?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"60c8474f-6235-a848-a8c8-f1e2c84bb458\",\n \"status\"\ - : \"InProgress\",\n \"startTime\": \"2023-01-12T23:49:01.3047888Z\"\n }" + string: "{\n \"name\": \"430982a2-f20c-9448-af48-89efc1bace7a\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2023-01-18T20:45:15.5130419Z\"\n }" headers: cache-control: - no-cache @@ -241,7 +241,7 @@ interactions: content-type: - application/json date: - - Thu, 12 Jan 2023 23:50:31 GMT + - Wed, 18 Jan 2023 20:46:45 GMT expires: - '-1' pragma: @@ -277,11 +277,11 @@ interactions: - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b Python/3.10.9 (Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/4f47c860-3562-48a8-a8c8-f1e2c84bb458?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/a2820943-0cf2-4894-af48-89efc1bace7a?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"60c8474f-6235-a848-a8c8-f1e2c84bb458\",\n \"status\"\ - : \"InProgress\",\n \"startTime\": \"2023-01-12T23:49:01.3047888Z\"\n }" + string: "{\n \"name\": \"430982a2-f20c-9448-af48-89efc1bace7a\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2023-01-18T20:45:15.5130419Z\"\n }" headers: cache-control: - no-cache @@ -290,7 +290,7 @@ interactions: content-type: - application/json date: - - Thu, 12 Jan 2023 23:51:01 GMT + - Wed, 18 Jan 2023 20:47:15 GMT expires: - '-1' pragma: @@ -326,11 +326,11 @@ interactions: - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b Python/3.10.9 (Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/4f47c860-3562-48a8-a8c8-f1e2c84bb458?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/a2820943-0cf2-4894-af48-89efc1bace7a?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"60c8474f-6235-a848-a8c8-f1e2c84bb458\",\n \"status\"\ - : \"InProgress\",\n \"startTime\": \"2023-01-12T23:49:01.3047888Z\"\n }" + string: "{\n \"name\": \"430982a2-f20c-9448-af48-89efc1bace7a\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2023-01-18T20:45:15.5130419Z\"\n }" headers: cache-control: - no-cache @@ -339,7 +339,7 @@ interactions: content-type: - application/json date: - - Thu, 12 Jan 2023 23:51:31 GMT + - Wed, 18 Jan 2023 20:47:46 GMT expires: - '-1' pragma: @@ -375,11 +375,11 @@ interactions: - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b Python/3.10.9 (Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/4f47c860-3562-48a8-a8c8-f1e2c84bb458?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/a2820943-0cf2-4894-af48-89efc1bace7a?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"60c8474f-6235-a848-a8c8-f1e2c84bb458\",\n \"status\"\ - : \"InProgress\",\n \"startTime\": \"2023-01-12T23:49:01.3047888Z\"\n }" + string: "{\n \"name\": \"430982a2-f20c-9448-af48-89efc1bace7a\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2023-01-18T20:45:15.5130419Z\"\n }" headers: cache-control: - no-cache @@ -388,7 +388,7 @@ interactions: content-type: - application/json date: - - Thu, 12 Jan 2023 23:52:02 GMT + - Wed, 18 Jan 2023 20:48:16 GMT expires: - '-1' pragma: @@ -424,11 +424,11 @@ interactions: - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b Python/3.10.9 (Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/4f47c860-3562-48a8-a8c8-f1e2c84bb458?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/a2820943-0cf2-4894-af48-89efc1bace7a?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"60c8474f-6235-a848-a8c8-f1e2c84bb458\",\n \"status\"\ - : \"InProgress\",\n \"startTime\": \"2023-01-12T23:49:01.3047888Z\"\n }" + string: "{\n \"name\": \"430982a2-f20c-9448-af48-89efc1bace7a\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2023-01-18T20:45:15.5130419Z\"\n }" headers: cache-control: - no-cache @@ -437,7 +437,7 @@ interactions: content-type: - application/json date: - - Thu, 12 Jan 2023 23:52:31 GMT + - Wed, 18 Jan 2023 20:48:45 GMT expires: - '-1' pragma: @@ -473,21 +473,1197 @@ interactions: - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b Python/3.10.9 (Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/4f47c860-3562-48a8-a8c8-f1e2c84bb458?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/a2820943-0cf2-4894-af48-89efc1bace7a?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"60c8474f-6235-a848-a8c8-f1e2c84bb458\",\n \"status\"\ - : \"Succeeded\",\n \"startTime\": \"2023-01-12T23:49:01.3047888Z\",\n \"\ - endTime\": \"2023-01-12T23:52:43.9042793Z\"\n }" + string: "{\n \"name\": \"430982a2-f20c-9448-af48-89efc1bace7a\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2023-01-18T20:45:15.5130419Z\"\n }" headers: cache-control: - no-cache content-length: - - '170' + - '126' + content-type: + - application/json + date: + - Wed, 18 Jan 2023 20:49:15 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --enable-managed-identity --nrg-lockdown-restriction-level + --ssh-key-value --aks-custom-headers + User-Agent: + - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b + Python/3.10.9 (Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/a2820943-0cf2-4894-af48-89efc1bace7a?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"430982a2-f20c-9448-af48-89efc1bace7a\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2023-01-18T20:45:15.5130419Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 18 Jan 2023 20:49:45 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --enable-managed-identity --nrg-lockdown-restriction-level + --ssh-key-value --aks-custom-headers + User-Agent: + - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b + Python/3.10.9 (Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/a2820943-0cf2-4894-af48-89efc1bace7a?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"430982a2-f20c-9448-af48-89efc1bace7a\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2023-01-18T20:45:15.5130419Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 18 Jan 2023 20:50:16 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --enable-managed-identity --nrg-lockdown-restriction-level + --ssh-key-value --aks-custom-headers + User-Agent: + - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b + Python/3.10.9 (Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/a2820943-0cf2-4894-af48-89efc1bace7a?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"430982a2-f20c-9448-af48-89efc1bace7a\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2023-01-18T20:45:15.5130419Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 18 Jan 2023 20:50:46 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --enable-managed-identity --nrg-lockdown-restriction-level + --ssh-key-value --aks-custom-headers + User-Agent: + - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b + Python/3.10.9 (Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/a2820943-0cf2-4894-af48-89efc1bace7a?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"430982a2-f20c-9448-af48-89efc1bace7a\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2023-01-18T20:45:15.5130419Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 18 Jan 2023 20:51:16 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --enable-managed-identity --nrg-lockdown-restriction-level + --ssh-key-value --aks-custom-headers + User-Agent: + - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b + Python/3.10.9 (Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/a2820943-0cf2-4894-af48-89efc1bace7a?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"430982a2-f20c-9448-af48-89efc1bace7a\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2023-01-18T20:45:15.5130419Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 18 Jan 2023 20:51:46 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --enable-managed-identity --nrg-lockdown-restriction-level + --ssh-key-value --aks-custom-headers + User-Agent: + - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b + Python/3.10.9 (Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/a2820943-0cf2-4894-af48-89efc1bace7a?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"430982a2-f20c-9448-af48-89efc1bace7a\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2023-01-18T20:45:15.5130419Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 18 Jan 2023 20:52:16 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --enable-managed-identity --nrg-lockdown-restriction-level + --ssh-key-value --aks-custom-headers + User-Agent: + - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b + Python/3.10.9 (Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/a2820943-0cf2-4894-af48-89efc1bace7a?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"430982a2-f20c-9448-af48-89efc1bace7a\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2023-01-18T20:45:15.5130419Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 18 Jan 2023 20:52:47 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --enable-managed-identity --nrg-lockdown-restriction-level + --ssh-key-value --aks-custom-headers + User-Agent: + - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b + Python/3.10.9 (Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/a2820943-0cf2-4894-af48-89efc1bace7a?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"430982a2-f20c-9448-af48-89efc1bace7a\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2023-01-18T20:45:15.5130419Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 18 Jan 2023 20:53:17 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --enable-managed-identity --nrg-lockdown-restriction-level + --ssh-key-value --aks-custom-headers + User-Agent: + - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b + Python/3.10.9 (Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/a2820943-0cf2-4894-af48-89efc1bace7a?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"430982a2-f20c-9448-af48-89efc1bace7a\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2023-01-18T20:45:15.5130419Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 18 Jan 2023 20:53:47 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --enable-managed-identity --nrg-lockdown-restriction-level + --ssh-key-value --aks-custom-headers + User-Agent: + - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b + Python/3.10.9 (Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/a2820943-0cf2-4894-af48-89efc1bace7a?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"430982a2-f20c-9448-af48-89efc1bace7a\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2023-01-18T20:45:15.5130419Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 18 Jan 2023 20:54:16 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --enable-managed-identity --nrg-lockdown-restriction-level + --ssh-key-value --aks-custom-headers + User-Agent: + - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b + Python/3.10.9 (Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/a2820943-0cf2-4894-af48-89efc1bace7a?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"430982a2-f20c-9448-af48-89efc1bace7a\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2023-01-18T20:45:15.5130419Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 18 Jan 2023 20:54:46 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --enable-managed-identity --nrg-lockdown-restriction-level + --ssh-key-value --aks-custom-headers + User-Agent: + - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b + Python/3.10.9 (Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/a2820943-0cf2-4894-af48-89efc1bace7a?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"430982a2-f20c-9448-af48-89efc1bace7a\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2023-01-18T20:45:15.5130419Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 18 Jan 2023 20:55:17 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --enable-managed-identity --nrg-lockdown-restriction-level + --ssh-key-value --aks-custom-headers + User-Agent: + - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b + Python/3.10.9 (Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/a2820943-0cf2-4894-af48-89efc1bace7a?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"430982a2-f20c-9448-af48-89efc1bace7a\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2023-01-18T20:45:15.5130419Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 18 Jan 2023 20:55:47 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --enable-managed-identity --nrg-lockdown-restriction-level + --ssh-key-value --aks-custom-headers + User-Agent: + - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b + Python/3.10.9 (Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/a2820943-0cf2-4894-af48-89efc1bace7a?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"430982a2-f20c-9448-af48-89efc1bace7a\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2023-01-18T20:45:15.5130419Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 18 Jan 2023 20:56:17 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --enable-managed-identity --nrg-lockdown-restriction-level + --ssh-key-value --aks-custom-headers + User-Agent: + - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b + Python/3.10.9 (Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/a2820943-0cf2-4894-af48-89efc1bace7a?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"430982a2-f20c-9448-af48-89efc1bace7a\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2023-01-18T20:45:15.5130419Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 18 Jan 2023 20:56:47 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --enable-managed-identity --nrg-lockdown-restriction-level + --ssh-key-value --aks-custom-headers + User-Agent: + - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b + Python/3.10.9 (Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/a2820943-0cf2-4894-af48-89efc1bace7a?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"430982a2-f20c-9448-af48-89efc1bace7a\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2023-01-18T20:45:15.5130419Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 18 Jan 2023 20:57:17 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --enable-managed-identity --nrg-lockdown-restriction-level + --ssh-key-value --aks-custom-headers + User-Agent: + - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b + Python/3.10.9 (Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/a2820943-0cf2-4894-af48-89efc1bace7a?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"430982a2-f20c-9448-af48-89efc1bace7a\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2023-01-18T20:45:15.5130419Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 18 Jan 2023 20:57:47 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --enable-managed-identity --nrg-lockdown-restriction-level + --ssh-key-value --aks-custom-headers + User-Agent: + - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b + Python/3.10.9 (Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/a2820943-0cf2-4894-af48-89efc1bace7a?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"430982a2-f20c-9448-af48-89efc1bace7a\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2023-01-18T20:45:15.5130419Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 18 Jan 2023 20:58:18 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --enable-managed-identity --nrg-lockdown-restriction-level + --ssh-key-value --aks-custom-headers + User-Agent: + - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b + Python/3.10.9 (Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/a2820943-0cf2-4894-af48-89efc1bace7a?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"430982a2-f20c-9448-af48-89efc1bace7a\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2023-01-18T20:45:15.5130419Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 18 Jan 2023 20:58:48 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --enable-managed-identity --nrg-lockdown-restriction-level + --ssh-key-value --aks-custom-headers + User-Agent: + - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b + Python/3.10.9 (Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/a2820943-0cf2-4894-af48-89efc1bace7a?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"430982a2-f20c-9448-af48-89efc1bace7a\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2023-01-18T20:45:15.5130419Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 18 Jan 2023 20:59:18 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --enable-managed-identity --nrg-lockdown-restriction-level + --ssh-key-value --aks-custom-headers + User-Agent: + - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b + Python/3.10.9 (Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/a2820943-0cf2-4894-af48-89efc1bace7a?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"430982a2-f20c-9448-af48-89efc1bace7a\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2023-01-18T20:45:15.5130419Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 18 Jan 2023 20:59:48 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --enable-managed-identity --nrg-lockdown-restriction-level + --ssh-key-value --aks-custom-headers + User-Agent: + - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b + Python/3.10.9 (Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/a2820943-0cf2-4894-af48-89efc1bace7a?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"430982a2-f20c-9448-af48-89efc1bace7a\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2023-01-18T20:45:15.5130419Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 18 Jan 2023 21:00:18 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --enable-managed-identity --nrg-lockdown-restriction-level + --ssh-key-value --aks-custom-headers + User-Agent: + - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b + Python/3.10.9 (Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/a2820943-0cf2-4894-af48-89efc1bace7a?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"430982a2-f20c-9448-af48-89efc1bace7a\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2023-01-18T20:45:15.5130419Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 18 Jan 2023 21:00:48 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --enable-managed-identity --nrg-lockdown-restriction-level + --ssh-key-value --aks-custom-headers + User-Agent: + - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b + Python/3.10.9 (Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/a2820943-0cf2-4894-af48-89efc1bace7a?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"430982a2-f20c-9448-af48-89efc1bace7a\",\n \"status\"\ + : \"Succeeded\",\n \"startTime\": \"2023-01-18T20:45:15.5130419Z\",\n \"\ + endTime\": \"2023-01-18T21:01:13.330201Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '169' content-type: - application/json date: - - Thu, 12 Jan 2023 23:53:01 GMT + - Wed, 18 Jan 2023 21:01:19 GMT expires: - '-1' pragma: @@ -531,9 +1707,9 @@ interactions: : \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \ \ \"provisioningState\": \"Succeeded\",\n \"powerState\": {\n \"code\"\ : \"Running\"\n },\n \"kubernetesVersion\": \"1.24.6\",\n \"currentKubernetesVersion\"\ - : \"1.24.6\",\n \"dnsPrefix\": \"cliakstest-clitestttpefesf3-8ecadf\",\n\ - \ \"fqdn\": \"cliakstest-clitestttpefesf3-8ecadf-d1e33e4a.hcp.westus2.azmk8s.io\"\ - ,\n \"azurePortalFQDN\": \"cliakstest-clitestttpefesf3-8ecadf-d1e33e4a.portal.hcp.westus2.azmk8s.io\"\ + : \"1.24.6\",\n \"dnsPrefix\": \"cliakstest-clitestadvu2ma7y-8ecadf\",\n\ + \ \"fqdn\": \"cliakstest-clitestadvu2ma7y-8ecadf-87a0da27.hcp.westus2.azmk8s.io\"\ + ,\n \"azurePortalFQDN\": \"cliakstest-clitestadvu2ma7y-8ecadf-87a0da27.portal.hcp.westus2.azmk8s.io\"\ ,\n \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \ \ \"count\": 3,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\"\ : 128,\n \"osDiskType\": \"Managed\",\n \"kubeletDiskType\": \"OS\"\ @@ -557,7 +1733,7 @@ interactions: : {\n \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\": \"Standard\"\ ,\n \"loadBalancerProfile\": {\n \"managedOutboundIPs\": {\n \"\ count\": 1\n },\n \"effectiveOutboundIPs\": [\n {\n \"\ - id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.Network/publicIPAddresses/575c2af7-d919-486d-8a66-360df0150e3f\"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.Network/publicIPAddresses/525e200d-308e-4604-bdf7-c578b46ffa33\"\ \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 \"dockerBridgeCidr\": \"172.17.0.1/16\"\ @@ -584,7 +1760,7 @@ interactions: content-type: - application/json date: - - Thu, 12 Jan 2023 23:53:02 GMT + - Wed, 18 Jan 2023 21:01:20 GMT expires: - '-1' pragma: @@ -627,9 +1803,9 @@ interactions: : \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \ \ \"provisioningState\": \"Succeeded\",\n \"powerState\": {\n \"code\"\ : \"Running\"\n },\n \"kubernetesVersion\": \"1.24.6\",\n \"currentKubernetesVersion\"\ - : \"1.24.6\",\n \"dnsPrefix\": \"cliakstest-clitestttpefesf3-8ecadf\",\n\ - \ \"fqdn\": \"cliakstest-clitestttpefesf3-8ecadf-d1e33e4a.hcp.westus2.azmk8s.io\"\ - ,\n \"azurePortalFQDN\": \"cliakstest-clitestttpefesf3-8ecadf-d1e33e4a.portal.hcp.westus2.azmk8s.io\"\ + : \"1.24.6\",\n \"dnsPrefix\": \"cliakstest-clitestadvu2ma7y-8ecadf\",\n\ + \ \"fqdn\": \"cliakstest-clitestadvu2ma7y-8ecadf-87a0da27.hcp.westus2.azmk8s.io\"\ + ,\n \"azurePortalFQDN\": \"cliakstest-clitestadvu2ma7y-8ecadf-87a0da27.portal.hcp.westus2.azmk8s.io\"\ ,\n \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \ \ \"count\": 3,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\"\ : 128,\n \"osDiskType\": \"Managed\",\n \"kubeletDiskType\": \"OS\"\ @@ -653,7 +1829,7 @@ interactions: : {\n \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\": \"Standard\"\ ,\n \"loadBalancerProfile\": {\n \"managedOutboundIPs\": {\n \"\ count\": 1\n },\n \"effectiveOutboundIPs\": [\n {\n \"\ - id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.Network/publicIPAddresses/575c2af7-d919-486d-8a66-360df0150e3f\"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.Network/publicIPAddresses/525e200d-308e-4604-bdf7-c578b46ffa33\"\ \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 \"dockerBridgeCidr\": \"172.17.0.1/16\"\ @@ -680,7 +1856,7 @@ interactions: content-type: - application/json date: - - Thu, 12 Jan 2023 23:53:03 GMT + - Wed, 18 Jan 2023 21:01:21 GMT expires: - '-1' pragma: @@ -701,7 +1877,7 @@ interactions: - request: body: '{"location": "westus2", "sku": {"name": "Basic", "tier": "Free"}, "identity": {"type": "SystemAssigned"}, "properties": {"kubernetesVersion": "1.24.6", "dnsPrefix": - "cliakstest-clitestttpefesf3-8ecadf", "agentPoolProfiles": [{"count": 3, "vmSize": + "cliakstest-clitestadvu2ma7y-8ecadf", "agentPoolProfiles": [{"count": 3, "vmSize": "Standard_DS2_v2", "osDiskSizeGB": 128, "osDiskType": "Managed", "kubeletDiskType": "OS", "workloadRuntime": "OCIContainer", "maxPods": 110, "osType": "Linux", "osSKU": "Ubuntu", "enableAutoScaling": false, "type": "VirtualMachineScaleSets", @@ -717,7 +1893,7 @@ interactions: "kubenet", "podCidr": "10.244.0.0/16", "serviceCidr": "10.0.0.0/16", "dnsServiceIP": "10.0.0.10", "dockerBridgeCidr": "172.17.0.1/16", "outboundType": "loadBalancer", "loadBalancerSku": "Standard", "loadBalancerProfile": {"managedOutboundIPs": - {"count": 1, "countIPv6": 0}, "effectiveOutboundIPs": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.Network/publicIPAddresses/575c2af7-d919-486d-8a66-360df0150e3f"}], + {"count": 1, "countIPv6": 0}, "effectiveOutboundIPs": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.Network/publicIPAddresses/525e200d-308e-4604-bdf7-c578b46ffa33"}], "backendPoolType": "nodeIPConfiguration"}, "podCidrs": ["10.244.0.0/16"], "serviceCidrs": ["10.0.0.0/16"], "ipFamilies": ["IPv4"]}, "identityProfile": {"kubeletidentity": {"resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cliakstest000002-agentpool", @@ -753,9 +1929,9 @@ interactions: : \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \ \ \"provisioningState\": \"Updating\",\n \"powerState\": {\n \"code\"\ : \"Running\"\n },\n \"kubernetesVersion\": \"1.24.6\",\n \"currentKubernetesVersion\"\ - : \"1.24.6\",\n \"dnsPrefix\": \"cliakstest-clitestttpefesf3-8ecadf\",\n\ - \ \"fqdn\": \"cliakstest-clitestttpefesf3-8ecadf-d1e33e4a.hcp.westus2.azmk8s.io\"\ - ,\n \"azurePortalFQDN\": \"cliakstest-clitestttpefesf3-8ecadf-d1e33e4a.portal.hcp.westus2.azmk8s.io\"\ + : \"1.24.6\",\n \"dnsPrefix\": \"cliakstest-clitestadvu2ma7y-8ecadf\",\n\ + \ \"fqdn\": \"cliakstest-clitestadvu2ma7y-8ecadf-87a0da27.hcp.westus2.azmk8s.io\"\ + ,\n \"azurePortalFQDN\": \"cliakstest-clitestadvu2ma7y-8ecadf-87a0da27.portal.hcp.westus2.azmk8s.io\"\ ,\n \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \ \ \"count\": 3,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\"\ : 128,\n \"osDiskType\": \"Managed\",\n \"kubeletDiskType\": \"OS\"\ @@ -779,7 +1955,7 @@ interactions: : {\n \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\": \"Standard\"\ ,\n \"loadBalancerProfile\": {\n \"managedOutboundIPs\": {\n \"\ count\": 1\n },\n \"effectiveOutboundIPs\": [\n {\n \"\ - id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.Network/publicIPAddresses/575c2af7-d919-486d-8a66-360df0150e3f\"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.Network/publicIPAddresses/525e200d-308e-4604-bdf7-c578b46ffa33\"\ \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 \"dockerBridgeCidr\": \"172.17.0.1/16\"\ @@ -800,7 +1976,7 @@ interactions: : {\n \"name\": \"Basic\",\n \"tier\": \"Free\"\n }\n }" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/6d512844-317a-4850-bf32-45aa2b2ffd56?api-version=2016-03-30 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/77031ba3-a8d0-4380-927c-4708792d21b0?api-version=2016-03-30 cache-control: - no-cache content-length: @@ -808,7 +1984,7 @@ interactions: content-type: - application/json date: - - Thu, 12 Jan 2023 23:53:06 GMT + - Wed, 18 Jan 2023 21:01:24 GMT expires: - '-1' pragma: @@ -845,11 +2021,59 @@ interactions: - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b Python/3.10.9 (Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/6d512844-317a-4850-bf32-45aa2b2ffd56?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/77031ba3-a8d0-4380-927c-4708792d21b0?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"a31b0377-d0a8-8043-927c-4708792d21b0\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2023-01-18T21:01:24.6692217Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 18 Jan 2023 21:01:54 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --nrg-lockdown-restriction-level --aks-custom-headers + User-Agent: + - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b + Python/3.10.9 (Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/77031ba3-a8d0-4380-927c-4708792d21b0?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"4428516d-7a31-5048-bf32-45aa2b2ffd56\",\n \"status\"\ - : \"InProgress\",\n \"startTime\": \"2023-01-12T23:53:06.8363086Z\"\n }" + string: "{\n \"name\": \"a31b0377-d0a8-8043-927c-4708792d21b0\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2023-01-18T21:01:24.6692217Z\"\n }" headers: cache-control: - no-cache @@ -858,7 +2082,7 @@ interactions: content-type: - application/json date: - - Thu, 12 Jan 2023 23:53:36 GMT + - Wed, 18 Jan 2023 21:02:24 GMT expires: - '-1' pragma: @@ -893,11 +2117,11 @@ interactions: - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b Python/3.10.9 (Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/6d512844-317a-4850-bf32-45aa2b2ffd56?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/77031ba3-a8d0-4380-927c-4708792d21b0?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"4428516d-7a31-5048-bf32-45aa2b2ffd56\",\n \"status\"\ - : \"InProgress\",\n \"startTime\": \"2023-01-12T23:53:06.8363086Z\"\n }" + string: "{\n \"name\": \"a31b0377-d0a8-8043-927c-4708792d21b0\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2023-01-18T21:01:24.6692217Z\"\n }" headers: cache-control: - no-cache @@ -906,7 +2130,7 @@ interactions: content-type: - application/json date: - - Thu, 12 Jan 2023 23:54:06 GMT + - Wed, 18 Jan 2023 21:02:54 GMT expires: - '-1' pragma: @@ -941,12 +2165,12 @@ interactions: - AZURECLI/2.44.1 (DOCKER) azsdk-python-azure-mgmt-containerservice/21.0.0b Python/3.10.9 (Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/6d512844-317a-4850-bf32-45aa2b2ffd56?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/77031ba3-a8d0-4380-927c-4708792d21b0?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"4428516d-7a31-5048-bf32-45aa2b2ffd56\",\n \"status\"\ - : \"Succeeded\",\n \"startTime\": \"2023-01-12T23:53:06.8363086Z\",\n \"\ - endTime\": \"2023-01-12T23:54:36.1384914Z\"\n }" + string: "{\n \"name\": \"a31b0377-d0a8-8043-927c-4708792d21b0\",\n \"status\"\ + : \"Succeeded\",\n \"startTime\": \"2023-01-18T21:01:24.6692217Z\",\n \"\ + endTime\": \"2023-01-18T21:03:15.8935796Z\"\n }" headers: cache-control: - no-cache @@ -955,7 +2179,7 @@ interactions: content-type: - application/json date: - - Thu, 12 Jan 2023 23:54:36 GMT + - Wed, 18 Jan 2023 21:03:25 GMT expires: - '-1' pragma: @@ -998,9 +2222,9 @@ interactions: : \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \ \ \"provisioningState\": \"Succeeded\",\n \"powerState\": {\n \"code\"\ : \"Running\"\n },\n \"kubernetesVersion\": \"1.24.6\",\n \"currentKubernetesVersion\"\ - : \"1.24.6\",\n \"dnsPrefix\": \"cliakstest-clitestttpefesf3-8ecadf\",\n\ - \ \"fqdn\": \"cliakstest-clitestttpefesf3-8ecadf-d1e33e4a.hcp.westus2.azmk8s.io\"\ - ,\n \"azurePortalFQDN\": \"cliakstest-clitestttpefesf3-8ecadf-d1e33e4a.portal.hcp.westus2.azmk8s.io\"\ + : \"1.24.6\",\n \"dnsPrefix\": \"cliakstest-clitestadvu2ma7y-8ecadf\",\n\ + \ \"fqdn\": \"cliakstest-clitestadvu2ma7y-8ecadf-87a0da27.hcp.westus2.azmk8s.io\"\ + ,\n \"azurePortalFQDN\": \"cliakstest-clitestadvu2ma7y-8ecadf-87a0da27.portal.hcp.westus2.azmk8s.io\"\ ,\n \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \ \ \"count\": 3,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\"\ : 128,\n \"osDiskType\": \"Managed\",\n \"kubeletDiskType\": \"OS\"\ @@ -1024,7 +2248,7 @@ interactions: : {\n \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\": \"Standard\"\ ,\n \"loadBalancerProfile\": {\n \"managedOutboundIPs\": {\n \"\ count\": 1\n },\n \"effectiveOutboundIPs\": [\n {\n \"\ - id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.Network/publicIPAddresses/575c2af7-d919-486d-8a66-360df0150e3f\"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.Network/publicIPAddresses/525e200d-308e-4604-bdf7-c578b46ffa33\"\ \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 \"dockerBridgeCidr\": \"172.17.0.1/16\"\ @@ -1051,7 +2275,7 @@ interactions: content-type: - application/json date: - - Thu, 12 Jan 2023 23:54:37 GMT + - Wed, 18 Jan 2023 21:03:25 GMT expires: - '-1' pragma: @@ -1094,17 +2318,17 @@ interactions: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/12d1ab6b-693f-4e89-a6e9-65232d84191a?api-version=2016-03-30 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/b86fc1d8-0fab-467a-80f8-181b90826f2e?api-version=2016-03-30 cache-control: - no-cache content-length: - '0' date: - - Thu, 12 Jan 2023 23:54:39 GMT + - Wed, 18 Jan 2023 21:03:27 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operationresults/12d1ab6b-693f-4e89-a6e9-65232d84191a?api-version=2016-03-30 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operationresults/b86fc1d8-0fab-467a-80f8-181b90826f2e?api-version=2016-03-30 pragma: - no-cache server: