From 74c32fe50dffc53efe99c1e08862c6398a469327 Mon Sep 17 00:00:00 2001 From: ccc Date: Thu, 20 Oct 2022 14:17:52 +0800 Subject: [PATCH] [AKS] Add NSG Control flags for `az aks create` / `az aks nodepool add` / `az aks nodepool update` (#5467) * Add NSG Control flags * Fix * Add aks command test * Fix aks command test * Fix ut * Fix UT * Fix live test * Fix typo --- src/aks-preview/HISTORY.rst | 8 + src/aks-preview/azext_aks_preview/_help.py | 18 + src/aks-preview/azext_aks_preview/_params.py | 8 + .../azext_aks_preview/_validators.py | 35 +- .../azext_aks_preview/agentpool_decorator.py | 75 + src/aks-preview/azext_aks_preview/custom.py | 6 + .../managed_cluster_decorator.py | 6 +- .../test_aks_create_with_nsg_control.yaml | 1169 +++++++++++ ..._aks_nodepool_create_with_nsg_control.yaml | 1757 +++++++++++++++++ ..._aks_nodepool_update_with_nsg_control.yaml | 1565 +++++++++++++++ .../tests/latest/test_aks_commands.py | 172 ++ .../tests/latest/test_validators.py | 60 + src/aks-preview/linter_exclusions.yml | 3 + src/aks-preview/setup.py | 2 +- 14 files changed, 4879 insertions(+), 5 deletions(-) create mode 100644 src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_with_nsg_control.yaml create mode 100644 src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_nodepool_create_with_nsg_control.yaml create mode 100644 src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_nodepool_update_with_nsg_control.yaml diff --git a/src/aks-preview/HISTORY.rst b/src/aks-preview/HISTORY.rst index 1a56c1282c5..090ed5b1e25 100644 --- a/src/aks-preview/HISTORY.rst +++ b/src/aks-preview/HISTORY.rst @@ -12,6 +12,14 @@ To release a new version, please select a new version number (usually plus 1 to Pending +++++++ +0.5.110 ++++++++ + +* Add `--nodepool-asg-ids` and `--nodepool-allowed-host-ports` flags for enabling NSGControl. Related commands: + * `az aks create` + * `az aks nodepool add` + * `az aks nodepool update` + 0.5.109 +++++++ diff --git a/src/aks-preview/azext_aks_preview/_help.py b/src/aks-preview/azext_aks_preview/_help.py index d3bf7cd96fa..c95e7be4b13 100644 --- a/src/aks-preview/azext_aks_preview/_help.py +++ b/src/aks-preview/azext_aks_preview/_help.py @@ -485,6 +485,12 @@ - name: --enable-vpa type: bool short-summary: Enable vertical pod autoscaler for cluster. + - name: --nodepool-allowed-host-ports + type: string + short-summary: Expose host ports on the node pool. When specified, format should be a comma-separated list of ranges with protocol, eg. 80/TCP,443/TCP,4000-5000/TCP. + - name: --nodepool-asg-ids + type: string + short-summary: The IDs of the application security groups to which the node pool's network interface should belong. When specified, format should be a comma-separated list of IDs. examples: - name: Create a Kubernetes cluster with an existing SSH public key. text: az aks create -g MyResourceGroup -n MyManagedCluster --ssh-key-value /path/to/publickey @@ -1278,6 +1284,12 @@ - name: --disable-windows-outbound-nat type: bool short-summary: Disable Windows OutboundNAT on Windows agent node pool. + - name: --allowed-host-ports + type: string + short-summary: Expose host ports on the node pool. When specified, format should be a comma-separated list of ranges with protocol, eg. 80/TCP,443/TCP,4000-5000/TCP. + - name: --asg-ids + type: string + short-summary: The IDs of the application security groups to which the node pool's network interface should belong. When specified, format should be a comma-separated list of IDs. examples: - name: Create a nodepool in an existing AKS cluster with ephemeral os enabled. text: az aks nodepool add -g MyResourceGroup -n nodepool1 --cluster-name MyManagedCluster --node-osdisk-type Ephemeral --node-osdisk-size 48 @@ -1369,6 +1381,12 @@ - name: --aks-custom-headers type: string short-summary: Send custom headers. When specified, format should be Key1=Value1,Key2=Value2 + - name: --allowed-host-ports + type: string + short-summary: Expose host ports on the node pool. When specified, format should be a comma-separated list of ranges with protocol, eg. 80/TCP,443/TCP,4000-5000/TCP. + - name: --asg-ids + type: string + short-summary: The IDs of the application security groups to which the node pool's network interface should belong. When specified, format should be a comma-separated list of IDs. examples: - name: Reconcile the nodepool back to its current state. text: az aks nodepool update -g MyResourceGroup -n nodepool1 --cluster-name MyManagedCluster diff --git a/src/aks-preview/azext_aks_preview/_params.py b/src/aks-preview/azext_aks_preview/_params.py index 28cd6af313a..6848b044604 100644 --- a/src/aks-preview/azext_aks_preview/_params.py +++ b/src/aks-preview/azext_aks_preview/_params.py @@ -128,6 +128,8 @@ validate_ksm_labels, validate_ksm_annotations, validate_disable_windows_outbound_nat, + validate_allowed_host_ports, + validate_application_security_groups, ) # candidates for enumeration @@ -344,6 +346,8 @@ def load_arguments(self, _): # no validation for aks create because it already only supports Linux. c.argument('enable_custom_ca_trust', action='store_true') c.argument('enable_vpa', action='store_true', is_preview=True, help="enable vertical pod autoscaler for cluster") + c.argument('nodepool_allowed_host_ports', validator=validate_allowed_host_ports, is_preview=True, help="allowed host ports for agentpool") + c.argument('nodepool_asg_ids', validator=validate_application_security_groups, is_preview=True, help="application security groups for agentpool") with self.argument_context('aks update') as c: # managed cluster paramerters @@ -507,6 +511,8 @@ def load_arguments(self, _): c.argument('gpu_instance_profile', arg_type=get_enum_type(gpu_instance_profiles)) c.argument('enable_custom_ca_trust', action='store_true', validator=validate_enable_custom_ca_trust) c.argument('disable_windows_outbound_nat', action='store_true', validator=validate_disable_windows_outbound_nat) + c.argument('allowed_host_ports', validator=validate_allowed_host_ports, is_preview=True) + c.argument('asg_ids', validator=validate_application_security_groups, is_preview=True) with self.argument_context('aks nodepool update') as c: c.argument('enable_cluster_autoscaler', options_list=[ @@ -526,6 +532,8 @@ def load_arguments(self, _): # extensions c.argument('enable_custom_ca_trust', action='store_true', validator=validate_enable_custom_ca_trust) c.argument('disable_custom_ca_trust', options_list=['--disable-custom-ca-trust', '--dcat'], action='store_true') + c.argument('allowed_host_ports', validator=validate_allowed_host_ports, is_preview=True) + c.argument('asg_ids', validator=validate_application_security_groups, is_preview=True) with self.argument_context('aks nodepool upgrade') as c: c.argument('max_surge', validator=validate_max_surge) diff --git a/src/aks-preview/azext_aks_preview/_validators.py b/src/aks-preview/azext_aks_preview/_validators.py index 6e69efe0be0..0ee667e8bb9 100644 --- a/src/aks-preview/azext_aks_preview/_validators.py +++ b/src/aks-preview/azext_aks_preview/_validators.py @@ -316,7 +316,8 @@ def validate_load_balancer_idle_timeout(namespace): def validate_load_balancer_backend_pool_type(namespace): """validate load balancer backend pool type""" if namespace.load_balancer_backend_pool_type is not None: - if namespace.load_balancer_backend_pool_type not in [CONST_LOAD_BALANCER_BACKEND_POOL_TYPE_NODE_IP, CONST_LOAD_BALANCER_BACKEND_POOL_TYPE_NODE_IPCONFIGURATION]: + if namespace.load_balancer_backend_pool_type not in [CONST_LOAD_BALANCER_BACKEND_POOL_TYPE_NODE_IP, + CONST_LOAD_BALANCER_BACKEND_POOL_TYPE_NODE_IPCONFIGURATION]: raise InvalidArgumentValueError( f"Invalid Load Balancer Backend Pool Type {namespace.load_balancer_backend_pool_type}, supported values are nodeIP and nodeIPConfiguration") @@ -739,3 +740,35 @@ def validate_ksm_annotations(namespace): if namespace.ksm_metric_annotations_allow_list is None: return validate_ksm_parameter(namespace.ksm_metric_annotations_allow_list) + + +def validate_allowed_host_ports(namespace): + if hasattr(namespace, "nodepool_allowed_host_ports"): + host_ports = namespace.nodepool_allowed_host_ports + else: + host_ports = namespace.allowed_host_ports + if not host_ports: + return + + regex = re.compile(r'^((\d+)|(\d+-\d+))/(tcp|udp)$') + for port_range in host_ports.split(","): + found = regex.findall(port_range) + if found: + continue + raise InvalidArgumentValueError( + "--allowed-host-ports must be a comma-separated list of port ranges in the format of /" + ) + + +def validate_application_security_groups(namespace): + if hasattr((namespace), "nodepool_asg_ids"): + asg_ids = namespace.nodepool_asg_ids + else: + asg_ids = namespace.asg_ids + if not asg_ids: + return + + from msrestazure.tools import is_valid_resource_id + for asg in asg_ids.split(","): + if not is_valid_resource_id(asg): + raise InvalidArgumentValueError(asg + " is not a valid Azure resource ID.") diff --git a/src/aks-preview/azext_aks_preview/agentpool_decorator.py b/src/aks-preview/azext_aks_preview/agentpool_decorator.py index 07056d013f0..ff82f67a4c4 100644 --- a/src/aks-preview/azext_aks_preview/agentpool_decorator.py +++ b/src/aks-preview/azext_aks_preview/agentpool_decorator.py @@ -34,6 +34,7 @@ # type variables AgentPool = TypeVar("AgentPool") AgentPoolsOperations = TypeVar("AgentPoolsOperations") +PortRange = TypeVar("PortRange") # pylint: disable=too-few-public-methods @@ -260,6 +261,49 @@ def get_disable_windows_outbound_nat(self) -> bool: """ return self._get_disable_windows_outbound_nat() + def get_asg_ids(self) -> Union[List[str], None]: + if self.agentpool_decorator_mode == AgentPoolDecoratorMode.MANAGED_CLUSTER: + asg_ids = self.raw_param.get('nodepool_asg_ids') + else: + asg_ids = self.raw_param.get('asg_ids') + + if asg_ids is None: + return None + if asg_ids == '': + return [] + + return asg_ids.split(',') + + def get_allowed_host_ports(self) -> Union[List[PortRange], None]: + if self.agentpool_decorator_mode == AgentPoolDecoratorMode.MANAGED_CLUSTER: + ports = self.raw_param.get('nodepool_allowed_host_ports') + else: + ports = self.raw_param.get('allowed_host_ports') + + if ports is None: + return None + if ports == '': + return [] + + ports = ports.split(',') + port_ranges = [] + import re + regex = re.compile(r'^((\d+)|((\d+)-(\d+)))/(tcp|udp)$') + for port in ports: + r = regex.findall(port) + if r[0][1] != '': + # single port + port_start, port_end = int(r[0][1]), int(r[0][1]) + else: + # port range + port_start, port_end = int(r[0][3]), int(r[0][4]) + port_ranges.append(self.models.PortRange( + port_start=port_start, + port_end=port_end, + protocol=r[0][5].upper(), + )) + return port_ranges + class AKSPreviewAgentPoolAddDecorator(AKSAgentPoolAddDecorator): def __init__( @@ -353,6 +397,18 @@ def set_up_agentpool_windows_profile(self, agentpool: AgentPool) -> AgentPool: return agentpool + def set_up_agentpool_network_profile(self, agentpool: AgentPool) -> AgentPool: + self._ensure_agentpool(agentpool) + + asg_ids = self.context.get_asg_ids() + allowed_host_ports = self.context.get_allowed_host_ports() + if asg_ids and allowed_host_ports: + agentpool.network_profile = self.models.AgentPoolNetworkProfile( + application_security_groups=asg_ids, + allowed_host_ports=allowed_host_ports, + ) + return agentpool + def construct_agentpool_profile_preview(self) -> AgentPool: """The overall controller used to construct the preview AgentPool profile. @@ -374,6 +430,8 @@ def construct_agentpool_profile_preview(self) -> AgentPool: agentpool = self.set_up_custom_ca_trust(agentpool) # set up agentpool windows profile agentpool = self.set_up_agentpool_windows_profile(agentpool) + # set up agentpool network profile + agentpool = self.set_up_agentpool_network_profile(agentpool) # DO NOT MOVE: keep this at the bottom, restore defaults agentpool = self._restore_defaults_in_agentpool(agentpool) @@ -427,6 +485,19 @@ def update_custom_ca_trust(self, agentpool: AgentPool) -> AgentPool: agentpool.enable_custom_ca_trust = False return agentpool + def update_network_profile(self, agentpool: AgentPool) -> AgentPool: + self._ensure_agentpool(agentpool) + + asg_ids = self.context.get_asg_ids() + allowed_host_ports = self.context.get_allowed_host_ports() + if asg_ids or allowed_host_ports: + agentpool.network_profile = self.models.AgentPoolNetworkProfile() + if asg_ids is not None: + agentpool.network_profile.application_security_groups = asg_ids + if allowed_host_ports is not None: + agentpool.network_profile.allowed_host_ports = allowed_host_ports + return agentpool + def update_agentpool_profile_preview(self, agentpools: List[AgentPool] = None) -> AgentPool: """The overall controller used to update the preview AgentPool profile. @@ -440,4 +511,8 @@ def update_agentpool_profile_preview(self, agentpools: List[AgentPool] = None) - # update custom ca trust agentpool = self.update_custom_ca_trust(agentpool) + + # update network profile + agentpool = self.update_network_profile(agentpool) + return agentpool diff --git a/src/aks-preview/azext_aks_preview/custom.py b/src/aks-preview/azext_aks_preview/custom.py index 35d6e9b25b1..2868a7e8a62 100644 --- a/src/aks-preview/azext_aks_preview/custom.py +++ b/src/aks-preview/azext_aks_preview/custom.py @@ -627,6 +627,8 @@ def aks_create( node_count=3, nodepool_tags=None, nodepool_labels=None, + nodepool_allowed_host_ports=None, + nodepool_asg_ids=None, node_osdisk_type=None, node_osdisk_size=0, vm_set_type=None, @@ -1172,6 +1174,8 @@ def aks_agentpool_add( gpu_instance_profile=None, enable_custom_ca_trust=False, disable_windows_outbound_nat=False, + allowed_host_ports=None, + asg_ids=None, ): # DO NOT MOVE: get all the original parameters and save them as a dictionary raw_parameters = locals() @@ -1219,6 +1223,8 @@ def aks_agentpool_update( # extensions enable_custom_ca_trust=False, disable_custom_ca_trust=False, + allowed_host_ports=None, + asg_ids=None, ): # DO NOT MOVE: get all the original parameters and save them as a dictionary raw_parameters = locals() diff --git a/src/aks-preview/azext_aks_preview/managed_cluster_decorator.py b/src/aks-preview/azext_aks_preview/managed_cluster_decorator.py index 947b94c287f..7cd115ed38d 100644 --- a/src/aks-preview/azext_aks_preview/managed_cluster_decorator.py +++ b/src/aks-preview/azext_aks_preview/managed_cluster_decorator.py @@ -1948,9 +1948,9 @@ def _get_enable_azure_monitor_metrics(self, enable_validation: bool = False) -> "Cannot specify --enable-azuremonitormetrics and --enable-azuremonitormetrics at the same time." ) if not check_is_msi_cluster(self.mc): - raise RequiredArgumentMissingError( - "--enable-azuremonitormetrics can only be specified for clusters with managed identity enabled" - ) + raise RequiredArgumentMissingError( + "--enable-azuremonitormetrics can only be specified for clusters with managed identity enabled" + ) return enable_azure_monitor_metrics def get_enable_azure_monitor_metrics(self) -> bool: diff --git a/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_with_nsg_control.yaml b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_with_nsg_control.yaml new file mode 100644 index 00000000000..7f25b3bc287 --- /dev/null +++ b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_with_nsg_control.yaml @@ -0,0 +1,1169 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network asg create + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group -o + User-Agent: + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.14 (macOS-12.6-arm64-arm-64bit) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001","name":"clitest000001","type":"Microsoft.Resources/resourceGroups","location":"eastus","tags":{"product":"azurecli","cause":"automation","date":"2022-10-19T10:06:17Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '304' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 19 Oct 2022 10:06:24 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"location": "eastus"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network asg create + Connection: + - keep-alive + Content-Length: + - '22' + Content-Type: + - application/json + ParameterSetName: + - --name --resource-group -o + User-Agent: + - AZURECLI/2.41.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.14 (macOS-12.6-arm64-arm-64bit) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/applicationSecurityGroups/asg1?api-version=2021-08-01 + response: + body: + string: "{\r\n \"name\": \"asg1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/applicationSecurityGroups/asg1\"\ + ,\r\n \"etag\": \"W/\\\"7c4f9beb-cb39-420f-9395-7231bd803fe5\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/applicationSecurityGroups\",\r\n \"location\"\ + : \"eastus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\ + \r\n }\r\n}" + headers: + azure-asyncnotification: + - Enabled + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/d60280bc-8476-476b-824c-3ceab7219a2d?api-version=2021-08-01 + cache-control: + - no-cache + content-length: + - '376' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 19 Oct 2022 10:06:29 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - ef2acfa4-7040-4c04-a7d9-f5e0c137c5c5 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network asg create + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group -o + User-Agent: + - AZURECLI/2.41.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.14 (macOS-12.6-arm64-arm-64bit) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/d60280bc-8476-476b-824c-3ceab7219a2d?api-version=2021-08-01 + response: + body: + string: "{\r\n \"status\": \"Succeeded\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '29' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 19 Oct 2022 10:06:31 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 62eca40a-c3e7-4b53-af73-a3520fd8b056 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network asg create + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group -o + User-Agent: + - AZURECLI/2.41.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.14 (macOS-12.6-arm64-arm-64bit) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/applicationSecurityGroups/asg1?api-version=2021-08-01 + response: + body: + string: "{\r\n \"name\": \"asg1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/applicationSecurityGroups/asg1\"\ + ,\r\n \"etag\": \"W/\\\"06e1c6d8-9765-4c3e-8611-2d3959bc1ae9\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/applicationSecurityGroups\",\r\n \"location\"\ + : \"eastus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + \r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '377' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 19 Oct 2022 10:06:31 GMT + etag: + - W/"06e1c6d8-9765-4c3e-8611-2d3959bc1ae9" + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - e737fe65-1c06-4796-89d6-7a284800995f + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network asg create + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group -o + User-Agent: + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.14 (macOS-12.6-arm64-arm-64bit) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001","name":"clitest000001","type":"Microsoft.Resources/resourceGroups","location":"eastus","tags":{"product":"azurecli","cause":"automation","date":"2022-10-19T10:06:17Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '304' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 19 Oct 2022 10:06:32 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"location": "eastus"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network asg create + Connection: + - keep-alive + Content-Length: + - '22' + Content-Type: + - application/json + ParameterSetName: + - --name --resource-group -o + User-Agent: + - AZURECLI/2.41.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.14 (macOS-12.6-arm64-arm-64bit) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/applicationSecurityGroups/asg2?api-version=2021-08-01 + response: + body: + string: "{\r\n \"name\": \"asg2\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/applicationSecurityGroups/asg2\"\ + ,\r\n \"etag\": \"W/\\\"d323f5dd-ce97-4d6a-ac57-7986b53dff14\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/applicationSecurityGroups\",\r\n \"location\"\ + : \"eastus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\ + \r\n }\r\n}" + headers: + azure-asyncnotification: + - Enabled + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/69f7e21f-8d67-4e6c-a29b-078dd0e36640?api-version=2021-08-01 + cache-control: + - no-cache + content-length: + - '376' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 19 Oct 2022 10:06:37 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 5fda085b-ad96-4e9a-a4b8-0249c479c30d + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network asg create + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group -o + User-Agent: + - AZURECLI/2.41.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.14 (macOS-12.6-arm64-arm-64bit) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/69f7e21f-8d67-4e6c-a29b-078dd0e36640?api-version=2021-08-01 + response: + body: + string: "{\r\n \"status\": \"Succeeded\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '29' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 19 Oct 2022 10:06:38 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - d1028a19-4789-4c85-999d-8d68fe9d9065 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network asg create + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group -o + User-Agent: + - AZURECLI/2.41.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.14 (macOS-12.6-arm64-arm-64bit) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/applicationSecurityGroups/asg2?api-version=2021-08-01 + response: + body: + string: "{\r\n \"name\": \"asg2\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/applicationSecurityGroups/asg2\"\ + ,\r\n \"etag\": \"W/\\\"3be88134-0822-4050-8a28-de3be339b174\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/applicationSecurityGroups\",\r\n \"location\"\ + : \"eastus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + \r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '377' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 19 Oct 2022 10:06:38 GMT + etag: + - W/"3be88134-0822-4050-8a28-de3be339b174" + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - e1155034-9e8f-44a8-9435-32fad637f7f8 + status: + code: 200 + message: OK +- request: + body: '{"location": "eastus", "identity": {"type": "SystemAssigned"}, "properties": + {"kubernetesVersion": "", "dnsPrefix": "cliakstest-clitesttd3xtmkoj-8ecadf", + "agentPoolProfiles": [{"count": 1, "vmSize": "standard_d2s_v3", "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": {"allowedHostPorts": [{"portStart": 53, + "portEnd": 53, "protocol": "UDP"}, {"portStart": 80, "portEnd": 80, "protocol": + "TCP"}, {"portStart": 443, "portEnd": 443, "protocol": "TCP"}, {"portStart": + 4000, "portEnd": 5000, "protocol": "TCP"}, {"portStart": 4000, "portEnd": 6000, + "protocol": "UDP"}], "applicationSecurityGroups": ["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/applicationSecurityGroups/asg1", + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/applicationSecurityGroups/asg2"]}, + "name": "nodepool1"}], "linuxProfile": {"adminUsername": "azureuser", "ssh": + {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCbIg1guRHbI0lV11wWDt1r2cUdcNd27CJsg+SfgC7miZeubtwUhbsPdhMQsfDyhOWHq1+ZL0M+nJZV63d/1dhmhtgyOqejUwrPlzKhydsbrsdUor+JmNJDdW01v7BXHyuymT8G4s09jCasNOwiufbP/qp72ruu0bIA1nySsvlf9pCQAuFkAnVnf/rFhUlOkhtRpwcq8SUNY2zRHR/EKb/4NWY1JzR4sa3q2fWIJdrrX0DvLoa5g9bIEd4Df79ba7v+yiUBOS0zT2ll+z4g9izHK3EO5d8hL4jYxcjKs+wcslSYRWrascfscLgMlMGh0CdKeNTDjHpGPncaf3Z+FwwwjWeuiNBxv7bJo13/8B/098KlVDl4GZqsoBCEjPyJfV6hO0y/LkRGkk7oHWKgeWAfKtfLItRp00eZ4fcJNK9kCaSMmEugoZWcI7NGbZXzqFWqbpRI7NcDP9+WIQ+i9U5vqWsqd/zng4kbuAJ6UuKqIzB0upYrLShfQE3SAck8oaLhJqqq56VfDuASNpJKidV+zq27HfSBmbXnkR/5AK337dc3MXKJypoK/QPMLKUAP5XLPbs+NddJQV7EZXd29DLgp+fRIg3edpKdO7ZErWhv7d+3Kws+e1Y+ypmR2WIVSwVyBEUfgv2C8Ts9gnTF4pNcEY/S2aBicz5Ew2+jdyGNQQ== + test@example.com\n"}]}}, "addonProfiles": {}, "enableRBAC": true, "enablePodSecurityPolicy": + false, "networkProfile": {"networkPlugin": "kubenet", "podCidr": "10.244.0.0/16", + "serviceCidr": "10.0.0.0/16", "dnsServiceIP": "10.0.0.10", "dockerBridgeCidr": + "172.17.0.1/16", "outboundType": "loadBalancer", "loadBalancerSku": "standard"}, + "disableLocalAccounts": false, "storageProfile": {}}}' + headers: + AKSHTTPCustomFeatures: + - Microsoft.ContainerService/NodePublicIPNSGControlPreview + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '2520' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --name --location --ssh-key-value --node-count --node-vm-size + --nodepool-asg-ids --nodepool-allowed-host-ports --aks-custom-headers + User-Agent: + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-containerservice/20.4.0b Python/3.8.14 + (macOS-12.6-arm64-arm-64bit) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2022-09-02-preview + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\"\ + ,\n \"location\": \"eastus\",\n \"name\": \"cliakstest000002\",\n \"type\"\ + : \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \ + \ \"provisioningState\": \"Creating\",\n \"powerState\": {\n \"code\"\ + : \"Running\"\n },\n \"kubernetesVersion\": \"1.23.12\",\n \"currentKubernetesVersion\"\ + : \"1.23.12\",\n \"dnsPrefix\": \"cliakstest-clitesttd3xtmkoj-8ecadf\",\n\ + \ \"fqdn\": \"cliakstest-clitesttd3xtmkoj-8ecadf-400a076b.hcp.eastus.azmk8s.io\"\ + ,\n \"azurePortalFQDN\": \"cliakstest-clitesttd3xtmkoj-8ecadf-400a076b.portal.hcp.eastus.azmk8s.io\"\ + ,\n \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \ + \ \"count\": 1,\n \"vmSize\": \"standard_d2s_v3\",\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.23.12\"\ + ,\n \"currentOrchestratorVersion\": \"1.23.12\",\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.10.03\",\n \"upgradeSettings\":\ + \ {},\n \"enableFIPS\": false,\n \"networkProfile\": {\n \"allowedHostPorts\"\ + : [\n {\n \"portStart\": 53,\n \"portEnd\": 53,\n \ + \ \"protocol\": \"UDP\"\n },\n {\n \"portStart\": 80,\n\ + \ \"portEnd\": 80,\n \"protocol\": \"TCP\"\n },\n \ + \ {\n \"portStart\": 443,\n \"portEnd\": 443,\n \"\ + protocol\": \"TCP\"\n },\n {\n \"portStart\": 4000,\n \ + \ \"portEnd\": 5000,\n \"protocol\": \"TCP\"\n },\n \ + \ {\n \"portStart\": 4000,\n \"portEnd\": 6000,\n \ + \ \"protocol\": \"UDP\"\n }\n ],\n \"applicationSecurityGroups\"\ + : [\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/applicationSecurityGroups/asg1\"\ + ,\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/applicationSecurityGroups/asg2\"\ + \n ]\n }\n }\n ],\n \"linuxProfile\": {\n \"adminUsername\"\ + : \"azureuser\",\n \"ssh\": {\n \"publicKeys\": [\n {\n \ + \ \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCbIg1guRHbI0lV11wWDt1r2cUdcNd27CJsg+SfgC7miZeubtwUhbsPdhMQsfDyhOWHq1+ZL0M+nJZV63d/1dhmhtgyOqejUwrPlzKhydsbrsdUor+JmNJDdW01v7BXHyuymT8G4s09jCasNOwiufbP/qp72ruu0bIA1nySsvlf9pCQAuFkAnVnf/rFhUlOkhtRpwcq8SUNY2zRHR/EKb/4NWY1JzR4sa3q2fWIJdrrX0DvLoa5g9bIEd4Df79ba7v+yiUBOS0zT2ll+z4g9izHK3EO5d8hL4jYxcjKs+wcslSYRWrascfscLgMlMGh0CdKeNTDjHpGPncaf3Z+FwwwjWeuiNBxv7bJo13/8B/098KlVDl4GZqsoBCEjPyJfV6hO0y/LkRGkk7oHWKgeWAfKtfLItRp00eZ4fcJNK9kCaSMmEugoZWcI7NGbZXzqFWqbpRI7NcDP9+WIQ+i9U5vqWsqd/zng4kbuAJ6UuKqIzB0upYrLShfQE3SAck8oaLhJqqq56VfDuASNpJKidV+zq27HfSBmbXnkR/5AK337dc3MXKJypoK/QPMLKUAP5XLPbs+NddJQV7EZXd29DLgp+fRIg3edpKdO7ZErWhv7d+3Kws+e1Y+ypmR2WIVSwVyBEUfgv2C8Ts9gnTF4pNcEY/S2aBicz5Ew2+jdyGNQQ==\ + \ test@example.com\\n\"\n }\n ]\n }\n },\n \"servicePrincipalProfile\"\ + : {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \ + \ \"nodeResourceGroup\": \"MC_clitest000001_cliakstest000002_eastus\",\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 \"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/eastus/operations/72455bf9-dbfe-4721-95a4-0ce796dec5f7?api-version=2017-08-31 + cache-control: + - no-cache + content-length: + - '4666' + content-type: + - application/json + date: + - Wed, 19 Oct 2022 10:06:50 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 --ssh-key-value --node-count --node-vm-size + --nodepool-asg-ids --nodepool-allowed-host-ports --aks-custom-headers + User-Agent: + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-containerservice/20.4.0b Python/3.8.14 + (macOS-12.6-arm64-arm-64bit) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/72455bf9-dbfe-4721-95a4-0ce796dec5f7?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"f95b4572-fedb-2147-95a4-0ce796dec5f7\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2022-10-19T10:06:50.0921744Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 19 Oct 2022 10:06: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 --ssh-key-value --node-count --node-vm-size + --nodepool-asg-ids --nodepool-allowed-host-ports --aks-custom-headers + User-Agent: + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-containerservice/20.4.0b Python/3.8.14 + (macOS-12.6-arm64-arm-64bit) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/72455bf9-dbfe-4721-95a4-0ce796dec5f7?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"f95b4572-fedb-2147-95a4-0ce796dec5f7\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2022-10-19T10:06:50.0921744Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 19 Oct 2022 10:07:21 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 --ssh-key-value --node-count --node-vm-size + --nodepool-asg-ids --nodepool-allowed-host-ports --aks-custom-headers + User-Agent: + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-containerservice/20.4.0b Python/3.8.14 + (macOS-12.6-arm64-arm-64bit) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/72455bf9-dbfe-4721-95a4-0ce796dec5f7?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"f95b4572-fedb-2147-95a4-0ce796dec5f7\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2022-10-19T10:06:50.0921744Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 19 Oct 2022 10:07: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 --ssh-key-value --node-count --node-vm-size + --nodepool-asg-ids --nodepool-allowed-host-ports --aks-custom-headers + User-Agent: + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-containerservice/20.4.0b Python/3.8.14 + (macOS-12.6-arm64-arm-64bit) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/72455bf9-dbfe-4721-95a4-0ce796dec5f7?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"f95b4572-fedb-2147-95a4-0ce796dec5f7\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2022-10-19T10:06:50.0921744Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 19 Oct 2022 10:08:23 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --ssh-key-value --node-count --node-vm-size + --nodepool-asg-ids --nodepool-allowed-host-ports --aks-custom-headers + User-Agent: + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-containerservice/20.4.0b Python/3.8.14 + (macOS-12.6-arm64-arm-64bit) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/72455bf9-dbfe-4721-95a4-0ce796dec5f7?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"f95b4572-fedb-2147-95a4-0ce796dec5f7\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2022-10-19T10:06:50.0921744Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 19 Oct 2022 10:08: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 create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --ssh-key-value --node-count --node-vm-size + --nodepool-asg-ids --nodepool-allowed-host-ports --aks-custom-headers + User-Agent: + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-containerservice/20.4.0b Python/3.8.14 + (macOS-12.6-arm64-arm-64bit) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/72455bf9-dbfe-4721-95a4-0ce796dec5f7?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"f95b4572-fedb-2147-95a4-0ce796dec5f7\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2022-10-19T10:06:50.0921744Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 19 Oct 2022 10:09:24 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --ssh-key-value --node-count --node-vm-size + --nodepool-asg-ids --nodepool-allowed-host-ports --aks-custom-headers + User-Agent: + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-containerservice/20.4.0b Python/3.8.14 + (macOS-12.6-arm64-arm-64bit) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/72455bf9-dbfe-4721-95a4-0ce796dec5f7?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"f95b4572-fedb-2147-95a4-0ce796dec5f7\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2022-10-19T10:06:50.0921744Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 19 Oct 2022 10:09: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 create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --ssh-key-value --node-count --node-vm-size + --nodepool-asg-ids --nodepool-allowed-host-ports --aks-custom-headers + User-Agent: + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-containerservice/20.4.0b Python/3.8.14 + (macOS-12.6-arm64-arm-64bit) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/72455bf9-dbfe-4721-95a4-0ce796dec5f7?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"f95b4572-fedb-2147-95a4-0ce796dec5f7\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2022-10-19T10:06:50.0921744Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 19 Oct 2022 10:10:25 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --ssh-key-value --node-count --node-vm-size + --nodepool-asg-ids --nodepool-allowed-host-ports --aks-custom-headers + User-Agent: + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-containerservice/20.4.0b Python/3.8.14 + (macOS-12.6-arm64-arm-64bit) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/72455bf9-dbfe-4721-95a4-0ce796dec5f7?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"f95b4572-fedb-2147-95a4-0ce796dec5f7\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2022-10-19T10:06:50.0921744Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 19 Oct 2022 10:10:56 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --ssh-key-value --node-count --node-vm-size + --nodepool-asg-ids --nodepool-allowed-host-ports --aks-custom-headers + User-Agent: + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-containerservice/20.4.0b Python/3.8.14 + (macOS-12.6-arm64-arm-64bit) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/72455bf9-dbfe-4721-95a4-0ce796dec5f7?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"f95b4572-fedb-2147-95a4-0ce796dec5f7\",\n \"status\"\ + : \"Succeeded\",\n \"startTime\": \"2022-10-19T10:06:50.0921744Z\",\n \"\ + endTime\": \"2022-10-19T10:11:21.253437Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '169' + content-type: + - application/json + date: + - Wed, 19 Oct 2022 10:11:26 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --ssh-key-value --node-count --node-vm-size + --nodepool-asg-ids --nodepool-allowed-host-ports --aks-custom-headers + User-Agent: + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-containerservice/20.4.0b Python/3.8.14 + (macOS-12.6-arm64-arm-64bit) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2022-09-02-preview + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\"\ + ,\n \"location\": \"eastus\",\n \"name\": \"cliakstest000002\",\n \"type\"\ + : \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \ + \ \"provisioningState\": \"Succeeded\",\n \"powerState\": {\n \"code\"\ + : \"Running\"\n },\n \"kubernetesVersion\": \"1.23.12\",\n \"currentKubernetesVersion\"\ + : \"1.23.12\",\n \"dnsPrefix\": \"cliakstest-clitesttd3xtmkoj-8ecadf\",\n\ + \ \"fqdn\": \"cliakstest-clitesttd3xtmkoj-8ecadf-400a076b.hcp.eastus.azmk8s.io\"\ + ,\n \"azurePortalFQDN\": \"cliakstest-clitesttd3xtmkoj-8ecadf-400a076b.portal.hcp.eastus.azmk8s.io\"\ + ,\n \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \ + \ \"count\": 1,\n \"vmSize\": \"standard_d2s_v3\",\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.23.12\"\ + ,\n \"currentOrchestratorVersion\": \"1.23.12\",\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.10.03\",\n \"upgradeSettings\":\ + \ {},\n \"enableFIPS\": false,\n \"networkProfile\": {\n \"allowedHostPorts\"\ + : [\n {\n \"portStart\": 53,\n \"portEnd\": 53,\n \ + \ \"protocol\": \"UDP\"\n },\n {\n \"portStart\": 80,\n\ + \ \"portEnd\": 80,\n \"protocol\": \"TCP\"\n },\n \ + \ {\n \"portStart\": 443,\n \"portEnd\": 443,\n \"\ + protocol\": \"TCP\"\n },\n {\n \"portStart\": 4000,\n \ + \ \"portEnd\": 5000,\n \"protocol\": \"TCP\"\n },\n \ + \ {\n \"portStart\": 4000,\n \"portEnd\": 6000,\n \ + \ \"protocol\": \"UDP\"\n }\n ],\n \"applicationSecurityGroups\"\ + : [\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/applicationSecurityGroups/asg1\"\ + ,\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/applicationSecurityGroups/asg2\"\ + \n ]\n }\n }\n ],\n \"linuxProfile\": {\n \"adminUsername\"\ + : \"azureuser\",\n \"ssh\": {\n \"publicKeys\": [\n {\n \ + \ \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCbIg1guRHbI0lV11wWDt1r2cUdcNd27CJsg+SfgC7miZeubtwUhbsPdhMQsfDyhOWHq1+ZL0M+nJZV63d/1dhmhtgyOqejUwrPlzKhydsbrsdUor+JmNJDdW01v7BXHyuymT8G4s09jCasNOwiufbP/qp72ruu0bIA1nySsvlf9pCQAuFkAnVnf/rFhUlOkhtRpwcq8SUNY2zRHR/EKb/4NWY1JzR4sa3q2fWIJdrrX0DvLoa5g9bIEd4Df79ba7v+yiUBOS0zT2ll+z4g9izHK3EO5d8hL4jYxcjKs+wcslSYRWrascfscLgMlMGh0CdKeNTDjHpGPncaf3Z+FwwwjWeuiNBxv7bJo13/8B/098KlVDl4GZqsoBCEjPyJfV6hO0y/LkRGkk7oHWKgeWAfKtfLItRp00eZ4fcJNK9kCaSMmEugoZWcI7NGbZXzqFWqbpRI7NcDP9+WIQ+i9U5vqWsqd/zng4kbuAJ6UuKqIzB0upYrLShfQE3SAck8oaLhJqqq56VfDuASNpJKidV+zq27HfSBmbXnkR/5AK337dc3MXKJypoK/QPMLKUAP5XLPbs+NddJQV7EZXd29DLgp+fRIg3edpKdO7ZErWhv7d+3Kws+e1Y+ypmR2WIVSwVyBEUfgv2C8Ts9gnTF4pNcEY/S2aBicz5Ew2+jdyGNQQ==\ + \ test@example.com\\n\"\n }\n ]\n }\n },\n \"servicePrincipalProfile\"\ + : {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \ + \ \"nodeResourceGroup\": \"MC_clitest000001_cliakstest000002_eastus\",\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_eastus/providers/Microsoft.Network/publicIPAddresses/fbc84c81-190a-437b-8b4c-1063316a7b1d\"\ + \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_eastus/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 \"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: + - '5317' + content-type: + - application/json + date: + - Wed, 19 Oct 2022 10:11:26 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --resource-group --name --yes --no-wait + User-Agent: + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-containerservice/20.4.0b Python/3.8.14 + (macOS-12.6-arm64-arm-64bit) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2022-09-02-preview + response: + body: + string: '' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/dcc7f0e2-8cae-445b-a10b-88924dbcf61f?api-version=2017-08-31 + cache-control: + - no-cache + content-length: + - '0' + date: + - Wed, 19 Oct 2022 10:11:31 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operationresults/dcc7f0e2-8cae-445b-a10b-88924dbcf61f?api-version=2017-08-31 + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' + status: + code: 202 + message: Accepted +version: 1 diff --git a/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_nodepool_create_with_nsg_control.yaml b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_nodepool_create_with_nsg_control.yaml new file mode 100644 index 00000000000..81db1b99298 --- /dev/null +++ b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_nodepool_create_with_nsg_control.yaml @@ -0,0 +1,1757 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network asg create + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group -o + User-Agent: + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.14 (macOS-12.6-arm64-arm-64bit) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001","name":"clitest000001","type":"Microsoft.Resources/resourceGroups","location":"eastus","tags":{"product":"azurecli","cause":"automation","date":"2022-10-19T12:16:57Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '304' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 19 Oct 2022 12:17:06 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"location": "eastus"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network asg create + Connection: + - keep-alive + Content-Length: + - '22' + Content-Type: + - application/json + ParameterSetName: + - --name --resource-group -o + User-Agent: + - AZURECLI/2.41.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.14 (macOS-12.6-arm64-arm-64bit) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/applicationSecurityGroups/asg1?api-version=2021-08-01 + response: + body: + string: "{\r\n \"name\": \"asg1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/applicationSecurityGroups/asg1\"\ + ,\r\n \"etag\": \"W/\\\"af2df9f9-599a-40a3-9a16-0b8d390d575b\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/applicationSecurityGroups\",\r\n \"location\"\ + : \"eastus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\ + \r\n }\r\n}" + headers: + azure-asyncnotification: + - Enabled + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/6d6efd52-5b25-44d9-a998-98a01a10346c?api-version=2021-08-01 + cache-control: + - no-cache + content-length: + - '376' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 19 Oct 2022 12:17:11 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - aa4928ab-4822-40da-b206-5a30624d2df8 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network asg create + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group -o + User-Agent: + - AZURECLI/2.41.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.14 (macOS-12.6-arm64-arm-64bit) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/6d6efd52-5b25-44d9-a998-98a01a10346c?api-version=2021-08-01 + response: + body: + string: "{\r\n \"status\": \"Succeeded\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '29' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 19 Oct 2022 12:17:12 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 573fd67f-5a5d-4f78-9768-84b8123b375d + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network asg create + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group -o + User-Agent: + - AZURECLI/2.41.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.14 (macOS-12.6-arm64-arm-64bit) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/applicationSecurityGroups/asg1?api-version=2021-08-01 + response: + body: + string: "{\r\n \"name\": \"asg1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/applicationSecurityGroups/asg1\"\ + ,\r\n \"etag\": \"W/\\\"bcd9c4d2-fb5a-4971-b8ef-09ec92f240c3\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/applicationSecurityGroups\",\r\n \"location\"\ + : \"eastus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + \r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '377' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 19 Oct 2022 12:17:12 GMT + etag: + - W/"bcd9c4d2-fb5a-4971-b8ef-09ec92f240c3" + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - cda210b4-f49d-462d-bceb-e1519eb2226d + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network asg create + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group -o + User-Agent: + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.14 (macOS-12.6-arm64-arm-64bit) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001","name":"clitest000001","type":"Microsoft.Resources/resourceGroups","location":"eastus","tags":{"product":"azurecli","cause":"automation","date":"2022-10-19T12:16:57Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '304' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 19 Oct 2022 12:17:14 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"location": "eastus"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network asg create + Connection: + - keep-alive + Content-Length: + - '22' + Content-Type: + - application/json + ParameterSetName: + - --name --resource-group -o + User-Agent: + - AZURECLI/2.41.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.14 (macOS-12.6-arm64-arm-64bit) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/applicationSecurityGroups/asg2?api-version=2021-08-01 + response: + body: + string: "{\r\n \"name\": \"asg2\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/applicationSecurityGroups/asg2\"\ + ,\r\n \"etag\": \"W/\\\"926a4911-f9a7-494a-8dcf-3dbc6c930215\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/applicationSecurityGroups\",\r\n \"location\"\ + : \"eastus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\ + \r\n }\r\n}" + headers: + azure-asyncnotification: + - Enabled + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/7bff3284-12ef-44cf-a7ff-5eaa2a8aa9ce?api-version=2021-08-01 + cache-control: + - no-cache + content-length: + - '376' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 19 Oct 2022 12:17:19 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 36a5480f-c878-43dd-8a08-e8783e80015a + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network asg create + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group -o + User-Agent: + - AZURECLI/2.41.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.14 (macOS-12.6-arm64-arm-64bit) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/7bff3284-12ef-44cf-a7ff-5eaa2a8aa9ce?api-version=2021-08-01 + response: + body: + string: "{\r\n \"status\": \"Succeeded\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '29' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 19 Oct 2022 12:17:19 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - c56bda5b-4c5a-498e-882f-36f53e4c4877 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network asg create + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group -o + User-Agent: + - AZURECLI/2.41.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.14 (macOS-12.6-arm64-arm-64bit) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/applicationSecurityGroups/asg2?api-version=2021-08-01 + response: + body: + string: "{\r\n \"name\": \"asg2\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/applicationSecurityGroups/asg2\"\ + ,\r\n \"etag\": \"W/\\\"118fd2f5-999f-43d7-8d89-7c997b4cdbab\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/applicationSecurityGroups\",\r\n \"location\"\ + : \"eastus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + \r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '377' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 19 Oct 2022 12:17:20 GMT + etag: + - W/"118fd2f5-999f-43d7-8d89-7c997b4cdbab" + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 58383151-9df7-4b12-9a62-3d18986def03 + status: + code: 200 + message: OK +- request: + body: '{"location": "eastus", "identity": {"type": "SystemAssigned"}, "properties": + {"kubernetesVersion": "", "dnsPrefix": "cliakstest-clitest7j5lv7oui-8ecadf", + "agentPoolProfiles": [{"count": 1, "vmSize": "standard_d2s_v3", "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": {"allowedHostPorts": [], "applicationSecurityGroups": + []}, "name": "nodepool1"}], "linuxProfile": {"adminUsername": "azureuser", "ssh": + {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCbIg1guRHbI0lV11wWDt1r2cUdcNd27CJsg+SfgC7miZeubtwUhbsPdhMQsfDyhOWHq1+ZL0M+nJZV63d/1dhmhtgyOqejUwrPlzKhydsbrsdUor+JmNJDdW01v7BXHyuymT8G4s09jCasNOwiufbP/qp72ruu0bIA1nySsvlf9pCQAuFkAnVnf/rFhUlOkhtRpwcq8SUNY2zRHR/EKb/4NWY1JzR4sa3q2fWIJdrrX0DvLoa5g9bIEd4Df79ba7v+yiUBOS0zT2ll+z4g9izHK3EO5d8hL4jYxcjKs+wcslSYRWrascfscLgMlMGh0CdKeNTDjHpGPncaf3Z+FwwwjWeuiNBxv7bJo13/8B/098KlVDl4GZqsoBCEjPyJfV6hO0y/LkRGkk7oHWKgeWAfKtfLItRp00eZ4fcJNK9kCaSMmEugoZWcI7NGbZXzqFWqbpRI7NcDP9+WIQ+i9U5vqWsqd/zng4kbuAJ6UuKqIzB0upYrLShfQE3SAck8oaLhJqqq56VfDuASNpJKidV+zq27HfSBmbXnkR/5AK337dc3MXKJypoK/QPMLKUAP5XLPbs+NddJQV7EZXd29DLgp+fRIg3edpKdO7ZErWhv7d+3Kws+e1Y+ypmR2WIVSwVyBEUfgv2C8Ts9gnTF4pNcEY/S2aBicz5Ew2+jdyGNQQ== + test@example.com\n"}]}}, "addonProfiles": {}, "enableRBAC": true, "enablePodSecurityPolicy": + false, "networkProfile": {"networkPlugin": "kubenet", "podCidr": "10.244.0.0/16", + "serviceCidr": "10.0.0.0/16", "dnsServiceIP": "10.0.0.10", "dockerBridgeCidr": + "172.17.0.1/16", "outboundType": "loadBalancer", "loadBalancerSku": "standard"}, + "disableLocalAccounts": false, "storageProfile": {}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '1963' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --name --location --ssh-key-value --node-count --node-vm-size + User-Agent: + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-containerservice/20.4.0b Python/3.8.14 + (macOS-12.6-arm64-arm-64bit) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2022-09-02-preview + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\"\ + ,\n \"location\": \"eastus\",\n \"name\": \"cliakstest000002\",\n \"type\"\ + : \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \ + \ \"provisioningState\": \"Creating\",\n \"powerState\": {\n \"code\"\ + : \"Running\"\n },\n \"kubernetesVersion\": \"1.23.12\",\n \"currentKubernetesVersion\"\ + : \"1.23.12\",\n \"dnsPrefix\": \"cliakstest-clitest7j5lv7oui-8ecadf\",\n\ + \ \"fqdn\": \"cliakstest-clitest7j5lv7oui-8ecadf-4b5e2987.hcp.eastus.azmk8s.io\"\ + ,\n \"azurePortalFQDN\": \"cliakstest-clitest7j5lv7oui-8ecadf-4b5e2987.portal.hcp.eastus.azmk8s.io\"\ + ,\n \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \ + \ \"count\": 1,\n \"vmSize\": \"standard_d2s_v3\",\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.23.12\"\ + ,\n \"currentOrchestratorVersion\": \"1.23.12\",\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.10.03\",\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_eastus\",\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 \"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/eastus/operations/a9ab0b55-db86-4839-9b3e-628058cb583c?api-version=2017-08-31 + cache-control: + - no-cache + content-length: + - '3805' + content-type: + - application/json + date: + - Wed, 19 Oct 2022 12:17:31 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 --ssh-key-value --node-count --node-vm-size + User-Agent: + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-containerservice/20.4.0b Python/3.8.14 + (macOS-12.6-arm64-arm-64bit) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/a9ab0b55-db86-4839-9b3e-628058cb583c?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"550baba9-86db-3948-9b3e-628058cb583c\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2022-10-19T12:17:29.9051374Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 19 Oct 2022 12:17: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 --ssh-key-value --node-count --node-vm-size + User-Agent: + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-containerservice/20.4.0b Python/3.8.14 + (macOS-12.6-arm64-arm-64bit) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/a9ab0b55-db86-4839-9b3e-628058cb583c?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"550baba9-86db-3948-9b3e-628058cb583c\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2022-10-19T12:17:29.9051374Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 19 Oct 2022 12:18: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 --ssh-key-value --node-count --node-vm-size + User-Agent: + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-containerservice/20.4.0b Python/3.8.14 + (macOS-12.6-arm64-arm-64bit) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/a9ab0b55-db86-4839-9b3e-628058cb583c?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"550baba9-86db-3948-9b3e-628058cb583c\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2022-10-19T12:17:29.9051374Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 19 Oct 2022 12:18: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 --ssh-key-value --node-count --node-vm-size + User-Agent: + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-containerservice/20.4.0b Python/3.8.14 + (macOS-12.6-arm64-arm-64bit) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/a9ab0b55-db86-4839-9b3e-628058cb583c?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"550baba9-86db-3948-9b3e-628058cb583c\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2022-10-19T12:17:29.9051374Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 19 Oct 2022 12:19: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 --ssh-key-value --node-count --node-vm-size + User-Agent: + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-containerservice/20.4.0b Python/3.8.14 + (macOS-12.6-arm64-arm-64bit) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/a9ab0b55-db86-4839-9b3e-628058cb583c?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"550baba9-86db-3948-9b3e-628058cb583c\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2022-10-19T12:17:29.9051374Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 19 Oct 2022 12:19:32 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 --ssh-key-value --node-count --node-vm-size + User-Agent: + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-containerservice/20.4.0b Python/3.8.14 + (macOS-12.6-arm64-arm-64bit) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/a9ab0b55-db86-4839-9b3e-628058cb583c?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"550baba9-86db-3948-9b3e-628058cb583c\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2022-10-19T12:17:29.9051374Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 19 Oct 2022 12:20:03 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --ssh-key-value --node-count --node-vm-size + User-Agent: + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-containerservice/20.4.0b Python/3.8.14 + (macOS-12.6-arm64-arm-64bit) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/a9ab0b55-db86-4839-9b3e-628058cb583c?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"550baba9-86db-3948-9b3e-628058cb583c\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2022-10-19T12:17:29.9051374Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 19 Oct 2022 12:20:33 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --ssh-key-value --node-count --node-vm-size + User-Agent: + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-containerservice/20.4.0b Python/3.8.14 + (macOS-12.6-arm64-arm-64bit) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/a9ab0b55-db86-4839-9b3e-628058cb583c?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"550baba9-86db-3948-9b3e-628058cb583c\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2022-10-19T12:17:29.9051374Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 19 Oct 2022 12:21:04 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --ssh-key-value --node-count --node-vm-size + User-Agent: + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-containerservice/20.4.0b Python/3.8.14 + (macOS-12.6-arm64-arm-64bit) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/a9ab0b55-db86-4839-9b3e-628058cb583c?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"550baba9-86db-3948-9b3e-628058cb583c\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2022-10-19T12:17:29.9051374Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 19 Oct 2022 12:21:34 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --ssh-key-value --node-count --node-vm-size + User-Agent: + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-containerservice/20.4.0b Python/3.8.14 + (macOS-12.6-arm64-arm-64bit) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/a9ab0b55-db86-4839-9b3e-628058cb583c?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"550baba9-86db-3948-9b3e-628058cb583c\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2022-10-19T12:17:29.9051374Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 19 Oct 2022 12:22: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 create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --ssh-key-value --node-count --node-vm-size + User-Agent: + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-containerservice/20.4.0b Python/3.8.14 + (macOS-12.6-arm64-arm-64bit) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/a9ab0b55-db86-4839-9b3e-628058cb583c?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"550baba9-86db-3948-9b3e-628058cb583c\",\n \"status\"\ + : \"Succeeded\",\n \"startTime\": \"2022-10-19T12:17:29.9051374Z\",\n \"\ + endTime\": \"2022-10-19T12:22:14.2127065Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '170' + content-type: + - application/json + date: + - Wed, 19 Oct 2022 12:22: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 create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --ssh-key-value --node-count --node-vm-size + User-Agent: + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-containerservice/20.4.0b Python/3.8.14 + (macOS-12.6-arm64-arm-64bit) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2022-09-02-preview + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\"\ + ,\n \"location\": \"eastus\",\n \"name\": \"cliakstest000002\",\n \"type\"\ + : \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \ + \ \"provisioningState\": \"Succeeded\",\n \"powerState\": {\n \"code\"\ + : \"Running\"\n },\n \"kubernetesVersion\": \"1.23.12\",\n \"currentKubernetesVersion\"\ + : \"1.23.12\",\n \"dnsPrefix\": \"cliakstest-clitest7j5lv7oui-8ecadf\",\n\ + \ \"fqdn\": \"cliakstest-clitest7j5lv7oui-8ecadf-4b5e2987.hcp.eastus.azmk8s.io\"\ + ,\n \"azurePortalFQDN\": \"cliakstest-clitest7j5lv7oui-8ecadf-4b5e2987.portal.hcp.eastus.azmk8s.io\"\ + ,\n \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \ + \ \"count\": 1,\n \"vmSize\": \"standard_d2s_v3\",\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.23.12\"\ + ,\n \"currentOrchestratorVersion\": \"1.23.12\",\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.10.03\",\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_eastus\",\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_eastus/providers/Microsoft.Network/publicIPAddresses/e38915f3-6158-45b8-a2f2-e9fb2c26af7c\"\ + \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_eastus/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 \"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: + - '4456' + content-type: + - application/json + date: + - Wed, 19 Oct 2022 12:22: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 nodepool add + Connection: + - keep-alive + ParameterSetName: + - --resource-group --cluster-name --name --node-vm-size --node-count --asg-ids + --allowed-host-ports --aks-custom-headers + User-Agent: + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-containerservice/20.4.0b Python/3.8.14 + (macOS-12.6-arm64-arm-64bit) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/agentPools?api-version=2022-09-02-preview + response: + body: + string: "{\n \"value\": [\n {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/agentPools/nodepool1\"\ + ,\n \"name\": \"nodepool1\",\n \"type\": \"Microsoft.ContainerService/managedClusters/agentPools\"\ + ,\n \"properties\": {\n \"count\": 1,\n \"vmSize\": \"standard_d2s_v3\"\ + ,\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.23.12\",\n \"currentOrchestratorVersion\": \"1.23.12\",\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.10.03\",\n \"\ + upgradeSettings\": {},\n \"enableFIPS\": false,\n \"networkProfile\"\ + : {}\n }\n }\n ]\n }" + headers: + cache-control: + - no-cache + content-length: + - '1140' + content-type: + - application/json + date: + - Wed, 19 Oct 2022 12:22:40 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"properties": {"count": 1, "vmSize": "standard_d2s_v3", "osDiskSizeGB": + 0, "workloadRuntime": "OCIContainer", "osType": "Linux", "enableAutoScaling": + false, "scaleDownMode": "Delete", "type": "VirtualMachineScaleSets", "mode": + "User", "upgradeSettings": {}, "enableNodePublicIP": false, "enableCustomCATrust": + false, "scaleSetPriority": "Regular", "scaleSetEvictionPolicy": "Delete", "spotMaxPrice": + -1.0, "nodeTaints": [], "enableEncryptionAtHost": false, "enableUltraSSD": false, + "enableFIPS": false, "networkProfile": {"allowedHostPorts": [{"portStart": 53, + "portEnd": 53, "protocol": "UDP"}, {"portStart": 80, "portEnd": 80, "protocol": + "TCP"}, {"portStart": 443, "portEnd": 443, "protocol": "TCP"}, {"portStart": + 4000, "portEnd": 5000, "protocol": "TCP"}, {"portStart": 4000, "portEnd": 6000, + "protocol": "UDP"}], "applicationSecurityGroups": ["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/applicationSecurityGroups/asg1", + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/applicationSecurityGroups/asg2"]}}}' + headers: + AKSHTTPCustomFeatures: + - Microsoft.ContainerService/NodePublicIPNSGControlPreview + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks nodepool add + Connection: + - keep-alive + Content-Length: + - '1138' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --cluster-name --name --node-vm-size --node-count --asg-ids + --allowed-host-ports --aks-custom-headers + User-Agent: + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-containerservice/20.4.0b Python/3.8.14 + (macOS-12.6-arm64-arm-64bit) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/agentPools/n000003?api-version=2022-09-02-preview + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/agentPools/n000003\"\ + ,\n \"name\": \"n000003\",\n \"type\": \"Microsoft.ContainerService/managedClusters/agentPools\"\ + ,\n \"properties\": {\n \"count\": 1,\n \"vmSize\": \"standard_d2s_v3\"\ + ,\n \"osDiskSizeGB\": 128,\n \"osDiskType\": \"Managed\",\n \"kubeletDiskType\"\ + : \"OS\",\n \"workloadRuntime\": \"OCIContainer\",\n \"maxPods\": 110,\n\ + \ \"type\": \"VirtualMachineScaleSets\",\n \"enableAutoScaling\": false,\n\ + \ \"scaleDownMode\": \"Delete\",\n \"provisioningState\": \"Creating\"\ + ,\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"orchestratorVersion\"\ + : \"1.23.12\",\n \"currentOrchestratorVersion\": \"1.23.12\",\n \"enableNodePublicIP\"\ + : false,\n \"enableCustomCATrust\": false,\n \"mode\": \"User\",\n \"\ + enableEncryptionAtHost\": false,\n \"enableUltraSSD\": false,\n \"osType\"\ + : \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"nodeImageVersion\": \"AKSUbuntu-1804gen2containerd-2022.10.03\"\ + ,\n \"upgradeSettings\": {},\n \"enableFIPS\": false,\n \"networkProfile\"\ + : {\n \"allowedHostPorts\": [\n {\n \"portStart\": 53,\n \ + \ \"portEnd\": 53,\n \"protocol\": \"UDP\"\n },\n {\n \"\ + portStart\": 80,\n \"portEnd\": 80,\n \"protocol\": \"TCP\"\n \ + \ },\n {\n \"portStart\": 443,\n \"portEnd\": 443,\n \ + \ \"protocol\": \"TCP\"\n },\n {\n \"portStart\": 4000,\n \ + \ \"portEnd\": 5000,\n \"protocol\": \"TCP\"\n },\n {\n \ + \ \"portStart\": 4000,\n \"portEnd\": 6000,\n \"protocol\": \"\ + UDP\"\n }\n ],\n \"applicationSecurityGroups\": [\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/applicationSecurityGroups/asg1\"\ + ,\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/applicationSecurityGroups/asg2\"\ + \n ]\n }\n }\n }" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/864969d5-2429-4f1d-8007-976c1a691c0f?api-version=2017-08-31 + cache-control: + - no-cache + content-length: + - '1871' + content-type: + - application/json + date: + - Wed, 19 Oct 2022 12:22:43 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks nodepool add + Connection: + - keep-alive + ParameterSetName: + - --resource-group --cluster-name --name --node-vm-size --node-count --asg-ids + --allowed-host-ports --aks-custom-headers + User-Agent: + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-containerservice/20.4.0b Python/3.8.14 + (macOS-12.6-arm64-arm-64bit) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/864969d5-2429-4f1d-8007-976c1a691c0f?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"d5694986-2924-1d4f-8007-976c1a691c0f\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2022-10-19T12:22:43.9989407Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 19 Oct 2022 12:22:43 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks nodepool add + Connection: + - keep-alive + ParameterSetName: + - --resource-group --cluster-name --name --node-vm-size --node-count --asg-ids + --allowed-host-ports --aks-custom-headers + User-Agent: + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-containerservice/20.4.0b Python/3.8.14 + (macOS-12.6-arm64-arm-64bit) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/864969d5-2429-4f1d-8007-976c1a691c0f?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"d5694986-2924-1d4f-8007-976c1a691c0f\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2022-10-19T12:22:43.9989407Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 19 Oct 2022 12:23: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 nodepool add + Connection: + - keep-alive + ParameterSetName: + - --resource-group --cluster-name --name --node-vm-size --node-count --asg-ids + --allowed-host-ports --aks-custom-headers + User-Agent: + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-containerservice/20.4.0b Python/3.8.14 + (macOS-12.6-arm64-arm-64bit) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/864969d5-2429-4f1d-8007-976c1a691c0f?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"d5694986-2924-1d4f-8007-976c1a691c0f\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2022-10-19T12:22:43.9989407Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 19 Oct 2022 12:23: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 nodepool add + Connection: + - keep-alive + ParameterSetName: + - --resource-group --cluster-name --name --node-vm-size --node-count --asg-ids + --allowed-host-ports --aks-custom-headers + User-Agent: + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-containerservice/20.4.0b Python/3.8.14 + (macOS-12.6-arm64-arm-64bit) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/864969d5-2429-4f1d-8007-976c1a691c0f?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"d5694986-2924-1d4f-8007-976c1a691c0f\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2022-10-19T12:22:43.9989407Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 19 Oct 2022 12:24: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 nodepool add + Connection: + - keep-alive + ParameterSetName: + - --resource-group --cluster-name --name --node-vm-size --node-count --asg-ids + --allowed-host-ports --aks-custom-headers + User-Agent: + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-containerservice/20.4.0b Python/3.8.14 + (macOS-12.6-arm64-arm-64bit) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/864969d5-2429-4f1d-8007-976c1a691c0f?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"d5694986-2924-1d4f-8007-976c1a691c0f\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2022-10-19T12:22:43.9989407Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 19 Oct 2022 12:24: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 nodepool add + Connection: + - keep-alive + ParameterSetName: + - --resource-group --cluster-name --name --node-vm-size --node-count --asg-ids + --allowed-host-ports --aks-custom-headers + User-Agent: + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-containerservice/20.4.0b Python/3.8.14 + (macOS-12.6-arm64-arm-64bit) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/864969d5-2429-4f1d-8007-976c1a691c0f?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"d5694986-2924-1d4f-8007-976c1a691c0f\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2022-10-19T12:22:43.9989407Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Wed, 19 Oct 2022 12:25: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 nodepool add + Connection: + - keep-alive + ParameterSetName: + - --resource-group --cluster-name --name --node-vm-size --node-count --asg-ids + --allowed-host-ports --aks-custom-headers + User-Agent: + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-containerservice/20.4.0b Python/3.8.14 + (macOS-12.6-arm64-arm-64bit) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/864969d5-2429-4f1d-8007-976c1a691c0f?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"d5694986-2924-1d4f-8007-976c1a691c0f\",\n \"status\"\ + : \"Succeeded\",\n \"startTime\": \"2022-10-19T12:22:43.9989407Z\",\n \"\ + endTime\": \"2022-10-19T12:25:47.3875817Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '170' + content-type: + - application/json + date: + - Wed, 19 Oct 2022 12:25: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 nodepool add + Connection: + - keep-alive + ParameterSetName: + - --resource-group --cluster-name --name --node-vm-size --node-count --asg-ids + --allowed-host-ports --aks-custom-headers + User-Agent: + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-containerservice/20.4.0b Python/3.8.14 + (macOS-12.6-arm64-arm-64bit) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/agentPools/n000003?api-version=2022-09-02-preview + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/agentPools/n000003\"\ + ,\n \"name\": \"n000003\",\n \"type\": \"Microsoft.ContainerService/managedClusters/agentPools\"\ + ,\n \"properties\": {\n \"count\": 1,\n \"vmSize\": \"standard_d2s_v3\"\ + ,\n \"osDiskSizeGB\": 128,\n \"osDiskType\": \"Managed\",\n \"kubeletDiskType\"\ + : \"OS\",\n \"workloadRuntime\": \"OCIContainer\",\n \"maxPods\": 110,\n\ + \ \"type\": \"VirtualMachineScaleSets\",\n \"enableAutoScaling\": false,\n\ + \ \"scaleDownMode\": \"Delete\",\n \"provisioningState\": \"Succeeded\"\ + ,\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"orchestratorVersion\"\ + : \"1.23.12\",\n \"currentOrchestratorVersion\": \"1.23.12\",\n \"enableNodePublicIP\"\ + : false,\n \"enableCustomCATrust\": false,\n \"mode\": \"User\",\n \"\ + enableEncryptionAtHost\": false,\n \"enableUltraSSD\": false,\n \"osType\"\ + : \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"nodeImageVersion\": \"AKSUbuntu-1804gen2containerd-2022.10.03\"\ + ,\n \"upgradeSettings\": {},\n \"enableFIPS\": false,\n \"networkProfile\"\ + : {\n \"allowedHostPorts\": [\n {\n \"portStart\": 53,\n \ + \ \"portEnd\": 53,\n \"protocol\": \"UDP\"\n },\n {\n \"\ + portStart\": 80,\n \"portEnd\": 80,\n \"protocol\": \"TCP\"\n \ + \ },\n {\n \"portStart\": 443,\n \"portEnd\": 443,\n \ + \ \"protocol\": \"TCP\"\n },\n {\n \"portStart\": 4000,\n \ + \ \"portEnd\": 5000,\n \"protocol\": \"TCP\"\n },\n {\n \ + \ \"portStart\": 4000,\n \"portEnd\": 6000,\n \"protocol\": \"\ + UDP\"\n }\n ],\n \"applicationSecurityGroups\": [\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/applicationSecurityGroups/asg1\"\ + ,\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/applicationSecurityGroups/asg2\"\ + \n ]\n }\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '1872' + content-type: + - application/json + date: + - Wed, 19 Oct 2022 12:25:48 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --resource-group --name --yes --no-wait + User-Agent: + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-containerservice/20.4.0b Python/3.8.14 + (macOS-12.6-arm64-arm-64bit) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2022-09-02-preview + response: + body: + string: '' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/785f916d-510d-4576-ad3a-7cfe3026547c?api-version=2017-08-31 + cache-control: + - no-cache + content-length: + - '0' + date: + - Wed, 19 Oct 2022 12:25:52 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operationresults/785f916d-510d-4576-ad3a-7cfe3026547c?api-version=2017-08-31 + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' + status: + code: 202 + message: Accepted +version: 1 diff --git a/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_nodepool_update_with_nsg_control.yaml b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_nodepool_update_with_nsg_control.yaml new file mode 100644 index 00000000000..eb953e3b387 --- /dev/null +++ b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_nodepool_update_with_nsg_control.yaml @@ -0,0 +1,1565 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network asg create + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group -o + User-Agent: + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.14 (macOS-12.6-arm64-arm-64bit) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001","name":"clitest000001","type":"Microsoft.Resources/resourceGroups","location":"eastus","tags":{"product":"azurecli","cause":"automation","date":"2022-10-20T03:16:12Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '304' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 20 Oct 2022 03:16:22 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"location": "eastus"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network asg create + Connection: + - keep-alive + Content-Length: + - '22' + Content-Type: + - application/json + ParameterSetName: + - --name --resource-group -o + User-Agent: + - AZURECLI/2.41.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.14 (macOS-12.6-arm64-arm-64bit) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/applicationSecurityGroups/asg1?api-version=2021-08-01 + response: + body: + string: "{\r\n \"name\": \"asg1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/applicationSecurityGroups/asg1\"\ + ,\r\n \"etag\": \"W/\\\"9ab10c48-864e-4655-9182-7c3f906b6f10\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/applicationSecurityGroups\",\r\n \"location\"\ + : \"eastus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\ + \r\n }\r\n}" + headers: + azure-asyncnotification: + - Enabled + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/583357d9-ccfd-48fd-a485-a72b9f2e16c5?api-version=2021-08-01 + cache-control: + - no-cache + content-length: + - '376' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 20 Oct 2022 03:16:28 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 20fa877e-9521-4cc0-95fa-c6a7324aa62a + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network asg create + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group -o + User-Agent: + - AZURECLI/2.41.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.14 (macOS-12.6-arm64-arm-64bit) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/583357d9-ccfd-48fd-a485-a72b9f2e16c5?api-version=2021-08-01 + response: + body: + string: "{\r\n \"status\": \"Succeeded\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '29' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 20 Oct 2022 03:16:29 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 3aa4dbbf-9297-46c4-a197-44261fa1e4a0 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network asg create + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group -o + User-Agent: + - AZURECLI/2.41.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.14 (macOS-12.6-arm64-arm-64bit) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/applicationSecurityGroups/asg1?api-version=2021-08-01 + response: + body: + string: "{\r\n \"name\": \"asg1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/applicationSecurityGroups/asg1\"\ + ,\r\n \"etag\": \"W/\\\"1b114020-029a-45cb-ba95-c63d3462f521\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/applicationSecurityGroups\",\r\n \"location\"\ + : \"eastus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + \r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '377' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 20 Oct 2022 03:16:30 GMT + etag: + - W/"1b114020-029a-45cb-ba95-c63d3462f521" + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 8dab332a-70c0-4738-aae6-fb75be59ace9 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network asg create + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group -o + User-Agent: + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.14 (macOS-12.6-arm64-arm-64bit) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001","name":"clitest000001","type":"Microsoft.Resources/resourceGroups","location":"eastus","tags":{"product":"azurecli","cause":"automation","date":"2022-10-20T03:16:12Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '304' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 20 Oct 2022 03:16:31 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"location": "eastus"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network asg create + Connection: + - keep-alive + Content-Length: + - '22' + Content-Type: + - application/json + ParameterSetName: + - --name --resource-group -o + User-Agent: + - AZURECLI/2.41.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.14 (macOS-12.6-arm64-arm-64bit) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/applicationSecurityGroups/asg2?api-version=2021-08-01 + response: + body: + string: "{\r\n \"name\": \"asg2\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/applicationSecurityGroups/asg2\"\ + ,\r\n \"etag\": \"W/\\\"4007c132-f1c6-4e50-b846-435f2b3a4f4e\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/applicationSecurityGroups\",\r\n \"location\"\ + : \"eastus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\ + \r\n }\r\n}" + headers: + azure-asyncnotification: + - Enabled + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/d75372f8-4e15-4ab9-b061-ab669e10fb2c?api-version=2021-08-01 + cache-control: + - no-cache + content-length: + - '376' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 20 Oct 2022 03:16:38 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - d1d447fd-4522-4a4d-95f8-a100b7e3e3fd + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network asg create + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group -o + User-Agent: + - AZURECLI/2.41.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.14 (macOS-12.6-arm64-arm-64bit) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/d75372f8-4e15-4ab9-b061-ab669e10fb2c?api-version=2021-08-01 + response: + body: + string: "{\r\n \"status\": \"Succeeded\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '29' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 20 Oct 2022 03:16:39 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 8b9ecc0e-03c4-4e6a-b54b-47efc0c30209 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network asg create + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group -o + User-Agent: + - AZURECLI/2.41.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.14 (macOS-12.6-arm64-arm-64bit) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/applicationSecurityGroups/asg2?api-version=2021-08-01 + response: + body: + string: "{\r\n \"name\": \"asg2\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/applicationSecurityGroups/asg2\"\ + ,\r\n \"etag\": \"W/\\\"1d65bae6-00ce-4aca-8848-9ff1a71c611f\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/applicationSecurityGroups\",\r\n \"location\"\ + : \"eastus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + \r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '377' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 20 Oct 2022 03:16:39 GMT + etag: + - W/"1d65bae6-00ce-4aca-8848-9ff1a71c611f" + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - b13f7bf9-4b47-4864-af0f-e1ea30f240d1 + status: + code: 200 + message: OK +- request: + body: '{"location": "eastus", "identity": {"type": "SystemAssigned"}, "properties": + {"kubernetesVersion": "", "dnsPrefix": "cliakstest-clitestwx34v4547-8ecadf", + "agentPoolProfiles": [{"count": 1, "vmSize": "standard_d2s_v3", "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, "name": "n000003"}], "linuxProfile": {"adminUsername": + "azureuser", "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCbIg1guRHbI0lV11wWDt1r2cUdcNd27CJsg+SfgC7miZeubtwUhbsPdhMQsfDyhOWHq1+ZL0M+nJZV63d/1dhmhtgyOqejUwrPlzKhydsbrsdUor+JmNJDdW01v7BXHyuymT8G4s09jCasNOwiufbP/qp72ruu0bIA1nySsvlf9pCQAuFkAnVnf/rFhUlOkhtRpwcq8SUNY2zRHR/EKb/4NWY1JzR4sa3q2fWIJdrrX0DvLoa5g9bIEd4Df79ba7v+yiUBOS0zT2ll+z4g9izHK3EO5d8hL4jYxcjKs+wcslSYRWrascfscLgMlMGh0CdKeNTDjHpGPncaf3Z+FwwwjWeuiNBxv7bJo13/8B/098KlVDl4GZqsoBCEjPyJfV6hO0y/LkRGkk7oHWKgeWAfKtfLItRp00eZ4fcJNK9kCaSMmEugoZWcI7NGbZXzqFWqbpRI7NcDP9+WIQ+i9U5vqWsqd/zng4kbuAJ6UuKqIzB0upYrLShfQE3SAck8oaLhJqqq56VfDuASNpJKidV+zq27HfSBmbXnkR/5AK337dc3MXKJypoK/QPMLKUAP5XLPbs+NddJQV7EZXd29DLgp+fRIg3edpKdO7ZErWhv7d+3Kws+e1Y+ypmR2WIVSwVyBEUfgv2C8Ts9gnTF4pNcEY/S2aBicz5Ew2+jdyGNQQ== + test@example.com\n"}]}}, "addonProfiles": {}, "enableRBAC": true, "enablePodSecurityPolicy": + false, "networkProfile": {"networkPlugin": "kubenet", "podCidr": "10.244.0.0/16", + "serviceCidr": "10.0.0.0/16", "dnsServiceIP": "10.0.0.10", "dockerBridgeCidr": + "172.17.0.1/16", "outboundType": "loadBalancer", "loadBalancerSku": "standard"}, + "disableLocalAccounts": false, "storageProfile": {}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '1884' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --name --location --ssh-key-value --nodepool-name --node-count + --node-vm-size + User-Agent: + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-containerservice/20.4.0b Python/3.8.14 + (macOS-12.6-arm64-arm-64bit) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2022-09-02-preview + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\"\ + ,\n \"location\": \"eastus\",\n \"name\": \"cliakstest000002\",\n \"type\"\ + : \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \ + \ \"provisioningState\": \"Creating\",\n \"powerState\": {\n \"code\"\ + : \"Running\"\n },\n \"kubernetesVersion\": \"1.23.12\",\n \"currentKubernetesVersion\"\ + : \"1.23.12\",\n \"dnsPrefix\": \"cliakstest-clitestwx34v4547-8ecadf\",\n\ + \ \"fqdn\": \"cliakstest-clitestwx34v4547-8ecadf-0bdec964.hcp.eastus.azmk8s.io\"\ + ,\n \"azurePortalFQDN\": \"cliakstest-clitestwx34v4547-8ecadf-0bdec964.portal.hcp.eastus.azmk8s.io\"\ + ,\n \"agentPoolProfiles\": [\n {\n \"name\": \"n000003\",\n \"\ + count\": 1,\n \"vmSize\": \"standard_d2s_v3\",\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.23.12\"\ + ,\n \"currentOrchestratorVersion\": \"1.23.12\",\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.10.03\",\n \"upgradeSettings\":\ + \ {},\n \"enableFIPS\": false\n }\n ],\n \"linuxProfile\": {\n\ + \ \"adminUsername\": \"azureuser\",\n \"ssh\": {\n \"publicKeys\"\ + : [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCbIg1guRHbI0lV11wWDt1r2cUdcNd27CJsg+SfgC7miZeubtwUhbsPdhMQsfDyhOWHq1+ZL0M+nJZV63d/1dhmhtgyOqejUwrPlzKhydsbrsdUor+JmNJDdW01v7BXHyuymT8G4s09jCasNOwiufbP/qp72ruu0bIA1nySsvlf9pCQAuFkAnVnf/rFhUlOkhtRpwcq8SUNY2zRHR/EKb/4NWY1JzR4sa3q2fWIJdrrX0DvLoa5g9bIEd4Df79ba7v+yiUBOS0zT2ll+z4g9izHK3EO5d8hL4jYxcjKs+wcslSYRWrascfscLgMlMGh0CdKeNTDjHpGPncaf3Z+FwwwjWeuiNBxv7bJo13/8B/098KlVDl4GZqsoBCEjPyJfV6hO0y/LkRGkk7oHWKgeWAfKtfLItRp00eZ4fcJNK9kCaSMmEugoZWcI7NGbZXzqFWqbpRI7NcDP9+WIQ+i9U5vqWsqd/zng4kbuAJ6UuKqIzB0upYrLShfQE3SAck8oaLhJqqq56VfDuASNpJKidV+zq27HfSBmbXnkR/5AK337dc3MXKJypoK/QPMLKUAP5XLPbs+NddJQV7EZXd29DLgp+fRIg3edpKdO7ZErWhv7d+3Kws+e1Y+ypmR2WIVSwVyBEUfgv2C8Ts9gnTF4pNcEY/S2aBicz5Ew2+jdyGNQQ==\ + \ test@example.com\\n\"\n }\n ]\n }\n },\n \"servicePrincipalProfile\"\ + : {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \ + \ \"nodeResourceGroup\": \"MC_clitest000001_cliakstest000002_eastus\",\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 \"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/eastus/operations/369c58ce-d2c9-48a0-9b5d-221a59b13652?api-version=2017-08-31 + cache-control: + - no-cache + content-length: + - '3776' + content-type: + - application/json + date: + - Thu, 20 Oct 2022 03:16:47 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --ssh-key-value --nodepool-name --node-count + --node-vm-size + User-Agent: + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-containerservice/20.4.0b Python/3.8.14 + (macOS-12.6-arm64-arm-64bit) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/369c58ce-d2c9-48a0-9b5d-221a59b13652?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"ce589c36-c9d2-a048-9b5d-221a59b13652\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2022-10-20T03:16:46.7819872Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Thu, 20 Oct 2022 03:16: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 --ssh-key-value --nodepool-name --node-count + --node-vm-size + User-Agent: + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-containerservice/20.4.0b Python/3.8.14 + (macOS-12.6-arm64-arm-64bit) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/369c58ce-d2c9-48a0-9b5d-221a59b13652?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"ce589c36-c9d2-a048-9b5d-221a59b13652\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2022-10-20T03:16:46.7819872Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Thu, 20 Oct 2022 03:17: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 --ssh-key-value --nodepool-name --node-count + --node-vm-size + User-Agent: + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-containerservice/20.4.0b Python/3.8.14 + (macOS-12.6-arm64-arm-64bit) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/369c58ce-d2c9-48a0-9b5d-221a59b13652?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"ce589c36-c9d2-a048-9b5d-221a59b13652\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2022-10-20T03:16:46.7819872Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Thu, 20 Oct 2022 03:17: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 --ssh-key-value --nodepool-name --node-count + --node-vm-size + User-Agent: + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-containerservice/20.4.0b Python/3.8.14 + (macOS-12.6-arm64-arm-64bit) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/369c58ce-d2c9-48a0-9b5d-221a59b13652?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"ce589c36-c9d2-a048-9b5d-221a59b13652\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2022-10-20T03:16:46.7819872Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Thu, 20 Oct 2022 03:18:19 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --ssh-key-value --nodepool-name --node-count + --node-vm-size + User-Agent: + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-containerservice/20.4.0b Python/3.8.14 + (macOS-12.6-arm64-arm-64bit) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/369c58ce-d2c9-48a0-9b5d-221a59b13652?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"ce589c36-c9d2-a048-9b5d-221a59b13652\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2022-10-20T03:16:46.7819872Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Thu, 20 Oct 2022 03:18:49 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --ssh-key-value --nodepool-name --node-count + --node-vm-size + User-Agent: + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-containerservice/20.4.0b Python/3.8.14 + (macOS-12.6-arm64-arm-64bit) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/369c58ce-d2c9-48a0-9b5d-221a59b13652?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"ce589c36-c9d2-a048-9b5d-221a59b13652\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2022-10-20T03:16:46.7819872Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Thu, 20 Oct 2022 03:19: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 --ssh-key-value --nodepool-name --node-count + --node-vm-size + User-Agent: + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-containerservice/20.4.0b Python/3.8.14 + (macOS-12.6-arm64-arm-64bit) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/369c58ce-d2c9-48a0-9b5d-221a59b13652?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"ce589c36-c9d2-a048-9b5d-221a59b13652\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2022-10-20T03:16:46.7819872Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Thu, 20 Oct 2022 03:19:50 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --ssh-key-value --nodepool-name --node-count + --node-vm-size + User-Agent: + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-containerservice/20.4.0b Python/3.8.14 + (macOS-12.6-arm64-arm-64bit) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/369c58ce-d2c9-48a0-9b5d-221a59b13652?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"ce589c36-c9d2-a048-9b5d-221a59b13652\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2022-10-20T03:16:46.7819872Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Thu, 20 Oct 2022 03:20:21 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 --ssh-key-value --nodepool-name --node-count + --node-vm-size + User-Agent: + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-containerservice/20.4.0b Python/3.8.14 + (macOS-12.6-arm64-arm-64bit) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/369c58ce-d2c9-48a0-9b5d-221a59b13652?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"ce589c36-c9d2-a048-9b5d-221a59b13652\",\n \"status\"\ + : \"Succeeded\",\n \"startTime\": \"2022-10-20T03:16:46.7819872Z\",\n \"\ + endTime\": \"2022-10-20T03:20:45.1009927Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '170' + content-type: + - application/json + date: + - Thu, 20 Oct 2022 03:20:55 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --ssh-key-value --nodepool-name --node-count + --node-vm-size + User-Agent: + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-containerservice/20.4.0b Python/3.8.14 + (macOS-12.6-arm64-arm-64bit) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2022-09-02-preview + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\"\ + ,\n \"location\": \"eastus\",\n \"name\": \"cliakstest000002\",\n \"type\"\ + : \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \ + \ \"provisioningState\": \"Succeeded\",\n \"powerState\": {\n \"code\"\ + : \"Running\"\n },\n \"kubernetesVersion\": \"1.23.12\",\n \"currentKubernetesVersion\"\ + : \"1.23.12\",\n \"dnsPrefix\": \"cliakstest-clitestwx34v4547-8ecadf\",\n\ + \ \"fqdn\": \"cliakstest-clitestwx34v4547-8ecadf-0bdec964.hcp.eastus.azmk8s.io\"\ + ,\n \"azurePortalFQDN\": \"cliakstest-clitestwx34v4547-8ecadf-0bdec964.portal.hcp.eastus.azmk8s.io\"\ + ,\n \"agentPoolProfiles\": [\n {\n \"name\": \"n000003\",\n \"\ + count\": 1,\n \"vmSize\": \"standard_d2s_v3\",\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.23.12\"\ + ,\n \"currentOrchestratorVersion\": \"1.23.12\",\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.10.03\",\n \"upgradeSettings\":\ + \ {},\n \"enableFIPS\": false\n }\n ],\n \"linuxProfile\": {\n\ + \ \"adminUsername\": \"azureuser\",\n \"ssh\": {\n \"publicKeys\"\ + : [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCbIg1guRHbI0lV11wWDt1r2cUdcNd27CJsg+SfgC7miZeubtwUhbsPdhMQsfDyhOWHq1+ZL0M+nJZV63d/1dhmhtgyOqejUwrPlzKhydsbrsdUor+JmNJDdW01v7BXHyuymT8G4s09jCasNOwiufbP/qp72ruu0bIA1nySsvlf9pCQAuFkAnVnf/rFhUlOkhtRpwcq8SUNY2zRHR/EKb/4NWY1JzR4sa3q2fWIJdrrX0DvLoa5g9bIEd4Df79ba7v+yiUBOS0zT2ll+z4g9izHK3EO5d8hL4jYxcjKs+wcslSYRWrascfscLgMlMGh0CdKeNTDjHpGPncaf3Z+FwwwjWeuiNBxv7bJo13/8B/098KlVDl4GZqsoBCEjPyJfV6hO0y/LkRGkk7oHWKgeWAfKtfLItRp00eZ4fcJNK9kCaSMmEugoZWcI7NGbZXzqFWqbpRI7NcDP9+WIQ+i9U5vqWsqd/zng4kbuAJ6UuKqIzB0upYrLShfQE3SAck8oaLhJqqq56VfDuASNpJKidV+zq27HfSBmbXnkR/5AK337dc3MXKJypoK/QPMLKUAP5XLPbs+NddJQV7EZXd29DLgp+fRIg3edpKdO7ZErWhv7d+3Kws+e1Y+ypmR2WIVSwVyBEUfgv2C8Ts9gnTF4pNcEY/S2aBicz5Ew2+jdyGNQQ==\ + \ test@example.com\\n\"\n }\n ]\n }\n },\n \"servicePrincipalProfile\"\ + : {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \ + \ \"nodeResourceGroup\": \"MC_clitest000001_cliakstest000002_eastus\",\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_eastus/providers/Microsoft.Network/publicIPAddresses/8b0f444b-6758-42ed-8a77-8f336e2aba5d\"\ + \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_eastus/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 \"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: + - '4427' + content-type: + - application/json + date: + - Thu, 20 Oct 2022 03:20:56 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks nodepool update + Connection: + - keep-alive + ParameterSetName: + - --resource-group --cluster-name --name --asg-ids --allowed-host-ports --aks-custom-headers + User-Agent: + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-containerservice/20.4.0b Python/3.8.14 + (macOS-12.6-arm64-arm-64bit) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/agentPools/n000003?api-version=2022-09-02-preview + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/agentPools/n000003\"\ + ,\n \"name\": \"n000003\",\n \"type\": \"Microsoft.ContainerService/managedClusters/agentPools\"\ + ,\n \"properties\": {\n \"count\": 1,\n \"vmSize\": \"standard_d2s_v3\"\ + ,\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.23.12\",\n \"currentOrchestratorVersion\"\ + : \"1.23.12\",\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.10.03\"\ + ,\n \"upgradeSettings\": {},\n \"enableFIPS\": false\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '1022' + content-type: + - application/json + date: + - Thu, 20 Oct 2022 03:20:59 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"properties": {"count": 1, "vmSize": "standard_d2s_v3", "osDiskSizeGB": + 128, "osDiskType": "Managed", "kubeletDiskType": "OS", "workloadRuntime": "OCIContainer", + "maxPods": 110, "osType": "Linux", "osSKU": "Ubuntu", "enableAutoScaling": false, + "type": "VirtualMachineScaleSets", "mode": "System", "orchestratorVersion": + "1.23.12", "upgradeSettings": {}, "powerState": {"code": "Running"}, "enableNodePublicIP": + false, "enableCustomCATrust": false, "enableEncryptionAtHost": false, "enableUltraSSD": + false, "enableFIPS": false, "networkProfile": {"allowedHostPorts": [{"portStart": + 53, "portEnd": 53, "protocol": "UDP"}, {"portStart": 80, "portEnd": 80, "protocol": + "TCP"}, {"portStart": 443, "portEnd": 443, "protocol": "TCP"}, {"portStart": + 4000, "portEnd": 5000, "protocol": "TCP"}, {"portStart": 4000, "portEnd": 6000, + "protocol": "UDP"}], "applicationSecurityGroups": ["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/applicationSecurityGroups/asg1", + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/applicationSecurityGroups/asg2"]}}}' + headers: + AKSHTTPCustomFeatures: + - Microsoft.ContainerService/NodePublicIPNSGControlPreview + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks nodepool update + Connection: + - keep-alive + Content-Length: + - '1162' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --cluster-name --name --asg-ids --allowed-host-ports --aks-custom-headers + User-Agent: + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-containerservice/20.4.0b Python/3.8.14 + (macOS-12.6-arm64-arm-64bit) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/agentPools/n000003?api-version=2022-09-02-preview + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/agentPools/n000003\"\ + ,\n \"name\": \"n000003\",\n \"type\": \"Microsoft.ContainerService/managedClusters/agentPools\"\ + ,\n \"properties\": {\n \"count\": 1,\n \"vmSize\": \"standard_d2s_v3\"\ + ,\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.23.12\",\n \"currentOrchestratorVersion\"\ + : \"1.23.12\",\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.10.03\"\ + ,\n \"upgradeSettings\": {},\n \"enableFIPS\": false,\n \"networkProfile\"\ + : {\n \"allowedHostPorts\": [\n {\n \"portStart\": 53,\n \ + \ \"portEnd\": 53,\n \"protocol\": \"UDP\"\n },\n {\n \"\ + portStart\": 80,\n \"portEnd\": 80,\n \"protocol\": \"TCP\"\n \ + \ },\n {\n \"portStart\": 443,\n \"portEnd\": 443,\n \ + \ \"protocol\": \"TCP\"\n },\n {\n \"portStart\": 4000,\n \ + \ \"portEnd\": 5000,\n \"protocol\": \"TCP\"\n },\n {\n \ + \ \"portStart\": 4000,\n \"portEnd\": 6000,\n \"protocol\": \"\ + UDP\"\n }\n ],\n \"applicationSecurityGroups\": [\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/applicationSecurityGroups/asg1\"\ + ,\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/applicationSecurityGroups/asg2\"\ + \n ]\n }\n }\n }" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/c6398ddf-c42a-44d9-aea5-1cc25efa8364?api-version=2017-08-31 + cache-control: + - no-cache + content-length: + - '1843' + content-type: + - application/json + date: + - Thu, 20 Oct 2022 03:21: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 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks nodepool update + Connection: + - keep-alive + ParameterSetName: + - --resource-group --cluster-name --name --asg-ids --allowed-host-ports --aks-custom-headers + User-Agent: + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-containerservice/20.4.0b Python/3.8.14 + (macOS-12.6-arm64-arm-64bit) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/c6398ddf-c42a-44d9-aea5-1cc25efa8364?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"df8d39c6-2ac4-d944-aea5-1cc25efa8364\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2022-10-20T03:21:02.7976294Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Thu, 20 Oct 2022 03:21: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 nodepool update + Connection: + - keep-alive + ParameterSetName: + - --resource-group --cluster-name --name --asg-ids --allowed-host-ports --aks-custom-headers + User-Agent: + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-containerservice/20.4.0b Python/3.8.14 + (macOS-12.6-arm64-arm-64bit) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/c6398ddf-c42a-44d9-aea5-1cc25efa8364?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"df8d39c6-2ac4-d944-aea5-1cc25efa8364\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2022-10-20T03:21:02.7976294Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Thu, 20 Oct 2022 03:21:33 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks nodepool update + Connection: + - keep-alive + ParameterSetName: + - --resource-group --cluster-name --name --asg-ids --allowed-host-ports --aks-custom-headers + User-Agent: + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-containerservice/20.4.0b Python/3.8.14 + (macOS-12.6-arm64-arm-64bit) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/c6398ddf-c42a-44d9-aea5-1cc25efa8364?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"df8d39c6-2ac4-d944-aea5-1cc25efa8364\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2022-10-20T03:21:02.7976294Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Thu, 20 Oct 2022 03:22:04 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks nodepool update + Connection: + - keep-alive + ParameterSetName: + - --resource-group --cluster-name --name --asg-ids --allowed-host-ports --aks-custom-headers + User-Agent: + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-containerservice/20.4.0b Python/3.8.14 + (macOS-12.6-arm64-arm-64bit) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/c6398ddf-c42a-44d9-aea5-1cc25efa8364?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"df8d39c6-2ac4-d944-aea5-1cc25efa8364\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2022-10-20T03:21:02.7976294Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Thu, 20 Oct 2022 03:22:34 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks nodepool update + Connection: + - keep-alive + ParameterSetName: + - --resource-group --cluster-name --name --asg-ids --allowed-host-ports --aks-custom-headers + User-Agent: + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-containerservice/20.4.0b Python/3.8.14 + (macOS-12.6-arm64-arm-64bit) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/c6398ddf-c42a-44d9-aea5-1cc25efa8364?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"df8d39c6-2ac4-d944-aea5-1cc25efa8364\",\n \"status\"\ + : \"Succeeded\",\n \"startTime\": \"2022-10-20T03:21:02.7976294Z\",\n \"\ + endTime\": \"2022-10-20T03:22:48.0298517Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '170' + content-type: + - application/json + date: + - Thu, 20 Oct 2022 03:23:05 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks nodepool update + Connection: + - keep-alive + ParameterSetName: + - --resource-group --cluster-name --name --asg-ids --allowed-host-ports --aks-custom-headers + User-Agent: + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-containerservice/20.4.0b Python/3.8.14 + (macOS-12.6-arm64-arm-64bit) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/agentPools/n000003?api-version=2022-09-02-preview + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/agentPools/n000003\"\ + ,\n \"name\": \"n000003\",\n \"type\": \"Microsoft.ContainerService/managedClusters/agentPools\"\ + ,\n \"properties\": {\n \"count\": 1,\n \"vmSize\": \"standard_d2s_v3\"\ + ,\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.23.12\",\n \"currentOrchestratorVersion\"\ + : \"1.23.12\",\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.10.03\"\ + ,\n \"upgradeSettings\": {},\n \"enableFIPS\": false,\n \"networkProfile\"\ + : {\n \"allowedHostPorts\": [\n {\n \"portStart\": 53,\n \ + \ \"portEnd\": 53,\n \"protocol\": \"UDP\"\n },\n {\n \"\ + portStart\": 80,\n \"portEnd\": 80,\n \"protocol\": \"TCP\"\n \ + \ },\n {\n \"portStart\": 443,\n \"portEnd\": 443,\n \ + \ \"protocol\": \"TCP\"\n },\n {\n \"portStart\": 4000,\n \ + \ \"portEnd\": 5000,\n \"protocol\": \"TCP\"\n },\n {\n \ + \ \"portStart\": 4000,\n \"portEnd\": 6000,\n \"protocol\": \"\ + UDP\"\n }\n ],\n \"applicationSecurityGroups\": [\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/applicationSecurityGroups/asg1\"\ + ,\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/applicationSecurityGroups/asg2\"\ + \n ]\n }\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '1844' + content-type: + - application/json + date: + - Thu, 20 Oct 2022 03:23:06 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --resource-group --name --yes --no-wait + User-Agent: + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-containerservice/20.4.0b Python/3.8.14 + (macOS-12.6-arm64-arm-64bit) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2022-09-02-preview + response: + body: + string: '' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/797709ee-f807-4373-a210-902ee579dc11?api-version=2017-08-31 + cache-control: + - no-cache + content-length: + - '0' + date: + - Thu, 20 Oct 2022 03:23:10 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operationresults/797709ee-f807-4373-a210-902ee579dc11?api-version=2017-08-31 + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' + status: + code: 202 + message: Accepted +version: 1 diff --git a/src/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 9706c25b871..e8f5e58c17e 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 @@ -5899,3 +5899,175 @@ def test_aks_create_with_kube_proxy_config(self, resource_group, resource_group_ # delete self.cmd( 'aks delete -g {resource_group} -n {name} --yes --no-wait', checks=[self.is_empty()]) + + @AllowLargeResponse() + @AKSCustomResourceGroupPreparer(random_name_length=17, name_prefix='clitest', location='eastus') + def test_aks_create_with_nsg_control(self, resource_group, resource_group_location): + aks_name = self.create_random_name('cliakstest', 16) + nodepool_name = self.create_random_name('n', 6) + + self.kwargs.update({ + 'resource_group': resource_group, + 'name': aks_name, + 'location': resource_group_location, + 'ssh_key_value': self.generate_ssh_keys(), + 'node_vm_size': 'standard_d2s_v3', + 'asg1': 'asg1', + 'asg2': 'asg2', + }) + + create_asg1 = 'network asg create --name {asg1} --resource-group {resource_group} -o json' + create_asg2 = 'network asg create --name {asg2} --resource-group {resource_group} -o json' + asg1 = self.cmd(create_asg1, checks=[self.check('provisioningState', 'Succeeded')]).get_output_in_json() + asg2 = self.cmd(create_asg2, checks=[self.check('provisioningState', 'Succeeded')]).get_output_in_json() + + self.kwargs.update({ + 'asg_ids': ','.join([asg1['id'], asg2['id']]), + 'allowed_host_ports': ','.join(['53/udp', '80/tcp', '443/tcp', '4000-5000/tcp', '4000-6000/udp']), + }) + self.cmd( + 'aks create ' + '--resource-group={resource_group} ' + '--name={name} ' + '--location={location} ' + '--ssh-key-value={ssh_key_value} ' + '--node-count=1 ' + '--node-vm-size={node_vm_size} ' + '--nodepool-asg-ids={asg_ids} ' + '--nodepool-allowed-host-ports={allowed_host_ports} ' + '--aks-custom-headers AKSHTTPCustomFeatures=Microsoft.ContainerService/NodePublicIPNSGControlPreview', + checks=[ + self.check('provisioningState', 'Succeeded'), + self.check('agentPoolProfiles[0].networkProfile.applicationSecurityGroups', self.kwargs['asg_ids'].split(',')), + self.check('agentPoolProfiles[0].networkProfile.allowedHostPorts[] | length(@)', len(self.kwargs['allowed_host_ports'].split(','))), + ], + ) + + # delete + cmd = 'aks delete --resource-group={resource_group} --name={name} --yes --no-wait' + self.cmd(cmd, checks=[ + self.is_empty(), + ]) + + @AllowLargeResponse() + @AKSCustomResourceGroupPreparer(random_name_length=17, name_prefix='clitest', location='eastus') + def test_aks_nodepool_create_with_nsg_control(self, resource_group, resource_group_location): + aks_name = self.create_random_name('cliakstest', 16) + nodepool_name = self.create_random_name('n', 6) + + self.kwargs.update({ + 'resource_group': resource_group, + 'name': aks_name, + 'location': resource_group_location, + 'ssh_key_value': self.generate_ssh_keys(), + 'node_pool_name': nodepool_name, + 'node_vm_size': 'standard_d2s_v3', + 'asg1': 'asg1', + 'asg2': 'asg2', + }) + create_asg1 = 'network asg create --name {asg1} --resource-group {resource_group} -o json' + create_asg2 = 'network asg create --name {asg2} --resource-group {resource_group} -o json' + asg1 = self.cmd(create_asg1, checks=[self.check('provisioningState', 'Succeeded')]).get_output_in_json() + asg2 = self.cmd(create_asg2, checks=[self.check('provisioningState', 'Succeeded')]).get_output_in_json() + + self.kwargs.update({ + 'asg_ids': ','.join([asg1['id'], asg2['id']]), + 'allowed_host_ports': ','.join(['53/udp', '80/tcp', '443/tcp', '4000-5000/tcp', '4000-6000/udp']), + }) + + self.cmd( + 'aks create ' + '--resource-group={resource_group} ' + '--name={name} ' + '--location={location} ' + '--ssh-key-value={ssh_key_value} ' + '--node-count=1 ' + '--node-vm-size={node_vm_size} ', + checks=[ + self.check('provisioningState', 'Succeeded'), + ], + ) + + self.cmd( + 'aks nodepool add ' + '--resource-group={resource_group} ' + '--cluster-name={name} ' + '--name={node_pool_name} ' + '--node-vm-size={node_vm_size} ' + '--node-count=1 ' + '--asg-ids={asg_ids} ' + '--allowed-host-ports={allowed_host_ports} ' + '--aks-custom-headers AKSHTTPCustomFeatures=Microsoft.ContainerService/NodePublicIPNSGControlPreview', + checks=[ + self.check('provisioningState', 'Succeeded'), + self.check('networkProfile.applicationSecurityGroups', self.kwargs['asg_ids'].split(',')), + self.check('networkProfile.allowedHostPorts[] | length(@)', len(self.kwargs['allowed_host_ports'].split(','))), + ], + ) + + # delete + cmd = 'aks delete --resource-group={resource_group} --name={name} --yes --no-wait' + self.cmd(cmd, checks=[ + self.is_empty(), + ]) + + @AllowLargeResponse() + @AKSCustomResourceGroupPreparer(random_name_length=17, name_prefix='clitest', location='eastus') + def test_aks_nodepool_update_with_nsg_control(self, resource_group, resource_group_location): + aks_name = self.create_random_name('cliakstest', 16) + nodepool_name = self.create_random_name('n', 6) + + self.kwargs.update({ + 'resource_group': resource_group, + 'name': aks_name, + 'location': resource_group_location, + 'ssh_key_value': self.generate_ssh_keys(), + 'node_pool_name': nodepool_name, + 'node_vm_size': 'standard_d2s_v3', + 'asg1': 'asg1', + 'asg2': 'asg2', + }) + create_asg1 = 'network asg create --name {asg1} --resource-group {resource_group} -o json' + create_asg2 = 'network asg create --name {asg2} --resource-group {resource_group} -o json' + asg1 = self.cmd(create_asg1, checks=[self.check('provisioningState', 'Succeeded')]).get_output_in_json() + asg2 = self.cmd(create_asg2, checks=[self.check('provisioningState', 'Succeeded')]).get_output_in_json() + + self.kwargs.update({ + 'asg_ids': ','.join([asg1['id'], asg2['id']]), + 'allowed_host_ports': ','.join(['53/udp', '80/tcp', '443/tcp', '4000-5000/tcp', '4000-6000/udp']), + }) + + self.cmd( + 'aks create ' + '--resource-group={resource_group} ' + '--name={name} ' + '--location={location} ' + '--ssh-key-value={ssh_key_value} ' + '--nodepool-name={node_pool_name} ' + '--node-count=1 ' + '--node-vm-size={node_vm_size} ', + checks=[ + self.check('provisioningState', 'Succeeded'), + ], + ) + + self.cmd( + 'aks nodepool update ' + '--resource-group={resource_group} ' + '--cluster-name={name} ' + '--name={node_pool_name} ' + '--asg-ids={asg_ids} ' + '--allowed-host-ports={allowed_host_ports} ' + '--aks-custom-headers AKSHTTPCustomFeatures=Microsoft.ContainerService/NodePublicIPNSGControlPreview', + checks=[ + self.check('provisioningState', 'Succeeded'), + self.check('networkProfile.applicationSecurityGroups', self.kwargs['asg_ids'].split(',')), + self.check('networkProfile.allowedHostPorts[] | length(@)', len(self.kwargs['allowed_host_ports'].split(','))), + ], + ) + + # delete + cmd = 'aks delete --resource-group={resource_group} --name={name} --yes --no-wait' + self.cmd(cmd, checks=[ + self.is_empty(), + ]) diff --git a/src/aks-preview/azext_aks_preview/tests/latest/test_validators.py b/src/aks-preview/azext_aks_preview/tests/latest/test_validators.py index 793d0edd76b..8baf3c3ff4e 100644 --- a/src/aks-preview/azext_aks_preview/tests/latest/test_validators.py +++ b/src/aks-preview/azext_aks_preview/tests/latest/test_validators.py @@ -519,5 +519,65 @@ def test_valid_agent_pool_name(self): ) +class TestValidateAllowedHostPorts(unittest.TestCase): + def test_invalid_allowed_host_ports(self): + namespace = SimpleNamespace( + **{ + "allowed_host_ports": "80,443,8080", + } + ) + with self.assertRaises(InvalidArgumentValueError): + validators.validate_allowed_host_ports( + namespace + ) + + def test_valid_allowed_host_ports(self): + namespace = SimpleNamespace( + **{ + "allowed_host_ports": "80/tcp,443/tcp,8080-8090/tcp,53/udp", + } + ) + validators.validate_allowed_host_ports( + namespace + ) + + +class TestValidateApplicationSecurityGroups(unittest.TestCase): + def test_invalid_application_security_groups(self): + namespace = SimpleNamespace( + **{ + "asg_ids": "invalid", + } + ) + with self.assertRaises(InvalidArgumentValueError): + validators.validate_application_security_groups( + namespace + ) + + def test_empty_application_security_groups(self): + namespace = SimpleNamespace( + **{ + "asg_ids": "", + } + ) + validators.validate_application_security_groups( + namespace + ) + + def test_multiple_application_security_groups(self): + asg_ids = ','.join([ + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/applicationSecurityGroups/asg1", + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg2/providers/Microsoft.Network/applicationSecurityGroups/asg2", + ]) + namespace = SimpleNamespace( + **{ + "asg_ids": asg_ids, + } + ) + validators.validate_application_security_groups( + namespace + ) + + if __name__ == "__main__": unittest.main() diff --git a/src/aks-preview/linter_exclusions.yml b/src/aks-preview/linter_exclusions.yml index 23d355bb8e4..941f8a15914 100644 --- a/src/aks-preview/linter_exclusions.yml +++ b/src/aks-preview/linter_exclusions.yml @@ -39,6 +39,9 @@ aks create: enable_cilium_dataplane: rule_exclusions: - option_length_too_long + nodepool_allowed_host_ports: + rule_exclusions: + - option_length_too_long aks delete: parameters: ignore_pod_disruption_budget: diff --git a/src/aks-preview/setup.py b/src/aks-preview/setup.py index 632cd760c82..043401d1547 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.109" +VERSION = "0.5.110" CLASSIFIERS = [ "Development Status :: 4 - Beta",