diff --git a/src/aks-preview/HISTORY.md b/src/aks-preview/HISTORY.md index a6dc17ef2ee..029b3ce78e8 100644 --- a/src/aks-preview/HISTORY.md +++ b/src/aks-preview/HISTORY.md @@ -2,6 +2,18 @@ Release History =============== +0.5.40 ++++++ +* Add support for new snapshot commands + * `az aks snapshot create` + * `az aks snapshot delete` + * `az aks snapshot list` + * `az aks snapshot show` +* Add --snapshot-id to creating/upgrading commands + * `az aks create --snapshot-id` + * `az aks nodepool add --snapshot-id` + * `az aks nodepool upgrade --snapshot-id` + 0.5.39 +++++ * Add commands for agentpool start stop feature diff --git a/src/aks-preview/azcli_aks_live_test/configs/ext_matrix_default.json b/src/aks-preview/azcli_aks_live_test/configs/ext_matrix_default.json index 42ffd238814..4c3703e4200 100644 --- a/src/aks-preview/azcli_aks_live_test/configs/ext_matrix_default.json +++ b/src/aks-preview/azcli_aks_live_test/configs/ext_matrix_default.json @@ -40,7 +40,8 @@ "test_aks_nodepool_add_with_workload_runtime", "test_aks_nodepool_add_with_gpu_instance_profile", "test_aks_create_with_windows_gmsa", - "test_aks_update_with_windows_gmsa" + "test_aks_update_with_windows_gmsa", + "test_aks_snapshot" ] } } diff --git a/src/aks-preview/azext_aks_preview/_client_factory.py b/src/aks-preview/azext_aks_preview/_client_factory.py index 4cce88ec7c6..fb7ce2f65b2 100644 --- a/src/aks-preview/azext_aks_preview/_client_factory.py +++ b/src/aks-preview/azext_aks_preview/_client_factory.py @@ -38,6 +38,14 @@ def cf_agent_pools(cli_ctx, *_): return get_mgmt_service_client(cli_ctx, CUSTOM_MGMT_AKS_PREVIEW).agent_pools +def cf_snapshots_client(cli_ctx, subscription_id=None): + return get_mgmt_service_client(cli_ctx, CUSTOM_MGMT_AKS_PREVIEW, subscription_id=subscription_id).snapshots + + +def cf_snapshots(cli_ctx, *_): + return get_mgmt_service_client(cli_ctx, CUSTOM_MGMT_AKS_PREVIEW).snapshots + + def cf_maintenance_configurations(cli_ctx, *_): return get_mgmt_service_client(cli_ctx, CUSTOM_MGMT_AKS_PREVIEW).maintenance_configurations diff --git a/src/aks-preview/azext_aks_preview/_format.py b/src/aks-preview/azext_aks_preview/_format.py index d7de127f3df..bcfb3efd97a 100644 --- a/src/aks-preview/azext_aks_preview/_format.py +++ b/src/aks-preview/azext_aks_preview/_format.py @@ -214,3 +214,28 @@ def aks_pod_identities_table_format(result): }""") # use ordered dicts so headers are predictable return parsed.search(result, Options(dict_cls=OrderedDict, custom_functions=_custom_functions(preview))) + + +def aks_list_snapshot_table_format(results): + """"Format a list of snapshots as summary results for display with "-o table".""" + return [_aks_snapshot_table_format(r) for r in results] + + +def aks_show_snapshot_table_format(result): + """Format a snapshot as summary results for display with "-o table".""" + return [_aks_snapshot_table_format(result)] + + +def _aks_snapshot_table_format(result): + parsed = compile_jmes("""{ + name: name, + location: location, + resourceGroup: resourceGroup, + nodeImageVersion: nodeImageVersion, + kubernetesVersion: kubernetesVersion, + osType: osType, + osSku: osSku, + enableFIPS: enableFIPS + }""") + # use ordered dicts so headers are predictable + return parsed.search(result, Options(dict_cls=OrderedDict)) diff --git a/src/aks-preview/azext_aks_preview/_help.py b/src/aks-preview/azext_aks_preview/_help.py index 371b30ab860..decd8b88209 100644 --- a/src/aks-preview/azext_aks_preview/_help.py +++ b/src/aks-preview/azext_aks_preview/_help.py @@ -376,6 +376,9 @@ long-summary: |- You do not need to set this if you have set DNS server in the VNET used by the cluster. You must set or not set --gmsa-dns-server and --gmsa-root-domain-name at the same time when setting --enable-windows-gmsa. + - name: --snapshot-id + type: string + short-summary: The source snapshot id used to create this cluster. examples: - name: Create a Kubernetes cluster with an existing SSH public key. text: az aks create -g MyResourceGroup -n MyManagedCluster --ssh-key-value /path/to/publickey @@ -429,6 +432,8 @@ text: az aks create -g MyResourceGroup -n MyManagedCluster --load-balancer-sku Standard --network-plugin azure --windows-admin-username azure --windows-admin-password 'replacePassword1234$' --enable-windows-gmsa - name: Create a kubernetes cluster with enabling Windows gmsa but without setting DNS server in the vnet used by the cluster. text: az aks create -g MyResourceGroup -n MyManagedCluster --load-balancer-sku Standard --network-plugin azure --windows-admin-username azure --windows-admin-password 'replacePassword1234$' --enable-windows-gmsa --gmsa-dns-server "10.240.0.4" --gmsa-root-domain-name "contoso.com" + - name: create a kubernetes cluster with a snapshot id. + text: az aks create -g MyResourceGroup -n MyManagedCluster --kubernetes-version 1.20.9 --snapshot-id "/subscriptions/00000/resourceGroups/AnotherResourceGroup/providers/Microsoft.ContainerService/snapshots/mysnapshot1" """.format(sp_cache=AKS_SERVICE_PRINCIPAL_CACHE) helps['aks scale'] = """ @@ -992,6 +997,9 @@ - name: --gpu-instance-profile type: string short-summary: GPU instance profile to partition multi-gpu Nvidia GPUs. + - name: --snapshot-id + type: string + short-summary: The source snapshot id used to create this nodepool. examples: - name: Create a nodepool in an existing AKS cluster with ephemeral os enabled. text: az aks nodepool add -g MyResourceGroup -n nodepool1 --cluster-name MyManagedCluster --node-osdisk-type Ephemeral --node-osdisk-size 48 @@ -1001,6 +1009,8 @@ text: az aks nodepool add -g MyResourceGroup -n nodepool1 --cluster-name MyManagedCluster --os-sku Ubuntu - name: Create a nodepool which can run wasm workloads. text: az aks nodepool add -g MyResourceGroup -n nodepool1 --cluster-name MyManagedCluster --workload-runtime WasmWasi + - name: create a kubernetes cluster with a snapshot id. + text: az aks nodepool add -g MyResourceGroup -n nodepool1 --cluster-name MyManagedCluster --kubernetes-version 1.20.9 --snapshot-id "/subscriptions/00000/resourceGroups/AnotherResourceGroup/providers/Microsoft.ContainerService/snapshots/mysnapshot1" """ helps['aks nodepool scale'] = """ @@ -1028,6 +1038,9 @@ - name: --aks-custom-headers type: string short-summary: Send custom headers. When specified, format should be Key1=Value1,Key2=Value2 + - name: --snapshot-id + type: string + short-summary: The source snapshot id used to upgrade this nodepool. """ helps['aks nodepool update'] = """ @@ -1457,3 +1470,44 @@ type: command short-summary: List egress endpoints that are required or recommended to be whitelisted for a cluster. """ + +helps['aks snapshot'] = """ + type: group + short-summary: Commands to manage snapshots. +""" + +helps['aks snapshot show'] = """ + type: command + short-summary: Show the details of a snapshot. +""" + +helps['aks snapshot list'] = """ + type: command + short-summary: List snapshots. +""" + +helps['aks snapshot create'] = """ + type: command + short-summary: Create a snapshot of a node pool. + parameters: + - name: --nodepool-id + type: string + short-summary: The source nodepool id from which to create this snapshot. + - name: --tags + type: string + short-summary: The tags of the snapshot. + - name: --aks-custom-headers + type: string + short-summary: Send custom headers. When specified, format should be Key1=Value1,Key2=Value2 + + examples: + - name: Create a snapshot. + text: az aks snapshot create -g MyResourceGroup -n snapshot1 --nodepool-id "/subscriptions/00000/resourceGroups/AnotherResourceGroup/providers/Microsoft.ContainerService/managedClusters/akscluster1/agentPools/nodepool1" + - name: Create a snapshot with custom tags. + text: az aks snapshot create -g MyResourceGroup -n snapshot1 --nodepool-id "/subscriptions/00000/resourceGroups/AnotherResourceGroup/providers/Microsoft.ContainerService/managedClusters/akscluster1/agentPools/nodepool1" --tags "foo=bar" "key1=val1" +""" + +helps['aks snapshot delete'] = """ + type: command + short-summary: Delete a snapshot. +""" diff --git a/src/aks-preview/azext_aks_preview/_params.py b/src/aks-preview/azext_aks_preview/_params.py index ae2ee8faa03..9514057379a 100644 --- a/src/aks-preview/azext_aks_preview/_params.py +++ b/src/aks-preview/azext_aks_preview/_params.py @@ -18,7 +18,7 @@ from ._validators import ( validate_cluster_autoscaler_profile, validate_create_parameters, validate_k8s_version, validate_linux_host_name, validate_ssh_key, validate_nodes_count, validate_ip_ranges, - validate_nodepool_name, validate_vm_set_type, validate_load_balancer_sku, + validate_nodepool_name, validate_vm_set_type, validate_load_balancer_sku, validate_nodepool_id, validate_snapshot_id, validate_load_balancer_outbound_ips, validate_load_balancer_outbound_ip_prefixes, validate_nat_gateway_managed_outbound_ip_count, validate_taints, validate_priority, validate_eviction_policy, validate_spot_max_price, validate_acr, validate_user, validate_load_balancer_outbound_ports, validate_load_balancer_idle_timeout, validate_nat_gateway_idle_timeout, validate_nodepool_tags, validate_addon, @@ -153,6 +153,7 @@ def load_arguments(self, _): c.argument('gmsa_root_domain_name', options_list=['--gmsa-root-domain-name']) c.argument('yes', options_list=['--yes', '-y'], help='Do not prompt for confirmation.', action='store_true') c.argument('workload_runtime', arg_type=get_enum_type(workload_runtimes), default=CONST_WORKLOAD_RUNTIME_OCI_CONTAINER) + c.argument('snapshot_id', type=str, validator=validate_snapshot_id, is_preview=True) with self.argument_context('aks update') as c: c.argument('enable_cluster_autoscaler', options_list=["--enable-cluster-autoscaler", "-e"], action='store_true') @@ -251,6 +252,7 @@ def load_arguments(self, _): c.argument('enable_ultra_ssd', action='store_true') c.argument('workload_runtime', arg_type=get_enum_type(workload_runtimes), default=CONST_WORKLOAD_RUNTIME_OCI_CONTAINER) c.argument('gpu_instance_profile', arg_type=get_enum_type(gpu_instance_profiles)) + c.argument('snapshot_id', type=str, validator=validate_snapshot_id, is_preview=True) for scope in ['aks nodepool show', 'aks nodepool delete', 'aks nodepool scale', 'aks nodepool upgrade', 'aks nodepool update']: with self.argument_context(scope) as c: @@ -259,6 +261,7 @@ def load_arguments(self, _): with self.argument_context('aks nodepool upgrade') as c: c.argument('max_surge', type=str, validator=validate_max_surge) c.argument('aks_custom_headers') + c.argument('snapshot_id', type=str, validator=validate_snapshot_id, is_preview=True) with self.argument_context('aks nodepool update') as c: c.argument('enable_cluster_autoscaler', options_list=["--enable-cluster-autoscaler", "-e"], action='store_true') @@ -382,6 +385,18 @@ def load_arguments(self, _): help='pod labels in key=value [key=value ...].', validator=validate_pod_identity_pod_labels) + for scope in ['aks snapshot create']: + with self.argument_context(scope) as c: + c.argument('snapshot_name', type=str, options_list=['--name', '-n'], required=True, validator=validate_linux_host_name, help='The snapshot name.') + c.argument('tags', tags_type) + c.argument('nodepool_id', type=str, required=True, validator=validate_nodepool_id, help='The nodepool id.') + c.argument('aks_custom_headers') + + for scope in ['aks snapshot show', 'aks snapshot delete']: + with self.argument_context(scope) as c: + c.argument('snapshot_name', type=str, options_list=['--name', '-n'], required=True, validator=validate_linux_host_name, help='The snapshot name.') + c.argument('yes', options_list=['--yes', '-y'], help='Do not prompt for confirmation.', action='store_true') + def _get_default_install_location(exe_name): system = platform.system() diff --git a/src/aks-preview/azext_aks_preview/_validators.py b/src/aks-preview/azext_aks_preview/_validators.py index 8cb2afad6ec..a37d21d0d40 100644 --- a/src/aks-preview/azext_aks_preview/_validators.py +++ b/src/aks-preview/azext_aks_preview/_validators.py @@ -504,3 +504,16 @@ def validate_assign_kubelet_identity(namespace): from msrestazure.tools import is_valid_resource_id if not is_valid_resource_id(namespace.assign_kubelet_identity): raise CLIError("--assign-kubelet-identity is not a valid Azure resource ID.") + + +def validate_nodepool_id(namespace): + from msrestazure.tools import is_valid_resource_id + if not is_valid_resource_id(namespace.nodepool_id): + raise InvalidArgumentValueError("--nodepool-id is not a valid Azure resource ID.") + + +def validate_snapshot_id(namespace): + if namespace.snapshot_id: + from msrestazure.tools import is_valid_resource_id + if not is_valid_resource_id(namespace.snapshot_id): + raise InvalidArgumentValueError("--snapshot-id is not a valid Azure resource ID.") diff --git a/src/aks-preview/azext_aks_preview/commands.py b/src/aks-preview/azext_aks_preview/commands.py index 0509a6b792c..8911724e490 100644 --- a/src/aks-preview/azext_aks_preview/commands.py +++ b/src/aks-preview/azext_aks_preview/commands.py @@ -9,6 +9,7 @@ from ._client_factory import cf_maintenance_configurations from ._client_factory import cf_container_services from ._client_factory import cf_agent_pools +from ._client_factory import cf_snapshots from ._format import aks_show_table_format from ._format import aks_addon_list_available_table_format, aks_addon_list_table_format, aks_addon_show_table_format from ._format import aks_agentpool_show_table_format @@ -17,6 +18,8 @@ from ._format import aks_upgrades_table_format from ._format import aks_pod_identities_table_format from ._format import aks_pod_identity_exceptions_table_format +from ._format import aks_show_snapshot_table_format +from ._format import aks_list_snapshot_table_format def load_command_table(self, _): @@ -47,6 +50,12 @@ def load_command_table(self, _): client_factory=cf_maintenance_configurations ) + snapshot_sdk = CliCommandType( + operations_tmpl='azext_aks_preview.vendored_sdks.azure_mgmt_preview_aks.' + 'operations._snapshots_operations#SnapshotsOperations.{}', + client_factory=cf_snapshots + ) + # AKS managed cluster commands with self.command_group('aks', managed_clusters_sdk, client_factory=cf_managed_clusters) as g: g.custom_command('kollect', 'aks_kollect') @@ -130,3 +139,10 @@ def load_command_table(self, _): # AKS egress commands with self.command_group('aks egress-endpoints', managed_clusters_sdk, client_factory=cf_managed_clusters) as g: g.custom_command('list', 'aks_egress_endpoints_list') + + # AKS snapshot commands + with self.command_group('aks snapshot', snapshot_sdk, client_factory=cf_snapshots) as g: + g.custom_command('list', 'aks_snapshot_list', table_transformer=aks_list_snapshot_table_format) + g.custom_show_command('show', 'aks_snapshot_show', table_transformer=aks_show_snapshot_table_format) + g.custom_command('create', 'aks_snapshot_create', supports_no_wait=True) + g.custom_command('delete', 'aks_snapshot_delete', supports_no_wait=True) diff --git a/src/aks-preview/azext_aks_preview/custom.py b/src/aks-preview/azext_aks_preview/custom.py index 5b0b0164c02..e0c94d7362c 100644 --- a/src/aks-preview/azext_aks_preview/custom.py +++ b/src/aks-preview/azext_aks_preview/custom.py @@ -81,7 +81,9 @@ ManagedClusterPodIdentity, ManagedClusterPodIdentityException, UserAssignedIdentity, - PowerState) + PowerState, + Snapshot, + CreationData) from ._client_factory import cf_resource_groups from ._client_factory import get_auth_management_client from ._client_factory import get_graph_rbac_management_client @@ -91,6 +93,8 @@ from ._client_factory import cf_container_registry_service from ._client_factory import cf_storage from ._client_factory import cf_agent_pools +from ._client_factory import cf_snapshots +from ._client_factory import cf_snapshots_client from ._resourcegroup import get_rg_location from ._roleassignments import add_role_assignment, create_role_assignment, build_role_scope, resolve_role_id, \ @@ -522,6 +526,30 @@ def _update_dict(dict1, dict2): return cp +_re_snapshot_resource_id = re.compile( + r'/subscriptions/(.*?)/resourcegroups/(.*?)/providers/microsoft.containerservice/snapshots/(.*)', + flags=re.IGNORECASE) + + +def _get_snapshot(cli_ctx, snapshot_id): + snapshot_id = snapshot_id.lower() + match = _re_snapshot_resource_id.search(snapshot_id) + if match: + subscription_id = match.group(1) + resource_group_name = match.group(2) + snapshot_name = match.group(3) + snapshot_client = cf_snapshots_client(cli_ctx, subscription_id=subscription_id) + try: + snapshot = snapshot_client.get(resource_group_name, snapshot_name) + except CloudError as ex: + if 'was not found' in ex.message: + raise InvalidArgumentValueError("Snapshot {} not found.".format(snapshot_id)) + raise CLIError(ex.message) + return snapshot + raise InvalidArgumentValueError( + "Cannot parse snapshot name from provided resource id {}.".format(snapshot_id)) + + def aks_browse(cmd, # pylint: disable=too-many-statements,too-many-branches client, resource_group_name, @@ -733,7 +761,7 @@ def aks_create(cmd, # pylint: disable=too-many-locals,too-many-statements,to windows_admin_password=None, enable_ahub=False, kubernetes_version='', - node_vm_size="Standard_DS2_v2", + node_vm_size=None, node_osdisk_type=None, node_osdisk_size=0, node_osdisk_diskencryptionset_id=None, @@ -827,6 +855,7 @@ def aks_create(cmd, # pylint: disable=too-many-locals,too-many-statements,to enable_windows_gmsa=False, gmsa_dns_server=None, gmsa_root_domain_name=None, + snapshot_id=None, yes=False): if not no_ssh_key: try: @@ -850,6 +879,23 @@ def aks_create(cmd, # pylint: disable=too-many-locals,too-many-statements,to if location is None: location = rg_location + creationData = None + if snapshot_id: + snapshot = _get_snapshot(cmd.cli_ctx, snapshot_id) + if not kubernetes_version: + kubernetes_version = snapshot.kubernetes_version + if not os_sku: + os_sku = snapshot.os_sku + if not node_vm_size: + node_vm_size = snapshot.vm_size + + creationData = CreationData( + source_resource_id=snapshot_id + ) + + if not node_vm_size: + node_vm_size = "Standard_DS2_v2" + # Flag to be removed, kept for back-compatibility only. Remove the below section # when we deprecate the enable-vmss flag if enable_vmss: @@ -888,7 +934,8 @@ def aks_create(cmd, # pylint: disable=too-many-locals,too-many-statements,to max_pods=int(max_pods) if max_pods else None, type=vm_set_type, workload_runtime=workload_runtime, - gpu_instance_profile=gpu_instance_profile + gpu_instance_profile=gpu_instance_profile, + creation_data=creationData ) if node_osdisk_size: @@ -2118,7 +2165,7 @@ def aks_upgrade(cmd, # pylint: disable=unused-argument, too-many-return-state 'can only be applied on VirtualMachineScaleSets cluster.') agent_pool_client = cf_agent_pools(cmd.cli_ctx) _upgrade_single_nodepool_image_version( - True, agent_pool_client, resource_group_name, name, agent_pool_profile.name) + True, agent_pool_client, resource_group_name, name, agent_pool_profile.name, None) mc = client.get(resource_group_name, name) return _remove_nulls([mc])[0] @@ -2158,6 +2205,7 @@ def aks_upgrade(cmd, # pylint: disable=unused-argument, too-many-return-state if upgrade_all: for agent_profile in instance.agent_pool_profiles: agent_profile.orchestrator_version = kubernetes_version + agent_profile.creation_data = None # null out the SP and AAD profile because otherwise validation complains instance.service_principal_profile = None @@ -2168,8 +2216,12 @@ def aks_upgrade(cmd, # pylint: disable=unused-argument, too-many-return-state return sdk_no_wait(no_wait, client.begin_create_or_update, resource_group_name, name, instance, headers=headers) -def _upgrade_single_nodepool_image_version(no_wait, client, resource_group_name, cluster_name, nodepool_name): - return sdk_no_wait(no_wait, client.begin_upgrade_node_image_version, resource_group_name, cluster_name, nodepool_name) +def _upgrade_single_nodepool_image_version(no_wait, client, resource_group_name, cluster_name, nodepool_name, snapshot_id=None): + headers = {} + if snapshot_id: + headers["AKSSnapshotId"] = snapshot_id + + return sdk_no_wait(no_wait, client.begin_upgrade_node_image_version, resource_group_name, cluster_name, nodepool_name, headers=headers) def _handle_addons_args(cmd, # pylint: disable=too-many-statements @@ -2446,7 +2498,7 @@ def aks_agentpool_add(cmd, # pylint: disable=unused-argument,too-many-local pod_subnet_id=None, ppg=None, max_pods=0, - os_type="Linux", + os_type=None, os_sku=None, enable_fips_image=False, min_count=None, @@ -2467,6 +2519,7 @@ def aks_agentpool_add(cmd, # pylint: disable=unused-argument,too-many-local enable_ultra_ssd=False, workload_runtime=None, gpu_instance_profile=None, + snapshot_id=None, no_wait=False): instances = client.list(resource_group_name, cluster_name) for agentpool_profile in instances: @@ -2477,6 +2530,25 @@ def aks_agentpool_add(cmd, # pylint: disable=unused-argument,too-many-local upgradeSettings = AgentPoolUpgradeSettings() taints_array = [] + creationData = None + if snapshot_id: + snapshot = _get_snapshot(cmd.cli_ctx, snapshot_id) + if not kubernetes_version: + kubernetes_version = snapshot.kubernetes_version + if not os_type: + os_type = snapshot.os_type + if not os_sku: + os_sku = snapshot.os_sku + if not node_vm_size: + node_vm_size = snapshot.vm_size + + creationData = CreationData( + source_resource_id=snapshot_id + ) + + if not os_type: + os_type = "Linux" + if node_taints is not None: for taint in node_taints.split(','): try: @@ -2522,7 +2594,8 @@ def aks_agentpool_add(cmd, # pylint: disable=unused-argument,too-many-local enable_ultra_ssd=enable_ultra_ssd, mode=mode, workload_runtime=workload_runtime, - gpu_instance_profile=gpu_instance_profile + gpu_instance_profile=gpu_instance_profile, + creation_data=creationData ) if priority == CONST_SCALE_SET_PRIORITY_SPOT: @@ -2577,7 +2650,9 @@ def aks_agentpool_upgrade(cmd, # pylint: disable=unused-argument no_wait=False, node_image_only=False, max_surge=None, - aks_custom_headers=None): + aks_custom_headers=None, + snapshot_id=None): + if kubernetes_version != '' and node_image_only: raise CLIError('Conflicting flags. Upgrading the Kubernetes version will also upgrade node image version.' 'If you only want to upgrade the node version please use the "--node-image-only" option only.') @@ -2587,10 +2662,22 @@ def aks_agentpool_upgrade(cmd, # pylint: disable=unused-argument client, resource_group_name, cluster_name, - nodepool_name) + nodepool_name, + snapshot_id) + + creationData = None + if snapshot_id: + snapshot = _get_snapshot(cmd.cli_ctx, snapshot_id) + if not kubernetes_version and not node_image_only: + kubernetes_version = snapshot.kubernetes_version + + creationData = CreationData( + source_resource_id=snapshot_id + ) instance = client.get(resource_group_name, cluster_name, nodepool_name) instance.orchestrator_version = kubernetes_version + instance.creation_data = creationData if not instance.upgrade_settings: instance.upgrade_settings = AgentPoolUpgradeSettings() @@ -3877,3 +3964,59 @@ def _ensure_cluster_identity_permission_on_kubelet_identity(cli_ctx, cluster_ide def aks_egress_endpoints_list(cmd, client, resource_group_name, name): # pylint: disable=unused-argument return client.list_outbound_network_dependencies_endpoints(resource_group_name, name) + + +def aks_snapshot_create(cmd, # pylint: disable=too-many-locals,too-many-statements,too-many-branches + client, + resource_group_name, + name, + nodepool_id, + location=None, + tags=None, + aks_custom_headers=None, + no_wait=False): + + rg_location = get_rg_location(cmd.cli_ctx, resource_group_name) + if location is None: + location = rg_location + + creationData = CreationData( + source_resource_id=nodepool_id + ) + + snapshot = Snapshot( + name=_trim_nodepoolname(name), + tags=tags, + location=location, + creation_data=creationData + ) + + headers = get_aks_custom_headers(aks_custom_headers) + return client.create_or_update(resource_group_name, _trim_nodepoolname(name), snapshot, headers=headers) + + +def aks_snapshot_show(cmd, client, resource_group_name, name): # pylint: disable=unused-argument + snapshot = client.get(resource_group_name, name) + return snapshot + + +def aks_snapshot_delete(cmd, # pylint: disable=unused-argument + client, + resource_group_name, + name, + no_wait=False, + yes=False): + + from knack.prompting import prompt_y_n + msg = 'This will delete the snapshot "{}" in resource group "{}", Are you sure?'.format(name, resource_group_name) + if not yes and not prompt_y_n(msg, default="n"): + return None + + return client.delete(resource_group_name, name) + + +def aks_snapshot_list(cmd, client, resource_group_name=None): # pylint: disable=unused-argument + if resource_group_name is None or resource_group_name == '': + return client.list() + + return client.list_by_resource_group(resource_group_name) 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 new file mode 100644 index 00000000000..95db17c5318 --- /dev/null +++ b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_snapshot.yaml @@ -0,0 +1,4686 @@ +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.30.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.3.0 Python/3.9.6 + (Linux-5.4.0-1055-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/orchestrators?api-version=2019-04-01&resource-type=managedClusters + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/orchestrators\"\ + ,\n \"name\": \"default\",\n \"type\": \"Microsoft.ContainerService/locations/orchestrators\"\ + ,\n \"properties\": {\n \"orchestrators\": [\n {\n \"orchestratorType\"\ + : \"Kubernetes\",\n \"orchestratorVersion\": \"1.19.11\",\n \"upgrades\"\ + : [\n {\n \"orchestratorType\": \"Kubernetes\",\n \"orchestratorVersion\"\ + : \"1.19.13\"\n },\n {\n \"orchestratorType\": \"Kubernetes\"\ + ,\n \"orchestratorVersion\": \"1.20.7\"\n },\n {\n \"\ + orchestratorType\": \"Kubernetes\",\n \"orchestratorVersion\": \"1.20.9\"\ + \n }\n ]\n },\n {\n \"orchestratorType\": \"Kubernetes\"\ + ,\n \"orchestratorVersion\": \"1.19.13\",\n \"upgrades\": [\n \ + \ {\n \"orchestratorType\": \"Kubernetes\",\n \"orchestratorVersion\"\ + : \"1.20.7\"\n },\n {\n \"orchestratorType\": \"Kubernetes\"\ + ,\n \"orchestratorVersion\": \"1.20.9\"\n }\n ]\n },\n \ + \ {\n \"orchestratorType\": \"Kubernetes\",\n \"orchestratorVersion\"\ + : \"1.20.7\",\n \"upgrades\": [\n {\n \"orchestratorType\"\ + : \"Kubernetes\",\n \"orchestratorVersion\": \"1.20.9\"\n },\n\ + \ {\n \"orchestratorType\": \"Kubernetes\",\n \"orchestratorVersion\"\ + : \"1.21.1\"\n },\n {\n \"orchestratorType\": \"Kubernetes\"\ + ,\n \"orchestratorVersion\": \"1.21.2\"\n }\n ]\n },\n \ + \ {\n \"orchestratorType\": \"Kubernetes\",\n \"orchestratorVersion\"\ + : \"1.20.9\",\n \"default\": true,\n \"upgrades\": [\n {\n \ + \ \"orchestratorType\": \"Kubernetes\",\n \"orchestratorVersion\"\ + : \"1.21.1\"\n },\n {\n \"orchestratorType\": \"Kubernetes\"\ + ,\n \"orchestratorVersion\": \"1.21.2\"\n }\n ]\n },\n \ + \ {\n \"orchestratorType\": \"Kubernetes\",\n \"orchestratorVersion\"\ + : \"1.21.1\",\n \"upgrades\": [\n {\n \"orchestratorType\"\ + : \"Kubernetes\",\n \"orchestratorVersion\": \"1.21.2\"\n },\n\ + \ {\n \"orchestratorType\": \"Kubernetes\",\n \"orchestratorVersion\"\ + : \"1.22.1\",\n \"isPreview\": true\n },\n {\n \"orchestratorType\"\ + : \"Kubernetes\",\n \"orchestratorVersion\": \"1.22.2\",\n \"\ + isPreview\": true\n }\n ]\n },\n {\n \"orchestratorType\"\ + : \"Kubernetes\",\n \"orchestratorVersion\": \"1.21.2\",\n \"upgrades\"\ + : [\n {\n \"orchestratorType\": \"Kubernetes\",\n \"orchestratorVersion\"\ + : \"1.22.1\",\n \"isPreview\": true\n },\n {\n \"orchestratorType\"\ + : \"Kubernetes\",\n \"orchestratorVersion\": \"1.22.2\",\n \"\ + isPreview\": true\n }\n ]\n },\n {\n \"orchestratorType\"\ + : \"Kubernetes\",\n \"orchestratorVersion\": \"1.22.1\",\n \"isPreview\"\ + : true,\n \"upgrades\": [\n {\n \"orchestratorType\": \"Kubernetes\"\ + ,\n \"orchestratorVersion\": \"1.22.2\",\n \"isPreview\": true\n\ + \ }\n ]\n },\n {\n \"orchestratorType\": \"Kubernetes\"\ + ,\n \"orchestratorVersion\": \"1.22.2\",\n \"isPreview\": true\n \ + \ }\n ]\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '2918' + content-type: + - application/json + date: + - Tue, 02 Nov 2021 17:00:21 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --nodepool-name --node-count --ssh-key-value + -o + User-Agent: + - AZURECLI/2.30.0 (DOCKER) azsdk-python-azure-mgmt-resource/19.0.0 Python/3.9.6 + (Linux-5.4.0-1055-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001","name":"clitest000001","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"product":"azurecli","cause":"automation","date":"2021-11-02T17:00:20Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '313' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 02 Nov 2021 17:00:22 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"location": "westus2", "identity": {"type": "SystemAssigned"}, "properties": + {"kubernetesVersion": "", "dnsPrefix": "cliakstest-clitestjd7xyxbgt-26fe00", + "agentPoolProfiles": [{"count": 1, "vmSize": "Standard_DS2_v2", "workloadRuntime": + "OCIContainer", "osType": "Linux", "type": "VirtualMachineScaleSets", "mode": + "System", "enableNodePublicIP": false, "scaleSetPriority": "Regular", "scaleSetEvictionPolicy": + "Delete", "spotMaxPrice": -1.0, "enableEncryptionAtHost": false, "enableUltraSSD": + false, "enableFIPS": false, "name": "c000004"}], "linuxProfile": {"adminUsername": + "azureuser", "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCbIg1guRHbI0lV11wWDt1r2cUdcNd27CJsg+SfgC7miZeubtwUhbsPdhMQsfDyhOWHq1+ZL0M+nJZV63d/1dhmhtgyOqejUwrPlzKhydsbrsdUor+JmNJDdW01v7BXHyuymT8G4s09jCasNOwiufbP/qp72ruu0bIA1nySsvlf9pCQAuFkAnVnf/rFhUlOkhtRpwcq8SUNY2zRHR/EKb/4NWY1JzR4sa3q2fWIJdrrX0DvLoa5g9bIEd4Df79ba7v+yiUBOS0zT2ll+z4g9izHK3EO5d8hL4jYxcjKs+wcslSYRWrascfscLgMlMGh0CdKeNTDjHpGPncaf3Z+FwwwjWeuiNBxv7bJo13/8B/098KlVDl4GZqsoBCEjPyJfV6hO0y/LkRGkk7oHWKgeWAfKtfLItRp00eZ4fcJNK9kCaSMmEugoZWcI7NGbZXzqFWqbpRI7NcDP9+WIQ+i9U5vqWsqd/zng4kbuAJ6UuKqIzB0upYrLShfQE3SAck8oaLhJqqq56VfDuASNpJKidV+zq27HfSBmbXnkR/5AK337dc3MXKJypoK/QPMLKUAP5XLPbs+NddJQV7EZXd29DLgp+fRIg3edpKdO7ZErWhv7d+3Kws+e1Y+ypmR2WIVSwVyBEUfgv2C8Ts9gnTF4pNcEY/S2aBicz5Ew2+jdyGNQQ== + test@example.com\n"}]}}, "addonProfiles": {}, "enableRBAC": true, "enablePodSecurityPolicy": + false, "networkProfile": {"networkPlugin": "kubenet", "podCidr": "10.244.0.0/16", + "serviceCidr": "10.0.0.0/16", "dnsServiceIP": "10.0.0.10", "dockerBridgeCidr": + "172.17.0.1/16", "outboundType": "loadBalancer", "loadBalancerSku": "standard"}, + "disableLocalAccounts": false}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '1717' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --name --location --nodepool-name --node-count --ssh-key-value + -o + User-Agent: + - AZURECLI/2.30.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.3.0 Python/3.9.6 + (Linux-5.4.0-1055-azure-x86_64-with) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2021-09-01 + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\"\ + ,\n \"location\": \"westus2\",\n \"name\": \"cliakstest000002\",\n \"type\"\ + : \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \ + \ \"provisioningState\": \"Creating\",\n \"powerState\": {\n \"code\"\ + : \"Running\"\n },\n \"kubernetesVersion\": \"1.20.9\",\n \"dnsPrefix\"\ + : \"cliakstest-clitestjd7xyxbgt-26fe00\",\n \"fqdn\": \"cliakstest-clitestjd7xyxbgt-26fe00-cda81aba.hcp.westus2.staging.azmk8s.io\"\ + ,\n \"azurePortalFQDN\": \"cliakstest-clitestjd7xyxbgt-26fe00-cda81aba.portal.hcp.westus2.staging.azmk8s.io\"\ + ,\n \"agentPoolProfiles\": [\n {\n \"name\": \"c000004\",\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 \"provisioningState\": \"\ + Creating\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n\ + \ \"orchestratorVersion\": \"1.20.9\",\n \"enableNodePublicIP\": false,\n\ + \ \"mode\": \"System\",\n \"enableEncryptionAtHost\": false,\n \ + \ \"enableUltraSSD\": false,\n \"osType\": \"Linux\",\n \"osSKU\"\ + : \"Ubuntu\",\n \"nodeImageVersion\": \"AKSUbuntu-1804gen2containerd-2021.10.23\"\ + ,\n \"enableFIPS\": false\n }\n ],\n \"linuxProfile\": {\n \"\ + adminUsername\": \"azureuser\",\n \"ssh\": {\n \"publicKeys\": [\n\ + \ {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCbIg1guRHbI0lV11wWDt1r2cUdcNd27CJsg+SfgC7miZeubtwUhbsPdhMQsfDyhOWHq1+ZL0M+nJZV63d/1dhmhtgyOqejUwrPlzKhydsbrsdUor+JmNJDdW01v7BXHyuymT8G4s09jCasNOwiufbP/qp72ruu0bIA1nySsvlf9pCQAuFkAnVnf/rFhUlOkhtRpwcq8SUNY2zRHR/EKb/4NWY1JzR4sa3q2fWIJdrrX0DvLoa5g9bIEd4Df79ba7v+yiUBOS0zT2ll+z4g9izHK3EO5d8hL4jYxcjKs+wcslSYRWrascfscLgMlMGh0CdKeNTDjHpGPncaf3Z+FwwwjWeuiNBxv7bJo13/8B/098KlVDl4GZqsoBCEjPyJfV6hO0y/LkRGkk7oHWKgeWAfKtfLItRp00eZ4fcJNK9kCaSMmEugoZWcI7NGbZXzqFWqbpRI7NcDP9+WIQ+i9U5vqWsqd/zng4kbuAJ6UuKqIzB0upYrLShfQE3SAck8oaLhJqqq56VfDuASNpJKidV+zq27HfSBmbXnkR/5AK337dc3MXKJypoK/QPMLKUAP5XLPbs+NddJQV7EZXd29DLgp+fRIg3edpKdO7ZErWhv7d+3Kws+e1Y+ypmR2WIVSwVyBEUfgv2C8Ts9gnTF4pNcEY/S2aBicz5Ew2+jdyGNQQ==\ + \ test@example.com\\n\"\n }\n ]\n }\n },\n \"servicePrincipalProfile\"\ + : {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \ + \ \"nodeResourceGroup\": \"MC_clitest000001_cliakstest000002_westus2\",\n\ + \ \"enableRBAC\": true,\n \"enablePodSecurityPolicy\": false,\n \"networkProfile\"\ + : {\n \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\": \"standard\"\ + ,\n \"loadBalancerProfile\": {\n \"managedOutboundIPs\": {\n \"\ + count\": 1\n }\n },\n \"podCidr\": \"10.244.0.0/16\",\n \"serviceCidr\"\ + : \"10.0.0.0/16\",\n \"dnsServiceIP\": \"10.0.0.10\",\n \"dockerBridgeCidr\"\ + : \"172.17.0.1/16\",\n \"outboundType\": \"loadBalancer\"\n },\n \"\ + maxAgentPools\": 100,\n \"disableLocalAccounts\": false,\n \"publicNetworkAccess\"\ + : \"Enabled\"\n },\n \"identity\": {\n \"type\": \"SystemAssigned\",\n\ + \ \"principalId\":\"00000000-0000-0000-0000-000000000001\",\n \"tenantId\"\ + : \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\n },\n \"sku\": {\n \"name\"\ + : \"Basic\",\n \"tier\": \"Free\"\n }\n }" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/a20b954a-1bb3-4714-bcbc-3807919cf966?api-version=2016-03-30 + cache-control: + - no-cache + content-length: + - '3120' + content-type: + - application/json + date: + - Tue, 02 Nov 2021 17:00:27 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --nodepool-name --node-count --ssh-key-value + -o + User-Agent: + - AZURECLI/2.30.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.3.0 Python/3.9.6 + (Linux-5.4.0-1055-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/a20b954a-1bb3-4714-bcbc-3807919cf966?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"4a950ba2-b31b-1447-bcbc-3807919cf966\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-11-02T17:00:27.61Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '121' + content-type: + - application/json + date: + - Tue, 02 Nov 2021 17:00: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: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --nodepool-name --node-count --ssh-key-value + -o + User-Agent: + - AZURECLI/2.30.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.3.0 Python/3.9.6 + (Linux-5.4.0-1055-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/a20b954a-1bb3-4714-bcbc-3807919cf966?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"4a950ba2-b31b-1447-bcbc-3807919cf966\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-11-02T17:00:27.61Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '121' + content-type: + - application/json + date: + - Tue, 02 Nov 2021 17:01:28 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --nodepool-name --node-count --ssh-key-value + -o + User-Agent: + - AZURECLI/2.30.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.3.0 Python/3.9.6 + (Linux-5.4.0-1055-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/a20b954a-1bb3-4714-bcbc-3807919cf966?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"4a950ba2-b31b-1447-bcbc-3807919cf966\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-11-02T17:00:27.61Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '121' + content-type: + - application/json + date: + - Tue, 02 Nov 2021 17:01: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: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --nodepool-name --node-count --ssh-key-value + -o + User-Agent: + - AZURECLI/2.30.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.3.0 Python/3.9.6 + (Linux-5.4.0-1055-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/a20b954a-1bb3-4714-bcbc-3807919cf966?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"4a950ba2-b31b-1447-bcbc-3807919cf966\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-11-02T17:00:27.61Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '121' + content-type: + - application/json + date: + - Tue, 02 Nov 2021 17:02:28 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --nodepool-name --node-count --ssh-key-value + -o + User-Agent: + - AZURECLI/2.30.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.3.0 Python/3.9.6 + (Linux-5.4.0-1055-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/a20b954a-1bb3-4714-bcbc-3807919cf966?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"4a950ba2-b31b-1447-bcbc-3807919cf966\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-11-02T17:00:27.61Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '121' + content-type: + - application/json + date: + - Tue, 02 Nov 2021 17: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: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --nodepool-name --node-count --ssh-key-value + -o + User-Agent: + - AZURECLI/2.30.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.3.0 Python/3.9.6 + (Linux-5.4.0-1055-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/a20b954a-1bb3-4714-bcbc-3807919cf966?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"4a950ba2-b31b-1447-bcbc-3807919cf966\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-11-02T17:00:27.61Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '121' + content-type: + - application/json + date: + - Tue, 02 Nov 2021 17:03:28 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --nodepool-name --node-count --ssh-key-value + -o + User-Agent: + - AZURECLI/2.30.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.3.0 Python/3.9.6 + (Linux-5.4.0-1055-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/a20b954a-1bb3-4714-bcbc-3807919cf966?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"4a950ba2-b31b-1447-bcbc-3807919cf966\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-11-02T17:00:27.61Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '121' + content-type: + - application/json + date: + - Tue, 02 Nov 2021 17:03: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: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --nodepool-name --node-count --ssh-key-value + -o + User-Agent: + - AZURECLI/2.30.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.3.0 Python/3.9.6 + (Linux-5.4.0-1055-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/a20b954a-1bb3-4714-bcbc-3807919cf966?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"4a950ba2-b31b-1447-bcbc-3807919cf966\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-11-02T17:00:27.61Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '121' + content-type: + - application/json + date: + - Tue, 02 Nov 2021 17:04:28 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --nodepool-name --node-count --ssh-key-value + -o + User-Agent: + - AZURECLI/2.30.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.3.0 Python/3.9.6 + (Linux-5.4.0-1055-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/a20b954a-1bb3-4714-bcbc-3807919cf966?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"4a950ba2-b31b-1447-bcbc-3807919cf966\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-11-02T17:00:27.61Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '121' + content-type: + - application/json + date: + - Tue, 02 Nov 2021 17:04:59 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --nodepool-name --node-count --ssh-key-value + -o + User-Agent: + - AZURECLI/2.30.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.3.0 Python/3.9.6 + (Linux-5.4.0-1055-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/a20b954a-1bb3-4714-bcbc-3807919cf966?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"4a950ba2-b31b-1447-bcbc-3807919cf966\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-11-02T17:00:27.61Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '121' + content-type: + - application/json + date: + - Tue, 02 Nov 2021 17:05:28 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --nodepool-name --node-count --ssh-key-value + -o + User-Agent: + - AZURECLI/2.30.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.3.0 Python/3.9.6 + (Linux-5.4.0-1055-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/a20b954a-1bb3-4714-bcbc-3807919cf966?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"4a950ba2-b31b-1447-bcbc-3807919cf966\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-11-02T17:00:27.61Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '121' + content-type: + - application/json + date: + - Tue, 02 Nov 2021 17:05: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: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --nodepool-name --node-count --ssh-key-value + -o + User-Agent: + - AZURECLI/2.30.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.3.0 Python/3.9.6 + (Linux-5.4.0-1055-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/a20b954a-1bb3-4714-bcbc-3807919cf966?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"4a950ba2-b31b-1447-bcbc-3807919cf966\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-11-02T17:00:27.61Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '121' + content-type: + - application/json + date: + - Tue, 02 Nov 2021 17:06:28 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --nodepool-name --node-count --ssh-key-value + -o + User-Agent: + - AZURECLI/2.30.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.3.0 Python/3.9.6 + (Linux-5.4.0-1055-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/a20b954a-1bb3-4714-bcbc-3807919cf966?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"4a950ba2-b31b-1447-bcbc-3807919cf966\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-11-02T17:00:27.61Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '121' + content-type: + - application/json + date: + - Tue, 02 Nov 2021 17:06:59 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --nodepool-name --node-count --ssh-key-value + -o + User-Agent: + - AZURECLI/2.30.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.3.0 Python/3.9.6 + (Linux-5.4.0-1055-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/a20b954a-1bb3-4714-bcbc-3807919cf966?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"4a950ba2-b31b-1447-bcbc-3807919cf966\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-11-02T17:00:27.61Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '121' + content-type: + - application/json + date: + - Tue, 02 Nov 2021 17:07:29 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --nodepool-name --node-count --ssh-key-value + -o + User-Agent: + - AZURECLI/2.30.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.3.0 Python/3.9.6 + (Linux-5.4.0-1055-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/a20b954a-1bb3-4714-bcbc-3807919cf966?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"4a950ba2-b31b-1447-bcbc-3807919cf966\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-11-02T17:00:27.61Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '121' + content-type: + - application/json + date: + - Tue, 02 Nov 2021 17:07:59 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --nodepool-name --node-count --ssh-key-value + -o + User-Agent: + - AZURECLI/2.30.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.3.0 Python/3.9.6 + (Linux-5.4.0-1055-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/a20b954a-1bb3-4714-bcbc-3807919cf966?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"4a950ba2-b31b-1447-bcbc-3807919cf966\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-11-02T17:00:27.61Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '121' + content-type: + - application/json + date: + - Tue, 02 Nov 2021 17:08:29 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --nodepool-name --node-count --ssh-key-value + -o + User-Agent: + - AZURECLI/2.30.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.3.0 Python/3.9.6 + (Linux-5.4.0-1055-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/a20b954a-1bb3-4714-bcbc-3807919cf966?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"4a950ba2-b31b-1447-bcbc-3807919cf966\",\n \"status\"\ + : \"Succeeded\",\n \"startTime\": \"2021-11-02T17:00:27.61Z\",\n \"endTime\"\ + : \"2021-11-02T17:08:59.8291186Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '165' + content-type: + - application/json + date: + - Tue, 02 Nov 2021 17:08:59 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --nodepool-name --node-count --ssh-key-value + -o + User-Agent: + - AZURECLI/2.30.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.3.0 Python/3.9.6 + (Linux-5.4.0-1055-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2021-09-01 + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\"\ + ,\n \"location\": \"westus2\",\n \"name\": \"cliakstest000002\",\n \"type\"\ + : \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \ + \ \"provisioningState\": \"Succeeded\",\n \"powerState\": {\n \"code\"\ + : \"Running\"\n },\n \"kubernetesVersion\": \"1.20.9\",\n \"dnsPrefix\"\ + : \"cliakstest-clitestjd7xyxbgt-26fe00\",\n \"fqdn\": \"cliakstest-clitestjd7xyxbgt-26fe00-cda81aba.hcp.westus2.staging.azmk8s.io\"\ + ,\n \"azurePortalFQDN\": \"cliakstest-clitestjd7xyxbgt-26fe00-cda81aba.portal.hcp.westus2.staging.azmk8s.io\"\ + ,\n \"agentPoolProfiles\": [\n {\n \"name\": \"c000004\",\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 \"provisioningState\": \"\ + Succeeded\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n\ + \ \"orchestratorVersion\": \"1.20.9\",\n \"enableNodePublicIP\": false,\n\ + \ \"mode\": \"System\",\n \"enableEncryptionAtHost\": false,\n \ + \ \"enableUltraSSD\": false,\n \"osType\": \"Linux\",\n \"osSKU\"\ + : \"Ubuntu\",\n \"nodeImageVersion\": \"AKSUbuntu-1804gen2containerd-2021.10.23\"\ + ,\n \"enableFIPS\": false\n }\n ],\n \"linuxProfile\": {\n \"\ + adminUsername\": \"azureuser\",\n \"ssh\": {\n \"publicKeys\": [\n\ + \ {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCbIg1guRHbI0lV11wWDt1r2cUdcNd27CJsg+SfgC7miZeubtwUhbsPdhMQsfDyhOWHq1+ZL0M+nJZV63d/1dhmhtgyOqejUwrPlzKhydsbrsdUor+JmNJDdW01v7BXHyuymT8G4s09jCasNOwiufbP/qp72ruu0bIA1nySsvlf9pCQAuFkAnVnf/rFhUlOkhtRpwcq8SUNY2zRHR/EKb/4NWY1JzR4sa3q2fWIJdrrX0DvLoa5g9bIEd4Df79ba7v+yiUBOS0zT2ll+z4g9izHK3EO5d8hL4jYxcjKs+wcslSYRWrascfscLgMlMGh0CdKeNTDjHpGPncaf3Z+FwwwjWeuiNBxv7bJo13/8B/098KlVDl4GZqsoBCEjPyJfV6hO0y/LkRGkk7oHWKgeWAfKtfLItRp00eZ4fcJNK9kCaSMmEugoZWcI7NGbZXzqFWqbpRI7NcDP9+WIQ+i9U5vqWsqd/zng4kbuAJ6UuKqIzB0upYrLShfQE3SAck8oaLhJqqq56VfDuASNpJKidV+zq27HfSBmbXnkR/5AK337dc3MXKJypoK/QPMLKUAP5XLPbs+NddJQV7EZXd29DLgp+fRIg3edpKdO7ZErWhv7d+3Kws+e1Y+ypmR2WIVSwVyBEUfgv2C8Ts9gnTF4pNcEY/S2aBicz5Ew2+jdyGNQQ==\ + \ test@example.com\\n\"\n }\n ]\n }\n },\n \"servicePrincipalProfile\"\ + : {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \ + \ \"nodeResourceGroup\": \"MC_clitest000001_cliakstest000002_westus2\",\n\ + \ \"enableRBAC\": true,\n \"enablePodSecurityPolicy\": false,\n \"networkProfile\"\ + : {\n \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\": \"Standard\"\ + ,\n \"loadBalancerProfile\": {\n \"managedOutboundIPs\": {\n \"\ + count\": 1\n },\n \"effectiveOutboundIPs\": [\n {\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.Network/publicIPAddresses/adb502ac-3ed6-4794-8105-7f3ec60b2aa9\"\ + \n }\n ]\n },\n \"podCidr\": \"10.244.0.0/16\",\n \"serviceCidr\"\ + : \"10.0.0.0/16\",\n \"dnsServiceIP\": \"10.0.0.10\",\n \"dockerBridgeCidr\"\ + : \"172.17.0.1/16\",\n \"outboundType\": \"loadBalancer\"\n },\n \"\ + maxAgentPools\": 100,\n \"identityProfile\": {\n \"kubeletidentity\"\ + : {\n \"resourceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cliakstest000002-agentpool\"\ + ,\n \"clientId\":\"00000000-0000-0000-0000-000000000001\",\n \"objectId\"\ + :\"00000000-0000-0000-0000-000000000001\"\n }\n },\n \"disableLocalAccounts\"\ + : false,\n \"publicNetworkAccess\": \"Enabled\"\n },\n \"identity\": {\n\ + \ \"type\": \"SystemAssigned\",\n \"principalId\":\"00000000-0000-0000-0000-000000000001\"\ + ,\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\n },\n \"sku\"\ + : {\n \"name\": \"Basic\",\n \"tier\": \"Free\"\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '3783' + content-type: + - application/json + date: + - Tue, 02 Nov 2021 17:09:00 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks snapshot create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --aks-custom-headers --nodepool-id -o + User-Agent: + - AZURECLI/2.30.0 (DOCKER) azsdk-python-azure-mgmt-resource/19.0.0 Python/3.9.6 + (Linux-5.4.0-1055-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001","name":"clitest000001","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"product":"azurecli","cause":"automation","date":"2021-11-02T17:00:20Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '313' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 02 Nov 2021 17:09:01 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": "westus2", "properties": {"creationData": {"sourceResourceId": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/agentPools/c000004"}, + "snapshotType": "NodePool"}}' + headers: + AKSHTTPCustomFeatures: + - Microsoft.ContainerService/SnapshotPreview + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks snapshot create + Connection: + - keep-alive + Content-Length: + - '281' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --name --location --aks-custom-headers --nodepool-id -o + User-Agent: + - AZURECLI/2.30.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.3.0 Python/3.9.6 + (Linux-5.4.0-1055-azure-x86_64-with) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/snapshots/s000006?api-version=2021-09-01 + response: + body: + string: "{\n \"name\": \"s000006\",\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/snapshots/s000006\"\ + ,\n \"type\": \"Microsoft.ContainerService/Snapshots\",\n \"location\":\ + \ \"westus2\",\n \"systemData\": {\n \"createdBy\": \"charlili@microsoft.com\"\ + ,\n \"createdByType\": \"User\",\n \"createdAt\": \"2021-11-02T17:09:03.7412262Z\"\ + ,\n \"lastModifiedBy\": \"charlili@microsoft.com\",\n \"lastModifiedByType\"\ + : \"User\",\n \"lastModifiedAt\": \"2021-11-02T17:09:03.7412262Z\"\n },\n\ + \ \"properties\": {\n \"creationData\": {\n \"sourceResourceId\": \"\ + /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/agentPools/c000004\"\ + \n },\n \"snapshotType\": \"NodePool\",\n \"kubernetesVersion\": \"\ + 1.20.9\",\n \"nodeImageVersion\": \"AKSUbuntu-1804gen2containerd-2021.10.23\"\ + ,\n \"osType\": \"Linux\",\n \"osSku\": \"Ubuntu\",\n \"vmSize\": \"\ + Standard_DS2_v2\"\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '976' + content-type: + - application/json + date: + - Tue, 02 Nov 2021 17:09:03 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g -n --yes --no-wait + User-Agent: + - AZURECLI/2.30.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.1.0 Python/3.9.6 + (Linux-5.4.0-1055-azure-x86_64-with) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2021-07-01 + response: + body: + string: '' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/357fa4b3-6d4f-4ba4-a78f-7d39021dc8ad?api-version=2016-03-30 + cache-control: + - no-cache + content-length: + - '0' + date: + - Tue, 02 Nov 2021 17:09:04 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operationresults/357fa4b3-6d4f-4ba4-a78f-7d39021dc8ad?api-version=2016-03-30 + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks snapshot show + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -o + User-Agent: + - AZURECLI/2.30.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.3.0 Python/3.9.6 + (Linux-5.4.0-1055-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/snapshots/s000006?api-version=2021-09-01 + response: + body: + string: "{\n \"name\": \"s000006\",\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/snapshots/s000006\"\ + ,\n \"type\": \"Microsoft.ContainerService/Snapshots\",\n \"location\":\ + \ \"westus2\",\n \"systemData\": {\n \"createdBy\": \"charlili@microsoft.com\"\ + ,\n \"createdByType\": \"User\",\n \"createdAt\": \"2021-11-02T17:09:03.7412262Z\"\ + ,\n \"lastModifiedBy\": \"charlili@microsoft.com\",\n \"lastModifiedByType\"\ + : \"User\",\n \"lastModifiedAt\": \"2021-11-02T17:09:03.7412262Z\"\n },\n\ + \ \"properties\": {\n \"creationData\": {\n \"sourceResourceId\": \"\ + /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/agentPools/c000004\"\ + \n },\n \"snapshotType\": \"NodePool\",\n \"kubernetesVersion\": \"\ + 1.20.9\",\n \"nodeImageVersion\": \"AKSUbuntu-1804gen2containerd-2021.10.23\"\ + ,\n \"osType\": \"Linux\",\n \"osSku\": \"Ubuntu\",\n \"vmSize\": \"\ + Standard_DS2_v2\"\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '976' + content-type: + - application/json + date: + - Tue, 02 Nov 2021 17:09:05 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks snapshot list + Connection: + - keep-alive + ParameterSetName: + - --resource-group -o + User-Agent: + - AZURECLI/2.30.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.3.0 Python/3.9.6 + (Linux-5.4.0-1055-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/snapshots?api-version=2021-09-01 + response: + body: + string: "{\n \"value\": [\n {\n \"name\": \"s000006\",\n \"id\": \"\ + /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/snapshots/s000006\"\ + ,\n \"type\": \"Microsoft.ContainerService/Snapshots\",\n \"location\"\ + : \"westus2\",\n \"systemData\": {\n \"createdBy\": \"charlili@microsoft.com\"\ + ,\n \"createdByType\": \"User\",\n \"createdAt\": \"2021-11-02T17:09:03.7412262Z\"\ + ,\n \"lastModifiedBy\": \"charlili@microsoft.com\",\n \"lastModifiedByType\"\ + : \"User\",\n \"lastModifiedAt\": \"2021-11-02T17:09:03.7412262Z\"\n \ + \ },\n \"properties\": {\n \"creationData\": {\n \"sourceResourceId\"\ + : \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/agentPools/c000004\"\ + \n },\n \"snapshotType\": \"NodePool\",\n \"kubernetesVersion\"\ + : \"1.20.9\",\n \"nodeImageVersion\": \"AKSUbuntu-1804gen2containerd-2021.10.23\"\ + ,\n \"osType\": \"Linux\",\n \"osSku\": \"Ubuntu\",\n \"vmSize\"\ + : \"Standard_DS2_v2\"\n }\n }\n ]\n }" + headers: + cache-control: + - no-cache + content-length: + - '1049' + content-type: + - application/json + date: + - Tue, 02 Nov 2021 17:09:06 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --nodepool-name --node-count --snapshot-id + --aks-custom-headers -k --ssh-key-value -o + User-Agent: + - AZURECLI/2.30.0 (DOCKER) azsdk-python-azure-mgmt-resource/19.0.0 Python/3.9.6 + (Linux-5.4.0-1055-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001","name":"clitest000001","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"product":"azurecli","cause":"automation","date":"2021-11-02T17:00:20Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '313' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 02 Nov 2021 17:09:07 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: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --nodepool-name --node-count --snapshot-id + --aks-custom-headers -k --ssh-key-value -o + User-Agent: + - AZURECLI/2.30.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.3.0 Python/3.9.6 + (Linux-5.4.0-1055-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/snapshots/s000006?api-version=2021-09-01 + response: + body: + string: "{\n \"name\": \"s000006\",\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/snapshots/s000006\"\ + ,\n \"type\": \"Microsoft.ContainerService/Snapshots\",\n \"location\":\ + \ \"westus2\",\n \"systemData\": {\n \"createdBy\": \"charlili@microsoft.com\"\ + ,\n \"createdByType\": \"User\",\n \"createdAt\": \"2021-11-02T17:09:03.7412262Z\"\ + ,\n \"lastModifiedBy\": \"charlili@microsoft.com\",\n \"lastModifiedByType\"\ + : \"User\",\n \"lastModifiedAt\": \"2021-11-02T17:09:03.7412262Z\"\n },\n\ + \ \"properties\": {\n \"creationData\": {\n \"sourceResourceId\": \"\ + /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/agentPools/c000004\"\ + \n },\n \"snapshotType\": \"NodePool\",\n \"kubernetesVersion\": \"\ + 1.20.9\",\n \"nodeImageVersion\": \"AKSUbuntu-1804gen2containerd-2021.10.23\"\ + ,\n \"osType\": \"Linux\",\n \"osSku\": \"Ubuntu\",\n \"vmSize\": \"\ + Standard_DS2_v2\"\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '976' + content-type: + - application/json + date: + - Tue, 02 Nov 2021 17:09: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: '{"location": "westus2", "identity": {"type": "SystemAssigned"}, "properties": + {"kubernetesVersion": "1.21.2", "dnsPrefix": "cliakstest-clitestjd7xyxbgt-26fe00", + "agentPoolProfiles": [{"count": 1, "vmSize": "Standard_DS2_v2", "workloadRuntime": + "OCIContainer", "osType": "Linux", "osSKU": "Ubuntu", "type": "VirtualMachineScaleSets", + "mode": "System", "enableNodePublicIP": false, "scaleSetPriority": "Regular", + "scaleSetEvictionPolicy": "Delete", "spotMaxPrice": -1.0, "enableEncryptionAtHost": + false, "enableUltraSSD": false, "enableFIPS": false, "creationData": {"sourceResourceId": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/snapshots/s000006"}, + "name": "c000004"}], "linuxProfile": {"adminUsername": "azureuser", "ssh": {"publicKeys": + [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCbIg1guRHbI0lV11wWDt1r2cUdcNd27CJsg+SfgC7miZeubtwUhbsPdhMQsfDyhOWHq1+ZL0M+nJZV63d/1dhmhtgyOqejUwrPlzKhydsbrsdUor+JmNJDdW01v7BXHyuymT8G4s09jCasNOwiufbP/qp72ruu0bIA1nySsvlf9pCQAuFkAnVnf/rFhUlOkhtRpwcq8SUNY2zRHR/EKb/4NWY1JzR4sa3q2fWIJdrrX0DvLoa5g9bIEd4Df79ba7v+yiUBOS0zT2ll+z4g9izHK3EO5d8hL4jYxcjKs+wcslSYRWrascfscLgMlMGh0CdKeNTDjHpGPncaf3Z+FwwwjWeuiNBxv7bJo13/8B/098KlVDl4GZqsoBCEjPyJfV6hO0y/LkRGkk7oHWKgeWAfKtfLItRp00eZ4fcJNK9kCaSMmEugoZWcI7NGbZXzqFWqbpRI7NcDP9+WIQ+i9U5vqWsqd/zng4kbuAJ6UuKqIzB0upYrLShfQE3SAck8oaLhJqqq56VfDuASNpJKidV+zq27HfSBmbXnkR/5AK337dc3MXKJypoK/QPMLKUAP5XLPbs+NddJQV7EZXd29DLgp+fRIg3edpKdO7ZErWhv7d+3Kws+e1Y+ypmR2WIVSwVyBEUfgv2C8Ts9gnTF4pNcEY/S2aBicz5Ew2+jdyGNQQ== + test@example.com\n"}]}}, "addonProfiles": {}, "enableRBAC": true, "enablePodSecurityPolicy": + false, "networkProfile": {"networkPlugin": "kubenet", "podCidr": "10.244.0.0/16", + "serviceCidr": "10.0.0.0/16", "dnsServiceIP": "10.0.0.10", "dockerBridgeCidr": + "172.17.0.1/16", "outboundType": "loadBalancer", "loadBalancerSku": "standard"}, + "disableLocalAccounts": false}}' + headers: + AKSHTTPCustomFeatures: + - Microsoft.ContainerService/SnapshotPreview + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '1922' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --name --location --nodepool-name --node-count --snapshot-id + --aks-custom-headers -k --ssh-key-value -o + User-Agent: + - AZURECLI/2.30.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.3.0 Python/3.9.6 + (Linux-5.4.0-1055-azure-x86_64-with) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000003?api-version=2021-09-01 + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000003\"\ + ,\n \"location\": \"westus2\",\n \"name\": \"cliakstest000003\",\n \"type\"\ + : \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \ + \ \"provisioningState\": \"Creating\",\n \"powerState\": {\n \"code\"\ + : \"Running\"\n },\n \"kubernetesVersion\": \"1.21.2\",\n \"dnsPrefix\"\ + : \"cliakstest-clitestjd7xyxbgt-26fe00\",\n \"fqdn\": \"cliakstest-clitestjd7xyxbgt-26fe00-2b998f7d.hcp.westus2.staging.azmk8s.io\"\ + ,\n \"azurePortalFQDN\": \"cliakstest-clitestjd7xyxbgt-26fe00-2b998f7d.portal.hcp.westus2.staging.azmk8s.io\"\ + ,\n \"agentPoolProfiles\": [\n {\n \"name\": \"c000004\",\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 \"provisioningState\": \"\ + Creating\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n\ + \ \"orchestratorVersion\": \"1.21.2\",\n \"enableNodePublicIP\": false,\n\ + \ \"mode\": \"System\",\n \"enableEncryptionAtHost\": false,\n \ + \ \"enableUltraSSD\": false,\n \"osType\": \"Linux\",\n \"osSKU\"\ + : \"Ubuntu\",\n \"nodeImageVersion\": \"AKSUbuntu-1804gen2containerd-2021.10.23\"\ + ,\n \"enableFIPS\": false,\n \"creationData\": {\n \"sourceResourceId\"\ + : \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/snapshots/s000006\"\ + \n }\n }\n ],\n \"linuxProfile\": {\n \"adminUsername\": \"\ + azureuser\",\n \"ssh\": {\n \"publicKeys\": [\n {\n \"keyData\"\ + : \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCbIg1guRHbI0lV11wWDt1r2cUdcNd27CJsg+SfgC7miZeubtwUhbsPdhMQsfDyhOWHq1+ZL0M+nJZV63d/1dhmhtgyOqejUwrPlzKhydsbrsdUor+JmNJDdW01v7BXHyuymT8G4s09jCasNOwiufbP/qp72ruu0bIA1nySsvlf9pCQAuFkAnVnf/rFhUlOkhtRpwcq8SUNY2zRHR/EKb/4NWY1JzR4sa3q2fWIJdrrX0DvLoa5g9bIEd4Df79ba7v+yiUBOS0zT2ll+z4g9izHK3EO5d8hL4jYxcjKs+wcslSYRWrascfscLgMlMGh0CdKeNTDjHpGPncaf3Z+FwwwjWeuiNBxv7bJo13/8B/098KlVDl4GZqsoBCEjPyJfV6hO0y/LkRGkk7oHWKgeWAfKtfLItRp00eZ4fcJNK9kCaSMmEugoZWcI7NGbZXzqFWqbpRI7NcDP9+WIQ+i9U5vqWsqd/zng4kbuAJ6UuKqIzB0upYrLShfQE3SAck8oaLhJqqq56VfDuASNpJKidV+zq27HfSBmbXnkR/5AK337dc3MXKJypoK/QPMLKUAP5XLPbs+NddJQV7EZXd29DLgp+fRIg3edpKdO7ZErWhv7d+3Kws+e1Y+ypmR2WIVSwVyBEUfgv2C8Ts9gnTF4pNcEY/S2aBicz5Ew2+jdyGNQQ==\ + \ test@example.com\\n\"\n }\n ]\n }\n },\n \"servicePrincipalProfile\"\ + : {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \ + \ \"nodeResourceGroup\": \"MC_clitest000001_cliakstest000003_westus2\",\n\ + \ \"enableRBAC\": true,\n \"enablePodSecurityPolicy\": false,\n \"networkProfile\"\ + : {\n \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\": \"standard\"\ + ,\n \"loadBalancerProfile\": {\n \"managedOutboundIPs\": {\n \"\ + count\": 1\n }\n },\n \"podCidr\": \"10.244.0.0/16\",\n \"serviceCidr\"\ + : \"10.0.0.0/16\",\n \"dnsServiceIP\": \"10.0.0.10\",\n \"dockerBridgeCidr\"\ + : \"172.17.0.1/16\",\n \"outboundType\": \"loadBalancer\"\n },\n \"\ + maxAgentPools\": 100,\n \"disableLocalAccounts\": false,\n \"publicNetworkAccess\"\ + : \"Enabled\"\n },\n \"identity\": {\n \"type\": \"SystemAssigned\",\n\ + \ \"principalId\":\"00000000-0000-0000-0000-000000000001\",\n \"tenantId\"\ + : \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\n },\n \"sku\": {\n \"name\"\ + : \"Basic\",\n \"tier\": \"Free\"\n }\n }" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/466afca3-6091-4260-9bb5-ae6102f26ef1?api-version=2016-03-30 + cache-control: + - no-cache + content-length: + - '3318' + content-type: + - application/json + date: + - Tue, 02 Nov 2021 17:09: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: + AKSHTTPCustomFeatures: + - Microsoft.ContainerService/SnapshotPreview + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --nodepool-name --node-count --snapshot-id + --aks-custom-headers -k --ssh-key-value -o + User-Agent: + - AZURECLI/2.30.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.3.0 Python/3.9.6 + (Linux-5.4.0-1055-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/466afca3-6091-4260-9bb5-ae6102f26ef1?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"a3fc6a46-9160-6042-9bb5-ae6102f26ef1\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-11-02T17:09:12.8466666Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 02 Nov 2021 17:09: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: + AKSHTTPCustomFeatures: + - Microsoft.ContainerService/SnapshotPreview + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --nodepool-name --node-count --snapshot-id + --aks-custom-headers -k --ssh-key-value -o + User-Agent: + - AZURECLI/2.30.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.3.0 Python/3.9.6 + (Linux-5.4.0-1055-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/466afca3-6091-4260-9bb5-ae6102f26ef1?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"a3fc6a46-9160-6042-9bb5-ae6102f26ef1\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-11-02T17:09:12.8466666Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 02 Nov 2021 17:10: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: + AKSHTTPCustomFeatures: + - Microsoft.ContainerService/SnapshotPreview + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --nodepool-name --node-count --snapshot-id + --aks-custom-headers -k --ssh-key-value -o + User-Agent: + - AZURECLI/2.30.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.3.0 Python/3.9.6 + (Linux-5.4.0-1055-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/466afca3-6091-4260-9bb5-ae6102f26ef1?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"a3fc6a46-9160-6042-9bb5-ae6102f26ef1\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-11-02T17:09:12.8466666Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 02 Nov 2021 17:10: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: + AKSHTTPCustomFeatures: + - Microsoft.ContainerService/SnapshotPreview + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --nodepool-name --node-count --snapshot-id + --aks-custom-headers -k --ssh-key-value -o + User-Agent: + - AZURECLI/2.30.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.3.0 Python/3.9.6 + (Linux-5.4.0-1055-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/466afca3-6091-4260-9bb5-ae6102f26ef1?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"a3fc6a46-9160-6042-9bb5-ae6102f26ef1\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-11-02T17:09:12.8466666Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 02 Nov 2021 17:11: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: + AKSHTTPCustomFeatures: + - Microsoft.ContainerService/SnapshotPreview + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --nodepool-name --node-count --snapshot-id + --aks-custom-headers -k --ssh-key-value -o + User-Agent: + - AZURECLI/2.30.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.3.0 Python/3.9.6 + (Linux-5.4.0-1055-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/466afca3-6091-4260-9bb5-ae6102f26ef1?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"a3fc6a46-9160-6042-9bb5-ae6102f26ef1\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-11-02T17:09:12.8466666Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 02 Nov 2021 17:11: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: + AKSHTTPCustomFeatures: + - Microsoft.ContainerService/SnapshotPreview + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --nodepool-name --node-count --snapshot-id + --aks-custom-headers -k --ssh-key-value -o + User-Agent: + - AZURECLI/2.30.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.3.0 Python/3.9.6 + (Linux-5.4.0-1055-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/466afca3-6091-4260-9bb5-ae6102f26ef1?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"a3fc6a46-9160-6042-9bb5-ae6102f26ef1\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-11-02T17:09:12.8466666Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 02 Nov 2021 17:12: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: + AKSHTTPCustomFeatures: + - Microsoft.ContainerService/SnapshotPreview + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --nodepool-name --node-count --snapshot-id + --aks-custom-headers -k --ssh-key-value -o + User-Agent: + - AZURECLI/2.30.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.3.0 Python/3.9.6 + (Linux-5.4.0-1055-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/466afca3-6091-4260-9bb5-ae6102f26ef1?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"a3fc6a46-9160-6042-9bb5-ae6102f26ef1\",\n \"status\"\ + : \"Succeeded\",\n \"startTime\": \"2021-11-02T17:09:12.8466666Z\",\n \"\ + endTime\": \"2021-11-02T17:12:31.1469723Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '170' + content-type: + - application/json + date: + - Tue, 02 Nov 2021 17:12:44 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + AKSHTTPCustomFeatures: + - Microsoft.ContainerService/SnapshotPreview + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --nodepool-name --node-count --snapshot-id + --aks-custom-headers -k --ssh-key-value -o + User-Agent: + - AZURECLI/2.30.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.3.0 Python/3.9.6 + (Linux-5.4.0-1055-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000003?api-version=2021-09-01 + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000003\"\ + ,\n \"location\": \"westus2\",\n \"name\": \"cliakstest000003\",\n \"type\"\ + : \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \ + \ \"provisioningState\": \"Succeeded\",\n \"powerState\": {\n \"code\"\ + : \"Running\"\n },\n \"kubernetesVersion\": \"1.21.2\",\n \"dnsPrefix\"\ + : \"cliakstest-clitestjd7xyxbgt-26fe00\",\n \"fqdn\": \"cliakstest-clitestjd7xyxbgt-26fe00-2b998f7d.hcp.westus2.staging.azmk8s.io\"\ + ,\n \"azurePortalFQDN\": \"cliakstest-clitestjd7xyxbgt-26fe00-2b998f7d.portal.hcp.westus2.staging.azmk8s.io\"\ + ,\n \"agentPoolProfiles\": [\n {\n \"name\": \"c000004\",\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 \"provisioningState\": \"\ + Succeeded\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n\ + \ \"orchestratorVersion\": \"1.21.2\",\n \"enableNodePublicIP\": false,\n\ + \ \"mode\": \"System\",\n \"enableEncryptionAtHost\": false,\n \ + \ \"enableUltraSSD\": false,\n \"osType\": \"Linux\",\n \"osSKU\"\ + : \"Ubuntu\",\n \"nodeImageVersion\": \"AKSUbuntu-1804gen2containerd-2021.10.23\"\ + ,\n \"enableFIPS\": false,\n \"creationData\": {\n \"sourceResourceId\"\ + : \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/snapshots/s000006\"\ + \n }\n }\n ],\n \"linuxProfile\": {\n \"adminUsername\": \"\ + azureuser\",\n \"ssh\": {\n \"publicKeys\": [\n {\n \"keyData\"\ + : \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCbIg1guRHbI0lV11wWDt1r2cUdcNd27CJsg+SfgC7miZeubtwUhbsPdhMQsfDyhOWHq1+ZL0M+nJZV63d/1dhmhtgyOqejUwrPlzKhydsbrsdUor+JmNJDdW01v7BXHyuymT8G4s09jCasNOwiufbP/qp72ruu0bIA1nySsvlf9pCQAuFkAnVnf/rFhUlOkhtRpwcq8SUNY2zRHR/EKb/4NWY1JzR4sa3q2fWIJdrrX0DvLoa5g9bIEd4Df79ba7v+yiUBOS0zT2ll+z4g9izHK3EO5d8hL4jYxcjKs+wcslSYRWrascfscLgMlMGh0CdKeNTDjHpGPncaf3Z+FwwwjWeuiNBxv7bJo13/8B/098KlVDl4GZqsoBCEjPyJfV6hO0y/LkRGkk7oHWKgeWAfKtfLItRp00eZ4fcJNK9kCaSMmEugoZWcI7NGbZXzqFWqbpRI7NcDP9+WIQ+i9U5vqWsqd/zng4kbuAJ6UuKqIzB0upYrLShfQE3SAck8oaLhJqqq56VfDuASNpJKidV+zq27HfSBmbXnkR/5AK337dc3MXKJypoK/QPMLKUAP5XLPbs+NddJQV7EZXd29DLgp+fRIg3edpKdO7ZErWhv7d+3Kws+e1Y+ypmR2WIVSwVyBEUfgv2C8Ts9gnTF4pNcEY/S2aBicz5Ew2+jdyGNQQ==\ + \ test@example.com\\n\"\n }\n ]\n }\n },\n \"servicePrincipalProfile\"\ + : {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \ + \ \"nodeResourceGroup\": \"MC_clitest000001_cliakstest000003_westus2\",\n\ + \ \"enableRBAC\": true,\n \"enablePodSecurityPolicy\": false,\n \"networkProfile\"\ + : {\n \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\": \"Standard\"\ + ,\n \"loadBalancerProfile\": {\n \"managedOutboundIPs\": {\n \"\ + count\": 1\n },\n \"effectiveOutboundIPs\": [\n {\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000003_westus2/providers/Microsoft.Network/publicIPAddresses/bcef668e-9545-44b8-ac3c-039c244775e0\"\ + \n }\n ]\n },\n \"podCidr\": \"10.244.0.0/16\",\n \"serviceCidr\"\ + : \"10.0.0.0/16\",\n \"dnsServiceIP\": \"10.0.0.10\",\n \"dockerBridgeCidr\"\ + : \"172.17.0.1/16\",\n \"outboundType\": \"loadBalancer\"\n },\n \"\ + maxAgentPools\": 100,\n \"identityProfile\": {\n \"kubeletidentity\"\ + : {\n \"resourceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MC_clitest000001_cliakstest000003_westus2/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cliakstest000003-agentpool\"\ + ,\n \"clientId\":\"00000000-0000-0000-0000-000000000001\",\n \"objectId\"\ + :\"00000000-0000-0000-0000-000000000001\"\n }\n },\n \"disableLocalAccounts\"\ + : false,\n \"publicNetworkAccess\": \"Enabled\"\n },\n \"identity\": {\n\ + \ \"type\": \"SystemAssigned\",\n \"principalId\":\"00000000-0000-0000-0000-000000000001\"\ + ,\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\n },\n \"sku\"\ + : {\n \"name\": \"Basic\",\n \"tier\": \"Free\"\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '3981' + content-type: + - application/json + date: + - Tue, 02 Nov 2021 17:12:44 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks nodepool add + Connection: + - keep-alive + ParameterSetName: + - --resource-group --cluster-name --name --node-count --aks-custom-headers -k + --snapshot-id -o + User-Agent: + - AZURECLI/2.30.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.3.0 Python/3.9.6 + (Linux-5.4.0-1055-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000003/agentPools?api-version=2021-09-01 + response: + body: + string: "{\n \"value\": [\n {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000003/agentPools/c000004\"\ + ,\n \"name\": \"c000004\",\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 \ + \ \"provisioningState\": \"Succeeded\",\n \"powerState\": {\n \"\ + code\": \"Running\"\n },\n \"orchestratorVersion\": \"1.21.2\",\n\ + \ \"enableNodePublicIP\": false,\n \"mode\": \"System\",\n \"\ + enableEncryptionAtHost\": false,\n \"enableUltraSSD\": false,\n \"\ + osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"nodeImageVersion\"\ + : \"AKSUbuntu-1804gen2containerd-2021.10.23\",\n \"enableFIPS\": false,\n\ + \ \"creationData\": {\n \"sourceResourceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/snapshots/s000006\"\ + \n }\n }\n }\n ]\n }" + headers: + cache-control: + - no-cache + content-length: + - '1166' + content-type: + - application/json + date: + - Tue, 02 Nov 2021 17:12:45 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks nodepool add + Connection: + - keep-alive + ParameterSetName: + - --resource-group --cluster-name --name --node-count --aks-custom-headers -k + --snapshot-id -o + User-Agent: + - AZURECLI/2.30.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.3.0 Python/3.9.6 + (Linux-5.4.0-1055-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/snapshots/s000006?api-version=2021-09-01 + response: + body: + string: "{\n \"name\": \"s000006\",\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/snapshots/s000006\"\ + ,\n \"type\": \"Microsoft.ContainerService/Snapshots\",\n \"location\":\ + \ \"westus2\",\n \"systemData\": {\n \"createdBy\": \"charlili@microsoft.com\"\ + ,\n \"createdByType\": \"User\",\n \"createdAt\": \"2021-11-02T17:09:03.7412262Z\"\ + ,\n \"lastModifiedBy\": \"charlili@microsoft.com\",\n \"lastModifiedByType\"\ + : \"User\",\n \"lastModifiedAt\": \"2021-11-02T17:09:03.7412262Z\"\n },\n\ + \ \"properties\": {\n \"creationData\": {\n \"sourceResourceId\": \"\ + /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/agentPools/c000004\"\ + \n },\n \"snapshotType\": \"NodePool\",\n \"kubernetesVersion\": \"\ + 1.20.9\",\n \"nodeImageVersion\": \"AKSUbuntu-1804gen2containerd-2021.10.23\"\ + ,\n \"osType\": \"Linux\",\n \"osSku\": \"Ubuntu\",\n \"vmSize\": \"\ + Standard_DS2_v2\"\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '976' + content-type: + - application/json + date: + - Tue, 02 Nov 2021 17:12:45 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"properties": {"count": 1, "vmSize": "Standard_DS2_v2", "workloadRuntime": + "OCIContainer", "osType": "Linux", "osSKU": "Ubuntu", "scaleDownMode": "Delete", + "mode": "User", "orchestratorVersion": "1.21.2", "upgradeSettings": {}, "enableNodePublicIP": + false, "scaleSetPriority": "Regular", "scaleSetEvictionPolicy": "Delete", "spotMaxPrice": + -1.0, "nodeTaints": [], "enableEncryptionAtHost": false, "enableUltraSSD": false, + "enableFIPS": false, "creationData": {"sourceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/snapshots/s000006"}}}' + headers: + AKSHTTPCustomFeatures: + - Microsoft.ContainerService/SnapshotPreview + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks nodepool add + Connection: + - keep-alive + Content-Length: + - '624' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --cluster-name --name --node-count --aks-custom-headers -k + --snapshot-id -o + User-Agent: + - AZURECLI/2.30.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.3.0 Python/3.9.6 + (Linux-5.4.0-1055-azure-x86_64-with) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000003/agentPools/c000005?api-version=2021-09-01 + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000003/agentPools/c000005\"\ + ,\n \"name\": \"c000005\",\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 \"scaleDownMode\": \"Delete\"\ + ,\n \"provisioningState\": \"Creating\",\n \"powerState\": {\n \"code\"\ + : \"Running\"\n },\n \"orchestratorVersion\": \"1.21.2\",\n \"enableNodePublicIP\"\ + : false,\n \"mode\": \"User\",\n \"enableEncryptionAtHost\": false,\n\ + \ \"enableUltraSSD\": false,\n \"osType\": \"Linux\",\n \"osSKU\": \"\ + Ubuntu\",\n \"nodeImageVersion\": \"AKSUbuntu-1804gen2containerd-2021.10.23\"\ + ,\n \"upgradeSettings\": {},\n \"enableFIPS\": false,\n \"creationData\"\ + : {\n \"sourceResourceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/snapshots/s000006\"\ + \n }\n }\n }" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/ff11d482-aecd-4d33-9a35-917934621006?api-version=2016-03-30 + cache-control: + - no-cache + content-length: + - '1134' + content-type: + - application/json + date: + - Tue, 02 Nov 2021 17:12:48 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: + AKSHTTPCustomFeatures: + - Microsoft.ContainerService/SnapshotPreview + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks nodepool add + Connection: + - keep-alive + ParameterSetName: + - --resource-group --cluster-name --name --node-count --aks-custom-headers -k + --snapshot-id -o + User-Agent: + - AZURECLI/2.30.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.3.0 Python/3.9.6 + (Linux-5.4.0-1055-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/ff11d482-aecd-4d33-9a35-917934621006?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"82d411ff-cdae-334d-9a35-917934621006\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-11-02T17:12:49.0833333Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 02 Nov 2021 17:13:18 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + AKSHTTPCustomFeatures: + - Microsoft.ContainerService/SnapshotPreview + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks nodepool add + Connection: + - keep-alive + ParameterSetName: + - --resource-group --cluster-name --name --node-count --aks-custom-headers -k + --snapshot-id -o + User-Agent: + - AZURECLI/2.30.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.3.0 Python/3.9.6 + (Linux-5.4.0-1055-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/ff11d482-aecd-4d33-9a35-917934621006?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"82d411ff-cdae-334d-9a35-917934621006\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-11-02T17:12:49.0833333Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 02 Nov 2021 17:13:49 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + AKSHTTPCustomFeatures: + - Microsoft.ContainerService/SnapshotPreview + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks nodepool add + Connection: + - keep-alive + ParameterSetName: + - --resource-group --cluster-name --name --node-count --aks-custom-headers -k + --snapshot-id -o + User-Agent: + - AZURECLI/2.30.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.3.0 Python/3.9.6 + (Linux-5.4.0-1055-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/ff11d482-aecd-4d33-9a35-917934621006?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"82d411ff-cdae-334d-9a35-917934621006\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-11-02T17:12:49.0833333Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 02 Nov 2021 17:14:18 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + AKSHTTPCustomFeatures: + - Microsoft.ContainerService/SnapshotPreview + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks nodepool add + Connection: + - keep-alive + ParameterSetName: + - --resource-group --cluster-name --name --node-count --aks-custom-headers -k + --snapshot-id -o + User-Agent: + - AZURECLI/2.30.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.3.0 Python/3.9.6 + (Linux-5.4.0-1055-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/ff11d482-aecd-4d33-9a35-917934621006?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"82d411ff-cdae-334d-9a35-917934621006\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-11-02T17:12:49.0833333Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 02 Nov 2021 17:14:48 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + AKSHTTPCustomFeatures: + - Microsoft.ContainerService/SnapshotPreview + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks nodepool add + Connection: + - keep-alive + ParameterSetName: + - --resource-group --cluster-name --name --node-count --aks-custom-headers -k + --snapshot-id -o + User-Agent: + - AZURECLI/2.30.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.3.0 Python/3.9.6 + (Linux-5.4.0-1055-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/ff11d482-aecd-4d33-9a35-917934621006?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"82d411ff-cdae-334d-9a35-917934621006\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-11-02T17:12:49.0833333Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 02 Nov 2021 17:15:19 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + AKSHTTPCustomFeatures: + - Microsoft.ContainerService/SnapshotPreview + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks nodepool add + Connection: + - keep-alive + ParameterSetName: + - --resource-group --cluster-name --name --node-count --aks-custom-headers -k + --snapshot-id -o + User-Agent: + - AZURECLI/2.30.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.3.0 Python/3.9.6 + (Linux-5.4.0-1055-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/ff11d482-aecd-4d33-9a35-917934621006?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"82d411ff-cdae-334d-9a35-917934621006\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-11-02T17:12:49.0833333Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 02 Nov 2021 17:15:49 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + AKSHTTPCustomFeatures: + - Microsoft.ContainerService/SnapshotPreview + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks nodepool add + Connection: + - keep-alive + ParameterSetName: + - --resource-group --cluster-name --name --node-count --aks-custom-headers -k + --snapshot-id -o + User-Agent: + - AZURECLI/2.30.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.3.0 Python/3.9.6 + (Linux-5.4.0-1055-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/ff11d482-aecd-4d33-9a35-917934621006?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"82d411ff-cdae-334d-9a35-917934621006\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-11-02T17:12:49.0833333Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 02 Nov 2021 17:16:19 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + AKSHTTPCustomFeatures: + - Microsoft.ContainerService/SnapshotPreview + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks nodepool add + Connection: + - keep-alive + ParameterSetName: + - --resource-group --cluster-name --name --node-count --aks-custom-headers -k + --snapshot-id -o + User-Agent: + - AZURECLI/2.30.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.3.0 Python/3.9.6 + (Linux-5.4.0-1055-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/ff11d482-aecd-4d33-9a35-917934621006?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"82d411ff-cdae-334d-9a35-917934621006\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-11-02T17:12:49.0833333Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 02 Nov 2021 17:16:49 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + AKSHTTPCustomFeatures: + - Microsoft.ContainerService/SnapshotPreview + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks nodepool add + Connection: + - keep-alive + ParameterSetName: + - --resource-group --cluster-name --name --node-count --aks-custom-headers -k + --snapshot-id -o + User-Agent: + - AZURECLI/2.30.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.3.0 Python/3.9.6 + (Linux-5.4.0-1055-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/ff11d482-aecd-4d33-9a35-917934621006?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"82d411ff-cdae-334d-9a35-917934621006\",\n \"status\"\ + : \"Succeeded\",\n \"startTime\": \"2021-11-02T17:12:49.0833333Z\",\n \"\ + endTime\": \"2021-11-02T17:16:50.5344549Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '170' + content-type: + - application/json + date: + - Tue, 02 Nov 2021 17:17: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: + AKSHTTPCustomFeatures: + - Microsoft.ContainerService/SnapshotPreview + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks nodepool add + Connection: + - keep-alive + ParameterSetName: + - --resource-group --cluster-name --name --node-count --aks-custom-headers -k + --snapshot-id -o + User-Agent: + - AZURECLI/2.30.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.3.0 Python/3.9.6 + (Linux-5.4.0-1055-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000003/agentPools/c000005?api-version=2021-09-01 + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000003/agentPools/c000005\"\ + ,\n \"name\": \"c000005\",\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 \"scaleDownMode\": \"Delete\"\ + ,\n \"provisioningState\": \"Succeeded\",\n \"powerState\": {\n \"\ + code\": \"Running\"\n },\n \"orchestratorVersion\": \"1.21.2\",\n \"\ + enableNodePublicIP\": false,\n \"mode\": \"User\",\n \"enableEncryptionAtHost\"\ + : false,\n \"enableUltraSSD\": false,\n \"osType\": \"Linux\",\n \"\ + osSKU\": \"Ubuntu\",\n \"nodeImageVersion\": \"AKSUbuntu-1804gen2containerd-2021.10.23\"\ + ,\n \"upgradeSettings\": {},\n \"enableFIPS\": false,\n \"creationData\"\ + : {\n \"sourceResourceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/snapshots/s000006\"\ + \n }\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '1135' + content-type: + - application/json + date: + - Tue, 02 Nov 2021 17:17: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks upgrade + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -k --yes -o + User-Agent: + - AZURECLI/2.30.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.3.0 Python/3.9.6 + (Linux-5.4.0-1055-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000003?api-version=2021-09-01 + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000003\"\ + ,\n \"location\": \"westus2\",\n \"name\": \"cliakstest000003\",\n \"type\"\ + : \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \ + \ \"provisioningState\": \"Succeeded\",\n \"powerState\": {\n \"code\"\ + : \"Running\"\n },\n \"kubernetesVersion\": \"1.21.2\",\n \"dnsPrefix\"\ + : \"cliakstest-clitestjd7xyxbgt-26fe00\",\n \"fqdn\": \"cliakstest-clitestjd7xyxbgt-26fe00-2b998f7d.hcp.westus2.staging.azmk8s.io\"\ + ,\n \"azurePortalFQDN\": \"cliakstest-clitestjd7xyxbgt-26fe00-2b998f7d.portal.hcp.westus2.staging.azmk8s.io\"\ + ,\n \"agentPoolProfiles\": [\n {\n \"name\": \"c000005\",\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 \"scaleDownMode\": \"Delete\"\ + ,\n \"provisioningState\": \"Succeeded\",\n \"powerState\": {\n \ + \ \"code\": \"Running\"\n },\n \"orchestratorVersion\": \"1.21.2\"\ + ,\n \"enableNodePublicIP\": false,\n \"mode\": \"User\",\n \"\ + enableEncryptionAtHost\": false,\n \"enableUltraSSD\": false,\n \"\ + osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"nodeImageVersion\"\ + : \"AKSUbuntu-1804gen2containerd-2021.10.23\",\n \"upgradeSettings\":\ + \ {},\n \"enableFIPS\": false,\n \"creationData\": {\n \"sourceResourceId\"\ + : \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/snapshots/s000006\"\ + \n }\n },\n {\n \"name\": \"c000004\",\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 \"provisioningState\": \"Succeeded\"\ + ,\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"orchestratorVersion\"\ + : \"1.21.2\",\n \"enableNodePublicIP\": false,\n \"mode\": \"System\"\ + ,\n \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\": false,\n\ + \ \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"nodeImageVersion\"\ + : \"AKSUbuntu-1804gen2containerd-2021.10.23\",\n \"enableFIPS\": false,\n\ + \ \"creationData\": {\n \"sourceResourceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/snapshots/s000006\"\ + \n }\n }\n ],\n \"linuxProfile\": {\n \"adminUsername\": \"\ + azureuser\",\n \"ssh\": {\n \"publicKeys\": [\n {\n \"keyData\"\ + : \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCbIg1guRHbI0lV11wWDt1r2cUdcNd27CJsg+SfgC7miZeubtwUhbsPdhMQsfDyhOWHq1+ZL0M+nJZV63d/1dhmhtgyOqejUwrPlzKhydsbrsdUor+JmNJDdW01v7BXHyuymT8G4s09jCasNOwiufbP/qp72ruu0bIA1nySsvlf9pCQAuFkAnVnf/rFhUlOkhtRpwcq8SUNY2zRHR/EKb/4NWY1JzR4sa3q2fWIJdrrX0DvLoa5g9bIEd4Df79ba7v+yiUBOS0zT2ll+z4g9izHK3EO5d8hL4jYxcjKs+wcslSYRWrascfscLgMlMGh0CdKeNTDjHpGPncaf3Z+FwwwjWeuiNBxv7bJo13/8B/098KlVDl4GZqsoBCEjPyJfV6hO0y/LkRGkk7oHWKgeWAfKtfLItRp00eZ4fcJNK9kCaSMmEugoZWcI7NGbZXzqFWqbpRI7NcDP9+WIQ+i9U5vqWsqd/zng4kbuAJ6UuKqIzB0upYrLShfQE3SAck8oaLhJqqq56VfDuASNpJKidV+zq27HfSBmbXnkR/5AK337dc3MXKJypoK/QPMLKUAP5XLPbs+NddJQV7EZXd29DLgp+fRIg3edpKdO7ZErWhv7d+3Kws+e1Y+ypmR2WIVSwVyBEUfgv2C8Ts9gnTF4pNcEY/S2aBicz5Ew2+jdyGNQQ==\ + \ test@example.com\\n\"\n }\n ]\n }\n },\n \"servicePrincipalProfile\"\ + : {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \ + \ \"nodeResourceGroup\": \"MC_clitest000001_cliakstest000003_westus2\",\n\ + \ \"enableRBAC\": true,\n \"enablePodSecurityPolicy\": false,\n \"networkProfile\"\ + : {\n \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\": \"Standard\"\ + ,\n \"loadBalancerProfile\": {\n \"managedOutboundIPs\": {\n \"\ + count\": 1\n },\n \"effectiveOutboundIPs\": [\n {\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000003_westus2/providers/Microsoft.Network/publicIPAddresses/bcef668e-9545-44b8-ac3c-039c244775e0\"\ + \n }\n ]\n },\n \"podCidr\": \"10.244.0.0/16\",\n \"serviceCidr\"\ + : \"10.0.0.0/16\",\n \"dnsServiceIP\": \"10.0.0.10\",\n \"dockerBridgeCidr\"\ + : \"172.17.0.1/16\",\n \"outboundType\": \"loadBalancer\"\n },\n \"\ + maxAgentPools\": 100,\n \"identityProfile\": {\n \"kubeletidentity\"\ + : {\n \"resourceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MC_clitest000001_cliakstest000003_westus2/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cliakstest000003-agentpool\"\ + ,\n \"clientId\":\"00000000-0000-0000-0000-000000000001\",\n \"objectId\"\ + :\"00000000-0000-0000-0000-000000000001\"\n }\n },\n \"disableLocalAccounts\"\ + : false,\n \"publicNetworkAccess\": \"Enabled\"\n },\n \"identity\": {\n\ + \ \"type\": \"SystemAssigned\",\n \"principalId\":\"00000000-0000-0000-0000-000000000001\"\ + ,\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\n },\n \"sku\"\ + : {\n \"name\": \"Basic\",\n \"tier\": \"Free\"\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '4907' + content-type: + - application/json + date: + - Tue, 02 Nov 2021 17:17:21 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"location": "westus2", "sku": {"name": "Basic", "tier": "Free"}, "identity": + {"type": "SystemAssigned"}, "properties": {"kubernetesVersion": "1.22.2", "dnsPrefix": + "cliakstest-clitestjd7xyxbgt-26fe00", "agentPoolProfiles": [{"count": 1, "vmSize": + "Standard_DS2_v2", "osDiskSizeGB": 128, "osDiskType": "Managed", "kubeletDiskType": + "OS", "workloadRuntime": "OCIContainer", "maxPods": 110, "osType": "Linux", + "osSKU": "Ubuntu", "scaleDownMode": "Delete", "type": "VirtualMachineScaleSets", + "mode": "User", "orchestratorVersion": "1.22.2", "upgradeSettings": {}, "powerState": + {"code": "Running"}, "enableNodePublicIP": false, "enableEncryptionAtHost": + false, "enableUltraSSD": false, "enableFIPS": false, "name": "c000005"}, {"count": + 1, "vmSize": "Standard_DS2_v2", "osDiskSizeGB": 128, "osDiskType": "Managed", + "kubeletDiskType": "OS", "workloadRuntime": "OCIContainer", "maxPods": 110, + "osType": "Linux", "osSKU": "Ubuntu", "type": "VirtualMachineScaleSets", "mode": + "System", "orchestratorVersion": "1.22.2", "powerState": {"code": "Running"}, + "enableNodePublicIP": false, "enableEncryptionAtHost": false, "enableUltraSSD": + false, "enableFIPS": false, "name": "c000004"}], "linuxProfile": {"adminUsername": + "azureuser", "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCbIg1guRHbI0lV11wWDt1r2cUdcNd27CJsg+SfgC7miZeubtwUhbsPdhMQsfDyhOWHq1+ZL0M+nJZV63d/1dhmhtgyOqejUwrPlzKhydsbrsdUor+JmNJDdW01v7BXHyuymT8G4s09jCasNOwiufbP/qp72ruu0bIA1nySsvlf9pCQAuFkAnVnf/rFhUlOkhtRpwcq8SUNY2zRHR/EKb/4NWY1JzR4sa3q2fWIJdrrX0DvLoa5g9bIEd4Df79ba7v+yiUBOS0zT2ll+z4g9izHK3EO5d8hL4jYxcjKs+wcslSYRWrascfscLgMlMGh0CdKeNTDjHpGPncaf3Z+FwwwjWeuiNBxv7bJo13/8B/098KlVDl4GZqsoBCEjPyJfV6hO0y/LkRGkk7oHWKgeWAfKtfLItRp00eZ4fcJNK9kCaSMmEugoZWcI7NGbZXzqFWqbpRI7NcDP9+WIQ+i9U5vqWsqd/zng4kbuAJ6UuKqIzB0upYrLShfQE3SAck8oaLhJqqq56VfDuASNpJKidV+zq27HfSBmbXnkR/5AK337dc3MXKJypoK/QPMLKUAP5XLPbs+NddJQV7EZXd29DLgp+fRIg3edpKdO7ZErWhv7d+3Kws+e1Y+ypmR2WIVSwVyBEUfgv2C8Ts9gnTF4pNcEY/S2aBicz5Ew2+jdyGNQQ== + test@example.com\n"}]}}, "nodeResourceGroup": "MC_clitest000001_cliakstest000003_westus2", + "enableRBAC": true, "enablePodSecurityPolicy": false, "networkProfile": {"networkPlugin": + "kubenet", "podCidr": "10.244.0.0/16", "serviceCidr": "10.0.0.0/16", "dnsServiceIP": + "10.0.0.10", "dockerBridgeCidr": "172.17.0.1/16", "outboundType": "loadBalancer", + "loadBalancerSku": "Standard", "loadBalancerProfile": {"managedOutboundIPs": + {"count": 1}, "effectiveOutboundIPs": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000003_westus2/providers/Microsoft.Network/publicIPAddresses/bcef668e-9545-44b8-ac3c-039c244775e0"}]}}, + "identityProfile": {"kubeletidentity": {"resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MC_clitest000001_cliakstest000003_westus2/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cliakstest000003-agentpool", + "clientId":"00000000-0000-0000-0000-000000000001", "objectId":"00000000-0000-0000-0000-000000000001"}}, + "disableLocalAccounts": false, "publicNetworkAccess": "Enabled"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks upgrade + Connection: + - keep-alive + Content-Length: + - '3087' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --name -k --yes -o + User-Agent: + - AZURECLI/2.30.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.3.0 Python/3.9.6 + (Linux-5.4.0-1055-azure-x86_64-with) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000003?api-version=2021-09-01 + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000003\"\ + ,\n \"location\": \"westus2\",\n \"name\": \"cliakstest000003\",\n \"type\"\ + : \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \ + \ \"provisioningState\": \"Upgrading\",\n \"powerState\": {\n \"code\"\ + : \"Running\"\n },\n \"kubernetesVersion\": \"1.22.2\",\n \"dnsPrefix\"\ + : \"cliakstest-clitestjd7xyxbgt-26fe00\",\n \"fqdn\": \"cliakstest-clitestjd7xyxbgt-26fe00-2b998f7d.hcp.westus2.staging.azmk8s.io\"\ + ,\n \"azurePortalFQDN\": \"cliakstest-clitestjd7xyxbgt-26fe00-2b998f7d.portal.hcp.westus2.staging.azmk8s.io\"\ + ,\n \"agentPoolProfiles\": [\n {\n \"name\": \"c000005\",\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 \"scaleDownMode\": \"Delete\"\ + ,\n \"provisioningState\": \"Upgrading\",\n \"powerState\": {\n \ + \ \"code\": \"Running\"\n },\n \"orchestratorVersion\": \"1.22.2\"\ + ,\n \"enableNodePublicIP\": false,\n \"mode\": \"User\",\n \"\ + enableEncryptionAtHost\": false,\n \"enableUltraSSD\": false,\n \"\ + osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"nodeImageVersion\"\ + : \"AKSUbuntu-1804gen2containerd-2021.10.23\",\n \"upgradeSettings\":\ + \ {},\n \"enableFIPS\": false\n },\n {\n \"name\": \"c000004\"\ + ,\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 \"provisioningState\": \"\ + Upgrading\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n\ + \ \"orchestratorVersion\": \"1.22.2\",\n \"enableNodePublicIP\": false,\n\ + \ \"mode\": \"System\",\n \"enableEncryptionAtHost\": false,\n \ + \ \"enableUltraSSD\": false,\n \"osType\": \"Linux\",\n \"osSKU\"\ + : \"Ubuntu\",\n \"nodeImageVersion\": \"AKSUbuntu-1804gen2containerd-2021.10.23\"\ + ,\n \"enableFIPS\": false\n }\n ],\n \"linuxProfile\": {\n \"\ + adminUsername\": \"azureuser\",\n \"ssh\": {\n \"publicKeys\": [\n\ + \ {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCbIg1guRHbI0lV11wWDt1r2cUdcNd27CJsg+SfgC7miZeubtwUhbsPdhMQsfDyhOWHq1+ZL0M+nJZV63d/1dhmhtgyOqejUwrPlzKhydsbrsdUor+JmNJDdW01v7BXHyuymT8G4s09jCasNOwiufbP/qp72ruu0bIA1nySsvlf9pCQAuFkAnVnf/rFhUlOkhtRpwcq8SUNY2zRHR/EKb/4NWY1JzR4sa3q2fWIJdrrX0DvLoa5g9bIEd4Df79ba7v+yiUBOS0zT2ll+z4g9izHK3EO5d8hL4jYxcjKs+wcslSYRWrascfscLgMlMGh0CdKeNTDjHpGPncaf3Z+FwwwjWeuiNBxv7bJo13/8B/098KlVDl4GZqsoBCEjPyJfV6hO0y/LkRGkk7oHWKgeWAfKtfLItRp00eZ4fcJNK9kCaSMmEugoZWcI7NGbZXzqFWqbpRI7NcDP9+WIQ+i9U5vqWsqd/zng4kbuAJ6UuKqIzB0upYrLShfQE3SAck8oaLhJqqq56VfDuASNpJKidV+zq27HfSBmbXnkR/5AK337dc3MXKJypoK/QPMLKUAP5XLPbs+NddJQV7EZXd29DLgp+fRIg3edpKdO7ZErWhv7d+3Kws+e1Y+ypmR2WIVSwVyBEUfgv2C8Ts9gnTF4pNcEY/S2aBicz5Ew2+jdyGNQQ==\ + \ test@example.com\\n\"\n }\n ]\n }\n },\n \"servicePrincipalProfile\"\ + : {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \ + \ \"nodeResourceGroup\": \"MC_clitest000001_cliakstest000003_westus2\",\n\ + \ \"enableRBAC\": true,\n \"enablePodSecurityPolicy\": false,\n \"networkProfile\"\ + : {\n \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\": \"Standard\"\ + ,\n \"loadBalancerProfile\": {\n \"managedOutboundIPs\": {\n \"\ + count\": 1\n },\n \"effectiveOutboundIPs\": [\n {\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000003_westus2/providers/Microsoft.Network/publicIPAddresses/bcef668e-9545-44b8-ac3c-039c244775e0\"\ + \n }\n ]\n },\n \"podCidr\": \"10.244.0.0/16\",\n \"serviceCidr\"\ + : \"10.0.0.0/16\",\n \"dnsServiceIP\": \"10.0.0.10\",\n \"dockerBridgeCidr\"\ + : \"172.17.0.1/16\",\n \"outboundType\": \"loadBalancer\"\n },\n \"\ + maxAgentPools\": 100,\n \"identityProfile\": {\n \"kubeletidentity\"\ + : {\n \"resourceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MC_clitest000001_cliakstest000003_westus2/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cliakstest000003-agentpool\"\ + ,\n \"clientId\":\"00000000-0000-0000-0000-000000000001\",\n \"objectId\"\ + :\"00000000-0000-0000-0000-000000000001\"\n }\n },\n \"disableLocalAccounts\"\ + : false,\n \"publicNetworkAccess\": \"Enabled\"\n },\n \"identity\": {\n\ + \ \"type\": \"SystemAssigned\",\n \"principalId\":\"00000000-0000-0000-0000-000000000001\"\ + ,\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\n },\n \"sku\"\ + : {\n \"name\": \"Basic\",\n \"tier\": \"Free\"\n }\n }" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/f3573e4c-5da1-4ea6-a456-1e0fad82313c?api-version=2016-03-30 + cache-control: + - no-cache + content-length: + - '4511' + content-type: + - application/json + date: + - Tue, 02 Nov 2021 17:17:25 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks upgrade + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -k --yes -o + User-Agent: + - AZURECLI/2.30.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.3.0 Python/3.9.6 + (Linux-5.4.0-1055-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/f3573e4c-5da1-4ea6-a456-1e0fad82313c?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"4c3e57f3-a15d-a64e-a456-1e0fad82313c\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-11-02T17:17:25.4Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '120' + content-type: + - application/json + date: + - Tue, 02 Nov 2021 17:17:55 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks upgrade + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -k --yes -o + User-Agent: + - AZURECLI/2.30.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.3.0 Python/3.9.6 + (Linux-5.4.0-1055-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/f3573e4c-5da1-4ea6-a456-1e0fad82313c?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"4c3e57f3-a15d-a64e-a456-1e0fad82313c\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-11-02T17:17:25.4Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '120' + content-type: + - application/json + date: + - Tue, 02 Nov 2021 17:18:25 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks upgrade + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -k --yes -o + User-Agent: + - AZURECLI/2.30.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.3.0 Python/3.9.6 + (Linux-5.4.0-1055-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/f3573e4c-5da1-4ea6-a456-1e0fad82313c?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"4c3e57f3-a15d-a64e-a456-1e0fad82313c\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-11-02T17:17:25.4Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '120' + content-type: + - application/json + date: + - Tue, 02 Nov 2021 17:18:55 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks upgrade + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -k --yes -o + User-Agent: + - AZURECLI/2.30.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.3.0 Python/3.9.6 + (Linux-5.4.0-1055-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/f3573e4c-5da1-4ea6-a456-1e0fad82313c?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"4c3e57f3-a15d-a64e-a456-1e0fad82313c\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-11-02T17:17:25.4Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '120' + content-type: + - application/json + date: + - Tue, 02 Nov 2021 17:19:26 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks upgrade + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -k --yes -o + User-Agent: + - AZURECLI/2.30.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.3.0 Python/3.9.6 + (Linux-5.4.0-1055-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/f3573e4c-5da1-4ea6-a456-1e0fad82313c?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"4c3e57f3-a15d-a64e-a456-1e0fad82313c\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-11-02T17:17:25.4Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '120' + content-type: + - application/json + date: + - Tue, 02 Nov 2021 17:19:55 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks upgrade + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -k --yes -o + User-Agent: + - AZURECLI/2.30.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.3.0 Python/3.9.6 + (Linux-5.4.0-1055-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/f3573e4c-5da1-4ea6-a456-1e0fad82313c?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"4c3e57f3-a15d-a64e-a456-1e0fad82313c\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-11-02T17:17:25.4Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '120' + content-type: + - application/json + date: + - Tue, 02 Nov 2021 17:20:26 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks upgrade + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -k --yes -o + User-Agent: + - AZURECLI/2.30.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.3.0 Python/3.9.6 + (Linux-5.4.0-1055-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/f3573e4c-5da1-4ea6-a456-1e0fad82313c?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"4c3e57f3-a15d-a64e-a456-1e0fad82313c\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-11-02T17:17:25.4Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '120' + content-type: + - application/json + date: + - Tue, 02 Nov 2021 17:20:56 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks upgrade + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -k --yes -o + User-Agent: + - AZURECLI/2.30.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.3.0 Python/3.9.6 + (Linux-5.4.0-1055-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/f3573e4c-5da1-4ea6-a456-1e0fad82313c?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"4c3e57f3-a15d-a64e-a456-1e0fad82313c\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-11-02T17:17:25.4Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '120' + content-type: + - application/json + date: + - Tue, 02 Nov 2021 17:21:26 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks upgrade + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -k --yes -o + User-Agent: + - AZURECLI/2.30.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.3.0 Python/3.9.6 + (Linux-5.4.0-1055-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/f3573e4c-5da1-4ea6-a456-1e0fad82313c?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"4c3e57f3-a15d-a64e-a456-1e0fad82313c\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-11-02T17:17:25.4Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '120' + content-type: + - application/json + date: + - Tue, 02 Nov 2021 17:21:56 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks upgrade + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -k --yes -o + User-Agent: + - AZURECLI/2.30.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.3.0 Python/3.9.6 + (Linux-5.4.0-1055-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/f3573e4c-5da1-4ea6-a456-1e0fad82313c?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"4c3e57f3-a15d-a64e-a456-1e0fad82313c\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-11-02T17:17:25.4Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '120' + content-type: + - application/json + date: + - Tue, 02 Nov 2021 17:22: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 upgrade + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -k --yes -o + User-Agent: + - AZURECLI/2.30.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.3.0 Python/3.9.6 + (Linux-5.4.0-1055-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/f3573e4c-5da1-4ea6-a456-1e0fad82313c?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"4c3e57f3-a15d-a64e-a456-1e0fad82313c\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-11-02T17:17:25.4Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '120' + content-type: + - application/json + date: + - Tue, 02 Nov 2021 17:22:57 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks upgrade + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -k --yes -o + User-Agent: + - AZURECLI/2.30.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.3.0 Python/3.9.6 + (Linux-5.4.0-1055-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/f3573e4c-5da1-4ea6-a456-1e0fad82313c?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"4c3e57f3-a15d-a64e-a456-1e0fad82313c\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-11-02T17:17:25.4Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '120' + content-type: + - application/json + date: + - Tue, 02 Nov 2021 17:23: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 upgrade + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -k --yes -o + User-Agent: + - AZURECLI/2.30.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.3.0 Python/3.9.6 + (Linux-5.4.0-1055-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/f3573e4c-5da1-4ea6-a456-1e0fad82313c?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"4c3e57f3-a15d-a64e-a456-1e0fad82313c\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-11-02T17:17:25.4Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '120' + content-type: + - application/json + date: + - Tue, 02 Nov 2021 17:23:57 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks upgrade + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -k --yes -o + User-Agent: + - AZURECLI/2.30.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.3.0 Python/3.9.6 + (Linux-5.4.0-1055-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/f3573e4c-5da1-4ea6-a456-1e0fad82313c?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"4c3e57f3-a15d-a64e-a456-1e0fad82313c\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-11-02T17:17:25.4Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '120' + content-type: + - application/json + date: + - Tue, 02 Nov 2021 17:24:27 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks upgrade + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -k --yes -o + User-Agent: + - AZURECLI/2.30.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.3.0 Python/3.9.6 + (Linux-5.4.0-1055-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/f3573e4c-5da1-4ea6-a456-1e0fad82313c?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"4c3e57f3-a15d-a64e-a456-1e0fad82313c\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-11-02T17:17:25.4Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '120' + content-type: + - application/json + date: + - Tue, 02 Nov 2021 17:24:57 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks upgrade + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -k --yes -o + User-Agent: + - AZURECLI/2.30.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.3.0 Python/3.9.6 + (Linux-5.4.0-1055-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/f3573e4c-5da1-4ea6-a456-1e0fad82313c?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"4c3e57f3-a15d-a64e-a456-1e0fad82313c\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-11-02T17:17:25.4Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '120' + content-type: + - application/json + date: + - Tue, 02 Nov 2021 17:25:27 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks upgrade + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -k --yes -o + User-Agent: + - AZURECLI/2.30.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.3.0 Python/3.9.6 + (Linux-5.4.0-1055-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/f3573e4c-5da1-4ea6-a456-1e0fad82313c?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"4c3e57f3-a15d-a64e-a456-1e0fad82313c\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-11-02T17:17:25.4Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '120' + content-type: + - application/json + date: + - Tue, 02 Nov 2021 17:25:58 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks upgrade + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -k --yes -o + User-Agent: + - AZURECLI/2.30.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.3.0 Python/3.9.6 + (Linux-5.4.0-1055-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/f3573e4c-5da1-4ea6-a456-1e0fad82313c?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"4c3e57f3-a15d-a64e-a456-1e0fad82313c\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-11-02T17:17:25.4Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '120' + content-type: + - application/json + date: + - Tue, 02 Nov 2021 17:26:28 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 upgrade + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -k --yes -o + User-Agent: + - AZURECLI/2.30.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.3.0 Python/3.9.6 + (Linux-5.4.0-1055-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/f3573e4c-5da1-4ea6-a456-1e0fad82313c?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"4c3e57f3-a15d-a64e-a456-1e0fad82313c\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-11-02T17:17:25.4Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '120' + content-type: + - application/json + date: + - Tue, 02 Nov 2021 17:26:57 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks upgrade + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -k --yes -o + User-Agent: + - AZURECLI/2.30.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.3.0 Python/3.9.6 + (Linux-5.4.0-1055-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/f3573e4c-5da1-4ea6-a456-1e0fad82313c?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"4c3e57f3-a15d-a64e-a456-1e0fad82313c\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-11-02T17:17:25.4Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '120' + content-type: + - application/json + date: + - Tue, 02 Nov 2021 17:27: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 upgrade + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -k --yes -o + User-Agent: + - AZURECLI/2.30.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.3.0 Python/3.9.6 + (Linux-5.4.0-1055-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/f3573e4c-5da1-4ea6-a456-1e0fad82313c?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"4c3e57f3-a15d-a64e-a456-1e0fad82313c\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-11-02T17:17:25.4Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '120' + content-type: + - application/json + date: + - Tue, 02 Nov 2021 17:27: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: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks upgrade + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -k --yes -o + User-Agent: + - AZURECLI/2.30.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.3.0 Python/3.9.6 + (Linux-5.4.0-1055-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/f3573e4c-5da1-4ea6-a456-1e0fad82313c?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"4c3e57f3-a15d-a64e-a456-1e0fad82313c\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-11-02T17:17:25.4Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '120' + content-type: + - application/json + date: + - Tue, 02 Nov 2021 17:28:28 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 upgrade + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -k --yes -o + User-Agent: + - AZURECLI/2.30.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.3.0 Python/3.9.6 + (Linux-5.4.0-1055-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/f3573e4c-5da1-4ea6-a456-1e0fad82313c?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"4c3e57f3-a15d-a64e-a456-1e0fad82313c\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-11-02T17:17:25.4Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '120' + content-type: + - application/json + date: + - Tue, 02 Nov 2021 17:28: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: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks upgrade + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -k --yes -o + User-Agent: + - AZURECLI/2.30.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.3.0 Python/3.9.6 + (Linux-5.4.0-1055-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/f3573e4c-5da1-4ea6-a456-1e0fad82313c?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"4c3e57f3-a15d-a64e-a456-1e0fad82313c\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-11-02T17:17:25.4Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '120' + content-type: + - application/json + date: + - Tue, 02 Nov 2021 17:29:28 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 upgrade + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -k --yes -o + User-Agent: + - AZURECLI/2.30.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.3.0 Python/3.9.6 + (Linux-5.4.0-1055-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/f3573e4c-5da1-4ea6-a456-1e0fad82313c?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"4c3e57f3-a15d-a64e-a456-1e0fad82313c\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-11-02T17:17:25.4Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '120' + content-type: + - application/json + date: + - Tue, 02 Nov 2021 17:29:59 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks upgrade + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -k --yes -o + User-Agent: + - AZURECLI/2.30.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.3.0 Python/3.9.6 + (Linux-5.4.0-1055-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/f3573e4c-5da1-4ea6-a456-1e0fad82313c?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"4c3e57f3-a15d-a64e-a456-1e0fad82313c\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-11-02T17:17:25.4Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '120' + content-type: + - application/json + date: + - Tue, 02 Nov 2021 17:30:29 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 upgrade + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -k --yes -o + User-Agent: + - AZURECLI/2.30.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.3.0 Python/3.9.6 + (Linux-5.4.0-1055-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/f3573e4c-5da1-4ea6-a456-1e0fad82313c?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"4c3e57f3-a15d-a64e-a456-1e0fad82313c\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2021-11-02T17:17:25.4Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '120' + content-type: + - application/json + date: + - Tue, 02 Nov 2021 17:30:59 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks upgrade + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -k --yes -o + User-Agent: + - AZURECLI/2.30.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.3.0 Python/3.9.6 + (Linux-5.4.0-1055-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/f3573e4c-5da1-4ea6-a456-1e0fad82313c?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"4c3e57f3-a15d-a64e-a456-1e0fad82313c\",\n \"status\"\ + : \"Succeeded\",\n \"startTime\": \"2021-11-02T17:17:25.4Z\",\n \"endTime\"\ + : \"2021-11-02T17:31:11.3861886Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '164' + content-type: + - application/json + date: + - Tue, 02 Nov 2021 17:31:29 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 upgrade + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -k --yes -o + User-Agent: + - AZURECLI/2.30.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.3.0 Python/3.9.6 + (Linux-5.4.0-1055-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000003?api-version=2021-09-01 + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000003\"\ + ,\n \"location\": \"westus2\",\n \"name\": \"cliakstest000003\",\n \"type\"\ + : \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \ + \ \"provisioningState\": \"Succeeded\",\n \"powerState\": {\n \"code\"\ + : \"Running\"\n },\n \"kubernetesVersion\": \"1.22.2\",\n \"dnsPrefix\"\ + : \"cliakstest-clitestjd7xyxbgt-26fe00\",\n \"fqdn\": \"cliakstest-clitestjd7xyxbgt-26fe00-2b998f7d.hcp.westus2.staging.azmk8s.io\"\ + ,\n \"azurePortalFQDN\": \"cliakstest-clitestjd7xyxbgt-26fe00-2b998f7d.portal.hcp.westus2.staging.azmk8s.io\"\ + ,\n \"agentPoolProfiles\": [\n {\n \"name\": \"c000005\",\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 \"scaleDownMode\": \"Delete\"\ + ,\n \"provisioningState\": \"Succeeded\",\n \"powerState\": {\n \ + \ \"code\": \"Running\"\n },\n \"orchestratorVersion\": \"1.22.2\"\ + ,\n \"enableNodePublicIP\": false,\n \"mode\": \"User\",\n \"\ + enableEncryptionAtHost\": false,\n \"enableUltraSSD\": false,\n \"\ + osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"nodeImageVersion\"\ + : \"AKSUbuntu-1804gen2containerd-2021.10.23\",\n \"upgradeSettings\":\ + \ {},\n \"enableFIPS\": false\n },\n {\n \"name\": \"c000004\"\ + ,\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 \"provisioningState\": \"\ + Succeeded\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n\ + \ \"orchestratorVersion\": \"1.22.2\",\n \"enableNodePublicIP\": false,\n\ + \ \"mode\": \"System\",\n \"enableEncryptionAtHost\": false,\n \ + \ \"enableUltraSSD\": false,\n \"osType\": \"Linux\",\n \"osSKU\"\ + : \"Ubuntu\",\n \"nodeImageVersion\": \"AKSUbuntu-1804gen2containerd-2021.10.23\"\ + ,\n \"enableFIPS\": false\n }\n ],\n \"linuxProfile\": {\n \"\ + adminUsername\": \"azureuser\",\n \"ssh\": {\n \"publicKeys\": [\n\ + \ {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCbIg1guRHbI0lV11wWDt1r2cUdcNd27CJsg+SfgC7miZeubtwUhbsPdhMQsfDyhOWHq1+ZL0M+nJZV63d/1dhmhtgyOqejUwrPlzKhydsbrsdUor+JmNJDdW01v7BXHyuymT8G4s09jCasNOwiufbP/qp72ruu0bIA1nySsvlf9pCQAuFkAnVnf/rFhUlOkhtRpwcq8SUNY2zRHR/EKb/4NWY1JzR4sa3q2fWIJdrrX0DvLoa5g9bIEd4Df79ba7v+yiUBOS0zT2ll+z4g9izHK3EO5d8hL4jYxcjKs+wcslSYRWrascfscLgMlMGh0CdKeNTDjHpGPncaf3Z+FwwwjWeuiNBxv7bJo13/8B/098KlVDl4GZqsoBCEjPyJfV6hO0y/LkRGkk7oHWKgeWAfKtfLItRp00eZ4fcJNK9kCaSMmEugoZWcI7NGbZXzqFWqbpRI7NcDP9+WIQ+i9U5vqWsqd/zng4kbuAJ6UuKqIzB0upYrLShfQE3SAck8oaLhJqqq56VfDuASNpJKidV+zq27HfSBmbXnkR/5AK337dc3MXKJypoK/QPMLKUAP5XLPbs+NddJQV7EZXd29DLgp+fRIg3edpKdO7ZErWhv7d+3Kws+e1Y+ypmR2WIVSwVyBEUfgv2C8Ts9gnTF4pNcEY/S2aBicz5Ew2+jdyGNQQ==\ + \ test@example.com\\n\"\n }\n ]\n }\n },\n \"servicePrincipalProfile\"\ + : {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \ + \ \"nodeResourceGroup\": \"MC_clitest000001_cliakstest000003_westus2\",\n\ + \ \"enableRBAC\": true,\n \"enablePodSecurityPolicy\": false,\n \"networkProfile\"\ + : {\n \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\": \"Standard\"\ + ,\n \"loadBalancerProfile\": {\n \"managedOutboundIPs\": {\n \"\ + count\": 1\n },\n \"effectiveOutboundIPs\": [\n {\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000003_westus2/providers/Microsoft.Network/publicIPAddresses/bcef668e-9545-44b8-ac3c-039c244775e0\"\ + \n }\n ]\n },\n \"podCidr\": \"10.244.0.0/16\",\n \"serviceCidr\"\ + : \"10.0.0.0/16\",\n \"dnsServiceIP\": \"10.0.0.10\",\n \"dockerBridgeCidr\"\ + : \"172.17.0.1/16\",\n \"outboundType\": \"loadBalancer\"\n },\n \"\ + maxAgentPools\": 100,\n \"identityProfile\": {\n \"kubeletidentity\"\ + : {\n \"resourceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MC_clitest000001_cliakstest000003_westus2/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cliakstest000003-agentpool\"\ + ,\n \"clientId\":\"00000000-0000-0000-0000-000000000001\",\n \"objectId\"\ + :\"00000000-0000-0000-0000-000000000001\"\n }\n },\n \"disableLocalAccounts\"\ + : false,\n \"publicNetworkAccess\": \"Enabled\"\n },\n \"identity\": {\n\ + \ \"type\": \"SystemAssigned\",\n \"principalId\":\"00000000-0000-0000-0000-000000000001\"\ + ,\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\n },\n \"sku\"\ + : {\n \"name\": \"Basic\",\n \"tier\": \"Free\"\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '4511' + content-type: + - application/json + date: + - Tue, 02 Nov 2021 17:31:29 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: + AKSSnapshotId: + - /subscriptions/26fe00f8-9173-4872-9134-bb1d2e00343a/resourceGroups/clitestjd7xyxbgtz/providers/Microsoft.ContainerService/snapshots/smfzoc + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks nodepool upgrade + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --resource-group --cluster-name -n --node-image-only --no-wait --snapshot-id + -o + User-Agent: + - AZURECLI/2.30.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.3.0 Python/3.9.6 + (Linux-5.4.0-1055-azure-x86_64-with) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000003/agentPools/c000005/upgradeNodeImageVersion?api-version=2021-09-01 + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000003/agentPools/c000005\"\ + ,\n \"name\": \"c000005\",\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 \"scaleDownMode\": \"Delete\"\ + ,\n \"provisioningState\": \"UpgradingNodeImageVersion\",\n \"powerState\"\ + : {\n \"code\": \"Running\"\n },\n \"orchestratorVersion\": \"1.22.2\"\ + ,\n \"enableNodePublicIP\": false,\n \"mode\": \"User\",\n \"enableEncryptionAtHost\"\ + : false,\n \"enableUltraSSD\": false,\n \"osType\": \"Linux\",\n \"\ + osSKU\": \"Ubuntu\",\n \"nodeImageVersion\": \"AKSUbuntu-1804gen2containerd-2021.10.23\"\ + ,\n \"upgradeSettings\": {},\n \"enableFIPS\": false,\n \"creationData\"\ + : {\n \"sourceResourceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/snapshots/s000006\"\ + \n }\n }\n }" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/0c0d2474-771e-4517-a8b1-95c6676e1512?api-version=2016-03-30 + cache-control: + - no-cache + content-length: + - '1151' + content-type: + - application/json + date: + - Tue, 02 Nov 2021 17:31:31 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operationresults/0c0d2474-771e-4517-a8b1-95c6676e1512?api-version=2016-03-30 + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks nodepool show + Connection: + - keep-alive + ParameterSetName: + - --resource-group --cluster-name -n + User-Agent: + - AZURECLI/2.30.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.3.0 Python/3.9.6 + (Linux-5.4.0-1055-azure-x86_64-with) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000003/agentPools/c000005?api-version=2021-09-01 + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000003/agentPools/c000005\"\ + ,\n \"name\": \"c000005\",\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 \"scaleDownMode\": \"Delete\"\ + ,\n \"provisioningState\": \"UpgradingNodeImageVersion\",\n \"powerState\"\ + : {\n \"code\": \"Running\"\n },\n \"orchestratorVersion\": \"1.22.2\"\ + ,\n \"enableNodePublicIP\": false,\n \"mode\": \"User\",\n \"enableEncryptionAtHost\"\ + : false,\n \"enableUltraSSD\": false,\n \"osType\": \"Linux\",\n \"\ + osSKU\": \"Ubuntu\",\n \"nodeImageVersion\": \"AKSUbuntu-1804gen2containerd-2021.10.23\"\ + ,\n \"upgradeSettings\": {},\n \"enableFIPS\": false,\n \"creationData\"\ + : {\n \"sourceResourceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/snapshots/s000006\"\ + \n }\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '1151' + content-type: + - application/json + date: + - Tue, 02 Nov 2021 17:31:32 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - 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.30.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.1.0 Python/3.9.6 + (Linux-5.4.0-1055-azure-x86_64-with) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000003?api-version=2021-07-01 + response: + body: + string: '' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/1ecd51db-7223-49ee-9b0e-ca53425821bd?api-version=2016-03-30 + cache-control: + - no-cache + content-length: + - '0' + date: + - Tue, 02 Nov 2021 17:31:33 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operationresults/1ecd51db-7223-49ee-9b0e-ca53425821bd?api-version=2016-03-30 + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks snapshot delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --resource-group --name --yes --no-wait + User-Agent: + - AZURECLI/2.30.0 (DOCKER) azsdk-python-azure-mgmt-containerservice/16.3.0 Python/3.9.6 + (Linux-5.4.0-1055-azure-x86_64-with) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/snapshots/s000006?api-version=2021-09-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Tue, 02 Nov 2021 17:31:34 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-deletes: + - '14999' + status: + code: 200 + message: OK +version: 1 diff --git a/src/aks-preview/azext_aks_preview/tests/latest/test_aks_commands.py b/src/aks-preview/azext_aks_preview/tests/latest/test_aks_commands.py index 83a8e62a81e..5a899ea0d5b 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 @@ -1453,6 +1453,134 @@ def test_aks_nodepool_get_upgrades(self, resource_group, resource_group_location self.cmd( 'aks delete -g {resource_group} -n {name} --yes --no-wait', checks=[self.is_empty()]) + @AllowLargeResponse() + @AKSCustomResourceGroupPreparer(random_name_length=17, name_prefix='clitest', location='westus2') + def test_aks_snapshot(self, resource_group, resource_group_location): + create_version, upgrade_version = self._get_versions(resource_group_location) + aks_name = self.create_random_name('cliakstest', 16) + aks_name2 = self.create_random_name('cliakstest', 16) + nodepool_name = self.create_random_name('c', 6) + nodepool_name2 = self.create_random_name('c', 6) + snapshot_name = self.create_random_name('s', 6) + + self.kwargs.update({ + 'resource_group': resource_group, + 'name': aks_name, + 'aks_name2': aks_name2, + 'location': resource_group_location, + 'nodepool_name': nodepool_name, + 'nodepool_name2': nodepool_name2, + 'snapshot_name': snapshot_name, + 'k8s_version': create_version, + 'upgrade_k8s_version': upgrade_version, + 'ssh_key_value': self.generate_ssh_keys() + }) + + # create an aks cluster not using snapshot + create_cmd = 'aks create --resource-group {resource_group} --name {name} --location {location} ' \ + '--nodepool-name {nodepool_name} ' \ + '--node-count 1 ' \ + '--ssh-key-value={ssh_key_value} -o json' + response = self.cmd(create_cmd, checks=[ + self.check('provisioningState', 'Succeeded') + ]).get_output_in_json() + + cluster_resource_id = response["id"] + assert cluster_resource_id is not None + nodepool_resource_id = cluster_resource_id + "/agentPools/" + nodepool_name + self.kwargs.update({ + 'nodepool_resource_id': nodepool_resource_id, + }) + print("The nodepool resource id %s " % nodepool_resource_id) + + # create snapshot from the nodepool + create_snapshot_cmd = 'aks snapshot create --resource-group {resource_group} --name {snapshot_name} --location {location} ' \ + '--aks-custom-headers AKSHTTPCustomFeatures=Microsoft.ContainerService/SnapshotPreview ' \ + '--nodepool-id {nodepool_resource_id} -o json' + response = self.cmd(create_snapshot_cmd, checks=[ + self.check('creationData.sourceResourceId', nodepool_resource_id) + ]).get_output_in_json() + + snapshot_resource_id = response["id"] + assert snapshot_resource_id is not None + self.kwargs.update({ + 'snapshot_resource_id': snapshot_resource_id, + }) + print("The snapshot resource id %s " % snapshot_resource_id) + + # delete the original AKS cluster + self.cmd( + 'aks delete -g {resource_group} -n {name} --yes --no-wait', checks=[self.is_empty()]) + + # show the snapshot + show_snapshot_cmd = 'aks snapshot show --resource-group {resource_group} --name {snapshot_name} -o json' + response = self.cmd(show_snapshot_cmd, checks=[ + self.check('creationData.sourceResourceId', nodepool_resource_id) + ]).get_output_in_json() + + # list the snapshots + list_snapshot_cmd = 'aks snapshot list --resource-group {resource_group} -o json' + response = self.cmd(list_snapshot_cmd, checks=[]).get_output_in_json() + assert len(response) > 0 + + # create another aks cluster using this snapshot + create_cmd = 'aks create --resource-group {resource_group} --name {aks_name2} --location {location} ' \ + '--nodepool-name {nodepool_name} ' \ + '--node-count 1 --snapshot-id {snapshot_resource_id} ' \ + '--aks-custom-headers AKSHTTPCustomFeatures=Microsoft.ContainerService/SnapshotPreview ' \ + '-k {k8s_version} ' \ + '--ssh-key-value={ssh_key_value} -o json' + self.cmd(create_cmd, checks=[ + self.check('provisioningState', 'Succeeded'), + self.check('agentPoolProfiles[0].creationData.sourceResourceId', snapshot_resource_id) + ]).get_output_in_json() + + # add a new nodepool to this cluster using this snapshot + add_nodepool_cmd = 'aks nodepool add --resource-group={resource_group} --cluster-name={aks_name2} --name={nodepool_name2} --node-count 1 ' \ + '--aks-custom-headers AKSHTTPCustomFeatures=Microsoft.ContainerService/SnapshotPreview ' \ + '-k {k8s_version} ' \ + '--snapshot-id {snapshot_resource_id} -o json' + self.cmd(add_nodepool_cmd, + checks=[ + self.check('provisioningState', 'Succeeded'), + self.check('creationData.sourceResourceId', snapshot_resource_id) + ]) + + # upgrade this cluster (snapshot is not allowed for cluster upgrading), snapshot info is reset + create_cmd = 'aks upgrade --resource-group {resource_group} --name {aks_name2} -k {upgrade_k8s_version} --yes -o json' + self.cmd(create_cmd, checks=[ + self.check('provisioningState', 'Succeeded'), + self.check('agentPoolProfiles[0].creationData', None), + self.check('agentPoolProfiles[1].creationData', None) + ]) + + # upgrade the nodepool2 using this snapshot again + upgrade_node_image_only_nodepool_cmd = 'aks nodepool upgrade ' \ + '--resource-group {resource_group} ' \ + '--cluster-name {aks_name2} ' \ + '-n {nodepool_name2} ' \ + '--node-image-only --no-wait ' \ + '--snapshot-id {snapshot_resource_id} -o json' + self.cmd(upgrade_node_image_only_nodepool_cmd) + + get_nodepool_cmd = 'aks nodepool show ' \ + '--resource-group={resource_group} ' \ + '--cluster-name={aks_name2} ' \ + '-n {nodepool_name2} ' + self.cmd(get_nodepool_cmd, checks=[ + self.check('provisioningState', 'UpgradingNodeImageVersion'), + self.check('creationData.sourceResourceId', snapshot_resource_id) + ]) + + # delete the 2nd AKS cluster + self.cmd('aks delete -g {resource_group} -n {aks_name2} --yes --no-wait', checks=[self.is_empty()]) + + # delete the snapshot + delete_snapshot_cmd = 'aks snapshot delete --resource-group {resource_group} --name {snapshot_name} --yes --no-wait' + self.cmd(delete_snapshot_cmd, checks=[ + self.is_empty() + ]) + @AllowLargeResponse() @AKSCustomResourceGroupPreparer(random_name_length=17, name_prefix='clitest', location='westus2') def test_aks_upgrade_node_image_only_cluster(self, resource_group, resource_group_location): diff --git a/src/aks-preview/setup.py b/src/aks-preview/setup.py index 7f2617438b7..62e9518614e 100644 --- a/src/aks-preview/setup.py +++ b/src/aks-preview/setup.py @@ -8,7 +8,7 @@ from codecs import open as open1 from setuptools import setup, find_packages -VERSION = "0.5.39" +VERSION = "0.5.40" CLASSIFIERS = [ 'Development Status :: 4 - Beta', 'Intended Audience :: Developers',