az partnercenter marketplace offer list command is not working today #30752
Labels
bug
This issue requires a change to an existing behavior in the product in order to be resolved.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
Service Attention
This issue is responsible by Azure service team.
Describe the bug
I have azure-cli installed along with the the partnercenter extension (version: 0.2.4). This command was working till yesterday but throws an error today.
Related command
az partnercenter marketplace offer list
Errors
Command group 'partnercenter marketplace offer' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
The command failed with an unexpected error. Here is the traceback:
Status Code: 401
Reason: Unauthorized
HTTP response headers: HTTPHeaderDict({'Content-Length': '0', 'x-azure-ref': '20250204T071739Z-184cf7c86786h7j4hC1HK1k4pc0000000gfg000000002f9k', 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains', 'X-Cache': 'CONFIG_NOCACHE', 'Request-ID': '142f4634-f68c-47d0-966a-6b1e8f933ecc', 'Date': 'Tue, 04 Feb 2025 07:17:39 GMT'})
Traceback (most recent call last):
File "/opt/az/lib/python3.12/site-packages/knack/cli.py", line 233, in invoke
cmd_result = self.invocation.execute(args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.12/site-packages/azure/cli/core/commands/init.py", line 666, in execute
raise ex
File "/opt/az/lib/python3.12/site-packages/azure/cli/core/commands/init.py", line 734, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.12/site-packages/azure/cli/core/commands/init.py", line 703, in _run_job
result = cmd_copy(params)
^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.12/site-packages/azure/cli/core/commands/init.py", line 336, in call
return self.handler(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.12/site-packages/azure/cli/core/commands/command_operation.py", line 120, in handler
return op(**command_args)
^^^^^^^^^^^^^^^^^^
File "/usr/local/google/home/as/.azure/cliextensions/partnercenter/azext_partnercenter/operations/marketplace_offer/custom.py", line 26, in list_offer
return client.list()
^^^^^^^^^^^^^
File "/usr/local/google/home/as/.azure/cliextensions/partnercenter/azext_partnercenter/clients/offer_client.py", line 33, in list
results = get_combined_paged_results(lambda skip_token: self._sdk.product_client.products_get(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/google/home/as/.azure/cliextensions/partnercenter/azext_partnercenter/clients/_util.py", line 34, in get_combined_paged_results
response = method_with_paged_response() if method_with_paged_response.code.co_argcount == 0 else method_with_paged_response('')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/google/home/as/.azure/cliextensions/partnercenter/azext_partnercenter/clients/offer_client.py", line 33, in
results = get_combined_paged_results(lambda skip_token: self._sdk.product_client.products_get(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/google/home/as/.azure/cliextensions/partnercenter/azext_partnercenter/vendored_sdks/v1/partnercenter/api/product_client.py", line 495, in products_get
return self.products_get_endpoint.call_with_http_info(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/google/home/as/.azure/cliextensions/partnercenter/azext_partnercenter/vendored_sdks/v1/partnercenter/api_client.py", line 879, in call_with_http_info
return self.api_client.call_api(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/google/home/as/.azure/cliextensions/partnercenter/azext_partnercenter/vendored_sdks/v1/partnercenter/api_client.py", line 421, in call_api
return self.__call_api(resource_path, method,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/google/home/as/.azure/cliextensions/partnercenter/azext_partnercenter/vendored_sdks/v1/partnercenter/api_client.py", line 205, in __call_api
raise e
File "/usr/local/google/home/as/.azure/cliextensions/partnercenter/azext_partnercenter/vendored_sdks/v1/partnercenter/api_client.py", line 198, in __call_api
response_data = self.request(
^^^^^^^^^^^^^
File "/usr/local/google/home/as/.azure/cliextensions/partnercenter/azext_partnercenter/vendored_sdks/v1/partnercenter/api_client.py", line 447, in request
return self.rest_client.GET(url,
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/google/home/as/.azure/cliextensions/partnercenter/azext_partnercenter/vendored_sdks/v1/partnercenter/rest.py", line 235, in GET
return self.request("GET", url,
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/google/home/as/.azure/cliextensions/partnercenter/azext_partnercenter/vendored_sdks/v1/partnercenter/rest.py", line 218, in request
raise UnauthorizedException(http_resp=r)
azext_partnercenter.vendored_sdks.v1.partnercenter.exceptions.UnauthorizedException: Status Code: 401
Reason: Unauthorized
HTTP response headers: HTTPHeaderDict({'Content-Length': '0', 'x-azure-ref': '20250204T071739Z-184cf7c86786h7j4hC1HK1k4pc0000000gfg000000002f9k', 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains', 'X-Cache': 'CONFIG_NOCACHE', 'Request-ID': '142f4634-f68c-47d0-966a-6b1e8f933ecc', 'Date': 'Tue, 04 Feb 2025 07:17:39 GMT'})
Issue script & Debug output
az partnercenter marketplace offer list --debug
cli.knack.cli: Command arguments: ['partnercenter', 'marketplace', 'offer', 'list', '--debug']
cli.knack.cli: init debug log:
Enable color in terminal.
cli.knack.cli: Event: Cli.PreExecute []
cli.knack.cli: Event: CommandParser.OnGlobalArgumentsCreate [<function CLILogging.on_global_arguments at 0x7f5fea6d77e0>, <function OutputProducer.on_global_arguments at 0x7f5fea4827a0>, <function CLIQuery.on_global_arguments at 0x7f5fea4c7ce0>]
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableCreate []
cli.azure.cli.core: Modules found from index for 'partnercenter': ['azext_partnercenter']
cli.azure.cli.core: Loading command modules:
cli.azure.cli.core: Name Load Time Groups Commands
cli.azure.cli.core: Total (0) 0.000 0 0
cli.azure.cli.core: These extensions are not installed and will be skipped: ['azext_ai_examples', 'azext_next']
cli.azure.cli.core: Loading extensions:
cli.azure.cli.core: Name Load Time Groups Commands Directory
cli.azure.cli.core: partnercenter 0.221 14 32 /usr/local/google/home/as/.azure/cliextensions/partnercenter
cli.azure.cli.core: Total (1) 0.221 14 32
cli.azure.cli.core: Loaded 14 groups, 32 commands.
cli.azure.cli.core: Found a match in the command table.
cli.azure.cli.core: Raw command : partnercenter marketplace offer list
cli.azure.cli.core: Command table: partnercenter marketplace offer list
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableTruncate [<function AzCliLogging.init_command_file_logging at 0x7f5fe9862de0>]
cli.azure.cli.core.azlogging: metadata file logging enabled - writing logs to '/usr/local/google/home/as/.azure/commands/2025-02-04.07-27-38.partnercenter_marketplace_offer_list.1196704.log'.
az_command_data_logger: command args: partnercenter marketplace offer list --debug
cli.knack.cli: Event: CommandInvoker.OnPreArgumentLoad [<function register_global_subscription_argument..add_subscription_parameter at 0x7f5fe98a7d80>]
cli.knack.cli: Event: CommandInvoker.OnPostArgumentLoad []
cli.knack.cli: Event: CommandInvoker.OnPostCommandTableCreate [<function register_ids_argument..add_ids_arguments at 0x7f5fe98da160>, <function register_cache_arguments..add_cache_arguments at 0x7f5fe98da2a0>, <function register_upcoming_breaking_change_info..update_breaking_change_info at 0x7f5fe98da340>]
cli.knack.cli: Event: CommandInvoker.OnCommandTableLoaded []
cli.knack.cli: Event: CommandInvoker.OnPreParseArgs []
cli.knack.cli: Event: CommandInvoker.OnPostParseArgs [<function OutputProducer.handle_output_argument at 0x7f5fea482840>, <function CLIQuery.handle_query_parameter at 0x7f5fea4c7d80>, <function register_ids_argument..parse_ids_arguments at 0x7f5fe98da200>]
az_command_data_logger: extension name: partnercenter
az_command_data_logger: extension version: 0.2.4
Command group 'partnercenter marketplace offer' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
cli.azure.cli.core.auth.persistence: build_persistence: location='/usr/local/google/home/ayushisaha/.azure/service_principal_entries.json', encrypt=False
cli.azure.cli.core.auth.persistence: build_persistence: location='/usr/local/google/home/ayushisaha/.azure/msal_token_cache.json', encrypt=False
cli.azure.cli.core.auth.binary_cache: load: /usr/local/google/home/ayushisaha/.azure/msal_http_cache.bin
urllib3.util.retry: Converted retries value: 1 -> Retry(total=1, connect=None, read=None, redirect=None, status=None)
msal.authority: Initializing with Entra authority: https://login.microsoftonline.com/<tenant_id>
msal.authority: openid_config("https://login.microsoftonline.com//v2.0/.well-known/openid-configuration") = {'token_endpoint': 'https://login.microsoftonline.com/<tenant_id>/oauth2/v2.0/token', 'token_endpoint_auth_methods_supported': ['client_secret_post', 'private_key_jwt', 'client_secret_basic'], 'jwks_uri': 'https://login.microsoftonline.com/<tenant_id>/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//v2.0', 'request_uri_parameter_supported': False, 'userinfo_endpoint': 'https://graph.microsoft.com/oidc/userinfo', 'authorization_endpoint': 'https://login.microsoftonline.com//v2.0/authorize', 'device_authorization_endpoint': 'https://login.microsoftonline.com//oauth2/v2.0/devicecode', 'http_logout_supported': True, 'frontchannel_logout_supported': True, 'end_session_endpoint': 'https://login.microsoftonline.com//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//kerberos', 'tenant_region_scope': 'AS', 'cloud_instance_name': 'microsoftonline.com', 'cloud_graph_host_name': 'graph.windows.net', 'msgraph_host': 'graph.microsoft.com', 'rbac_url': 'https://pas.windows.net'}
msal.application: Broker enabled? None
cli.azure.cli.core.auth.msal_credentials: ServicePrincipalCredential.get_token: scopes=('https://api.partner.microsoft.com/.default',), kwargs={}
msal.application: Cache hit an AT
msal.telemetry: Generate or reuse correlation_id: 7d218ffc-133c-47e7-8b5f-4e5916dd905e
msal.authority: Initializing with Entra authority: https://login.microsoftonline.com/<tenant_id>msal.authority: openid_config("https://login.microsoftonline.com/<tenant_id>/v2.0/.well-known/openid-configuration") = {'token_endpoint': 'https://login.microsoftonline.com/<tenant_id>/oauth2/v2.0/token', 'token_endpoint_auth_methods_supported': ['client_secret_post', 'private_key_jwt', 'client_secret_basic'], 'jwks_uri': 'https://login.microsoftonline.com/<tenant_id>/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<tenant_id>/v2.0', 'request_uri_parameter_supported': False, 'userinfo_endpoint': 'https://graph.microsoft.com/oidc/userinfo', 'authorization_endpoint': 'https://login.microsoftonline.com/<tenant_id>/oauth2/v2.0/authorize', 'device_authorization_endpoint': 'https://login.microsoftonline.com/<tenant_id>/oauth2/v2.0/devicecode', 'http_logout_supported': True, 'frontchannel_logout_supported': True, 'end_session_endpoint': 'https://login.microsoftonline.com/<tenant_id>/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/<tenant_id>/kerberos', 'tenant_region_scope': 'AS', 'cloud_instance_name': 'microsoftonline.com', 'cloud_graph_host_name': 'graph.windows.net', 'msgraph_host': 'graph.microsoft.com', 'rbac_url': 'https://pas.windows.net'}
msal.application: Broker enabled? None
cli.azure.cli.core.auth.msal_credentials: ServicePrincipalCredential.get_token: scopes=('https://graph.microsoft.com/.default',), kwargs={}
msal.application: Cache hit an AT
msal.telemetry: Generate or reuse correlation_id: 1faddb20-5d78-407b-a517-254d468bf28a
azext_partnercenter.vendored_sdks.v1.partnercenter.rest: response body: b''
cli.azure.cli.core.azclierror: Traceback (most recent call last):
File "/opt/az/lib/python3.12/site-packages/knack/cli.py", line 233, in invoke
cmd_result = self.invocation.execute(args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.12/site-packages/azure/cli/core/commands/init.py", line 666, in execute
raise ex
File "/opt/az/lib/python3.12/site-packages/azure/cli/core/commands/init.py", line 734, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.12/site-packages/azure/cli/core/commands/init.py", line 703, in _run_job
result = cmd_copy(params)
^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.12/site-packages/azure/cli/core/commands/init.py", line 336, in call
return self.handler(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.12/site-packages/azure/cli/core/commands/command_operation.py", line 120, in handler
return op(**command_args)
^^^^^^^^^^^^^^^^^^
File "/usr/local/google/home/ayushisaha/.azure/cliextensions/partnercenter/azext_partnercenter/operations/marketplace_offer/custom.py", line 26, in list_offer
return client.list()
^^^^^^^^^^^^^
File "/usr/local/google/home/ayushisaha/.azure/cliextensions/partnercenter/azext_partnercenter/clients/offer_client.py", line 33, in list
results = get_combined_paged_results(lambda skip_token: self._sdk.product_client.products_get(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/google/home/ayushisaha/.azure/cliextensions/partnercenter/azext_partnercenter/clients/_util.py", line 34, in get_combined_paged_results
response = method_with_paged_response() if method_with_paged_response.code.co_argcount == 0 else method_with_paged_response('')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/google/home/ayushisaha/.azure/cliextensions/partnercenter/azext_partnercenter/clients/offer_client.py", line 33, in
results = get_combined_paged_results(lambda skip_token: self._sdk.product_client.products_get(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/google/home/ayushisaha/.azure/cliextensions/partnercenter/azext_partnercenter/vendored_sdks/v1/partnercenter/api/product_client.py", line 495, in products_get
return self.products_get_endpoint.call_with_http_info(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/google/home/ayushisaha/.azure/cliextensions/partnercenter/azext_partnercenter/vendored_sdks/v1/partnercenter/api_client.py", line 879, in call_with_http_info
return self.api_client.call_api(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/google/home/ayushisaha/.azure/cliextensions/partnercenter/azext_partnercenter/vendored_sdks/v1/partnercenter/api_client.py", line 421, in call_api
return self.__call_api(resource_path, method,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/google/home/ayushisaha/.azure/cliextensions/partnercenter/azext_partnercenter/vendored_sdks/v1/partnercenter/api_client.py", line 205, in __call_api
raise e
File "/usr/local/google/home/ayushisaha/.azure/cliextensions/partnercenter/azext_partnercenter/vendored_sdks/v1/partnercenter/api_client.py", line 198, in __call_api
response_data = self.request(
^^^^^^^^^^^^^
File "/usr/local/google/home/ayushisaha/.azure/cliextensions/partnercenter/azext_partnercenter/vendored_sdks/v1/partnercenter/api_client.py", line 447, in request
return self.rest_client.GET(url,
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/google/home/ayushisaha/.azure/cliextensions/partnercenter/azext_partnercenter/vendored_sdks/v1/partnercenter/rest.py", line 235, in GET
return self.request("GET", url,
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/google/home/ayushisaha/.azure/cliextensions/partnercenter/azext_partnercenter/vendored_sdks/v1/partnercenter/rest.py", line 218, in request
raise UnauthorizedException(http_resp=r)
azext_partnercenter.vendored_sdks.v1.partnercenter.exceptions.UnauthorizedException: Status Code: 401
Reason: Unauthorized
HTTP response headers: HTTPHeaderDict({'Content-Length': '0', 'x-azure-ref': '20250204T072739Z-184cf7c8678hzvljhC1HK17e9c0000000k700000000058kh', 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains', 'X-Cache': 'CONFIG_NOCACHE', 'Request-ID': '79de22f0-1801-49fe-af08-5db1d30df3a0', 'Date': 'Tue, 04 Feb 2025 07:27:39 GMT'})
cli.azure.cli.core.azclierror: The command failed with an unexpected error. Here is the traceback:
az_command_data_logger: The command failed with an unexpected error. Here is the traceback:
cli.azure.cli.core.azclierror: Status Code: 401
Reason: Unauthorized
HTTP response headers: HTTPHeaderDict({'Content-Length': '0', 'x-azure-ref': '20250204T072739Z-184cf7c8678hzvljhC1HK17e9c0000000k700000000058kh', 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains', 'X-Cache': 'CONFIG_NOCACHE', 'Request-ID': '79de22f0-1801-49fe-af08-5db1d30df3a0', 'Date': 'Tue, 04 Feb 2025 07:27:39 GMT'})
Traceback (most recent call last):
File "/opt/az/lib/python3.12/site-packages/knack/cli.py", line 233, in invoke
cmd_result = self.invocation.execute(args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.12/site-packages/azure/cli/core/commands/init.py", line 666, in execute
raise ex
File "/opt/az/lib/python3.12/site-packages/azure/cli/core/commands/init.py", line 734, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.12/site-packages/azure/cli/core/commands/init.py", line 703, in _run_job
result = cmd_copy(params)
^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.12/site-packages/azure/cli/core/commands/init.py", line 336, in call
return self.handler(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.12/site-packages/azure/cli/core/commands/command_operation.py", line 120, in handler
return op(**command_args)
^^^^^^^^^^^^^^^^^^
File "/usr/local/google/home/ayushisaha/.azure/cliextensions/partnercenter/azext_partnercenter/operations/marketplace_offer/custom.py", line 26, in list_offer
return client.list()
^^^^^^^^^^^^^
File "/usr/local/google/home/ayushisaha/.azure/cliextensions/partnercenter/azext_partnercenter/clients/offer_client.py", line 33, in list
results = get_combined_paged_results(lambda skip_token: self._sdk.product_client.products_get(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/google/home/ayushisaha/.azure/cliextensions/partnercenter/azext_partnercenter/clients/_util.py", line 34, in get_combined_paged_results
response = method_with_paged_response() if method_with_paged_response.code.co_argcount == 0 else method_with_paged_response('')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/google/home/ayushisaha/.azure/cliextensions/partnercenter/azext_partnercenter/clients/offer_client.py", line 33, in
results = get_combined_paged_results(lambda skip_token: self._sdk.product_client.products_get(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/google/home/ayushisaha/.azure/cliextensions/partnercenter/azext_partnercenter/vendored_sdks/v1/partnercenter/api/product_client.py", line 495, in products_get
return self.products_get_endpoint.call_with_http_info(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/google/home/ayushisaha/.azure/cliextensions/partnercenter/azext_partnercenter/vendored_sdks/v1/partnercenter/api_client.py", line 879, in call_with_http_info
return self.api_client.call_api(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/google/home/ayushisaha/.azure/cliextensions/partnercenter/azext_partnercenter/vendored_sdks/v1/partnercenter/api_client.py", line 421, in call_api
return self.__call_api(resource_path, method,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/google/home/ayushisaha/.azure/cliextensions/partnercenter/azext_partnercenter/vendored_sdks/v1/partnercenter/api_client.py", line 205, in __call_api
raise e
File "/usr/local/google/home/ayushisaha/.azure/cliextensions/partnercenter/azext_partnercenter/vendored_sdks/v1/partnercenter/api_client.py", line 198, in __call_api
response_data = self.request(
^^^^^^^^^^^^^
File "/usr/local/google/home/ayushisaha/.azure/cliextensions/partnercenter/azext_partnercenter/vendored_sdks/v1/partnercenter/api_client.py", line 447, in request
return self.rest_client.GET(url,
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/google/home/ayushisaha/.azure/cliextensions/partnercenter/azext_partnercenter/vendored_sdks/v1/partnercenter/rest.py", line 235, in GET
return self.request("GET", url,
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/google/home/ayushisaha/.azure/cliextensions/partnercenter/azext_partnercenter/vendored_sdks/v1/partnercenter/rest.py", line 218, in request
raise UnauthorizedException(http_resp=r)
azext_partnercenter.vendored_sdks.v1.partnercenter.exceptions.UnauthorizedException: Status Code: 401
Reason: Unauthorized
HTTP response headers: HTTPHeaderDict({'Content-Length': '0', 'x-azure-ref': '20250204T072739Z-184cf7c8678hzvljhC1HK17e9c0000000k700000000058kh', 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains', 'X-Cache': 'CONFIG_NOCACHE', 'Request-ID': '79de22f0-1801-49fe-af08-5db1d30df3a0', 'Date': 'Tue, 04 Feb 2025 07:27:39 GMT'})
az_command_data_logger: Status Code: 401
Reason: Unauthorized
HTTP response headers: HTTPHeaderDict({'Content-Length': '0', 'x-azure-ref': '20250204T072739Z-184cf7c8678hzvljhC1HK17e9c0000000k700000000058kh', 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains', 'X-Cache': 'CONFIG_NOCACHE', 'Request-ID': '79de22f0-1801-49fe-af08-5db1d30df3a0', 'Date': 'Tue, 04 Feb 2025 07:27:39 GMT'})
Traceback (most recent call last):
File "/opt/az/lib/python3.12/site-packages/knack/cli.py", line 233, in invoke
cmd_result = self.invocation.execute(args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.12/site-packages/azure/cli/core/commands/init.py", line 666, in execute
raise ex
File "/opt/az/lib/python3.12/site-packages/azure/cli/core/commands/init.py", line 734, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.12/site-packages/azure/cli/core/commands/init.py", line 703, in _run_job
result = cmd_copy(params)
^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.12/site-packages/azure/cli/core/commands/init.py", line 336, in call
return self.handler(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.12/site-packages/azure/cli/core/commands/command_operation.py", line 120, in handler
return op(**command_args)
^^^^^^^^^^^^^^^^^^
File "/usr/local/google/home/ayushisaha/.azure/cliextensions/partnercenter/azext_partnercenter/operations/marketplace_offer/custom.py", line 26, in list_offer
return client.list()
^^^^^^^^^^^^^
File "/usr/local/google/home/ayushisaha/.azure/cliextensions/partnercenter/azext_partnercenter/clients/offer_client.py", line 33, in list
results = get_combined_paged_results(lambda skip_token: self._sdk.product_client.products_get(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/google/home/ayushisaha/.azure/cliextensions/partnercenter/azext_partnercenter/clients/_util.py", line 34, in get_combined_paged_results
response = method_with_paged_response() if method_with_paged_response.code.co_argcount == 0 else method_with_paged_response('')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/google/home/ayushisaha/.azure/cliextensions/partnercenter/azext_partnercenter/clients/offer_client.py", line 33, in
results = get_combined_paged_results(lambda skip_token: self._sdk.product_client.products_get(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/google/home/ayushisaha/.azure/cliextensions/partnercenter/azext_partnercenter/vendored_sdks/v1/partnercenter/api/product_client.py", line 495, in products_get
return self.products_get_endpoint.call_with_http_info(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/google/home/ayushisaha/.azure/cliextensions/partnercenter/azext_partnercenter/vendored_sdks/v1/partnercenter/api_client.py", line 879, in call_with_http_info
return self.api_client.call_api(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/google/home/ayushisaha/.azure/cliextensions/partnercenter/azext_partnercenter/vendored_sdks/v1/partnercenter/api_client.py", line 421, in call_api
return self.__call_api(resource_path, method,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/google/home/ayushisaha/.azure/cliextensions/partnercenter/azext_partnercenter/vendored_sdks/v1/partnercenter/api_client.py", line 205, in __call_api
raise e
File "/usr/local/google/home/ayushisaha/.azure/cliextensions/partnercenter/azext_partnercenter/vendored_sdks/v1/partnercenter/api_client.py", line 198, in __call_api
response_data = self.request(
^^^^^^^^^^^^^
File "/usr/local/google/home/ayushisaha/.azure/cliextensions/partnercenter/azext_partnercenter/vendored_sdks/v1/partnercenter/api_client.py", line 447, in request
return self.rest_client.GET(url,
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/google/home/ayushisaha/.azure/cliextensions/partnercenter/azext_partnercenter/vendored_sdks/v1/partnercenter/rest.py", line 235, in GET
return self.request("GET", url,
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/google/home/ayushisaha/.azure/cliextensions/partnercenter/azext_partnercenter/vendored_sdks/v1/partnercenter/rest.py", line 218, in request
raise UnauthorizedException(http_resp=r)
azext_partnercenter.vendored_sdks.v1.partnercenter.exceptions.UnauthorizedException: Status Code: 401
Reason: Unauthorized
HTTP response headers: HTTPHeaderDict({'Content-Length': '0', 'x-azure-ref': '20250204T072739Z-184cf7c8678hzvljhC1HK17e9c0000000k700000000058kh', 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains', 'X-Cache': 'CONFIG_NOCACHE', 'Request-ID': '79de22f0-1801-49fe-af08-5db1d30df3a0', 'Date': 'Tue, 04 Feb 2025 07:27:39 GMT'})
To check existing issues, please visit: https://github.com/Azure/azure-cli/issues
cli.knack.cli: Event: Cli.PostExecute [<function AzCliLogging.deinit_cmd_metadata_logging at 0x7f5fe9863060>]
az_command_data_logger: exit code: 1
cli.main: Command ran in 1.154 seconds (init: 0.199, invoke: 0.956)
telemetry.main: Begin splitting cli events and extra events, total events: 1
telemetry.client: Accumulated 0 events. Flush the clients.
telemetry.main: Finish splitting cli events and extra events, cli events: 1
telemetry.save: Save telemetry record of length 8363 in cache file under /usr/local/google/home/ayushisaha/.azure/telemetry/20250204072739652
telemetry.main: Begin creating telemetry upload process.
telemetry.process: Creating upload process: "/opt/az/bin/python3 /opt/az/lib/python3.12/site-packages/azure/cli/telemetry/init.py /usr/local/google/home/ayushisaha/.azure /usr/local/google/home/ayushisaha/.azure/telemetry/20250204072739652"
telemetry.process: Return from creating process 1196723
Expected behavior
It should list the offers published under my subscription and tenant.
Environment Summary
azure-cli 2.68.0
core 2.68.0
telemetry 1.1.0
Extensions:
partnercenter 0.2.4
Dependencies:
msal 1.31.1
azure-mgmt-resource 23.1.1
Python location '/opt/az/bin/python3'
Extensions directory '/usr/local/google/home/ayushisaha/.azure/cliextensions'
Python (Linux) 3.12.8 (main, Jan 8 2025, 03:37:44) [GCC 10.2.1 20210110]
Legal docs and information: aka.ms/AzureCliLegal
Additional context
No response
The text was updated successfully, but these errors were encountered: