diff --git a/src/aks-preview/HISTORY.rst b/src/aks-preview/HISTORY.rst index 8126843d9b2..fc3400b2f95 100644 --- a/src/aks-preview/HISTORY.rst +++ b/src/aks-preview/HISTORY.rst @@ -11,7 +11,16 @@ To release a new version, please select a new version number (usually plus 1 to Pending ++++++ -* Vendor new SDK and bump API version to 2023-05-02-preview. + +0.5.145 ++++++++ +* Add support for option --aks-custom-headers to some aks commands + * aks get-credentials + * aks nodepool scale + * aks nodepool update + * aks enable-addons + * aks show + * aks scale 0.5.144 +++++++ @@ -19,6 +28,7 @@ Pending 0.5.143 +++++++ +* Vendor new SDK and bump API version to 2023-05-02-preview. * Add `--enable-network-observability` flag to `az aks create` and `az aks update`. 0.5.142 diff --git a/src/aks-preview/azext_aks_preview/_format.py b/src/aks-preview/azext_aks_preview/_format.py index 88957cbfdbd..e1ef1df3a3f 100644 --- a/src/aks-preview/azext_aks_preview/_format.py +++ b/src/aks-preview/azext_aks_preview/_format.py @@ -147,6 +147,18 @@ def version_to_tuple(version): return tuple(map(int, (version.split('.')))) +# helper function used by aks get-versions, should be removed once dependency bumped to 2.50.0 +def flatten_version_table(release_info): + """Flattens version table""" + flattened = [] + for release in release_info: + isPreview = release.get("isPreview", False) + for k, v in release.get("patchVersions", {}).items(): + item = {"version": k, "upgrades": v.get("upgrades", []), "isPreview": isPreview} + flattened.append(item) + return flattened + + def _custom_functions(preview_versions): class CustomFunctions(functions.Functions): # pylint: disable=too-few-public-methods @@ -217,6 +229,23 @@ def aks_pod_identities_table_format(result): return parsed.search(result, Options(dict_cls=OrderedDict, custom_functions=_custom_functions(preview))) +# helper function used by aks get-versions, should be removed once dependency bumped to 2.50.0 +def aks_versions_table_format(result): + """Format get-versions results as a summary for display with "-o table".""" + + version_table = flatten_version_table(result.get("values", [])) + + parsed = compile_jmes("""[].{ + kubernetesVersion: version, + isPreview: isPreview, + upgrades: upgrades || [`None available`] | sort_versions(@) | join(`, `, @) + }""") + # use ordered dicts so headers are predictable + results = parsed.search(version_table, Options( + dict_cls=OrderedDict, custom_functions=_custom_functions({}))) + return sorted(results, key=lambda x: version_to_tuple(x.get("kubernetesVersion")), reverse=True) + + def aks_list_nodepool_snapshot_table_format(results): """"Format a list of nodepool snapshots as summary results for display with "-o table".""" return [_aks_nodepool_snapshot_table_format(r) for r in results] diff --git a/src/aks-preview/azext_aks_preview/_help.py b/src/aks-preview/azext_aks_preview/_help.py index ccb1c8ed212..5d08298956a 100644 --- a/src/aks-preview/azext_aks_preview/_help.py +++ b/src/aks-preview/azext_aks_preview/_help.py @@ -644,6 +644,9 @@ - name: --node-count -c type: int short-summary: Number of nodes in the Kubernetes node pool. + - name: --aks-custom-headers + type: string + short-summary: Send custom headers. When specified, format should be Key1=Value1,Key2=Value2 """ helps['aks upgrade'] = """ @@ -1620,6 +1623,9 @@ - name: --node-count -c type: int short-summary: Number of nodes in the Kubernetes node pool. + - name: --aks-custom-headers + type: string + short-summary: Send custom headers. When specified, format should be Key1=Value1,Key2=Value2 """ helps['aks nodepool upgrade'] = """ @@ -2023,6 +2029,9 @@ - name: --dns-zone-resource-id type: string short-summary: The resource ID of the DNS zone resource to use with the web_application_routing addon. + - name: --aks-custom-headers + type: string + short-summary: Send custom headers. When specified, format should be Key1=Value1,Key2=Value2 examples: - name: Enable Kubernetes addons. (autogenerated) text: az aks enable-addons --addons virtual-node --name MyManagedCluster --resource-group MyResourceGroup --subnet-name VirtualNodeSubnet @@ -2035,6 +2044,19 @@ crafted: true """ +helps['aks show'] = """ +type: command +short-summary: Show the details for a managed Kubernetes cluster. +parameters: + - name: --aks-custom-headers + type: string + short-summary: Send custom headers. When specified, format should be Key1=Value1,Key2=Value2 +examples: + - name: Show the details for a managed Kubernetes cluster + text: az aks show -g MyResourceGroup -n MyManagedCluster + crafted: true +""" + helps['aks get-versions'] = """ type: command short-summary: Get the versions available for creating a managed Kubernetes cluster. @@ -2079,6 +2101,9 @@ type: string short-summary: Specify the format of the returned credential. Available values are ["exec", "azure"]. Only take effect when requesting clusterUser credential of AAD clusters. + - name: --aks-custom-headers + type: string + short-summary: Send custom headers. When specified, format should be Key1=Value1,Key2=Value2 examples: - name: Get access credentials for a managed Kubernetes cluster. (autogenerated) text: az aks get-credentials --name MyManagedCluster --resource-group MyResourceGroup diff --git a/src/aks-preview/azext_aks_preview/commands.py b/src/aks-preview/azext_aks_preview/commands.py index d550a15457c..4e04b1cbf62 100644 --- a/src/aks-preview/azext_aks_preview/commands.py +++ b/src/aks-preview/azext_aks_preview/commands.py @@ -29,6 +29,7 @@ aks_show_snapshot_table_format, aks_show_table_format, aks_upgrades_table_format, + aks_versions_table_format, ) from knack.log import get_logger @@ -138,6 +139,7 @@ def load_command_table(self, _): g.command('stop', 'begin_stop', supports_no_wait=True) g.command('start', 'begin_start', supports_no_wait=True) g.wait_command('wait') + g.custom_command('get-versions', 'aks_get_versions', table_transformer=aks_versions_table_format) # aks-preview only g.custom_command('kollect', 'aks_kollect') g.custom_command('kanalyze', 'aks_kanalyze') diff --git a/src/aks-preview/azext_aks_preview/custom.py b/src/aks-preview/azext_aks_preview/custom.py index 483bc1535ca..e6eb6007313 100644 --- a/src/aks-preview/azext_aks_preview/custom.py +++ b/src/aks-preview/azext_aks_preview/custom.py @@ -773,8 +773,9 @@ def aks_update( # pylint: disable=unused-argument -def aks_show(cmd, client, resource_group_name, name): - mc = client.get(resource_group_name, name) +def aks_show(cmd, client, resource_group_name, name, aks_custom_headers=None): + headers = get_aks_custom_headers(aks_custom_headers) + mc = client.get(resource_group_name, name, headers=headers) return _remove_nulls([mc])[0] @@ -825,7 +826,9 @@ def aks_get_credentials( context_name=None, public_fqdn=False, credential_format=None, + aks_custom_headers=None, ): + headers = get_aks_custom_headers(aks_custom_headers) credentialResults = None serverType = None if public_fqdn: @@ -836,14 +839,14 @@ def aks_get_credentials( raise InvalidArgumentValueError("--format can only be specified when requesting clusterUser credential.") if admin: credentialResults = client.list_cluster_admin_credentials( - resource_group_name, name, serverType) + resource_group_name, name, serverType, headers=headers) else: if user.lower() == 'clusteruser': credentialResults = client.list_cluster_user_credentials( - resource_group_name, name, serverType, credential_format) + resource_group_name, name, serverType, credential_format, headers=headers) elif user.lower() == 'clustermonitoringuser': credentialResults = client.list_cluster_monitoring_user_credentials( - resource_group_name, name, serverType) + resource_group_name, name, serverType, headers=headers) else: raise InvalidArgumentValueError("The value of option --user is invalid.") @@ -876,7 +879,9 @@ def aks_scale(cmd, # pylint: disable=unused-argument name, node_count, nodepool_name="", - no_wait=False): + no_wait=False, + aks_custom_headers=None): + headers = get_aks_custom_headers(aks_custom_headers) instance = client.get(resource_group_name, name) _fill_defaults_for_pod_identity_profile(instance.pod_identity_profile) @@ -893,7 +898,7 @@ def aks_scale(cmd, # pylint: disable=unused-argument agent_profile.count = int(node_count) # pylint: disable=no-member # null out the SP profile because otherwise validation complains instance.service_principal_profile = None - return sdk_no_wait(no_wait, client.begin_create_or_update, resource_group_name, name, instance) + return sdk_no_wait(no_wait, client.begin_create_or_update, resource_group_name, name, instance, headers=headers) raise CLIError('The nodepool "{}" was not found.'.format(nodepool_name)) @@ -1157,7 +1162,9 @@ def aks_agentpool_scale(cmd, # pylint: disable=unused-argument cluster_name, nodepool_name, node_count=3, - no_wait=False): + no_wait=False, + aks_custom_headers=None): + headers = get_aks_custom_headers(aks_custom_headers) instance = client.get(resource_group_name, cluster_name, nodepool_name) new_node_count = int(node_count) if instance.enable_auto_scaling: @@ -1166,7 +1173,7 @@ def aks_agentpool_scale(cmd, # pylint: disable=unused-argument raise CLIError( "The new node count is the same as the current node count.") instance.count = new_node_count # pylint: disable=no-member - return sdk_no_wait(no_wait, client.begin_create_or_update, resource_group_name, cluster_name, nodepool_name, instance) + return sdk_no_wait(no_wait, client.begin_create_or_update, resource_group_name, cluster_name, nodepool_name, instance, headers=headers) def aks_agentpool_upgrade(cmd, @@ -1576,8 +1583,8 @@ def aks_disable_addons(cmd, client, resource_group_name, name, addons, no_wait=F def aks_enable_addons(cmd, client, resource_group_name, name, addons, workspace_resource_id=None, subnet_name=None, appgw_name=None, appgw_subnet_prefix=None, appgw_subnet_cidr=None, appgw_id=None, appgw_subnet_id=None, appgw_watch_namespace=None, enable_sgxquotehelper=False, enable_secret_rotation=False, rotation_poll_interval=None, no_wait=False, enable_msi_auth_for_monitoring=True, - dns_zone_resource_id=None, enable_syslog=False, data_collection_settings=None): - + dns_zone_resource_id=None, enable_syslog=False, data_collection_settings=None, aks_custom_headers=None): + headers = get_aks_custom_headers(aks_custom_headers) instance = client.get(resource_group_name, name) # this is overwritten by _update_addons(), so the value needs to be recorded here msi_auth = False @@ -1661,7 +1668,7 @@ def aks_enable_addons(cmd, client, resource_group_name, name, addons, workspace_ else: result = sdk_no_wait(no_wait, client.begin_create_or_update, - resource_group_name, name, instance) + resource_group_name, name, instance, headers=headers) return result @@ -1856,7 +1863,7 @@ def _update_addons(cmd, # pylint: disable=too-many-branches,too-many-statements def aks_get_versions(cmd, client, location): # pylint: disable=unused-argument - return client.list_orchestrators(location, resource_type='managedClusters') + return client.list_kubernetes_versions(location) def aks_get_os_options(cmd, client, location): # pylint: disable=unused-argument diff --git a/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_azure_cni_overlay_migration.yaml b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_azure_cni_overlay_migration.yaml index e4c2839a478..0b1815d7eb1 100755 --- a/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_azure_cni_overlay_migration.yaml +++ b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_azure_cni_overlay_migration.yaml @@ -16,7 +16,7 @@ interactions: - AZURECLI/2.49.0 azsdk-python-azure-mgmt-containerservice/23.0.0 Python/3.8.10 (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westcentralus/kubernetesVersions?api-version=2023-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westcentralus/kubernetesVersions?api-version=2023-05-02-preview response: body: string: "{\n \"values\": [\n {\n \"version\": \"1.27\",\n \"capabilities\": diff --git a/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_and_update_ipv6_count.yaml b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_and_update_ipv6_count.yaml index 3b10a29fcde..87a5c7b5368 100755 --- a/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_and_update_ipv6_count.yaml +++ b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_and_update_ipv6_count.yaml @@ -16,7 +16,7 @@ interactions: - AZURECLI/2.49.0 azsdk-python-azure-mgmt-containerservice/23.0.0 Python/3.8.10 (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/centraluseuap/kubernetesVersions?api-version=2023-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/centraluseuap/kubernetesVersions?api-version=2023-05-02-preview response: body: string: "{\n \"values\": [\n {\n \"version\": \"1.24\",\n \"capabilities\": diff --git a/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_and_update_with_node_restriction.yaml b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_and_update_with_node_restriction.yaml index c5fe97e2bee..fa4bd338f1b 100755 --- a/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_and_update_with_node_restriction.yaml +++ b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_and_update_with_node_restriction.yaml @@ -16,7 +16,7 @@ interactions: - AZURECLI/2.49.0 azsdk-python-azure-mgmt-containerservice/23.0.0 Python/3.8.10 (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/kubernetesVersions?api-version=2023-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/kubernetesVersions?api-version=2023-05-02-preview response: body: string: "{\n \"values\": [\n {\n \"version\": \"1.27\",\n \"capabilities\": diff --git a/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_and_update_with_vpa.yaml b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_and_update_with_vpa.yaml index 9a5abb8a20d..8235d03dcef 100755 --- a/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_and_update_with_vpa.yaml +++ b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_and_update_with_vpa.yaml @@ -16,7 +16,7 @@ interactions: - AZURECLI/2.49.0 azsdk-python-azure-mgmt-containerservice/23.0.0 Python/3.8.10 (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/kubernetesVersions?api-version=2023-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/kubernetesVersions?api-version=2023-05-02-preview response: body: string: "{\n \"values\": [\n {\n \"version\": \"1.25\",\n \"capabilities\": diff --git a/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_dualstack_with_default_network.yaml b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_dualstack_with_default_network.yaml index 4b39b7c0aa9..2cc3943fa2b 100755 --- a/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_dualstack_with_default_network.yaml +++ b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_dualstack_with_default_network.yaml @@ -16,7 +16,7 @@ interactions: - AZURECLI/2.49.0 azsdk-python-azure-mgmt-containerservice/23.0.0 Python/3.8.10 (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/centraluseuap/kubernetesVersions?api-version=2023-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/centraluseuap/kubernetesVersions?api-version=2023-05-02-preview response: body: string: "{\n \"values\": [\n {\n \"version\": \"1.27\",\n \"capabilities\": diff --git a/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_or_update_with_load_balancer_backend_pool_type.yaml b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_or_update_with_load_balancer_backend_pool_type.yaml index a93372e9379..aa41ba22f7d 100755 --- a/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_or_update_with_load_balancer_backend_pool_type.yaml +++ b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_or_update_with_load_balancer_backend_pool_type.yaml @@ -16,7 +16,7 @@ interactions: - AZURECLI/2.49.0 azsdk-python-azure-mgmt-containerservice/23.0.0 Python/3.8.10 (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/centraluseuap/kubernetesVersions?api-version=2023-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/centraluseuap/kubernetesVersions?api-version=2023-05-02-preview response: body: string: "{\n \"values\": [\n {\n \"version\": \"1.27\",\n \"capabilities\": diff --git a/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_with_custom_headers.yaml b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_with_custom_headers.yaml new file mode 100755 index 00000000000..62ea0b82382 --- /dev/null +++ b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_with_custom_headers.yaml @@ -0,0 +1,2235 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks get-versions + Connection: + - keep-alive + ParameterSetName: + - -l --query + User-Agent: + - AZURECLI/2.49.0 azsdk-python-azure-mgmt-containerservice/23.0.0b Python/3.8.10 + (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/kubernetesVersions?api-version=2023-05-02-preview + response: + body: + string: "{\n \"values\": [\n {\n \"version\": \"1.25\",\n \"capabilities\": + {\n \"supportPlan\": [\n \"KubernetesOfficial\"\n ]\n },\n + \ \"patchVersions\": {\n \"1.25.5\": {\n \"upgrades\": [\n \"1.25.6\",\n + \ \"1.26.0\",\n \"1.26.3\"\n ]\n },\n \"1.25.6\": + {\n \"upgrades\": [\n \"1.26.0\",\n \"1.26.3\"\n ]\n + \ }\n }\n },\n {\n \"version\": \"1.26\",\n \"capabilities\": + {\n \"supportPlan\": [\n \"KubernetesOfficial\"\n ]\n },\n + \ \"patchVersions\": {\n \"1.26.0\": {\n \"upgrades\": [\n \"1.26.3\",\n + \ \"1.27.1\"\n ]\n },\n \"1.26.3\": {\n \"upgrades\": + [\n \"1.27.1\"\n ]\n }\n }\n },\n {\n \"version\": + \"1.27\",\n \"capabilities\": {\n \"supportPlan\": [\n \"KubernetesOfficial\",\n + \ \"AKSLongTermSupport\"\n ]\n },\n \"patchVersions\": {\n \"1.27.1\": + {\n \"upgrades\": []\n }\n }\n },\n {\n \"version\": \"1.24\",\n + \ \"capabilities\": {\n \"supportPlan\": [\n \"KubernetesOfficial\"\n + \ ]\n },\n \"patchVersions\": {\n \"1.24.10\": {\n \"upgrades\": + [\n \"1.25.5\",\n \"1.25.6\"\n ]\n },\n \"1.24.9\": + {\n \"upgrades\": [\n \"1.24.10\",\n \"1.25.5\",\n \"1.25.6\"\n + \ ]\n }\n }\n }\n ]\n }" + headers: + cache-control: + - no-cache + content-length: + - '1218' + content-type: + - application/json + date: + - Mon, 26 Jun 2023 10:51:07 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -k -c --ssh-key-value --aks-custom-headers + User-Agent: + - AZURECLI/2.49.0 azsdk-python-azure-mgmt-containerservice/23.0.0b Python/3.8.10 + (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2023-05-02-preview + response: + body: + string: '{"error":{"code":"ResourceNotFound","message":"The Resource ''Microsoft.ContainerService/managedClusters/cliakstest000002'' + under resource group ''clitest000001'' was not found. For more details please + go to https://aka.ms/ARMResourceNotFoundFix"}}' + headers: + cache-control: + - no-cache + content-length: + - '244' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 26 Jun 2023 10:51:08 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-failure-cause: + - gateway + status: + code: 404 + message: Not Found +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -k -c --ssh-key-value --aks-custom-headers + User-Agent: + - AZURECLI/2.49.0 azsdk-python-azure-mgmt-resource/23.0.1 Python/3.8.10 (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001?api-version=2022-09-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","test":"test_aks_create_with_custom_headers","date":"2023-06-26T10:51:07Z","module":"aks-preview"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '372' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 26 Jun 2023 10:51:08 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", "identity": {"type": "SystemAssigned"}, "properties": + {"kubernetesVersion": "1.27.1", "dnsPrefix": "cliakstest-clitest5srbe37sn-79a739", + "agentPoolProfiles": [{"count": 1, "vmSize": "Standard_DS2_v2", "osDiskSizeGB": + 0, "workloadRuntime": "OCIContainer", "osType": "Linux", "enableAutoScaling": + false, "type": "VirtualMachineScaleSets", "mode": "System", "orchestratorVersion": + "1.27.1", "upgradeSettings": {}, "enableNodePublicIP": false, "enableCustomCATrust": + false, "scaleSetPriority": "Regular", "scaleSetEvictionPolicy": "Delete", "spotMaxPrice": + -1.0, "nodeTaints": [], "enableEncryptionAtHost": false, "enableUltraSSD": false, + "enableFIPS": false, "networkProfile": {}, "name": "nodepool1"}], "linuxProfile": + {"adminUsername": "azureuser", "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDdoqBJYlmhtp4g6lm5+Smye6WrvJkHxM6rV0vvVK7EwTggdPChj3+msG5bzw806zQx9XEVKJWq0kCbUE+faywL4E88iMEmJwxaREZRkMIAfDDogPYkhK3QUDA/fMCH6TQsGIeaBg8GTtSGXJTyyOuTaefv1d+KswXZBzunoyqHOMlJPx1KyfTKsqqJ5aAyJwkKudmUehIq6rdLDd47w44W8mwI8M04FHKrGtt57XPQAqQTRF1jD/pIt2lWGdRrZXfxx1aqTBVQpAhKanzoEnat6LYC0lFKQFZvUmvEztAyG3UMViFA8o91RcPiTBud2CcRCTW8gNLFJ7BbCUeJHiMj + azcli_aks_live_test@example.com\n"}]}}, "addonProfiles": {}, "enableRBAC": true, + "enablePodSecurityPolicy": false, "networkProfile": {"networkPlugin": "kubenet", + "podCidr": "10.244.0.0/16", "serviceCidr": "10.0.0.0/16", "dnsServiceIP": "10.0.0.10", + "outboundType": "loadBalancer", "loadBalancerSku": "standard"}, "disableLocalAccounts": + false, "storageProfile": {}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '1554' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --name -k -c --ssh-key-value --aks-custom-headers + User-Agent: + - AZURECLI/2.49.0 azsdk-python-azure-mgmt-containerservice/23.0.0b Python/3.8.10 + (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2023-05-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.27.1\",\n \"currentKubernetesVersion\": \"1.27.1\",\n \"dnsPrefix\": + \"cliakstest-clitest5srbe37sn-79a739\",\n \"fqdn\": \"cliakstest-clitest5srbe37sn-79a739-g48l79b9.hcp.eastus.azmk8s.io\",\n + \ \"azurePortalFQDN\": \"cliakstest-clitest5srbe37sn-79a739-g48l79b9.portal.hcp.eastus.azmk8s.io\",\n + \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": + 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": + \"Managed\",\n \"kubeletDiskType\": \"OS\",\n \"workloadRuntime\": + \"OCIContainer\",\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n + \ \"enableAutoScaling\": false,\n \"provisioningState\": \"Creating\",\n + \ \"powerState\": {\n \"code\": \"Running\"\n },\n \"orchestratorVersion\": + \"1.27.1\",\n \"currentOrchestratorVersion\": \"1.27.1\",\n \"enableNodePublicIP\": + false,\n \"enableCustomCATrust\": false,\n \"mode\": \"System\",\n + \ \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\": false,\n + \ \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"nodeImageVersion\": + \"AKSUbuntu-2204gen2containerd-202306.07.0\",\n \"upgradeSettings\": {},\n + \ \"enableFIPS\": false,\n \"networkProfile\": {}\n }\n ],\n \"linuxProfile\": + {\n \"adminUsername\": \"azureuser\",\n \"ssh\": {\n \"publicKeys\": + [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDdoqBJYlmhtp4g6lm5+Smye6WrvJkHxM6rV0vvVK7EwTggdPChj3+msG5bzw806zQx9XEVKJWq0kCbUE+faywL4E88iMEmJwxaREZRkMIAfDDogPYkhK3QUDA/fMCH6TQsGIeaBg8GTtSGXJTyyOuTaefv1d+KswXZBzunoyqHOMlJPx1KyfTKsqqJ5aAyJwkKudmUehIq6rdLDd47w44W8mwI8M04FHKrGtt57XPQAqQTRF1jD/pIt2lWGdRrZXfxx1aqTBVQpAhKanzoEnat6LYC0lFKQFZvUmvEztAyG3UMViFA8o91RcPiTBud2CcRCTW8gNLFJ7BbCUeJHiMj + azcli_aks_live_test@example.com\\n\"\n }\n ]\n }\n },\n \"servicePrincipalProfile\": + {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \"nodeResourceGroup\": + \"MC_clitest000001_cliakstest000002_eastus\",\n \"enableRBAC\": true,\n + \ \"enablePodSecurityPolicy\": false,\n \"supportPlan\": \"KubernetesOfficial\",\n + \ \"networkProfile\": {\n \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\": + \"standard\",\n \"loadBalancerProfile\": {\n \"managedOutboundIPs\": + {\n \"count\": 1\n },\n \"backendPoolType\": \"nodeIPConfiguration\"\n + \ },\n \"podCidr\": \"10.244.0.0/16\",\n \"serviceCidr\": \"10.0.0.0/16\",\n + \ \"dnsServiceIP\": \"10.0.0.10\",\n \"outboundType\": \"loadBalancer\",\n + \ \"podCidrs\": [\n \"10.244.0.0/16\"\n ],\n \"serviceCidrs\": + [\n \"10.0.0.0/16\"\n ],\n \"ipFamilies\": [\n \"IPv4\"\n ]\n + \ },\n \"maxAgentPools\": 100,\n \"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\": \"Base\",\n \"tier\": \"Free\"\n }\n }" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/3fbfa34b-2196-48a7-8357-c97e32381193?api-version=2017-08-31 + cache-control: + - no-cache + content-length: + - '3471' + content-type: + - application/json + date: + - Mon, 26 Jun 2023 10:51:12 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 -k -c --ssh-key-value --aks-custom-headers + User-Agent: + - AZURECLI/2.49.0 azsdk-python-azure-mgmt-containerservice/23.0.0b Python/3.8.10 + (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/3fbfa34b-2196-48a7-8357-c97e32381193?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"4ba3bf3f-9621-a748-8357-c97e32381193\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-06-26T10:51:12.1954292Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Mon, 26 Jun 2023 10:51:12 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 -k -c --ssh-key-value --aks-custom-headers + User-Agent: + - AZURECLI/2.49.0 azsdk-python-azure-mgmt-containerservice/23.0.0b Python/3.8.10 + (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/3fbfa34b-2196-48a7-8357-c97e32381193?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"4ba3bf3f-9621-a748-8357-c97e32381193\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-06-26T10:51:12.1954292Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Mon, 26 Jun 2023 10:51:42 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 -k -c --ssh-key-value --aks-custom-headers + User-Agent: + - AZURECLI/2.49.0 azsdk-python-azure-mgmt-containerservice/23.0.0b Python/3.8.10 + (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/3fbfa34b-2196-48a7-8357-c97e32381193?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"4ba3bf3f-9621-a748-8357-c97e32381193\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-06-26T10:51:12.1954292Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Mon, 26 Jun 2023 10:52:12 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 -k -c --ssh-key-value --aks-custom-headers + User-Agent: + - AZURECLI/2.49.0 azsdk-python-azure-mgmt-containerservice/23.0.0b Python/3.8.10 + (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/3fbfa34b-2196-48a7-8357-c97e32381193?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"4ba3bf3f-9621-a748-8357-c97e32381193\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-06-26T10:51:12.1954292Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Mon, 26 Jun 2023 10:52:42 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 -k -c --ssh-key-value --aks-custom-headers + User-Agent: + - AZURECLI/2.49.0 azsdk-python-azure-mgmt-containerservice/23.0.0b Python/3.8.10 + (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/3fbfa34b-2196-48a7-8357-c97e32381193?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"4ba3bf3f-9621-a748-8357-c97e32381193\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-06-26T10:51:12.1954292Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Mon, 26 Jun 2023 10:53:12 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 -k -c --ssh-key-value --aks-custom-headers + User-Agent: + - AZURECLI/2.49.0 azsdk-python-azure-mgmt-containerservice/23.0.0b Python/3.8.10 + (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/3fbfa34b-2196-48a7-8357-c97e32381193?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"4ba3bf3f-9621-a748-8357-c97e32381193\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-06-26T10:51:12.1954292Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Mon, 26 Jun 2023 10:53:42 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 -k -c --ssh-key-value --aks-custom-headers + User-Agent: + - AZURECLI/2.49.0 azsdk-python-azure-mgmt-containerservice/23.0.0b Python/3.8.10 + (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/3fbfa34b-2196-48a7-8357-c97e32381193?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"4ba3bf3f-9621-a748-8357-c97e32381193\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-06-26T10:51:12.1954292Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Mon, 26 Jun 2023 10:54:12 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 -k -c --ssh-key-value --aks-custom-headers + User-Agent: + - AZURECLI/2.49.0 azsdk-python-azure-mgmt-containerservice/23.0.0b Python/3.8.10 + (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/3fbfa34b-2196-48a7-8357-c97e32381193?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"4ba3bf3f-9621-a748-8357-c97e32381193\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-06-26T10:51:12.1954292Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Mon, 26 Jun 2023 10:54:42 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 -k -c --ssh-key-value --aks-custom-headers + User-Agent: + - AZURECLI/2.49.0 azsdk-python-azure-mgmt-containerservice/23.0.0b Python/3.8.10 + (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/3fbfa34b-2196-48a7-8357-c97e32381193?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"4ba3bf3f-9621-a748-8357-c97e32381193\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-06-26T10:51:12.1954292Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Mon, 26 Jun 2023 10:55:12 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 -k -c --ssh-key-value --aks-custom-headers + User-Agent: + - AZURECLI/2.49.0 azsdk-python-azure-mgmt-containerservice/23.0.0b Python/3.8.10 + (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/3fbfa34b-2196-48a7-8357-c97e32381193?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"4ba3bf3f-9621-a748-8357-c97e32381193\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-06-26T10:51:12.1954292Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Mon, 26 Jun 2023 10:55:42 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 -k -c --ssh-key-value --aks-custom-headers + User-Agent: + - AZURECLI/2.49.0 azsdk-python-azure-mgmt-containerservice/23.0.0b Python/3.8.10 + (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/3fbfa34b-2196-48a7-8357-c97e32381193?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"4ba3bf3f-9621-a748-8357-c97e32381193\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-06-26T10:51:12.1954292Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Mon, 26 Jun 2023 10:56:13 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -k -c --ssh-key-value --aks-custom-headers + User-Agent: + - AZURECLI/2.49.0 azsdk-python-azure-mgmt-containerservice/23.0.0b Python/3.8.10 + (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/3fbfa34b-2196-48a7-8357-c97e32381193?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"4ba3bf3f-9621-a748-8357-c97e32381193\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-06-26T10:51:12.1954292Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Mon, 26 Jun 2023 10:56:43 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -k -c --ssh-key-value --aks-custom-headers + User-Agent: + - AZURECLI/2.49.0 azsdk-python-azure-mgmt-containerservice/23.0.0b Python/3.8.10 + (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/3fbfa34b-2196-48a7-8357-c97e32381193?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"4ba3bf3f-9621-a748-8357-c97e32381193\",\n \"status\": + \"Succeeded\",\n \"startTime\": \"2023-06-26T10:51:12.1954292Z\",\n \"endTime\": + \"2023-06-26T10:56:44.5620941Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '170' + content-type: + - application/json + date: + - Mon, 26 Jun 2023 10:57:13 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -k -c --ssh-key-value --aks-custom-headers + User-Agent: + - AZURECLI/2.49.0 azsdk-python-azure-mgmt-containerservice/23.0.0b Python/3.8.10 + (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2023-05-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.27.1\",\n \"currentKubernetesVersion\": \"1.27.1\",\n \"dnsPrefix\": + \"cliakstest-clitest5srbe37sn-79a739\",\n \"fqdn\": \"cliakstest-clitest5srbe37sn-79a739-g48l79b9.hcp.eastus.azmk8s.io\",\n + \ \"azurePortalFQDN\": \"cliakstest-clitest5srbe37sn-79a739-g48l79b9.portal.hcp.eastus.azmk8s.io\",\n + \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": + 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": + \"Managed\",\n \"kubeletDiskType\": \"OS\",\n \"workloadRuntime\": + \"OCIContainer\",\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n + \ \"enableAutoScaling\": false,\n \"provisioningState\": \"Succeeded\",\n + \ \"powerState\": {\n \"code\": \"Running\"\n },\n \"orchestratorVersion\": + \"1.27.1\",\n \"currentOrchestratorVersion\": \"1.27.1\",\n \"enableNodePublicIP\": + false,\n \"enableCustomCATrust\": false,\n \"mode\": \"System\",\n + \ \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\": false,\n + \ \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"nodeImageVersion\": + \"AKSUbuntu-2204gen2containerd-202306.07.0\",\n \"upgradeSettings\": {},\n + \ \"enableFIPS\": false,\n \"networkProfile\": {}\n }\n ],\n \"linuxProfile\": + {\n \"adminUsername\": \"azureuser\",\n \"ssh\": {\n \"publicKeys\": + [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDdoqBJYlmhtp4g6lm5+Smye6WrvJkHxM6rV0vvVK7EwTggdPChj3+msG5bzw806zQx9XEVKJWq0kCbUE+faywL4E88iMEmJwxaREZRkMIAfDDogPYkhK3QUDA/fMCH6TQsGIeaBg8GTtSGXJTyyOuTaefv1d+KswXZBzunoyqHOMlJPx1KyfTKsqqJ5aAyJwkKudmUehIq6rdLDd47w44W8mwI8M04FHKrGtt57XPQAqQTRF1jD/pIt2lWGdRrZXfxx1aqTBVQpAhKanzoEnat6LYC0lFKQFZvUmvEztAyG3UMViFA8o91RcPiTBud2CcRCTW8gNLFJ7BbCUeJHiMj + azcli_aks_live_test@example.com\\n\"\n }\n ]\n }\n },\n \"servicePrincipalProfile\": + {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \"nodeResourceGroup\": + \"MC_clitest000001_cliakstest000002_eastus\",\n \"enableRBAC\": true,\n + \ \"enablePodSecurityPolicy\": false,\n \"supportPlan\": \"KubernetesOfficial\",\n + \ \"networkProfile\": {\n \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\": + \"Standard\",\n \"loadBalancerProfile\": {\n \"managedOutboundIPs\": + {\n \"count\": 1\n },\n \"effectiveOutboundIPs\": [\n {\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_eastus/providers/Microsoft.Network/publicIPAddresses/d4c9637f-8aa5-43a8-9539-e6d0957ebe6d\"\n + \ }\n ],\n \"backendPoolType\": \"nodeIPConfiguration\"\n },\n + \ \"podCidr\": \"10.244.0.0/16\",\n \"serviceCidr\": \"10.0.0.0/16\",\n + \ \"dnsServiceIP\": \"10.0.0.10\",\n \"outboundType\": \"loadBalancer\",\n + \ \"podCidrs\": [\n \"10.244.0.0/16\"\n ],\n \"serviceCidrs\": + [\n \"10.0.0.0/16\"\n ],\n \"ipFamilies\": [\n \"IPv4\"\n ]\n + \ },\n \"maxAgentPools\": 100,\n \"identityProfile\": {\n \"kubeletidentity\": + {\n \"resourceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MC_clitest000001_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\": \"Base\",\n \"tier\": \"Free\"\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '4122' + content-type: + - application/json + date: + - Mon, 26 Jun 2023 10:57:13 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks scale + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -c --aks-custom-headers + User-Agent: + - AZURECLI/2.49.0 azsdk-python-azure-mgmt-containerservice/23.0.0b Python/3.8.10 + (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2023-05-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.27.1\",\n \"currentKubernetesVersion\": \"1.27.1\",\n \"dnsPrefix\": + \"cliakstest-clitest5srbe37sn-79a739\",\n \"fqdn\": \"cliakstest-clitest5srbe37sn-79a739-g48l79b9.hcp.eastus.azmk8s.io\",\n + \ \"azurePortalFQDN\": \"cliakstest-clitest5srbe37sn-79a739-g48l79b9.portal.hcp.eastus.azmk8s.io\",\n + \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": + 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": + \"Managed\",\n \"kubeletDiskType\": \"OS\",\n \"workloadRuntime\": + \"OCIContainer\",\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n + \ \"enableAutoScaling\": false,\n \"provisioningState\": \"Succeeded\",\n + \ \"powerState\": {\n \"code\": \"Running\"\n },\n \"orchestratorVersion\": + \"1.27.1\",\n \"currentOrchestratorVersion\": \"1.27.1\",\n \"enableNodePublicIP\": + false,\n \"enableCustomCATrust\": false,\n \"mode\": \"System\",\n + \ \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\": false,\n + \ \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"nodeImageVersion\": + \"AKSUbuntu-2204gen2containerd-202306.07.0\",\n \"upgradeSettings\": {},\n + \ \"enableFIPS\": false,\n \"networkProfile\": {}\n }\n ],\n \"linuxProfile\": + {\n \"adminUsername\": \"azureuser\",\n \"ssh\": {\n \"publicKeys\": + [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDdoqBJYlmhtp4g6lm5+Smye6WrvJkHxM6rV0vvVK7EwTggdPChj3+msG5bzw806zQx9XEVKJWq0kCbUE+faywL4E88iMEmJwxaREZRkMIAfDDogPYkhK3QUDA/fMCH6TQsGIeaBg8GTtSGXJTyyOuTaefv1d+KswXZBzunoyqHOMlJPx1KyfTKsqqJ5aAyJwkKudmUehIq6rdLDd47w44W8mwI8M04FHKrGtt57XPQAqQTRF1jD/pIt2lWGdRrZXfxx1aqTBVQpAhKanzoEnat6LYC0lFKQFZvUmvEztAyG3UMViFA8o91RcPiTBud2CcRCTW8gNLFJ7BbCUeJHiMj + azcli_aks_live_test@example.com\\n\"\n }\n ]\n }\n },\n \"servicePrincipalProfile\": + {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \"nodeResourceGroup\": + \"MC_clitest000001_cliakstest000002_eastus\",\n \"enableRBAC\": true,\n + \ \"enablePodSecurityPolicy\": false,\n \"supportPlan\": \"KubernetesOfficial\",\n + \ \"networkProfile\": {\n \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\": + \"Standard\",\n \"loadBalancerProfile\": {\n \"managedOutboundIPs\": + {\n \"count\": 1\n },\n \"effectiveOutboundIPs\": [\n {\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_eastus/providers/Microsoft.Network/publicIPAddresses/d4c9637f-8aa5-43a8-9539-e6d0957ebe6d\"\n + \ }\n ],\n \"backendPoolType\": \"nodeIPConfiguration\"\n },\n + \ \"podCidr\": \"10.244.0.0/16\",\n \"serviceCidr\": \"10.0.0.0/16\",\n + \ \"dnsServiceIP\": \"10.0.0.10\",\n \"outboundType\": \"loadBalancer\",\n + \ \"podCidrs\": [\n \"10.244.0.0/16\"\n ],\n \"serviceCidrs\": + [\n \"10.0.0.0/16\"\n ],\n \"ipFamilies\": [\n \"IPv4\"\n ]\n + \ },\n \"maxAgentPools\": 100,\n \"identityProfile\": {\n \"kubeletidentity\": + {\n \"resourceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MC_clitest000001_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\": \"Base\",\n \"tier\": \"Free\"\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '4122' + content-type: + - application/json + date: + - Mon, 26 Jun 2023 10:57: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: '{"location": "eastus", "sku": {"name": "Base", "tier": "Free"}, "identity": + {"type": "SystemAssigned"}, "properties": {"kubernetesVersion": "1.27.1", "dnsPrefix": + "cliakstest-clitest5srbe37sn-79a739", "agentPoolProfiles": [{"count": 2, "vmSize": + "Standard_DS2_v2", "osDiskSizeGB": 128, "osDiskType": "Managed", "kubeletDiskType": + "OS", "workloadRuntime": "OCIContainer", "maxPods": 110, "osType": "Linux", + "osSKU": "Ubuntu", "enableAutoScaling": false, "type": "VirtualMachineScaleSets", + "mode": "System", "orchestratorVersion": "1.27.1", "upgradeSettings": {}, "powerState": + {"code": "Running"}, "enableNodePublicIP": false, "enableCustomCATrust": false, + "enableEncryptionAtHost": false, "enableUltraSSD": false, "enableFIPS": false, + "networkProfile": {}, "name": "nodepool1"}], "linuxProfile": {"adminUsername": + "azureuser", "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDdoqBJYlmhtp4g6lm5+Smye6WrvJkHxM6rV0vvVK7EwTggdPChj3+msG5bzw806zQx9XEVKJWq0kCbUE+faywL4E88iMEmJwxaREZRkMIAfDDogPYkhK3QUDA/fMCH6TQsGIeaBg8GTtSGXJTyyOuTaefv1d+KswXZBzunoyqHOMlJPx1KyfTKsqqJ5aAyJwkKudmUehIq6rdLDd47w44W8mwI8M04FHKrGtt57XPQAqQTRF1jD/pIt2lWGdRrZXfxx1aqTBVQpAhKanzoEnat6LYC0lFKQFZvUmvEztAyG3UMViFA8o91RcPiTBud2CcRCTW8gNLFJ7BbCUeJHiMj + azcli_aks_live_test@example.com\n"}]}}, "oidcIssuerProfile": {"enabled": false}, + "nodeResourceGroup": "MC_clitest000001_cliakstest000002_eastus", "enableRBAC": + true, "supportPlan": "KubernetesOfficial", "enablePodSecurityPolicy": false, + "networkProfile": {"networkPlugin": "kubenet", "podCidr": "10.244.0.0/16", "serviceCidr": + "10.0.0.0/16", "dnsServiceIP": "10.0.0.10", "outboundType": "loadBalancer", + "loadBalancerSku": "Standard", "loadBalancerProfile": {"managedOutboundIPs": + {"count": 1}, "effectiveOutboundIPs": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_eastus/providers/Microsoft.Network/publicIPAddresses/d4c9637f-8aa5-43a8-9539-e6d0957ebe6d"}], + "backendPoolType": "nodeIPConfiguration"}, "podCidrs": ["10.244.0.0/16"], "serviceCidrs": + ["10.0.0.0/16"], "ipFamilies": ["IPv4"]}, "identityProfile": {"kubeletidentity": + {"resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MC_clitest000001_cliakstest000002_eastus/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cliakstest000002-agentpool", + "clientId":"00000000-0000-0000-0000-000000000001", "objectId":"00000000-0000-0000-0000-000000000001"}}, + "disableLocalAccounts": false, "securityProfile": {}, "storageProfile": {"diskCSIDriver": + {"enabled": true, "version": "v1"}, "fileCSIDriver": {"enabled": true}, "snapshotController": + {"enabled": true}}, "workloadAutoScalerProfile": {}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks scale + Connection: + - keep-alive + Content-Length: + - '2690' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --name -c --aks-custom-headers + User-Agent: + - AZURECLI/2.49.0 azsdk-python-azure-mgmt-containerservice/23.0.0b Python/3.8.10 + (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2023-05-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\": + \"Updating\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": + \"1.27.1\",\n \"currentKubernetesVersion\": \"1.27.1\",\n \"dnsPrefix\": + \"cliakstest-clitest5srbe37sn-79a739\",\n \"fqdn\": \"cliakstest-clitest5srbe37sn-79a739-g48l79b9.hcp.eastus.azmk8s.io\",\n + \ \"azurePortalFQDN\": \"cliakstest-clitest5srbe37sn-79a739-g48l79b9.portal.hcp.eastus.azmk8s.io\",\n + \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": + 2,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": + \"Managed\",\n \"kubeletDiskType\": \"OS\",\n \"workloadRuntime\": + \"OCIContainer\",\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n + \ \"enableAutoScaling\": false,\n \"provisioningState\": \"Updating\",\n + \ \"powerState\": {\n \"code\": \"Running\"\n },\n \"orchestratorVersion\": + \"1.27.1\",\n \"currentOrchestratorVersion\": \"1.27.1\",\n \"enableNodePublicIP\": + false,\n \"enableCustomCATrust\": false,\n \"mode\": \"System\",\n + \ \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\": false,\n + \ \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"nodeImageVersion\": + \"AKSUbuntu-2204gen2containerd-202306.07.0\",\n \"upgradeSettings\": {},\n + \ \"enableFIPS\": false,\n \"networkProfile\": {}\n }\n ],\n \"linuxProfile\": + {\n \"adminUsername\": \"azureuser\",\n \"ssh\": {\n \"publicKeys\": + [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDdoqBJYlmhtp4g6lm5+Smye6WrvJkHxM6rV0vvVK7EwTggdPChj3+msG5bzw806zQx9XEVKJWq0kCbUE+faywL4E88iMEmJwxaREZRkMIAfDDogPYkhK3QUDA/fMCH6TQsGIeaBg8GTtSGXJTyyOuTaefv1d+KswXZBzunoyqHOMlJPx1KyfTKsqqJ5aAyJwkKudmUehIq6rdLDd47w44W8mwI8M04FHKrGtt57XPQAqQTRF1jD/pIt2lWGdRrZXfxx1aqTBVQpAhKanzoEnat6LYC0lFKQFZvUmvEztAyG3UMViFA8o91RcPiTBud2CcRCTW8gNLFJ7BbCUeJHiMj + azcli_aks_live_test@example.com\\n\"\n }\n ]\n }\n },\n \"servicePrincipalProfile\": + {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \"nodeResourceGroup\": + \"MC_clitest000001_cliakstest000002_eastus\",\n \"enableRBAC\": true,\n + \ \"enablePodSecurityPolicy\": false,\n \"supportPlan\": \"KubernetesOfficial\",\n + \ \"networkProfile\": {\n \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\": + \"Standard\",\n \"loadBalancerProfile\": {\n \"managedOutboundIPs\": + {\n \"count\": 1\n },\n \"effectiveOutboundIPs\": [\n {\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_eastus/providers/Microsoft.Network/publicIPAddresses/d4c9637f-8aa5-43a8-9539-e6d0957ebe6d\"\n + \ }\n ],\n \"backendPoolType\": \"nodeIPConfiguration\"\n },\n + \ \"podCidr\": \"10.244.0.0/16\",\n \"serviceCidr\": \"10.0.0.0/16\",\n + \ \"dnsServiceIP\": \"10.0.0.10\",\n \"outboundType\": \"loadBalancer\",\n + \ \"podCidrs\": [\n \"10.244.0.0/16\"\n ],\n \"serviceCidrs\": + [\n \"10.0.0.0/16\"\n ],\n \"ipFamilies\": [\n \"IPv4\"\n ]\n + \ },\n \"maxAgentPools\": 100,\n \"identityProfile\": {\n \"kubeletidentity\": + {\n \"resourceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MC_clitest000001_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\": \"Base\",\n \"tier\": \"Free\"\n }\n }" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/5d0e5060-cda1-428f-9c44-241262a9ef15?api-version=2017-08-31 + cache-control: + - no-cache + content-length: + - '4120' + content-type: + - application/json + date: + - Mon, 26 Jun 2023 10:57: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 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks scale + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -c --aks-custom-headers + User-Agent: + - AZURECLI/2.49.0 azsdk-python-azure-mgmt-containerservice/23.0.0b Python/3.8.10 + (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/5d0e5060-cda1-428f-9c44-241262a9ef15?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"60500e5d-a1cd-8f42-9c44-241262a9ef15\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-06-26T10:57:20.2430919Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Mon, 26 Jun 2023 10:57: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 scale + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -c --aks-custom-headers + User-Agent: + - AZURECLI/2.49.0 azsdk-python-azure-mgmt-containerservice/23.0.0b Python/3.8.10 + (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/5d0e5060-cda1-428f-9c44-241262a9ef15?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"60500e5d-a1cd-8f42-9c44-241262a9ef15\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-06-26T10:57:20.2430919Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Mon, 26 Jun 2023 10:57: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 scale + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -c --aks-custom-headers + User-Agent: + - AZURECLI/2.49.0 azsdk-python-azure-mgmt-containerservice/23.0.0b Python/3.8.10 + (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/5d0e5060-cda1-428f-9c44-241262a9ef15?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"60500e5d-a1cd-8f42-9c44-241262a9ef15\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-06-26T10:57:20.2430919Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Mon, 26 Jun 2023 10:58: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 scale + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -c --aks-custom-headers + User-Agent: + - AZURECLI/2.49.0 azsdk-python-azure-mgmt-containerservice/23.0.0b Python/3.8.10 + (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/5d0e5060-cda1-428f-9c44-241262a9ef15?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"60500e5d-a1cd-8f42-9c44-241262a9ef15\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-06-26T10:57:20.2430919Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Mon, 26 Jun 2023 10:58: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 scale + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -c --aks-custom-headers + User-Agent: + - AZURECLI/2.49.0 azsdk-python-azure-mgmt-containerservice/23.0.0b Python/3.8.10 + (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/5d0e5060-cda1-428f-9c44-241262a9ef15?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"60500e5d-a1cd-8f42-9c44-241262a9ef15\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-06-26T10:57:20.2430919Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Mon, 26 Jun 2023 10:59: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 scale + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -c --aks-custom-headers + User-Agent: + - AZURECLI/2.49.0 azsdk-python-azure-mgmt-containerservice/23.0.0b Python/3.8.10 + (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/5d0e5060-cda1-428f-9c44-241262a9ef15?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"60500e5d-a1cd-8f42-9c44-241262a9ef15\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-06-26T10:57:20.2430919Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Mon, 26 Jun 2023 10:59: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 scale + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -c --aks-custom-headers + User-Agent: + - AZURECLI/2.49.0 azsdk-python-azure-mgmt-containerservice/23.0.0b Python/3.8.10 + (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/5d0e5060-cda1-428f-9c44-241262a9ef15?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"60500e5d-a1cd-8f42-9c44-241262a9ef15\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-06-26T10:57:20.2430919Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Mon, 26 Jun 2023 11:00: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 scale + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -c --aks-custom-headers + User-Agent: + - AZURECLI/2.49.0 azsdk-python-azure-mgmt-containerservice/23.0.0b Python/3.8.10 + (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/5d0e5060-cda1-428f-9c44-241262a9ef15?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"60500e5d-a1cd-8f42-9c44-241262a9ef15\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-06-26T10:57:20.2430919Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Mon, 26 Jun 2023 11:00: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 scale + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -c --aks-custom-headers + User-Agent: + - AZURECLI/2.49.0 azsdk-python-azure-mgmt-containerservice/23.0.0b Python/3.8.10 + (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/5d0e5060-cda1-428f-9c44-241262a9ef15?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"60500e5d-a1cd-8f42-9c44-241262a9ef15\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-06-26T10:57:20.2430919Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Mon, 26 Jun 2023 11:01: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 scale + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -c --aks-custom-headers + User-Agent: + - AZURECLI/2.49.0 azsdk-python-azure-mgmt-containerservice/23.0.0b Python/3.8.10 + (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/5d0e5060-cda1-428f-9c44-241262a9ef15?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"60500e5d-a1cd-8f42-9c44-241262a9ef15\",\n \"status\": + \"Succeeded\",\n \"startTime\": \"2023-06-26T10:57:20.2430919Z\",\n \"endTime\": + \"2023-06-26T11:01:25.4537017Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '170' + content-type: + - application/json + date: + - Mon, 26 Jun 2023 11:01: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 scale + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -c --aks-custom-headers + User-Agent: + - AZURECLI/2.49.0 azsdk-python-azure-mgmt-containerservice/23.0.0b Python/3.8.10 + (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2023-05-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.27.1\",\n \"currentKubernetesVersion\": \"1.27.1\",\n \"dnsPrefix\": + \"cliakstest-clitest5srbe37sn-79a739\",\n \"fqdn\": \"cliakstest-clitest5srbe37sn-79a739-g48l79b9.hcp.eastus.azmk8s.io\",\n + \ \"azurePortalFQDN\": \"cliakstest-clitest5srbe37sn-79a739-g48l79b9.portal.hcp.eastus.azmk8s.io\",\n + \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": + 2,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": + \"Managed\",\n \"kubeletDiskType\": \"OS\",\n \"workloadRuntime\": + \"OCIContainer\",\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n + \ \"enableAutoScaling\": false,\n \"provisioningState\": \"Succeeded\",\n + \ \"powerState\": {\n \"code\": \"Running\"\n },\n \"orchestratorVersion\": + \"1.27.1\",\n \"currentOrchestratorVersion\": \"1.27.1\",\n \"enableNodePublicIP\": + false,\n \"enableCustomCATrust\": false,\n \"mode\": \"System\",\n + \ \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\": false,\n + \ \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"nodeImageVersion\": + \"AKSUbuntu-2204gen2containerd-202306.07.0\",\n \"upgradeSettings\": {},\n + \ \"enableFIPS\": false,\n \"networkProfile\": {}\n }\n ],\n \"linuxProfile\": + {\n \"adminUsername\": \"azureuser\",\n \"ssh\": {\n \"publicKeys\": + [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDdoqBJYlmhtp4g6lm5+Smye6WrvJkHxM6rV0vvVK7EwTggdPChj3+msG5bzw806zQx9XEVKJWq0kCbUE+faywL4E88iMEmJwxaREZRkMIAfDDogPYkhK3QUDA/fMCH6TQsGIeaBg8GTtSGXJTyyOuTaefv1d+KswXZBzunoyqHOMlJPx1KyfTKsqqJ5aAyJwkKudmUehIq6rdLDd47w44W8mwI8M04FHKrGtt57XPQAqQTRF1jD/pIt2lWGdRrZXfxx1aqTBVQpAhKanzoEnat6LYC0lFKQFZvUmvEztAyG3UMViFA8o91RcPiTBud2CcRCTW8gNLFJ7BbCUeJHiMj + azcli_aks_live_test@example.com\\n\"\n }\n ]\n }\n },\n \"servicePrincipalProfile\": + {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \"nodeResourceGroup\": + \"MC_clitest000001_cliakstest000002_eastus\",\n \"enableRBAC\": true,\n + \ \"enablePodSecurityPolicy\": false,\n \"supportPlan\": \"KubernetesOfficial\",\n + \ \"networkProfile\": {\n \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\": + \"Standard\",\n \"loadBalancerProfile\": {\n \"managedOutboundIPs\": + {\n \"count\": 1\n },\n \"effectiveOutboundIPs\": [\n {\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_eastus/providers/Microsoft.Network/publicIPAddresses/d4c9637f-8aa5-43a8-9539-e6d0957ebe6d\"\n + \ }\n ],\n \"backendPoolType\": \"nodeIPConfiguration\"\n },\n + \ \"podCidr\": \"10.244.0.0/16\",\n \"serviceCidr\": \"10.0.0.0/16\",\n + \ \"dnsServiceIP\": \"10.0.0.10\",\n \"outboundType\": \"loadBalancer\",\n + \ \"podCidrs\": [\n \"10.244.0.0/16\"\n ],\n \"serviceCidrs\": + [\n \"10.0.0.0/16\"\n ],\n \"ipFamilies\": [\n \"IPv4\"\n ]\n + \ },\n \"maxAgentPools\": 100,\n \"identityProfile\": {\n \"kubeletidentity\": + {\n \"resourceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MC_clitest000001_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\": \"Base\",\n \"tier\": \"Free\"\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '4122' + content-type: + - application/json + date: + - Mon, 26 Jun 2023 11:01: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks nodepool scale + Connection: + - keep-alive + ParameterSetName: + - --resource-group --cluster-name --name -c --aks-custom-headers + User-Agent: + - AZURECLI/2.49.0 azsdk-python-azure-mgmt-containerservice/23.0.0b Python/3.8.10 + (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/agentPools/nodepool1?api-version=2023-05-02-preview + response: + body: + string: "{\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\": 2,\n \"vmSize\": \"Standard_DS2_v2\",\n + \ \"osDiskSizeGB\": 128,\n \"osDiskType\": \"Managed\",\n \"kubeletDiskType\": + \"OS\",\n \"workloadRuntime\": \"OCIContainer\",\n \"maxPods\": 110,\n + \ \"type\": \"VirtualMachineScaleSets\",\n \"enableAutoScaling\": false,\n + \ \"provisioningState\": \"Succeeded\",\n \"powerState\": {\n \"code\": + \"Running\"\n },\n \"orchestratorVersion\": \"1.27.1\",\n \"currentOrchestratorVersion\": + \"1.27.1\",\n \"enableNodePublicIP\": false,\n \"enableCustomCATrust\": + false,\n \"mode\": \"System\",\n \"enableEncryptionAtHost\": false,\n + \ \"enableUltraSSD\": false,\n \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n + \ \"nodeImageVersion\": \"AKSUbuntu-2204gen2containerd-202306.07.0\",\n \"upgradeSettings\": + {},\n \"enableFIPS\": false,\n \"networkProfile\": {}\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '1050' + content-type: + - application/json + date: + - Mon, 26 Jun 2023 11:01:52 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_DS2_v2", "osDiskSizeGB": + 128, "osDiskType": "Managed", "kubeletDiskType": "OS", "workloadRuntime": "OCIContainer", + "maxPods": 110, "osType": "Linux", "osSKU": "Ubuntu", "enableAutoScaling": false, + "type": "VirtualMachineScaleSets", "mode": "System", "orchestratorVersion": + "1.27.1", "upgradeSettings": {}, "powerState": {"code": "Running"}, "enableNodePublicIP": + false, "enableCustomCATrust": false, "enableEncryptionAtHost": false, "enableUltraSSD": + false, "enableFIPS": false, "networkProfile": {}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks nodepool scale + Connection: + - keep-alive + Content-Length: + - '549' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --cluster-name --name -c --aks-custom-headers + User-Agent: + - AZURECLI/2.49.0 azsdk-python-azure-mgmt-containerservice/23.0.0b Python/3.8.10 + (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/agentPools/nodepool1?api-version=2023-05-02-preview + response: + body: + string: "{\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_DS2_v2\",\n + \ \"osDiskSizeGB\": 128,\n \"osDiskType\": \"Managed\",\n \"kubeletDiskType\": + \"OS\",\n \"workloadRuntime\": \"OCIContainer\",\n \"maxPods\": 110,\n + \ \"type\": \"VirtualMachineScaleSets\",\n \"enableAutoScaling\": false,\n + \ \"provisioningState\": \"Scaling\",\n \"powerState\": {\n \"code\": + \"Running\"\n },\n \"orchestratorVersion\": \"1.27.1\",\n \"currentOrchestratorVersion\": + \"1.27.1\",\n \"enableNodePublicIP\": false,\n \"enableCustomCATrust\": + false,\n \"mode\": \"System\",\n \"enableEncryptionAtHost\": false,\n + \ \"enableUltraSSD\": false,\n \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n + \ \"nodeImageVersion\": \"AKSUbuntu-2204gen2containerd-202306.07.0\",\n \"upgradeSettings\": + {},\n \"enableFIPS\": false,\n \"networkProfile\": {}\n }\n }" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/1404b378-6971-4cc2-a92f-86ff28d69819?api-version=2017-08-31 + cache-control: + - no-cache + content-length: + - '1048' + content-type: + - application/json + date: + - Mon, 26 Jun 2023 11:01:56 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks nodepool scale + Connection: + - keep-alive + ParameterSetName: + - --resource-group --cluster-name --name -c --aks-custom-headers + User-Agent: + - AZURECLI/2.49.0 azsdk-python-azure-mgmt-containerservice/23.0.0b Python/3.8.10 + (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/1404b378-6971-4cc2-a92f-86ff28d69819?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"78b30414-7169-c24c-a92f-86ff28d69819\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-06-26T11:01:57.071697Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '125' + content-type: + - application/json + date: + - Mon, 26 Jun 2023 11:01: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 nodepool scale + Connection: + - keep-alive + ParameterSetName: + - --resource-group --cluster-name --name -c --aks-custom-headers + User-Agent: + - AZURECLI/2.49.0 azsdk-python-azure-mgmt-containerservice/23.0.0b Python/3.8.10 + (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/1404b378-6971-4cc2-a92f-86ff28d69819?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"78b30414-7169-c24c-a92f-86ff28d69819\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-06-26T11:01:57.071697Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '125' + content-type: + - application/json + date: + - Mon, 26 Jun 2023 11:02:27 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks nodepool scale + Connection: + - keep-alive + ParameterSetName: + - --resource-group --cluster-name --name -c --aks-custom-headers + User-Agent: + - AZURECLI/2.49.0 azsdk-python-azure-mgmt-containerservice/23.0.0b Python/3.8.10 + (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/1404b378-6971-4cc2-a92f-86ff28d69819?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"78b30414-7169-c24c-a92f-86ff28d69819\",\n \"status\": + \"Succeeded\",\n \"startTime\": \"2023-06-26T11:01:57.071697Z\",\n \"endTime\": + \"2023-06-26T11:02:37.2324803Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '169' + content-type: + - application/json + date: + - Mon, 26 Jun 2023 11:02: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 nodepool scale + Connection: + - keep-alive + ParameterSetName: + - --resource-group --cluster-name --name -c --aks-custom-headers + User-Agent: + - AZURECLI/2.49.0 azsdk-python-azure-mgmt-containerservice/23.0.0b Python/3.8.10 + (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/agentPools/nodepool1?api-version=2023-05-02-preview + response: + body: + string: "{\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_DS2_v2\",\n + \ \"osDiskSizeGB\": 128,\n \"osDiskType\": \"Managed\",\n \"kubeletDiskType\": + \"OS\",\n \"workloadRuntime\": \"OCIContainer\",\n \"maxPods\": 110,\n + \ \"type\": \"VirtualMachineScaleSets\",\n \"enableAutoScaling\": false,\n + \ \"provisioningState\": \"Succeeded\",\n \"powerState\": {\n \"code\": + \"Running\"\n },\n \"orchestratorVersion\": \"1.27.1\",\n \"currentOrchestratorVersion\": + \"1.27.1\",\n \"enableNodePublicIP\": false,\n \"enableCustomCATrust\": + false,\n \"mode\": \"System\",\n \"enableEncryptionAtHost\": false,\n + \ \"enableUltraSSD\": false,\n \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n + \ \"nodeImageVersion\": \"AKSUbuntu-2204gen2containerd-202306.07.0\",\n \"upgradeSettings\": + {},\n \"enableFIPS\": false,\n \"networkProfile\": {}\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '1050' + content-type: + - application/json + date: + - Mon, 26 Jun 2023 11:02:57 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks show + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --aks-custom-headers + User-Agent: + - AZURECLI/2.49.0 azsdk-python-azure-mgmt-containerservice/23.0.0b Python/3.8.10 + (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2023-05-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.27.1\",\n \"currentKubernetesVersion\": \"1.27.1\",\n \"dnsPrefix\": + \"cliakstest-clitest5srbe37sn-79a739\",\n \"fqdn\": \"cliakstest-clitest5srbe37sn-79a739-g48l79b9.hcp.eastus.azmk8s.io\",\n + \ \"azurePortalFQDN\": \"cliakstest-clitest5srbe37sn-79a739-g48l79b9.portal.hcp.eastus.azmk8s.io\",\n + \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": + 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": + \"Managed\",\n \"kubeletDiskType\": \"OS\",\n \"workloadRuntime\": + \"OCIContainer\",\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n + \ \"enableAutoScaling\": false,\n \"provisioningState\": \"Succeeded\",\n + \ \"powerState\": {\n \"code\": \"Running\"\n },\n \"orchestratorVersion\": + \"1.27.1\",\n \"currentOrchestratorVersion\": \"1.27.1\",\n \"enableNodePublicIP\": + false,\n \"enableCustomCATrust\": false,\n \"mode\": \"System\",\n + \ \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\": false,\n + \ \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"nodeImageVersion\": + \"AKSUbuntu-2204gen2containerd-202306.07.0\",\n \"upgradeSettings\": {},\n + \ \"enableFIPS\": false,\n \"networkProfile\": {}\n }\n ],\n \"linuxProfile\": + {\n \"adminUsername\": \"azureuser\",\n \"ssh\": {\n \"publicKeys\": + [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDdoqBJYlmhtp4g6lm5+Smye6WrvJkHxM6rV0vvVK7EwTggdPChj3+msG5bzw806zQx9XEVKJWq0kCbUE+faywL4E88iMEmJwxaREZRkMIAfDDogPYkhK3QUDA/fMCH6TQsGIeaBg8GTtSGXJTyyOuTaefv1d+KswXZBzunoyqHOMlJPx1KyfTKsqqJ5aAyJwkKudmUehIq6rdLDd47w44W8mwI8M04FHKrGtt57XPQAqQTRF1jD/pIt2lWGdRrZXfxx1aqTBVQpAhKanzoEnat6LYC0lFKQFZvUmvEztAyG3UMViFA8o91RcPiTBud2CcRCTW8gNLFJ7BbCUeJHiMj + azcli_aks_live_test@example.com\\n\"\n }\n ]\n }\n },\n \"servicePrincipalProfile\": + {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \"nodeResourceGroup\": + \"MC_clitest000001_cliakstest000002_eastus\",\n \"enableRBAC\": true,\n + \ \"enablePodSecurityPolicy\": false,\n \"supportPlan\": \"KubernetesOfficial\",\n + \ \"networkProfile\": {\n \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\": + \"Standard\",\n \"loadBalancerProfile\": {\n \"managedOutboundIPs\": + {\n \"count\": 1\n },\n \"effectiveOutboundIPs\": [\n {\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_eastus/providers/Microsoft.Network/publicIPAddresses/d4c9637f-8aa5-43a8-9539-e6d0957ebe6d\"\n + \ }\n ],\n \"backendPoolType\": \"nodeIPConfiguration\"\n },\n + \ \"podCidr\": \"10.244.0.0/16\",\n \"serviceCidr\": \"10.0.0.0/16\",\n + \ \"dnsServiceIP\": \"10.0.0.10\",\n \"outboundType\": \"loadBalancer\",\n + \ \"podCidrs\": [\n \"10.244.0.0/16\"\n ],\n \"serviceCidrs\": + [\n \"10.0.0.0/16\"\n ],\n \"ipFamilies\": [\n \"IPv4\"\n ]\n + \ },\n \"maxAgentPools\": 100,\n \"identityProfile\": {\n \"kubeletidentity\": + {\n \"resourceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MC_clitest000001_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\": \"Base\",\n \"tier\": \"Free\"\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '4122' + content-type: + - application/json + date: + - Mon, 26 Jun 2023 11:02:58 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g -n --yes --no-wait + User-Agent: + - AZURECLI/2.49.0 azsdk-python-azure-mgmt-containerservice/23.0.0b Python/3.8.10 + (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2023-05-02-preview + response: + body: + string: '' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/82cb0dd8-469d-489b-b0ef-b5246936ca4b?api-version=2017-08-31 + cache-control: + - no-cache + content-length: + - '0' + date: + - Mon, 26 Jun 2023 11:02:59 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operationresults/82cb0dd8-469d-489b-b0ef-b5246936ca4b?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_add_with_disable_windows_outbound_nat.yaml b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_nodepool_add_with_disable_windows_outbound_nat.yaml index 510fd6f277d..57be92a6c01 100755 --- a/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_nodepool_add_with_disable_windows_outbound_nat.yaml +++ b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_nodepool_add_with_disable_windows_outbound_nat.yaml @@ -16,7 +16,7 @@ interactions: - AZURECLI/2.49.0 azsdk-python-azure-mgmt-containerservice/23.0.0 Python/3.8.10 (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/kubernetesVersions?api-version=2023-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/kubernetesVersions?api-version=2023-05-02-preview response: body: string: "{\n \"values\": [\n {\n \"version\": \"1.25\",\n \"capabilities\": diff --git a/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_nodepool_add_with_ossku_windows2022.yaml b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_nodepool_add_with_ossku_windows2022.yaml index bb69e8c71fe..b2ac9c15ac3 100755 --- a/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_nodepool_add_with_ossku_windows2022.yaml +++ b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_nodepool_add_with_ossku_windows2022.yaml @@ -16,7 +16,7 @@ interactions: - AZURECLI/2.49.0 azsdk-python-azure-mgmt-containerservice/23.0.0 Python/3.8.10 (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/kubernetesVersions?api-version=2023-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/kubernetesVersions?api-version=2023-05-02-preview response: body: string: "{\n \"values\": [\n {\n \"version\": \"1.24\",\n \"capabilities\": diff --git a/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_nodepool_snapshot.yaml b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_nodepool_snapshot.yaml index 71dc18a6c6d..e5a39ff7d21 100755 --- a/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_nodepool_snapshot.yaml +++ b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_nodepool_snapshot.yaml @@ -16,7 +16,7 @@ interactions: - AZURECLI/2.49.0 azsdk-python-azure-mgmt-containerservice/23.0.0 Python/3.8.10 (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/kubernetesVersions?api-version=2023-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/kubernetesVersions?api-version=2023-05-02-preview response: body: string: "{\n \"values\": [\n {\n \"version\": \"1.24\",\n \"capabilities\": diff --git a/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_snapshot.yaml b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_snapshot.yaml index c8dcdf63890..493c30673fc 100755 --- a/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_snapshot.yaml +++ b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_snapshot.yaml @@ -16,7 +16,7 @@ interactions: - AZURECLI/2.49.0 azsdk-python-azure-mgmt-containerservice/23.0.0 Python/3.8.10 (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westcentralus/kubernetesVersions?api-version=2023-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westcentralus/kubernetesVersions?api-version=2023-05-02-preview response: body: string: "{\n \"values\": [\n {\n \"version\": \"1.25\",\n \"capabilities\": diff --git a/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_snapshot_update.yaml b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_snapshot_update.yaml index 32d01df7959..847daad39f7 100755 --- a/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_snapshot_update.yaml +++ b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_snapshot_update.yaml @@ -16,7 +16,7 @@ interactions: - AZURECLI/2.49.0 azsdk-python-azure-mgmt-containerservice/23.0.0 Python/3.8.10 (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westcentralus/kubernetesVersions?api-version=2023-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westcentralus/kubernetesVersions?api-version=2023-05-02-preview response: body: string: "{\n \"values\": [\n {\n \"version\": \"1.26\",\n \"capabilities\": diff --git a/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_snapshot_upgrade.yaml b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_snapshot_upgrade.yaml index af94a226291..c239db73948 100755 --- a/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_snapshot_upgrade.yaml +++ b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_snapshot_upgrade.yaml @@ -16,7 +16,7 @@ interactions: - AZURECLI/2.49.0 azsdk-python-azure-mgmt-containerservice/23.0.0 Python/3.8.10 (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westcentralus/kubernetesVersions?api-version=2023-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westcentralus/kubernetesVersions?api-version=2023-05-02-preview response: body: string: "{\n \"values\": [\n {\n \"version\": \"1.25\",\n \"capabilities\": diff --git a/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_upgrade_nodepool.yaml b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_upgrade_nodepool.yaml index ce5c2da4e50..f32875be39a 100755 --- a/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_upgrade_nodepool.yaml +++ b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_upgrade_nodepool.yaml @@ -16,7 +16,7 @@ interactions: - AZURECLI/2.49.0 azsdk-python-azure-mgmt-containerservice/23.0.0 Python/3.8.10 (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/kubernetesVersions?api-version=2023-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/kubernetesVersions?api-version=2023-05-02-preview response: body: string: "{\n \"values\": [\n {\n \"version\": \"1.25\",\n \"capabilities\": diff --git a/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_get_version.yaml b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_get_version.yaml index ef41fcad764..9058fc698af 100755 --- a/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_get_version.yaml +++ b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_get_version.yaml @@ -16,7 +16,7 @@ interactions: - AZURECLI/2.49.0 azsdk-python-azure-mgmt-containerservice/23.0.0 Python/3.8.10 (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/kubernetesVersions?api-version=2023-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/kubernetesVersions?api-version=2023-05-02-preview response: body: string: "{\n \"values\": [\n {\n \"version\": \"1.25\",\n \"capabilities\": 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 ad7ec3d201d..5e416dfbcc8 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 @@ -7237,3 +7237,48 @@ def test_aks_create_with_enable_network_observability(self, resource_group, reso # delete self.cmd( 'aks delete -g {resource_group} -n {name} --yes --no-wait', checks=[self.is_empty()]) + + @AllowLargeResponse() + @AKSCustomResourceGroupPreparer(random_name_length=17, name_prefix='clitest', location='eastus', preserve_default_location=True) + def test_aks_create_with_custom_headers(self, resource_group, resource_group_location): + aks_name = self.create_random_name('cliakstest', 16) + _, create_version = self._get_versions(resource_group_location) + self.kwargs.update({ + 'resource_group': resource_group, + 'name': aks_name, + 'ssh_key_value': self.generate_ssh_keys(), + 'k8s_version': create_version, + }) + + # create + create_cmd = 'aks create --resource-group={resource_group} --name={name} -k {k8s_version} -c 1 ' \ + '--ssh-key-value={ssh_key_value} ' \ + '--aks-custom-headers x-ms-correlation-request-id=12345678-90ab-cdef-1234-567890abcdef' + self.cmd(create_cmd, checks=[ + self.check('provisioningState', 'Succeeded'), + ]) + + # scale cluster + scale_cluster_cmd = 'aks scale --resource-group={resource_group} --name={name} ' \ + '-c 2 --aks-custom-headers x-ms-correlation-request-id=12345678-90ab-cdef-1234-567890abcdef' + self.cmd(scale_cluster_cmd, checks=[ + self.check('provisioningState', 'Succeeded'), + ]) + + # scale nodepool + scale_nodepool_cmd = 'aks nodepool scale --resource-group={resource_group} --cluster-name={name} --name=nodepool1 ' \ + '-c 1 --aks-custom-headers x-ms-correlation-request-id=12345678-90ab-cdef-1234-567890abcdef' + self.cmd(scale_nodepool_cmd, checks=[ + self.check('provisioningState', 'Succeeded'), + ]) + + # show + show_cmd = 'aks show --resource-group={resource_group} --name={name} ' \ + '--aks-custom-headers x-ms-correlation-request-id=12345678-90ab-cdef-1234-567890abcdef' + self.cmd(show_cmd, checks=[ + self.check('provisioningState', 'Succeeded'), + ]) + + # delete + self.cmd( + 'aks delete -g {resource_group} -n {name} --yes --no-wait', checks=[self.is_empty()]) diff --git a/src/aks-preview/setup.py b/src/aks-preview/setup.py index c1546008422..d63490cbfc2 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.144" +VERSION = "0.5.145" CLASSIFIERS = [ "Development Status :: 4 - Beta",