Skip to content

cjson error in Azure CLI when attempting to modify settings for a storage account #31230

@ryanwaldron

Description

@ryanwaldron

Describe the bug

Receiving an error when trying to disable pubic access to a blob container. The az command just returns an error rather than updating the container. So far, other CLI commands work fine.

Related command

az storage account update --name storageacctname --name containername --allow-blob-public-access false

Errors

The command failed with an unexpected error. Here is the traceback:
'cjson'
Traceback (most recent call last):
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/cli.py", line 238, in invoke
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/output.py", line 166, in get_formatter
KeyError: 'cjson'

Issue script & Debug output

You want the full debug output, but the field is limited to a size far smaller. Attached as debug-output.txt

debug-output.txt

Expected behavior

For the storage account configuration to be updated.

Environment Summary

azure-cli 2.71.0

core 2.71.0
telemetry 1.1.0

Dependencies:
msal 1.31.2b1
azure-mgmt-resource 23.1.1

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

Python (Windows) 3.12.8 (tags/v3.12.8:2dc476b, Dec 3 2024, 19:30:04) [MSC v.1942 64 bit (AMD64)]

Legal docs and information: aka.ms/AzureCliLegal

Additional context

No response

Metadata

Metadata

Labels

Auto-AssignAuto assign by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamStorageaz storagecustomer-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