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 deleted file mode 100644 index 34913fb394d..00000000000 --- a/src/azure-cli/azure/cli/command_modules/acr/tests/hybrid_2020_09_01/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 deleted file mode 100644 index 5e5ccc55743..00000000000 --- a/src/azure-cli/azure/cli/command_modules/acr/tests/hybrid_2020_09_01/recordings/test_acr_agentpool.yaml +++ /dev/null @@ -1,334 +0,0 @@ -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 deleted file mode 100644 index 3ccbd88d326..00000000000 --- a/src/azure-cli/azure/cli/command_modules/acr/tests/hybrid_2020_09_01/recordings/test_acr_create_replication.yaml +++ /dev/null @@ -1,149 +0,0 @@ -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 deleted file mode 100644 index 41d2c4c7349..00000000000 --- a/src/azure-cli/azure/cli/command_modules/acr/tests/hybrid_2020_09_01/recordings/test_acr_create_webhook.yaml +++ /dev/null @@ -1,1340 +0,0 @@ -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 - ParameterSetName: - - -n -g -l --sku - User-Agent: - - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.12.9 (Windows-11-10.0.26100-SP0) - 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":"2025-03-28T19:22:47.7109406Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2025-03-28T19:22:55.0297877+00:00","status":"disabled"}}}}' - headers: - api-supported-versions: - - '2019-05-01' - cache-control: - - no-cache - content-length: - - '665' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 28 Mar 2025 19:22:54 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-ms-operation-identifier: - - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=1cf15f1f-c610-4e5c-b680-970697d1bbba/westus2/9f6424b6-16e7-433f-a7a7-2d7cc8d5812e - x-ms-ratelimit-remaining-subscription-global-writes: - - '12000' - x-ms-ratelimit-remaining-subscription-writes: - - '800' - x-msedge-ref: - - 'Ref A: 19F11388C39C426EB1AE61B0F45E0AAF Ref B: CO6AA3150220023 Ref C: 2025-03-28T19:22:45Z' - 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.71.0 azsdk-python-core/1.31.0 Python/3.12.9 (Windows-11-10.0.26100-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/trisavo20/providers/Microsoft.ContainerRegistry/registries/trisavoeus","name":"trisavoeus","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Basic","tier":"Basic"},"location":"eastus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/trisavo20/providers/Microsoft.ContainerRegistry/registries/trisavouse02","name":"trisavouse02","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"eastus2","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/trisavo20/providers/Microsoft.ContainerRegistry/registries/trisavostoragetimestamp","name":"trisavostoragetimestamp","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Basic","tier":"Basic"},"location":"japaneast","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/trisavo20/providers/Microsoft.ContainerRegistry/registries/billingbrownbag","name":"billingbrownbag","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Basic","tier":"Basic"},"location":"centralus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourcegroupsamesub/providers/Microsoft.ContainerRegistry/registries/sourceregistrysamesubiguuoxtdrodljihuw4n","name":"sourceregistrysamesubiguuoxtdrodljihuw4n","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgzdo5bmqslbdj5vebvyd7kej2bomh7gkt76uvf2okpqnuvfs4xqozbcasz3q74ibta/providers/Microsoft.ContainerRegistry/registries/cliregkjcmnylxy54dq3","name":"cliregkjcmnylxy54dq3","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourcegroupsamesub/providers/Microsoft.ContainerRegistry/registries/sourceregistrysamesubbsmcegarollaibqyh3x","name":"sourceregistrysamesubbsmcegarollaibqyh3x","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","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/a/providers/Microsoft.ContainerRegistry/registries/trisavo","name":"trisavo","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"centralus","tags":{}}]}' - headers: - cache-control: - - no-cache - content-length: - - '2854' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 28 Mar 2025 19:22:56 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-global-reads: - - '16499' - x-msedge-ref: - - 'Ref A: BBE6F7421F7A4C9FAB06438574A7D21E Ref B: CO6AA3150217031 Ref C: 2025-03-28T19:22:55Z' - 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.71.0 azsdk-python-core/1.31.0 Python/3.12.9 (Windows-11-10.0.26100-SP0) - 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":"2025-03-28T19:22:47.7109406Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2025-03-28T19:22:55.0297877+00:00","status":"disabled"}}}}' - headers: - api-supported-versions: - - '2019-05-01' - cache-control: - - no-cache - content-length: - - '665' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 28 Mar 2025 19:22:57 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-global-reads: - - '16499' - x-msedge-ref: - - 'Ref A: 2C2770B267804575BF921987FBF9A82D Ref B: MWH011020808029 Ref C: 2025-03-28T19:22:56Z' - 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 - ParameterSetName: - - -n -r --uri --actions - User-Agent: - - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.12.9 (Windows-11-10.0.26100-SP0) - 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: - api-supported-versions: - - '2019-05-01' - cache-control: - - no-cache - content-length: - - '383' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 28 Mar 2025 19:23:00 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-ms-operation-identifier: - - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=1cf15f1f-c610-4e5c-b680-970697d1bbba/westus2/1cfb4a7c-2bab-4207-b75a-7d8faefaec21 - x-ms-ratelimit-remaining-subscription-global-writes: - - '11999' - x-ms-ratelimit-remaining-subscription-writes: - - '799' - x-msedge-ref: - - 'Ref A: 83A67CBB07D944B7A59FE89C37EECE36 Ref B: MWH011020809036 Ref C: 2025-03-28T19:22:59Z' - 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.71.0 azsdk-python-core/1.31.0 Python/3.12.9 (Windows-11-10.0.26100-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/trisavo20/providers/Microsoft.ContainerRegistry/registries/trisavoeus","name":"trisavoeus","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Basic","tier":"Basic"},"location":"eastus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/trisavo20/providers/Microsoft.ContainerRegistry/registries/trisavouse02","name":"trisavouse02","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"eastus2","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/trisavo20/providers/Microsoft.ContainerRegistry/registries/trisavostoragetimestamp","name":"trisavostoragetimestamp","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Basic","tier":"Basic"},"location":"japaneast","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/trisavo20/providers/Microsoft.ContainerRegistry/registries/billingbrownbag","name":"billingbrownbag","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Basic","tier":"Basic"},"location":"centralus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourcegroupsamesub/providers/Microsoft.ContainerRegistry/registries/sourceregistrysamesubiguuoxtdrodljihuw4n","name":"sourceregistrysamesubiguuoxtdrodljihuw4n","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgzdo5bmqslbdj5vebvyd7kej2bomh7gkt76uvf2okpqnuvfs4xqozbcasz3q74ibta/providers/Microsoft.ContainerRegistry/registries/cliregkjcmnylxy54dq3","name":"cliregkjcmnylxy54dq3","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourcegroupsamesub/providers/Microsoft.ContainerRegistry/registries/sourceregistrysamesubbsmcegarollaibqyh3x","name":"sourceregistrysamesubbsmcegarollaibqyh3x","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","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/a/providers/Microsoft.ContainerRegistry/registries/trisavo","name":"trisavo","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"centralus","tags":{}}]}' - headers: - cache-control: - - no-cache - content-length: - - '2854' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 28 Mar 2025 19:23:01 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-global-reads: - - '16499' - x-msedge-ref: - - 'Ref A: BE4EAB2E795440CD87F891262A4158D0 Ref B: MWH011020807060 Ref C: 2025-03-28T19:23:00Z' - 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.71.0 azsdk-python-core/1.31.0 Python/3.12.9 (Windows-11-10.0.26100-SP0) - 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":"2025-03-28T19:22:47.7109406Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2025-03-28T19:22:55.0297877+00:00","status":"disabled"}}}}' - headers: - api-supported-versions: - - '2019-05-01' - cache-control: - - no-cache - content-length: - - '665' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 28 Mar 2025 19:23:01 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-global-reads: - - '16499' - x-msedge-ref: - - 'Ref A: BE5120B3BB6D4442B17071613C93AB11 Ref B: MWH011020807036 Ref C: 2025-03-28T19:23:01Z' - 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.71.0 azsdk-python-core/1.31.0 Python/3.12.9 (Windows-11-10.0.26100-SP0) - 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: - api-supported-versions: - - '2019-05-01' - cache-control: - - no-cache - content-length: - - '395' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 28 Mar 2025 19:23:02 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-ms-original-request-ids: - - '' - x-ms-ratelimit-remaining-subscription-global-reads: - - '16499' - x-msedge-ref: - - 'Ref A: 35C5B13BDFC34A90B655C105555E512B Ref B: CO6AA3150218053 Ref C: 2025-03-28T19:23:02Z' - 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.71.0 azsdk-python-core/1.31.0 Python/3.12.9 (Windows-11-10.0.26100-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/trisavo20/providers/Microsoft.ContainerRegistry/registries/trisavoeus","name":"trisavoeus","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Basic","tier":"Basic"},"location":"eastus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/trisavo20/providers/Microsoft.ContainerRegistry/registries/trisavouse02","name":"trisavouse02","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"eastus2","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/trisavo20/providers/Microsoft.ContainerRegistry/registries/trisavostoragetimestamp","name":"trisavostoragetimestamp","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Basic","tier":"Basic"},"location":"japaneast","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/trisavo20/providers/Microsoft.ContainerRegistry/registries/billingbrownbag","name":"billingbrownbag","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Basic","tier":"Basic"},"location":"centralus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourcegroupsamesub/providers/Microsoft.ContainerRegistry/registries/sourceregistrysamesubiguuoxtdrodljihuw4n","name":"sourceregistrysamesubiguuoxtdrodljihuw4n","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgzdo5bmqslbdj5vebvyd7kej2bomh7gkt76uvf2okpqnuvfs4xqozbcasz3q74ibta/providers/Microsoft.ContainerRegistry/registries/cliregkjcmnylxy54dq3","name":"cliregkjcmnylxy54dq3","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourcegroupsamesub/providers/Microsoft.ContainerRegistry/registries/sourceregistrysamesubbsmcegarollaibqyh3x","name":"sourceregistrysamesubbsmcegarollaibqyh3x","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","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/a/providers/Microsoft.ContainerRegistry/registries/trisavo","name":"trisavo","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"centralus","tags":{}}]}' - headers: - cache-control: - - no-cache - content-length: - - '2854' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 28 Mar 2025 19:23:03 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-global-reads: - - '16499' - x-msedge-ref: - - 'Ref A: BCB8B60B74FC4448B368BB03ED7A49D4 Ref B: CO6AA3150217039 Ref C: 2025-03-28T19:23:03Z' - 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.71.0 azsdk-python-core/1.31.0 Python/3.12.9 (Windows-11-10.0.26100-SP0) - 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":"2025-03-28T19:22:47.7109406Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2025-03-28T19:22:55.0297877+00:00","status":"disabled"}}}}' - headers: - api-supported-versions: - - '2019-05-01' - cache-control: - - no-cache - content-length: - - '665' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 28 Mar 2025 19:23:03 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-global-reads: - - '16499' - x-msedge-ref: - - 'Ref A: 079D50A7BCF14C13BBD9CB5D061830C4 Ref B: CO6AA3150220021 Ref C: 2025-03-28T19:23:03Z' - 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.71.0 azsdk-python-core/1.31.0 Python/3.12.9 (Windows-11-10.0.26100-SP0) - 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: - api-supported-versions: - - '2019-05-01' - cache-control: - - no-cache - content-length: - - '383' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 28 Mar 2025 19:23:04 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-global-reads: - - '16499' - x-msedge-ref: - - 'Ref A: 16F9C2942BCD4768ADA2B139CC03A779 Ref B: CO6AA3150218035 Ref C: 2025-03-28T19:23:04Z' - 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.71.0 azsdk-python-core/1.31.0 Python/3.12.9 (Windows-11-10.0.26100-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/trisavo20/providers/Microsoft.ContainerRegistry/registries/trisavoeus","name":"trisavoeus","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Basic","tier":"Basic"},"location":"eastus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/trisavo20/providers/Microsoft.ContainerRegistry/registries/trisavouse02","name":"trisavouse02","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"eastus2","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/trisavo20/providers/Microsoft.ContainerRegistry/registries/trisavostoragetimestamp","name":"trisavostoragetimestamp","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Basic","tier":"Basic"},"location":"japaneast","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/trisavo20/providers/Microsoft.ContainerRegistry/registries/billingbrownbag","name":"billingbrownbag","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Basic","tier":"Basic"},"location":"centralus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourcegroupsamesub/providers/Microsoft.ContainerRegistry/registries/sourceregistrysamesubiguuoxtdrodljihuw4n","name":"sourceregistrysamesubiguuoxtdrodljihuw4n","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgzdo5bmqslbdj5vebvyd7kej2bomh7gkt76uvf2okpqnuvfs4xqozbcasz3q74ibta/providers/Microsoft.ContainerRegistry/registries/cliregkjcmnylxy54dq3","name":"cliregkjcmnylxy54dq3","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourcegroupsamesub/providers/Microsoft.ContainerRegistry/registries/sourceregistrysamesubbsmcegarollaibqyh3x","name":"sourceregistrysamesubbsmcegarollaibqyh3x","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","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/a/providers/Microsoft.ContainerRegistry/registries/trisavo","name":"trisavo","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"centralus","tags":{}}]}' - headers: - cache-control: - - no-cache - content-length: - - '2854' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 28 Mar 2025 19:23:05 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-global-reads: - - '16499' - x-msedge-ref: - - 'Ref A: 633E8AA023B64D1ABE5775FD5BBECC8C Ref B: MWH011020806031 Ref C: 2025-03-28T19:23:05Z' - 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 - ParameterSetName: - - -n -r --headers --scope - User-Agent: - - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.12.9 (Windows-11-10.0.26100-SP0) - 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: - api-supported-versions: - - '2019-05-01' - cache-control: - - no-cache - content-length: - - '394' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 28 Mar 2025 19:23:06 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-ms-operation-identifier: - - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=1cf15f1f-c610-4e5c-b680-970697d1bbba/westus2/f00c1b33-a4d8-4df4-9cc0-80acf8db6c5a - x-ms-ratelimit-remaining-subscription-global-writes: - - '11999' - x-ms-ratelimit-remaining-subscription-writes: - - '799' - x-msedge-ref: - - 'Ref A: 3377356FBBFE4F0892A4E066B55189FC Ref B: MWH011020808040 Ref C: 2025-03-28T19:23:05Z' - 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.71.0 azsdk-python-core/1.31.0 Python/3.12.9 (Windows-11-10.0.26100-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/trisavo20/providers/Microsoft.ContainerRegistry/registries/trisavoeus","name":"trisavoeus","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Basic","tier":"Basic"},"location":"eastus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/trisavo20/providers/Microsoft.ContainerRegistry/registries/trisavouse02","name":"trisavouse02","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"eastus2","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/trisavo20/providers/Microsoft.ContainerRegistry/registries/trisavostoragetimestamp","name":"trisavostoragetimestamp","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Basic","tier":"Basic"},"location":"japaneast","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/trisavo20/providers/Microsoft.ContainerRegistry/registries/billingbrownbag","name":"billingbrownbag","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Basic","tier":"Basic"},"location":"centralus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourcegroupsamesub/providers/Microsoft.ContainerRegistry/registries/sourceregistrysamesubiguuoxtdrodljihuw4n","name":"sourceregistrysamesubiguuoxtdrodljihuw4n","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgzdo5bmqslbdj5vebvyd7kej2bomh7gkt76uvf2okpqnuvfs4xqozbcasz3q74ibta/providers/Microsoft.ContainerRegistry/registries/cliregkjcmnylxy54dq3","name":"cliregkjcmnylxy54dq3","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourcegroupsamesub/providers/Microsoft.ContainerRegistry/registries/sourceregistrysamesubbsmcegarollaibqyh3x","name":"sourceregistrysamesubbsmcegarollaibqyh3x","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","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/a/providers/Microsoft.ContainerRegistry/registries/trisavo","name":"trisavo","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"centralus","tags":{}}]}' - headers: - cache-control: - - no-cache - content-length: - - '2854' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 28 Mar 2025 19:23:07 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-global-reads: - - '16499' - x-msedge-ref: - - 'Ref A: A100C8FA562348539102950E9BCE77A6 Ref B: CO6AA3150217027 Ref C: 2025-03-28T19:23:07Z' - 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.71.0 azsdk-python-core/1.31.0 Python/3.12.9 (Windows-11-10.0.26100-SP0) - 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":"2025-03-28T19:22:47.7109406Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2025-03-28T19:22:55.0297877+00:00","status":"disabled"}}}}' - headers: - api-supported-versions: - - '2019-05-01' - cache-control: - - no-cache - content-length: - - '665' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 28 Mar 2025 19:23:07 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-global-reads: - - '16499' - x-msedge-ref: - - 'Ref A: 1CA87ACCBDF344CDAB209467E1C8CBCB Ref B: CO6AA3150217023 Ref C: 2025-03-28T19:23:07Z' - 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: - - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.12.9 (Windows-11-10.0.26100-SP0) - 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: - api-supported-versions: - - '2019-05-01' - cache-control: - - no-cache - content-length: - - '73' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 28 Mar 2025 19:23:08 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-ms-operation-identifier: - - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=1cf15f1f-c610-4e5c-b680-970697d1bbba/southcentralus/75285c01-27c0-4981-8e78-cabda6a900de - x-ms-ratelimit-remaining-subscription-global-writes: - - '11999' - x-ms-ratelimit-remaining-subscription-writes: - - '799' - x-msedge-ref: - - 'Ref A: 292C4E3D460D440C80AF2FC4A0957318 Ref B: CO6AA3150218035 Ref C: 2025-03-28T19:23:08Z' - 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.71.0 azsdk-python-core/1.31.0 Python/3.12.9 (Windows-11-10.0.26100-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/trisavo20/providers/Microsoft.ContainerRegistry/registries/trisavoeus","name":"trisavoeus","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Basic","tier":"Basic"},"location":"eastus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/trisavo20/providers/Microsoft.ContainerRegistry/registries/trisavouse02","name":"trisavouse02","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"eastus2","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/trisavo20/providers/Microsoft.ContainerRegistry/registries/trisavostoragetimestamp","name":"trisavostoragetimestamp","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Basic","tier":"Basic"},"location":"japaneast","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/trisavo20/providers/Microsoft.ContainerRegistry/registries/billingbrownbag","name":"billingbrownbag","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Basic","tier":"Basic"},"location":"centralus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourcegroupsamesub/providers/Microsoft.ContainerRegistry/registries/sourceregistrysamesubiguuoxtdrodljihuw4n","name":"sourceregistrysamesubiguuoxtdrodljihuw4n","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgzdo5bmqslbdj5vebvyd7kej2bomh7gkt76uvf2okpqnuvfs4xqozbcasz3q74ibta/providers/Microsoft.ContainerRegistry/registries/cliregkjcmnylxy54dq3","name":"cliregkjcmnylxy54dq3","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourcegroupsamesub/providers/Microsoft.ContainerRegistry/registries/sourceregistrysamesubbsmcegarollaibqyh3x","name":"sourceregistrysamesubbsmcegarollaibqyh3x","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","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/a/providers/Microsoft.ContainerRegistry/registries/trisavo","name":"trisavo","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"centralus","tags":{}}]}' - headers: - cache-control: - - no-cache - content-length: - - '2854' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 28 Mar 2025 19:23:08 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-global-reads: - - '16499' - x-msedge-ref: - - 'Ref A: FCA3185500A74459A37E5527BD9F9941 Ref B: MWH011020809054 Ref C: 2025-03-28T19:23:08Z' - 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.71.0 azsdk-python-core/1.31.0 Python/3.12.9 (Windows-11-10.0.26100-SP0) - 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":"2025-03-28T19:22:47.7109406Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2025-03-28T19:22:55.0297877+00:00","status":"disabled"}}}}' - headers: - api-supported-versions: - - '2019-05-01' - cache-control: - - no-cache - content-length: - - '665' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 28 Mar 2025 19:23:09 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-global-reads: - - '16499' - x-msedge-ref: - - 'Ref A: 075F6A39326A4C5BA7B9EAF55BE3F8DA Ref B: MWH011020806054 Ref C: 2025-03-28T19:23:09Z' - 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: - - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.12.9 (Windows-11-10.0.26100-SP0) - 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":"af1ad132-5667-4d5e-ac0d-d30217ad8080"}' - headers: - api-supported-versions: - - '2019-05-01' - cache-control: - - no-cache - content-length: - - '45' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 28 Mar 2025 19:23:15 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-ms-operation-identifier: - - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=1cf15f1f-c610-4e5c-b680-970697d1bbba/westus2/737e9d26-16ea-4efa-af63-bb3ab3035da8 - x-ms-ratelimit-remaining-subscription-global-writes: - - '11999' - x-ms-ratelimit-remaining-subscription-writes: - - '799' - x-msedge-ref: - - 'Ref A: 385026D1011E41FE8810282C8A3F8A39 Ref B: MWH011020808054 Ref C: 2025-03-28T19:23:09Z' - 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.71.0 azsdk-python-core/1.31.0 Python/3.12.9 (Windows-11-10.0.26100-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/trisavo20/providers/Microsoft.ContainerRegistry/registries/trisavoeus","name":"trisavoeus","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Basic","tier":"Basic"},"location":"eastus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/trisavo20/providers/Microsoft.ContainerRegistry/registries/trisavouse02","name":"trisavouse02","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"eastus2","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/trisavo20/providers/Microsoft.ContainerRegistry/registries/trisavostoragetimestamp","name":"trisavostoragetimestamp","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Basic","tier":"Basic"},"location":"japaneast","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/trisavo20/providers/Microsoft.ContainerRegistry/registries/billingbrownbag","name":"billingbrownbag","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Basic","tier":"Basic"},"location":"centralus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourcegroupsamesub/providers/Microsoft.ContainerRegistry/registries/sourceregistrysamesubiguuoxtdrodljihuw4n","name":"sourceregistrysamesubiguuoxtdrodljihuw4n","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgzdo5bmqslbdj5vebvyd7kej2bomh7gkt76uvf2okpqnuvfs4xqozbcasz3q74ibta/providers/Microsoft.ContainerRegistry/registries/cliregkjcmnylxy54dq3","name":"cliregkjcmnylxy54dq3","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourcegroupsamesub/providers/Microsoft.ContainerRegistry/registries/sourceregistrysamesubbsmcegarollaibqyh3x","name":"sourceregistrysamesubbsmcegarollaibqyh3x","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","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/a/providers/Microsoft.ContainerRegistry/registries/trisavo","name":"trisavo","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"centralus","tags":{}}]}' - headers: - cache-control: - - no-cache - content-length: - - '2854' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 28 Mar 2025 19:23:15 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-global-reads: - - '16499' - x-msedge-ref: - - 'Ref A: E70F434E0B05496D96D2C8A177E7B3C2 Ref B: CO6AA3150218047 Ref C: 2025-03-28T19:23:16Z' - 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.71.0 azsdk-python-core/1.31.0 Python/3.12.9 (Windows-11-10.0.26100-SP0) - 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":"2025-03-28T19:22:47.7109406Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2025-03-28T19:22:55.0297877+00:00","status":"disabled"}}}}' - headers: - api-supported-versions: - - '2019-05-01' - cache-control: - - no-cache - content-length: - - '665' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 28 Mar 2025 19:23:15 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-global-reads: - - '16499' - x-msedge-ref: - - 'Ref A: BDDC9BF51C7F4E3789AD91AF3FC44981 Ref B: MWH011020808025 Ref C: 2025-03-28T19:23:16Z' - 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: - - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.12.9 (Windows-11-10.0.26100-SP0) - 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":"af1ad132-5667-4d5e-ac0d-d30217ad8080","timestamp":"2025-03-28T19:23:10.8320233Z","action":"ping"},"headers":{"User-Agent":"AzureContainerRegistry/1.0","key":"value","traceparent":"00-18b1f1d4cb87bb60da3be6965ad8c1a5-1f657d4f081f69e9-01","X-Forwarded-For":"true","Content-Type":"application/json; - charset=utf-8","Content-Length":"104"},"method":"POST","requestUri":"http://www.microsoft.com/","version":"1.1"},"eventResponseMessage":{"content":"Operation - timed out.","reasonPhrase":"GatewayTimeout","statusCode":"504"},"id":"af1ad132-5667-4d5e-ac0d-d30217ad8080"}]}' - headers: - api-supported-versions: - - '2019-05-01' - cache-control: - - no-cache - content-length: - - '615' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 28 Mar 2025 19:23:16 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-ms-operation-identifier: - - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=1cf15f1f-c610-4e5c-b680-970697d1bbba/southcentralus/968625bb-d8d3-4138-ac03-86f8d0b510e1 - x-ms-ratelimit-remaining-subscription-global-writes: - - '11999' - x-ms-ratelimit-remaining-subscription-writes: - - '799' - x-msedge-ref: - - 'Ref A: 7A40FFE3F51941F3BE44BAFEFC4781BF Ref B: CO6AA3150218023 Ref C: 2025-03-28T19:23:16Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - acr show-usage - Connection: - - keep-alive - ParameterSetName: - - -n -g - User-Agent: - - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.12.9 (Windows-11-10.0.26100-SP0) - 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":"2025-03-28T19:22:47.7109406Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2025-03-28T19:22:55.0297877+00:00","status":"disabled"}}}}' - headers: - api-supported-versions: - - '2019-05-01' - cache-control: - - no-cache - content-length: - - '665' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 28 Mar 2025 19:23:17 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-global-reads: - - '16499' - x-msedge-ref: - - 'Ref A: 119F16468FF64AD79248EE49800C8471 Ref B: MWH011020806054 Ref C: 2025-03-28T19:23:17Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - acr show-usage - Connection: - - keep-alive - ParameterSetName: - - -n -g - User-Agent: - - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.12.9 (Windows-11-10.0.26100-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/listUsages?api-version=2019-05-01 - response: - body: - string: '{"value":[{"name":"Size","limit":107374182400,"currentValue":0,"unit":"Bytes"},{"name":"Webhooks","limit":10,"currentValue":1,"unit":"Count"},{"name":"ScopeMaps","limit":500,"currentValue":0,"unit":"Count"},{"name":"Tokens","limit":500,"currentValue":0,"unit":"Count"}]}' - headers: - api-supported-versions: - - '2019-05-01' - cache-control: - - no-cache - content-length: - - '270' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 28 Mar 2025 19:23:18 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-ms-operation-identifier: - - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=1cf15f1f-c610-4e5c-b680-970697d1bbba/westus2/3d22901e-f6f4-4cc9-b026-8c539c564396 - x-ms-ratelimit-remaining-subscription-global-reads: - - '16499' - x-msedge-ref: - - 'Ref A: C8B81175BE1742C4A5F0DEE4CA42FF6E Ref B: MWH011020809060 Ref C: 2025-03-28T19:23:18Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - acr webhook delete - Connection: - - keep-alive - ParameterSetName: - - -n -r - User-Agent: - - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.12.9 (Windows-11-10.0.26100-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/trisavo20/providers/Microsoft.ContainerRegistry/registries/trisavoeus","name":"trisavoeus","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Basic","tier":"Basic"},"location":"eastus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/trisavo20/providers/Microsoft.ContainerRegistry/registries/trisavouse02","name":"trisavouse02","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"eastus2","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/trisavo20/providers/Microsoft.ContainerRegistry/registries/trisavostoragetimestamp","name":"trisavostoragetimestamp","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Basic","tier":"Basic"},"location":"japaneast","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/trisavo20/providers/Microsoft.ContainerRegistry/registries/billingbrownbag","name":"billingbrownbag","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Basic","tier":"Basic"},"location":"centralus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourcegroupsamesub/providers/Microsoft.ContainerRegistry/registries/sourceregistrysamesubiguuoxtdrodljihuw4n","name":"sourceregistrysamesubiguuoxtdrodljihuw4n","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgzdo5bmqslbdj5vebvyd7kej2bomh7gkt76uvf2okpqnuvfs4xqozbcasz3q74ibta/providers/Microsoft.ContainerRegistry/registries/cliregkjcmnylxy54dq3","name":"cliregkjcmnylxy54dq3","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourcegroupsamesub/providers/Microsoft.ContainerRegistry/registries/sourceregistrysamesubbsmcegarollaibqyh3x","name":"sourceregistrysamesubbsmcegarollaibqyh3x","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","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/a/providers/Microsoft.ContainerRegistry/registries/trisavo","name":"trisavo","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"centralus","tags":{}}]}' - headers: - cache-control: - - no-cache - content-length: - - '2854' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 28 Mar 2025 19:23:18 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-global-reads: - - '16499' - x-msedge-ref: - - 'Ref A: BCE9C256C5FD407F8AC3FD1DF6FE10F1 Ref B: CO6AA3150219031 Ref C: 2025-03-28T19:23:19Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - acr webhook delete - Connection: - - keep-alive - ParameterSetName: - - -n -r - User-Agent: - - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.12.9 (Windows-11-10.0.26100-SP0) - 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":"2025-03-28T19:22:47.7109406Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2025-03-28T19:22:55.0297877+00:00","status":"disabled"}}}}' - headers: - api-supported-versions: - - '2019-05-01' - cache-control: - - no-cache - content-length: - - '665' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 28 Mar 2025 19:23:19 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-global-reads: - - '16499' - x-msedge-ref: - - 'Ref A: FF1474762D1A45C08A9AD47E8B82E1E1 Ref B: CO6AA3150218009 Ref C: 2025-03-28T19:23:19Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - acr webhook delete - Connection: - - keep-alive - Content-Length: - - '0' - ParameterSetName: - - -n -r - User-Agent: - - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.12.9 (Windows-11-10.0.26100-SP0) - method: DELETE - 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: '' - headers: - api-supported-versions: - - '2019-05-01' - cache-control: - - no-cache - content-length: - - '0' - date: - - Fri, 28 Mar 2025 19:23:19 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-ms-operation-identifier: - - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=1cf15f1f-c610-4e5c-b680-970697d1bbba/westus2/a7c343aa-1412-424b-961d-e6e26be1e43c - x-ms-ratelimit-remaining-subscription-deletes: - - '799' - x-ms-ratelimit-remaining-subscription-global-deletes: - - '11999' - x-msedge-ref: - - 'Ref A: 36A21390399B40CBAFD04A3BDE83A38B Ref B: MWH011020809034 Ref C: 2025-03-28T19:23:19Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - acr delete - Connection: - - keep-alive - Content-Length: - - '0' - ParameterSetName: - - -n -g -y - User-Agent: - - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.12.9 (Windows-11-10.0.26100-SP0) - method: DELETE - 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: '' - headers: - api-supported-versions: - - '2019-05-01' - cache-control: - - no-cache - content-length: - - '0' - date: - - Fri, 28 Mar 2025 19:23:27 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-ms-operation-identifier: - - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=1cf15f1f-c610-4e5c-b680-970697d1bbba/westus2/5bc0706b-64e0-4ada-9a72-76a9818767f4 - x-ms-ratelimit-remaining-subscription-deletes: - - '800' - x-ms-ratelimit-remaining-subscription-global-deletes: - - '12000' - x-msedge-ref: - - 'Ref A: D128FFF9B9634FE79ACD61300C14B673 Ref B: MWH011020807040 Ref C: 2025-03-28T19:23:20Z' - 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_with_managed_registry.yaml b/src/azure-cli/azure/cli/command_modules/acr/tests/hybrid_2020_09_01/recordings/test_acr_create_with_managed_registry.yaml deleted file mode 100644 index 28e3f99c568..00000000000 --- a/src/azure-cli/azure/cli/command_modules/acr/tests/hybrid_2020_09_01/recordings/test_acr_create_with_managed_registry.yaml +++ /dev/null @@ -1,1267 +0,0 @@ -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 - ParameterSetName: - - -n -g -l --sku - User-Agent: - - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.12.9 (Windows-11-10.0.26100-SP0) - 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":"2025-03-28T19:24:19.7485864Z","provisioningState":"Succeeded","adminUserEnabled":false,"networkRuleSet":{"defaultAction":"Allow","virtualNetworkRules":[],"ipRules":[]},"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2025-03-28T19:24:27.0892036+00:00","status":"disabled"}}}}' - headers: - api-supported-versions: - - '2019-05-01' - cache-control: - - no-cache - content-length: - - '744' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 28 Mar 2025 19:24:26 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-ms-operation-identifier: - - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=1cf15f1f-c610-4e5c-b680-970697d1bbba/westus2/153b5781-923c-4dae-bf6d-7824af705cbe - x-ms-ratelimit-remaining-subscription-global-writes: - - '12000' - x-ms-ratelimit-remaining-subscription-writes: - - '800' - x-msedge-ref: - - 'Ref A: BF6C20882129466DB8913317A7B57610 Ref B: MWH011020808025 Ref C: 2025-03-28T19:24:17Z' - status: - code: 200 - message: OK -- request: - body: '{"name": "clireg000002", "type": "Microsoft.ContainerRegistry/registries"}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - acr check-name - Connection: - - keep-alive - Content-Length: - - '74' - Content-Type: - - application/json - ParameterSetName: - - -n - User-Agent: - - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.12.9 (Windows-11-10.0.26100-SP0) - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerRegistry/checkNameAvailability?api-version=2019-05-01 - response: - body: - string: '{"nameAvailable":false,"reason":"AlreadyExists","message":"The registry - clireg000002 is already in use."}' - headers: - cache-control: - - no-cache - content-length: - - '105' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 28 Mar 2025 19:24:28 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-ms-operation-identifier: - - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=1cf15f1f-c610-4e5c-b680-970697d1bbba/westus2/f68ea0a2-ffc8-4620-9704-08dcc35a4dd6 - x-ms-ratelimit-remaining-subscription-global-reads: - - '16499' - x-msedge-ref: - - 'Ref A: A01AA443B047469C85E056001BA899AF Ref B: MWH011020808023 Ref C: 2025-03-28T19:24:27Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - acr list - Connection: - - keep-alive - ParameterSetName: - - -g - User-Agent: - - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.12.9 (Windows-11-10.0.26100-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries?api-version=2019-05-01 - response: - body: - string: '{"value":[{"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":"2025-03-28T19:24:19.7485864Z","provisioningState":"Succeeded","adminUserEnabled":false,"networkRuleSet":{"defaultAction":"Allow","virtualNetworkRules":[],"ipRules":[]},"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2025-03-28T19:24:27.0892036+00:00","status":"disabled"}}}}]}' - headers: - api-supported-versions: - - '2019-05-01' - cache-control: - - no-cache - content-length: - - '756' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 28 Mar 2025 19:24:30 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-ms-original-request-ids: - - '' - x-ms-ratelimit-remaining-subscription-global-reads: - - '16499' - x-msedge-ref: - - 'Ref A: 1B8B5287A4E849E5A0A6CA20C3A4E47D Ref B: MWH011020806025 Ref C: 2025-03-28T19:24:29Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - acr show - Connection: - - keep-alive - ParameterSetName: - - -n -g - User-Agent: - - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.12.9 (Windows-11-10.0.26100-SP0) - 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":"2025-03-28T19:24:19.7485864Z","provisioningState":"Succeeded","adminUserEnabled":false,"networkRuleSet":{"defaultAction":"Allow","virtualNetworkRules":[],"ipRules":[]},"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2025-03-28T19:24:27.0892036+00:00","status":"disabled"}}}}' - headers: - api-supported-versions: - - '2019-05-01' - cache-control: - - no-cache - content-length: - - '744' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 28 Mar 2025 19:24:31 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-global-reads: - - '16499' - x-msedge-ref: - - 'Ref A: 13DC3EB190D143B580EA36F18CE0A95A Ref B: MWH011020806052 Ref C: 2025-03-28T19:24:31Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - acr show-usage - Connection: - - keep-alive - ParameterSetName: - - -n -g - User-Agent: - - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.12.9 (Windows-11-10.0.26100-SP0) - 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":"2025-03-28T19:24:19.7485864Z","provisioningState":"Succeeded","adminUserEnabled":false,"networkRuleSet":{"defaultAction":"Allow","virtualNetworkRules":[],"ipRules":[]},"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2025-03-28T19:24:27.0892036+00:00","status":"disabled"}}}}' - headers: - api-supported-versions: - - '2019-05-01' - cache-control: - - no-cache - content-length: - - '744' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 28 Mar 2025 19:24:33 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-global-reads: - - '16499' - x-msedge-ref: - - 'Ref A: 96D2537BEC5A4485B5D33999F519392D Ref B: MWH011020809040 Ref C: 2025-03-28T19:24:32Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - acr show-usage - Connection: - - keep-alive - ParameterSetName: - - -n -g - User-Agent: - - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.12.9 (Windows-11-10.0.26100-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/listUsages?api-version=2019-05-01 - response: - body: - string: '{"value":[{"name":"Size","limit":536870912000,"currentValue":0,"unit":"Bytes"},{"name":"Webhooks","limit":500,"currentValue":0,"unit":"Count"},{"name":"Geo-replications","limit":-1,"currentValue":0,"unit":"Count"},{"name":"IPRules","limit":100,"currentValue":0,"unit":"Count"},{"name":"VNetRules","limit":100,"currentValue":0,"unit":"Count"},{"name":"PrivateEndpointConnections","limit":200,"currentValue":0,"unit":"Count"},{"name":"ScopeMaps","limit":50000,"currentValue":0,"unit":"Count"},{"name":"Tokens","limit":50000,"currentValue":0,"unit":"Count"}]}' - headers: - api-supported-versions: - - '2019-05-01' - cache-control: - - no-cache - content-length: - - '556' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 28 Mar 2025 19:24:34 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-ms-operation-identifier: - - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=1cf15f1f-c610-4e5c-b680-970697d1bbba/westus2/73d10ea5-69b9-4657-a713-a90c752e2117 - x-ms-ratelimit-remaining-subscription-global-reads: - - '16499' - x-msedge-ref: - - 'Ref A: 418FF8C5FA8744C6B5BAB993913D0B92 Ref B: MWH011020806029 Ref C: 2025-03-28T19:24:33Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - acr update - Connection: - - keep-alive - ParameterSetName: - - -n -g --tags --admin-enabled - User-Agent: - - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.12.9 (Windows-11-10.0.26100-SP0) - 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":"2025-03-28T19:24:19.7485864Z","provisioningState":"Succeeded","adminUserEnabled":false,"networkRuleSet":{"defaultAction":"Allow","virtualNetworkRules":[],"ipRules":[]},"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2025-03-28T19:24:27.0892036+00:00","status":"disabled"}}}}' - headers: - api-supported-versions: - - '2019-05-01' - cache-control: - - no-cache - content-length: - - '744' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 28 Mar 2025 19:24:34 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-global-reads: - - '16499' - x-msedge-ref: - - 'Ref A: 0BB48443CBCF49D3AA95AB4FAA570DAD Ref B: CO6AA3150217029 Ref C: 2025-03-28T19:24:34Z' - status: - code: 200 - message: OK -- request: - body: '{"tags": {"foo": "bar", "cat": ""}, "properties": {"adminUserEnabled": - true}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - acr update - Connection: - - keep-alive - Content-Length: - - '77' - Content-Type: - - application/json - ParameterSetName: - - -n -g --tags --admin-enabled - User-Agent: - - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.12.9 (Windows-11-10.0.26100-SP0) - method: PATCH - 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":{"foo":"bar","cat":""},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2025-03-28T19:24:19.7485864Z","provisioningState":"Succeeded","adminUserEnabled":true,"networkRuleSet":{"defaultAction":"Allow","virtualNetworkRules":[],"ipRules":[]},"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2025-03-28T19:24:27.0892036+00:00","status":"disabled"}}}}' - headers: - api-supported-versions: - - '2019-05-01' - cache-control: - - no-cache - content-length: - - '763' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 28 Mar 2025 19:24:36 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-ms-operation-identifier: - - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=1cf15f1f-c610-4e5c-b680-970697d1bbba/westus2/967e13d0-f711-4b47-a617-ddaea8b0f484 - x-ms-ratelimit-remaining-subscription-global-writes: - - '11999' - x-ms-ratelimit-remaining-subscription-writes: - - '799' - x-msedge-ref: - - 'Ref A: A65CC62067334E6987BD70A4B4A2F83E Ref B: MWH011020806023 Ref C: 2025-03-28T19:24:35Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - acr config retention update - Connection: - - keep-alive - ParameterSetName: - - -r --status --days --type - User-Agent: - - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.12.9 (Windows-11-10.0.26100-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/trisavo20/providers/Microsoft.ContainerRegistry/registries/trisavoeus","name":"trisavoeus","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Basic","tier":"Basic"},"location":"eastus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/trisavo20/providers/Microsoft.ContainerRegistry/registries/trisavouse02","name":"trisavouse02","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"eastus2","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/trisavo20/providers/Microsoft.ContainerRegistry/registries/trisavostoragetimestamp","name":"trisavostoragetimestamp","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Basic","tier":"Basic"},"location":"japaneast","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/trisavo20/providers/Microsoft.ContainerRegistry/registries/billingbrownbag","name":"billingbrownbag","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Basic","tier":"Basic"},"location":"centralus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourcegroupsamesub/providers/Microsoft.ContainerRegistry/registries/sourceregistrysamesubiguuoxtdrodljihuw4n","name":"sourceregistrysamesubiguuoxtdrodljihuw4n","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgzdo5bmqslbdj5vebvyd7kej2bomh7gkt76uvf2okpqnuvfs4xqozbcasz3q74ibta/providers/Microsoft.ContainerRegistry/registries/cliregkjcmnylxy54dq3","name":"cliregkjcmnylxy54dq3","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourcegroupsamesub/providers/Microsoft.ContainerRegistry/registries/sourceregistrysamesubbsmcegarollaibqyh3x","name":"sourceregistrysamesubbsmcegarollaibqyh3x","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","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":"westus","tags":{"foo":"bar","cat":""}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/a/providers/Microsoft.ContainerRegistry/registries/trisavo","name":"trisavo","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"centralus","tags":{}}]}' - headers: - cache-control: - - no-cache - content-length: - - '2872' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 28 Mar 2025 19:24:37 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-global-reads: - - '16499' - x-msedge-ref: - - 'Ref A: 4968EBB27C4146BE943D55EAEF8CF68E Ref B: CO6AA3150220029 Ref C: 2025-03-28T19:24:36Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - acr config retention update - Connection: - - keep-alive - ParameterSetName: - - -r --status --days --type - User-Agent: - - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.12.9 (Windows-11-10.0.26100-SP0) - 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":{"foo":"bar","cat":""},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2025-03-28T19:24:19.7485864Z","provisioningState":"Succeeded","adminUserEnabled":true,"networkRuleSet":{"defaultAction":"Allow","virtualNetworkRules":[],"ipRules":[]},"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2025-03-28T19:24:27.0892036+00:00","status":"disabled"}}}}' - headers: - api-supported-versions: - - '2019-05-01' - cache-control: - - no-cache - content-length: - - '763' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 28 Mar 2025 19:24:38 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-global-reads: - - '16499' - x-msedge-ref: - - 'Ref A: 27EAA3913AD54484B2128CAE4B8C4E36 Ref B: CO6AA3150217027 Ref C: 2025-03-28T19:24:37Z' - status: - code: 200 - message: OK -- request: - body: '{"properties": {"policies": {"quarantinePolicy": {"status": "disabled"}, - "trustPolicy": {"type": "Notary", "status": "disabled"}, "retentionPolicy": - {"days": 30, "status": "enabled"}}}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - acr config retention update - Connection: - - keep-alive - Content-Length: - - '185' - Content-Type: - - application/json - ParameterSetName: - - -r --status --days --type - User-Agent: - - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.12.9 (Windows-11-10.0.26100-SP0) - method: PATCH - 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":{"foo":"bar","cat":""},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2025-03-28T19:24:19.7485864Z","provisioningState":"Succeeded","adminUserEnabled":true,"networkRuleSet":{"defaultAction":"Allow","virtualNetworkRules":[],"ipRules":[]},"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":30,"lastUpdatedTime":"2025-03-28T19:24:40.418393+00:00","status":"enabled"}}}}' - headers: - api-supported-versions: - - '2019-05-01' - cache-control: - - no-cache - content-length: - - '762' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 28 Mar 2025 19:24:40 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-ms-operation-identifier: - - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=1cf15f1f-c610-4e5c-b680-970697d1bbba/westus2/aa3d6f1c-a284-459c-955c-9f6b016dfaab - x-ms-ratelimit-remaining-subscription-global-writes: - - '11999' - x-ms-ratelimit-remaining-subscription-writes: - - '799' - x-msedge-ref: - - 'Ref A: CBC31216D1784781B561E3CF8E51F6EE Ref B: MWH011020807040 Ref C: 2025-03-28T19:24:38Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - acr config retention show - Connection: - - keep-alive - ParameterSetName: - - -r - User-Agent: - - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.12.9 (Windows-11-10.0.26100-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/trisavo20/providers/Microsoft.ContainerRegistry/registries/trisavoeus","name":"trisavoeus","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Basic","tier":"Basic"},"location":"eastus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/trisavo20/providers/Microsoft.ContainerRegistry/registries/trisavouse02","name":"trisavouse02","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"eastus2","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/trisavo20/providers/Microsoft.ContainerRegistry/registries/trisavostoragetimestamp","name":"trisavostoragetimestamp","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Basic","tier":"Basic"},"location":"japaneast","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/trisavo20/providers/Microsoft.ContainerRegistry/registries/billingbrownbag","name":"billingbrownbag","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Basic","tier":"Basic"},"location":"centralus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourcegroupsamesub/providers/Microsoft.ContainerRegistry/registries/sourceregistrysamesubiguuoxtdrodljihuw4n","name":"sourceregistrysamesubiguuoxtdrodljihuw4n","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgzdo5bmqslbdj5vebvyd7kej2bomh7gkt76uvf2okpqnuvfs4xqozbcasz3q74ibta/providers/Microsoft.ContainerRegistry/registries/cliregkjcmnylxy54dq3","name":"cliregkjcmnylxy54dq3","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourcegroupsamesub/providers/Microsoft.ContainerRegistry/registries/sourceregistrysamesubbsmcegarollaibqyh3x","name":"sourceregistrysamesubbsmcegarollaibqyh3x","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","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":"westus","tags":{"foo":"bar","cat":""}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/a/providers/Microsoft.ContainerRegistry/registries/trisavo","name":"trisavo","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"centralus","tags":{}}]}' - headers: - cache-control: - - no-cache - content-length: - - '2872' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 28 Mar 2025 19:24:41 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-global-reads: - - '16499' - x-msedge-ref: - - 'Ref A: B72DA5420C9C49AC955C2D49C86CB19E Ref B: CO6AA3150220029 Ref C: 2025-03-28T19:24:40Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - acr config retention show - Connection: - - keep-alive - ParameterSetName: - - -r - User-Agent: - - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.12.9 (Windows-11-10.0.26100-SP0) - 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":{"foo":"bar","cat":""},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2025-03-28T19:24:19.7485864Z","provisioningState":"Succeeded","adminUserEnabled":true,"networkRuleSet":{"defaultAction":"Allow","virtualNetworkRules":[],"ipRules":[]},"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":30,"lastUpdatedTime":"2025-03-28T19:24:40.418393+00:00","status":"enabled"}}}}' - headers: - api-supported-versions: - - '2019-05-01' - cache-control: - - no-cache - content-length: - - '762' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 28 Mar 2025 19:24:42 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-global-reads: - - '16499' - x-msedge-ref: - - 'Ref A: 05B93350DF5240CE8D4BAE4D802B898F Ref B: MWH011020807062 Ref C: 2025-03-28T19:24:41Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - acr config content-trust update - Connection: - - keep-alive - ParameterSetName: - - -n --status - User-Agent: - - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.12.9 (Windows-11-10.0.26100-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/trisavo20/providers/Microsoft.ContainerRegistry/registries/trisavoeus","name":"trisavoeus","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Basic","tier":"Basic"},"location":"eastus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/trisavo20/providers/Microsoft.ContainerRegistry/registries/trisavouse02","name":"trisavouse02","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"eastus2","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/trisavo20/providers/Microsoft.ContainerRegistry/registries/trisavostoragetimestamp","name":"trisavostoragetimestamp","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Basic","tier":"Basic"},"location":"japaneast","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/trisavo20/providers/Microsoft.ContainerRegistry/registries/billingbrownbag","name":"billingbrownbag","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Basic","tier":"Basic"},"location":"centralus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourcegroupsamesub/providers/Microsoft.ContainerRegistry/registries/sourceregistrysamesubiguuoxtdrodljihuw4n","name":"sourceregistrysamesubiguuoxtdrodljihuw4n","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgzdo5bmqslbdj5vebvyd7kej2bomh7gkt76uvf2okpqnuvfs4xqozbcasz3q74ibta/providers/Microsoft.ContainerRegistry/registries/cliregkjcmnylxy54dq3","name":"cliregkjcmnylxy54dq3","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourcegroupsamesub/providers/Microsoft.ContainerRegistry/registries/sourceregistrysamesubbsmcegarollaibqyh3x","name":"sourceregistrysamesubbsmcegarollaibqyh3x","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","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":"westus","tags":{"foo":"bar","cat":""}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/a/providers/Microsoft.ContainerRegistry/registries/trisavo","name":"trisavo","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"centralus","tags":{}}]}' - headers: - cache-control: - - no-cache - content-length: - - '2872' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 28 Mar 2025 19:24:43 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-global-reads: - - '16499' - x-msedge-ref: - - 'Ref A: 2D2841BC47D1492C83C6E7A832D9D087 Ref B: CO6AA3150220051 Ref C: 2025-03-28T19:24:42Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - acr config content-trust update - Connection: - - keep-alive - ParameterSetName: - - -n --status - User-Agent: - - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.12.9 (Windows-11-10.0.26100-SP0) - 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":{"foo":"bar","cat":""},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2025-03-28T19:24:19.7485864Z","provisioningState":"Succeeded","adminUserEnabled":true,"networkRuleSet":{"defaultAction":"Allow","virtualNetworkRules":[],"ipRules":[]},"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":30,"lastUpdatedTime":"2025-03-28T19:24:40.418393+00:00","status":"enabled"}}}}' - headers: - api-supported-versions: - - '2019-05-01' - cache-control: - - no-cache - content-length: - - '762' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 28 Mar 2025 19:24:47 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-global-reads: - - '16499' - x-msedge-ref: - - 'Ref A: 1A02D8AD068143408700D6E149963691 Ref B: CO6AA3150218035 Ref C: 2025-03-28T19:24:46Z' - status: - code: 200 - message: OK -- request: - body: '{"properties": {"policies": {"quarantinePolicy": {"status": "disabled"}, - "trustPolicy": {"type": "Notary", "status": "enabled"}, "retentionPolicy": {"days": - 30, "status": "enabled"}}}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - acr config content-trust update - Connection: - - keep-alive - Content-Length: - - '184' - Content-Type: - - application/json - ParameterSetName: - - -n --status - User-Agent: - - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.12.9 (Windows-11-10.0.26100-SP0) - method: PATCH - 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":{"foo":"bar","cat":""},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2025-03-28T19:24:19.7485864Z","provisioningState":"Succeeded","adminUserEnabled":true,"networkRuleSet":{"defaultAction":"Allow","virtualNetworkRules":[],"ipRules":[]},"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"enabled"},"retentionPolicy":{"days":30,"lastUpdatedTime":"2025-03-28T19:24:48.8580773+00:00","status":"enabled"}}}}' - headers: - api-supported-versions: - - '2019-05-01' - cache-control: - - no-cache - content-length: - - '762' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 28 Mar 2025 19:24:48 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-ms-operation-identifier: - - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=1cf15f1f-c610-4e5c-b680-970697d1bbba/westus2/9f492a6a-c5b6-411e-b775-91e814dc54b0 - x-ms-ratelimit-remaining-subscription-global-writes: - - '11999' - x-ms-ratelimit-remaining-subscription-writes: - - '799' - x-msedge-ref: - - 'Ref A: 6F06BC1584614EF5A136413C08DA045E Ref B: CO6AA3150217037 Ref C: 2025-03-28T19:24:47Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - acr config content-trust show - Connection: - - keep-alive - ParameterSetName: - - -n - User-Agent: - - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.12.9 (Windows-11-10.0.26100-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/trisavo20/providers/Microsoft.ContainerRegistry/registries/trisavoeus","name":"trisavoeus","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Basic","tier":"Basic"},"location":"eastus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/trisavo20/providers/Microsoft.ContainerRegistry/registries/trisavouse02","name":"trisavouse02","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"eastus2","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/trisavo20/providers/Microsoft.ContainerRegistry/registries/trisavostoragetimestamp","name":"trisavostoragetimestamp","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Basic","tier":"Basic"},"location":"japaneast","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/trisavo20/providers/Microsoft.ContainerRegistry/registries/billingbrownbag","name":"billingbrownbag","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Basic","tier":"Basic"},"location":"centralus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourcegroupsamesub/providers/Microsoft.ContainerRegistry/registries/sourceregistrysamesubiguuoxtdrodljihuw4n","name":"sourceregistrysamesubiguuoxtdrodljihuw4n","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgzdo5bmqslbdj5vebvyd7kej2bomh7gkt76uvf2okpqnuvfs4xqozbcasz3q74ibta/providers/Microsoft.ContainerRegistry/registries/cliregkjcmnylxy54dq3","name":"cliregkjcmnylxy54dq3","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourcegroupsamesub/providers/Microsoft.ContainerRegistry/registries/sourceregistrysamesubbsmcegarollaibqyh3x","name":"sourceregistrysamesubbsmcegarollaibqyh3x","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","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":"westus","tags":{"foo":"bar","cat":""}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/a/providers/Microsoft.ContainerRegistry/registries/trisavo","name":"trisavo","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"centralus","tags":{}}]}' - headers: - cache-control: - - no-cache - content-length: - - '2872' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 28 Mar 2025 19:24:49 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-global-reads: - - '16499' - x-msedge-ref: - - 'Ref A: 11372EE67BAD488D9DA53AFAE572800F Ref B: CO6AA3150219025 Ref C: 2025-03-28T19:24:49Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - acr config content-trust show - Connection: - - keep-alive - ParameterSetName: - - -n - User-Agent: - - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.12.9 (Windows-11-10.0.26100-SP0) - 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":{"foo":"bar","cat":""},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2025-03-28T19:24:19.7485864Z","provisioningState":"Succeeded","adminUserEnabled":true,"networkRuleSet":{"defaultAction":"Allow","virtualNetworkRules":[],"ipRules":[]},"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"enabled"},"retentionPolicy":{"days":30,"lastUpdatedTime":"2025-03-28T19:24:48.8580773+00:00","status":"enabled"}}}}' - headers: - api-supported-versions: - - '2019-05-01' - cache-control: - - no-cache - content-length: - - '762' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 28 Mar 2025 19:24:50 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-global-reads: - - '16499' - x-msedge-ref: - - 'Ref A: E9422001121A4430ABB18194E89B41FC Ref B: CO6AA3150219009 Ref C: 2025-03-28T19:24:49Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - acr credential show - Connection: - - keep-alive - ParameterSetName: - - -n -g - User-Agent: - - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.12.9 (Windows-11-10.0.26100-SP0) - 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":{"foo":"bar","cat":""},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2025-03-28T19:24:19.7485864Z","provisioningState":"Succeeded","adminUserEnabled":true,"networkRuleSet":{"defaultAction":"Allow","virtualNetworkRules":[],"ipRules":[]},"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"enabled"},"retentionPolicy":{"days":30,"lastUpdatedTime":"2025-03-28T19:24:48.8580773+00:00","status":"enabled"}}}}' - headers: - api-supported-versions: - - '2019-05-01' - cache-control: - - no-cache - content-length: - - '762' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 28 Mar 2025 19:24:51 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-global-reads: - - '16499' - x-msedge-ref: - - 'Ref A: 9F6D170933AF4231B55E6DB18DDEF1A0 Ref B: CO6AA3150219017 Ref C: 2025-03-28T19:24:50Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - acr credential show - Connection: - - keep-alive - Content-Length: - - '0' - ParameterSetName: - - -n -g - User-Agent: - - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.12.9 (Windows-11-10.0.26100-SP0) - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/listCredentials?api-version=2019-05-01 - response: - body: - string: '{"username":"clireg000002","passwords":[{"name":"password","value":"***"},{"name":"password2","value":"****"}]}' - headers: - api-supported-versions: - - '2019-05-01' - cache-control: - - no-cache - content-length: - - '208' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 28 Mar 2025 19:24:52 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-ms-operation-identifier: - - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=1cf15f1f-c610-4e5c-b680-970697d1bbba/westus2/1233f266-8ecd-49d7-9341-cf8be603c4d7 - x-ms-ratelimit-remaining-subscription-global-writes: - - '11999' - x-ms-ratelimit-remaining-subscription-writes: - - '799' - x-msedge-ref: - - 'Ref A: A4B780CC401A4F74B3D62582FED96C42 Ref B: CO6AA3150219019 Ref C: 2025-03-28T19:24:51Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - acr credential renew - Connection: - - keep-alive - ParameterSetName: - - -n -g --password-name - User-Agent: - - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.12.9 (Windows-11-10.0.26100-SP0) - 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":{"foo":"bar","cat":""},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2025-03-28T19:24:19.7485864Z","provisioningState":"Succeeded","adminUserEnabled":true,"networkRuleSet":{"defaultAction":"Allow","virtualNetworkRules":[],"ipRules":[]},"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"enabled"},"retentionPolicy":{"days":30,"lastUpdatedTime":"2025-03-28T19:24:48.8580773+00:00","status":"enabled"}}}}' - headers: - api-supported-versions: - - '2019-05-01' - cache-control: - - no-cache - content-length: - - '762' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 28 Mar 2025 19:24:52 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-global-reads: - - '16499' - x-msedge-ref: - - 'Ref A: DBE572A7AED54862B062225BBA51CBD5 Ref B: CO6AA3150217017 Ref C: 2025-03-28T19:24:53Z' - status: - code: 200 - message: OK -- request: - body: '{"name": "password"}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - acr credential renew - Connection: - - keep-alive - Content-Length: - - '20' - Content-Type: - - application/json - ParameterSetName: - - -n -g --password-name - User-Agent: - - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.12.9 (Windows-11-10.0.26100-SP0) - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/regenerateCredential?api-version=2019-05-01 - response: - body: - string: '{"username":"clireg000002","passwords":[{"name":"password","value":"***"},{"name":"password2","value":"****"}]}' - headers: - api-supported-versions: - - '2019-05-01' - cache-control: - - no-cache - content-length: - - '208' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 28 Mar 2025 19:24:54 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-ms-operation-identifier: - - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=1cf15f1f-c610-4e5c-b680-970697d1bbba/westus2/ae5d0881-af47-438d-b7a2-3c07045f2c14 - x-ms-ratelimit-remaining-subscription-global-writes: - - '11999' - x-ms-ratelimit-remaining-subscription-writes: - - '799' - x-msedge-ref: - - 'Ref A: D58D482CD60D4945AF0C69102205B656 Ref B: CO6AA3150219033 Ref C: 2025-03-28T19:24:53Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - acr credential renew - Connection: - - keep-alive - ParameterSetName: - - -n -g --password-name - User-Agent: - - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.12.9 (Windows-11-10.0.26100-SP0) - 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":{"foo":"bar","cat":""},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2025-03-28T19:24:19.7485864Z","provisioningState":"Succeeded","adminUserEnabled":true,"networkRuleSet":{"defaultAction":"Allow","virtualNetworkRules":[],"ipRules":[]},"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"enabled"},"retentionPolicy":{"days":30,"lastUpdatedTime":"2025-03-28T19:24:48.8580773+00:00","status":"enabled"}}}}' - headers: - api-supported-versions: - - '2019-05-01' - cache-control: - - no-cache - content-length: - - '762' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 28 Mar 2025 19:24:54 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-global-reads: - - '16499' - x-msedge-ref: - - 'Ref A: B6558D55B8A8439398A31D95DDED1730 Ref B: CO6AA3150217029 Ref C: 2025-03-28T19:24:54Z' - status: - code: 200 - message: OK -- request: - body: '{"name": "password2"}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - acr credential renew - Connection: - - keep-alive - Content-Length: - - '21' - Content-Type: - - application/json - ParameterSetName: - - -n -g --password-name - User-Agent: - - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.12.9 (Windows-11-10.0.26100-SP0) - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/regenerateCredential?api-version=2019-05-01 - response: - body: - string: '{"username":"clireg000002","passwords":[{"name":"password","value":"***"},{"name":"password2","value":"****"}]}' - headers: - api-supported-versions: - - '2019-05-01' - cache-control: - - no-cache - content-length: - - '208' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 28 Mar 2025 19:24:55 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-ms-operation-identifier: - - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=1cf15f1f-c610-4e5c-b680-970697d1bbba/westus2/48e84314-1205-4345-99fe-5ae348072d42 - x-ms-ratelimit-remaining-subscription-global-writes: - - '11999' - x-ms-ratelimit-remaining-subscription-writes: - - '799' - x-msedge-ref: - - 'Ref A: C97AE68286604E38BDD5953DC20A0FC6 Ref B: CO6AA3150219027 Ref C: 2025-03-28T19:24:55Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - acr delete - Connection: - - keep-alive - Content-Length: - - '0' - ParameterSetName: - - -n -g -y - User-Agent: - - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.12.9 (Windows-11-10.0.26100-SP0) - method: DELETE - 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: '' - headers: - api-supported-versions: - - '2019-05-01' - cache-control: - - no-cache - content-length: - - '0' - date: - - Fri, 28 Mar 2025 19:25:02 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-ms-operation-identifier: - - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=1cf15f1f-c610-4e5c-b680-970697d1bbba/westus2/55b812aa-cee1-402e-9032-89aa39c51f2f - x-ms-ratelimit-remaining-subscription-deletes: - - '800' - x-ms-ratelimit-remaining-subscription-global-deletes: - - '12000' - x-msedge-ref: - - 'Ref A: 20A23615A06F40348A4F800C8B49161E Ref B: CO6AA3150220023 Ref C: 2025-03-28T19:24:55Z' - 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_encryption_with_cmk.yaml b/src/azure-cli/azure/cli/command_modules/acr/tests/hybrid_2020_09_01/recordings/test_acr_encryption_with_cmk.yaml deleted file mode 100644 index 083b64fdaa0..00000000000 --- a/src/azure-cli/azure/cli/command_modules/acr/tests/hybrid_2020_09_01/recordings/test_acr_encryption_with_cmk.yaml +++ /dev/null @@ -1,270 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - keyvault update - Connection: - - keep-alive - ParameterSetName: - - --name --enable-soft-delete --enable-purge-protection - User-Agent: - - AZURECLI/2.23.0 azsdk-python-azure-mgmt-keyvault/9.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/resources?$filter=resourceType%20eq%20%27Microsoft.KeyVault%2Fvaults%27&api-version=2015-11-01 - response: - body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.KeyVault/vaults/clitest000002","name":"clitest000002","type":"Microsoft.KeyVault/vaults","location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgwk32nff6akdfqutio4o6tl7dvxp7asvxyjwp3spohwf2axreq27lvcq3womckgvq6/providers/Microsoft.KeyVault/vaults/clitesteemfsd3ey55ndsz45","name":"clitesteemfsd3ey55ndsz45","type":"Microsoft.KeyVault/vaults","location":"westus","tags":{}}]}' - headers: - cache-control: - - no-cache - content-length: - - '635' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 09:28:08 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - keyvault update - Connection: - - keep-alive - ParameterSetName: - - --name --enable-soft-delete --enable-purge-protection - User-Agent: - - AZURECLI/2.23.0 azsdk-python-azure-mgmt-keyvault/9.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.KeyVault/vaults/clitest000002?api-version=2016-10-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.KeyVault/vaults/clitest000002","name":"clitest000002","type":"Microsoft.KeyVault/vaults","location":"westus","tags":{},"properties":{"sku":{"family":"A","name":"standard"},"tenantId":"657a2bb7-9a58-4be7-87f3-643bb3b7cbb5","accessPolicies":[{"tenantId":"657a2bb7-9a58-4be7-87f3-643bb3b7cbb5","objectId":"a83f01a1-34f4-43fc-a943-6984c2bd80ca","permissions":{"keys":["get","create","delete","list","update","import","backup","restore","recover"],"secrets":["get","list","set","delete","backup","restore","recover"],"certificates":["get","list","delete","create","import","update","managecontacts","getissuers","listissuers","setissuers","deleteissuers","manageissuers","recover"],"storage":["get","list","delete","set","update","regeneratekey","setsas","listsas","getsas","deletesas"]}}],"enabledForDeployment":false,"vaultUri":"https://clitest000002.vault.azure.net/","provisioningState":"RegisteringDns"}}' - headers: - cache-control: - - no-cache - content-length: - - '1107' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 09:28:08 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-IIS/10.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-aspnet-version: - - 4.0.30319 - x-content-type-options: - - nosniff - x-ms-keyvault-service-version: - - 1.1.338.0 - x-powered-by: - - ASP.NET - status: - code: 200 - message: OK -- request: - body: '{"location": "westus", "properties": {"tenantId": "657a2bb7-9a58-4be7-87f3-643bb3b7cbb5", - "sku": {"family": "A", "name": "standard"}, "accessPolicies": [{"tenantId": - "657a2bb7-9a58-4be7-87f3-643bb3b7cbb5", "objectId": "a83f01a1-34f4-43fc-a943-6984c2bd80ca", - "permissions": {"keys": ["get", "create", "delete", "list", "update", "import", - "backup", "restore", "recover"], "secrets": ["get", "list", "set", "delete", - "backup", "restore", "recover"], "certificates": ["get", "list", "delete", "create", - "import", "update", "managecontacts", "getissuers", "listissuers", "setissuers", - "deleteissuers", "manageissuers", "recover"], "storage": ["get", "list", "delete", - "set", "update", "regeneratekey", "setsas", "listsas", "getsas", "deletesas"]}}], - "vaultUri": "https://clitest000002.vault.azure.net/", "enabledForDeployment": - false, "enableSoftDelete": true, "enablePurgeProtection": true}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - keyvault update - Connection: - - keep-alive - Content-Length: - - '899' - Content-Type: - - application/json - ParameterSetName: - - --name --enable-soft-delete --enable-purge-protection - User-Agent: - - AZURECLI/2.23.0 azsdk-python-azure-mgmt-keyvault/9.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.KeyVault/vaults/clitest000002?api-version=2016-10-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.KeyVault/vaults/clitest000002","name":"clitest000002","type":"Microsoft.KeyVault/vaults","location":"westus","tags":{},"properties":{"sku":{"family":"A","name":"standard"},"tenantId":"657a2bb7-9a58-4be7-87f3-643bb3b7cbb5","accessPolicies":[{"tenantId":"657a2bb7-9a58-4be7-87f3-643bb3b7cbb5","objectId":"a83f01a1-34f4-43fc-a943-6984c2bd80ca","permissions":{"keys":["get","create","delete","list","update","import","backup","restore","recover"],"secrets":["get","list","set","delete","backup","restore","recover"],"certificates":["get","list","delete","create","import","update","managecontacts","getissuers","listissuers","setissuers","deleteissuers","manageissuers","recover"],"storage":["get","list","delete","set","update","regeneratekey","setsas","listsas","getsas","deletesas"]}}],"enabledForDeployment":false,"enableSoftDelete":true,"enablePurgeProtection":true,"vaultUri":"https://clitest000002.vault.azure.net/","provisioningState":"RegisteringDns"}}' - headers: - cache-control: - - no-cache - content-length: - - '1160' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 09:28:09 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-IIS/10.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-aspnet-version: - - 4.0.30319 - x-content-type-options: - - nosniff - x-ms-keyvault-service-version: - - 1.1.338.0 - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - x-powered-by: - - ASP.NET - status: - code: 200 - message: OK -- request: - body: '' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - 0 - Content-Type: - - application/json; charset=utf-8 - User-Agent: - - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-keyvault/2016-10-01 Azure-SDK-For-Python - accept-language: - - en-US - method: POST - uri: https://clitest000002.vault.azure.net/keys/testkey000003/create?api-version=2016-10-01 - response: - body: - string: '{"error":{"code":"Unauthorized","message":"AKV10000: Request is missing - a Bearer or PoP token."}}' - headers: - cache-control: - - no-cache - content-length: - - '97' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 09:28:09 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000;includeSubDomains - www-authenticate: - - Bearer authorization="https://login.windows.net/657a2bb7-9a58-4be7-87f3-643bb3b7cbb5", - resource="https://vault.azure.net" - x-content-type-options: - - nosniff - x-ms-keyvault-network-info: - - conn_type=Ipv4;addr=131.107.159.28;act_addr_fam=InterNetwork; - x-ms-keyvault-region: - - westus - x-ms-keyvault-service-version: - - 1.2.297.0 - x-powered-by: - - ASP.NET - status: - code: 401 - message: Unauthorized -- request: - body: '{"kty": "RSA", "attributes": {"enabled": true}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '47' - Content-Type: - - application/json; charset=utf-8 - User-Agent: - - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-keyvault/2016-10-01 Azure-SDK-For-Python - accept-language: - - en-US - method: POST - uri: https://clitest000002.vault.azure.net/keys/testkey000003/create?api-version=2016-10-01 - response: - body: - string: '{"key":{"kid":"https://clitest000002.vault.azure.net/keys/testkey000003/cc61b05b7eb64c8286cd03ad3c514298","kty":"RSA","key_ops":["encrypt","decrypt","sign","verify","wrapKey","unwrapKey"],"n":"zcjtmNHN0Nc4yu0EPERfS1vRS2fUZSMzxRFTkjqYe8FQbLC_pZ2VECqeDpZEVS7fT2YN_6fG_ICaAeSk-Q3yRxlNcyD1Sn8zxmTZNTvKKGhAMQaTd6ROSCZEFIgbREK1ufBcui-XL_DM13eVlzz9OEKNKmwS_TtimPoG1Y4cAxYFko_yruJPY26uNxi1Ioe11Y1GYUtxTSrIQRmA069CvTgdNMATTuSYZ5YDInZdluzRH_EooPVFMxGKOl5ykK0KGBOE1NVMlWG8moZMz_FbJM_C8gF4pJoNcoaCV5XZkGKPNjvSCPvHgfQ37DJMHU6pSYW00fLrRQl__5sR_maw_Q","e":"AQAB"},"attributes":{"enabled":true,"created":1623230890,"updated":1623230890,"recoveryLevel":"Recoverable"}}' - headers: - cache-control: - - no-cache - content-length: - - '669' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 09:28:10 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000;includeSubDomains - x-content-type-options: - - nosniff - x-ms-keyvault-network-info: - - conn_type=Ipv4;addr=131.107.159.28;act_addr_fam=InterNetwork; - x-ms-keyvault-region: - - westus - x-ms-keyvault-service-version: - - 1.2.297.0 - x-powered-by: - - ASP.NET - 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_identity.yaml b/src/azure-cli/azure/cli/command_modules/acr/tests/hybrid_2020_09_01/recordings/test_acr_identity.yaml deleted file mode 100644 index 9025bf9468f..00000000000 --- a/src/azure-cli/azure/cli/command_modules/acr/tests/hybrid_2020_09_01/recordings/test_acr_identity.yaml +++ /dev/null @@ -1,100 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - acr create - Connection: - - keep-alive - ParameterSetName: - - --name --resource-group --sku - User-Agent: - - AZURECLI/2.23.0 azsdk-python-azure-mgmt-resource/16.1.0 Python/3.7.4 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2019-10-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2021-06-09T09:29:31Z"},"properties":{"provisioningState":"Succeeded"}}' - headers: - cache-control: - - no-cache - content-length: - - '428' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 09:29:32 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: '{"location": "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: - - --name --resource-group --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/testreg000004?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/testreg000004","name":"testreg000004","location":"westus","tags":{},"properties":{"loginServer":"testreg000004.azurecr.io","creationDate":"2021-06-09T09:29:33.3355983Z","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:29:34.4589618+00:00","status":"disabled"}}}}' - headers: - cache-control: - - no-cache - content-length: - - '842' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 09:29:34 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: - - '1197' - 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_network_rule.yaml b/src/azure-cli/azure/cli/command_modules/acr/tests/hybrid_2020_09_01/recordings/test_acr_network_rule.yaml deleted file mode 100644 index a1fa9aad122..00000000000 --- a/src/azure-cli/azure/cli/command_modules/acr/tests/hybrid_2020_09_01/recordings/test_acr_network_rule.yaml +++ /dev/null @@ -1,1284 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - network vnet create - Connection: - - keep-alive - ParameterSetName: - - -g -n --subnet-name - User-Agent: - - AZURECLI/2.25.0 azsdk-python-azure-mgmt-resource/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?api-version=2019-10-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westcentralus","tags":{"product":"azurecli","cause":"automation","date":"2021-06-23T07:05:36Z"},"properties":{"provisioningState":"Succeeded"}}' - headers: - cache-control: - - no-cache - content-length: - - '435' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 23 Jun 2021 07:05:37 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: '{"location": "westcentralus", "tags": {}, "properties": {"addressSpace": - {"addressPrefixes": ["10.0.0.0/16"]}, "dhcpOptions": {}, "subnets": [{"name": - "cliregsubnet", "properties": {"addressPrefix": "10.0.0.0/24"}}]}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - network vnet create - Connection: - - keep-alive - Content-Length: - - '217' - Content-Type: - - application/json - ParameterSetName: - - -g -n --subnet-name - User-Agent: - - AZURECLI/2.25.0 azsdk-python-azure-mgmt-network/19.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/cliregvnet?api-version=2018-11-01 - response: - body: - string: "{\r\n \"name\": \"cliregvnet\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cliregvnet\",\r\n - \ \"etag\": \"W/\\\"5d4a8fec-20e1-4eda-b79b-ff4955f7a13a\\\"\",\r\n \"type\": - \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westcentralus\",\r\n - \ \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n - \ \"resourceGuid\": \"153c1afc-8f39-4cd7-b28d-0f03ede010f4\",\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\": \"cliregsubnet\",\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cliregvnet/subnets/cliregsubnet\",\r\n - \ \"etag\": \"W/\\\"5d4a8fec-20e1-4eda-b79b-ff4955f7a13a\\\"\",\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/westcentralus/operations/f2348db1-57e2-4e6e-9f80-51cb6e51844e?api-version=2018-11-01 - cache-control: - - no-cache - content-length: - - '1320' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 23 Jun 2021 07:05:40 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: - - 030ef580-50c4-496b-9cbb-d2f89c99531b - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - network vnet create - Connection: - - keep-alive - ParameterSetName: - - -g -n --subnet-name - User-Agent: - - AZURECLI/2.25.0 azsdk-python-azure-mgmt-network/19.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/westcentralus/operations/f2348db1-57e2-4e6e-9f80-51cb6e51844e?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, 23 Jun 2021 07:05:43 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: - - 363d0fa6-231c-49ed-b98e-693b0f1cbc1b - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - network vnet create - Connection: - - keep-alive - ParameterSetName: - - -g -n --subnet-name - User-Agent: - - AZURECLI/2.25.0 azsdk-python-azure-mgmt-network/19.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/cliregvnet?api-version=2018-11-01 - response: - body: - string: "{\r\n \"name\": \"cliregvnet\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cliregvnet\",\r\n - \ \"etag\": \"W/\\\"a65cb3d7-d400-494b-8fd2-967f91989269\\\"\",\r\n \"type\": - \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westcentralus\",\r\n - \ \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"resourceGuid\": \"153c1afc-8f39-4cd7-b28d-0f03ede010f4\",\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\": \"cliregsubnet\",\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cliregvnet/subnets/cliregsubnet\",\r\n - \ \"etag\": \"W/\\\"a65cb3d7-d400-494b-8fd2-967f91989269\\\"\",\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: - - '1322' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 23 Jun 2021 07:05:43 GMT - etag: - - W/"a65cb3d7-d400-494b-8fd2-967f91989269" - 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: - - 55d29566-1377-4bb7-9a9d-67d1fc59462a - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - network vnet subnet update - Connection: - - keep-alive - ParameterSetName: - - -g --vnet-name -n --service-endpoints - User-Agent: - - AZURECLI/2.25.0 azsdk-python-azure-mgmt-network/19.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/cliregvnet/subnets/cliregsubnet?api-version=2018-11-01 - response: - body: - string: "{\r\n \"name\": \"cliregsubnet\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cliregvnet/subnets/cliregsubnet\",\r\n - \ \"etag\": \"W/\\\"a65cb3d7-d400-494b-8fd2-967f91989269\\\"\",\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}" - headers: - cache-control: - - no-cache - content-length: - - '498' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 23 Jun 2021 07:05:43 GMT - etag: - - W/"a65cb3d7-d400-494b-8fd2-967f91989269" - 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: - - 1c9b0ad3-e11a-436f-a11e-984b1e78c1e3 - status: - code: 200 - message: OK -- request: - body: '{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cliregvnet/subnets/cliregsubnet", - "name": "cliregsubnet", "etag": "W/\"a65cb3d7-d400-494b-8fd2-967f91989269\"", - "properties": {"addressPrefix": "10.0.0.0/24", "serviceEndpoints": [{"service": - "Microsoft.ContainerRegistry"}], "delegations": [], "provisioningState": "Succeeded"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - network vnet subnet update - Connection: - - keep-alive - Content-Length: - - '473' - Content-Type: - - application/json - ParameterSetName: - - -g --vnet-name -n --service-endpoints - User-Agent: - - AZURECLI/2.25.0 azsdk-python-azure-mgmt-network/19.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/cliregvnet/subnets/cliregsubnet?api-version=2018-11-01 - response: - body: - string: "{\r\n \"name\": \"cliregsubnet\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cliregvnet/subnets/cliregsubnet\",\r\n - \ \"etag\": \"W/\\\"af1b7dc4-a843-40bc-ad2b-56b5cf908eea\\\"\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Updating\",\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n - \ \"serviceEndpoints\": [\r\n {\r\n \"provisioningState\": \"Updating\",\r\n - \ \"service\": \"Microsoft.ContainerRegistry\",\r\n \"locations\": - [\r\n \"*\"\r\n ]\r\n }\r\n ],\r\n \"delegations\": - []\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n}" - headers: - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westcentralus/operations/5cde80e1-d27c-4a26-b1b5-17375e7c19ec?api-version=2018-11-01 - cache-control: - - no-cache - content-length: - - '693' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 23 Jun 2021 07:05:44 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: - - 81cb15a6-a3b4-40db-ba38-e7d3fb087387 - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - network vnet subnet update - Connection: - - keep-alive - ParameterSetName: - - -g --vnet-name -n --service-endpoints - User-Agent: - - AZURECLI/2.25.0 azsdk-python-azure-mgmt-network/19.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/westcentralus/operations/5cde80e1-d27c-4a26-b1b5-17375e7c19ec?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, 23 Jun 2021 07:05:47 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: - - ea080142-d619-4e85-8d38-cea328c05afd - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - network vnet subnet update - Connection: - - keep-alive - ParameterSetName: - - -g --vnet-name -n --service-endpoints - User-Agent: - - AZURECLI/2.25.0 azsdk-python-azure-mgmt-network/19.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/cliregvnet/subnets/cliregsubnet?api-version=2018-11-01 - response: - body: - string: "{\r\n \"name\": \"cliregsubnet\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cliregvnet/subnets/cliregsubnet\",\r\n - \ \"etag\": \"W/\\\"1cfb96d4-53e1-4930-896d-2f05827770dc\\\"\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n - \ \"serviceEndpoints\": [\r\n {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"service\": \"Microsoft.ContainerRegistry\",\r\n \"locations\": - [\r\n \"*\"\r\n ]\r\n }\r\n ],\r\n \"delegations\": - []\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '695' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 23 Jun 2021 07:05:47 GMT - etag: - - W/"1cfb96d4-53e1-4930-896d-2f05827770dc" - 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: - - 87ea86a6-8c1b-46b3-9fd3-cf31d144f1c2 - status: - code: 200 - message: OK -- request: - body: '{"location": "westcentralus", "sku": {"name": "Premium"}, "properties": - {"adminUserEnabled": false, "networkRuleSet": {"defaultAction": "Deny"}}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - acr create - Connection: - - keep-alive - Content-Length: - - '145' - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -n -g -l --sku --default-action - 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.25.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":"westcentralus","tags":{},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2021-06-23T07:05:49.3714821Z","provisioningState":"Succeeded","adminUserEnabled":false,"networkRuleSet":{"defaultAction":"Deny","virtualNetworkRules":[],"ipRules":[]},"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2021-06-23T07:05:50.6205951+00:00","status":"disabled"}}}}' - headers: - cache-control: - - no-cache - content-length: - - '833' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 23 Jun 2021 07:05:51 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 network-rule add - Connection: - - keep-alive - ParameterSetName: - - -g -n --vnet-name --subnet - 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.25.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":"westcentralus","tags":{},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2021-06-23T07:05:49.3714821Z","provisioningState":"Succeeded","adminUserEnabled":false,"networkRuleSet":{"defaultAction":"Deny","virtualNetworkRules":[],"ipRules":[]},"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2021-06-23T07:05:50.6205951+00:00","status":"disabled"}}}}' - headers: - cache-control: - - no-cache - content-length: - - '833' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 23 Jun 2021 07:05:51 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: '{"properties": {"networkRuleSet": {"defaultAction": "Deny", "virtualNetworkRules": - [{"action": "Allow", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cliregvnet/subnets/cliregsubnet"}], - "ipRules": []}}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - acr network-rule add - Connection: - - keep-alive - Content-Length: - - '350' - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -g -n --vnet-name --subnet - 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.25.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?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":"westcentralus","tags":{},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2021-06-23T07:05:49.3714821Z","provisioningState":"Succeeded","adminUserEnabled":false,"networkRuleSet":{"defaultAction":"Deny","virtualNetworkRules":[{"action":"Allow","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cliregvnet/subnets/cliregsubnet"}],"ipRules":[]},"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2021-06-23T07:05:50.6205951+00:00","status":"disabled"}}}}' - headers: - cache-control: - - no-cache - content-length: - - '1077' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 23 Jun 2021 07:05:53 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 network-rule add - Connection: - - keep-alive - ParameterSetName: - - -g -n --ip-address - 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.25.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":"westcentralus","tags":{},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2021-06-23T07:05:49.3714821Z","provisioningState":"Succeeded","adminUserEnabled":false,"networkRuleSet":{"defaultAction":"Deny","virtualNetworkRules":[{"action":"Allow","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cliregvnet/subnets/cliregsubnet"}],"ipRules":[]},"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2021-06-23T07:05:50.6205951+00:00","status":"disabled"}}}}' - headers: - cache-control: - - no-cache - content-length: - - '1077' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 23 Jun 2021 07:05:53 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: '{"properties": {"networkRuleSet": {"defaultAction": "Deny", "virtualNetworkRules": - [{"action": "Allow", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cliregvnet/subnets/cliregsubnet"}], - "ipRules": [{"action": "Allow", "value": "16.17.18.0/24"}]}}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - acr network-rule add - Connection: - - keep-alive - Content-Length: - - '395' - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -g -n --ip-address - 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.25.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?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":"westcentralus","tags":{},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2021-06-23T07:05:49.3714821Z","provisioningState":"Succeeded","adminUserEnabled":false,"networkRuleSet":{"defaultAction":"Deny","virtualNetworkRules":[{"action":"Allow","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cliregvnet/subnets/cliregsubnet"}],"ipRules":[{"action":"Allow","value":"16.17.18.0/24"}]},"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2021-06-23T07:05:50.6205951+00:00","status":"disabled"}}}}' - headers: - cache-control: - - no-cache - content-length: - - '1119' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 23 Jun 2021 07:05:54 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 network-rule list - Connection: - - keep-alive - ParameterSetName: - - -g -n - User-Agent: - - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-containerregistry/3.0.0rc17 Azure-SDK-For-Python AZURECLI/2.25.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":"westcentralus","tags":{},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2021-06-23T07:05:49.3714821Z","provisioningState":"Succeeded","adminUserEnabled":false,"networkRuleSet":{"defaultAction":"Deny","virtualNetworkRules":[{"action":"Allow","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cliregvnet/subnets/cliregsubnet"}],"ipRules":[{"action":"Allow","value":"16.17.18.0/24"}]},"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2021-06-23T07:05:50.6205951+00:00","status":"disabled"}}}}' - headers: - cache-control: - - no-cache - content-length: - - '1119' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 23 Jun 2021 07:05: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: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - acr update - Connection: - - keep-alive - ParameterSetName: - - -n -g --default-action - 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.25.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":"westcentralus","tags":{},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2021-06-23T07:05:49.3714821Z","provisioningState":"Succeeded","adminUserEnabled":false,"networkRuleSet":{"defaultAction":"Deny","virtualNetworkRules":[{"action":"Allow","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cliregvnet/subnets/cliregsubnet"}],"ipRules":[{"action":"Allow","value":"16.17.18.0/24"}]},"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2021-06-23T07:05:50.6205951+00:00","status":"disabled"}}}}' - headers: - cache-control: - - no-cache - content-length: - - '1119' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 23 Jun 2021 07:05: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: '{"properties": {"networkRuleSet": {"defaultAction": "Allow"}}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - acr update - Connection: - - keep-alive - Content-Length: - - '62' - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -n -g --default-action - 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.25.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?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":"westcentralus","tags":{},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2021-06-23T07:05:49.3714821Z","provisioningState":"Succeeded","adminUserEnabled":false,"networkRuleSet":{"defaultAction":"Allow","virtualNetworkRules":[{"action":"Allow","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cliregvnet/subnets/cliregsubnet"}],"ipRules":[{"action":"Allow","value":"16.17.18.0/24"}]},"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2021-06-23T07:05:50.6205951+00:00","status":"disabled"}}}}' - headers: - cache-control: - - no-cache - content-length: - - '1120' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 23 Jun 2021 07:05: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 network-rule remove - Connection: - - keep-alive - ParameterSetName: - - -g -n --vnet-name --subnet - 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.25.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":"westcentralus","tags":{},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2021-06-23T07:05:49.3714821Z","provisioningState":"Succeeded","adminUserEnabled":false,"networkRuleSet":{"defaultAction":"Allow","virtualNetworkRules":[{"action":"Allow","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cliregvnet/subnets/cliregsubnet"}],"ipRules":[{"action":"Allow","value":"16.17.18.0/24"}]},"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2021-06-23T07:05:50.6205951+00:00","status":"disabled"}}}}' - headers: - cache-control: - - no-cache - content-length: - - '1120' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 23 Jun 2021 07:05: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: '{"properties": {"networkRuleSet": {"defaultAction": "Allow", "virtualNetworkRules": - [], "ipRules": [{"action": "Allow", "value": "16.17.18.0/24"}]}}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - acr network-rule remove - Connection: - - keep-alive - Content-Length: - - '149' - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -g -n --vnet-name --subnet - 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.25.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?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":"westcentralus","tags":{},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2021-06-23T07:05:49.3714821Z","provisioningState":"Succeeded","adminUserEnabled":false,"networkRuleSet":{"defaultAction":"Allow","virtualNetworkRules":[],"ipRules":[{"action":"Allow","value":"16.17.18.0/24"}]},"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2021-06-23T07:05:50.6205951+00:00","status":"disabled"}}}}' - headers: - cache-control: - - no-cache - content-length: - - '876' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 23 Jun 2021 07:06:08 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 network-rule remove - Connection: - - keep-alive - ParameterSetName: - - -g -n --ip-address - 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.25.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":"westcentralus","tags":{},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2021-06-23T07:05:49.3714821Z","provisioningState":"Succeeded","adminUserEnabled":false,"networkRuleSet":{"defaultAction":"Allow","virtualNetworkRules":[],"ipRules":[{"action":"Allow","value":"16.17.18.0/24"}]},"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2021-06-23T07:05:50.6205951+00:00","status":"disabled"}}}}' - headers: - cache-control: - - no-cache - content-length: - - '876' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 23 Jun 2021 07:06:09 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: '{"properties": {"networkRuleSet": {"defaultAction": "Allow", "virtualNetworkRules": - [], "ipRules": []}}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - acr network-rule remove - Connection: - - keep-alive - Content-Length: - - '104' - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -g -n --ip-address - 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.25.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?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":"westcentralus","tags":{},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2021-06-23T07:05:49.3714821Z","provisioningState":"Succeeded","adminUserEnabled":false,"networkRuleSet":{"defaultAction":"Allow","virtualNetworkRules":[],"ipRules":[]},"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2021-06-23T07:05:50.6205951+00:00","status":"disabled"}}}}' - headers: - cache-control: - - no-cache - content-length: - - '834' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 23 Jun 2021 07:06:10 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 network-rule list - Connection: - - keep-alive - ParameterSetName: - - -g -n - User-Agent: - - python/3.7.4 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-containerregistry/3.0.0rc17 Azure-SDK-For-Python AZURECLI/2.25.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":"westcentralus","tags":{},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2021-06-23T07:05:49.3714821Z","provisioningState":"Succeeded","adminUserEnabled":false,"networkRuleSet":{"defaultAction":"Allow","virtualNetworkRules":[],"ipRules":[]},"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2021-06-23T07:05:50.6205951+00:00","status":"disabled"}}}}' - headers: - cache-control: - - no-cache - content-length: - - '834' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 23 Jun 2021 07:06:11 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 delete - Connection: - - keep-alive - Content-Length: - - '0' - ParameterSetName: - - -g -n -y - 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.25.0 - accept-language: - - en-US - method: DELETE - 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: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - date: - - Wed, 23 Jun 2021 07:06:14 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-deletes: - - '14999' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - network vnet delete - Connection: - - keep-alive - Content-Length: - - '0' - ParameterSetName: - - -g -n - User-Agent: - - AZURECLI/2.25.0 azsdk-python-azure-mgmt-network/19.0.0 Python/3.7.4 (Windows-10-10.0.19041-SP0) - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cliregvnet?api-version=2018-11-01 - response: - body: - string: '' - headers: - azure-asyncnotification: - - Enabled - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westcentralus/operations/c47610d7-f60c-4370-bd31-abfb1cb91c07?api-version=2018-11-01 - cache-control: - - no-cache - content-length: - - '0' - date: - - Wed, 23 Jun 2021 07:06:15 GMT - expires: - - '-1' - location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westcentralus/operationResults/c47610d7-f60c-4370-bd31-abfb1cb91c07?api-version=2018-11-01 - 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: - - 17b3246b-727b-4d39-95b6-ec4e154dd014 - x-ms-ratelimit-remaining-subscription-deletes: - - '14999' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - network vnet delete - Connection: - - keep-alive - ParameterSetName: - - -g -n - User-Agent: - - AZURECLI/2.25.0 azsdk-python-azure-mgmt-network/19.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/westcentralus/operations/c47610d7-f60c-4370-bd31-abfb1cb91c07?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, 23 Jun 2021 07:06:25 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: - - 089c9257-aa87-4607-a76a-1ffb50c27fd0 - 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_with_anonymous_pull.yaml b/src/azure-cli/azure/cli/command_modules/acr/tests/hybrid_2020_09_01/recordings/test_acr_with_anonymous_pull.yaml deleted file mode 100644 index d81bfb93f89..00000000000 --- a/src/azure-cli/azure/cli/command_modules/acr/tests/hybrid_2020_09_01/recordings/test_acr_with_anonymous_pull.yaml +++ /dev/null @@ -1,58 +0,0 @@ -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: - - --name --resource-group --sku -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: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/testreg000002?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/testreg000002","name":"testreg000002","location":"eastus","tags":{},"properties":{"loginServer":"testreg000002.azurecr.io","creationDate":"2021-06-09T09:44:12.7566098Z","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:44:14.5494387+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:44:14 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: - - '1196' - 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_with_dedicated_data_endpoints.yaml b/src/azure-cli/azure/cli/command_modules/acr/tests/hybrid_2020_09_01/recordings/test_acr_with_dedicated_data_endpoints.yaml deleted file mode 100644 index f31406a8ab0..00000000000 --- a/src/azure-cli/azure/cli/command_modules/acr/tests/hybrid_2020_09_01/recordings/test_acr_with_dedicated_data_endpoints.yaml +++ /dev/null @@ -1,149 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - acr create - Connection: - - keep-alive - ParameterSetName: - - --name --resource-group --sku - User-Agent: - - AZURECLI/2.23.0 azsdk-python-azure-mgmt-resource/16.1.0 Python/3.7.4 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2019-10-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2021-06-09T09:45:20Z"},"properties":{"provisioningState":"Succeeded"}}' - headers: - cache-control: - - no-cache - content-length: - - '428' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 09:45:20 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: '{"location": "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: - - --name --resource-group --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/testreg000002?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/testreg000002","name":"testreg000002","location":"westus","tags":{},"properties":{"loginServer":"testreg000002.azurecr.io","creationDate":"2021-06-09T09:45:22.0496919Z","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:45:23.8908507+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:45:24 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: - - '1197' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - acr show-endpoints - Connection: - - keep-alive - ParameterSetName: - - --name --resource-group - 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/testreg000002?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/testreg000002","name":"testreg000002","location":"westus","tags":{},"properties":{"loginServer":"testreg000002.azurecr.io","creationDate":"2021-06-09T09:45:22.0496919Z","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:45:23.8908507+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:45:24 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_with_private_endpoint.yaml b/src/azure-cli/azure/cli/command_modules/acr/tests/hybrid_2020_09_01/recordings/test_acr_with_private_endpoint.yaml deleted file mode 100644 index 1667c1061f5..00000000000 --- a/src/azure-cli/azure/cli/command_modules/acr/tests/hybrid_2020_09_01/recordings/test_acr_with_private_endpoint.yaml +++ /dev/null @@ -1,229 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - network vnet create - Connection: - - keep-alive - ParameterSetName: - - -g -n --subnet-name - User-Agent: - - AZURECLI/2.23.0 azsdk-python-azure-mgmt-resource/16.1.0 Python/3.7.4 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2019-10-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"centralus","tags":{"product":"azurecli","cause":"automation","date":"2021-06-09T09:48:53Z"},"properties":{"provisioningState":"Succeeded"}}' - headers: - cache-control: - - no-cache - content-length: - - '431' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 09:48:54 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: '{"location": "centralus", "tags": {}, "properties": {"addressSpace": {"addressPrefixes": - ["10.0.0.0/16"]}, "dhcpOptions": {}, "subnets": [{"name": "testsubnet000004", - "properties": {"addressPrefix": "10.0.0.0/24"}}]}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - network vnet create - Connection: - - keep-alive - Content-Length: - - '221' - Content-Type: - - application/json - ParameterSetName: - - -g -n --subnet-name - 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/testvnet000003?api-version=2018-11-01 - response: - body: - string: "{\r\n \"name\": \"testvnet000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/testvnet000003\",\r\n - \ \"etag\": \"W/\\\"442b49ed-ebe3-4578-acf6-5eb1bb313c34\\\"\",\r\n \"type\": - \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"centralus\",\r\n - \ \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n - \ \"resourceGuid\": \"c8f7e6f3-39b4-4163-87cc-ae75996717d9\",\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\": \"testsubnet000004\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/testvnet000003/subnets/testsubnet000004\",\r\n - \ \"etag\": \"W/\\\"442b49ed-ebe3-4578-acf6-5eb1bb313c34\\\"\",\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/centralus/operations/be3622a2-bbdc-4126-91f5-0cea0a8efad0?api-version=2018-11-01 - cache-control: - - no-cache - content-length: - - '1362' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 09:48:57 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: - - d46eab95-db76-4c22-bd43-c291089b5163 - 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: - - -g -n --subnet-name - 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/centralus/operations/be3622a2-bbdc-4126-91f5-0cea0a8efad0?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:49:00 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: - - 4d1d9421-f794-4665-9e6a-f0a366cac28f - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - network vnet create - Connection: - - keep-alive - ParameterSetName: - - -g -n --subnet-name - 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/testvnet000003?api-version=2018-11-01 - response: - body: - string: "{\r\n \"name\": \"testvnet000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/testvnet000003\",\r\n - \ \"etag\": \"W/\\\"19990664-e14c-44a4-b1e1-648f17b55471\\\"\",\r\n \"type\": - \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"centralus\",\r\n - \ \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"resourceGuid\": \"c8f7e6f3-39b4-4163-87cc-ae75996717d9\",\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\": \"testsubnet000004\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/testvnet000003/subnets/testsubnet000004\",\r\n - \ \"etag\": \"W/\\\"19990664-e14c-44a4-b1e1-648f17b55471\\\"\",\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: - - '1364' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 09:49:00 GMT - etag: - - W/"19990664-e14c-44a4-b1e1-648f17b55471" - 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: - - 4f6e560c-fb8b-459f-b917-81fb27d4c311 - 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_with_public_network_access.yaml b/src/azure-cli/azure/cli/command_modules/acr/tests/hybrid_2020_09_01/recordings/test_acr_with_public_network_access.yaml deleted file mode 100644 index 3d3fe8e84e5..00000000000 --- a/src/azure-cli/azure/cli/command_modules/acr/tests/hybrid_2020_09_01/recordings/test_acr_with_public_network_access.yaml +++ /dev/null @@ -1,100 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - acr create - Connection: - - keep-alive - ParameterSetName: - - --name --resource-group --sku - User-Agent: - - AZURECLI/2.23.0 azsdk-python-azure-mgmt-resource/16.1.0 Python/3.7.4 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2019-10-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2021-06-09T09:30:43Z"},"properties":{"provisioningState":"Succeeded"}}' - headers: - cache-control: - - no-cache - content-length: - - '428' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 09:30:44 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: '{"location": "westus", "sku": {"name": "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: - - --name --resource-group --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/testreg000002?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/testreg000002","name":"testreg000002","location":"westus","tags":{},"properties":{"loginServer":"testreg000002.azurecr.io","creationDate":"2021-06-09T09:30:46.2858504Z","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:30:49.6159731+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:30:49 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: - - '1195' - 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_with_zone_redundancy.yaml b/src/azure-cli/azure/cli/command_modules/acr/tests/hybrid_2020_09_01/recordings/test_acr_with_zone_redundancy.yaml deleted file mode 100644 index 5c470c75c65..00000000000 --- a/src/azure-cli/azure/cli/command_modules/acr/tests/hybrid_2020_09_01/recordings/test_acr_with_zone_redundancy.yaml +++ /dev/null @@ -1,100 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - acr create - Connection: - - keep-alive - ParameterSetName: - - --name --resource-group --sku - User-Agent: - - AZURECLI/2.23.0 azsdk-python-azure-mgmt-resource/16.1.0 Python/3.7.4 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2019-10-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"eastus","tags":{"product":"azurecli","cause":"automation","date":"2021-06-09T09:32:43Z"},"properties":{"provisioningState":"Succeeded"}}' - headers: - cache-control: - - no-cache - content-length: - - '428' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 09:32:44 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: '{"location": "eastus", "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: - - --name --resource-group --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/testreg000002?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/testreg000002","name":"testreg000002","location":"eastus","tags":{},"properties":{"loginServer":"testreg000002.azurecr.io","creationDate":"2021-06-09T09:32:46.2911303Z","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:32:47.4093492+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:32:47 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 -version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/acr/tests/hybrid_2020_09_01/recordings/test_check_name_availability.yaml b/src/azure-cli/azure/cli/command_modules/acr/tests/hybrid_2020_09_01/recordings/test_check_name_availability.yaml deleted file mode 100644 index 05cb8d99f44..00000000000 --- a/src/azure-cli/azure/cli/command_modules/acr/tests/hybrid_2020_09_01/recordings/test_check_name_availability.yaml +++ /dev/null @@ -1,55 +0,0 @@ -interactions: -- request: - body: '{"name": "clireg000001", "type": "Microsoft.ContainerRegistry/registries"}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - acr check-name - Connection: - - keep-alive - Content-Length: - - '82' - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -n - 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.25.0 - accept-language: - - en-US - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerRegistry/checkNameAvailability?api-version=2019-05-01 - response: - body: - string: '{"nameAvailable":true}' - headers: - cache-control: - - no-cache - content-length: - - '22' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 23 Jun 2021 07:05:36 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_repository_token_create.yaml b/src/azure-cli/azure/cli/command_modules/acr/tests/hybrid_2020_09_01/recordings/test_repository_token_create.yaml deleted file mode 100644 index 86d3ee8be5c..00000000000 --- a/src/azure-cli/azure/cli/command_modules/acr/tests/hybrid_2020_09_01/recordings/test_repository_token_create.yaml +++ /dev/null @@ -1,245 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - acr create - Connection: - - keep-alive - ParameterSetName: - - -g -n --sku - User-Agent: - - AZURECLI/2.23.0 azsdk-python-azure-mgmt-resource/16.1.0 Python/3.7.4 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2019-10-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2021-06-09T09:50:58Z"},"properties":{"provisioningState":"Succeeded"}}' - headers: - cache-control: - - no-cache - content-length: - - '428' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 09:50: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: '{"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: - - -g -n --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:50:59.9731602Z","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:51:01.4151103+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:51: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 - x-ms-ratelimit-remaining-subscription-writes: - - '1197' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - acr token create - Connection: - - keep-alive - ParameterSetName: - - -r -n --repository - 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.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.rgefuoheguc3qaxldkyedh2r523hfdcnemin7t6jrc2uoej465wm2ny3aqdojdxndq5/providers/Microsoft.ContainerRegistry/registries/testregeyx4nz2z4j2mr","name":"testregeyx4nz2z4j2mr","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.rgmzhjzdpz5gf7t3gbb4gycol2iy3jj6ojcvnygk72ohltdmbykpqvapg5esquatv52/providers/Microsoft.ContainerRegistry/registries/testregz5clnh6zm4pwj","name":"testregz5clnh6zm4pwj","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.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/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: - - '5539' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 09:51:01 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - acr token create - Connection: - - keep-alive - ParameterSetName: - - -r -n --repository - 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/scopeMaps/acr-token-scope-map?api-version=2020-11-01-preview - response: - body: - string: '{"error":{"code":"ResourceNotFound","message":"The resource acr-token-scope-map - could not be found."},"status":"Failed"}' - headers: - cache-control: - - no-cache - content-length: - - '120' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 09:51:01 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - status: - code: 404 - message: Not Found -- request: - body: '{"properties": {"description": "Created by token: acr-token", "actions": - ["repositories/foo/content/read"]}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - acr token create - Connection: - - keep-alive - Content-Length: - - '108' - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -r -n --repository - 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/scopeMaps/acr-token-scope-map?api-version=2020-11-01-preview - response: - body: - string: '{"type":"Microsoft.ContainerRegistry/registries/scopeMaps","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/scopeMaps/acr-token-scope-map","name":"acr-token-scope-map","systemData":{"createdBy":"aaa@foo.com","createdByType":"User","createdAt":"2021-06-09T09:51:02.9456494+00:00","lastModifiedBy":"aaa@foo.com","lastModifiedByType":"User","lastModifiedAt":"2021-06-09T09:51:02.9456494+00:00"},"properties":{"description":"Created - by token: acr-token","type":"UserDefined","creationDate":"2021-06-09T09:51:03.4873142+00:00","provisioningState":"Succeeded","actions":["repositories/foo/content/read"]}}' - headers: - cache-control: - - no-cache - content-length: - - '785' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 09:51:03 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 -version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/acr/tests/hybrid_2020_09_01/taskrunquickbuildsample.json b/src/azure-cli/azure/cli/command_modules/acr/tests/hybrid_2020_09_01/taskrunquickbuildsample.json deleted file mode 100644 index eac28ff1716..00000000000 --- a/src/azure-cli/azure/cli/command_modules/acr/tests/hybrid_2020_09_01/taskrunquickbuildsample.json +++ /dev/null @@ -1,81 +0,0 @@ -{ - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "location": { - "type": "string", - "defaultValue": "[resourceGroup().location]", - "metadata": { - "description": "Location for all resources." - } - }, - "registryName": { - "type": "string", - "minLength": 5, - "maxLength": 50, - "metadata": { - "description": "Name of your Azure Container Registry" - } - }, - "taskRunName": { - "type": "string", - "minLength": 5, - "maxLength": 50, - "metadata": { - "description": "Name of your Task Run and tag generated" - } - }, - "sourceLocation": { - "type": "string", - "defaultValue": "https://github.com/Azure-Samples/acr-build-helloworld-node.git", - "metadata": { - "description": "Source Location" - } - }, - "dockerFilePath": { - "type": "string", - "defaultValue": "Dockerfile", - "metadata": { - "description": "Name of dockerFile" - } - }, - "image": { - "type": "string", - "defaultValue": "mytest:v1", - "metadata": { - "description": "Image name" - } - } - }, - "resources": [ - { - "type": "Microsoft.ContainerRegistry/registries/taskRuns/", - "name": "[concat(parameters('registryName'), '/', parameters('taskRunName'))]", - "location": "[parameters('location')]", - "apiVersion": "2019-06-01-preview", - "properties": { - "runRequest": { - "type": "DockerBuildRequest", - "imageNames": [ - "[parameters('image')]" - ], - "sourceLocation": "[parameters('sourceLocation')]", - "dockerFilePath": "[parameters('dockerFilePath')]", - "values": [], - "isPushEnabled": true, - "platform": { - "os": "linux", - "architecture": "amd64" - }, - "credentials": {} - } - } - } - ], - "outputs": { - "taskRunName": { - "type": "string", - "value": "[parameters('taskRunName')]" - } - } -} diff --git a/src/azure-cli/azure/cli/command_modules/acr/tests/hybrid_2020_09_01/test_acr_commands.py b/src/azure-cli/azure/cli/command_modules/acr/tests/hybrid_2020_09_01/test_acr_commands.py deleted file mode 100644 index 6f01793f43a..00000000000 --- a/src/azure-cli/azure/cli/command_modules/acr/tests/hybrid_2020_09_01/test_acr_commands.py +++ /dev/null @@ -1,160 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# -------------------------------------------------------------------------------------------- - -from azure.cli.testsdk.scenario_tests import AllowLargeResponse -from azure.cli.testsdk import ScenarioTest, ResourceGroupPreparer, KeyVaultPreparer, record_only, live_only -from azure.cli.command_modules.acr.custom import DEF_DIAG_SETTINGS_NAME_TEMPLATE - - -class AcrCommandsTests(ScenarioTest): - - def _core_registry_scenario(self, registry_name, resource_group, location): - self.cmd('acr check-name -n {}'.format(registry_name), - checks=[self.check('nameAvailable', False), - self.check('reason', 'AlreadyExists')]) - self.cmd('acr list -g {}'.format(resource_group), - checks=[self.check('[0].name', registry_name), - self.check('[0].location', location), - self.check('[0].adminUserEnabled', False)]) - registry = self.cmd('acr show -n {} -g {}'.format(registry_name, resource_group), - checks=[self.check('name', registry_name), - self.check('location', location), - self.check('adminUserEnabled', False)]).get_output_in_json() - - if registry['sku']['name'] == 'Premium': - self.cmd('acr show-usage -n {} -g {}'.format(registry_name, resource_group)) - - # enable admin user - self.cmd('acr update -n {} -g {} --tags foo=bar cat --admin-enabled true'.format(registry_name, resource_group), - checks=[self.check('name', registry_name), - self.check('location', location), - self.check('tags', {'cat': '', 'foo': 'bar'}), - self.check('adminUserEnabled', True), - self.check('provisioningState', 'Succeeded')]) - - # test retention - self.cmd('acr config retention update -r {} --status enabled --days 30 --type UntaggedManifests'.format(registry_name), - checks=[self.check('status', "enabled"), - self.check('days', 30)]) - - self.cmd('acr config retention show -r {}'.format(registry_name), - checks=[self.check('status', "enabled"), - self.check('days', 30)]) - - # test content-trust - self.cmd('acr config content-trust update -n {} --status enabled'.format(registry_name), - checks=[self.check('status', "enabled")]) - - self.cmd('acr config content-trust show -n {}'.format(registry_name), - checks=[self.check('status', "enabled")]) - - # test credential module - credential = self.cmd( - 'acr credential show -n {} -g {}'.format(registry_name, resource_group)).get_output_in_json() - username = credential['username'] - password = credential['passwords'][0]['value'] - password2 = credential['passwords'][1]['value'] - assert username and password and password2 - - # test acr delete - self.cmd('acr delete -n {} -g {} -y'.format(registry_name, resource_group)) - - def test_check_name_availability(self): - # the chance of this randomly generated name has a duplication is rare - name = self.create_random_name('clireg', 20) - self.kwargs.update({ - 'name': name - }) - - self.cmd('acr check-name -n {name}', checks=[ - self.check('nameAvailable', True) - ]) - - @ResourceGroupPreparer() - def test_acr_create_with_managed_registry(self, resource_group, resource_group_location): - registry_name = self.create_random_name('clireg', 20) - - self.kwargs.update({ - 'registry_name': registry_name, - 'rg_loc': resource_group_location, - 'sku': 'Premium' - }) - - self.cmd('acr create -n {registry_name} -g {rg} -l {rg_loc} --sku {sku}', - checks=[self.check('name', '{registry_name}'), - self.check('location', '{rg_loc}'), - self.check('adminUserEnabled', False), - self.check('sku.name', 'Premium'), - self.check('sku.tier', 'Premium'), - self.check('provisioningState', 'Succeeded')]) - - self._core_registry_scenario(registry_name, resource_group, resource_group_location) - - @ResourceGroupPreparer() - def test_acr_create_webhook(self, resource_group, resource_group_location): - registry_name = self.create_random_name('clireg', 20) - webhook_name = 'cliregwebhook' - - self.kwargs.update({ - 'registry_name': registry_name, - 'webhook_name': webhook_name, - 'rg_loc': resource_group_location, - 'headers': 'key=value', - 'webhook_scope': 'hello-world', - 'uri': 'http://www.microsoft.com', - 'actions': 'push', - 'sku': 'Standard' - }) - - self.cmd('acr create -n {registry_name} -g {rg} -l {rg_loc} --sku {sku}', - checks=[self.check('name', '{registry_name}'), - self.check('location', '{rg_loc}'), - self.check('adminUserEnabled', False), - self.check('sku.name', 'Standard'), - self.check('sku.tier', 'Standard'), - self.check('provisioningState', 'Succeeded')]) - - self.cmd('acr webhook create -n {webhook_name} -r {registry_name} --uri {uri} --actions {actions}', - checks=[self.check('name', '{webhook_name}'), - self.check('location', '{rg_loc}'), - self.check('status', 'enabled'), - self.check('provisioningState', 'Succeeded')]) - - self.cmd('acr webhook list -r {registry_name}', - checks=[self.check('[0].name', '{webhook_name}'), - self.check('[0].status', 'enabled'), - self.check('[0].provisioningState', 'Succeeded')]) - self.cmd('acr webhook show -n {webhook_name} -r {registry_name}', - checks=[self.check('name', '{webhook_name}'), - self.check('status', 'enabled'), - self.check('provisioningState', 'Succeeded')]) - - # update webhook - self.cmd('acr webhook update -n {webhook_name} -r {registry_name} --headers {headers} --scope {webhook_scope}', - checks=[self.check('name', '{webhook_name}'), - self.check('status', 'enabled'), - self.check('provisioningState', 'Succeeded'), - self.check('scope', '{webhook_scope}')]) - - # get webhook config - self.cmd('acr webhook get-config -n {webhook_name} -r {registry_name}', - checks=[self.check('serviceUri', '{uri}'), - self.check('customHeaders', {'key': 'value'})]) - # ping - self.cmd('acr webhook ping -n {webhook_name} -r {registry_name}', checks=[self.exists('id')]) - # list webhook events - self.cmd('acr webhook list-events -n {webhook_name} -r {registry_name}') - - # get registry usage - self.cmd('acr show-usage -n {registry_name} -g {rg}', - checks=[self.check('value[?name==`Size`]|[0].currentValue', 0), - self.greater_than('value[?name==`Size`]|[0].limit', 0), - self.check('value[?name==`Webhooks`]|[0].currentValue', 1), - self.greater_than('value[?name==`Webhooks`]|[0].limit', 0)]) - - # test webhook delete - self.cmd('acr webhook delete -n {webhook_name} -r {registry_name}') - # test acr delete - self.cmd('acr delete -n {registry_name} -g {rg} -y') diff --git a/src/azure-cli/azure/cli/command_modules/acr/tests/hybrid_2020_09_01/test_acr_commands_mock.py b/src/azure-cli/azure/cli/command_modules/acr/tests/hybrid_2020_09_01/test_acr_commands_mock.py deleted file mode 100644 index 5716906d04d..00000000000 --- a/src/azure-cli/azure/cli/command_modules/acr/tests/hybrid_2020_09_01/test_acr_commands_mock.py +++ /dev/null @@ -1,692 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# -------------------------------------------------------------------------------------------- - -from urllib.parse import urlencode -import json -import unittest -from unittest import mock -import sys - -from azure.mgmt.containerregistry.v2019_05_01.models import Registry, Sku - -from azure.cli.command_modules.acr.repository import ( - acr_repository_list, - acr_repository_show_tags, - acr_repository_show_manifests, - acr_repository_show, - acr_repository_update, - acr_repository_delete, - acr_repository_untag -) -from azure.cli.command_modules.acr.helm import ( - acr_helm_list, - acr_helm_show, - acr_helm_delete, - acr_helm_push -) -from azure.cli.command_modules.acr._docker_utils import ( - get_login_credentials, - get_access_credentials, - get_authorization_header, - RepoAccessTokenPermission, - HelmAccessTokenPermission, - EMPTY_GUID -) -from azure.cli.command_modules.acr._docker_utils import ResourceNotFound -from azure.cli.core.mock import DummyCli - - -TEST_TENANT = 'testtenant' -TEST_SUBSCRIPTION = 'testsubscription' -TEST_AAD_ACCESS_TOKEN = 'testaadaccesstoken' -TEST_ACR_REFRESH_TOKEN = 'testacrrefreshtoken' -TEST_ACR_ACCESS_TOKEN = 'testacraccesstoken' -TEST_REPOSITORY = 'testrepository' - - -class AcrMockCommandsTests(unittest.TestCase): - - @mock.patch('azure.cli.command_modules.acr.repository.get_access_credentials', autospec=True) - @mock.patch('requests.request', autospec=True) - def test_repository_list(self, mock_requests_get, mock_get_access_credentials): - cmd = self._setup_cmd() - - response = mock.MagicMock() - response.headers = {} - response.status_code = 200 - response.content = json.dumps({'repositories': ['testrepo1', 'testrepo2']}).encode() - mock_requests_get.return_value = response - - # List repositories using Basic auth - mock_get_access_credentials.return_value = 'testregistry.azurecr.io', 'username', 'password' - acr_repository_list(cmd, 'testregistry') - mock_requests_get.assert_called_with( - method='get', - url='https://testregistry.azurecr.io/v2/_catalog', - headers=get_authorization_header('username', 'password'), - params={ - 'n': 100, - 'orderby': None - }, - json=None, - timeout=300, - verify=mock.ANY) - - # List repositories using Bearer auth - mock_get_access_credentials.return_value = 'testregistry.azurecr.io', EMPTY_GUID, 'password' - acr_repository_list(cmd, 'testregistry', top=10) - mock_requests_get.assert_called_with( - method='get', - url='https://testregistry.azurecr.io/v2/_catalog', - headers=get_authorization_header(EMPTY_GUID, 'password'), - params={ - 'n': 10, - 'orderby': None - }, - json=None, - timeout=300, - verify=mock.ANY) - - @mock.patch('azure.cli.command_modules.acr.repository.get_access_credentials', autospec=True) - @mock.patch('requests.request', autospec=True) - def test_repository_show_tags(self, mock_requests_get, mock_get_access_credentials): - cmd = self._setup_cmd() - - encoded_tags = json.dumps({'tags': ['testtag1', 'testtag2']}).encode() - encoded_tags_detail = json.dumps({'tags': [ - { - 'digest': 'sha256:b972dda797ef258a7ea5738eb2109778c2bac6a99d1033e6c9f9bdb4fbd196e7', - 'name': 'testtag1' - }, - { - 'digest': 'sha256:c5515758d4c5e1e838e9cd307f6c6a0d620b5e07e6f927b07d05f6d12a1ac8d7', - 'name': 'testtag2' - }]}).encode() - - response = mock.MagicMock() - response.headers = {} - response.status_code = 200 - - # Show tags using Basic auth - mock_get_access_credentials.return_value = 'testregistry.azurecr.io', 'username', 'password' - response.content = encoded_tags - mock_requests_get.return_value = response - - acr_repository_show_tags(cmd, 'testregistry', 'testrepository') - mock_requests_get.assert_called_with( - method='get', - url='https://testregistry.azurecr.io/acr/v1/testrepository/_tags', - headers=get_authorization_header('username', 'password'), - params={ - 'n': 100, - 'orderby': None - }, - json=None, - timeout=300, - verify=mock.ANY) - - # Show tags using Bearer auth - mock_get_access_credentials.return_value = 'testregistry.azurecr.io', EMPTY_GUID, 'password' - response.content = encoded_tags_detail - mock_requests_get.return_value = response - - acr_repository_show_tags(cmd, 'testregistry', 'testrepository', top=10, orderby='time_desc', detail=True) - mock_requests_get.assert_called_with( - method='get', - url='https://testregistry.azurecr.io/acr/v1/testrepository/_tags', - headers=get_authorization_header(EMPTY_GUID, 'password'), - params={ - 'n': 10, - 'orderby': 'timedesc' - }, - json=None, - timeout=300, - verify=mock.ANY) - - @mock.patch('azure.cli.command_modules.acr.repository.get_access_credentials', autospec=True) - @mock.patch('requests.request', autospec=True) - def test_repository_show_manifests(self, mock_requests_get, mock_get_access_credentials): - cmd = self._setup_cmd() - - response = mock.MagicMock() - response.headers = {} - response.status_code = 200 - response.content = json.dumps({'manifests': [ - { - 'digest': 'sha256:b972dda797ef258a7ea5738eb2109778c2bac6a99d1033e6c9f9bdb4fbd196e7', - 'tags': ['testtag1', 'testtag2'] - }, - { - 'digest': 'sha256:c5515758d4c5e1e838e9cd307f6c6a0d620b5e07e6f927b07d05f6d12a1ac8d7', - 'tags': ['testtag3'] - }]}).encode() - mock_requests_get.return_value = response - - # Show manifests using Basic auth without detail - mock_get_access_credentials.return_value = 'testregistry.azurecr.io', 'username', 'password' - - acr_repository_show_manifests(cmd, 'testregistry', 'testrepository') - mock_requests_get.assert_called_with( - method='get', - url='https://testregistry.azurecr.io/acr/v1/testrepository/_manifests', - headers=get_authorization_header('username', 'password'), - params={ - 'n': 100, - 'orderby': None - }, - json=None, - timeout=300, - verify=mock.ANY) - - # Show manifests using Bearer auth with detail - mock_get_access_credentials.return_value = 'testregistry.azurecr.io', EMPTY_GUID, 'password' - - acr_repository_show_manifests(cmd, 'testregistry', 'testrepository', top=10, orderby='time_desc', detail=True) - mock_requests_get.assert_called_with( - method='get', - url='https://testregistry.azurecr.io/acr/v1/testrepository/_manifests', - headers=get_authorization_header(EMPTY_GUID, 'password'), - params={ - 'n': 10, - 'orderby': 'timedesc' - }, - json=None, - timeout=300, - verify=mock.ANY) - - @mock.patch('azure.cli.command_modules.acr.repository.get_access_credentials', autospec=True) - @mock.patch('requests.request', autospec=True) - def test_repository_show(self, mock_requests_get, mock_get_access_credentials): - cmd = self._setup_cmd() - - response = mock.MagicMock() - response.headers = {} - response.status_code = 200 - response.content = json.dumps({ - 'registry': 'testregistry.azurecr.io', - 'imageName': 'testrepository' - }).encode() - mock_requests_get.return_value = response - - mock_get_access_credentials.return_value = 'testregistry.azurecr.io', 'username', 'password' - - # Show attributes for a repository - acr_repository_show(cmd, - registry_name='testregistry', - repository='testrepository') - mock_requests_get.assert_called_with( - method='get', - url='https://testregistry.azurecr.io/acr/v1/testrepository', - headers=get_authorization_header('username', 'password'), - params=None, - json=None, - timeout=300, - verify=mock.ANY) - - # Show attributes for an image by tag - acr_repository_show(cmd, - registry_name='testregistry', - image='testrepository:testtag') - mock_requests_get.assert_called_with( - method='get', - url='https://testregistry.azurecr.io/acr/v1/testrepository/_tags/testtag', - headers=get_authorization_header('username', 'password'), - params=None, - json=None, - timeout=300, - verify=mock.ANY) - - # Show attributes for an image by manifest digest - acr_repository_show(cmd, - registry_name='testregistry', - image='testrepository@sha256:c5515758d4c5e1e838e9cd307f6c6a0d620b5e07e6f927b07d05f6d12a1ac8d7') - mock_requests_get.assert_called_with( - method='get', - url='https://testregistry.azurecr.io/acr/v1/testrepository/_manifests/sha256:c5515758d4c5e1e838e9cd307f6c6a0d620b5e07e6f927b07d05f6d12a1ac8d7', - headers=get_authorization_header('username', 'password'), - params=None, - json=None, - timeout=300, - verify=mock.ANY) - - @mock.patch('azure.cli.command_modules.acr.repository.get_access_credentials', autospec=True) - @mock.patch('requests.request', autospec=True) - def test_repository_show(self, mock_requests_get, mock_get_access_credentials): - cmd = self._setup_cmd() - - response = mock.MagicMock() - response.headers = {} - response.status_code = 200 - response.content = json.dumps({ - 'registry': 'testregistry.azurecr.io', - 'imageName': 'testrepository' - }).encode() - mock_requests_get.return_value = response - - mock_get_access_credentials.return_value = 'testregistry.azurecr.io', 'username', 'password' - - # Update attributes for a repository - acr_repository_update(cmd, - registry_name='testregistry', - repository='testrepository', - write_enabled='false') - mock_requests_get.assert_called_with( - method='patch', - url='https://testregistry.azurecr.io/acr/v1/testrepository', - headers=get_authorization_header('username', 'password'), - params=None, - json={ - 'writeEnabled': 'false' - }, - timeout=300, - verify=mock.ANY) - - # Update attributes for an image by tag - acr_repository_update(cmd, - registry_name='testregistry', - image='testrepository:testtag', - write_enabled='false') - mock_requests_get.assert_called_with( - method='patch', - url='https://testregistry.azurecr.io/acr/v1/testrepository/_tags/testtag', - headers=get_authorization_header('username', 'password'), - params=None, - json={ - 'writeEnabled': 'false' - }, - timeout=300, - verify=mock.ANY) - - # Update attributes for an image by manifest digest - acr_repository_update(cmd, - registry_name='testregistry', - image='testrepository@sha256:c5515758d4c5e1e838e9cd307f6c6a0d620b5e07e6f927b07d05f6d12a1ac8d7', - write_enabled='false') - mock_requests_get.assert_called_with( - method='patch', - url='https://testregistry.azurecr.io/acr/v1/testrepository/_manifests/sha256:c5515758d4c5e1e838e9cd307f6c6a0d620b5e07e6f927b07d05f6d12a1ac8d7', - headers=get_authorization_header('username', 'password'), - params=None, - json={ - 'writeEnabled': 'false' - }, - timeout=300, - verify=mock.ANY) - - @mock.patch('azure.cli.command_modules.acr.repository.get_access_credentials', autospec=True) - @mock.patch('azure.cli.command_modules.acr.repository._get_manifest_digest', autospec=True) - @mock.patch('requests.request', autospec=True) - def test_repository_delete(self, mock_requests_delete, mock_get_manifest_digest, mock_get_access_credentials): - cmd = self._setup_cmd() - - delete_response = mock.MagicMock() - delete_response.headers = {} - delete_response.status_code = 200 - mock_requests_delete.return_value = delete_response - - mock_get_access_credentials.return_value = 'testregistry.azurecr.io', 'username', 'password' - mock_get_manifest_digest.return_value = 'sha256:c5515758d4c5e1e838e9cd307f6c6a0d620b5e07e6f927b07d05f6d12a1ac8d7' - - # Delete repository - acr_repository_delete(cmd, - registry_name='testregistry', - repository='testrepository', - yes=True) - mock_requests_delete.assert_called_with( - method='delete', - url='https://testregistry.azurecr.io/acr/v1/testrepository', - headers=get_authorization_header('username', 'password'), - params=None, - json=None, - timeout=300, - verify=mock.ANY) - - # Delete image by tag - acr_repository_delete(cmd, - registry_name='testregistry', - image='testrepository:testtag', - yes=True) - mock_requests_delete.assert_called_with( - method='delete', - url='https://testregistry.azurecr.io/v2/testrepository/manifests/sha256:c5515758d4c5e1e838e9cd307f6c6a0d620b5e07e6f927b07d05f6d12a1ac8d7', - headers=get_authorization_header('username', 'password'), - params=None, - json=None, - timeout=300, - verify=mock.ANY) - - # Delete image by manifest digest - acr_repository_delete(cmd, - registry_name='testregistry', - image='testrepository@sha256:c5515758d4c5e1e838e9cd307f6c6a0d620b5e07e6f927b07d05f6d12a1ac8d7', - yes=True) - mock_requests_delete.assert_called_with( - method='delete', - url='https://testregistry.azurecr.io/v2/testrepository/manifests/sha256:c5515758d4c5e1e838e9cd307f6c6a0d620b5e07e6f927b07d05f6d12a1ac8d7', - headers=get_authorization_header('username', 'password'), - params=None, - json=None, - timeout=300, - verify=mock.ANY) - - # Untag image - acr_repository_untag(cmd, - registry_name='testregistry', - image='testrepository:testtag') - mock_requests_delete.assert_called_with( - method='delete', - url='https://testregistry.azurecr.io/acr/v1/testrepository/_tags/testtag', - headers=get_authorization_header('username', 'password'), - params=None, - json=None, - timeout=300, - verify=mock.ANY) - - @mock.patch('azure.cli.core._profile.Profile.get_subscription_id', autospec=True) - @mock.patch('azure.cli.command_modules.acr._docker_utils.get_registry_by_name', autospec=True) - @mock.patch('requests.post', autospec=True) - @mock.patch('requests.get', autospec=True) - @mock.patch('azure.cli.core._profile.Profile.get_raw_token', autospec=True) - def test_get_docker_credentials(self, mock_get_raw_token, mock_requests_get, mock_requests_post, - mock_get_registry_by_name, mock_get_subscription): - test_registry = 'testregistry' - test_login_server = '{}.azurecr.io'.format(test_registry) - test_tenant_suffix = 'microsoft' - test_login_server_with_tenant_suffix = '{}-{}.azurecr.io'.format(test_registry, test_tenant_suffix) - - # Mock as Profile.get_subscription_id fails in CI (CI logs in with a SP) - mock_get_subscription.return_value = TEST_SUBSCRIPTION - - # Registry found, login server without tenant suffix - self._core_token_scenarios(mock_get_raw_token, - mock_requests_get, - mock_requests_post, - mock_get_registry_by_name, - registry_exists=True, - registry_name=test_registry, - login_server=test_login_server, - tenant_suffix=None) - - # Registry not found, login server without tenant suffix - self._core_token_scenarios(mock_get_raw_token, - mock_requests_get, - mock_requests_post, - mock_get_registry_by_name, - registry_exists=False, - registry_name=test_registry, - login_server=test_login_server, - tenant_suffix=None) - - # Registry found, login server with tenant suffix - self._core_token_scenarios(mock_get_raw_token, - mock_requests_get, - mock_requests_post, - mock_get_registry_by_name, - registry_exists=True, - registry_name=test_registry, - login_server=test_login_server_with_tenant_suffix, - tenant_suffix=test_tenant_suffix) - - # Registry not found, login server with tenant suffix - self._core_token_scenarios(mock_get_raw_token, - mock_requests_get, - mock_requests_post, - mock_get_registry_by_name, - registry_exists=False, - registry_name=test_registry, - login_server=test_login_server_with_tenant_suffix, - tenant_suffix=test_tenant_suffix) - - def _core_token_scenarios(self, mock_get_raw_token, mock_requests_get, mock_requests_post, mock_get_registry_by_name, registry_exists, registry_name, login_server, tenant_suffix): - cmd = self._setup_cmd() - - if registry_exists: - registry = Registry(location='westus', sku=Sku(name='Standard')) - registry.login_server = login_server - mock_get_registry_by_name.return_value = registry, None - else: - # Mock the registry could not be found - mock_get_registry_by_name.side_effect = ResourceNotFound('The resource could not be found.') - - self._setup_mock_token_requests(mock_get_raw_token, mock_requests_get, mock_requests_post, login_server) - - # Test get refresh token - get_login_credentials(cmd, registry_name, tenant_suffix=tenant_suffix) - self._validate_refresh_token_request(mock_requests_get, mock_requests_post, login_server) - - # Test get access token for container image repository - get_access_credentials(cmd, registry_name, tenant_suffix=tenant_suffix, repository=TEST_REPOSITORY, permission=RepoAccessTokenPermission.METADATA_READ.value) - self._validate_access_token_request(mock_requests_get, mock_requests_post, login_server, 'repository:{}:{}'.format(TEST_REPOSITORY, RepoAccessTokenPermission.METADATA_READ.value)) - - # Test get access token for artifact image repository - get_access_credentials(cmd, registry_name, tenant_suffix=tenant_suffix, artifact_repository=TEST_REPOSITORY, permission=HelmAccessTokenPermission.PULL.value) - self._validate_access_token_request(mock_requests_get, mock_requests_post, login_server, 'artifact-repository:{}:{}'.format(TEST_REPOSITORY, HelmAccessTokenPermission.PULL.value)) - - def _setup_mock_token_requests(self, mock_get_aad_token, mock_requests_get, mock_requests_post, login_server): - # Set up AAD token with only access token - mock_get_aad_token.return_value = ('Bearer', TEST_AAD_ACCESS_TOKEN, {}), TEST_SUBSCRIPTION, TEST_TENANT - - # Set up challenge response - challenge_response = mock.MagicMock() - challenge_response.headers = { - 'WWW-Authenticate': 'Bearer realm="https://{}/oauth2/token",service="{}"'.format(login_server, login_server) - } - challenge_response.status_code = 401 - mock_requests_get.return_value = challenge_response - - # Set up refresh/access token response - token_response = mock.MagicMock() - token_response.headers = {} - token_response.status_code = 200 - token_response.content = json.dumps({ - 'refresh_token': TEST_ACR_REFRESH_TOKEN, - 'access_token': TEST_ACR_ACCESS_TOKEN}).encode() - mock_requests_post.return_value = token_response - - def _validate_refresh_token_request(self, mock_requests_get, mock_requests_post, login_server): - mock_requests_get.assert_called_with('https://{}/v2/'.format(login_server), verify=mock.ANY) - mock_requests_post.assert_called_with( - 'https://{}/oauth2/exchange'.format(login_server), - urlencode({ - 'grant_type': 'access_token', - 'service': login_server, - 'tenant': TEST_TENANT, - 'access_token': TEST_AAD_ACCESS_TOKEN - }), - headers={'Content-Type': 'application/x-www-form-urlencoded'}, - verify=mock.ANY) - - def _validate_access_token_request(self, mock_requests_get, mock_requests_post, login_server, scope): - mock_requests_post.assert_called_with( - 'https://{}/oauth2/token'.format(login_server), - urlencode({ - 'grant_type': 'refresh_token', - 'service': login_server, - 'scope': scope, - 'refresh_token': TEST_ACR_REFRESH_TOKEN - }), - headers={'Content-Type': 'application/x-www-form-urlencoded'}, - verify=mock.ANY) - - @mock.patch('azure.cli.command_modules.acr.helm.get_access_credentials', autospec=True) - @mock.patch('requests.request', autospec=True) - def test_helm_list(self, mock_requests_get, mock_get_access_credentials): - cmd = self._setup_cmd() - - response = mock.MagicMock() - response.headers = {} - response.status_code = 200 - response.content = json.dumps({ - 'mychart1': [ - { - 'name': 'mychart1', - 'version': '0.2.1' - }, - { - 'name': 'mychart1', - 'version': '0.1.2' - } - ], - 'mychart2': [ - { - 'name': 'mychart2', - 'version': '2.1.0' - } - ]}).encode() - mock_requests_get.return_value = response - - mock_get_access_credentials.return_value = 'testregistry.azurecr.io', EMPTY_GUID, 'password' - acr_helm_list(cmd, 'testregistry', repository='testrepository') - mock_requests_get.assert_called_with( - method='get', - url='https://testregistry.azurecr.io/helm/v1/testrepository/_charts', - headers=get_authorization_header(EMPTY_GUID, 'password'), - params=None, - json=None, - timeout=300, - verify=mock.ANY) - - @mock.patch('azure.cli.command_modules.acr.helm.get_access_credentials', autospec=True) - @mock.patch('requests.request', autospec=True) - def test_helm_show(self, mock_requests_get, mock_get_access_credentials): - cmd = self._setup_cmd() - - response = mock.MagicMock() - response.headers = {} - response.status_code = 200 - response.content = json.dumps({ - 'mychart1': [ - { - 'name': 'mychart1', - 'version': '0.2.1' - }, - { - 'name': 'mychart1', - 'version': '0.1.2' - } - ]}).encode() - mock_requests_get.return_value = response - - mock_get_access_credentials.return_value = 'testregistry.azurecr.io', EMPTY_GUID, 'password' - - # Show all versions of a chart - acr_helm_show(cmd, 'testregistry', 'mychart1', repository='testrepository') - mock_requests_get.assert_called_with( - method='get', - url='https://testregistry.azurecr.io/helm/v1/testrepository/_charts/mychart1', - headers=get_authorization_header(EMPTY_GUID, 'password'), - params=None, - json=None, - timeout=300, - verify=mock.ANY) - - # Show one version of a chart - acr_helm_show(cmd, 'testregistry', 'mychart1', version='0.2.1', repository='testrepository') - mock_requests_get.assert_called_with( - method='get', - url='https://testregistry.azurecr.io/helm/v1/testrepository/_charts/mychart1/0.2.1', - headers=get_authorization_header(EMPTY_GUID, 'password'), - params=None, - json=None, - timeout=300, - verify=mock.ANY) - - @mock.patch('azure.cli.command_modules.acr.helm.get_access_credentials', autospec=True) - @mock.patch('requests.request', autospec=True) - def test_helm_delete(self, mock_requests_get, mock_get_access_credentials): - cmd = self._setup_cmd() - - response = mock.MagicMock() - response.headers = {} - response.status_code = 200 - mock_requests_get.return_value = response - - mock_get_access_credentials.return_value = 'testregistry.azurecr.io', EMPTY_GUID, 'password' - - # Delete all versions of a chart - acr_helm_delete(cmd, 'testregistry', 'mychart1', repository='testrepository', yes=True) - mock_requests_get.assert_called_with( - method='delete', - url='https://testregistry.azurecr.io/helm/v1/testrepository/_charts/mychart1', - headers=get_authorization_header(EMPTY_GUID, 'password'), - params=None, - json=None, - timeout=300, - verify=mock.ANY) - - # Delete one version of a chart - acr_helm_delete(cmd, 'testregistry', 'mychart1', version='0.2.1', repository='testrepository', yes=True) - mock_requests_get.assert_called_with( - method='delete', - url='https://testregistry.azurecr.io/helm/v1/testrepository/_blobs/mychart1-0.2.1.tgz', - headers=get_authorization_header(EMPTY_GUID, 'password'), - params=None, - json=None, - timeout=300, - verify=mock.ANY) - - @mock.patch('azure.cli.command_modules.acr.helm.get_access_credentials', autospec=True) - @mock.patch('requests.request', autospec=True) - def test_helm_push(self, mock_requests_get, mock_get_access_credentials): - cmd = self._setup_cmd() - - response = mock.MagicMock() - response.headers = {} - response.status_code = 200 - mock_requests_get.return_value = response - - mock_get_access_credentials.return_value = 'testregistry.azurecr.io', EMPTY_GUID, 'password' - - builtins_open = '__builtin__.open' if sys.version_info[0] < 3 else 'builtins.open' - - # Push a chart - with mock.patch(builtins_open) as mock_open: - mock_open.return_value = mock.MagicMock() - acr_helm_push(cmd, 'testregistry', './charts/mychart1-0.2.1.tgz', repository='testrepository') - mock_requests_get.assert_called_with( - method='put', - url='https://testregistry.azurecr.io/helm/v1/testrepository/_blobs/mychart1-0.2.1.tgz', - headers=get_authorization_header(EMPTY_GUID, 'password'), - params=None, - data=mock_open.return_value.__enter__.return_value, - timeout=300, - verify=mock.ANY) - - # Push a prov file - with mock.patch(builtins_open) as mock_open: - mock_open.return_value = mock.MagicMock() - acr_helm_push(cmd, 'testregistry', 'mychart1-0.2.1.tgz.prov', repository='testrepository') - mock_requests_get.assert_called_with( - method='put', - url='https://testregistry.azurecr.io/helm/v1/testrepository/_blobs/mychart1-0.2.1.tgz.prov', - headers=get_authorization_header(EMPTY_GUID, 'password'), - params=None, - data=mock_open.return_value.__enter__.return_value, - timeout=300, - verify=mock.ANY) - - # Force push a chart - with mock.patch(builtins_open) as mock_open: - mock_open.return_value = mock.MagicMock() - acr_helm_push(cmd, 'testregistry', './charts/mychart1-0.2.1.tgz', repository='testrepository', force=True) - mock_requests_get.assert_called_with( - method='patch', - url='https://testregistry.azurecr.io/helm/v1/testrepository/_blobs/mychart1-0.2.1.tgz', - headers=get_authorization_header(EMPTY_GUID, 'password'), - params=None, - data=mock_open.return_value.__enter__.return_value, - timeout=300, - verify=mock.ANY) - - def _setup_cmd(self): - cmd = mock.MagicMock() - cmd.cli_ctx = DummyCli() - mock_sku = mock.MagicMock() - mock_sku.classic.value = 'Classic' - mock_sku.basic.value = 'Basic' - mock_sku.standard.value = 'Standard' - mock_sku.premium.value = 'Premium' - cmd.get_models.return_value = mock_sku - return cmd diff --git a/src/azure-cli/azure/cli/command_modules/acr/tests/hybrid_2020_09_01/test_split_registry_and_image.py b/src/azure-cli/azure/cli/command_modules/acr/tests/hybrid_2020_09_01/test_split_registry_and_image.py deleted file mode 100644 index 4cc461abba2..00000000000 --- a/src/azure-cli/azure/cli/command_modules/acr/tests/hybrid_2020_09_01/test_split_registry_and_image.py +++ /dev/null @@ -1,50 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# -------------------------------------------------------------------------------------------- - -import unittest -import importlib - -from knack.util import CLIError - -# The path contains a reserved keyword 'import', so we need a workaround here -acr_import = importlib.import_module('azure.cli.command_modules.acr.import') - - -class TestSplitRegistryAndImage(unittest.TestCase): - - def test_split_valid_acr_source(self): - valid_acr_source = 'myregistry.azurecr.io/myrepo/myimage:latest' - login_server, image = acr_import._split_registry_and_image(valid_acr_source) - self.assertEqual((login_server, image), ('myregistry.azurecr.io', 'myrepo/myimage:latest')) - - def test_split_valid_docker_source(self): - valid_docker_source = 'docker.io/myrepo/myimage:latest' - login_server, image = acr_import._split_registry_and_image(valid_docker_source) - self.assertEqual((login_server, image), ('docker.io', 'myrepo/myimage:latest')) - - def test_split_single_login_server(self): - single_login_server = 'myregistry.azurecr.io' - with self.assertRaises(CLIError): - acr_import._split_registry_and_image(single_login_server) - - def test_split_single_image(self): - single_image = 'myrepo/myimage:latest' - with self.assertRaises(CLIError): - acr_import._split_registry_and_image(single_image) - - def test_split_single_slash(self): - single_slash = '/' - with self.assertRaises(CLIError): - acr_import._split_registry_and_image(single_slash) - - def test_split_single_dot(self): - single_dot = '.' - with self.assertRaises(CLIError): - acr_import._split_registry_and_image(single_dot) - - def test_split_empy_source(self): - empty_source = '' - with self.assertRaises(CLIError): - acr_import._split_registry_and_image(empty_source) diff --git a/src/azure-cli/azure/cli/command_modules/acr/tests/latest/test_acr_commands_mock.py b/src/azure-cli/azure/cli/command_modules/acr/tests/latest/test_acr_commands_mock.py index 9cee734a086..332a29b7dfe 100644 --- a/src/azure-cli/azure/cli/command_modules/acr/tests/latest/test_acr_commands_mock.py +++ b/src/azure-cli/azure/cli/command_modules/acr/tests/latest/test_acr_commands_mock.py @@ -9,8 +9,6 @@ from unittest import mock import sys -from azure.mgmt.containerregistry.v2019_05_01.models import Registry, Sku - from azure.cli.command_modules.acr.repository import ( acr_repository_list, acr_repository_show_tags, @@ -1192,6 +1190,8 @@ def test_get_docker_credentials(self, mock_get_raw_token, mock_requests_get, moc tenant_suffix=test_tenant_suffix) def _core_token_scenarios(self, mock_get_raw_token, mock_requests_get, mock_requests_post, mock_get_registry_by_name, registry_exists, registry_name, login_server, tenant_suffix): + from azure.mgmt.containerregistry.v2024_11_01_preview.models import Registry, Sku + cmd = self._setup_cmd() if registry_exists: