Open CorrenSoft opened 1 month ago
Thank you for opening this issue, we will look into it.
Hi @CorrenSoft, were you able to find a solution? I noticed https://github.com/Azure/azure-cli/issues/29985 is also open, I've forwarded that along to the appropriate team
I'm guessing it's because the katapolicygen tool doesn't support Windows. We'll make the error messaging clearer
Hi @CorrenSoft, were you able to find a solution? I noticed #29985 is also open, I've forwarded that along to the appropriate team
I'm guessing it's because the katapolicygen tool doesn't support Windows. We'll make the error messaging clearer
Ho... that is going to be a permanent restriction? And no, we went back to the version 0.3.6
, which is not reporting this error.
Just FYI, I asked a team mate to try it in Mac, in which case it has a more proper description ("The extension for MacOS has not be implemented").
Note: The error reported on the other issue was with version 0.3.6, and happened on Linux also.
Ho... that is going to be a permanent restriction? And no, we went back to the version
0.3.6
, which is not reporting this error.Just FYI, I asked a team mate to try it in Mac, in which case it has a more proper description ("The extension for MacOS has not be implemented").
Note: The error reported on the other issue was with version 0.3.6, and happened on Linux also.
Hi, yes adding Windows support is not on the roadmap. katapolicygen
only works on Linux machines. For #29985, I forwarded it onto the appropriate team and they're working on a fix
Describe the bug
Every time that i try to execute
az confcom katapolicygen
command, regardless of the parameters (including none) i got that response.Related command
az confcom katapolocygen
Errors
The extension binary file cannot be located.
Issue script & Debug output
cli.knack.cli: Command arguments: ['confcom', 'katapolicygen', '--debug'] cli.knack.cli: init debug log: Enable color in terminal. Enable VT mode. cli.knack.cli: Event: Cli.PreExecute [] cli.knack.cli: Event: CommandParser.OnGlobalArgumentsCreate [<function CLILogging.on_global_arguments at 0x0000019589E9B7E0>, <function OutputProducer.on_global_arguments at 0x000001958A026020>, <function CLIQuery.on_global_arguments at 0x000001958A053BA0>] cli.knack.cli: Event: CommandInvoker.OnPreCommandTableCreate [] cli.azure.cli.core: Modules found from index for 'confcom': ['azext_confcom'] 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: confcom 0.007 1 2 C:\Users\User.azure\cliextensions\confcom cli.azure.cli.core: Total (1) 0.007 1 2 cli.azure.cli.core: Loaded 1 groups, 2 commands. cli.azure.cli.core: Found a match in the command table. cli.azure.cli.core: Raw command : confcom katapolicygen cli.azure.cli.core: Command table: confcom katapolicygen cli.knack.cli: Event: CommandInvoker.OnPreCommandTableTruncate [<function AzCliLogging.init_command_file_logging at 0x000001958C2BFE20>] cli.azure.cli.core.azlogging: metadata file logging enabled - writing logs to 'C:\Users\User.azure\commands\2024-09-26.14-41-25.confcom_katapolicygen.22384.log'. az_command_data_logger: command args: confcom katapolicygen --debug cli.knack.cli: Event: CommandInvoker.OnPreArgumentLoad [<function register_global_subscription_argument..add_subscription_parameter at 0x000001958C354900>]
cli.knack.cli: Event: CommandInvoker.OnPostArgumentLoad []
cli.knack.cli: Event: CommandInvoker.OnPostCommandTableCreate [<function register_ids_argument..add_ids_arguments at 0x000001958C3549A0>, <function register_cache_arguments..add_cache_arguments at 0x000001958C354AE0>, <function register_upcoming_breaking_change_info..update_breaking_change_info at 0x000001958C354B80>]
cli.knack.cli: Event: CommandInvoker.OnCommandTableLoaded []
cli.knack.cli: Event: CommandInvoker.OnPreParseArgs []
cli.knack.cli: Event: CommandInvoker.OnPostParseArgs [<function OutputProducer.handle_output_argument at 0x000001958A0260C0>, <function CLIQuery.handle_query_parameter at 0x000001958A053C40>, <function register_ids_argument..parse_ids_arguments at 0x000001958C354A40>]
az_command_data_logger: extension name: confcom
az_command_data_logger: extension version: 1.0.0
cli.azext_confcom.errors: The extension binary file cannot be located.
cli.knack.cli: Event: Cli.PostExecute [<function AzCliLogging.deinit_cmd_metadata_logging at 0x000001958C2C00E0>]
az_command_data_logger: exit code: 1
cli.main: Command ran in 1.101 seconds (init: 0.281, invoke: 0.819)
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 3655 in cache file under C:\Users\User.azure\telemetry\20240926144126074
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\User.azure C:\Users\User.azure\telemetry\20240926144126074"
telemetry.process: Return from creating process 26756
telemetry.main: Finish creating telemetry upload process.
Expected behavior
The command should generate the policy.
Environment Summary
azure-cli 2.64.0
core 2.64.0 telemetry 1.1.0
Extensions: aks-preview 9.0.0b4 alb 1.0.0 attestation 1.0.0 azure-devops 1.0.1 confcom 1.0.0 k8s-extension 1.6.1
Dependencies: msal 1.30.0 azure-mgmt-resource 23.1.1
Python location 'C:\Program Files\Microsoft SDKs\Azure\CLI2\python.exe' Extensions directory 'C:\Users\User.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.
Additional context
Is the first time trying to use this extension. I went to the whole process of uninstall and re-install Azure CLI and all the extensions without any luck. If relevant, for unknown reasons i had the 32 bits version before.