ERROR: Unable to prompt for confirmation as no tty available. Use --yes. With az monitor app-insights component update
- 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.37.0
Unable to automate command `az monitor app-insights component update ` with error ERROR: Unable to prompt for confirmation.
Like other commands, I tried to add --yes argument. but it is not supported.
unrecognized arguments: --yes
**Related command**
`
az monitor app-insights component update --app "$applicationInsightsName" -g $"$resourceGroupName" --workspace "$logAnalyticsWorkspaceId"
`**Describe the bug**
trying to update app-insights using Az CLI command using devops
**To Reproduce**
Run below command
`
az monitor app-insights component update --app "$applicationInsightsName" -g $"$resourceGroupName" --workspace "$logAnalyticsWorkspaceId"
`**Expected behavior**
below command should work but throwing error unrecognized arguments: --yes
```
az monitor app-insights component update --app "$applicationInsightsName" \
-g $"$resourceGroupName" --workspace "$logAnalyticsWorkspaceId" --yes
```
Contributor guide
Assessment
This issue has not been assessed yet.