Azure / azure-cli

Azure Command-Line Interface
MIT License
3.91k stars 2.87k forks source link

"az logic workflow update" removes API connection #20807

Open sjuratov opened 2 years ago

sjuratov commented 2 years ago

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

Describe the bug I deploy Logic App using Bicep template and "az deployment group create". Logic App gets deployed as Disabled (this is intentional). So far so good. In one of subsequent commands I run "az logic workflow update --state Enabled". This runs successfully, enables Logic App (good) but it also removes API connection (bad).

Note: If I create Logic App per above but then manually (in Azure Portal) enable it, all is good - API connection does not get deleted.

Probably not relevant, API connection is to Azure SQL Database and it's part of Bicep template.

To Reproduce See bug description for repro.

Expected behavior API connection should not be removed.

Environment summary Windows 10 with following az version azure-cli 2.31.0

core 2.31.0 telemetry 1.0.6

Extensions: azure-cli-ml 1.37.0 azure-iot 0.11.0 logic 0.1.4

Additional context

jiasli commented 2 years ago

Routing to service team to take a look. Please expect delay due to the holiday season.

ghost commented 2 years ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @Azure/azure-logicapps-team.

Issue Details
> ### `az feedback` auto-generates most of the information requested below, as of CLI version 2.0.62 **Describe the bug** I deploy Logic App using Bicep template and "az deployment group create". Logic App gets deployed as Disabled (this is intentional). So far so good. In one of subsequent commands I run "az logic workflow update --state Enabled". This runs successfully, enables Logic App (good) but it also removes API connection (bad). Note: If I create Logic App per above but then manually (in Azure Portal) enable it, all is good - API connection does not get deleted. Probably not relevant, API connection is to Azure SQL Database and it's part of Bicep template. **To Reproduce** See bug description for repro. **Expected behavior** API connection should not be removed. **Environment summary** Windows 10 with following az version azure-cli 2.31.0 core 2.31.0 telemetry 1.0.6 Extensions: azure-cli-ml 1.37.0 azure-iot 0.11.0 logic 0.1.4 **Additional context**
Author: sjuratov
Assignees: -
Labels: `Service Attention`, `question`, `Logic App`, `customer-reported`, `needs-triage`
Milestone: -