Open BennoWingender opened 1 month ago
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @Azure/azure-ml-sdk @azureml-github.
@BennoWingender - I just tried to archive an environment using CLI and archived env got removed from list command
az ml environment archive -g
But I can fetch the environment using show command
az ml environment show -g
Also after archive, I am not seeing it on ML studio UI, Can you please help me what do you mean not working. Are they continue to appear on list command or UI? If yes, can you capture the debug logs for both archive command and list command and share it? please ensure to remove the sensitive information from the logs.
Hello, thank you for your fast response!
When I use the archive command I still see the environment in the output of the list command as well as in ML studio UI. These are the debug-logs from calling the method:
az ml environment archive -g --workspace-name -n test -v 5 --debug
cli.knack.cli: Command arguments: ['ml', 'environment', 'archive', '-g', '', '--workspace-name', '', '-n', 'test', '-v', '5', '--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 0x7f1037f64040>, <function OutputProducer.on_global_arguments at 0x7f1037f12200>, <function CLIQuery.on_global_arguments at 0x7f1037f4fce0>]
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableCreate []
cli.azure.cli.core: Modules found from index for 'ml': ['azext_mlv2']
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
azext_mlv2.manual.vendored_curated_sdk.azure.ai.ml._azure_environments: Using the default cloud configuration: 'AzureCloud'.
azext_mlv2.manual.vendored_curated_sdk.azure.ai.ml._azure_environments: Using the default cloud configuration: 'AzureCloud'.
azext_mlv2.manual.vendored_curated_sdk.azure.ai.ml._azure_environments: Using the default cloud configuration: 'AzureCloud'.
cli.azure.cli.core: ml 2.694 24 160 /opt/az/extensions/ml
cli.azure.cli.core: Total (1) 2.694 24 160
cli.azure.cli.core: Loaded 24 groups, 160 commands.
cli.azure.cli.core: Found a match in the command table.
cli.azure.cli.core: Raw command : ml environment archive
cli.azure.cli.core: Command table: ml environment archive
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableTruncate [<function AzCliLogging.init_command_file_logging at 0x7f1036fd4e00>]
cli.azure.cli.core.azlogging: metadata file logging enabled - writing logs to '/home/azureuser/.azure/commands/2024-07-24.09-51-51.ml_environment_archive.37074.log'.
az_command_data_logger: command args: ml environment archive -g {} --workspace-name {} -n {} -v {} --debug
cli.knack.cli: Event: CommandInvoker.OnPreArgumentLoad [<function register_global_subscription_argument.
Hi @achauhan-scc
I hope you're doing well. I wanted to check in and see if there are any updates regarding the archiving logs. It's been about two weeks since my last message, and I just wanted to make sure it didn't get overlooked.
Thank you in advance for your response.
Describe the bug The Python SDKv2 and the CLI both do not archive a given environment. https://learn.microsoft.com/en-us/azure/machine-learning/how-to-manage-environments-v2?view=azureml-api-2&tabs=cli
To Reproduce Steps to reproduce the behavior:
Expected behavior We expect the environment to be archived.
Additional context We tried to use the function on different versions. We have sufficient rights to archive environments (We can archive environments over the graphical overlay) Code does not return an error.