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\n