Skip to content

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

@sagarkul

Description

@sagarkul

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


Metadata

Metadata

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions