-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Description
Describe the bug
We are running azure cli in our azure devops pipeline to tag some preexisting blobs and then upload new blobs into a storage account. This worked without a problem when we last ran the pipeline about 2 weeks ago. But now we are getting Unable to get API version for type 'ResourceType.DATA_STORAGE_TABLE' in profile 'latest' when we run the az storage blob tag set command
Related command
az storage blob tag set --account-key $accountKey --account-name $accountName --container-name '$web' --name "$blob" --tags deprecated=true
Errors
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 564, in execute
self.commands_loader.load_arguments(command)
File "/opt/az/lib/python3.12/site-packages/azure/cli/core/__init__.py", line 553, in load_arguments
loader.load_arguments(command) # this adds entries to the argument registries
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/azcliextensions/storage-blob-preview/azext_storage_blob_preview/__init__.py", line 33, in load_arguments
load_arguments(self, command)
File "/opt/az/azcliextensions/storage-blob-preview/azext_storage_blob_preview/_params.py", line 24, in load_arguments
t_table_service = self.get_sdk('_table_service_client#TableServiceClient',
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.12/site-packages/azure/cli/core/__init__.py", line 801, in get_sdk
return get_sdk(self.cli_ctx, kwargs.pop('resource_type', self._get_resource_type()),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.12/site-packages/azure/cli/core/profiles/__init__.py", line 91, in get_sdk
return _sdk_get_versioned_sdk(cli_ctx.cloud.profile, resource_type, *attr_args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.12/site-packages/azure/cli/core/profiles/_shared.py", line 510, in get_versioned_sdk
sdk_path = get_versioned_sdk_path(api_profile, resource_type, operation_group)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.12/site-packages/azure/cli/core/profiles/_shared.py", line 496, in get_versioned_sdk_path
api_version = get_api_version(api_profile, resource_type)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.12/site-packages/azure/cli/core/profiles/_shared.py", line 328, in get_api_version
raise APIVersionException(resource_type, api_profile)
azure.cli.core.profiles._shared.APIVersionException: Unable to get API version for type 'ResourceType.DATA_STORAGE_TABLE' in profile 'latest'
To check existing issues, please visit: https://github.com/Azure/azure-cli/issues
Issue script & Debug output
DEBUG: cli.knack.cli: Command arguments: ['storage', 'blob', 'tag', 'set', '--account-key', 'REDACTED', '--account-name', 'REDACTED', '--container-name', '$web', '--name', 'assets/chunk-8c2RAdy6.js', '--tags', 'deprecated=true', '--debug']
DEBUG: cli.knack.cli: __init__ debug log:
Cannot enable color.
DEBUG: cli.knack.cli: Event: Cli.PreExecute []
DEBUG: cli.knack.cli: Event: CommandParser.OnGlobalArgumentsCreate [<function CLILogging.on_global_arguments at 0x7fdd9f09f880>, <function OutputProducer.on_global_arguments at 0x7fdd9edf67a0>, <function CLIQuery.on_global_arguments at 0x7fdd9ee47ce0>]
DEBUG: cli.knack.cli: Event: CommandInvoker.OnPreCommandTableCreate []
DEBUG: cli.azure.cli.core: Modules found from index for 'storage': ['azure.cli.command_modules.storage']
DEBUG: cli.azure.cli.core: Loading command modules:
DEBUG: cli.azure.cli.core: Name Load Time Groups Commands
DEBUG: cli.azure.cli.core: storage 0.263 60 275
DEBUG: cli.azure.cli.core: Total (1) 0.263 60 275
DEBUG: cli.azure.cli.core: These extensions are not installed and will be skipped: ['azext_ai_examples', 'azext_next']
DEBUG: cli.azure.cli.core: Loading extensions:
DEBUG: cli.azure.cli.core: Name Load Time Groups Commands Directory
DEBUG: cli.azure.cli.core: Total (0) 0.000 0 0
DEBUG: cli.azure.cli.core: Loaded 60 groups, 275 commands.
DEBUG: cli.azure.cli.core: Could not find a match in the command or command group table for 'storage blob tag set'. The index may be outdated.
DEBUG: cli.azure.cli.core: Loading all modules and extensions
DEBUG: cli.azure.cli.core: Discovered command modules: ['acr', 'acs', 'advisor', 'ams', 'apim', 'appconfig', 'appservice', 'aro', 'backup', 'batch', 'batchai', 'billing', 'botservice', 'cdn', 'cloud', 'cognitiveservices', 'compute_recommender', 'computefleet', 'config', 'configure', 'consumption', 'container', 'containerapp', 'cosmosdb', 'databoxedge', 'dls', 'dms', 'eventgrid', 'eventhubs', 'extension', 'feedback', 'find', 'hdinsight', 'identity', 'interactive', 'iot', 'keyvault', 'lab', 'managedservices', 'maps', 'marketplaceordering', 'monitor', 'mysql', 'netappfiles', 'network', 'policyinsights', 'privatedns', 'profile', 'rdbms', 'redis', 'relay', 'resource', 'role', 'search', 'security', 'servicebus', 'serviceconnector', 'servicefabric', 'signalr', 'sql', 'sqlvm', 'storage', 'synapse', 'util', 'vm']
DEBUG: cli.azure.cli.core: Loading command modules:
DEBUG: cli.azure.cli.core: Name Load Time Groups Commands
DEBUG: cli.azure.cli.core: acr 0.012 36 149
DEBUG: cli.azure.cli.core: acs 0.022 15 79
DEBUG: cli.azure.cli.core: advisor 0.001 3 6
DEBUG: cli.azure.cli.core: ams 0.005 22 100
DEBUG: cli.azure.cli.core: apim 0.005 14 69
DEBUG: cli.azure.cli.core: appconfig 0.003 9 47
DEBUG: cli.azure.cli.core: appservice 0.042 80 277
DEBUG: cli.azure.cli.core: aro 0.009 1 10
DEBUG: cli.azure.cli.core: backup 0.004 16 60
DEBUG: cli.azure.cli.core: batch 0.054 32 96
DEBUG: cli.azure.cli.core: batchai 0.003 10 30
DEBUG: cli.azure.cli.core: billing 0.016 20 53
DEBUG: cli.azure.cli.core: botservice 0.003 12 42
DEBUG: cli.azure.cli.core: cdn 0.187 8 50
DEBUG: cli.azure.cli.core: cloud 0.002 1 7
DEBUG: cli.azure.cli.core: cognitiveservices 0.004 10 33
DEBUG: cli.azure.cli.core: compute_recommender 0.003 1 1
DEBUG: cli.azure.cli.core: computefleet 0.008 1 1
DEBUG: cli.azure.cli.core: config 0.001 2 7
DEBUG: cli.azure.cli.core: configure 0.001 2 5
DEBUG: cli.azure.cli.core: consumption 0.015 8 9
DEBUG: cli.azure.cli.core: container 0.009 2 17
DEBUG: cli.azure.cli.core: containerapp 0.114 37 123
DEBUG: cli.azure.cli.core: cosmosdb 0.014 58 200
DEBUG: cli.azure.cli.core: databoxedge 0.006 5 28
DEBUG: cli.azure.cli.core: dls 0.002 6 36
DEBUG: cli.azure.cli.core: dms 0.004 3 22
DEBUG: cli.azure.cli.core: eventgrid 0.004 25 96
DEBUG: cli.azure.cli.core: eventhubs 0.013 14 21
DEBUG: cli.azure.cli.core: extension 0.002 1 7
DEBUG: cli.azure.cli.core: feedback 0.001 1 2
DEBUG: cli.azure.cli.core: find 0.002 1 1
DEBUG: cli.azure.cli.core: hdinsight 0.008 9 42
DEBUG: cli.azure.cli.core: identity 0.006 2 7
DEBUG: cli.azure.cli.core: interactive 0.006 1 1
DEBUG: cli.azure.cli.core: iot 0.135 19 82
DEBUG: cli.azure.cli.core: keyvault 0.008 20 114
DEBUG: cli.azure.cli.core: lab 0.029 9 30
DEBUG: cli.azure.cli.core: managedservices 0.010 3 8
DEBUG: cli.azure.cli.core: maps 0.002 5 13
DEBUG: cli.azure.cli.core: marketplaceordering 0.002 1 2
DEBUG: cli.azure.cli.core: monitor 0.528 17 64
DEBUG: cli.azure.cli.core: mysql 0.077 16 56
DEBUG: cli.azure.cli.core: netappfiles 0.045 8 15
DEBUG: cli.azure.cli.core: network 0.142 105 349
DEBUG: cli.azure.cli.core: policyinsights 0.013 9 17
DEBUG: cli.azure.cli.core: privatedns 0.113 14 60
DEBUG: cli.azure.cli.core: profile 0.002 2 8
DEBUG: cli.azure.cli.core: rdbms 0.092 52 217
DEBUG: cli.azure.cli.core: redis 0.003 7 38
DEBUG: cli.azure.cli.core: relay 0.023 7 8
DEBUG: cli.azure.cli.core: resource 0.016 52 232
DEBUG: cli.azure.cli.core: role 0.003 17 62
DEBUG: cli.azure.cli.core: search 0.006 7 19
DEBUG: cli.azure.cli.core: security 0.009 47 98
DEBUG: cli.azure.cli.core: servicebus 0.007 14 17
DEBUG: cli.azure.cli.core: serviceconnector 0.035 20 331
DEBUG: cli.azure.cli.core: servicefabric 0.013 27 80
DEBUG: cli.azure.cli.core: signalr 0.002 10 42
DEBUG: cli.azure.cli.core: sql 0.014 56 215
DEBUG: cli.azure.cli.core: sqlvm 0.022 4 20
DEBUG: cli.azure.cli.core: storage 0.044 60 275
DEBUG: cli.azure.cli.core: synapse 0.012 54 246
DEBUG: cli.azure.cli.core: util 0.001 3 7
DEBUG: cli.azure.cli.core: vm 0.103 59 214
DEBUG: cli.azure.cli.core: Total (65) 2.102 1192 4673
DEBUG: cli.azure.cli.core: Loading extensions:
DEBUG: cli.azure.cli.core: Name Load Time Groups Commands Directory
/opt/az/azcliextensions/azure-devops/azext_devops/dev/__init__.py:5: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
import pkg_resources
DEBUG: cli.azure.cli.core: azure-devops 0.079 60 192 /opt/az/azcliextensions/azure-devops
DEBUG: cli.azure.cli.core: Total (1) 0.079 60 192
DEBUG: cli.azure.cli.core: Loaded 1238 groups, 4865 commands.
DEBUG: cli.azure.cli.core: Updated command index in 0.006 seconds.
DEBUG: cli.knack.cli: Event: CommandInvoker.OnPreCommandTableTruncate [<function AzCliLogging.init_command_file_logging at 0x7fdd9dfa8180>]
DEBUG: cli.azure.cli.core.azlogging: metadata file logging enabled - writing logs to '/home/vsts/work/_temp/.azclitask/commands/2025-07-07.07-23-16.storage_blob.2228.log'.
INFO: az_command_data_logger: command args: storage blob {} {} --account-key {} --account-name {} --container-name {} --name {} --tags {} --debug
DEBUG: cli.knack.cli: Event: CommandInvoker.OnPreArgumentLoad [<function register_global_subscription_argument.<locals>.add_subscription_parameter at 0x7fdd9dffc680>]
DEBUG: cli.knack.cli: Event: CommandInvoker.OnPostArgumentLoad []
DEBUG: cli.knack.cli: Event: CommandInvoker.OnPostCommandTableCreate [<function register_ids_argument.<locals>.add_ids_arguments at 0x7fdd9dffee80>, <function register_cache_arguments.<locals>.add_cache_arguments at 0x7fdd9dffefc0>, <function register_upcoming_breaking_change_info.<locals>.update_breaking_change_info at 0x7fdd9dfff060>]
DEBUG: cli.knack.cli: Event: CommandInvoker.OnCommandTableLoaded []
DEBUG: cli.knack.cli: Event: CommandInvoker.OnPreParseArgs [<function _documentdb_deprecate at 0x7fdd9c0e6f20>]
DEBUG: cli.knack.prompting: No tty available.
INFO: cli.azure.cli.core._session: Failed to load or parse file /home/vsts/work/_temp/.azclitask/extensionCommandTree.json. It will be overridden by default settings.
DEBUG: urllib3.connectionpool: Starting new HTTPS connection (1): aka.ms:443
DEBUG: urllib3.connectionpool: https://aka.ms:443 "GET /azExtCmdTree HTTP/1.1" 301 0
DEBUG: urllib3.connectionpool: Starting new HTTPS connection (1): azurecliextensionsync.blob.core.windows.net:443
DEBUG: urllib3.connectionpool: https://azurecliextensionsync.blob.core.windows.net:443 "GET /cmd-index/extensionCommandTree.json HTTP/1.1" 200 187630
WARNING: cli.azure.cli.core.extension.dynamic_install: The command requires the extension storage-blob-preview. It will be installed first.
DEBUG: urllib3.connectionpool: Starting new HTTPS connection (1): aka.ms:443
DEBUG: urllib3.connectionpool: https://aka.ms:443 "GET /azure-cli-extension-index-v1 HTTP/1.1" 301 0
DEBUG: urllib3.connectionpool: Starting new HTTPS connection (1): azcliextensionsync.blob.core.windows.net:443
DEBUG: urllib3.connectionpool: https://azcliextensionsync.blob.core.windows.net:443 "GET /index1/index.json HTTP/1.1" 200 5300552
DEBUG: cli.azure.cli.core.extension._resolve: Candidates ['storage_blob_preview-0.1.0-py2.py3-none-any.whl', 'storage_blob_preview-0.2.0-py2.py3-none-any.whl', 'storage_blob_preview-0.3.0-py2.py3-none-any.whl', 'storage_blob_preview-0.4.0-py2.py3-none-any.whl', 'storage_blob_preview-0.4.1-py2.py3-none-any.whl', 'storage_blob_preview-0.5.0-py2.py3-none-any.whl', 'storage_blob_preview-0.5.1-py2.py3-none-any.whl', 'storage_blob_preview-0.5.2-py2.py3-none-any.whl', 'storage_blob_preview-0.6.0-py2.py3-none-any.whl', 'storage_blob_preview-0.6.1-py2.py3-none-any.whl', 'storage_blob_preview-0.6.2-py2.py3-none-any.whl', 'storage_blob_preview-0.7.0-py2.py3-none-any.whl', 'storage_blob_preview-0.7.1-py2.py3-none-any.whl', 'storage_blob_preview-0.7.2-py2.py3-none-any.whl', 'storage_blob_preview-1.0.0b1-py2.py3-none-any.whl', 'storage_blob_preview-1.0.0b2-py2.py3-none-any.whl']
DEBUG: cli.azure.cli.core.extension._resolve: Candidates ['storage_blob_preview-0.1.0-py2.py3-none-any.whl', 'storage_blob_preview-0.2.0-py2.py3-none-any.whl', 'storage_blob_preview-0.3.0-py2.py3-none-any.whl', 'storage_blob_preview-0.4.0-py2.py3-none-any.whl', 'storage_blob_preview-0.4.1-py2.py3-none-any.whl', 'storage_blob_preview-0.5.0-py2.py3-none-any.whl', 'storage_blob_preview-0.5.1-py2.py3-none-any.whl', 'storage_blob_preview-0.5.2-py2.py3-none-any.whl', 'storage_blob_preview-0.6.0-py2.py3-none-any.whl', 'storage_blob_preview-0.6.1-py2.py3-none-any.whl', 'storage_blob_preview-0.6.2-py2.py3-none-any.whl', 'storage_blob_preview-0.7.0-py2.py3-none-any.whl', 'storage_blob_preview-0.7.1-py2.py3-none-any.whl', 'storage_blob_preview-0.7.2-py2.py3-none-any.whl', 'storage_blob_preview-1.0.0b1-py2.py3-none-any.whl', 'storage_blob_preview-1.0.0b2-py2.py3-none-any.whl']
DEBUG: cli.azure.cli.core.extension._resolve: Candidates ['storage_blob_preview-0.1.0-py2.py3-none-any.whl', 'storage_blob_preview-0.2.0-py2.py3-none-any.whl', 'storage_blob_preview-0.3.0-py2.py3-none-any.whl', 'storage_blob_preview-0.4.0-py2.py3-none-any.whl', 'storage_blob_preview-0.4.1-py2.py3-none-any.whl', 'storage_blob_preview-0.5.0-py2.py3-none-any.whl', 'storage_blob_preview-0.5.1-py2.py3-none-any.whl', 'storage_blob_preview-0.5.2-py2.py3-none-any.whl', 'storage_blob_preview-0.6.0-py2.py3-none-any.whl', 'storage_blob_preview-0.6.1-py2.py3-none-any.whl', 'storage_blob_preview-0.6.2-py2.py3-none-any.whl', 'storage_blob_preview-0.7.0-py2.py3-none-any.whl', 'storage_blob_preview-0.7.1-py2.py3-none-any.whl', 'storage_blob_preview-0.7.2-py2.py3-none-any.whl', 'storage_blob_preview-1.0.0b1-py2.py3-none-any.whl', 'storage_blob_preview-1.0.0b2-py2.py3-none-any.whl']
DEBUG: cli.azure.cli.core.extension._resolve: Candidates ['storage_blob_preview-0.1.0-py2.py3-none-any.whl', 'storage_blob_preview-0.2.0-py2.py3-none-any.whl', 'storage_blob_preview-0.3.0-py2.py3-none-any.whl', 'storage_blob_preview-0.4.0-py2.py3-none-any.whl', 'storage_blob_preview-0.4.1-py2.py3-none-any.whl', 'storage_blob_preview-0.5.0-py2.py3-none-any.whl', 'storage_blob_preview-0.5.1-py2.py3-none-any.whl', 'storage_blob_preview-0.5.2-py2.py3-none-any.whl', 'storage_blob_preview-0.6.0-py2.py3-none-any.whl', 'storage_blob_preview-0.6.1-py2.py3-none-any.whl', 'storage_blob_preview-0.6.2-py2.py3-none-any.whl', 'storage_blob_preview-0.7.0-py2.py3-none-any.whl', 'storage_blob_preview-0.7.1-py2.py3-none-any.whl', 'storage_blob_preview-0.7.2-py2.py3-none-any.whl', 'storage_blob_preview-1.0.0b1-py2.py3-none-any.whl', 'storage_blob_preview-1.0.0b2-py2.py3-none-any.whl']
DEBUG: cli.azure.cli.core.extension._resolve: Chosen {'downloadUrl': 'https://azcliprod.blob.core.windows.net/cli-extensions/storage_blob_preview-1.0.0b2-py2.py3-none-any.whl', 'filename': 'storage_blob_preview-1.0.0b2-py2.py3-none-any.whl', 'metadata': {'azext.isPreview': True, 'azext.minCliCoreVersion': '2.27.0', 'classifiers': ['Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'Intended Audience :: System Administrators', 'Programming Language :: Python', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', 'License :: OSI Approved :: MIT License'], 'extensions': {'python.details': {'contacts': [{'email': '[email protected]', 'name': 'Microsoft Corporation', 'role': 'author'}], 'document_names': {'description': 'DESCRIPTION.rst'}, 'project_urls': {'Home': 'https://github.com/Azure/azure-cli-extensions/tree/main/src/storage-blob-preview'}}}, 'generator': 'bdist_wheel (0.30.0)', 'license': 'MIT', 'metadata_version': '2.0', 'name': 'storage-blob-preview', 'summary': 'Microsoft Azure Command-Line Tools Storage-blob-preview Extension', 'version': '1.0.0b2'}, 'sha256Digest': '3dac409227975395322eadbb7b334fa773cbb669c85906bd29b57b019ccb775a'}
DEBUG: cli.azure.cli.core.extension.operations: Extension source is url? True
DEBUG: cli.azure.cli.core.extension.operations: Downloading https://azcliprod.blob.core.windows.net/cli-extensions/storage_blob_preview-1.0.0b2-py2.py3-none-any.whl to /tmp/tmpknwqb9re/storage_blob_preview-1.0.0b2-py2.py3-none-any.whl
DEBUG: urllib3.connectionpool: Starting new HTTPS connection (1): azcliprod.blob.core.windows.net:443
DEBUG: urllib3.connectionpool: https://azcliprod.blob.core.windows.net:443 "GET /cli-extensions/storage_blob_preview-1.0.0b2-py2.py3-none-any.whl HTTP/1.1" 200 433836
DEBUG: cli.azure.cli.core.extension.operations: Downloaded to /tmp/tmpknwqb9re/storage_blob_preview-1.0.0b2-py2.py3-none-any.whl
DEBUG: cli.azure.cli.core.extension.operations: Validating the extension /tmp/tmpknwqb9re/storage_blob_preview-1.0.0b2-py2.py3-none-any.whl
DEBUG: cli.azure.cli.core.extension.operations: Checksum of /tmp/tmpknwqb9re/storage_blob_preview-1.0.0b2-py2.py3-none-any.whl is OK
DEBUG: cli.azure.cli.core.extension.operations: Validation successful on /tmp/tmpknwqb9re/storage_blob_preview-1.0.0b2-py2.py3-none-any.whl
DEBUG: cli.azure.cli.core.extension.operations: Linux distro check: Reading from: /etc/apt/sources.list.d/azure-cli.list
DEBUG: cli.azure.cli.core.extension.operations: Linux distro check: An error occurred while checking linux distribution version source list consistency.
DEBUG: cli.azure.cli.core.extension.operations: [Errno 2] No such file or directory: '/etc/apt/sources.list.d/azure-cli.list'
DEBUG: cli.azure.cli.core.extension.operations: Executing pip with args: ['install', '--target', '/opt/az/azcliextensions/storage-blob-preview', '/tmp/tmpknwqb9re/storage_blob_preview-1.0.0b2-py2.py3-none-any.whl']
DEBUG: cli.azure.cli.core.extension.operations: Running: ['/opt/az/bin/python3', '-m', 'pip', 'install', '--target', '/opt/az/azcliextensions/storage-blob-preview', '/tmp/tmpknwqb9re/storage_blob_preview-1.0.0b2-py2.py3-none-any.whl', '--disable-pip-version-check', '--no-cache-dir']
DEBUG: cli.azure.cli.core.extension.operations: Processing /tmp/tmpknwqb9re/storage_blob_preview-1.0.0b2-py2.py3-none-any.whl
Installing collected packages: storage-blob-preview
Successfully installed storage-blob-preview-1.0.0b2
DEBUG: cli.azure.cli.core.extension.operations: Saved the whl to /opt/az/azcliextensions/storage-blob-preview/storage_blob_preview-1.0.0b2-py2.py3-none-any.whl
WARNING: cli.azure.cli.core.extension.operations: The installed extension 'storage-blob-preview' is in preview.
DEBUG: cli.azure.cli.core: Command index has been invalidated.
DEBUG: cli.knack.cli: Command arguments: ['storage', 'blob', 'tag', 'set', '--account-key', 'REDACTED', '--account-name', 'REDACTED', '--container-name', '$web', '--name', 'assets/chunk-8c2RAdy6.js', '--tags', 'deprecated=true', '--debug']
DEBUG: cli.knack.cli: __init__ debug log:
Cannot enable color.
DEBUG: cli.knack.cli: Event: Cli.PreExecute []
DEBUG: cli.knack.cli: Event: CommandParser.OnGlobalArgumentsCreate [<function CLILogging.on_global_arguments at 0x7fd1181db880>, <function OutputProducer.on_global_arguments at 0x7fd117f4e7a0>, <function CLIQuery.on_global_arguments at 0x7fd117f9fce0>]
DEBUG: cli.knack.cli: Event: CommandInvoker.OnPreCommandTableCreate []
DEBUG: cli.azure.cli.core: Command index version or cloud profile is invalid or doesn't match the current command.
DEBUG: cli.azure.cli.core: Command index has been invalidated.
DEBUG: cli.azure.cli.core: No module found from index for '['storage', 'blob', 'tag', 'set', '--account-key', 'REDACTED', '--account-name', 'REDACTED', '--container-name', '$web', '--name', 'assets/chunk-8c2RAdy6.js', '--tags', 'deprecated=true', '--debug']'
DEBUG: cli.azure.cli.core: Loading all modules and extensions
DEBUG: cli.azure.cli.core: Discovered command modules: ['acr', 'acs', 'advisor', 'ams', 'apim', 'appconfig', 'appservice', 'aro', 'backup', 'batch', 'batchai', 'billing', 'botservice', 'cdn', 'cloud', 'cognitiveservices', 'compute_recommender', 'computefleet', 'config', 'configure', 'consumption', 'container', 'containerapp', 'cosmosdb', 'databoxedge', 'dls', 'dms', 'eventgrid', 'eventhubs', 'extension', 'feedback', 'find', 'hdinsight', 'identity', 'interactive', 'iot', 'keyvault', 'lab', 'managedservices', 'maps', 'marketplaceordering', 'monitor', 'mysql', 'netappfiles', 'network', 'policyinsights', 'privatedns', 'profile', 'rdbms', 'redis', 'relay', 'resource', 'role', 'search', 'security', 'servicebus', 'serviceconnector', 'servicefabric', 'signalr', 'sql', 'sqlvm', 'storage', 'synapse', 'util', 'vm']
DEBUG: cli.azure.cli.core: Loading command modules:
DEBUG: cli.azure.cli.core: Name Load Time Groups Commands
DEBUG: cli.azure.cli.core: acr 0.203 36 149
DEBUG: cli.azure.cli.core: acs 0.023 15 79
DEBUG: cli.azure.cli.core: advisor 0.001 3 6
DEBUG: cli.azure.cli.core: ams 0.005 22 100
DEBUG: cli.azure.cli.core: apim 0.005 14 69
DEBUG: cli.azure.cli.core: appconfig 0.003 9 47
DEBUG: cli.azure.cli.core: appservice 0.024 80 277
DEBUG: cli.azure.cli.core: aro 0.009 1 10
DEBUG: cli.azure.cli.core: backup 0.004 16 60
DEBUG: cli.azure.cli.core: batch 0.067 32 96
DEBUG: cli.azure.cli.core: batchai 0.003 10 30
DEBUG: cli.azure.cli.core: billing 0.014 20 53
DEBUG: cli.azure.cli.core: botservice 0.003 12 42
DEBUG: cli.azure.cli.core: cdn 0.161 8 50
DEBUG: cli.azure.cli.core: cloud 0.002 1 7
DEBUG: cli.azure.cli.core: cognitiveservices 0.003 10 33
DEBUG: cli.azure.cli.core: compute_recommender 0.003 1 1
DEBUG: cli.azure.cli.core: computefleet 0.008 1 1
DEBUG: cli.azure.cli.core: config 0.002 2 7
DEBUG: cli.azure.cli.core: configure 0.001 2 5
DEBUG: cli.azure.cli.core: consumption 0.016 8 9
DEBUG: cli.azure.cli.core: container 0.008 2 17
DEBUG: cli.azure.cli.core: containerapp 0.116 37 123
DEBUG: cli.azure.cli.core: cosmosdb 0.014 58 200
DEBUG: cli.azure.cli.core: databoxedge 0.007 5 28
DEBUG: cli.azure.cli.core: dls 0.003 6 36
DEBUG: cli.azure.cli.core: dms 0.002 3 22
DEBUG: cli.azure.cli.core: eventgrid 0.006 25 96
DEBUG: cli.azure.cli.core: eventhubs 0.011 14 21
DEBUG: cli.azure.cli.core: extension 0.001 1 7
DEBUG: cli.azure.cli.core: feedback 0.001 1 2
DEBUG: cli.azure.cli.core: find 0.001 1 1
DEBUG: cli.azure.cli.core: hdinsight 0.005 9 42
DEBUG: cli.azure.cli.core: identity 0.005 2 7
DEBUG: cli.azure.cli.core: interactive 0.001 1 1
DEBUG: cli.azure.cli.core: iot 0.090 19 82
DEBUG: cli.azure.cli.core: keyvault 0.008 20 114
DEBUG: cli.azure.cli.core: lab 0.067 9 30
DEBUG: cli.azure.cli.core: managedservices 0.009 3 8
DEBUG: cli.azure.cli.core: maps 0.002 5 13
DEBUG: cli.azure.cli.core: marketplaceordering 0.002 1 2
DEBUG: cli.azure.cli.core: monitor 0.533 17 64
DEBUG: cli.azure.cli.core: mysql 0.084 16 56
DEBUG: cli.azure.cli.core: netappfiles 0.045 8 15
DEBUG: cli.azure.cli.core: network 0.153 105 349
DEBUG: cli.azure.cli.core: policyinsights 0.011 9 17
DEBUG: cli.azure.cli.core: privatedns 0.019 14 60
DEBUG: cli.azure.cli.core: profile 0.001 2 8
DEBUG: cli.azure.cli.core: rdbms 0.189 52 217
DEBUG: cli.azure.cli.core: redis 0.002 7 38
DEBUG: cli.azure.cli.core: relay 0.020 7 8
DEBUG: cli.azure.cli.core: resource 0.015 52 232
DEBUG: cli.azure.cli.core: role 0.003 17 62
DEBUG: cli.azure.cli.core: search 0.007 7 19
DEBUG: cli.azure.cli.core: security 0.009 47 98
DEBUG: cli.azure.cli.core: servicebus 0.007 14 17
DEBUG: cli.azure.cli.core: serviceconnector 0.042 20 331
DEBUG: cli.azure.cli.core: servicefabric 0.011 27 80
DEBUG: cli.azure.cli.core: signalr 0.002 10 42
DEBUG: cli.azure.cli.core: sql 0.014 56 215
DEBUG: cli.azure.cli.core: sqlvm 0.023 4 20
DEBUG: cli.azure.cli.core: storage 0.058 60 275
DEBUG: cli.azure.cli.core: synapse 0.012 54 246
DEBUG: cli.azure.cli.core: util 0.002 3 7
DEBUG: cli.azure.cli.core: vm 0.096 59 214
DEBUG: cli.azure.cli.core: Total (65) 2.273 1192 4673
DEBUG: cli.azure.cli.core: Loading extensions:
DEBUG: cli.azure.cli.core: Name Load Time Groups Commands Directory
/opt/az/azcliextensions/azure-devops/azext_devops/dev/__init__.py:5: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
import pkg_resources
DEBUG: cli.azure.cli.core: azure-devops 0.076 60 192 /opt/az/azcliextensions/azure-devops
DEBUG: cli.azure.cli.core: storage-blob-preview 0.007 6 10 /opt/az/azcliextensions/storage-blob-preview
DEBUG: cli.azure.cli.core: Total (2) 0.083 66 202
DEBUG: cli.azure.cli.core: Loaded 1239 groups, 4868 commands.
DEBUG: cli.azure.cli.core: Updated command index in 0.005 seconds.
DEBUG: cli.knack.cli: Event: CommandInvoker.OnPreCommandTableTruncate [<function AzCliLogging.init_command_file_logging at 0x7fd117110180>]
DEBUG: cli.azure.cli.core.azlogging: metadata file logging enabled - writing logs to '/home/vsts/work/_temp/.azclitask/commands/2025-07-07.07-23-28.storage_blob_tag_set.2254.log'.
INFO: az_command_data_logger: command args: storage blob tag set --account-key {} --account-name {} --container-name {} --name {} --tags {} --debug
DEBUG: cli.knack.cli: Event: CommandInvoker.OnPreArgumentLoad [<function register_global_subscription_argument.<locals>.add_subscription_parameter at 0x7fd117164680>]
DEBUG: cli.azure.cli.core.profiles._shared: Traceback (most recent call last):
File "/opt/az/lib/python3.12/site-packages/azure/cli/core/profiles/_shared.py", line 471, in _get_attr
op = import_module(full_mod_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.12/importlib/__init__.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
File "<frozen importlib._bootstrap>", line 1310, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
File "<frozen importlib._bootstrap>", line 1324, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'azext_storage_blob_preview.vendored_sdks.azure_storage_blob.v2021_12_02.blob'
DEBUG: cli.azure.cli.core.profiles._shared: Traceback (most recent call last):
File "/opt/az/lib/python3.12/site-packages/azure/cli/core/profiles/_shared.py", line 471, in _get_attr
op = import_module(full_mod_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.12/importlib/__init__.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
File "<frozen importlib._bootstrap>", line 1324, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'azext_storage_blob_preview.vendored_sdks.azure_storage_blob.v2021_12_02.file'
DEBUG: cli.azure.cli.core.azclierror: Traceback (most recent call last):
File "/opt/az/lib/python3.12/site-packages/azure/cli/core/profiles/_shared.py", line 321, in get_api_version
api_version = AZURE_API_PROFILES[api_profile][resource_type]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
KeyError: <ResourceType.DATA_STORAGE_TABLE: ('azure.data.tables', None)>
During handling of the above exception, another exception occurred:
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 564, in execute
self.commands_loader.load_arguments(command)
File "/opt/az/lib/python3.12/site-packages/azure/cli/core/__init__.py", line 553, in load_arguments
loader.load_arguments(command) # this adds entries to the argument registries
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/azcliextensions/storage-blob-preview/azext_storage_blob_preview/__init__.py", line 33, in load_arguments
load_arguments(self, command)
File "/opt/az/azcliextensions/storage-blob-preview/azext_storage_blob_preview/_params.py", line 24, in load_arguments
t_table_service = self.get_sdk('_table_service_client#TableServiceClient',
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.12/site-packages/azure/cli/core/__init__.py", line 801, in get_sdk
return get_sdk(self.cli_ctx, kwargs.pop('resource_type', self._get_resource_type()),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.12/site-packages/azure/cli/core/profiles/__init__.py", line 91, in get_sdk
return _sdk_get_versioned_sdk(cli_ctx.cloud.profile, resource_type, *attr_args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.12/site-packages/azure/cli/core/profiles/_shared.py", line 510, in get_versioned_sdk
sdk_path = get_versioned_sdk_path(api_profile, resource_type, operation_group)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.12/site-packages/azure/cli/core/profiles/_shared.py", line 496, in get_versioned_sdk_path
api_version = get_api_version(api_profile, resource_type)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.12/site-packages/azure/cli/core/profiles/_shared.py", line 328, in get_api_version
raise APIVersionException(resource_type, api_profile)
azure.cli.core.profiles._shared.APIVersionException: Unable to get API version for type 'ResourceType.DATA_STORAGE_TABLE' in profile 'latest'
ERROR: cli.azure.cli.core.azclierror: The command failed with an unexpected error. Here is the traceback:
ERROR: az_command_data_logger: The command failed with an unexpected error. Here is the traceback:
ERROR: cli.azure.cli.core.azclierror: Unable to get API version for type 'ResourceType.DATA_STORAGE_TABLE' in profile 'latest'
Traceback (most recent call last):
File "/opt/az/lib/python3.12/site-packages/azure/cli/core/profiles/_shared.py", line 321, in get_api_version
api_version = AZURE_API_PROFILES[api_profile][resource_type]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
KeyError: <ResourceType.DATA_STORAGE_TABLE: ('azure.data.tables', None)>
During handling of the above exception, another exception occurred:
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 564, in execute
self.commands_loader.load_arguments(command)
File "/opt/az/lib/python3.12/site-packages/azure/cli/core/__init__.py", line 553, in load_arguments
loader.load_arguments(command) # this adds entries to the argument registries
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/azcliextensions/storage-blob-preview/azext_storage_blob_preview/__init__.py", line 33, in load_arguments
load_arguments(self, command)
File "/opt/az/azcliextensions/storage-blob-preview/azext_storage_blob_preview/_params.py", line 24, in load_arguments
t_table_service = self.get_sdk('_table_service_client#TableServiceClient',
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.12/site-packages/azure/cli/core/__init__.py", line 801, in get_sdk
return get_sdk(self.cli_ctx, kwargs.pop('resource_type', self._get_resource_type()),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.12/site-packages/azure/cli/core/profiles/__init__.py", line 91, in get_sdk
return _sdk_get_versioned_sdk(cli_ctx.cloud.profile, resource_type, *attr_args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.12/site-packages/azure/cli/core/profiles/_shared.py", line 510, in get_versioned_sdk
sdk_path = get_versioned_sdk_path(api_profile, resource_type, operation_group)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.12/site-packages/azure/cli/core/profiles/_shared.py", line 496, in get_versioned_sdk_path
api_version = get_api_version(api_profile, resource_type)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.12/site-packages/azure/cli/core/profiles/_shared.py", line 328, in get_api_version
raise APIVersionException(resource_type, api_profile)
azure.cli.core.profiles._shared.APIVersionException: Unable to get API version for type 'ResourceType.DATA_STORAGE_TABLE' in profile 'latest'
ERROR: az_command_data_logger: Unable to get API version for type 'ResourceType.DATA_STORAGE_TABLE' in profile 'latest'
Traceback (most recent call last):
File "/opt/az/lib/python3.12/site-packages/azure/cli/core/profiles/_shared.py", line 321, in get_api_version
api_version = AZURE_API_PROFILES[api_profile][resource_type]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
KeyError: <ResourceType.DATA_STORAGE_TABLE: ('azure.data.tables', None)>
During handling of the above exception, another exception occurred:
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 564, in execute
self.commands_loader.load_arguments(command)
File "/opt/az/lib/python3.12/site-packages/azure/cli/core/__init__.py", line 553, in load_arguments
loader.load_arguments(command) # this adds entries to the argument registries
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/azcliextensions/storage-blob-preview/azext_storage_blob_preview/__init__.py", line 33, in load_arguments
load_arguments(self, command)
File "/opt/az/azcliextensions/storage-blob-preview/azext_storage_blob_preview/_params.py", line 24, in load_arguments
t_table_service = self.get_sdk('_table_service_client#TableServiceClient',
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.12/site-packages/azure/cli/core/__init__.py", line 801, in get_sdk
return get_sdk(self.cli_ctx, kwargs.pop('resource_type', self._get_resource_type()),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.12/site-packages/azure/cli/core/profiles/__init__.py", line 91, in get_sdk
return _sdk_get_versioned_sdk(cli_ctx.cloud.profile, resource_type, *attr_args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.12/site-packages/azure/cli/core/profiles/_shared.py", line 510, in get_versioned_sdk
sdk_path = get_versioned_sdk_path(api_profile, resource_type, operation_group)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.12/site-packages/azure/cli/core/profiles/_shared.py", line 496, in get_versioned_sdk_path
api_version = get_api_version(api_profile, resource_type)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.12/site-packages/azure/cli/core/profiles/_shared.py", line 328, in get_api_version
raise APIVersionException(resource_type, api_profile)
azure.cli.core.profiles._shared.APIVersionException: Unable to get API version for type 'ResourceType.DATA_STORAGE_TABLE' in profile 'latest'
To check existing issues, please visit: https://github.com/Azure/azure-cli/issues
DEBUG: cli.knack.cli: Event: Cli.PostExecute [<function AzCliLogging.deinit_cmd_metadata_logging at 0x7fd117110400>]
INFO: az_command_data_logger: exit code: 1
INFO: cli.__main__: Command ran in 2.680 seconds (init: 0.197, invoke: 2.483)
INFO: telemetry.main: Begin splitting cli events and extra events, total events: 1
INFO: telemetry.client: Accumulated 0 events. Flush the clients.
INFO: telemetry.main: Finish splitting cli events and extra events, cli events: 1
INFO: telemetry.save: Save telemetry record of length 8210 in cache file under /home/vsts/work/_temp/.azclitask/telemetry/20250707072329110
INFO: telemetry.main: Begin creating telemetry upload process.
INFO: telemetry.process: Creating upload process: "/opt/az/bin/python3 /opt/az/lib/python3.12/site-packages/azure/cli/telemetry/__init__.py /home/vsts/work/_temp/.azclitask /home/vsts/work/_temp/.azclitask/telemetry/20250707072329110"
INFO: telemetry.process: Return from creating process 2275
INFO: telemetry.main: Finish creating telemetry upload process.
DEBUG: cli.knack.cli: Event: Cli.PostExecute [<function AzCliLogging.deinit_cmd_metadata_logging at 0x7fdd9dfa8400>]
INFO: az_command_data_logger: exit code: 1
INFO: cli.__main__: Command ran in 15.318 seconds (init: 0.179, invoke: 15.139)
INFO: telemetry.main: Begin splitting cli events and extra events, total events: 1
INFO: telemetry.client: Accumulated 0 events. Flush the clients.
INFO: telemetry.main: Finish splitting cli events and extra events, cli events: 1
INFO: telemetry.save: Save telemetry record of length 4232 in cache file under /home/vsts/work/_temp/.azclitask/telemetry/20250707072329602
INFO: telemetry.main: Begin creating telemetry upload process.
INFO: telemetry.process: Creating upload process: "/opt/az/bin/python3 /opt/az/lib/python3.12/site-packages/azure/cli/telemetry/__init__.py /home/vsts/work/_temp/.azclitask /home/vsts/work/_temp/.azclitask/telemetry/20250707072329602"
INFO: telemetry.process: Return from creating process 2293
INFO: telemetry.main: Finish creating telemetry upload process.
Expected behavior
The command should work
Environment Summary
azure-cli 2.74.0 *
core 2.74.0 *
telemetry 1.1.0
Extensions:
azure-devops 1.0.1
Dependencies:
msal 1.32.3
azure-mgmt-resource 23.3.0
Python location '/opt/az/bin/python3'
Config directory '/home/vsts/work/_temp/.azclitask'
Extensions directory '/opt/az/azcliextensions'
Python (Linux) 3.12.10 (main, May 27 2025, 09:12:37) [GCC 13.3.0]
Additional context
No response