Azure / Azure/LogicAppsUX

"Create or update a template deployment" properties automatically deleted after save through UI

Open
#7,002 0 comments 0 reactions 0 assignees View on GitHub
Dynamic Data Serialization
Dominant language
TypeScript
Stars
111
Forks
109
Avg merge
1d 23h
Merged PRs (30d)
20

Description

### Describe the Bug with repro steps

When I save the workflow using the UI it will automatically delete all the properties of my action "Create or update a template deployment" except the "templateLink" property. So each time I have this:
```json
"properties": {
"templateLink": {
"id": "/subscriptions//resourceGroups/primaryCore/providers/Microsoft.Resources/templateSpecs/AlterUser/versions/0.1"
},
"parameters": {
"vmName": {
"value": "@body('Get_virtual_machine')?['name']"
},
"email": {
"value": "@outputs('User_Email')"
},
"uuid":{
"value": "@outputs('UUID')"
},
"action": {
"value": "add"
}
},
"mode": "Incremental"
}
```
And when I save the workflow through UI for whatever reason (without modifying the deployment action) it will automatically give me this without any error or information message:
```json
"properties": {
"templateLink": {
"id": "/subscriptions//resourceGroups/primaryCore/providers/Microsoft.Resources/templateSpecs/AlterUser/versions/0.1"
}
}
```
Also I noticed if I provide strings in parameters instead of functions like `@body`, I don't have this issue. And If I provide the parameters through the UI using the "properties" field instead of "parameters", the UI will not delete the parameters but after saving it if I open the action again it will appear in the "parameters" field and if I save my workflow using the UI even if it's for a modification on another action it will remove the parameters.

### What type of Logic App Is this happening in?

Consumption (Portal)

### Which operating system are you using?

Windows

### Did you refer to the TSG before filing this issue? https://aka.ms/lauxtsg

Yes

### Workflow JSON

```json
{
"type": "ApiConnection",
"inputs": {
"host": {
"connection": {
"referenceName": "arm"
}
},
"method": "put",
"body": {
"properties": {
"templateLink": {
"id": "/subscriptions//resourceGroups/primaryCore/providers/Microsoft.Resources/templateSpecs/AlterUser/versions/0.1"
},
"parameters": {
"vmName": {
"value": "@body('Get_virtual_machine')?['name']"
},
"email": {
"value": "@outputs('User_Email')"
},
"uuid":{
"value": "@outputs('UUID')"
},
"action": {
"value": "add"
}
},
"mode": "Incremental"
}
},
"path": "/subscriptions/@{encodeURIComponent('')}/resourcegroups/@{encodeURIComponent('primaryCore')}/providers/Microsoft.Resources/deployments/@{encodeURIComponent('add_user',ticks(utcNow()))}",
"queries": {
"x-ms-api-version": "2024-11-01",
"wait": true
}
},
"runAfter": {
"Read_IP_resource": [
"Succeeded"
],
"Get_virtual_machine": [
"Succeeded"
],
"User_Email": [
"Succeeded"
],
"Server_Config": [
"Succeeded"
],
"UUID": [
"Succeeded"
]
}
}
```

### Screenshots or Videos

_No response_

### Browser

- Edge

### Additional context

_No response_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.