microsoft / vscode-azurelogicapps

Visual Studio Code extension for Azure Logic Apps (Consumption)
https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-logicapps
MIT License
42 stars 28 forks source link

Designer view does not work with Logic Apps using managed identity #251

Open rikvanduijn opened 2 years ago

rikvanduijn commented 2 years ago

While trying to edit existing logic apps the designer view does not load. It stays blank. Creating a new logic app via the extension and copying in the code from the pre-existing logic apps does work. Tried looking at the debug console and problems tab to see if any errors are reported. Unfortunately no erros showed. Steps to reproduce:

  1. connect to azure account
  2. open existing logic app via designer view
  3. blank screen

creating the new logic app only works locally, after creating the new logic app in windows. The designer works there. Opening it on another device results in the same blank screen. It's probably related to some local resource that is missing or not correctly configured.

Looking at the developer console shows the following error:

Uncaught (in promise) Common.UnsupportedException: Cannot render designer due to presence of managed identity connections. at r.t [as constructor] (https://ema.hosting.portal.azure.net/ema/Content/2.20418.1.2/Scripts/logicappdesigner/core.designer.min.js:1:277363) at new r (https://ema.hosting.portal.azure.net/ema/Content/2.20418.1.2/Scripts/logicappdesigner/core.designer.min.js:1:153260) at t.<anonymous> (https://ema.hosting.portal.azure.net/ema/Content/2.20418.1.2/Scripts/logicappdesigner/core.designer.min.js:1:1410466) at step (https://ema.hosting.portal.azure.net/ema/Content/2.20418.1.2/Scripts/logicappdesigner/tslib.js:143:27) at Object.next (https://ema.hosting.portal.azure.net/ema/Content/2.20418.1.2/Scripts/logicappdesigner/tslib.js:124:57) at https://ema.hosting.portal.azure.net/ema/Content/2.20418.1.2/Scripts/logicappdesigner/tslib.js:117:75 at new Promise (<anonymous>) at Object.__awaiter (https://ema.hosting.portal.azure.net/ema/Content/2.20418.1.2/Scripts/logicappdesigner/tslib.js:113:16) at t.deserialize (https://ema.hosting.portal.azure.net/ema/Content/2.20418.1.2/Scripts/logicappdesigner/core.designer.min.js:1:1409864) at e.<anonymous> (https://ema.hosting.portal.azure.net/ema/Content/2.20418.1.2/Scripts/logicappdesigner/core.designer.min.js:1:2185788)

Tested both on Windows and MacOS.

joechung-msft commented 2 years ago

The designer in the extension does not support Logic Apps using managed identity. I'll pass this along to the team.

joechung-msft commented 2 years ago

Reopening #187 to mark it as a duplicate of this.

CezaryKlus commented 2 years ago

Additionally exporting to ARM via "Add to Project" action does not set "identity": { "type": "SystemAssigned" },