Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

az logic workflow update cmd without --definition option removes parameters property in Logic App code #22071

Open
ShingoHanai opened this issue Apr 15, 2022 · 7 comments
Labels
Auto-Assign Auto assign by bot customer-reported Issues that are reported by GitHub users external to the Azure organization. Logic App az logic Service Attention This issue is responsible by Azure service team.

Comments

@ShingoHanai
Copy link

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

Describe the bug
After executing following cmd, parameters property including API connection resource id in Logic App code would be removed.
---
az logic workflow update --resource-group "{Resource Group}" --name "{Workflow Name}" --state "{Enabled or Disabled}"
---

To Reproduce
I reproduced via latest az logic app module.

My Repro

  • Cmd
    az logic workflow update --resource-group "logicapps" --name "array" --state "Enabled"

  • Code before executing the cmd
    image

{
"definition": {
"$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
"actions": {
"Get_blob_content_(V2)": {
"inputs": {
"host": {
"connection": {
"name": "@parameters('$connections')['azureblob_2']['connectionId']"
}
},
"method": "get",
"path": "/v2/datasets/@{encodeURIComponent(encodeURIComponent('AccountNameFromSettings'))}/files/@{encodeURIComponent(encodeURIComponent('JTJmdGVzdCUyZmFhYS50eHQ='))}/content",
"queries": {
"inferContentType": true
}
},
"metadata": {
"JTJmdGVzdCUyZmFhYS50eHQ=": "/test/aaa.txt"
},
"runAfter": {},
"type": "ApiConnection"
}
},
"contentVersion": "1.0.0.0",
"outputs": {},
"parameters": {
"$connections": {
"defaultValue": {},
"type": "Object"
}
},
"triggers": {
"Recurrence": {
"evaluatedRecurrence": {
"frequency": "Month",
"interval": 3
},
"recurrence": {
"frequency": "Month",
"interval": 3
},
"type": "Recurrence"
}
}
},
"parameters": {
"$connections": {
"value": {
"azureblob_2": {
"connectionId": "/subscriptions/subscriptionId/resourceGroups/logicapps/providers/Microsoft.Web/connections/azureblob-5",
"connectionName": "azureblob-5",
"id": "/subscriptions/subscriptionId/providers/Microsoft.Web/locations/japaneast/managedApis/azureblob"
}
}
}
}
}

  • Code after executing the cmd
    image

{
"definition": {
"$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
"actions": {
"Get_blob_content_(V2)": {
"inputs": {
"host": {
"connection": {
"name": "@parameters('$connections')['azureblob_2']['connectionId']"
}
},
"method": "get",
"path": "/v2/datasets/@{encodeURIComponent(encodeURIComponent('AccountNameFromSettings'))}/files/@{encodeURIComponent(encodeURIComponent('JTJmdGVzdCUyZmFhYS50eHQ='))}/content",
"queries": {
"inferContentType": true
}
},
"metadata": {
"JTJmdGVzdCUyZmFhYS50eHQ=": "/test/aaa.txt"
},
"runAfter": {},
"type": "ApiConnection"
}
},
"contentVersion": "1.0.0.0",
"outputs": {},
"parameters": {
"$connections": {
"defaultValue": {},
"type": "Object"
}
},
"triggers": {
"Recurrence": {
"evaluatedRecurrence": {
"frequency": "Month",
"interval": 3
},
"recurrence": {
"frequency": "Month",
"interval": 3
},
"type": "Recurrence"
}
}
},
"parameters": {}
}

Expected behavior
There expected to be no change parameters property in Logic App code.

Environment summary
All Consumption Logic App has API connection.

Additional context
The parameters property has data of API connection.
This impact is very large.

@ghost ghost added customer-reported Issues that are reported by GitHub users external to the Azure organization. App Services az appservice CXP Attention This issue is handled by CXP team. Auto-Assign Auto assign by bot Logic App az logic labels Apr 15, 2022
@yonzhan
Copy link
Collaborator

yonzhan commented Apr 15, 2022

route to CXP team

@SaurabhSharma-MSFT SaurabhSharma-MSFT self-assigned this Apr 15, 2022
@SaurabhSharma-MSFT
Copy link
Member

@ShingoHanai I could see the same behavior and checking internally on the same. I will get back to you.

Thanks
Saurabh

@ShingoHanai
Copy link
Author

@SaurabhSharma-MSFT Thanks for your quick check. Can you share ETA to fix it?

Thanks
Shingo Hanai

@SaurabhSharma-MSFT
Copy link
Member

@ShingoHanai I do not have any ETA as products team needs to look into this issue.

@SaurabhSharma-MSFT SaurabhSharma-MSFT added Service Attention This issue is responsible by Azure service team. and removed CXP Attention This issue is handled by CXP team. labels Apr 20, 2022
@ghost
Copy link

ghost commented Apr 20, 2022

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @antcp, @AzureAppServiceCLI.

Issue Details

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

Describe the bug
After executing following cmd, parameters property including API connection resource id in Logic App code would be removed.
---
az logic workflow update --resource-group "{Resource Group}" --name "{Workflow Name}" --state "{Enabled or Disabled}"
---

To Reproduce
I reproduced via latest az logic app module.

My Repro

  • Cmd
    az logic workflow update --resource-group "logicapps" --name "array" --state "Enabled"

  • Code before executing the cmd
    image

{
"definition": {
"$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
"actions": {
"Get_blob_content_(V2)": {
"inputs": {
"host": {
"connection": {
"name": "@parameters('$connections')['azureblob_2']['connectionId']"
}
},
"method": "get",
"path": "/v2/datasets/@{encodeURIComponent(encodeURIComponent('AccountNameFromSettings'))}/files/@{encodeURIComponent(encodeURIComponent('JTJmdGVzdCUyZmFhYS50eHQ='))}/content",
"queries": {
"inferContentType": true
}
},
"metadata": {
"JTJmdGVzdCUyZmFhYS50eHQ=": "/test/aaa.txt"
},
"runAfter": {},
"type": "ApiConnection"
}
},
"contentVersion": "1.0.0.0",
"outputs": {},
"parameters": {
"$connections": {
"defaultValue": {},
"type": "Object"
}
},
"triggers": {
"Recurrence": {
"evaluatedRecurrence": {
"frequency": "Month",
"interval": 3
},
"recurrence": {
"frequency": "Month",
"interval": 3
},
"type": "Recurrence"
}
}
},
"parameters": {
"$connections": {
"value": {
"azureblob_2": {
"connectionId": "/subscriptions/subscriptionId/resourceGroups/logicapps/providers/Microsoft.Web/connections/azureblob-5",
"connectionName": "azureblob-5",
"id": "/subscriptions/subscriptionId/providers/Microsoft.Web/locations/japaneast/managedApis/azureblob"
}
}
}
}
}

  • Code after executing the cmd
    image

{
"definition": {
"$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
"actions": {
"Get_blob_content_(V2)": {
"inputs": {
"host": {
"connection": {
"name": "@parameters('$connections')['azureblob_2']['connectionId']"
}
},
"method": "get",
"path": "/v2/datasets/@{encodeURIComponent(encodeURIComponent('AccountNameFromSettings'))}/files/@{encodeURIComponent(encodeURIComponent('JTJmdGVzdCUyZmFhYS50eHQ='))}/content",
"queries": {
"inferContentType": true
}
},
"metadata": {
"JTJmdGVzdCUyZmFhYS50eHQ=": "/test/aaa.txt"
},
"runAfter": {},
"type": "ApiConnection"
}
},
"contentVersion": "1.0.0.0",
"outputs": {},
"parameters": {
"$connections": {
"defaultValue": {},
"type": "Object"
}
},
"triggers": {
"Recurrence": {
"evaluatedRecurrence": {
"frequency": "Month",
"interval": 3
},
"recurrence": {
"frequency": "Month",
"interval": 3
},
"type": "Recurrence"
}
}
},
"parameters": {}
}

Expected behavior
There expected to be no change parameters property in Logic App code.

Environment summary
All Consumption Logic App has API connection.

Additional context
The parameters property has data of API connection.
This impact is very large.

Author: ShingoHanai
Assignees: SaurabhSharma-MSFT
Labels:

Service Attention, App Services, Logic App, customer-reported, Auto-Assign

Milestone: -

@SaurabhSharma-MSFT SaurabhSharma-MSFT removed App Services az appservice Service Attention This issue is responsible by Azure service team. labels Apr 20, 2022
@ghost ghost added the needs-team-triage This issue needs the team to triage. label Apr 20, 2022
@SaurabhSharma-MSFT SaurabhSharma-MSFT added Service Attention This issue is responsible by Azure service team. and removed needs-team-triage This issue needs the team to triage. labels Apr 20, 2022
@ghost
Copy link

ghost commented Apr 20, 2022

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
After executing following cmd, parameters property including API connection resource id in Logic App code would be removed.
---
az logic workflow update --resource-group "{Resource Group}" --name "{Workflow Name}" --state "{Enabled or Disabled}"
---

To Reproduce
I reproduced via latest az logic app module.

My Repro

  • Cmd
    az logic workflow update --resource-group "logicapps" --name "array" --state "Enabled"

  • Code before executing the cmd
    image

{
"definition": {
"$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
"actions": {
"Get_blob_content_(V2)": {
"inputs": {
"host": {
"connection": {
"name": "@parameters('$connections')['azureblob_2']['connectionId']"
}
},
"method": "get",
"path": "/v2/datasets/@{encodeURIComponent(encodeURIComponent('AccountNameFromSettings'))}/files/@{encodeURIComponent(encodeURIComponent('JTJmdGVzdCUyZmFhYS50eHQ='))}/content",
"queries": {
"inferContentType": true
}
},
"metadata": {
"JTJmdGVzdCUyZmFhYS50eHQ=": "/test/aaa.txt"
},
"runAfter": {},
"type": "ApiConnection"
}
},
"contentVersion": "1.0.0.0",
"outputs": {},
"parameters": {
"$connections": {
"defaultValue": {},
"type": "Object"
}
},
"triggers": {
"Recurrence": {
"evaluatedRecurrence": {
"frequency": "Month",
"interval": 3
},
"recurrence": {
"frequency": "Month",
"interval": 3
},
"type": "Recurrence"
}
}
},
"parameters": {
"$connections": {
"value": {
"azureblob_2": {
"connectionId": "/subscriptions/subscriptionId/resourceGroups/logicapps/providers/Microsoft.Web/connections/azureblob-5",
"connectionName": "azureblob-5",
"id": "/subscriptions/subscriptionId/providers/Microsoft.Web/locations/japaneast/managedApis/azureblob"
}
}
}
}
}

  • Code after executing the cmd
    image

{
"definition": {
"$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
"actions": {
"Get_blob_content_(V2)": {
"inputs": {
"host": {
"connection": {
"name": "@parameters('$connections')['azureblob_2']['connectionId']"
}
},
"method": "get",
"path": "/v2/datasets/@{encodeURIComponent(encodeURIComponent('AccountNameFromSettings'))}/files/@{encodeURIComponent(encodeURIComponent('JTJmdGVzdCUyZmFhYS50eHQ='))}/content",
"queries": {
"inferContentType": true
}
},
"metadata": {
"JTJmdGVzdCUyZmFhYS50eHQ=": "/test/aaa.txt"
},
"runAfter": {},
"type": "ApiConnection"
}
},
"contentVersion": "1.0.0.0",
"outputs": {},
"parameters": {
"$connections": {
"defaultValue": {},
"type": "Object"
}
},
"triggers": {
"Recurrence": {
"evaluatedRecurrence": {
"frequency": "Month",
"interval": 3
},
"recurrence": {
"frequency": "Month",
"interval": 3
},
"type": "Recurrence"
}
}
},
"parameters": {}
}

Expected behavior
There expected to be no change parameters property in Logic App code.

Environment summary
All Consumption Logic App has API connection.

Additional context
The parameters property has data of API connection.
This impact is very large.

Author: ShingoHanai
Assignees: SaurabhSharma-MSFT
Labels:

Service Attention, Logic App, customer-reported, Auto-Assign

Milestone: -

@SaurabhSharma-MSFT SaurabhSharma-MSFT removed their assignment May 4, 2022
@ghost
Copy link

ghost commented Nov 10, 2023

I have recently reproduced this event with other subscriptions.
Is there any progress here?

Best Regards,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Auto-Assign Auto assign by bot customer-reported Issues that are reported by GitHub users external to the Azure organization. Logic App az logic Service Attention This issue is responsible by Azure service team.
Projects
None yet
Development

No branches or pull requests

3 participants