Skip to content

cant start az interactive #32035

Description

@VigelandzoonR

Describe the bug

I cant start interactive session the other day it worked fine i uninstall/installed azure cli

Related command

az interactive

Errors

An error occurred. Pip failed with status code 3221225477. Use --debug for more information.

Issue script & Debug output

cli.azure.cli.core.azclierror: An error occurred. Pip failed with status code 3221225477. Use --debug for more information.
az_command_data_logger: An error occurred. Pip failed with status code 3221225477. Use --debug for more information.

Expected behavior

i just want interactive to work so i can practice

Environment Summary

{
"azure-cli": "2.76.0",
"azure-cli-core": "2.76.0",
"azure-cli-telemetry": "1.1.0",
"extensions": {}
}

Additional context

No response

Activity

  1. added
    bugThis issue requires a change to an existing behavior in the product in order to be resolved.
    on Sep 1, 2025
  2. yonzhan commented on Sep 1, 2025

    @yonzhan
    Collaborator

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

  3. added
    Azure CLI TeamThe command of the issue is owned by Azure CLI team
    questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that
    on Sep 1, 2025
  4. removed
    bugThis issue requires a change to an existing behavior in the product in order to be resolved.
    on Sep 1, 2025
  5. added this to the Backlog milestone on Sep 1, 2025
  6. ReaNAiveD commented on Sep 2, 2025

    @ReaNAiveD
    Member

    Hi VigelandzoonR, could you please run az interactive --debug and share the output? That’ll help us better understand the issue.

  7. VigelandzoonR commented on Sep 2, 2025

    @VigelandzoonR
    Author

    cli.knack.cli: Command arguments: ['interactive', '--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 0x00000182A1CFB2E0>, <function OutputProducer.on_global_arguments at 0x00000182A209C040>, <function CLIQuery.on_global_arguments at 0x00000182A20C1440>]
    cli.knack.cli: Event: CommandInvoker.OnPreCommandTableCreate []
    cli.azure.cli.core: Modules found from index for 'interactive': ['azure.cli.command_modules.interactive']
    cli.azure.cli.core: Loading command modules:
    cli.azure.cli.core: Name Load Time Groups Commands
    cli.azure.cli.core: interactive 0.005 1 1
    cli.azure.cli.core: Total (1) 0.005 1 1
    cli.azure.cli.core: Loaded 1 groups, 1 commands.
    cli.azure.cli.core: Found a match in the command table.
    cli.azure.cli.core: Raw command : interactive
    cli.azure.cli.core: Command table: interactive
    cli.knack.cli: Event: CommandInvoker.OnPreCommandTableTruncate [<function AzCliLogging.init_command_file_logging at 0x00000182A4399940>]
    cli.azure.cli.core.azlogging: metadata file logging enabled - writing logs to 'C:\Users\Rafae.azure\commands\2025-09-02.14-00-17.interactive.21316.log'.
    az_command_data_logger: command args: interactive --debug
    cli.knack.cli: Event: CommandInvoker.OnPreArgumentLoad [<function register_global_subscription_argument..add_subscription_parameter at 0x00000182A43DF1A0>]
    cli.knack.cli: Event: CommandInvoker.OnPostArgumentLoad []
    cli.knack.cli: Event: CommandInvoker.OnPostCommandTableCreate [<function register_ids_argument..add_ids_arguments at 0x00000182A4411300>, <function register_cache_arguments..add_cache_arguments at 0x00000182A4411440>, <function register_upcoming_breaking_change_info..update_breaking_change_info at 0x00000182A44114E0>]
    cli.knack.cli: Event: CommandInvoker.OnCommandTableLoaded []
    cli.knack.cli: Event: CommandInvoker.OnPreParseArgs []
    cli.knack.cli: Event: CommandInvoker.OnPostParseArgs [<function OutputProducer.handle_output_argument at 0x00000182A209C0E0>, <function CLIQuery.handle_query_parameter at 0x00000182A20C14E0>, <function register_ids_argument..parse_ids_arguments at 0x00000182A44113A0>]
    This command is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
    cli.azure.cli.command_modules.interactive.custom: Installing the Interactive extension...
    cli.azure.cli.core.extension.operations: Default enabled including preview versions for extension installation now. Disabled in future release. Use '--allow-preview true' to enable it specifically if needed. Use '--allow-preview false' to install stable version only.
    urllib3.connectionpool: Starting new HTTPS connection (1): aka.ms:443
    urllib3.connectionpool: https://aka.ms:443 "GET /azure-cli-extension-index-v1 HTTP/1.1" 301 0
    urllib3.connectionpool: Starting new HTTPS connection (1): azcliextensionsync.blob.core.windows.net:443
    urllib3.connectionpool: https://azcliextensionsync.blob.core.windows.net:443 "GET /index1/index.json HTTP/1.1" 200 5437093
    cli.azure.cli.core.extension._resolve: Candidates ['interactive-0.4.1-py2.py3-none-any.whl', 'interactive-0.4.3-py2.py3-none-any.whl', 'interactive-0.4.4-py2.py3-none-any.whl', 'interactive-0.4.5-py2.py3-none-any.whl', 'interactive-0.4.6-py2.py3-none-any.whl', 'interactive-0.5.0-py2.py3-none-any.whl', 'interactive-0.5.1-py2.py3-none-any.whl', 'interactive-0.5.2-py2.py3-none-any.whl', 'interactive-0.5.3-py2.py3-none-any.whl', 'interactive-1.0.0b1-py2.py3-none-any.whl']
    cli.azure.cli.core.extension._resolve: Candidates ['interactive-0.4.1-py2.py3-none-any.whl', 'interactive-0.4.3-py2.py3-none-any.whl', 'interactive-0.4.4-py2.py3-none-any.whl', 'interactive-0.4.5-py2.py3-none-any.whl', 'interactive-0.4.6-py2.py3-none-any.whl', 'interactive-0.5.0-py2.py3-none-any.whl', 'interactive-0.5.1-py2.py3-none-any.whl', 'interactive-0.5.2-py2.py3-none-any.whl', 'interactive-0.5.3-py2.py3-none-any.whl', 'interactive-1.0.0b1-py2.py3-none-any.whl']
    cli.azure.cli.core.extension._resolve: Candidates ['interactive-0.4.1-py2.py3-none-any.whl', 'interactive-0.4.3-py2.py3-none-any.whl', 'interactive-0.4.4-py2.py3-none-any.whl', 'interactive-0.4.5-py2.py3-none-any.whl', 'interactive-0.4.6-py2.py3-none-any.whl', 'interactive-0.5.0-py2.py3-none-any.whl', 'interactive-0.5.1-py2.py3-none-any.whl', 'interactive-0.5.2-py2.py3-none-any.whl', 'interactive-0.5.3-py2.py3-none-any.whl', 'interactive-1.0.0b1-py2.py3-none-any.whl']
    cli.azure.cli.core.extension._resolve: Skipping 'interactive-0.4.1-py2.py3-none-any.whl' as not compatible with this version of the CLI. Extension compatibility result: is_compatible=False cli_core_version=2.66.0 ext_version=0.4.1 min_core_required=2.0.50.dev0 max_core_required=2.0.61 min_ext_required=None
    cli.azure.cli.core.extension._resolve: Candidates ['interactive-0.4.3-py2.py3-none-any.whl', 'interactive-0.4.4-py2.py3-none-any.whl', 'interactive-0.4.5-py2.py3-none-any.whl', 'interactive-0.4.6-py2.py3-none-any.whl', 'interactive-0.5.0-py2.py3-none-any.whl', 'interactive-0.5.1-py2.py3-none-any.whl', 'interactive-0.5.2-py2.py3-none-any.whl', 'interactive-0.5.3-py2.py3-none-any.whl', 'interactive-1.0.0b1-py2.py3-none-any.whl']
    cli.azure.cli.core.extension._resolve: Chosen {'downloadUrl': 'https://azcliprod.blob.core.windows.net/cli-extensions/interactive-1.0.0b1-py2.py3-none-any.whl', 'filename': 'interactive-1.0.0b1-py2.py3-none-any.whl', 'metadata': {'azext.isPreview': True, 'azext.minCliCoreVersion': '2.0.62', 'classifiers': ['Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'Intended Audience :: System Administrators', 'Programming Language :: Python', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6'], 'extensions': {'python.details': {'contacts': [{'email': 'azpycli@microsoft.com', 'name': 'Microsoft Corporation', 'role': 'author'}], 'document_names': {'description': 'DESCRIPTION.rst'}, 'project_urls': {'Home': 'https://github.com/Azure/azure-cli-extensions/tree/main/src/interactive'}}}, 'extras': [], 'generator': 'bdist_wheel (0.30.0)', 'license': 'MIT', 'metadata_version': '2.0', 'name': 'interactive', 'run_requires': [{'requires': ['prompt-toolkit (=1.0.15)', 'prompt_toolkit=1.0.15']}], 'summary': 'Microsoft Azure Command-Line Interactive Shell', 'version': '1.0.0b1'}, 'sha256Digest': '08ebc70e1bec8a010431894c43684714ace35fb5b0764c1f4fd89deb3f928fbc'}
    cli.azure.cli.core.extension.operations: Extension source is url? True
    cli.azure.cli.core.extension.operations: Downloading https://azcliprod.blob.core.windows.net/cli-extensions/interactive-1.0.0b1-py2.py3-none-any.whl to C:\Users\Rafae\AppData\Local\Temp\tmpvfc_alma\interactive-1.0.0b1-py2.py3-none-any.whl
    urllib3.connectionpool: Starting new HTTPS connection (1): azcliprod.blob.core.windows.net:443
    urllib3.connectionpool: https://azcliprod.blob.core.windows.net:443 "GET /cli-extensions/interactive-1.0.0b1-py2.py3-none-any.whl HTTP/1.1" 200 68474
    cli.azure.cli.core.extension.operations: Downloaded to C:\Users\Rafae\AppData\Local\Temp\tmpvfc_alma\interactive-1.0.0b1-py2.py3-none-any.whl
    cli.azure.cli.core.extension.operations: Validating the extension C:\Users\Rafae\AppData\Local\Temp\tmpvfc_alma\interactive-1.0.0b1-py2.py3-none-any.whl
    cli.azure.cli.core.extension.operations: Checksum of C:\Users\Rafae\AppData\Local\Temp\tmpvfc_alma\interactive-1.0.0b1-py2.py3-none-any.whl is OK
    cli.azure.cli.core.extension.operations: Validation successful on C:\Users\Rafae\AppData\Local\Temp\tmpvfc_alma\interactive-1.0.0b1-py2.py3-none-any.whl
    cli.azure.cli.core.extension.operations: Executing pip with args: ['install', '--target', 'C:\Users\Rafae\.azure\cliextensions\interactive', 'C:\Users\Rafae\AppData\Local\Temp\tmpvfc_alma\interactive-1.0.0b1-py2.py3-none-any.whl']
    cli.azure.cli.core.extension.operations: Running: ['C:\Program Files\Microsoft SDKs\Azure\CLI2\python.exe', '-m', 'pip', 'install', '--target', 'C:\Users\Rafae\.azure\cliextensions\interactive', 'C:\Users\Rafae\AppData\Local\Temp\tmpvfc_alma\interactive-1.0.0b1-py2.py3-none-any.whl', '-vv', '--disable-pip-version-check', '--no-cache-dir']
    cli.azure.cli.core.extension.operations:
    cli.azure.cli.core.extension.operations: Command '['C:\Program Files\Microsoft SDKs\Azure\CLI2\python.exe', '-m', 'pip', 'install', '--target', 'C:\Users\Rafae\.azure\cliextensions\interactive', 'C:\Users\Rafae\AppData\Local\Temp\tmpvfc_alma\interactive-1.0.0b1-py2.py3-none-any.whl', '-vv', '--disable-pip-version-check', '--no-cache-dir']' returned non-zero exit status 3221225477.
    cli.azure.cli.core.extension.operations: Pip failed so deleting anything we might have installed at C:\Users\Rafae.azure\cliextensions\interactive
    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/interactive/custom.py", line 22, in start_shell
    File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/extension/init.py", line 340, in get_extension
    azure.cli.core.extension.ExtensionNotInstalledException: The extension interactive is not installed. Please install the extension via az extension add -n interactive.

    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 666, in execute
    File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 733, 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 703, in _run_job
    File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 336, 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 "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/interactive/custom.py", line 30, in start_shell
    File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/extension/operations.py", line 349, in add_extension
    File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/extension/operations.py", line 172, in _add_whl_ext
    knack.util.CLIError: An error occurred. Pip failed with status code 3221225477. Use --debug for more information.

    cli.azure.cli.core.azclierror: An error occurred. Pip failed with status code 3221225477. Use --debug for more information.
    az_command_data_logger: An error occurred. Pip failed with status code 3221225477. Use --debug for more information.
    cli.knack.cli: Event: Cli.PostExecute [<function AzCliLogging.deinit_cmd_metadata_logging at 0x00000182A4399BC0>]
    az_command_data_logger: exit code: 1
    cli.main: Command ran in 22.766 seconds (init: 1.088, invoke: 21.678)
    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 3855 in cache file under C:\Users\Rafae.azure\telemetry\20250902140038987
    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\Rafae.azure C:\Users\Rafae.azure\telemetry\20250902140038987"
    telemetry.process: Return from creating process 21320
    telemetry.main: Finish creating telemetry upload process.

  8. ReaNAiveD commented on Sep 3, 2025

    @ReaNAiveD
    Member

    Hi VigelandzoonR

    Could you please try downloading the extension manually from the following link:
    https://azcliprod.blob.core.windows.net/cli-extensions/interactive-1.0.0b1-py2.py3-none-any.whl
    Then install it using the command: az extension add --source <wheel_path>?

    If that doesn't work, please try the following command instead:
    C:\Program Files\Microsoft SDKs\Azure\CLI2\python.exe -m pip install --target C:\Users\Rafae\.azure\cliextensions\interactive <wheel_path> -vv --disable-pip-version-check --no-cache-dir
    Let me know what error you get, if any. Thank you!

  9. VigelandzoonR commented on Sep 3, 2025

    @VigelandzoonR
    Author

    PS C:\Users\Rafae\Downloads> az extension add --source .\interactive-1.0.0b1-py2.py3-none-any.whl
    The default value of '--allow-preview' will be changed to 'false' from 'true' in next breaking change release(2.67.0).
    Are you sure you want to install this extension? (y/n): y
    Default enabled including preview versions for extension installation now. Disabled in future release. Use '--allow-preview true' to enable it specifically if needed. Use '--allow-preview false' to install stable version only.
    An error occurred. Pip failed with status code 3221225477. Use --debug for more information.
    PS C:\Users\Rafae\Downloads> az extension add --source ./interactive-1.0.0b1-py2.py3-none-any.whl
    The default value of '--allow-preview' will be changed to 'false' from 'true' in next breaking change release(2.67.0).
    Are you sure you want to install this extension? (y/n): y
    Default enabled including preview versions for extension installation now. Disabled in future release. Use '--allow-preview true' to enable it specifically if needed. Use '--allow-preview false' to install stable version only.
    An error occurred. Pip failed with status code 3221225477. Use --debug for more information.

  10. lily-aurelia commented on Sep 24, 2025

    @lily-aurelia

    Any update on this?

  11. ReaNAiveD commented on Nov 18, 2025

    @ReaNAiveD
    Member

    Sorry for the late reply. Please try the following workaround #30700 (comment)

  12. added
    OKR CandidateThis label is used to track how many GitHub issues we have resolved for OKR purpose.
    on Jan 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Auto-AssignAuto assign by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamInteractiveaz interactiveOKR CandidateThis label is used to track how many GitHub issues we have resolved for OKR purpose.customer-reportedIssues that are reported by GitHub users external to the Azure organization.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions