Azure / Azure/azure-cli

ERROR: Unable to prompt for confirmation as no tty available. Use --yes. With az monitor app-insights component update

Open
#22,719 5 comments 0 reactions 3 assignees Claimed by @AllyW View on GitHub
act-observability-squad Auto-Assign customer-reported Monitor
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

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.