Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

az containerapp update: Registering resource provider Microsoft.App ... The command failed with an unexpected error. #29225

Closed
jaliyaudagedara opened this issue Jun 21, 2024 · 10 comments
Labels
Auto-Assign Auto assign by bot bug This issue requires a change to an existing behavior in the product in order to be resolved. ContainerApp customer-reported Issues that are reported by GitHub users external to the Azure organization. Service Attention This issue is responsible by Azure service team.

Comments

@jaliyaudagedara
Copy link

jaliyaudagedara commented Jun 21, 2024

Describe the bug

az containerapp update is throwing Registering resource provider Microsoft.App ... The command failed with an unexpected error.

Related command

az containerapp update

Errors

The behavior of this command has been altered by the following extension: containerapp
Registering resource provider Microsoft.App ...
The command failed with an unexpected error. Here is the traceback:
Replacement index 1 out of range for positional args tuple
Traceback (most recent call last):
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/containerapp/_utils.py", line 273, in _register_resource_provider
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/core/tracing/decorator.py", line 76, in wrapper_use_tracer
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/mgmt/resource/resources/v2022_09_01/operations/_operations.py", line 8119, in register
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/core/pipeline/_base.py", line 213, in run
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/core/pipeline/_base.py", line 70, in send
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/core/pipeline/_base.py", line 70, in send
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/core/pipeline/_base.py", line 70, in send
  [Previous line repeated 2 more times]
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/mgmt/core/policies/_base.py", line 47, in send
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/core/pipeline/policies/_redirect.py", line 181, in send
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/core/pipeline/policies/_retry.py", line 467, in send
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/core/pipeline/policies/_authentication.py", line 113, in send
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/core/pipeline/policies/_authentication.py", line 90, in on_request
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/auth/credential_adaptor.py", line 65, in get_token
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/auth/credential_adaptor.py", line 38, in _get_token
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/auth/msal_authentication.py", line 74, in get_token
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/auth/util.py", line 139, in check_result
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/auth/util.py", line 43, in aad_error_handler
azure.cli.core.azclierror.AuthenticationError: AADSTS700082: The refresh token has expired due to inactivity. The token was issued on 2023-11-15T05:10:59.7480270Z and was inactive for 90.00:00:00. Trace ID: 71bb15ed-be77-4fee-aade-5a77af3b4900 Correlation ID: 5cda1226-081f-4f97-a838-eebc5be2d888 Timestamp: 2024-06-21 23:48:42Z

During handling of the above exception, another exception occurred:

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 664, in execute
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 731, 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 723, in _run_job
  File "C:\Users\Jaliya\.azure\cliextensions\containerapp\azext_containerapp\_client_factory.py", line 28, in _polish_bad_errors
    raise ex
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 701, in _run_job
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 334, in __call__
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py", line 121, in handler
  File "C:\Users\Jaliya\.azure\cliextensions\containerapp\azext_containerapp\custom.py", line 605, in update_containerapp
    return update_containerapp_logic(cmd=cmd,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Jaliya\.azure\cliextensions\containerapp\azext_containerapp\custom.py", line 556, in update_containerapp_logic
    containerapp_update_decorator.register_provider(CONTAINER_APPS_RP)
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/containerapp/base_resource.py", line 26, in register_provider
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/containerapp/_utils.py", line 64, in register_provider_if_needed
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/containerapp/_utils.py", line 290, in _register_resource_provider
IndexError: Replacement index 1 out of range for positional args tuple
To check existing issues, please visit: https://github.com/Azure/azure-cli/issues

Issue script & Debug output

> az containerapp update `                                                                                                                                                                   
 --name ca-inf-formio-db-sbcrbr-dev-001 `
 --resource-group rg-inf-formio-dev-001 `
 --image '<OMITTED>' `
 --set-env-vars 'AzureWebJobsServiceBus=<OMITTED>' `
 --min-replicas 1 `
 --max-replicas 1 `
 --debug

cli.knack.cli: Command arguments: ['containerapp', 'update', '--name', 'ca-inf-formio-db-sbcrbr-dev-001', '--resource-group', 'rg-inf-formio-dev-001', '--image', '<<OMITTED>>', '--set-env-vars', 'AzureWebJobsServiceBus=<OMITTED>', '--min-replicas', '1', '--max-replicas', '1', '--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 0x000002C5520DB880>, <function OutputProducer.on_global_arguments at 0x000002C5522660C0>, <function CLIQuery.on_global_arguments at 0x000002C552293C40>]
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableCreate []
cli.azure.cli.core: Modules found from index for 'containerapp': ['azext_containerapp', 'azure.cli.command_modules.containerapp', 'azure.cli.command_modules.serviceconnector']
cli.azure.cli.core: Loading command modules:
cli.azure.cli.core: Name                  Load Time    Groups  Commands
cli.azure.cli.core: containerapp              0.243        36       115
cli.azure.cli.core: serviceconnector          0.051        20       307
cli.azure.cli.core: Total (2)                 0.294        56       422
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: containerapp              0.014        47       139  C:\Users\Jaliya\.azure\cliextensions\containerapp
cli.azure.cli.core: Total (1)                 0.014        47       139
cli.azure.cli.core: Loaded 90 groups, 531 commands.
cli.azure.cli.core: Found a match in the command table.
cli.azure.cli.core: Raw command  : containerapp update
cli.azure.cli.core: Command table: containerapp update
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableTruncate [<function AzCliLogging.init_command_file_logging at 0x000002C55516E200>]
cli.azure.cli.core.azlogging: metadata file logging enabled - writing logs to 'C:\Users\Jaliya\.azure\commands\2024-06-22.11-50-21.containerapp_update.36952.log'.
az_command_data_logger: command args: containerapp update --name {} --resource-group {} --image {} --set-env-vars {} --min-replicas {} --max-replicas {} --debug
cli.knack.cli: Event: CommandInvoker.OnPreArgumentLoad [<function register_global_subscription_argument.<locals>.add_subscription_parameter at 0x000002C5551E07C0>]
cli.knack.cli: Event: CommandInvoker.OnPostArgumentLoad []
cli.knack.cli: Event: CommandInvoker.OnPostCommandTableCreate [<function register_ids_argument.<locals>.add_ids_arguments at 0x000002C5551E0860>, <function register_cache_arguments.<locals>.add_cache_arguments at 0x000002C5551E09A0>]
cli.knack.cli: Event: CommandInvoker.OnCommandTableLoaded []
cli.knack.cli: Event: CommandInvoker.OnPreParseArgs []
cli.knack.cli: Event: CommandInvoker.OnPostParseArgs [<function OutputProducer.handle_output_argument at 0x000002C552266160>, <function CLIQuery.handle_query_parameter at 0x000002C552293CE0>, <function register_ids_argument.<locals>.parse_ids_arguments at 0x000002C5551E0900>]
az_command_data_logger: extension name: containerapp
az_command_data_logger: extension version: 0.3.53
cli.azure.cli.core.commands: The behavior of this command has been altered by the following extension: containerapp
cli.azure.cli.core.commands.client_factory: Getting management service client client_type=ResourceManagementClient
cli.azure.cli.core.auth.persistence: build_persistence: location='C:\\Users\\Jaliya\\.azure\\msal_token_cache.bin', encrypt=True
cli.azure.cli.core.auth.binary_cache: load: C:\Users\Jaliya\.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/e9932d96-7106-4c5c-ba79-5f3c270ead4c
msal.authority: openid_config("https://login.microsoftonline.com/e9932d96-7106-4c5c-ba79-5f3c270ead4c/v2.0/.well-known/openid-configuration") = {'token_endpoint': 'https://login.microsoftonline.com/e9932d96-7106-4c5c-ba79-5f3c270ead4c/oauth2/v2.0/token', 'token_endpoint_auth_methods_supported': ['client_secret_post', 'private_key_jwt', 'client_secret_basic'], 'jwks_uri': 'https://login.microsoftonline.com/e9932d96-7106-4c5c-ba79-5f3c270ead4c/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/e9932d96-7106-4c5c-ba79-5f3c270ead4c/v2.0', 'request_uri_parameter_supported': False, 'userinfo_endpoint': 'https://graph.microsoft.com/oidc/userinfo', 'authorization_endpoint': 'https://login.microsoftonline.com/e9932d96-7106-4c5c-ba79-5f3c270ead4c/oauth2/v2.0/authorize', 'device_authorization_endpoint': 'https://login.microsoftonline.com/e9932d96-7106-4c5c-ba79-5f3c270ead4c/oauth2/v2.0/devicecode', 'http_logout_supported': True, 'frontchannel_logout_supported': True, 'end_session_endpoint': 'https://login.microsoftonline.com/e9932d96-7106-4c5c-ba79-5f3c270ead4c/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/e9932d96-7106-4c5c-ba79-5f3c270ead4c/kerberos', 'tenant_region_scope': 'NA', '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? True
cli.azure.cli.core.auth.credential_adaptor: CredentialAdaptor.get_token: scopes=('https://management.core.windows.net//.default',), kwargs={}
cli.azure.cli.core.auth.msal_authentication: UserCredential.get_token: scopes=('https://management.core.windows.net//.default',), claims=None, kwargs={}
msal.application: Found 3 RTs matching {'environment': 'login.microsoftonline.com', 'home_account_id': '********.e9932d96-7106-4c5c-ba79-5f3c270ead4c', 'family_id': '1'}
msal.telemetry: Generate or reuse correlation_id: e922d688-c464-4a19-89ab-d7c26ba4c464
msal.application: Cache attempts an RT
cli.azure.cli.core.auth.binary_cache: save: C:\Users\Jaliya\.azure\msal_http_cache.bin
cli.azure.cli.core.auth.binary_cache: save: C:\Users\Jaliya\.azure\msal_http_cache.bin
urllib3.connectionpool: Starting new HTTPS connection (1): login.microsoftonline.com:443
urllib3.connectionpool: https://login.microsoftonline.com:443 "POST /e9932d96-7106-4c5c-ba79-5f3c270ead4c/oauth2/v2.0/token HTTP/1.1" 400 581
cli.azure.cli.core.auth.binary_cache: save: C:\Users\Jaliya\.azure\msal_http_cache.bin
cli.azure.cli.core.auth.binary_cache: save: C:\Users\Jaliya\.azure\msal_http_cache.bin
cli.azure.cli.core.auth.binary_cache: save: C:\Users\Jaliya\.azure\msal_http_cache.bin
cli.azure.cli.core.auth.binary_cache: save: C:\Users\Jaliya\.azure\msal_http_cache.bin
msal.application: Refresh failed. invalid_grant: AADSTS50078: Presented multi-factor authentication has expired due to policies configured by your administrator, you must refresh your multi-factor authentication to access '797f4846-ba00-4fd7-ba43-dac1f8f63013'. Trace ID: 7241c656-aabf-4d9e-a386-24a203c32800 Correlation ID: e922d688-c464-4a19-89ab-d7c26ba4c464 Timestamp: 2024-06-21 23:50:22Z
msal.application: Cache attempts an RT
urllib3.connectionpool: https://login.microsoftonline.com:443 "POST /e9932d96-7106-4c5c-ba79-5f3c270ead4c/oauth2/v2.0/token HTTP/1.1" 400 583
cli.azure.cli.core.auth.binary_cache: save: C:\Users\Jaliya\.azure\msal_http_cache.bin
cli.azure.cli.core.auth.binary_cache: save: C:\Users\Jaliya\.azure\msal_http_cache.bin
msal.application: Refresh failed. invalid_grant: AADSTS700082: The refresh token has expired due to inactivity. The token was issued on 2023-11-15T06:49:32.9878147Z and was inactive for 90.00:00:00. Trace ID: b1be1592-11b7-4eab-827a-54754e3a5800 Correlation ID: e922d688-c464-4a19-89ab-d7c26ba4c464 Timestamp: 2024-06-21 23:50:23Z
msal.application: Cache attempts an RT
urllib3.connectionpool: https://login.microsoftonline.com:443 "POST /e9932d96-7106-4c5c-ba79-5f3c270ead4c/oauth2/v2.0/token HTTP/1.1" 400 583
cli.azure.cli.core.auth.binary_cache: save: C:\Users\Jaliya\.azure\msal_http_cache.bin
cli.azure.cli.core.auth.binary_cache: save: C:\Users\Jaliya\.azure\msal_http_cache.bin
msal.application: Refresh failed. invalid_grant: AADSTS700082: The refresh token has expired due to inactivity. The token was issued on 2023-11-15T05:10:59.7480270Z and was inactive for 90.00:00:00. Trace ID: b1be1592-11b7-4eab-827a-54756a3a5800 Correlation ID: e922d688-c464-4a19-89ab-d7c26ba4c464 Timestamp: 2024-06-21 23:50:24Z
msal.application: Found 3 RTs matching {'environment': 'login.microsoftonline.com', 'home_account_id': '********.e9932d96-7106-4c5c-ba79-5f3c270ead4c', 'client_id': '04b07795-8ddb-461a-bbee-02f9e1bf7b46'}
msal.telemetry: Generate or reuse correlation_id: e922d688-c464-4a19-89ab-d7c26ba4c464
msal.application: Cache attempts an RT
msal.application: Refresh failed. invalid_grant: AADSTS50078: Presented multi-factor authentication has expired due to policies configured by your administrator, you must refresh your multi-factor authentication to access '797f4846-ba00-4fd7-ba43-dac1f8f63013'. Trace ID: 7241c656-aabf-4d9e-a386-24a203c32800 Correlation ID: e922d688-c464-4a19-89ab-d7c26ba4c464 Timestamp: 2024-06-21 23:50:22Z
msal.application: Cache attempts an RT
msal.application: Refresh failed. invalid_grant: AADSTS700082: The refresh token has expired due to inactivity. The token was issued on 2023-11-15T06:49:32.9878147Z and was inactive for 90.00:00:00. Trace ID: b1be1592-11b7-4eab-827a-54754e3a5800 Correlation ID: e922d688-c464-4a19-89ab-d7c26ba4c464 Timestamp: 2024-06-21 23:50:23Z
msal.application: Cache attempts an RT
msal.application: Refresh failed. invalid_grant: AADSTS700082: The refresh token has expired due to inactivity. The token was issued on 2023-11-15T05:10:59.7480270Z and was inactive for 90.00:00:00. Trace ID: b1be1592-11b7-4eab-827a-54756a3a5800 Correlation ID: e922d688-c464-4a19-89ab-d7c26ba4c464 Timestamp: 2024-06-21 23:50:24Z
cli.azure.cli.core.commands.client_factory: Getting management service client client_type=ResourceManagementClient
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/e9932d96-7106-4c5c-ba79-5f3c270ead4c
msal.authority: openid_config("https://login.microsoftonline.com/e9932d96-7106-4c5c-ba79-5f3c270ead4c/v2.0/.well-known/openid-configuration") = {'token_endpoint': 'https://login.microsoftonline.com/e9932d96-7106-4c5c-ba79-5f3c270ead4c/oauth2/v2.0/token', 'token_endpoint_auth_methods_supported': ['client_secret_post', 'private_key_jwt', 'client_secret_basic'], 'jwks_uri': 'https://login.microsoftonline.com/e9932d96-7106-4c5c-ba79-5f3c270ead4c/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/e9932d96-7106-4c5c-ba79-5f3c270ead4c/v2.0', 'request_uri_parameter_supported': False, 'userinfo_endpoint': 'https://graph.microsoft.com/oidc/userinfo', 'authorization_endpoint': 'https://login.microsoftonline.com/e9932d96-7106-4c5c-ba79-5f3c270ead4c/oauth2/v2.0/authorize', 'device_authorization_endpoint': 'https://login.microsoftonline.com/e9932d96-7106-4c5c-ba79-5f3c270ead4c/oauth2/v2.0/devicecode', 'http_logout_supported': True, 'frontchannel_logout_supported': True, 'end_session_endpoint': 'https://login.microsoftonline.com/e9932d96-7106-4c5c-ba79-5f3c270ead4c/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/e9932d96-7106-4c5c-ba79-5f3c270ead4c/kerberos', 'tenant_region_scope': 'NA', '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? True
cli.azure.cli.core.auth.credential_adaptor: CredentialAdaptor.get_token: scopes=('https://management.core.windows.net//.default',), kwargs={}
cli.azure.cli.core.auth.msal_authentication: UserCredential.get_token: scopes=('https://management.core.windows.net//.default',), claims=None, kwargs={}
msal.application: Found 3 RTs matching {'environment': 'login.microsoftonline.com', 'home_account_id': '********.e9932d96-7106-4c5c-ba79-5f3c270ead4c', 'family_id': '1'}
msal.telemetry: Generate or reuse correlation_id: 55bed0b7-a967-4b7e-b61d-adc040753871
msal.application: Cache attempts an RT
msal.application: Refresh failed. invalid_grant: AADSTS50078: Presented multi-factor authentication has expired due to policies configured by your administrator, you must refresh your multi-factor authentication to access '797f4846-ba00-4fd7-ba43-dac1f8f63013'. Trace ID: 7241c656-aabf-4d9e-a386-24a203c32800 Correlation ID: e922d688-c464-4a19-89ab-d7c26ba4c464 Timestamp: 2024-06-21 23:50:22Z
msal.application: Cache attempts an RT
msal.application: Refresh failed. invalid_grant: AADSTS700082: The refresh token has expired due to inactivity. The token was issued on 2023-11-15T06:49:32.9878147Z and was inactive for 90.00:00:00. Trace ID: b1be1592-11b7-4eab-827a-54754e3a5800 Correlation ID: e922d688-c464-4a19-89ab-d7c26ba4c464 Timestamp: 2024-06-21 23:50:23Z
msal.application: Cache attempts an RT
msal.application: Refresh failed. invalid_grant: AADSTS700082: The refresh token has expired due to inactivity. The token was issued on 2023-11-15T05:10:59.7480270Z and was inactive for 90.00:00:00. Trace ID: b1be1592-11b7-4eab-827a-54756a3a5800 Correlation ID: e922d688-c464-4a19-89ab-d7c26ba4c464 Timestamp: 2024-06-21 23:50:24Z
msal.application: Found 3 RTs matching {'environment': 'login.microsoftonline.com', 'home_account_id': '********.e9932d96-7106-4c5c-ba79-5f3c270ead4c', 'client_id': '04b07795-8ddb-461a-bbee-02f9e1bf7b46'}
msal.telemetry: Generate or reuse correlation_id: 55bed0b7-a967-4b7e-b61d-adc040753871
msal.application: Cache attempts an RT
msal.application: Refresh failed. invalid_grant: AADSTS50078: Presented multi-factor authentication has expired due to policies configured by your administrator, you must refresh your multi-factor authentication to access '797f4846-ba00-4fd7-ba43-dac1f8f63013'. Trace ID: 7241c656-aabf-4d9e-a386-24a203c32800 Correlation ID: e922d688-c464-4a19-89ab-d7c26ba4c464 Timestamp: 2024-06-21 23:50:22Z
msal.application: Cache attempts an RT
msal.application: Refresh failed. invalid_grant: AADSTS700082: The refresh token has expired due to inactivity. The token was issued on 2023-11-15T06:49:32.9878147Z and was inactive for 90.00:00:00. Trace ID: b1be1592-11b7-4eab-827a-54754e3a5800 Correlation ID: e922d688-c464-4a19-89ab-d7c26ba4c464 Timestamp: 2024-06-21 23:50:23Z
msal.application: Cache attempts an RT
msal.application: Refresh failed. invalid_grant: AADSTS700082: The refresh token has expired due to inactivity. The token was issued on 2023-11-15T05:10:59.7480270Z and was inactive for 90.00:00:00. Trace ID: b1be1592-11b7-4eab-827a-54756a3a5800 Correlation ID: e922d688-c464-4a19-89ab-d7c26ba4c464 Timestamp: 2024-06-21 23:50:24Z
cli.azure.cli.command_modules.containerapp._utils: Registering resource provider Microsoft.App ...
cli.azure.cli.core.commands.client_factory: Getting management service client client_type=ResourceManagementClient
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/e9932d96-7106-4c5c-ba79-5f3c270ead4c
msal.authority: openid_config("https://login.microsoftonline.com/e9932d96-7106-4c5c-ba79-5f3c270ead4c/v2.0/.well-known/openid-configuration") = {'token_endpoint': 'https://login.microsoftonline.com/e9932d96-7106-4c5c-ba79-5f3c270ead4c/oauth2/v2.0/token', 'token_endpoint_auth_methods_supported': ['client_secret_post', 'private_key_jwt', 'client_secret_basic'], 'jwks_uri': 'https://login.microsoftonline.com/e9932d96-7106-4c5c-ba79-5f3c270ead4c/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/e9932d96-7106-4c5c-ba79-5f3c270ead4c/v2.0', 'request_uri_parameter_supported': False, 'userinfo_endpoint': 'https://graph.microsoft.com/oidc/userinfo', 'authorization_endpoint': 'https://login.microsoftonline.com/e9932d96-7106-4c5c-ba79-5f3c270ead4c/oauth2/v2.0/authorize', 'device_authorization_endpoint': 'https://login.microsoftonline.com/e9932d96-7106-4c5c-ba79-5f3c270ead4c/oauth2/v2.0/devicecode', 'http_logout_supported': True, 'frontchannel_logout_supported': True, 'end_session_endpoint': 'https://login.microsoftonline.com/e9932d96-7106-4c5c-ba79-5f3c270ead4c/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/e9932d96-7106-4c5c-ba79-5f3c270ead4c/kerberos', 'tenant_region_scope': 'NA', '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? True
cli.azure.cli.core.auth.credential_adaptor: CredentialAdaptor.get_token: scopes=('https://management.core.windows.net//.default',), kwargs={}
cli.azure.cli.core.auth.msal_authentication: UserCredential.get_token: scopes=('https://management.core.windows.net//.default',), claims=None, kwargs={}
msal.application: Found 3 RTs matching {'environment': 'login.microsoftonline.com', 'home_account_id': '********.e9932d96-7106-4c5c-ba79-5f3c270ead4c', 'family_id': '1'}
msal.telemetry: Generate or reuse correlation_id: 22631c96-5974-476a-a841-9cff54e05efc
msal.application: Cache attempts an RT
msal.application: Refresh failed. invalid_grant: AADSTS50078: Presented multi-factor authentication has expired due to policies configured by your administrator, you must refresh your multi-factor authentication to access '797f4846-ba00-4fd7-ba43-dac1f8f63013'. Trace ID: 7241c656-aabf-4d9e-a386-24a203c32800 Correlation ID: e922d688-c464-4a19-89ab-d7c26ba4c464 Timestamp: 2024-06-21 23:50:22Z
msal.application: Cache attempts an RT
msal.application: Refresh failed. invalid_grant: AADSTS700082: The refresh token has expired due to inactivity. The token was issued on 2023-11-15T06:49:32.9878147Z and was inactive for 90.00:00:00. Trace ID: b1be1592-11b7-4eab-827a-54754e3a5800 Correlation ID: e922d688-c464-4a19-89ab-d7c26ba4c464 Timestamp: 2024-06-21 23:50:23Z
msal.application: Cache attempts an RT
msal.application: Refresh failed. invalid_grant: AADSTS700082: The refresh token has expired due to inactivity. The token was issued on 2023-11-15T05:10:59.7480270Z and was inactive for 90.00:00:00. Trace ID: b1be1592-11b7-4eab-827a-54756a3a5800 Correlation ID: e922d688-c464-4a19-89ab-d7c26ba4c464 Timestamp: 2024-06-21 23:50:24Z
msal.application: Found 3 RTs matching {'environment': 'login.microsoftonline.com', 'home_account_id': '********.e9932d96-7106-4c5c-ba79-5f3c270ead4c', 'client_id': '04b07795-8ddb-461a-bbee-02f9e1bf7b46'}
msal.telemetry: Generate or reuse correlation_id: 22631c96-5974-476a-a841-9cff54e05efc
msal.application: Cache attempts an RT
msal.application: Refresh failed. invalid_grant: AADSTS50078: Presented multi-factor authentication has expired due to policies configured by your administrator, you must refresh your multi-factor authentication to access '797f4846-ba00-4fd7-ba43-dac1f8f63013'. Trace ID: 7241c656-aabf-4d9e-a386-24a203c32800 Correlation ID: e922d688-c464-4a19-89ab-d7c26ba4c464 Timestamp: 2024-06-21 23:50:22Z
msal.application: Cache attempts an RT
msal.application: Refresh failed. invalid_grant: AADSTS700082: The refresh token has expired due to inactivity. The token was issued on 2023-11-15T06:49:32.9878147Z and was inactive for 90.00:00:00. Trace ID: b1be1592-11b7-4eab-827a-54754e3a5800 Correlation ID: e922d688-c464-4a19-89ab-d7c26ba4c464 Timestamp: 2024-06-21 23:50:23Z
msal.application: Cache attempts an RT
msal.application: Refresh failed. invalid_grant: AADSTS700082: The refresh token has expired due to inactivity. The token was issued on 2023-11-15T05:10:59.7480270Z and was inactive for 90.00:00:00. Trace ID: b1be1592-11b7-4eab-827a-54756a3a5800 Correlation ID: e922d688-c464-4a19-89ab-d7c26ba4c464 Timestamp: 2024-06-21 23:50:24Z
cli.azure.cli.core.azclierror: Traceback (most recent call last):
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/containerapp/_utils.py", line 273, in _register_resource_provider
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/core/tracing/decorator.py", line 76, in wrapper_use_tracer
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/mgmt/resource/resources/v2022_09_01/operations/_operations.py", line 8119, in register
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/core/pipeline/_base.py", line 213, in run
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/core/pipeline/_base.py", line 70, in send
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/core/pipeline/_base.py", line 70, in send
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/core/pipeline/_base.py", line 70, in send
  [Previous line repeated 2 more times]
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/mgmt/core/policies/_base.py", line 47, in send
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/core/pipeline/policies/_redirect.py", line 181, in send
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/core/pipeline/policies/_retry.py", line 467, in send
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/core/pipeline/policies/_authentication.py", line 113, in send
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/core/pipeline/policies/_authentication.py", line 90, in on_request
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/auth/credential_adaptor.py", line 65, in get_token
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/auth/credential_adaptor.py", line 38, in _get_token
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/auth/msal_authentication.py", line 74, in get_token
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/auth/util.py", line 139, in check_result
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/auth/util.py", line 43, in aad_error_handler
azure.cli.core.azclierror.AuthenticationError: AADSTS700082: The refresh token has expired due to inactivity. The token was issued on 2023-11-15T05:10:59.7480270Z and was inactive for 90.00:00:00. Trace ID: b1be1592-11b7-4eab-827a-54756a3a5800 Correlation ID: e922d688-c464-4a19-89ab-d7c26ba4c464 Timestamp: 2024-06-21 23:50:24Z

During handling of the above exception, another exception occurred:

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 664, in execute
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 731, 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 723, in _run_job
  File "C:\Users\Jaliya\.azure\cliextensions\containerapp\azext_containerapp\_client_factory.py", line 28, in _polish_bad_errors
    raise ex
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 701, in _run_job
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 334, in __call__
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py", line 121, in handler
  File "C:\Users\Jaliya\.azure\cliextensions\containerapp\azext_containerapp\custom.py", line 605, in update_containerapp
    return update_containerapp_logic(cmd=cmd,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Jaliya\.azure\cliextensions\containerapp\azext_containerapp\custom.py", line 556, in update_containerapp_logic
    containerapp_update_decorator.register_provider(CONTAINER_APPS_RP)
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/containerapp/base_resource.py", line 26, in register_provider
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/containerapp/_utils.py", line 64, in register_provider_if_needed
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/containerapp/_utils.py", line 290, in _register_resource_provider
IndexError: Replacement index 1 out of range for positional args tuple

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: Replacement index 1 out of range for positional args tuple
Traceback (most recent call last):
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/containerapp/_utils.py", line 273, in _register_resource_provider
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/core/tracing/decorator.py", line 76, in wrapper_use_tracer
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/mgmt/resource/resources/v2022_09_01/operations/_operations.py", line 8119, in register
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/core/pipeline/_base.py", line 213, in run
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/core/pipeline/_base.py", line 70, in send
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/core/pipeline/_base.py", line 70, in send
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/core/pipeline/_base.py", line 70, in send
  [Previous line repeated 2 more times]
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/mgmt/core/policies/_base.py", line 47, in send
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/core/pipeline/policies/_redirect.py", line 181, in send
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/core/pipeline/policies/_retry.py", line 467, in send
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/core/pipeline/policies/_authentication.py", line 113, in send
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/core/pipeline/policies/_authentication.py", line 90, in on_request
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/auth/credential_adaptor.py", line 65, in get_token
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/auth/credential_adaptor.py", line 38, in _get_token
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/auth/msal_authentication.py", line 74, in get_token
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/auth/util.py", line 139, in check_result
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/auth/util.py", line 43, in aad_error_handler
azure.cli.core.azclierror.AuthenticationError: AADSTS700082: The refresh token has expired due to inactivity. The token was issued on 2023-11-15T05:10:59.7480270Z and was inactive for 90.00:00:00. Trace ID: b1be1592-11b7-4eab-827a-54756a3a5800 Correlation ID: e922d688-c464-4a19-89ab-d7c26ba4c464 Timestamp: 2024-06-21 23:50:24Z

During handling of the above exception, another exception occurred:

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 664, in execute
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 731, 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 723, in _run_job
  File "C:\Users\Jaliya\.azure\cliextensions\containerapp\azext_containerapp\_client_factory.py", line 28, in _polish_bad_errors
    raise ex
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 701, in _run_job
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 334, in __call__
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py", line 121, in handler
  File "C:\Users\Jaliya\.azure\cliextensions\containerapp\azext_containerapp\custom.py", line 605, in update_containerapp
    return update_containerapp_logic(cmd=cmd,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Jaliya\.azure\cliextensions\containerapp\azext_containerapp\custom.py", line 556, in update_containerapp_logic
    containerapp_update_decorator.register_provider(CONTAINER_APPS_RP)
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/containerapp/base_resource.py", line 26, in register_provider
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/containerapp/_utils.py", line 64, in register_provider_if_needed
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/containerapp/_utils.py", line 290, in _register_resource_provider
IndexError: Replacement index 1 out of range for positional args tuple
az_command_data_logger: Replacement index 1 out of range for positional args tuple
Traceback (most recent call last):
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/containerapp/_utils.py", line 273, in _register_resource_provider
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/core/tracing/decorator.py", line 76, in wrapper_use_tracer
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/mgmt/resource/resources/v2022_09_01/operations/_operations.py", line 8119, in register
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/core/pipeline/_base.py", line 213, in run
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/core/pipeline/_base.py", line 70, in send
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/core/pipeline/_base.py", line 70, in send
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/core/pipeline/_base.py", line 70, in send
  [Previous line repeated 2 more times]
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/mgmt/core/policies/_base.py", line 47, in send
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/core/pipeline/policies/_redirect.py", line 181, in send
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/core/pipeline/policies/_retry.py", line 467, in send
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/core/pipeline/policies/_authentication.py", line 113, in send
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/core/pipeline/policies/_authentication.py", line 90, in on_request
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/auth/credential_adaptor.py", line 65, in get_token
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/auth/credential_adaptor.py", line 38, in _get_token
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/auth/msal_authentication.py", line 74, in get_token
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/auth/util.py", line 139, in check_result
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/auth/util.py", line 43, in aad_error_handler
azure.cli.core.azclierror.AuthenticationError: AADSTS700082: The refresh token has expired due to inactivity. The token was issued on 2023-11-15T05:10:59.7480270Z and was inactive for 90.00:00:00. Trace ID: b1be1592-11b7-4eab-827a-54756a3a5800 Correlation ID: e922d688-c464-4a19-89ab-d7c26ba4c464 Timestamp: 2024-06-21 23:50:24Z

During handling of the above exception, another exception occurred:

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 664, in execute
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 731, 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 723, in _run_job
  File "C:\Users\Jaliya\.azure\cliextensions\containerapp\azext_containerapp\_client_factory.py", line 28, in _polish_bad_errors
    raise ex
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 701, in _run_job
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 334, in __call__
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py", line 121, in handler
  File "C:\Users\Jaliya\.azure\cliextensions\containerapp\azext_containerapp\custom.py", line 605, in update_containerapp
    return update_containerapp_logic(cmd=cmd,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Jaliya\.azure\cliextensions\containerapp\azext_containerapp\custom.py", line 556, in update_containerapp_logic
    containerapp_update_decorator.register_provider(CONTAINER_APPS_RP)
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/containerapp/base_resource.py", line 26, in register_provider
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/containerapp/_utils.py", line 64, in register_provider_if_needed
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/containerapp/_utils.py", line 290, in _register_resource_provider
IndexError: Replacement index 1 out of range for positional args tuple
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 0x000002C55516E480>]
az_command_data_logger: exit code: 1
cli.__main__: Command ran in 3.230 seconds (init: 0.257, invoke: 2.972)
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 7949 in cache
telemetry.main: Begin creating telemetry upload process.
telemetry.process: Creating upload process: "C:\Program Files\Microsoft SDKs\Azure\CLI2\python.exe C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\azure\cli\telemetry\__init__.pyc C:\Users\Jaliya\.azure"
telemetry.process: Return from creating process
telemetry.main: Finish creating telemetry upload process.

Expected behavior

When the same script is executed through Azure DevOps Pipeline, it works as expected. However, there the agent is ubuntu-latest and following is az --version.

> /usr/bin/az --version
azure-cli                         2.61.0

core                              2.61.0
telemetry                          1.1.0

Extensions:
azure-devops                       1.0.1

Dependencies:
msal                              1.28.0
azure-mgmt-resource               23.1.1

Python location '/opt/az/bin/python3'
Extensions directory '/opt/az/azcliextensions'

Python (Linux) 3.11.8 (main, May 16 2024, 03:47:28) [GCC 11.4.0]

Legal docs and information: aka.ms/AzureCliLegal


Your CLI is up-to-date.

NOTE: It doesn't use containerapp extension.

Environment Summary

> az --version
azure-cli                         2.61.0

core                              2.61.0
telemetry                          1.1.0

Extensions:
containerapp                      0.3.53
log-analytics                      0.2.2

Dependencies:
msal                              1.28.0
azure-mgmt-resource               23.1.1

Python location 'C:\Program Files\Microsoft SDKs\Azure\CLI2\python.exe'
Extensions directory 'C:\Users\Jaliya\.azure\cliextensions'

Python (Windows) 3.11.8 (tags/v3.11.8:db85d51, Feb  6 2024, 22:03:32) [MSC v.1937 64 bit (AMD64)]

Legal docs and information: aka.ms/AzureCliLegal

Your CLI is up-to-date.

NOTE: It doesn't use the

Additional context

No response

@jaliyaudagedara jaliyaudagedara added the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Jun 21, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added customer-reported Issues that are reported by GitHub users external to the Azure organization. Auto-Assign Auto assign by bot ContainerApp Service Attention This issue is responsible by Azure service team. labels Jun 21, 2024
@yonzhan
Copy link
Collaborator

yonzhan commented Jun 21, 2024

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

Copy link
Contributor

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @calvinsID.

@Greedygre
Copy link
Contributor

Hi @jaliyaudagedara

As you can see the error is:
azure.cli.core.azclierror.AuthenticationError: AADSTS700082: The refresh token has expired due to inactivity. The token was issued on 2023-11-15T05:10:59.7480270Z and was inactive for 90.00:00:00. Trace ID: b1be1592-11b7-4eab-827a-54756a3a5800 Correlation ID: e922d688-c464-4a19-89ab-d7c26ba4c464 Timestamp: 2024-06-21 23:50:24Z

Please re-run az login.

@jaliyaudagedara
Copy link
Author

jaliyaudagedara commented Jul 2, 2024

yeah, but az login doesn’t work as well #29226

@Greedygre
Copy link
Contributor

yeah, but az login doesn’t work as well. #29226

I am not sure why you executed az login failed, can you show your configure with az configure -l ?

@jaliyaudagedara
Copy link
Author

sure, this is the output:
image

@jaliyaudagedara
Copy link
Author

Seems az login issue is known and fix is coming: #28997

@Greedygre
Copy link
Contributor

Greedygre commented Jul 2, 2024

Seems az login issue is known and fix is coming: #28997

If so, you can try az upgrade to update to 2.62.0 and check if it fix. Thanks.

@jaliyaudagedara
Copy link
Author

sure, will check and update here once it's released on 2024-07-09

@jaliyaudagedara
Copy link
Author

@Greedygre

I got az login working and tried again. And this time it works.

Closing the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Auto-Assign Auto assign by bot bug This issue requires a change to an existing behavior in the product in order to be resolved. ContainerApp customer-reported Issues that are reported by GitHub users external to the Azure organization. Service Attention This issue is responsible by Azure service team.
Projects
None yet
Development

No branches or pull requests

3 participants