Azure / azure-cli

Azure Command-Line Interface
MIT License
3.94k stars 2.92k forks source link

az apim deletedservice list: Resource provider 'Microsoft.ApiManagement' failed to return collection response for type 'deletedServices' #29080

Closed PetrPospisil closed 2 months ago

PetrPospisil commented 2 months ago

Describe the bug

We just call the command and we get the error. Happening since 1.6.2024.

Related command

az account set -s f30a9808-d915-4ea0-ade5-ef9e90f20d72 az apim deletedservice list

Errors

(ProviderError) Resource provider 'Microsoft.ApiManagement' failed to return collection response for type 'deletedServices'. Code: ProviderError Message: Resource provider 'Microsoft.ApiManagement' failed to return collection response for type 'deletedServices'.

Issue script & Debug output

DEBUG: cli.knack.cli: Command arguments: ['apim', 'deletedservice', 'list', '--debug'] DEBUG: cli.knack.cli: init debug log: Color is disabled by config. DEBUG: cli.knack.cli: Event: Cli.PreExecute [] DEBUG: cli.knack.cli: Event: CommandParser.OnGlobalArgumentsCreate [<function CLILogging.on_global_arguments at 0x01FBE7A8>, <function OutputProducer.on_global_arguments at 0x022E8898>, <function CLIQuery.on_global_arguments at 0x02308668>] DEBUG: cli.knack.cli: Event: CommandInvoker.OnPreCommandTableCreate [] DEBUG: cli.azure.cli.core: Modules found from index for 'apim': ['azure.cli.command_modules.apim'] DEBUG: cli.azure.cli.core: Loading command modules: DEBUG: cli.azure.cli.core: Name Load Time Groups Commands DEBUG: cli.azure.cli.core: apim 0.009 14 68 DEBUG: cli.azure.cli.core: Total (1) 0.009 14 68 DEBUG: cli.azure.cli.core: These extensions are not installed and will be skipped: ['azext_ai_examples', 'azext_next'] DEBUG: cli.azure.cli.core: Loading extensions: DEBUG: cli.azure.cli.core: Name Load Time Groups Commands Directory DEBUG: cli.azure.cli.core: Total (0) 0.000 0 0
DEBUG: cli.azure.cli.core: Loaded 14 groups, 68 commands. DEBUG: cli.azure.cli.core: Found a match in the command table. DEBUG: cli.azure.cli.core: Raw command : apim deletedservice list DEBUG: cli.azure.cli.core: Command table: apim delete DEBUG: cli.azure.cli.core: remaining : service list DEBUG: cli.knack.cli: Event: CommandInvoker.OnPreCommandTableTruncate [<function AzCliLogging.init_command_file_logging at 0x043FE118>] DEBUG: cli.azure.cli.core.azlogging: metadata file logging enabled - writing logs to 'C:\Users\petr.pospisil.azure\commands\2024-06-03.09-36-26.apim_deletedservice_list.36464.log'. INFO: az_command_data_logger: command args: apim deletedservice list --debug DEBUG: cli.knack.cli: Event: CommandInvoker.OnPreArgumentLoad [<function register_global_subscription_argument..add_subscription_parameter at 0x0442E2F8>] DEBUG: cli.knack.cli: Event: CommandInvoker.OnPostArgumentLoad [] DEBUG: cli.knack.cli: Event: CommandInvoker.OnPostCommandTableCreate [<function register_ids_argument..add_ids_arguments at 0x0443D488>, <function register_cache_arguments..add_cache_arguments at 0x0443D528>] DEBUG: cli.knack.cli: Event: CommandInvoker.OnCommandTableLoaded [] DEBUG: cli.knack.cli: Event: CommandInvoker.OnPreParseArgs [] DEBUG: cli.knack.cli: Event: CommandInvoker.OnPostParseArgs [<function OutputProducer.handle_output_argument at 0x022E88E8>, <function CLIQuery.handle_query_parameter at 0x023086B8>, <function register_ids_argument..parse_ids_arguments at 0x0443D4D8>] DEBUG: cli.azure.cli.core.commands.client_factory: Getting management service client client_type=ApiManagementClient DEBUG: cli.azure.cli.core.auth.persistence: build_persistence: location='C:\Users\petr.pospisil\.azure\msal_token_cache.bin', encrypt=True DEBUG: cli.azure.cli.core.auth.binary_cache: load: C:\Users\petr.pospisil.azure\msal_http_cache.bin DEBUG: urllib3.util.retry: Converted retries value: 1 -> Retry(total=1, connect=None, read=None, redirect=None, status=None) DEBUG: msal.authority: openid_config = {'token_endpoint': 'https://login.microsoftonline.com/0e5a9ee0-bdf3-49b5-bfd5-795ecb3f28e1/oauth2/v2.0/token', 'token_endpoint_auth_methods_supported': ['client_secret_post', 'private_key_jwt', 'client_secret_basic'], 'jwks_uri': 'https://login.microsoftonline.com/0e5a9ee0-bdf3-49b5-bfd5-795ecb3f28e1/discovery/v2.0/keys', 'response_modes_supported': ['query', 'fragment', 'form_post'], 'subject_types_supported': ['pairwise'], 'id_token_signing_alg_values_supported': ['RS256'], 'response_types_supported': ['code', 'id_token', 'code id_token', 'id_token token'], 'scopes_supported': ['openid', 'profile', 'email', 'offline_access'], 'issuer': 'https://login.microsoftonline.com/0e5a9ee0-bdf3-49b5-bfd5-795ecb3f28e1/v2.0', 'request_uri_parameter_supported': False, 'userinfo_endpoint': 'https://graph.microsoft.com/oidc/userinfo', 'authorization_endpoint': 'https://login.microsoftonline.com/0e5a9ee0-bdf3-49b5-bfd5-795ecb3f28e1/oauth2/v2.0/authorize', 'device_authorization_endpoint': 'https://login.microsoftonline.com/0e5a9ee0-bdf3-49b5-bfd5-795ecb3f28e1/oauth2/v2.0/devicecode', 'http_logout_supported': True, 'frontchannel_logout_supported': True, 'end_session_endpoint': 'https://login.microsoftonline.com/0e5a9ee0-bdf3-49b5-bfd5-795ecb3f28e1/oauth2/v2.0/logout', 'claims_supported': ['sub', 'iss', 'cloud_instance_name', 'cloud_instance_host_name', 'cloud_graph_host_name', 'msgraph_host', 'aud', 'exp', 'iat', 'auth_time', 'acr', 'nonce', 'preferred_username', 'name', 'tid', 'ver', 'at_hash', 'c_hash', 'email'], 'kerberos_endpoint': 'https://login.microsoftonline.com/0e5a9ee0-bdf3-49b5-bfd5-795ecb3f28e1/kerberos', 'tenant_region_scope': 'EU', 'cloud_instance_name': 'microsoftonline.com', 'cloud_graph_host_name': 'graph.windows.net', 'msgraph_host': 'graph.microsoft.com', 'rbac_url': 'https://pas.windows.net'} DEBUG: msal.application: Broker enabled? False DEBUG: cli.azure.cli.core.auth.credential_adaptor: CredentialAdaptor.get_token: scopes=('https://management.core.windows.net//.default',), kwargs={} DEBUG: cli.azure.cli.core.auth.msal_authentication: UserCredential.get_token: scopes=('https://management.core.windows.net//.default',), claims=None, kwargs={} DEBUG: msal.application: Cache hit an AT DEBUG: msal.telemetry: Generate or reuse correlation_id: d937ea9a-5407-40a3-9e8d-75047d6680e6 DEBUG: cli.azure.cli.core.sdk.policies: Request URL: 'https://management.azure.com/subscriptions/f30a9808-d915-4ea0-ade5-ef9e90f20d72/providers/Microsoft.ApiManagement/deletedservices?api-version=2022-08-01' DEBUG: cli.azure.cli.core.sdk.policies: Request method: 'GET' DEBUG: cli.azure.cli.core.sdk.policies: Request headers: DEBUG: cli.azure.cli.core.sdk.policies: 'Accept': 'application/json' DEBUG: cli.azure.cli.core.sdk.policies: 'x-ms-client-request-id': 'fbcbb1d2-217b-11ef-aed6-d880837e2194' DEBUG: cli.azure.cli.core.sdk.policies: 'CommandName': 'apim deletedservice list' DEBUG: cli.azure.cli.core.sdk.policies: 'ParameterSetName': '--debug' DEBUG: cli.azure.cli.core.sdk.policies: 'User-Agent': 'AZURECLI/2.56.0 (MSI) azsdk-python-mgmt-apimanagement/4.0.0 Python/3.11.5 (Windows-10-10.0.22631-SP0)' DEBUG: cli.azure.cli.core.sdk.policies: 'Authorization': '' DEBUG: cli.azure.cli.core.sdk.policies: Request body: DEBUG: cli.azure.cli.core.sdk.policies: This request has no body DEBUG: urllib3.connectionpool: Starting new HTTPS connection (1): management.azure.com:443 DEBUG: urllib3.connectionpool: https://management.azure.com:443 "GET /subscriptions/f30a9808-d915-4ea0-ade5-ef9e90f20d72/providers/Microsoft.ApiManagement/deletedservices?api-version=2022-08-01 HTTP/1.1" 200 498 DEBUG: cli.azure.cli.core.sdk.policies: Response status: 200 DEBUG: cli.azure.cli.core.sdk.policies: Response headers: DEBUG: cli.azure.cli.core.sdk.policies: 'Cache-Control': 'no-cache' DEBUG: cli.azure.cli.core.sdk.policies: 'Pragma': 'no-cache' DEBUG: cli.azure.cli.core.sdk.policies: 'Content-Length': '498' DEBUG: cli.azure.cli.core.sdk.policies: 'Content-Type': 'application/json; charset=utf-8' DEBUG: cli.azure.cli.core.sdk.policies: 'Expires': '-1' DEBUG: cli.azure.cli.core.sdk.policies: 'x-ms-original-request-ids': 'daac160a-accd-4992-8b3c-4d8771a0e5df, daac160a-accd-4992-8b3c-4d8771a0e5df, daac160a-accd-4992-8b3c-4d8771a0e5df, daac160a-accd-4992-8b3c-4d8771a0e5df, daac160a-accd-4992-8b3c-4d8771a0e5df, daac160a-accd-4992-8b3c-4d8771a0e5df, daac160a-accd-4992-8b3c-4d8771a0e5df, daac160a-accd-4992-8b3c-4d8771a0e5df, daac160a-accd-4992-8b3c-4d8771a0e5df, daac160a-accd-4992-8b3c-4d8771a0e5df, daac160a-accd-4992-8b3c-4d8771a0e5df, daac160a-accd-4992-8b3c-4d8771a0e5df, daac160a-accd-4992-8b3c-4d8771a0e5df, daac160a-accd-4992-8b3c-4d8771a0e5df, daac160a-accd-4992-8b3c-4d8771a0e5df, daac160a-accd-4992-8b3c-4d8771a0e5df, daac160a-accd-4992-8b3c-4d8771a0e5df, daac160a-accd-4992-8b3c-4d8771a0e5df, daac160a-accd-4992-8b3c-4d8771a0e5df, daac160a-accd-4992-8b3c-4d8771a0e5df, daac160a-accd-4992-8b3c-4d8771a0e5df, daac160a-accd-4992-8b3c-4d8771a0e5df, daac160a-accd-4992-8b3c-4d8771a0e5df, daac160a-accd-4992-8b3c-4d8771a0e5df, daac160a-accd-4992-8b3c-4d8771a0e5df, daac160a-accd-4992-8b3c-4d8771a0e5df, daac160a-accd-4992-8b3c-4d8771a0e5df, daac160a-accd-4992-8b3c-4d8771a0e5df, daac160a-accd-4992-8b3c-4d8771a0e5df, daac160a-accd-4992-8b3c-4d8771a0e5df, daac160a-accd-4992-8b3c-4d8771a0e5df, daac160a-accd-4992-8b3c-4d8771a0e5df, daac160a-accd-4992-8b3c-4d8771a0e5df, daac160a-accd-4992-8b3c-4d8771a0e5df, daac160a-accd-4992-8b3c-4d8771a0e5df, daac160a-accd-4992-8b3c-4d8771a0e5df, daac160a-accd-4992-8b3c-4d8771a0e5df, daac160a-accd-4992-8b3c-4d8771a0e5df, daac160a-accd-4992-8b3c-4d8771a0e5df, daac160a-accd-4992-8b3c-4d8771a0e5df, , , daac160a-accd-4992-8b3c-4d8771a0e5df' DEBUG: cli.azure.cli.core.sdk.policies: 'x-ms-ratelimit-remaining-subscription-reads': '11999' DEBUG: cli.azure.cli.core.sdk.policies: 'x-ms-request-id': 'daac160a-accd-4992-8b3c-4d8771a0e5df' DEBUG: cli.azure.cli.core.sdk.policies: 'x-ms-correlation-request-id': 'daac160a-accd-4992-8b3c-4d8771a0e5df' DEBUG: cli.azure.cli.core.sdk.policies: 'x-ms-routing-request-id': 'GERMANYWESTCENTRAL:20240603T073628Z:daac160a-accd-4992-8b3c-4d8771a0e5df' DEBUG: cli.azure.cli.core.sdk.policies: 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains' DEBUG: cli.azure.cli.core.sdk.policies: 'X-Content-Type-Options': 'nosniff' DEBUG: cli.azure.cli.core.sdk.policies: 'X-Cache': 'CONFIG_NOCACHE' DEBUG: cli.azure.cli.core.sdk.policies: 'X-MSEdge-Ref': 'Ref A: 172066332C644FDB82A2F9CB6AD50F53 Ref B: FRA231050415033 Ref C: 2024-06-03T07:36:26Z' DEBUG: cli.azure.cli.core.sdk.policies: 'Date': 'Mon, 03 Jun 2024 07:36:27 GMT' DEBUG: cli.azure.cli.core.sdk.policies: Response content: DEBUG: cli.azure.cli.core.sdk.policies: {"value":[],"nextLink":"https://management.azure.com/subscriptions/f30a9808-d915-4ea0-ade5-ef9e90f20d72/providers/Microsoft.ApiManagement/deletedservices?api-version=2022-08-01&%24skiptoken=1ZDNSgMxFIXfJevJJI0WOwMioXRRaKrULtxeJ3fGME4SbtJBLH1340b0Der2wPn7zszjR945PybWntnzk97u15v98aB3rGVvOcfUCjGBhwEn9LmGzxNh3YVJpNNr6sjF7IJPor%2bR0KzkittmseS3CJKDxSXHvsFG9kraOyUihdlZpCSM6yik0OdaR2d%2b4oXFd8xoE9LsOkwPEB2fi6F03CupFC8NcsEqZjYv2%2fXjP5h6qRjQpIeBcIBy7RhG9IWtPphy45u%2bARqRivSbfnut7Ks%2f5K92Jrt8AQ%3d%3d"} DEBUG: cli.azure.cli.core.sdk.policies: Request URL: 'https://management.azure.com/subscriptions/f30a9808-d915-4ea0-ade5-ef9e90f20d72/providers/Microsoft.ApiManagement/deletedservices?api-version=2022-08-01&$skiptoken=1ZDNSgMxFIXfJevJJI0WOwMioXRRaKrULtxeJ3fGME4SbtJBLH1340b0Der2wPn7zszjR945PybWntnzk97u15v98aB3rGVvOcfUCjGBhwEn9LmGzxNh3YVJpNNr6sjF7IJPor%2BR0KzkittmseS3CJKDxSXHvsFG9kraOyUihdlZpCSM6yik0OdaR2d%2B4oXFd8xoE9LsOkwPEB2fi6F03CupFC8NcsEqZjYv2/XjP5h6qRjQpIeBcIBy7RhG9IWtPphy45u%2BARqRivSbfnut7Ks/5K92Jrt8AQ%3D%3D' DEBUG: cli.azure.cli.core.sdk.policies: Request method: 'GET' DEBUG: cli.azure.cli.core.sdk.policies: Request headers: DEBUG: cli.azure.cli.core.sdk.policies: 'x-ms-client-request-id': 'fbcbb1d2-217b-11ef-aed6-d880837e2194' DEBUG: cli.azure.cli.core.sdk.policies: 'CommandName': 'apim deletedservice list' DEBUG: cli.azure.cli.core.sdk.policies: 'ParameterSetName': '--debug' DEBUG: cli.azure.cli.core.sdk.policies: 'User-Agent': 'AZURECLI/2.56.0 (MSI) azsdk-python-mgmt-apimanagement/4.0.0 Python/3.11.5 (Windows-10-10.0.22631-SP0)' DEBUG: cli.azure.cli.core.sdk.policies: 'Authorization': '' DEBUG: cli.azure.cli.core.sdk.policies: Request body: DEBUG: cli.azure.cli.core.sdk.policies: This request has no body DEBUG: urllib3.connectionpool: https://management.azure.com:443 "GET /subscriptions/f30a9808-d915-4ea0-ade5-ef9e90f20d72/providers/Microsoft.ApiManagement/deletedservices?api-version=2022-08-01&$skiptoken=1ZDNSgMxFIXfJevJJI0WOwMioXRRaKrULtxeJ3fGME4SbtJBLH1340b0Der2wPn7zszjR945PybWntnzk97u15v98aB3rGVvOcfUCjGBhwEn9LmGzxNh3YVJpNNr6sjF7IJPor%2BR0KzkittmseS3CJKDxSXHvsFG9kraOyUihdlZpCSM6yik0OdaR2d%2B4oXFd8xoE9LsOkwPEB2fi6F03CupFC8NcsEqZjYv2/XjP5h6qRjQpIeBcIBy7RhG9IWtPphy45u%2BARqRivSbfnut7Ks/5K92Jrt8AQ%3D%3D HTTP/1.1" 502 155 DEBUG: cli.azure.cli.core.sdk.policies: Response status: 502 DEBUG: cli.azure.cli.core.sdk.policies: Response headers: DEBUG: cli.azure.cli.core.sdk.policies: 'Cache-Control': 'no-cache' DEBUG: cli.azure.cli.core.sdk.policies: 'Pragma': 'no-cache' DEBUG: cli.azure.cli.core.sdk.policies: 'Content-Length': '155' DEBUG: cli.azure.cli.core.sdk.policies: 'Content-Type': 'application/json; charset=utf-8' DEBUG: cli.azure.cli.core.sdk.policies: 'Expires': '-1' DEBUG: cli.azure.cli.core.sdk.policies: 'x-ms-failure-cause': 'service' DEBUG: cli.azure.cli.core.sdk.policies: 'x-ms-request-id': 'ae2f91b8-1d7d-4da6-85c3-132632c8b3f4' DEBUG: cli.azure.cli.core.sdk.policies: 'x-ms-correlation-request-id': 'ae2f91b8-1d7d-4da6-85c3-132632c8b3f4' DEBUG: cli.azure.cli.core.sdk.policies: 'x-ms-routing-request-id': 'NORTHEUROPE:20240603T073628Z:ae2f91b8-1d7d-4da6-85c3-132632c8b3f4' DEBUG: cli.azure.cli.core.sdk.policies: 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains' DEBUG: cli.azure.cli.core.sdk.policies: 'X-Content-Type-Options': 'nosniff' DEBUG: cli.azure.cli.core.sdk.policies: 'X-Cache': 'CONFIG_NOCACHE' DEBUG: cli.azure.cli.core.sdk.policies: 'X-MSEdge-Ref': 'Ref A: 196E09C78C884857A2CC5EE91D83B732 Ref B: FRA231050415033 Ref C: 2024-06-03T07:36:28Z' DEBUG: cli.azure.cli.core.sdk.policies: 'Date': 'Mon, 03 Jun 2024 07:36:28 GMT' DEBUG: cli.azure.cli.core.sdk.policies: Response content: DEBUG: cli.azure.cli.core.sdk.policies: {"error":{"code":"ProviderError","message":"Resource provider 'Microsoft.ApiManagement' failed to return collection response for type 'deletedServices'."}} DEBUG: cli.azure.cli.core.sdk.policies: Request URL: 'https://management.azure.com/subscriptions/f30a9808-d915-4ea0-ade5-ef9e90f20d72/providers/Microsoft.ApiManagement/deletedservices?api-version=2022-08-01&$skiptoken=1ZDNSgMxFIXfJevJJI0WOwMioXRRaKrULtxeJ3fGME4SbtJBLH1340b0Der2wPn7zszjR945PybWntnzk97u15v98aB3rGVvOcfUCjGBhwEn9LmGzxNh3YVJpNNr6sjF7IJPor%2BR0KzkittmseS3CJKDxSXHvsFG9kraOyUihdlZpCSM6yik0OdaR2d%2B4oXFd8xoE9LsOkwPEB2fi6F03CupFC8NcsEqZjYv2/XjP5h6qRjQpIeBcIBy7RhG9IWtPphy45u%2BARqRivSbfnut7Ks/5K92Jrt8AQ%3D%3D' DEBUG: cli.azure.cli.core.sdk.policies: Request method: 'GET' DEBUG: cli.azure.cli.core.sdk.policies: Request headers: DEBUG: cli.azure.cli.core.sdk.policies: 'x-ms-client-request-id': 'fbcbb1d2-217b-11ef-aed6-d880837e2194' DEBUG: cli.azure.cli.core.sdk.policies: 'CommandName': 'apim deletedservice list' DEBUG: cli.azure.cli.core.sdk.policies: 'ParameterSetName': '--debug' DEBUG: cli.azure.cli.core.sdk.policies: 'User-Agent': 'AZURECLI/2.56.0 (MSI) azsdk-python-mgmt-apimanagement/4.0.0 Python/3.11.5 (Windows-10-10.0.22631-SP0)' DEBUG: cli.azure.cli.core.sdk.policies: 'Authorization': '' DEBUG: cli.azure.cli.core.sdk.policies: Request body: DEBUG: cli.azure.cli.core.sdk.policies: This request has no body DEBUG: urllib3.connectionpool: https://management.azure.com:443 "GET /subscriptions/f30a9808-d915-4ea0-ade5-ef9e90f20d72/providers/Microsoft.ApiManagement/deletedservices?api-version=2022-08-01&$skiptoken=1ZDNSgMxFIXfJevJJI0WOwMioXRRaKrULtxeJ3fGME4SbtJBLH1340b0Der2wPn7zszjR945PybWntnzk97u15v98aB3rGVvOcfUCjGBhwEn9LmGzxNh3YVJpNNr6sjF7IJPor%2BR0KzkittmseS3CJKDxSXHvsFG9kraOyUihdlZpCSM6yik0OdaR2d%2B4oXFd8xoE9LsOkwPEB2fi6F03CupFC8NcsEqZjYv2/XjP5h6qRjQpIeBcIBy7RhG9IWtPphy45u%2BARqRivSbfnut7Ks/5K92Jrt8AQ%3D%3D HTTP/1.1" 502 155 DEBUG: cli.azure.cli.core.sdk.policies: Response status: 502 DEBUG: cli.azure.cli.core.sdk.policies: Response headers: DEBUG: cli.azure.cli.core.sdk.policies: 'Cache-Control': 'no-cache' DEBUG: cli.azure.cli.core.sdk.policies: 'Pragma': 'no-cache' DEBUG: cli.azure.cli.core.sdk.policies: 'Content-Length': '155' DEBUG: cli.azure.cli.core.sdk.policies: 'Content-Type': 'application/json; charset=utf-8' DEBUG: cli.azure.cli.core.sdk.policies: 'Expires': '-1' DEBUG: cli.azure.cli.core.sdk.policies: 'x-ms-failure-cause': 'service' DEBUG: cli.azure.cli.core.sdk.policies: 'x-ms-request-id': '4a909690-83ee-4b58-866d-79e0369b6076' DEBUG: cli.azure.cli.core.sdk.policies: 'x-ms-correlation-request-id': '4a909690-83ee-4b58-866d-79e0369b6076' DEBUG: cli.azure.cli.core.sdk.policies: 'x-ms-routing-request-id': 'GERMANYWESTCENTRAL:20240603T073629Z:4a909690-83ee-4b58-866d-79e0369b6076' DEBUG: cli.azure.cli.core.sdk.policies: 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains' DEBUG: cli.azure.cli.core.sdk.policies: 'X-Content-Type-Options': 'nosniff' DEBUG: cli.azure.cli.core.sdk.policies: 'X-Cache': 'CONFIG_NOCACHE' DEBUG: cli.azure.cli.core.sdk.policies: 'X-MSEdge-Ref': 'Ref A: D21B2A46E2764FB5ACC39777514F01BC Ref B: FRA231050415033 Ref C: 2024-06-03T07:36:28Z' DEBUG: cli.azure.cli.core.sdk.policies: 'Date': 'Mon, 03 Jun 2024 07:36:28 GMT' DEBUG: cli.azure.cli.core.sdk.policies: Response content: DEBUG: cli.azure.cli.core.sdk.policies: {"error":{"code":"ProviderError","message":"Resource provider 'Microsoft.ApiManagement' failed to return collection response for type 'deletedServices'."}} DEBUG: cli.azure.cli.core.sdk.policies: Request URL: 'https://management.azure.com/subscriptions/f30a9808-d915-4ea0-ade5-ef9e90f20d72/providers/Microsoft.ApiManagement/deletedservices?api-version=2022-08-01&$skiptoken=1ZDNSgMxFIXfJevJJI0WOwMioXRRaKrULtxeJ3fGME4SbtJBLH1340b0Der2wPn7zszjR945PybWntnzk97u15v98aB3rGVvOcfUCjGBhwEn9LmGzxNh3YVJpNNr6sjF7IJPor%2BR0KzkittmseS3CJKDxSXHvsFG9kraOyUihdlZpCSM6yik0OdaR2d%2B4oXFd8xoE9LsOkwPEB2fi6F03CupFC8NcsEqZjYv2/XjP5h6qRjQpIeBcIBy7RhG9IWtPphy45u%2BARqRivSbfnut7Ks/5K92Jrt8AQ%3D%3D' DEBUG: cli.azure.cli.core.sdk.policies: Request method: 'GET' DEBUG: cli.azure.cli.core.sdk.policies: Request headers: DEBUG: cli.azure.cli.core.sdk.policies: 'x-ms-client-request-id': 'fbcbb1d2-217b-11ef-aed6-d880837e2194' DEBUG: cli.azure.cli.core.sdk.policies: 'CommandName': 'apim deletedservice list' DEBUG: cli.azure.cli.core.sdk.policies: 'ParameterSetName': '--debug' DEBUG: cli.azure.cli.core.sdk.policies: 'User-Agent': 'AZURECLI/2.56.0 (MSI) azsdk-python-mgmt-apimanagement/4.0.0 Python/3.11.5 (Windows-10-10.0.22631-SP0)' DEBUG: cli.azure.cli.core.sdk.policies: 'Authorization': '' DEBUG: cli.azure.cli.core.sdk.policies: Request body: DEBUG: cli.azure.cli.core.sdk.policies: This request has no body DEBUG: urllib3.connectionpool: https://management.azure.com:443 "GET /subscriptions/f30a9808-d915-4ea0-ade5-ef9e90f20d72/providers/Microsoft.ApiManagement/deletedservices?api-version=2022-08-01&$skiptoken=1ZDNSgMxFIXfJevJJI0WOwMioXRRaKrULtxeJ3fGME4SbtJBLH1340b0Der2wPn7zszjR945PybWntnzk97u15v98aB3rGVvOcfUCjGBhwEn9LmGzxNh3YVJpNNr6sjF7IJPor%2BR0KzkittmseS3CJKDxSXHvsFG9kraOyUihdlZpCSM6yik0OdaR2d%2B4oXFd8xoE9LsOkwPEB2fi6F03CupFC8NcsEqZjYv2/XjP5h6qRjQpIeBcIBy7RhG9IWtPphy45u%2BARqRivSbfnut7Ks/5K92Jrt8AQ%3D%3D HTTP/1.1" 502 155 DEBUG: cli.azure.cli.core.sdk.policies: Response status: 502 DEBUG: cli.azure.cli.core.sdk.policies: Response headers: DEBUG: cli.azure.cli.core.sdk.policies: 'Cache-Control': 'no-cache' DEBUG: cli.azure.cli.core.sdk.policies: 'Pragma': 'no-cache' DEBUG: cli.azure.cli.core.sdk.policies: 'Content-Length': '155' DEBUG: cli.azure.cli.core.sdk.policies: 'Content-Type': 'application/json; charset=utf-8' DEBUG: cli.azure.cli.core.sdk.policies: 'Expires': '-1' DEBUG: cli.azure.cli.core.sdk.policies: 'x-ms-failure-cause': 'service' DEBUG: cli.azure.cli.core.sdk.policies: 'x-ms-request-id': '44cd22a6-e9d9-4d0c-ab5e-844b04108ecf' DEBUG: cli.azure.cli.core.sdk.policies: 'x-ms-correlation-request-id': '44cd22a6-e9d9-4d0c-ab5e-844b04108ecf' DEBUG: cli.azure.cli.core.sdk.policies: 'x-ms-routing-request-id': 'WESTEUROPE:20240603T073632Z:44cd22a6-e9d9-4d0c-ab5e-844b04108ecf' DEBUG: cli.azure.cli.core.sdk.policies: 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains' DEBUG: cli.azure.cli.core.sdk.policies: 'X-Content-Type-Options': 'nosniff' DEBUG: cli.azure.cli.core.sdk.policies: 'X-Cache': 'CONFIG_NOCACHE' DEBUG: cli.azure.cli.core.sdk.policies: 'X-MSEdge-Ref': 'Ref A: C63FDF9ECF9F458891C9FAD05661FE45 Ref B: FRA231050415033 Ref C: 2024-06-03T07:36:31Z' DEBUG: cli.azure.cli.core.sdk.policies: 'Date': 'Mon, 03 Jun 2024 07:36:31 GMT' DEBUG: cli.azure.cli.core.sdk.policies: Response content: DEBUG: cli.azure.cli.core.sdk.policies: {"error":{"code":"ProviderError","message":"Resource provider 'Microsoft.ApiManagement' failed to return collection response for type 'deletedServices'."}} DEBUG: cli.azure.cli.core.sdk.policies: Request URL: 'https://management.azure.com/subscriptions/f30a9808-d915-4ea0-ade5-ef9e90f20d72/providers/Microsoft.ApiManagement/deletedservices?api-version=2022-08-01&$skiptoken=1ZDNSgMxFIXfJevJJI0WOwMioXRRaKrULtxeJ3fGME4SbtJBLH1340b0Der2wPn7zszjR945PybWntnzk97u15v98aB3rGVvOcfUCjGBhwEn9LmGzxNh3YVJpNNr6sjF7IJPor%2BR0KzkittmseS3CJKDxSXHvsFG9kraOyUihdlZpCSM6yik0OdaR2d%2B4oXFd8xoE9LsOkwPEB2fi6F03CupFC8NcsEqZjYv2/XjP5h6qRjQpIeBcIBy7RhG9IWtPphy45u%2BARqRivSbfnut7Ks/5K92Jrt8AQ%3D%3D' DEBUG: cli.azure.cli.core.sdk.policies: Request method: 'GET' DEBUG: cli.azure.cli.core.sdk.policies: Request headers: DEBUG: cli.azure.cli.core.sdk.policies: 'x-ms-client-request-id': 'fbcbb1d2-217b-11ef-aed6-d880837e2194' DEBUG: cli.azure.cli.core.sdk.policies: 'CommandName': 'apim deletedservice list' DEBUG: cli.azure.cli.core.sdk.policies: 'ParameterSetName': '--debug' DEBUG: cli.azure.cli.core.sdk.policies: 'User-Agent': 'AZURECLI/2.56.0 (MSI) azsdk-python-mgmt-apimanagement/4.0.0 Python/3.11.5 (Windows-10-10.0.22631-SP0)' DEBUG: cli.azure.cli.core.sdk.policies: 'Authorization': '*****' DEBUG: cli.azure.cli.core.sdk.policies: Request body: DEBUG: cli.azure.cli.core.sdk.policies: This request has no body DEBUG: urllib3.connectionpool: https://management.azure.com:443 "GET /subscriptions/f30a9808-d915-4ea0-ade5-ef9e90f20d72/providers/Microsoft.ApiManagement/deletedservices?api-version=2022-08-01&$skiptoken=1ZDNSgMxFIXfJevJJI0WOwMioXRRaKrULtxeJ3fGME4SbtJBLH1340b0Der2wPn7zszjR945PybWntnzk97u15v98aB3rGVvOcfUCjGBhwEn9LmGzxNh3YVJpNNr6sjF7IJPor%2BR0KzkittmseS3CJKDxSXHvsFG9kraOyUihdlZpCSM6yik0OdaR2d%2B4oXFd8xoE9LsOkwPEB2fi6F03CupFC8NcsEqZjYv2/XjP5h6qRjQpIeBcIBy7RhG9IWtPphy45u%2BARqRivSbfnut7Ks/5K92Jrt8AQ%3D%3D HTTP/1.1" 502 155 DEBUG: cli.azure.cli.core.sdk.policies: Response status: 502 DEBUG: cli.azure.cli.core.sdk.policies: Response headers: DEBUG: cli.azure.cli.core.sdk.policies: 'Cache-Control': 'no-cache' DEBUG: cli.azure.cli.core.sdk.policies: 'Pragma': 'no-cache' DEBUG: cli.azure.cli.core.sdk.policies: 'Content-Length': '155' DEBUG: cli.azure.cli.core.sdk.policies: 'Content-Type': 'application/json; charset=utf-8' DEBUG: cli.azure.cli.core.sdk.policies: 'Expires': '-1' DEBUG: cli.azure.cli.core.sdk.policies: 'x-ms-failure-cause': 'service' DEBUG: cli.azure.cli.core.sdk.policies: 'x-ms-request-id': '3b80c0ec-d918-46c7-807f-544f68fdd5c6' DEBUG: cli.azure.cli.core.sdk.policies: 'x-ms-correlation-request-id': '3b80c0ec-d918-46c7-807f-544f68fdd5c6' DEBUG: cli.azure.cli.core.sdk.policies: 'x-ms-routing-request-id': 'POLANDCENTRAL:20240603T073636Z:3b80c0ec-d918-46c7-807f-544f68fdd5c6' DEBUG: cli.azure.cli.core.sdk.policies: 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains' DEBUG: cli.azure.cli.core.sdk.policies: 'X-Content-Type-Options': 'nosniff' DEBUG: cli.azure.cli.core.sdk.policies: 'X-Cache': 'CONFIG_NOCACHE' DEBUG: cli.azure.cli.core.sdk.policies: 'X-MSEdge-Ref': 'Ref A: C6EE2C2D4FA74CA49734F691EFE6AC3C Ref B: FRA231050415033 Ref C: 2024-06-03T07:36:35Z' DEBUG: cli.azure.cli.core.sdk.policies: 'Date': 'Mon, 03 Jun 2024 07:36:35 GMT' DEBUG: cli.azure.cli.core.sdk.policies: Response content: DEBUG: cli.azure.cli.core.sdk.policies: {"error":{"code":"ProviderError","message":"Resource provider 'Microsoft.ApiManagement' failed to return collection response for type 'deletedServices'."}} DEBUG: cli.azure.cli.core.azclierror: Traceback (most recent call last): File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/cli.py", line 233, in invoke File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 663, in execute File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 726, in _run_jobs_serially File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 710, in _run_job File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/core/paging.py", line 123, in next File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/core/paging.py", line 75, in next File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/mgmt/apimanagement/operations/_deleted_services_operations.py", line 232, in get_next azure.core.exceptions.HttpResponseError: (ProviderError) Resource provider 'Microsoft.ApiManagement' failed to return collection response for type 'deletedServices'. Code: ProviderError Message: Resource provider 'Microsoft.ApiManagement' failed to return collection response for type 'deletedServices'.

ERROR: cli.azure.cli.core.azclierror: (ProviderError) Resource provider 'Microsoft.ApiManagement' failed to return collection response for type 'deletedServices'. Code: ProviderError Message: Resource provider 'Microsoft.ApiManagement' failed to return collection response for type 'deletedServices'. ERROR: az_command_data_logger: (ProviderError) Resource provider 'Microsoft.ApiManagement' failed to return collection response for type 'deletedServices'. Code: ProviderError Message: Resource provider 'Microsoft.ApiManagement' failed to return collection response for type 'deletedServices'. DEBUG: cli.knack.cli: Event: Cli.PostExecute [<function AzCliLogging.deinit_cmd_metadata_logging at 0x043FE258>] INFO: az_command_data_logger: exit code: 1 INFO: cli.main: Command ran in 10.922 seconds (init: 0.321, invoke: 10.601)

Expected behavior

Return list of deleted APIM service without an error

Environment Summary

az cli 2.56.0 and 2.61.0

Additional context

az account set -s f30a9808-d915-4ea0-ade5-ef9e90f20d72 az apim deletedservice list FAILING

az account set -s ee913b11-6c88-41bd-8d9b-addfe5119e0b az apim deletedservice list WORKING

azure-client-tools-bot-prd[bot] commented 2 months ago
Hi @PetrPospisil Find similar issue https://github.com/Azure/azure-cli/issues/26107.
Issue title az apim deletedservice list: Resource provider 'Microsoft.ApiManagement' failed to return collection response for type 'deletedServices'
Create time 2023-04-11
Comment number 7

Please confirm if this resolves your issue.

yonzhan commented 2 months ago

Thank you for opening this issue, we will look into it.

PetrPospisil commented 2 months ago

Hi @PetrPospisil Find similar issue #26107.

Issue title az apim deletedservice list: Resource provider 'Microsoft.ApiManagement' failed to return collection response for type 'deletedServices' Create time 2023-04-11 Comment number 7

Please confirm if this resolves your issue.

Nope, new occurence.

microsoft-github-policy-service[bot] commented 2 months ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @solankisamir, @mikebudzynski, @KedarJoshi, @yingru97.

microsoft-github-policy-service[bot] commented 2 months ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @josephkwchan, @jennyhunter-msft.

microsoft-github-policy-service[bot] commented 2 months ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @solankisamir, @mikebudzynski, @KedarJoshi, @yingru97.

microsoft-github-policy-service[bot] commented 2 months ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @josephkwchan, @jennyhunter-msft.

PetrPospisil commented 2 months ago

It is working now, probably just an outage in Azure.