LogicAppsUX icon indicating copy to clipboard operation
LogicAppsUX copied to clipboard

User-Assigned Managed Identity are not displayed properly in HTTP actions when referenced through Parameters

Open WenovateAA opened this issue 2 years ago • 6 comments
trafficstars

Describe the Bug with repro steps

  1. Link existing user-assigned managed identity (UAMI) to Logic Apps (Standard or Consumption).

  2. Add resource id of the UAMI to parameters (UAMI-Id)

  3. Create HTTP action. Add Authentication property for the HTTP action. Choose Managed identity from the drop-down menu

  4. Click on Switch to code view mode button and paste the code:

{

"audience": "https://management.azure.com",

"identity": "@{parameters('UAMI-Id')}",

"type": "ManagedServiceIdentity"

}

  1. This HTTP action will work as intended, however Designer displays The entered identity is not associated with this Logic App error

What type of Logic App Is this happening in?

Consumption (Portal)

Are you using Preview Designer or GA Designer

Preview

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

Yes

Workflow JSON

{
  "type": "Http",
  "inputs": {
    "uri": "https://management.azure.com/...",
    "method": "PUT",
    "body": {},
    "authentication": {
      "audience": "https://management.azure.com",
      "identity": "@{parameters('UAMI-Id')}",
      "type": "ManagedServiceIdentity"
    }
  }
}

Screenshots or Videos

Preview Designer

image

GA Designer

image

Browser

MS Edge (Chrome)

Additional context

This issue is observed in both versions of Designer and for both Logic Apps tiers.

Why it is important to store UAMI resource id in parameters and not in the code? There is a need to have the same code in all environments (tenants), for which UAMI is different. Its resource id therefore should not be part of workflow's code but instead stored in parameters (Consumption) or Application settings and referenced in parameters (for LA Standard)

AB#24439960

WenovateAA avatar Jul 03 '23 17:07 WenovateAA

I have same issue. And also it is not possible to add parameter via designer but via code edit. Lastly why should system assigned identity must be enabled for this logic app. My company decided to only use user assigned for more control and since that works, either of 2 should be enabled and not System assigned.

mohit-jagtiani avatar Jul 10 '23 11:07 mohit-jagtiani

❌ There was a problem linking to Azure Boards work item(s):

  • 24439960

Please check the IDs and try again using the AB# syntax. Learn more

azure-boards[bot] avatar Feb 06 '24 16:02 azure-boards[bot]

❌ There was a problem linking to Azure Boards work item(s):

  • 24439960

Please check the IDs and try again using the AB# syntax. Learn more

azure-boards[bot] avatar Feb 06 '24 16:02 azure-boards[bot]

❌ There was a problem linking to Azure Boards work item(s):

  • 24439960

Please check the IDs and try again using the AB# syntax. Learn more

azure-boards[bot] avatar Feb 06 '24 17:02 azure-boards[bot]

❌ There was a problem linking to Azure Boards work item(s):

  • 24439960

Please check the IDs and try again using the AB# syntax. Learn more

azure-boards[bot] avatar Feb 06 '24 17:02 azure-boards[bot]

❌ There was a problem linking to Azure Boards work item(s):

  • 24439960

Please check the IDs and try again using the AB# syntax. Learn more

azure-boards[bot] avatar Feb 06 '24 19:02 azure-boards[bot]