Azure / Azure/azure-cli

`az config set core.disable_confirm_prompt=true` Does not Ignore `user_confirmation` prompts

Open
#19,195 1 comment 1 reaction 1 assignee Claimed by @jiasli View on GitHub
act-codegen-extensibility-squad Configure feature-request
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

> ### `az feedback` auto-generates most of the information requested below, as of CLI version 2.0.62

**Describe the bug**
We want to have custom confirmation prompts in our CLI extension, so we are not using the native prompts that come with `custom_command`. Unfortunately, moving to these has the potential to break users considering the fact that `az config set core.disable_confirm_prompt=true` ignores the command_prompt in the `custom_command` but not these `user_confirmation` prompts.

**Expected behavior**
`user_confirmation` promptes should be ignored when `disable_confirm_prompt` is set to true

## Environment Summary
```
Windows-10-10.0.19043-SP0
Python 3.9.6
Installer: PIP

azure-cli 2.27.1

Extensions:
connectedk8s 1.1.5
k8s-config 0.1.0
k8s-configuration 1.1.0
k8s-extension-private 0.6.1b3
k8s-config 0.1.0 (dev) C:\Users\joinnis.REDMOND\github\azure-cli-extensions\src\k8s-config
k8s-configuration 1.1.0 (dev) C:\Users\joinnis.REDMOND\github\azure-cli-extensions\src\k8s-configuration
k8s-extension 0.6.1 (dev) C:\Users\joinnis.REDMOND\github\azure-cli-extensions\src\k8s-extension

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.