diff --git a/pylintrc b/pylintrc index 7e48385dfad..d60a12736f5 100644 --- a/pylintrc +++ b/pylintrc @@ -12,7 +12,6 @@ reports=no disable= arguments-out-of-order, bad-option-value, - consider-using-generator, consider-using-with, cyclic-import, duplicate-code, @@ -32,7 +31,6 @@ disable= too-many-arguments, too-many-function-args, too-many-lines, - use-a-generator, using-constant-test, wrong-import-order, diff --git a/scripts/release/rpm/test_rpm_package.py b/scripts/release/rpm/test_rpm_package.py index 7e5d71c9494..043629bd9cf 100644 --- a/scripts/release/rpm/test_rpm_package.py +++ b/scripts/release/rpm/test_rpm_package.py @@ -14,7 +14,7 @@ pytest_parallel_cmd = '{} -n auto'.format(pytest_base_cmd) for mod_name in mod_list: - if mod_name in ['botservice', 'network', 'cloud']: + if mod_name in ['botservice', 'network', 'cloud', 'appservice']: exit_code = subprocess.call(['{} --junit-xml /azure_cli_test_result/{}.xml --pyargs azure.cli.command_modules.{}'.format(pytest_base_cmd, mod_name, mod_name)], shell=True) else: exit_code = subprocess.call(['{} --junit-xml /azure_cli_test_result/{}.xml --pyargs azure.cli.command_modules.{}'.format(pytest_parallel_cmd, mod_name, mod_name)], shell=True) diff --git a/src/azure-cli-core/azure/cli/core/_profile.py b/src/azure-cli-core/azure/cli/core/_profile.py index 3f208e2b0cc..1685d16a929 100644 --- a/src/azure-cli-core/azure/cli/core/_profile.py +++ b/src/azure-cli-core/azure/cli/core/_profile.py @@ -358,7 +358,7 @@ def find_subscriptions_in_vm_with_msi(self, identity_id=None, allow_no_subscript token_entry = msi_creds.token token = token_entry['access_token'] logger.info('MSI: token was retrieved. Now trying to initialize local accounts...') - decode = jwt.decode(token, verify=False, algorithms=['RS256']) + decode = jwt.decode(token, algorithms=['RS256'], options={"verify_signature": False}) tenant = decode['tid'] subscription_finder = SubscriptionFinder(self.cli_ctx, self.auth_ctx_factory, None) @@ -382,7 +382,7 @@ def find_subscriptions_in_cloud_console(self): _, token, _ = self._get_token_from_cloud_shell(self.cli_ctx.cloud.endpoints.active_directory_resource_id) logger.info('MSI: token was retrieved. Now trying to initialize local accounts...') - decode = jwt.decode(token, verify=False, algorithms=['RS256']) + decode = jwt.decode(token, algorithms=['RS256'], options={"verify_signature": False}) tenant = decode['tid'] subscription_finder = SubscriptionFinder(self.cli_ctx, self.auth_ctx_factory, None) diff --git a/src/azure-cli-core/azure/cli/core/commands/__init__.py b/src/azure-cli-core/azure/cli/core/commands/__init__.py index 196a1fe05cf..d2f049e7471 100644 --- a/src/azure-cli-core/azure/cli/core/commands/__init__.py +++ b/src/azure-cli-core/azure/cli/core/commands/__init__.py @@ -107,7 +107,7 @@ def _expand_file_prefix(arg): except IndexError: return _maybe_load_file(arg_split[0]) - return list([_expand_file_prefix(arg) for arg in args]) + return [_expand_file_prefix(arg) for arg in args] def _pre_command_table_create(cli_ctx, args): diff --git a/src/azure-cli-core/azure/cli/core/extension/operations.py b/src/azure-cli-core/azure/cli/core/extension/operations.py index b43aabe23d0..1b9aa136c4b 100644 --- a/src/azure-cli-core/azure/cli/core/extension/operations.py +++ b/src/azure-cli-core/azure/cli/core/extension/operations.py @@ -81,7 +81,7 @@ def _validate_whl_extension(ext_file): zip_ref.extractall(tmp_dir) zip_ref.close() azext_metadata = WheelExtension.get_azext_metadata(tmp_dir) - shutil.rmtree(tmp_dir) + rmtree_with_retry(tmp_dir) check_version_compatibility(azext_metadata) @@ -169,7 +169,7 @@ def _add_whl_ext(cli_ctx, source, ext_sha256=None, pip_extra_index_urls=None, pi pip_status_code = _run_pip(pip_args, extension_path) if pip_status_code > 0: logger.debug('Pip failed so deleting anything we might have installed at %s', extension_path) - shutil.rmtree(extension_path, ignore_errors=True) + rmtree_with_retry(extension_path) raise CLIError('An error occurred. Pip failed with status code {}. ' 'Use --debug for more information.'.format(pip_status_code)) # Save the whl we used to install the extension in the extension dir. @@ -351,10 +351,6 @@ def add_extension(cmd=None, source=None, extension_name=None, index_url=None, ye def remove_extension(extension_name): - def log_err(func, path, exc_info): - logger.warning("Error occurred attempting to delete item from the extension '%s'.", extension_name) - logger.warning("%s: %s - %s", func, path, exc_info) - try: # Get the extension and it will raise an error if it doesn't exist ext = get_extension(extension_name) @@ -364,7 +360,7 @@ def log_err(func, path, exc_info): "`azdev extension remove {name}`".format(name=extension_name)) # We call this just before we remove the extension so we can get the metadata before it is gone _augment_telemetry_with_ext_info(extension_name, ext) - shutil.rmtree(ext.path, onerror=log_err) + rmtree_with_retry(ext.path) CommandIndex().invalidate() except ExtensionNotInstalledException as e: raise CLIError(e) @@ -408,13 +404,13 @@ def update_extension(cmd=None, extension_name=None, index_url=None, pip_extra_in logger.debug('Backing up the current extension: %s to %s', extension_path, backup_dir) shutil.copytree(extension_path, backup_dir) # Remove current version of the extension - shutil.rmtree(extension_path) + rmtree_with_retry(extension_path) # Install newer version try: _add_whl_ext(cli_ctx=cmd_cli_ctx, source=download_url, ext_sha256=ext_sha256, pip_extra_index_urls=pip_extra_index_urls, pip_proxy=pip_proxy) logger.debug('Deleting backup of old extension at %s', backup_dir) - shutil.rmtree(backup_dir) + rmtree_with_retry(backup_dir) except Exception as err: logger.error('An error occurred whilst updating.') logger.error(err) @@ -563,3 +559,22 @@ def check_distro_consistency(): "for your distribution or change the above file accordingly.") logger.debug("Linux distro check: %s has '%s', current distro is '%s'", LIST_FILE_PATH, stored_linux_dist_name, current_linux_dist_name) + + +def rmtree_with_retry(path): + # A workaround for https://bugs.python.org/issue33240 + # Retry shutil.rmtree several times, but even if it fails after several retries, don't block the command execution. + retry_num = 3 + import time + while True: + try: + shutil.rmtree(path) + return + except OSError as err: + if retry_num > 0: + logger.warning("Failed to delete '%s': %s. Retrying ...", path, err) + retry_num -= 1 + time.sleep(1) + else: + logger.warning("Failed to delete '%s': %s. You may try to delete it manually.", path, err) + break diff --git a/src/azure-cli-core/azure/cli/core/profiles/_shared.py b/src/azure-cli-core/azure/cli/core/profiles/_shared.py index 46085785326..0394618b521 100644 --- a/src/azure-cli-core/azure/cli/core/profiles/_shared.py +++ b/src/azure-cli-core/azure/cli/core/profiles/_shared.py @@ -60,12 +60,12 @@ class ResourceType(Enum): # pylint: disable=too-few-public-methods MGMT_ARO = ('azure.mgmt.redhatopenshift', 'AzureRedHatOpenShiftClient') MGMT_DATABOXEDGE = ('azure.mgmt.databoxedge', 'DataBoxEdgeManagementClient') MGMT_CUSTOMLOCATION = ('azure.mgmt.extendedlocation', 'CustomLocations') + MGMT_CONTAINERSERVICE = ('azure.mgmt.containerservice', 'ContainerServiceClient') # the "None" below will stay till a command module fills in the type so "get_mgmt_service_client" # can be provided with "ResourceType.XXX" to initialize the client object. This usually happens # when related commands start to support Multi-API DATA_COSMOS_TABLE = ('azure.multiapi.cosmosdb', None) - MGMT_CONTAINERSERVICE = ('azure.mgmt.containerservice', None) MGMT_ADVISOR = ('azure.mgmt.advisor', None) MGMT_MEDIA = ('azure.mgmt.media', None) MGMT_BACKUP = ('azure.mgmt.recoveryservicesbackup', None) @@ -212,7 +212,11 @@ def default_api_version(self): ResourceType.MGMT_IOTHUB: '2021-03-31', ResourceType.MGMT_ARO: '2020-04-30', ResourceType.MGMT_DATABOXEDGE: '2019-08-01', - ResourceType.MGMT_CUSTOMLOCATION: '2021-03-15-preview' + ResourceType.MGMT_CUSTOMLOCATION: '2021-03-15-preview', + ResourceType.MGMT_CONTAINERSERVICE: SDKProfile('2021-03-01', { + 'container_services': '2017-07-01', + 'open_shift_managed_clusters': '2019-10-27-preview' + }) }, '2020-09-01-hybrid': { ResourceType.MGMT_STORAGE: '2019-06-01', @@ -237,7 +241,7 @@ def default_api_version(self): ResourceType.MGMT_RESOURCE_SUBSCRIPTIONS: '2016-06-01', ResourceType.MGMT_RESOURCE_TEMPLATESPECS: '2015-01-01', ResourceType.MGMT_NETWORK_DNS: '2016-04-01', - ResourceType.MGMT_AUTHORIZATION: SDKProfile('2016-09-01', { + ResourceType.MGMT_AUTHORIZATION: SDKProfile('2015-07-01', { 'classic_administrators': '2015-06-01', 'policy_assignments': '2016-12-01', 'policy_definitions': '2016-12-01' @@ -252,7 +256,12 @@ def default_api_version(self): ResourceType.MGMT_APPSERVICE: '2018-02-01', ResourceType.MGMT_EVENTHUB: '2018-01-01-preview', ResourceType.MGMT_IOTHUB: '2019-07-01-preview', - ResourceType.MGMT_DATABOXEDGE: '2019-08-01' + ResourceType.MGMT_DATABOXEDGE: '2019-08-01', + ResourceType.MGMT_CONTAINERREGISTRY: '2019-05-01', + ResourceType.MGMT_CONTAINERSERVICE: SDKProfile('2020-11-01', { + 'container_services': '2017-07-01', + 'open_shift_managed_clusters': '2019-10-27-preview' + }) }, '2019-03-01-hybrid': { ResourceType.MGMT_STORAGE: '2017-10-01', diff --git a/src/azure-cli-core/setup.py b/src/azure-cli-core/setup.py index bee3f1281d1..419027667b3 100644 --- a/src/azure-cli-core/setup.py +++ b/src/azure-cli-core/setup.py @@ -55,9 +55,9 @@ 'msal>=1.10.0,<2.0.0', 'paramiko>=2.0.8,<3.0.0', 'pkginfo>=1.5.0.1', - 'PyJWT==1.7.1', + 'PyJWT>=2.1.0', 'pyopenssl>=17.1.0', # https://github.com/pyca/pyopenssl/pull/612 - 'requests~=2.22', + 'requests~=2.25.1', 'six~=1.12', 'urllib3[secure]>=1.26.5', ] diff --git a/src/azure-cli/HISTORY.rst b/src/azure-cli/HISTORY.rst index 14334b3d915..36e45f603b3 100644 --- a/src/azure-cli/HISTORY.rst +++ b/src/azure-cli/HISTORY.rst @@ -48,7 +48,7 @@ Release History **Key Vault** -* Fix #11871: AKV10032: Invalid issuer error for operations in nondefault tenant/subscription (#18162) +* Fix #11871: AKV10032: Invalid issuer error for operations in non-default tenant/subscription (#18162) * `az keyvault set-policy/delete-policy`: Support --application-id (#18209) * `az keyvault recover`: Support MHSM (#18150) * `az keyvault private-link-resource list`: Support MHSM (#18273) @@ -196,9 +196,9 @@ Release History * `az network lb frontend-ip update`: New parameter `--gateway-lb` (#18136) * `az network nic ip-config update`: New parameter `--gateway-lb` (#18136) * `az network rule create/update`: New parameter `--backend-pools-name` (#18136) -* `az network vnet-gateway create`: Add new paramter `--nat-rule` (#18045) +* `az network vnet-gateway create`: Add new parameter `--nat-rule` (#18045) * Add new cmd group `az network vnet-gateway nat-rule` (#18045) -* `az network vpn-conncetion create`: Add new paramter `--ingress-nat-rule` and `--egress-nat-rule` (#18045) +* `az network vpn-connection create`: Add new parameter `--ingress-nat-rule` and `--egress-nat-rule` (#18045) * `az network vnet create`: Add new parameter `--flowtimeout` (#18032) **Packaging** @@ -384,7 +384,7 @@ Release History **Key Vault** -* Hotfix: GA for managed-HSM ralated commands and parameters +* Hotfix: GA for managed-HSM related commands and parameters 2.22.0 ++++++ @@ -412,7 +412,7 @@ Release History * Fix #17219: Fix ssl bind bug (#17479) * Remove preview flag for Python 3.9 in create function app command (#17546) * Bugfix: Handle if only single publish profile is returned (#17495) -* Fix #16203: az webapp log tail supports webapps running on Linix. (#17294) +* Fix #16203: az webapp log tail supports webapps running on Linux. (#17294) **ARM** @@ -816,7 +816,7 @@ Release History **Network** -* [BREAKING CHANGE] `az network vrouter`: Depracate this command group, please use `az network routeserver`. (#16494) +* [BREAKING CHANGE] `az network vrouter`: Deprecate this command group, please use `az network routeserver`. (#16494) * `az network routeserver`: Add new command group. (#16494) * `az network application-gateway create`: Add parameter `--ssl-profile-id` (#16762) * `az network application-gateway client-cert`: Manage trusted client certificate of application gateway (#16762) @@ -1359,8 +1359,8 @@ Release History **SignalR** -* `az signalr create`: Add new option `--enable-messaging-logs` for controling service generate messaging logs or not (#15327) -* `az signalr update`: Add new option `--enable-messaging-logs` for controling service generate messaging logs or not (#15327) +* `az signalr create`: Add new option `--enable-messaging-logs` for controlling service generate messaging logs or not (#15327) +* `az signalr update`: Add new option `--enable-messaging-logs` for controlling service generate messaging logs or not (#15327) **SQL** @@ -1368,7 +1368,7 @@ Release History * `az sql db audit-policy show`: extend to show database's audit policy including LA and EH data (#15444) * `az sql db audit-policy update`: extend to allow LA and EH update along with database's audit policy (#15444) * `az sql db audit-policy wait`: place the CLI in a waiting state until a condition of the database's audit policy is met. (#15444) -* `az sql server audit-policy show`: extend to show servers's audit policy including LA and EH data (#15444) +* `az sql server audit-policy show`: extend to show servers' audit policy including LA and EH data (#15444) * `az sql server audit-policy update`: extend to allow LA and EH update along with server's audit policy (#15444) * `az sql server audit-policy wait`: place the CLI in a waiting state until a condition of the server's audit policy is met. (#15444) * Add AAD-only Support for SQL Managed Instances and Servers (#15292) @@ -1432,8 +1432,8 @@ Release History **HDInsight** -* `az hdinsight create`: add deprecate information for argument --public-networrk-access-type and --outbound-public-network-access-type (#15181) -* `az hdinsight create`: add deprecate information for argument `--public-networrk-access-type` and `--outbound-public-network-access-type` (#15309) +* `az hdinsight create`: add deprecate information for argument --public-network-access-type and --outbound-public-network-access-type (#15181) +* `az hdinsight create`: add deprecate information for argument `--public-network-access-type` and `--outbound-public-network-access-type` (#15309) * `az hdinsight create`: add parameter `--idbroker` to support customer to create ESP cluster with HDInsight Id Broker (#15309) **IoT Central** @@ -1452,7 +1452,7 @@ Release History * `az network application-gateway ssl-cert show`: Add example to demonstrate certificate format and fetch information (#15166) * `az network application-gateway rule`: Support --priority option (#15222) -* `az network application-gateway create`: Fix bug that cannot create without public IP sepcified (#15255) +* `az network application-gateway create`: Fix bug that cannot create without public IP specified (#15255) * `az network application-gateway waf-policy managed-rule rule-set add`: Expose server error to user to give more intuitive hint message. (#15261) * `az network application-gateway waf-policy managed-rule rule-set update`: Support to change rule set type version. (#15261) @@ -1499,7 +1499,7 @@ Release History **AKS** * CLI should tolerate empty kubeconfig (#14914) -* FIX #12871: az aks enable-addons: Autogenerated help example is wrong for vitual-node option (#14989) +* FIX #12871: az aks enable-addons: Autogenerated help example is wrong for virtual-node option (#14989) * Remove legacy aci connector actions (#15084) * Support azure policy addon in azure-cli (#15092) * Fix case sensitive issue for AKS dashboard addon (#15123) @@ -1581,7 +1581,7 @@ Added Cluster commands and trusted_service_access_enabled parameter for Networkr **Network** * `az network vnet subnet`: Support --disable-private-endpoint-network-policies and --disable-private-link-service-network-policies (#15008) -* Fix bug while updateing flow-log when its subproperty network_watcher_flow_analytics_configuration is None (#15063) +* Fix bug while updating flow-log when its subproperty network_watcher_flow_analytics_configuration is None (#15063) * API version bump to 2020-06-01 (#15048) * Support --tcp-port-behavior while configuring a TCP configuration of a Connection Monitor V2 (#14937) * Support more types and coverage level while creating Endpoint of Connection Monitor V2 (#14942) @@ -1754,7 +1754,7 @@ Added Cluster commands and trusted_service_access_enabled parameter for Networkr **Synapse** * Add workspace, sparkpool, sqlpool related cmdlets (#14755) -* Add spark job releated commands based on track2 sdk (#14819) +* Add spark job related commands based on track2 sdk (#14819) * Add accesscontrol feature related commands based on track2 sdk (#14834) **Upgrade** @@ -1801,7 +1801,7 @@ Added Cluster commands and trusted_service_access_enabled parameter for Networkr **APIM** -* apim api import: support API import and enchance other api level cli commands (#14363) +* apim api import: support API import and enhance other api level cli commands (#14363) **App Service** @@ -1855,11 +1855,11 @@ Added Cluster commands and trusted_service_access_enabled parameter for Networkr **IoT Central** -* Add paramater option list for iot central (#14471) +* Add parameter option list for iot central (#14471) **KeyVault** -* `az keyvault key encrypt/decrypt`: add parameter `--data-type` for explicitly specifing the type of original data (#14386) +* `az keyvault key encrypt/decrypt`: add parameter `--data-type` for explicitly specifying the type of original data (#14386) **Monitor** @@ -1962,7 +1962,7 @@ Added Cluster commands and trusted_service_access_enabled parameter for Networkr **Monitor** * Remove preview flag for commands under Log Analytics workspace (#14064) -* `az monitor diagnostic-settings subscription`: Support diagnositc settings for subscription (#14157) +* `az monitor diagnostic-settings subscription`: Support diagnostic settings for subscription (#14157) * `az monitor metrics`: support ',' and '|' in metric name (#14254) * `az monitor log-analytics workspace data-export`: support log analytics data export (#14155) @@ -2482,7 +2482,7 @@ Added Cluster commands and trusted_service_access_enabled parameter for Networkr * `az vm/vmss create`: Add support for specialized image version (#12997) * SIG API Version 2019-12-01. (#12899) * `az sig image-version create`: Add --target-region-encryption. (#12899) -* Fix tests fail when running in serial due to keyvault name is duplicated in global in-momery cache +* Fix tests fail when running in serial due to keyvault name is duplicated in global in-memory cache **CosmosDB** @@ -3022,7 +3022,7 @@ Added Cluster commands and trusted_service_access_enabled parameter for Networkr * Fix issue #11415: permission error for `az storage blob update` * Integrate Azcopy 10.3.3 and support Win32. * `az storage copy`: Add `--include-path`, `--include-pattern`, `--exclude-path` and`--exclude-pattern` parameters -* `az storage remove`: Change `--inlcude` and `--exclude` parameters to `--include-path`, `--include-pattern`, `--exclude-path` and`--exclude-pattern` parameters +* `az storage remove`: Change `--include` and `--exclude` parameters to `--include-path`, `--include-pattern`, `--exclude-path` and`--exclude-pattern` parameters * `az storage sync`: Add `--include-pattern`, `--exclude-path` and`--exclude-pattern` parameters **ServiceFabric** @@ -3429,8 +3429,8 @@ Added Cluster commands and trusted_service_access_enabled parameter for Networkr * gremlin graph create: Add --conflict-resolution-policy * gremlin graph create/update: Update the --idx default schema * Fix typo in help message -* database: Add deprecation infomation -* collection: Add deprecation infomation +* database: Add deprecation information +* collection: Add deprecation information **IoT** @@ -3446,7 +3446,7 @@ Added Cluster commands and trusted_service_access_enabled parameter for Networkr **Monitor** * Updated azure-mgmt-monitor to 0.7.0 -* az monitor action-group create/update: Added suport for following new receivers: Arm role, Azure app push, ITSM, automation runbook, voice, logic app and Azure function +* az monitor action-group create/update: Added support for following new receivers: Arm role, Azure app push, ITSM, automation runbook, voice, logic app and Azure function * Included parameter usecommonalertschema for supported receivers * Included parameter useaadwebhook for webhook receiver @@ -3497,9 +3497,9 @@ Added Cluster commands and trusted_service_access_enabled parameter for Networkr * Set `--load-balancer-sku` default value to standard if supported by the kubernetes version * Set `--vm-set-type` default value to virtualmachinescalesets if supported by the kubernetes version -* Add `az aks nodepool add`,`az aks nodepool show`, `az aks nodepool list`, `az aks nodepool scale`, `az aks nodepool upgrade`, `az aks nodepool update` and `az aks nodepool delete` commmands to support multiple nodepools in aks +* Add `az aks nodepool add`,`az aks nodepool show`, `az aks nodepool list`, `az aks nodepool scale`, `az aks nodepool upgrade`, `az aks nodepool update` and `az aks nodepool delete` commands to support multiple nodepools in aks * Add `--zones` to `az aks create` and `az aks nodepool add` commands to support availability zones for aks -* Enable GA support of apiserver authorized IP ranges via paramater `--api-server-authorized-ip-ranges` in `az aks create` and `az aks update` +* Enable GA support of apiserver authorized IP ranges via parameter `--api-server-authorized-ip-ranges` in `az aks create` and `az aks update` **AMS** @@ -3704,7 +3704,7 @@ Added Cluster commands and trusted_service_access_enabled parameter for Networkr **API Management** -* Introduced initial impementation of API Management preview commands (az apim) +* Introduced initial implementation of API Management preview commands (az apim) **AppConfig** @@ -3853,7 +3853,7 @@ Added Cluster commands and trusted_service_access_enabled parameter for Networkr * network nic ip-config add: Fixes #9861 where --ids was inadvertently exposed but did not work. * network application-gateway http-settings create/update: Fixes #9604. Add `--root-certs` to support user associate trusted root certificates with the HTTP settings. -* network dns record-set ns create: Fixes #9965. Support --subscription again by moving the supression into lower scope. +* network dns record-set ns create: Fixes #9965. Support --subscription again by moving the suppression into lower scope. * network watcher test-ip-flow: Fixes #9845. Fixes #9844. Correct the error messages and help message for the `--vm` and `--nic` arguments. Only providing the name of the vm or nic without `--resource-group` will raise CLI usage error. **RBAC** @@ -3912,7 +3912,7 @@ Added Cluster commands and trusted_service_access_enabled parameter for Networkr **Relay** -* Fixed issue #8775 : Cannot create hybrid connection with disabled client authroization +* Fixed issue #8775 : Cannot create hybrid connection with disabled client authorization * Added parameter "--requires-transport-security" to az relay wcfrelay create **Servicebus** @@ -4005,8 +4005,8 @@ Added Cluster commands and trusted_service_access_enabled parameter for Networkr **VM** -* vmss create: Fix bug where command returns an error message when run with `--no-wait`. The command succesfully sends - the request but returns failure status code and returns an error mesage. +* vmss create: Fix bug where command returns an error message when run with `--no-wait`. The command successfully sends + the request but returns failure status code and returns an error message. * vm/vmss extension image list: Fix bug where command fails when used with --latest * vmss create `--single-placement-group`: Removed client-side validation. Does not fail if `--single-placement-group` is set to true and`--instance-count` is greater than 100 or availability zones are specified, but leaves this validation diff --git a/src/azure-cli/azure/cli/command_modules/acr/check_health.py b/src/azure-cli/azure/cli/command_modules/acr/check_health.py index 88bbd320a71..f3644714ff9 100644 --- a/src/azure-cli/azure/cli/command_modules/acr/check_health.py +++ b/src/azure-cli/azure/cli/command_modules/acr/check_health.py @@ -286,6 +286,7 @@ def _get_endpoint_and_token_status(cmd, login_server, ignore_errors): def _check_registry_health(cmd, registry_name, ignore_errors): + from azure.cli.core.profiles import ResourceType if registry_name is None: logger.warning("Registry name must be provided to check connectivity.") return @@ -310,23 +311,25 @@ def _check_registry_health(cmd, registry_name, ignore_errors): if status_validated: _get_endpoint_and_token_status(cmd, login_server, ignore_errors) - # CMK settings - if registry and registry.encryption and registry.encryption.key_vault_properties: # pylint: disable=too-many-nested-blocks - client_id = registry.encryption.key_vault_properties.identity - valid_identity = False - if registry.identity: - valid_identity = (client_id == 'system') and bool(registry.identity.principal_id) # use system identity? - if not valid_identity and registry.identity.user_assigned_identities: - for k, v in registry.identity.user_assigned_identities.items(): - if v.client_id == client_id: - from msrestazure.azure_exceptions import CloudError - try: - valid_identity = (resolve_identity_client_id(cmd.cli_ctx, k) == client_id) - except CloudError: - pass - if not valid_identity: - from ._errors import CMK_MANAGED_IDENTITY_ERROR - _handle_error(CMK_MANAGED_IDENTITY_ERROR.format_error_message(registry_name), ignore_errors) + if cmd.supported_api_version(min_api='2020-11-01-preview', resource_type=ResourceType.MGMT_CONTAINERREGISTRY): # pylint: disable=too-many-nested-blocks + # CMK settings + if registry and registry.encryption and registry.encryption.key_vault_properties: # pylint: disable=too-many-nested-blocks + client_id = registry.encryption.key_vault_properties.identity + valid_identity = False + if registry.identity: + valid_identity = ((client_id == 'system') and + bool(registry.identity.principal_id)) # use system identity? + if not valid_identity and registry.identity.user_assigned_identities: + for k, v in registry.identity.user_assigned_identities.items(): + if v.client_id == client_id: + from msrestazure.azure_exceptions import CloudError + try: + valid_identity = (resolve_identity_client_id(cmd.cli_ctx, k) == client_id) + except CloudError: + pass + if not valid_identity: + from ._errors import CMK_MANAGED_IDENTITY_ERROR + _handle_error(CMK_MANAGED_IDENTITY_ERROR.format_error_message(registry_name), ignore_errors) def _check_private_endpoint(cmd, registry_name, vnet_of_private_endpoint): # pylint: disable=too-many-locals, too-many-statements diff --git a/src/azure-cli/azure/cli/command_modules/acr/tests/hybrid_2020_09_01/__init__.py b/src/azure-cli/azure/cli/command_modules/acr/tests/hybrid_2020_09_01/__init__.py new file mode 100644 index 00000000000..34913fb394d --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/acr/tests/hybrid_2020_09_01/__init__.py @@ -0,0 +1,4 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- diff --git a/src/azure-cli/azure/cli/command_modules/acr/tests/hybrid_2020_09_01/recordings/test_acr_agentpool.yaml b/src/azure-cli/azure/cli/command_modules/acr/tests/hybrid_2020_09_01/recordings/test_acr_agentpool.yaml new file mode 100644 index 00000000000..5e5ccc55743 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/acr/tests/hybrid_2020_09_01/recordings/test_acr_agentpool.yaml @@ -0,0 +1,334 @@ +interactions: +- request: + body: '{"location": "eastus", "sku": {"name": "Premium"}, "properties": {"adminUserEnabled": + false}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - acr create + Connection: + - keep-alive + Content-Length: + - '93' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -n -g -l --sku + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerregistry/3.0.0rc17 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002?api-version=2019-05-01 + response: + body: + string: '{"sku":{"name":"Premium","tier":"Premium"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"eastus","tags":{},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2021-06-09T09:36:01.2654685Z","provisioningState":"Succeeded","adminUserEnabled":false,"networkRuleSet":{"defaultAction":"Allow","virtualNetworkRules":[],"ipRules":[]},"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2021-06-09T09:36:02.4943743+00:00","status":"disabled"}}}}' + headers: + cache-control: + - no-cache + content-length: + - '827' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 09 Jun 2021 09:36:01 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 200 + message: OK +- request: + body: '{"location": "eastus", "tags": {}, "properties": {"addressSpace": {"addressPrefixes": + ["10.0.0.0/16"]}, "dhcpOptions": {}, "subnets": [{"name": "agentsubnets", "properties": + {"addressPrefix": "10.0.0.0/24"}}]}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vnet create + Connection: + - keep-alive + Content-Length: + - '210' + Content-Type: + - application/json + ParameterSetName: + - -n --subnet-name -g -l + User-Agent: + - AZURECLI/2.23.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.7.4 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/agentvnets?api-version=2018-11-01 + response: + body: + string: "{\r\n \"name\": \"agentvnets\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/agentvnets\",\r\n + \ \"etag\": \"W/\\\"9808e0e1-4aaf-49c0-b584-4a19f13595ab\\\"\",\r\n \"type\": + \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"eastus\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n + \ \"resourceGuid\": \"799a729d-8e73-4d1d-8a5f-b4dee12941cd\",\r\n \"addressSpace\": + {\r\n \"addressPrefixes\": [\r\n \"10.0.0.0/16\"\r\n ]\r\n + \ },\r\n \"dhcpOptions\": {\r\n \"dnsServers\": []\r\n },\r\n + \ \"subnets\": [\r\n {\r\n \"name\": \"agentsubnets\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/agentvnets/subnets/agentsubnets\",\r\n + \ \"etag\": \"W/\\\"9808e0e1-4aaf-49c0-b584-4a19f13595ab\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n + \ \"addressPrefix\": \"10.0.0.0/24\",\r\n \"delegations\": + []\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n + \ }\r\n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": + false\r\n }\r\n}" + headers: + azure-asyncnotification: + - Enabled + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/1c5924a0-e65d-4082-8a27-a47b71c68b0a?api-version=2018-11-01 + cache-control: + - no-cache + content-length: + - '1313' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 09 Jun 2021 09:36:03 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - f7c41517-e4ad-4db1-9b42-e27da976cc91 + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vnet create + Connection: + - keep-alive + ParameterSetName: + - -n --subnet-name -g -l + User-Agent: + - AZURECLI/2.23.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.7.4 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/1c5924a0-e65d-4082-8a27-a47b71c68b0a?api-version=2018-11-01 + response: + body: + string: "{\r\n \"status\": \"Succeeded\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '29' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 09 Jun 2021 09:36:06 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 68d38f88-23c9-45fa-b088-e605e9983828 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vnet create + Connection: + - keep-alive + ParameterSetName: + - -n --subnet-name -g -l + User-Agent: + - AZURECLI/2.23.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.7.4 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/agentvnets?api-version=2018-11-01 + response: + body: + string: "{\r\n \"name\": \"agentvnets\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/agentvnets\",\r\n + \ \"etag\": \"W/\\\"eed0048e-ecd1-42a8-b5c2-a40b3493f6d9\\\"\",\r\n \"type\": + \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"eastus\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"resourceGuid\": \"799a729d-8e73-4d1d-8a5f-b4dee12941cd\",\r\n \"addressSpace\": + {\r\n \"addressPrefixes\": [\r\n \"10.0.0.0/16\"\r\n ]\r\n + \ },\r\n \"dhcpOptions\": {\r\n \"dnsServers\": []\r\n },\r\n + \ \"subnets\": [\r\n {\r\n \"name\": \"agentsubnets\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/agentvnets/subnets/agentsubnets\",\r\n + \ \"etag\": \"W/\\\"eed0048e-ecd1-42a8-b5c2-a40b3493f6d9\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"addressPrefix\": \"10.0.0.0/24\",\r\n \"delegations\": + []\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n + \ }\r\n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": + false\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1315' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 09 Jun 2021 09:36:06 GMT + etag: + - W/"eed0048e-ecd1-42a8-b5c2-a40b3493f6d9" + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - a8b902e2-1252-45eb-a9c3-2e19d0151488 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - acr agentpool create + Connection: + - keep-alive + ParameterSetName: + - -n -r + User-Agent: + - AZURECLI/2.23.0 azsdk-python-azure-mgmt-resource/16.1.0 Python/3.7.4 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resources?$filter=resourceType%20eq%20%27Microsoft.ContainerRegistry%2Fregistries%27&api-version=2019-10-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg4flauzafzkkvuqorn3kv66j3vwbrmcu6rjfdzdx7adby6bhyswosxk3zaa26czqb2/providers/Microsoft.ContainerRegistry/registries/cliregkz5wk3kdbgrpgo","name":"cliregkz5wk3kdbgrpgo","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg5xvkyek6sydr3fddwldewju7nnwoqtov6gmjp47qchyl7kvrjey6zzqygiqmdvvcs/providers/Microsoft.ContainerRegistry/registries/testreg3j5jpgvzkgulr","name":"testreg3j5jpgvzkgulr","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"eastus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg7jvf5ogrhhklcjdmg26cbmztv4fnqoeemacvupin4y5cb52m3vusbcpfqfbxdev2l/providers/Microsoft.ContainerRegistry/registries/testregtoraoblnyje47","name":"testregtoraoblnyje47","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"eastus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"eastus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgbvlqx7gu6n4jqvtpnlt4nldddtkjlxhay66sodv7i6u6vgroz7oe44cmry2dtk4li/providers/Microsoft.ContainerRegistry/registries/cliregnvfbyuoulyaadx","name":"cliregnvfbyuoulyaadx","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"eastus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rghozpxmhg4b5pgihyl2miod4225q35ovqo73wplqfwzvghmke3oz2clhpgfo67celq/providers/Microsoft.ContainerRegistry/registries/cliregvwxn5lnd33qxad","name":"cliregvwxn5lnd33qxad","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgkodflossvlrtdcutd3tsbaqfpf3clcgla2jpoesantpv7r65vfjkfaseezggrdtqe/providers/Microsoft.ContainerRegistry/registries/clireglnhw3gwnmph5zq","name":"clireglnhw3gwnmph5zq","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"eastus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgla2jf4dhfa5zlhvgblvb7pc2k5qmzgqoln4jwnqlm7mujzhmjqlutp3ct3mnbzef4/providers/Microsoft.ContainerRegistry/registries/testregdkgukdwafkz6n","name":"testregdkgukdwafkz6n","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgqdcy4hy4stnsotey4u3r6g2ypzkz4h3h5sifah22lti32mmdgkhucc5k3bsztmmtk/providers/Microsoft.ContainerRegistry/registries/cliregijv3s2vkl7qs5y","name":"cliregijv3s2vkl7qs5y","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{"foo":"bar","cat":""}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgqvzw5y6urjywpun42hc54uuxqtbknbuinek2kboan73cppvdaugcukekvtxwbruam/providers/Microsoft.ContainerRegistry/registries/cliregom42uovjcuoyiy","name":"cliregom42uovjcuoyiy","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgrg6x7g22ppefeyx62ttgahodwtjibh532ehaikxaau3p3isurk2y72s3p444pcmc5/providers/Microsoft.ContainerRegistry/registries/clireg6kq4qkwqko2q6j","name":"clireg6kq4qkwqko2q6j","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{"foo":"bar","cat":""}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgtyd5juesmlqjruliqhmbl3a4kivwdthc2hb5t2s5cdpagfwgxwouaubita2ojtdwf/providers/Microsoft.ContainerRegistry/registries/testregxwhua2uf3hgacglxyi","name":"testregxwhua2uf3hgacglxyi","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testacr/providers/Microsoft.ContainerRegistry/registries/testacr1986","name":"testacr1986","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"eastus","tags":{}}]}' + headers: + cache-control: + - no-cache + content-length: + - '4817' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 09 Jun 2021 09:36:06 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - acr agentpool create + Connection: + - keep-alive + ParameterSetName: + - -n -r + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerregistry/3.0.0rc17 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002?api-version=2019-05-01 + response: + body: + string: '{"sku":{"name":"Premium","tier":"Premium"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"eastus","tags":{},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2021-06-09T09:36:01.2654685Z","provisioningState":"Succeeded","adminUserEnabled":false,"networkRuleSet":{"defaultAction":"Allow","virtualNetworkRules":[],"ipRules":[]},"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2021-06-09T09:36:02.4943743+00:00","status":"disabled"}}}}' + headers: + cache-control: + - no-cache + content-length: + - '827' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 09 Jun 2021 09:36:07 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/acr/tests/hybrid_2020_09_01/recordings/test_acr_create_replication.yaml b/src/azure-cli/azure/cli/command_modules/acr/tests/hybrid_2020_09_01/recordings/test_acr_create_replication.yaml new file mode 100644 index 00000000000..3ccbd88d326 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/acr/tests/hybrid_2020_09_01/recordings/test_acr_create_replication.yaml @@ -0,0 +1,149 @@ +interactions: +- request: + body: '{"location": "westus", "sku": {"name": "Premium"}, "properties": {"adminUserEnabled": + false}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - acr create + Connection: + - keep-alive + Content-Length: + - '93' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -n -g -l --sku + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerregistry/3.0.0rc17 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002?api-version=2019-05-01 + response: + body: + string: '{"sku":{"name":"Premium","tier":"Premium"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2021-06-09T09:12:05.571844Z","provisioningState":"Succeeded","adminUserEnabled":false,"networkRuleSet":{"defaultAction":"Allow","virtualNetworkRules":[],"ipRules":[]},"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2021-06-09T09:12:06.5641607+00:00","status":"disabled"}}}}' + headers: + cache-control: + - no-cache + content-length: + - '826' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 09 Jun 2021 09:12:06 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + 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: + - acr replication create + Connection: + - keep-alive + ParameterSetName: + - -n -r -l + User-Agent: + - AZURECLI/2.23.0 azsdk-python-azure-mgmt-resource/16.1.0 Python/3.7.4 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resources?$filter=resourceType%20eq%20%27Microsoft.ContainerRegistry%2Fregistries%27&api-version=2019-10-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testacr/providers/Microsoft.ContainerRegistry/registries/testacr1986","name":"testacr1986","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"eastus","tags":{}}]}' + headers: + cache-control: + - no-cache + content-length: + - '671' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 09 Jun 2021 09:12: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: + - acr replication create + Connection: + - keep-alive + ParameterSetName: + - -n -r -l + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerregistry/3.0.0rc17 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002?api-version=2019-05-01 + response: + body: + string: '{"sku":{"name":"Premium","tier":"Premium"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2021-06-09T09:12:05.571844Z","provisioningState":"Succeeded","adminUserEnabled":false,"networkRuleSet":{"defaultAction":"Allow","virtualNetworkRules":[],"ipRules":[]},"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2021-06-09T09:12:06.5641607+00:00","status":"disabled"}}}}' + headers: + cache-control: + - no-cache + content-length: + - '826' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 09 Jun 2021 09:12:06 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/acr/tests/hybrid_2020_09_01/recordings/test_acr_create_webhook.yaml b/src/azure-cli/azure/cli/command_modules/acr/tests/hybrid_2020_09_01/recordings/test_acr_create_webhook.yaml new file mode 100644 index 00000000000..221a31241c5 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/acr/tests/hybrid_2020_09_01/recordings/test_acr_create_webhook.yaml @@ -0,0 +1,1314 @@ +interactions: +- request: + body: '{"location": "westus", "sku": {"name": "Standard"}, "properties": {"adminUserEnabled": + false}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - acr create + Connection: + - keep-alive + Content-Length: + - '94' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -n -g -l --sku + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerregistry/3.0.0rc17 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002?api-version=2019-05-01 + response: + body: + string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2021-06-09T09:51:54.5879406Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2021-06-09T09:51:55.5301004+00:00","status":"disabled"}}}}' + headers: + cache-control: + - no-cache + content-length: + - '748' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 09 Jun 2021 09:51:55 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + 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: + - acr webhook create + Connection: + - keep-alive + ParameterSetName: + - -n -r --uri --actions + User-Agent: + - AZURECLI/2.23.0 azsdk-python-azure-mgmt-resource/16.1.0 Python/3.7.4 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resources?$filter=resourceType%20eq%20%27Microsoft.ContainerRegistry%2Fregistries%27&api-version=2019-10-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg2gioom5g6sdfecxozqvzkyz36gbdveipmxgjq32v5b2jevhnye2c46alqvusovbth/providers/Microsoft.ContainerRegistry/registries/cliregycwk64yr6dzl26","name":"cliregycwk64yr6dzl26","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg4flauzafzkkvuqorn3kv66j3vwbrmcu6rjfdzdx7adby6bhyswosxk3zaa26czqb2/providers/Microsoft.ContainerRegistry/registries/cliregkz5wk3kdbgrpgo","name":"cliregkz5wk3kdbgrpgo","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg4mvmupf5cfngr6bpvcwozzbynvwd4wn4mzpwetgwbggzabzjf3morznjcxhl46jyc/providers/Microsoft.ContainerRegistry/registries/testreggh2ixk3zbqci7","name":"testreggh2ixk3zbqci7","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg5xvkyek6sydr3fddwldewju7nnwoqtov6gmjp47qchyl7kvrjey6zzqygiqmdvvcs/providers/Microsoft.ContainerRegistry/registries/testreg3j5jpgvzkgulr","name":"testreg3j5jpgvzkgulr","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"eastus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg7jvf5ogrhhklcjdmg26cbmztv4fnqoeemacvupin4y5cb52m3vusbcpfqfbxdev2l/providers/Microsoft.ContainerRegistry/registries/testregtoraoblnyje47","name":"testregtoraoblnyje47","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"eastus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgbvlqx7gu6n4jqvtpnlt4nldddtkjlxhay66sodv7i6u6vgroz7oe44cmry2dtk4li/providers/Microsoft.ContainerRegistry/registries/cliregnvfbyuoulyaadx","name":"cliregnvfbyuoulyaadx","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"eastus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgkodflossvlrtdcutd3tsbaqfpf3clcgla2jpoesantpv7r65vfjkfaseezggrdtqe/providers/Microsoft.ContainerRegistry/registries/clireglnhw3gwnmph5zq","name":"clireglnhw3gwnmph5zq","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"eastus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgla2jf4dhfa5zlhvgblvb7pc2k5qmzgqoln4jwnqlm7mujzhmjqlutp3ct3mnbzef4/providers/Microsoft.ContainerRegistry/registries/testregdkgukdwafkz6n","name":"testregdkgukdwafkz6n","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgmpxibeifsscj7vdu5octulyigqa6qbv6f46twircunavm6rz3rgqpb2dqxozmwgrx/providers/Microsoft.ContainerRegistry/registries/clireghbrwwggmyjmcan","name":"clireghbrwwggmyjmcan","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgqdcy4hy4stnsotey4u3r6g2ypzkz4h3h5sifah22lti32mmdgkhucc5k3bsztmmtk/providers/Microsoft.ContainerRegistry/registries/cliregijv3s2vkl7qs5y","name":"cliregijv3s2vkl7qs5y","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{"foo":"bar","cat":""}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgqvzw5y6urjywpun42hc54uuxqtbknbuinek2kboan73cppvdaugcukekvtxwbruam/providers/Microsoft.ContainerRegistry/registries/cliregom42uovjcuoyiy","name":"cliregom42uovjcuoyiy","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgtiulf6ijln5qluvjeh4t4f5rqheyvohp5cipi6yn3a64gm2nuzehunmhf6jiugude/providers/Microsoft.ContainerRegistry/registries/cliregi2v7evlpkv32qp","name":"cliregi2v7evlpkv32qp","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgtyd5juesmlqjruliqhmbl3a4kivwdthc2hb5t2s5cdpagfwgxwouaubita2ojtdwf/providers/Microsoft.ContainerRegistry/registries/testregxwhua2uf3hgacglxyi","name":"testregxwhua2uf3hgacglxyi","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgxliqwb7knsasst45o5y5x2kf7tietsavemnkiv6e4e34u5vh4cloczizpcmttujlg/providers/Microsoft.ContainerRegistry/registries/cliregevouozd2avf4xu","name":"cliregevouozd2avf4xu","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testacr/providers/Microsoft.ContainerRegistry/registries/testacr1986","name":"testacr1986","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"eastus","tags":{}}]}' + headers: + cache-control: + - no-cache + content-length: + - '5913' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 09 Jun 2021 09:51:55 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: + - acr webhook create + Connection: + - keep-alive + ParameterSetName: + - -n -r --uri --actions + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerregistry/3.0.0rc17 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002?api-version=2019-05-01 + response: + body: + string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2021-06-09T09:51:54.5879406Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2021-06-09T09:51:55.5301004+00:00","status":"disabled"}}}}' + headers: + cache-control: + - no-cache + content-length: + - '748' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 09 Jun 2021 09:51:55 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + 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": "westus", "properties": {"serviceUri": "http://www.microsoft.com", + "status": "enabled", "actions": ["push"]}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - acr webhook create + Connection: + - keep-alive + Content-Length: + - '122' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -n -r --uri --actions + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerregistry/3.0.0rc17 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/webhooks/cliregwebhook?api-version=2019-05-01 + response: + body: + string: '{"type":"Microsoft.ContainerRegistry/registries/webhooks","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/webhooks/cliregwebhook","name":"cliregwebhook","location":"westus","tags":{},"properties":{"status":"enabled","scope":"","actions":["push"],"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '450' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 09 Jun 2021 09:51:56 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - acr webhook list + Connection: + - keep-alive + ParameterSetName: + - -r + User-Agent: + - AZURECLI/2.23.0 azsdk-python-azure-mgmt-resource/16.1.0 Python/3.7.4 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resources?$filter=resourceType%20eq%20%27Microsoft.ContainerRegistry%2Fregistries%27&api-version=2019-10-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg2gioom5g6sdfecxozqvzkyz36gbdveipmxgjq32v5b2jevhnye2c46alqvusovbth/providers/Microsoft.ContainerRegistry/registries/cliregycwk64yr6dzl26","name":"cliregycwk64yr6dzl26","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg4flauzafzkkvuqorn3kv66j3vwbrmcu6rjfdzdx7adby6bhyswosxk3zaa26czqb2/providers/Microsoft.ContainerRegistry/registries/cliregkz5wk3kdbgrpgo","name":"cliregkz5wk3kdbgrpgo","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg4mvmupf5cfngr6bpvcwozzbynvwd4wn4mzpwetgwbggzabzjf3morznjcxhl46jyc/providers/Microsoft.ContainerRegistry/registries/testreggh2ixk3zbqci7","name":"testreggh2ixk3zbqci7","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg5xvkyek6sydr3fddwldewju7nnwoqtov6gmjp47qchyl7kvrjey6zzqygiqmdvvcs/providers/Microsoft.ContainerRegistry/registries/testreg3j5jpgvzkgulr","name":"testreg3j5jpgvzkgulr","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"eastus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg7jvf5ogrhhklcjdmg26cbmztv4fnqoeemacvupin4y5cb52m3vusbcpfqfbxdev2l/providers/Microsoft.ContainerRegistry/registries/testregtoraoblnyje47","name":"testregtoraoblnyje47","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"eastus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgbvlqx7gu6n4jqvtpnlt4nldddtkjlxhay66sodv7i6u6vgroz7oe44cmry2dtk4li/providers/Microsoft.ContainerRegistry/registries/cliregnvfbyuoulyaadx","name":"cliregnvfbyuoulyaadx","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"eastus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgkodflossvlrtdcutd3tsbaqfpf3clcgla2jpoesantpv7r65vfjkfaseezggrdtqe/providers/Microsoft.ContainerRegistry/registries/clireglnhw3gwnmph5zq","name":"clireglnhw3gwnmph5zq","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"eastus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgla2jf4dhfa5zlhvgblvb7pc2k5qmzgqoln4jwnqlm7mujzhmjqlutp3ct3mnbzef4/providers/Microsoft.ContainerRegistry/registries/testregdkgukdwafkz6n","name":"testregdkgukdwafkz6n","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgmpxibeifsscj7vdu5octulyigqa6qbv6f46twircunavm6rz3rgqpb2dqxozmwgrx/providers/Microsoft.ContainerRegistry/registries/clireghbrwwggmyjmcan","name":"clireghbrwwggmyjmcan","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgqdcy4hy4stnsotey4u3r6g2ypzkz4h3h5sifah22lti32mmdgkhucc5k3bsztmmtk/providers/Microsoft.ContainerRegistry/registries/cliregijv3s2vkl7qs5y","name":"cliregijv3s2vkl7qs5y","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{"foo":"bar","cat":""}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgqvzw5y6urjywpun42hc54uuxqtbknbuinek2kboan73cppvdaugcukekvtxwbruam/providers/Microsoft.ContainerRegistry/registries/cliregom42uovjcuoyiy","name":"cliregom42uovjcuoyiy","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgtiulf6ijln5qluvjeh4t4f5rqheyvohp5cipi6yn3a64gm2nuzehunmhf6jiugude/providers/Microsoft.ContainerRegistry/registries/cliregi2v7evlpkv32qp","name":"cliregi2v7evlpkv32qp","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgtyd5juesmlqjruliqhmbl3a4kivwdthc2hb5t2s5cdpagfwgxwouaubita2ojtdwf/providers/Microsoft.ContainerRegistry/registries/testregxwhua2uf3hgacglxyi","name":"testregxwhua2uf3hgacglxyi","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgxliqwb7knsasst45o5y5x2kf7tietsavemnkiv6e4e34u5vh4cloczizpcmttujlg/providers/Microsoft.ContainerRegistry/registries/cliregevouozd2avf4xu","name":"cliregevouozd2avf4xu","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testacr/providers/Microsoft.ContainerRegistry/registries/testacr1986","name":"testacr1986","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"eastus","tags":{}}]}' + headers: + cache-control: + - no-cache + content-length: + - '5913' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 09 Jun 2021 09:51:56 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: + - acr webhook list + Connection: + - keep-alive + ParameterSetName: + - -r + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerregistry/3.0.0rc17 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002?api-version=2019-05-01 + response: + body: + string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2021-06-09T09:51:54.5879406Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2021-06-09T09:51:55.5301004+00:00","status":"disabled"}}}}' + headers: + cache-control: + - no-cache + content-length: + - '748' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 09 Jun 2021 09:51:56 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + 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: + - acr webhook list + Connection: + - keep-alive + ParameterSetName: + - -r + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerregistry/3.0.0rc17 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/webhooks?api-version=2019-05-01 + response: + body: + string: '{"value":[{"type":"Microsoft.ContainerRegistry/registries/webhooks","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/webhooks/cliregwebhook","name":"cliregwebhook","location":"westus","tags":{},"properties":{"status":"enabled","scope":"","actions":["push"],"provisioningState":"Succeeded"}}]}' + headers: + cache-control: + - no-cache + content-length: + - '462' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 09 Jun 2021 09:51:57 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + 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: + - acr webhook show + Connection: + - keep-alive + ParameterSetName: + - -n -r + User-Agent: + - AZURECLI/2.23.0 azsdk-python-azure-mgmt-resource/16.1.0 Python/3.7.4 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resources?$filter=resourceType%20eq%20%27Microsoft.ContainerRegistry%2Fregistries%27&api-version=2019-10-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg2gioom5g6sdfecxozqvzkyz36gbdveipmxgjq32v5b2jevhnye2c46alqvusovbth/providers/Microsoft.ContainerRegistry/registries/cliregycwk64yr6dzl26","name":"cliregycwk64yr6dzl26","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg4flauzafzkkvuqorn3kv66j3vwbrmcu6rjfdzdx7adby6bhyswosxk3zaa26czqb2/providers/Microsoft.ContainerRegistry/registries/cliregkz5wk3kdbgrpgo","name":"cliregkz5wk3kdbgrpgo","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg4mvmupf5cfngr6bpvcwozzbynvwd4wn4mzpwetgwbggzabzjf3morznjcxhl46jyc/providers/Microsoft.ContainerRegistry/registries/testreggh2ixk3zbqci7","name":"testreggh2ixk3zbqci7","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg5xvkyek6sydr3fddwldewju7nnwoqtov6gmjp47qchyl7kvrjey6zzqygiqmdvvcs/providers/Microsoft.ContainerRegistry/registries/testreg3j5jpgvzkgulr","name":"testreg3j5jpgvzkgulr","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"eastus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg7jvf5ogrhhklcjdmg26cbmztv4fnqoeemacvupin4y5cb52m3vusbcpfqfbxdev2l/providers/Microsoft.ContainerRegistry/registries/testregtoraoblnyje47","name":"testregtoraoblnyje47","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"eastus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgbvlqx7gu6n4jqvtpnlt4nldddtkjlxhay66sodv7i6u6vgroz7oe44cmry2dtk4li/providers/Microsoft.ContainerRegistry/registries/cliregnvfbyuoulyaadx","name":"cliregnvfbyuoulyaadx","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"eastus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgkodflossvlrtdcutd3tsbaqfpf3clcgla2jpoesantpv7r65vfjkfaseezggrdtqe/providers/Microsoft.ContainerRegistry/registries/clireglnhw3gwnmph5zq","name":"clireglnhw3gwnmph5zq","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"eastus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgla2jf4dhfa5zlhvgblvb7pc2k5qmzgqoln4jwnqlm7mujzhmjqlutp3ct3mnbzef4/providers/Microsoft.ContainerRegistry/registries/testregdkgukdwafkz6n","name":"testregdkgukdwafkz6n","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgmpxibeifsscj7vdu5octulyigqa6qbv6f46twircunavm6rz3rgqpb2dqxozmwgrx/providers/Microsoft.ContainerRegistry/registries/clireghbrwwggmyjmcan","name":"clireghbrwwggmyjmcan","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgqdcy4hy4stnsotey4u3r6g2ypzkz4h3h5sifah22lti32mmdgkhucc5k3bsztmmtk/providers/Microsoft.ContainerRegistry/registries/cliregijv3s2vkl7qs5y","name":"cliregijv3s2vkl7qs5y","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{"foo":"bar","cat":""}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgqvzw5y6urjywpun42hc54uuxqtbknbuinek2kboan73cppvdaugcukekvtxwbruam/providers/Microsoft.ContainerRegistry/registries/cliregom42uovjcuoyiy","name":"cliregom42uovjcuoyiy","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgtiulf6ijln5qluvjeh4t4f5rqheyvohp5cipi6yn3a64gm2nuzehunmhf6jiugude/providers/Microsoft.ContainerRegistry/registries/cliregi2v7evlpkv32qp","name":"cliregi2v7evlpkv32qp","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgtyd5juesmlqjruliqhmbl3a4kivwdthc2hb5t2s5cdpagfwgxwouaubita2ojtdwf/providers/Microsoft.ContainerRegistry/registries/testregxwhua2uf3hgacglxyi","name":"testregxwhua2uf3hgacglxyi","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgxliqwb7knsasst45o5y5x2kf7tietsavemnkiv6e4e34u5vh4cloczizpcmttujlg/providers/Microsoft.ContainerRegistry/registries/cliregevouozd2avf4xu","name":"cliregevouozd2avf4xu","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testacr/providers/Microsoft.ContainerRegistry/registries/testacr1986","name":"testacr1986","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"eastus","tags":{}}]}' + headers: + cache-control: + - no-cache + content-length: + - '5913' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 09 Jun 2021 09:51:57 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: + - acr webhook show + Connection: + - keep-alive + ParameterSetName: + - -n -r + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerregistry/3.0.0rc17 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002?api-version=2019-05-01 + response: + body: + string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2021-06-09T09:51:54.5879406Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2021-06-09T09:51:55.5301004+00:00","status":"disabled"}}}}' + headers: + cache-control: + - no-cache + content-length: + - '748' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 09 Jun 2021 09:51:57 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + 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: + - acr webhook show + Connection: + - keep-alive + ParameterSetName: + - -n -r + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerregistry/3.0.0rc17 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/webhooks/cliregwebhook?api-version=2019-05-01 + response: + body: + string: '{"type":"Microsoft.ContainerRegistry/registries/webhooks","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/webhooks/cliregwebhook","name":"cliregwebhook","location":"westus","tags":{},"properties":{"status":"enabled","scope":"","actions":["push"],"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '450' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 09 Jun 2021 09:51:57 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + 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: + - acr webhook update + Connection: + - keep-alive + ParameterSetName: + - -n -r --headers --scope + User-Agent: + - AZURECLI/2.23.0 azsdk-python-azure-mgmt-resource/16.1.0 Python/3.7.4 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resources?$filter=resourceType%20eq%20%27Microsoft.ContainerRegistry%2Fregistries%27&api-version=2019-10-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg2gioom5g6sdfecxozqvzkyz36gbdveipmxgjq32v5b2jevhnye2c46alqvusovbth/providers/Microsoft.ContainerRegistry/registries/cliregycwk64yr6dzl26","name":"cliregycwk64yr6dzl26","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg4flauzafzkkvuqorn3kv66j3vwbrmcu6rjfdzdx7adby6bhyswosxk3zaa26czqb2/providers/Microsoft.ContainerRegistry/registries/cliregkz5wk3kdbgrpgo","name":"cliregkz5wk3kdbgrpgo","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg4mvmupf5cfngr6bpvcwozzbynvwd4wn4mzpwetgwbggzabzjf3morznjcxhl46jyc/providers/Microsoft.ContainerRegistry/registries/testreggh2ixk3zbqci7","name":"testreggh2ixk3zbqci7","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg5xvkyek6sydr3fddwldewju7nnwoqtov6gmjp47qchyl7kvrjey6zzqygiqmdvvcs/providers/Microsoft.ContainerRegistry/registries/testreg3j5jpgvzkgulr","name":"testreg3j5jpgvzkgulr","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"eastus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg7jvf5ogrhhklcjdmg26cbmztv4fnqoeemacvupin4y5cb52m3vusbcpfqfbxdev2l/providers/Microsoft.ContainerRegistry/registries/testregtoraoblnyje47","name":"testregtoraoblnyje47","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"eastus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgbvlqx7gu6n4jqvtpnlt4nldddtkjlxhay66sodv7i6u6vgroz7oe44cmry2dtk4li/providers/Microsoft.ContainerRegistry/registries/cliregnvfbyuoulyaadx","name":"cliregnvfbyuoulyaadx","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"eastus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgkodflossvlrtdcutd3tsbaqfpf3clcgla2jpoesantpv7r65vfjkfaseezggrdtqe/providers/Microsoft.ContainerRegistry/registries/clireglnhw3gwnmph5zq","name":"clireglnhw3gwnmph5zq","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"eastus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgla2jf4dhfa5zlhvgblvb7pc2k5qmzgqoln4jwnqlm7mujzhmjqlutp3ct3mnbzef4/providers/Microsoft.ContainerRegistry/registries/testregdkgukdwafkz6n","name":"testregdkgukdwafkz6n","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgmpxibeifsscj7vdu5octulyigqa6qbv6f46twircunavm6rz3rgqpb2dqxozmwgrx/providers/Microsoft.ContainerRegistry/registries/clireghbrwwggmyjmcan","name":"clireghbrwwggmyjmcan","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgqdcy4hy4stnsotey4u3r6g2ypzkz4h3h5sifah22lti32mmdgkhucc5k3bsztmmtk/providers/Microsoft.ContainerRegistry/registries/cliregijv3s2vkl7qs5y","name":"cliregijv3s2vkl7qs5y","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{"foo":"bar","cat":""}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgqvzw5y6urjywpun42hc54uuxqtbknbuinek2kboan73cppvdaugcukekvtxwbruam/providers/Microsoft.ContainerRegistry/registries/cliregom42uovjcuoyiy","name":"cliregom42uovjcuoyiy","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgtiulf6ijln5qluvjeh4t4f5rqheyvohp5cipi6yn3a64gm2nuzehunmhf6jiugude/providers/Microsoft.ContainerRegistry/registries/cliregi2v7evlpkv32qp","name":"cliregi2v7evlpkv32qp","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{"foo":"bar","cat":""}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgtyd5juesmlqjruliqhmbl3a4kivwdthc2hb5t2s5cdpagfwgxwouaubita2ojtdwf/providers/Microsoft.ContainerRegistry/registries/testregxwhua2uf3hgacglxyi","name":"testregxwhua2uf3hgacglxyi","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgxliqwb7knsasst45o5y5x2kf7tietsavemnkiv6e4e34u5vh4cloczizpcmttujlg/providers/Microsoft.ContainerRegistry/registries/cliregevouozd2avf4xu","name":"cliregevouozd2avf4xu","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testacr/providers/Microsoft.ContainerRegistry/registries/testacr1986","name":"testacr1986","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"eastus","tags":{}}]}' + headers: + cache-control: + - no-cache + content-length: + - '5933' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 09 Jun 2021 09:51:58 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: '{"properties": {"customHeaders": {"key": "value"}, "scope": "hello-world"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - acr webhook update + Connection: + - keep-alive + Content-Length: + - '75' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -n -r --headers --scope + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerregistry/3.0.0rc17 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: PATCH + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/webhooks/cliregwebhook?api-version=2019-05-01 + response: + body: + string: '{"type":"Microsoft.ContainerRegistry/registries/webhooks","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/webhooks/cliregwebhook","name":"cliregwebhook","location":"westus","tags":{},"properties":{"status":"enabled","scope":"hello-world","actions":["push"],"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '461' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 09 Jun 2021 09:51:58 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - acr webhook get-config + Connection: + - keep-alive + ParameterSetName: + - -n -r + User-Agent: + - AZURECLI/2.23.0 azsdk-python-azure-mgmt-resource/16.1.0 Python/3.7.4 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resources?$filter=resourceType%20eq%20%27Microsoft.ContainerRegistry%2Fregistries%27&api-version=2019-10-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg2gioom5g6sdfecxozqvzkyz36gbdveipmxgjq32v5b2jevhnye2c46alqvusovbth/providers/Microsoft.ContainerRegistry/registries/cliregycwk64yr6dzl26","name":"cliregycwk64yr6dzl26","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg4flauzafzkkvuqorn3kv66j3vwbrmcu6rjfdzdx7adby6bhyswosxk3zaa26czqb2/providers/Microsoft.ContainerRegistry/registries/cliregkz5wk3kdbgrpgo","name":"cliregkz5wk3kdbgrpgo","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg4mvmupf5cfngr6bpvcwozzbynvwd4wn4mzpwetgwbggzabzjf3morznjcxhl46jyc/providers/Microsoft.ContainerRegistry/registries/testreggh2ixk3zbqci7","name":"testreggh2ixk3zbqci7","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg5xvkyek6sydr3fddwldewju7nnwoqtov6gmjp47qchyl7kvrjey6zzqygiqmdvvcs/providers/Microsoft.ContainerRegistry/registries/testreg3j5jpgvzkgulr","name":"testreg3j5jpgvzkgulr","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"eastus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg7jvf5ogrhhklcjdmg26cbmztv4fnqoeemacvupin4y5cb52m3vusbcpfqfbxdev2l/providers/Microsoft.ContainerRegistry/registries/testregtoraoblnyje47","name":"testregtoraoblnyje47","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"eastus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgbvlqx7gu6n4jqvtpnlt4nldddtkjlxhay66sodv7i6u6vgroz7oe44cmry2dtk4li/providers/Microsoft.ContainerRegistry/registries/cliregnvfbyuoulyaadx","name":"cliregnvfbyuoulyaadx","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"eastus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgkodflossvlrtdcutd3tsbaqfpf3clcgla2jpoesantpv7r65vfjkfaseezggrdtqe/providers/Microsoft.ContainerRegistry/registries/clireglnhw3gwnmph5zq","name":"clireglnhw3gwnmph5zq","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"eastus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgla2jf4dhfa5zlhvgblvb7pc2k5qmzgqoln4jwnqlm7mujzhmjqlutp3ct3mnbzef4/providers/Microsoft.ContainerRegistry/registries/testregdkgukdwafkz6n","name":"testregdkgukdwafkz6n","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgmpxibeifsscj7vdu5octulyigqa6qbv6f46twircunavm6rz3rgqpb2dqxozmwgrx/providers/Microsoft.ContainerRegistry/registries/clireghbrwwggmyjmcan","name":"clireghbrwwggmyjmcan","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgqdcy4hy4stnsotey4u3r6g2ypzkz4h3h5sifah22lti32mmdgkhucc5k3bsztmmtk/providers/Microsoft.ContainerRegistry/registries/cliregijv3s2vkl7qs5y","name":"cliregijv3s2vkl7qs5y","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{"foo":"bar","cat":""}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgqvzw5y6urjywpun42hc54uuxqtbknbuinek2kboan73cppvdaugcukekvtxwbruam/providers/Microsoft.ContainerRegistry/registries/cliregom42uovjcuoyiy","name":"cliregom42uovjcuoyiy","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgtiulf6ijln5qluvjeh4t4f5rqheyvohp5cipi6yn3a64gm2nuzehunmhf6jiugude/providers/Microsoft.ContainerRegistry/registries/cliregi2v7evlpkv32qp","name":"cliregi2v7evlpkv32qp","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{"foo":"bar","cat":""}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgtyd5juesmlqjruliqhmbl3a4kivwdthc2hb5t2s5cdpagfwgxwouaubita2ojtdwf/providers/Microsoft.ContainerRegistry/registries/testregxwhua2uf3hgacglxyi","name":"testregxwhua2uf3hgacglxyi","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgxliqwb7knsasst45o5y5x2kf7tietsavemnkiv6e4e34u5vh4cloczizpcmttujlg/providers/Microsoft.ContainerRegistry/registries/cliregevouozd2avf4xu","name":"cliregevouozd2avf4xu","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testacr/providers/Microsoft.ContainerRegistry/registries/testacr1986","name":"testacr1986","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"eastus","tags":{}}]}' + headers: + cache-control: + - no-cache + content-length: + - '5933' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 09 Jun 2021 09:51:58 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: + - acr webhook get-config + Connection: + - keep-alive + ParameterSetName: + - -n -r + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerregistry/3.0.0rc17 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002?api-version=2019-05-01 + response: + body: + string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2021-06-09T09:51:54.5879406Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2021-06-09T09:51:55.5301004+00:00","status":"disabled"}}}}' + headers: + cache-control: + - no-cache + content-length: + - '748' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 09 Jun 2021 09:51:58 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + 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: + - acr webhook get-config + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -n -r + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerregistry/3.0.0rc17 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/webhooks/cliregwebhook/getCallbackConfig?api-version=2019-05-01 + response: + body: + string: '{"serviceUri":"http://www.microsoft.com","customHeaders":{"key":"value"}}' + headers: + cache-control: + - no-cache + content-length: + - '73' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 09 Jun 2021 09:51:59 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + 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: + - acr webhook ping + Connection: + - keep-alive + ParameterSetName: + - -n -r + User-Agent: + - AZURECLI/2.23.0 azsdk-python-azure-mgmt-resource/16.1.0 Python/3.7.4 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resources?$filter=resourceType%20eq%20%27Microsoft.ContainerRegistry%2Fregistries%27&api-version=2019-10-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg2gioom5g6sdfecxozqvzkyz36gbdveipmxgjq32v5b2jevhnye2c46alqvusovbth/providers/Microsoft.ContainerRegistry/registries/cliregycwk64yr6dzl26","name":"cliregycwk64yr6dzl26","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg4flauzafzkkvuqorn3kv66j3vwbrmcu6rjfdzdx7adby6bhyswosxk3zaa26czqb2/providers/Microsoft.ContainerRegistry/registries/cliregkz5wk3kdbgrpgo","name":"cliregkz5wk3kdbgrpgo","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg4mvmupf5cfngr6bpvcwozzbynvwd4wn4mzpwetgwbggzabzjf3morznjcxhl46jyc/providers/Microsoft.ContainerRegistry/registries/testreggh2ixk3zbqci7","name":"testreggh2ixk3zbqci7","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg5xvkyek6sydr3fddwldewju7nnwoqtov6gmjp47qchyl7kvrjey6zzqygiqmdvvcs/providers/Microsoft.ContainerRegistry/registries/testreg3j5jpgvzkgulr","name":"testreg3j5jpgvzkgulr","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"eastus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg7jvf5ogrhhklcjdmg26cbmztv4fnqoeemacvupin4y5cb52m3vusbcpfqfbxdev2l/providers/Microsoft.ContainerRegistry/registries/testregtoraoblnyje47","name":"testregtoraoblnyje47","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"eastus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgbvlqx7gu6n4jqvtpnlt4nldddtkjlxhay66sodv7i6u6vgroz7oe44cmry2dtk4li/providers/Microsoft.ContainerRegistry/registries/cliregnvfbyuoulyaadx","name":"cliregnvfbyuoulyaadx","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"eastus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgkodflossvlrtdcutd3tsbaqfpf3clcgla2jpoesantpv7r65vfjkfaseezggrdtqe/providers/Microsoft.ContainerRegistry/registries/clireglnhw3gwnmph5zq","name":"clireglnhw3gwnmph5zq","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"eastus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgla2jf4dhfa5zlhvgblvb7pc2k5qmzgqoln4jwnqlm7mujzhmjqlutp3ct3mnbzef4/providers/Microsoft.ContainerRegistry/registries/testregdkgukdwafkz6n","name":"testregdkgukdwafkz6n","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgmpxibeifsscj7vdu5octulyigqa6qbv6f46twircunavm6rz3rgqpb2dqxozmwgrx/providers/Microsoft.ContainerRegistry/registries/clireghbrwwggmyjmcan","name":"clireghbrwwggmyjmcan","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgqdcy4hy4stnsotey4u3r6g2ypzkz4h3h5sifah22lti32mmdgkhucc5k3bsztmmtk/providers/Microsoft.ContainerRegistry/registries/cliregijv3s2vkl7qs5y","name":"cliregijv3s2vkl7qs5y","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{"foo":"bar","cat":""}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgqvzw5y6urjywpun42hc54uuxqtbknbuinek2kboan73cppvdaugcukekvtxwbruam/providers/Microsoft.ContainerRegistry/registries/cliregom42uovjcuoyiy","name":"cliregom42uovjcuoyiy","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgtiulf6ijln5qluvjeh4t4f5rqheyvohp5cipi6yn3a64gm2nuzehunmhf6jiugude/providers/Microsoft.ContainerRegistry/registries/cliregi2v7evlpkv32qp","name":"cliregi2v7evlpkv32qp","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{"foo":"bar","cat":""}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgtyd5juesmlqjruliqhmbl3a4kivwdthc2hb5t2s5cdpagfwgxwouaubita2ojtdwf/providers/Microsoft.ContainerRegistry/registries/testregxwhua2uf3hgacglxyi","name":"testregxwhua2uf3hgacglxyi","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgxliqwb7knsasst45o5y5x2kf7tietsavemnkiv6e4e34u5vh4cloczizpcmttujlg/providers/Microsoft.ContainerRegistry/registries/cliregevouozd2avf4xu","name":"cliregevouozd2avf4xu","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testacr/providers/Microsoft.ContainerRegistry/registries/testacr1986","name":"testacr1986","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"eastus","tags":{}}]}' + headers: + cache-control: + - no-cache + content-length: + - '5933' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 09 Jun 2021 09:51:59 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: + - acr webhook ping + Connection: + - keep-alive + ParameterSetName: + - -n -r + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerregistry/3.0.0rc17 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002?api-version=2019-05-01 + response: + body: + string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2021-06-09T09:51:54.5879406Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2021-06-09T09:51:55.5301004+00:00","status":"disabled"}}}}' + headers: + cache-control: + - no-cache + content-length: + - '748' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 09 Jun 2021 09:51:59 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + 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: + - acr webhook ping + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -n -r + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerregistry/3.0.0rc17 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/webhooks/cliregwebhook/ping?api-version=2019-05-01 + response: + body: + string: '{"id":"0fab0ae6-2913-4622-b62f-ede2fc16c3b2"}' + headers: + cache-control: + - no-cache + content-length: + - '45' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 09 Jun 2021 09:51:59 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - acr webhook list-events + Connection: + - keep-alive + ParameterSetName: + - -n -r + User-Agent: + - AZURECLI/2.23.0 azsdk-python-azure-mgmt-resource/16.1.0 Python/3.7.4 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resources?$filter=resourceType%20eq%20%27Microsoft.ContainerRegistry%2Fregistries%27&api-version=2019-10-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg2gioom5g6sdfecxozqvzkyz36gbdveipmxgjq32v5b2jevhnye2c46alqvusovbth/providers/Microsoft.ContainerRegistry/registries/cliregycwk64yr6dzl26","name":"cliregycwk64yr6dzl26","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg4flauzafzkkvuqorn3kv66j3vwbrmcu6rjfdzdx7adby6bhyswosxk3zaa26czqb2/providers/Microsoft.ContainerRegistry/registries/cliregkz5wk3kdbgrpgo","name":"cliregkz5wk3kdbgrpgo","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg4mvmupf5cfngr6bpvcwozzbynvwd4wn4mzpwetgwbggzabzjf3morznjcxhl46jyc/providers/Microsoft.ContainerRegistry/registries/testreggh2ixk3zbqci7","name":"testreggh2ixk3zbqci7","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg5xvkyek6sydr3fddwldewju7nnwoqtov6gmjp47qchyl7kvrjey6zzqygiqmdvvcs/providers/Microsoft.ContainerRegistry/registries/testreg3j5jpgvzkgulr","name":"testreg3j5jpgvzkgulr","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"eastus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg7jvf5ogrhhklcjdmg26cbmztv4fnqoeemacvupin4y5cb52m3vusbcpfqfbxdev2l/providers/Microsoft.ContainerRegistry/registries/testregtoraoblnyje47","name":"testregtoraoblnyje47","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"eastus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgbvlqx7gu6n4jqvtpnlt4nldddtkjlxhay66sodv7i6u6vgroz7oe44cmry2dtk4li/providers/Microsoft.ContainerRegistry/registries/cliregnvfbyuoulyaadx","name":"cliregnvfbyuoulyaadx","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"eastus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgkodflossvlrtdcutd3tsbaqfpf3clcgla2jpoesantpv7r65vfjkfaseezggrdtqe/providers/Microsoft.ContainerRegistry/registries/clireglnhw3gwnmph5zq","name":"clireglnhw3gwnmph5zq","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"eastus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgla2jf4dhfa5zlhvgblvb7pc2k5qmzgqoln4jwnqlm7mujzhmjqlutp3ct3mnbzef4/providers/Microsoft.ContainerRegistry/registries/testregdkgukdwafkz6n","name":"testregdkgukdwafkz6n","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgmpxibeifsscj7vdu5octulyigqa6qbv6f46twircunavm6rz3rgqpb2dqxozmwgrx/providers/Microsoft.ContainerRegistry/registries/clireghbrwwggmyjmcan","name":"clireghbrwwggmyjmcan","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgqdcy4hy4stnsotey4u3r6g2ypzkz4h3h5sifah22lti32mmdgkhucc5k3bsztmmtk/providers/Microsoft.ContainerRegistry/registries/cliregijv3s2vkl7qs5y","name":"cliregijv3s2vkl7qs5y","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{"foo":"bar","cat":""}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgqvzw5y6urjywpun42hc54uuxqtbknbuinek2kboan73cppvdaugcukekvtxwbruam/providers/Microsoft.ContainerRegistry/registries/cliregom42uovjcuoyiy","name":"cliregom42uovjcuoyiy","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgtiulf6ijln5qluvjeh4t4f5rqheyvohp5cipi6yn3a64gm2nuzehunmhf6jiugude/providers/Microsoft.ContainerRegistry/registries/cliregi2v7evlpkv32qp","name":"cliregi2v7evlpkv32qp","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{"foo":"bar","cat":""}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgtyd5juesmlqjruliqhmbl3a4kivwdthc2hb5t2s5cdpagfwgxwouaubita2ojtdwf/providers/Microsoft.ContainerRegistry/registries/testregxwhua2uf3hgacglxyi","name":"testregxwhua2uf3hgacglxyi","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgxliqwb7knsasst45o5y5x2kf7tietsavemnkiv6e4e34u5vh4cloczizpcmttujlg/providers/Microsoft.ContainerRegistry/registries/cliregevouozd2avf4xu","name":"cliregevouozd2avf4xu","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testacr/providers/Microsoft.ContainerRegistry/registries/testacr1986","name":"testacr1986","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"eastus","tags":{}}]}' + headers: + cache-control: + - no-cache + content-length: + - '5933' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 09 Jun 2021 09:52:00 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: + - acr webhook list-events + Connection: + - keep-alive + ParameterSetName: + - -n -r + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerregistry/3.0.0rc17 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002?api-version=2019-05-01 + response: + body: + string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2021-06-09T09:51:54.5879406Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2021-06-09T09:51:55.5301004+00:00","status":"disabled"}}}}' + headers: + cache-control: + - no-cache + content-length: + - '748' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 09 Jun 2021 09:52:00 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + 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: + - acr webhook list-events + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -n -r + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerregistry/3.0.0rc17 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/webhooks/cliregwebhook/listEvents?api-version=2019-05-01 + response: + body: + string: '{"value":[{"eventRequestMessage":{"content":{"id":"0fab0ae6-2913-4622-b62f-ede2fc16c3b2","timestamp":"2021-06-09T09:52:00.5661893Z","action":"ping"},"headers":{"key":"value","Content-Type":"application/json; + charset=utf-8","Content-Length":"104"},"method":"POST","requestUri":"http://www.microsoft.com/","version":"1.1"},"eventResponseMessage":{"content":"\r\nYour + request has been blocked. This could be\r\n due to + several reasons. i_ps due to track 2 naming issue @@ -68,16 +67,28 @@ def configure_load_balancer_profile(managed_outbound_ip_count, outbound_ips, out profile.outbound_ip_prefixes = None if managed_outbound_ip_count: # ips -> i_ps due to track 2 naming issue + ManagedClusterLoadBalancerProfileManagedOutboundIPs = cmd.get_models( + 'ManagedClusterLoadBalancerProfileManagedOutboundIPs', + resource_type=ResourceType.MGMT_CONTAINERSERVICE, + operation_group='managed_clusters') profile.managed_outbound_i_ps = ManagedClusterLoadBalancerProfileManagedOutboundIPs( count=managed_outbound_ip_count ) if outbound_ip_resources: # ips -> i_ps due to track 2 naming issue + ManagedClusterLoadBalancerProfileOutboundIPs = cmd.get_models( + 'ManagedClusterLoadBalancerProfileOutboundIPs', + resource_type=ResourceType.MGMT_CONTAINERSERVICE, + operation_group='managed_clusters') profile.outbound_i_ps = ManagedClusterLoadBalancerProfileOutboundIPs( # ips -> i_ps due to track 2 naming issue public_i_ps=outbound_ip_resources ) if outbound_ip_prefix_resources: + ManagedClusterLoadBalancerProfileOutboundIPPrefixes = cmd.get_models( + 'ManagedClusterLoadBalancerProfileOutboundIPPrefixes', + resource_type=ResourceType.MGMT_CONTAINERSERVICE, + operation_group='managed_clusters') profile.outbound_ip_prefixes = ManagedClusterLoadBalancerProfileOutboundIPPrefixes( public_ip_prefixes=outbound_ip_prefix_resources ) @@ -97,9 +108,11 @@ def is_load_balancer_profile_provided(managed_outbound_ip_count, outbound_ips, i idle_timeout]) -def _get_load_balancer_outbound_ips(load_balancer_outbound_ips): +def _get_load_balancer_outbound_ips(cmd, load_balancer_outbound_ips): """parse load balancer profile outbound IP ids and return an array of references to the outbound IP resources""" load_balancer_outbound_ip_resources = None + ResourceReference = cmd.get_models('ResourceReference', resource_type=ResourceType.MGMT_CONTAINERSERVICE, + operation_group='managed_clusters') if load_balancer_outbound_ips: load_balancer_outbound_ip_resources = \ [ResourceReference(id=x.strip()) @@ -107,10 +120,12 @@ def _get_load_balancer_outbound_ips(load_balancer_outbound_ips): return load_balancer_outbound_ip_resources -def _get_load_balancer_outbound_ip_prefixes(load_balancer_outbound_ip_prefixes): +def _get_load_balancer_outbound_ip_prefixes(cmd, load_balancer_outbound_ip_prefixes): """parse load balancer profile outbound IP prefix ids and return an array \ of references to the outbound IP prefix resources""" load_balancer_outbound_ip_prefix_resources = None + ResourceReference = cmd.get_models('ResourceReference', resource_type=ResourceType.MGMT_CONTAINERSERVICE, + operation_group='managed_clusters') if load_balancer_outbound_ip_prefixes: load_balancer_outbound_ip_prefix_resources = \ [ResourceReference(id=x.strip()) diff --git a/src/azure-cli/azure/cli/command_modules/acs/_params.py b/src/azure-cli/azure/cli/command_modules/acs/_params.py index 5d43905d975..a8149fe83a7 100644 --- a/src/azure-cli/azure/cli/command_modules/acs/_params.py +++ b/src/azure-cli/azure/cli/command_modules/acs/_params.py @@ -12,6 +12,7 @@ from azure.cli.core.commands.parameters import ( file_type, get_enum_type, get_resource_name_completion_list, name_type, tags_type, zones_type) from azure.cli.core.commands.validators import validate_file_or_dict +from azure.cli.core.profiles import ResourceType from knack.arguments import CLIArgumentType from ._completers import ( @@ -157,7 +158,7 @@ def load_arguments(self, _): completer=FilesCompleter(), help='Path to an SSH key file to use.') # AKS command argument configuration - with self.argument_context('aks') as c: + with self.argument_context('aks', resource_type=ResourceType.MGMT_CONTAINERSERVICE, operation_group='managed_clusters') as c: c.argument('resource_name', name_type, help='Name of the managed cluster.', completer=get_resource_name_completion_list('Microsoft.ContainerService/ManagedClusters')) c.argument('name', name_type, help='Name of the managed cluster.', @@ -167,7 +168,7 @@ def load_arguments(self, _): c.argument('node_count', options_list=['--node-count', '-c'], type=int) c.argument('tags', tags_type) - with self.argument_context('aks create') as c: + with self.argument_context('aks create', resource_type=ResourceType.MGMT_CONTAINERSERVICE, operation_group='managed_clusters') as c: c.argument('name', validator=validate_linux_host_name) c.argument('kubernetes_version', completer=get_k8s_versions_completion_list) @@ -265,7 +266,7 @@ def load_arguments(self, _): '--yes', '-y'], help='Do not prompt for confirmation.', action='store_true') c.argument('enable_sgxquotehelper', action='store_true') - with self.argument_context('aks update') as c: + with self.argument_context('aks update', resource_type=ResourceType.MGMT_CONTAINERSERVICE, operation_group='managed_clusters') as c: c.argument('attach_acr', acr_arg_type, validator=validate_acr) c.argument('detach_acr', acr_arg_type, validator=validate_acr) @@ -303,10 +304,10 @@ def load_arguments(self, _): c.argument('yes', options_list=[ '--yes', '-y'], help='Do not prompt for confirmation.', action='store_true') - with self.argument_context('aks disable-addons') as c: + with self.argument_context('aks disable-addons', resource_type=ResourceType.MGMT_CONTAINERSERVICE, operation_group='managed_clusters') as c: c.argument('addons', options_list=['--addons', '-a']) - with self.argument_context('aks enable-addons') as c: + with self.argument_context('aks enable-addons', resource_type=ResourceType.MGMT_CONTAINERSERVICE, operation_group='managed_clusters') as c: c.argument('addons', options_list=['--addons', '-a']) c.argument('subnet_name', options_list=[ '--subnet-name', '-s'], help='Name of an existing subnet to use with the virtual-node add-on.') @@ -322,7 +323,7 @@ def load_arguments(self, _): '--appgw-watch-namespace'], arg_group='Application Gateway') c.argument('enable_sgxquotehelper', action='store_true') - with self.argument_context('aks get-credentials') as c: + with self.argument_context('aks get-credentials', resource_type=ResourceType.MGMT_CONTAINERSERVICE, operation_group='managed_clusters') as c: c.argument('admin', options_list=['--admin', '-a'], default=False) c.argument('context_name', options_list=['--context'], help='If specified, overwrite the default context name.') @@ -356,17 +357,17 @@ def load_arguments(self, _): c.argument('aad_server_app_secret') c.argument('aad_tenant_id') - with self.argument_context('aks upgrade') as c: + with self.argument_context('aks upgrade', resource_type=ResourceType.MGMT_CONTAINERSERVICE, operation_group='managed_clusters') as c: c.argument('kubernetes_version', completer=get_k8s_upgrades_completion_list) c.argument('yes', options_list=[ '--yes', '-y'], help='Do not prompt for confirmation.', action='store_true') - with self.argument_context('aks scale') as c: + with self.argument_context('aks scale', resource_type=ResourceType.MGMT_CONTAINERSERVICE, operation_group='managed_clusters') as c: c.argument('nodepool_name', type=str, help='Node pool name, up to 12 alphanumeric characters', validator=validate_nodepool_name) - with self.argument_context('aks nodepool') as c: + with self.argument_context('aks nodepool', resource_type=ResourceType.MGMT_CONTAINERSERVICE, operation_group='managed_clusters') as c: c.argument('cluster_name', type=str, help='The cluster name.') for scope in ['aks nodepool add']: @@ -405,7 +406,7 @@ def load_arguments(self, _): c.argument('nodepool_name', type=str, options_list=[ '--name', '-n'], validator=validate_nodepool_name, help='The node pool name.') - with self.argument_context('aks nodepool update') as c: + with self.argument_context('aks nodepool update', resource_type=ResourceType.MGMT_CONTAINERSERVICE, operation_group='agent_pools') as c: c.argument('enable_cluster_autoscaler', options_list=[ "--enable-cluster-autoscaler", "-e"], action='store_true') c.argument('disable_cluster_autoscaler', options_list=[ @@ -439,7 +440,7 @@ def load_arguments(self, _): '--yes', '-y'], action='store_true', help='Do not prompt for confirmation') # OpenShift command argument configuration - with self.argument_context('openshift') as c: + with self.argument_context('openshift', resource_type=ResourceType.MGMT_CONTAINERSERVICE, operation_group='open_shift_managed_clusters') as c: c.argument('resource_name', name_type, help='Name of the managed OpenShift cluster.', completer=get_resource_name_completion_list('Microsoft.ContainerService/OpenShiftManagedClusters')) c.argument('name', name_type, help='Name of the managed OpenShift cluster.', @@ -448,14 +449,14 @@ def load_arguments(self, _): '--compute-count', '-c'], type=int, default=4) c.argument('tags', tags_type) - with self.argument_context('openshift create') as c: + with self.argument_context('openshift create', resource_type=ResourceType.MGMT_CONTAINERSERVICE, operation_group='open_shift_managed_clusters') as c: c.argument('name', validator=validate_linux_host_name) c.argument('compute_vm_size', options_list=['--compute-vm-size', '-s']) c.argument('customer_admin_group_id', options_list=[ '--customer-admin-group-id']) c.argument('workspace_id') - with self.argument_context('openshift monitor enable') as c: + with self.argument_context('openshift monitor enable', resource_type=ResourceType.MGMT_CONTAINERSERVICE, operation_group='open_shift_managed_clusters') as c: c.argument( 'workspace_id', help='The resource ID of an existing Log Analytics Workspace to use for storing monitoring data.') diff --git a/src/azure-cli/azure/cli/command_modules/acs/_validators.py b/src/azure-cli/azure/cli/command_modules/acs/_validators.py index a650e3ca351..7bca9a11186 100644 --- a/src/azure-cli/azure/cli/command_modules/acs/_validators.py +++ b/src/azure-cli/azure/cli/command_modules/acs/_validators.py @@ -13,12 +13,13 @@ # pylint: disable=no-name-in-module,import-error from knack.log import get_logger +from azure.cli.core.profiles import ResourceType + from azure.cli.core.commands.validators import validate_tag from azure.cli.core.util import CLIError from azure.cli.core.azclierror import InvalidArgumentValueError import azure.cli.core.keys as keys -from azure.mgmt.containerservice.v2021_03_01.models import ManagedClusterPropertiesAutoScalerProfile logger = get_logger(__name__) @@ -107,7 +108,7 @@ def validate_k8s_version(namespace): 'such as "1.11.8" or "1.12.6"') -def validate_cluster_autoscaler_profile(namespace): +def validate_cluster_autoscaler_profile(cmd, namespace): """ Validates that cluster autoscaler profile is acceptable by: 1. Extracting the key[=value] format to map 2. Validating that the key isn't empty and that the key is valid @@ -116,12 +117,15 @@ def validate_cluster_autoscaler_profile(namespace): _extract_cluster_autoscaler_params(namespace) if namespace.cluster_autoscaler_profile is not None: for key in namespace.cluster_autoscaler_profile.keys(): - _validate_cluster_autoscaler_key(key) + _validate_cluster_autoscaler_key(cmd, key) -def _validate_cluster_autoscaler_key(key): +def _validate_cluster_autoscaler_key(cmd, key): if not key: raise CLIError('Empty key specified for cluster-autoscaler-profile') + ManagedClusterPropertiesAutoScalerProfile = cmd.get_models('ManagedClusterPropertiesAutoScalerProfile', + resource_type=ResourceType.MGMT_CONTAINERSERVICE, + operation_group='managed_clusters') valid_keys = list(k.replace("_", "-") for k, v in ManagedClusterPropertiesAutoScalerProfile._attribute_map.items()) # pylint: disable=protected-access if key not in valid_keys: raise CLIError("'{0}' is an invalid key for cluster-autoscaler-profile. " diff --git a/src/azure-cli/azure/cli/command_modules/acs/commands.py b/src/azure-cli/azure/cli/command_modules/acs/commands.py index 7998ee57ca5..13b0fde6010 100644 --- a/src/azure-cli/azure/cli/command_modules/acs/commands.py +++ b/src/azure-cli/azure/cli/command_modules/acs/commands.py @@ -6,6 +6,7 @@ # pylint: disable=no-name-in-module,import-error from azure.cli.core.commands import CliCommandType from azure.cli.core.commands.arm import deployment_validate_table_format +from azure.cli.core.profiles import ResourceType from ._client_factory import cf_container_services from ._client_factory import cf_managed_clusters @@ -25,26 +26,33 @@ def load_command_table(self, _): container_services_sdk = CliCommandType( - operations_tmpl='azure.mgmt.containerservice.v2017_07_01.operations.' + operations_tmpl='azure.mgmt.containerservice.operations.' '_container_services_operations#ContainerServicesOperations.{}', + operation_group='container_services', + resource_type=ResourceType.MGMT_CONTAINERSERVICE, client_factory=cf_container_services ) managed_clusters_sdk = CliCommandType( - operations_tmpl='azure.mgmt.containerservice.v2021_03_01.operations.' + operations_tmpl='azure.mgmt.containerservice.operations.' '_managed_clusters_operations#ManagedClustersOperations.{}', + operation_group='managed_clusters', + resource_type=ResourceType.MGMT_CONTAINERSERVICE, client_factory=cf_managed_clusters ) agent_pools_sdk = CliCommandType( operations_tmpl='azext_aks_preview.vendored_sdks.azure_mgmt_preview_aks.' 'operations._agent_pools_operations#AgentPoolsOperations.{}', + resource_type=ResourceType.MGMT_CONTAINERSERVICE, client_factory=cf_managed_clusters ) openshift_managed_clusters_sdk = CliCommandType( - operations_tmpl='azure.mgmt.containerservice.v2018_09_30_preview.operations.' + operations_tmpl='azure.mgmt.containerservice.operations.' '_open_shift_managed_clusters_operations#OpenShiftManagedClustersOperations.{}', + operation_group='open_shift_managed_clusters', + resource_type=ResourceType.MGMT_CONTAINERSERVICE, client_factory=cf_openshift_managed_clusters ) @@ -71,13 +79,15 @@ def load_command_table(self, _): client_factory=None) # ACS Kubernetes commands - with self.command_group('acs kubernetes', container_services_sdk, client_factory=cf_container_services) as g: + with self.command_group('acs kubernetes', container_services_sdk, + client_factory=cf_container_services) as g: g.custom_command('browse', 'k8s_browse') g.custom_command('get-credentials', 'k8s_get_credentials') g.custom_command('install-cli', 'k8s_install_cli', client_factory=None) # AKS commands - with self.command_group('aks', managed_clusters_sdk, client_factory=cf_managed_clusters) as g: + with self.command_group('aks', managed_clusters_sdk, + client_factory=cf_managed_clusters) as g: g.custom_command('browse', 'aks_browse') g.custom_command('create', 'aks_create', supports_no_wait=True) g.custom_command('update', 'aks_update', supports_no_wait=True) @@ -107,15 +117,17 @@ def load_command_table(self, _): confirmation='Kubernetes will be unavailable during certificate rotation process.\n' + 'Are you sure you want to perform this operation?') g.wait_command('wait') - g.command('stop', 'begin_stop', supports_no_wait=True) - g.command('start', 'begin_start', supports_no_wait=True) + g.command('stop', 'begin_stop', supports_no_wait=True, min_api='2020-09-01') + g.command('start', 'begin_start', supports_no_wait=True, min_api='2020-09-01') with self.command_group('aks', container_services_sdk, client_factory=cf_container_services) as g: g.custom_command('get-versions', 'aks_get_versions', table_transformer=aks_versions_table_format) # AKS agent pool commands - with self.command_group('aks nodepool', agent_pools_sdk, client_factory=cf_agent_pools) as g: + with self.command_group('aks nodepool', + agent_pools_sdk, + client_factory=cf_agent_pools) as g: g.custom_command('list', 'aks_agentpool_list', table_transformer=aks_agentpool_list_table_format) g.custom_show_command('show', 'aks_agentpool_show', diff --git a/src/azure-cli/azure/cli/command_modules/acs/custom.py b/src/azure-cli/azure/cli/command_modules/acs/custom.py index bb8a35e0795..4410618f1e3 100644 --- a/src/azure-cli/azure/cli/command_modules/acs/custom.py +++ b/src/azure-cli/azure/cli/command_modules/acs/custom.py @@ -53,6 +53,7 @@ MutuallyExclusiveArgumentError, ValidationError) from azure.cli.core._profile import Profile +from azure.cli.core.profiles import ResourceType from azure.cli.core.commands.client_factory import get_mgmt_service_client, get_subscription_id from azure.cli.core.keys import is_valid_ssh_rsa_public_key from azure.cli.core.util import in_cloud_console, shell_safe_json_parse, truncate_text, sdk_no_wait @@ -67,34 +68,6 @@ from azure.mgmt.containerservice.models import ContainerServiceOrchestratorTypes -from azure.mgmt.containerservice.v2021_03_01.models import ContainerServiceNetworkProfile -from azure.mgmt.containerservice.v2021_03_01.models import ContainerServiceLinuxProfile -from azure.mgmt.containerservice.v2021_03_01.models import ManagedClusterServicePrincipalProfile -from azure.mgmt.containerservice.v2021_03_01.models import ContainerServiceSshConfiguration -from azure.mgmt.containerservice.v2021_03_01.models import ContainerServiceSshPublicKey -from azure.mgmt.containerservice.v2021_03_01.models import ManagedCluster -from azure.mgmt.containerservice.v2021_03_01.models import ManagedClusterAADProfile -from azure.mgmt.containerservice.v2021_03_01.models import ManagedClusterAddonProfile -from azure.mgmt.containerservice.v2021_03_01.models import ManagedClusterAgentPoolProfile -from azure.mgmt.containerservice.v2021_03_01.models import ManagedClusterIdentity -from azure.mgmt.containerservice.v2021_03_01.models import AgentPool -from azure.mgmt.containerservice.v2021_03_01.models import AgentPoolUpgradeSettings -from azure.mgmt.containerservice.v2021_03_01.models import ManagedClusterSKU -from azure.mgmt.containerservice.v2021_03_01.models import ManagedClusterWindowsProfile -from azure.mgmt.containerservice.v2021_03_01.models import ( - Components1Umhcm8SchemasManagedclusteridentityPropertiesUserassignedidentitiesAdditionalproperties) -from azure.mgmt.containerservice.v2021_03_01.models import RunCommandRequest - -from azure.mgmt.containerservice.v2019_09_30_preview.models import OpenShiftManagedClusterAgentPoolProfile -from azure.mgmt.containerservice.v2019_09_30_preview.models import OpenShiftAgentPoolProfileRole -from azure.mgmt.containerservice.v2019_09_30_preview.models import OpenShiftManagedClusterIdentityProvider -from azure.mgmt.containerservice.v2019_09_30_preview.models import OpenShiftManagedClusterAADIdentityProvider -from azure.mgmt.containerservice.v2019_09_30_preview.models import OpenShiftManagedCluster -from azure.mgmt.containerservice.v2019_09_30_preview.models import OpenShiftRouterProfile -from azure.mgmt.containerservice.v2019_09_30_preview.models import OpenShiftManagedClusterAuthProfile -from azure.mgmt.containerservice.v2019_09_30_preview.models import NetworkProfile -from azure.mgmt.containerservice.v2019_09_30_preview.models import OpenShiftManagedClusterMonitorProfile - from ._client_factory import cf_container_services from ._client_factory import cf_resource_groups from ._client_factory import get_auth_management_client @@ -130,7 +103,6 @@ logger = get_logger(__name__) - # pylint:disable=too-many-lines,unused-argument @@ -540,9 +512,9 @@ def _build_service_principal(rbac_client, cli_ctx, name, url, client_secret): return service_principal, aad_session_key -def _add_role_assignment(cli_ctx, role, service_principal_msi_id, is_service_principal=True, delay=2, scope=None): +def _add_role_assignment(cmd, role, service_principal_msi_id, is_service_principal=True, delay=2, scope=None): # AAD can have delays in propagating data, so sleep and retry - hook = cli_ctx.get_progress_controller(True) + hook = cmd.cli_ctx.get_progress_controller(True) hook.add(message='Waiting for AAD role to propagate', value=0, total_val=1.0) logger.info('Waiting for AAD role to propagate') @@ -552,7 +524,7 @@ def _add_role_assignment(cli_ctx, role, service_principal_msi_id, is_service_pri try: # TODO: break this out into a shared utility library create_role_assignment( - cli_ctx, role, service_principal_msi_id, is_service_principal, scope=scope) + cmd, role, service_principal_msi_id, is_service_principal, scope=scope) break except CloudError as ex: if ex.message == 'The role assignment already exists.': @@ -1071,8 +1043,6 @@ def load_service_principals(config_path): def _invoke_deployment(cmd, resource_group_name, deployment_name, template, parameters, validate, no_wait, subscription_id=None): - - from azure.cli.core.profiles import ResourceType DeploymentProperties = cmd.get_models( 'DeploymentProperties', resource_type=ResourceType.MGMT_RESOURCE_RESOURCES) properties = DeploymentProperties( @@ -1445,16 +1415,16 @@ def create_service_principal(cli_ctx, identifier, resolve_app=True, rbac_client= return rbac_client.service_principals.create(ServicePrincipalCreateParameters(app_id=app_id, account_enabled=True)) -def create_role_assignment(cli_ctx, role, assignee, is_service_principal, resource_group_name=None, scope=None): - return _create_role_assignment(cli_ctx, +def create_role_assignment(cmd, role, assignee, is_service_principal, resource_group_name=None, scope=None): + return _create_role_assignment(cmd, role, assignee, resource_group_name, scope, resolve_assignee=is_service_principal) -def _create_role_assignment(cli_ctx, role, assignee, +def _create_role_assignment(cmd, role, assignee, resource_group_name=None, scope=None, resolve_assignee=True): - from azure.cli.core.profiles import ResourceType, get_sdk - factory = get_auth_management_client(cli_ctx, scope) + from azure.cli.core.profiles import get_sdk + factory = get_auth_management_client(cmd.cli_ctx, scope) assignments_client = factory.role_assignments definitions_client = factory.role_definitions @@ -1466,17 +1436,24 @@ def _create_role_assignment(cli_ctx, role, assignee, # If the cluster has service principal resolve the service principal client id to get the object id, # if not use MSI object id. object_id = _resolve_object_id( - cli_ctx, assignee) if resolve_assignee else assignee + cmd.cli_ctx, assignee) if resolve_assignee else assignee - RoleAssignmentCreateParameters = get_sdk(cli_ctx, ResourceType.MGMT_AUTHORIZATION, - 'RoleAssignmentCreateParameters', mod='models', - operation_group='role_assignments') - parameters = RoleAssignmentCreateParameters( - role_definition_id=role_id, principal_id=object_id) assignment_name = uuid.uuid4() custom_headers = None - # TODO: track2/remove custom headers, depends on 'azure.mgmt.authorization' - return assignments_client.create(scope, assignment_name, parameters, custom_headers=custom_headers) + + RoleAssignmentCreateParameters = get_sdk(cmd.cli_ctx, ResourceType.MGMT_AUTHORIZATION, + 'RoleAssignmentCreateParameters', mod='models', + operation_group='role_assignments') + if cmd.supported_api_version(min_api='2018-01-01-preview', resource_type=ResourceType.MGMT_AUTHORIZATION): + parameters = RoleAssignmentCreateParameters( + role_definition_id=role_id, principal_id=object_id) + return assignments_client.create(scope, assignment_name, parameters, custom_headers=custom_headers) + + RoleAssignmentProperties = get_sdk(cmd.cli_ctx, ResourceType.MGMT_AUTHORIZATION, + 'RoleAssignmentProperties', mod='models', + operation_group='role_assignments') + properties = RoleAssignmentProperties(role_definition_id=role_id, principal_id=object_id) + return assignments_client.create(scope, assignment_name, properties, custom_headers=custom_headers) def _build_role_scope(resource_group_name, scope, subscription_id): @@ -1544,15 +1521,16 @@ def _update_dict(dict1, dict2): return cp -def subnet_role_assignment_exists(cli_ctx, scope): +def subnet_role_assignment_exists(cmd, scope): network_contributor_role_id = "4d97b98b-1d4f-4787-a291-c67834d212e7" - factory = get_auth_management_client(cli_ctx, scope) + factory = get_auth_management_client(cmd.cli_ctx, scope) assignments_client = factory.role_assignments - for i in assignments_client.list_for_scope(scope=scope, filter='atScope()'): - if i.scope == scope and i.role_definition_id.endswith(network_contributor_role_id): - return True + if cmd.supported_api_version(min_api='2018-01-01-preview', resource_type=ResourceType.MGMT_AUTHORIZATION): + for i in assignments_client.list_for_scope(scope=scope, filter='atScope()'): + if i.scope == scope and i.role_definition_id.endswith(network_contributor_role_id): + return True return False @@ -1654,6 +1632,9 @@ def aks_check_acr(cmd, client, resource_group_name, name, acr): # pylint: disable=too-many-statements,too-many-branches def aks_browse(cmd, client, resource_group_name, name, disable_browser=False, listen_address='127.0.0.1', listen_port='8001'): + ManagedClusterAddonProfile = cmd.get_models('ManagedClusterAddonProfile', + resource_type=ResourceType.MGMT_CONTAINERSERVICE, + operation_group='managed_clusters') # verify the kube-dashboard addon was not disabled instance = client.get(resource_group_name, name) addon_profiles = instance.addon_profiles or {} @@ -1807,7 +1788,7 @@ def _add_monitoring_role_assignment(result, cluster_resource_id, cmd): is_service_principal = False if service_principal_msi_id is not None: - if not _add_role_assignment(cmd.cli_ctx, 'Monitoring Metrics Publisher', + if not _add_role_assignment(cmd, 'Monitoring Metrics Publisher', service_principal_msi_id, is_service_principal, scope=cluster_resource_id): logger.warning('Could not create a role assignment for Monitoring addon. ' 'Are you an Owner on this subscription?') @@ -1846,14 +1827,14 @@ def _add_ingress_appgw_addon_role_assignment(result, cmd): parsed_appgw_id = parse_resource_id(appgw_id) appgw_group_id = resource_id(subscription=parsed_appgw_id["subscription"], resource_group=parsed_appgw_id["resource_group"]) - if not _add_role_assignment(cmd.cli_ctx, 'Contributor', + if not _add_role_assignment(cmd, 'Contributor', service_principal_msi_id, is_service_principal, scope=appgw_group_id): logger.warning('Could not create a role assignment for application gateway: %s ' 'specified in %s addon. ' 'Are you an Owner on this subscription?', appgw_id, CONST_INGRESS_APPGW_ADDON_NAME) if CONST_INGRESS_APPGW_SUBNET_ID in config: subnet_id = config[CONST_INGRESS_APPGW_SUBNET_ID] - if not _add_role_assignment(cmd.cli_ctx, 'Network Contributor', + if not _add_role_assignment(cmd, 'Network Contributor', service_principal_msi_id, is_service_principal, scope=subnet_id): logger.warning('Could not create a role assignment for subnet: %s ' 'specified in %s addon. ' @@ -1867,7 +1848,7 @@ def _add_ingress_appgw_addon_role_assignment(result, cmd): namespace="Microsoft.Network", type="virtualNetworks", name=parsed_subnet_vnet_id["name"]) - if not _add_role_assignment(cmd.cli_ctx, 'Contributor', + if not _add_role_assignment(cmd, 'Contributor', service_principal_msi_id, is_service_principal, scope=vnet_id): logger.warning('Could not create a role assignment for virtual network: %s ' 'specified in %s addon. ' @@ -1904,7 +1885,7 @@ def _add_virtual_node_role_assignment(cmd, result, vnet_subnet_id): is_service_principal = False if service_principal_msi_id is not None: - if not _add_role_assignment(cmd.cli_ctx, 'Contributor', + if not _add_role_assignment(cmd, 'Contributor', service_principal_msi_id, is_service_principal, scope=vnet_id): logger.warning('Could not create a role assignment for virtual node addon. ' 'Are you an Owner on this subscription?') @@ -1988,6 +1969,44 @@ def aks_create(cmd, client, resource_group_name, name, ssh_key_value, # pylint: no_wait=False, yes=False, enable_azure_rbac=False): + ManagedClusterWindowsProfile = cmd.get_models('ManagedClusterWindowsProfile', + resource_type=ResourceType.MGMT_CONTAINERSERVICE, + operation_group='managed_clusters') + ManagedClusterSKU = cmd.get_models('ManagedClusterSKU', + resource_type=ResourceType.MGMT_CONTAINERSERVICE, + operation_group='managed_clusters') + ContainerServiceNetworkProfile = cmd.get_models('ContainerServiceNetworkProfile', + resource_type=ResourceType.MGMT_CONTAINERSERVICE, + operation_group='managed_clusters') + ContainerServiceLinuxProfile = cmd.get_models('ContainerServiceLinuxProfile', + resource_type=ResourceType.MGMT_CONTAINERSERVICE, + operation_group='managed_clusters') + ManagedClusterServicePrincipalProfile = cmd.get_models('ManagedClusterServicePrincipalProfile', + resource_type=ResourceType.MGMT_CONTAINERSERVICE, + operation_group='managed_clusters') + ContainerServiceSshConfiguration = cmd.get_models('ContainerServiceSshConfiguration', + resource_type=ResourceType.MGMT_CONTAINERSERVICE, + operation_group='managed_clusters') + ContainerServiceSshPublicKey = cmd.get_models('ContainerServiceSshPublicKey', + resource_type=ResourceType.MGMT_CONTAINERSERVICE, + operation_group='managed_clusters') + ManagedClusterAADProfile = cmd.get_models('ManagedClusterAADProfile', + resource_type=ResourceType.MGMT_CONTAINERSERVICE, + operation_group='managed_clusters') + ManagedClusterAgentPoolProfile = cmd.get_models('ManagedClusterAgentPoolProfile', + resource_type=ResourceType.MGMT_CONTAINERSERVICE, + operation_group='managed_clusters') + ManagedClusterIdentity = cmd.get_models('ManagedClusterIdentity', + resource_type=ResourceType.MGMT_CONTAINERSERVICE, + operation_group='managed_clusters') + ManagedCluster = cmd.get_models('ManagedCluster', + resource_type=ResourceType.MGMT_CONTAINERSERVICE, + operation_group='managed_clusters') + Components1Umhcm8SchemasManagedclusteridentityPropertiesUserassignedidentitiesAdditionalproperties = cmd.get_models( + 'Components1Umhcm8SchemasManagedclusteridentityPropertiesUserassignedidentitiesAdditionalproperties', + resource_type=ResourceType.MGMT_CONTAINERSERVICE, + operation_group='managed_clusters') + _validate_ssh_key(no_ssh_key, ssh_key_value) subscription_id = get_subscription_id(cmd.cli_ctx) if dns_name_prefix and fqdn_subdomain: @@ -2093,7 +2112,7 @@ def aks_create(cmd, client, resource_group_name, name, ssh_key_value, # pylint: need_post_creation_vnet_permission_granting = False if (vnet_subnet_id and not skip_subnet_role_assignment and - not subnet_role_assignment_exists(cmd.cli_ctx, vnet_subnet_id)): + not subnet_role_assignment_exists(cmd, vnet_subnet_id)): # if service_principal_profile is None, then this cluster is an MSI cluster, # and the service principal does not exist. Two cases: # 1. For system assigned identity, we just tell user to grant the @@ -2121,12 +2140,13 @@ def aks_create(cmd, client, resource_group_name, name, ssh_key_value, # pylint: cmd.cli_ctx, assign_identity) else: identity_client_id = service_principal_profile.client_id - if not _add_role_assignment(cmd.cli_ctx, 'Network Contributor', + if not _add_role_assignment(cmd, 'Network Contributor', identity_client_id, scope=scope): logger.warning('Could not create a role assignment for subnet. ' 'Are you an Owner on this subscription?') load_balancer_profile = create_load_balancer_profile( + cmd, load_balancer_managed_outbound_ip_count, load_balancer_outbound_ips, load_balancer_outbound_ip_prefixes, @@ -2140,7 +2160,7 @@ def aks_create(cmd, client, resource_group_name, name, ssh_key_value, # pylint: '--no-wait is not allowed, please wait until the whole operation succeeds.') # Attach acr operation will be handled after the cluster is created else: - _ensure_aks_acr(cmd.cli_ctx, + _ensure_aks_acr(cmd, client_id=service_principal_profile.client_id, acr_name_or_id=attach_acr, subscription_id=subscription_id) @@ -2249,6 +2269,7 @@ def aks_create(cmd, client, resource_group_name, name, ssh_key_value, # pylint: raise CLIError("Please use standard load balancer for private cluster") if api_server_authorized_ip_ranges or enable_private_cluster: api_server_access_profile = _populate_api_server_access_profile( + cmd, api_server_authorized_ip_ranges, enable_private_cluster=enable_private_cluster ) @@ -2506,6 +2527,9 @@ def aks_update_credentials(cmd, client, resource_group_name, name, aad_client_app_id=None, aad_tenant_id=None, no_wait=False): + ManagedClusterServicePrincipalProfile = cmd.get_models('ManagedClusterServicePrincipalProfile', + resource_type=ResourceType.MGMT_CONTAINERSERVICE, + operation_group='managed_clusters') if bool(reset_service_principal) == bool(reset_aad): raise CLIError( 'usage error: --reset-service-principal | --reset-aad-profile') @@ -2585,6 +2609,19 @@ def aks_update(cmd, client, resource_group_name, name, no_wait=False, enable_azure_rbac=False, disable_azure_rbac=False): + ManagedClusterSKU = cmd.get_models('ManagedClusterSKU', + resource_type=ResourceType.MGMT_CONTAINERSERVICE, + operation_group='managed_clusters') + ManagedClusterAADProfile = cmd.get_models('ManagedClusterAADProfile', + resource_type=ResourceType.MGMT_CONTAINERSERVICE, + operation_group='managed_clusters') + ManagedClusterIdentity = cmd.get_models('ManagedClusterIdentity', + resource_type=ResourceType.MGMT_CONTAINERSERVICE, + operation_group='managed_clusters') + Components1Umhcm8SchemasManagedclusteridentityPropertiesUserassignedidentitiesAdditionalproperties = cmd.get_models( + 'Components1Umhcm8SchemasManagedclusteridentityPropertiesUserassignedidentitiesAdditionalproperties', + resource_type=ResourceType.MGMT_CONTAINERSERVICE, + operation_group='managed_clusters') update_autoscaler = enable_cluster_autoscaler + \ disable_cluster_autoscaler + update_cluster_autoscaler update_lb_profile = is_load_balancer_profile_provided(load_balancer_managed_outbound_ip_count, @@ -2700,13 +2737,13 @@ def aks_update(cmd, client, resource_group_name, name, raise CLIError('Cannot get the AKS cluster\'s service principal.') if attach_acr: - _ensure_aks_acr(cmd.cli_ctx, + _ensure_aks_acr(cmd, client_id=client_id, acr_name_or_id=attach_acr, subscription_id=subscription_id) if detach_acr: - _ensure_aks_acr(cmd.cli_ctx, + _ensure_aks_acr(cmd, client_id=client_id, acr_name_or_id=detach_acr, subscription_id=subscription_id, @@ -2730,6 +2767,7 @@ def aks_update(cmd, client, resource_group_name, name, if update_lb_profile: instance.network_profile.load_balancer_profile = update_load_balancer_profile( + cmd, load_balancer_managed_outbound_ip_count, load_balancer_outbound_ips, load_balancer_outbound_ip_prefixes, @@ -2741,6 +2779,7 @@ def aks_update(cmd, client, resource_group_name, name, if api_server_authorized_ip_ranges is not None: instance.api_server_access_profile = \ _populate_api_server_access_profile( + cmd, api_server_authorized_ip_ranges, instance=instance) if enable_aad: @@ -2955,7 +2994,8 @@ def aks_runcommand(cmd, client, resource_group_name, name, command_string="", co if not command_string: raise ValidationError('Command cannot be empty.') - + RunCommandRequest = cmd.get_models('RunCommandRequest', resource_type=ResourceType.MGMT_CONTAINERSERVICE, + operation_group='managed_clusters') request_payload = RunCommandRequest(command=command_string) request_payload.context = _get_command_context(command_files) @@ -3143,6 +3183,9 @@ def _update_addons(cmd, instance, subscription_id, resource_group_name, name, ad appgw_watch_namespace=None, enable_sgxquotehelper=False, no_wait=False): + ManagedClusterAddonProfile = cmd.get_models('ManagedClusterAddonProfile', + resource_type=ResourceType.MGMT_CONTAINERSERVICE, + operation_group='managed_clusters') # parse the comma-separated addons argument addon_args = addons.split(',') @@ -3269,6 +3312,9 @@ def _handle_addons_args(cmd, addons_str, subscription_id, resource_group_name, a appgw_subnet_id=None, appgw_watch_namespace=None, enable_sgxquotehelper=False): + ManagedClusterAddonProfile = cmd.get_models('ManagedClusterAddonProfile', + resource_type=ResourceType.MGMT_CONTAINERSERVICE, + operation_group='managed_clusters') if not addon_profiles: addon_profiles = {} addons = addons_str.split(',') if addons_str else [] @@ -3555,8 +3601,6 @@ def _ensure_default_log_analytics_workspace_for_monitoring(cmd, subscription_id, # TODO: track2/replace create_or_update with begin_create_or_update, depends on 'azure.mgmt.resource.resources' resource_groups.create_or_update(default_workspace_resource_group, { 'location': workspace_region}) - - from azure.cli.core.profiles import ResourceType GenericResource = cmd.get_models( 'GenericResource', resource_type=ResourceType.MGMT_RESOURCE_RESOURCES) generic_resource = GenericResource(location=workspace_region, properties={ @@ -3696,7 +3740,7 @@ def _ensure_container_insights_for_monitoring(cmd, addon): validate=False, no_wait=False, subscription_id=subscription_id) -def _ensure_aks_acr(cli_ctx, +def _ensure_aks_acr(cmd, client_id, acr_name_or_id, subscription_id, @@ -3707,13 +3751,13 @@ def _ensure_aks_acr(cli_ctx, try: parsed_registry = parse_resource_id(acr_name_or_id) acr_client = cf_container_registry_service( - cli_ctx, subscription_id=parsed_registry['subscription']) + cmd.cli_ctx, subscription_id=parsed_registry['subscription']) registry = acr_client.registries.get( parsed_registry['resource_group'], parsed_registry['name']) except CloudError as ex: raise CLIError(ex.message) _ensure_aks_acr_role_assignment( - cli_ctx, client_id, registry.id, detach) + cmd, client_id, registry.id, detach) return # Check if the ACR exists by name accross all resource groups. @@ -3721,13 +3765,13 @@ def _ensure_aks_acr(cli_ctx, registry_resource = 'Microsoft.ContainerRegistry/registries' try: registry = get_resource_by_name( - cli_ctx, registry_name, registry_resource) + cmd.cli_ctx, registry_name, registry_resource) except CloudError as ex: if 'was not found' in ex.message: raise CLIError( "ACR {} not found. Have you provided the right ACR name?".format(registry_name)) raise CLIError(ex.message) - _ensure_aks_acr_role_assignment(cli_ctx, client_id, registry.id, detach) + _ensure_aks_acr_role_assignment(cmd, client_id, registry.id, detach) return @@ -3766,6 +3810,12 @@ def aks_agentpool_add(cmd, client, resource_group_name, cluster_name, nodepool_n mode="User", enable_encryption_at_host=False, no_wait=False): + AgentPool = cmd.get_models('AgentPool', + resource_type=ResourceType.MGMT_CONTAINERSERVICE, + operation_group='agent_pools') + AgentPoolUpgradeSettings = cmd.get_models('AgentPoolUpgradeSettings', + resource_type=ResourceType.MGMT_CONTAINERSERVICE, + operation_group='agent_pools') instances = client.list(resource_group_name, cluster_name) for agentpool_profile in instances: if agentpool_profile.name == nodepool_name: @@ -3868,6 +3918,7 @@ def aks_agentpool_upgrade(cmd, client, resource_group_name, cluster_name, node_image_only=False, max_surge=None, no_wait=False): + AgentPoolUpgradeSettings = cmd.get_models('AgentPoolUpgradeSettings', operation_group='agent_pools') if kubernetes_version != '' and node_image_only: raise CLIError( 'Conflicting flags. Upgrading the Kubernetes version will also ' @@ -3910,7 +3961,9 @@ def aks_agentpool_update(cmd, client, resource_group_name, cluster_name, nodepoo max_surge=None, mode=None, no_wait=False): - + AgentPoolUpgradeSettings = cmd.get_models('AgentPoolUpgradeSettings', + resource_type=ResourceType.MGMT_CONTAINERSERVICE, + operation_group='agent_pools') update_autoscaler = enable_cluster_autoscaler + \ disable_cluster_autoscaler + update_cluster_autoscaler @@ -3999,12 +4052,12 @@ def aks_agentpool_get_upgrade_profile(cmd, client, resource_group_name, cluster_ return client.get_upgrade_profile(resource_group_name, cluster_name, nodepool_name) -def _ensure_aks_acr_role_assignment(cli_ctx, +def _ensure_aks_acr_role_assignment(cmd, client_id, registry_id, detach=False): if detach: - if not _delete_role_assignments(cli_ctx, + if not _delete_role_assignments(cmd.cli_ctx, 'acrpull', client_id, scope=registry_id): @@ -4012,7 +4065,7 @@ def _ensure_aks_acr_role_assignment(cli_ctx, 'Are you an Owner on this subscription?') return - if not _add_role_assignment(cli_ctx, + if not _add_role_assignment(cmd, 'acrpull', client_id, scope=registry_id): @@ -4063,13 +4116,17 @@ def _ensure_aks_service_principal(cli_ctx, } -def _ensure_osa_aad(cli_ctx, +def _ensure_osa_aad(cmd, + cli_ctx, aad_client_app_id=None, aad_client_app_secret=None, aad_tenant_id=None, identifier=None, name=None, create=False, customer_admin_group_id=None): + OpenShiftManagedClusterAADIdentityProvider = cmd.get_models('OpenShiftManagedClusterAADIdentityProvider', + resource_type=ResourceType.MGMT_CONTAINERSERVICE, + operation_group='open_shift_managed_clusters') rbac_client = get_graph_rbac_management_client(cli_ctx) if create: # This reply_url is temporary set since Azure need one to create the AAD. @@ -4367,6 +4424,30 @@ def openshift_create(cmd, client, resource_group_name, name, # pylint: disable= no_wait=False, workspace_id=None, customer_admin_group_id=None): + OpenShiftManagedClusterAgentPoolProfile = cmd.get_models('OpenShiftManagedClusterAgentPoolProfile', + resource_type=ResourceType.MGMT_CONTAINERSERVICE, + operation_group='open_shift_managed_clusters') + OpenShiftAgentPoolProfileRole = cmd.get_models('OpenShiftAgentPoolProfileRole', + resource_type=ResourceType.MGMT_CONTAINERSERVICE, + operation_group='open_shift_managed_clusters') + OpenShiftManagedClusterIdentityProvider = cmd.get_models('OpenShiftManagedClusterIdentityProvider', + resource_type=ResourceType.MGMT_CONTAINERSERVICE, + operation_group='open_shift_managed_clusters') + OpenShiftManagedCluster = cmd.get_models('OpenShiftManagedCluster', + resource_type=ResourceType.MGMT_CONTAINERSERVICE, + operation_group='open_shift_managed_clusters') + OpenShiftRouterProfile = cmd.get_models('OpenShiftRouterProfile', + resource_type=ResourceType.MGMT_CONTAINERSERVICE, + operation_group='open_shift_managed_clusters') + NetworkProfile = cmd.get_models('NetworkProfile', + resource_type=ResourceType.MGMT_CONTAINERSERVICE, + operation_group='open_shift_managed_clusters') + OpenShiftManagedClusterAuthProfile = cmd.get_models('OpenShiftManagedClusterAuthProfile', + resource_type=ResourceType.MGMT_CONTAINERSERVICE, + operation_group='open_shift_managed_clusters') + OpenShiftManagedClusterMonitorProfile = cmd.get_models('OpenShiftManagedClusterMonitorProfile', + resource_type=ResourceType.MGMT_CONTAINERSERVICE, + operation_group='open_shift_managed_clusters') logger.warning('Support for the creation of ARO 3.11 clusters ends 30 Nov 2020. Please see aka.ms/aro/4 for information on switching to ARO 4.') # pylint: disable=line-too-long if location is None: @@ -4412,7 +4493,8 @@ def openshift_create(cmd, client, resource_group_name, name, # pylint: disable= if aad_client_app_id is None and aad_client_app_secret is None and aad_tenant_id is None: create_aad = True - osa_aad_identity = _ensure_osa_aad(cmd.cli_ctx, + osa_aad_identity = _ensure_osa_aad(cmd, + cmd.cli_ctx, aad_client_app_id=aad_client_app_id, aad_client_app_secret=aad_client_app_secret, aad_tenant_id=aad_tenant_id, identifier=None, @@ -4463,7 +4545,8 @@ def openshift_create(cmd, client, resource_group_name, name, # pylint: disable= resource_group_name=resource_group_name, resource_name=name, parameters=osamc) result = LongRunningOperation(cmd.cli_ctx)(result) instance = client.get(resource_group_name, name) - _ensure_osa_aad(cmd.cli_ctx, + _ensure_osa_aad(cmd, + cmd.cli_ctx, aad_client_app_id=osa_aad_identity.client_id, aad_client_app_secret=osa_aad_identity.secret, aad_tenant_id=osa_aad_identity.tenant_id, identifier=instance.public_hostname, @@ -4507,6 +4590,9 @@ def openshift_scale(cmd, client, resource_group_name, name, compute_count, no_wa def openshift_monitor_enable(cmd, client, resource_group_name, name, workspace_id, no_wait=False): + OpenShiftManagedClusterMonitorProfile = cmd.get_models('OpenShiftManagedClusterMonitorProfile', + resource_type=ResourceType.MGMT_CONTAINERSERVICE, + operation_group='open_shift_managed_clusters') logger.warning('The az openshift command is deprecated and has been replaced by az aro for ARO 4 clusters. See http://aka.ms/aro/4 for information on switching to ARO 4.') # pylint: disable=line-too-long instance = client.get(resource_group_name, name) @@ -4519,6 +4605,9 @@ def openshift_monitor_enable(cmd, client, resource_group_name, name, workspace_i def openshift_monitor_disable(cmd, client, resource_group_name, name, no_wait=False): + OpenShiftManagedClusterMonitorProfile = cmd.get_models('OpenShiftManagedClusterMonitorProfile', + resource_type=ResourceType.MGMT_CONTAINERSERVICE, + operation_group='open_shift_managed_clusters') logger.warning('The az openshift command is deprecated and has been replaced by az aro for ARO 4 clusters. See http://aka.ms/aro/4 for information on switching to ARO 4.') # pylint: disable=line-too-long instance = client.get(resource_group_name, name) @@ -4581,7 +4670,7 @@ def _put_managed_cluster_ensuring_permission( if virtual_node_addon_enabled: _add_virtual_node_role_assignment(cmd, cluster, vnet_subnet_id) if need_grant_vnet_permission_to_cluster_identity: - if not _create_role_assignment(cmd.cli_ctx, 'Network Contributor', + if not _create_role_assignment(cmd, 'Network Contributor', cluster.identity.principal_id, scope=vnet_subnet_id, resolve_assignee=False): logger.warning('Could not create a role assignment for subnet. ' @@ -4597,7 +4686,7 @@ def _put_managed_cluster_ensuring_permission( 'it permission to pull from ACR.') else: kubelet_identity_client_id = cluster.identity_profile["kubeletidentity"].client_id - _ensure_aks_acr(cmd.cli_ctx, + _ensure_aks_acr(cmd, client_id=kubelet_identity_client_id, acr_name_or_id=attach_acr, subscription_id=subscription_id) diff --git a/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/__init__.py b/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/__init__.py new file mode 100644 index 00000000000..34913fb394d --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/__init__.py @@ -0,0 +1,4 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- diff --git a/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/data/dummy.json b/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/data/dummy.json new file mode 100644 index 00000000000..0e8c88d2db1 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/data/dummy.json @@ -0,0 +1,3 @@ +{ + "Name": "Dummy" +} \ No newline at end of file diff --git a/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/data/ns.yaml b/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/data/ns.yaml new file mode 100644 index 00000000000..66de2399633 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/data/ns.yaml @@ -0,0 +1,4 @@ +- apiVersion: v1 + kind: Namespace + metadata: + name: aks-command \ No newline at end of file diff --git a/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/recording_processors.py b/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/recording_processors.py new file mode 100644 index 00000000000..78526209c05 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/recording_processors.py @@ -0,0 +1,63 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- + +from azure_devtools.scenario_tests import RecordingProcessor +from azure_devtools.scenario_tests.utilities import is_text_payload + +MOCK_GUID = '00000000-0000-0000-0000-000000000001' +MOCK_SECRET = 'fake-secret' + + +class KeyReplacer(RecordingProcessor): + + def process_request(self, request): + if is_text_payload(request) and isinstance(request.body, bytes): + request.body = self._replace_byte_keys(request.body) + elif is_text_payload(request) and isinstance(request.body, str): + request.body = self._replace_string_keys(request.body) + return request + + def process_response(self, response): + if is_text_payload(response) and response['body']['string']: + response['body']['string'] = self._replace_string_keys(response['body']['string']) + return response + + # pylint: disable=no-self-use + def _replace_string_keys(self, val): + import re + if 'secret' in val: + val = re.sub(r'"secret":( ?)"([^"]+)"', r'"secret":"{}"' + .format(MOCK_SECRET), val, flags=re.IGNORECASE) + if 'clientId' in val: + val = re.sub(r'"clientId":( ?)"([^"]+)"', r'"clientId":"{}"' + .format(MOCK_GUID), val, flags=re.IGNORECASE) + if 'objectId' in val: + val = re.sub(r'"objectId":( ?)"([^"]+)"', r'"objectId":"{}"' + .format(MOCK_GUID), val, flags=re.IGNORECASE) + if 'principalId' in val: + val = re.sub(r'"principalId":( ?)"([^"]+)"', r'"principalId":"{}"' + .format(MOCK_GUID), val, flags=re.IGNORECASE) + return val + + # pylint: disable=no-self-use + def _replace_byte_keys(self, val): + import re + if b'secret' in val: + val = re.sub(b'"secret":( ?)"([^"]+)"', + ('"secret":"{}"'.format(MOCK_SECRET)).encode('utf-8'), + val, flags=re.IGNORECASE) + if b'clientId' in val: + val = re.sub(b'"clientId":( ?)"([^"]+)"', + ('"clientId":"{}"'.format(MOCK_GUID)).encode('utf-8'), + val, flags=re.IGNORECASE) + if b'objectId' in val: + val = re.sub(b'"objectId":( ?)"([^"]+)"', + ('"objectId":"{}"'.format(MOCK_GUID)).encode('utf-8'), + val, flags=re.IGNORECASE) + if b'principalId' in val: + val = re.sub(b'"principalId":( ?)"([^"]+)"', + ('"principalId":"{}"'.format(MOCK_GUID)).encode('utf-8'), + val, flags=re.IGNORECASE) + return val diff --git a/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/recordings/test_aks_availability_zones_msi.yaml b/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/recordings/test_aks_availability_zones_msi.yaml new file mode 100644 index 00000000000..7d63febe4ea --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/recordings/test_aks_availability_zones_msi.yaml @@ -0,0 +1,115 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --dns-name-prefix --node-count --ssh-key-value + --zones + User-Agent: + - AZURECLI/2.23.0 azsdk-python-azure-mgmt-resource/16.1.0 Python/3.7.4 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acscliapi2?api-version=2019-10-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi2","name":"acscliapi2","type":"Microsoft.Resources/resourceGroups","location":"eastus","tags":{},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '227' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 10 Jun 2021 01:13:39 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": {"kubernetesVersion": "", "dnsPrefix": + "cliaksdns000002", "agentPoolProfiles": [{"count": 3, "vmSize": "Standard_DS2_v2", + "osType": "Linux", "type": "VirtualMachineScaleSets", "mode": "System", "availabilityZones": + ["1", "2", "3"], "enableNodePublicIP": false, "scaleSetPriority": "Regular", + "scaleSetEvictionPolicy": "Delete", "name": "nodepool1"}], "linuxProfile": {"adminUsername": + "azureuser", "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCbIg1guRHbI0lV11wWDt1r2cUdcNd27CJsg+SfgC7miZeubtwUhbsPdhMQsfDyhOWHq1+ZL0M+nJZV63d/1dhmhtgyOqejUwrPlzKhydsbrsdUor+JmNJDdW01v7BXHyuymT8G4s09jCasNOwiufbP/qp72ruu0bIA1nySsvlf9pCQAuFkAnVnf/rFhUlOkhtRpwcq8SUNY2zRHR/EKb/4NWY1JzR4sa3q2fWIJdrrX0DvLoa5g9bIEd4Df79ba7v+yiUBOS0zT2ll+z4g9izHK3EO5d8hL4jYxcjKs+wcslSYRWrascfscLgMlMGh0CdKeNTDjHpGPncaf3Z+FwwwjWeuiNBxv7bJo13/8B/098KlVDl4GZqsoBCEjPyJfV6hO0y/LkRGkk7oHWKgeWAfKtfLItRp00eZ4fcJNK9kCaSMmEugoZWcI7NGbZXzqFWqbpRI7NcDP9+WIQ+i9U5vqWsqd/zng4kbuAJ6UuKqIzB0upYrLShfQE3SAck8oaLhJqqq56VfDuASNpJKidV+zq27HfSBmbXnkR/5AK337dc3MXKJypoK/QPMLKUAP5XLPbs+NddJQV7EZXd29DLgp+fRIg3edpKdO7ZErWhv7d+3Kws+e1Y+ypmR2WIVSwVyBEUfgv2C8Ts9gnTF4pNcEY/S2aBicz5Ew2+jdyGNQQ== + test@example.com\n"}]}}, "addonProfiles": {}, "enableRBAC": true, "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"}}, "identity": {"type": "SystemAssigned"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '1539' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --resource-group --name --location --dns-name-prefix --node-count --ssh-key-value + --zones + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi2/providers/Microsoft.ContainerService/managedClusters/cliakstest000001?api-version=2020-11-01 + response: + body: + string: "{\n \"code\": \"QuotaExceeded\",\n \"message\": \"Provisioning of + resource(s) for container service cliakstest000001 in resource group acscliapi2 + failed. Message: Operation could not be completed as it results in exceeding + approved Total Regional Cores quota. Additional details - Deployment Model: + Resource Manager, Location: westus2, Current Limit: 20, Current Usage: 20, + Additional Required: 6, (Minimum) New Limit Required: 26. Submit a request + for Quota increase at https://aka.ms/ProdportalCRP/?#create/Microsoft.Support/Parameters/%7B%22subId%22:%228a4f688f-f361-4729-a197-1a8d663b603b%22,%22pesId%22:%2206bfd9d3-516b-d5c6-5802-169c800dec89%22,%22supportTopicId%22:%22e12e3d1d-7fa0-af33-c6d0-3c50df9658a3%22%7D + by specifying parameters listed in the \u2018Details\u2019 section for deployment + to succeed. Please read more about quota limits at https://docs.microsoft.com/en-us/azure/azure-supportability/regional-quota-requests.. + Details: \"\n }" + headers: + cache-control: + - no-cache + content-length: + - '937' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 01:13:46 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: 400 + message: Bad Request +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/recordings/test_aks_byo_appgw_with_ingress_appgw_addon.yaml b/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/recordings/test_aks_byo_appgw_with_ingress_appgw_addon.yaml new file mode 100644 index 00000000000..eb7c2608987 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/recordings/test_aks_byo_appgw_with_ingress_appgw_addon.yaml @@ -0,0 +1,962 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vnet create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --address-prefix --subnet-name --subnet-prefix -o + User-Agent: + - AZURECLI/2.23.0 azsdk-python-azure-mgmt-resource/16.1.0 Python/3.7.4 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acscliapi8?api-version=2019-10-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi8","name":"acscliapi8","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '227' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 10 Jun 2021 05:38: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": "westus", "tags": {}, "properties": {"addressSpace": {"addressPrefixes": + ["11.0.0.0/16"]}, "dhcpOptions": {}, "subnets": [{"name": "aks-subnet", "properties": + {"addressPrefix": "11.0.0.0/24"}}]}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vnet create + Connection: + - keep-alive + Content-Length: + - '208' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --name --address-prefix --subnet-name --subnet-prefix -o + User-Agent: + - AZURECLI/2.23.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.7.4 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi8/providers/Microsoft.Network/virtualNetworks/cliakstest000002?api-version=2018-11-01 + response: + body: + string: "{\r\n \"name\": \"cliakstest000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi8/providers/Microsoft.Network/virtualNetworks/cliakstest000002\",\r\n + \ \"etag\": \"W/\\\"9e8fb06c-00a7-466d-abee-01fddfb132ce\\\"\",\r\n \"type\": + \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n + \ \"resourceGuid\": \"bcb152ba-97ff-4eda-a029-f3ac84243cbc\",\r\n \"addressSpace\": + {\r\n \"addressPrefixes\": [\r\n \"11.0.0.0/16\"\r\n ]\r\n + \ },\r\n \"dhcpOptions\": {\r\n \"dnsServers\": []\r\n },\r\n + \ \"subnets\": [\r\n {\r\n \"name\": \"aks-subnet\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi8/providers/Microsoft.Network/virtualNetworks/cliakstest000002/subnets/aks-subnet\",\r\n + \ \"etag\": \"W/\\\"9e8fb06c-00a7-466d-abee-01fddfb132ce\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n + \ \"addressPrefix\": \"11.0.0.0/24\",\r\n \"delegations\": + []\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n + \ }\r\n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": + false\r\n }\r\n}" + headers: + azure-asyncnotification: + - Enabled + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/b659b0e3-6981-4cfe-bc20-b3e5dc32f9cb?api-version=2018-11-01 + cache-control: + - no-cache + content-length: + - '1197' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 10 Jun 2021 05:38:02 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 4c568c9d-5ab4-438e-b82b-6b09f75cd0cc + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vnet create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --address-prefix --subnet-name --subnet-prefix -o + User-Agent: + - AZURECLI/2.23.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.7.4 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/b659b0e3-6981-4cfe-bc20-b3e5dc32f9cb?api-version=2018-11-01 + response: + body: + string: "{\r\n \"status\": \"Succeeded\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '29' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 10 Jun 2021 05:38:05 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - a51945c6-b57d-4e7c-8240-31d5c382ddfd + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vnet create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --address-prefix --subnet-name --subnet-prefix -o + User-Agent: + - AZURECLI/2.23.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.7.4 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi8/providers/Microsoft.Network/virtualNetworks/cliakstest000002?api-version=2018-11-01 + response: + body: + string: "{\r\n \"name\": \"cliakstest000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi8/providers/Microsoft.Network/virtualNetworks/cliakstest000002\",\r\n + \ \"etag\": \"W/\\\"6f96884f-2e48-4e87-9a41-cf3a18606027\\\"\",\r\n \"type\": + \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"resourceGuid\": \"bcb152ba-97ff-4eda-a029-f3ac84243cbc\",\r\n \"addressSpace\": + {\r\n \"addressPrefixes\": [\r\n \"11.0.0.0/16\"\r\n ]\r\n + \ },\r\n \"dhcpOptions\": {\r\n \"dnsServers\": []\r\n },\r\n + \ \"subnets\": [\r\n {\r\n \"name\": \"aks-subnet\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi8/providers/Microsoft.Network/virtualNetworks/cliakstest000002/subnets/aks-subnet\",\r\n + \ \"etag\": \"W/\\\"6f96884f-2e48-4e87-9a41-cf3a18606027\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"addressPrefix\": \"11.0.0.0/24\",\r\n \"delegations\": + []\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n + \ }\r\n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": + false\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1199' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 10 Jun 2021 05:38:05 GMT + etag: + - W/"6f96884f-2e48-4e87-9a41-cf3a18606027" + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 0c48c964-33cf-44a0-a0fa-dd3800215d08 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vnet subnet create + Connection: + - keep-alive + ParameterSetName: + - -n --resource-group --vnet-name --address-prefixes -o + User-Agent: + - AZURECLI/2.23.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.7.4 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi8/providers/Microsoft.Network/virtualNetworks/cliakstest000002?api-version=2018-11-01 + response: + body: + string: "{\r\n \"name\": \"cliakstest000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi8/providers/Microsoft.Network/virtualNetworks/cliakstest000002\",\r\n + \ \"etag\": \"W/\\\"6f96884f-2e48-4e87-9a41-cf3a18606027\\\"\",\r\n \"type\": + \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"resourceGuid\": \"bcb152ba-97ff-4eda-a029-f3ac84243cbc\",\r\n \"addressSpace\": + {\r\n \"addressPrefixes\": [\r\n \"11.0.0.0/16\"\r\n ]\r\n + \ },\r\n \"dhcpOptions\": {\r\n \"dnsServers\": []\r\n },\r\n + \ \"subnets\": [\r\n {\r\n \"name\": \"aks-subnet\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi8/providers/Microsoft.Network/virtualNetworks/cliakstest000002/subnets/aks-subnet\",\r\n + \ \"etag\": \"W/\\\"6f96884f-2e48-4e87-9a41-cf3a18606027\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"addressPrefix\": \"11.0.0.0/24\",\r\n \"delegations\": + []\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n + \ }\r\n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": + false\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1199' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 10 Jun 2021 05:38:06 GMT + etag: + - W/"6f96884f-2e48-4e87-9a41-cf3a18606027" + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 6830f9da-2924-407d-9859-a397383bf821 + status: + code: 200 + message: OK +- request: + body: '{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi8/providers/Microsoft.Network/virtualNetworks/cliakstest000002", + "location": "westus", "tags": {}, "etag": "W/\"6f96884f-2e48-4e87-9a41-cf3a18606027\"", + "properties": {"addressSpace": {"addressPrefixes": ["11.0.0.0/16"]}, "dhcpOptions": + {"dnsServers": []}, "subnets": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi8/providers/Microsoft.Network/virtualNetworks/cliakstest000002/subnets/aks-subnet", + "name": "aks-subnet", "etag": "W/\"6f96884f-2e48-4e87-9a41-cf3a18606027\"", + "properties": {"addressPrefix": "11.0.0.0/24", "delegations": [], "provisioningState": + "Succeeded"}}, {"name": "appgw-subnet", "properties": {"addressPrefix": "11.0.1.0/24"}}], + "virtualNetworkPeerings": [], "resourceGuid": "bcb152ba-97ff-4eda-a029-f3ac84243cbc", + "provisioningState": "Succeeded", "enableDdosProtection": false}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vnet subnet create + Connection: + - keep-alive + Content-Length: + - '925' + Content-Type: + - application/json + ParameterSetName: + - -n --resource-group --vnet-name --address-prefixes -o + User-Agent: + - AZURECLI/2.23.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.7.4 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi8/providers/Microsoft.Network/virtualNetworks/cliakstest000002?api-version=2018-11-01 + response: + body: + string: "{\r\n \"name\": \"cliakstest000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi8/providers/Microsoft.Network/virtualNetworks/cliakstest000002\",\r\n + \ \"etag\": \"W/\\\"7e1ca301-890e-44b3-9edc-5bbf82ef5008\\\"\",\r\n \"type\": + \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n + \ \"resourceGuid\": \"bcb152ba-97ff-4eda-a029-f3ac84243cbc\",\r\n \"addressSpace\": + {\r\n \"addressPrefixes\": [\r\n \"11.0.0.0/16\"\r\n ]\r\n + \ },\r\n \"dhcpOptions\": {\r\n \"dnsServers\": []\r\n },\r\n + \ \"subnets\": [\r\n {\r\n \"name\": \"aks-subnet\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi8/providers/Microsoft.Network/virtualNetworks/cliakstest000002/subnets/aks-subnet\",\r\n + \ \"etag\": \"W/\\\"7e1ca301-890e-44b3-9edc-5bbf82ef5008\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n + \ \"addressPrefix\": \"11.0.0.0/24\",\r\n \"delegations\": + []\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n + \ },\r\n {\r\n \"name\": \"appgw-subnet\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi8/providers/Microsoft.Network/virtualNetworks/cliakstest000002/subnets/appgw-subnet\",\r\n + \ \"etag\": \"W/\\\"7e1ca301-890e-44b3-9edc-5bbf82ef5008\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n + \ \"addressPrefix\": \"11.0.1.0/24\",\r\n \"delegations\": + []\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n + \ }\r\n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": + false\r\n }\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/2eb7277e-8b46-445e-8d6c-5fd3c9371de4?api-version=2018-11-01 + cache-control: + - no-cache + content-length: + - '1704' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 10 Jun 2021 05:38:06 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 35343f59-43fc-4f8d-a2c0-8da218fcf878 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vnet subnet create + Connection: + - keep-alive + ParameterSetName: + - -n --resource-group --vnet-name --address-prefixes -o + User-Agent: + - AZURECLI/2.23.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.7.4 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/2eb7277e-8b46-445e-8d6c-5fd3c9371de4?api-version=2018-11-01 + response: + body: + string: "{\r\n \"status\": \"Succeeded\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '29' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 10 Jun 2021 05:38:09 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 2e38d297-16c5-4f34-9a81-99207b3ba1ed + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vnet subnet create + Connection: + - keep-alive + ParameterSetName: + - -n --resource-group --vnet-name --address-prefixes -o + User-Agent: + - AZURECLI/2.23.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.7.4 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi8/providers/Microsoft.Network/virtualNetworks/cliakstest000002?api-version=2018-11-01 + response: + body: + string: "{\r\n \"name\": \"cliakstest000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi8/providers/Microsoft.Network/virtualNetworks/cliakstest000002\",\r\n + \ \"etag\": \"W/\\\"cbc3f7f5-a520-4410-92c3-3ba7e344aaf1\\\"\",\r\n \"type\": + \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"resourceGuid\": \"bcb152ba-97ff-4eda-a029-f3ac84243cbc\",\r\n \"addressSpace\": + {\r\n \"addressPrefixes\": [\r\n \"11.0.0.0/16\"\r\n ]\r\n + \ },\r\n \"dhcpOptions\": {\r\n \"dnsServers\": []\r\n },\r\n + \ \"subnets\": [\r\n {\r\n \"name\": \"aks-subnet\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi8/providers/Microsoft.Network/virtualNetworks/cliakstest000002/subnets/aks-subnet\",\r\n + \ \"etag\": \"W/\\\"cbc3f7f5-a520-4410-92c3-3ba7e344aaf1\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"addressPrefix\": \"11.0.0.0/24\",\r\n \"delegations\": + []\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n + \ },\r\n {\r\n \"name\": \"appgw-subnet\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi8/providers/Microsoft.Network/virtualNetworks/cliakstest000002/subnets/appgw-subnet\",\r\n + \ \"etag\": \"W/\\\"cbc3f7f5-a520-4410-92c3-3ba7e344aaf1\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"addressPrefix\": \"11.0.1.0/24\",\r\n \"delegations\": + []\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n + \ }\r\n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": + false\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1707' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 10 Jun 2021 05:38:10 GMT + etag: + - W/"cbc3f7f5-a520-4410-92c3-3ba7e344aaf1" + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 19551417-4e49-4b74-aeeb-5228832a8c19 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network public-ip create + Connection: + - keep-alive + ParameterSetName: + - -n -g --allocation-method --sku -o + User-Agent: + - AZURECLI/2.23.0 azsdk-python-azure-mgmt-resource/16.1.0 Python/3.7.4 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acscliapi8?api-version=2019-10-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi8","name":"acscliapi8","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '227' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 10 Jun 2021 05:38:10 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": "westus", "sku": {"name": "Standard"}, "properties": {"publicIPAllocationMethod": + "Static", "publicIPAddressVersion": "IPv4", "idleTimeoutInMinutes": 4}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network public-ip create + Connection: + - keep-alive + Content-Length: + - '166' + Content-Type: + - application/json + ParameterSetName: + - -n -g --allocation-method --sku -o + User-Agent: + - AZURECLI/2.23.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.7.4 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi8/providers/Microsoft.Network/publicIPAddresses/appgw-ip?api-version=2018-11-01 + response: + body: + string: "{\r\n \"name\": \"appgw-ip\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi8/providers/Microsoft.Network/publicIPAddresses/appgw-ip\",\r\n + \ \"etag\": \"W/\\\"c7036398-c185-40ab-a9fb-d5f166852fdc\\\"\",\r\n \"location\": + \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"resourceGuid\": \"1a9e2b66-ebe0-48e0-90c8-a53bec029176\",\r\n \"ipAddress\": + \"104.40.51.241\",\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n \"publicIPAllocationMethod\": + \"Static\",\r\n \"idleTimeoutInMinutes\": 4,\r\n \"ipTags\": [],\r\n + \ \"ipConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi8/providers/Microsoft.Network/applicationGateways/appgw/frontendIPConfigurations/appGatewayFrontendIP\"\r\n + \ }\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\n + \ \"sku\": {\r\n \"name\": \"Standard\"\r\n }\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/45cd168a-d996-4124-98a6-dc8807fc913c?api-version=2018-11-01 + cache-control: + - no-cache + content-length: + - '864' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 10 Jun 2021 05:38:10 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - ce9d289c-0540-4aee-8776-9c4da7acd438 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network public-ip create + Connection: + - keep-alive + ParameterSetName: + - -n -g --allocation-method --sku -o + User-Agent: + - AZURECLI/2.23.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.7.4 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/45cd168a-d996-4124-98a6-dc8807fc913c?api-version=2018-11-01 + response: + body: + string: "{\r\n \"status\": \"Succeeded\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '29' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 10 Jun 2021 05:38:41 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 528cf181-5eeb-4ab5-8663-da21f1981fe6 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network public-ip create + Connection: + - keep-alive + ParameterSetName: + - -n -g --allocation-method --sku -o + User-Agent: + - AZURECLI/2.23.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.7.4 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi8/providers/Microsoft.Network/publicIPAddresses/appgw-ip?api-version=2018-11-01 + response: + body: + string: "{\r\n \"name\": \"appgw-ip\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi8/providers/Microsoft.Network/publicIPAddresses/appgw-ip\",\r\n + \ \"etag\": \"W/\\\"c7036398-c185-40ab-a9fb-d5f166852fdc\\\"\",\r\n \"location\": + \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"resourceGuid\": \"1a9e2b66-ebe0-48e0-90c8-a53bec029176\",\r\n \"ipAddress\": + \"104.40.51.241\",\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n \"publicIPAllocationMethod\": + \"Static\",\r\n \"idleTimeoutInMinutes\": 4,\r\n \"ipTags\": [],\r\n + \ \"ipConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi8/providers/Microsoft.Network/applicationGateways/appgw/frontendIPConfigurations/appGatewayFrontendIP\"\r\n + \ }\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\n + \ \"sku\": {\r\n \"name\": \"Standard\"\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '864' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 10 Jun 2021 05:38:41 GMT + etag: + - W/"c7036398-c185-40ab-a9fb-d5f166852fdc" + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 3722635a-16f5-4bc8-941f-34e6f24caa92 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network application-gateway create + Connection: + - keep-alive + ParameterSetName: + - -n -g --sku --public-ip-address --subnet + User-Agent: + - AZURECLI/2.23.0 azsdk-python-azure-mgmt-resource/16.1.0 Python/3.7.4 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acscliapi8?api-version=2019-10-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi8","name":"acscliapi8","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '227' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 10 Jun 2021 05:38:41 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: + - network application-gateway create + Connection: + - keep-alive + ParameterSetName: + - -n -g --sku --public-ip-address --subnet + User-Agent: + - AZURECLI/2.23.0 azsdk-python-azure-mgmt-resource/16.1.0 Python/3.7.4 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resources?$filter=resourceGroup%20eq%20%27acscliapi8%27%20and%20name%20eq%20%27cliakstest000002%27%20and%20resourceType%20eq%20%27Microsoft.Network%2FvirtualNetworks%27&api-version=2019-10-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi8/providers/Microsoft.Network/virtualNetworks/cliakstest000002","name":"cliakstest000002","type":"Microsoft.Network/virtualNetworks","location":"westus","tags":{}}]}' + headers: + cache-control: + - no-cache + content-length: + - '258' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 10 Jun 2021 05:38:42 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: + - network application-gateway create + Connection: + - keep-alive + ParameterSetName: + - -n -g --sku --public-ip-address --subnet + User-Agent: + - AZURECLI/2.23.0 azsdk-python-azure-mgmt-resource/16.1.0 Python/3.7.4 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resources?$filter=resourceGroup%20eq%20%27acscliapi8%27%20and%20name%20eq%20%27appgw-ip%27%20and%20resourceType%20eq%20%27Microsoft.Network%2FpublicIPAddresses%27&api-version=2019-10-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi8/providers/Microsoft.Network/publicIPAddresses/appgw-ip","name":"appgw-ip","type":"Microsoft.Network/publicIPAddresses","sku":{"name":"Standard"},"location":"westus"}]}' + headers: + cache-control: + - no-cache + content-length: + - '262' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 10 Jun 2021 05:38:42 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: '{"properties": {"template": {"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", "parameters": {}, "variables": {"appGwID": "[resourceId(''Microsoft.Network/applicationGateways'', + ''appgw'')]"}, "resources": [{"type": "Microsoft.Network/applicationGateways", + "name": "appgw", "location": "westus", "tags": {}, "apiVersion": "2018-11-01", + "dependsOn": [], "properties": {"backendAddressPools": [{"name": "appGatewayBackendPool"}], + "backendHttpSettingsCollection": [{"name": "appGatewayBackendHttpSettings", + "properties": {"Port": 80, "Protocol": "Http", "CookieBasedAffinity": "disabled", + "connectionDraining": {"enabled": false, "drainTimeoutInSec": 1}}}], "frontendIPConfigurations": + [{"name": "appGatewayFrontendIP", "properties": {"publicIPAddress": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi8/providers/Microsoft.Network/publicIPAddresses/appgw-ip"}}}], + "frontendPorts": [{"name": "appGatewayFrontendPort", "properties": {"Port": + 80}}], "gatewayIPConfigurations": [{"name": "appGatewayFrontendIP", "properties": + {"subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi8/providers/Microsoft.Network/virtualNetworks/cliakstest000002/subnets/appgw-subnet"}}}], + "httpListeners": [{"name": "appGatewayHttpListener", "properties": {"FrontendIpConfiguration": + {"Id": "[concat(variables(''appGwID''), ''/frontendIPConfigurations/appGatewayFrontendIP'')]"}, + "FrontendPort": {"Id": "[concat(variables(''appGwID''), ''/frontendPorts/appGatewayFrontendPort'')]"}, + "Protocol": "http", "SslCertificate": null}}], "sku": {"name": "Standard_v2", + "tier": "Standard_v2", "capacity": 2}, "requestRoutingRules": [{"Name": "rule1", + "properties": {"RuleType": "Basic", "httpListener": {"id": "[concat(variables(''appGwID''), + ''/httpListeners/appGatewayHttpListener'')]"}, "backendAddressPool": {"id": + "[concat(variables(''appGwID''), ''/backendAddressPools/appGatewayBackendPool'')]"}, + "backendHttpSettings": {"id": "[concat(variables(''appGwID''), ''/backendHttpSettingsCollection/appGatewayBackendHttpSettings'')]"}}}], + "privateLinkConfigurations": []}, "zones": null}], "outputs": {"applicationGateway": + {"type": "object", "value": "[reference(''appgw'')]"}}}, "parameters": {}, "mode": + "incremental"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network application-gateway create + Connection: + - keep-alive + Content-Length: + - '2313' + Content-Type: + - application/json + ParameterSetName: + - -n -g --sku --public-ip-address --subnet + User-Agent: + - AZURECLI/2.23.0 azsdk-python-azure-mgmt-resource/16.1.0 Python/3.7.4 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acscliapi8/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2019-10-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi8/providers/Microsoft.Resources/deployments/ag_deploy_NrkeqVYn8fpcEcFZFcBD0Pcps62kINsf","name":"ag_deploy_NrkeqVYn8fpcEcFZFcBD0Pcps62kINsf","type":"Microsoft.Resources/deployments","properties":{"templateHash":"5128484810101164944","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2021-06-10T05:38:42.8556515Z","duration":"PT0.0892314S","correlationId":"187b0ad6-1aea-4a45-b2d5-1877c1e2ee8b","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"applicationGateways","locations":["westus"]}]}],"dependencies":[]}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acscliapi8/providers/Microsoft.Resources/deployments/ag_deploy_NrkeqVYn8fpcEcFZFcBD0Pcps62kINsf/operationStatuses/08585783033627111921?api-version=2019-10-01 + cache-control: + - no-cache + content-length: + - '654' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 10 Jun 2021 05:38:41 GMT + expires: + - '-1' + pragma: + - no-cache + 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: + - network application-gateway create + Connection: + - keep-alive + ParameterSetName: + - -n -g --sku --public-ip-address --subnet + User-Agent: + - AZURECLI/2.23.0 azsdk-python-azure-mgmt-resource/16.1.0 Python/3.7.4 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acscliapi8/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585783033627111921?api-version=2019-10-01 + response: + body: + string: '{"status":"Failed","error":{"code":"DeploymentFailed","message":"At + least one resource deployment operation failed. Please list deployment operations + for details. Please see https://aka.ms/DeployOperations for usage details.","details":[{"code":"BadRequest","message":"{\r\n \"error\": + {\r\n \"code\": \"ApplicationGatewayIpCofigSubnetCannotBeChanged\",\r\n \"message\": + \"Subnet /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi8/providers/Microsoft.Network/virtualNetworks/cliakstestglchz3/subnets/appgw-subnet + referenced by Application Gateway''s GatewayIpConfiguration /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi8/providers/Microsoft.Network/applicationGateways/appgw/gatewayIPConfigurations/appGatewayFrontendIP + cannot be changed. To change subnet, the Application Gateway must be in ''Stopped'' + state. It should not be running or in updating state.\",\r\n \"details\": + []\r\n }\r\n}"}]}}' + headers: + cache-control: + - no-cache + content-length: + - '961' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 10 Jun 2021 05:39:12 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 +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/recordings/test_aks_byo_subnet_with_ingress_appgw_addon.yaml b/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/recordings/test_aks_byo_subnet_with_ingress_appgw_addon.yaml new file mode 100644 index 00000000000..ee71e64e884 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/recordings/test_aks_byo_subnet_with_ingress_appgw_addon.yaml @@ -0,0 +1,738 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vnet create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --address-prefix --subnet-name --subnet-prefix -o + User-Agent: + - AZURECLI/2.23.0 azsdk-python-azure-mgmt-resource/16.1.0 Python/3.7.4 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acscliapi8?api-version=2019-10-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi8","name":"acscliapi8","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '227' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 10 Jun 2021 05:38: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": "westus", "tags": {}, "properties": {"addressSpace": {"addressPrefixes": + ["11.0.0.0/16"]}, "dhcpOptions": {}, "subnets": [{"name": "aks-subnet", "properties": + {"addressPrefix": "11.0.0.0/24"}}]}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vnet create + Connection: + - keep-alive + Content-Length: + - '208' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --name --address-prefix --subnet-name --subnet-prefix -o + User-Agent: + - AZURECLI/2.23.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.7.4 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi8/providers/Microsoft.Network/virtualNetworks/cliakstest000002?api-version=2018-11-01 + response: + body: + string: "{\r\n \"name\": \"cliakstest000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi8/providers/Microsoft.Network/virtualNetworks/cliakstest000002\",\r\n + \ \"etag\": \"W/\\\"3926f169-f4eb-4e59-8c9d-e273150a92cc\\\"\",\r\n \"type\": + \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n + \ \"resourceGuid\": \"1d694783-d568-439c-af0b-b56200dbb8e2\",\r\n \"addressSpace\": + {\r\n \"addressPrefixes\": [\r\n \"11.0.0.0/16\"\r\n ]\r\n + \ },\r\n \"dhcpOptions\": {\r\n \"dnsServers\": []\r\n },\r\n + \ \"subnets\": [\r\n {\r\n \"name\": \"aks-subnet\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi8/providers/Microsoft.Network/virtualNetworks/cliakstest000002/subnets/aks-subnet\",\r\n + \ \"etag\": \"W/\\\"3926f169-f4eb-4e59-8c9d-e273150a92cc\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n + \ \"addressPrefix\": \"11.0.0.0/24\",\r\n \"delegations\": + []\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n + \ }\r\n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": + false\r\n }\r\n}" + headers: + azure-asyncnotification: + - Enabled + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9d277aea-02a6-4577-898c-b9c2583db59e?api-version=2018-11-01 + cache-control: + - no-cache + content-length: + - '1197' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 10 Jun 2021 05:38:02 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - e134f8c6-a5c8-4fea-9c6a-acc1b24856ab + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vnet create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --address-prefix --subnet-name --subnet-prefix -o + User-Agent: + - AZURECLI/2.23.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.7.4 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9d277aea-02a6-4577-898c-b9c2583db59e?api-version=2018-11-01 + response: + body: + string: "{\r\n \"status\": \"Succeeded\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '29' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 10 Jun 2021 05:38:06 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - ce3c40fb-979a-4255-ac3f-0fabaa23a817 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vnet create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --address-prefix --subnet-name --subnet-prefix -o + User-Agent: + - AZURECLI/2.23.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.7.4 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi8/providers/Microsoft.Network/virtualNetworks/cliakstest000002?api-version=2018-11-01 + response: + body: + string: "{\r\n \"name\": \"cliakstest000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi8/providers/Microsoft.Network/virtualNetworks/cliakstest000002\",\r\n + \ \"etag\": \"W/\\\"30c4ffb3-aa49-4fc0-902d-3c66db05d47d\\\"\",\r\n \"type\": + \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"resourceGuid\": \"1d694783-d568-439c-af0b-b56200dbb8e2\",\r\n \"addressSpace\": + {\r\n \"addressPrefixes\": [\r\n \"11.0.0.0/16\"\r\n ]\r\n + \ },\r\n \"dhcpOptions\": {\r\n \"dnsServers\": []\r\n },\r\n + \ \"subnets\": [\r\n {\r\n \"name\": \"aks-subnet\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi8/providers/Microsoft.Network/virtualNetworks/cliakstest000002/subnets/aks-subnet\",\r\n + \ \"etag\": \"W/\\\"30c4ffb3-aa49-4fc0-902d-3c66db05d47d\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"addressPrefix\": \"11.0.0.0/24\",\r\n \"delegations\": + []\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n + \ }\r\n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": + false\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1199' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 10 Jun 2021 05:38:06 GMT + etag: + - W/"30c4ffb3-aa49-4fc0-902d-3c66db05d47d" + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - e8336edf-199b-4b91-ba76-9464545f65b9 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vnet subnet create + Connection: + - keep-alive + ParameterSetName: + - -n --resource-group --vnet-name --address-prefixes -o + User-Agent: + - AZURECLI/2.23.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.7.4 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi8/providers/Microsoft.Network/virtualNetworks/cliakstest000002?api-version=2018-11-01 + response: + body: + string: "{\r\n \"name\": \"cliakstest000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi8/providers/Microsoft.Network/virtualNetworks/cliakstest000002\",\r\n + \ \"etag\": \"W/\\\"30c4ffb3-aa49-4fc0-902d-3c66db05d47d\\\"\",\r\n \"type\": + \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"resourceGuid\": \"1d694783-d568-439c-af0b-b56200dbb8e2\",\r\n \"addressSpace\": + {\r\n \"addressPrefixes\": [\r\n \"11.0.0.0/16\"\r\n ]\r\n + \ },\r\n \"dhcpOptions\": {\r\n \"dnsServers\": []\r\n },\r\n + \ \"subnets\": [\r\n {\r\n \"name\": \"aks-subnet\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi8/providers/Microsoft.Network/virtualNetworks/cliakstest000002/subnets/aks-subnet\",\r\n + \ \"etag\": \"W/\\\"30c4ffb3-aa49-4fc0-902d-3c66db05d47d\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"addressPrefix\": \"11.0.0.0/24\",\r\n \"delegations\": + []\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n + \ }\r\n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": + false\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1199' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 10 Jun 2021 05:38:05 GMT + etag: + - W/"30c4ffb3-aa49-4fc0-902d-3c66db05d47d" + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 125a33da-08fe-47eb-af74-88a3c5de9ecf + status: + code: 200 + message: OK +- request: + body: '{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi8/providers/Microsoft.Network/virtualNetworks/cliakstest000002", + "location": "westus", "tags": {}, "etag": "W/\"30c4ffb3-aa49-4fc0-902d-3c66db05d47d\"", + "properties": {"addressSpace": {"addressPrefixes": ["11.0.0.0/16"]}, "dhcpOptions": + {"dnsServers": []}, "subnets": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi8/providers/Microsoft.Network/virtualNetworks/cliakstest000002/subnets/aks-subnet", + "name": "aks-subnet", "etag": "W/\"30c4ffb3-aa49-4fc0-902d-3c66db05d47d\"", + "properties": {"addressPrefix": "11.0.0.0/24", "delegations": [], "provisioningState": + "Succeeded"}}, {"name": "appgw-subnet", "properties": {"addressPrefix": "11.0.1.0/24"}}], + "virtualNetworkPeerings": [], "resourceGuid": "1d694783-d568-439c-af0b-b56200dbb8e2", + "provisioningState": "Succeeded", "enableDdosProtection": false}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vnet subnet create + Connection: + - keep-alive + Content-Length: + - '925' + Content-Type: + - application/json + ParameterSetName: + - -n --resource-group --vnet-name --address-prefixes -o + User-Agent: + - AZURECLI/2.23.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.7.4 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi8/providers/Microsoft.Network/virtualNetworks/cliakstest000002?api-version=2018-11-01 + response: + body: + string: "{\r\n \"name\": \"cliakstest000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi8/providers/Microsoft.Network/virtualNetworks/cliakstest000002\",\r\n + \ \"etag\": \"W/\\\"9d8ed734-a246-421b-b55a-ad55e09d9126\\\"\",\r\n \"type\": + \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n + \ \"resourceGuid\": \"1d694783-d568-439c-af0b-b56200dbb8e2\",\r\n \"addressSpace\": + {\r\n \"addressPrefixes\": [\r\n \"11.0.0.0/16\"\r\n ]\r\n + \ },\r\n \"dhcpOptions\": {\r\n \"dnsServers\": []\r\n },\r\n + \ \"subnets\": [\r\n {\r\n \"name\": \"aks-subnet\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi8/providers/Microsoft.Network/virtualNetworks/cliakstest000002/subnets/aks-subnet\",\r\n + \ \"etag\": \"W/\\\"9d8ed734-a246-421b-b55a-ad55e09d9126\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n + \ \"addressPrefix\": \"11.0.0.0/24\",\r\n \"delegations\": + []\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n + \ },\r\n {\r\n \"name\": \"appgw-subnet\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi8/providers/Microsoft.Network/virtualNetworks/cliakstest000002/subnets/appgw-subnet\",\r\n + \ \"etag\": \"W/\\\"9d8ed734-a246-421b-b55a-ad55e09d9126\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n + \ \"addressPrefix\": \"11.0.1.0/24\",\r\n \"delegations\": + []\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n + \ }\r\n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": + false\r\n }\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/0d86e7d1-5b2a-4c9e-9aa3-7f55f00affd5?api-version=2018-11-01 + cache-control: + - no-cache + content-length: + - '1704' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 10 Jun 2021 05:38:06 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 1eb98adb-e9a0-4c70-b1b6-bd2f0ab2921e + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vnet subnet create + Connection: + - keep-alive + ParameterSetName: + - -n --resource-group --vnet-name --address-prefixes -o + User-Agent: + - AZURECLI/2.23.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.7.4 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/0d86e7d1-5b2a-4c9e-9aa3-7f55f00affd5?api-version=2018-11-01 + response: + body: + string: "{\r\n \"status\": \"Succeeded\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '29' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 10 Jun 2021 05:38:09 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 9b0c0eef-e83c-46d2-80e3-11e3229a9b7b + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vnet subnet create + Connection: + - keep-alive + ParameterSetName: + - -n --resource-group --vnet-name --address-prefixes -o + User-Agent: + - AZURECLI/2.23.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.7.4 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi8/providers/Microsoft.Network/virtualNetworks/cliakstest000002?api-version=2018-11-01 + response: + body: + string: "{\r\n \"name\": \"cliakstest000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi8/providers/Microsoft.Network/virtualNetworks/cliakstest000002\",\r\n + \ \"etag\": \"W/\\\"da715197-2fad-44fa-bc05-27a82a5cb362\\\"\",\r\n \"type\": + \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"resourceGuid\": \"1d694783-d568-439c-af0b-b56200dbb8e2\",\r\n \"addressSpace\": + {\r\n \"addressPrefixes\": [\r\n \"11.0.0.0/16\"\r\n ]\r\n + \ },\r\n \"dhcpOptions\": {\r\n \"dnsServers\": []\r\n },\r\n + \ \"subnets\": [\r\n {\r\n \"name\": \"aks-subnet\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi8/providers/Microsoft.Network/virtualNetworks/cliakstest000002/subnets/aks-subnet\",\r\n + \ \"etag\": \"W/\\\"da715197-2fad-44fa-bc05-27a82a5cb362\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"addressPrefix\": \"11.0.0.0/24\",\r\n \"delegations\": + []\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n + \ },\r\n {\r\n \"name\": \"appgw-subnet\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi8/providers/Microsoft.Network/virtualNetworks/cliakstest000002/subnets/appgw-subnet\",\r\n + \ \"etag\": \"W/\\\"da715197-2fad-44fa-bc05-27a82a5cb362\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"addressPrefix\": \"11.0.1.0/24\",\r\n \"delegations\": + []\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n + \ }\r\n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": + false\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1707' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 10 Jun 2021 05:38:09 GMT + etag: + - W/"da715197-2fad-44fa-bc05-27a82a5cb362" + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 77ef2ad1-1bfb-4af7-8b8f-5afafd2cae06 + 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 --enable-managed-identity --generate-ssh-keys --vnet-subnet-id + -a --appgw-name --appgw-subnet-id --yes -o + User-Agent: + - AZURECLI/2.23.0 azsdk-python-azure-mgmt-resource/16.1.0 Python/3.7.4 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acscliapi8?api-version=2019-10-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi8","name":"acscliapi8","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '227' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 10 Jun 2021 05:38:10 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": "westus", "properties": {"kubernetesVersion": "", "dnsPrefix": + "cliakstest-acscliapi8-8a4f68", "agentPoolProfiles": [{"count": 3, "vmSize": + "Standard_DS2_v2", "vnetSubnetID": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi8/providers/Microsoft.Network/virtualNetworks/cliakstest000002/subnets/aks-subnet", + "osType": "Linux", "type": "VirtualMachineScaleSets", "mode": "System", "enableNodePublicIP": + false, "scaleSetPriority": "Regular", "scaleSetEvictionPolicy": "Delete", "name": + "nodepool1"}], "linuxProfile": {"adminUsername": "azureuser", "ssh": {"publicKeys": + [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDKmzqj3TPcGPIOqJjZwQyT20uOJE+UD4qUFhv3tGaGua00KbNRShUDOcUwV2G/3b6A+3VLUsQ/tV9u9X97TKuFTxyQSv3SRPYGmrkqNI21p1Dg5jMBuTZl2oFFFPdFCUT/etjuFApVV0qbjOWwsRjtZBRRMCzYToS60TQQrcfSgK6iYld5FgsEbmn6W+3MYytX2FcRTjd9M0Hl993fP7LBFLON9xUr+iFcu+rqjGqiBYkE1j4Pryjf+2c2hZghSB1riehfpAigKeqwEOSppRonwJ7bQXW3ZVs0vT6gAfbBZixUzTb3ie7MH9xwCV1Z7Rp7FmWa6zaTI2HSdQfVSePMixti7xbZvFHKcQvJpji3mt+CiiL6W0slHjpHepRBhmg3yIB6t9RGbtrlqlK9XbkMNgOeQtMQtLSuqO6Xr0ipV6FPXGcEDHLYJVo//o7d4h93cO68XjUP7ze86/uEv5chV0BJmv7dzbYbK1GAWN0XRp5KdUz2h2fYCUmSftZNRTFLh/1R0hNbUIoSlfIO0ZGdZzoh/5N7EzkD0md1pUJ34/cWZ/8aoIsbbzmc5uUjaI2p6E0YumM/WnF1Ymem9L+cVXZjSQ0L8Ad5VyYk0kHp7X4ckRYuPIsNA20r+PoIBq1Yp6i+Q9oHS2wuxummU4Z11aOiCqjkW+TU6rQ+RmRGow== + redmond\\bhsantha@bhuvan-dev\n"}]}}, "addonProfiles": {"ingressApplicationGateway": + {"enabled": true, "config": {"applicationGatewayName": "gateway", "subnetId": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi8/providers/Microsoft.Network/virtualNetworks/cliakstest000002/subnets/appgw-subnet"}}}, + "enableRBAC": true, "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"}}, "identity": {"type": "SystemAssigned"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '1971' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --resource-group --name --enable-managed-identity --generate-ssh-keys --vnet-subnet-id + -a --appgw-name --appgw-subnet-id --yes -o + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi8/providers/Microsoft.ContainerService/managedClusters/cliakstest000001?api-version=2020-11-01 + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acscliapi8/providers/Microsoft.ContainerService/managedClusters/cliakstest000001\",\n + \ \"location\": \"westus\",\n \"name\": \"cliakstest000001\",\n \"type\": + \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": + \"Creating\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": + \"1.19.11\",\n \"dnsPrefix\": \"cliakstest-acscliapi8-8a4f68\",\n \"fqdn\": + \"cliakstest-acscliapi8-8a4f68-621d1453.hcp.westus.azmk8s.io\",\n \"agentPoolProfiles\": + [\n {\n \"name\": \"nodepool1\",\n \"count\": 3,\n \"vmSize\": + \"Standard_DS2_v2\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": \"Managed\",\n + \ \"vnetSubnetID\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi8/providers/Microsoft.Network/virtualNetworks/cliakstest000002/subnets/aks-subnet\",\n + \ \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n \"provisioningState\": + \"Creating\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n + \ \"orchestratorVersion\": \"1.19.11\",\n \"enableNodePublicIP\": false,\n + \ \"nodeLabels\": {},\n \"mode\": \"System\",\n \"osType\": \"Linux\",\n + \ \"nodeImageVersion\": \"AKSUbuntu-1804gen2containerd-2021.05.19\"\n }\n + \ ],\n \"linuxProfile\": {\n \"adminUsername\": \"azureuser\",\n \"ssh\": + {\n \"publicKeys\": [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDKmzqj3TPcGPIOqJjZwQyT20uOJE+UD4qUFhv3tGaGua00KbNRShUDOcUwV2G/3b6A+3VLUsQ/tV9u9X97TKuFTxyQSv3SRPYGmrkqNI21p1Dg5jMBuTZl2oFFFPdFCUT/etjuFApVV0qbjOWwsRjtZBRRMCzYToS60TQQrcfSgK6iYld5FgsEbmn6W+3MYytX2FcRTjd9M0Hl993fP7LBFLON9xUr+iFcu+rqjGqiBYkE1j4Pryjf+2c2hZghSB1riehfpAigKeqwEOSppRonwJ7bQXW3ZVs0vT6gAfbBZixUzTb3ie7MH9xwCV1Z7Rp7FmWa6zaTI2HSdQfVSePMixti7xbZvFHKcQvJpji3mt+CiiL6W0slHjpHepRBhmg3yIB6t9RGbtrlqlK9XbkMNgOeQtMQtLSuqO6Xr0ipV6FPXGcEDHLYJVo//o7d4h93cO68XjUP7ze86/uEv5chV0BJmv7dzbYbK1GAWN0XRp5KdUz2h2fYCUmSftZNRTFLh/1R0hNbUIoSlfIO0ZGdZzoh/5N7EzkD0md1pUJ34/cWZ/8aoIsbbzmc5uUjaI2p6E0YumM/WnF1Ymem9L+cVXZjSQ0L8Ad5VyYk0kHp7X4ckRYuPIsNA20r+PoIBq1Yp6i+Q9oHS2wuxummU4Z11aOiCqjkW+TU6rQ+RmRGow== + redmond\\\\bhsantha@bhuvan-dev\\n\"\n }\n ]\n }\n },\n \"servicePrincipalProfile\": + {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \"addonProfiles\": + {\n \"ingressApplicationGateway\": {\n \"enabled\": true,\n \"config\": + {\n \"applicationGatewayName\": \"gateway\",\n \"effectiveApplicationGatewayId\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_acscliapi8_cliakstest000001_westus/providers/Microsoft.Network/applicationGateways/gateway\",\n + \ \"subnetId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi8/providers/Microsoft.Network/virtualNetworks/cliakstest000002/subnets/appgw-subnet\"\n + \ }\n }\n },\n \"nodeResourceGroup\": \"MC_acscliapi8_cliakstest000001_westus\",\n + \ \"enableRBAC\": true,\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 },\n \"identity\": + {\n \"type\": \"SystemAssigned\",\n \"principalId\":\"00000000-0000-0000-0000-000000000001\",\n + \ \"tenantId\": \"657a2bb7-9a58-4be7-87f3-643bb3b7cbb5\"\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/westus/operations/025733fc-7f27-4ece-b2e4-82822f124679?api-version=2017-08-31 + cache-control: + - no-cache + content-length: + - '3444' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 05:38:17 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --enable-managed-identity --generate-ssh-keys --vnet-subnet-id + -a --appgw-name --appgw-subnet-id --yes -o + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus/operations/025733fc-7f27-4ece-b2e4-82822f124679?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"fc335702-277f-ce4e-b2e4-82822f124679\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-06-10T05:38:16.96Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '121' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 05:38:47 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --enable-managed-identity --generate-ssh-keys --vnet-subnet-id + -a --appgw-name --appgw-subnet-id --yes -o + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus/operations/025733fc-7f27-4ece-b2e4-82822f124679?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"fc335702-277f-ce4e-b2e4-82822f124679\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-06-10T05:38:16.96Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '121' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 05:39:17 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/recordings/test_aks_create_aadv1_and_update_with_managed_aad.yaml b/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/recordings/test_aks_create_aadv1_and_update_with_managed_aad.yaml new file mode 100644 index 00000000000..6f3033a753d --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/recordings/test_aks_create_aadv1_and_update_with_managed_aad.yaml @@ -0,0 +1,118 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --vm-set-type --node-count --ssh-key-value --aad-server-app-id + --aad-server-app-secret --aad-client-app-id --aad-tenant-id -o + User-Agent: + - AZURECLI/2.23.0 azsdk-python-azure-mgmt-resource/16.1.0 Python/3.7.4 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acscliapi2?api-version=2019-10-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi2","name":"acscliapi2","type":"Microsoft.Resources/resourceGroups","location":"eastus","tags":{},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '227' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 10 Jun 2021 01:09:45 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"location": "eastus", "properties": {"kubernetesVersion": "", "dnsPrefix": + "cliakstest-acscliapi2-8a4f68", "agentPoolProfiles": [{"count": 1, "vmSize": + "Standard_DS2_v2", "osType": "Linux", "type": "VirtualMachineScaleSets", "mode": + "System", "enableNodePublicIP": false, "scaleSetPriority": "Regular", "scaleSetEvictionPolicy": + "Delete", "name": "nodepool1"}], "linuxProfile": {"adminUsername": "azureuser", + "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCbIg1guRHbI0lV11wWDt1r2cUdcNd27CJsg+SfgC7miZeubtwUhbsPdhMQsfDyhOWHq1+ZL0M+nJZV63d/1dhmhtgyOqejUwrPlzKhydsbrsdUor+JmNJDdW01v7BXHyuymT8G4s09jCasNOwiufbP/qp72ruu0bIA1nySsvlf9pCQAuFkAnVnf/rFhUlOkhtRpwcq8SUNY2zRHR/EKb/4NWY1JzR4sa3q2fWIJdrrX0DvLoa5g9bIEd4Df79ba7v+yiUBOS0zT2ll+z4g9izHK3EO5d8hL4jYxcjKs+wcslSYRWrascfscLgMlMGh0CdKeNTDjHpGPncaf3Z+FwwwjWeuiNBxv7bJo13/8B/098KlVDl4GZqsoBCEjPyJfV6hO0y/LkRGkk7oHWKgeWAfKtfLItRp00eZ4fcJNK9kCaSMmEugoZWcI7NGbZXzqFWqbpRI7NcDP9+WIQ+i9U5vqWsqd/zng4kbuAJ6UuKqIzB0upYrLShfQE3SAck8oaLhJqqq56VfDuASNpJKidV+zq27HfSBmbXnkR/5AK337dc3MXKJypoK/QPMLKUAP5XLPbs+NddJQV7EZXd29DLgp+fRIg3edpKdO7ZErWhv7d+3Kws+e1Y+ypmR2WIVSwVyBEUfgv2C8Ts9gnTF4pNcEY/S2aBicz5Ew2+jdyGNQQ== + test@example.com\n"}]}}, "addonProfiles": {}, "enableRBAC": true, "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"}, "aadProfile": {"clientAppID": + "00000000-0000-0000-0000-000000000002", "serverAppID": "00000000-0000-0000-0000-000000000001", + "serverAppSecret": "fake-secret", "tenantID": "d5b55040-0c14-48cc-a028-91457fc190d9"}}, + "identity": {"type": "SystemAssigned"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '1724' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --resource-group --name --vm-set-type --node-count --ssh-key-value --aad-server-app-id + --aad-server-app-secret --aad-client-app-id --aad-tenant-id -o + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi2/providers/Microsoft.ContainerService/managedClusters/cliakstest000001?api-version=2020-11-01 + response: + body: + string: "{\n \"code\": \"QuotaExceeded\",\n \"message\": \"Provisioning of + resource(s) for container service cliakstest000001 in resource group acscliapi2 + failed. Message: Operation could not be completed as it results in exceeding + approved Total Regional Cores quota. Additional details - Deployment Model: + Resource Manager, Location: eastus, Current Limit: 20, Current Usage: 20, + Additional Required: 2, (Minimum) New Limit Required: 22. Submit a request + for Quota increase at https://aka.ms/ProdportalCRP/?#create/Microsoft.Support/Parameters/%7B%22subId%22:%228a4f688f-f361-4729-a197-1a8d663b603b%22,%22pesId%22:%2206bfd9d3-516b-d5c6-5802-169c800dec89%22,%22supportTopicId%22:%22e12e3d1d-7fa0-af33-c6d0-3c50df9658a3%22%7D + by specifying parameters listed in the \u2018Details\u2019 section for deployment + to succeed. Please read more about quota limits at https://docs.microsoft.com/en-us/azure/azure-supportability/regional-quota-requests.. + Details: \"\n }" + headers: + cache-control: + - no-cache + content-length: + - '936' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 01:09:50 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 400 + message: Bad Request +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/recordings/test_aks_create_aadv1_and_update_with_managed_aad_msi.yaml b/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/recordings/test_aks_create_aadv1_and_update_with_managed_aad_msi.yaml new file mode 100644 index 00000000000..2dde812afe3 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/recordings/test_aks_create_aadv1_and_update_with_managed_aad_msi.yaml @@ -0,0 +1,118 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --vm-set-type --node-count --ssh-key-value --aad-server-app-id + --aad-server-app-secret --aad-client-app-id --aad-tenant-id -o + User-Agent: + - AZURECLI/2.23.0 azsdk-python-azure-mgmt-resource/16.1.0 Python/3.7.4 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acscliapi2?api-version=2019-10-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi2","name":"acscliapi2","type":"Microsoft.Resources/resourceGroups","location":"eastus","tags":{},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '227' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 10 Jun 2021 01:11:55 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"location": "eastus", "properties": {"kubernetesVersion": "", "dnsPrefix": + "cliakstest-acscliapi2-8a4f68", "agentPoolProfiles": [{"count": 1, "vmSize": + "Standard_DS2_v2", "osType": "Linux", "type": "VirtualMachineScaleSets", "mode": + "System", "enableNodePublicIP": false, "scaleSetPriority": "Regular", "scaleSetEvictionPolicy": + "Delete", "name": "nodepool1"}], "linuxProfile": {"adminUsername": "azureuser", + "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCbIg1guRHbI0lV11wWDt1r2cUdcNd27CJsg+SfgC7miZeubtwUhbsPdhMQsfDyhOWHq1+ZL0M+nJZV63d/1dhmhtgyOqejUwrPlzKhydsbrsdUor+JmNJDdW01v7BXHyuymT8G4s09jCasNOwiufbP/qp72ruu0bIA1nySsvlf9pCQAuFkAnVnf/rFhUlOkhtRpwcq8SUNY2zRHR/EKb/4NWY1JzR4sa3q2fWIJdrrX0DvLoa5g9bIEd4Df79ba7v+yiUBOS0zT2ll+z4g9izHK3EO5d8hL4jYxcjKs+wcslSYRWrascfscLgMlMGh0CdKeNTDjHpGPncaf3Z+FwwwjWeuiNBxv7bJo13/8B/098KlVDl4GZqsoBCEjPyJfV6hO0y/LkRGkk7oHWKgeWAfKtfLItRp00eZ4fcJNK9kCaSMmEugoZWcI7NGbZXzqFWqbpRI7NcDP9+WIQ+i9U5vqWsqd/zng4kbuAJ6UuKqIzB0upYrLShfQE3SAck8oaLhJqqq56VfDuASNpJKidV+zq27HfSBmbXnkR/5AK337dc3MXKJypoK/QPMLKUAP5XLPbs+NddJQV7EZXd29DLgp+fRIg3edpKdO7ZErWhv7d+3Kws+e1Y+ypmR2WIVSwVyBEUfgv2C8Ts9gnTF4pNcEY/S2aBicz5Ew2+jdyGNQQ== + test@example.com\n"}]}}, "addonProfiles": {}, "enableRBAC": true, "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"}, "aadProfile": {"clientAppID": + "00000000-0000-0000-0000-000000000002", "serverAppID": "00000000-0000-0000-0000-000000000001", + "serverAppSecret": "fake-secret", "tenantID": "d5b55040-0c14-48cc-a028-91457fc190d9"}}, + "identity": {"type": "SystemAssigned"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '1724' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --resource-group --name --vm-set-type --node-count --ssh-key-value --aad-server-app-id + --aad-server-app-secret --aad-client-app-id --aad-tenant-id -o + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi2/providers/Microsoft.ContainerService/managedClusters/cliakstest000001?api-version=2020-11-01 + response: + body: + string: "{\n \"code\": \"QuotaExceeded\",\n \"message\": \"Provisioning of + resource(s) for container service cliakstest000001 in resource group acscliapi2 + failed. Message: Operation could not be completed as it results in exceeding + approved Total Regional Cores quota. Additional details - Deployment Model: + Resource Manager, Location: eastus, Current Limit: 20, Current Usage: 20, + Additional Required: 2, (Minimum) New Limit Required: 22. Submit a request + for Quota increase at https://aka.ms/ProdportalCRP/?#create/Microsoft.Support/Parameters/%7B%22subId%22:%228a4f688f-f361-4729-a197-1a8d663b603b%22,%22pesId%22:%2206bfd9d3-516b-d5c6-5802-169c800dec89%22,%22supportTopicId%22:%22e12e3d1d-7fa0-af33-c6d0-3c50df9658a3%22%7D + by specifying parameters listed in the \u2018Details\u2019 section for deployment + to succeed. Please read more about quota limits at https://docs.microsoft.com/en-us/azure/azure-supportability/regional-quota-requests.. + Details: \"\n }" + headers: + cache-control: + - no-cache + content-length: + - '936' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 01:11:59 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: 400 + message: Bad Request +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/recordings/test_aks_create_blb_vmas.yaml b/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/recordings/test_aks_create_blb_vmas.yaml new file mode 100644 index 00000000000..8dfc1476187 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/recordings/test_aks_create_blb_vmas.yaml @@ -0,0 +1,116 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --dns-name-prefix --node-count --ssh-key-value + --service-principal --client-secret --load-balancer-sku --vm-set-type --no-wait + User-Agent: + - AZURECLI/2.23.0 azsdk-python-azure-mgmt-resource/16.1.0 Python/3.7.4 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acscliapi2?api-version=2019-10-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi2","name":"acscliapi2","type":"Microsoft.Resources/resourceGroups","location":"eastus","tags":{},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '227' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 10 Jun 2021 01:13:40 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": {"kubernetesVersion": "", "dnsPrefix": + "cliaksdns000002", "agentPoolProfiles": [{"count": 1, "vmSize": "Standard_DS2_v2", + "osType": "Linux", "type": "AvailabilitySet", "mode": "System", "enableNodePublicIP": + false, "scaleSetPriority": "Regular", "scaleSetEvictionPolicy": "Delete", "name": + "nodepool1"}], "linuxProfile": {"adminUsername": "azureuser", "ssh": {"publicKeys": + [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCbIg1guRHbI0lV11wWDt1r2cUdcNd27CJsg+SfgC7miZeubtwUhbsPdhMQsfDyhOWHq1+ZL0M+nJZV63d/1dhmhtgyOqejUwrPlzKhydsbrsdUor+JmNJDdW01v7BXHyuymT8G4s09jCasNOwiufbP/qp72ruu0bIA1nySsvlf9pCQAuFkAnVnf/rFhUlOkhtRpwcq8SUNY2zRHR/EKb/4NWY1JzR4sa3q2fWIJdrrX0DvLoa5g9bIEd4Df79ba7v+yiUBOS0zT2ll+z4g9izHK3EO5d8hL4jYxcjKs+wcslSYRWrascfscLgMlMGh0CdKeNTDjHpGPncaf3Z+FwwwjWeuiNBxv7bJo13/8B/098KlVDl4GZqsoBCEjPyJfV6hO0y/LkRGkk7oHWKgeWAfKtfLItRp00eZ4fcJNK9kCaSMmEugoZWcI7NGbZXzqFWqbpRI7NcDP9+WIQ+i9U5vqWsqd/zng4kbuAJ6UuKqIzB0upYrLShfQE3SAck8oaLhJqqq56VfDuASNpJKidV+zq27HfSBmbXnkR/5AK337dc3MXKJypoK/QPMLKUAP5XLPbs+NddJQV7EZXd29DLgp+fRIg3edpKdO7ZErWhv7d+3Kws+e1Y+ypmR2WIVSwVyBEUfgv2C8Ts9gnTF4pNcEY/S2aBicz5Ew2+jdyGNQQ== + test@example.com\n"}]}}, "servicePrincipalProfile": {"clientId":"00000000-0000-0000-0000-000000000001", + "secret":"fake-secret"}, "addonProfiles": {}, "enableRBAC": true, "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": "basic"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '1574' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --resource-group --name --location --dns-name-prefix --node-count --ssh-key-value + --service-principal --client-secret --load-balancer-sku --vm-set-type --no-wait + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi2/providers/Microsoft.ContainerService/managedClusters/cliakstest000001?api-version=2020-11-01 + response: + body: + string: "{\n \"code\": \"QuotaExceeded\",\n \"message\": \"Provisioning of + resource(s) for container service cliakstest000001 in resource group acscliapi2 + failed. Message: Operation could not be completed as it results in exceeding + approved Total Regional Cores quota. Additional details - Deployment Model: + Resource Manager, Location: westus2, Current Limit: 20, Current Usage: 20, + Additional Required: 2, (Minimum) New Limit Required: 22. Submit a request + for Quota increase at https://aka.ms/ProdportalCRP/?#create/Microsoft.Support/Parameters/%7B%22subId%22:%228a4f688f-f361-4729-a197-1a8d663b603b%22,%22pesId%22:%2206bfd9d3-516b-d5c6-5802-169c800dec89%22,%22supportTopicId%22:%22e12e3d1d-7fa0-af33-c6d0-3c50df9658a3%22%7D + by specifying parameters listed in the \u2018Details\u2019 section for deployment + to succeed. Please read more about quota limits at https://docs.microsoft.com/en-us/azure/azure-supportability/regional-quota-requests.. + Details: \"\n }" + headers: + cache-control: + - no-cache + content-length: + - '937' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 01:13: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: + - '1197' + status: + code: 400 + message: Bad Request +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/recordings/test_aks_create_blb_vmas_msi.yaml b/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/recordings/test_aks_create_blb_vmas_msi.yaml new file mode 100644 index 00000000000..35e76c701c0 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/recordings/test_aks_create_blb_vmas_msi.yaml @@ -0,0 +1,45 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --dns-name-prefix --node-count --ssh-key-value + --load-balancer-sku --vm-set-type --no-wait + User-Agent: + - AZURECLI/2.23.0 azsdk-python-azure-mgmt-resource/16.1.0 Python/3.7.4 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acscliapi2?api-version=2019-10-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi2","name":"acscliapi2","type":"Microsoft.Resources/resourceGroups","location":"eastus","tags":{},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '227' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 10 Jun 2021 01:13:48 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 +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/recordings/test_aks_create_cluster_with_apiserver_authorized_ranges_then_update.yaml b/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/recordings/test_aks_create_cluster_with_apiserver_authorized_ranges_then_update.yaml new file mode 100644 index 00000000000..4412c06d602 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/recordings/test_aks_create_cluster_with_apiserver_authorized_ranges_then_update.yaml @@ -0,0 +1,387 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --dns-name-prefix --node-count --ssh-key-value + --service-principal --client-secret --load-balancer-sku --vm-set-type --api-server-authorized-ip-ranges + --no-wait + User-Agent: + - AZURECLI/2.23.0 azsdk-python-azure-mgmt-resource/16.1.0 Python/3.7.4 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acsclifixapi3?api-version=2019-10-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acsclifixapi3","name":"acsclifixapi3","type":"Microsoft.Resources/resourceGroups","location":"eastus","tags":{},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '233' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 09 Jun 2021 23:23:16 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": {"kubernetesVersion": "", "dnsPrefix": + "cliaksdns000002", "agentPoolProfiles": [{"count": 1, "vmSize": "Standard_DS2_v2", + "osType": "Linux", "type": "VirtualMachineScaleSets", "mode": "System", "enableNodePublicIP": + false, "scaleSetPriority": "Regular", "scaleSetEvictionPolicy": "Delete", "name": + "nodepool1"}], "linuxProfile": {"adminUsername": "azureuser", "ssh": {"publicKeys": + [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCbIg1guRHbI0lV11wWDt1r2cUdcNd27CJsg+SfgC7miZeubtwUhbsPdhMQsfDyhOWHq1+ZL0M+nJZV63d/1dhmhtgyOqejUwrPlzKhydsbrsdUor+JmNJDdW01v7BXHyuymT8G4s09jCasNOwiufbP/qp72ruu0bIA1nySsvlf9pCQAuFkAnVnf/rFhUlOkhtRpwcq8SUNY2zRHR/EKb/4NWY1JzR4sa3q2fWIJdrrX0DvLoa5g9bIEd4Df79ba7v+yiUBOS0zT2ll+z4g9izHK3EO5d8hL4jYxcjKs+wcslSYRWrascfscLgMlMGh0CdKeNTDjHpGPncaf3Z+FwwwjWeuiNBxv7bJo13/8B/098KlVDl4GZqsoBCEjPyJfV6hO0y/LkRGkk7oHWKgeWAfKtfLItRp00eZ4fcJNK9kCaSMmEugoZWcI7NGbZXzqFWqbpRI7NcDP9+WIQ+i9U5vqWsqd/zng4kbuAJ6UuKqIzB0upYrLShfQE3SAck8oaLhJqqq56VfDuASNpJKidV+zq27HfSBmbXnkR/5AK337dc3MXKJypoK/QPMLKUAP5XLPbs+NddJQV7EZXd29DLgp+fRIg3edpKdO7ZErWhv7d+3Kws+e1Y+ypmR2WIVSwVyBEUfgv2C8Ts9gnTF4pNcEY/S2aBicz5Ew2+jdyGNQQ== + test@example.com\n"}]}}, "servicePrincipalProfile": {"clientId":"00000000-0000-0000-0000-000000000001", + "secret":"fake-secret"}, "addonProfiles": {}, "enableRBAC": true, "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"}, "apiServerAccessProfile": {"authorizedIPRanges": + ["1.2.3.4/32"]}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '1651' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --resource-group --name --location --dns-name-prefix --node-count --ssh-key-value + --service-principal --client-secret --load-balancer-sku --vm-set-type --api-server-authorized-ip-ranges + --no-wait + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acsclifixapi3/providers/Microsoft.ContainerService/managedClusters/cliakstest000001?api-version=2020-11-01 + response: + body: + string: "{\n \"code\": \"ServicePrincipalNotFound\",\n \"message\": \"Service + principal clientID: http://clitest000001 not found in Active Directory tenant + 657a2bb7-9a58-4be7-87f3-643bb3b7cbb5, Please see https://aka.ms/aks-sp-help + for more details.\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '248' + content-type: + - application/json + date: + - Wed, 09 Jun 2021 23:23:20 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: 400 + message: Bad Request +- request: + body: '{"location": "westus2", "properties": {"kubernetesVersion": "", "dnsPrefix": + "cliaksdns000002", "agentPoolProfiles": [{"count": 1, "vmSize": "Standard_DS2_v2", + "osType": "Linux", "type": "VirtualMachineScaleSets", "mode": "System", "enableNodePublicIP": + false, "scaleSetPriority": "Regular", "scaleSetEvictionPolicy": "Delete", "name": + "nodepool1"}], "linuxProfile": {"adminUsername": "azureuser", "ssh": {"publicKeys": + [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCbIg1guRHbI0lV11wWDt1r2cUdcNd27CJsg+SfgC7miZeubtwUhbsPdhMQsfDyhOWHq1+ZL0M+nJZV63d/1dhmhtgyOqejUwrPlzKhydsbrsdUor+JmNJDdW01v7BXHyuymT8G4s09jCasNOwiufbP/qp72ruu0bIA1nySsvlf9pCQAuFkAnVnf/rFhUlOkhtRpwcq8SUNY2zRHR/EKb/4NWY1JzR4sa3q2fWIJdrrX0DvLoa5g9bIEd4Df79ba7v+yiUBOS0zT2ll+z4g9izHK3EO5d8hL4jYxcjKs+wcslSYRWrascfscLgMlMGh0CdKeNTDjHpGPncaf3Z+FwwwjWeuiNBxv7bJo13/8B/098KlVDl4GZqsoBCEjPyJfV6hO0y/LkRGkk7oHWKgeWAfKtfLItRp00eZ4fcJNK9kCaSMmEugoZWcI7NGbZXzqFWqbpRI7NcDP9+WIQ+i9U5vqWsqd/zng4kbuAJ6UuKqIzB0upYrLShfQE3SAck8oaLhJqqq56VfDuASNpJKidV+zq27HfSBmbXnkR/5AK337dc3MXKJypoK/QPMLKUAP5XLPbs+NddJQV7EZXd29DLgp+fRIg3edpKdO7ZErWhv7d+3Kws+e1Y+ypmR2WIVSwVyBEUfgv2C8Ts9gnTF4pNcEY/S2aBicz5Ew2+jdyGNQQ== + test@example.com\n"}]}}, "servicePrincipalProfile": {"clientId":"00000000-0000-0000-0000-000000000001", + "secret":"fake-secret"}, "addonProfiles": {}, "enableRBAC": true, "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"}, "apiServerAccessProfile": {"authorizedIPRanges": + ["1.2.3.4/32"]}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '1651' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --resource-group --name --location --dns-name-prefix --node-count --ssh-key-value + --service-principal --client-secret --load-balancer-sku --vm-set-type --api-server-authorized-ip-ranges + --no-wait + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acsclifixapi3/providers/Microsoft.ContainerService/managedClusters/cliakstest000001?api-version=2020-11-01 + response: + body: + string: "{\n \"code\": \"ServicePrincipalNotFound\",\n \"message\": \"Service + principal clientID: http://clitest000001 not found in Active Directory tenant + 657a2bb7-9a58-4be7-87f3-643bb3b7cbb5, Please see https://aka.ms/aks-sp-help + for more details.\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '248' + content-type: + - application/json + date: + - Wed, 09 Jun 2021 23:23:25 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 400 + message: Bad Request +- request: + body: '{"location": "westus2", "properties": {"kubernetesVersion": "", "dnsPrefix": + "cliaksdns000002", "agentPoolProfiles": [{"count": 1, "vmSize": "Standard_DS2_v2", + "osType": "Linux", "type": "VirtualMachineScaleSets", "mode": "System", "enableNodePublicIP": + false, "scaleSetPriority": "Regular", "scaleSetEvictionPolicy": "Delete", "name": + "nodepool1"}], "linuxProfile": {"adminUsername": "azureuser", "ssh": {"publicKeys": + [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCbIg1guRHbI0lV11wWDt1r2cUdcNd27CJsg+SfgC7miZeubtwUhbsPdhMQsfDyhOWHq1+ZL0M+nJZV63d/1dhmhtgyOqejUwrPlzKhydsbrsdUor+JmNJDdW01v7BXHyuymT8G4s09jCasNOwiufbP/qp72ruu0bIA1nySsvlf9pCQAuFkAnVnf/rFhUlOkhtRpwcq8SUNY2zRHR/EKb/4NWY1JzR4sa3q2fWIJdrrX0DvLoa5g9bIEd4Df79ba7v+yiUBOS0zT2ll+z4g9izHK3EO5d8hL4jYxcjKs+wcslSYRWrascfscLgMlMGh0CdKeNTDjHpGPncaf3Z+FwwwjWeuiNBxv7bJo13/8B/098KlVDl4GZqsoBCEjPyJfV6hO0y/LkRGkk7oHWKgeWAfKtfLItRp00eZ4fcJNK9kCaSMmEugoZWcI7NGbZXzqFWqbpRI7NcDP9+WIQ+i9U5vqWsqd/zng4kbuAJ6UuKqIzB0upYrLShfQE3SAck8oaLhJqqq56VfDuASNpJKidV+zq27HfSBmbXnkR/5AK337dc3MXKJypoK/QPMLKUAP5XLPbs+NddJQV7EZXd29DLgp+fRIg3edpKdO7ZErWhv7d+3Kws+e1Y+ypmR2WIVSwVyBEUfgv2C8Ts9gnTF4pNcEY/S2aBicz5Ew2+jdyGNQQ== + test@example.com\n"}]}}, "servicePrincipalProfile": {"clientId":"00000000-0000-0000-0000-000000000001", + "secret":"fake-secret"}, "addonProfiles": {}, "enableRBAC": true, "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"}, "apiServerAccessProfile": {"authorizedIPRanges": + ["1.2.3.4/32"]}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '1651' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --resource-group --name --location --dns-name-prefix --node-count --ssh-key-value + --service-principal --client-secret --load-balancer-sku --vm-set-type --api-server-authorized-ip-ranges + --no-wait + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acsclifixapi3/providers/Microsoft.ContainerService/managedClusters/cliakstest000001?api-version=2020-11-01 + response: + body: + string: "{\n \"code\": \"ServicePrincipalNotFound\",\n \"message\": \"Service + principal clientID: http://clitest000001 not found in Active Directory tenant + 657a2bb7-9a58-4be7-87f3-643bb3b7cbb5, Please see https://aka.ms/aks-sp-help + for more details.\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '248' + content-type: + - application/json + date: + - Wed, 09 Jun 2021 23:23:30 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: + - '1197' + status: + code: 400 + message: Bad Request +- request: + body: '{"location": "westus2", "properties": {"kubernetesVersion": "", "dnsPrefix": + "cliaksdns000002", "agentPoolProfiles": [{"count": 1, "vmSize": "Standard_DS2_v2", + "osType": "Linux", "type": "VirtualMachineScaleSets", "mode": "System", "enableNodePublicIP": + false, "scaleSetPriority": "Regular", "scaleSetEvictionPolicy": "Delete", "name": + "nodepool1"}], "linuxProfile": {"adminUsername": "azureuser", "ssh": {"publicKeys": + [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCbIg1guRHbI0lV11wWDt1r2cUdcNd27CJsg+SfgC7miZeubtwUhbsPdhMQsfDyhOWHq1+ZL0M+nJZV63d/1dhmhtgyOqejUwrPlzKhydsbrsdUor+JmNJDdW01v7BXHyuymT8G4s09jCasNOwiufbP/qp72ruu0bIA1nySsvlf9pCQAuFkAnVnf/rFhUlOkhtRpwcq8SUNY2zRHR/EKb/4NWY1JzR4sa3q2fWIJdrrX0DvLoa5g9bIEd4Df79ba7v+yiUBOS0zT2ll+z4g9izHK3EO5d8hL4jYxcjKs+wcslSYRWrascfscLgMlMGh0CdKeNTDjHpGPncaf3Z+FwwwjWeuiNBxv7bJo13/8B/098KlVDl4GZqsoBCEjPyJfV6hO0y/LkRGkk7oHWKgeWAfKtfLItRp00eZ4fcJNK9kCaSMmEugoZWcI7NGbZXzqFWqbpRI7NcDP9+WIQ+i9U5vqWsqd/zng4kbuAJ6UuKqIzB0upYrLShfQE3SAck8oaLhJqqq56VfDuASNpJKidV+zq27HfSBmbXnkR/5AK337dc3MXKJypoK/QPMLKUAP5XLPbs+NddJQV7EZXd29DLgp+fRIg3edpKdO7ZErWhv7d+3Kws+e1Y+ypmR2WIVSwVyBEUfgv2C8Ts9gnTF4pNcEY/S2aBicz5Ew2+jdyGNQQ== + test@example.com\n"}]}}, "servicePrincipalProfile": {"clientId":"00000000-0000-0000-0000-000000000001", + "secret":"fake-secret"}, "addonProfiles": {}, "enableRBAC": true, "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"}, "apiServerAccessProfile": {"authorizedIPRanges": + ["1.2.3.4/32"]}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '1651' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --resource-group --name --location --dns-name-prefix --node-count --ssh-key-value + --service-principal --client-secret --load-balancer-sku --vm-set-type --api-server-authorized-ip-ranges + --no-wait + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acsclifixapi3/providers/Microsoft.ContainerService/managedClusters/cliakstest000001?api-version=2020-11-01 + response: + body: + string: "{\n \"code\": \"ServicePrincipalNotFound\",\n \"message\": \"Service + principal clientID: http://clitest000001 not found in Active Directory tenant + 657a2bb7-9a58-4be7-87f3-643bb3b7cbb5, Please see https://aka.ms/aks-sp-help + for more details.\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '248' + content-type: + - application/json + date: + - Wed, 09 Jun 2021 23:23:35 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: + - '1196' + status: + code: 400 + message: Bad Request +- request: + body: '{"location": "westus2", "properties": {"kubernetesVersion": "", "dnsPrefix": + "cliaksdns000002", "agentPoolProfiles": [{"count": 1, "vmSize": "Standard_DS2_v2", + "osType": "Linux", "type": "VirtualMachineScaleSets", "mode": "System", "enableNodePublicIP": + false, "scaleSetPriority": "Regular", "scaleSetEvictionPolicy": "Delete", "name": + "nodepool1"}], "linuxProfile": {"adminUsername": "azureuser", "ssh": {"publicKeys": + [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCbIg1guRHbI0lV11wWDt1r2cUdcNd27CJsg+SfgC7miZeubtwUhbsPdhMQsfDyhOWHq1+ZL0M+nJZV63d/1dhmhtgyOqejUwrPlzKhydsbrsdUor+JmNJDdW01v7BXHyuymT8G4s09jCasNOwiufbP/qp72ruu0bIA1nySsvlf9pCQAuFkAnVnf/rFhUlOkhtRpwcq8SUNY2zRHR/EKb/4NWY1JzR4sa3q2fWIJdrrX0DvLoa5g9bIEd4Df79ba7v+yiUBOS0zT2ll+z4g9izHK3EO5d8hL4jYxcjKs+wcslSYRWrascfscLgMlMGh0CdKeNTDjHpGPncaf3Z+FwwwjWeuiNBxv7bJo13/8B/098KlVDl4GZqsoBCEjPyJfV6hO0y/LkRGkk7oHWKgeWAfKtfLItRp00eZ4fcJNK9kCaSMmEugoZWcI7NGbZXzqFWqbpRI7NcDP9+WIQ+i9U5vqWsqd/zng4kbuAJ6UuKqIzB0upYrLShfQE3SAck8oaLhJqqq56VfDuASNpJKidV+zq27HfSBmbXnkR/5AK337dc3MXKJypoK/QPMLKUAP5XLPbs+NddJQV7EZXd29DLgp+fRIg3edpKdO7ZErWhv7d+3Kws+e1Y+ypmR2WIVSwVyBEUfgv2C8Ts9gnTF4pNcEY/S2aBicz5Ew2+jdyGNQQ== + test@example.com\n"}]}}, "servicePrincipalProfile": {"clientId":"00000000-0000-0000-0000-000000000001", + "secret":"fake-secret"}, "addonProfiles": {}, "enableRBAC": true, "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"}, "apiServerAccessProfile": {"authorizedIPRanges": + ["1.2.3.4/32"]}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '1651' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --resource-group --name --location --dns-name-prefix --node-count --ssh-key-value + --service-principal --client-secret --load-balancer-sku --vm-set-type --api-server-authorized-ip-ranges + --no-wait + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acsclifixapi3/providers/Microsoft.ContainerService/managedClusters/cliakstest000001?api-version=2020-11-01 + response: + body: + string: "{\n \"code\": \"QuotaExceeded\",\n \"message\": \"Provisioning of + resource(s) for container service cliakstest000001 in resource group acsclifixapi3 + failed. Message: Operation could not be completed as it results in exceeding + approved Total Regional Cores quota. Additional details - Deployment Model: + Resource Manager, Location: westus2, Current Limit: 20, Current Usage: 20, + Additional Required: 2, (Minimum) New Limit Required: 22. Submit a request + for Quota increase at https://aka.ms/ProdportalCRP/?#create/Microsoft.Support/Parameters/%7B%22subId%22:%228a4f688f-f361-4729-a197-1a8d663b603b%22,%22pesId%22:%2206bfd9d3-516b-d5c6-5802-169c800dec89%22,%22supportTopicId%22:%22e12e3d1d-7fa0-af33-c6d0-3c50df9658a3%22%7D + by specifying parameters listed in the \u2018Details\u2019 section for deployment + to succeed. Please read more about quota limits at https://docs.microsoft.com/en-us/azure/azure-supportability/regional-quota-requests.. + Details: \"\n }" + headers: + cache-control: + - no-cache + content-length: + - '940' + content-type: + - application/json + date: + - Wed, 09 Jun 2021 23:23:41 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: + - '1195' + status: + code: 400 + message: Bad Request +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/recordings/test_aks_create_default_service_msi.yaml b/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/recordings/test_aks_create_default_service_msi.yaml new file mode 100644 index 00000000000..2465db8793d --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/recordings/test_aks_create_default_service_msi.yaml @@ -0,0 +1,45 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --dns-name-prefix --node-count --ssh-key-value + --tags --nodepool-labels + User-Agent: + - AZURECLI/2.23.0 azsdk-python-azure-mgmt-resource/16.1.0 Python/3.7.4 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acscliapi2?api-version=2019-10-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi2","name":"acscliapi2","type":"Microsoft.Resources/resourceGroups","location":"eastus","tags":{},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '227' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 10 Jun 2021 01:13:49 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 +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/recordings/test_aks_create_default_service_with_skip_role_assignment.yaml b/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/recordings/test_aks_create_default_service_with_skip_role_assignment.yaml new file mode 100644 index 00000000000..ae1f9e0cf60 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/recordings/test_aks_create_default_service_with_skip_role_assignment.yaml @@ -0,0 +1,335 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vnet create + Connection: + - keep-alive + ParameterSetName: + - -n -g --address-prefix --subnet-name --subnet-prefix + User-Agent: + - AZURECLI/2.23.0 azsdk-python-azure-mgmt-resource/16.1.0 Python/3.7.4 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acscliapi3?api-version=2019-10-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi3","name":"acscliapi3","type":"Microsoft.Resources/resourceGroups","location":"eastus","tags":{},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '227' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 10 Jun 2021 02:07:26 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"location": "eastus", "tags": {}, "properties": {"addressSpace": {"addressPrefixes": + ["192.168.0.0/16"]}, "dhcpOptions": {}, "subnets": [{"name": "clisubnet000004", + "properties": {"addressPrefix": "192.168.0.0/24"}}]}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vnet create + Connection: + - keep-alive + Content-Length: + - '220' + Content-Type: + - application/json + ParameterSetName: + - -n -g --address-prefix --subnet-name --subnet-prefix + User-Agent: + - AZURECLI/2.23.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.7.4 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi3/providers/Microsoft.Network/virtualNetworks/clivnet000003?api-version=2018-11-01 + response: + body: + string: "{\r\n \"name\": \"clivnet000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi3/providers/Microsoft.Network/virtualNetworks/clivnet000003\",\r\n + \ \"etag\": \"W/\\\"afa4fafc-3b4f-4b0a-9807-59aaa6a8168f\\\"\",\r\n \"type\": + \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"eastus\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n + \ \"resourceGuid\": \"8157ebb1-1bd9-4f91-945f-29b0a830861c\",\r\n \"addressSpace\": + {\r\n \"addressPrefixes\": [\r\n \"192.168.0.0/16\"\r\n ]\r\n + \ },\r\n \"dhcpOptions\": {\r\n \"dnsServers\": []\r\n },\r\n + \ \"subnets\": [\r\n {\r\n \"name\": \"clisubnet000004\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi3/providers/Microsoft.Network/virtualNetworks/clivnet000003/subnets/clisubnet000004\",\r\n + \ \"etag\": \"W/\\\"afa4fafc-3b4f-4b0a-9807-59aaa6a8168f\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n + \ \"addressPrefix\": \"192.168.0.0/24\",\r\n \"delegations\": + []\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n + \ }\r\n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": + false\r\n }\r\n}" + headers: + azure-asyncnotification: + - Enabled + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/0556cb7b-9e61-4930-8435-6e5921ca8915?api-version=2018-11-01 + cache-control: + - no-cache + content-length: + - '1215' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 10 Jun 2021 02:07:28 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 7f83bc0c-7901-4a5a-b463-e064296d0505 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vnet create + Connection: + - keep-alive + ParameterSetName: + - -n -g --address-prefix --subnet-name --subnet-prefix + User-Agent: + - AZURECLI/2.23.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.7.4 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/0556cb7b-9e61-4930-8435-6e5921ca8915?api-version=2018-11-01 + response: + body: + string: "{\r\n \"status\": \"Succeeded\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '29' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 10 Jun 2021 02:07:31 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - c8abc68f-4976-48fa-8491-07b605646b30 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vnet create + Connection: + - keep-alive + ParameterSetName: + - -n -g --address-prefix --subnet-name --subnet-prefix + User-Agent: + - AZURECLI/2.23.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.7.4 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi3/providers/Microsoft.Network/virtualNetworks/clivnet000003?api-version=2018-11-01 + response: + body: + string: "{\r\n \"name\": \"clivnet000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi3/providers/Microsoft.Network/virtualNetworks/clivnet000003\",\r\n + \ \"etag\": \"W/\\\"cae1d925-bd07-4915-8472-c799942e229c\\\"\",\r\n \"type\": + \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"eastus\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"resourceGuid\": \"8157ebb1-1bd9-4f91-945f-29b0a830861c\",\r\n \"addressSpace\": + {\r\n \"addressPrefixes\": [\r\n \"192.168.0.0/16\"\r\n ]\r\n + \ },\r\n \"dhcpOptions\": {\r\n \"dnsServers\": []\r\n },\r\n + \ \"subnets\": [\r\n {\r\n \"name\": \"clisubnet000004\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi3/providers/Microsoft.Network/virtualNetworks/clivnet000003/subnets/clisubnet000004\",\r\n + \ \"etag\": \"W/\\\"cae1d925-bd07-4915-8472-c799942e229c\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"addressPrefix\": \"192.168.0.0/24\",\r\n \"delegations\": + []\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n + \ }\r\n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": + false\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1217' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 10 Jun 2021 02:07:32 GMT + etag: + - W/"cae1d925-bd07-4915-8472-c799942e229c" + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 3e857db1-7744-4677-8d47-3272b9401692 + 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 --node-count --service-principal --client-secret + --vnet-subnet-id --skip-subnet-role-assignment --no-ssh-key + User-Agent: + - AZURECLI/2.23.0 azsdk-python-azure-mgmt-resource/16.1.0 Python/3.7.4 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acscliapi3?api-version=2019-10-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi3","name":"acscliapi3","type":"Microsoft.Resources/resourceGroups","location":"eastus","tags":{},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '227' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 10 Jun 2021 02:07:33 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": {"kubernetesVersion": "", "dnsPrefix": + "cliakstest-acscliapi3-8a4f68", "agentPoolProfiles": [{"count": 1, "vmSize": + "Standard_DS2_v2", "vnetSubnetID": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi3/providers/Microsoft.Network/virtualNetworks/clivnet000003/subnets/clisubnet000004", + "osType": "Linux", "type": "VirtualMachineScaleSets", "mode": "System", "enableNodePublicIP": + false, "scaleSetPriority": "Regular", "scaleSetEvictionPolicy": "Delete", "name": + "nodepool1"}], "servicePrincipalProfile": {"clientId":"00000000-0000-0000-0000-000000000001", + "secret":"fake-secret"}, "addonProfiles": {}, "enableRBAC": true, "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"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '947' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --resource-group --name --location --node-count --service-principal --client-secret + --vnet-subnet-id --skip-subnet-role-assignment --no-ssh-key + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi3/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2020-11-01 + response: + body: + string: "{\n \"code\": \"InvalidParameter\",\n \"message\": \"The Agentpool + nodepool1's vnet clivnet000003 and the cluster are not in the same region. + Vnet region is eastus while cluster region is westus2.\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '196' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 02:07:36 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: 400 + message: Bad Request +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/recordings/test_aks_create_default_service_without_SP_and_with_role_assignment.yaml b/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/recordings/test_aks_create_default_service_without_SP_and_with_role_assignment.yaml new file mode 100644 index 00000000000..71247e218b3 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/recordings/test_aks_create_default_service_without_SP_and_with_role_assignment.yaml @@ -0,0 +1,933 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vnet create + Connection: + - keep-alive + ParameterSetName: + - -n -g --address-prefix --subnet-name --subnet-prefix + User-Agent: + - AZURECLI/2.23.0 azsdk-python-azure-mgmt-resource/16.1.0 Python/3.7.4 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acscliapi11?api-version=2019-10-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11","name":"acscliapi11","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '230' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 10 Jun 2021 09:13:47 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", "tags": {}, "properties": {"addressSpace": {"addressPrefixes": + ["192.168.0.0/16"]}, "dhcpOptions": {}, "subnets": [{"name": "clisubnet000003", + "properties": {"addressPrefix": "192.168.0.0/24"}}]}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vnet create + Connection: + - keep-alive + Content-Length: + - '221' + Content-Type: + - application/json + ParameterSetName: + - -n -g --address-prefix --subnet-name --subnet-prefix + User-Agent: + - AZURECLI/2.23.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.7.4 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.Network/virtualNetworks/clivnet000002?api-version=2018-11-01 + response: + body: + string: "{\r\n \"name\": \"clivnet000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.Network/virtualNetworks/clivnet000002\",\r\n + \ \"etag\": \"W/\\\"3c328131-5f17-4a16-8d4b-3771a86b15d8\\\"\",\r\n \"type\": + \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus2\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n + \ \"resourceGuid\": \"7b88b96f-afdb-4ca4-a0b5-5a5f7b33e7f4\",\r\n \"addressSpace\": + {\r\n \"addressPrefixes\": [\r\n \"192.168.0.0/16\"\r\n ]\r\n + \ },\r\n \"dhcpOptions\": {\r\n \"dnsServers\": []\r\n },\r\n + \ \"subnets\": [\r\n {\r\n \"name\": \"clisubnet000003\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.Network/virtualNetworks/clivnet000002/subnets/clisubnet000003\",\r\n + \ \"etag\": \"W/\\\"3c328131-5f17-4a16-8d4b-3771a86b15d8\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n + \ \"addressPrefix\": \"192.168.0.0/24\",\r\n \"delegations\": + []\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n + \ }\r\n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": + false\r\n }\r\n}" + headers: + azure-asyncnotification: + - Enabled + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus2/operations/4e40a97c-1d29-4c7d-af25-be016c5af959?api-version=2018-11-01 + cache-control: + - no-cache + content-length: + - '1218' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 10 Jun 2021 09:13:47 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 43e3bcb9-471f-4e97-87e9-d7a890ba63bb + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vnet create + Connection: + - keep-alive + ParameterSetName: + - -n -g --address-prefix --subnet-name --subnet-prefix + User-Agent: + - AZURECLI/2.23.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.7.4 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus2/operations/4e40a97c-1d29-4c7d-af25-be016c5af959?api-version=2018-11-01 + response: + body: + string: "{\r\n \"status\": \"Succeeded\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '29' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 10 Jun 2021 09:13:50 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - a028acc8-d073-4ae2-b1fb-aac418f7930b + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vnet create + Connection: + - keep-alive + ParameterSetName: + - -n -g --address-prefix --subnet-name --subnet-prefix + User-Agent: + - AZURECLI/2.23.0 azsdk-python-azure-mgmt-network/18.0.0 Python/3.7.4 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.Network/virtualNetworks/clivnet000002?api-version=2018-11-01 + response: + body: + string: "{\r\n \"name\": \"clivnet000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.Network/virtualNetworks/clivnet000002\",\r\n + \ \"etag\": \"W/\\\"26de2362-a585-404b-8afa-5205e6e506cc\\\"\",\r\n \"type\": + \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus2\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"resourceGuid\": \"7b88b96f-afdb-4ca4-a0b5-5a5f7b33e7f4\",\r\n \"addressSpace\": + {\r\n \"addressPrefixes\": [\r\n \"192.168.0.0/16\"\r\n ]\r\n + \ },\r\n \"dhcpOptions\": {\r\n \"dnsServers\": []\r\n },\r\n + \ \"subnets\": [\r\n {\r\n \"name\": \"clisubnet000003\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.Network/virtualNetworks/clivnet000002/subnets/clisubnet000003\",\r\n + \ \"etag\": \"W/\\\"26de2362-a585-404b-8afa-5205e6e506cc\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"addressPrefix\": \"192.168.0.0/24\",\r\n \"delegations\": + []\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n + \ }\r\n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": + false\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1220' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 10 Jun 2021 09:13:50 GMT + etag: + - W/"26de2362-a585-404b-8afa-5205e6e506cc" + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - e5e94ffe-a3b5-409a-8b22-48000a9766b4 + 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 --node-count --vnet-subnet-id --no-ssh-key + --yes + User-Agent: + - AZURECLI/2.23.0 azsdk-python-azure-mgmt-resource/16.1.0 Python/3.7.4 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acscliapi11?api-version=2019-10-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11","name":"acscliapi11","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '230' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 10 Jun 2021 09:13:51 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": {"kubernetesVersion": "", "dnsPrefix": + "cliakstest-acscliapi11-8a4f68", "agentPoolProfiles": [{"count": 1, "vmSize": + "Standard_DS2_v2", "vnetSubnetID": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.Network/virtualNetworks/clivnet000002/subnets/clisubnet000003", + "osType": "Linux", "type": "VirtualMachineScaleSets", "mode": "System", "enableNodePublicIP": + false, "scaleSetPriority": "Regular", "scaleSetEvictionPolicy": "Delete", "name": + "nodepool1"}], "addonProfiles": {}, "enableRBAC": true, "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"}}, "identity": {"type": "SystemAssigned"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '865' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --resource-group --name --location --node-count --vnet-subnet-id --no-ssh-key + --yes + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000001?api-version=2020-11-01 + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000001\",\n + \ \"location\": \"westus2\",\n \"name\": \"cliakstest000001\",\n \"type\": + \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": + \"Creating\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": + \"1.19.11\",\n \"dnsPrefix\": \"cliakstest-acscliapi11-8a4f68\",\n \"fqdn\": + \"cliakstest-acscliapi11-8a4f68-ba86e7da.hcp.westus2.azmk8s.io\",\n \"agentPoolProfiles\": + [\n {\n \"name\": \"nodepool1\",\n \"count\": 1,\n \"vmSize\": + \"Standard_DS2_v2\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": \"Managed\",\n + \ \"vnetSubnetID\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.Network/virtualNetworks/clivnet000002/subnets/clisubnet000003\",\n + \ \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n \"provisioningState\": + \"Creating\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n + \ \"orchestratorVersion\": \"1.19.11\",\n \"enableNodePublicIP\": false,\n + \ \"nodeLabels\": {},\n \"mode\": \"System\",\n \"osType\": \"Linux\",\n + \ \"nodeImageVersion\": \"AKSUbuntu-1804gen2containerd-2021.05.19\"\n }\n + \ ],\n \"servicePrincipalProfile\": {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n + \ },\n \"nodeResourceGroup\": \"MC_acscliapi11_cliakstest000001_westus2\",\n + \ \"enableRBAC\": true,\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 },\n \"identity\": + {\n \"type\": \"SystemAssigned\",\n \"principalId\":\"00000000-0000-0000-0000-000000000001\",\n + \ \"tenantId\": \"657a2bb7-9a58-4be7-87f3-643bb3b7cbb5\"\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/20fc11d8-10cc-4776-8f27-e6a782e60d96?api-version=2016-03-30 + cache-control: + - no-cache + content-length: + - '2017' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:13:59 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --node-count --vnet-subnet-id --no-ssh-key + --yes + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/20fc11d8-10cc-4776-8f27-e6a782e60d96?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"d811fc20-cc10-7647-8f27-e6a782e60d96\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-06-10T09:14:00.15Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '121' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:14:30 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 --node-count --vnet-subnet-id --no-ssh-key + --yes + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/20fc11d8-10cc-4776-8f27-e6a782e60d96?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"d811fc20-cc10-7647-8f27-e6a782e60d96\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-06-10T09:14:00.15Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '121' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:14: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --node-count --vnet-subnet-id --no-ssh-key + --yes + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/20fc11d8-10cc-4776-8f27-e6a782e60d96?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"d811fc20-cc10-7647-8f27-e6a782e60d96\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-06-10T09:14:00.15Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '121' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:15:30 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 --node-count --vnet-subnet-id --no-ssh-key + --yes + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/20fc11d8-10cc-4776-8f27-e6a782e60d96?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"d811fc20-cc10-7647-8f27-e6a782e60d96\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-06-10T09:14:00.15Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '121' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:16: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 create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --node-count --vnet-subnet-id --no-ssh-key + --yes + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/20fc11d8-10cc-4776-8f27-e6a782e60d96?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"d811fc20-cc10-7647-8f27-e6a782e60d96\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-06-10T09:14:00.15Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '121' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:16:30 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 --node-count --vnet-subnet-id --no-ssh-key + --yes + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/20fc11d8-10cc-4776-8f27-e6a782e60d96?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"d811fc20-cc10-7647-8f27-e6a782e60d96\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-06-10T09:14:00.15Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '121' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:17: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 create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --node-count --vnet-subnet-id --no-ssh-key + --yes + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/20fc11d8-10cc-4776-8f27-e6a782e60d96?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"d811fc20-cc10-7647-8f27-e6a782e60d96\",\n \"status\": + \"Succeeded\",\n \"startTime\": \"2021-06-10T09:14:00.15Z\",\n \"endTime\": + \"2021-06-10T09:17:06.8595333Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '165' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:17:31 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --node-count --vnet-subnet-id --no-ssh-key + --yes + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000001?api-version=2020-11-01 + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000001\",\n + \ \"location\": \"westus2\",\n \"name\": \"cliakstest000001\",\n \"type\": + \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": + \"Succeeded\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": + \"1.19.11\",\n \"dnsPrefix\": \"cliakstest-acscliapi11-8a4f68\",\n \"fqdn\": + \"cliakstest-acscliapi11-8a4f68-ba86e7da.hcp.westus2.azmk8s.io\",\n \"agentPoolProfiles\": + [\n {\n \"name\": \"nodepool1\",\n \"count\": 1,\n \"vmSize\": + \"Standard_DS2_v2\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": \"Managed\",\n + \ \"vnetSubnetID\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.Network/virtualNetworks/clivnet000002/subnets/clisubnet000003\",\n + \ \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n \"provisioningState\": + \"Succeeded\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n + \ \"orchestratorVersion\": \"1.19.11\",\n \"enableNodePublicIP\": false,\n + \ \"nodeLabels\": {},\n \"mode\": \"System\",\n \"osType\": \"Linux\",\n + \ \"nodeImageVersion\": \"AKSUbuntu-1804gen2containerd-2021.05.19\"\n }\n + \ ],\n \"servicePrincipalProfile\": {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n + \ },\n \"nodeResourceGroup\": \"MC_acscliapi11_cliakstest000001_westus2\",\n + \ \"enableRBAC\": true,\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_acscliapi11_cliakstest000001_westus2/providers/Microsoft.Network/publicIPAddresses/0a8b71e3-6351-4655-a18d-5107cd9b75f2\"\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_acscliapi11_cliakstest000001_westus2/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cliakstest000001-agentpool\",\n + \ \"clientId\":\"00000000-0000-0000-0000-000000000001\",\n \"objectId\":\"00000000-0000-0000-0000-000000000001\"\n + \ }\n }\n },\n \"identity\": {\n \"type\": \"SystemAssigned\",\n \"principalId\":\"00000000-0000-0000-0000-000000000001\",\n + \ \"tenantId\": \"657a2bb7-9a58-4be7-87f3-643bb3b7cbb5\"\n },\n \"sku\": + {\n \"name\": \"Basic\",\n \"tier\": \"Free\"\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '2668' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:17:31 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --node-count --vnet-subnet-id --no-ssh-key + --yes + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-authorization/0.61.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.Network/virtualNetworks/clivnet000002/subnets/clisubnet000003/providers/Microsoft.Authorization/roleDefinitions?$filter=roleName%20eq%20%27Network%20Contributor%27&api-version=2015-07-01 + response: + body: + string: '{"value":[{"properties":{"roleName":"Network Contributor","type":"BuiltInRole","description":"Lets + you manage networks, but not access to them.","assignableScopes":["/"],"permissions":[{"actions":["Microsoft.Authorization/*/read","Microsoft.Insights/alertRules/*","Microsoft.Network/*","Microsoft.ResourceHealth/availabilityStatuses/read","Microsoft.Resources/deployments/*","Microsoft.Resources/subscriptions/resourceGroups/read","Microsoft.Support/*"],"notActions":[]}],"createdOn":"2015-06-02T00:18:27.3542698Z","updatedOn":"2016-05-31T23:14:00.3326359Z","createdBy":null,"updatedBy":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/4d97b98b-1d4f-4787-a291-c67834d212e7","type":"Microsoft.Authorization/roleDefinitions","name":"4d97b98b-1d4f-4787-a291-c67834d212e7"}]}' + headers: + cache-control: + - no-cache + content-length: + - '836' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 10 Jun 2021 09:17:31 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - x-ms-gateway-slice=Production; path=/; secure; samesite=none; httponly + 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": {"roleDefinitionId": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/4d97b98b-1d4f-4787-a291-c67834d212e7", + "principalId":"00000000-0000-0000-0000-000000000001"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '233' + Content-Type: + - application/json; charset=utf-8 + Cookie: + - x-ms-gateway-slice=Production + ParameterSetName: + - --resource-group --name --location --node-count --vnet-subnet-id --no-ssh-key + --yes + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-authorization/0.61.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.Network/virtualNetworks/clivnet000002/subnets/clisubnet000003/providers/Microsoft.Authorization/roleAssignments/0c854b36-6fd5-43d3-8b34-2860d27ce2b9?api-version=2015-07-01 + response: + body: + string: '{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/4d97b98b-1d4f-4787-a291-c67834d212e7","principalId":"00000000-0000-0000-0000-000000000001","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.Network/virtualNetworks/clivnet000002/subnets/clisubnet000003","createdOn":"2021-06-10T09:17:32.3473279Z","updatedOn":"2021-06-10T09:17:32.8073257Z","createdBy":null,"updatedBy":"a83f01a1-34f4-43fc-a943-6984c2bd80ca"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.Network/virtualNetworks/clivnet000002/subnets/clisubnet000003/providers/Microsoft.Authorization/roleAssignments/0c854b36-6fd5-43d3-8b34-2860d27ce2b9","type":"Microsoft.Authorization/roleAssignments","name":"0c854b36-6fd5-43d3-8b34-2860d27ce2b9"}' + headers: + cache-control: + - no-cache + content-length: + - '912' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 10 Jun 2021 09:17:33 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - x-ms-gateway-slice=Production; path=/; secure; samesite=none; httponly + 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - role assignment list + Connection: + - keep-alive + ParameterSetName: + - --scope + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-authorization/0.61.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.Network/virtualNetworks/clivnet000002/subnets/clisubnet000003/providers/Microsoft.Authorization/roleAssignments?$filter=atScope%28%29&api-version=2015-07-01 + response: + body: + string: '{"value":[{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/8e3af657-a8ff-443c-a75c-2fe8c4bcb635","principalId":"00000000-0000-0000-0000-000000000001","scope":"/subscriptions/00000000-0000-0000-0000-000000000000","createdOn":"2019-07-30T22:45:24.4855474Z","updatedOn":"2019-07-30T22:45:24.4855474Z","createdBy":"a83f01a1-34f4-43fc-a943-6984c2bd80ca","updatedBy":"a83f01a1-34f4-43fc-a943-6984c2bd80ca"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleAssignments/35a9d31f-01c6-4f75-92a1-0e689e999345","type":"Microsoft.Authorization/roleAssignments","name":"35a9d31f-01c6-4f75-92a1-0e689e999345"},{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c","principalId":"00000000-0000-0000-0000-000000000001","scope":"/subscriptions/00000000-0000-0000-0000-000000000000","createdOn":"2018-10-11T20:36:34.7771596Z","updatedOn":"2018-10-11T20:36:34.7771596Z","createdBy":"a83f01a1-34f4-43fc-a943-6984c2bd80ca","updatedBy":"a83f01a1-34f4-43fc-a943-6984c2bd80ca"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleAssignments/ed8ad5ef-4a15-4f33-9d43-ab6fbeca3cc9","type":"Microsoft.Authorization/roleAssignments","name":"ed8ad5ef-4a15-4f33-9d43-ab6fbeca3cc9"}]}' + headers: + cache-control: + - no-cache + content-length: + - '1453' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 10 Jun 2021 09:17:34 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - x-ms-gateway-slice=Production; path=/; secure; samesite=none; httponly + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/recordings/test_aks_create_default_setting.yaml b/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/recordings/test_aks_create_default_setting.yaml new file mode 100644 index 00000000000..d86c00cdc5b --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/recordings/test_aks_create_default_setting.yaml @@ -0,0 +1,1994 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --dns-name-prefix --node-count --ssh-key-value + --service-principal --client-secret --no-wait + User-Agent: + - AZURECLI/2.23.0 azsdk-python-azure-mgmt-resource/16.1.0 Python/3.7.4 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acscliapi11?api-version=2019-10-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11","name":"acscliapi11","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '230' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 10 Jun 2021 09:25:20 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": {"kubernetesVersion": "", "dnsPrefix": + "cliaksdns000002", "agentPoolProfiles": [{"count": 1, "vmSize": "Standard_DS2_v2", + "osType": "Linux", "type": "VirtualMachineScaleSets", "mode": "System", "enableNodePublicIP": + false, "scaleSetPriority": "Regular", "scaleSetEvictionPolicy": "Delete", "name": + "nodepool1"}], "linuxProfile": {"adminUsername": "azureuser", "ssh": {"publicKeys": + [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCbIg1guRHbI0lV11wWDt1r2cUdcNd27CJsg+SfgC7miZeubtwUhbsPdhMQsfDyhOWHq1+ZL0M+nJZV63d/1dhmhtgyOqejUwrPlzKhydsbrsdUor+JmNJDdW01v7BXHyuymT8G4s09jCasNOwiufbP/qp72ruu0bIA1nySsvlf9pCQAuFkAnVnf/rFhUlOkhtRpwcq8SUNY2zRHR/EKb/4NWY1JzR4sa3q2fWIJdrrX0DvLoa5g9bIEd4Df79ba7v+yiUBOS0zT2ll+z4g9izHK3EO5d8hL4jYxcjKs+wcslSYRWrascfscLgMlMGh0CdKeNTDjHpGPncaf3Z+FwwwjWeuiNBxv7bJo13/8B/098KlVDl4GZqsoBCEjPyJfV6hO0y/LkRGkk7oHWKgeWAfKtfLItRp00eZ4fcJNK9kCaSMmEugoZWcI7NGbZXzqFWqbpRI7NcDP9+WIQ+i9U5vqWsqd/zng4kbuAJ6UuKqIzB0upYrLShfQE3SAck8oaLhJqqq56VfDuASNpJKidV+zq27HfSBmbXnkR/5AK337dc3MXKJypoK/QPMLKUAP5XLPbs+NddJQV7EZXd29DLgp+fRIg3edpKdO7ZErWhv7d+3Kws+e1Y+ypmR2WIVSwVyBEUfgv2C8Ts9gnTF4pNcEY/S2aBicz5Ew2+jdyGNQQ== + test@example.com\n"}]}}, "servicePrincipalProfile": {"clientId":"00000000-0000-0000-0000-000000000001", + "secret":"fake-secret"}, "addonProfiles": {}, "enableRBAC": true, "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"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '1585' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --resource-group --name --location --dns-name-prefix --node-count --ssh-key-value + --service-principal --client-secret --no-wait + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000001?api-version=2020-11-01 + response: + body: + string: "{\n \"code\": \"ServicePrincipalNotFound\",\n \"message\": \"Service + principal clientID: http://clitest000001 not found in Active Directory tenant + 657a2bb7-9a58-4be7-87f3-643bb3b7cbb5, Please see https://aka.ms/aks-sp-help + for more details.\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '248' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:25:22 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 400 + message: Bad Request +- request: + body: '{"location": "WestUS2", "properties": {"kubernetesVersion": "", "dnsPrefix": + "cliaksdns000002", "agentPoolProfiles": [{"count": 1, "vmSize": "Standard_DS2_v2", + "osType": "Linux", "type": "VirtualMachineScaleSets", "mode": "System", "enableNodePublicIP": + false, "scaleSetPriority": "Regular", "scaleSetEvictionPolicy": "Delete", "name": + "nodepool1"}], "linuxProfile": {"adminUsername": "azureuser", "ssh": {"publicKeys": + [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCbIg1guRHbI0lV11wWDt1r2cUdcNd27CJsg+SfgC7miZeubtwUhbsPdhMQsfDyhOWHq1+ZL0M+nJZV63d/1dhmhtgyOqejUwrPlzKhydsbrsdUor+JmNJDdW01v7BXHyuymT8G4s09jCasNOwiufbP/qp72ruu0bIA1nySsvlf9pCQAuFkAnVnf/rFhUlOkhtRpwcq8SUNY2zRHR/EKb/4NWY1JzR4sa3q2fWIJdrrX0DvLoa5g9bIEd4Df79ba7v+yiUBOS0zT2ll+z4g9izHK3EO5d8hL4jYxcjKs+wcslSYRWrascfscLgMlMGh0CdKeNTDjHpGPncaf3Z+FwwwjWeuiNBxv7bJo13/8B/098KlVDl4GZqsoBCEjPyJfV6hO0y/LkRGkk7oHWKgeWAfKtfLItRp00eZ4fcJNK9kCaSMmEugoZWcI7NGbZXzqFWqbpRI7NcDP9+WIQ+i9U5vqWsqd/zng4kbuAJ6UuKqIzB0upYrLShfQE3SAck8oaLhJqqq56VfDuASNpJKidV+zq27HfSBmbXnkR/5AK337dc3MXKJypoK/QPMLKUAP5XLPbs+NddJQV7EZXd29DLgp+fRIg3edpKdO7ZErWhv7d+3Kws+e1Y+ypmR2WIVSwVyBEUfgv2C8Ts9gnTF4pNcEY/S2aBicz5Ew2+jdyGNQQ== + test@example.com\n"}]}}, "servicePrincipalProfile": {"clientId":"00000000-0000-0000-0000-000000000001", + "secret":"fake-secret"}, "addonProfiles": {}, "enableRBAC": true, "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"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '1585' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --resource-group --name --location --dns-name-prefix --node-count --ssh-key-value + --service-principal --client-secret --no-wait + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000001?api-version=2020-11-01 + response: + body: + string: "{\n \"code\": \"ServicePrincipalNotFound\",\n \"message\": \"Service + principal clientID: http://clitest000001 not found in Active Directory tenant + 657a2bb7-9a58-4be7-87f3-643bb3b7cbb5, Please see https://aka.ms/aks-sp-help + for more details.\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '248' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:25:26 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: + - '1197' + status: + code: 400 + message: Bad Request +- request: + body: '{"location": "WestUS2", "properties": {"kubernetesVersion": "", "dnsPrefix": + "cliaksdns000002", "agentPoolProfiles": [{"count": 1, "vmSize": "Standard_DS2_v2", + "osType": "Linux", "type": "VirtualMachineScaleSets", "mode": "System", "enableNodePublicIP": + false, "scaleSetPriority": "Regular", "scaleSetEvictionPolicy": "Delete", "name": + "nodepool1"}], "linuxProfile": {"adminUsername": "azureuser", "ssh": {"publicKeys": + [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCbIg1guRHbI0lV11wWDt1r2cUdcNd27CJsg+SfgC7miZeubtwUhbsPdhMQsfDyhOWHq1+ZL0M+nJZV63d/1dhmhtgyOqejUwrPlzKhydsbrsdUor+JmNJDdW01v7BXHyuymT8G4s09jCasNOwiufbP/qp72ruu0bIA1nySsvlf9pCQAuFkAnVnf/rFhUlOkhtRpwcq8SUNY2zRHR/EKb/4NWY1JzR4sa3q2fWIJdrrX0DvLoa5g9bIEd4Df79ba7v+yiUBOS0zT2ll+z4g9izHK3EO5d8hL4jYxcjKs+wcslSYRWrascfscLgMlMGh0CdKeNTDjHpGPncaf3Z+FwwwjWeuiNBxv7bJo13/8B/098KlVDl4GZqsoBCEjPyJfV6hO0y/LkRGkk7oHWKgeWAfKtfLItRp00eZ4fcJNK9kCaSMmEugoZWcI7NGbZXzqFWqbpRI7NcDP9+WIQ+i9U5vqWsqd/zng4kbuAJ6UuKqIzB0upYrLShfQE3SAck8oaLhJqqq56VfDuASNpJKidV+zq27HfSBmbXnkR/5AK337dc3MXKJypoK/QPMLKUAP5XLPbs+NddJQV7EZXd29DLgp+fRIg3edpKdO7ZErWhv7d+3Kws+e1Y+ypmR2WIVSwVyBEUfgv2C8Ts9gnTF4pNcEY/S2aBicz5Ew2+jdyGNQQ== + test@example.com\n"}]}}, "servicePrincipalProfile": {"clientId":"00000000-0000-0000-0000-000000000001", + "secret":"fake-secret"}, "addonProfiles": {}, "enableRBAC": true, "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"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '1585' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --resource-group --name --location --dns-name-prefix --node-count --ssh-key-value + --service-principal --client-secret --no-wait + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000001?api-version=2020-11-01 + response: + body: + string: "{\n \"code\": \"ServicePrincipalNotFound\",\n \"message\": \"Service + principal clientID: http://clitest000001 not found in Active Directory tenant + 657a2bb7-9a58-4be7-87f3-643bb3b7cbb5, Please see https://aka.ms/aks-sp-help + for more details.\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '248' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:25:30 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: + - '1196' + status: + code: 400 + message: Bad Request +- request: + body: '{"location": "WestUS2", "properties": {"kubernetesVersion": "", "dnsPrefix": + "cliaksdns000002", "agentPoolProfiles": [{"count": 1, "vmSize": "Standard_DS2_v2", + "osType": "Linux", "type": "VirtualMachineScaleSets", "mode": "System", "enableNodePublicIP": + false, "scaleSetPriority": "Regular", "scaleSetEvictionPolicy": "Delete", "name": + "nodepool1"}], "linuxProfile": {"adminUsername": "azureuser", "ssh": {"publicKeys": + [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCbIg1guRHbI0lV11wWDt1r2cUdcNd27CJsg+SfgC7miZeubtwUhbsPdhMQsfDyhOWHq1+ZL0M+nJZV63d/1dhmhtgyOqejUwrPlzKhydsbrsdUor+JmNJDdW01v7BXHyuymT8G4s09jCasNOwiufbP/qp72ruu0bIA1nySsvlf9pCQAuFkAnVnf/rFhUlOkhtRpwcq8SUNY2zRHR/EKb/4NWY1JzR4sa3q2fWIJdrrX0DvLoa5g9bIEd4Df79ba7v+yiUBOS0zT2ll+z4g9izHK3EO5d8hL4jYxcjKs+wcslSYRWrascfscLgMlMGh0CdKeNTDjHpGPncaf3Z+FwwwjWeuiNBxv7bJo13/8B/098KlVDl4GZqsoBCEjPyJfV6hO0y/LkRGkk7oHWKgeWAfKtfLItRp00eZ4fcJNK9kCaSMmEugoZWcI7NGbZXzqFWqbpRI7NcDP9+WIQ+i9U5vqWsqd/zng4kbuAJ6UuKqIzB0upYrLShfQE3SAck8oaLhJqqq56VfDuASNpJKidV+zq27HfSBmbXnkR/5AK337dc3MXKJypoK/QPMLKUAP5XLPbs+NddJQV7EZXd29DLgp+fRIg3edpKdO7ZErWhv7d+3Kws+e1Y+ypmR2WIVSwVyBEUfgv2C8Ts9gnTF4pNcEY/S2aBicz5Ew2+jdyGNQQ== + test@example.com\n"}]}}, "servicePrincipalProfile": {"clientId":"00000000-0000-0000-0000-000000000001", + "secret":"fake-secret"}, "addonProfiles": {}, "enableRBAC": true, "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"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '1585' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --resource-group --name --location --dns-name-prefix --node-count --ssh-key-value + --service-principal --client-secret --no-wait + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000001?api-version=2020-11-01 + response: + body: + string: "{\n \"code\": \"ServicePrincipalNotFound\",\n \"message\": \"Service + principal clientID: http://clitest000001 not found in Active Directory tenant + 657a2bb7-9a58-4be7-87f3-643bb3b7cbb5, Please see https://aka.ms/aks-sp-help + for more details.\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '248' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:25: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-writes: + - '1195' + status: + code: 400 + message: Bad Request +- request: + body: '{"location": "WestUS2", "properties": {"kubernetesVersion": "", "dnsPrefix": + "cliaksdns000002", "agentPoolProfiles": [{"count": 1, "vmSize": "Standard_DS2_v2", + "osType": "Linux", "type": "VirtualMachineScaleSets", "mode": "System", "enableNodePublicIP": + false, "scaleSetPriority": "Regular", "scaleSetEvictionPolicy": "Delete", "name": + "nodepool1"}], "linuxProfile": {"adminUsername": "azureuser", "ssh": {"publicKeys": + [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCbIg1guRHbI0lV11wWDt1r2cUdcNd27CJsg+SfgC7miZeubtwUhbsPdhMQsfDyhOWHq1+ZL0M+nJZV63d/1dhmhtgyOqejUwrPlzKhydsbrsdUor+JmNJDdW01v7BXHyuymT8G4s09jCasNOwiufbP/qp72ruu0bIA1nySsvlf9pCQAuFkAnVnf/rFhUlOkhtRpwcq8SUNY2zRHR/EKb/4NWY1JzR4sa3q2fWIJdrrX0DvLoa5g9bIEd4Df79ba7v+yiUBOS0zT2ll+z4g9izHK3EO5d8hL4jYxcjKs+wcslSYRWrascfscLgMlMGh0CdKeNTDjHpGPncaf3Z+FwwwjWeuiNBxv7bJo13/8B/098KlVDl4GZqsoBCEjPyJfV6hO0y/LkRGkk7oHWKgeWAfKtfLItRp00eZ4fcJNK9kCaSMmEugoZWcI7NGbZXzqFWqbpRI7NcDP9+WIQ+i9U5vqWsqd/zng4kbuAJ6UuKqIzB0upYrLShfQE3SAck8oaLhJqqq56VfDuASNpJKidV+zq27HfSBmbXnkR/5AK337dc3MXKJypoK/QPMLKUAP5XLPbs+NddJQV7EZXd29DLgp+fRIg3edpKdO7ZErWhv7d+3Kws+e1Y+ypmR2WIVSwVyBEUfgv2C8Ts9gnTF4pNcEY/S2aBicz5Ew2+jdyGNQQ== + test@example.com\n"}]}}, "servicePrincipalProfile": {"clientId":"00000000-0000-0000-0000-000000000001", + "secret":"fake-secret"}, "addonProfiles": {}, "enableRBAC": true, "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"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '1585' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --resource-group --name --location --dns-name-prefix --node-count --ssh-key-value + --service-principal --client-secret --no-wait + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000001?api-version=2020-11-01 + response: + body: + string: "{\n \"code\": \"ServicePrincipalNotFound\",\n \"message\": \"Service + principal clientID: http://clitest000001 not found in Active Directory tenant + 657a2bb7-9a58-4be7-87f3-643bb3b7cbb5, Please see https://aka.ms/aks-sp-help + for more details.\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '248' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:25:39 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: + - '1194' + status: + code: 400 + message: Bad Request +- request: + body: '{"location": "WestUS2", "properties": {"kubernetesVersion": "", "dnsPrefix": + "cliaksdns000002", "agentPoolProfiles": [{"count": 1, "vmSize": "Standard_DS2_v2", + "osType": "Linux", "type": "VirtualMachineScaleSets", "mode": "System", "enableNodePublicIP": + false, "scaleSetPriority": "Regular", "scaleSetEvictionPolicy": "Delete", "name": + "nodepool1"}], "linuxProfile": {"adminUsername": "azureuser", "ssh": {"publicKeys": + [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCbIg1guRHbI0lV11wWDt1r2cUdcNd27CJsg+SfgC7miZeubtwUhbsPdhMQsfDyhOWHq1+ZL0M+nJZV63d/1dhmhtgyOqejUwrPlzKhydsbrsdUor+JmNJDdW01v7BXHyuymT8G4s09jCasNOwiufbP/qp72ruu0bIA1nySsvlf9pCQAuFkAnVnf/rFhUlOkhtRpwcq8SUNY2zRHR/EKb/4NWY1JzR4sa3q2fWIJdrrX0DvLoa5g9bIEd4Df79ba7v+yiUBOS0zT2ll+z4g9izHK3EO5d8hL4jYxcjKs+wcslSYRWrascfscLgMlMGh0CdKeNTDjHpGPncaf3Z+FwwwjWeuiNBxv7bJo13/8B/098KlVDl4GZqsoBCEjPyJfV6hO0y/LkRGkk7oHWKgeWAfKtfLItRp00eZ4fcJNK9kCaSMmEugoZWcI7NGbZXzqFWqbpRI7NcDP9+WIQ+i9U5vqWsqd/zng4kbuAJ6UuKqIzB0upYrLShfQE3SAck8oaLhJqqq56VfDuASNpJKidV+zq27HfSBmbXnkR/5AK337dc3MXKJypoK/QPMLKUAP5XLPbs+NddJQV7EZXd29DLgp+fRIg3edpKdO7ZErWhv7d+3Kws+e1Y+ypmR2WIVSwVyBEUfgv2C8Ts9gnTF4pNcEY/S2aBicz5Ew2+jdyGNQQ== + test@example.com\n"}]}}, "servicePrincipalProfile": {"clientId":"00000000-0000-0000-0000-000000000001", + "secret":"fake-secret"}, "addonProfiles": {}, "enableRBAC": true, "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"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '1585' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --resource-group --name --location --dns-name-prefix --node-count --ssh-key-value + --service-principal --client-secret --no-wait + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000001?api-version=2020-11-01 + response: + body: + string: "{\n \"code\": \"ServicePrincipalNotFound\",\n \"message\": \"Service + principal clientID: http://clitest000001 not found in Active Directory tenant + 657a2bb7-9a58-4be7-87f3-643bb3b7cbb5, Please see https://aka.ms/aks-sp-help + for more details.\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '248' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:25:43 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1193' + status: + code: 400 + message: Bad Request +- request: + body: '{"location": "WestUS2", "properties": {"kubernetesVersion": "", "dnsPrefix": + "cliaksdns000002", "agentPoolProfiles": [{"count": 1, "vmSize": "Standard_DS2_v2", + "osType": "Linux", "type": "VirtualMachineScaleSets", "mode": "System", "enableNodePublicIP": + false, "scaleSetPriority": "Regular", "scaleSetEvictionPolicy": "Delete", "name": + "nodepool1"}], "linuxProfile": {"adminUsername": "azureuser", "ssh": {"publicKeys": + [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCbIg1guRHbI0lV11wWDt1r2cUdcNd27CJsg+SfgC7miZeubtwUhbsPdhMQsfDyhOWHq1+ZL0M+nJZV63d/1dhmhtgyOqejUwrPlzKhydsbrsdUor+JmNJDdW01v7BXHyuymT8G4s09jCasNOwiufbP/qp72ruu0bIA1nySsvlf9pCQAuFkAnVnf/rFhUlOkhtRpwcq8SUNY2zRHR/EKb/4NWY1JzR4sa3q2fWIJdrrX0DvLoa5g9bIEd4Df79ba7v+yiUBOS0zT2ll+z4g9izHK3EO5d8hL4jYxcjKs+wcslSYRWrascfscLgMlMGh0CdKeNTDjHpGPncaf3Z+FwwwjWeuiNBxv7bJo13/8B/098KlVDl4GZqsoBCEjPyJfV6hO0y/LkRGkk7oHWKgeWAfKtfLItRp00eZ4fcJNK9kCaSMmEugoZWcI7NGbZXzqFWqbpRI7NcDP9+WIQ+i9U5vqWsqd/zng4kbuAJ6UuKqIzB0upYrLShfQE3SAck8oaLhJqqq56VfDuASNpJKidV+zq27HfSBmbXnkR/5AK337dc3MXKJypoK/QPMLKUAP5XLPbs+NddJQV7EZXd29DLgp+fRIg3edpKdO7ZErWhv7d+3Kws+e1Y+ypmR2WIVSwVyBEUfgv2C8Ts9gnTF4pNcEY/S2aBicz5Ew2+jdyGNQQ== + test@example.com\n"}]}}, "servicePrincipalProfile": {"clientId":"00000000-0000-0000-0000-000000000001", + "secret":"fake-secret"}, "addonProfiles": {}, "enableRBAC": true, "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"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '1585' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --resource-group --name --location --dns-name-prefix --node-count --ssh-key-value + --service-principal --client-secret --no-wait + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000001?api-version=2020-11-01 + response: + body: + string: "{\n \"code\": \"ServicePrincipalNotFound\",\n \"message\": \"Service + principal clientID: http://clitest000001 not found in Active Directory tenant + 657a2bb7-9a58-4be7-87f3-643bb3b7cbb5, Please see https://aka.ms/aks-sp-help + for more details.\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '248' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:25:47 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1192' + status: + code: 400 + message: Bad Request +- request: + body: '{"location": "WestUS2", "properties": {"kubernetesVersion": "", "dnsPrefix": + "cliaksdns000002", "agentPoolProfiles": [{"count": 1, "vmSize": "Standard_DS2_v2", + "osType": "Linux", "type": "VirtualMachineScaleSets", "mode": "System", "enableNodePublicIP": + false, "scaleSetPriority": "Regular", "scaleSetEvictionPolicy": "Delete", "name": + "nodepool1"}], "linuxProfile": {"adminUsername": "azureuser", "ssh": {"publicKeys": + [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCbIg1guRHbI0lV11wWDt1r2cUdcNd27CJsg+SfgC7miZeubtwUhbsPdhMQsfDyhOWHq1+ZL0M+nJZV63d/1dhmhtgyOqejUwrPlzKhydsbrsdUor+JmNJDdW01v7BXHyuymT8G4s09jCasNOwiufbP/qp72ruu0bIA1nySsvlf9pCQAuFkAnVnf/rFhUlOkhtRpwcq8SUNY2zRHR/EKb/4NWY1JzR4sa3q2fWIJdrrX0DvLoa5g9bIEd4Df79ba7v+yiUBOS0zT2ll+z4g9izHK3EO5d8hL4jYxcjKs+wcslSYRWrascfscLgMlMGh0CdKeNTDjHpGPncaf3Z+FwwwjWeuiNBxv7bJo13/8B/098KlVDl4GZqsoBCEjPyJfV6hO0y/LkRGkk7oHWKgeWAfKtfLItRp00eZ4fcJNK9kCaSMmEugoZWcI7NGbZXzqFWqbpRI7NcDP9+WIQ+i9U5vqWsqd/zng4kbuAJ6UuKqIzB0upYrLShfQE3SAck8oaLhJqqq56VfDuASNpJKidV+zq27HfSBmbXnkR/5AK337dc3MXKJypoK/QPMLKUAP5XLPbs+NddJQV7EZXd29DLgp+fRIg3edpKdO7ZErWhv7d+3Kws+e1Y+ypmR2WIVSwVyBEUfgv2C8Ts9gnTF4pNcEY/S2aBicz5Ew2+jdyGNQQ== + test@example.com\n"}]}}, "servicePrincipalProfile": {"clientId":"00000000-0000-0000-0000-000000000001", + "secret":"fake-secret"}, "addonProfiles": {}, "enableRBAC": true, "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"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '1585' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --resource-group --name --location --dns-name-prefix --node-count --ssh-key-value + --service-principal --client-secret --no-wait + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000001?api-version=2020-11-01 + response: + body: + string: "{\n \"code\": \"ServicePrincipalNotFound\",\n \"message\": \"Service + principal clientID: http://clitest000001 not found in Active Directory tenant + 657a2bb7-9a58-4be7-87f3-643bb3b7cbb5, Please see https://aka.ms/aks-sp-help + for more details.\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '248' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:25:51 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: + - '1191' + status: + code: 400 + message: Bad Request +- request: + body: '{"location": "WestUS2", "properties": {"kubernetesVersion": "", "dnsPrefix": + "cliaksdns000002", "agentPoolProfiles": [{"count": 1, "vmSize": "Standard_DS2_v2", + "osType": "Linux", "type": "VirtualMachineScaleSets", "mode": "System", "enableNodePublicIP": + false, "scaleSetPriority": "Regular", "scaleSetEvictionPolicy": "Delete", "name": + "nodepool1"}], "linuxProfile": {"adminUsername": "azureuser", "ssh": {"publicKeys": + [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCbIg1guRHbI0lV11wWDt1r2cUdcNd27CJsg+SfgC7miZeubtwUhbsPdhMQsfDyhOWHq1+ZL0M+nJZV63d/1dhmhtgyOqejUwrPlzKhydsbrsdUor+JmNJDdW01v7BXHyuymT8G4s09jCasNOwiufbP/qp72ruu0bIA1nySsvlf9pCQAuFkAnVnf/rFhUlOkhtRpwcq8SUNY2zRHR/EKb/4NWY1JzR4sa3q2fWIJdrrX0DvLoa5g9bIEd4Df79ba7v+yiUBOS0zT2ll+z4g9izHK3EO5d8hL4jYxcjKs+wcslSYRWrascfscLgMlMGh0CdKeNTDjHpGPncaf3Z+FwwwjWeuiNBxv7bJo13/8B/098KlVDl4GZqsoBCEjPyJfV6hO0y/LkRGkk7oHWKgeWAfKtfLItRp00eZ4fcJNK9kCaSMmEugoZWcI7NGbZXzqFWqbpRI7NcDP9+WIQ+i9U5vqWsqd/zng4kbuAJ6UuKqIzB0upYrLShfQE3SAck8oaLhJqqq56VfDuASNpJKidV+zq27HfSBmbXnkR/5AK337dc3MXKJypoK/QPMLKUAP5XLPbs+NddJQV7EZXd29DLgp+fRIg3edpKdO7ZErWhv7d+3Kws+e1Y+ypmR2WIVSwVyBEUfgv2C8Ts9gnTF4pNcEY/S2aBicz5Ew2+jdyGNQQ== + test@example.com\n"}]}}, "servicePrincipalProfile": {"clientId":"00000000-0000-0000-0000-000000000001", + "secret":"fake-secret"}, "addonProfiles": {}, "enableRBAC": true, "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"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '1585' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --resource-group --name --location --dns-name-prefix --node-count --ssh-key-value + --service-principal --client-secret --no-wait + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000001?api-version=2020-11-01 + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000001\",\n + \ \"location\": \"westus2\",\n \"name\": \"cliakstest000001\",\n \"type\": + \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": + \"Creating\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": + \"1.19.11\",\n \"dnsPrefix\": \"cliaksdns000002\",\n \"fqdn\": \"cliaksdns000002-90247c4b.hcp.westus2.azmk8s.io\",\n + \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": + 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": + \"Managed\",\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n + \ \"provisioningState\": \"Creating\",\n \"powerState\": {\n \"code\": + \"Running\"\n },\n \"orchestratorVersion\": \"1.19.11\",\n \"enableNodePublicIP\": + false,\n \"nodeLabels\": {},\n \"mode\": \"System\",\n \"osType\": + \"Linux\",\n \"nodeImageVersion\": \"AKSUbuntu-1804gen2containerd-2021.05.19\"\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_acscliapi11_cliakstest000001_westus2\",\n \"enableRBAC\": true,\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 },\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/4948d0ae-e581-473a-8f82-4bb6d63875de?api-version=2016-03-30 + cache-control: + - no-cache + content-length: + - '2556' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:25:56 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: + - '1190' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks wait + Connection: + - keep-alive + ParameterSetName: + - -g -n --created + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000001?api-version=2020-11-01 + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000001\",\n + \ \"location\": \"westus2\",\n \"name\": \"cliakstest000001\",\n \"type\": + \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": + \"Creating\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": + \"1.19.11\",\n \"dnsPrefix\": \"cliaksdns000002\",\n \"fqdn\": \"cliaksdns000002-90247c4b.hcp.westus2.azmk8s.io\",\n + \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": + 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": + \"Managed\",\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n + \ \"provisioningState\": \"Creating\",\n \"powerState\": {\n \"code\": + \"Running\"\n },\n \"orchestratorVersion\": \"1.19.11\",\n \"enableNodePublicIP\": + false,\n \"nodeLabels\": {},\n \"mode\": \"System\",\n \"osType\": + \"Linux\",\n \"nodeImageVersion\": \"AKSUbuntu-1804gen2containerd-2021.05.19\"\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_acscliapi11_cliakstest000001_westus2\",\n \"enableRBAC\": true,\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 },\n \"sku\": {\n \"name\": \"Basic\",\n \"tier\": \"Free\"\n + \ }\n }" + headers: + cache-control: + - no-cache + content-length: + - '2556' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:25:57 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks wait + Connection: + - keep-alive + ParameterSetName: + - -g -n --created + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000001?api-version=2020-11-01 + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000001\",\n + \ \"location\": \"westus2\",\n \"name\": \"cliakstest000001\",\n \"type\": + \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": + \"Creating\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": + \"1.19.11\",\n \"dnsPrefix\": \"cliaksdns000002\",\n \"fqdn\": \"cliaksdns000002-90247c4b.hcp.westus2.azmk8s.io\",\n + \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": + 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": + \"Managed\",\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n + \ \"provisioningState\": \"Creating\",\n \"powerState\": {\n \"code\": + \"Running\"\n },\n \"orchestratorVersion\": \"1.19.11\",\n \"enableNodePublicIP\": + false,\n \"nodeLabels\": {},\n \"mode\": \"System\",\n \"osType\": + \"Linux\",\n \"nodeImageVersion\": \"AKSUbuntu-1804gen2containerd-2021.05.19\"\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_acscliapi11_cliakstest000001_westus2\",\n \"enableRBAC\": true,\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_acscliapi11_cliakstest000001_westus2/providers/Microsoft.Network/publicIPAddresses/c351f80b-b618-4c87-b9a8-55db2d6fc817\"\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 },\n \"sku\": {\n \"name\": \"Basic\",\n \"tier\": \"Free\"\n + \ }\n }" + headers: + cache-control: + - no-cache + content-length: + - '2816' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:26: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks wait + Connection: + - keep-alive + ParameterSetName: + - -g -n --created + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000001?api-version=2020-11-01 + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000001\",\n + \ \"location\": \"westus2\",\n \"name\": \"cliakstest000001\",\n \"type\": + \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": + \"Creating\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": + \"1.19.11\",\n \"dnsPrefix\": \"cliaksdns000002\",\n \"fqdn\": \"cliaksdns000002-90247c4b.hcp.westus2.azmk8s.io\",\n + \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": + 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": + \"Managed\",\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n + \ \"provisioningState\": \"Creating\",\n \"powerState\": {\n \"code\": + \"Running\"\n },\n \"orchestratorVersion\": \"1.19.11\",\n \"enableNodePublicIP\": + false,\n \"nodeLabels\": {},\n \"mode\": \"System\",\n \"osType\": + \"Linux\",\n \"nodeImageVersion\": \"AKSUbuntu-1804gen2containerd-2021.05.19\"\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_acscliapi11_cliakstest000001_westus2\",\n \"enableRBAC\": true,\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_acscliapi11_cliakstest000001_westus2/providers/Microsoft.Network/publicIPAddresses/c351f80b-b618-4c87-b9a8-55db2d6fc817\"\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 },\n \"sku\": {\n \"name\": \"Basic\",\n \"tier\": \"Free\"\n + \ }\n }" + headers: + cache-control: + - no-cache + content-length: + - '2816' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:26: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks wait + Connection: + - keep-alive + ParameterSetName: + - -g -n --created + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000001?api-version=2020-11-01 + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000001\",\n + \ \"location\": \"westus2\",\n \"name\": \"cliakstest000001\",\n \"type\": + \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": + \"Creating\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": + \"1.19.11\",\n \"dnsPrefix\": \"cliaksdns000002\",\n \"fqdn\": \"cliaksdns000002-90247c4b.hcp.westus2.azmk8s.io\",\n + \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": + 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": + \"Managed\",\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n + \ \"provisioningState\": \"Creating\",\n \"powerState\": {\n \"code\": + \"Running\"\n },\n \"orchestratorVersion\": \"1.19.11\",\n \"enableNodePublicIP\": + false,\n \"nodeLabels\": {},\n \"mode\": \"System\",\n \"osType\": + \"Linux\",\n \"nodeImageVersion\": \"AKSUbuntu-1804gen2containerd-2021.05.19\"\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_acscliapi11_cliakstest000001_westus2\",\n \"enableRBAC\": true,\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_acscliapi11_cliakstest000001_westus2/providers/Microsoft.Network/publicIPAddresses/c351f80b-b618-4c87-b9a8-55db2d6fc817\"\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 },\n \"sku\": {\n \"name\": \"Basic\",\n \"tier\": \"Free\"\n + \ }\n }" + headers: + cache-control: + - no-cache + content-length: + - '2816' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:27: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks wait + Connection: + - keep-alive + ParameterSetName: + - -g -n --created + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000001?api-version=2020-11-01 + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000001\",\n + \ \"location\": \"westus2\",\n \"name\": \"cliakstest000001\",\n \"type\": + \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": + \"Creating\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": + \"1.19.11\",\n \"dnsPrefix\": \"cliaksdns000002\",\n \"fqdn\": \"cliaksdns000002-90247c4b.hcp.westus2.azmk8s.io\",\n + \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": + 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": + \"Managed\",\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n + \ \"provisioningState\": \"Creating\",\n \"powerState\": {\n \"code\": + \"Running\"\n },\n \"orchestratorVersion\": \"1.19.11\",\n \"enableNodePublicIP\": + false,\n \"nodeLabels\": {},\n \"mode\": \"System\",\n \"osType\": + \"Linux\",\n \"nodeImageVersion\": \"AKSUbuntu-1804gen2containerd-2021.05.19\"\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_acscliapi11_cliakstest000001_westus2\",\n \"enableRBAC\": true,\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_acscliapi11_cliakstest000001_westus2/providers/Microsoft.Network/publicIPAddresses/c351f80b-b618-4c87-b9a8-55db2d6fc817\"\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 },\n \"sku\": {\n \"name\": \"Basic\",\n \"tier\": \"Free\"\n + \ }\n }" + headers: + cache-control: + - no-cache + content-length: + - '2816' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:27: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks wait + Connection: + - keep-alive + ParameterSetName: + - -g -n --created + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000001?api-version=2020-11-01 + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000001\",\n + \ \"location\": \"westus2\",\n \"name\": \"cliakstest000001\",\n \"type\": + \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": + \"Creating\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": + \"1.19.11\",\n \"dnsPrefix\": \"cliaksdns000002\",\n \"fqdn\": \"cliaksdns000002-90247c4b.hcp.westus2.azmk8s.io\",\n + \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": + 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": + \"Managed\",\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n + \ \"provisioningState\": \"Creating\",\n \"powerState\": {\n \"code\": + \"Running\"\n },\n \"orchestratorVersion\": \"1.19.11\",\n \"enableNodePublicIP\": + false,\n \"nodeLabels\": {},\n \"mode\": \"System\",\n \"osType\": + \"Linux\",\n \"nodeImageVersion\": \"AKSUbuntu-1804gen2containerd-2021.05.19\"\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_acscliapi11_cliakstest000001_westus2\",\n \"enableRBAC\": true,\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_acscliapi11_cliakstest000001_westus2/providers/Microsoft.Network/publicIPAddresses/c351f80b-b618-4c87-b9a8-55db2d6fc817\"\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 },\n \"sku\": {\n \"name\": \"Basic\",\n \"tier\": \"Free\"\n + \ }\n }" + headers: + cache-control: + - no-cache + content-length: + - '2816' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:28:30 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 wait + Connection: + - keep-alive + ParameterSetName: + - -g -n --created + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000001?api-version=2020-11-01 + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000001\",\n + \ \"location\": \"westus2\",\n \"name\": \"cliakstest000001\",\n \"type\": + \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": + \"Succeeded\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": + \"1.19.11\",\n \"dnsPrefix\": \"cliaksdns000002\",\n \"fqdn\": \"cliaksdns000002-90247c4b.hcp.westus2.azmk8s.io\",\n + \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": + 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": + \"Managed\",\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n + \ \"provisioningState\": \"Succeeded\",\n \"powerState\": {\n \"code\": + \"Running\"\n },\n \"orchestratorVersion\": \"1.19.11\",\n \"enableNodePublicIP\": + false,\n \"nodeLabels\": {},\n \"mode\": \"System\",\n \"osType\": + \"Linux\",\n \"nodeImageVersion\": \"AKSUbuntu-1804gen2containerd-2021.05.19\"\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_acscliapi11_cliakstest000001_westus2\",\n \"enableRBAC\": true,\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_acscliapi11_cliakstest000001_westus2/providers/Microsoft.Network/publicIPAddresses/c351f80b-b618-4c87-b9a8-55db2d6fc817\"\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 },\n \"sku\": {\n \"name\": \"Basic\",\n \"tier\": \"Free\"\n + \ }\n }" + headers: + cache-control: + - no-cache + content-length: + - '2818' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:29: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 list + Connection: + - keep-alive + ParameterSetName: + - -g + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters?api-version=2020-11-01 + response: + body: + string: "{\n \"value\": [\n {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest66ziwn\",\n + \ \"location\": \"westus2\",\n \"name\": \"cliakstest66ziwn\",\n \"type\": + \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": + \"Succeeded\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n + \ \"kubernetesVersion\": \"1.19.11\",\n \"dnsPrefix\": \"cliakstest-acscliapi11-8a4f68\",\n + \ \"fqdn\": \"cliakstest-acscliapi11-8a4f68-32ff561d.hcp.westus2.azmk8s.io\",\n + \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n + \ \"count\": 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\": + 128,\n \"osDiskType\": \"Managed\",\n \"vnetSubnetID\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.Network/virtualNetworks/clivnet7wtjiqx2s/subnets/clisubnetmnfyuhi\",\n + \ \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n + \ \"provisioningState\": \"Succeeded\",\n \"powerState\": {\n \"code\": + \"Running\"\n },\n \"orchestratorVersion\": \"1.19.11\",\n \"enableNodePublicIP\": + false,\n \"nodeLabels\": {},\n \"mode\": \"System\",\n \"osType\": + \"Linux\",\n \"nodeImageVersion\": \"AKSUbuntu-1804gen2containerd-2021.05.19\"\n + \ }\n ],\n \"servicePrincipalProfile\": {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n + \ },\n \"nodeResourceGroup\": \"MC_acscliapi11_cliakstest66ziwn_westus2\",\n + \ \"enableRBAC\": true,\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_acscliapi11_cliakstest66ziwn_westus2/providers/Microsoft.Network/publicIPAddresses/7ca83176-cdb8-43af-9e2e-892c0cd3b440\"\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 },\n \"sku\": {\n \"name\": \"Basic\",\n \"tier\": \"Free\"\n + \ }\n },\n {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstestbbkjje\",\n + \ \"location\": \"westus2\",\n \"name\": \"cliakstestbbkjje\",\n \"type\": + \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": + \"Succeeded\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n + \ \"kubernetesVersion\": \"1.19.11\",\n \"dnsPrefix\": \"cliakstest-acscliapi11-8a4f68\",\n + \ \"fqdn\": \"cliakstest-acscliapi11-8a4f68-67a82cd0.hcp.westus2.azmk8s.io\",\n + \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n + \ \"count\": 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\": + 128,\n \"osDiskType\": \"Managed\",\n \"vnetSubnetID\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.Network/virtualNetworks/clivnet7wtjiqx2s/subnets/clisubnetmnfyuhi\",\n + \ \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n + \ \"provisioningState\": \"Succeeded\",\n \"powerState\": {\n \"code\": + \"Running\"\n },\n \"orchestratorVersion\": \"1.19.11\",\n \"enableNodePublicIP\": + false,\n \"nodeLabels\": {},\n \"mode\": \"System\",\n \"osType\": + \"Linux\",\n \"nodeImageVersion\": \"AKSUbuntu-1804gen2containerd-2021.05.19\"\n + \ }\n ],\n \"servicePrincipalProfile\": {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n + \ },\n \"nodeResourceGroup\": \"MC_acscliapi11_cliakstestbbkjje_westus2\",\n + \ \"enableRBAC\": true,\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_acscliapi11_cliakstestbbkjje_westus2/providers/Microsoft.Network/publicIPAddresses/d4935721-c402-4726-a621-e818aaa63d33\"\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 },\n \"sku\": {\n \"name\": \"Basic\",\n \"tier\": \"Free\"\n + \ }\n },\n {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstestdgv5e3\",\n + \ \"location\": \"westus2\",\n \"name\": \"cliakstestdgv5e3\",\n \"tags\": + {\n \"scenario_test\": \"\"\n },\n \"type\": \"Microsoft.ContainerService/ManagedClusters\",\n + \ \"properties\": {\n \"provisioningState\": \"Succeeded\",\n \"powerState\": + {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": \"1.20.7\",\n + \ \"dnsPrefix\": \"cliaksdnsiaxumum\",\n \"fqdn\": \"cliaksdnsiaxumum-d44b7d06.hcp.westus2.azmk8s.io\",\n + \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n + \ \"count\": 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\": + 128,\n \"osDiskType\": \"Managed\",\n \"maxPods\": 110,\n \"type\": + \"VirtualMachineScaleSets\",\n \"provisioningState\": \"Succeeded\",\n + \ \"powerState\": {\n \"code\": \"Running\"\n },\n \"orchestratorVersion\": + \"1.20.7\",\n \"enableNodePublicIP\": false,\n \"nodeLabels\": + {},\n \"mode\": \"System\",\n \"osType\": \"Linux\",\n \"nodeImageVersion\": + \"AKSUbuntu-1804gen2containerd-2021.05.19\"\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_acscliapi11_cliakstestdgv5e3_westus2\",\n + \ \"enableRBAC\": true,\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_acscliapi11_cliakstestdgv5e3_westus2/providers/Microsoft.Network/publicIPAddresses/8d182549-3ea0-4cd4-abd9-af537e762659\"\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 },\n \"sku\": {\n \"name\": \"Basic\",\n \"tier\": \"Free\"\n + \ }\n },\n {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstestgzkf7s\",\n + \ \"location\": \"westus2\",\n \"name\": \"cliakstestgzkf7s\",\n \"type\": + \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": + \"Succeeded\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n + \ \"kubernetesVersion\": \"1.19.11\",\n \"dnsPrefix\": \"cliakstest-acscliapi11-8a4f68\",\n + \ \"fqdn\": \"cliakstest-acscliapi11-8a4f68-83e931bf.hcp.westus2.azmk8s.io\",\n + \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n + \ \"count\": 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\": + 128,\n \"osDiskType\": \"Managed\",\n \"vnetSubnetID\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.Network/virtualNetworks/clivnetrmbamq3w3/subnets/clisubnetvahjfzy\",\n + \ \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n + \ \"provisioningState\": \"Succeeded\",\n \"powerState\": {\n \"code\": + \"Running\"\n },\n \"orchestratorVersion\": \"1.19.11\",\n \"enableNodePublicIP\": + false,\n \"nodeLabels\": {},\n \"mode\": \"System\",\n \"osType\": + \"Linux\",\n \"nodeImageVersion\": \"AKSUbuntu-1804gen2containerd-2021.05.19\"\n + \ }\n ],\n \"servicePrincipalProfile\": {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n + \ },\n \"nodeResourceGroup\": \"MC_acscliapi11_cliakstestgzkf7s_westus2\",\n + \ \"enableRBAC\": true,\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_acscliapi11_cliakstestgzkf7s_westus2/providers/Microsoft.Network/publicIPAddresses/3c507477-1447-4f3b-ab4d-8874cf6b22cd\"\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 },\n \"sku\": {\n \"name\": \"Basic\",\n \"tier\": \"Free\"\n + \ }\n },\n {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000001\",\n + \ \"location\": \"westus2\",\n \"name\": \"cliakstest000001\",\n \"type\": + \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": + \"Succeeded\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n + \ \"kubernetesVersion\": \"1.19.11\",\n \"dnsPrefix\": \"cliaksdns000002\",\n + \ \"fqdn\": \"cliaksdns000002-90247c4b.hcp.westus2.azmk8s.io\",\n \"agentPoolProfiles\": + [\n {\n \"name\": \"nodepool1\",\n \"count\": 1,\n \"vmSize\": + \"Standard_DS2_v2\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": + \"Managed\",\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n + \ \"provisioningState\": \"Succeeded\",\n \"powerState\": {\n \"code\": + \"Running\"\n },\n \"orchestratorVersion\": \"1.19.11\",\n \"enableNodePublicIP\": + false,\n \"nodeLabels\": {},\n \"mode\": \"System\",\n \"osType\": + \"Linux\",\n \"nodeImageVersion\": \"AKSUbuntu-1804gen2containerd-2021.05.19\"\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_acscliapi11_cliakstest000001_westus2\",\n + \ \"enableRBAC\": true,\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_acscliapi11_cliakstest000001_westus2/providers/Microsoft.Network/publicIPAddresses/c351f80b-b618-4c87-b9a8-55db2d6fc817\"\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 },\n \"sku\": {\n \"name\": \"Basic\",\n \"tier\": \"Free\"\n + \ }\n },\n {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstestm2t5gk\",\n + \ \"location\": \"westus2\",\n \"name\": \"cliakstestm2t5gk\",\n \"type\": + \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": + \"Succeeded\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n + \ \"kubernetesVersion\": \"1.19.11\",\n \"dnsPrefix\": \"cliaksdns2d3lhhg\",\n + \ \"fqdn\": \"cliaksdns2d3lhhg-73505685.hcp.westus2.azmk8s.io\",\n \"agentPoolProfiles\": + [\n {\n \"name\": \"nodepool1\",\n \"count\": 1,\n \"vmSize\": + \"Standard_DS2_v2\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": + \"Managed\",\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n + \ \"provisioningState\": \"Succeeded\",\n \"powerState\": {\n \"code\": + \"Running\"\n },\n \"orchestratorVersion\": \"1.19.11\",\n \"enableNodePublicIP\": + false,\n \"nodeLabels\": {},\n \"mode\": \"System\",\n \"osType\": + \"Linux\",\n \"nodeImageVersion\": \"AKSUbuntu-1804gen2containerd-2021.05.19\"\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_acscliapi11_cliakstestm2t5gk_westus2\",\n + \ \"enableRBAC\": true,\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_acscliapi11_cliakstestm2t5gk_westus2/providers/Microsoft.Network/publicIPAddresses/dd451596-7e20-4362-afd1-15a638eeb51e\"\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 },\n \"sku\": {\n \"name\": \"Basic\",\n \"tier\": \"Free\"\n + \ }\n },\n {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstestonue4r\",\n + \ \"location\": \"westus2\",\n \"name\": \"cliakstestonue4r\",\n \"type\": + \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": + \"Succeeded\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n + \ \"kubernetesVersion\": \"1.19.11\",\n \"dnsPrefix\": \"cliakstest-acscliapi11-8a4f68\",\n + \ \"fqdn\": \"cliakstest-acscliapi11-8a4f68-d5a258ab.hcp.westus2.azmk8s.io\",\n + \ \"agentPoolProfiles\": [\n {\n \"name\": \"c72rp2\",\n \"count\": + 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\": 128,\n + \ \"osDiskType\": \"Managed\",\n \"maxPods\": 110,\n \"type\": + \"VirtualMachineScaleSets\",\n \"provisioningState\": \"Succeeded\",\n + \ \"powerState\": {\n \"code\": \"Running\"\n },\n \"orchestratorVersion\": + \"1.19.11\",\n \"enableNodePublicIP\": false,\n \"nodeLabels\": + {},\n \"mode\": \"System\",\n \"osType\": \"Linux\",\n \"nodeImageVersion\": + \"AKSUbuntu-1804gen2containerd-2021.05.19\"\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_acscliapi11_cliakstestonue4r_westus2\",\n + \ \"enableRBAC\": true,\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_acscliapi11_cliakstestonue4r_westus2/providers/Microsoft.Network/publicIPAddresses/2177c949-f232-4561-add5-b7e5fb2f225c\"\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_acscliapi11_cliakstestonue4r_westus2/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cliakstestonue4r-agentpool\",\n + \ \"clientId\":\"00000000-0000-0000-0000-000000000001\",\n \"objectId\":\"00000000-0000-0000-0000-000000000001\"\n + \ }\n }\n },\n \"identity\": {\n \"type\": \"SystemAssigned\",\n + \ \"principalId\":\"00000000-0000-0000-0000-000000000001\",\n \"tenantId\": + \"657a2bb7-9a58-4be7-87f3-643bb3b7cbb5\"\n },\n \"sku\": {\n \"name\": + \"Basic\",\n \"tier\": \"Free\"\n }\n },\n {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstesttfxhjj\",\n + \ \"location\": \"westus2\",\n \"name\": \"cliakstesttfxhjj\",\n \"type\": + \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": + \"Succeeded\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n + \ \"kubernetesVersion\": \"1.19.11\",\n \"dnsPrefix\": \"cliakstest-acscliapi11-8a4f68\",\n + \ \"fqdn\": \"cliakstest-acscliapi11-8a4f68-ba86e7da.hcp.westus2.azmk8s.io\",\n + \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n + \ \"count\": 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\": + 128,\n \"osDiskType\": \"Managed\",\n \"vnetSubnetID\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.Network/virtualNetworks/clivnetdl3fzvzdr/subnets/clisubnetj3da4wr\",\n + \ \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n + \ \"provisioningState\": \"Succeeded\",\n \"powerState\": {\n \"code\": + \"Running\"\n },\n \"orchestratorVersion\": \"1.19.11\",\n \"enableNodePublicIP\": + false,\n \"nodeLabels\": {},\n \"mode\": \"System\",\n \"osType\": + \"Linux\",\n \"nodeImageVersion\": \"AKSUbuntu-1804gen2containerd-2021.05.19\"\n + \ }\n ],\n \"servicePrincipalProfile\": {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n + \ },\n \"nodeResourceGroup\": \"MC_acscliapi11_cliakstesttfxhjj_westus2\",\n + \ \"enableRBAC\": true,\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_acscliapi11_cliakstesttfxhjj_westus2/providers/Microsoft.Network/publicIPAddresses/0a8b71e3-6351-4655-a18d-5107cd9b75f2\"\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_acscliapi11_cliakstesttfxhjj_westus2/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cliakstesttfxhjj-agentpool\",\n + \ \"clientId\":\"00000000-0000-0000-0000-000000000001\",\n \"objectId\":\"00000000-0000-0000-0000-000000000001\"\n + \ }\n }\n },\n \"identity\": {\n \"type\": \"SystemAssigned\",\n + \ \"principalId\":\"00000000-0000-0000-0000-000000000001\",\n \"tenantId\": + \"657a2bb7-9a58-4be7-87f3-643bb3b7cbb5\"\n },\n \"sku\": {\n \"name\": + \"Basic\",\n \"tier\": \"Free\"\n }\n }\n ]\n }" + headers: + cache-control: + - no-cache + content-length: + - '22185' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:29:01 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks list + Connection: + - keep-alive + ParameterSetName: + - -g -o + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters?api-version=2020-11-01 + response: + body: + string: "{\n \"value\": [\n {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest66ziwn\",\n + \ \"location\": \"westus2\",\n \"name\": \"cliakstest66ziwn\",\n \"type\": + \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": + \"Succeeded\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n + \ \"kubernetesVersion\": \"1.19.11\",\n \"dnsPrefix\": \"cliakstest-acscliapi11-8a4f68\",\n + \ \"fqdn\": \"cliakstest-acscliapi11-8a4f68-32ff561d.hcp.westus2.azmk8s.io\",\n + \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n + \ \"count\": 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\": + 128,\n \"osDiskType\": \"Managed\",\n \"vnetSubnetID\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.Network/virtualNetworks/clivnet7wtjiqx2s/subnets/clisubnetmnfyuhi\",\n + \ \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n + \ \"provisioningState\": \"Succeeded\",\n \"powerState\": {\n \"code\": + \"Running\"\n },\n \"orchestratorVersion\": \"1.19.11\",\n \"enableNodePublicIP\": + false,\n \"nodeLabels\": {},\n \"mode\": \"System\",\n \"osType\": + \"Linux\",\n \"nodeImageVersion\": \"AKSUbuntu-1804gen2containerd-2021.05.19\"\n + \ }\n ],\n \"servicePrincipalProfile\": {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n + \ },\n \"nodeResourceGroup\": \"MC_acscliapi11_cliakstest66ziwn_westus2\",\n + \ \"enableRBAC\": true,\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_acscliapi11_cliakstest66ziwn_westus2/providers/Microsoft.Network/publicIPAddresses/7ca83176-cdb8-43af-9e2e-892c0cd3b440\"\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 },\n \"sku\": {\n \"name\": \"Basic\",\n \"tier\": \"Free\"\n + \ }\n },\n {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstestbbkjje\",\n + \ \"location\": \"westus2\",\n \"name\": \"cliakstestbbkjje\",\n \"type\": + \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": + \"Succeeded\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n + \ \"kubernetesVersion\": \"1.19.11\",\n \"dnsPrefix\": \"cliakstest-acscliapi11-8a4f68\",\n + \ \"fqdn\": \"cliakstest-acscliapi11-8a4f68-67a82cd0.hcp.westus2.azmk8s.io\",\n + \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n + \ \"count\": 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\": + 128,\n \"osDiskType\": \"Managed\",\n \"vnetSubnetID\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.Network/virtualNetworks/clivnet7wtjiqx2s/subnets/clisubnetmnfyuhi\",\n + \ \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n + \ \"provisioningState\": \"Succeeded\",\n \"powerState\": {\n \"code\": + \"Running\"\n },\n \"orchestratorVersion\": \"1.19.11\",\n \"enableNodePublicIP\": + false,\n \"nodeLabels\": {},\n \"mode\": \"System\",\n \"osType\": + \"Linux\",\n \"nodeImageVersion\": \"AKSUbuntu-1804gen2containerd-2021.05.19\"\n + \ }\n ],\n \"servicePrincipalProfile\": {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n + \ },\n \"nodeResourceGroup\": \"MC_acscliapi11_cliakstestbbkjje_westus2\",\n + \ \"enableRBAC\": true,\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_acscliapi11_cliakstestbbkjje_westus2/providers/Microsoft.Network/publicIPAddresses/d4935721-c402-4726-a621-e818aaa63d33\"\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 },\n \"sku\": {\n \"name\": \"Basic\",\n \"tier\": \"Free\"\n + \ }\n },\n {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstestdgv5e3\",\n + \ \"location\": \"westus2\",\n \"name\": \"cliakstestdgv5e3\",\n \"tags\": + {\n \"scenario_test\": \"\"\n },\n \"type\": \"Microsoft.ContainerService/ManagedClusters\",\n + \ \"properties\": {\n \"provisioningState\": \"Deleting\",\n \"powerState\": + {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": \"1.20.7\",\n + \ \"dnsPrefix\": \"cliaksdnsiaxumum\",\n \"fqdn\": \"cliaksdnsiaxumum-d44b7d06.hcp.westus2.azmk8s.io\",\n + \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n + \ \"count\": 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\": + 128,\n \"osDiskType\": \"Managed\",\n \"maxPods\": 110,\n \"type\": + \"VirtualMachineScaleSets\",\n \"provisioningState\": \"Deleting\",\n + \ \"powerState\": {\n \"code\": \"Running\"\n },\n \"orchestratorVersion\": + \"1.20.7\",\n \"enableNodePublicIP\": false,\n \"nodeLabels\": + {},\n \"mode\": \"System\",\n \"osType\": \"Linux\",\n \"nodeImageVersion\": + \"AKSUbuntu-1804gen2containerd-2021.05.19\"\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_acscliapi11_cliakstestdgv5e3_westus2\",\n + \ \"enableRBAC\": true,\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_acscliapi11_cliakstestdgv5e3_westus2/providers/Microsoft.Network/publicIPAddresses/8d182549-3ea0-4cd4-abd9-af537e762659\"\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 },\n \"sku\": {\n \"name\": \"Basic\",\n \"tier\": \"Free\"\n + \ }\n },\n {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstestgzkf7s\",\n + \ \"location\": \"westus2\",\n \"name\": \"cliakstestgzkf7s\",\n \"type\": + \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": + \"Succeeded\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n + \ \"kubernetesVersion\": \"1.19.11\",\n \"dnsPrefix\": \"cliakstest-acscliapi11-8a4f68\",\n + \ \"fqdn\": \"cliakstest-acscliapi11-8a4f68-83e931bf.hcp.westus2.azmk8s.io\",\n + \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n + \ \"count\": 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\": + 128,\n \"osDiskType\": \"Managed\",\n \"vnetSubnetID\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.Network/virtualNetworks/clivnetrmbamq3w3/subnets/clisubnetvahjfzy\",\n + \ \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n + \ \"provisioningState\": \"Succeeded\",\n \"powerState\": {\n \"code\": + \"Running\"\n },\n \"orchestratorVersion\": \"1.19.11\",\n \"enableNodePublicIP\": + false,\n \"nodeLabels\": {},\n \"mode\": \"System\",\n \"osType\": + \"Linux\",\n \"nodeImageVersion\": \"AKSUbuntu-1804gen2containerd-2021.05.19\"\n + \ }\n ],\n \"servicePrincipalProfile\": {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n + \ },\n \"nodeResourceGroup\": \"MC_acscliapi11_cliakstestgzkf7s_westus2\",\n + \ \"enableRBAC\": true,\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_acscliapi11_cliakstestgzkf7s_westus2/providers/Microsoft.Network/publicIPAddresses/3c507477-1447-4f3b-ab4d-8874cf6b22cd\"\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 },\n \"sku\": {\n \"name\": \"Basic\",\n \"tier\": \"Free\"\n + \ }\n },\n {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000001\",\n + \ \"location\": \"westus2\",\n \"name\": \"cliakstest000001\",\n \"type\": + \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": + \"Succeeded\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n + \ \"kubernetesVersion\": \"1.19.11\",\n \"dnsPrefix\": \"cliaksdns000002\",\n + \ \"fqdn\": \"cliaksdns000002-90247c4b.hcp.westus2.azmk8s.io\",\n \"agentPoolProfiles\": + [\n {\n \"name\": \"nodepool1\",\n \"count\": 1,\n \"vmSize\": + \"Standard_DS2_v2\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": + \"Managed\",\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n + \ \"provisioningState\": \"Succeeded\",\n \"powerState\": {\n \"code\": + \"Running\"\n },\n \"orchestratorVersion\": \"1.19.11\",\n \"enableNodePublicIP\": + false,\n \"nodeLabels\": {},\n \"mode\": \"System\",\n \"osType\": + \"Linux\",\n \"nodeImageVersion\": \"AKSUbuntu-1804gen2containerd-2021.05.19\"\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_acscliapi11_cliakstest000001_westus2\",\n + \ \"enableRBAC\": true,\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_acscliapi11_cliakstest000001_westus2/providers/Microsoft.Network/publicIPAddresses/c351f80b-b618-4c87-b9a8-55db2d6fc817\"\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 },\n \"sku\": {\n \"name\": \"Basic\",\n \"tier\": \"Free\"\n + \ }\n },\n {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstestm2t5gk\",\n + \ \"location\": \"westus2\",\n \"name\": \"cliakstestm2t5gk\",\n \"type\": + \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": + \"Succeeded\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n + \ \"kubernetesVersion\": \"1.19.11\",\n \"dnsPrefix\": \"cliaksdns2d3lhhg\",\n + \ \"fqdn\": \"cliaksdns2d3lhhg-73505685.hcp.westus2.azmk8s.io\",\n \"agentPoolProfiles\": + [\n {\n \"name\": \"nodepool1\",\n \"count\": 1,\n \"vmSize\": + \"Standard_DS2_v2\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": + \"Managed\",\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n + \ \"provisioningState\": \"Succeeded\",\n \"powerState\": {\n \"code\": + \"Running\"\n },\n \"orchestratorVersion\": \"1.19.11\",\n \"enableNodePublicIP\": + false,\n \"nodeLabels\": {},\n \"mode\": \"System\",\n \"osType\": + \"Linux\",\n \"nodeImageVersion\": \"AKSUbuntu-1804gen2containerd-2021.05.19\"\n + \ },\n {\n \"name\": \"nodepool2\",\n \"count\": 1,\n + \ \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": + \"Managed\",\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n + \ \"provisioningState\": \"Creating\",\n \"powerState\": {\n \"code\": + \"Running\"\n },\n \"orchestratorVersion\": \"1.19.11\",\n \"enableNodePublicIP\": + false,\n \"tags\": {\n \"key1\": \"value1\"\n },\n \"nodeLabels\": + {\n \"label1\": \"value1\"\n },\n \"mode\": \"User\",\n + \ \"osType\": \"Linux\",\n \"nodeImageVersion\": \"AKSUbuntu-1804gen2containerd-2021.05.19\",\n + \ \"upgradeSettings\": {}\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_acscliapi11_cliakstestm2t5gk_westus2\",\n + \ \"enableRBAC\": true,\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_acscliapi11_cliakstestm2t5gk_westus2/providers/Microsoft.Network/publicIPAddresses/dd451596-7e20-4362-afd1-15a638eeb51e\"\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 },\n \"sku\": {\n \"name\": \"Basic\",\n \"tier\": \"Free\"\n + \ }\n },\n {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstestonue4r\",\n + \ \"location\": \"westus2\",\n \"name\": \"cliakstestonue4r\",\n \"type\": + \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": + \"Succeeded\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n + \ \"kubernetesVersion\": \"1.19.11\",\n \"dnsPrefix\": \"cliakstest-acscliapi11-8a4f68\",\n + \ \"fqdn\": \"cliakstest-acscliapi11-8a4f68-d5a258ab.hcp.westus2.azmk8s.io\",\n + \ \"agentPoolProfiles\": [\n {\n \"name\": \"c72rp2\",\n \"count\": + 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\": 128,\n + \ \"osDiskType\": \"Managed\",\n \"maxPods\": 110,\n \"type\": + \"VirtualMachineScaleSets\",\n \"provisioningState\": \"Succeeded\",\n + \ \"powerState\": {\n \"code\": \"Running\"\n },\n \"orchestratorVersion\": + \"1.19.11\",\n \"enableNodePublicIP\": false,\n \"nodeLabels\": + {},\n \"mode\": \"System\",\n \"osType\": \"Linux\",\n \"nodeImageVersion\": + \"AKSUbuntu-1804gen2containerd-2021.05.19\"\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_acscliapi11_cliakstestonue4r_westus2\",\n + \ \"enableRBAC\": true,\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_acscliapi11_cliakstestonue4r_westus2/providers/Microsoft.Network/publicIPAddresses/2177c949-f232-4561-add5-b7e5fb2f225c\"\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_acscliapi11_cliakstestonue4r_westus2/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cliakstestonue4r-agentpool\",\n + \ \"clientId\":\"00000000-0000-0000-0000-000000000001\",\n \"objectId\":\"00000000-0000-0000-0000-000000000001\"\n + \ }\n }\n },\n \"identity\": {\n \"type\": \"SystemAssigned\",\n + \ \"principalId\":\"00000000-0000-0000-0000-000000000001\",\n \"tenantId\": + \"657a2bb7-9a58-4be7-87f3-643bb3b7cbb5\"\n },\n \"sku\": {\n \"name\": + \"Basic\",\n \"tier\": \"Free\"\n }\n },\n {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstesttfxhjj\",\n + \ \"location\": \"westus2\",\n \"name\": \"cliakstesttfxhjj\",\n \"type\": + \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": + \"Succeeded\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n + \ \"kubernetesVersion\": \"1.19.11\",\n \"dnsPrefix\": \"cliakstest-acscliapi11-8a4f68\",\n + \ \"fqdn\": \"cliakstest-acscliapi11-8a4f68-ba86e7da.hcp.westus2.azmk8s.io\",\n + \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n + \ \"count\": 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\": + 128,\n \"osDiskType\": \"Managed\",\n \"vnetSubnetID\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.Network/virtualNetworks/clivnetdl3fzvzdr/subnets/clisubnetj3da4wr\",\n + \ \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n + \ \"provisioningState\": \"Succeeded\",\n \"powerState\": {\n \"code\": + \"Running\"\n },\n \"orchestratorVersion\": \"1.19.11\",\n \"enableNodePublicIP\": + false,\n \"nodeLabels\": {},\n \"mode\": \"System\",\n \"osType\": + \"Linux\",\n \"nodeImageVersion\": \"AKSUbuntu-1804gen2containerd-2021.05.19\"\n + \ }\n ],\n \"servicePrincipalProfile\": {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n + \ },\n \"nodeResourceGroup\": \"MC_acscliapi11_cliakstesttfxhjj_westus2\",\n + \ \"enableRBAC\": true,\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_acscliapi11_cliakstesttfxhjj_westus2/providers/Microsoft.Network/publicIPAddresses/0a8b71e3-6351-4655-a18d-5107cd9b75f2\"\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_acscliapi11_cliakstesttfxhjj_westus2/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cliakstesttfxhjj-agentpool\",\n + \ \"clientId\":\"00000000-0000-0000-0000-000000000001\",\n \"objectId\":\"00000000-0000-0000-0000-000000000001\"\n + \ }\n }\n },\n \"identity\": {\n \"type\": \"SystemAssigned\",\n + \ \"principalId\":\"00000000-0000-0000-0000-000000000001\",\n \"tenantId\": + \"657a2bb7-9a58-4be7-87f3-643bb3b7cbb5\"\n },\n \"sku\": {\n \"name\": + \"Basic\",\n \"tier\": \"Free\"\n }\n }\n ]\n }" + headers: + cache-control: + - no-cache + content-length: + - '22844' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:29:01 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks show + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000001?api-version=2020-11-01 + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000001\",\n + \ \"location\": \"westus2\",\n \"name\": \"cliakstest000001\",\n \"type\": + \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": + \"Succeeded\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": + \"1.19.11\",\n \"dnsPrefix\": \"cliaksdns000002\",\n \"fqdn\": \"cliaksdns000002-90247c4b.hcp.westus2.azmk8s.io\",\n + \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": + 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": + \"Managed\",\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n + \ \"provisioningState\": \"Succeeded\",\n \"powerState\": {\n \"code\": + \"Running\"\n },\n \"orchestratorVersion\": \"1.19.11\",\n \"enableNodePublicIP\": + false,\n \"nodeLabels\": {},\n \"mode\": \"System\",\n \"osType\": + \"Linux\",\n \"nodeImageVersion\": \"AKSUbuntu-1804gen2containerd-2021.05.19\"\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_acscliapi11_cliakstest000001_westus2\",\n \"enableRBAC\": true,\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_acscliapi11_cliakstest000001_westus2/providers/Microsoft.Network/publicIPAddresses/c351f80b-b618-4c87-b9a8-55db2d6fc817\"\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 },\n \"sku\": {\n \"name\": \"Basic\",\n \"tier\": \"Free\"\n + \ }\n }" + headers: + cache-control: + - no-cache + content-length: + - '2818' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:29:02 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks get-credentials + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g -n --file + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000001/listClusterUserCredential?api-version=2020-11-01 + response: + body: + string: "{\n \"kubeconfigs\": [\n {\n \"name\": \"clusterUser\",\n \"value\": + \"YXBpVmVyc2lvbjogdjEKY2x1c3RlcnM6Ci0gY2x1c3RlcjoKICAgIGNlcnRpZmljYXRlLWF1dGhvcml0eS1kYXRhOiBMUzB0TFMxQ1JVZEpUaUJEUlZKVVNVWkpRMEZVUlMwdExTMHRDazFKU1VVMlJFTkRRWFJEWjBGM1NVSkJaMGxSUVdGS1lrUnROSE1yT1M5aFRVUnJVbWxPU0RSWGFrRk9RbWRyY1docmFVYzVkekJDUVZGelJrRkVRVTRLVFZGemQwTlJXVVJXVVZGRVJYZEthbGxVUVdkR2R6QjVUVlJCTWsxVVFYZFBWRVV5VFVSYVlVZEJPSGxOUkZWNFRVUlplRTFFUVRWTmFsbDNUbXh2ZHdwRVZFVk1UVUZyUjBFeFZVVkJlRTFEV1RKRmQyZG5TV2xOUVRCSFExTnhSMU5KWWpORVVVVkNRVkZWUVVFMFNVTkVkMEYzWjJkSlMwRnZTVU5CVVVSRENubE9iamx4V2tObFoySTNTelV2YTBWUVVrcGhURkk1ZVZWclRHWnpjWEJ3ZDI5elFreE5TSFJLV21weVdqazNTamx6V2pVelNXVlhTMUJGT0ZseFlXb0tVblZXWVZvMFN5dHpOV3RIVUZSM2RreGlWekJ2YURjck5ISXhWVk13VDB4dVZFVXpRVGRHUkVsVGRuRlJaa1pVUVc5c2JHNDFkRGd6Y0M5dlJtbFZOQXBqV1dsNVZFcFNNMGd4UkVGWlZqSlNPRmR4U25VelRtc3phbkZTVGxaVVZVdElRWFZFYURWQk1VZHJOMVUwVTJWbFRUazFPWGxoVWtsRk5scGtVSGQ0Q21NdmRqaElkVWRWZFVGM1NISTRlVEkxVnpGaFVrNUJjMDh3TlU5SGIxUjFjbkZCV2tWQlRuRjRkbTUxWkRSVGVDdHRkRnBVYkVrMVFtdFRlVEJFV21vS1dGTlhOVGhYUlRFNWVYY3pURlJ0YTI1T05tSmpkamwxUnpCRE1GcEpTV3BJY1RsaGRVVjVaazlOVlZCdGRDdElhbEJXUzNkS1ltbE1iRk4yUkZwdmFRbzRlVEV3YVZwSk9FVjRTVlJPTmxGeGJFcDViMWg1WTNwUFpHaE5XbkUwV0VkSFIwaHBSRzU2Vm1sNk5rUlRRemxyZGtkSlFXeGlaVkpOUzJvek5Ua3JDbFZITlRaR1pGTlJPRlYxYUV0TVpFMXZlbk01TDB4RlVXSlZXVVp4Y0daNmNUbDBVRkpLUTA0MWF6VlphbWRqTUhsNVRVbDJRa3Q1VmxoUkt6Tm5SREFLYkV4U2QyZzBRa1pvVTFkc2N6WkljWEZJVDJ0VFNWQmxUa1l6TmtscGJuUnRaM2tyVDJoUGExSkhia1ZGZG1ab1l6UkxNVlpYZFZOcE9WQlBha05VTXdweWVUVndZbE5yYVhwMU5FOW9RMEkzV21aWFpYTkVWRVpWUlNzeFJ5OXVNQzkwVUZGUmJGQXhiVlZ1SzJ4cGVHTlVkRGRVVTFObk5tdDVXbmhNVG1zMkNrNUxjREp0UmtsVU1XMXhUMGxyYVd0bE1XZ3ZORE5PYmtoWk1tUk1NbUpqUTJ4aWVpdHJjMmRTWkRKUVVIcENMMVE1Ym1JNWFVcGFNR2hRTVdKMFVsRUtXSGw1YTA5cE0wcG9kbHBVWVdOaFlURlhSRU50TjNGc1dGTkhXRkF4V21jMVJsUXpUeXRQT1V4UlNVUkJVVUZDYnpCSmQxRkVRVTlDWjA1V1NGRTRRZ3BCWmpoRlFrRk5RMEZ4VVhkRWQxbEVWbEl3VkVGUlNDOUNRVlYzUVhkRlFpOTZRV1JDWjA1V1NGRTBSVVpuVVZWM2EzQnVOWGxWYUZCcldYb3dkVEpzQ210Q2JEaGFiVUZhVm5OcmQwUlJXVXBMYjFwSmFIWmpUa0ZSUlV4Q1VVRkVaMmRKUWtGQldWZ3phV2R5YkUxcE5sUmtWRGREUWtGWFJsUjJRMHRZT0cwS1pEaDViMEpMV0hwNlVHOUdiVVU1TWxkTVQxZGtVbVZFYkhCeGFGSXJWREpDYW1SRFdtaEdSazE1ZVRWbWMwOWtOemRLWjNaT00xWTBiMWRqTTBWVlJ3bzVSVmRNV2psS1IzazJkVXBoU1dZNFJHUkxXakJWVGtOelN6UnpjR2RFTjNVMFVHNVNRVGd6VFRoWFIwRndORFJpWTJSWllYbFpZMjlWYkM4M09GaE9Da3RKZEdsb2JVWmlaa3BPWWtoM1kxbG9iVEZvVDBKRVpIQnhlbmxCYURSalkwczNSbTl5VXpGelZqVk5hMlUzV0ZSRlNWbHViVEo2YTFsTmNEaEZNemNLWnpnMVVuTjFRamgzWm5Wa2NUZHVaVnBVTWpVck9FRlhibUY1ZWl0RlJVRklUbXB4YUZsSk0wcG1ka0pPTjBjMldqVlNOVk5CUTNCa1YyOVZiREkwVVFwTVQwSkRaRmRhUjIweEwxQm9heXR0YjJsbU5tRk1WRlJMTjA4MEwzZ3ZhVkpyVURkdVRUWlRSMVoyTkVKbmJrMWhkSEJyU0VWbVYySm5NWFZvVW05MkNrMWFUM0l4UlVabGMwMTJXSEZvYkRsR09ISXlMMkZhWTBWaGRrNXdOeTlRVUhBd1dtY3pWV3RvTVZCeGJTdHhVbk5yTkc0MmNGRlJWVTFzVjBSVU5IUUtiRXBZV2xZeWJtOU9VM1ozY1VkblZqZzFTVXh5Y2xoT2NITnRiMU54YXpad2RUWmhTSGxzVTJSdGJpOXJVVXd5TlVKVE5qZ3lhbEl5UkZwTFFXNHphd3BoVjBka1oyTkpMMkpxWms4clVtZG9ZV3NyUTFsWVVsRjBSSEF5YlZwcU16RnpaVmxQZWt4bFUxaDBZMmd2YTBkMllsWm5UM1o0ZFhSd1pIWjROV0ZTQ25KcWNuWlFaRTAyUTNWVWNGaHVSSFJDTURodVlWZEJRVnBQYVhCS2RVTk5kbEZoWms5YWVYaEVaMk5KTjFGM2EzRnhTSFJ0YTBGdVNrczRUWGhwZG5FS2FqbFZWbTFITWxKMFMyNTNLMDVhWTNOcWNHdDVlRFJrWVRKUVREQTNlVXBsWm5sWE0weDVSMnhZWW5WS2NtSTVNbkpOZURkYWNIQTROblk0TVhwdFJ3cDVOSFZYWm5wR0wwWjZWVkZNYm5jdkNpMHRMUzB0UlU1RUlFTkZVbFJKUmtsRFFWUkZMUzB0TFMwSwogICAgc2VydmVyOiBodHRwczovL2NsaWFrc2Ruc2V2Z2FjeWstOTAyNDdjNGIuaGNwLndlc3R1czIuYXptazhzLmlvOjQ0MwogIG5hbWU6IGNsaWFrc3Rlc3RrbDNhcGQKY29udGV4dHM6Ci0gY29udGV4dDoKICAgIGNsdXN0ZXI6IGNsaWFrc3Rlc3RrbDNhcGQKICAgIHVzZXI6IGNsdXN0ZXJVc2VyX2Fjc2NsaWFwaTExX2NsaWFrc3Rlc3RrbDNhcGQKICBuYW1lOiBjbGlha3N0ZXN0a2wzYXBkCmN1cnJlbnQtY29udGV4dDogY2xpYWtzdGVzdGtsM2FwZApraW5kOiBDb25maWcKcHJlZmVyZW5jZXM6IHt9CnVzZXJzOgotIG5hbWU6IGNsdXN0ZXJVc2VyX2Fjc2NsaWFwaTExX2NsaWFrc3Rlc3RrbDNhcGQKICB1c2VyOgogICAgY2xpZW50LWNlcnRpZmljYXRlLWRhdGE6IExTMHRMUzFDUlVkSlRpQkRSVkpVU1VaSlEwRlVSUzB0TFMwdENrMUpTVVpJYWtORFFYZGhaMEYzU1VKQlowbFNRVW8xU0dkaE5EZzNhalp5TkdvNWNFeEtSa1UyTjBWM1JGRlpTa3R2V2tsb2RtTk9RVkZGVEVKUlFYY0tSRlJGVEUxQmEwZEJNVlZGUVhoTlExa3lSWGRJYUdOT1RXcEZkMDVxUlhkTlJHdDRUbXBCTWxkb1kwNU5hazEzVG1wRmQwMUVhM2xPYWtFeVYycEJkd3BOVW1OM1JsRlpSRlpSVVV0RmR6VjZaVmhPTUZwWE1EWmlWMFo2WkVkV2VXTjZSVlpOUWsxSFFURlZSVUY0VFUxaVYwWjZaRWRXZVZreWVIQmFWelV3Q2sxSlNVTkpha0ZPUW1kcmNXaHJhVWM1ZHpCQ1FWRkZSa0ZCVDBOQlp6aEJUVWxKUTBOblMwTkJaMFZCYzFRME1sUkpObkJJWlhsWVprMUlRVkl6UmtzS1RYTnNkRGRQUzBWS2VrUlpiMHRoTDJ4MGFFSnlhRlpuUzNONFZrcEpTVmQ1ZWpKS1ZFRlViM2t2VkZSNVkzaG9aRW81ZERCUlZYUjVXWEZPY0VzM2FRcFlZa3QwUTJodU9FbE1WbE5RVGpSblkxRkRRa2g1Ym5GcmNWcHllR1k1Y2taaE1FMVNWVlZIUkU4cmJFdEhjRWsyVFZkUk5FdFhRMHhpZVRJeGNuTm9DbVZwZVhkaVlYRm1VWEV2Y2pseVpYZ3hjM012YlVGT1dHNXJWVWxRVGxkU1FrbE1kak5JY1hkYVpIY3laV2gxTTJzNGVYRkJLMUEwYmpoTFVpdFZLMVFLUWpjd01UUlNXVFJsVlRSVmRHcDRXak5yTHpWNlEwVkpiaXRZVHk5M2RqaHFXSE4zTDI1c1RtSktMekJVYTJ0elpIbzBaMmhuY1VWeVpERnpVblZsVUFwbVFreHhaVWxXWmxaelZUaEtjVFo0VTFwVVYybzVNVzVLYjJWcU5VcE1hVEJzTWxOWVV6QnFMMUU1YTFwYWJYcE5Uemt6UzFGSVZFTjZaR281WXk4dkNsWmpNa1IzYm5aUFRWbFFUMkZ1SzI1NFQweDRiR0V6VEhsYVdsWlFTbVExWkRCbFEwbFNjemxSV0VNeU16WjBlREJEVURkbWRXTk5TRGM0YURKUWRrb0tOR0UxTTFWYWRIRm9UVUY2WVROM04wRkdNMHRQVm05TlRFZDBSVFZKT1dVM2N6UkpNRTlCWjBaSlRuWlRlVlU1YkRKcFlubDVhRk5RUzNCWWNFTlViQXAxVjIxVFUycHFiRXB4TjFORFdrZG9RbTFJY1c1RFdIQjJNSEpoYUhkclVsVTFlRk5RUXpCSWQwRkRielY2VUZwUFRFMVhWa04zYkZOVVEyVnZRMVJ6Q2sxTE16bFhRMHcwVlU5RlJrTnBRVGRCTkdaU1IwVk1WVFJwZEdnclJqZFpUbEZxT0hwcU1rMVpaMDVzVG5kMFJtb3JNRlpPYm10S01VTlJiRGd5VnpBS1UwNWtZVlYzTW1ocmEyZGxiVnBRVGtSMWNGQjJNVVo1YzFvM1dsRmhhbGR3YldsS2JtdEJhMlpzTkRGcFIwbDZMMDlzZWpoc2NteEVNMlJ1VkVKQldBcHpZalpJZDJaS0swOUtaSGh2TjFscFIxQmljM2MyTUVOQmQwVkJRV0ZPVjAxR1VYZEVaMWxFVmxJd1VFRlJTQzlDUVZGRVFXZFhaMDFDVFVkQk1WVmtDa3BSVVUxTlFXOUhRME56UjBGUlZVWkNkMDFEVFVGM1IwRXhWV1JGZDBWQ0wzZFJRMDFCUVhkSWQxbEVWbEl3YWtKQ1ozZEdiMEZWZDJ0d2JqVjVWV2dLVUd0WmVqQjFNbXhyUW13NFdtMUJXbFp6YTNkRVVWbEtTMjlhU1doMlkwNUJVVVZNUWxGQlJHZG5TVUpCUTNBMWJtVktiMlZpT0Rad1dtZDJUemxoU1FwalYwTjNWMXB0VUZkS0syMHpWWGhsWkdRd1dtaENTbkJrV2toNk1IbFRjVGh0YWtoRFMxWlFhMDVwVkVGclIycG9ZazVFZUZGeWJqSnhVWEJtU1U1dkNrRkhhVUZCTWprMVMyWnpNbG8yWTBGVFJTdG9ObVZWYlRSMVRrZHFWRWxuZW1zeWFVWnhTRUpxWmtWdE5HOXZWM2t5V1VsT01HRjNaalY2VjA1NFREQUtTRlJrVGk5SE1tVXpaVzVyYUZWdE1uQlJiM0F4WkVsSmVUZ3dNRFpEZGt0NWRGRk5Zbll4UTNscFlsWlhNRkl4TDNVME0wTkZRMkpRYzJZdlFXcHRWd3BVVmtwMldFOHZPV1UyVlcxMU9YWm5jVGx3Tm1GM2NGQkZUVVIwYTJFemRtbGljMjFpTmsxb1FWSkVTa3hoZURWTVJVRjZjMk1yY2t0NlYyWnFNVzgyQ2toWlpuQlBlRFp2UTFOaVVIYzBTRmxwWkd4TFdsSXdZMDlUVGtjMmFFRmFXa2hCTDJwc05HaEVTREJsUVdGblIwdEVlWGcxZDJkaU4xTllVMGhqSzFZS0x6QnllRzFqVW5FM1NFOWpURE5ZU25Sa2RFUkdTRWQzWVdwblQwSm9aa2g0TlhGaFkzUnpNM04xY2pkYWJUUnJWa3RCZEVWdk9HRkNhMHBOWkM5ek5RcExWVmgwYkhabGFHdEdZbE54TTB0VlRFSlNaa2R2V2tkV1R5dE9UMVZLVDJWcVpuUk5NVWxUVmxGcWIxZzFNMnBHTUU5TmJVUnVOWGRHYm1Wd2RIUkhDbFJtVFhOT1pVWm9NWGhPV0c1c1oxSm1XREoyU1d4bFJYcDJhREZVYmtwV2JVeGphbGcyU25OTGFVVnJVSEpRVFV4U2FXWlZkVGQ2Y2taUVlYUk1VbG9LVWl0eWJVUlRkV0ZwVkVwMGJDdERMeTloUkVOemJVZEtUM1E1TXpsRmRWRnZNVGx0VVdsTGVIbGpkMmx5ZW5WalduQm5NR053Y25FclNISnVWM0ZLS3dwclRXaDFZVmhxWmxNMk5uWk5WekVyV2poa1V6RkVLMGx1YUU4ck5HZFVaME5HZEVGNFFUQkJiVk5QWTNabmFUSkRURlp6VEhOU2F6WlNja2xMTjJkeENsbHlZMlFyV0VrMVdFWjVTMWhJVEUxM1QxbHhWSEJpVFFvdExTMHRMVVZPUkNCRFJWSlVTVVpKUTBGVVJTMHRMUzB0Q2c9PQogICAgY2xpZW50LWtleS1kYXRhOiBMUzB0TFMxQ1JVZEpUaUJTVTBFZ1VGSkpWa0ZVUlNCTFJWa3RMUzB0TFFwTlNVbEtTbmRKUWtGQlMwTkJaMFZCYzFRME1sUkpObkJJWlhsWVprMUlRVkl6Umt0TmMyeDBOMDlMUlVwNlJGbHZTMkV2YkhSb1FuSm9WbWRMYzNoV0NrcEpTVmQ1ZWpKS1ZFRlViM2t2VkZSNVkzaG9aRW81ZERCUlZYUjVXWEZPY0VzM2FWaGlTM1JEYUc0NFNVeFdVMUJPTkdkalVVTkNTSGx1Y1d0eFduSUtlR1k1Y2taaE1FMVNWVlZIUkU4cmJFdEhjRWsyVFZkUk5FdFhRMHhpZVRJeGNuTm9aV2w1ZDJKaGNXWlJjUzl5T1hKbGVERnpjeTl0UVU1WWJtdFZTUXBRVGxkU1FrbE1kak5JY1hkYVpIY3laV2gxTTJzNGVYRkJLMUEwYmpoTFVpdFZLMVJDTnpBeE5GSlpOR1ZWTkZWMGFuaGFNMnN2TlhwRFJVbHVLMWhQQ2k5M2RqaHFXSE4zTDI1c1RtSktMekJVYTJ0elpIbzBaMmhuY1VWeVpERnpVblZsVUdaQ1RIRmxTVlptVm5OVk9FcHhObmhUV2xSWGFqa3hia3B2WldvS05VcE1hVEJzTWxOWVV6QnFMMUU1YTFwYWJYcE5Uemt6UzFGSVZFTjZaR281WXk4dlZtTXlSSGR1ZGs5TldWQlBZVzRyYm5oUFRIaHNZVE5NZVZwYVZncFFTbVExWkRCbFEwbFNjemxSV0VNeU16WjBlREJEVURkbWRXTk5TRGM0YURKUWRrbzBZVFV6VlZwMGNXaE5RWHBoTTNjM1FVWXpTMDlXYjAxTVIzUkZDalZKT1dVM2N6UkpNRTlCWjBaSlRuWlRlVlU1YkRKcFlubDVhRk5RUzNCWWNFTlViSFZYYlZOVGFtcHNTbkUzVTBOYVIyaENiVWh4YmtOWWNIWXdjbUVLYUhkclVsVTFlRk5RUXpCSWQwRkRielY2VUZwUFRFMVhWa04zYkZOVVEyVnZRMVJ6VFVzek9WZERURFJWVDBWR1EybEJOMEUwWmxKSFJVeFZOR2wwYUFvclJqZFpUbEZxT0hwcU1rMVpaMDVzVG5kMFJtb3JNRlpPYm10S01VTlJiRGd5VnpCVFRtUmhWWGN5YUd0cloyVnRXbEJPUkhWd1VIWXhSbmx6V2pkYUNsRmhhbGR3YldsS2JtdEJhMlpzTkRGcFIwbDZMMDlzZWpoc2NteEVNMlJ1VkVKQldITmlOa2gzWmtvclQwcGtlRzgzV1dsSFVHSnpkell3UTBGM1JVRUtRVkZMUTBGblFWRkRhM2hLY3pKT01IUk9UMnN3TjJZNUwza3JlVEYxTTJVd1ZWVmhZM1EwTXpnM09VVXZTRGc1VEU5M1QwVXpNMnhHZFhwUVMyUjFRd3BEVEU4d2RWbDRkRW81VkhWQkwzVm9VR1pIT1RKdk9HeENlbkYyVG1oMFdUTmhPRzF0Y1VrNWNHWkRWSEZZVFVkRFptOVViVmxKU2xscGMycDRRWGh1Q2xCSE4yMTJjekZaYTJZelZrdDNVVWxuU2tncldqWlRORmhEYTFWalNGUnlRamxVZGpaU1NGZDFlSE5oUlVSNlMwZG5kRlUxU0ZKNFdsQmhRbnBSVHlzS1JsWkNabVEwVm5GdFdsZE5hRFp2WmxCblRtcEhaVEo0TDFaVFYwUTNZVkJxZWpRdlNrTlVWblJVUzBFemQxbENVbXRCVFd0SVUybFBhMmcxTWxaekt3cDJSMWRaV0dkV2VrUkZXVGcyUmpsNlNXZExUalZaYzBkQk4wUkdhbk5UZG1OWmNVZFNUVlpFZW5VeE1tUnJWRkZ6YWpORGFTdFlNa3R4UkdsWWRIUXZDa2RVVnpOcmFYZEpNR1JqV1hBMlRrZEVPR013Y21GbFlrOUdObTlGTmxZd1ZVWjRZV3hDTDFGeVJ6ZHJaRzlxSzNkNFMwSXhVVTAzZEZRck5XSlZNbklLWVRjd1RqUjFPRWN2TW5SR2FWUm5hM2N5YXpsUWRWbDVOM2hhTURKck5GSXlSblpXVUc5dlVFZzRTRzF3WlhCdlUzVlliVWxpVG1nMVFXWnpURzFIU1FvMGJsSlRhVXBLVEhwNVdIZ3dRWHBGUjBVMVdYUldabUp0YkVwUlVXNWtRVEF6U1dkVU5DdFNUM3BVVGxCc0wzb3ZWbkJvTlU1VlpteENPWGt3ZEZOaUNsY3ZkVmgyY1RoaFN6RjJXRzVPTUZaRmJVMW5ObnBYYldGRE5rOU9kbU5NUlhkUVZrUkdjakI0TkROa05tTm9SM1ZDVUdNd2QwOXFZVXA2T0VWcU4zTUthakEzTkhVM2VXZ3ZORFpaVW5kc2FtRjRZM2hrTlZWSWJrMDJlV2g2YUhOcmIzbFJOa3M1ZURsMVVFUTBlRlpRWm1sWFNDOW9iVWRzYVhkVksyUkJhQXBtWkRsUFFYb3ZRazVuYWsxbGJWaFhWa2RFV0VWUVpWQnNUbGxsTjNCTFVtcHhjMHg0ZURWMVdHZFJiVll2WWxwUlVVdERRVkZGUVhwdmEyMUpZMDQzQ2pkSlEzbHdXblIzUWxseFRpdHZUSEF6TWxCclZrMURSVWhqTXk5T1ZtYzFVVFZDYTIxMlNWRTNTRFZYZEhSeFlYazJUMnN2V1VOMGVFMHphMGREYkRnS1VuRnZWVkJUYlcxdVZqQllOakV4UnpWVmJrWTBVVVZXUVVKMFpIQmFZVzFXTWtVNFNVdGxaRzlZV1c1NVZTOHhRVUpWUTNsNmNXaEpTSFJsU2tSdWVncFVhRGg2Um5OSVR6bExNa0pwVHpReVdteEJWV3hFTmtWSmNYRm1ZMFJ4ZEZadVpIUTJOemsyUVdSMmJTc3ljMkpJZVRkUGNUSlhZbXh1SzNobVZHSllDbTUwTlhGNU1HRm1NMFZwU0RSaVZrd3pZMUJVVVZReFdGQlVWVlJ3TUdsUFVUUXpRemxEWkVkWmJXSTBZbFF3ZDBSS05tWnhRVTA1ZVdNNFkzcHRZWElLZDJseFlYUlNiVGt3YlRkMlJtdzJOME5qWmxKS2NDOW1SbUZRUVM5SFZIZzJTMGhZZEV4VVNXcG9Xa1p1ZG5KVldXcElUbTh5ZFRRNVJVazNZVXBGZGdvdllsTnhOMVZ6VWtaTU1GSllVVXREUVZGRlFUSTNSV0pHYURSWWJDOXZjSGx3TVZOR1dEWm5iamhPY1N0eVV6SmtkbXh2UVZGdk1rZzNXblZ0YkVFMENqWXhNeXN3VjBWRU9ERldZMEp6SzFOdFExVXhSbkZSWTNaSVZpdFRlbGRsWlZOdlJuVktlVVIyY0hwc1pFVTBXWGwzYW5kdUswdEZkR013ZVZwV1luZ0tNR2N4ZWpSMWRFZG9hbTFrVWxaSlZuZE9WR3hFTTNwdVdUVkxiWGhDZFRkd1J5OUJRamRZZURKeFYwRkRVR2M0WTNWR1JuVjBjME0wVVZKV1ZuWjBSUXBpYVVKMmRETlVNVmRZWW5KTllXVjNSWFZMTXpWMVJFeGtiMjlZZG5KblpXZDFWVFJFUWk5S1NEVTJNRE5xUjI5amVUUnRMMXBqZEhnelMyOVJUekIwQ2tOVFlYSkNVUzk0YjBobk4zTk1SbU5EVVhBeVdubGlMME4xYTFkT1UwdzBNbmhaWjJGWVMyazNkRzVqUjBwMFVURjNjM1JqTnpKS1kxSTRVM3BWZEZVS1R6QnNPREJpVTFNemNqRXJjRU0xV2t0R2RVZHZlRzVvTUZsSWFVOU1URnA0YVRsSmJqUnFSMnRSUzBOQlVVSkdVR3N6SzJVNUswMVNkMjFrTlVOTlJ3cGxTa1p3VERSTWFGWnJaM2s0WldoYVdtSnlkVlUwYlM5VlUxZHdibEZhTTJjeFVHNU5hSE0zYzNJeVlVVkJOSGxOVTFWTWVFeDZXbkJEVUhNM1dUTnBDbkpHWkdOdVdWVnlWV3BTTlZoNlpDOU9ZVEpNTW5CdmFVdFpUbFJJTVRoR2VIVjBTRE4yY1hjNFJuQnFZMGREWXpGNksxVjJZV3RKZUVGVlNUSkRiR1VLWkhRd05qTXdTakYzZEhScVlVTkpPSHBTT1haTVVIbzBVa1Z2YVVFMmQxQXJNek5TVWxCT2RUTlBOa1pKUTJWMGNWWnZSVTVQVEU1aVNuYzFWWEJCT1FvNWEwMDBUazlSWld0WmVTdEVjV0V3Tm5CeFVVNTNPR0pNZFdaNGJUQnNTbkpIVVZadE4wbEZVMUp2VmpWcFFrNUVTbU5JZVM5NFFuVkxOM1JyU21aSUNtVldTRWhIYWs1NU55ODNOME5DV25VeGRIWlpkM0U0YmpSNmNrTmFkVzV0VjFOck1sSTNiakIzWlZoRWNVWllNVGRyTm10dVEybFBNRzlsVEhwMVRVZ0tTazkzZUVGdlNVSkJSV3d4Y2xKTU1rOVFiSFZuZFRkdVRDOHhWQzlETW5Zd1IxQkpZbGxNVnpOeWIwdFRhRXhOYXpaemVIa3ZZVmd4V1RjMWJUZExVUXBDYkdWWmNsQkpSemQyZFVaSlREWTNiM1ZHVUV0d1FteFNjMmd5VUZjNVRsVXdVbE52VDA5NlRqVkxaVEJpVm1kNVkzTjBRMWR6ZEdGSFUyMVBNSHBEQ210NE5FMHhiekZIU1hSdVRUaERjRkppVlZsQ05TOXhVME15YjBsdmNtaDZkM0EwT1UxNWJFOTJiSGNyZHpOWGRWWXdUR2RtWmpnNVFsWTBXVEEzYkRRS2JFTm9hMWt2U0UxellWZFlORlJFWml0Q1UycDVSVUZKYlZoamExbGpTV0U1VjNWbGRYazNXV0prTURVMFpYSm9TV1pYYWpKUU1VbFhjMDB3YXpVd1R3b3hlR0U0UmpSU1IxcFdWVlZ4ZHpsbk5WUlpZbGhaT0ZWc1VETjBaMU5JVVRReFIzWkVXbUkyWlRsYVNuVkdNa1pCUjNBMVJqZzVSRkZYVGpGMEt6WlhDaXR1VHpOek9GSlZOVzAwTDFJd01HY3llRFJQV0Rsa2RrWkNLMVZSY1VWRFoyZEZRVXd3ZWpjclR6bFhSbU5WZW1KWFRpOURaRW81YTFGUVRtTmlUa0lLT1VwWGFTdHVMMkpoV25wdlJXOUNSa014UVRoT1kxQnlUbmhOTWtGTWRGUlNXV0pEVFRoR05HRlBSRlpIVlc1VVFrWXJWR05UWlU1NlVtdHBZMEkzZHdwMmJWbGtkRGwxWWxSS05VUjZaVzlWU0RCc1FteFJLMDFQTUZCbFV6QnViM0F6VTJNd1ZFVlpZM1l5TkN0YVZVeDVhVFkxVERCTVZYVmhlVkUyTld4NUNqUjBkWEV2YldOTloyWkxNblZ1VHl0eFVFNHlPWEJaYVdWR1JqSXlRek5GT0ZJMFpVUXlPVTVMVkhOVGNsTmtabHBzVTBKM1YyRkdiVXB3TVZRNWFFRUtkamhIU2l0NWNETnRkU3RoVFVGcU0wSnhaazVqTUVWemNrMVNZeTl4ZURoUVVHdHVaRUpyYmtFclEzWkhiVmMzU2pZMVZrMWFhVXAyVjJOUWVuSnlkd3BzWnpSeVZXdHBSV3ROUW13NE56TmxjME5vT1ZCRFozaFpXalpRVFdkc1RVcE1TVlpITkZsUVRXMWlTSEEwY2tGMVRVUXdObE5PTldoUlBUMEtMUzB0TFMxRlRrUWdVbE5CSUZCU1NWWkJWRVVnUzBWWkxTMHRMUzBLCiAgICB0b2tlbjogNTM3NjBkZTEyZmYzZjU1ZmFjZWI1ZTg5NzZhNzViMGE2ODNjODJmYjE0ODgzZDljMTliNGRjMTQ2ZmU2Mjk4NTI5ZmZmZGY2M2U0OTI4NWM3YmQwODAyY2Y4Nzc4OTZlOWJmNTA0NWM0NDZmOGVmNjMyYTE3MWI4OTBlZmM2NGIK\"\n + \ }\n ]\n }" + headers: + cache-control: + - no-cache + content-length: + - '13056' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:29:02 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks get-credentials + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g -n -f + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000001/listClusterUserCredential?api-version=2020-11-01 + response: + body: + string: "{\n \"kubeconfigs\": [\n {\n \"name\": \"clusterUser\",\n \"value\": + \"YXBpVmVyc2lvbjogdjEKY2x1c3RlcnM6Ci0gY2x1c3RlcjoKICAgIGNlcnRpZmljYXRlLWF1dGhvcml0eS1kYXRhOiBMUzB0TFMxQ1JVZEpUaUJEUlZKVVNVWkpRMEZVUlMwdExTMHRDazFKU1VVMlJFTkRRWFJEWjBGM1NVSkJaMGxSUVdGS1lrUnROSE1yT1M5aFRVUnJVbWxPU0RSWGFrRk9RbWRyY1docmFVYzVkekJDUVZGelJrRkVRVTRLVFZGemQwTlJXVVJXVVZGRVJYZEthbGxVUVdkR2R6QjVUVlJCTWsxVVFYZFBWRVV5VFVSYVlVZEJPSGxOUkZWNFRVUlplRTFFUVRWTmFsbDNUbXh2ZHdwRVZFVk1UVUZyUjBFeFZVVkJlRTFEV1RKRmQyZG5TV2xOUVRCSFExTnhSMU5KWWpORVVVVkNRVkZWUVVFMFNVTkVkMEYzWjJkSlMwRnZTVU5CVVVSRENubE9iamx4V2tObFoySTNTelV2YTBWUVVrcGhURkk1ZVZWclRHWnpjWEJ3ZDI5elFreE5TSFJLV21weVdqazNTamx6V2pVelNXVlhTMUJGT0ZseFlXb0tVblZXWVZvMFN5dHpOV3RIVUZSM2RreGlWekJ2YURjck5ISXhWVk13VDB4dVZFVXpRVGRHUkVsVGRuRlJaa1pVUVc5c2JHNDFkRGd6Y0M5dlJtbFZOQXBqV1dsNVZFcFNNMGd4UkVGWlZqSlNPRmR4U25VelRtc3phbkZTVGxaVVZVdElRWFZFYURWQk1VZHJOMVUwVTJWbFRUazFPWGxoVWtsRk5scGtVSGQ0Q21NdmRqaElkVWRWZFVGM1NISTRlVEkxVnpGaFVrNUJjMDh3TlU5SGIxUjFjbkZCV2tWQlRuRjRkbTUxWkRSVGVDdHRkRnBVYkVrMVFtdFRlVEJFV21vS1dGTlhOVGhYUlRFNWVYY3pURlJ0YTI1T05tSmpkamwxUnpCRE1GcEpTV3BJY1RsaGRVVjVaazlOVlZCdGRDdElhbEJXUzNkS1ltbE1iRk4yUkZwdmFRbzRlVEV3YVZwSk9FVjRTVlJPTmxGeGJFcDViMWg1WTNwUFpHaE5XbkUwV0VkSFIwaHBSRzU2Vm1sNk5rUlRRemxyZGtkSlFXeGlaVkpOUzJvek5Ua3JDbFZITlRaR1pGTlJPRlYxYUV0TVpFMXZlbk01TDB4RlVXSlZXVVp4Y0daNmNUbDBVRkpLUTA0MWF6VlphbWRqTUhsNVRVbDJRa3Q1VmxoUkt6Tm5SREFLYkV4U2QyZzBRa1pvVTFkc2N6WkljWEZJVDJ0VFNWQmxUa1l6TmtscGJuUnRaM2tyVDJoUGExSkhia1ZGZG1ab1l6UkxNVlpYZFZOcE9WQlBha05VTXdweWVUVndZbE5yYVhwMU5FOW9RMEkzV21aWFpYTkVWRVpWUlNzeFJ5OXVNQzkwVUZGUmJGQXhiVlZ1SzJ4cGVHTlVkRGRVVTFObk5tdDVXbmhNVG1zMkNrNUxjREp0UmtsVU1XMXhUMGxyYVd0bE1XZ3ZORE5PYmtoWk1tUk1NbUpqUTJ4aWVpdHJjMmRTWkRKUVVIcENMMVE1Ym1JNWFVcGFNR2hRTVdKMFVsRUtXSGw1YTA5cE0wcG9kbHBVWVdOaFlURlhSRU50TjNGc1dGTkhXRkF4V21jMVJsUXpUeXRQT1V4UlNVUkJVVUZDYnpCSmQxRkVRVTlDWjA1V1NGRTRRZ3BCWmpoRlFrRk5RMEZ4VVhkRWQxbEVWbEl3VkVGUlNDOUNRVlYzUVhkRlFpOTZRV1JDWjA1V1NGRTBSVVpuVVZWM2EzQnVOWGxWYUZCcldYb3dkVEpzQ210Q2JEaGFiVUZhVm5OcmQwUlJXVXBMYjFwSmFIWmpUa0ZSUlV4Q1VVRkVaMmRKUWtGQldWZ3phV2R5YkUxcE5sUmtWRGREUWtGWFJsUjJRMHRZT0cwS1pEaDViMEpMV0hwNlVHOUdiVVU1TWxkTVQxZGtVbVZFYkhCeGFGSXJWREpDYW1SRFdtaEdSazE1ZVRWbWMwOWtOemRLWjNaT00xWTBiMWRqTTBWVlJ3bzVSVmRNV2psS1IzazJkVXBoU1dZNFJHUkxXakJWVGtOelN6UnpjR2RFTjNVMFVHNVNRVGd6VFRoWFIwRndORFJpWTJSWllYbFpZMjlWYkM4M09GaE9Da3RKZEdsb2JVWmlaa3BPWWtoM1kxbG9iVEZvVDBKRVpIQnhlbmxCYURSalkwczNSbTl5VXpGelZqVk5hMlUzV0ZSRlNWbHViVEo2YTFsTmNEaEZNemNLWnpnMVVuTjFRamgzWm5Wa2NUZHVaVnBVTWpVck9FRlhibUY1ZWl0RlJVRklUbXB4YUZsSk0wcG1ka0pPTjBjMldqVlNOVk5CUTNCa1YyOVZiREkwVVFwTVQwSkRaRmRhUjIweEwxQm9heXR0YjJsbU5tRk1WRlJMTjA4MEwzZ3ZhVkpyVURkdVRUWlRSMVoyTkVKbmJrMWhkSEJyU0VWbVYySm5NWFZvVW05MkNrMWFUM0l4UlVabGMwMTJXSEZvYkRsR09ISXlMMkZhWTBWaGRrNXdOeTlRVUhBd1dtY3pWV3RvTVZCeGJTdHhVbk5yTkc0MmNGRlJWVTFzVjBSVU5IUUtiRXBZV2xZeWJtOU9VM1ozY1VkblZqZzFTVXh5Y2xoT2NITnRiMU54YXpad2RUWmhTSGxzVTJSdGJpOXJVVXd5TlVKVE5qZ3lhbEl5UkZwTFFXNHphd3BoVjBka1oyTkpMMkpxWms4clVtZG9ZV3NyUTFsWVVsRjBSSEF5YlZwcU16RnpaVmxQZWt4bFUxaDBZMmd2YTBkMllsWm5UM1o0ZFhSd1pIWjROV0ZTQ25KcWNuWlFaRTAyUTNWVWNGaHVSSFJDTURodVlWZEJRVnBQYVhCS2RVTk5kbEZoWms5YWVYaEVaMk5KTjFGM2EzRnhTSFJ0YTBGdVNrczRUWGhwZG5FS2FqbFZWbTFITWxKMFMyNTNLMDVhWTNOcWNHdDVlRFJrWVRKUVREQTNlVXBsWm5sWE0weDVSMnhZWW5WS2NtSTVNbkpOZURkYWNIQTROblk0TVhwdFJ3cDVOSFZYWm5wR0wwWjZWVkZNYm5jdkNpMHRMUzB0UlU1RUlFTkZVbFJKUmtsRFFWUkZMUzB0TFMwSwogICAgc2VydmVyOiBodHRwczovL2NsaWFrc2Ruc2V2Z2FjeWstOTAyNDdjNGIuaGNwLndlc3R1czIuYXptazhzLmlvOjQ0MwogIG5hbWU6IGNsaWFrc3Rlc3RrbDNhcGQKY29udGV4dHM6Ci0gY29udGV4dDoKICAgIGNsdXN0ZXI6IGNsaWFrc3Rlc3RrbDNhcGQKICAgIHVzZXI6IGNsdXN0ZXJVc2VyX2Fjc2NsaWFwaTExX2NsaWFrc3Rlc3RrbDNhcGQKICBuYW1lOiBjbGlha3N0ZXN0a2wzYXBkCmN1cnJlbnQtY29udGV4dDogY2xpYWtzdGVzdGtsM2FwZApraW5kOiBDb25maWcKcHJlZmVyZW5jZXM6IHt9CnVzZXJzOgotIG5hbWU6IGNsdXN0ZXJVc2VyX2Fjc2NsaWFwaTExX2NsaWFrc3Rlc3RrbDNhcGQKICB1c2VyOgogICAgY2xpZW50LWNlcnRpZmljYXRlLWRhdGE6IExTMHRMUzFDUlVkSlRpQkRSVkpVU1VaSlEwRlVSUzB0TFMwdENrMUpTVVpJYWtORFFYZGhaMEYzU1VKQlowbFNRVW8xU0dkaE5EZzNhalp5TkdvNWNFeEtSa1UyTjBWM1JGRlpTa3R2V2tsb2RtTk9RVkZGVEVKUlFYY0tSRlJGVEUxQmEwZEJNVlZGUVhoTlExa3lSWGRJYUdOT1RXcEZkMDVxUlhkTlJHdDRUbXBCTWxkb1kwNU5hazEzVG1wRmQwMUVhM2xPYWtFeVYycEJkd3BOVW1OM1JsRlpSRlpSVVV0RmR6VjZaVmhPTUZwWE1EWmlWMFo2WkVkV2VXTjZSVlpOUWsxSFFURlZSVUY0VFUxaVYwWjZaRWRXZVZreWVIQmFWelV3Q2sxSlNVTkpha0ZPUW1kcmNXaHJhVWM1ZHpCQ1FWRkZSa0ZCVDBOQlp6aEJUVWxKUTBOblMwTkJaMFZCYzFRME1sUkpObkJJWlhsWVprMUlRVkl6UmtzS1RYTnNkRGRQUzBWS2VrUlpiMHRoTDJ4MGFFSnlhRlpuUzNONFZrcEpTVmQ1ZWpKS1ZFRlViM2t2VkZSNVkzaG9aRW81ZERCUlZYUjVXWEZPY0VzM2FRcFlZa3QwUTJodU9FbE1WbE5RVGpSblkxRkRRa2g1Ym5GcmNWcHllR1k1Y2taaE1FMVNWVlZIUkU4cmJFdEhjRWsyVFZkUk5FdFhRMHhpZVRJeGNuTm9DbVZwZVhkaVlYRm1VWEV2Y2pseVpYZ3hjM012YlVGT1dHNXJWVWxRVGxkU1FrbE1kak5JY1hkYVpIY3laV2gxTTJzNGVYRkJLMUEwYmpoTFVpdFZLMVFLUWpjd01UUlNXVFJsVlRSVmRHcDRXak5yTHpWNlEwVkpiaXRZVHk5M2RqaHFXSE4zTDI1c1RtSktMekJVYTJ0elpIbzBaMmhuY1VWeVpERnpVblZsVUFwbVFreHhaVWxXWmxaelZUaEtjVFo0VTFwVVYybzVNVzVLYjJWcU5VcE1hVEJzTWxOWVV6QnFMMUU1YTFwYWJYcE5Uemt6UzFGSVZFTjZaR281WXk4dkNsWmpNa1IzYm5aUFRWbFFUMkZ1SzI1NFQweDRiR0V6VEhsYVdsWlFTbVExWkRCbFEwbFNjemxSV0VNeU16WjBlREJEVURkbWRXTk5TRGM0YURKUWRrb0tOR0UxTTFWYWRIRm9UVUY2WVROM04wRkdNMHRQVm05TlRFZDBSVFZKT1dVM2N6UkpNRTlCWjBaSlRuWlRlVlU1YkRKcFlubDVhRk5RUzNCWWNFTlViQXAxVjIxVFUycHFiRXB4TjFORFdrZG9RbTFJY1c1RFdIQjJNSEpoYUhkclVsVTFlRk5RUXpCSWQwRkRielY2VUZwUFRFMVhWa04zYkZOVVEyVnZRMVJ6Q2sxTE16bFhRMHcwVlU5RlJrTnBRVGRCTkdaU1IwVk1WVFJwZEdnclJqZFpUbEZxT0hwcU1rMVpaMDVzVG5kMFJtb3JNRlpPYm10S01VTlJiRGd5VnpBS1UwNWtZVlYzTW1ocmEyZGxiVnBRVGtSMWNGQjJNVVo1YzFvM1dsRmhhbGR3YldsS2JtdEJhMlpzTkRGcFIwbDZMMDlzZWpoc2NteEVNMlJ1VkVKQldBcHpZalpJZDJaS0swOUtaSGh2TjFscFIxQmljM2MyTUVOQmQwVkJRV0ZPVjAxR1VYZEVaMWxFVmxJd1VFRlJTQzlDUVZGRVFXZFhaMDFDVFVkQk1WVmtDa3BSVVUxTlFXOUhRME56UjBGUlZVWkNkMDFEVFVGM1IwRXhWV1JGZDBWQ0wzZFJRMDFCUVhkSWQxbEVWbEl3YWtKQ1ozZEdiMEZWZDJ0d2JqVjVWV2dLVUd0WmVqQjFNbXhyUW13NFdtMUJXbFp6YTNkRVVWbEtTMjlhU1doMlkwNUJVVVZNUWxGQlJHZG5TVUpCUTNBMWJtVktiMlZpT0Rad1dtZDJUemxoU1FwalYwTjNWMXB0VUZkS0syMHpWWGhsWkdRd1dtaENTbkJrV2toNk1IbFRjVGh0YWtoRFMxWlFhMDVwVkVGclIycG9ZazVFZUZGeWJqSnhVWEJtU1U1dkNrRkhhVUZCTWprMVMyWnpNbG8yWTBGVFJTdG9ObVZWYlRSMVRrZHFWRWxuZW1zeWFVWnhTRUpxWmtWdE5HOXZWM2t5V1VsT01HRjNaalY2VjA1NFREQUtTRlJrVGk5SE1tVXpaVzVyYUZWdE1uQlJiM0F4WkVsSmVUZ3dNRFpEZGt0NWRGRk5Zbll4UTNscFlsWlhNRkl4TDNVME0wTkZRMkpRYzJZdlFXcHRWd3BVVmtwMldFOHZPV1UyVlcxMU9YWm5jVGx3Tm1GM2NGQkZUVVIwYTJFemRtbGljMjFpTmsxb1FWSkVTa3hoZURWTVJVRjZjMk1yY2t0NlYyWnFNVzgyQ2toWlpuQlBlRFp2UTFOaVVIYzBTRmxwWkd4TFdsSXdZMDlUVGtjMmFFRmFXa2hCTDJwc05HaEVTREJsUVdGblIwdEVlWGcxZDJkaU4xTllVMGhqSzFZS0x6QnllRzFqVW5FM1NFOWpURE5ZU25Sa2RFUkdTRWQzWVdwblQwSm9aa2g0TlhGaFkzUnpNM04xY2pkYWJUUnJWa3RCZEVWdk9HRkNhMHBOWkM5ek5RcExWVmgwYkhabGFHdEdZbE54TTB0VlRFSlNaa2R2V2tkV1R5dE9UMVZLVDJWcVpuUk5NVWxUVmxGcWIxZzFNMnBHTUU5TmJVUnVOWGRHYm1Wd2RIUkhDbFJtVFhOT1pVWm9NWGhPV0c1c1oxSm1XREoyU1d4bFJYcDJhREZVYmtwV2JVeGphbGcyU25OTGFVVnJVSEpRVFV4U2FXWlZkVGQ2Y2taUVlYUk1VbG9LVWl0eWJVUlRkV0ZwVkVwMGJDdERMeTloUkVOemJVZEtUM1E1TXpsRmRWRnZNVGx0VVdsTGVIbGpkMmx5ZW5WalduQm5NR053Y25FclNISnVWM0ZLS3dwclRXaDFZVmhxWmxNMk5uWk5WekVyV2poa1V6RkVLMGx1YUU4ck5HZFVaME5HZEVGNFFUQkJiVk5QWTNabmFUSkRURlp6VEhOU2F6WlNja2xMTjJkeENsbHlZMlFyV0VrMVdFWjVTMWhJVEUxM1QxbHhWSEJpVFFvdExTMHRMVVZPUkNCRFJWSlVTVVpKUTBGVVJTMHRMUzB0Q2c9PQogICAgY2xpZW50LWtleS1kYXRhOiBMUzB0TFMxQ1JVZEpUaUJTVTBFZ1VGSkpWa0ZVUlNCTFJWa3RMUzB0TFFwTlNVbEtTbmRKUWtGQlMwTkJaMFZCYzFRME1sUkpObkJJWlhsWVprMUlRVkl6Umt0TmMyeDBOMDlMUlVwNlJGbHZTMkV2YkhSb1FuSm9WbWRMYzNoV0NrcEpTVmQ1ZWpKS1ZFRlViM2t2VkZSNVkzaG9aRW81ZERCUlZYUjVXWEZPY0VzM2FWaGlTM1JEYUc0NFNVeFdVMUJPTkdkalVVTkNTSGx1Y1d0eFduSUtlR1k1Y2taaE1FMVNWVlZIUkU4cmJFdEhjRWsyVFZkUk5FdFhRMHhpZVRJeGNuTm9aV2w1ZDJKaGNXWlJjUzl5T1hKbGVERnpjeTl0UVU1WWJtdFZTUXBRVGxkU1FrbE1kak5JY1hkYVpIY3laV2gxTTJzNGVYRkJLMUEwYmpoTFVpdFZLMVJDTnpBeE5GSlpOR1ZWTkZWMGFuaGFNMnN2TlhwRFJVbHVLMWhQQ2k5M2RqaHFXSE4zTDI1c1RtSktMekJVYTJ0elpIbzBaMmhuY1VWeVpERnpVblZsVUdaQ1RIRmxTVlptVm5OVk9FcHhObmhUV2xSWGFqa3hia3B2WldvS05VcE1hVEJzTWxOWVV6QnFMMUU1YTFwYWJYcE5Uemt6UzFGSVZFTjZaR281WXk4dlZtTXlSSGR1ZGs5TldWQlBZVzRyYm5oUFRIaHNZVE5NZVZwYVZncFFTbVExWkRCbFEwbFNjemxSV0VNeU16WjBlREJEVURkbWRXTk5TRGM0YURKUWRrbzBZVFV6VlZwMGNXaE5RWHBoTTNjM1FVWXpTMDlXYjAxTVIzUkZDalZKT1dVM2N6UkpNRTlCWjBaSlRuWlRlVlU1YkRKcFlubDVhRk5RUzNCWWNFTlViSFZYYlZOVGFtcHNTbkUzVTBOYVIyaENiVWh4YmtOWWNIWXdjbUVLYUhkclVsVTFlRk5RUXpCSWQwRkRielY2VUZwUFRFMVhWa04zYkZOVVEyVnZRMVJ6VFVzek9WZERURFJWVDBWR1EybEJOMEUwWmxKSFJVeFZOR2wwYUFvclJqZFpUbEZxT0hwcU1rMVpaMDVzVG5kMFJtb3JNRlpPYm10S01VTlJiRGd5VnpCVFRtUmhWWGN5YUd0cloyVnRXbEJPUkhWd1VIWXhSbmx6V2pkYUNsRmhhbGR3YldsS2JtdEJhMlpzTkRGcFIwbDZMMDlzZWpoc2NteEVNMlJ1VkVKQldITmlOa2gzWmtvclQwcGtlRzgzV1dsSFVHSnpkell3UTBGM1JVRUtRVkZMUTBGblFWRkRhM2hLY3pKT01IUk9UMnN3TjJZNUwza3JlVEYxTTJVd1ZWVmhZM1EwTXpnM09VVXZTRGc1VEU5M1QwVXpNMnhHZFhwUVMyUjFRd3BEVEU4d2RWbDRkRW81VkhWQkwzVm9VR1pIT1RKdk9HeENlbkYyVG1oMFdUTmhPRzF0Y1VrNWNHWkRWSEZZVFVkRFptOVViVmxKU2xscGMycDRRWGh1Q2xCSE4yMTJjekZaYTJZelZrdDNVVWxuU2tncldqWlRORmhEYTFWalNGUnlRamxVZGpaU1NGZDFlSE5oUlVSNlMwZG5kRlUxU0ZKNFdsQmhRbnBSVHlzS1JsWkNabVEwVm5GdFdsZE5hRFp2WmxCblRtcEhaVEo0TDFaVFYwUTNZVkJxZWpRdlNrTlVWblJVUzBFemQxbENVbXRCVFd0SVUybFBhMmcxTWxaekt3cDJSMWRaV0dkV2VrUkZXVGcyUmpsNlNXZExUalZaYzBkQk4wUkdhbk5UZG1OWmNVZFNUVlpFZW5VeE1tUnJWRkZ6YWpORGFTdFlNa3R4UkdsWWRIUXZDa2RVVnpOcmFYZEpNR1JqV1hBMlRrZEVPR013Y21GbFlrOUdObTlGTmxZd1ZVWjRZV3hDTDFGeVJ6ZHJaRzlxSzNkNFMwSXhVVTAzZEZRck5XSlZNbklLWVRjd1RqUjFPRWN2TW5SR2FWUm5hM2N5YXpsUWRWbDVOM2hhTURKck5GSXlSblpXVUc5dlVFZzRTRzF3WlhCdlUzVlliVWxpVG1nMVFXWnpURzFIU1FvMGJsSlRhVXBLVEhwNVdIZ3dRWHBGUjBVMVdYUldabUp0YkVwUlVXNWtRVEF6U1dkVU5DdFNUM3BVVGxCc0wzb3ZWbkJvTlU1VlpteENPWGt3ZEZOaUNsY3ZkVmgyY1RoaFN6RjJXRzVPTUZaRmJVMW5ObnBYYldGRE5rOU9kbU5NUlhkUVZrUkdjakI0TkROa05tTm9SM1ZDVUdNd2QwOXFZVXA2T0VWcU4zTUthakEzTkhVM2VXZ3ZORFpaVW5kc2FtRjRZM2hrTlZWSWJrMDJlV2g2YUhOcmIzbFJOa3M1ZURsMVVFUTBlRlpRWm1sWFNDOW9iVWRzYVhkVksyUkJhQXBtWkRsUFFYb3ZRazVuYWsxbGJWaFhWa2RFV0VWUVpWQnNUbGxsTjNCTFVtcHhjMHg0ZURWMVdHZFJiVll2WWxwUlVVdERRVkZGUVhwdmEyMUpZMDQzQ2pkSlEzbHdXblIzUWxseFRpdHZUSEF6TWxCclZrMURSVWhqTXk5T1ZtYzFVVFZDYTIxMlNWRTNTRFZYZEhSeFlYazJUMnN2V1VOMGVFMHphMGREYkRnS1VuRnZWVkJUYlcxdVZqQllOakV4UnpWVmJrWTBVVVZXUVVKMFpIQmFZVzFXTWtVNFNVdGxaRzlZV1c1NVZTOHhRVUpWUTNsNmNXaEpTSFJsU2tSdWVncFVhRGg2Um5OSVR6bExNa0pwVHpReVdteEJWV3hFTmtWSmNYRm1ZMFJ4ZEZadVpIUTJOemsyUVdSMmJTc3ljMkpJZVRkUGNUSlhZbXh1SzNobVZHSllDbTUwTlhGNU1HRm1NMFZwU0RSaVZrd3pZMUJVVVZReFdGQlVWVlJ3TUdsUFVUUXpRemxEWkVkWmJXSTBZbFF3ZDBSS05tWnhRVTA1ZVdNNFkzcHRZWElLZDJseFlYUlNiVGt3YlRkMlJtdzJOME5qWmxKS2NDOW1SbUZRUVM5SFZIZzJTMGhZZEV4VVNXcG9Xa1p1ZG5KVldXcElUbTh5ZFRRNVJVazNZVXBGZGdvdllsTnhOMVZ6VWtaTU1GSllVVXREUVZGRlFUSTNSV0pHYURSWWJDOXZjSGx3TVZOR1dEWm5iamhPY1N0eVV6SmtkbXh2UVZGdk1rZzNXblZ0YkVFMENqWXhNeXN3VjBWRU9ERldZMEp6SzFOdFExVXhSbkZSWTNaSVZpdFRlbGRsWlZOdlJuVktlVVIyY0hwc1pFVTBXWGwzYW5kdUswdEZkR013ZVZwV1luZ0tNR2N4ZWpSMWRFZG9hbTFrVWxaSlZuZE9WR3hFTTNwdVdUVkxiWGhDZFRkd1J5OUJRamRZZURKeFYwRkRVR2M0WTNWR1JuVjBjME0wVVZKV1ZuWjBSUXBpYVVKMmRETlVNVmRZWW5KTllXVjNSWFZMTXpWMVJFeGtiMjlZZG5KblpXZDFWVFJFUWk5S1NEVTJNRE5xUjI5amVUUnRMMXBqZEhnelMyOVJUekIwQ2tOVFlYSkNVUzk0YjBobk4zTk1SbU5EVVhBeVdubGlMME4xYTFkT1UwdzBNbmhaWjJGWVMyazNkRzVqUjBwMFVURjNjM1JqTnpKS1kxSTRVM3BWZEZVS1R6QnNPREJpVTFNemNqRXJjRU0xV2t0R2RVZHZlRzVvTUZsSWFVOU1URnA0YVRsSmJqUnFSMnRSUzBOQlVVSkdVR3N6SzJVNUswMVNkMjFrTlVOTlJ3cGxTa1p3VERSTWFGWnJaM2s0WldoYVdtSnlkVlUwYlM5VlUxZHdibEZhTTJjeFVHNU5hSE0zYzNJeVlVVkJOSGxOVTFWTWVFeDZXbkJEVUhNM1dUTnBDbkpHWkdOdVdWVnlWV3BTTlZoNlpDOU9ZVEpNTW5CdmFVdFpUbFJJTVRoR2VIVjBTRE4yY1hjNFJuQnFZMGREWXpGNksxVjJZV3RKZUVGVlNUSkRiR1VLWkhRd05qTXdTakYzZEhScVlVTkpPSHBTT1haTVVIbzBVa1Z2YVVFMmQxQXJNek5TVWxCT2RUTlBOa1pKUTJWMGNWWnZSVTVQVEU1aVNuYzFWWEJCT1FvNWEwMDBUazlSWld0WmVTdEVjV0V3Tm5CeFVVNTNPR0pNZFdaNGJUQnNTbkpIVVZadE4wbEZVMUp2VmpWcFFrNUVTbU5JZVM5NFFuVkxOM1JyU21aSUNtVldTRWhIYWs1NU55ODNOME5DV25VeGRIWlpkM0U0YmpSNmNrTmFkVzV0VjFOck1sSTNiakIzWlZoRWNVWllNVGRyTm10dVEybFBNRzlsVEhwMVRVZ0tTazkzZUVGdlNVSkJSV3d4Y2xKTU1rOVFiSFZuZFRkdVRDOHhWQzlETW5Zd1IxQkpZbGxNVnpOeWIwdFRhRXhOYXpaemVIa3ZZVmd4V1RjMWJUZExVUXBDYkdWWmNsQkpSemQyZFVaSlREWTNiM1ZHVUV0d1FteFNjMmd5VUZjNVRsVXdVbE52VDA5NlRqVkxaVEJpVm1kNVkzTjBRMWR6ZEdGSFUyMVBNSHBEQ210NE5FMHhiekZIU1hSdVRUaERjRkppVlZsQ05TOXhVME15YjBsdmNtaDZkM0EwT1UxNWJFOTJiSGNyZHpOWGRWWXdUR2RtWmpnNVFsWTBXVEEzYkRRS2JFTm9hMWt2U0UxellWZFlORlJFWml0Q1UycDVSVUZKYlZoamExbGpTV0U1VjNWbGRYazNXV0prTURVMFpYSm9TV1pYYWpKUU1VbFhjMDB3YXpVd1R3b3hlR0U0UmpSU1IxcFdWVlZ4ZHpsbk5WUlpZbGhaT0ZWc1VETjBaMU5JVVRReFIzWkVXbUkyWlRsYVNuVkdNa1pCUjNBMVJqZzVSRkZYVGpGMEt6WlhDaXR1VHpOek9GSlZOVzAwTDFJd01HY3llRFJQV0Rsa2RrWkNLMVZSY1VWRFoyZEZRVXd3ZWpjclR6bFhSbU5WZW1KWFRpOURaRW81YTFGUVRtTmlUa0lLT1VwWGFTdHVMMkpoV25wdlJXOUNSa014UVRoT1kxQnlUbmhOTWtGTWRGUlNXV0pEVFRoR05HRlBSRlpIVlc1VVFrWXJWR05UWlU1NlVtdHBZMEkzZHdwMmJWbGtkRGwxWWxSS05VUjZaVzlWU0RCc1FteFJLMDFQTUZCbFV6QnViM0F6VTJNd1ZFVlpZM1l5TkN0YVZVeDVhVFkxVERCTVZYVmhlVkUyTld4NUNqUjBkWEV2YldOTloyWkxNblZ1VHl0eFVFNHlPWEJaYVdWR1JqSXlRek5GT0ZJMFpVUXlPVTVMVkhOVGNsTmtabHBzVTBKM1YyRkdiVXB3TVZRNWFFRUtkamhIU2l0NWNETnRkU3RoVFVGcU0wSnhaazVqTUVWemNrMVNZeTl4ZURoUVVHdHVaRUpyYmtFclEzWkhiVmMzU2pZMVZrMWFhVXAyVjJOUWVuSnlkd3BzWnpSeVZXdHBSV3ROUW13NE56TmxjME5vT1ZCRFozaFpXalpRVFdkc1RVcE1TVlpITkZsUVRXMWlTSEEwY2tGMVRVUXdObE5PTldoUlBUMEtMUzB0TFMxRlRrUWdVbE5CSUZCU1NWWkJWRVVnUzBWWkxTMHRMUzBLCiAgICB0b2tlbjogNTM3NjBkZTEyZmYzZjU1ZmFjZWI1ZTg5NzZhNzViMGE2ODNjODJmYjE0ODgzZDljMTliNGRjMTQ2ZmU2Mjk4NTI5ZmZmZGY2M2U0OTI4NWM3YmQwODAyY2Y4Nzc4OTZlOWJmNTA0NWM0NDZmOGVmNjMyYTE3MWI4OTBlZmM2NGIK\"\n + \ }\n ]\n }" + headers: + cache-control: + - no-cache + content-length: + - '13056' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:29: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 get-credentials + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g -n -f + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000001/listClusterUserCredential?api-version=2020-11-01 + response: + body: + string: "{\n \"kubeconfigs\": [\n {\n \"name\": \"clusterUser\",\n \"value\": + \"YXBpVmVyc2lvbjogdjEKY2x1c3RlcnM6Ci0gY2x1c3RlcjoKICAgIGNlcnRpZmljYXRlLWF1dGhvcml0eS1kYXRhOiBMUzB0TFMxQ1JVZEpUaUJEUlZKVVNVWkpRMEZVUlMwdExTMHRDazFKU1VVMlJFTkRRWFJEWjBGM1NVSkJaMGxSUVdGS1lrUnROSE1yT1M5aFRVUnJVbWxPU0RSWGFrRk9RbWRyY1docmFVYzVkekJDUVZGelJrRkVRVTRLVFZGemQwTlJXVVJXVVZGRVJYZEthbGxVUVdkR2R6QjVUVlJCTWsxVVFYZFBWRVV5VFVSYVlVZEJPSGxOUkZWNFRVUlplRTFFUVRWTmFsbDNUbXh2ZHdwRVZFVk1UVUZyUjBFeFZVVkJlRTFEV1RKRmQyZG5TV2xOUVRCSFExTnhSMU5KWWpORVVVVkNRVkZWUVVFMFNVTkVkMEYzWjJkSlMwRnZTVU5CVVVSRENubE9iamx4V2tObFoySTNTelV2YTBWUVVrcGhURkk1ZVZWclRHWnpjWEJ3ZDI5elFreE5TSFJLV21weVdqazNTamx6V2pVelNXVlhTMUJGT0ZseFlXb0tVblZXWVZvMFN5dHpOV3RIVUZSM2RreGlWekJ2YURjck5ISXhWVk13VDB4dVZFVXpRVGRHUkVsVGRuRlJaa1pVUVc5c2JHNDFkRGd6Y0M5dlJtbFZOQXBqV1dsNVZFcFNNMGd4UkVGWlZqSlNPRmR4U25VelRtc3phbkZTVGxaVVZVdElRWFZFYURWQk1VZHJOMVUwVTJWbFRUazFPWGxoVWtsRk5scGtVSGQ0Q21NdmRqaElkVWRWZFVGM1NISTRlVEkxVnpGaFVrNUJjMDh3TlU5SGIxUjFjbkZCV2tWQlRuRjRkbTUxWkRSVGVDdHRkRnBVYkVrMVFtdFRlVEJFV21vS1dGTlhOVGhYUlRFNWVYY3pURlJ0YTI1T05tSmpkamwxUnpCRE1GcEpTV3BJY1RsaGRVVjVaazlOVlZCdGRDdElhbEJXUzNkS1ltbE1iRk4yUkZwdmFRbzRlVEV3YVZwSk9FVjRTVlJPTmxGeGJFcDViMWg1WTNwUFpHaE5XbkUwV0VkSFIwaHBSRzU2Vm1sNk5rUlRRemxyZGtkSlFXeGlaVkpOUzJvek5Ua3JDbFZITlRaR1pGTlJPRlYxYUV0TVpFMXZlbk01TDB4RlVXSlZXVVp4Y0daNmNUbDBVRkpLUTA0MWF6VlphbWRqTUhsNVRVbDJRa3Q1VmxoUkt6Tm5SREFLYkV4U2QyZzBRa1pvVTFkc2N6WkljWEZJVDJ0VFNWQmxUa1l6TmtscGJuUnRaM2tyVDJoUGExSkhia1ZGZG1ab1l6UkxNVlpYZFZOcE9WQlBha05VTXdweWVUVndZbE5yYVhwMU5FOW9RMEkzV21aWFpYTkVWRVpWUlNzeFJ5OXVNQzkwVUZGUmJGQXhiVlZ1SzJ4cGVHTlVkRGRVVTFObk5tdDVXbmhNVG1zMkNrNUxjREp0UmtsVU1XMXhUMGxyYVd0bE1XZ3ZORE5PYmtoWk1tUk1NbUpqUTJ4aWVpdHJjMmRTWkRKUVVIcENMMVE1Ym1JNWFVcGFNR2hRTVdKMFVsRUtXSGw1YTA5cE0wcG9kbHBVWVdOaFlURlhSRU50TjNGc1dGTkhXRkF4V21jMVJsUXpUeXRQT1V4UlNVUkJVVUZDYnpCSmQxRkVRVTlDWjA1V1NGRTRRZ3BCWmpoRlFrRk5RMEZ4VVhkRWQxbEVWbEl3VkVGUlNDOUNRVlYzUVhkRlFpOTZRV1JDWjA1V1NGRTBSVVpuVVZWM2EzQnVOWGxWYUZCcldYb3dkVEpzQ210Q2JEaGFiVUZhVm5OcmQwUlJXVXBMYjFwSmFIWmpUa0ZSUlV4Q1VVRkVaMmRKUWtGQldWZ3phV2R5YkUxcE5sUmtWRGREUWtGWFJsUjJRMHRZT0cwS1pEaDViMEpMV0hwNlVHOUdiVVU1TWxkTVQxZGtVbVZFYkhCeGFGSXJWREpDYW1SRFdtaEdSazE1ZVRWbWMwOWtOemRLWjNaT00xWTBiMWRqTTBWVlJ3bzVSVmRNV2psS1IzazJkVXBoU1dZNFJHUkxXakJWVGtOelN6UnpjR2RFTjNVMFVHNVNRVGd6VFRoWFIwRndORFJpWTJSWllYbFpZMjlWYkM4M09GaE9Da3RKZEdsb2JVWmlaa3BPWWtoM1kxbG9iVEZvVDBKRVpIQnhlbmxCYURSalkwczNSbTl5VXpGelZqVk5hMlUzV0ZSRlNWbHViVEo2YTFsTmNEaEZNemNLWnpnMVVuTjFRamgzWm5Wa2NUZHVaVnBVTWpVck9FRlhibUY1ZWl0RlJVRklUbXB4YUZsSk0wcG1ka0pPTjBjMldqVlNOVk5CUTNCa1YyOVZiREkwVVFwTVQwSkRaRmRhUjIweEwxQm9heXR0YjJsbU5tRk1WRlJMTjA4MEwzZ3ZhVkpyVURkdVRUWlRSMVoyTkVKbmJrMWhkSEJyU0VWbVYySm5NWFZvVW05MkNrMWFUM0l4UlVabGMwMTJXSEZvYkRsR09ISXlMMkZhWTBWaGRrNXdOeTlRVUhBd1dtY3pWV3RvTVZCeGJTdHhVbk5yTkc0MmNGRlJWVTFzVjBSVU5IUUtiRXBZV2xZeWJtOU9VM1ozY1VkblZqZzFTVXh5Y2xoT2NITnRiMU54YXpad2RUWmhTSGxzVTJSdGJpOXJVVXd5TlVKVE5qZ3lhbEl5UkZwTFFXNHphd3BoVjBka1oyTkpMMkpxWms4clVtZG9ZV3NyUTFsWVVsRjBSSEF5YlZwcU16RnpaVmxQZWt4bFUxaDBZMmd2YTBkMllsWm5UM1o0ZFhSd1pIWjROV0ZTQ25KcWNuWlFaRTAyUTNWVWNGaHVSSFJDTURodVlWZEJRVnBQYVhCS2RVTk5kbEZoWms5YWVYaEVaMk5KTjFGM2EzRnhTSFJ0YTBGdVNrczRUWGhwZG5FS2FqbFZWbTFITWxKMFMyNTNLMDVhWTNOcWNHdDVlRFJrWVRKUVREQTNlVXBsWm5sWE0weDVSMnhZWW5WS2NtSTVNbkpOZURkYWNIQTROblk0TVhwdFJ3cDVOSFZYWm5wR0wwWjZWVkZNYm5jdkNpMHRMUzB0UlU1RUlFTkZVbFJKUmtsRFFWUkZMUzB0TFMwSwogICAgc2VydmVyOiBodHRwczovL2NsaWFrc2Ruc2V2Z2FjeWstOTAyNDdjNGIuaGNwLndlc3R1czIuYXptazhzLmlvOjQ0MwogIG5hbWU6IGNsaWFrc3Rlc3RrbDNhcGQKY29udGV4dHM6Ci0gY29udGV4dDoKICAgIGNsdXN0ZXI6IGNsaWFrc3Rlc3RrbDNhcGQKICAgIHVzZXI6IGNsdXN0ZXJVc2VyX2Fjc2NsaWFwaTExX2NsaWFrc3Rlc3RrbDNhcGQKICBuYW1lOiBjbGlha3N0ZXN0a2wzYXBkCmN1cnJlbnQtY29udGV4dDogY2xpYWtzdGVzdGtsM2FwZApraW5kOiBDb25maWcKcHJlZmVyZW5jZXM6IHt9CnVzZXJzOgotIG5hbWU6IGNsdXN0ZXJVc2VyX2Fjc2NsaWFwaTExX2NsaWFrc3Rlc3RrbDNhcGQKICB1c2VyOgogICAgY2xpZW50LWNlcnRpZmljYXRlLWRhdGE6IExTMHRMUzFDUlVkSlRpQkRSVkpVU1VaSlEwRlVSUzB0TFMwdENrMUpTVVpJYWtORFFYZGhaMEYzU1VKQlowbFNRVW8xU0dkaE5EZzNhalp5TkdvNWNFeEtSa1UyTjBWM1JGRlpTa3R2V2tsb2RtTk9RVkZGVEVKUlFYY0tSRlJGVEUxQmEwZEJNVlZGUVhoTlExa3lSWGRJYUdOT1RXcEZkMDVxUlhkTlJHdDRUbXBCTWxkb1kwNU5hazEzVG1wRmQwMUVhM2xPYWtFeVYycEJkd3BOVW1OM1JsRlpSRlpSVVV0RmR6VjZaVmhPTUZwWE1EWmlWMFo2WkVkV2VXTjZSVlpOUWsxSFFURlZSVUY0VFUxaVYwWjZaRWRXZVZreWVIQmFWelV3Q2sxSlNVTkpha0ZPUW1kcmNXaHJhVWM1ZHpCQ1FWRkZSa0ZCVDBOQlp6aEJUVWxKUTBOblMwTkJaMFZCYzFRME1sUkpObkJJWlhsWVprMUlRVkl6UmtzS1RYTnNkRGRQUzBWS2VrUlpiMHRoTDJ4MGFFSnlhRlpuUzNONFZrcEpTVmQ1ZWpKS1ZFRlViM2t2VkZSNVkzaG9aRW81ZERCUlZYUjVXWEZPY0VzM2FRcFlZa3QwUTJodU9FbE1WbE5RVGpSblkxRkRRa2g1Ym5GcmNWcHllR1k1Y2taaE1FMVNWVlZIUkU4cmJFdEhjRWsyVFZkUk5FdFhRMHhpZVRJeGNuTm9DbVZwZVhkaVlYRm1VWEV2Y2pseVpYZ3hjM012YlVGT1dHNXJWVWxRVGxkU1FrbE1kak5JY1hkYVpIY3laV2gxTTJzNGVYRkJLMUEwYmpoTFVpdFZLMVFLUWpjd01UUlNXVFJsVlRSVmRHcDRXak5yTHpWNlEwVkpiaXRZVHk5M2RqaHFXSE4zTDI1c1RtSktMekJVYTJ0elpIbzBaMmhuY1VWeVpERnpVblZsVUFwbVFreHhaVWxXWmxaelZUaEtjVFo0VTFwVVYybzVNVzVLYjJWcU5VcE1hVEJzTWxOWVV6QnFMMUU1YTFwYWJYcE5Uemt6UzFGSVZFTjZaR281WXk4dkNsWmpNa1IzYm5aUFRWbFFUMkZ1SzI1NFQweDRiR0V6VEhsYVdsWlFTbVExWkRCbFEwbFNjemxSV0VNeU16WjBlREJEVURkbWRXTk5TRGM0YURKUWRrb0tOR0UxTTFWYWRIRm9UVUY2WVROM04wRkdNMHRQVm05TlRFZDBSVFZKT1dVM2N6UkpNRTlCWjBaSlRuWlRlVlU1YkRKcFlubDVhRk5RUzNCWWNFTlViQXAxVjIxVFUycHFiRXB4TjFORFdrZG9RbTFJY1c1RFdIQjJNSEpoYUhkclVsVTFlRk5RUXpCSWQwRkRielY2VUZwUFRFMVhWa04zYkZOVVEyVnZRMVJ6Q2sxTE16bFhRMHcwVlU5RlJrTnBRVGRCTkdaU1IwVk1WVFJwZEdnclJqZFpUbEZxT0hwcU1rMVpaMDVzVG5kMFJtb3JNRlpPYm10S01VTlJiRGd5VnpBS1UwNWtZVlYzTW1ocmEyZGxiVnBRVGtSMWNGQjJNVVo1YzFvM1dsRmhhbGR3YldsS2JtdEJhMlpzTkRGcFIwbDZMMDlzZWpoc2NteEVNMlJ1VkVKQldBcHpZalpJZDJaS0swOUtaSGh2TjFscFIxQmljM2MyTUVOQmQwVkJRV0ZPVjAxR1VYZEVaMWxFVmxJd1VFRlJTQzlDUVZGRVFXZFhaMDFDVFVkQk1WVmtDa3BSVVUxTlFXOUhRME56UjBGUlZVWkNkMDFEVFVGM1IwRXhWV1JGZDBWQ0wzZFJRMDFCUVhkSWQxbEVWbEl3YWtKQ1ozZEdiMEZWZDJ0d2JqVjVWV2dLVUd0WmVqQjFNbXhyUW13NFdtMUJXbFp6YTNkRVVWbEtTMjlhU1doMlkwNUJVVVZNUWxGQlJHZG5TVUpCUTNBMWJtVktiMlZpT0Rad1dtZDJUemxoU1FwalYwTjNWMXB0VUZkS0syMHpWWGhsWkdRd1dtaENTbkJrV2toNk1IbFRjVGh0YWtoRFMxWlFhMDVwVkVGclIycG9ZazVFZUZGeWJqSnhVWEJtU1U1dkNrRkhhVUZCTWprMVMyWnpNbG8yWTBGVFJTdG9ObVZWYlRSMVRrZHFWRWxuZW1zeWFVWnhTRUpxWmtWdE5HOXZWM2t5V1VsT01HRjNaalY2VjA1NFREQUtTRlJrVGk5SE1tVXpaVzVyYUZWdE1uQlJiM0F4WkVsSmVUZ3dNRFpEZGt0NWRGRk5Zbll4UTNscFlsWlhNRkl4TDNVME0wTkZRMkpRYzJZdlFXcHRWd3BVVmtwMldFOHZPV1UyVlcxMU9YWm5jVGx3Tm1GM2NGQkZUVVIwYTJFemRtbGljMjFpTmsxb1FWSkVTa3hoZURWTVJVRjZjMk1yY2t0NlYyWnFNVzgyQ2toWlpuQlBlRFp2UTFOaVVIYzBTRmxwWkd4TFdsSXdZMDlUVGtjMmFFRmFXa2hCTDJwc05HaEVTREJsUVdGblIwdEVlWGcxZDJkaU4xTllVMGhqSzFZS0x6QnllRzFqVW5FM1NFOWpURE5ZU25Sa2RFUkdTRWQzWVdwblQwSm9aa2g0TlhGaFkzUnpNM04xY2pkYWJUUnJWa3RCZEVWdk9HRkNhMHBOWkM5ek5RcExWVmgwYkhabGFHdEdZbE54TTB0VlRFSlNaa2R2V2tkV1R5dE9UMVZLVDJWcVpuUk5NVWxUVmxGcWIxZzFNMnBHTUU5TmJVUnVOWGRHYm1Wd2RIUkhDbFJtVFhOT1pVWm9NWGhPV0c1c1oxSm1XREoyU1d4bFJYcDJhREZVYmtwV2JVeGphbGcyU25OTGFVVnJVSEpRVFV4U2FXWlZkVGQ2Y2taUVlYUk1VbG9LVWl0eWJVUlRkV0ZwVkVwMGJDdERMeTloUkVOemJVZEtUM1E1TXpsRmRWRnZNVGx0VVdsTGVIbGpkMmx5ZW5WalduQm5NR053Y25FclNISnVWM0ZLS3dwclRXaDFZVmhxWmxNMk5uWk5WekVyV2poa1V6RkVLMGx1YUU4ck5HZFVaME5HZEVGNFFUQkJiVk5QWTNabmFUSkRURlp6VEhOU2F6WlNja2xMTjJkeENsbHlZMlFyV0VrMVdFWjVTMWhJVEUxM1QxbHhWSEJpVFFvdExTMHRMVVZPUkNCRFJWSlVTVVpKUTBGVVJTMHRMUzB0Q2c9PQogICAgY2xpZW50LWtleS1kYXRhOiBMUzB0TFMxQ1JVZEpUaUJTVTBFZ1VGSkpWa0ZVUlNCTFJWa3RMUzB0TFFwTlNVbEtTbmRKUWtGQlMwTkJaMFZCYzFRME1sUkpObkJJWlhsWVprMUlRVkl6Umt0TmMyeDBOMDlMUlVwNlJGbHZTMkV2YkhSb1FuSm9WbWRMYzNoV0NrcEpTVmQ1ZWpKS1ZFRlViM2t2VkZSNVkzaG9aRW81ZERCUlZYUjVXWEZPY0VzM2FWaGlTM1JEYUc0NFNVeFdVMUJPTkdkalVVTkNTSGx1Y1d0eFduSUtlR1k1Y2taaE1FMVNWVlZIUkU4cmJFdEhjRWsyVFZkUk5FdFhRMHhpZVRJeGNuTm9aV2w1ZDJKaGNXWlJjUzl5T1hKbGVERnpjeTl0UVU1WWJtdFZTUXBRVGxkU1FrbE1kak5JY1hkYVpIY3laV2gxTTJzNGVYRkJLMUEwYmpoTFVpdFZLMVJDTnpBeE5GSlpOR1ZWTkZWMGFuaGFNMnN2TlhwRFJVbHVLMWhQQ2k5M2RqaHFXSE4zTDI1c1RtSktMekJVYTJ0elpIbzBaMmhuY1VWeVpERnpVblZsVUdaQ1RIRmxTVlptVm5OVk9FcHhObmhUV2xSWGFqa3hia3B2WldvS05VcE1hVEJzTWxOWVV6QnFMMUU1YTFwYWJYcE5Uemt6UzFGSVZFTjZaR281WXk4dlZtTXlSSGR1ZGs5TldWQlBZVzRyYm5oUFRIaHNZVE5NZVZwYVZncFFTbVExWkRCbFEwbFNjemxSV0VNeU16WjBlREJEVURkbWRXTk5TRGM0YURKUWRrbzBZVFV6VlZwMGNXaE5RWHBoTTNjM1FVWXpTMDlXYjAxTVIzUkZDalZKT1dVM2N6UkpNRTlCWjBaSlRuWlRlVlU1YkRKcFlubDVhRk5RUzNCWWNFTlViSFZYYlZOVGFtcHNTbkUzVTBOYVIyaENiVWh4YmtOWWNIWXdjbUVLYUhkclVsVTFlRk5RUXpCSWQwRkRielY2VUZwUFRFMVhWa04zYkZOVVEyVnZRMVJ6VFVzek9WZERURFJWVDBWR1EybEJOMEUwWmxKSFJVeFZOR2wwYUFvclJqZFpUbEZxT0hwcU1rMVpaMDVzVG5kMFJtb3JNRlpPYm10S01VTlJiRGd5VnpCVFRtUmhWWGN5YUd0cloyVnRXbEJPUkhWd1VIWXhSbmx6V2pkYUNsRmhhbGR3YldsS2JtdEJhMlpzTkRGcFIwbDZMMDlzZWpoc2NteEVNMlJ1VkVKQldITmlOa2gzWmtvclQwcGtlRzgzV1dsSFVHSnpkell3UTBGM1JVRUtRVkZMUTBGblFWRkRhM2hLY3pKT01IUk9UMnN3TjJZNUwza3JlVEYxTTJVd1ZWVmhZM1EwTXpnM09VVXZTRGc1VEU5M1QwVXpNMnhHZFhwUVMyUjFRd3BEVEU4d2RWbDRkRW81VkhWQkwzVm9VR1pIT1RKdk9HeENlbkYyVG1oMFdUTmhPRzF0Y1VrNWNHWkRWSEZZVFVkRFptOVViVmxKU2xscGMycDRRWGh1Q2xCSE4yMTJjekZaYTJZelZrdDNVVWxuU2tncldqWlRORmhEYTFWalNGUnlRamxVZGpaU1NGZDFlSE5oUlVSNlMwZG5kRlUxU0ZKNFdsQmhRbnBSVHlzS1JsWkNabVEwVm5GdFdsZE5hRFp2WmxCblRtcEhaVEo0TDFaVFYwUTNZVkJxZWpRdlNrTlVWblJVUzBFemQxbENVbXRCVFd0SVUybFBhMmcxTWxaekt3cDJSMWRaV0dkV2VrUkZXVGcyUmpsNlNXZExUalZaYzBkQk4wUkdhbk5UZG1OWmNVZFNUVlpFZW5VeE1tUnJWRkZ6YWpORGFTdFlNa3R4UkdsWWRIUXZDa2RVVnpOcmFYZEpNR1JqV1hBMlRrZEVPR013Y21GbFlrOUdObTlGTmxZd1ZVWjRZV3hDTDFGeVJ6ZHJaRzlxSzNkNFMwSXhVVTAzZEZRck5XSlZNbklLWVRjd1RqUjFPRWN2TW5SR2FWUm5hM2N5YXpsUWRWbDVOM2hhTURKck5GSXlSblpXVUc5dlVFZzRTRzF3WlhCdlUzVlliVWxpVG1nMVFXWnpURzFIU1FvMGJsSlRhVXBLVEhwNVdIZ3dRWHBGUjBVMVdYUldabUp0YkVwUlVXNWtRVEF6U1dkVU5DdFNUM3BVVGxCc0wzb3ZWbkJvTlU1VlpteENPWGt3ZEZOaUNsY3ZkVmgyY1RoaFN6RjJXRzVPTUZaRmJVMW5ObnBYYldGRE5rOU9kbU5NUlhkUVZrUkdjakI0TkROa05tTm9SM1ZDVUdNd2QwOXFZVXA2T0VWcU4zTUthakEzTkhVM2VXZ3ZORFpaVW5kc2FtRjRZM2hrTlZWSWJrMDJlV2g2YUhOcmIzbFJOa3M1ZURsMVVFUTBlRlpRWm1sWFNDOW9iVWRzYVhkVksyUkJhQXBtWkRsUFFYb3ZRazVuYWsxbGJWaFhWa2RFV0VWUVpWQnNUbGxsTjNCTFVtcHhjMHg0ZURWMVdHZFJiVll2WWxwUlVVdERRVkZGUVhwdmEyMUpZMDQzQ2pkSlEzbHdXblIzUWxseFRpdHZUSEF6TWxCclZrMURSVWhqTXk5T1ZtYzFVVFZDYTIxMlNWRTNTRFZYZEhSeFlYazJUMnN2V1VOMGVFMHphMGREYkRnS1VuRnZWVkJUYlcxdVZqQllOakV4UnpWVmJrWTBVVVZXUVVKMFpIQmFZVzFXTWtVNFNVdGxaRzlZV1c1NVZTOHhRVUpWUTNsNmNXaEpTSFJsU2tSdWVncFVhRGg2Um5OSVR6bExNa0pwVHpReVdteEJWV3hFTmtWSmNYRm1ZMFJ4ZEZadVpIUTJOemsyUVdSMmJTc3ljMkpJZVRkUGNUSlhZbXh1SzNobVZHSllDbTUwTlhGNU1HRm1NMFZwU0RSaVZrd3pZMUJVVVZReFdGQlVWVlJ3TUdsUFVUUXpRemxEWkVkWmJXSTBZbFF3ZDBSS05tWnhRVTA1ZVdNNFkzcHRZWElLZDJseFlYUlNiVGt3YlRkMlJtdzJOME5qWmxKS2NDOW1SbUZRUVM5SFZIZzJTMGhZZEV4VVNXcG9Xa1p1ZG5KVldXcElUbTh5ZFRRNVJVazNZVXBGZGdvdllsTnhOMVZ6VWtaTU1GSllVVXREUVZGRlFUSTNSV0pHYURSWWJDOXZjSGx3TVZOR1dEWm5iamhPY1N0eVV6SmtkbXh2UVZGdk1rZzNXblZ0YkVFMENqWXhNeXN3VjBWRU9ERldZMEp6SzFOdFExVXhSbkZSWTNaSVZpdFRlbGRsWlZOdlJuVktlVVIyY0hwc1pFVTBXWGwzYW5kdUswdEZkR013ZVZwV1luZ0tNR2N4ZWpSMWRFZG9hbTFrVWxaSlZuZE9WR3hFTTNwdVdUVkxiWGhDZFRkd1J5OUJRamRZZURKeFYwRkRVR2M0WTNWR1JuVjBjME0wVVZKV1ZuWjBSUXBpYVVKMmRETlVNVmRZWW5KTllXVjNSWFZMTXpWMVJFeGtiMjlZZG5KblpXZDFWVFJFUWk5S1NEVTJNRE5xUjI5amVUUnRMMXBqZEhnelMyOVJUekIwQ2tOVFlYSkNVUzk0YjBobk4zTk1SbU5EVVhBeVdubGlMME4xYTFkT1UwdzBNbmhaWjJGWVMyazNkRzVqUjBwMFVURjNjM1JqTnpKS1kxSTRVM3BWZEZVS1R6QnNPREJpVTFNemNqRXJjRU0xV2t0R2RVZHZlRzVvTUZsSWFVOU1URnA0YVRsSmJqUnFSMnRSUzBOQlVVSkdVR3N6SzJVNUswMVNkMjFrTlVOTlJ3cGxTa1p3VERSTWFGWnJaM2s0WldoYVdtSnlkVlUwYlM5VlUxZHdibEZhTTJjeFVHNU5hSE0zYzNJeVlVVkJOSGxOVTFWTWVFeDZXbkJEVUhNM1dUTnBDbkpHWkdOdVdWVnlWV3BTTlZoNlpDOU9ZVEpNTW5CdmFVdFpUbFJJTVRoR2VIVjBTRE4yY1hjNFJuQnFZMGREWXpGNksxVjJZV3RKZUVGVlNUSkRiR1VLWkhRd05qTXdTakYzZEhScVlVTkpPSHBTT1haTVVIbzBVa1Z2YVVFMmQxQXJNek5TVWxCT2RUTlBOa1pKUTJWMGNWWnZSVTVQVEU1aVNuYzFWWEJCT1FvNWEwMDBUazlSWld0WmVTdEVjV0V3Tm5CeFVVNTNPR0pNZFdaNGJUQnNTbkpIVVZadE4wbEZVMUp2VmpWcFFrNUVTbU5JZVM5NFFuVkxOM1JyU21aSUNtVldTRWhIYWs1NU55ODNOME5DV25VeGRIWlpkM0U0YmpSNmNrTmFkVzV0VjFOck1sSTNiakIzWlZoRWNVWllNVGRyTm10dVEybFBNRzlsVEhwMVRVZ0tTazkzZUVGdlNVSkJSV3d4Y2xKTU1rOVFiSFZuZFRkdVRDOHhWQzlETW5Zd1IxQkpZbGxNVnpOeWIwdFRhRXhOYXpaemVIa3ZZVmd4V1RjMWJUZExVUXBDYkdWWmNsQkpSemQyZFVaSlREWTNiM1ZHVUV0d1FteFNjMmd5VUZjNVRsVXdVbE52VDA5NlRqVkxaVEJpVm1kNVkzTjBRMWR6ZEdGSFUyMVBNSHBEQ210NE5FMHhiekZIU1hSdVRUaERjRkppVlZsQ05TOXhVME15YjBsdmNtaDZkM0EwT1UxNWJFOTJiSGNyZHpOWGRWWXdUR2RtWmpnNVFsWTBXVEEzYkRRS2JFTm9hMWt2U0UxellWZFlORlJFWml0Q1UycDVSVUZKYlZoamExbGpTV0U1VjNWbGRYazNXV0prTURVMFpYSm9TV1pYYWpKUU1VbFhjMDB3YXpVd1R3b3hlR0U0UmpSU1IxcFdWVlZ4ZHpsbk5WUlpZbGhaT0ZWc1VETjBaMU5JVVRReFIzWkVXbUkyWlRsYVNuVkdNa1pCUjNBMVJqZzVSRkZYVGpGMEt6WlhDaXR1VHpOek9GSlZOVzAwTDFJd01HY3llRFJQV0Rsa2RrWkNLMVZSY1VWRFoyZEZRVXd3ZWpjclR6bFhSbU5WZW1KWFRpOURaRW81YTFGUVRtTmlUa0lLT1VwWGFTdHVMMkpoV25wdlJXOUNSa014UVRoT1kxQnlUbmhOTWtGTWRGUlNXV0pEVFRoR05HRlBSRlpIVlc1VVFrWXJWR05UWlU1NlVtdHBZMEkzZHdwMmJWbGtkRGwxWWxSS05VUjZaVzlWU0RCc1FteFJLMDFQTUZCbFV6QnViM0F6VTJNd1ZFVlpZM1l5TkN0YVZVeDVhVFkxVERCTVZYVmhlVkUyTld4NUNqUjBkWEV2YldOTloyWkxNblZ1VHl0eFVFNHlPWEJaYVdWR1JqSXlRek5GT0ZJMFpVUXlPVTVMVkhOVGNsTmtabHBzVTBKM1YyRkdiVXB3TVZRNWFFRUtkamhIU2l0NWNETnRkU3RoVFVGcU0wSnhaazVqTUVWemNrMVNZeTl4ZURoUVVHdHVaRUpyYmtFclEzWkhiVmMzU2pZMVZrMWFhVXAyVjJOUWVuSnlkd3BzWnpSeVZXdHBSV3ROUW13NE56TmxjME5vT1ZCRFozaFpXalpRVFdkc1RVcE1TVlpITkZsUVRXMWlTSEEwY2tGMVRVUXdObE5PTldoUlBUMEtMUzB0TFMxRlRrUWdVbE5CSUZCU1NWWkJWRVVnUzBWWkxTMHRMUzBLCiAgICB0b2tlbjogNTM3NjBkZTEyZmYzZjU1ZmFjZWI1ZTg5NzZhNzViMGE2ODNjODJmYjE0ODgzZDljMTliNGRjMTQ2ZmU2Mjk4NTI5ZmZmZGY2M2U0OTI4NWM3YmQwODAyY2Y4Nzc4OTZlOWJmNTA0NWM0NDZmOGVmNjMyYTE3MWI4OTBlZmM2NGIK\"\n + \ }\n ]\n }" + headers: + cache-control: + - no-cache + content-length: + - '13056' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:29: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: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000001?api-version=2020-11-01 + response: + body: + string: '' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/cf051dc0-fb08-4bbf-8050-d0e077972c37?api-version=2016-03-30 + cache-control: + - no-cache + content-length: + - '0' + date: + - Thu, 10 Jun 2021 09:29:04 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operationresults/cf051dc0-fb08-4bbf-8050-d0e077972c37?api-version=2016-03-30 + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' + status: + code: 202 + message: Accepted +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/recordings/test_aks_create_fqdn_subdomain.yaml b/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/recordings/test_aks_create_fqdn_subdomain.yaml new file mode 100644 index 00000000000..6c0fa5148fe --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/recordings/test_aks_create_fqdn_subdomain.yaml @@ -0,0 +1,154 @@ +interactions: +- request: + body: '{"location": "global"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network private-dns zone create + Connection: + - keep-alive + Content-Length: + - '22' + Content-Type: + - application/json + If-None-Match: + - '*' + ParameterSetName: + - --resource-group --name + User-Agent: + - AZURECLI/2.23.0 azsdk-python-mgmt-privatedns/1.0.0 Python/3.7.4 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi2/providers/Microsoft.Network/privateDnsZones/privatelink.westus2.azmk8s.io?api-version=2018-09-01 + response: + body: + string: '{}' + headers: + azure-asyncoperation: + - https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi2/providers/Microsoft.Network/privateDnsOperationStatuses/RnJvbnRFbmRBc3luY09wZXJhdGlvbjtVcHNlcnRQcml2YXRlRG5zWm9uZTthMWU4OTIxMi01NjQ0LTRhZDgtODBjYi0xOGRkYmRhMDgyMTI=?api-version=2018-09-01 + cache-control: + - private + content-length: + - '2' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 10 Jun 2021 07:10:11 GMT + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi2/providers/Microsoft.Network/privateDnsOperationResults/RnJvbnRFbmRBc3luY09wZXJhdGlvbjtVcHNlcnRQcml2YXRlRG5zWm9uZTthMWU4OTIxMi01NjQ0LTRhZDgtODBjYi0xOGRkYmRhMDgyMTI=?api-version=2018-09-01 + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '11999' + x-powered-by: + - ASP.NET + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network private-dns zone create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name + User-Agent: + - AZURECLI/2.23.0 azsdk-python-mgmt-privatedns/1.0.0 Python/3.7.4 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi2/providers/Microsoft.Network/privateDnsOperationStatuses/RnJvbnRFbmRBc3luY09wZXJhdGlvbjtVcHNlcnRQcml2YXRlRG5zWm9uZTthMWU4OTIxMi01NjQ0LTRhZDgtODBjYi0xOGRkYmRhMDgyMTI=?api-version=2018-09-01 + response: + body: + string: '{"status":"Succeeded"}' + headers: + cache-control: + - private + content-length: + - '22' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 10 Jun 2021 07:10:41 GMT + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '499' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network private-dns zone create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name + User-Agent: + - AZURECLI/2.23.0 azsdk-python-mgmt-privatedns/1.0.0 Python/3.7.4 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi2/providers/Microsoft.Network/privateDnsZones/privatelink.westus2.azmk8s.io?api-version=2018-09-01 + response: + body: + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/acscliapi2\/providers\/Microsoft.Network\/privateDnsZones\/privatelink.westus2.azmk8s.io","name":"privatelink.westus2.azmk8s.io","type":"Microsoft.Network\/privateDnsZones","etag":"bb031264-7b51-4c37-999f-5a743f0f58b1","location":"global","properties":{"maxNumberOfRecordSets":25000,"maxNumberOfVirtualNetworkLinks":1000,"maxNumberOfVirtualNetworkLinksWithRegistration":100,"numberOfRecordSets":1,"numberOfVirtualNetworkLinks":0,"numberOfVirtualNetworkLinksWithRegistration":0,"provisioningState":"Succeeded"}}' + headers: + cache-control: + - private + content-length: + - '588' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 10 Jun 2021 07:10:41 GMT + etag: + - bb031264-7b51-4c37-999f-5a743f0f58b1 + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '499' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/recordings/test_aks_create_scale_with_custom_nodepool_name.yaml b/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/recordings/test_aks_create_scale_with_custom_nodepool_name.yaml new file mode 100644 index 00000000000..58e06577095 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/recordings/test_aks_create_scale_with_custom_nodepool_name.yaml @@ -0,0 +1,1004 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks get-versions + Connection: + - keep-alive + ParameterSetName: + - -l --query + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + 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.18.17\",\n \"upgrades\": + [\n {\n \"orchestratorType\": \"Kubernetes\",\n \"orchestratorVersion\": + \"1.18.19\"\n },\n {\n \"orchestratorType\": \"Kubernetes\",\n + \ \"orchestratorVersion\": \"1.19.9\"\n },\n {\n \"orchestratorType\": + \"Kubernetes\",\n \"orchestratorVersion\": \"1.19.11\"\n }\n ]\n + \ },\n {\n \"orchestratorType\": \"Kubernetes\",\n \"orchestratorVersion\": + \"1.18.19\",\n \"upgrades\": [\n {\n \"orchestratorType\": + \"Kubernetes\",\n \"orchestratorVersion\": \"1.19.9\"\n },\n {\n + \ \"orchestratorType\": \"Kubernetes\",\n \"orchestratorVersion\": + \"1.19.11\"\n }\n ]\n },\n {\n \"orchestratorType\": \"Kubernetes\",\n + \ \"orchestratorVersion\": \"1.19.9\",\n \"upgrades\": [\n {\n + \ \"orchestratorType\": \"Kubernetes\",\n \"orchestratorVersion\": + \"1.19.11\"\n },\n {\n \"orchestratorType\": \"Kubernetes\",\n + \ \"orchestratorVersion\": \"1.20.5\"\n },\n {\n \"orchestratorType\": + \"Kubernetes\",\n \"orchestratorVersion\": \"1.20.7\"\n }\n ]\n + \ },\n {\n \"orchestratorType\": \"Kubernetes\",\n \"orchestratorVersion\": + \"1.19.11\",\n \"default\": true,\n \"upgrades\": [\n {\n \"orchestratorType\": + \"Kubernetes\",\n \"orchestratorVersion\": \"1.20.5\"\n },\n {\n + \ \"orchestratorType\": \"Kubernetes\",\n \"orchestratorVersion\": + \"1.20.7\"\n }\n ]\n },\n {\n \"orchestratorType\": \"Kubernetes\",\n + \ \"orchestratorVersion\": \"1.20.5\",\n \"upgrades\": [\n {\n + \ \"orchestratorType\": \"Kubernetes\",\n \"orchestratorVersion\": + \"1.20.7\"\n },\n {\n \"orchestratorType\": \"Kubernetes\",\n + \ \"orchestratorVersion\": \"1.21.1\",\n \"isPreview\": true\n + \ }\n ]\n },\n {\n \"orchestratorType\": \"Kubernetes\",\n + \ \"orchestratorVersion\": \"1.20.7\",\n \"upgrades\": [\n {\n + \ \"orchestratorType\": \"Kubernetes\",\n \"orchestratorVersion\": + \"1.21.1\",\n \"isPreview\": true\n }\n ]\n },\n {\n + \ \"orchestratorType\": \"Kubernetes\",\n \"orchestratorVersion\": + \"1.21.1\",\n \"isPreview\": true\n }\n ]\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '2414' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:04:36 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - -g -n -p --nodepool-name -l --service-principal --client-secret -k --ssh-key-value + --tags -c + User-Agent: + - AZURECLI/2.23.0 azsdk-python-azure-mgmt-resource/16.1.0 Python/3.7.4 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acscliapi10?api-version=2019-10-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi10","name":"acscliapi10","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '230' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 10 Jun 2021 09:04:36 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", "tags": {"scenario_test": ""}, "properties": {"kubernetesVersion": + "1.20.7", "dnsPrefix": "cliaksdns000004", "agentPoolProfiles": [{"count": 1, + "vmSize": "Standard_DS2_v2", "osType": "Linux", "type": "VirtualMachineScaleSets", + "mode": "System", "enableNodePublicIP": false, "scaleSetPriority": "Regular", + "scaleSetEvictionPolicy": "Delete", "name": "np000005"}], "linuxProfile": {"adminUsername": + "azureuser", "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCbIg1guRHbI0lV11wWDt1r2cUdcNd27CJsg+SfgC7miZeubtwUhbsPdhMQsfDyhOWHq1+ZL0M+nJZV63d/1dhmhtgyOqejUwrPlzKhydsbrsdUor+JmNJDdW01v7BXHyuymT8G4s09jCasNOwiufbP/qp72ruu0bIA1nySsvlf9pCQAuFkAnVnf/rFhUlOkhtRpwcq8SUNY2zRHR/EKb/4NWY1JzR4sa3q2fWIJdrrX0DvLoa5g9bIEd4Df79ba7v+yiUBOS0zT2ll+z4g9izHK3EO5d8hL4jYxcjKs+wcslSYRWrascfscLgMlMGh0CdKeNTDjHpGPncaf3Z+FwwwjWeuiNBxv7bJo13/8B/098KlVDl4GZqsoBCEjPyJfV6hO0y/LkRGkk7oHWKgeWAfKtfLItRp00eZ4fcJNK9kCaSMmEugoZWcI7NGbZXzqFWqbpRI7NcDP9+WIQ+i9U5vqWsqd/zng4kbuAJ6UuKqIzB0upYrLShfQE3SAck8oaLhJqqq56VfDuASNpJKidV+zq27HfSBmbXnkR/5AK337dc3MXKJypoK/QPMLKUAP5XLPbs+NddJQV7EZXd29DLgp+fRIg3edpKdO7ZErWhv7d+3Kws+e1Y+ypmR2WIVSwVyBEUfgv2C8Ts9gnTF4pNcEY/S2aBicz5Ew2+jdyGNQQ== + test@example.com\n"}]}}, "servicePrincipalProfile": {"clientId":"00000000-0000-0000-0000-000000000001", + "secret":"fake-secret"}, "addonProfiles": {}, "enableRBAC": true, "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"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '1625' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g -n -p --nodepool-name -l --service-principal --client-secret -k --ssh-key-value + --tags -c + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi10/providers/Microsoft.ContainerService/managedClusters/cliakstest000003?api-version=2020-11-01 + response: + body: + string: "{\n \"code\": \"ServicePrincipalNotFound\",\n \"message\": \"Service + principal clientID: http://clitest000001 not found in Active Directory tenant + 657a2bb7-9a58-4be7-87f3-643bb3b7cbb5, Please see https://aka.ms/aks-sp-help + for more details.\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '248' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:04:38 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: 400 + message: Bad Request +- request: + body: '{"location": "WestUS2", "tags": {"scenario_test": ""}, "properties": {"kubernetesVersion": + "1.20.7", "dnsPrefix": "cliaksdns000004", "agentPoolProfiles": [{"count": 1, + "vmSize": "Standard_DS2_v2", "osType": "Linux", "type": "VirtualMachineScaleSets", + "mode": "System", "enableNodePublicIP": false, "scaleSetPriority": "Regular", + "scaleSetEvictionPolicy": "Delete", "name": "np000005"}], "linuxProfile": {"adminUsername": + "azureuser", "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCbIg1guRHbI0lV11wWDt1r2cUdcNd27CJsg+SfgC7miZeubtwUhbsPdhMQsfDyhOWHq1+ZL0M+nJZV63d/1dhmhtgyOqejUwrPlzKhydsbrsdUor+JmNJDdW01v7BXHyuymT8G4s09jCasNOwiufbP/qp72ruu0bIA1nySsvlf9pCQAuFkAnVnf/rFhUlOkhtRpwcq8SUNY2zRHR/EKb/4NWY1JzR4sa3q2fWIJdrrX0DvLoa5g9bIEd4Df79ba7v+yiUBOS0zT2ll+z4g9izHK3EO5d8hL4jYxcjKs+wcslSYRWrascfscLgMlMGh0CdKeNTDjHpGPncaf3Z+FwwwjWeuiNBxv7bJo13/8B/098KlVDl4GZqsoBCEjPyJfV6hO0y/LkRGkk7oHWKgeWAfKtfLItRp00eZ4fcJNK9kCaSMmEugoZWcI7NGbZXzqFWqbpRI7NcDP9+WIQ+i9U5vqWsqd/zng4kbuAJ6UuKqIzB0upYrLShfQE3SAck8oaLhJqqq56VfDuASNpJKidV+zq27HfSBmbXnkR/5AK337dc3MXKJypoK/QPMLKUAP5XLPbs+NddJQV7EZXd29DLgp+fRIg3edpKdO7ZErWhv7d+3Kws+e1Y+ypmR2WIVSwVyBEUfgv2C8Ts9gnTF4pNcEY/S2aBicz5Ew2+jdyGNQQ== + test@example.com\n"}]}}, "servicePrincipalProfile": {"clientId":"00000000-0000-0000-0000-000000000001", + "secret":"fake-secret"}, "addonProfiles": {}, "enableRBAC": true, "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"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '1625' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g -n -p --nodepool-name -l --service-principal --client-secret -k --ssh-key-value + --tags -c + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi10/providers/Microsoft.ContainerService/managedClusters/cliakstest000003?api-version=2020-11-01 + response: + body: + string: "{\n \"code\": \"ServicePrincipalNotFound\",\n \"message\": \"Service + principal clientID: http://clitest000001 not found in Active Directory tenant + 657a2bb7-9a58-4be7-87f3-643bb3b7cbb5, Please see https://aka.ms/aks-sp-help + for more details.\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '248' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:04:42 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 400 + message: Bad Request +- request: + body: '{"location": "WestUS2", "tags": {"scenario_test": ""}, "properties": {"kubernetesVersion": + "1.20.7", "dnsPrefix": "cliaksdns000004", "agentPoolProfiles": [{"count": 1, + "vmSize": "Standard_DS2_v2", "osType": "Linux", "type": "VirtualMachineScaleSets", + "mode": "System", "enableNodePublicIP": false, "scaleSetPriority": "Regular", + "scaleSetEvictionPolicy": "Delete", "name": "np000005"}], "linuxProfile": {"adminUsername": + "azureuser", "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCbIg1guRHbI0lV11wWDt1r2cUdcNd27CJsg+SfgC7miZeubtwUhbsPdhMQsfDyhOWHq1+ZL0M+nJZV63d/1dhmhtgyOqejUwrPlzKhydsbrsdUor+JmNJDdW01v7BXHyuymT8G4s09jCasNOwiufbP/qp72ruu0bIA1nySsvlf9pCQAuFkAnVnf/rFhUlOkhtRpwcq8SUNY2zRHR/EKb/4NWY1JzR4sa3q2fWIJdrrX0DvLoa5g9bIEd4Df79ba7v+yiUBOS0zT2ll+z4g9izHK3EO5d8hL4jYxcjKs+wcslSYRWrascfscLgMlMGh0CdKeNTDjHpGPncaf3Z+FwwwjWeuiNBxv7bJo13/8B/098KlVDl4GZqsoBCEjPyJfV6hO0y/LkRGkk7oHWKgeWAfKtfLItRp00eZ4fcJNK9kCaSMmEugoZWcI7NGbZXzqFWqbpRI7NcDP9+WIQ+i9U5vqWsqd/zng4kbuAJ6UuKqIzB0upYrLShfQE3SAck8oaLhJqqq56VfDuASNpJKidV+zq27HfSBmbXnkR/5AK337dc3MXKJypoK/QPMLKUAP5XLPbs+NddJQV7EZXd29DLgp+fRIg3edpKdO7ZErWhv7d+3Kws+e1Y+ypmR2WIVSwVyBEUfgv2C8Ts9gnTF4pNcEY/S2aBicz5Ew2+jdyGNQQ== + test@example.com\n"}]}}, "servicePrincipalProfile": {"clientId":"00000000-0000-0000-0000-000000000001", + "secret":"fake-secret"}, "addonProfiles": {}, "enableRBAC": true, "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"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '1625' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g -n -p --nodepool-name -l --service-principal --client-secret -k --ssh-key-value + --tags -c + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi10/providers/Microsoft.ContainerService/managedClusters/cliakstest000003?api-version=2020-11-01 + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acscliapi10/providers/Microsoft.ContainerService/managedClusters/cliakstest000003\",\n + \ \"location\": \"westus2\",\n \"name\": \"cliakstest000003\",\n \"tags\": + {\n \"scenario_test\": \"\"\n },\n \"type\": \"Microsoft.ContainerService/ManagedClusters\",\n + \ \"properties\": {\n \"provisioningState\": \"Creating\",\n \"powerState\": + {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": \"1.20.7\",\n + \ \"dnsPrefix\": \"cliaksdns000004\",\n \"fqdn\": \"cliaksdns000004-d405bd86.hcp.westus2.azmk8s.io\",\n + \ \"agentPoolProfiles\": [\n {\n \"name\": \"np000005\",\n \"count\": + 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": + \"Managed\",\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n + \ \"provisioningState\": \"Creating\",\n \"powerState\": {\n \"code\": + \"Running\"\n },\n \"orchestratorVersion\": \"1.20.7\",\n \"enableNodePublicIP\": + false,\n \"nodeLabels\": {},\n \"mode\": \"System\",\n \"osType\": + \"Linux\",\n \"nodeImageVersion\": \"AKSUbuntu-1804gen2containerd-2021.05.19\"\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_acscliapi10_cliakstest000003_westus2\",\n \"enableRBAC\": true,\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 },\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/90f01bc9-eb57-4def-a5b0-ffdb9411c615?api-version=2016-03-30 + cache-control: + - no-cache + content-length: + - '2597' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:04:49 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: + - '1197' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - -g -n -p --nodepool-name -l --service-principal --client-secret -k --ssh-key-value + --tags -c + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/90f01bc9-eb57-4def-a5b0-ffdb9411c615?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"c91bf090-57eb-ef4d-a5b0-ffdb9411c615\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-06-10T09:04:49.42Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '121' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:05:19 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - -g -n -p --nodepool-name -l --service-principal --client-secret -k --ssh-key-value + --tags -c + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/90f01bc9-eb57-4def-a5b0-ffdb9411c615?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"c91bf090-57eb-ef4d-a5b0-ffdb9411c615\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-06-10T09:04:49.42Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '121' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:05:49 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - -g -n -p --nodepool-name -l --service-principal --client-secret -k --ssh-key-value + --tags -c + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/90f01bc9-eb57-4def-a5b0-ffdb9411c615?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"c91bf090-57eb-ef4d-a5b0-ffdb9411c615\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-06-10T09:04:49.42Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '121' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:06:19 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - -g -n -p --nodepool-name -l --service-principal --client-secret -k --ssh-key-value + --tags -c + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/90f01bc9-eb57-4def-a5b0-ffdb9411c615?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"c91bf090-57eb-ef4d-a5b0-ffdb9411c615\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-06-10T09:04:49.42Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '121' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:06:50 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - -g -n -p --nodepool-name -l --service-principal --client-secret -k --ssh-key-value + --tags -c + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/90f01bc9-eb57-4def-a5b0-ffdb9411c615?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"c91bf090-57eb-ef4d-a5b0-ffdb9411c615\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-06-10T09:04:49.42Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '121' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:07: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 create + Connection: + - keep-alive + ParameterSetName: + - -g -n -p --nodepool-name -l --service-principal --client-secret -k --ssh-key-value + --tags -c + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/90f01bc9-eb57-4def-a5b0-ffdb9411c615?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"c91bf090-57eb-ef4d-a5b0-ffdb9411c615\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-06-10T09:04:49.42Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '121' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:07:49 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - -g -n -p --nodepool-name -l --service-principal --client-secret -k --ssh-key-value + --tags -c + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/90f01bc9-eb57-4def-a5b0-ffdb9411c615?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"c91bf090-57eb-ef4d-a5b0-ffdb9411c615\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-06-10T09:04:49.42Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '121' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:08:19 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - -g -n -p --nodepool-name -l --service-principal --client-secret -k --ssh-key-value + --tags -c + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/90f01bc9-eb57-4def-a5b0-ffdb9411c615?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"c91bf090-57eb-ef4d-a5b0-ffdb9411c615\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-06-10T09:04:49.42Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '121' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:08:50 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - -g -n -p --nodepool-name -l --service-principal --client-secret -k --ssh-key-value + --tags -c + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/90f01bc9-eb57-4def-a5b0-ffdb9411c615?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"c91bf090-57eb-ef4d-a5b0-ffdb9411c615\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-06-10T09:04:49.42Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '121' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:09: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 create + Connection: + - keep-alive + ParameterSetName: + - -g -n -p --nodepool-name -l --service-principal --client-secret -k --ssh-key-value + --tags -c + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/90f01bc9-eb57-4def-a5b0-ffdb9411c615?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"c91bf090-57eb-ef4d-a5b0-ffdb9411c615\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-06-10T09:04:49.42Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '121' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:09:50 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - -g -n -p --nodepool-name -l --service-principal --client-secret -k --ssh-key-value + --tags -c + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/90f01bc9-eb57-4def-a5b0-ffdb9411c615?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"c91bf090-57eb-ef4d-a5b0-ffdb9411c615\",\n \"status\": + \"Succeeded\",\n \"startTime\": \"2021-06-10T09:04:49.42Z\",\n \"endTime\": + \"2021-06-10T09:10:01.7548655Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '165' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:10: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: + - -g -n -p --nodepool-name -l --service-principal --client-secret -k --ssh-key-value + --tags -c + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi10/providers/Microsoft.ContainerService/managedClusters/cliakstest000003?api-version=2020-11-01 + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acscliapi10/providers/Microsoft.ContainerService/managedClusters/cliakstest000003\",\n + \ \"location\": \"westus2\",\n \"name\": \"cliakstest000003\",\n \"tags\": + {\n \"scenario_test\": \"\"\n },\n \"type\": \"Microsoft.ContainerService/ManagedClusters\",\n + \ \"properties\": {\n \"provisioningState\": \"Succeeded\",\n \"powerState\": + {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": \"1.20.7\",\n + \ \"dnsPrefix\": \"cliaksdns000004\",\n \"fqdn\": \"cliaksdns000004-d405bd86.hcp.westus2.azmk8s.io\",\n + \ \"agentPoolProfiles\": [\n {\n \"name\": \"np000005\",\n \"count\": + 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": + \"Managed\",\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n + \ \"provisioningState\": \"Succeeded\",\n \"powerState\": {\n \"code\": + \"Running\"\n },\n \"orchestratorVersion\": \"1.20.7\",\n \"enableNodePublicIP\": + false,\n \"nodeLabels\": {},\n \"mode\": \"System\",\n \"osType\": + \"Linux\",\n \"nodeImageVersion\": \"AKSUbuntu-1804gen2containerd-2021.05.19\"\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_acscliapi10_cliakstest000003_westus2\",\n \"enableRBAC\": true,\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_acscliapi10_cliakstest000003_westus2/providers/Microsoft.Network/publicIPAddresses/fb765c6b-07ae-421c-9d4c-d097c38a6196\"\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 },\n \"sku\": {\n \"name\": \"Basic\",\n \"tier\": \"Free\"\n + \ }\n }" + headers: + cache-control: + - no-cache + content-length: + - '2859' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:10: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 list + Connection: + - keep-alive + ParameterSetName: + - -g + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi10/providers/Microsoft.ContainerService/managedClusters?api-version=2020-11-01 + response: + body: + string: '{"value":[]}' + headers: + cache-control: + - no-cache + content-length: + - '12' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 10 Jun 2021 09:10:21 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 +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/recordings/test_aks_create_service_no_wait.yaml b/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/recordings/test_aks_create_service_no_wait.yaml new file mode 100644 index 00000000000..1c89ddb92bc --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/recordings/test_aks_create_service_no_wait.yaml @@ -0,0 +1,1943 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks get-versions + Connection: + - keep-alive + ParameterSetName: + - -l --query + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + 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.18.17\",\n \"upgrades\": + [\n {\n \"orchestratorType\": \"Kubernetes\",\n \"orchestratorVersion\": + \"1.18.19\"\n },\n {\n \"orchestratorType\": \"Kubernetes\",\n + \ \"orchestratorVersion\": \"1.19.9\"\n },\n {\n \"orchestratorType\": + \"Kubernetes\",\n \"orchestratorVersion\": \"1.19.11\"\n }\n ]\n + \ },\n {\n \"orchestratorType\": \"Kubernetes\",\n \"orchestratorVersion\": + \"1.18.19\",\n \"upgrades\": [\n {\n \"orchestratorType\": + \"Kubernetes\",\n \"orchestratorVersion\": \"1.19.9\"\n },\n {\n + \ \"orchestratorType\": \"Kubernetes\",\n \"orchestratorVersion\": + \"1.19.11\"\n }\n ]\n },\n {\n \"orchestratorType\": \"Kubernetes\",\n + \ \"orchestratorVersion\": \"1.19.9\",\n \"upgrades\": [\n {\n + \ \"orchestratorType\": \"Kubernetes\",\n \"orchestratorVersion\": + \"1.19.11\"\n },\n {\n \"orchestratorType\": \"Kubernetes\",\n + \ \"orchestratorVersion\": \"1.20.5\"\n },\n {\n \"orchestratorType\": + \"Kubernetes\",\n \"orchestratorVersion\": \"1.20.7\"\n }\n ]\n + \ },\n {\n \"orchestratorType\": \"Kubernetes\",\n \"orchestratorVersion\": + \"1.19.11\",\n \"default\": true,\n \"upgrades\": [\n {\n \"orchestratorType\": + \"Kubernetes\",\n \"orchestratorVersion\": \"1.20.5\"\n },\n {\n + \ \"orchestratorType\": \"Kubernetes\",\n \"orchestratorVersion\": + \"1.20.7\"\n }\n ]\n },\n {\n \"orchestratorType\": \"Kubernetes\",\n + \ \"orchestratorVersion\": \"1.20.5\",\n \"upgrades\": [\n {\n + \ \"orchestratorType\": \"Kubernetes\",\n \"orchestratorVersion\": + \"1.20.7\"\n },\n {\n \"orchestratorType\": \"Kubernetes\",\n + \ \"orchestratorVersion\": \"1.21.1\",\n \"isPreview\": true\n + \ }\n ]\n },\n {\n \"orchestratorType\": \"Kubernetes\",\n + \ \"orchestratorVersion\": \"1.20.7\",\n \"upgrades\": [\n {\n + \ \"orchestratorType\": \"Kubernetes\",\n \"orchestratorVersion\": + \"1.21.1\",\n \"isPreview\": true\n }\n ]\n },\n {\n + \ \"orchestratorType\": \"Kubernetes\",\n \"orchestratorVersion\": + \"1.21.1\",\n \"isPreview\": true\n }\n ]\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '2414' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:25: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 create + Connection: + - keep-alive + ParameterSetName: + - -g -n -p --ssh-key-value -l --service-principal --client-secret -k --node-vm-size + --tags -c --no-wait + User-Agent: + - AZURECLI/2.23.0 azsdk-python-azure-mgmt-resource/16.1.0 Python/3.7.4 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acscliapi11?api-version=2019-10-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11","name":"acscliapi11","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '230' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 10 Jun 2021 09:25:21 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", "tags": {"scenario_test": ""}, "properties": {"kubernetesVersion": + "1.20.7", "dnsPrefix": "cliaksdns000003", "agentPoolProfiles": [{"count": 1, + "vmSize": "Standard_DS2_v2", "osType": "Linux", "type": "VirtualMachineScaleSets", + "mode": "System", "enableNodePublicIP": false, "scaleSetPriority": "Regular", + "scaleSetEvictionPolicy": "Delete", "name": "nodepool1"}], "linuxProfile": {"adminUsername": + "azureuser", "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCbIg1guRHbI0lV11wWDt1r2cUdcNd27CJsg+SfgC7miZeubtwUhbsPdhMQsfDyhOWHq1+ZL0M+nJZV63d/1dhmhtgyOqejUwrPlzKhydsbrsdUor+JmNJDdW01v7BXHyuymT8G4s09jCasNOwiufbP/qp72ruu0bIA1nySsvlf9pCQAuFkAnVnf/rFhUlOkhtRpwcq8SUNY2zRHR/EKb/4NWY1JzR4sa3q2fWIJdrrX0DvLoa5g9bIEd4Df79ba7v+yiUBOS0zT2ll+z4g9izHK3EO5d8hL4jYxcjKs+wcslSYRWrascfscLgMlMGh0CdKeNTDjHpGPncaf3Z+FwwwjWeuiNBxv7bJo13/8B/098KlVDl4GZqsoBCEjPyJfV6hO0y/LkRGkk7oHWKgeWAfKtfLItRp00eZ4fcJNK9kCaSMmEugoZWcI7NGbZXzqFWqbpRI7NcDP9+WIQ+i9U5vqWsqd/zng4kbuAJ6UuKqIzB0upYrLShfQE3SAck8oaLhJqqq56VfDuASNpJKidV+zq27HfSBmbXnkR/5AK337dc3MXKJypoK/QPMLKUAP5XLPbs+NddJQV7EZXd29DLgp+fRIg3edpKdO7ZErWhv7d+3Kws+e1Y+ypmR2WIVSwVyBEUfgv2C8Ts9gnTF4pNcEY/S2aBicz5Ew2+jdyGNQQ== + test@example.com\n"}]}}, "servicePrincipalProfile": {"clientId":"00000000-0000-0000-0000-000000000001", + "secret":"fake-secret"}, "addonProfiles": {}, "enableRBAC": true, "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"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '1622' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g -n -p --ssh-key-value -l --service-principal --client-secret -k --node-vm-size + --tags -c --no-wait + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2020-11-01 + response: + body: + string: "{\n \"code\": \"ServicePrincipalNotFound\",\n \"message\": \"Service + principal clientID: http://clitest000001 not found in Active Directory tenant + 657a2bb7-9a58-4be7-87f3-643bb3b7cbb5, Please see https://aka.ms/aks-sp-help + for more details.\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '248' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:25:22 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: 400 + message: Bad Request +- request: + body: '{"location": "WestUS2", "tags": {"scenario_test": ""}, "properties": {"kubernetesVersion": + "1.20.7", "dnsPrefix": "cliaksdns000003", "agentPoolProfiles": [{"count": 1, + "vmSize": "Standard_DS2_v2", "osType": "Linux", "type": "VirtualMachineScaleSets", + "mode": "System", "enableNodePublicIP": false, "scaleSetPriority": "Regular", + "scaleSetEvictionPolicy": "Delete", "name": "nodepool1"}], "linuxProfile": {"adminUsername": + "azureuser", "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCbIg1guRHbI0lV11wWDt1r2cUdcNd27CJsg+SfgC7miZeubtwUhbsPdhMQsfDyhOWHq1+ZL0M+nJZV63d/1dhmhtgyOqejUwrPlzKhydsbrsdUor+JmNJDdW01v7BXHyuymT8G4s09jCasNOwiufbP/qp72ruu0bIA1nySsvlf9pCQAuFkAnVnf/rFhUlOkhtRpwcq8SUNY2zRHR/EKb/4NWY1JzR4sa3q2fWIJdrrX0DvLoa5g9bIEd4Df79ba7v+yiUBOS0zT2ll+z4g9izHK3EO5d8hL4jYxcjKs+wcslSYRWrascfscLgMlMGh0CdKeNTDjHpGPncaf3Z+FwwwjWeuiNBxv7bJo13/8B/098KlVDl4GZqsoBCEjPyJfV6hO0y/LkRGkk7oHWKgeWAfKtfLItRp00eZ4fcJNK9kCaSMmEugoZWcI7NGbZXzqFWqbpRI7NcDP9+WIQ+i9U5vqWsqd/zng4kbuAJ6UuKqIzB0upYrLShfQE3SAck8oaLhJqqq56VfDuASNpJKidV+zq27HfSBmbXnkR/5AK337dc3MXKJypoK/QPMLKUAP5XLPbs+NddJQV7EZXd29DLgp+fRIg3edpKdO7ZErWhv7d+3Kws+e1Y+ypmR2WIVSwVyBEUfgv2C8Ts9gnTF4pNcEY/S2aBicz5Ew2+jdyGNQQ== + test@example.com\n"}]}}, "servicePrincipalProfile": {"clientId":"00000000-0000-0000-0000-000000000001", + "secret":"fake-secret"}, "addonProfiles": {}, "enableRBAC": true, "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"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '1622' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g -n -p --ssh-key-value -l --service-principal --client-secret -k --node-vm-size + --tags -c --no-wait + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2020-11-01 + response: + body: + string: "{\n \"code\": \"ServicePrincipalNotFound\",\n \"message\": \"Service + principal clientID: http://clitest000001 not found in Active Directory tenant + 657a2bb7-9a58-4be7-87f3-643bb3b7cbb5, Please see https://aka.ms/aks-sp-help + for more details.\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '248' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:25:26 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 400 + message: Bad Request +- request: + body: '{"location": "WestUS2", "tags": {"scenario_test": ""}, "properties": {"kubernetesVersion": + "1.20.7", "dnsPrefix": "cliaksdns000003", "agentPoolProfiles": [{"count": 1, + "vmSize": "Standard_DS2_v2", "osType": "Linux", "type": "VirtualMachineScaleSets", + "mode": "System", "enableNodePublicIP": false, "scaleSetPriority": "Regular", + "scaleSetEvictionPolicy": "Delete", "name": "nodepool1"}], "linuxProfile": {"adminUsername": + "azureuser", "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCbIg1guRHbI0lV11wWDt1r2cUdcNd27CJsg+SfgC7miZeubtwUhbsPdhMQsfDyhOWHq1+ZL0M+nJZV63d/1dhmhtgyOqejUwrPlzKhydsbrsdUor+JmNJDdW01v7BXHyuymT8G4s09jCasNOwiufbP/qp72ruu0bIA1nySsvlf9pCQAuFkAnVnf/rFhUlOkhtRpwcq8SUNY2zRHR/EKb/4NWY1JzR4sa3q2fWIJdrrX0DvLoa5g9bIEd4Df79ba7v+yiUBOS0zT2ll+z4g9izHK3EO5d8hL4jYxcjKs+wcslSYRWrascfscLgMlMGh0CdKeNTDjHpGPncaf3Z+FwwwjWeuiNBxv7bJo13/8B/098KlVDl4GZqsoBCEjPyJfV6hO0y/LkRGkk7oHWKgeWAfKtfLItRp00eZ4fcJNK9kCaSMmEugoZWcI7NGbZXzqFWqbpRI7NcDP9+WIQ+i9U5vqWsqd/zng4kbuAJ6UuKqIzB0upYrLShfQE3SAck8oaLhJqqq56VfDuASNpJKidV+zq27HfSBmbXnkR/5AK337dc3MXKJypoK/QPMLKUAP5XLPbs+NddJQV7EZXd29DLgp+fRIg3edpKdO7ZErWhv7d+3Kws+e1Y+ypmR2WIVSwVyBEUfgv2C8Ts9gnTF4pNcEY/S2aBicz5Ew2+jdyGNQQ== + test@example.com\n"}]}}, "servicePrincipalProfile": {"clientId":"00000000-0000-0000-0000-000000000001", + "secret":"fake-secret"}, "addonProfiles": {}, "enableRBAC": true, "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"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '1622' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g -n -p --ssh-key-value -l --service-principal --client-secret -k --node-vm-size + --tags -c --no-wait + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2020-11-01 + response: + body: + string: "{\n \"code\": \"ServicePrincipalNotFound\",\n \"message\": \"Service + principal clientID: http://clitest000001 not found in Active Directory tenant + 657a2bb7-9a58-4be7-87f3-643bb3b7cbb5, Please see https://aka.ms/aks-sp-help + for more details.\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '248' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:25:30 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: + - '1197' + status: + code: 400 + message: Bad Request +- request: + body: '{"location": "WestUS2", "tags": {"scenario_test": ""}, "properties": {"kubernetesVersion": + "1.20.7", "dnsPrefix": "cliaksdns000003", "agentPoolProfiles": [{"count": 1, + "vmSize": "Standard_DS2_v2", "osType": "Linux", "type": "VirtualMachineScaleSets", + "mode": "System", "enableNodePublicIP": false, "scaleSetPriority": "Regular", + "scaleSetEvictionPolicy": "Delete", "name": "nodepool1"}], "linuxProfile": {"adminUsername": + "azureuser", "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCbIg1guRHbI0lV11wWDt1r2cUdcNd27CJsg+SfgC7miZeubtwUhbsPdhMQsfDyhOWHq1+ZL0M+nJZV63d/1dhmhtgyOqejUwrPlzKhydsbrsdUor+JmNJDdW01v7BXHyuymT8G4s09jCasNOwiufbP/qp72ruu0bIA1nySsvlf9pCQAuFkAnVnf/rFhUlOkhtRpwcq8SUNY2zRHR/EKb/4NWY1JzR4sa3q2fWIJdrrX0DvLoa5g9bIEd4Df79ba7v+yiUBOS0zT2ll+z4g9izHK3EO5d8hL4jYxcjKs+wcslSYRWrascfscLgMlMGh0CdKeNTDjHpGPncaf3Z+FwwwjWeuiNBxv7bJo13/8B/098KlVDl4GZqsoBCEjPyJfV6hO0y/LkRGkk7oHWKgeWAfKtfLItRp00eZ4fcJNK9kCaSMmEugoZWcI7NGbZXzqFWqbpRI7NcDP9+WIQ+i9U5vqWsqd/zng4kbuAJ6UuKqIzB0upYrLShfQE3SAck8oaLhJqqq56VfDuASNpJKidV+zq27HfSBmbXnkR/5AK337dc3MXKJypoK/QPMLKUAP5XLPbs+NddJQV7EZXd29DLgp+fRIg3edpKdO7ZErWhv7d+3Kws+e1Y+ypmR2WIVSwVyBEUfgv2C8Ts9gnTF4pNcEY/S2aBicz5Ew2+jdyGNQQ== + test@example.com\n"}]}}, "servicePrincipalProfile": {"clientId":"00000000-0000-0000-0000-000000000001", + "secret":"fake-secret"}, "addonProfiles": {}, "enableRBAC": true, "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"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '1622' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g -n -p --ssh-key-value -l --service-principal --client-secret -k --node-vm-size + --tags -c --no-wait + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2020-11-01 + response: + body: + string: "{\n \"code\": \"ServicePrincipalNotFound\",\n \"message\": \"Service + principal clientID: http://clitest000001 not found in Active Directory tenant + 657a2bb7-9a58-4be7-87f3-643bb3b7cbb5, Please see https://aka.ms/aks-sp-help + for more details.\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '248' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:25: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-writes: + - '1196' + status: + code: 400 + message: Bad Request +- request: + body: '{"location": "WestUS2", "tags": {"scenario_test": ""}, "properties": {"kubernetesVersion": + "1.20.7", "dnsPrefix": "cliaksdns000003", "agentPoolProfiles": [{"count": 1, + "vmSize": "Standard_DS2_v2", "osType": "Linux", "type": "VirtualMachineScaleSets", + "mode": "System", "enableNodePublicIP": false, "scaleSetPriority": "Regular", + "scaleSetEvictionPolicy": "Delete", "name": "nodepool1"}], "linuxProfile": {"adminUsername": + "azureuser", "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCbIg1guRHbI0lV11wWDt1r2cUdcNd27CJsg+SfgC7miZeubtwUhbsPdhMQsfDyhOWHq1+ZL0M+nJZV63d/1dhmhtgyOqejUwrPlzKhydsbrsdUor+JmNJDdW01v7BXHyuymT8G4s09jCasNOwiufbP/qp72ruu0bIA1nySsvlf9pCQAuFkAnVnf/rFhUlOkhtRpwcq8SUNY2zRHR/EKb/4NWY1JzR4sa3q2fWIJdrrX0DvLoa5g9bIEd4Df79ba7v+yiUBOS0zT2ll+z4g9izHK3EO5d8hL4jYxcjKs+wcslSYRWrascfscLgMlMGh0CdKeNTDjHpGPncaf3Z+FwwwjWeuiNBxv7bJo13/8B/098KlVDl4GZqsoBCEjPyJfV6hO0y/LkRGkk7oHWKgeWAfKtfLItRp00eZ4fcJNK9kCaSMmEugoZWcI7NGbZXzqFWqbpRI7NcDP9+WIQ+i9U5vqWsqd/zng4kbuAJ6UuKqIzB0upYrLShfQE3SAck8oaLhJqqq56VfDuASNpJKidV+zq27HfSBmbXnkR/5AK337dc3MXKJypoK/QPMLKUAP5XLPbs+NddJQV7EZXd29DLgp+fRIg3edpKdO7ZErWhv7d+3Kws+e1Y+ypmR2WIVSwVyBEUfgv2C8Ts9gnTF4pNcEY/S2aBicz5Ew2+jdyGNQQ== + test@example.com\n"}]}}, "servicePrincipalProfile": {"clientId":"00000000-0000-0000-0000-000000000001", + "secret":"fake-secret"}, "addonProfiles": {}, "enableRBAC": true, "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"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '1622' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g -n -p --ssh-key-value -l --service-principal --client-secret -k --node-vm-size + --tags -c --no-wait + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2020-11-01 + response: + body: + string: "{\n \"code\": \"ServicePrincipalNotFound\",\n \"message\": \"Service + principal clientID: http://clitest000001 not found in Active Directory tenant + 657a2bb7-9a58-4be7-87f3-643bb3b7cbb5, Please see https://aka.ms/aks-sp-help + for more details.\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '248' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:25:38 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: + - '1195' + status: + code: 400 + message: Bad Request +- request: + body: '{"location": "WestUS2", "tags": {"scenario_test": ""}, "properties": {"kubernetesVersion": + "1.20.7", "dnsPrefix": "cliaksdns000003", "agentPoolProfiles": [{"count": 1, + "vmSize": "Standard_DS2_v2", "osType": "Linux", "type": "VirtualMachineScaleSets", + "mode": "System", "enableNodePublicIP": false, "scaleSetPriority": "Regular", + "scaleSetEvictionPolicy": "Delete", "name": "nodepool1"}], "linuxProfile": {"adminUsername": + "azureuser", "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCbIg1guRHbI0lV11wWDt1r2cUdcNd27CJsg+SfgC7miZeubtwUhbsPdhMQsfDyhOWHq1+ZL0M+nJZV63d/1dhmhtgyOqejUwrPlzKhydsbrsdUor+JmNJDdW01v7BXHyuymT8G4s09jCasNOwiufbP/qp72ruu0bIA1nySsvlf9pCQAuFkAnVnf/rFhUlOkhtRpwcq8SUNY2zRHR/EKb/4NWY1JzR4sa3q2fWIJdrrX0DvLoa5g9bIEd4Df79ba7v+yiUBOS0zT2ll+z4g9izHK3EO5d8hL4jYxcjKs+wcslSYRWrascfscLgMlMGh0CdKeNTDjHpGPncaf3Z+FwwwjWeuiNBxv7bJo13/8B/098KlVDl4GZqsoBCEjPyJfV6hO0y/LkRGkk7oHWKgeWAfKtfLItRp00eZ4fcJNK9kCaSMmEugoZWcI7NGbZXzqFWqbpRI7NcDP9+WIQ+i9U5vqWsqd/zng4kbuAJ6UuKqIzB0upYrLShfQE3SAck8oaLhJqqq56VfDuASNpJKidV+zq27HfSBmbXnkR/5AK337dc3MXKJypoK/QPMLKUAP5XLPbs+NddJQV7EZXd29DLgp+fRIg3edpKdO7ZErWhv7d+3Kws+e1Y+ypmR2WIVSwVyBEUfgv2C8Ts9gnTF4pNcEY/S2aBicz5Ew2+jdyGNQQ== + test@example.com\n"}]}}, "servicePrincipalProfile": {"clientId":"00000000-0000-0000-0000-000000000001", + "secret":"fake-secret"}, "addonProfiles": {}, "enableRBAC": true, "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"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '1622' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g -n -p --ssh-key-value -l --service-principal --client-secret -k --node-vm-size + --tags -c --no-wait + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2020-11-01 + response: + body: + string: "{\n \"code\": \"ServicePrincipalNotFound\",\n \"message\": \"Service + principal clientID: http://clitest000001 not found in Active Directory tenant + 657a2bb7-9a58-4be7-87f3-643bb3b7cbb5, Please see https://aka.ms/aks-sp-help + for more details.\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '248' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:25:42 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: + - '1194' + status: + code: 400 + message: Bad Request +- request: + body: '{"location": "WestUS2", "tags": {"scenario_test": ""}, "properties": {"kubernetesVersion": + "1.20.7", "dnsPrefix": "cliaksdns000003", "agentPoolProfiles": [{"count": 1, + "vmSize": "Standard_DS2_v2", "osType": "Linux", "type": "VirtualMachineScaleSets", + "mode": "System", "enableNodePublicIP": false, "scaleSetPriority": "Regular", + "scaleSetEvictionPolicy": "Delete", "name": "nodepool1"}], "linuxProfile": {"adminUsername": + "azureuser", "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCbIg1guRHbI0lV11wWDt1r2cUdcNd27CJsg+SfgC7miZeubtwUhbsPdhMQsfDyhOWHq1+ZL0M+nJZV63d/1dhmhtgyOqejUwrPlzKhydsbrsdUor+JmNJDdW01v7BXHyuymT8G4s09jCasNOwiufbP/qp72ruu0bIA1nySsvlf9pCQAuFkAnVnf/rFhUlOkhtRpwcq8SUNY2zRHR/EKb/4NWY1JzR4sa3q2fWIJdrrX0DvLoa5g9bIEd4Df79ba7v+yiUBOS0zT2ll+z4g9izHK3EO5d8hL4jYxcjKs+wcslSYRWrascfscLgMlMGh0CdKeNTDjHpGPncaf3Z+FwwwjWeuiNBxv7bJo13/8B/098KlVDl4GZqsoBCEjPyJfV6hO0y/LkRGkk7oHWKgeWAfKtfLItRp00eZ4fcJNK9kCaSMmEugoZWcI7NGbZXzqFWqbpRI7NcDP9+WIQ+i9U5vqWsqd/zng4kbuAJ6UuKqIzB0upYrLShfQE3SAck8oaLhJqqq56VfDuASNpJKidV+zq27HfSBmbXnkR/5AK337dc3MXKJypoK/QPMLKUAP5XLPbs+NddJQV7EZXd29DLgp+fRIg3edpKdO7ZErWhv7d+3Kws+e1Y+ypmR2WIVSwVyBEUfgv2C8Ts9gnTF4pNcEY/S2aBicz5Ew2+jdyGNQQ== + test@example.com\n"}]}}, "servicePrincipalProfile": {"clientId":"00000000-0000-0000-0000-000000000001", + "secret":"fake-secret"}, "addonProfiles": {}, "enableRBAC": true, "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"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '1622' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g -n -p --ssh-key-value -l --service-principal --client-secret -k --node-vm-size + --tags -c --no-wait + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2020-11-01 + response: + body: + string: "{\n \"code\": \"ServicePrincipalNotFound\",\n \"message\": \"Service + principal clientID: http://clitest000001 not found in Active Directory tenant + 657a2bb7-9a58-4be7-87f3-643bb3b7cbb5, Please see https://aka.ms/aks-sp-help + for more details.\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '248' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:25:46 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: + - '1193' + status: + code: 400 + message: Bad Request +- request: + body: '{"location": "WestUS2", "tags": {"scenario_test": ""}, "properties": {"kubernetesVersion": + "1.20.7", "dnsPrefix": "cliaksdns000003", "agentPoolProfiles": [{"count": 1, + "vmSize": "Standard_DS2_v2", "osType": "Linux", "type": "VirtualMachineScaleSets", + "mode": "System", "enableNodePublicIP": false, "scaleSetPriority": "Regular", + "scaleSetEvictionPolicy": "Delete", "name": "nodepool1"}], "linuxProfile": {"adminUsername": + "azureuser", "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCbIg1guRHbI0lV11wWDt1r2cUdcNd27CJsg+SfgC7miZeubtwUhbsPdhMQsfDyhOWHq1+ZL0M+nJZV63d/1dhmhtgyOqejUwrPlzKhydsbrsdUor+JmNJDdW01v7BXHyuymT8G4s09jCasNOwiufbP/qp72ruu0bIA1nySsvlf9pCQAuFkAnVnf/rFhUlOkhtRpwcq8SUNY2zRHR/EKb/4NWY1JzR4sa3q2fWIJdrrX0DvLoa5g9bIEd4Df79ba7v+yiUBOS0zT2ll+z4g9izHK3EO5d8hL4jYxcjKs+wcslSYRWrascfscLgMlMGh0CdKeNTDjHpGPncaf3Z+FwwwjWeuiNBxv7bJo13/8B/098KlVDl4GZqsoBCEjPyJfV6hO0y/LkRGkk7oHWKgeWAfKtfLItRp00eZ4fcJNK9kCaSMmEugoZWcI7NGbZXzqFWqbpRI7NcDP9+WIQ+i9U5vqWsqd/zng4kbuAJ6UuKqIzB0upYrLShfQE3SAck8oaLhJqqq56VfDuASNpJKidV+zq27HfSBmbXnkR/5AK337dc3MXKJypoK/QPMLKUAP5XLPbs+NddJQV7EZXd29DLgp+fRIg3edpKdO7ZErWhv7d+3Kws+e1Y+ypmR2WIVSwVyBEUfgv2C8Ts9gnTF4pNcEY/S2aBicz5Ew2+jdyGNQQ== + test@example.com\n"}]}}, "servicePrincipalProfile": {"clientId":"00000000-0000-0000-0000-000000000001", + "secret":"fake-secret"}, "addonProfiles": {}, "enableRBAC": true, "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"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '1622' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g -n -p --ssh-key-value -l --service-principal --client-secret -k --node-vm-size + --tags -c --no-wait + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2020-11-01 + response: + body: + string: "{\n \"code\": \"ServicePrincipalNotFound\",\n \"message\": \"Service + principal clientID: http://clitest000001 not found in Active Directory tenant + 657a2bb7-9a58-4be7-87f3-643bb3b7cbb5, Please see https://aka.ms/aks-sp-help + for more details.\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '248' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:25:50 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1192' + status: + code: 400 + message: Bad Request +- request: + body: '{"location": "WestUS2", "tags": {"scenario_test": ""}, "properties": {"kubernetesVersion": + "1.20.7", "dnsPrefix": "cliaksdns000003", "agentPoolProfiles": [{"count": 1, + "vmSize": "Standard_DS2_v2", "osType": "Linux", "type": "VirtualMachineScaleSets", + "mode": "System", "enableNodePublicIP": false, "scaleSetPriority": "Regular", + "scaleSetEvictionPolicy": "Delete", "name": "nodepool1"}], "linuxProfile": {"adminUsername": + "azureuser", "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCbIg1guRHbI0lV11wWDt1r2cUdcNd27CJsg+SfgC7miZeubtwUhbsPdhMQsfDyhOWHq1+ZL0M+nJZV63d/1dhmhtgyOqejUwrPlzKhydsbrsdUor+JmNJDdW01v7BXHyuymT8G4s09jCasNOwiufbP/qp72ruu0bIA1nySsvlf9pCQAuFkAnVnf/rFhUlOkhtRpwcq8SUNY2zRHR/EKb/4NWY1JzR4sa3q2fWIJdrrX0DvLoa5g9bIEd4Df79ba7v+yiUBOS0zT2ll+z4g9izHK3EO5d8hL4jYxcjKs+wcslSYRWrascfscLgMlMGh0CdKeNTDjHpGPncaf3Z+FwwwjWeuiNBxv7bJo13/8B/098KlVDl4GZqsoBCEjPyJfV6hO0y/LkRGkk7oHWKgeWAfKtfLItRp00eZ4fcJNK9kCaSMmEugoZWcI7NGbZXzqFWqbpRI7NcDP9+WIQ+i9U5vqWsqd/zng4kbuAJ6UuKqIzB0upYrLShfQE3SAck8oaLhJqqq56VfDuASNpJKidV+zq27HfSBmbXnkR/5AK337dc3MXKJypoK/QPMLKUAP5XLPbs+NddJQV7EZXd29DLgp+fRIg3edpKdO7ZErWhv7d+3Kws+e1Y+ypmR2WIVSwVyBEUfgv2C8Ts9gnTF4pNcEY/S2aBicz5Ew2+jdyGNQQ== + test@example.com\n"}]}}, "servicePrincipalProfile": {"clientId":"00000000-0000-0000-0000-000000000001", + "secret":"fake-secret"}, "addonProfiles": {}, "enableRBAC": true, "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"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '1622' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g -n -p --ssh-key-value -l --service-principal --client-secret -k --node-vm-size + --tags -c --no-wait + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2020-11-01 + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\",\n + \ \"location\": \"westus2\",\n \"name\": \"cliakstest000002\",\n \"tags\": + {\n \"scenario_test\": \"\"\n },\n \"type\": \"Microsoft.ContainerService/ManagedClusters\",\n + \ \"properties\": {\n \"provisioningState\": \"Creating\",\n \"powerState\": + {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": \"1.20.7\",\n + \ \"dnsPrefix\": \"cliaksdns000003\",\n \"fqdn\": \"cliaksdns000003-d44b7d06.hcp.westus2.azmk8s.io\",\n + \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": + 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": + \"Managed\",\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n + \ \"provisioningState\": \"Creating\",\n \"powerState\": {\n \"code\": + \"Running\"\n },\n \"orchestratorVersion\": \"1.20.7\",\n \"enableNodePublicIP\": + false,\n \"nodeLabels\": {},\n \"mode\": \"System\",\n \"osType\": + \"Linux\",\n \"nodeImageVersion\": \"AKSUbuntu-1804gen2containerd-2021.05.19\"\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_acscliapi11_cliakstest000002_westus2\",\n \"enableRBAC\": true,\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 },\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/4b80517e-deca-46be-8f15-89b95a6b9964?api-version=2016-03-30 + cache-control: + - no-cache + content-length: + - '2594' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:25:55 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: + - '1191' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks wait + Connection: + - keep-alive + ParameterSetName: + - -g -n --created + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2020-11-01 + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\",\n + \ \"location\": \"westus2\",\n \"name\": \"cliakstest000002\",\n \"tags\": + {\n \"scenario_test\": \"\"\n },\n \"type\": \"Microsoft.ContainerService/ManagedClusters\",\n + \ \"properties\": {\n \"provisioningState\": \"Creating\",\n \"powerState\": + {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": \"1.20.7\",\n + \ \"dnsPrefix\": \"cliaksdns000003\",\n \"fqdn\": \"cliaksdns000003-d44b7d06.hcp.westus2.azmk8s.io\",\n + \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": + 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": + \"Managed\",\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n + \ \"provisioningState\": \"Creating\",\n \"powerState\": {\n \"code\": + \"Running\"\n },\n \"orchestratorVersion\": \"1.20.7\",\n \"enableNodePublicIP\": + false,\n \"nodeLabels\": {},\n \"mode\": \"System\",\n \"osType\": + \"Linux\",\n \"nodeImageVersion\": \"AKSUbuntu-1804gen2containerd-2021.05.19\"\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_acscliapi11_cliakstest000002_westus2\",\n \"enableRBAC\": true,\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 },\n \"sku\": {\n \"name\": \"Basic\",\n \"tier\": \"Free\"\n + \ }\n }" + headers: + cache-control: + - no-cache + content-length: + - '2594' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:25:56 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks wait + Connection: + - keep-alive + ParameterSetName: + - -g -n --created + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2020-11-01 + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\",\n + \ \"location\": \"westus2\",\n \"name\": \"cliakstest000002\",\n \"tags\": + {\n \"scenario_test\": \"\"\n },\n \"type\": \"Microsoft.ContainerService/ManagedClusters\",\n + \ \"properties\": {\n \"provisioningState\": \"Creating\",\n \"powerState\": + {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": \"1.20.7\",\n + \ \"dnsPrefix\": \"cliaksdns000003\",\n \"fqdn\": \"cliaksdns000003-d44b7d06.hcp.westus2.azmk8s.io\",\n + \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": + 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": + \"Managed\",\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n + \ \"provisioningState\": \"Creating\",\n \"powerState\": {\n \"code\": + \"Running\"\n },\n \"orchestratorVersion\": \"1.20.7\",\n \"enableNodePublicIP\": + false,\n \"nodeLabels\": {},\n \"mode\": \"System\",\n \"osType\": + \"Linux\",\n \"nodeImageVersion\": \"AKSUbuntu-1804gen2containerd-2021.05.19\"\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_acscliapi11_cliakstest000002_westus2\",\n \"enableRBAC\": true,\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_acscliapi11_cliakstest000002_westus2/providers/Microsoft.Network/publicIPAddresses/8d182549-3ea0-4cd4-abd9-af537e762659\"\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 },\n \"sku\": {\n \"name\": \"Basic\",\n \"tier\": \"Free\"\n + \ }\n }" + headers: + cache-control: + - no-cache + content-length: + - '2854' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:26:26 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks wait + Connection: + - keep-alive + ParameterSetName: + - -g -n --created + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2020-11-01 + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\",\n + \ \"location\": \"westus2\",\n \"name\": \"cliakstest000002\",\n \"tags\": + {\n \"scenario_test\": \"\"\n },\n \"type\": \"Microsoft.ContainerService/ManagedClusters\",\n + \ \"properties\": {\n \"provisioningState\": \"Creating\",\n \"powerState\": + {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": \"1.20.7\",\n + \ \"dnsPrefix\": \"cliaksdns000003\",\n \"fqdn\": \"cliaksdns000003-d44b7d06.hcp.westus2.azmk8s.io\",\n + \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": + 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": + \"Managed\",\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n + \ \"provisioningState\": \"Creating\",\n \"powerState\": {\n \"code\": + \"Running\"\n },\n \"orchestratorVersion\": \"1.20.7\",\n \"enableNodePublicIP\": + false,\n \"nodeLabels\": {},\n \"mode\": \"System\",\n \"osType\": + \"Linux\",\n \"nodeImageVersion\": \"AKSUbuntu-1804gen2containerd-2021.05.19\"\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_acscliapi11_cliakstest000002_westus2\",\n \"enableRBAC\": true,\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_acscliapi11_cliakstest000002_westus2/providers/Microsoft.Network/publicIPAddresses/8d182549-3ea0-4cd4-abd9-af537e762659\"\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 },\n \"sku\": {\n \"name\": \"Basic\",\n \"tier\": \"Free\"\n + \ }\n }" + headers: + cache-control: + - no-cache + content-length: + - '2854' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:26:56 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks wait + Connection: + - keep-alive + ParameterSetName: + - -g -n --created + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2020-11-01 + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\",\n + \ \"location\": \"westus2\",\n \"name\": \"cliakstest000002\",\n \"tags\": + {\n \"scenario_test\": \"\"\n },\n \"type\": \"Microsoft.ContainerService/ManagedClusters\",\n + \ \"properties\": {\n \"provisioningState\": \"Creating\",\n \"powerState\": + {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": \"1.20.7\",\n + \ \"dnsPrefix\": \"cliaksdns000003\",\n \"fqdn\": \"cliaksdns000003-d44b7d06.hcp.westus2.azmk8s.io\",\n + \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": + 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": + \"Managed\",\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n + \ \"provisioningState\": \"Creating\",\n \"powerState\": {\n \"code\": + \"Running\"\n },\n \"orchestratorVersion\": \"1.20.7\",\n \"enableNodePublicIP\": + false,\n \"nodeLabels\": {},\n \"mode\": \"System\",\n \"osType\": + \"Linux\",\n \"nodeImageVersion\": \"AKSUbuntu-1804gen2containerd-2021.05.19\"\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_acscliapi11_cliakstest000002_westus2\",\n \"enableRBAC\": true,\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_acscliapi11_cliakstest000002_westus2/providers/Microsoft.Network/publicIPAddresses/8d182549-3ea0-4cd4-abd9-af537e762659\"\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 },\n \"sku\": {\n \"name\": \"Basic\",\n \"tier\": \"Free\"\n + \ }\n }" + headers: + cache-control: + - no-cache + content-length: + - '2854' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks wait + Connection: + - keep-alive + ParameterSetName: + - -g -n --created + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2020-11-01 + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\",\n + \ \"location\": \"westus2\",\n \"name\": \"cliakstest000002\",\n \"tags\": + {\n \"scenario_test\": \"\"\n },\n \"type\": \"Microsoft.ContainerService/ManagedClusters\",\n + \ \"properties\": {\n \"provisioningState\": \"Creating\",\n \"powerState\": + {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": \"1.20.7\",\n + \ \"dnsPrefix\": \"cliaksdns000003\",\n \"fqdn\": \"cliaksdns000003-d44b7d06.hcp.westus2.azmk8s.io\",\n + \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": + 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": + \"Managed\",\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n + \ \"provisioningState\": \"Creating\",\n \"powerState\": {\n \"code\": + \"Running\"\n },\n \"orchestratorVersion\": \"1.20.7\",\n \"enableNodePublicIP\": + false,\n \"nodeLabels\": {},\n \"mode\": \"System\",\n \"osType\": + \"Linux\",\n \"nodeImageVersion\": \"AKSUbuntu-1804gen2containerd-2021.05.19\"\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_acscliapi11_cliakstest000002_westus2\",\n \"enableRBAC\": true,\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_acscliapi11_cliakstest000002_westus2/providers/Microsoft.Network/publicIPAddresses/8d182549-3ea0-4cd4-abd9-af537e762659\"\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 },\n \"sku\": {\n \"name\": \"Basic\",\n \"tier\": \"Free\"\n + \ }\n }" + headers: + cache-control: + - no-cache + content-length: + - '2854' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:27:57 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks wait + Connection: + - keep-alive + ParameterSetName: + - -g -n --created + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2020-11-01 + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\",\n + \ \"location\": \"westus2\",\n \"name\": \"cliakstest000002\",\n \"tags\": + {\n \"scenario_test\": \"\"\n },\n \"type\": \"Microsoft.ContainerService/ManagedClusters\",\n + \ \"properties\": {\n \"provisioningState\": \"Creating\",\n \"powerState\": + {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": \"1.20.7\",\n + \ \"dnsPrefix\": \"cliaksdns000003\",\n \"fqdn\": \"cliaksdns000003-d44b7d06.hcp.westus2.azmk8s.io\",\n + \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": + 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": + \"Managed\",\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n + \ \"provisioningState\": \"Creating\",\n \"powerState\": {\n \"code\": + \"Running\"\n },\n \"orchestratorVersion\": \"1.20.7\",\n \"enableNodePublicIP\": + false,\n \"nodeLabels\": {},\n \"mode\": \"System\",\n \"osType\": + \"Linux\",\n \"nodeImageVersion\": \"AKSUbuntu-1804gen2containerd-2021.05.19\"\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_acscliapi11_cliakstest000002_westus2\",\n \"enableRBAC\": true,\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_acscliapi11_cliakstest000002_westus2/providers/Microsoft.Network/publicIPAddresses/8d182549-3ea0-4cd4-abd9-af537e762659\"\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 },\n \"sku\": {\n \"name\": \"Basic\",\n \"tier\": \"Free\"\n + \ }\n }" + headers: + cache-control: + - no-cache + content-length: + - '2854' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:28: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks wait + Connection: + - keep-alive + ParameterSetName: + - -g -n --created + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2020-11-01 + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\",\n + \ \"location\": \"westus2\",\n \"name\": \"cliakstest000002\",\n \"tags\": + {\n \"scenario_test\": \"\"\n },\n \"type\": \"Microsoft.ContainerService/ManagedClusters\",\n + \ \"properties\": {\n \"provisioningState\": \"Succeeded\",\n \"powerState\": + {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": \"1.20.7\",\n + \ \"dnsPrefix\": \"cliaksdns000003\",\n \"fqdn\": \"cliaksdns000003-d44b7d06.hcp.westus2.azmk8s.io\",\n + \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": + 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": + \"Managed\",\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n + \ \"provisioningState\": \"Succeeded\",\n \"powerState\": {\n \"code\": + \"Running\"\n },\n \"orchestratorVersion\": \"1.20.7\",\n \"enableNodePublicIP\": + false,\n \"nodeLabels\": {},\n \"mode\": \"System\",\n \"osType\": + \"Linux\",\n \"nodeImageVersion\": \"AKSUbuntu-1804gen2containerd-2021.05.19\"\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_acscliapi11_cliakstest000002_westus2\",\n \"enableRBAC\": true,\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_acscliapi11_cliakstest000002_westus2/providers/Microsoft.Network/publicIPAddresses/8d182549-3ea0-4cd4-abd9-af537e762659\"\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 },\n \"sku\": {\n \"name\": \"Basic\",\n \"tier\": \"Free\"\n + \ }\n }" + headers: + cache-control: + - no-cache + content-length: + - '2856' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks show + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2020-11-01 + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\",\n + \ \"location\": \"westus2\",\n \"name\": \"cliakstest000002\",\n \"tags\": + {\n \"scenario_test\": \"\"\n },\n \"type\": \"Microsoft.ContainerService/ManagedClusters\",\n + \ \"properties\": {\n \"provisioningState\": \"Succeeded\",\n \"powerState\": + {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": \"1.20.7\",\n + \ \"dnsPrefix\": \"cliaksdns000003\",\n \"fqdn\": \"cliaksdns000003-d44b7d06.hcp.westus2.azmk8s.io\",\n + \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": + 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": + \"Managed\",\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n + \ \"provisioningState\": \"Succeeded\",\n \"powerState\": {\n \"code\": + \"Running\"\n },\n \"orchestratorVersion\": \"1.20.7\",\n \"enableNodePublicIP\": + false,\n \"nodeLabels\": {},\n \"mode\": \"System\",\n \"osType\": + \"Linux\",\n \"nodeImageVersion\": \"AKSUbuntu-1804gen2containerd-2021.05.19\"\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_acscliapi11_cliakstest000002_westus2\",\n \"enableRBAC\": true,\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_acscliapi11_cliakstest000002_westus2/providers/Microsoft.Network/publicIPAddresses/8d182549-3ea0-4cd4-abd9-af537e762659\"\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 },\n \"sku\": {\n \"name\": \"Basic\",\n \"tier\": \"Free\"\n + \ }\n }" + headers: + cache-control: + - no-cache + content-length: + - '2856' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:28: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks get-versions + Connection: + - keep-alive + ParameterSetName: + - -l + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + 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.18.17\",\n \"upgrades\": + [\n {\n \"orchestratorType\": \"Kubernetes\",\n \"orchestratorVersion\": + \"1.18.19\"\n },\n {\n \"orchestratorType\": \"Kubernetes\",\n + \ \"orchestratorVersion\": \"1.19.9\"\n },\n {\n \"orchestratorType\": + \"Kubernetes\",\n \"orchestratorVersion\": \"1.19.11\"\n }\n ]\n + \ },\n {\n \"orchestratorType\": \"Kubernetes\",\n \"orchestratorVersion\": + \"1.18.19\",\n \"upgrades\": [\n {\n \"orchestratorType\": + \"Kubernetes\",\n \"orchestratorVersion\": \"1.19.9\"\n },\n {\n + \ \"orchestratorType\": \"Kubernetes\",\n \"orchestratorVersion\": + \"1.19.11\"\n }\n ]\n },\n {\n \"orchestratorType\": \"Kubernetes\",\n + \ \"orchestratorVersion\": \"1.19.9\",\n \"upgrades\": [\n {\n + \ \"orchestratorType\": \"Kubernetes\",\n \"orchestratorVersion\": + \"1.19.11\"\n },\n {\n \"orchestratorType\": \"Kubernetes\",\n + \ \"orchestratorVersion\": \"1.20.5\"\n },\n {\n \"orchestratorType\": + \"Kubernetes\",\n \"orchestratorVersion\": \"1.20.7\"\n }\n ]\n + \ },\n {\n \"orchestratorType\": \"Kubernetes\",\n \"orchestratorVersion\": + \"1.19.11\",\n \"default\": true,\n \"upgrades\": [\n {\n \"orchestratorType\": + \"Kubernetes\",\n \"orchestratorVersion\": \"1.20.5\"\n },\n {\n + \ \"orchestratorType\": \"Kubernetes\",\n \"orchestratorVersion\": + \"1.20.7\"\n }\n ]\n },\n {\n \"orchestratorType\": \"Kubernetes\",\n + \ \"orchestratorVersion\": \"1.20.5\",\n \"upgrades\": [\n {\n + \ \"orchestratorType\": \"Kubernetes\",\n \"orchestratorVersion\": + \"1.20.7\"\n },\n {\n \"orchestratorType\": \"Kubernetes\",\n + \ \"orchestratorVersion\": \"1.21.1\",\n \"isPreview\": true\n + \ }\n ]\n },\n {\n \"orchestratorType\": \"Kubernetes\",\n + \ \"orchestratorVersion\": \"1.20.7\",\n \"upgrades\": [\n {\n + \ \"orchestratorType\": \"Kubernetes\",\n \"orchestratorVersion\": + \"1.21.1\",\n \"isPreview\": true\n }\n ]\n },\n {\n + \ \"orchestratorType\": \"Kubernetes\",\n \"orchestratorVersion\": + \"1.21.1\",\n \"isPreview\": true\n }\n ]\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '2414' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:28: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks get-versions + Connection: + - keep-alive + ParameterSetName: + - -l -o + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + 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.18.17\",\n \"upgrades\": + [\n {\n \"orchestratorType\": \"Kubernetes\",\n \"orchestratorVersion\": + \"1.18.19\"\n },\n {\n \"orchestratorType\": \"Kubernetes\",\n + \ \"orchestratorVersion\": \"1.19.9\"\n },\n {\n \"orchestratorType\": + \"Kubernetes\",\n \"orchestratorVersion\": \"1.19.11\"\n }\n ]\n + \ },\n {\n \"orchestratorType\": \"Kubernetes\",\n \"orchestratorVersion\": + \"1.18.19\",\n \"upgrades\": [\n {\n \"orchestratorType\": + \"Kubernetes\",\n \"orchestratorVersion\": \"1.19.9\"\n },\n {\n + \ \"orchestratorType\": \"Kubernetes\",\n \"orchestratorVersion\": + \"1.19.11\"\n }\n ]\n },\n {\n \"orchestratorType\": \"Kubernetes\",\n + \ \"orchestratorVersion\": \"1.19.9\",\n \"upgrades\": [\n {\n + \ \"orchestratorType\": \"Kubernetes\",\n \"orchestratorVersion\": + \"1.19.11\"\n },\n {\n \"orchestratorType\": \"Kubernetes\",\n + \ \"orchestratorVersion\": \"1.20.5\"\n },\n {\n \"orchestratorType\": + \"Kubernetes\",\n \"orchestratorVersion\": \"1.20.7\"\n }\n ]\n + \ },\n {\n \"orchestratorType\": \"Kubernetes\",\n \"orchestratorVersion\": + \"1.19.11\",\n \"default\": true,\n \"upgrades\": [\n {\n \"orchestratorType\": + \"Kubernetes\",\n \"orchestratorVersion\": \"1.20.5\"\n },\n {\n + \ \"orchestratorType\": \"Kubernetes\",\n \"orchestratorVersion\": + \"1.20.7\"\n }\n ]\n },\n {\n \"orchestratorType\": \"Kubernetes\",\n + \ \"orchestratorVersion\": \"1.20.5\",\n \"upgrades\": [\n {\n + \ \"orchestratorType\": \"Kubernetes\",\n \"orchestratorVersion\": + \"1.20.7\"\n },\n {\n \"orchestratorType\": \"Kubernetes\",\n + \ \"orchestratorVersion\": \"1.21.1\",\n \"isPreview\": true\n + \ }\n ]\n },\n {\n \"orchestratorType\": \"Kubernetes\",\n + \ \"orchestratorVersion\": \"1.20.7\",\n \"upgrades\": [\n {\n + \ \"orchestratorType\": \"Kubernetes\",\n \"orchestratorVersion\": + \"1.21.1\",\n \"isPreview\": true\n }\n ]\n },\n {\n + \ \"orchestratorType\": \"Kubernetes\",\n \"orchestratorVersion\": + \"1.21.1\",\n \"isPreview\": true\n }\n ]\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '2414' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:28: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks get-upgrades + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/upgradeProfiles/default?api-version=2020-11-01 + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/upgradeprofiles/default\",\n + \ \"name\": \"default\",\n \"type\": \"Microsoft.ContainerService/managedClusters/upgradeprofiles\",\n + \ \"properties\": {\n \"controlPlaneProfile\": {\n \"kubernetesVersion\": + \"1.20.7\",\n \"osType\": \"Linux\",\n \"upgrades\": [\n {\n \"kubernetesVersion\": + \"1.21.1\",\n \"isPreview\": true\n }\n ]\n },\n \"agentPoolProfiles\": + null\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '523' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:29: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 get-upgrades + Connection: + - keep-alive + ParameterSetName: + - -g -n --output + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/upgradeProfiles/default?api-version=2020-11-01 + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/upgradeprofiles/default\",\n + \ \"name\": \"default\",\n \"type\": \"Microsoft.ContainerService/managedClusters/upgradeprofiles\",\n + \ \"properties\": {\n \"controlPlaneProfile\": {\n \"kubernetesVersion\": + \"1.20.7\",\n \"osType\": \"Linux\",\n \"upgrades\": [\n {\n \"kubernetesVersion\": + \"1.21.1\",\n \"isPreview\": true\n }\n ]\n },\n \"agentPoolProfiles\": + null\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '523' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:29:01 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g -n --yes + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2020-11-01 + response: + body: + string: '' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/22136886-1bc6-46a9-827c-6fc861abe2db?api-version=2016-03-30 + cache-control: + - no-cache + content-length: + - '0' + date: + - Thu, 10 Jun 2021 09:29:01 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operationresults/22136886-1bc6-46a9-827c-6fc861abe2db?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: + - '14998' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks delete + Connection: + - keep-alive + ParameterSetName: + - -g -n --yes + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/22136886-1bc6-46a9-827c-6fc861abe2db?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"86681322-c61b-a946-827c-6fc861abe2db\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-06-10T09:29:02.0666666Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:29:31 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks delete + Connection: + - keep-alive + ParameterSetName: + - -g -n --yes + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/22136886-1bc6-46a9-827c-6fc861abe2db?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"86681322-c61b-a946-827c-6fc861abe2db\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-06-10T09:29:02.0666666Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:30:02 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks delete + Connection: + - keep-alive + ParameterSetName: + - -g -n --yes + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/22136886-1bc6-46a9-827c-6fc861abe2db?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"86681322-c61b-a946-827c-6fc861abe2db\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-06-10T09:29:02.0666666Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:30: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 + ParameterSetName: + - -g -n --yes + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/22136886-1bc6-46a9-827c-6fc861abe2db?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"86681322-c61b-a946-827c-6fc861abe2db\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-06-10T09:29:02.0666666Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:31:02 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks delete + Connection: + - keep-alive + ParameterSetName: + - -g -n --yes + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/22136886-1bc6-46a9-827c-6fc861abe2db?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"86681322-c61b-a946-827c-6fc861abe2db\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-06-10T09:29:02.0666666Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09: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 + ParameterSetName: + - -g -n --yes + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/22136886-1bc6-46a9-827c-6fc861abe2db?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"86681322-c61b-a946-827c-6fc861abe2db\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-06-10T09:29:02.0666666Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:32:02 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/recordings/test_aks_create_slb_vmss_with_default_mgd_outbound_ip_then_update.yaml b/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/recordings/test_aks_create_slb_vmss_with_default_mgd_outbound_ip_then_update.yaml new file mode 100644 index 00000000000..d2ff09d2eaf --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/recordings/test_aks_create_slb_vmss_with_default_mgd_outbound_ip_then_update.yaml @@ -0,0 +1,110 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --dns-name-prefix --node-count --ssh-key-value + --service-principal --client-secret --load-balancer-sku --vm-set-type --no-wait + User-Agent: + - AZURECLI/2.23.0 azsdk-python-azure-mgmt-resource/16.1.0 Python/3.7.4 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acscliapi8?api-version=2019-10-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi8","name":"acscliapi8","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '227' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 10 Jun 2021 06:09:17 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": "WestUS", "properties": {"kubernetesVersion": "", "dnsPrefix": + "cliaksdns000002", "agentPoolProfiles": [{"count": 1, "vmSize": "Standard_DS2_v2", + "osType": "Linux", "type": "VirtualMachineScaleSets", "mode": "System", "enableNodePublicIP": + false, "scaleSetPriority": "Regular", "scaleSetEvictionPolicy": "Delete", "name": + "nodepool1"}], "linuxProfile": {"adminUsername": "azureuser", "ssh": {"publicKeys": + [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCbIg1guRHbI0lV11wWDt1r2cUdcNd27CJsg+SfgC7miZeubtwUhbsPdhMQsfDyhOWHq1+ZL0M+nJZV63d/1dhmhtgyOqejUwrPlzKhydsbrsdUor+JmNJDdW01v7BXHyuymT8G4s09jCasNOwiufbP/qp72ruu0bIA1nySsvlf9pCQAuFkAnVnf/rFhUlOkhtRpwcq8SUNY2zRHR/EKb/4NWY1JzR4sa3q2fWIJdrrX0DvLoa5g9bIEd4Df79ba7v+yiUBOS0zT2ll+z4g9izHK3EO5d8hL4jYxcjKs+wcslSYRWrascfscLgMlMGh0CdKeNTDjHpGPncaf3Z+FwwwjWeuiNBxv7bJo13/8B/098KlVDl4GZqsoBCEjPyJfV6hO0y/LkRGkk7oHWKgeWAfKtfLItRp00eZ4fcJNK9kCaSMmEugoZWcI7NGbZXzqFWqbpRI7NcDP9+WIQ+i9U5vqWsqd/zng4kbuAJ6UuKqIzB0upYrLShfQE3SAck8oaLhJqqq56VfDuASNpJKidV+zq27HfSBmbXnkR/5AK337dc3MXKJypoK/QPMLKUAP5XLPbs+NddJQV7EZXd29DLgp+fRIg3edpKdO7ZErWhv7d+3Kws+e1Y+ypmR2WIVSwVyBEUfgv2C8Ts9gnTF4pNcEY/S2aBicz5Ew2+jdyGNQQ== + test@example.com\n"}]}}, "servicePrincipalProfile": {"clientId":"00000000-0000-0000-0000-000000000001", + "secret":"fake-secret"}, "addonProfiles": {}, "enableRBAC": true, "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"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '1584' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --resource-group --name --location --dns-name-prefix --node-count --ssh-key-value + --service-principal --client-secret --load-balancer-sku --vm-set-type --no-wait + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi8/providers/Microsoft.ContainerService/managedClusters/cliakstest000001?api-version=2020-11-01 + response: + body: + string: "{\n \"code\": \"ServicePrincipalNotFound\",\n \"message\": \"Service + principal clientID: http://clitest000001 not found in Active Directory tenant + 657a2bb7-9a58-4be7-87f3-643bb3b7cbb5, Please see https://aka.ms/aks-sp-help + for more details.\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '248' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 06:09:18 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: 400 + message: Bad Request +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/recordings/test_aks_nodepool_create_scale_delete.yaml b/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/recordings/test_aks_nodepool_create_scale_delete.yaml new file mode 100644 index 00000000000..b82b4fa741f --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/recordings/test_aks_nodepool_create_scale_delete.yaml @@ -0,0 +1,1894 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --dns-name-prefix --node-count --ssh-key-value + --service-principal --client-secret + User-Agent: + - AZURECLI/2.23.0 azsdk-python-azure-mgmt-resource/16.1.0 Python/3.7.4 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acscliapi11?api-version=2019-10-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11","name":"acscliapi11","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '230' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 10 Jun 2021 09:25:21 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": {"kubernetesVersion": "", "dnsPrefix": + "cliaksdns000002", "agentPoolProfiles": [{"count": 1, "vmSize": "Standard_DS2_v2", + "osType": "Linux", "type": "VirtualMachineScaleSets", "mode": "System", "enableNodePublicIP": + false, "scaleSetPriority": "Regular", "scaleSetEvictionPolicy": "Delete", "name": + "nodepool1"}], "linuxProfile": {"adminUsername": "azureuser", "ssh": {"publicKeys": + [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCbIg1guRHbI0lV11wWDt1r2cUdcNd27CJsg+SfgC7miZeubtwUhbsPdhMQsfDyhOWHq1+ZL0M+nJZV63d/1dhmhtgyOqejUwrPlzKhydsbrsdUor+JmNJDdW01v7BXHyuymT8G4s09jCasNOwiufbP/qp72ruu0bIA1nySsvlf9pCQAuFkAnVnf/rFhUlOkhtRpwcq8SUNY2zRHR/EKb/4NWY1JzR4sa3q2fWIJdrrX0DvLoa5g9bIEd4Df79ba7v+yiUBOS0zT2ll+z4g9izHK3EO5d8hL4jYxcjKs+wcslSYRWrascfscLgMlMGh0CdKeNTDjHpGPncaf3Z+FwwwjWeuiNBxv7bJo13/8B/098KlVDl4GZqsoBCEjPyJfV6hO0y/LkRGkk7oHWKgeWAfKtfLItRp00eZ4fcJNK9kCaSMmEugoZWcI7NGbZXzqFWqbpRI7NcDP9+WIQ+i9U5vqWsqd/zng4kbuAJ6UuKqIzB0upYrLShfQE3SAck8oaLhJqqq56VfDuASNpJKidV+zq27HfSBmbXnkR/5AK337dc3MXKJypoK/QPMLKUAP5XLPbs+NddJQV7EZXd29DLgp+fRIg3edpKdO7ZErWhv7d+3Kws+e1Y+ypmR2WIVSwVyBEUfgv2C8Ts9gnTF4pNcEY/S2aBicz5Ew2+jdyGNQQ== + test@example.com\n"}]}}, "servicePrincipalProfile": {"clientId":"00000000-0000-0000-0000-000000000001", + "secret":"fake-secret"}, "addonProfiles": {}, "enableRBAC": true, "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"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '1585' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --resource-group --name --location --dns-name-prefix --node-count --ssh-key-value + --service-principal --client-secret + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000001?api-version=2020-11-01 + response: + body: + string: "{\n \"code\": \"ServicePrincipalNotFound\",\n \"message\": \"Service + principal clientID: http://clitest000001 not found in Active Directory tenant + 657a2bb7-9a58-4be7-87f3-643bb3b7cbb5, Please see https://aka.ms/aks-sp-help + for more details.\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '248' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:25:21 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: 400 + message: Bad Request +- request: + body: '{"location": "WestUS2", "properties": {"kubernetesVersion": "", "dnsPrefix": + "cliaksdns000002", "agentPoolProfiles": [{"count": 1, "vmSize": "Standard_DS2_v2", + "osType": "Linux", "type": "VirtualMachineScaleSets", "mode": "System", "enableNodePublicIP": + false, "scaleSetPriority": "Regular", "scaleSetEvictionPolicy": "Delete", "name": + "nodepool1"}], "linuxProfile": {"adminUsername": "azureuser", "ssh": {"publicKeys": + [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCbIg1guRHbI0lV11wWDt1r2cUdcNd27CJsg+SfgC7miZeubtwUhbsPdhMQsfDyhOWHq1+ZL0M+nJZV63d/1dhmhtgyOqejUwrPlzKhydsbrsdUor+JmNJDdW01v7BXHyuymT8G4s09jCasNOwiufbP/qp72ruu0bIA1nySsvlf9pCQAuFkAnVnf/rFhUlOkhtRpwcq8SUNY2zRHR/EKb/4NWY1JzR4sa3q2fWIJdrrX0DvLoa5g9bIEd4Df79ba7v+yiUBOS0zT2ll+z4g9izHK3EO5d8hL4jYxcjKs+wcslSYRWrascfscLgMlMGh0CdKeNTDjHpGPncaf3Z+FwwwjWeuiNBxv7bJo13/8B/098KlVDl4GZqsoBCEjPyJfV6hO0y/LkRGkk7oHWKgeWAfKtfLItRp00eZ4fcJNK9kCaSMmEugoZWcI7NGbZXzqFWqbpRI7NcDP9+WIQ+i9U5vqWsqd/zng4kbuAJ6UuKqIzB0upYrLShfQE3SAck8oaLhJqqq56VfDuASNpJKidV+zq27HfSBmbXnkR/5AK337dc3MXKJypoK/QPMLKUAP5XLPbs+NddJQV7EZXd29DLgp+fRIg3edpKdO7ZErWhv7d+3Kws+e1Y+ypmR2WIVSwVyBEUfgv2C8Ts9gnTF4pNcEY/S2aBicz5Ew2+jdyGNQQ== + test@example.com\n"}]}}, "servicePrincipalProfile": {"clientId":"00000000-0000-0000-0000-000000000001", + "secret":"fake-secret"}, "addonProfiles": {}, "enableRBAC": true, "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"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '1585' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --resource-group --name --location --dns-name-prefix --node-count --ssh-key-value + --service-principal --client-secret + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000001?api-version=2020-11-01 + response: + body: + string: "{\n \"code\": \"ServicePrincipalNotFound\",\n \"message\": \"Service + principal clientID: http://clitest000001 not found in Active Directory tenant + 657a2bb7-9a58-4be7-87f3-643bb3b7cbb5, Please see https://aka.ms/aks-sp-help + for more details.\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '248' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:25:26 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 400 + message: Bad Request +- request: + body: '{"location": "WestUS2", "properties": {"kubernetesVersion": "", "dnsPrefix": + "cliaksdns000002", "agentPoolProfiles": [{"count": 1, "vmSize": "Standard_DS2_v2", + "osType": "Linux", "type": "VirtualMachineScaleSets", "mode": "System", "enableNodePublicIP": + false, "scaleSetPriority": "Regular", "scaleSetEvictionPolicy": "Delete", "name": + "nodepool1"}], "linuxProfile": {"adminUsername": "azureuser", "ssh": {"publicKeys": + [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCbIg1guRHbI0lV11wWDt1r2cUdcNd27CJsg+SfgC7miZeubtwUhbsPdhMQsfDyhOWHq1+ZL0M+nJZV63d/1dhmhtgyOqejUwrPlzKhydsbrsdUor+JmNJDdW01v7BXHyuymT8G4s09jCasNOwiufbP/qp72ruu0bIA1nySsvlf9pCQAuFkAnVnf/rFhUlOkhtRpwcq8SUNY2zRHR/EKb/4NWY1JzR4sa3q2fWIJdrrX0DvLoa5g9bIEd4Df79ba7v+yiUBOS0zT2ll+z4g9izHK3EO5d8hL4jYxcjKs+wcslSYRWrascfscLgMlMGh0CdKeNTDjHpGPncaf3Z+FwwwjWeuiNBxv7bJo13/8B/098KlVDl4GZqsoBCEjPyJfV6hO0y/LkRGkk7oHWKgeWAfKtfLItRp00eZ4fcJNK9kCaSMmEugoZWcI7NGbZXzqFWqbpRI7NcDP9+WIQ+i9U5vqWsqd/zng4kbuAJ6UuKqIzB0upYrLShfQE3SAck8oaLhJqqq56VfDuASNpJKidV+zq27HfSBmbXnkR/5AK337dc3MXKJypoK/QPMLKUAP5XLPbs+NddJQV7EZXd29DLgp+fRIg3edpKdO7ZErWhv7d+3Kws+e1Y+ypmR2WIVSwVyBEUfgv2C8Ts9gnTF4pNcEY/S2aBicz5Ew2+jdyGNQQ== + test@example.com\n"}]}}, "servicePrincipalProfile": {"clientId":"00000000-0000-0000-0000-000000000001", + "secret":"fake-secret"}, "addonProfiles": {}, "enableRBAC": true, "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"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '1585' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --resource-group --name --location --dns-name-prefix --node-count --ssh-key-value + --service-principal --client-secret + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000001?api-version=2020-11-01 + response: + body: + string: "{\n \"code\": \"ServicePrincipalNotFound\",\n \"message\": \"Service + principal clientID: http://clitest000001 not found in Active Directory tenant + 657a2bb7-9a58-4be7-87f3-643bb3b7cbb5, Please see https://aka.ms/aks-sp-help + for more details.\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '248' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:25:30 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: + - '1197' + status: + code: 400 + message: Bad Request +- request: + body: '{"location": "WestUS2", "properties": {"kubernetesVersion": "", "dnsPrefix": + "cliaksdns000002", "agentPoolProfiles": [{"count": 1, "vmSize": "Standard_DS2_v2", + "osType": "Linux", "type": "VirtualMachineScaleSets", "mode": "System", "enableNodePublicIP": + false, "scaleSetPriority": "Regular", "scaleSetEvictionPolicy": "Delete", "name": + "nodepool1"}], "linuxProfile": {"adminUsername": "azureuser", "ssh": {"publicKeys": + [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCbIg1guRHbI0lV11wWDt1r2cUdcNd27CJsg+SfgC7miZeubtwUhbsPdhMQsfDyhOWHq1+ZL0M+nJZV63d/1dhmhtgyOqejUwrPlzKhydsbrsdUor+JmNJDdW01v7BXHyuymT8G4s09jCasNOwiufbP/qp72ruu0bIA1nySsvlf9pCQAuFkAnVnf/rFhUlOkhtRpwcq8SUNY2zRHR/EKb/4NWY1JzR4sa3q2fWIJdrrX0DvLoa5g9bIEd4Df79ba7v+yiUBOS0zT2ll+z4g9izHK3EO5d8hL4jYxcjKs+wcslSYRWrascfscLgMlMGh0CdKeNTDjHpGPncaf3Z+FwwwjWeuiNBxv7bJo13/8B/098KlVDl4GZqsoBCEjPyJfV6hO0y/LkRGkk7oHWKgeWAfKtfLItRp00eZ4fcJNK9kCaSMmEugoZWcI7NGbZXzqFWqbpRI7NcDP9+WIQ+i9U5vqWsqd/zng4kbuAJ6UuKqIzB0upYrLShfQE3SAck8oaLhJqqq56VfDuASNpJKidV+zq27HfSBmbXnkR/5AK337dc3MXKJypoK/QPMLKUAP5XLPbs+NddJQV7EZXd29DLgp+fRIg3edpKdO7ZErWhv7d+3Kws+e1Y+ypmR2WIVSwVyBEUfgv2C8Ts9gnTF4pNcEY/S2aBicz5Ew2+jdyGNQQ== + test@example.com\n"}]}}, "servicePrincipalProfile": {"clientId":"00000000-0000-0000-0000-000000000001", + "secret":"fake-secret"}, "addonProfiles": {}, "enableRBAC": true, "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"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '1585' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --resource-group --name --location --dns-name-prefix --node-count --ssh-key-value + --service-principal --client-secret + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000001?api-version=2020-11-01 + response: + body: + string: "{\n \"code\": \"ServicePrincipalNotFound\",\n \"message\": \"Service + principal clientID: http://clitest000001 not found in Active Directory tenant + 657a2bb7-9a58-4be7-87f3-643bb3b7cbb5, Please see https://aka.ms/aks-sp-help + for more details.\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '248' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:25: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-writes: + - '1196' + status: + code: 400 + message: Bad Request +- request: + body: '{"location": "WestUS2", "properties": {"kubernetesVersion": "", "dnsPrefix": + "cliaksdns000002", "agentPoolProfiles": [{"count": 1, "vmSize": "Standard_DS2_v2", + "osType": "Linux", "type": "VirtualMachineScaleSets", "mode": "System", "enableNodePublicIP": + false, "scaleSetPriority": "Regular", "scaleSetEvictionPolicy": "Delete", "name": + "nodepool1"}], "linuxProfile": {"adminUsername": "azureuser", "ssh": {"publicKeys": + [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCbIg1guRHbI0lV11wWDt1r2cUdcNd27CJsg+SfgC7miZeubtwUhbsPdhMQsfDyhOWHq1+ZL0M+nJZV63d/1dhmhtgyOqejUwrPlzKhydsbrsdUor+JmNJDdW01v7BXHyuymT8G4s09jCasNOwiufbP/qp72ruu0bIA1nySsvlf9pCQAuFkAnVnf/rFhUlOkhtRpwcq8SUNY2zRHR/EKb/4NWY1JzR4sa3q2fWIJdrrX0DvLoa5g9bIEd4Df79ba7v+yiUBOS0zT2ll+z4g9izHK3EO5d8hL4jYxcjKs+wcslSYRWrascfscLgMlMGh0CdKeNTDjHpGPncaf3Z+FwwwjWeuiNBxv7bJo13/8B/098KlVDl4GZqsoBCEjPyJfV6hO0y/LkRGkk7oHWKgeWAfKtfLItRp00eZ4fcJNK9kCaSMmEugoZWcI7NGbZXzqFWqbpRI7NcDP9+WIQ+i9U5vqWsqd/zng4kbuAJ6UuKqIzB0upYrLShfQE3SAck8oaLhJqqq56VfDuASNpJKidV+zq27HfSBmbXnkR/5AK337dc3MXKJypoK/QPMLKUAP5XLPbs+NddJQV7EZXd29DLgp+fRIg3edpKdO7ZErWhv7d+3Kws+e1Y+ypmR2WIVSwVyBEUfgv2C8Ts9gnTF4pNcEY/S2aBicz5Ew2+jdyGNQQ== + test@example.com\n"}]}}, "servicePrincipalProfile": {"clientId":"00000000-0000-0000-0000-000000000001", + "secret":"fake-secret"}, "addonProfiles": {}, "enableRBAC": true, "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"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '1585' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --resource-group --name --location --dns-name-prefix --node-count --ssh-key-value + --service-principal --client-secret + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000001?api-version=2020-11-01 + response: + body: + string: "{\n \"code\": \"ServicePrincipalNotFound\",\n \"message\": \"Service + principal clientID: http://clitest000001 not found in Active Directory tenant + 657a2bb7-9a58-4be7-87f3-643bb3b7cbb5, Please see https://aka.ms/aks-sp-help + for more details.\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '248' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:25:38 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: + - '1195' + status: + code: 400 + message: Bad Request +- request: + body: '{"location": "WestUS2", "properties": {"kubernetesVersion": "", "dnsPrefix": + "cliaksdns000002", "agentPoolProfiles": [{"count": 1, "vmSize": "Standard_DS2_v2", + "osType": "Linux", "type": "VirtualMachineScaleSets", "mode": "System", "enableNodePublicIP": + false, "scaleSetPriority": "Regular", "scaleSetEvictionPolicy": "Delete", "name": + "nodepool1"}], "linuxProfile": {"adminUsername": "azureuser", "ssh": {"publicKeys": + [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCbIg1guRHbI0lV11wWDt1r2cUdcNd27CJsg+SfgC7miZeubtwUhbsPdhMQsfDyhOWHq1+ZL0M+nJZV63d/1dhmhtgyOqejUwrPlzKhydsbrsdUor+JmNJDdW01v7BXHyuymT8G4s09jCasNOwiufbP/qp72ruu0bIA1nySsvlf9pCQAuFkAnVnf/rFhUlOkhtRpwcq8SUNY2zRHR/EKb/4NWY1JzR4sa3q2fWIJdrrX0DvLoa5g9bIEd4Df79ba7v+yiUBOS0zT2ll+z4g9izHK3EO5d8hL4jYxcjKs+wcslSYRWrascfscLgMlMGh0CdKeNTDjHpGPncaf3Z+FwwwjWeuiNBxv7bJo13/8B/098KlVDl4GZqsoBCEjPyJfV6hO0y/LkRGkk7oHWKgeWAfKtfLItRp00eZ4fcJNK9kCaSMmEugoZWcI7NGbZXzqFWqbpRI7NcDP9+WIQ+i9U5vqWsqd/zng4kbuAJ6UuKqIzB0upYrLShfQE3SAck8oaLhJqqq56VfDuASNpJKidV+zq27HfSBmbXnkR/5AK337dc3MXKJypoK/QPMLKUAP5XLPbs+NddJQV7EZXd29DLgp+fRIg3edpKdO7ZErWhv7d+3Kws+e1Y+ypmR2WIVSwVyBEUfgv2C8Ts9gnTF4pNcEY/S2aBicz5Ew2+jdyGNQQ== + test@example.com\n"}]}}, "servicePrincipalProfile": {"clientId":"00000000-0000-0000-0000-000000000001", + "secret":"fake-secret"}, "addonProfiles": {}, "enableRBAC": true, "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"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '1585' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --resource-group --name --location --dns-name-prefix --node-count --ssh-key-value + --service-principal --client-secret + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000001?api-version=2020-11-01 + response: + body: + string: "{\n \"code\": \"ServicePrincipalNotFound\",\n \"message\": \"Service + principal clientID: http://clitest000001 not found in Active Directory tenant + 657a2bb7-9a58-4be7-87f3-643bb3b7cbb5, Please see https://aka.ms/aks-sp-help + for more details.\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '248' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:25:42 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: + - '1194' + status: + code: 400 + message: Bad Request +- request: + body: '{"location": "WestUS2", "properties": {"kubernetesVersion": "", "dnsPrefix": + "cliaksdns000002", "agentPoolProfiles": [{"count": 1, "vmSize": "Standard_DS2_v2", + "osType": "Linux", "type": "VirtualMachineScaleSets", "mode": "System", "enableNodePublicIP": + false, "scaleSetPriority": "Regular", "scaleSetEvictionPolicy": "Delete", "name": + "nodepool1"}], "linuxProfile": {"adminUsername": "azureuser", "ssh": {"publicKeys": + [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCbIg1guRHbI0lV11wWDt1r2cUdcNd27CJsg+SfgC7miZeubtwUhbsPdhMQsfDyhOWHq1+ZL0M+nJZV63d/1dhmhtgyOqejUwrPlzKhydsbrsdUor+JmNJDdW01v7BXHyuymT8G4s09jCasNOwiufbP/qp72ruu0bIA1nySsvlf9pCQAuFkAnVnf/rFhUlOkhtRpwcq8SUNY2zRHR/EKb/4NWY1JzR4sa3q2fWIJdrrX0DvLoa5g9bIEd4Df79ba7v+yiUBOS0zT2ll+z4g9izHK3EO5d8hL4jYxcjKs+wcslSYRWrascfscLgMlMGh0CdKeNTDjHpGPncaf3Z+FwwwjWeuiNBxv7bJo13/8B/098KlVDl4GZqsoBCEjPyJfV6hO0y/LkRGkk7oHWKgeWAfKtfLItRp00eZ4fcJNK9kCaSMmEugoZWcI7NGbZXzqFWqbpRI7NcDP9+WIQ+i9U5vqWsqd/zng4kbuAJ6UuKqIzB0upYrLShfQE3SAck8oaLhJqqq56VfDuASNpJKidV+zq27HfSBmbXnkR/5AK337dc3MXKJypoK/QPMLKUAP5XLPbs+NddJQV7EZXd29DLgp+fRIg3edpKdO7ZErWhv7d+3Kws+e1Y+ypmR2WIVSwVyBEUfgv2C8Ts9gnTF4pNcEY/S2aBicz5Ew2+jdyGNQQ== + test@example.com\n"}]}}, "servicePrincipalProfile": {"clientId":"00000000-0000-0000-0000-000000000001", + "secret":"fake-secret"}, "addonProfiles": {}, "enableRBAC": true, "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"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '1585' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --resource-group --name --location --dns-name-prefix --node-count --ssh-key-value + --service-principal --client-secret + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000001?api-version=2020-11-01 + response: + body: + string: "{\n \"code\": \"ServicePrincipalNotFound\",\n \"message\": \"Service + principal clientID: http://clitest000001 not found in Active Directory tenant + 657a2bb7-9a58-4be7-87f3-643bb3b7cbb5, Please see https://aka.ms/aks-sp-help + for more details.\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '248' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:25:46 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: + - '1193' + status: + code: 400 + message: Bad Request +- request: + body: '{"location": "WestUS2", "properties": {"kubernetesVersion": "", "dnsPrefix": + "cliaksdns000002", "agentPoolProfiles": [{"count": 1, "vmSize": "Standard_DS2_v2", + "osType": "Linux", "type": "VirtualMachineScaleSets", "mode": "System", "enableNodePublicIP": + false, "scaleSetPriority": "Regular", "scaleSetEvictionPolicy": "Delete", "name": + "nodepool1"}], "linuxProfile": {"adminUsername": "azureuser", "ssh": {"publicKeys": + [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCbIg1guRHbI0lV11wWDt1r2cUdcNd27CJsg+SfgC7miZeubtwUhbsPdhMQsfDyhOWHq1+ZL0M+nJZV63d/1dhmhtgyOqejUwrPlzKhydsbrsdUor+JmNJDdW01v7BXHyuymT8G4s09jCasNOwiufbP/qp72ruu0bIA1nySsvlf9pCQAuFkAnVnf/rFhUlOkhtRpwcq8SUNY2zRHR/EKb/4NWY1JzR4sa3q2fWIJdrrX0DvLoa5g9bIEd4Df79ba7v+yiUBOS0zT2ll+z4g9izHK3EO5d8hL4jYxcjKs+wcslSYRWrascfscLgMlMGh0CdKeNTDjHpGPncaf3Z+FwwwjWeuiNBxv7bJo13/8B/098KlVDl4GZqsoBCEjPyJfV6hO0y/LkRGkk7oHWKgeWAfKtfLItRp00eZ4fcJNK9kCaSMmEugoZWcI7NGbZXzqFWqbpRI7NcDP9+WIQ+i9U5vqWsqd/zng4kbuAJ6UuKqIzB0upYrLShfQE3SAck8oaLhJqqq56VfDuASNpJKidV+zq27HfSBmbXnkR/5AK337dc3MXKJypoK/QPMLKUAP5XLPbs+NddJQV7EZXd29DLgp+fRIg3edpKdO7ZErWhv7d+3Kws+e1Y+ypmR2WIVSwVyBEUfgv2C8Ts9gnTF4pNcEY/S2aBicz5Ew2+jdyGNQQ== + test@example.com\n"}]}}, "servicePrincipalProfile": {"clientId":"00000000-0000-0000-0000-000000000001", + "secret":"fake-secret"}, "addonProfiles": {}, "enableRBAC": true, "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"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '1585' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --resource-group --name --location --dns-name-prefix --node-count --ssh-key-value + --service-principal --client-secret + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000001?api-version=2020-11-01 + response: + body: + string: "{\n \"code\": \"ServicePrincipalNotFound\",\n \"message\": \"Service + principal clientID: http://clitest000001 not found in Active Directory tenant + 657a2bb7-9a58-4be7-87f3-643bb3b7cbb5, Please see https://aka.ms/aks-sp-help + for more details.\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '248' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:25:50 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1192' + status: + code: 400 + message: Bad Request +- request: + body: '{"location": "WestUS2", "properties": {"kubernetesVersion": "", "dnsPrefix": + "cliaksdns000002", "agentPoolProfiles": [{"count": 1, "vmSize": "Standard_DS2_v2", + "osType": "Linux", "type": "VirtualMachineScaleSets", "mode": "System", "enableNodePublicIP": + false, "scaleSetPriority": "Regular", "scaleSetEvictionPolicy": "Delete", "name": + "nodepool1"}], "linuxProfile": {"adminUsername": "azureuser", "ssh": {"publicKeys": + [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCbIg1guRHbI0lV11wWDt1r2cUdcNd27CJsg+SfgC7miZeubtwUhbsPdhMQsfDyhOWHq1+ZL0M+nJZV63d/1dhmhtgyOqejUwrPlzKhydsbrsdUor+JmNJDdW01v7BXHyuymT8G4s09jCasNOwiufbP/qp72ruu0bIA1nySsvlf9pCQAuFkAnVnf/rFhUlOkhtRpwcq8SUNY2zRHR/EKb/4NWY1JzR4sa3q2fWIJdrrX0DvLoa5g9bIEd4Df79ba7v+yiUBOS0zT2ll+z4g9izHK3EO5d8hL4jYxcjKs+wcslSYRWrascfscLgMlMGh0CdKeNTDjHpGPncaf3Z+FwwwjWeuiNBxv7bJo13/8B/098KlVDl4GZqsoBCEjPyJfV6hO0y/LkRGkk7oHWKgeWAfKtfLItRp00eZ4fcJNK9kCaSMmEugoZWcI7NGbZXzqFWqbpRI7NcDP9+WIQ+i9U5vqWsqd/zng4kbuAJ6UuKqIzB0upYrLShfQE3SAck8oaLhJqqq56VfDuASNpJKidV+zq27HfSBmbXnkR/5AK337dc3MXKJypoK/QPMLKUAP5XLPbs+NddJQV7EZXd29DLgp+fRIg3edpKdO7ZErWhv7d+3Kws+e1Y+ypmR2WIVSwVyBEUfgv2C8Ts9gnTF4pNcEY/S2aBicz5Ew2+jdyGNQQ== + test@example.com\n"}]}}, "servicePrincipalProfile": {"clientId":"00000000-0000-0000-0000-000000000001", + "secret":"fake-secret"}, "addonProfiles": {}, "enableRBAC": true, "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"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '1585' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --resource-group --name --location --dns-name-prefix --node-count --ssh-key-value + --service-principal --client-secret + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000001?api-version=2020-11-01 + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000001\",\n + \ \"location\": \"westus2\",\n \"name\": \"cliakstest000001\",\n \"type\": + \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": + \"Creating\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": + \"1.19.11\",\n \"dnsPrefix\": \"cliaksdns000002\",\n \"fqdn\": \"cliaksdns000002-73505685.hcp.westus2.azmk8s.io\",\n + \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": + 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": + \"Managed\",\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n + \ \"provisioningState\": \"Creating\",\n \"powerState\": {\n \"code\": + \"Running\"\n },\n \"orchestratorVersion\": \"1.19.11\",\n \"enableNodePublicIP\": + false,\n \"nodeLabels\": {},\n \"mode\": \"System\",\n \"osType\": + \"Linux\",\n \"nodeImageVersion\": \"AKSUbuntu-1804gen2containerd-2021.05.19\"\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_acscliapi11_cliakstest000001_westus2\",\n \"enableRBAC\": true,\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 },\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/4bd2f188-8dc3-4c70-b575-d73db36593f8?api-version=2016-03-30 + cache-control: + - no-cache + content-length: + - '2556' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:25:56 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: + - '1191' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --dns-name-prefix --node-count --ssh-key-value + --service-principal --client-secret + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/4bd2f188-8dc3-4c70-b575-d73db36593f8?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"88f1d24b-c38d-704c-b575-d73db36593f8\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-06-10T09:25:56.4166666Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:26:26 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --dns-name-prefix --node-count --ssh-key-value + --service-principal --client-secret + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/4bd2f188-8dc3-4c70-b575-d73db36593f8?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"88f1d24b-c38d-704c-b575-d73db36593f8\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-06-10T09:25:56.4166666Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:26:56 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --dns-name-prefix --node-count --ssh-key-value + --service-principal --client-secret + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/4bd2f188-8dc3-4c70-b575-d73db36593f8?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"88f1d24b-c38d-704c-b575-d73db36593f8\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-06-10T09:25:56.4166666Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:27:26 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --dns-name-prefix --node-count --ssh-key-value + --service-principal --client-secret + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/4bd2f188-8dc3-4c70-b575-d73db36593f8?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"88f1d24b-c38d-704c-b575-d73db36593f8\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-06-10T09:25:56.4166666Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:27:57 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --dns-name-prefix --node-count --ssh-key-value + --service-principal --client-secret + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/4bd2f188-8dc3-4c70-b575-d73db36593f8?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"88f1d24b-c38d-704c-b575-d73db36593f8\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-06-10T09:25:56.4166666Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:28:26 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --dns-name-prefix --node-count --ssh-key-value + --service-principal --client-secret + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/4bd2f188-8dc3-4c70-b575-d73db36593f8?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"88f1d24b-c38d-704c-b575-d73db36593f8\",\n \"status\": + \"Succeeded\",\n \"startTime\": \"2021-06-10T09:25:56.4166666Z\",\n \"endTime\": + \"2021-06-10T09:28:57.4269291Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '170' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:28:56 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --dns-name-prefix --node-count --ssh-key-value + --service-principal --client-secret + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000001?api-version=2020-11-01 + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000001\",\n + \ \"location\": \"westus2\",\n \"name\": \"cliakstest000001\",\n \"type\": + \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": + \"Succeeded\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": + \"1.19.11\",\n \"dnsPrefix\": \"cliaksdns000002\",\n \"fqdn\": \"cliaksdns000002-73505685.hcp.westus2.azmk8s.io\",\n + \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": + 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": + \"Managed\",\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n + \ \"provisioningState\": \"Succeeded\",\n \"powerState\": {\n \"code\": + \"Running\"\n },\n \"orchestratorVersion\": \"1.19.11\",\n \"enableNodePublicIP\": + false,\n \"nodeLabels\": {},\n \"mode\": \"System\",\n \"osType\": + \"Linux\",\n \"nodeImageVersion\": \"AKSUbuntu-1804gen2containerd-2021.05.19\"\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_acscliapi11_cliakstest000001_westus2\",\n \"enableRBAC\": true,\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_acscliapi11_cliakstest000001_westus2/providers/Microsoft.Network/publicIPAddresses/dd451596-7e20-4362-afd1-15a638eeb51e\"\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 },\n \"sku\": {\n \"name\": \"Basic\",\n \"tier\": \"Free\"\n + \ }\n }" + headers: + cache-control: + - no-cache + content-length: + - '2818' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:28:57 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks show + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000001?api-version=2020-11-01 + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000001\",\n + \ \"location\": \"westus2\",\n \"name\": \"cliakstest000001\",\n \"type\": + \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": + \"Succeeded\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": + \"1.19.11\",\n \"dnsPrefix\": \"cliaksdns000002\",\n \"fqdn\": \"cliaksdns000002-73505685.hcp.westus2.azmk8s.io\",\n + \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": + 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": + \"Managed\",\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n + \ \"provisioningState\": \"Succeeded\",\n \"powerState\": {\n \"code\": + \"Running\"\n },\n \"orchestratorVersion\": \"1.19.11\",\n \"enableNodePublicIP\": + false,\n \"nodeLabels\": {},\n \"mode\": \"System\",\n \"osType\": + \"Linux\",\n \"nodeImageVersion\": \"AKSUbuntu-1804gen2containerd-2021.05.19\"\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_acscliapi11_cliakstest000001_westus2\",\n \"enableRBAC\": true,\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_acscliapi11_cliakstest000001_westus2/providers/Microsoft.Network/publicIPAddresses/dd451596-7e20-4362-afd1-15a638eeb51e\"\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 },\n \"sku\": {\n \"name\": \"Basic\",\n \"tier\": \"Free\"\n + \ }\n }" + headers: + cache-control: + - no-cache + content-length: + - '2818' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:28:57 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks get-credentials + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g -n --file + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000001/listClusterUserCredential?api-version=2020-11-01 + response: + body: + string: "{\n \"kubeconfigs\": [\n {\n \"name\": \"clusterUser\",\n \"value\": + \"YXBpVmVyc2lvbjogdjEKY2x1c3RlcnM6Ci0gY2x1c3RlcjoKICAgIGNlcnRpZmljYXRlLWF1dGhvcml0eS1kYXRhOiBMUzB0TFMxQ1JVZEpUaUJEUlZKVVNVWkpRMEZVUlMwdExTMHRDazFKU1VVMlJFTkRRWFJEWjBGM1NVSkJaMGxSWldzNVUzTkJUak5IVFhkRE5tSnlOV1YwZW14MWVrRk9RbWRyY1docmFVYzVkekJDUVZGelJrRkVRVTRLVFZGemQwTlJXVVJXVVZGRVJYZEthbGxVUVdkR2R6QjVUVlJCTWsxVVFYZFBWRVV5VFVSV1lVZEJPSGxOUkZWNFRVUlplRTFFUVRWTmFsbDNUbFp2ZHdwRVZFVk1UVUZyUjBFeFZVVkJlRTFEV1RKRmQyZG5TV2xOUVRCSFExTnhSMU5KWWpORVVVVkNRVkZWUVVFMFNVTkVkMEYzWjJkSlMwRnZTVU5CVVVNNUNqVkViMmhFUWs5QmRUQlZPVTlSWjJSVWVHMTFWVWhPTm5WclpGaGFXR0l4T1dSU2VFaDRNeTlzY0VWelpYcDNNMVpCVTJ0M0wwZGFjM3BaTVROV1drMEtiRmhyV2xkc1ZGTjNia2R3Vm10c1R6QnZZVlZTYlRSelYwRkZkbGxYTkhWVmRHTkdPRnBHU0hwQ1dubDJSRzE0WTI1SlV6QmhaSGRYUmtWdmJUZEdUUXBpV0c1aVNFc3JSbWxtYmt0bWQxSmFNRUZsUldJMVoyZEZZV1ZoVm5SUlYwSTVOM0psVFc1MmFGaG9ORE5uYW1NM2FGRkJaR2x4T0RoU1pWbFNNMFJpQ25KeU9HczJTbXhRYTBsUkwwRTRaQ3RDUVdadlJWVjBUbm94VDJsalRGWXZOalF3VWpCNFRtZG5iRU5RTjJ4c01GcGtNMHBGTjB0YVpqTnJWRkJsUkZFS1JXSTFkbW96SzNWWmVuVnBRMjhyWWtKRFdUbGhORm8yTkRaNUwyUmpkRGx1VmxCeldIZGhlWGN4ZVVsMEsyNVJUbWhrTDNsbVVDdGxhbVpyYVVrMlpRcG9la3huWm5oNGN6WTFURzkyYVdNeFRrbFplbFJZY1ZJMmRIVnlOMFYzU2xGTVZIbG9VRzl3TkZaNlFUUTVhMk53YlVOM1ZpOUNVVzFYV0VKTllrbzVDa3RQVjJSMlZqSjJRbTVtTWxORlNVNTNOWEJNUzB0VWJVcEhZbXAzV0VaMVFVZFZLMFUzSzJORmJUaFVXblJFWVVjME1tMW1MMHA1UVd4bmQwcHhVbWtLZDJKVGJqSkxRMGhtVkRsbmIzRkZZV05NZWxGTVdIQjZiRmhhZUV0a1dFOVJUVkZtZWtKcFFUSjRkMEpQUTNkMmJtZFljbmx0VUVSaE1WQnVaVXhIY3dvclVWbzJUMjFaTTNSbVVEZHVLM3BQZW1VcmRYSmFTVFp3TjJnNGEwUklSRzVEZW01TWEycHRTMG92WkRreFJuSTBObEYzTUZsa05TOVhhUzlxY0c5TENtcHJjblpIYjFGR1IxQk5VRlJZYWxndlEwODRSRTl6UjNSUVpGSTRSbG8zYm05UVVXbGtZM2htYm5oTE1sbG9ORzVuUlVwNWVpOVNkbnBIVldocU1Gb0taRTh6UkVOU2QxbG1Xbkk1YjBSWlNVTkxZVmQ1UWxsSVl6ZGlNaXN2VVVOVE9IWkhkRlZMTjBKUlNVUkJVVUZDYnpCSmQxRkVRVTlDWjA1V1NGRTRRZ3BCWmpoRlFrRk5RMEZ4VVhkRWQxbEVWbEl3VkVGUlNDOUNRVlYzUVhkRlFpOTZRV1JDWjA1V1NGRTBSVVpuVVZVNVkzaHlUSEJKZDNSaWQxWllaMHBrQ2pGTlVqUTFaRFJZUm5CSmQwUlJXVXBMYjFwSmFIWmpUa0ZSUlV4Q1VVRkVaMmRKUWtGSVlsWm5hM1Y0YnpCWVpHTlJiWE5vTW5FMk5EYzRiakYzU0VFS1VtVnhOMDl3TjB0V1VFSm9UR3AzUmtsTk5tNUxSelJPTVZRM2N6VjFZazAzV1RGU2FGQkViV1o0ZEdjMFQyNDNhekU0UWxsaGNrTXlTV3BhWTI1b05ncHZjMVJtZUZCbFpsWmlSMUJLWVhaamRuUnBkRUZ2Y1ZsUk9VWk9XbXRxZVdOVksyOTVaUzloYTJSck5VcFdXR0pqVTB3NVRtZGtVRE55TW5Oa1ptVkxDaXR5V2xKQ1lVdzBiREIzUTNGWlVrNHlaRTEzY1Rab1JraEdka3hoV1dGWFdVVmlMMFpJTmpndk56aG5TbWh1ZFVWWGJqTlhTRXhvUWt0bGFVTTVkamNLZVc1a1RWQlRNVWhLVTA0dk1TdGpXRm95YTNkNEwwbDZUMEZCYlZoeFJsQlNXRmgyTUZOTk1UQkNkVkF5WTI0elUzaDBaMHRIZW5ONVZHNUZOWEpvVkFwcmFVSlNjSE16TldkSmVWZE9WblZEZDBacVVUWnFiRlIyV1VoNWJFNXJXR2hvUWtRck5rWmtlRXQyZFZGdE5YWk9XRzgyVWtjNVJXVnhOR2cyZUZVMkNtTm5WMjl2TUhOeGF5ODViVkpTTWtoNFJubG1iRkpvSzFWaWVGRkpOa3Q0YVdKamJIaGpWRzFqZVdGamMzUlVjRzFKWlZCRFFWWTJXVEpJWnpabWJtVUtNV1I1ZURSM2QwUkdSMHd2VTJrM00ybDJXR0Z3VmsxaU1VRkNVVGhFWnpKUFdtZG1OVlUyVldjM1YxRnhPRGx0Y1daQ1UyVklaV1UxWkU0ck1GRkpNd3BGU0dkTFdHUk1kMGwyU0RGeU1HMHZkVXRUYWtSQlZHc3ZXRzB3VERod1YwNXhSVWRLYm1jM1VtVkRVVWgyVTNGRWJERjZOUzlPTldOUVVrbERWMjlYQ213ek5FOXBhR0p3YTJSamJYbEVWRFJuVFU0cmJVRTVjbGxRUVc1S2IyTXphRGRVU1ZOM2MxSkhNbXhaTURVdlprTnlUekUxYlhKalJFTkRlamxLVm1jS1NUSlJWM2RvYmtKQ09GUnJSVE14ZVVsb1ZrUTVkVWR1UWtKTGVVNDVWVkptVEV3dk4xQnVRblpwUms4Mk5qVTVXbTB4YkdodGFVdFVOM2RtWTFSWll3cEpZMUJuVGs5TFdrSm5MemsxV1ZOM0NpMHRMUzB0UlU1RUlFTkZVbFJKUmtsRFFWUkZMUzB0TFMwSwogICAgc2VydmVyOiBodHRwczovL2NsaWFrc2RuczJkM2xoaGctNzM1MDU2ODUuaGNwLndlc3R1czIuYXptazhzLmlvOjQ0MwogIG5hbWU6IGNsaWFrc3Rlc3RtMnQ1Z2sKY29udGV4dHM6Ci0gY29udGV4dDoKICAgIGNsdXN0ZXI6IGNsaWFrc3Rlc3RtMnQ1Z2sKICAgIHVzZXI6IGNsdXN0ZXJVc2VyX2Fjc2NsaWFwaTExX2NsaWFrc3Rlc3RtMnQ1Z2sKICBuYW1lOiBjbGlha3N0ZXN0bTJ0NWdrCmN1cnJlbnQtY29udGV4dDogY2xpYWtzdGVzdG0ydDVnawpraW5kOiBDb25maWcKcHJlZmVyZW5jZXM6IHt9CnVzZXJzOgotIG5hbWU6IGNsdXN0ZXJVc2VyX2Fjc2NsaWFwaTExX2NsaWFrc3Rlc3RtMnQ1Z2sKICB1c2VyOgogICAgY2xpZW50LWNlcnRpZmljYXRlLWRhdGE6IExTMHRMUzFDUlVkSlRpQkRSVkpVU1VaSlEwRlVSUzB0TFMwdENrMUpTVVpJYWtORFFYZGhaMEYzU1VKQlowbFNRVTVhTldVNGVVOU1VM0kzWWxkeVRXeFdRbnBwWVc5M1JGRlpTa3R2V2tsb2RtTk9RVkZGVEVKUlFYY0tSRlJGVEUxQmEwZEJNVlZGUVhoTlExa3lSWGRJYUdOT1RXcEZkMDVxUlhkTlJHdDRUbXBCTVZkb1kwNU5hazEzVG1wRmQwMUVhM2xPYWtFeFYycEJkd3BOVW1OM1JsRlpSRlpSVVV0RmR6VjZaVmhPTUZwWE1EWmlWMFo2WkVkV2VXTjZSVlpOUWsxSFFURlZSVUY0VFUxaVYwWjZaRWRXZVZreWVIQmFWelV3Q2sxSlNVTkpha0ZPUW1kcmNXaHJhVWM1ZHpCQ1FWRkZSa0ZCVDBOQlp6aEJUVWxKUTBOblMwTkJaMFZCTVhKRGIzRkllV0pvYVVaNVJqUXpPVTl1VHpBS2VHUTVOVmQwZG5wVVlVbEpOM2xEVm05eVNsQlFVVTlWYTJNeldXVlhXamRZTnk5eWF5OHZVRmw2Ukc5WlNFSkNPVVJZZDFZeGMyNVNTWFJDYUZoT1pBcDRaekpXUTNGYUwydDFiMFozVERONVVGWnNaVWxaV0VVM2JsbDFaa3ROYm1kRVFqTnBibVIyU1VoSVkzbzNhWEZHTUhoeVRrVTFhMFZyUVU1eFpsSk5DbVZMY3poWVNEVmlXSEZ2UkVGaVQwNDFkQ3RNZWtGTFJYVlhUbU5yYjJKellsa3hLelp4VDBoNVZYbFpSWFpRSzFOTk1ERnhOVk5IVkVWTmVpOVpaaThLYnl0UU5XSnhUV3RRTXpCYVMydGhOek4wTVUxcmRuWlNOR0p5Y0hnME9TOUZTblpqVW1SRGFYa3ZiR1JIVTFsRFlraGxVazkzTDJneGVta3ZjVE41TlFvd2NscGhlWEkxZHpob1VtZG9SMjV5ZFZWcE16UTFURUp4Um1Kd1VuaDVNRFV4VjBoRE1saHlXbXhPTXpCVlozWnFNbU5NTmxWUWFrY3piWFpVVVRGUENqUm1VbXAxYlU1RmVrb3hZbTlwY2xGMk5tODNURUp2UkdKb2N5dHhReTltVFVOU1VIUkRZV0p2ZVVOWlNGUXhZeXRSTlVZeksyMXlWRVpLVlRGR1JuRUtWMnBGTTA5UU9HaGtaelJQUW1KNGEyMXNkbXBwYlZSNU9WcE5NMjV5Y0RVdlpIY3pkMVpMZEdaQmVqVklZbkJMTTJJMGRtcDRiRFpVYjNWVU0yRlFlUXBpUWs1S05UVkRTRll6V1ZsQ1IwZFpja0ZXVWxrNWNFWm9TVzUwZVM5NU1HWm9NMlJVYkRWck4yMUNSQ3RaTDJWbldHaFFPR1ZuTUV4b1Jrd3ZVM2hwQ25WTGNVaHJWRzFtTWxwTVNpc3lkbmRZTWtSNFluWkJaVWgyUTJsbFUwdzRWelp6ZEc5NlEzSktSMU40WW1sUk1TODVaME4zSzFrck5rNTNjakp5WW5ZS00za3ZRMmxIYTJwT1QyZzBSV0Z1V1VKMWFFVndPRTlwV0RFdk16Tk1RVXhpTTFCeE0xWlFaRlUwU25CNlQwZGlkWFV2UXpoaldHbHZMemxXVUdGWkx3bzBZbUpaVkZGaVZXMVpZUzg0WjJsalFtRndPVE54YzBOQmQwVkJRV0ZPVjAxR1VYZEVaMWxFVmxJd1VFRlJTQzlDUVZGRVFXZFhaMDFDVFVkQk1WVmtDa3BSVVUxTlFXOUhRME56UjBGUlZVWkNkMDFEVFVGM1IwRXhWV1JGZDBWQ0wzZFJRMDFCUVhkSWQxbEVWbEl3YWtKQ1ozZEdiMEZWT1dONGNreHdTWGNLZEdKM1ZsaG5TbVF4VFZJME5XUTBXRVp3U1hkRVVWbEtTMjlhU1doMlkwNUJVVVZNUWxGQlJHZG5TVUpCUVZkRFdXWllaRTVrYWxoMFkzaFlUM1JJVGdwVGVrTlZXa3BqTURKVVRFRjVXbGMwUXpBMU1XMVFUMll2VnpNeFNVVXhRa3QwV1dNdlFrUkdZelV6UzB0UlowbDRiMjUxUzBoelRGRnljemxrZG5FMkNqWlJjM2hVYVhwMlpsSnlLM1ZVY0cwemFIRm1iRWR2YUVkNVYxTndjMEZ6UkdKaWFVbHVTSEZCVEdKcGRYSndiVlpFZFVaRGQyZHBRWEpSUjFoMFZpc0tUeXRVZVRjNWVTdEZNMGM1ZVc1cUt6TmpUM0kyZEdwMWNITlZNVlZRYnpnMWVtMVNNVXRsVUd4M09IUkVaVFYwYVhaWk56ZDVabGRVVEhCU2RucHZOZ3BIY0doQkt6bFZVUzgwY0hWT1kwTm9VRVYyYTFGT2NURmpVa0ZqV25KMGFVbEhjM04xYlZNNVJDdElWRlZIZUVFMGRIUXpTR3htWjNFNVYwWTVlVWhXQ25ONlZtbGtia2gwZDBGVmRXUkRlbVEyUkd0SWJIaERSVmxJY1djMWVFWmFOV2wxVFhCalRFSjFSalZuUVc5WGJtNTJkMXBhTTB4MFltVktSelZZZDJVS1dGQnZNM2MyYkVOdkwyUkxMeTlzWlZOTVQxTnNNMWRXWWxSdmNUTlhXbUZ6SzJWdVJpdE1OMDFoYTNaVU4yWm9OVlZCVW5GelVVVjJhV2MyYlVkNk13cGtSVWhNVjI1VFMxZFVjMnB4UWpsU2JYWlZibTFyUkM5Qk1GSlBkMlZXTjBwa1YzY3pNM2h4U0hsQmFDdFBLM0U1Wmtoc1lubDRTVnB6Vm5OaFZrZzNDbmRXYVdSUlJGVk9RUzh6WlZocE5HYzRabEYxWVVoYVlYbFdWV0Z1VEZrMVduTkVhMjlFVnpkQ2FXaFpZVkV6VVhCMmFsQkNkVXczT0ZGeVdqSmFVMklLV1dKVVZWbDFWV3BhZDJoclNXcDZUV2RpWXl0NVowUjFPVUZ1YkdWQlFuQndjR3RHWlc1UEx6VmllSGxVT0d0bFVYWXpTekJzUm1JeUsyaFJOVmgyUWdwNFVTdGlUVFpyWjJNMVNEVkZORTB6ZG5GcWNsaEhTRFpKZDFkek1VMUJWME0xYmxWb1JuVXhOMEZIUW1FNVVIQXdjbEZRTWpKaVdFMVZUalpyZGtSSUNpOXFOMnAzTld0Q2NYRTVlRFJXVXpsdlVsa3dXVkZpWkFvdExTMHRMVVZPUkNCRFJWSlVTVVpKUTBGVVJTMHRMUzB0Q2c9PQogICAgY2xpZW50LWtleS1kYXRhOiBMUzB0TFMxQ1JVZEpUaUJTVTBFZ1VGSkpWa0ZVUlNCTFJWa3RMUzB0TFFwTlNVbEtTMmRKUWtGQlMwTkJaMFZCTVhKRGIzRkllV0pvYVVaNVJqUXpPVTl1VHpCNFpEazFWM1IyZWxSaFNVazNlVU5XYjNKS1VGQlJUMVZyWXpOWkNtVlhXamRZTnk5eWF5OHZVRmw2Ukc5WlNFSkNPVVJZZDFZeGMyNVNTWFJDYUZoT1pIaG5NbFpEY1ZvdmEzVnZSbmRNTTNsUVZteGxTVmxZUlRkdVdYVUtaa3ROYm1kRVFqTnBibVIyU1VoSVkzbzNhWEZHTUhoeVRrVTFhMFZyUVU1eFpsSk5aVXR6T0ZoSU5XSlljVzlFUVdKUFRqVjBLMHg2UVV0RmRWZE9Zd3ByYjJKellsa3hLelp4VDBoNVZYbFpSWFpRSzFOTk1ERnhOVk5IVkVWTmVpOVpaaTl2SzFBMVluRk5hMUF6TUZwTGEyRTNNM1F4VFd0MmRsSTBZbkp3Q25nME9TOUZTblpqVW1SRGFYa3ZiR1JIVTFsRFlraGxVazkzTDJneGVta3ZjVE41TlRCeVdtRjVjalYzT0doU1oyaEhibkoxVldrek5EVk1RbkZHWW5BS1VuaDVNRFV4VjBoRE1saHlXbXhPTXpCVlozWnFNbU5NTmxWUWFrY3piWFpVVVRGUE5HWlNhblZ0VGtWNlNqRmliMmx5VVhZMmJ6ZE1RbTlFWW1oekt3cHhReTltVFVOU1VIUkRZV0p2ZVVOWlNGUXhZeXRSTlVZeksyMXlWRVpLVlRGR1JuRlhha1V6VDFBNGFHUm5ORTlDWW5ocmJXeDJhbWx0VkhrNVdrMHpDbTV5Y0RVdlpIY3pkMVpMZEdaQmVqVklZbkJMTTJJMGRtcDRiRFpVYjNWVU0yRlFlV0pDVGtvMU5VTklWak5aV1VKSFIxbHlRVlpTV1Rsd1JtaEpiblFLZVM5NU1HWm9NMlJVYkRWck4yMUNSQ3RaTDJWbldHaFFPR1ZuTUV4b1Jrd3ZVM2hwZFV0eFNHdFViV1l5V2t4S0t6SjJkMWd5UkhoaWRrRmxTSFpEYVFwbFUwdzRWelp6ZEc5NlEzSktSMU40WW1sUk1TODVaME4zSzFrck5rNTNjakp5WW5ZemVTOURhVWRyYWs1UGFEUkZZVzVaUW5Wb1JYQTRUMmxZTVM4ekNqTk1RVXhpTTFCeE0xWlFaRlUwU25CNlQwZGlkWFV2UXpoaldHbHZMemxXVUdGWkx6UmlZbGxVVVdKVmJWbGhMemhuYVdOQ1lYQTVNM0Z6UTBGM1JVRUtRVkZMUTBGblJVRnlWalZPV2todWVuTmFXWGx3ZUdwUVdrUk9jSGxPZVZaRFF6RlZVbVF6VTNKNVFUSkdaMDA1THpkNGVtSnRZVE5MUW00NVExTTFXQXByT1Zabk5rOHpiWGxZU0RsdlRFMXhSMkpGVUdaalpXbHhjSGx0U0dwb04yOW1WV2RWYTJoUVUzWXhXWEl2WjB0RWNrbFRaa3R5VGtWWVRrUm5OelJtQ2pKd05XMURLMHBISzFOMFltdzJUSEpqTTNKWFZIWkxVVEZwZW1zd1FrVm1iRzFYYm1KVlQwaFhRV3hwVkhjd05IWkJPVkZzVGtSTVVXSjRXa1Z2VEZBS0sySlZSRUY1YVhGTFlYZEdURlU0YUhoNVVWTmhNbFprYURaQllXSlpUemgxYmpWa01rUk5lV0pxVW1Wd1JFMDNSV1p5ZFRKM1ZuZHZaVzFqU2pWS2JBcG9OamxoZERkTWQxaHJNbGRoV0dOSmRscFJkWGRRYTJaMGRVUnhkMjFFYkRSd1JqRmlaR1pOZEZWRkwzcFJhMUJFYlZKR2NFdGFRMnBXTVN0TVRUSm9DbFo1THk5eU1ITTJSamRRWlZSRlVtWnNkMmgxVkhCTGRWbEdLMlF3Vm1zeVZ6WktlQ3N3TjI1U09VUlRNemgzZUU1Q2NYTjBTWGhsT1VSUlFYZDZSblVLU2t3NU9ERjRjV1pWUVU1d1RsYzFZVkl6VEZwR05XUlVZblo1VEdJMWRIVjZOR0YxVGtnMGRWRjFjVGRpVHpNeVZFbzNabkk1ZURScmEzRllOMW92Y3dwNlRUazJkMjF5U21sRlIyeFlZa2c0ZGxOSVNEWkpSMGxQV1UxNlIweEpkbEIwYTFKYU1uZFRRaTlDVWpVMFRqWm1Oak5DTURkbWFuRjNaMVJUVG01M0NtOUlVQzh6Y2pCMlpGazFTbkZKV0hjcmRtUlVLekIzZDFsaE1raDVLMGRKZWtWc1QwOHpkSE53VVU1NFRWbG5lSGNyVjNSclNXcEhlVzRyWVZFd1JVNEtVVXRtU1VkTGExUlNhVnB2YUdSR05XWjZkVFJEY0VOM01rdFhUamhYVDBKQ01scHdSWFYyTlVKd1VtaENNMGRpTmxGVVZqUnZRWGx5VUdGNlJVTkxlQXBoYjFWRWMwTk1SRlkyTHpkMVMxRlBiVzB2T1hOU1pHNUpla2hJUjA5VlVGaHZSSEJQVG1jMmFEbDBTQ3NyT1NzM1lrVkRaMmRGUWtGUFlsZzVaSFZpQ2tWRlR5OHJOMjVNV0VSWE56Rk9TREUzV25wVlpISk1iVFo1Ym10V055dFNRazk2ZDJGeU1tOW1NVE4wY0VJd01rY3ZPRWh2TjJSNGNHNVRWVlZuTVVvS09XaEVPVTl1TDJ4b2QzVXhVMGd4WlcxT05tRmhSR3c0S3l0WmQwTktPRlZ5VlhOeE1tOTZURmxCWWtGMGMwNXBSRlZHWTNBelVrTm9WRGN5U1dkMk5RcHJhVVJEVGxweE1XcEdjbko0TmpjMFp5OHZaM1pXVlRoaGVsZHZNSGhEWkhFclZtRlBOMFJSVjBsTU5VcGFaV0ZHVmxSVFpFeE9URlEyTWk5c2FVRnFDbFEzVmt0YVdrczRhM3BNZVhSMk5IWTBZbGhCWTFVeU1FSklURWRXVWtKdWVrdHhTbEpMU1RSTWVHeDJXVXhsZGpGdGJYQTFZbmRCUm1GWFpEbFdkMW9LZVhCcFpsaENVbkpoYnprd1Z6Z3JNVzUyVEM5Q1ZucExNVUpQVjNBMmVYcFhhMHdyUjFCSFFUSjRVRFppVkVJd1NuSlpVR016Vm5kMGJXcE9SM1pGVGdwRFlYY3lPWGR1Wnl0emFsbHZZMnREWjJkRlFrRlBORmRFVFdwT2FIZHZhelp6TkhOUWFYUnFVVzE1U2swdllTdE9RWGRhVEd4RFpEaERTVVZOYWxaekNtRk5WakpJY0hOMU5sRlBVWGxJUWpORFVIZFpOREpGVm5wUWVHVmlkWEZJTUN0QmIwOUdUbWgyZVRKU1ZuaFJLMkZPU0dScll6QmtZa053ZGxaRWNFd0tNRzFOZVc5WlMyVlFPSGRLUjI0MVNUVnlSelpXTUZSdFRYVkxMMkZJUld4dlVWcGhURVpxVWs1Q1kyaDVabXBWZDBvNFZ6VnFNREpSVldsQ1JsTmFOZ3BtWlZvNVRrUjRaMUZDT0VWRlZIcGlTVFYxV2tSUFVHSlNkMHAxUW5sV1pGRnBTMW8yT0dWQ05rbEpkMVJuY21rNFdXeFpTVzlzYWk5cWQwSmtVMnR4Q201cmVWQnhRV3BSTWtnME1VSTVObVZGU0hWU05XRjZkMnhoUTBaaWFVNVBVVmcxVGpRdlREY3hRamh1ZWxsTFRHdENTVFYyVTJabVFXWlRaMU52ZVhJS1RYVmtVbXRPY0RBMlpsZFFia0ZOUTNwU1puQkpkekZFVFVWUVUxUlVOREZtVm5acE9IUkNabFowVFVOblowVkNRVTV4VEV0R1RFSkRabEJ4U2sxdWRnbzRhSFJaSzFKSVVuSjVVR3B5V1VOUWVEWkdRV05oWVVkQ09VTTVhRFJEU1hKb1VtaHpRbUZNY2twUFZWTjJWMWxJWjNWUFp5dFFZVEp3SzFrM1lrazFDblprUm1sNlpqaExLMDVVT1M4MlFURmhSa2Q2ZEdWWVRtTkpZVk5UY0dkNWVtNVdNa3N4UkhOWGFuQkJSM0pUYUdGWU5rUkVVbUZxVEhsdVpWVXhkR3dLWkhwNE5ISm1Ta1JwYzNoTWJURlBMM2RKZG5KcFpUZFpTblUwWVhOQ2IydEdWR1pvTkdsdlZtdFJOV1IwUjJkME5qUkNSblZxTkhkNkwzbEdUVFJhY0FwRGVqWllkRXBGVUVOaVVFWlFhamxtU25weU1UZzBRakZzVEdvMkwyTlNTMUp4VkdjMFoweHJPRXQyVjFWbk0ySlZjVTFhTWxSc1dtNVpiRU5xWVRCNkNsTkpORXBxWjFsdFNIaGFWVkV5U201RU9Fb3ZlR0o0YkdwQ1YxTmtSa1J1VDJkRkt5c3ZTamhrUlRJeVkxRjFSa3QwZDNKSFl5dFBSbFpOTmsxclZHa0tMM1Z1TkRGaGEwTm5aMFZDUVU5eGNDdDRTRlZYWW5oeE5VeEJkblJXYzI5aE1tb3dNWEV6YkdwUlJUZDBTVmR5Um1WMFFsQlpaV2RuWVdaWGJ6VlpTd28xTkc5dVNYaHBUMmwxUjBoWGJETjJhMlZ3VVROWWRqSlJjVkZYYjBkWE1qSjVjamR5VG5RNFNTczFkVTRyTXpKcFVURlBVemRPYkRGcmEwWjBNa1UxQ25aMVNFcFBlalp5WkdjMVNTOTNhMlUxTlhKTlZrSkljSEE0ZGs5Q2VGaEljRlpOUkdJNFNEbFhTbTB4YUZaMGFEVllhV3RIWjJWcFFtZFBkVGxzVW00S0wyVjBWVWt2Vm1GbVREZzFXRUpaWkc4clJFZE9LemRuS3pOWFJsSnVjVkJHVnprd1ZYZGxlRFZoVjJOdkwxaE9RU3RHTjBGc1NpOHJhVk15UmpCWlVncExjMFpEV0dFMVZFWjVXR3RwU0RoeVdtZzRaMUpKTUhnM1lWZHBLMmRGWkhFeFlrWTRWelI0VW5WQ1pqTnZkVEExTkZkSmF6bEpVVlEwZW14MlUwNUZDbmgyUkU1RGJGZENXbXR4YURsSVZqSXJkRkoxVEUxdllrTkxUVkJxYjNCSk0yaGpRMmRuUlVGT09FTlZZazVwVldKQ1dqSTFSR3BIYzFCWVZrWkJaRUVLTnpFelZqQmhlV051WlRsM09FRnNjRmRIY1drNVJtRjVkM2Q1ZFZkSVRqRldORkpUWVRabE4yazNjMFJLVFRNdk5HUjVUSGNyWjA0ekszbEVkSEE0Y2dwd01IQlpjMnBEYTJ4Mlp6TTBVa0ZMZEN0cFEyWXlUM0ZCVFUxVWJVd3ZaWEJ5ZEZaamVXcG5kWGw2VDJkS2FVdHNNVkJSWm5ZeE1HTmhSRVJMVkRoa0NtOHlXalo0YVVsYUwxWnRSalpTVFRCVFJ6Z3JiSE5RUWk4MGFsSlRObGd6ZFhCM1UwbElOVVUxWWl0eVJrMUtiR3g0YWpsUU1WSktOblZ5UTBwbU9XVUtUako0Wm1KTFJEVlFhWE5wTVRGTVNrRk5Xa3hTZERScVVFOXFiVzl2TmpkV1kzUmtZMUJrZFRWdVRrRkdPVEpHWjFKME1rdFVWVlphVjJsTlMzUlpRUXBFTml0RFUyZEJkVXhOTTB0WFNqTlZkVWRPVVVZMVQydHlRbGg0ZWtnemMyUlFkWE5SY1cxRlVXTnZTVGxWUzAxNE5IcENRVk50UW1wNlUxTTFVVDA5Q2kwdExTMHRSVTVFSUZKVFFTQlFVa2xXUVZSRklFdEZXUzB0TFMwdENnPT0KICAgIHRva2VuOiBhN2EwN2M1ZTU2OTcxMzgyNjcyZWNmY2QwZmQwNTE1ZDFkYTgyN2Y1MDExOTMxZmJkOGVmMTdkMDM0MTRkZTk3MzI5NTY5MjJiY2Q2NDE4ZGNmNDM0MzhmNmE1YzgzYjE1OTg0MWRlNDY0MTQ4NjQ3MDBjMGI4OTgxODBkNzQ3YQo=\"\n + \ }\n ]\n }" + headers: + cache-control: + - no-cache + content-length: + - '13068' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09: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 + 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 nodepool add + Connection: + - keep-alive + ParameterSetName: + - --resource-group --cluster-name --name --labels --node-count --tags + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000001/agentPools?api-version=2020-11-01 + response: + body: + string: "{\n \"value\": [\n {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000001/agentPools/nodepool1\",\n + \ \"name\": \"nodepool1\",\n \"type\": \"Microsoft.ContainerService/managedClusters/agentPools\",\n + \ \"properties\": {\n \"count\": 1,\n \"vmSize\": \"Standard_DS2_v2\",\n + \ \"osDiskSizeGB\": 128,\n \"osDiskType\": \"Managed\",\n \"maxPods\": + 110,\n \"type\": \"VirtualMachineScaleSets\",\n \"provisioningState\": + \"Succeeded\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n + \ \"orchestratorVersion\": \"1.19.11\",\n \"enableNodePublicIP\": false,\n + \ \"nodeLabels\": {},\n \"mode\": \"System\",\n \"osType\": \"Linux\",\n + \ \"nodeImageVersion\": \"AKSUbuntu-1804gen2containerd-2021.05.19\"\n }\n + \ }\n ]\n }" + headers: + cache-control: + - no-cache + content-length: + - '804' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:28:59 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"properties": {"count": 1, "vmSize": "Standard_DS2_v2", "osType": "Linux", + "type": "VirtualMachineScaleSets", "mode": "User", "upgradeSettings": {}, "enableNodePublicIP": + false, "scaleSetPriority": "Regular", "scaleSetEvictionPolicy": "Delete", "tags": + {"key1": "value1"}, "nodeLabels": {"label1": "value1"}, "nodeTaints": []}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks nodepool add + Connection: + - keep-alive + Content-Length: + - '328' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --resource-group --cluster-name --name --labels --node-count --tags + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000001/agentPools/nodepool2?api-version=2020-11-01 + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000001/agentPools/nodepool2\",\n + \ \"name\": \"nodepool2\",\n \"type\": \"Microsoft.ContainerService/managedClusters/agentPools\",\n + \ \"properties\": {\n \"count\": 1,\n \"vmSize\": \"Standard_DS2_v2\",\n + \ \"osDiskSizeGB\": 128,\n \"osDiskType\": \"Managed\",\n \"maxPods\": + 110,\n \"type\": \"VirtualMachineScaleSets\",\n \"provisioningState\": + \"Creating\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"orchestratorVersion\": + \"1.19.11\",\n \"enableNodePublicIP\": false,\n \"tags\": {\n \"key1\": + \"value1\"\n },\n \"nodeLabels\": {\n \"label1\": \"value1\"\n },\n + \ \"mode\": \"User\",\n \"osType\": \"Linux\",\n \"nodeImageVersion\": + \"AKSUbuntu-1804gen2containerd-2021.05.19\",\n \"upgradeSettings\": {}\n + \ }\n }" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/9999c386-05a3-4d54-8700-21219f3a772d?api-version=2016-03-30 + cache-control: + - no-cache + content-length: + - '825' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:29:01 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks nodepool add + Connection: + - keep-alive + ParameterSetName: + - --resource-group --cluster-name --name --labels --node-count --tags + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/9999c386-05a3-4d54-8700-21219f3a772d?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"86c39999-a305-544d-8700-21219f3a772d\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-06-10T09:29:01.4633333Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:29:31 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks nodepool add + Connection: + - keep-alive + ParameterSetName: + - --resource-group --cluster-name --name --labels --node-count --tags + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/9999c386-05a3-4d54-8700-21219f3a772d?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"86c39999-a305-544d-8700-21219f3a772d\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-06-10T09:29:01.4633333Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:30:01 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks nodepool add + Connection: + - keep-alive + ParameterSetName: + - --resource-group --cluster-name --name --labels --node-count --tags + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/9999c386-05a3-4d54-8700-21219f3a772d?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"86c39999-a305-544d-8700-21219f3a772d\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-06-10T09:29:01.4633333Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:30:31 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks nodepool add + Connection: + - keep-alive + ParameterSetName: + - --resource-group --cluster-name --name --labels --node-count --tags + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/9999c386-05a3-4d54-8700-21219f3a772d?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"86c39999-a305-544d-8700-21219f3a772d\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-06-10T09:29:01.4633333Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:31:01 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks nodepool add + Connection: + - keep-alive + ParameterSetName: + - --resource-group --cluster-name --name --labels --node-count --tags + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/9999c386-05a3-4d54-8700-21219f3a772d?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"86c39999-a305-544d-8700-21219f3a772d\",\n \"status\": + \"Succeeded\",\n \"startTime\": \"2021-06-10T09:29:01.4633333Z\",\n \"endTime\": + \"2021-06-10T09:31:17.718605Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '169' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:31:31 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks nodepool add + Connection: + - keep-alive + ParameterSetName: + - --resource-group --cluster-name --name --labels --node-count --tags + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000001/agentPools/nodepool2?api-version=2020-11-01 + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000001/agentPools/nodepool2\",\n + \ \"name\": \"nodepool2\",\n \"type\": \"Microsoft.ContainerService/managedClusters/agentPools\",\n + \ \"properties\": {\n \"count\": 1,\n \"vmSize\": \"Standard_DS2_v2\",\n + \ \"osDiskSizeGB\": 128,\n \"osDiskType\": \"Managed\",\n \"maxPods\": + 110,\n \"type\": \"VirtualMachineScaleSets\",\n \"provisioningState\": + \"Succeeded\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"orchestratorVersion\": + \"1.19.11\",\n \"enableNodePublicIP\": false,\n \"tags\": {\n \"key1\": + \"value1\"\n },\n \"nodeLabels\": {\n \"label1\": \"value1\"\n },\n + \ \"mode\": \"User\",\n \"osType\": \"Linux\",\n \"nodeImageVersion\": + \"AKSUbuntu-1804gen2containerd-2021.05.19\",\n \"upgradeSettings\": {}\n + \ }\n }" + headers: + cache-control: + - no-cache + content-length: + - '826' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:31:31 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks nodepool list + Connection: + - keep-alive + ParameterSetName: + - --resource-group --cluster-name + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000001/agentPools?api-version=2020-11-01 + response: + body: + string: "{\n \"value\": [\n {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000001/agentPools/nodepool1\",\n + \ \"name\": \"nodepool1\",\n \"type\": \"Microsoft.ContainerService/managedClusters/agentPools\",\n + \ \"properties\": {\n \"count\": 1,\n \"vmSize\": \"Standard_DS2_v2\",\n + \ \"osDiskSizeGB\": 128,\n \"osDiskType\": \"Managed\",\n \"maxPods\": + 110,\n \"type\": \"VirtualMachineScaleSets\",\n \"provisioningState\": + \"Succeeded\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n + \ \"orchestratorVersion\": \"1.19.11\",\n \"enableNodePublicIP\": false,\n + \ \"nodeLabels\": {},\n \"mode\": \"System\",\n \"osType\": \"Linux\",\n + \ \"nodeImageVersion\": \"AKSUbuntu-1804gen2containerd-2021.05.19\"\n }\n + \ },\n {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000001/agentPools/nodepool2\",\n + \ \"name\": \"nodepool2\",\n \"type\": \"Microsoft.ContainerService/managedClusters/agentPools\",\n + \ \"properties\": {\n \"count\": 1,\n \"vmSize\": \"Standard_DS2_v2\",\n + \ \"osDiskSizeGB\": 128,\n \"osDiskType\": \"Managed\",\n \"maxPods\": + 110,\n \"type\": \"VirtualMachineScaleSets\",\n \"provisioningState\": + \"Succeeded\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n + \ \"orchestratorVersion\": \"1.19.11\",\n \"enableNodePublicIP\": false,\n + \ \"tags\": {\n \"key1\": \"value1\"\n },\n \"nodeLabels\": + {\n \"label1\": \"value1\"\n },\n \"mode\": \"User\",\n \"osType\": + \"Linux\",\n \"nodeImageVersion\": \"AKSUbuntu-1804gen2containerd-2021.05.19\",\n + \ \"upgradeSettings\": {}\n }\n }\n ]\n }" + headers: + cache-control: + - no-cache + content-length: + - '1691' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:31:33 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks nodepool list + Connection: + - keep-alive + ParameterSetName: + - --resource-group --cluster-name -o + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000001/agentPools?api-version=2020-11-01 + response: + body: + string: "{\n \"value\": [\n {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000001/agentPools/nodepool1\",\n + \ \"name\": \"nodepool1\",\n \"type\": \"Microsoft.ContainerService/managedClusters/agentPools\",\n + \ \"properties\": {\n \"count\": 1,\n \"vmSize\": \"Standard_DS2_v2\",\n + \ \"osDiskSizeGB\": 128,\n \"osDiskType\": \"Managed\",\n \"maxPods\": + 110,\n \"type\": \"VirtualMachineScaleSets\",\n \"provisioningState\": + \"Succeeded\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n + \ \"orchestratorVersion\": \"1.19.11\",\n \"enableNodePublicIP\": false,\n + \ \"nodeLabels\": {},\n \"mode\": \"System\",\n \"osType\": \"Linux\",\n + \ \"nodeImageVersion\": \"AKSUbuntu-1804gen2containerd-2021.05.19\"\n }\n + \ },\n {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000001/agentPools/nodepool2\",\n + \ \"name\": \"nodepool2\",\n \"type\": \"Microsoft.ContainerService/managedClusters/agentPools\",\n + \ \"properties\": {\n \"count\": 1,\n \"vmSize\": \"Standard_DS2_v2\",\n + \ \"osDiskSizeGB\": 128,\n \"osDiskType\": \"Managed\",\n \"maxPods\": + 110,\n \"type\": \"VirtualMachineScaleSets\",\n \"provisioningState\": + \"Succeeded\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n + \ \"orchestratorVersion\": \"1.19.11\",\n \"enableNodePublicIP\": false,\n + \ \"tags\": {\n \"key1\": \"value1\"\n },\n \"nodeLabels\": + {\n \"label1\": \"value1\"\n },\n \"mode\": \"User\",\n \"osType\": + \"Linux\",\n \"nodeImageVersion\": \"AKSUbuntu-1804gen2containerd-2021.05.19\",\n + \ \"upgradeSettings\": {}\n }\n }\n ]\n }" + headers: + cache-control: + - no-cache + content-length: + - '1691' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:31:34 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks nodepool scale + Connection: + - keep-alive + ParameterSetName: + - --resource-group --cluster-name --name --node-count + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000001/agentPools/nodepool2?api-version=2020-11-01 + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000001/agentPools/nodepool2\",\n + \ \"name\": \"nodepool2\",\n \"type\": \"Microsoft.ContainerService/managedClusters/agentPools\",\n + \ \"properties\": {\n \"count\": 1,\n \"vmSize\": \"Standard_DS2_v2\",\n + \ \"osDiskSizeGB\": 128,\n \"osDiskType\": \"Managed\",\n \"maxPods\": + 110,\n \"type\": \"VirtualMachineScaleSets\",\n \"provisioningState\": + \"Succeeded\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"orchestratorVersion\": + \"1.19.11\",\n \"enableNodePublicIP\": false,\n \"tags\": {\n \"key1\": + \"value1\"\n },\n \"nodeLabels\": {\n \"label1\": \"value1\"\n },\n + \ \"mode\": \"User\",\n \"osType\": \"Linux\",\n \"nodeImageVersion\": + \"AKSUbuntu-1804gen2containerd-2021.05.19\",\n \"upgradeSettings\": {}\n + \ }\n }" + headers: + cache-control: + - no-cache + content-length: + - '826' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:31:34 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"properties": {"count": 3, "vmSize": "Standard_DS2_v2", "osDiskSizeGB": + 128, "osDiskType": "Managed", "maxPods": 110, "osType": "Linux", "type": "VirtualMachineScaleSets", + "mode": "User", "orchestratorVersion": "1.19.11", "upgradeSettings": {}, "enableNodePublicIP": + false, "tags": {"key1": "value1"}, "nodeLabels": {"label1": "value1"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks nodepool scale + Connection: + - keep-alive + Content-Length: + - '339' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --resource-group --cluster-name --name --node-count + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000001/agentPools/nodepool2?api-version=2020-11-01 + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000001/agentPools/nodepool2\",\n + \ \"name\": \"nodepool2\",\n \"type\": \"Microsoft.ContainerService/managedClusters/agentPools\",\n + \ \"properties\": {\n \"count\": 3,\n \"vmSize\": \"Standard_DS2_v2\",\n + \ \"osDiskSizeGB\": 128,\n \"osDiskType\": \"Managed\",\n \"maxPods\": + 110,\n \"type\": \"VirtualMachineScaleSets\",\n \"provisioningState\": + \"Scaling\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"orchestratorVersion\": + \"1.19.11\",\n \"enableNodePublicIP\": false,\n \"tags\": {\n \"key1\": + \"value1\"\n },\n \"nodeLabels\": {\n \"label1\": \"value1\"\n },\n + \ \"mode\": \"User\",\n \"osType\": \"Linux\",\n \"nodeImageVersion\": + \"AKSUbuntu-1804gen2containerd-2021.05.19\",\n \"upgradeSettings\": {}\n + \ }\n }" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/533207a7-3cf6-45b6-a2cc-e9c731632522?api-version=2016-03-30 + cache-control: + - no-cache + content-length: + - '824' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:31:36 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + 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 nodepool scale + Connection: + - keep-alive + ParameterSetName: + - --resource-group --cluster-name --name --node-count + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/533207a7-3cf6-45b6-a2cc-e9c731632522?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"a7073253-f63c-b645-a2cc-e9c731632522\",\n \"status\": + \"Failed\",\n \"startTime\": \"2021-06-10T09:31:37.2566666Z\",\n \"endTime\": + \"2021-06-10T09:31:39.6298512Z\",\n \"error\": {\n \"code\": \"ReconcileVMSSAgentPoolFailed\",\n + \ \"message\": \"Code=\\\"OperationNotAllowed\\\" Message=\\\"Operation could + not be completed as it results in exceeding approved Total Regional Cores + quota. Additional details - Deployment Model: Resource Manager, Location: + westus2, Current Limit: 20, Current Usage: 18, Additional Required: 4, (Minimum) + New Limit Required: 22. Submit a request for Quota increase at https://aka.ms/ProdportalCRP/?#create/Microsoft.Support/Parameters/%!B(MISSING)%!s(MISSING)ubId%!:(MISSING)%!a(MISSING)4f688f-f361-4729-a197-1a8d663b603b%!,(MISSING)%!p(MISSING)esId%!:(MISSING)%!b(MISSING)fd9d3-516b-d5c6-5802-169c800dec89%!,(MISSING)%!s(MISSING)upportTopicId%!:(MISSING)%!e(MISSING)12e3d1d-7fa0-af33-c6d0-3c50df9658a3%7D + by specifying parameters listed in the \u2018Details\u2019 section for deployment + to succeed. Please read more about quota limits at https://docs.microsoft.com/en-us/azure/azure-supportability/regional-quota-requests.\\\"\"\n + \ }\n }" + headers: + cache-control: + - no-cache + content-length: + - '1143' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:32: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 +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/recordings/test_aks_run_command.yaml b/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/recordings/test_aks_run_command.yaml new file mode 100644 index 00000000000..80887db1437 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/recordings/test_aks_run_command.yaml @@ -0,0 +1,635 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --nodepool-name --generate-ssh-keys --vm-set-type + --node-count -o + User-Agent: + - AZURECLI/2.23.0 azsdk-python-azure-mgmt-resource/16.1.0 Python/3.7.4 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acscliapi9?api-version=2019-10-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi9","name":"acscliapi9","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '228' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 10 Jun 2021 08:42:09 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": {"kubernetesVersion": "", "dnsPrefix": + "cmdtestkha-acscliapi9-8a4f68", "agentPoolProfiles": [{"count": 1, "vmSize": + "Standard_DS2_v2", "osType": "Linux", "type": "VirtualMachineScaleSets", "mode": + "System", "enableNodePublicIP": false, "scaleSetPriority": "Regular", "scaleSetEvictionPolicy": + "Delete", "name": "c000002"}], "linuxProfile": {"adminUsername": "azureuser", + "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDKmzqj3TPcGPIOqJjZwQyT20uOJE+UD4qUFhv3tGaGua00KbNRShUDOcUwV2G/3b6A+3VLUsQ/tV9u9X97TKuFTxyQSv3SRPYGmrkqNI21p1Dg5jMBuTZl2oFFFPdFCUT/etjuFApVV0qbjOWwsRjtZBRRMCzYToS60TQQrcfSgK6iYld5FgsEbmn6W+3MYytX2FcRTjd9M0Hl993fP7LBFLON9xUr+iFcu+rqjGqiBYkE1j4Pryjf+2c2hZghSB1riehfpAigKeqwEOSppRonwJ7bQXW3ZVs0vT6gAfbBZixUzTb3ie7MH9xwCV1Z7Rp7FmWa6zaTI2HSdQfVSePMixti7xbZvFHKcQvJpji3mt+CiiL6W0slHjpHepRBhmg3yIB6t9RGbtrlqlK9XbkMNgOeQtMQtLSuqO6Xr0ipV6FPXGcEDHLYJVo//o7d4h93cO68XjUP7ze86/uEv5chV0BJmv7dzbYbK1GAWN0XRp5KdUz2h2fYCUmSftZNRTFLh/1R0hNbUIoSlfIO0ZGdZzoh/5N7EzkD0md1pUJ34/cWZ/8aoIsbbzmc5uUjaI2p6E0YumM/WnF1Ymem9L+cVXZjSQ0L8Ad5VyYk0kHp7X4ckRYuPIsNA20r+PoIBq1Yp6i+Q9oHS2wuxummU4Z11aOiCqjkW+TU6rQ+RmRGow== + redmond\\bhsantha@bhuvan-dev\n"}]}}, "addonProfiles": {}, "enableRBAC": true, + "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"}}, "identity": + {"type": "SystemAssigned"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '1522' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --resource-group --name --nodepool-name --generate-ssh-keys --vm-set-type + --node-count -o + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi9/providers/Microsoft.ContainerService/managedClusters/cmdtest000001?api-version=2020-11-01 + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acscliapi9/providers/Microsoft.ContainerService/managedClusters/cmdtest000001\",\n + \ \"location\": \"westus2\",\n \"name\": \"cmdtest000001\",\n \"type\": + \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": + \"Creating\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": + \"1.19.11\",\n \"dnsPrefix\": \"cmdtestkha-acscliapi9-8a4f68\",\n \"fqdn\": + \"cmdtestkha-acscliapi9-8a4f68-69eb0ed0.hcp.westus2.azmk8s.io\",\n \"agentPoolProfiles\": + [\n {\n \"name\": \"c000002\",\n \"count\": 1,\n \"vmSize\": + \"Standard_DS2_v2\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": \"Managed\",\n + \ \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n \"provisioningState\": + \"Creating\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n + \ \"orchestratorVersion\": \"1.19.11\",\n \"enableNodePublicIP\": false,\n + \ \"nodeLabels\": {},\n \"mode\": \"System\",\n \"osType\": \"Linux\",\n + \ \"nodeImageVersion\": \"AKSUbuntu-1804gen2containerd-2021.05.19\"\n }\n + \ ],\n \"linuxProfile\": {\n \"adminUsername\": \"azureuser\",\n \"ssh\": + {\n \"publicKeys\": [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDKmzqj3TPcGPIOqJjZwQyT20uOJE+UD4qUFhv3tGaGua00KbNRShUDOcUwV2G/3b6A+3VLUsQ/tV9u9X97TKuFTxyQSv3SRPYGmrkqNI21p1Dg5jMBuTZl2oFFFPdFCUT/etjuFApVV0qbjOWwsRjtZBRRMCzYToS60TQQrcfSgK6iYld5FgsEbmn6W+3MYytX2FcRTjd9M0Hl993fP7LBFLON9xUr+iFcu+rqjGqiBYkE1j4Pryjf+2c2hZghSB1riehfpAigKeqwEOSppRonwJ7bQXW3ZVs0vT6gAfbBZixUzTb3ie7MH9xwCV1Z7Rp7FmWa6zaTI2HSdQfVSePMixti7xbZvFHKcQvJpji3mt+CiiL6W0slHjpHepRBhmg3yIB6t9RGbtrlqlK9XbkMNgOeQtMQtLSuqO6Xr0ipV6FPXGcEDHLYJVo//o7d4h93cO68XjUP7ze86/uEv5chV0BJmv7dzbYbK1GAWN0XRp5KdUz2h2fYCUmSftZNRTFLh/1R0hNbUIoSlfIO0ZGdZzoh/5N7EzkD0md1pUJ34/cWZ/8aoIsbbzmc5uUjaI2p6E0YumM/WnF1Ymem9L+cVXZjSQ0L8Ad5VyYk0kHp7X4ckRYuPIsNA20r+PoIBq1Yp6i+Q9oHS2wuxummU4Z11aOiCqjkW+TU6rQ+RmRGow== + redmond\\\\bhsantha@bhuvan-dev\\n\"\n }\n ]\n }\n },\n \"servicePrincipalProfile\": + {\n \"clientId\": \"msi\"\n },\n \"nodeResourceGroup\": \"MC_acscliapi9_cmdtest000001_westus2\",\n + \ \"enableRBAC\": true,\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 },\n \"identity\": + {\n \"type\": \"SystemAssigned\",\n \"principalId\": \"c505e4b6-a012-4c7c-a38e-285a025a90b2\",\n + \ \"tenantId\": \"657a2bb7-9a58-4be7-87f3-643bb3b7cbb5\"\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/1a683692-9f56-42db-8993-a4a3bf10099b?api-version=2016-03-30 + cache-control: + - no-cache + content-length: + - '2721' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 08:42:13 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --nodepool-name --generate-ssh-keys --vm-set-type + --node-count -o + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/1a683692-9f56-42db-8993-a4a3bf10099b?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"9236681a-569f-db42-8993-a4a3bf10099b\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-06-10T08:42:12.96Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '121' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 08:42:43 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --nodepool-name --generate-ssh-keys --vm-set-type + --node-count -o + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/1a683692-9f56-42db-8993-a4a3bf10099b?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"9236681a-569f-db42-8993-a4a3bf10099b\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-06-10T08:42:12.96Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '121' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 08:43:13 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --nodepool-name --generate-ssh-keys --vm-set-type + --node-count -o + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/1a683692-9f56-42db-8993-a4a3bf10099b?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"9236681a-569f-db42-8993-a4a3bf10099b\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-06-10T08:42:12.96Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '121' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 08:43:42 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --nodepool-name --generate-ssh-keys --vm-set-type + --node-count -o + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/1a683692-9f56-42db-8993-a4a3bf10099b?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"9236681a-569f-db42-8993-a4a3bf10099b\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-06-10T08:42:12.96Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '121' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 08:44:13 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --nodepool-name --generate-ssh-keys --vm-set-type + --node-count -o + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/1a683692-9f56-42db-8993-a4a3bf10099b?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"9236681a-569f-db42-8993-a4a3bf10099b\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-06-10T08:42:12.96Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '121' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 08:44:43 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --nodepool-name --generate-ssh-keys --vm-set-type + --node-count -o + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/1a683692-9f56-42db-8993-a4a3bf10099b?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"9236681a-569f-db42-8993-a4a3bf10099b\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-06-10T08:42:12.96Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '121' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 08:45:13 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --nodepool-name --generate-ssh-keys --vm-set-type + --node-count -o + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/1a683692-9f56-42db-8993-a4a3bf10099b?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"9236681a-569f-db42-8993-a4a3bf10099b\",\n \"status\": + \"Succeeded\",\n \"startTime\": \"2021-06-10T08:42:12.96Z\",\n \"endTime\": + \"2021-06-10T08:45:17.0415967Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '165' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 08:45: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 create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --nodepool-name --generate-ssh-keys --vm-set-type + --node-count -o + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi9/providers/Microsoft.ContainerService/managedClusters/cmdtest000001?api-version=2020-11-01 + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acscliapi9/providers/Microsoft.ContainerService/managedClusters/cmdtest000001\",\n + \ \"location\": \"westus2\",\n \"name\": \"cmdtest000001\",\n \"type\": + \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": + \"Succeeded\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": + \"1.19.11\",\n \"dnsPrefix\": \"cmdtestkha-acscliapi9-8a4f68\",\n \"fqdn\": + \"cmdtestkha-acscliapi9-8a4f68-69eb0ed0.hcp.westus2.azmk8s.io\",\n \"agentPoolProfiles\": + [\n {\n \"name\": \"c000002\",\n \"count\": 1,\n \"vmSize\": + \"Standard_DS2_v2\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": \"Managed\",\n + \ \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n \"provisioningState\": + \"Succeeded\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n + \ \"orchestratorVersion\": \"1.19.11\",\n \"enableNodePublicIP\": false,\n + \ \"nodeLabels\": {},\n \"mode\": \"System\",\n \"osType\": \"Linux\",\n + \ \"nodeImageVersion\": \"AKSUbuntu-1804gen2containerd-2021.05.19\"\n }\n + \ ],\n \"linuxProfile\": {\n \"adminUsername\": \"azureuser\",\n \"ssh\": + {\n \"publicKeys\": [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDKmzqj3TPcGPIOqJjZwQyT20uOJE+UD4qUFhv3tGaGua00KbNRShUDOcUwV2G/3b6A+3VLUsQ/tV9u9X97TKuFTxyQSv3SRPYGmrkqNI21p1Dg5jMBuTZl2oFFFPdFCUT/etjuFApVV0qbjOWwsRjtZBRRMCzYToS60TQQrcfSgK6iYld5FgsEbmn6W+3MYytX2FcRTjd9M0Hl993fP7LBFLON9xUr+iFcu+rqjGqiBYkE1j4Pryjf+2c2hZghSB1riehfpAigKeqwEOSppRonwJ7bQXW3ZVs0vT6gAfbBZixUzTb3ie7MH9xwCV1Z7Rp7FmWa6zaTI2HSdQfVSePMixti7xbZvFHKcQvJpji3mt+CiiL6W0slHjpHepRBhmg3yIB6t9RGbtrlqlK9XbkMNgOeQtMQtLSuqO6Xr0ipV6FPXGcEDHLYJVo//o7d4h93cO68XjUP7ze86/uEv5chV0BJmv7dzbYbK1GAWN0XRp5KdUz2h2fYCUmSftZNRTFLh/1R0hNbUIoSlfIO0ZGdZzoh/5N7EzkD0md1pUJ34/cWZ/8aoIsbbzmc5uUjaI2p6E0YumM/WnF1Ymem9L+cVXZjSQ0L8Ad5VyYk0kHp7X4ckRYuPIsNA20r+PoIBq1Yp6i+Q9oHS2wuxummU4Z11aOiCqjkW+TU6rQ+RmRGow== + redmond\\\\bhsantha@bhuvan-dev\\n\"\n }\n ]\n }\n },\n \"servicePrincipalProfile\": + {\n \"clientId\": \"msi\"\n },\n \"nodeResourceGroup\": \"MC_acscliapi9_cmdtest000001_westus2\",\n + \ \"enableRBAC\": true,\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_acscliapi9_cmdtest000001_westus2/providers/Microsoft.Network/publicIPAddresses/d4872483-4abc-480e-bf31-a00bc58c2b68\"\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_acscliapi9_cmdtest000001_westus2/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cmdtest000001-agentpool\",\n + \ \"clientId\": \"0c3120ae-1ea8-4afc-a67d-6f5a49c923bf\",\n \"objectId\": + \"fc1d366e-1419-4e02-9518-a57729b7be72\"\n }\n }\n },\n \"identity\": + {\n \"type\": \"SystemAssigned\",\n \"principalId\": \"c505e4b6-a012-4c7c-a38e-285a025a90b2\",\n + \ \"tenantId\": \"657a2bb7-9a58-4be7-87f3-643bb3b7cbb5\"\n },\n \"sku\": + {\n \"name\": \"Basic\",\n \"tier\": \"Free\"\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '3370' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 08:45: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 command invoke + Connection: + - keep-alive + ParameterSetName: + - -g -n -o -c + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi9/providers/Microsoft.ContainerService/managedClusters/cmdtest000001?api-version=2020-11-01 + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acscliapi9/providers/Microsoft.ContainerService/managedClusters/cmdtest000001\",\n + \ \"location\": \"westus2\",\n \"name\": \"cmdtest000001\",\n \"type\": + \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": + \"Succeeded\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": + \"1.19.11\",\n \"dnsPrefix\": \"cmdtestkha-acscliapi9-8a4f68\",\n \"fqdn\": + \"cmdtestkha-acscliapi9-8a4f68-69eb0ed0.hcp.westus2.azmk8s.io\",\n \"agentPoolProfiles\": + [\n {\n \"name\": \"c000002\",\n \"count\": 1,\n \"vmSize\": + \"Standard_DS2_v2\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": \"Managed\",\n + \ \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n \"provisioningState\": + \"Succeeded\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n + \ \"orchestratorVersion\": \"1.19.11\",\n \"enableNodePublicIP\": false,\n + \ \"nodeLabels\": {},\n \"mode\": \"System\",\n \"osType\": \"Linux\",\n + \ \"nodeImageVersion\": \"AKSUbuntu-1804gen2containerd-2021.05.19\"\n }\n + \ ],\n \"linuxProfile\": {\n \"adminUsername\": \"azureuser\",\n \"ssh\": + {\n \"publicKeys\": [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDKmzqj3TPcGPIOqJjZwQyT20uOJE+UD4qUFhv3tGaGua00KbNRShUDOcUwV2G/3b6A+3VLUsQ/tV9u9X97TKuFTxyQSv3SRPYGmrkqNI21p1Dg5jMBuTZl2oFFFPdFCUT/etjuFApVV0qbjOWwsRjtZBRRMCzYToS60TQQrcfSgK6iYld5FgsEbmn6W+3MYytX2FcRTjd9M0Hl993fP7LBFLON9xUr+iFcu+rqjGqiBYkE1j4Pryjf+2c2hZghSB1riehfpAigKeqwEOSppRonwJ7bQXW3ZVs0vT6gAfbBZixUzTb3ie7MH9xwCV1Z7Rp7FmWa6zaTI2HSdQfVSePMixti7xbZvFHKcQvJpji3mt+CiiL6W0slHjpHepRBhmg3yIB6t9RGbtrlqlK9XbkMNgOeQtMQtLSuqO6Xr0ipV6FPXGcEDHLYJVo//o7d4h93cO68XjUP7ze86/uEv5chV0BJmv7dzbYbK1GAWN0XRp5KdUz2h2fYCUmSftZNRTFLh/1R0hNbUIoSlfIO0ZGdZzoh/5N7EzkD0md1pUJ34/cWZ/8aoIsbbzmc5uUjaI2p6E0YumM/WnF1Ymem9L+cVXZjSQ0L8Ad5VyYk0kHp7X4ckRYuPIsNA20r+PoIBq1Yp6i+Q9oHS2wuxummU4Z11aOiCqjkW+TU6rQ+RmRGow== + redmond\\\\bhsantha@bhuvan-dev\\n\"\n }\n ]\n }\n },\n \"servicePrincipalProfile\": + {\n \"clientId\": \"msi\"\n },\n \"nodeResourceGroup\": \"MC_acscliapi9_cmdtest000001_westus2\",\n + \ \"enableRBAC\": true,\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_acscliapi9_cmdtest000001_westus2/providers/Microsoft.Network/publicIPAddresses/d4872483-4abc-480e-bf31-a00bc58c2b68\"\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_acscliapi9_cmdtest000001_westus2/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cmdtest000001-agentpool\",\n + \ \"clientId\": \"0c3120ae-1ea8-4afc-a67d-6f5a49c923bf\",\n \"objectId\": + \"fc1d366e-1419-4e02-9518-a57729b7be72\"\n }\n }\n },\n \"identity\": + {\n \"type\": \"SystemAssigned\",\n \"principalId\": \"c505e4b6-a012-4c7c-a38e-285a025a90b2\",\n + \ \"tenantId\": \"657a2bb7-9a58-4be7-87f3-643bb3b7cbb5\"\n },\n \"sku\": + {\n \"name\": \"Basic\",\n \"tier\": \"Free\"\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '3370' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 08:45: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 +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/recordings/test_aks_upgrade_node_image_only_nodepool.yaml b/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/recordings/test_aks_upgrade_node_image_only_nodepool.yaml new file mode 100644 index 00000000000..404e99b6bfb --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/recordings/test_aks_upgrade_node_image_only_nodepool.yaml @@ -0,0 +1,576 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --nodepool-name --vm-set-type --node-count --ssh-key-value + -o + User-Agent: + - AZURECLI/2.23.0 azsdk-python-azure-mgmt-resource/16.1.0 Python/3.7.4 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acscliapi11?api-version=2019-10-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11","name":"acscliapi11","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '230' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 10 Jun 2021 09:29:08 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"location": "westus2", "properties": {"kubernetesVersion": "", "dnsPrefix": + "cliakstest-acscliapi11-8a4f68", "agentPoolProfiles": [{"count": 1, "vmSize": + "Standard_DS2_v2", "osType": "Linux", "type": "VirtualMachineScaleSets", "mode": + "System", "enableNodePublicIP": false, "scaleSetPriority": "Regular", "scaleSetEvictionPolicy": + "Delete", "name": "c000002"}], "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, "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"}}, "identity": {"type": "SystemAssigned"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '1511' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --resource-group --name --nodepool-name --vm-set-type --node-count --ssh-key-value + -o + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000001?api-version=2020-11-01 + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000001\",\n + \ \"location\": \"westus2\",\n \"name\": \"cliakstest000001\",\n \"type\": + \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": + \"Creating\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": + \"1.19.11\",\n \"dnsPrefix\": \"cliakstest-acscliapi11-8a4f68\",\n \"fqdn\": + \"cliakstest-acscliapi11-8a4f68-97af72f3.hcp.westus2.azmk8s.io\",\n \"agentPoolProfiles\": + [\n {\n \"name\": \"c000002\",\n \"count\": 1,\n \"vmSize\": + \"Standard_DS2_v2\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": \"Managed\",\n + \ \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n \"provisioningState\": + \"Creating\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n + \ \"orchestratorVersion\": \"1.19.11\",\n \"enableNodePublicIP\": false,\n + \ \"nodeLabels\": {},\n \"mode\": \"System\",\n \"osType\": \"Linux\",\n + \ \"nodeImageVersion\": \"AKSUbuntu-1804gen2containerd-2021.05.19\"\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_acscliapi11_cliakstest000001_westus2\",\n \"enableRBAC\": true,\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 },\n \"identity\": {\n \"type\": \"SystemAssigned\",\n \"principalId\":\"00000000-0000-0000-0000-000000000001\",\n + \ \"tenantId\": \"657a2bb7-9a58-4be7-87f3-643bb3b7cbb5\"\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/2ad0d90d-6832-4b7f-b97c-16ec58f9c755?api-version=2016-03-30 + cache-control: + - no-cache + content-length: + - '2713' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:29:15 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --nodepool-name --vm-set-type --node-count --ssh-key-value + -o + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/2ad0d90d-6832-4b7f-b97c-16ec58f9c755?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"0dd9d02a-3268-7f4b-b97c-16ec58f9c755\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-06-10T09:29:15.8066666Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:29: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 create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --nodepool-name --vm-set-type --node-count --ssh-key-value + -o + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/2ad0d90d-6832-4b7f-b97c-16ec58f9c755?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"0dd9d02a-3268-7f4b-b97c-16ec58f9c755\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-06-10T09:29:15.8066666Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:30:15 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --nodepool-name --vm-set-type --node-count --ssh-key-value + -o + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/2ad0d90d-6832-4b7f-b97c-16ec58f9c755?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"0dd9d02a-3268-7f4b-b97c-16ec58f9c755\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-06-10T09:29:15.8066666Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:30:46 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --nodepool-name --vm-set-type --node-count --ssh-key-value + -o + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/2ad0d90d-6832-4b7f-b97c-16ec58f9c755?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"0dd9d02a-3268-7f4b-b97c-16ec58f9c755\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-06-10T09:29:15.8066666Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:31:16 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --nodepool-name --vm-set-type --node-count --ssh-key-value + -o + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/2ad0d90d-6832-4b7f-b97c-16ec58f9c755?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"0dd9d02a-3268-7f4b-b97c-16ec58f9c755\",\n \"status\": + \"Succeeded\",\n \"startTime\": \"2021-06-10T09:29:15.8066666Z\",\n \"endTime\": + \"2021-06-10T09:31:21.0215986Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '170' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:31: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 create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --nodepool-name --vm-set-type --node-count --ssh-key-value + -o + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000001?api-version=2020-11-01 + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000001\",\n + \ \"location\": \"westus2\",\n \"name\": \"cliakstest000001\",\n \"type\": + \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": + \"Succeeded\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": + \"1.19.11\",\n \"dnsPrefix\": \"cliakstest-acscliapi11-8a4f68\",\n \"fqdn\": + \"cliakstest-acscliapi11-8a4f68-97af72f3.hcp.westus2.azmk8s.io\",\n \"agentPoolProfiles\": + [\n {\n \"name\": \"c000002\",\n \"count\": 1,\n \"vmSize\": + \"Standard_DS2_v2\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": \"Managed\",\n + \ \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n \"provisioningState\": + \"Succeeded\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n + \ \"orchestratorVersion\": \"1.19.11\",\n \"enableNodePublicIP\": false,\n + \ \"nodeLabels\": {},\n \"mode\": \"System\",\n \"osType\": \"Linux\",\n + \ \"nodeImageVersion\": \"AKSUbuntu-1804gen2containerd-2021.05.19\"\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_acscliapi11_cliakstest000001_westus2\",\n \"enableRBAC\": true,\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_acscliapi11_cliakstest000001_westus2/providers/Microsoft.Network/publicIPAddresses/7fdb7f4b-6257-41d7-9dc8-b9b13a4d3600\"\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_acscliapi11_cliakstest000001_westus2/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cliakstest000001-agentpool\",\n + \ \"clientId\":\"00000000-0000-0000-0000-000000000001\",\n \"objectId\":\"00000000-0000-0000-0000-000000000001\"\n + \ }\n }\n },\n \"identity\": {\n \"type\": \"SystemAssigned\",\n \"principalId\":\"00000000-0000-0000-0000-000000000001\",\n + \ \"tenantId\": \"657a2bb7-9a58-4be7-87f3-643bb3b7cbb5\"\n },\n \"sku\": + {\n \"name\": \"Basic\",\n \"tier\": \"Free\"\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '3364' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:31:46 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - 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 + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000001/agentPools/c000002/upgradeNodeImageVersion?api-version=2020-11-01 + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000001/agentPools/c000002\",\n + \ \"name\": \"c000002\",\n \"type\": \"Microsoft.ContainerService/managedClusters/agentPools\",\n + \ \"properties\": {\n \"count\": 1,\n \"vmSize\": \"Standard_DS2_v2\",\n + \ \"osDiskSizeGB\": 128,\n \"osDiskType\": \"Managed\",\n \"maxPods\": + 110,\n \"type\": \"VirtualMachineScaleSets\",\n \"provisioningState\": + \"UpgradingNodeImageVersion\",\n \"powerState\": {\n \"code\": \"Running\"\n + \ },\n \"orchestratorVersion\": \"1.19.11\",\n \"enableNodePublicIP\": + false,\n \"nodeLabels\": {},\n \"mode\": \"System\",\n \"osType\": \"Linux\",\n + \ \"nodeImageVersion\": \"AKSUbuntu-1804gen2containerd-2021.05.19\"\n }\n + }" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/3e31c4eb-edc7-46ac-9d46-174e7da12e52?api-version=2016-03-30 + cache-control: + - no-cache + content-length: + - '745' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:31:48 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operationresults/3e31c4eb-edc7-46ac-9d46-174e7da12e52?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: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000001/agentPools/c000002?api-version=2020-11-01 + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acscliapi11/providers/Microsoft.ContainerService/managedClusters/cliakstest000001/agentPools/c000002\",\n + \ \"name\": \"c000002\",\n \"type\": \"Microsoft.ContainerService/managedClusters/agentPools\",\n + \ \"properties\": {\n \"count\": 1,\n \"vmSize\": \"Standard_DS2_v2\",\n + \ \"osDiskSizeGB\": 128,\n \"osDiskType\": \"Managed\",\n \"maxPods\": + 110,\n \"type\": \"VirtualMachineScaleSets\",\n \"provisioningState\": + \"UpgradingNodeImageVersion\",\n \"powerState\": {\n \"code\": \"Running\"\n + \ },\n \"orchestratorVersion\": \"1.19.11\",\n \"enableNodePublicIP\": + false,\n \"nodeLabels\": {},\n \"mode\": \"System\",\n \"osType\": \"Linux\",\n + \ \"nodeImageVersion\": \"AKSUbuntu-1804gen2containerd-2021.05.19\"\n }\n + }" + headers: + cache-control: + - no-cache + content-length: + - '745' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 09:31: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 +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/recordings/test_openshift_create_default_service.yaml b/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/recordings/test_openshift_create_default_service.yaml new file mode 100644 index 00000000000..a50563986d2 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/recordings/test_openshift_create_default_service.yaml @@ -0,0 +1,450 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - ad app create + Connection: + - keep-alive + ParameterSetName: + - --display-name --key-type --password --identifier-uris + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-graphrbac/0.60.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: GET + uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/applications?$filter=startswith%28displayName%2C%27clitest000001%27%29&api-version=1.6 + response: + body: + string: '{"odata.metadata":"https://graph.windows.net/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects","value":[]}' + headers: + access-control-allow-origin: + - '*' + cache-control: + - no-cache + content-length: + - '121' + content-type: + - application/json; odata=minimalmetadata; streaming=true; charset=utf-8 + dataserviceversion: + - 3.0; + date: + - Thu, 10 Jun 2021 08:30:53 GMT + duration: + - '446065' + expires: + - '-1' + ocp-aad-diagnostics-server-name: + - /SDo63YB3FUluvw0LRzVOtWORcsB82kmFFQHvqUgnas= + ocp-aad-session-key: + - QCWwGGew-P1plHklIt2PctvTwSGnPxYnKZhjDnFxRnxYs19U-KgFnMfJGlK6EPlbFWhaLP4Ul1qyARo5NfoEYr52MeL4gAvbvT5uqKr9DTiqdW62k66V_nzNPaoqn1Cd46VpnkCooZXHPzwHy1Hf5svMND985tfFs_ayrqmFGh8.8yIYhXnM0yQ8f1ggCqxNwBXLrms0FyW4RywHx63pbdk + pragma: + - no-cache + request-id: + - 86b0e966-c79e-4558-8757-89ff1acdac4b + strict-transport-security: + - max-age=31536000; includeSubDomains + x-aspnet-version: + - 4.0.30319 + x-ms-dirapi-data-contract-version: + - '1.6' + x-ms-resource-unit: + - '2' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"availableToOtherTenants": false, "passwordCredentials": [{"startDate": + "2021-06-10T08:30:54.778122Z", "endDate": "2022-06-09T08:30:54.778122Z", "keyId": + "021fa5c9-3e70-43fb-8315-9dcf0ed34d9b", "value": "ReplacedSPPassword123*"}], + "displayName": "ReplacedSPPassword123*", "identifierUris": ["http://ReplacedSPPassword123*"]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - ad app create + Connection: + - keep-alive + Content-Length: + - '331' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --display-name --key-type --password --identifier-uris + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-graphrbac/0.60.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: POST + uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/applications?api-version=1.6 + response: + body: + string: '{"odata.metadata": "https://graph.windows.net/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects/@Element", + "odata.type": "Microsoft.DirectoryServices.Application", "objectType": "Application", + "objectId": "dce4ffdd-7855-497b-892c-287eb89b7969", "deletionTimestamp": null, + "acceptMappedClaims": null, "addIns": [], "appId": "f0441917-eab2-48a5-88f0-bc1a60279465", + "applicationTemplateId": null, "appRoles": [], "availableToOtherTenants": + false, "displayName": "clitest000001", "errorUrl": null, "groupMembershipClaims": + null, "homepage": null, "identifierUris": ["http://clitest000001"], "informationalUrls": + {"termsOfService": null, "support": null, "privacy": null, "marketing": null}, + "isDeviceOnlyAuthSupported": null, "keyCredentials": [], "knownClientApplications": + [], "logoutUrl": null, "logo@odata.mediaEditLink": "directoryObjects/dce4ffdd-7855-497b-892c-287eb89b7969/Microsoft.DirectoryServices.Application/logo", + "logo@odata.mediaContentType": "application/json;odata=minimalmetadata; charset=utf-8", + "logoUrl": null, "mainLogo@odata.mediaEditLink": "directoryObjects/dce4ffdd-7855-497b-892c-287eb89b7969/Microsoft.DirectoryServices.Application/mainLogo", + "oauth2AllowIdTokenImplicitFlow": true, "oauth2AllowImplicitFlow": false, + "oauth2AllowUrlPathMatching": false, "oauth2Permissions": [{"adminConsentDescription": + "Allow the application to access clitest000001 on behalf of the signed-in + user.", "adminConsentDisplayName": "Access clitest000001", "id": "dda54172-c21f-4c2b-ac1f-f72c7b17aafe", + "isEnabled": true, "type": "User", "userConsentDescription": "Allow the application + to access clitest000001 on your behalf.", "userConsentDisplayName": "Access + clitest000001", "value": "user_impersonation"}], "oauth2RequirePostResponse": + false, "optionalClaims": null, "orgRestrictions": [], "parentalControlSettings": + {"countriesBlockedForMinors": [], "legalAgeGroupRule": "Allow"}, "passwordCredentials": + [{"customKeyIdentifier": null, "endDate": "2022-06-09T08:30:54.778122Z", "keyId": + "021fa5c9-3e70-43fb-8315-9dcf0ed34d9b", "startDate": "2021-06-10T08:30:54.778122Z", + "value": "ReplacedSPPassword123*"}], "publicClient": null, "publisherDomain": + "bhuvanitgmail.onmicrosoft.com", "recordConsentConditions": null, "replyUrls": + [], "requiredResourceAccess": [], "samlMetadataUrl": null, "signInAudience": + "AzureADMyOrg", "tokenEncryptionKeyId": null}' + headers: + access-control-allow-origin: + - '*' + cache-control: + - no-cache + content-length: + - '2302' + content-type: + - application/json; odata=minimalmetadata; streaming=true; charset=utf-8 + dataserviceversion: + - 3.0; + date: + - Thu, 10 Jun 2021 08:30:54 GMT + duration: + - '2777951' + expires: + - '-1' + location: + - https://graph.windows.net/00000000-0000-0000-0000-000000000000/directoryObjects/dce4ffdd-7855-497b-892c-287eb89b7969/Microsoft.DirectoryServices.Application + ocp-aad-diagnostics-server-name: + - m4jubrNwoR6aGjVyorOSv21ZcagFQHb2CxdiFi0DGdc= + ocp-aad-session-key: + - KuytDUk7y8AICCDKHehUX5gT0l6r-tXm3QSeU2wuVRi7SYU8ERvzAHCRqtof_OiTqTWZcuLRLg8P-Vab-xv4wijABRUn5kyHNgBlEVMaS7YmmfS9Euv4Cs1p-9kDUQW94pRjbqHegsDsnIcB3IqfZ_BjIF5eEquTLLBNs64ifPM.lX0OIQvumkGeJikgiXCy3De93GclnQir9WFlYsQmxgU + pragma: + - no-cache + request-id: + - 88279f2a-1d10-4346-afb2-37af41858689 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-aspnet-version: + - 4.0.30319 + x-ms-dirapi-data-contract-version: + - '1.6' + x-ms-resource-unit: + - '1' + x-powered-by: + - ASP.NET + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - openshift create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --compute-count --aad-client-app-id --aad-client-app-secret + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi8/providers/Microsoft.ContainerService/openShiftManagedClusters/clitestosa000003?api-version=2019-09-30-preview + response: + body: + string: '{"error":{"code":"ResourceNotFound","message":"The Resource ''Microsoft.ContainerService/openShiftManagedClusters/clitestosa000003'' + under resource group ''acscliapi8'' was not found. For more details please + go to https://aka.ms/ARMResourceNotFoundFix"}}' + headers: + cache-control: + - no-cache + content-length: + - '249' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 10 Jun 2021 08:30:54 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-failure-cause: + - gateway + status: + code: 404 + message: Not Found +- request: + body: '{"location": "WestUS2", "properties": {"openShiftVersion": "v3.11", "networkProfile": + {"vnetCidr": "10.0.0.0/8"}, "routerProfiles": [{"name": "default"}], "masterPoolProfile": + {"name": "master", "count": 3, "vmSize": "Standard_D4s_v3", "subnetCidr": "10.0.0.0/24", + "osType": "Linux"}, "agentPoolProfiles": [{"name": "compute", "count": 1, "vmSize": + "Standard_D4s_v3", "subnetCidr": "10.0.0.0/24", "osType": "Linux", "role": "compute"}, + {"name": "infra", "count": 3, "vmSize": "Standard_D4s_v3", "subnetCidr": "10.0.0.0/24", + "osType": "Linux", "role": "infra"}], "authProfile": {"identityProviders": [{"name": + "Azure AD", "provider": {"kind": "AADIdentityProvider", "clientId": "f0441917-eab2-48a5-88f0-bc1a60279465", + "secret": "clitest000001"}}]}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - openshift create + Connection: + - keep-alive + Content-Length: + - '759' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --resource-group --name --location --compute-count --aad-client-app-id --aad-client-app-secret + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi8/providers/Microsoft.ContainerService/openShiftManagedClusters/clitestosa000003?api-version=2019-09-30-preview + response: + body: + string: "{\n \"code\": \"CreatesNotAllowed\",\n \"message\": \"Microsoft.ContainerService/openshiftManagedClusters + is in the process of being deprecated. Please do all new creates on Microsoft.RedHatOpenshift/openShiftClusters\"\n + }" + headers: + cache-control: + - no-cache + content-length: + - '214' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 08:30:55 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: 400 + message: Bad Request +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - ad app delete + Connection: + - keep-alive + ParameterSetName: + - --id + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-graphrbac/0.60.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: GET + uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/applications?$filter=identifierUris%2Fany%28s%3As%20eq%20%27f0441917-eab2-48a5-88f0-bc1a60279465%27%29&api-version=1.6 + response: + body: + string: '{"odata.metadata":"https://graph.windows.net/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects","value":[]}' + headers: + access-control-allow-origin: + - '*' + cache-control: + - no-cache + content-length: + - '121' + content-type: + - application/json; odata=minimalmetadata; streaming=true; charset=utf-8 + dataserviceversion: + - 3.0; + date: + - Thu, 10 Jun 2021 08:30:56 GMT + duration: + - '479672' + expires: + - '-1' + ocp-aad-diagnostics-server-name: + - Jo3xFIkM9mb8Lp7+VPvE4cfrpCS7spretmG7f2BpLM8= + ocp-aad-session-key: + - MhNqf9PB3kUMNUk1rZ3UEI6FiEGcQUQeL2lGTywSiadjc8MB9dKJ-vGTMrHlckRnz5U-cAdKAJsJWVm1A9yR5zfPFlqHLU0TyrGUsvXzhCfN1lU1tFgpddXLFLYwbviyHv7MOHf6A98-DpCkEIeouyntDfQjmXWjJ_gTz05aKGY.CFi2YaRyZKdLJxEWHO8FC6951ZTx06PeSqx9jB3EVEQ + pragma: + - no-cache + request-id: + - 5fd4a508-81ca-4d95-adcc-2713c37bdb4b + strict-transport-security: + - max-age=31536000; includeSubDomains + x-aspnet-version: + - 4.0.30319 + x-ms-dirapi-data-contract-version: + - '1.6' + x-ms-resource-unit: + - '2' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - ad app delete + Connection: + - keep-alive + ParameterSetName: + - --id + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-graphrbac/0.60.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: GET + uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/applications?$filter=appId%20eq%20%27f0441917-eab2-48a5-88f0-bc1a60279465%27&api-version=1.6 + response: + body: + string: '{"odata.metadata":"https://graph.windows.net/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects","value":[{"odata.type":"Microsoft.DirectoryServices.Application","objectType":"Application","objectId":"dce4ffdd-7855-497b-892c-287eb89b7969","deletionTimestamp":null,"acceptMappedClaims":null,"addIns":[],"appId":"f0441917-eab2-48a5-88f0-bc1a60279465","applicationTemplateId":null,"appRoles":[],"availableToOtherTenants":false,"displayName":"clitest000001","errorUrl":null,"groupMembershipClaims":null,"homepage":null,"identifierUris":["http://clitest000001"],"informationalUrls":{"termsOfService":null,"support":null,"privacy":null,"marketing":null},"isDeviceOnlyAuthSupported":null,"keyCredentials":[],"knownClientApplications":[],"logoutUrl":null,"logo@odata.mediaEditLink":"directoryObjects/dce4ffdd-7855-497b-892c-287eb89b7969/Microsoft.DirectoryServices.Application/logo","logoUrl":null,"mainLogo@odata.mediaEditLink":"directoryObjects/dce4ffdd-7855-497b-892c-287eb89b7969/Microsoft.DirectoryServices.Application/mainLogo","oauth2AllowIdTokenImplicitFlow":true,"oauth2AllowImplicitFlow":false,"oauth2AllowUrlPathMatching":false,"oauth2Permissions":[{"adminConsentDescription":"Allow + the application to access clitest000001 on behalf of the signed-in user.","adminConsentDisplayName":"Access + clitest000001","id":"dda54172-c21f-4c2b-ac1f-f72c7b17aafe","isEnabled":true,"type":"User","userConsentDescription":"Allow + the application to access clitest000001 on your behalf.","userConsentDisplayName":"Access + clitest000001","value":"user_impersonation"}],"oauth2RequirePostResponse":false,"optionalClaims":null,"orgRestrictions":[],"parentalControlSettings":{"countriesBlockedForMinors":[],"legalAgeGroupRule":"Allow"},"passwordCredentials":[{"customKeyIdentifier":null,"endDate":"2022-06-09T08:30:54.778122Z","keyId":"021fa5c9-3e70-43fb-8315-9dcf0ed34d9b","startDate":"2021-06-10T08:30:54.778122Z","value":null}],"publicClient":null,"publisherDomain":"bhuvanitgmail.onmicrosoft.com","recordConsentConditions":null,"replyUrls":[],"requiredResourceAccess":[],"samlMetadataUrl":null,"signInAudience":"AzureADMyOrg","tokenEncryptionKeyId":null}]}' + headers: + access-control-allow-origin: + - '*' + cache-control: + - no-cache + content-length: + - '2219' + content-type: + - application/json; odata=minimalmetadata; streaming=true; charset=utf-8 + dataserviceversion: + - 3.0; + date: + - Thu, 10 Jun 2021 08:30:55 GMT + duration: + - '547902' + expires: + - '-1' + ocp-aad-diagnostics-server-name: + - ZD/zvBhigbAIftKPayN2/Dmdgunt/DUfCEhO+J6I+Yo= + ocp-aad-session-key: + - PdUXgbPkqUB1t-xOj53WlKHnP-XQeDV2iWUmx6aFblo-XAfm_UZrHpq-WO9ARu_jGpJnr11RFvhmqrtLY2fuvObKsqR0kfj0VJlQBWfWIP9nhP05GZI0dzdQoOuU9HLb8KOH9IHzf2OrmzjNzaahPY9f-LTJd8kw2IWkHQFYEBE.38zZhWWS6AOVSktD4NUEcNapi2jFfOV6d_f2OSCv34I + pragma: + - no-cache + request-id: + - 2975f630-1764-4b87-8443-792e1aadc421 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-aspnet-version: + - 4.0.30319 + x-ms-dirapi-data-contract-version: + - '1.6' + x-ms-resource-unit: + - '2' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - ad app delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --id + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-graphrbac/0.60.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: DELETE + uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/applications/dce4ffdd-7855-497b-892c-287eb89b7969?api-version=1.6 + response: + body: + string: '' + headers: + access-control-allow-origin: + - '*' + cache-control: + - no-cache + date: + - Thu, 10 Jun 2021 08:30:56 GMT + duration: + - '1096432' + expires: + - '-1' + ocp-aad-diagnostics-server-name: + - TGZiSY7BOPh44S88kCZWfuQODjEH0CUrfdTLgtGF8oo= + ocp-aad-session-key: + - APVBmCrfu8G-Jkc5m4-0-bIWd8P5cSt8S0j8b6L9MzaBu9Mmzw0Q6bmTzSTNWvPIE_wGGV8gabg9lFRaHyfhe2GJzcXEBvOCm1m00QM0PUv1MWVNdoql-BUYXY-AXAthOmFQ7Z_GB1Q6-JhUCBR3nhzqAyioRQDyVkJlYaH9cX0.tLauXJULG0tB_9-6o28sqDaoIWwdtBdyOUh3hh_iv2I + pragma: + - no-cache + request-id: + - 3779a452-26d6-4a7a-9c08-90acddbb0ec4 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-aspnet-version: + - 4.0.30319 + x-ms-dirapi-data-contract-version: + - '1.6' + x-ms-resource-unit: + - '1' + x-powered-by: + - ASP.NET + status: + code: 204 + message: No Content +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/recordings/test_openshift_create_default_service_no_aad.yaml b/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/recordings/test_openshift_create_default_service_no_aad.yaml new file mode 100644 index 00000000000..b8cfa213016 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/recordings/test_openshift_create_default_service_no_aad.yaml @@ -0,0 +1,274 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - openshift create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --compute-count + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi8/providers/Microsoft.ContainerService/openShiftManagedClusters/clitestosa000001?api-version=2019-09-30-preview + response: + body: + string: '{"error":{"code":"ResourceNotFound","message":"The Resource ''Microsoft.ContainerService/openShiftManagedClusters/clitestosa000001'' + under resource group ''acscliapi8'' was not found. For more details please + go to https://aka.ms/ARMResourceNotFoundFix"}}' + headers: + cache-control: + - no-cache + content-length: + - '249' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 10 Jun 2021 08:30:56 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-failure-cause: + - gateway + status: + code: 404 + message: Not Found +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - openshift create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --compute-count + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-graphrbac/0.60.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: GET + uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/applications?$filter=identifierUris%2Fany%28s%3As%20eq%20%27https%3A%2F%2Fclitestosa000001%27%29&api-version=1.6 + response: + body: + string: '{"odata.metadata":"https://graph.windows.net/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects","value":[]}' + headers: + access-control-allow-origin: + - '*' + cache-control: + - no-cache + content-length: + - '121' + content-type: + - application/json; odata=minimalmetadata; streaming=true; charset=utf-8 + dataserviceversion: + - 3.0; + date: + - Thu, 10 Jun 2021 08:30:57 GMT + duration: + - '428367' + expires: + - '-1' + ocp-aad-diagnostics-server-name: + - 7V6TjhmQKDr0Se6Rz2TPz50W0QGXuJnZa6go3+a+D0o= + ocp-aad-session-key: + - akDLzJFPr9E13FQlJCytiY6fxYSnB-kPmt7xSKF6NSR94Dp4-x4YK0Xsd0m7r9BF00gRYAbFEDPLu1hVev_E8zjeyi987T4KE4CQ3QPi61LxA8jUK3T9GF9JD0ZuHbnMeipIkjA1Of1o5MqGdZ5r1Ff70MGVhibZ1NF8T9ETsX0.3ZHCQF7CQMuSUQ8cSZB5E4THKWZcRmDIDPrMu7Y9-40 + pragma: + - no-cache + request-id: + - e04d5b1d-54f5-47d4-8a24-84fa4b239ff4 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-aspnet-version: + - 4.0.30319 + x-ms-dirapi-data-contract-version: + - '1.6' + x-ms-resource-unit: + - '2' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"availableToOtherTenants": false, "homepage": "https://clitestosa000001", + "passwordCredentials": [{"startDate": "2021-06-10T08:30:57.846209Z", "endDate": + "2022-06-10T08:30:57.846209Z", "keyId": "e779e06a-643e-4b3e-adf2-f12e5a070b36", + "value": "ReplacedSPPassword123*"}], "requiredResourceAccess": [{"resourceAccess": + [{"id": "311a71cc-e848-46a1-bdf8-97ff7156d8e6", "type": "Scope"}, {"id": "5778995a-e1bf-45b8-affa-663a9f3f4d04", + "type": "Role"}], "resourceAppId": "00000002-0000-0000-c000-000000000000"}], + "displayName": "clitestosa000001", "identifierUris": ["https://clitestosa000001"]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - openshift create + Connection: + - keep-alive + Content-Length: + - '586' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --resource-group --name --location --compute-count + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-graphrbac/0.60.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: POST + uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/applications?api-version=1.6 + response: + body: + string: '{"odata.metadata": "https://graph.windows.net/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects/@Element", + "odata.type": "Microsoft.DirectoryServices.Application", "objectType": "Application", + "objectId": "9803d8cd-8aa8-454a-be07-beb8f57788fa", "deletionTimestamp": null, + "acceptMappedClaims": null, "addIns": [], "appId": "1a9b46e1-538e-4044-860a-d124b7d05e47", + "applicationTemplateId": null, "appRoles": [], "availableToOtherTenants": + false, "displayName": "clitestosa000001", "errorUrl": null, "groupMembershipClaims": + null, "homepage": "https://clitestosa000001", "identifierUris": ["https://clitestosa000001"], + "informationalUrls": {"termsOfService": null, "support": null, "privacy": + null, "marketing": null}, "isDeviceOnlyAuthSupported": null, "keyCredentials": + [], "knownClientApplications": [], "logoutUrl": null, "logo@odata.mediaEditLink": + "directoryObjects/9803d8cd-8aa8-454a-be07-beb8f57788fa/Microsoft.DirectoryServices.Application/logo", + "logo@odata.mediaContentType": "application/json;odata=minimalmetadata; charset=utf-8", + "logoUrl": null, "mainLogo@odata.mediaEditLink": "directoryObjects/9803d8cd-8aa8-454a-be07-beb8f57788fa/Microsoft.DirectoryServices.Application/mainLogo", + "oauth2AllowIdTokenImplicitFlow": true, "oauth2AllowImplicitFlow": false, + "oauth2AllowUrlPathMatching": false, "oauth2Permissions": [{"adminConsentDescription": + "Allow the application to access clitestosa000001 on behalf of the signed-in + user.", "adminConsentDisplayName": "Access clitestosa000001", "id": "39413cb7-bbf5-4ddf-a592-586be7320572", + "isEnabled": true, "type": "User", "userConsentDescription": "Allow the application + to access clitestosa000001 on your behalf.", "userConsentDisplayName": "Access + clitestosa000001", "value": "user_impersonation"}], "oauth2RequirePostResponse": + false, "optionalClaims": null, "orgRestrictions": [], "parentalControlSettings": + {"countriesBlockedForMinors": [], "legalAgeGroupRule": "Allow"}, "passwordCredentials": + [{"customKeyIdentifier": null, "endDate": "2022-06-10T08:30:57.846209Z", "keyId": + "e779e06a-643e-4b3e-adf2-f12e5a070b36", "startDate": "2021-06-10T08:30:57.846209Z", + "value": "ReplacedSPPassword123*"}], "publicClient": null, "publisherDomain": + "bhuvanitgmail.onmicrosoft.com", "recordConsentConditions": null, "replyUrls": + [], "requiredResourceAccess": [{"resourceAppId": "00000002-0000-0000-c000-000000000000", + "resourceAccess": [{"id": "311a71cc-e848-46a1-bdf8-97ff7156d8e6", "type": + "Scope"}, {"id": "5778995a-e1bf-45b8-affa-663a9f3f4d04", "type": "Role"}]}], + "samlMetadataUrl": null, "signInAudience": "AzureADMyOrg", "tokenEncryptionKeyId": + null}' + headers: + access-control-allow-origin: + - '*' + cache-control: + - no-cache + content-length: + - '2466' + content-type: + - application/json; odata=minimalmetadata; streaming=true; charset=utf-8 + dataserviceversion: + - 3.0; + date: + - Thu, 10 Jun 2021 08:30:57 GMT + duration: + - '2321717' + expires: + - '-1' + location: + - https://graph.windows.net/00000000-0000-0000-0000-000000000000/directoryObjects/9803d8cd-8aa8-454a-be07-beb8f57788fa/Microsoft.DirectoryServices.Application + ocp-aad-diagnostics-server-name: + - GNTE4u2S0l3nSMPMdd6BHsfvB/lZ8KfEGaVLwStX3uQ= + ocp-aad-session-key: + - 7DFZY-uMFir8KzScFlovreNWLI8aJB-27krB49OUdQ_Xcai3HCf0e_xNS4BQpG_ruIzIXoGzF-aiqBTzFoe-JtPQuUL_7HbY0b6f-sIn8o-0aJX0tGu3q7B63xK35-geR-FKKv1RaYbcp7fVP9qmfA_HX6rVM2LLYOgQ4W-Yz4k.2wlpYXjvJBenngHjJx5b5jDhHbGkuD-VcclJzEF5dVk + pragma: + - no-cache + request-id: + - ba5860ef-abea-4186-9c17-336042d28615 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-aspnet-version: + - 4.0.30319 + x-ms-dirapi-data-contract-version: + - '1.6' + x-ms-resource-unit: + - '1' + x-powered-by: + - ASP.NET + status: + code: 201 + message: Created +- request: + body: '{"location": "WestUS2", "properties": {"openShiftVersion": "v3.11", "networkProfile": + {"vnetCidr": "10.0.0.0/8"}, "routerProfiles": [{"name": "default"}], "masterPoolProfile": + {"name": "master", "count": 3, "vmSize": "Standard_D4s_v3", "subnetCidr": "10.0.0.0/24", + "osType": "Linux"}, "agentPoolProfiles": [{"name": "compute", "count": 1, "vmSize": + "Standard_D4s_v3", "subnetCidr": "10.0.0.0/24", "osType": "Linux", "role": "compute"}, + {"name": "infra", "count": 3, "vmSize": "Standard_D4s_v3", "subnetCidr": "10.0.0.0/24", + "osType": "Linux", "role": "infra"}], "authProfile": {"identityProviders": [{"name": + "Azure AD", "provider": {"kind": "AADIdentityProvider", "clientId": "1a9b46e1-538e-4044-860a-d124b7d05e47", + "secret": "a037d32fd1e004960993$", "tenantId": "657a2bb7-9a58-4be7-87f3-643bb3b7cbb5"}}]}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - openshift create + Connection: + - keep-alive + Content-Length: + - '808' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --resource-group --name --location --compute-count + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi8/providers/Microsoft.ContainerService/openShiftManagedClusters/clitestosa000001?api-version=2019-09-30-preview + response: + body: + string: "{\n \"code\": \"CreatesNotAllowed\",\n \"message\": \"Microsoft.ContainerService/openshiftManagedClusters + is in the process of being deprecated. Please do all new creates on Microsoft.RedHatOpenshift/openShiftClusters\"\n + }" + headers: + cache-control: + - no-cache + content-length: + - '214' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 08:30:58 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: 400 + message: Bad Request +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/recordings/test_openshift_create_service_no_wait.yaml b/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/recordings/test_openshift_create_service_no_wait.yaml new file mode 100644 index 00000000000..e007d6f4c15 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/recordings/test_openshift_create_service_no_wait.yaml @@ -0,0 +1,451 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - ad app create + Connection: + - keep-alive + ParameterSetName: + - --display-name --key-type --password --identifier-uris + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-graphrbac/0.60.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: GET + uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/applications?$filter=startswith%28displayName%2C%27clitest000001%27%29&api-version=1.6 + response: + body: + string: '{"odata.metadata":"https://graph.windows.net/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects","value":[]}' + headers: + access-control-allow-origin: + - '*' + cache-control: + - no-cache + content-length: + - '121' + content-type: + - application/json; odata=minimalmetadata; streaming=true; charset=utf-8 + dataserviceversion: + - 3.0; + date: + - Thu, 10 Jun 2021 08:30:59 GMT + duration: + - '467480' + expires: + - '-1' + ocp-aad-diagnostics-server-name: + - tOblCY6/uQzfyVFLc7gesvTW3wQLzS+Fv+Q3eZG5HeI= + ocp-aad-session-key: + - Pq_e_VjzmtZzRCKq5HTPM0cD4qDztsTGLSM3wO1OIqaus7xPbabZI7wUPxFtGkMqA32BCA39vifLbbcWnH5-l2bmrSgems26qORoWmjXiBfTlt2Lo2b_pKRIlGvV8-7fuC4rYv0YKWsx_3IzUYKYdyvAseHdMmapUv5D48xluTw.cMGOHN5Oj9cJ-ABs-uTsZkvD700prpZE10A-Yf8EoXQ + pragma: + - no-cache + request-id: + - eea8ef9d-f6a6-4bb2-bd87-7cb5c36a6733 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-aspnet-version: + - 4.0.30319 + x-ms-dirapi-data-contract-version: + - '1.6' + x-ms-resource-unit: + - '2' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"availableToOtherTenants": false, "passwordCredentials": [{"startDate": + "2021-06-10T08:31:00.2209Z", "endDate": "2022-06-09T08:31:00.2209Z", "keyId": + "3c059fa2-8088-4b7e-bc39-2496934c41d8", "value": "ReplacedSPPassword123*"}], + "displayName": "ReplacedSPPassword123*", "identifierUris": ["http://ReplacedSPPassword123*"]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - ad app create + Connection: + - keep-alive + Content-Length: + - '327' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --display-name --key-type --password --identifier-uris + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-graphrbac/0.60.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: POST + uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/applications?api-version=1.6 + response: + body: + string: '{"odata.metadata": "https://graph.windows.net/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects/@Element", + "odata.type": "Microsoft.DirectoryServices.Application", "objectType": "Application", + "objectId": "49be6893-fc93-43f2-b014-58e37665951b", "deletionTimestamp": null, + "acceptMappedClaims": null, "addIns": [], "appId": "c7d989fc-9f88-4b2c-bc40-2e2104955d3e", + "applicationTemplateId": null, "appRoles": [], "availableToOtherTenants": + false, "displayName": "clitest000001", "errorUrl": null, "groupMembershipClaims": + null, "homepage": null, "identifierUris": ["http://clitest000001"], "informationalUrls": + {"termsOfService": null, "support": null, "privacy": null, "marketing": null}, + "isDeviceOnlyAuthSupported": null, "keyCredentials": [], "knownClientApplications": + [], "logoutUrl": null, "logo@odata.mediaEditLink": "directoryObjects/49be6893-fc93-43f2-b014-58e37665951b/Microsoft.DirectoryServices.Application/logo", + "logo@odata.mediaContentType": "application/json;odata=minimalmetadata; charset=utf-8", + "logoUrl": null, "mainLogo@odata.mediaEditLink": "directoryObjects/49be6893-fc93-43f2-b014-58e37665951b/Microsoft.DirectoryServices.Application/mainLogo", + "oauth2AllowIdTokenImplicitFlow": true, "oauth2AllowImplicitFlow": false, + "oauth2AllowUrlPathMatching": false, "oauth2Permissions": [{"adminConsentDescription": + "Allow the application to access clitest000001 on behalf of the signed-in + user.", "adminConsentDisplayName": "Access clitest000001", "id": "3f158a36-b527-4a9a-a2f0-c686381b8cbd", + "isEnabled": true, "type": "User", "userConsentDescription": "Allow the application + to access clitest000001 on your behalf.", "userConsentDisplayName": "Access + clitest000001", "value": "user_impersonation"}], "oauth2RequirePostResponse": + false, "optionalClaims": null, "orgRestrictions": [], "parentalControlSettings": + {"countriesBlockedForMinors": [], "legalAgeGroupRule": "Allow"}, "passwordCredentials": + [{"customKeyIdentifier": null, "endDate": "2022-06-09T08:31:00.2209Z", "keyId": + "3c059fa2-8088-4b7e-bc39-2496934c41d8", "startDate": "2021-06-10T08:31:00.2209Z", + "value": "ReplacedSPPassword123*"}], "publicClient": null, "publisherDomain": + "bhuvanitgmail.onmicrosoft.com", "recordConsentConditions": null, "replyUrls": + [], "requiredResourceAccess": [], "samlMetadataUrl": null, "signInAudience": + "AzureADMyOrg", "tokenEncryptionKeyId": null}' + headers: + access-control-allow-origin: + - '*' + cache-control: + - no-cache + content-length: + - '2298' + content-type: + - application/json; odata=minimalmetadata; streaming=true; charset=utf-8 + dataserviceversion: + - 3.0; + date: + - Thu, 10 Jun 2021 08:30:59 GMT + duration: + - '2370660' + expires: + - '-1' + location: + - https://graph.windows.net/00000000-0000-0000-0000-000000000000/directoryObjects/49be6893-fc93-43f2-b014-58e37665951b/Microsoft.DirectoryServices.Application + ocp-aad-diagnostics-server-name: + - wsB+pk65MlMCK3218dj1Jrvkd6C/BMV/ZtK3bm1u4xY= + ocp-aad-session-key: + - 4H9TglySjJpI1AJK9HrdQvAv1J2o39xzTcpbpwFMQdvLd9oD59nBZyt5AHIen0SF3FHHV3xvSOT6Frgb33Gzpp59XuAo95pTqvXOdfj48eQrGjOIf9E6xp2NtjIignU-rsN2PGzDqPcxjj1khTYdaqSheJAIFuFy3DLuvt1mzps.iOzUTHA92GEsqJ0AxEs_LfG47wsiRAXRewh9XXs1RIw + pragma: + - no-cache + request-id: + - e42a7fc5-189a-4bd8-ba92-f56598c77c04 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-aspnet-version: + - 4.0.30319 + x-ms-dirapi-data-contract-version: + - '1.6' + x-ms-resource-unit: + - '1' + x-powered-by: + - ASP.NET + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - openshift create + Connection: + - keep-alive + ParameterSetName: + - -g -n -l -c --aad-client-app-id --aad-client-app-secret --tags --no-wait + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi8/providers/Microsoft.ContainerService/openShiftManagedClusters/clitestosa000003?api-version=2019-09-30-preview + response: + body: + string: '{"error":{"code":"ResourceNotFound","message":"The Resource ''Microsoft.ContainerService/openShiftManagedClusters/clitestosa000003'' + under resource group ''acscliapi8'' was not found. For more details please + go to https://aka.ms/ARMResourceNotFoundFix"}}' + headers: + cache-control: + - no-cache + content-length: + - '249' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 10 Jun 2021 08:30:59 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-failure-cause: + - gateway + status: + code: 404 + message: Not Found +- request: + body: '{"location": "WestUS2", "tags": {"scenario_test": ""}, "properties": {"openShiftVersion": + "v3.11", "networkProfile": {"vnetCidr": "10.0.0.0/8"}, "routerProfiles": [{"name": + "default"}], "masterPoolProfile": {"name": "master", "count": 3, "vmSize": "Standard_D4s_v3", + "subnetCidr": "10.0.0.0/24", "osType": "Linux"}, "agentPoolProfiles": [{"name": + "compute", "count": 1, "vmSize": "Standard_D4s_v3", "subnetCidr": "10.0.0.0/24", + "osType": "Linux", "role": "compute"}, {"name": "infra", "count": 3, "vmSize": + "Standard_D4s_v3", "subnetCidr": "10.0.0.0/24", "osType": "Linux", "role": "infra"}], + "authProfile": {"identityProviders": [{"name": "Azure AD", "provider": {"kind": + "AADIdentityProvider", "clientId": "c7d989fc-9f88-4b2c-bc40-2e2104955d3e", "secret": + "clitest000001"}}]}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - openshift create + Connection: + - keep-alive + Content-Length: + - '790' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g -n -l -c --aad-client-app-id --aad-client-app-secret --tags --no-wait + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-containerservice/11.2.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acscliapi8/providers/Microsoft.ContainerService/openShiftManagedClusters/clitestosa000003?api-version=2019-09-30-preview + response: + body: + string: "{\n \"code\": \"CreatesNotAllowed\",\n \"message\": \"Microsoft.ContainerService/openshiftManagedClusters + is in the process of being deprecated. Please do all new creates on Microsoft.RedHatOpenshift/openShiftClusters\"\n + }" + headers: + cache-control: + - no-cache + content-length: + - '214' + content-type: + - application/json + date: + - Thu, 10 Jun 2021 08:31:00 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 400 + message: Bad Request +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - ad app delete + Connection: + - keep-alive + ParameterSetName: + - --id + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-graphrbac/0.60.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: GET + uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/applications?$filter=identifierUris%2Fany%28s%3As%20eq%20%27c7d989fc-9f88-4b2c-bc40-2e2104955d3e%27%29&api-version=1.6 + response: + body: + string: '{"odata.metadata":"https://graph.windows.net/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects","value":[]}' + headers: + access-control-allow-origin: + - '*' + cache-control: + - no-cache + content-length: + - '121' + content-type: + - application/json; odata=minimalmetadata; streaming=true; charset=utf-8 + dataserviceversion: + - 3.0; + date: + - Thu, 10 Jun 2021 08:31:01 GMT + duration: + - '441694' + expires: + - '-1' + ocp-aad-diagnostics-server-name: + - EGEKb5x2l1Cvgx6PtNfNWj6f+2TUDtnsV8Y7+Tuc1nM= + ocp-aad-session-key: + - 1dkh9GBr7O1ee41MUJ8RVzsooaIKkJjbLYPvNiuDtYI3Xq8Dm71QBRCl_npfFj14sKD5PZXBxI2J4NBARkI8Vg9qBS0hZFQG7ZSwjPexx6aeBQdf4nQT-5HOOvQ6LI382hwDBkYYcylNnqeWbBg26uww7NM9oP-BupAn71zoEi4.2ZkMv5owWl9onqj-seZP30Sj9Xk0OWj8p6ECG7QTCrk + pragma: + - no-cache + request-id: + - 32f7b4ad-857b-4247-abff-63937cd02712 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-aspnet-version: + - 4.0.30319 + x-ms-dirapi-data-contract-version: + - '1.6' + x-ms-resource-unit: + - '2' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - ad app delete + Connection: + - keep-alive + ParameterSetName: + - --id + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-graphrbac/0.60.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: GET + uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/applications?$filter=appId%20eq%20%27c7d989fc-9f88-4b2c-bc40-2e2104955d3e%27&api-version=1.6 + response: + body: + string: '{"odata.metadata":"https://graph.windows.net/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects","value":[{"odata.type":"Microsoft.DirectoryServices.Application","objectType":"Application","objectId":"49be6893-fc93-43f2-b014-58e37665951b","deletionTimestamp":null,"acceptMappedClaims":null,"addIns":[],"appId":"c7d989fc-9f88-4b2c-bc40-2e2104955d3e","applicationTemplateId":null,"appRoles":[],"availableToOtherTenants":false,"displayName":"clitest000001","errorUrl":null,"groupMembershipClaims":null,"homepage":null,"identifierUris":["http://clitest000001"],"informationalUrls":{"termsOfService":null,"support":null,"privacy":null,"marketing":null},"isDeviceOnlyAuthSupported":null,"keyCredentials":[],"knownClientApplications":[],"logoutUrl":null,"logo@odata.mediaEditLink":"directoryObjects/49be6893-fc93-43f2-b014-58e37665951b/Microsoft.DirectoryServices.Application/logo","logoUrl":null,"mainLogo@odata.mediaEditLink":"directoryObjects/49be6893-fc93-43f2-b014-58e37665951b/Microsoft.DirectoryServices.Application/mainLogo","oauth2AllowIdTokenImplicitFlow":true,"oauth2AllowImplicitFlow":false,"oauth2AllowUrlPathMatching":false,"oauth2Permissions":[{"adminConsentDescription":"Allow + the application to access clitest000001 on behalf of the signed-in user.","adminConsentDisplayName":"Access + clitest000001","id":"3f158a36-b527-4a9a-a2f0-c686381b8cbd","isEnabled":true,"type":"User","userConsentDescription":"Allow + the application to access clitest000001 on your behalf.","userConsentDisplayName":"Access + clitest000001","value":"user_impersonation"}],"oauth2RequirePostResponse":false,"optionalClaims":null,"orgRestrictions":[],"parentalControlSettings":{"countriesBlockedForMinors":[],"legalAgeGroupRule":"Allow"},"passwordCredentials":[{"customKeyIdentifier":null,"endDate":"2022-06-09T08:31:00.2209Z","keyId":"3c059fa2-8088-4b7e-bc39-2496934c41d8","startDate":"2021-06-10T08:31:00.2209Z","value":null}],"publicClient":null,"publisherDomain":"bhuvanitgmail.onmicrosoft.com","recordConsentConditions":null,"replyUrls":[],"requiredResourceAccess":[],"samlMetadataUrl":null,"signInAudience":"AzureADMyOrg","tokenEncryptionKeyId":null}]}' + headers: + access-control-allow-origin: + - '*' + cache-control: + - no-cache + content-length: + - '2215' + content-type: + - application/json; odata=minimalmetadata; streaming=true; charset=utf-8 + dataserviceversion: + - 3.0; + date: + - Thu, 10 Jun 2021 08:31:01 GMT + duration: + - '545798' + expires: + - '-1' + ocp-aad-diagnostics-server-name: + - ge13C9yJ3Z3beIHq29K67zBZ6ZydhsiMI3KGDNoR/00= + ocp-aad-session-key: + - hFnUfm63heh2XvN24LDetCFj8DaYQYuF4ZVjdUwmgOuiX_5cVwj5CZIlp43rnwgyK4nJY8UE6mU65s6ehNukzrJe8XWj3LMH5twxR1yhb5l0D071Z3vZmQNMutKiFM2ftfwJMAGG5xeUMc2WaCBFQC_HmDy79Y4nfzysTRSTV98.fj9Rf6SfpN6X6bCFx2Lnc1trpCYHl7jL_FE0p2E7TO0 + pragma: + - no-cache + request-id: + - 996a74f6-e4cf-44a8-b0fd-1183daef2edf + strict-transport-security: + - max-age=31536000; includeSubDomains + x-aspnet-version: + - 4.0.30319 + x-ms-dirapi-data-contract-version: + - '1.6' + x-ms-resource-unit: + - '2' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - ad app delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --id + User-Agent: + - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-graphrbac/0.60.0 Azure-SDK-For-Python AZURECLI/2.23.0 + accept-language: + - en-US + method: DELETE + uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/applications/49be6893-fc93-43f2-b014-58e37665951b?api-version=1.6 + response: + body: + string: '' + headers: + access-control-allow-origin: + - '*' + cache-control: + - no-cache + date: + - Thu, 10 Jun 2021 08:31:01 GMT + duration: + - '1127021' + expires: + - '-1' + ocp-aad-diagnostics-server-name: + - GeDvzjazxFdFblFtlmgUcXYHl/AxxczWC9nmN0mFGNA= + ocp-aad-session-key: + - ugtpz21xEv4ymlMxv84iV2r74KCYJbHbgGylkeiHgdvnK09B9c4nFNUinsceMVf3hJOin_yty7cxMhCd4i8-2M7eUT9kR4pb7TXKUlKzwPkIITHwKdYCnbRDST3jM6udksGr3xIvUAIYZ2zrHA30yWfTlfbvFpGOwdMT-4qA3TA.x9eyCS62IQUHj1SxYC-qeGhZ4h0OBW61O7e7cJrXGWo + pragma: + - no-cache + request-id: + - 0f9ca00a-b39f-4bd0-bbd0-d32c0f0a415f + strict-transport-security: + - max-age=31536000; includeSubDomains + x-aspnet-version: + - 4.0.30319 + x-ms-dirapi-data-contract-version: + - '1.6' + x-ms-resource-unit: + - '1' + x-powered-by: + - ASP.NET + status: + code: 204 + message: No Content +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/test_acs_client.py b/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/test_acs_client.py new file mode 100644 index 00000000000..21e1d1f0478 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/test_acs_client.py @@ -0,0 +1,111 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +import unittest +import mock + +from azure.cli.command_modules.acs.acs_client import ACSClient + + +class AcsClientTest(unittest.TestCase): + def test_create_acs_client(self): + a = ACSClient() + self.assertIsNotNone(a) + + @mock.patch('paramiko.SSHClient') + def test_connect_success(self, mock_ssh_client): + mock_ssh_client.get_transport.return_value = mock.Mock() + a = ACSClient(mock_ssh_client) + res = a.connect('myhostname', 'myuser') + self.assertTrue(res) + + @mock.patch('paramiko.SSHClient') + def test_connect_fails(self, mock_ssh_client): + mock_ssh_client.get_transport.return_value = None + a = ACSClient(mock_ssh_client) + res = a.connect('myhostname', 'myuser') + self.assertFalse(res) + + @mock.patch('paramiko.SSHClient') + def test_connect_default_port(self, mock_ssh_client): + mock_ssh_client.get_transport.return_value = mock.Mock() + a = ACSClient(mock_ssh_client) + a.connect('myhostname', 'myuser') + self.assertEqual(a.port, 2200) + + @mock.patch('paramiko.SSHClient') + def test_connect_set_port(self, mock_ssh_client): + mock_ssh_client.get_transport.return_value = mock.Mock() + a = ACSClient(mock_ssh_client) + a.connect('myhostname', 'myuser', 1234) + self.assertEqual(a.port, 1234) + + @mock.patch('paramiko.SSHClient') + def test_connect_hostname_username_set(self, mock_ssh_client): + mock_ssh_client.get_transport.return_value = mock.Mock() + a = ACSClient(mock_ssh_client) + a.connect('myhostname', 'myuser') + self.assertEqual(a.host, 'myhostname') + self.assertEqual(a.username, 'myuser') + + @mock.patch('paramiko.SSHClient') + def test_connect_missing_hostname(self, mock_ssh_client): + mock_ssh_client.get_transport.return_value = mock.Mock() + a = ACSClient(mock_ssh_client) + self.assertRaises(ValueError, a.connect, '', 'someuser') + + @mock.patch('paramiko.SSHClient') + def test_connect_missing_username(self, mock_ssh_client): + mock_ssh_client.get_transport.return_value = mock.Mock() + a = ACSClient(mock_ssh_client) + self.assertRaises(ValueError, a.connect, 'somehost', '') + + @mock.patch('paramiko.SSHClient') + def test_connect_missing_port(self, mock_ssh_client): + mock_ssh_client.get_transport.return_value = mock.Mock() + a = ACSClient(mock_ssh_client) + self.assertRaises(ValueError, a.connect, 'somehost', 'someuser', '') + + @mock.patch('paramiko.SSHClient') + def test_run(self, mock_ssh_client): + mock_ssh_client.exec_command.return_value = (None, 'stdout', 'stderr') + a = ACSClient(mock_ssh_client) + a.connect('somehost', 'someusername') + stdout, stderr = a.run('somecommand') + self.assertEqual(stdout, 'stdout') + self.assertEqual(stderr, 'stderr') + + @mock.patch('paramiko.SSHClient') + def test_run_empty_command(self, mock_ssh_client): + a = ACSClient(mock_ssh_client) + a.connect('somehost', 'someusername') + self.assertRaises(ValueError, a.run, '') + + @mock.patch('paramiko.SSHClient') + def test_file_exists_no_file(self, mock_ssh_client): + sftp_mock = mock.Mock() + sftp_mock.stat.side_effect = IOError() + transport_mock = mock.Mock() + transport_mock.open_sftp_client.return_value = sftp_mock + mock_ssh_client.get_transport.return_value = transport_mock + a = ACSClient(mock_ssh_client) + a.connect('somehost', 'someusername') + + actual = a.file_exists('somefile') + self.assertEqual(actual, False) + + @mock.patch('paramiko.SSHClient') + def test_file_exists_positive(self, mock_ssh_client): + sftp_mock = mock.Mock() + sftp_mock.stat.side_efect = 'filexists' + transport_mock = mock.Mock() + transport_mock.open_sftp_client.return_value = sftp_mock + mock_ssh_client.get_transport.return_value = transport_mock + a = ACSClient(mock_ssh_client) + a.connect('somehost', 'someusername') + + actual = a.file_exists('somefile') + self.assertEqual(actual, True) diff --git a/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/test_acs_commands.py b/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/test_acs_commands.py new file mode 100644 index 00000000000..818021d5c27 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/test_acs_commands.py @@ -0,0 +1,117 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- + +import os +import tempfile +import unittest + +from azure.cli.testsdk import (ScenarioTest, ResourceGroupPreparer, + RoleBasedServicePrincipalPreparer, live_only) +from azure_devtools.scenario_tests import AllowLargeResponse +# flake8: noqa + +AZURE_TEST_RUN_LIVE = bool(os.environ.get('AZURE_TEST_RUN_LIVE')) + + +@unittest.skip("needs explicit service principal management") +class AzureContainerServiceScenarioTest(ScenarioTest): + + location = 'eastus' + + @ResourceGroupPreparer(random_name_length=17, name_prefix='clitest', location=location) + @RoleBasedServicePrincipalPreparer(skip_assignment=not AZURE_TEST_RUN_LIVE) + def test_acs_create_default_service(self, resource_group, sp_name, sp_password): + # kwargs for string formatting + self.kwargs.update({ + 'resource_group': resource_group, + 'name': self.create_random_name('cliacstest', 16), + 'dns_prefix': self.create_random_name('cliacsdns', 16), + 'ssh_key_value': self.generate_ssh_keys().replace('\\', '\\\\'), + 'location': self.location, + 'service_principal': sp_name, + 'client_secret': sp_password + }) + + # create + create_cmd = 'acs create -g {resource_group} -n {name} --dns-prefix {dns_prefix} --agent-count 1 ' \ + '--service-principal {service_principal} --client-secret {client_secret} --ssh-key-value {ssh_key_value}' + self.fail(create_cmd.format(**self.kwargs)) + self.cmd(create_cmd, checks=[ + self.check('properties.provisioningState', 'Succeeded'), + self.check('properties.outputs.masterFQDN.value', '{dns_prefix}mgmt.{location}.cloudapp.azure.com'), + self.check('properties.outputs.agentFQDN.value', '{dns_prefix}agent.{location}.cloudapp.azure.com'), + ]) + + # show + self.cmd('acs show -g {resource_group} -n {name}', checks=[ + self.check('agentPoolProfiles[0].count', 3), + self.check('agentPoolProfiles[0].vmSize', 'Standard_D2_v2'), + self.check('masterProfile.dnsPrefix', '{dns_prefix}mgmt'), + self.check('orchestratorProfile.orchestratorType', 'DCOS'), + self.check('name', '{name}'), + ]) + + # scale-up + self.cmd('acs scale -g {resource_group} -n {name} --new-agent-count 5', + checks=self.check('agentPoolProfiles[0].count', 5)) + + # show again + self.cmd('acs show -g {resource_group} -n {name}', + checks=self.check('agentPoolProfiles[0].count', 5)) + + @classmethod + def generate_ssh_keys(cls): + TEST_SSH_KEY_PUB = "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" # pylint: disable=line-too-long + _, pathname = tempfile.mkstemp() + with open(pathname, 'w') as key_file: + key_file.write(TEST_SSH_KEY_PUB) + + return pathname + + +@unittest.skip("skip acs tests as it's deprected") +class AzureContainerServiceKubernetesScenarioTest(ScenarioTest): + + # the length is set to avoid following error: + # Resource name k8s-master-ip-cliacstestgae47e-clitestdqdcoaas25vlhygb2aktyv4-c10894mgmt-D811C917 + # is invalid. The name can be up to 80 characters long. + @live_only() # the test is flaky under recording that you have to pre-create a role assignment + @ResourceGroupPreparer(random_name_length=17, name_prefix='clitest', location='eastus') + @RoleBasedServicePrincipalPreparer(skip_assignment=not AZURE_TEST_RUN_LIVE) + def test_acs_create_kubernetes(self, resource_group, sp_name, sp_password): + # kwargs for string formatting + self.kwargs.update({ + 'resource_group': resource_group, + 'name': self.create_random_name('acs', 14), + 'ssh_key_value': self.generate_ssh_keys().replace('\\', '\\\\'), + 'service_principal': sp_name, + 'client_secret': sp_password + }) + + cmd = 'acs create -g {resource_group} -n {name} --orchestrator-type Kubernetes --agent-count 1 ' \ + '--service-principal {service_principal} --client-secret {client_secret} --ssh-key-value {ssh_key_value}' + self.cmd(cmd, checks=[ + self.check('properties.provisioningState', 'Succeeded'), + ]) + + # show the cluster + self.cmd('acs show -g {resource_group} -n {name}', checks=[ + self.check('agentPoolProfiles[0].count', 1), + self.check('type', 'Microsoft.ContainerService/ContainerServices'), + self.check('orchestratorProfile.orchestratorType', 'Kubernetes'), + ]) + + # scale-up + self.cmd('acs scale -g {resource_group} -n {name} --new-agent-count 3', + checks=self.check('agentPoolProfiles[0].count', 3)) + + @classmethod + def generate_ssh_keys(cls): + TEST_SSH_KEY_PUB = "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" # pylint: disable=line-too-long + _, pathname = tempfile.mkstemp() + with open(pathname, 'w') as key_file: + key_file.write(TEST_SSH_KEY_PUB) + + return pathname diff --git a/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/test_aks_commands.py b/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/test_aks_commands.py new file mode 100644 index 00000000000..2c223b02482 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/test_aks_commands.py @@ -0,0 +1,260 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- + +import os +import tempfile +import unittest + +from knack.util import CLIError + +from azure.cli.testsdk import ( + ResourceGroupPreparer, RoleBasedServicePrincipalPreparer, VirtualNetworkPreparer, ScenarioTest, live_only) +from azure_devtools.scenario_tests import AllowLargeResponse +from azure.cli.testsdk.checkers import ( + StringContainCheck, StringContainCheckIgnoreCase) +from azure.cli.command_modules.acs._format import version_to_tuple +from .recording_processors import KeyReplacer + +# flake8: noqa + + +# The RoleBasedServicePrincipalPreparer returns sp name and needs to be turned +# into Application ID URI. Based on the recording files, some Application ID (GUID) +# is set with the environment varibale for sp_name. This method is compatible with +# both cases. +def _process_sp_name(sp_name): + from azure.cli.core.util import is_guid + return sp_name if is_guid(sp_name) else 'http://{}'.format(sp_name) + + +class AzureKubernetesServiceScenarioTest(ScenarioTest): + def __init__(self, method_name): + super(AzureKubernetesServiceScenarioTest, self).__init__( + method_name, recording_processors=[KeyReplacer()] + ) + + # TODO: Remove when issue #9392 is addressed. + @live_only() + @ResourceGroupPreparer(random_name_length=17, name_prefix='clitest', location='westus2') + @RoleBasedServicePrincipalPreparer() + def test_aks_create_service_no_wait(self, resource_group, resource_group_location, sp_name, sp_password): + # reset the count so in replay mode the random names will start with 0 + self.test_resources_count = 0 + + create_version, upgrade_version = self._get_versions( + resource_group_location) + # kwargs for string formatting + self.kwargs.update({ + 'resource_group': resource_group, + 'name': self.create_random_name('cliakstest', 16), + 'dns_name_prefix': self.create_random_name('cliaksdns', 16), + 'ssh_key_value': self.generate_ssh_keys().replace('\\', '\\\\'), + 'location': resource_group_location, + 'service_principal': _process_sp_name(sp_name), + 'client_secret': sp_password, + 'k8s_version': create_version, + 'vm_size': 'Standard_DS2_v2' + }) + + # create --no-wait + create_cmd = 'aks create -g {resource_group} -n {name} -p {dns_name_prefix} --ssh-key-value {ssh_key_value} ' \ + '-l {location} --service-principal {service_principal} --client-secret {client_secret} -k {k8s_version} ' \ + '--node-vm-size {vm_size} ' \ + '--tags scenario_test -c 1 --no-wait' + self.cmd(create_cmd, checks=[self.is_empty()]) + + # wait + self.cmd( + 'aks wait -g {resource_group} -n {name} --created', checks=[self.is_empty()]) + + # show + self.cmd('aks show -g {resource_group} -n {name}', checks=[ + self.check('name', '{name}'), + self.check('resourceGroup', '{resource_group}'), + self.check('agentPoolProfiles[0].count', 1), + self.check('agentPoolProfiles[0].vmSize', 'Standard_DS2_v2'), + self.check('dnsPrefix', '{dns_name_prefix}'), + self.check('provisioningState', 'Succeeded'), + ]) + + # show k8s versions + self.cmd('aks get-versions -l {location}', checks=[ + self.exists('orchestrators[*].orchestratorVersion') + ]) + + # show k8s versions in table format + self.cmd('aks get-versions -l {location} -o table', checks=[ + StringContainCheck(self.kwargs['k8s_version']) + ]) + + # get versions for upgrade + self.cmd('aks get-upgrades -g {resource_group} -n {name}', checks=[ + self.exists('id'), + self.check('resourceGroup', '{resource_group}'), + self.check('controlPlaneProfile.kubernetesVersion', + '{k8s_version}'), + self.check('controlPlaneProfile.osType', 'Linux'), + self.exists('controlPlaneProfile.upgrades'), + self.check( + 'type', 'Microsoft.ContainerService/managedClusters/upgradeprofiles') + ]) + + # get versions for upgrade in table format + self.cmd('aks get-upgrades -g {resource_group} -n {name} --output table', checks=[ + StringContainCheck('Upgrades'), + StringContainCheck(upgrade_version) + ]) + + # delete + self.cmd( + 'aks delete -g {resource_group} -n {name} --yes', checks=[self.is_empty()]) + + # show again and expect failure + self.cmd('aks show -g {resource_group} -n {name}', expect_failure=True) + + @live_only() + @AllowLargeResponse(8192) + @ResourceGroupPreparer(random_name_length=17, name_prefix='clitest', location='westus2') + @RoleBasedServicePrincipalPreparer() + def test_aks_create_default_service_without_skip_role_assignment(self, resource_group, resource_group_location, sp_name, sp_password): + aks_name = self.create_random_name('cliakstest', 16) + self.kwargs.update({ + 'resource_group': resource_group, + 'name': aks_name, + 'location': resource_group_location, + 'service_principal': _process_sp_name(sp_name), + 'client_secret': sp_password, + 'vnet_subnet_id': self.generate_vnet_subnet_id(resource_group) + }) + # create cluster without skip_role_assignment + create_cmd = 'aks create --resource-group={resource_group} --name={name} --location={location} ' \ + '--node-count=1 --service-principal={service_principal} ' \ + '--client-secret={client_secret} --vnet-subnet-id={vnet_subnet_id} '\ + '--no-ssh-key' + self.cmd(create_cmd, checks=[ + self.check( + 'agentPoolProfiles[0].vnetSubnetId', '{vnet_subnet_id}'), + self.check('provisioningState', 'Succeeded') + ]) + + check_role_assignment_cmd = 'role assignment list --scope={vnet_subnet_id}' + self.cmd(check_role_assignment_cmd, checks=[ + self.check('[0].properties.scope', '{vnet_subnet_id}') + ]) + + # create cluster with same role assignment + aks_name = self.create_random_name('cliakstest', 16) + self.kwargs.update({ + 'name': aks_name, + }) + + create_cmd = 'aks create --resource-group={resource_group} --name={name} --location={location} ' \ + '--node-count=1 --service-principal={service_principal} ' \ + '--client-secret={client_secret} --vnet-subnet-id={vnet_subnet_id} '\ + '--no-ssh-key' + self.cmd(create_cmd, checks=[ + self.check( + 'agentPoolProfiles[0].vnetSubnetId', '{vnet_subnet_id}'), + self.check('provisioningState', 'Succeeded') + ]) + + + @classmethod + def generate_ssh_keys(cls): + TEST_SSH_KEY_PUB = "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" # pylint: disable=line-too-long + _, pathname = tempfile.mkstemp() + with open(pathname, 'w') as key_file: + key_file.write(TEST_SSH_KEY_PUB) + return pathname + + def generate_vnet_subnet_id(self, resource_group): + vnet_name = self.create_random_name('clivnet', 16) + subnet_name = self.create_random_name('clisubnet', 16) + address_prefix = "192.168.0.0/16" + subnet_prefix = "192.168.0.0/24" + vnet_subnet = self.cmd('az network vnet create -n {} -g {} --address-prefix {} --subnet-name {} --subnet-prefix {}' + .format(vnet_name, resource_group, address_prefix, subnet_name, subnet_prefix)).get_output_in_json() + return vnet_subnet.get("newVNet").get("subnets")[0].get("id") + + def generate_ppg_id(self, resource_group, location): + ppg_name = self.create_random_name('clippg', 16) + ppg = self.cmd('az ppg create -n {} -g {} --location {}' + .format(ppg_name, resource_group, location)).get_output_in_json() + return ppg.get("id") + + def _get_versions(self, location): + """Return the previous and current Kubernetes minor release versions, such as ("1.11.6", "1.12.4").""" + versions = self.cmd( + "az aks get-versions -l westus2 --query 'orchestrators[].orchestratorVersion'").get_output_in_json() + # sort by semantic version, from newest to oldest + versions = sorted(versions, key=version_to_tuple, reverse=True) + upgrade_version = versions[0] + # find the first version that doesn't start with the latest major.minor. + prefix = upgrade_version[:upgrade_version.rfind('.')] + create_version = next(x for x in versions if not x.startswith(prefix)) + return create_version, upgrade_version + + def generate_user_assigned_identity_resource_id(self, resource_group): + identity_name = self.create_random_name('cli', 16) + identity = self.cmd('az identity create -g {} -n {}'.format( + resource_group, identity_name)).get_output_in_json() + return identity.get("id") + + + # reset the count so in replay mode the random names will start with 0 + self.test_resources_count = 0 + # kwargs for string formatting + aks_name = self.create_random_name('cliakstest', 16) + identity_name = self.create_random_name('cliakstest', 16) + subdomain_name = self.create_random_name('cliakstest', 16) + self.kwargs.update({ + 'resource_group': resource_group, + 'name': aks_name, + 'identity_name': identity_name, + 'subdomain_name': subdomain_name, + }) + + # create private dns zone + create_private_dns_zone = 'network private-dns zone create --resource-group={resource_group} --name="privatelink.westus2.azmk8s.io"' + zone = self.cmd(create_private_dns_zone, checks=[ + self.check('provisioningState', 'Succeeded') + ]).get_output_in_json() + zone_id = zone["id"] + assert zone_id is not None + self.kwargs.update({ + 'zone_id': zone_id, + }) + + # create identity + create_identity = 'identity create --resource-group={resource_group} --name={identity_name}' + identity = self.cmd(create_identity, checks=[ + self.check('name', identity_name) + ]).get_output_in_json() + identity_id = identity["principalId"] + identity_resource_id = identity["id"] + assert identity_id is not None + self.kwargs.update({ + 'identity_id': identity_id, + 'identity_resource_id': identity_resource_id, + }) + + # assign + import mock + with mock.patch('azure.cli.command_modules.role.custom._gen_guid', side_effect=self.create_guid): + assignment = self.cmd( + 'role assignment create --assignee-object-id={identity_id} --role "Private DNS Zone Contributor" --scope={zone_id} --assignee-principal-type ServicePrincipal').get_output_in_json() + assert assignment["roleDefinitionId"] is not None + + # create + create_cmd = 'aks create --resource-group={resource_group} --name={name} ' \ + '--node-count=1 --generate-ssh-keys --fqdn-subdomain={subdomain_name} ' \ + '--load-balancer-sku=standard --enable-private-cluster --private-dns-zone={zone_id} --enable-managed-identity --assign-identity {identity_resource_id}' + self.cmd(create_cmd, checks=[ + self.exists('privateFqdn'), + self.exists('fqdnSubdomain'), + self.exists('nodeResourceGroup'), + self.check('provisioningState', 'Succeeded'), + self.check('apiServerAccessProfile.privateDnsZone', zone_id), + ]) \ No newline at end of file diff --git a/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/test_custom.py b/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/test_custom.py new file mode 100644 index 00000000000..bc920dcbf5e --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/test_custom.py @@ -0,0 +1,892 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +import mock +import os +import platform +import requests +import tempfile +import shutil +import unittest +import yaml + +from knack import CLI + +from azure.cli.core._config import GLOBAL_CONFIG_DIR, ENV_VAR_PREFIX +from azure.cli.core.cloud import get_active_cloud +from azure.cli.core.profiles import get_sdk, ResourceType, supported_api_version + +from msrestazure.azure_exceptions import CloudError +from azure.graphrbac.models import GraphErrorException +from azure.cli.command_modules.acs._params import (regions_in_preview, + regions_in_prod) +from azure.cli.command_modules.acs.custom import (merge_kubernetes_configurations, list_acs_locations, + _acs_browse_internal, _add_role_assignment, _get_default_dns_prefix, + create_application, _update_addons, + _ensure_container_insights_for_monitoring, + k8s_install_kubectl, k8s_install_kubelogin) +from azure.mgmt.containerservice.models import (ContainerServiceOrchestratorTypes, + ContainerService, + ContainerServiceOrchestratorProfile) +from azure.mgmt.containerservice.v2020_11_01.models import ManagedClusterAddonProfile +from azure.cli.core.util import CLIError +from azure.cli.command_modules.acs._consts import (CONST_HTTP_APPLICATION_ROUTING_ADDON_NAME, + CONST_MONITORING_ADDON_NAME, + CONST_MONITORING_LOG_ANALYTICS_WORKSPACE_RESOURCE_ID, + CONST_KUBE_DASHBOARD_ADDON_NAME, + CONST_AZURE_POLICY_ADDON_NAME) + +class MockCLI(CLI): + def __init__(self): + super(MockCLI, self).__init__(cli_name='mock_cli', config_dir=GLOBAL_CONFIG_DIR, + config_env_var_prefix=ENV_VAR_PREFIX, commands_loader_cls=MockLoader) + self.cloud = get_active_cloud(self) + + +class MockLoader(object): + def __init__(self, ctx): + self.ctx = ctx + + def get_models(self, *attr_args, **_): + from azure.cli.core.profiles import get_sdk + return get_sdk(self.ctx, ResourceType.MGMT_CONTAINERSERVICE, 'ManagedClusterAddonProfile', + mod='models', operation_group='managed_clusters') + + +class MockCmd(object): + def __init__(self, ctx, arguments={}): + self.cli_ctx = ctx + self.loader = MockLoader(self.cli_ctx) + self.arguments = arguments + + def get_models(self, *attr_args, **kwargs): + return get_sdk(self.cli_ctx, ResourceType.MGMT_CONTAINERSERVICE, 'ManagedClusterAddonProfile', + mod='models', operation_group='managed_clusters') + +class AcsCustomCommandTest(unittest.TestCase): + def setUp(self): + self.cli = MockCLI() + + def test_list_acs_locations(self): + client, cmd = mock.MagicMock(), mock.MagicMock() + regions = list_acs_locations(client, cmd) + prodregions = regions["productionRegions"] + previewregions = regions["previewRegions"] + self.assertListEqual(prodregions, regions_in_prod, "Production regions doesn't match") + self.assertListEqual(previewregions, regions_in_preview, "Preview regions doesn't match") + + def test_get_default_dns_prefix(self): + name = 'test5678910' + resource_group_name = 'resource_group_with_underscore' + sub_id = '123456789' + + dns_name_prefix = _get_default_dns_prefix(name, resource_group_name, sub_id) + self.assertEqual(dns_name_prefix, "test567891-resourcegroupwit-123456") + + name = '1test5678910' + dns_name_prefix = _get_default_dns_prefix(name, resource_group_name, sub_id) + self.assertEqual(dns_name_prefix, "a1test5678-resourcegroupwit-123456") + + def test_add_role_assignment_basic(self): + role = 'Owner' + sp = '1234567' + cli_ctx = mock.MagicMock() + + with mock.patch( + 'azure.cli.command_modules.acs.custom.create_role_assignment') as create_role_assignment: + ok = _add_role_assignment(cli_ctx, role, sp, delay=0) + create_role_assignment.assert_called_with(cli_ctx, role, sp, True, scope=None) + self.assertTrue(ok, 'Expected _add_role_assignment to succeed') + + def test_add_role_assignment_msi_basic(self): + role = 'Owner' + sp = '1234567' + cli_ctx = mock.MagicMock() + + with mock.patch( + 'azure.cli.command_modules.acs.custom.create_role_assignment') as create_role_assignment: + ok = _add_role_assignment(cli_ctx, role, sp, False, delay=0) + create_role_assignment.assert_called_with(cli_ctx, role, sp, False, scope=None) + self.assertTrue(ok, 'Expected _add_role_assignment with msi to succeed') + + def test_add_role_assignment_exists(self): + role = 'Owner' + sp = '1234567' + cli_ctx = mock.MagicMock() + + with mock.patch( + 'azure.cli.command_modules.acs.custom.create_role_assignment') as create_role_assignment: + resp = requests.Response() + resp.status_code = 409 + resp._content = b'Conflict' + err = CloudError(resp) + err.message = 'The role assignment already exists.' + create_role_assignment.side_effect = err + ok = _add_role_assignment(cli_ctx, role, sp, delay=0) + + create_role_assignment.assert_called_with(cli_ctx, role, sp, True, scope=None) + self.assertTrue(ok, 'Expected _add_role_assignment to succeed') + + def test_add_role_assignment_fails(self): + role = 'Owner' + sp = '1234567' + cli_ctx = mock.MagicMock() + + with mock.patch( + 'azure.cli.command_modules.acs.custom.create_role_assignment') as create_role_assignment: + resp = requests.Response() + resp.status_code = 500 + resp._content = b'Internal Error' + err = CloudError(resp) + err.message = 'Internal Error' + create_role_assignment.side_effect = err + ok = _add_role_assignment(cli_ctx, role, sp, delay=0) + + create_role_assignment.assert_called_with(cli_ctx, role, sp, True, scope=None) + self.assertFalse(ok, 'Expected _add_role_assignment to fail') + + @mock.patch('azure.cli.core.commands.client_factory.get_subscription_id') + def test_browse_k8s(self, get_subscription_id): + acs_info = ContainerService(location="location", orchestrator_profile={}, master_profile={}, linux_profile={}) + acs_info.orchestrator_profile = ContainerServiceOrchestratorProfile( + orchestrator_type=ContainerServiceOrchestratorTypes.kubernetes) + client, cmd = mock.MagicMock(), mock.MagicMock() + + with mock.patch('azure.cli.command_modules.acs.custom._get_acs_info', + return_value=acs_info) as get_acs_info: + with mock.patch( + 'azure.cli.command_modules.acs.custom._k8s_browse_internal') as k8s_browse: + _acs_browse_internal(client, cmd, acs_info, 'resource-group', 'name', False, 'ssh/key/file') + get_acs_info.assert_called_once() + k8s_browse.assert_called_with('name', acs_info, False, 'ssh/key/file') + + @mock.patch('azure.cli.core.commands.client_factory.get_subscription_id') + def test_browse_dcos(self, get_subscription_id): + acs_info = ContainerService(location="location", orchestrator_profile={}, master_profile={}, linux_profile={}) + acs_info.orchestrator_profile = ContainerServiceOrchestratorProfile( + orchestrator_type=ContainerServiceOrchestratorTypes.dcos) + client, cmd = mock.MagicMock(), mock.MagicMock() + + with mock.patch( + 'azure.cli.command_modules.acs.custom._dcos_browse_internal') as dcos_browse: + _acs_browse_internal(client, cmd, acs_info, 'resource-group', 'name', False, 'ssh/key/file') + dcos_browse.assert_called_with(acs_info, False, 'ssh/key/file') + + def test_merge_credentials_non_existent(self): + self.assertRaises(CLIError, merge_kubernetes_configurations, 'non', 'existent', False) + + def test_merge_credentials_broken_yaml(self): + existing = tempfile.NamedTemporaryFile(delete=False) + existing.close() + addition = tempfile.NamedTemporaryFile(delete=False) + addition.close() + with open(existing.name, 'w+') as stream: + stream.write('{ broken') + self.addCleanup(os.remove, existing.name) + + obj2 = { + 'clusters': [ + 'cluster2' + ], + 'contexts': [ + 'context2' + ], + 'users': [ + 'user2' + ], + 'current-context': 'cluster2', + } + + with open(addition.name, 'w+') as stream: + yaml.safe_dump(obj2, stream) + self.addCleanup(os.remove, addition.name) + + self.assertRaises(CLIError, merge_kubernetes_configurations, existing.name, addition.name, False) + + def test_merge_credentials(self): + existing = tempfile.NamedTemporaryFile(delete=False) + existing.close() + addition = tempfile.NamedTemporaryFile(delete=False) + addition.close() + obj1 = { + 'clusters': [ + { + 'cluster': { + 'certificate-authority-data': 'certificateauthoritydata1', + 'server': 'https://aztest-aztest-abc123-abcd1234.hcp.eastus.azmk8s.io:443' + }, + 'name': 'cluster1' + } + ], + 'contexts': [ + { + 'context': { + 'cluster': 'aztest', + 'user': 'clusterUser_aztest_aztest' + }, + 'name': 'context1' + } + ], + 'current-context': 'context1', + 'kind': 'Config', + 'preferences': {}, + 'users': [ + { + 'name': 'user1', + 'user': { + 'client-certificate-data': 'clientcertificatedata1', + 'client-key-data': 'clientkeydata1', + 'token': 'token1' + } + } + ] + } + with open(existing.name, 'w+') as stream: + yaml.safe_dump(obj1, stream) + self.addCleanup(os.remove, existing.name) + + obj2 = { + 'clusters': [ + { + 'cluster': { + 'certificate-authority-data': 'certificateauthoritydata1', + 'server': 'https://aztest-aztest-abc123-abcd1234.hcp.eastus.azmk8s.io:443' + }, + 'name': 'cluster2' + } + ], + 'contexts': [ + { + 'context': { + 'cluster': 'aztest', + 'user': 'clusterUser_aztest_aztest' + }, + 'name': 'context2' + } + ], + 'current-context': 'aztest', + 'kind': 'Config', + 'preferences': {}, + 'users': [ + { + 'name': 'user2', + 'user': { + 'client-certificate-data': 'clientcertificatedata1', + 'client-key-data': 'clientkeydata1', + 'token': 'token1' + } + } + ] + } + + with open(addition.name, 'w+') as stream: + yaml.safe_dump(obj2, stream) + self.addCleanup(os.remove, addition.name) + + merge_kubernetes_configurations(existing.name, addition.name, False) + + with open(existing.name, 'r') as stream: + merged = yaml.safe_load(stream) + self.assertEqual(len(merged['clusters']), 2) + self.assertEqual(merged['clusters'], [obj1['clusters'][0], obj2['clusters'][0]]) + self.assertEqual(len(merged['contexts']), 2) + self.assertEqual(merged['contexts'], [obj1['contexts'][0], obj2['contexts'][0]]) + self.assertEqual(len(merged['users']), 2) + self.assertEqual(merged['users'], [obj1['users'][0], obj2['users'][0]]) + self.assertEqual(merged['current-context'], obj2['current-context']) + + def test_merge_admin_credentials(self): + existing = tempfile.NamedTemporaryFile(delete=False) + existing.close() + addition = tempfile.NamedTemporaryFile(delete=False) + addition.close() + obj1 = { + 'apiVersion': 'v1', + 'clusters': [ + { + 'cluster': { + 'certificate-authority-data': 'certificateauthoritydata1', + 'server': 'https://aztest-aztest-abc123-abcd1234.hcp.eastus.azmk8s.io:443' + }, + 'name': 'aztest' + } + ], + 'contexts': [ + { + 'context': { + 'cluster': 'aztest', + 'user': 'clusterUser_aztest_aztest' + }, + 'name': 'aztest' + } + ], + 'current-context': 'aztest', + 'kind': 'Config', + 'preferences': {}, + 'users': [ + { + 'name': 'clusterUser_aztest_aztest', + 'user': { + 'client-certificate-data': 'clientcertificatedata1', + 'client-key-data': 'clientkeydata1', + 'token': 'token1' + } + } + ] + } + with open(existing.name, 'w+') as stream: + yaml.safe_dump(obj1, stream) + self.addCleanup(os.remove, existing.name) + obj2 = { + 'apiVersion': 'v1', + 'clusters': [ + { + 'cluster': { + 'certificate-authority-data': 'certificateauthoritydata1', + 'server': 'https://aztest-aztest-abc123-abcd1234.hcp.eastus.azmk8s.io:443' + }, + 'name': 'aztest' + } + ], + 'contexts': [ + { + 'context': { + 'cluster': 'aztest', + 'user': 'clusterAdmin_aztest_aztest' + }, + 'name': 'aztest' + } + ], + 'current-context': 'aztest', + 'kind': 'Config', + 'preferences': {}, + 'users': [ + { + 'name': 'clusterAdmin_aztest_aztest', + 'user': { + 'client-certificate-data': 'someclientcertificatedata2', + 'client-key-data': 'someclientkeydata2', + 'token': 'token2' + } + } + ] + } + with open(addition.name, 'w+') as stream: + yaml.safe_dump(obj2, stream) + self.addCleanup(os.remove, addition.name) + + merge_kubernetes_configurations(existing.name, addition.name, False) + + with open(existing.name, 'r') as stream: + merged = yaml.safe_load(stream) + self.assertEqual(len(merged['clusters']), 1) + self.assertEqual([c['cluster'] for c in merged['clusters']], + [{'certificate-authority-data': 'certificateauthoritydata1', + 'server': 'https://aztest-aztest-abc123-abcd1234.hcp.eastus.azmk8s.io:443'}]) + self.assertEqual(len(merged['contexts']), 2) + self.assertEqual(merged['contexts'], + [{'context': {'cluster': 'aztest', 'user': 'clusterUser_aztest_aztest'}, + 'name': 'aztest'}, + {'context': {'cluster': 'aztest', 'user': 'clusterAdmin_aztest_aztest'}, + 'name': 'aztest-admin'}]) + self.assertEqual(len(merged['users']), 2) + self.assertEqual([u['name'] for u in merged['users']], + ['clusterUser_aztest_aztest', 'clusterAdmin_aztest_aztest']) + self.assertEqual(merged['current-context'], 'aztest-admin') + + def test_merge_credentials_missing(self): + existing = tempfile.NamedTemporaryFile(delete=False) + existing.close() + addition = tempfile.NamedTemporaryFile(delete=False) + addition.close() + obj1 = { + 'clusters': None, + 'contexts': [ + { + 'context': { + 'cluster': 'aztest', + 'user': 'clusterUser_aztest_aztest' + }, + 'name': 'context1' + } + ], + 'current-context': 'context1', + 'kind': 'Config', + 'preferences': {}, + 'users': [ + { + 'name': 'user1', + 'user': { + 'client-certificate-data': 'clientcertificatedata1', + 'client-key-data': 'clientkeydata1', + 'token': 'token1' + } + } + ] + } + with open(existing.name, 'w+') as stream: + yaml.safe_dump(obj1, stream) + self.addCleanup(os.remove, existing.name) + + obj2 = { + 'clusters': [ + { + 'cluster': { + 'certificate-authority-data': 'certificateauthoritydata1', + 'server': 'https://aztest-aztest-abc123-abcd1234.hcp.eastus.azmk8s.io:443' + }, + 'name': 'cluster2' + } + ], + 'contexts': [ + { + 'context': { + 'cluster': 'aztest', + 'user': 'clusterUser_aztest_aztest' + }, + 'name': 'context2' + } + ], + 'current-context': 'context2', + 'kind': 'Config', + 'preferences': {}, + 'users': None + } + + with open(addition.name, 'w+') as stream: + yaml.safe_dump(obj2, stream) + self.addCleanup(os.remove, addition.name) + + merge_kubernetes_configurations(existing.name, addition.name, False) + + with open(existing.name, 'r') as stream: + merged = yaml.safe_load(stream) + self.assertEqual(len(merged['clusters']), 1) + self.assertEqual(merged['clusters'], [obj2['clusters'][0]]) + self.assertEqual(len(merged['contexts']), 2) + self.assertEqual(merged['contexts'], [obj1['contexts'][0], obj2['contexts'][0]]) + self.assertEqual(len(merged['users']), 1) + self.assertEqual(merged['users'], [obj1['users'][0]]) + self.assertEqual(merged['current-context'], obj2['current-context']) + + def test_merge_credentials_already_present(self): + existing = tempfile.NamedTemporaryFile(delete=False) + existing.close() + addition = tempfile.NamedTemporaryFile(delete=False) + addition.close() + obj1 = { + 'clusters': [ + { + 'cluster': { + 'certificate-authority-data': 'certificateauthoritydata1', + 'server': 'https://cluster1-aztest-abc123-abcd1234.hcp.eastus.azmk8s.io:443' + }, + 'name': 'cluster1' + }, + { + 'cluster': { + 'certificate-authority-data': 'certificateauthoritydata1', + 'server': 'https://cluster2-aztest-abc123-abcd1234.hcp.eastus.azmk8s.io:443' + }, + 'name': 'cluster2' + } + ], + 'contexts': [ + { + 'context': { + 'cluster': 'cluster1', + 'user': 'cluster1User_aztest_aztest' + }, + 'name': 'context1' + }, + { + 'context': { + 'cluster': 'cluster1', + 'user': 'cluster1User_aztest_aztest' + }, + 'name': 'context2' + } + ], + 'users': [ + { + 'name': 'cluster1User_aztest_aztest', + 'user': { + 'client-certificate-data': 'someclientcertificatedata2', + 'client-key-data': 'someclientkeydata2', + 'token': 'token2' + } + }, + { + 'name': 'cluster2User_aztest_aztest', + 'user': { + 'client-certificate-data': 'someclientcertificatedata2', + 'client-key-data': 'someclientkeydata2', + 'token': 'token2' + } + } + ], + 'current-context': 'context1', + } + with open(existing.name, 'w+') as stream: + yaml.safe_dump(obj1, stream) + + obj2 = { + 'clusters': [ + { + 'cluster': { + 'certificate-authority-data': 'certificateauthoritydata1', + 'server': 'https://other2-aztest-abc456-abcd4567.hcp.eastus.azmk8s.io:443' + }, + 'name': 'cluster2' + } + ], + 'contexts': [ + { + 'context': { + 'cluster': 'cluster2', + 'user': 'cluster1_aztest_aztest' + }, + 'name': 'context2' + } + ], + 'users': [ + { + 'name': 'cluster2User_aztest_aztest', + 'user': { + 'client-certificate-data': 'someclientcertificatedata2', + 'client-key-data': 'someclientkeydata2', + 'token': 'token3' + } + } + ], + 'current-context': 'some-context', + } + + with open(addition.name, 'w+') as stream: + yaml.safe_dump(obj2, stream) + with self.assertRaises(CLIError): + merge_kubernetes_configurations(existing.name, addition.name, False) + + merge_kubernetes_configurations(existing.name, addition.name, True) + self.addCleanup(os.remove, addition.name) + + with open(existing.name, 'r') as stream: + merged = yaml.safe_load(stream) + self.addCleanup(os.remove, existing.name) + + self.assertEqual(len(merged['clusters']), 2) + expected_clusters = [ + obj1['clusters'][0], + obj2['clusters'][0] + ] + self.assertEqual(merged['clusters'], expected_clusters) + self.assertEqual(len(merged['contexts']), 2) + expected_contexts = [ + obj1['contexts'][0], + obj2['contexts'][0] + ] + self.assertEqual(merged['contexts'], expected_contexts) + self.assertEqual(len(merged['users']), 2) + expected_users = [ + obj1['users'][0], + obj2['users'][0] + ] + self.assertEqual(merged['users'], expected_users) + self.assertEqual(merged['current-context'], obj2['current-context']) + + def test_acs_sp_create_failed_with_polished_error_if_due_to_permission(self): + + class FakedError(object): + def __init__(self, message): + self.message = message + + def _test_deserializer(resp_type, response): + err = FakedError('Insufficient privileges to complete the operation') + return err + + client = mock.MagicMock() + client.create.side_effect = GraphErrorException(_test_deserializer, None) + + # action + with self.assertRaises(CLIError) as context: + create_application(client, 'acs_sp', 'http://acs_sp', ['http://acs_sp']) + + # assert we handled such error + self.assertTrue( + 'https://docs.microsoft.com/azure/azure-resource-manager/resource-group-create-service-principal-portal' in str(context.exception)) + + @mock.patch('azure.cli.command_modules.acs.custom._get_rg_location', return_value='eastus') + @mock.patch('azure.cli.command_modules.acs.custom.cf_resource_groups', autospec=True) + @mock.patch('azure.cli.command_modules.acs.custom.cf_resources', autospec=True) + def test_update_addons(self, rg_def, cf_resource_groups, cf_resources): + # http_application_routing enabled + instance = mock.MagicMock() + instance.addon_profiles = None + + instance = _update_addons(MockCmd(self.cli), instance, '00000000-0000-0000-0000-000000000000', + 'clitest000001', 'clitest000001', 'http_application_routing', enable=True) + self.assertIn(CONST_HTTP_APPLICATION_ROUTING_ADDON_NAME, instance.addon_profiles) + addon_profile = instance.addon_profiles[CONST_HTTP_APPLICATION_ROUTING_ADDON_NAME] + self.assertTrue(addon_profile.enabled) + + # http_application_routing disabled + instance = _update_addons(MockCmd(self.cli), instance, '00000000-0000-0000-0000-000000000000', + 'clitest000001', 'clitest000001', 'http_application_routing', enable=False) + addon_profile = instance.addon_profiles[CONST_HTTP_APPLICATION_ROUTING_ADDON_NAME] + self.assertFalse(addon_profile.enabled) + + # monitoring added + instance = _update_addons(MockCmd(self.cli), instance, '00000000-0000-0000-0000-000000000000', + 'clitest000001', 'clitest000001', 'monitoring', enable=True) + monitoring_addon_profile = instance.addon_profiles[CONST_MONITORING_ADDON_NAME] + self.assertTrue(monitoring_addon_profile.enabled) + routing_addon_profile = instance.addon_profiles[CONST_HTTP_APPLICATION_ROUTING_ADDON_NAME] + self.assertFalse(routing_addon_profile.enabled) + + # monitoring disabled, routing enabled + instance = _update_addons(MockCmd(self.cli), instance, '00000000-0000-0000-0000-000000000000', + 'clitest000001', 'clitest000001', 'monitoring', enable=False) + instance = _update_addons(MockCmd(self.cli), instance, '00000000-0000-0000-0000-000000000000', + 'clitest000001', 'clitest000001', 'http_application_routing', enable=True) + monitoring_addon_profile = instance.addon_profiles[CONST_MONITORING_ADDON_NAME] + self.assertFalse(monitoring_addon_profile.enabled) + routing_addon_profile = instance.addon_profiles[CONST_HTTP_APPLICATION_ROUTING_ADDON_NAME] + self.assertTrue(routing_addon_profile.enabled) + self.assertEqual(sorted(list(instance.addon_profiles)), [CONST_HTTP_APPLICATION_ROUTING_ADDON_NAME, CONST_MONITORING_ADDON_NAME]) + + # azurepolicy added + instance = _update_addons(MockCmd(self.cli), instance, '00000000-0000-0000-0000-000000000000', + 'clitest000001', 'clitest000001', 'azure-policy', enable=True) + azurepolicy_addon_profile = instance.addon_profiles[CONST_AZURE_POLICY_ADDON_NAME] + self.assertTrue(azurepolicy_addon_profile.enabled) + routing_addon_profile = instance.addon_profiles[CONST_HTTP_APPLICATION_ROUTING_ADDON_NAME] + self.assertTrue(routing_addon_profile.enabled) + monitoring_addon_profile = instance.addon_profiles[CONST_MONITORING_ADDON_NAME] + self.assertFalse(monitoring_addon_profile.enabled) + + # azurepolicy disabled, routing enabled + instance = _update_addons(MockCmd(self.cli), instance, '00000000-0000-0000-0000-000000000000', + 'clitest000001', 'clitest000001', 'azure-policy', enable=False) + instance = _update_addons(MockCmd(self.cli), instance, '00000000-0000-0000-0000-000000000000', + 'clitest000001', 'clitest000001', 'http_application_routing', enable=True) + azurepolicy_addon_profile = instance.addon_profiles[CONST_AZURE_POLICY_ADDON_NAME] + self.assertFalse(azurepolicy_addon_profile.enabled) + monitoring_addon_profile = instance.addon_profiles[CONST_MONITORING_ADDON_NAME] + self.assertFalse(monitoring_addon_profile.enabled) + routing_addon_profile = instance.addon_profiles[CONST_HTTP_APPLICATION_ROUTING_ADDON_NAME] + self.assertTrue(routing_addon_profile.enabled) + self.assertEqual(sorted(list(instance.addon_profiles)), [CONST_AZURE_POLICY_ADDON_NAME, CONST_HTTP_APPLICATION_ROUTING_ADDON_NAME, CONST_MONITORING_ADDON_NAME]) + + # kube-dashboard disabled, no existing dashboard addon profile + instance = _update_addons(MockCmd(self.cli), instance, '00000000-0000-0000-0000-000000000000', + 'clitest000001', 'clitest000001', 'kube-dashboard', enable=False) + dashboard_addon_profile = instance.addon_profiles[CONST_KUBE_DASHBOARD_ADDON_NAME] + self.assertFalse(dashboard_addon_profile.enabled) + + # kube-dashboard enabled, no existing dashboard addon profile + instance.addon_profiles.pop(CONST_KUBE_DASHBOARD_ADDON_NAME, None) + instance = _update_addons(MockCmd(self.cli), instance, '00000000-0000-0000-0000-000000000000', + 'clitest000001', 'clitest000001', 'kube-dashboard', enable=True) + dashboard_addon_profile = instance.addon_profiles[CONST_KUBE_DASHBOARD_ADDON_NAME] + self.assertTrue(dashboard_addon_profile.enabled) + + # kube-dashboard disabled, there's existing dashboard addon profile + instance.addon_profiles.pop(CONST_KUBE_DASHBOARD_ADDON_NAME, None) + # test lower cased key name + instance.addon_profiles['kubedashboard'] = ManagedClusterAddonProfile(enabled=True) + instance = _update_addons(MockCmd(self.cli), instance, '00000000-0000-0000-0000-000000000000', + 'clitest000001', 'clitest000001', 'kube-dashboard', enable=False) + dashboard_addon_profile = instance.addon_profiles[CONST_KUBE_DASHBOARD_ADDON_NAME] + self.assertFalse(dashboard_addon_profile.enabled) + + # kube-dashboard enabled, there's existing dashboard addon profile + instance.addon_profiles.pop(CONST_KUBE_DASHBOARD_ADDON_NAME, None) + # test lower cased key name + instance.addon_profiles['kubedashboard'] = ManagedClusterAddonProfile(enabled=False) + instance = _update_addons(MockCmd(self.cli), instance, '00000000-0000-0000-0000-000000000000', + 'clitest000001', 'clitest000001', 'kube-dashboard', enable=True) + dashboard_addon_profile = instance.addon_profiles[CONST_KUBE_DASHBOARD_ADDON_NAME] + self.assertTrue(dashboard_addon_profile.enabled) + + # monitoring enabled and then enabled again should error + instance = mock.Mock() + instance.addon_profiles = None + instance = _update_addons(MockCmd(self.cli), instance, '00000000-0000-0000-0000-000000000000', + 'clitest000001', 'clitest000001', 'monitoring', enable=True) + with self.assertRaises(CLIError): + instance = _update_addons(MockCmd(self.cli), instance, '00000000-0000-0000-0000-000000000000', + 'clitest000001', 'clitest000001', 'monitoring', enable=True) + + # virtual-node enabled + instance = mock.MagicMock() + instance.addon_profiles = None + cmd = mock.MagicMock() + instance = _update_addons(MockCmd(self.cli), instance, '00000000-0000-0000-0000-000000000000', + 'clitest000001', 'clitest000001', 'virtual-node', enable=True, subnet_name='foo') + self.assertIn('aciConnectorLinux', instance.addon_profiles) + addon_profile = instance.addon_profiles['aciConnectorLinux'] + self.assertTrue(addon_profile.enabled) + + # virtual-node disabled + instance = _update_addons(MockCmd(self.cli), instance, '00000000-0000-0000-0000-000000000000', + 'clitest000001', 'clitest000001', 'virtual-node', enable=False) + addon_profile = instance.addon_profiles['aciConnectorLinux'] + self.assertFalse(addon_profile.enabled) + + # ingress-appgw enabled + instance = mock.MagicMock() + instance.addon_profiles = None + cmd = mock.MagicMock() + instance = _update_addons(MockCmd(self.cli), instance, '00000000-0000-0000-0000-000000000000', + 'clitest000001', 'clitest000001', 'ingress-appgw', enable=True, appgw_subnet_cidr='10.2.0.0/16') + self.assertIn('ingressApplicationGateway', instance.addon_profiles) + addon_profile = instance.addon_profiles['ingressApplicationGateway'] + self.assertTrue(addon_profile.enabled) + + # ingress-appgw disabled + instance = _update_addons(MockCmd(self.cli), instance, '00000000-0000-0000-0000-000000000000', + 'clitest000001', 'clitest000001', 'ingress-appgw', enable=False) + addon_profile = instance.addon_profiles['ingressApplicationGateway'] + self.assertFalse(addon_profile.enabled) + + @mock.patch('azure.cli.command_modules.acs.custom.cf_resources', autospec=True) + @mock.patch('azure.cli.command_modules.acs.custom._invoke_deployment') + def test_ensure_container_insights_for_monitoring(self, invoke_def, cf_resources): + cmd = mock.Mock() + addon = mock.Mock() + wsID = "/subscriptions/1234abcd-cad5-417b-1234-aec62ffa6fe7/resourcegroups/mbdev/providers/microsoft.operationalinsights/workspaces/mbdev" + addon.config = { + CONST_MONITORING_LOG_ANALYTICS_WORKSPACE_RESOURCE_ID: wsID + } + self.assertTrue(_ensure_container_insights_for_monitoring(cmd, addon)) + args, kwargs = invoke_def.call_args + self.assertEqual(args[3]['resources'][0]['type'], "Microsoft.Resources/deployments") + self.assertEqual(args[4]['workspaceResourceId']['value'], wsID) + + # when addon config key is lower cased + addon.config = { + CONST_MONITORING_LOG_ANALYTICS_WORKSPACE_RESOURCE_ID: wsID + } + self.assertTrue(_ensure_container_insights_for_monitoring(cmd, addon)) + args, kwargs = invoke_def.call_args + self.assertEqual(args[3]['resources'][0]['type'], "Microsoft.Resources/deployments") + self.assertEqual(args[4]['workspaceResourceId']['value'], wsID) + + @mock.patch('azure.cli.command_modules.acs.custom._urlretrieve') + @mock.patch('azure.cli.command_modules.acs.custom.logger') + def test_k8s_install_kubectl_emit_warnings(self, logger_mock, mock_url_retrieve): + mock_url_retrieve.side_effect = lambda _, install_location: open(install_location, 'a').close() + try: + temp_dir = tempfile.mkdtemp() # tempfile.TemporaryDirectory() is no available on 2.7 + test_location = os.path.join(temp_dir, 'kubectl') + k8s_install_kubectl(mock.MagicMock(), client_version='1.2.3', install_location=test_location) + self.assertEqual(mock_url_retrieve.call_count, 1) + # 2 warnings, 1st for download result; 2nd for updating PATH + self.assertEqual(logger_mock.warning.call_count, 2) # 2 warnings, one for download result + finally: + shutil.rmtree(temp_dir) + + @mock.patch('azure.cli.command_modules.acs.custom._urlretrieve') + @mock.patch('azure.cli.command_modules.acs.custom.logger') + def test_k8s_install_kubectl_create_installation_dir(self, logger_mock, mock_url_retrieve): + mock_url_retrieve.side_effect = lambda _, install_location: open(install_location, 'a').close() + try: + temp_dir = tempfile.mkdtemp() # tempfile.TemporaryDirectory() is no available on 2.7 + test_location = os.path.join(temp_dir, 'foo', 'kubectl') + k8s_install_kubectl(mock.MagicMock(), client_version='1.2.3', install_location=test_location) + self.assertTrue(os.path.exists(test_location)) + finally: + shutil.rmtree(temp_dir) + + @unittest.skip('Update api version') + @mock.patch('azure.cli.command_modules.acs.custom._urlretrieve') + @mock.patch('azure.cli.command_modules.acs.custom.logger') + def test_k8s_install_kubelogin_emit_warnings(self, logger_mock, mock_url_retrieve): + mock_url_retrieve.side_effect = create_kubelogin_zip + try: + temp_dir = os.path.realpath(tempfile.mkdtemp()) # tempfile.TemporaryDirectory() is no available on 2.7 + test_location = os.path.join(temp_dir, 'kubelogin') + k8s_install_kubelogin(mock.MagicMock(), client_version='0.0.4', install_location=test_location) + self.assertEqual(mock_url_retrieve.call_count, 1) + # 2 warnings, 1st for download result; 2nd for updating PATH + self.assertEqual(logger_mock.warning.call_count, 2) # 2 warnings, one for download result + finally: + shutil.rmtree(temp_dir) + + @unittest.skip('Update api version') + @mock.patch('azure.cli.command_modules.acs.custom._urlretrieve') + @mock.patch('azure.cli.command_modules.acs.custom.logger') + def test_k8s_install_kubelogin_create_installation_dir(self, logger_mock, mock_url_retrieve): + mock_url_retrieve.side_effect = create_kubelogin_zip + try: + temp_dir = tempfile.mkdtemp() # tempfile.TemporaryDirectory() is no available on 2.7 + test_location = os.path.join(temp_dir, 'foo', 'kubelogin') + k8s_install_kubelogin(mock.MagicMock(), client_version='0.0.4', install_location=test_location) + self.assertTrue(os.path.exists(test_location)) + finally: + shutil.rmtree(temp_dir) + + @mock.patch('azure.cli.command_modules.acs.custom._urlretrieve') + @mock.patch('azure.cli.command_modules.acs.custom.logger') + def test_k8s_install_kubectl_with_custom_source_url(self, logger_mock, mock_url_retrieve): + mock_url_retrieve.side_effect = lambda _, install_location: open(install_location, 'a').close() + try: + temp_dir = tempfile.mkdtemp() + test_location = os.path.join(temp_dir, 'foo', 'kubectl') + test_ver = '1.2.5' + test_source_url = 'http://url1' + k8s_install_kubectl(mock.MagicMock(), client_version=test_ver, install_location=test_location, source_url=test_source_url) + mock_url_retrieve.assert_called_with(mockUrlretrieveUrlValidator(test_source_url, test_ver), mock.ANY) + finally: + shutil.rmtree(temp_dir) + + @unittest.skip('No such file or directory') + @mock.patch('azure.cli.command_modules.acs.custom._urlretrieve') + @mock.patch('azure.cli.command_modules.acs.custom.logger') + def test_k8s_install_kubelogin_with_custom_source_url(self, logger_mock, mock_url_retrieve): + mock_url_retrieve.side_effect = create_kubelogin_zip + try: + temp_dir = tempfile.mkdtemp() + test_location = os.path.join(temp_dir, 'foo', 'kubelogin') + test_ver = '1.2.6' + test_source_url = 'http://url2' + k8s_install_kubelogin(mock.MagicMock(), client_version=test_ver, install_location=test_location, source_url=test_source_url) + mock_url_retrieve.assert_called_with(mockUrlretrieveUrlValidator(test_source_url, test_ver), mock.ANY) + finally: + shutil.rmtree(temp_dir) + + +class mockUrlretrieveUrlValidator(object): + def __init__(self, url, version): + self.url = url + self.version = version + + def __eq__(self, other): + return other.startswith(self.url) and self.version in other + + +def create_kubelogin_zip(file_url, download_path): + import zipfile + try: + cwd = os.getcwd() + temp_dir = os.path.realpath(tempfile.mkdtemp()) + os.chdir(temp_dir) + bin_dir = 'bin' + system = platform.system() + if system == 'Windows': + bin_dir += '/windows_amd64' + elif system == 'Linux': + bin_dir += '/linux_amd64' + elif system == 'Darwin': + bin_dir += '/darwin_amd64' + os.makedirs(bin_dir) + bin_location = os.path.join(bin_dir, 'kubelogin') + open(bin_location, 'a').close() + with zipfile.ZipFile(download_path, 'w', zipfile.ZIP_DEFLATED) as outZipFile: + outZipFile.write(bin_location) + finally: + os.chdir(cwd) + shutil.rmtree(temp_dir) diff --git a/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/test_helpers.py b/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/test_helpers.py new file mode 100644 index 00000000000..a8dc8fff7c4 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/test_helpers.py @@ -0,0 +1,89 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- + +import unittest +import mock + +from knack import CLI + +from azure.cli.core._config import GLOBAL_CONFIG_DIR, ENV_VAR_PREFIX +from azure.cli.core.cloud import get_active_cloud +from azure.cli.core.profiles import get_sdk, ResourceType, supported_api_version + +from azure.cli.command_modules.acs import _helpers as helpers + +class MockCLI(CLI): + def __init__(self): + super(MockCLI, self).__init__(cli_name='mock_cli', config_dir=GLOBAL_CONFIG_DIR, + config_env_var_prefix=ENV_VAR_PREFIX, commands_loader_cls=MockLoader) + self.cloud = get_active_cloud(self) + + +class MockLoader(object): + def __init__(self, ctx): + self.ctx = ctx + + def get_models(self, *attr_args, **_): + from azure.cli.core.profiles import get_sdk + return get_sdk(self.ctx, ResourceType.MGMT_CONTAINERSERVICE, 'ManagedClusterAPIServerAccessProfile', + mod='models', operation_group='managed_clusters') + + +class MockCmd(object): + def __init__(self, ctx, arguments={}): + self.cli_ctx = ctx + self.loader = MockLoader(self.cli_ctx) + self.arguments = arguments + + def get_models(self, *attr_args, **kwargs): + return get_sdk(self.cli_ctx, ResourceType.MGMT_CONTAINERSERVICE, 'ManagedClusterAPIServerAccessProfile', + mod='models', operation_group='managed_clusters') + + +class TestPopulateApiServerAccessProfile(unittest.TestCase): + def setUp(self): + self.cli = MockCLI() + + def test_single_cidr_with_spaces(self): + api_server_authorized_ip_ranges = "0.0.0.0/32 " + profile = helpers._populate_api_server_access_profile(MockCmd(self.cli), api_server_authorized_ip_ranges, enable_private_cluster=False) + self.assertListEqual(profile.authorized_ip_ranges, ["0.0.0.0/32"]) + + def test_multi_cidr_with_spaces(self): + api_server_authorized_ip_ranges = " 0.0.0.0/32 , 129.1.1.1/32" + profile = helpers._populate_api_server_access_profile(MockCmd(self.cli), api_server_authorized_ip_ranges, enable_private_cluster=False) + self.assertListEqual(profile.authorized_ip_ranges, ["0.0.0.0/32", "129.1.1.1/32"]) + + def test_private_cluster(self): + profile = helpers._populate_api_server_access_profile(MockCmd(self.cli), None, enable_private_cluster=True) + self.assertListEqual(profile.authorized_ip_ranges, []) + self.assertEqual(profile.enable_private_cluster, True) + + +class TestSetVmSetType(unittest.TestCase): + def test_archaic_k8_version(self): + version = "1.11.9" + vm_type = helpers._set_vm_set_type("", version) + self.assertEqual(vm_type, "AvailabilitySet") + + def test_archaic_k8_version_with_vm_set(self): + version = "1.11.9" + vm_type = helpers._set_vm_set_type("AvailabilitySet", version) + self.assertEqual(vm_type, "AvailabilitySet") + + def test_no_vm_set(self): + version = "1.15.0" + vm_type = helpers._set_vm_set_type("", version) + self.assertEqual(vm_type, "VirtualMachineScaleSets") + + def test_casing_vmss(self): + version = "1.15.0" + vm_type = helpers._set_vm_set_type("virtualmachineScaleSets", version) + self.assertEqual(vm_type, "VirtualMachineScaleSets") + + def test_casing_as(self): + version = "1.15.0" + vm_type = helpers._set_vm_set_type("Availabilityset", version) + self.assertEqual(vm_type, "AvailabilitySet") diff --git a/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/test_loadbalancer.py b/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/test_loadbalancer.py new file mode 100644 index 00000000000..cd364c4d498 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/test_loadbalancer.py @@ -0,0 +1,51 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- +import unittest +import mock + +from knack import CLI + +from azure.cli.core._config import GLOBAL_CONFIG_DIR, ENV_VAR_PREFIX +from azure.cli.core.cloud import get_active_cloud +from azure.cli.core.profiles import get_sdk, ResourceType, supported_api_version + +from azure.mgmt.containerservice.v2020_11_01.models import ManagedClusterLoadBalancerProfile +from azure.mgmt.containerservice.v2020_11_01.models import ManagedClusterLoadBalancerProfileManagedOutboundIPs +from azure.mgmt.containerservice.v2020_11_01.models import ManagedClusterLoadBalancerProfileOutboundIPPrefixes +from azure.mgmt.containerservice.v2020_11_01.models import ManagedClusterLoadBalancerProfileOutboundIPs +from azure.cli.core.util import CLIError +from azure.cli.command_modules.acs import _loadbalancer as loadbalancer + +class TestLoadBalancer(unittest.TestCase): + + def test_configure_load_balancer_profile(self): + cmd = mock.MagicMock() + managed_outbound_ip_count = 5 + outbound_ips = None + outbound_ip_prefixes = None + outbound_ports = 80 + idle_timeout = 3600 + + profile = ManagedClusterLoadBalancerProfile() + profile.managed_outbound_ips = ManagedClusterLoadBalancerProfileManagedOutboundIPs( + count=2 + ) + profile.outbound_ips = ManagedClusterLoadBalancerProfileOutboundIPs( + public_ips="public_ips" + ) + profile.outbound_ip_prefixes = ManagedClusterLoadBalancerProfileOutboundIPPrefixes( + public_ip_prefixes="public_ip_prefixes" + ) + + p = loadbalancer.configure_load_balancer_profile(cmd, + managed_outbound_ip_count, outbound_ips, outbound_ip_prefixes, outbound_ports, idle_timeout, profile) + + self.assertIsNotNone(p.managed_outbound_ips) + self.assertIsNone(p.outbound_i_ps) + self.assertIsNone(p.outbound_ip_prefixes) + + +if __name__ == '__main__': + unittest.main() diff --git a/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/test_service_principals.py b/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/test_service_principals.py new file mode 100644 index 00000000000..9f7a7140aba --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/test_service_principals.py @@ -0,0 +1,105 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- + +import os +import tempfile +import unittest +import mock + +from knack.util import CLIError +from azure.cli.command_modules.acs.custom import ( + load_acs_service_principal, + store_acs_service_principal, + _build_service_principal) + + +class AcsServicePrincipalTest(unittest.TestCase): + def test_load_non_existent_service_principal(self): + principal = load_acs_service_principal('some-id', file_name='non-existent-file.json') + self.assertIsNone(principal) + + def test_round_trip_one_subscription(self): + store_file = tempfile.NamedTemporaryFile(delete=False) + store_file.close() + + service_principal = '12345' + sub_id = '67890' + client_secret = 'foobar' + + store_acs_service_principal( + sub_id, client_secret, service_principal, file_name=store_file.name) + obj = load_acs_service_principal(sub_id, file_name=store_file.name) + + self.assertIsNotNone(obj) + self.assertEqual(obj.get('service_principal'), service_principal) + self.assertEqual(obj.get('client_secret'), client_secret) + + os.remove(store_file.name) + + def test_round_trip_multi_subscription(self): + store_file = tempfile.NamedTemporaryFile(delete=False) + store_file.close() + + principals = [ + ('12345', '67890', 'foobar'), + ('abcde', 'fghij', 'foobaz'), + ] + + # Store them all + for principal in principals: + store_acs_service_principal( + principal[0], principal[1], principal[2], file_name=store_file.name) + + # Make sure it worked + for principal in principals: + obj = load_acs_service_principal(principal[0], file_name=store_file.name) + self.assertIsNotNone(obj, 'expected non-None for {}'.format(principal[0])) + self.assertEqual(obj.get('service_principal'), principal[2]) + self.assertEqual(obj.get('client_secret'), principal[1]) + + # Change one + new_principal = 'foo' + new_secret = 'bar' + store_acs_service_principal( + principals[0][0], new_secret, new_principal, file_name=store_file.name) + obj = load_acs_service_principal(principals[0][0], file_name=store_file.name) + self.assertIsNotNone(obj, 'expected non-None for {}'.format(principals[0][0])) + self.assertEqual(obj.get('service_principal'), new_principal) + self.assertEqual(obj.get('client_secret'), new_secret) + + os.remove(store_file.name) + + def test_build_service_principal(self): + app_id = '27497b5e-7ea6-4ff2-a883-b3db4e08d937' + + client = mock.MagicMock() + client.service_principals = mock.Mock() + client.applications = mock.Mock() + result = mock.MagicMock() + result.output.app_id = app_id + client.applications.create.return_value = result + client.applications.list.return_value = [] + cli_ctx = mock.MagicMock() + + name = "foo" + url = "http://contuso.com" + secret = "notASecret" + _build_service_principal(client, cli_ctx, name, url, secret) + + self.assertTrue(client.applications.create.called) + self.assertTrue(client.applications.list.called) + self.assertTrue(client.service_principals.create.called) + + expected_calls = [ + mock.call( + filter="appId eq '{}'".format(app_id)) + ] + client.applications.list.assert_has_calls(expected_calls) + # TODO better matcher here + client.applications.create.assert_called_with(mock.ANY, raw=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/test_validators.py b/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/test_validators.py new file mode 100644 index 00000000000..1df8d527c3e --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/acs/tests/hybrid_2020_09_01/test_validators.py @@ -0,0 +1,343 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- +import unittest +import mock + +from knack import CLI + +from azure.cli.core._config import GLOBAL_CONFIG_DIR, ENV_VAR_PREFIX +from azure.cli.core.cloud import get_active_cloud +from azure.cli.core.profiles import get_sdk, ResourceType, supported_api_version + +from azure.cli.core.util import CLIError +from azure.cli.command_modules.acs import _validators as validators + +class MockCLI(CLI): + def __init__(self): + super(MockCLI, self).__init__(cli_name='mock_cli', config_dir=GLOBAL_CONFIG_DIR, + config_env_var_prefix=ENV_VAR_PREFIX, commands_loader_cls=MockLoader) + self.cloud = get_active_cloud(self) + + +class MockLoader(object): + def __init__(self, ctx): + self.ctx = ctx + + def get_models(self, *attr_args, **_): + from azure.cli.core.profiles import get_sdk + return get_sdk(self.ctx, ResourceType.MGMT_CONTAINERSERVICE, 'ManagedClusterPropertiesAutoScalerProfile', + mod='models', operation_group='managed_clusters') + + +class MockCmd(object): + def __init__(self, ctx, arguments={}): + self.cli_ctx = ctx + self.loader = MockLoader(self.cli_ctx) + self.arguments = arguments + + def get_models(self, *attr_args, **kwargs): + return get_sdk(self.cli_ctx, ResourceType.MGMT_CONTAINERSERVICE, 'ManagedClusterPropertiesAutoScalerProfile', + mod='models', operation_group='managed_clusters') + + +class TestValidateIPRanges(unittest.TestCase): + def test_simultaneous_allow_and_disallow_with_spaces(self): + api_server_authorized_ip_ranges = " 0.0.0.0/32 , 129.1.1.1.1 " + namespace = Namespace(api_server_authorized_ip_ranges) + err = ("Setting --api-server-authorized-ip-ranges to 0.0.0.0/32 is not allowed with other IP ranges." + "Refer to https://aka.ms/aks/whitelist for more details") + + with self.assertRaises(CLIError) as cm: + validators.validate_ip_ranges(namespace) + self.assertEqual(str(cm.exception), err) + + def test_simultaneous_enable_and_disable_with_spaces(self): + # an entry of "", 129.1.1.1.1 from command line is translated into " , 129.1.1.1.1" + api_server_authorized_ip_ranges = " , 129.1.1.1.1" + namespace = Namespace(api_server_authorized_ip_ranges) + err = "--api-server-authorized-ip-ranges cannot be disabled and simultaneously enabled" + + with self.assertRaises(CLIError) as cm: + validators.validate_ip_ranges(namespace) + self.assertEqual(str(cm.exception), err) + + def test_disable_authorized_ip_ranges(self): + api_server_authorized_ip_ranges = '' + namespace = Namespace(api_server_authorized_ip_ranges) + validators.validate_ip_ranges(namespace) + + def test_local_ip_address(self): + api_server_authorized_ip_ranges = "192.168.0.0,192.168.0.0/16" + namespace = Namespace(api_server_authorized_ip_ranges) + err = "--api-server-authorized-ip-ranges must be global non-reserved addresses or CIDRs" + + with self.assertRaises(CLIError) as cm: + validators.validate_ip_ranges(namespace) + self.assertEqual(str(cm.exception), err) + + def test_invalid_ip(self): + api_server_authorized_ip_ranges = "193.168.0" + namespace = Namespace(api_server_authorized_ip_ranges) + err = "--api-server-authorized-ip-ranges should be a list of IPv4 addresses or CIDRs" + + with self.assertRaises(CLIError) as cm: + validators.validate_ip_ranges(namespace) + self.assertEqual(str(cm.exception), err) + + def test_IPv6(self): + api_server_authorized_ip_ranges = "3ffe:1900:4545:3:200:f8ff:fe21:67cf" + namespace = Namespace(api_server_authorized_ip_ranges) + err = "--api-server-authorized-ip-ranges cannot be IPv6 addresses" + + with self.assertRaises(CLIError) as cm: + validators.validate_ip_ranges(namespace) + self.assertEqual(str(cm.exception), err) + + +class TestClusterAutoscalerParamsValidators(unittest.TestCase): + def setUp(self): + self.cli = MockCLI() + + def test_empty_key_empty_value(self): + cluster_autoscaler_profile = ["="] + namespace = Namespace(cluster_autoscaler_profile=cluster_autoscaler_profile) + err = "Empty key specified for cluster-autoscaler-profile" + + with self.assertRaises(CLIError) as cm: + validators.validate_cluster_autoscaler_profile(MockCmd(self.cli), namespace) + self.assertEqual(str(cm.exception), err) + + def test_non_empty_key_empty_value(self): + cluster_autoscaler_profile = ["scan-interval="] + namespace = Namespace(cluster_autoscaler_profile=cluster_autoscaler_profile) + + validators.validate_cluster_autoscaler_profile(MockCmd(self.cli), namespace) + + def test_two_empty_keys_empty_value(self): + cluster_autoscaler_profile = ["=", "="] + namespace = Namespace(cluster_autoscaler_profile=cluster_autoscaler_profile) + err = "Empty key specified for cluster-autoscaler-profile" + + with self.assertRaises(CLIError) as cm: + validators.validate_cluster_autoscaler_profile(MockCmd(self.cli), namespace) + self.assertEqual(str(cm.exception), err) + + def test_one_empty_key_in_pair_one_non_empty(self): + cluster_autoscaler_profile = ["scan-interval=20s", "="] + namespace = Namespace(cluster_autoscaler_profile=cluster_autoscaler_profile) + err = "Empty key specified for cluster-autoscaler-profile" + + with self.assertRaises(CLIError) as cm: + validators.validate_cluster_autoscaler_profile(MockCmd(self.cli), namespace) + self.assertEqual(str(cm.exception), err) + + def test_invalid_key(self): + cluster_autoscaler_profile = ["bad-key=val"] + namespace = Namespace(cluster_autoscaler_profile=cluster_autoscaler_profile) + err = "'bad-key' is an invalid key for cluster-autoscaler-profile" + + with self.assertRaises(CLIError) as cm: + validators.validate_cluster_autoscaler_profile(MockCmd(self.cli), namespace) + self.assertIn(err, str(cm.exception),) + + def test_valid_parameters(self): + cluster_autoscaler_profile = ["scan-interval=20s", "scale-down-delay-after-add=15m"] + namespace = Namespace(cluster_autoscaler_profile=cluster_autoscaler_profile) + + validators.validate_cluster_autoscaler_profile(MockCmd(self.cli), namespace) + + +class Namespace: + def __init__(self, api_server_authorized_ip_ranges=None, cluster_autoscaler_profile=None): + self.api_server_authorized_ip_ranges = api_server_authorized_ip_ranges + self.cluster_autoscaler_profile = cluster_autoscaler_profile + + +class TestVNetSubnetId(unittest.TestCase): + def test_invalid_vnet_subnet_id(self): + invalid_vnet_subnet_id = "dummy subnet id" + namespace = VnetSubnetIdNamespace(invalid_vnet_subnet_id) + err = ("--vnet-subnet-id is not a valid Azure resource ID.") + + with self.assertRaises(CLIError) as cm: + validators.validate_vnet_subnet_id(namespace) + self.assertEqual(str(cm.exception), err) + + def test_valid_vnet_subnet_id(self): + invalid_vnet_subnet_id = "/subscriptions/testid/resourceGroups/MockedResourceGroup/providers/Microsoft.Network/virtualNetworks/MockedNetworkId/subnets/MockedSubNetId" + namespace = VnetSubnetIdNamespace(invalid_vnet_subnet_id) + validators.validate_vnet_subnet_id(namespace) + + def test_none_vnet_subnet_id(self): + invalid_vnet_subnet_id = None + namespace = VnetSubnetIdNamespace(invalid_vnet_subnet_id) + validators.validate_vnet_subnet_id(namespace) + + def test_empty_vnet_subnet_id(self): + invalid_vnet_subnet_id = "" + namespace = VnetSubnetIdNamespace(invalid_vnet_subnet_id) + validators.validate_vnet_subnet_id(namespace) + + +class VnetSubnetIdNamespace: + def __init__(self, vnet_subnet_id): + self.vnet_subnet_id = vnet_subnet_id + + +class MaxSurgeNamespace: + def __init__(self, max_surge): + self.max_surge = max_surge + + +class TestMaxSurge(unittest.TestCase): + def test_valid_cases(self): + valid = ["5", "33%", "1", "100%"] + for v in valid: + validators.validate_max_surge(MaxSurgeNamespace(v)) + + def test_throws_on_string(self): + with self.assertRaises(CLIError) as cm: + validators.validate_max_surge(MaxSurgeNamespace("foobar")) + self.assertTrue('int or percentage' in str(cm.exception), msg=str(cm.exception)) + + def test_throws_on_negative(self): + with self.assertRaises(CLIError) as cm: + validators.validate_max_surge(MaxSurgeNamespace("-3")) + self.assertTrue('positive' in str(cm.exception), msg=str(cm.exception)) + + +class TestLabels(unittest.TestCase): + def test_invalid_labels_prefix(self): + invalid_labels = "k8s##.io/label1=value" + namespace = LabelsNamespace(invalid_labels) + err = ("Invalid label: k8s##.io/label1=value. Prefix part a DNS-1123 label must consist of lower case " + "alphanumeric characters or '-', and must start and end with an alphanumeric character") + + with self.assertRaises(CLIError) as cm: + validators.validate_nodepool_labels(namespace) + self.assertEqual(str(cm.exception), err) + + def test_invalid_labels_prefix_toolong(self): + self.maxDiff = None + invalid_labels = ("k8s12345678901234567890123456789012345678901234567890" + "k8s12345678901234567890123456789012345678901234567890" + "k8s12345678901234567890123456789012345678901234567890" + "k8s12345678901234567890123456789012345678901234567890" + "k8s12345678901234567890123456789012345678901234567890" + "k8s12345678901234567890123456789012345678901234567890" + "k8s12345678901234567890123456789012345678901234567890" + "k8s12345678901234567890123456789012345678901234567890" + "k8s12345678901234567890123456789012345678901234567890" + "k8s12345678901234567890123456789012345678901234567890" + "k8s12345678901234567890123456789012345678901234567890/label1=value") + + namespace = LabelsNamespace(invalid_labels) + err = ("Invalid label: %s. Label prefix can't be empty or more than 253 chars." % invalid_labels) + + with self.assertRaises(CLIError) as cm: + validators.validate_nodepool_labels(namespace) + self.assertEqual(str(cm.exception), err) + + def test_invalid_labels_wrong_format(self): + self.maxDiff = None + invalid_labels = ("label1value") + + namespace = LabelsNamespace(invalid_labels) + err = ("Invalid label: %s. Label definition must be of format name=value." % invalid_labels) + + with self.assertRaises(CLIError) as cm: + validators.validate_nodepool_labels(namespace) + self.assertEqual(str(cm.exception), err) + + def test_invalid_labels_name_toolong(self): + self.maxDiff = None + invalid_labels = ("k8s123456789012345678901234567890123456789012345678901234567890123=value") + + namespace = LabelsNamespace(invalid_labels) + err = ("Invalid label: %s. Label name can't be empty or more than 63 chars." % invalid_labels) + + with self.assertRaises(CLIError) as cm: + validators.validate_nodepool_labels(namespace) + self.assertEqual(str(cm.exception), err) + + def test_invalid_labels_name_invalid(self): + self.maxDiff = None + invalid_labels = ("k8s1##@@=value") + + namespace = LabelsNamespace(invalid_labels) + err = ("Invalid label: %s. A qualified name must consist of alphanumeric characters, '-', '_' " + "or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or " + "'my.name', or '123-abc') with an optional DNS subdomain prefix and '/' (e.g. " + "'example.com/MyName')" % invalid_labels) + + with self.assertRaises(CLIError) as cm: + validators.validate_nodepool_labels(namespace) + self.assertEqual(str(cm.exception), err) + + def test_invalid_labels_value_toolong(self): + self.maxDiff = None + invalid_labels = ("label=k8s123456789012345678901234567890123456789012345678901234567890123") + + namespace = LabelsNamespace(invalid_labels) + err = ("Invalid label: %s. Label must not be more than 63 chars." % invalid_labels) + + with self.assertRaises(CLIError) as cm: + validators.validate_nodepool_labels(namespace) + self.assertEqual(str(cm.exception), err) + + def test_invalid_labels_value_invalid(self): + self.maxDiff = None + invalid_labels = ("label=k8s1##@@") + + namespace = LabelsNamespace(invalid_labels) + err = ("Invalid label: %s. A valid label must be an empty string or consist of alphanumeric " + "characters, '-', '_' or '.', and must start and end with an alphanumeric character" % invalid_labels) + + with self.assertRaises(CLIError) as cm: + validators.validate_nodepool_labels(namespace) + self.assertEqual(str(cm.exception), err) + + def test_valid_labels(self): + namespace = LabelsNamespace("k8s.io/label=value") + validators.validate_nodepool_labels(namespace) + + namespace = LabelsNamespace(["k8s.io/label=value", "label2=value2"]) + validators.validate_nodepool_labels(namespace) + + +class LabelsNamespace: + def __init__(self, labels): + self.labels = labels + + +class AssignIdentityNamespace: + def __init__(self, assign_identity): + self.assign_identity = assign_identity + + +class TestAssignIdentity(unittest.TestCase): + def test_invalid_identity_id(self): + invalid_identity_id = "dummy identity id" + namespace = AssignIdentityNamespace(invalid_identity_id) + err = ("--assign-identity is not a valid Azure resource ID.") + + with self.assertRaises(CLIError) as cm: + validators.validate_assign_identity(namespace) + self.assertEqual(str(cm.exception), err) + + def test_valid_identity_id(self): + valid_identity_id = "/subscriptions/testid/resourceGroups/MockedResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/mockIdentityID" + namespace = AssignIdentityNamespace(valid_identity_id) + validators.validate_assign_identity(namespace) + + def test_none_identity_id(self): + none_identity_id = None + namespace = AssignIdentityNamespace(none_identity_id) + validators.validate_assign_identity(namespace) + + def test_empty_identity_id(self): + empty_identity_id = "" + namespace = AssignIdentityNamespace(empty_identity_id) + validators.validate_assign_identity(namespace) diff --git a/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_custom.py b/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_custom.py index c85497a75f8..ceb605d7a3e 100644 --- a/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_custom.py +++ b/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_custom.py @@ -13,6 +13,12 @@ import unittest import yaml +from knack import CLI + +from azure.cli.core._config import GLOBAL_CONFIG_DIR, ENV_VAR_PREFIX +from azure.cli.core.cloud import get_active_cloud +from azure.cli.core.profiles import get_sdk, ResourceType, supported_api_version + from msrestazure.azure_exceptions import CloudError from azure.graphrbac.models import GraphErrorException from azure.cli.command_modules.acs._params import (regions_in_preview, @@ -33,8 +39,37 @@ CONST_KUBE_DASHBOARD_ADDON_NAME, CONST_AZURE_POLICY_ADDON_NAME) +class MockCLI(CLI): + def __init__(self): + super(MockCLI, self).__init__(cli_name='mock_cli', config_dir=GLOBAL_CONFIG_DIR, + config_env_var_prefix=ENV_VAR_PREFIX, commands_loader_cls=MockLoader) + self.cloud = get_active_cloud(self) + + +class MockLoader(object): + def __init__(self, ctx): + self.ctx = ctx + + def get_models(self, *attr_args, **_): + from azure.cli.core.profiles import get_sdk + return get_sdk(self.ctx, ResourceType.MGMT_CONTAINERSERVICE, 'ManagedClusterAddonProfile', + mod='models', operation_group='managed_clusters') + + +class MockCmd(object): + def __init__(self, ctx, arguments={}): + self.cli_ctx = ctx + self.loader = MockLoader(self.cli_ctx) + self.arguments = arguments + + def get_models(self, *attr_args, **kwargs): + return get_sdk(self.cli_ctx, ResourceType.MGMT_CONTAINERSERVICE, 'ManagedClusterAddonProfile', + mod='models', operation_group='managed_clusters') class AcsCustomCommandTest(unittest.TestCase): + def setUp(self): + self.cli = MockCLI() + def test_list_acs_locations(self): client, cmd = mock.MagicMock(), mock.MagicMock() regions = list_acs_locations(client, cmd) @@ -590,21 +625,21 @@ def test_update_addons(self, rg_def, cf_resource_groups, cf_resources): # http_application_routing enabled instance = mock.MagicMock() instance.addon_profiles = None - cmd = mock.MagicMock() - instance = _update_addons(cmd, instance, '00000000-0000-0000-0000-000000000000', + + instance = _update_addons(MockCmd(self.cli), instance, '00000000-0000-0000-0000-000000000000', 'clitest000001', 'clitest000001', 'http_application_routing', enable=True) self.assertIn(CONST_HTTP_APPLICATION_ROUTING_ADDON_NAME, instance.addon_profiles) addon_profile = instance.addon_profiles[CONST_HTTP_APPLICATION_ROUTING_ADDON_NAME] self.assertTrue(addon_profile.enabled) # http_application_routing disabled - instance = _update_addons(cmd, instance, '00000000-0000-0000-0000-000000000000', + instance = _update_addons(MockCmd(self.cli), instance, '00000000-0000-0000-0000-000000000000', 'clitest000001', 'clitest000001', 'http_application_routing', enable=False) addon_profile = instance.addon_profiles[CONST_HTTP_APPLICATION_ROUTING_ADDON_NAME] self.assertFalse(addon_profile.enabled) # monitoring added - instance = _update_addons(cmd, instance, '00000000-0000-0000-0000-000000000000', + instance = _update_addons(MockCmd(self.cli), instance, '00000000-0000-0000-0000-000000000000', 'clitest000001', 'clitest000001', 'monitoring', enable=True) monitoring_addon_profile = instance.addon_profiles[CONST_MONITORING_ADDON_NAME] self.assertTrue(monitoring_addon_profile.enabled) @@ -612,9 +647,9 @@ def test_update_addons(self, rg_def, cf_resource_groups, cf_resources): self.assertFalse(routing_addon_profile.enabled) # monitoring disabled, routing enabled - instance = _update_addons(cmd, instance, '00000000-0000-0000-0000-000000000000', + instance = _update_addons(MockCmd(self.cli), instance, '00000000-0000-0000-0000-000000000000', 'clitest000001', 'clitest000001', 'monitoring', enable=False) - instance = _update_addons(cmd, instance, '00000000-0000-0000-0000-000000000000', + instance = _update_addons(MockCmd(self.cli), instance, '00000000-0000-0000-0000-000000000000', 'clitest000001', 'clitest000001', 'http_application_routing', enable=True) monitoring_addon_profile = instance.addon_profiles[CONST_MONITORING_ADDON_NAME] self.assertFalse(monitoring_addon_profile.enabled) @@ -623,7 +658,7 @@ def test_update_addons(self, rg_def, cf_resource_groups, cf_resources): self.assertEqual(sorted(list(instance.addon_profiles)), [CONST_HTTP_APPLICATION_ROUTING_ADDON_NAME, CONST_MONITORING_ADDON_NAME]) # azurepolicy added - instance = _update_addons(cmd, instance, '00000000-0000-0000-0000-000000000000', + instance = _update_addons(MockCmd(self.cli), instance, '00000000-0000-0000-0000-000000000000', 'clitest000001', 'clitest000001', 'azure-policy', enable=True) azurepolicy_addon_profile = instance.addon_profiles[CONST_AZURE_POLICY_ADDON_NAME] self.assertTrue(azurepolicy_addon_profile.enabled) @@ -633,9 +668,9 @@ def test_update_addons(self, rg_def, cf_resource_groups, cf_resources): self.assertFalse(monitoring_addon_profile.enabled) # azurepolicy disabled, routing enabled - instance = _update_addons(cmd, instance, '00000000-0000-0000-0000-000000000000', + instance = _update_addons(MockCmd(self.cli), instance, '00000000-0000-0000-0000-000000000000', 'clitest000001', 'clitest000001', 'azure-policy', enable=False) - instance = _update_addons(cmd, instance, '00000000-0000-0000-0000-000000000000', + instance = _update_addons(MockCmd(self.cli), instance, '00000000-0000-0000-0000-000000000000', 'clitest000001', 'clitest000001', 'http_application_routing', enable=True) azurepolicy_addon_profile = instance.addon_profiles[CONST_AZURE_POLICY_ADDON_NAME] self.assertFalse(azurepolicy_addon_profile.enabled) @@ -646,14 +681,14 @@ def test_update_addons(self, rg_def, cf_resource_groups, cf_resources): self.assertEqual(sorted(list(instance.addon_profiles)), [CONST_AZURE_POLICY_ADDON_NAME, CONST_HTTP_APPLICATION_ROUTING_ADDON_NAME, CONST_MONITORING_ADDON_NAME]) # kube-dashboard disabled, no existing dashboard addon profile - instance = _update_addons(cmd, instance, '00000000-0000-0000-0000-000000000000', + instance = _update_addons(MockCmd(self.cli), instance, '00000000-0000-0000-0000-000000000000', 'clitest000001', 'clitest000001', 'kube-dashboard', enable=False) dashboard_addon_profile = instance.addon_profiles[CONST_KUBE_DASHBOARD_ADDON_NAME] self.assertFalse(dashboard_addon_profile.enabled) # kube-dashboard enabled, no existing dashboard addon profile instance.addon_profiles.pop(CONST_KUBE_DASHBOARD_ADDON_NAME, None) - instance = _update_addons(cmd, instance, '00000000-0000-0000-0000-000000000000', + instance = _update_addons(MockCmd(self.cli), instance, '00000000-0000-0000-0000-000000000000', 'clitest000001', 'clitest000001', 'kube-dashboard', enable=True) dashboard_addon_profile = instance.addon_profiles[CONST_KUBE_DASHBOARD_ADDON_NAME] self.assertTrue(dashboard_addon_profile.enabled) @@ -662,7 +697,7 @@ def test_update_addons(self, rg_def, cf_resource_groups, cf_resources): instance.addon_profiles.pop(CONST_KUBE_DASHBOARD_ADDON_NAME, None) # test lower cased key name instance.addon_profiles['kubedashboard'] = ManagedClusterAddonProfile(enabled=True) - instance = _update_addons(cmd, instance, '00000000-0000-0000-0000-000000000000', + instance = _update_addons(MockCmd(self.cli), instance, '00000000-0000-0000-0000-000000000000', 'clitest000001', 'clitest000001', 'kube-dashboard', enable=False) dashboard_addon_profile = instance.addon_profiles[CONST_KUBE_DASHBOARD_ADDON_NAME] self.assertFalse(dashboard_addon_profile.enabled) @@ -671,7 +706,7 @@ def test_update_addons(self, rg_def, cf_resource_groups, cf_resources): instance.addon_profiles.pop(CONST_KUBE_DASHBOARD_ADDON_NAME, None) # test lower cased key name instance.addon_profiles['kubedashboard'] = ManagedClusterAddonProfile(enabled=False) - instance = _update_addons(cmd, instance, '00000000-0000-0000-0000-000000000000', + instance = _update_addons(MockCmd(self.cli), instance, '00000000-0000-0000-0000-000000000000', 'clitest000001', 'clitest000001', 'kube-dashboard', enable=True) dashboard_addon_profile = instance.addon_profiles[CONST_KUBE_DASHBOARD_ADDON_NAME] self.assertTrue(dashboard_addon_profile.enabled) @@ -679,24 +714,24 @@ def test_update_addons(self, rg_def, cf_resource_groups, cf_resources): # monitoring enabled and then enabled again should error instance = mock.Mock() instance.addon_profiles = None - instance = _update_addons(cmd, instance, '00000000-0000-0000-0000-000000000000', + instance = _update_addons(MockCmd(self.cli), instance, '00000000-0000-0000-0000-000000000000', 'clitest000001', 'clitest000001', 'monitoring', enable=True) with self.assertRaises(CLIError): - instance = _update_addons(cmd, instance, '00000000-0000-0000-0000-000000000000', + instance = _update_addons(MockCmd(self.cli), instance, '00000000-0000-0000-0000-000000000000', 'clitest000001', 'clitest000001', 'monitoring', enable=True) # virtual-node enabled instance = mock.MagicMock() instance.addon_profiles = None cmd = mock.MagicMock() - instance = _update_addons(cmd, instance, '00000000-0000-0000-0000-000000000000', + instance = _update_addons(MockCmd(self.cli), instance, '00000000-0000-0000-0000-000000000000', 'clitest000001', 'clitest000001', 'virtual-node', enable=True, subnet_name='foo') self.assertIn('aciConnectorLinux', instance.addon_profiles) addon_profile = instance.addon_profiles['aciConnectorLinux'] self.assertTrue(addon_profile.enabled) # virtual-node disabled - instance = _update_addons(cmd, instance, '00000000-0000-0000-0000-000000000000', + instance = _update_addons(MockCmd(self.cli), instance, '00000000-0000-0000-0000-000000000000', 'clitest000001', 'clitest000001', 'virtual-node', enable=False) addon_profile = instance.addon_profiles['aciConnectorLinux'] self.assertFalse(addon_profile.enabled) @@ -705,14 +740,14 @@ def test_update_addons(self, rg_def, cf_resource_groups, cf_resources): instance = mock.MagicMock() instance.addon_profiles = None cmd = mock.MagicMock() - instance = _update_addons(cmd, instance, '00000000-0000-0000-0000-000000000000', + instance = _update_addons(MockCmd(self.cli), instance, '00000000-0000-0000-0000-000000000000', 'clitest000001', 'clitest000001', 'ingress-appgw', enable=True, appgw_subnet_cidr='10.2.0.0/16') self.assertIn('ingressApplicationGateway', instance.addon_profiles) addon_profile = instance.addon_profiles['ingressApplicationGateway'] self.assertTrue(addon_profile.enabled) # ingress-appgw disabled - instance = _update_addons(cmd, instance, '00000000-0000-0000-0000-000000000000', + instance = _update_addons(MockCmd(self.cli), instance, '00000000-0000-0000-0000-000000000000', 'clitest000001', 'clitest000001', 'ingress-appgw', enable=False) addon_profile = instance.addon_profiles['ingressApplicationGateway'] self.assertFalse(addon_profile.enabled) diff --git a/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_helpers.py b/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_helpers.py index 7da178f8e29..a8dc8fff7c4 100644 --- a/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_helpers.py +++ b/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_helpers.py @@ -4,22 +4,60 @@ # -------------------------------------------------------------------------------------------- import unittest +import mock + +from knack import CLI + +from azure.cli.core._config import GLOBAL_CONFIG_DIR, ENV_VAR_PREFIX +from azure.cli.core.cloud import get_active_cloud +from azure.cli.core.profiles import get_sdk, ResourceType, supported_api_version + from azure.cli.command_modules.acs import _helpers as helpers +class MockCLI(CLI): + def __init__(self): + super(MockCLI, self).__init__(cli_name='mock_cli', config_dir=GLOBAL_CONFIG_DIR, + config_env_var_prefix=ENV_VAR_PREFIX, commands_loader_cls=MockLoader) + self.cloud = get_active_cloud(self) + + +class MockLoader(object): + def __init__(self, ctx): + self.ctx = ctx + + def get_models(self, *attr_args, **_): + from azure.cli.core.profiles import get_sdk + return get_sdk(self.ctx, ResourceType.MGMT_CONTAINERSERVICE, 'ManagedClusterAPIServerAccessProfile', + mod='models', operation_group='managed_clusters') + + +class MockCmd(object): + def __init__(self, ctx, arguments={}): + self.cli_ctx = ctx + self.loader = MockLoader(self.cli_ctx) + self.arguments = arguments + + def get_models(self, *attr_args, **kwargs): + return get_sdk(self.cli_ctx, ResourceType.MGMT_CONTAINERSERVICE, 'ManagedClusterAPIServerAccessProfile', + mod='models', operation_group='managed_clusters') + class TestPopulateApiServerAccessProfile(unittest.TestCase): + def setUp(self): + self.cli = MockCLI() + def test_single_cidr_with_spaces(self): api_server_authorized_ip_ranges = "0.0.0.0/32 " - profile = helpers._populate_api_server_access_profile(api_server_authorized_ip_ranges, enable_private_cluster=False) + profile = helpers._populate_api_server_access_profile(MockCmd(self.cli), api_server_authorized_ip_ranges, enable_private_cluster=False) self.assertListEqual(profile.authorized_ip_ranges, ["0.0.0.0/32"]) def test_multi_cidr_with_spaces(self): api_server_authorized_ip_ranges = " 0.0.0.0/32 , 129.1.1.1/32" - profile = helpers._populate_api_server_access_profile(api_server_authorized_ip_ranges, enable_private_cluster=False) + profile = helpers._populate_api_server_access_profile(MockCmd(self.cli), api_server_authorized_ip_ranges, enable_private_cluster=False) self.assertListEqual(profile.authorized_ip_ranges, ["0.0.0.0/32", "129.1.1.1/32"]) def test_private_cluster(self): - profile = helpers._populate_api_server_access_profile(None, enable_private_cluster=True) + profile = helpers._populate_api_server_access_profile(MockCmd(self.cli), None, enable_private_cluster=True) self.assertListEqual(profile.authorized_ip_ranges, []) self.assertEqual(profile.enable_private_cluster, True) diff --git a/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_loadbalancer.py b/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_loadbalancer.py index a21176578f2..c0d88ccbd36 100644 --- a/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_loadbalancer.py +++ b/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_loadbalancer.py @@ -3,6 +3,13 @@ # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- import unittest +import mock + +from knack import CLI + +from azure.cli.core._config import GLOBAL_CONFIG_DIR, ENV_VAR_PREFIX +from azure.cli.core.cloud import get_active_cloud +from azure.cli.core.profiles import get_sdk, ResourceType, supported_api_version from azure.mgmt.containerservice.v2021_03_01.models import ManagedClusterLoadBalancerProfile from azure.mgmt.containerservice.v2021_03_01.models import ManagedClusterLoadBalancerProfileManagedOutboundIPs @@ -11,9 +18,10 @@ from azure.cli.core.util import CLIError from azure.cli.command_modules.acs import _loadbalancer as loadbalancer - class TestLoadBalancer(unittest.TestCase): + def test_configure_load_balancer_profile(self): + cmd = mock.MagicMock() managed_outbound_ip_count = 5 outbound_ips = None outbound_ip_prefixes = None @@ -31,7 +39,7 @@ def test_configure_load_balancer_profile(self): public_ip_prefixes="public_ip_prefixes" ) - p = loadbalancer.configure_load_balancer_profile( + p = loadbalancer.configure_load_balancer_profile(cmd, managed_outbound_ip_count, outbound_ips, outbound_ip_prefixes, outbound_ports, idle_timeout, profile) self.assertIsNotNone(p.managed_outbound_i_ps) diff --git a/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_validators.py b/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_validators.py index c3ec8d14a60..1df8d527c3e 100644 --- a/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_validators.py +++ b/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_validators.py @@ -3,9 +3,44 @@ # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- import unittest +import mock + +from knack import CLI + +from azure.cli.core._config import GLOBAL_CONFIG_DIR, ENV_VAR_PREFIX +from azure.cli.core.cloud import get_active_cloud +from azure.cli.core.profiles import get_sdk, ResourceType, supported_api_version + from azure.cli.core.util import CLIError from azure.cli.command_modules.acs import _validators as validators +class MockCLI(CLI): + def __init__(self): + super(MockCLI, self).__init__(cli_name='mock_cli', config_dir=GLOBAL_CONFIG_DIR, + config_env_var_prefix=ENV_VAR_PREFIX, commands_loader_cls=MockLoader) + self.cloud = get_active_cloud(self) + + +class MockLoader(object): + def __init__(self, ctx): + self.ctx = ctx + + def get_models(self, *attr_args, **_): + from azure.cli.core.profiles import get_sdk + return get_sdk(self.ctx, ResourceType.MGMT_CONTAINERSERVICE, 'ManagedClusterPropertiesAutoScalerProfile', + mod='models', operation_group='managed_clusters') + + +class MockCmd(object): + def __init__(self, ctx, arguments={}): + self.cli_ctx = ctx + self.loader = MockLoader(self.cli_ctx) + self.arguments = arguments + + def get_models(self, *attr_args, **kwargs): + return get_sdk(self.cli_ctx, ResourceType.MGMT_CONTAINERSERVICE, 'ManagedClusterPropertiesAutoScalerProfile', + mod='models', operation_group='managed_clusters') + class TestValidateIPRanges(unittest.TestCase): def test_simultaneous_allow_and_disallow_with_spaces(self): @@ -62,20 +97,23 @@ def test_IPv6(self): class TestClusterAutoscalerParamsValidators(unittest.TestCase): + def setUp(self): + self.cli = MockCLI() + def test_empty_key_empty_value(self): cluster_autoscaler_profile = ["="] namespace = Namespace(cluster_autoscaler_profile=cluster_autoscaler_profile) err = "Empty key specified for cluster-autoscaler-profile" with self.assertRaises(CLIError) as cm: - validators.validate_cluster_autoscaler_profile(namespace) + validators.validate_cluster_autoscaler_profile(MockCmd(self.cli), namespace) self.assertEqual(str(cm.exception), err) def test_non_empty_key_empty_value(self): cluster_autoscaler_profile = ["scan-interval="] namespace = Namespace(cluster_autoscaler_profile=cluster_autoscaler_profile) - validators.validate_cluster_autoscaler_profile(namespace) + validators.validate_cluster_autoscaler_profile(MockCmd(self.cli), namespace) def test_two_empty_keys_empty_value(self): cluster_autoscaler_profile = ["=", "="] @@ -83,7 +121,7 @@ def test_two_empty_keys_empty_value(self): err = "Empty key specified for cluster-autoscaler-profile" with self.assertRaises(CLIError) as cm: - validators.validate_cluster_autoscaler_profile(namespace) + validators.validate_cluster_autoscaler_profile(MockCmd(self.cli), namespace) self.assertEqual(str(cm.exception), err) def test_one_empty_key_in_pair_one_non_empty(self): @@ -92,7 +130,7 @@ def test_one_empty_key_in_pair_one_non_empty(self): err = "Empty key specified for cluster-autoscaler-profile" with self.assertRaises(CLIError) as cm: - validators.validate_cluster_autoscaler_profile(namespace) + validators.validate_cluster_autoscaler_profile(MockCmd(self.cli), namespace) self.assertEqual(str(cm.exception), err) def test_invalid_key(self): @@ -101,14 +139,14 @@ def test_invalid_key(self): err = "'bad-key' is an invalid key for cluster-autoscaler-profile" with self.assertRaises(CLIError) as cm: - validators.validate_cluster_autoscaler_profile(namespace) + validators.validate_cluster_autoscaler_profile(MockCmd(self.cli), namespace) self.assertIn(err, str(cm.exception),) def test_valid_parameters(self): cluster_autoscaler_profile = ["scan-interval=20s", "scale-down-delay-after-add=15m"] namespace = Namespace(cluster_autoscaler_profile=cluster_autoscaler_profile) - validators.validate_cluster_autoscaler_profile(namespace) + validators.validate_cluster_autoscaler_profile(MockCmd(self.cli), namespace) class Namespace: diff --git a/src/azure-cli/azure/cli/command_modules/appservice/custom.py b/src/azure-cli/azure/cli/command_modules/appservice/custom.py index e33d7dfea7c..f6a2b01707c 100644 --- a/src/azure-cli/azure/cli/command_modules/appservice/custom.py +++ b/src/azure-cli/azure/cli/command_modules/appservice/custom.py @@ -1099,7 +1099,7 @@ def url_validator(url): def _get_linux_multicontainer_decoded_config(cmd, resource_group_name, name, slot=None): from base64 import b64decode linux_fx_version = _get_fx_version(cmd, resource_group_name, name, slot) - if not any([linux_fx_version.startswith(s) for s in MULTI_CONTAINER_TYPES]): + if not any(linux_fx_version.startswith(s) for s in MULTI_CONTAINER_TYPES): raise CLIError("Cannot decode config that is not one of the" " following types: {}".format(','.join(MULTI_CONTAINER_TYPES))) return b64decode(linux_fx_version.split('|')[1].encode('utf-8')) diff --git a/src/azure-cli/azure/cli/command_modules/batch/_command_type.py b/src/azure-cli/azure/cli/command_modules/batch/_command_type.py index 34f8a61e5e6..789d64c9559 100644 --- a/src/azure-cli/azure/cli/command_modules/batch/_command_type.py +++ b/src/azure-cli/azure/cli/command_modules/batch/_command_type.py @@ -250,7 +250,7 @@ def _parse(self, namespace, path, required): required_args = [] children = self._get_children(path) if not required: - if not any([getattr(namespace, n) for n in children]): + if not any(getattr(namespace, n) for n in children): return [] siblings = self._get_siblings(path) if not siblings: @@ -377,7 +377,7 @@ def parse_mutually_exclusive(self, namespace, required, params): child_args = self._get_children(arg_group) if child_args: ex_group_names.append(group_title(arg_group)) - if any([getattr(namespace, arg) for arg in child_args]): + if any(getattr(namespace, arg) for arg in child_args): ex_groups.append(ex_group_names[-1]) message = None @@ -613,7 +613,7 @@ def _get_attrs(self, model, path): model._validation.get(attr, {}).get('readonly')) # pylint: disable=protected-access conditions.append( model._validation.get(attr, {}).get('constant')) # pylint: disable=protected-access - conditions.append(any([i for i in pformat.IGNORE_PARAMETERS if i in full_path])) + conditions.append(any(i for i in pformat.IGNORE_PARAMETERS if i in full_path)) conditions.append(details['type'][0] in ['{']) if not any(conditions): yield attr, details diff --git a/src/azure-cli/azure/cli/command_modules/cdn/custom/custom_afdx.py b/src/azure-cli/azure/cli/command_modules/cdn/custom/custom_afdx.py index aa3bd2cff9a..c3ecf20771c 100644 --- a/src/azure-cli/azure/cli/command_modules/cdn/custom/custom_afdx.py +++ b/src/azure-cli/azure/cli/command_modules/cdn/custom/custom_afdx.py @@ -663,8 +663,8 @@ def create_afd_security_policy(client: SecurityPoliciesOperations, domains: List[str], waf_policy: str): - if any([("/afdendpoints/" not in domain.lower() and - "/customdomains/" not in domain.lower()) for domain in domains]): + if any(("/afdendpoints/" not in domain.lower() and + "/customdomains/" not in domain.lower()) for domain in domains): raise InvalidArgumentValueError('Domain should either be endpoint ID or custom domain ID.') if "/frontdoorwebapplicationfirewallpolicies/" not in waf_policy.lower(): @@ -690,8 +690,8 @@ def update_afd_security_policy(client: SecurityPoliciesOperations, domains: List[str] = None, waf_policy: str = None): - if domains is not None and any([("/afdendpoints/" not in domain.lower() and - "/customdomains/" not in domain.lower()) for domain in domains]): + if domains is not None and any(("/afdendpoints/" not in domain.lower() and + "/customdomains/" not in domain.lower()) for domain in domains): raise InvalidArgumentValueError('Domain should be either endpoint ID or custom domain ID.') if waf_policy is not None and "/frontdoorwebapplicationfirewallpolicies/" not in waf_policy: diff --git a/src/azure-cli/azure/cli/command_modules/monitor/operations/activity_log_alerts.py b/src/azure-cli/azure/cli/command_modules/monitor/operations/activity_log_alerts.py index 5f5dba78f16..3293d78b582 100644 --- a/src/azure-cli/azure/cli/command_modules/monitor/operations/activity_log_alerts.py +++ b/src/azure-cli/azure/cli/command_modules/monitor/operations/activity_log_alerts.py @@ -35,7 +35,7 @@ def process_condition_parameter(namespace): # Ensure all the string at even options are AND operator operators = [expression[i] for i in range(1, len(expression), 2)] - if any([op != 'and' for op in operators]): + if any(op != 'and' for op in operators): raise CLIError(error) # Pick the strings at odd position and convert them into condition leaf. diff --git a/src/azure-cli/azure/cli/command_modules/network/_validators.py b/src/azure-cli/azure/cli/command_modules/network/_validators.py index 240d85d79d0..9354f92087e 100644 --- a/src/azure-cli/azure/cli/command_modules/network/_validators.py +++ b/src/azure-cli/azure/cli/command_modules/network/_validators.py @@ -259,7 +259,7 @@ def validate_trusted_client_cert(namespace): def validate_ssl_cert(namespace): params = [namespace.cert_data, namespace.cert_password] - if all([not x for x in params]) and not namespace.key_vault_secret_id: + if all(not x for x in params) and not namespace.key_vault_secret_id: # no cert supplied -- use HTTP if not namespace.frontend_port: namespace.frontend_port = 80 diff --git a/src/azure-cli/azure/cli/command_modules/security/commands.py b/src/azure-cli/azure/cli/command_modules/security/commands.py index dd87bf132fd..675903b7e2a 100644 --- a/src/azure-cli/azure/cli/command_modules/security/commands.py +++ b/src/azure-cli/azure/cli/command_modules/security/commands.py @@ -427,5 +427,5 @@ def load_command_table(self, _): g.custom_command('list', 'list_security_iot_recommendations') g.custom_show_command('show', 'show_security_iot_recommendations') - with self.command_group('security', is_preview=True): + with self.command_group('security'): pass diff --git a/src/azure-cli/requirements.py3.Darwin.txt b/src/azure-cli/requirements.py3.Darwin.txt index 08a19642a79..be40966bbb8 100644 --- a/src/azure-cli/requirements.py3.Darwin.txt +++ b/src/azure-cli/requirements.py3.Darwin.txt @@ -120,7 +120,7 @@ portalocker==1.7.1 psutil==5.8.0 pycparser==2.19 PyGithub==1.38 -PyJWT==1.7.1 +PyJWT==2.1.0 PyNaCl==1.4.0 pyOpenSSL==19.0.0 python-dateutil==2.8.0 diff --git a/src/azure-cli/requirements.py3.Linux.txt b/src/azure-cli/requirements.py3.Linux.txt index e90b7d12f92..fc9ca7c358e 100644 --- a/src/azure-cli/requirements.py3.Linux.txt +++ b/src/azure-cli/requirements.py3.Linux.txt @@ -120,7 +120,7 @@ portalocker==1.7.1 psutil==5.8.0 pycparser==2.19 PyGithub==1.38 -PyJWT==1.7.1 +PyJWT==2.1.0 PyNaCl==1.4.0 pyOpenSSL==19.0.0 python-dateutil==2.8.0 diff --git a/src/azure-cli/requirements.py3.windows.txt b/src/azure-cli/requirements.py3.windows.txt index b6058780576..f8153534bf9 100644 --- a/src/azure-cli/requirements.py3.windows.txt +++ b/src/azure-cli/requirements.py3.windows.txt @@ -119,7 +119,7 @@ portalocker==1.7.1 psutil==5.8.0 pycparser==2.19 PyGithub==1.38 -PyJWT==1.7.1 +PyJWT==2.1.0 PyNaCl==1.4.0 pyOpenSSL==19.0.0 pyreadline==2.1