Skip to content

unable to deactivate allow_broker again: [Errno 1] Operation not permitted: '/home/xxx/.azure/config' #26788

@cforce

Description

@cforce

Describe the bug

unable to deactivate allow_broker again

Related command

az config unset core.allow_broker

Errors

It fails

Issue script & Debug output

Command group 'config' is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
The command failed with an unexpected error. Here is the traceback:
[Errno 1] Operation not permitted: '/home/wallwif/.azure/config'
Traceback (most recent call last):
File "/home/linuxbrew/.linuxbrew/Cellar/azure-cli/2.47.0/libexec/lib/python3.10/site-packages/knack/cli.py", line 233, in invoke
cmd_result = self.invocation.execute(args)
File "/home/linuxbrew/.linuxbrew/Cellar/azure-cli/2.47.0/libexec/lib/python3.10/site-packages/azure/cli/core/commands/init.py", line 663, in execute
raise ex
File "/home/linuxbrew/.linuxbrew/Cellar/azure-cli/2.47.0/libexec/lib/python3.10/site-packages/azure/cli/core/commands/init.py", line 726, in run_jobs_serially
results.append(self.run_job(expanded_arg, cmd_copy))
File "/home/linuxbrew/.linuxbrew/Cellar/azure-cli/2.47.0/libexec/lib/python3.10/site-packages/azure/cli/core/commands/__init.py", line 697, in run_job
result = cmd_copy(params)
File "/home/linuxbrew/.linuxbrew/Cellar/azure-cli/2.47.0/libexec/lib/python3.10/site-packages/azure/cli/core/commands/_init.py", line 333, in call
return self.handler(args, *kwargs)
File "/home/linuxbrew/.linuxbrew/Cellar/azure-cli/2.47.0/libexec/lib/python3.10/site-packages/azure/cli/core/commands/command_operation.py", line 121, in handler
return op(**command_args)
File "/home/linuxbrew/.linuxbrew/Cellar/azure-cli/2.47.0/libexec/lib/python3.10/site-packages/azure/cli/command_modules/config/custom.py", line 93, in config_unset
cmd.cli_ctx.config.remove_option(section, name)
File "/home/linuxbrew/.linuxbrew/Cellar/azure-cli/2.47.0/libexec/lib/python3.10/site-packages/knack/config.py", line 168, in remove_option
if config.remove_option(section, option):
File "/home/linuxbrew/.linuxbrew/Cellar/azure-cli/2.47.0/libexec/lib/python3.10/site-packages/knack/config.py", line 247, in remove_option
self.set(self.config_parser)
File "/home/linuxbrew/.linuxbrew/Cellar/azure-cli/2.47.0/libexec/lib/python3.10/site-packages

Expected behavior

no fail

Environment Summary

azure cli 2.47.0
windows 10

Additional context

No response

Metadata

Metadata

Assignees

Labels

Auto-AssignAuto assign by botAuto-ResolveAuto resolve by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamBrokerIssues from broker (currently WAM on Windows. More on other platforms are coming.)Configureaz configure/configOKR 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.feature-request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions