Azure / Azure/LogicAppsUX

Azure EventGrid trigger not supporting NextLink in KeyVault API

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

Description

### Describe the Bug with repro steps

1. Create workflow (Consumption or Standard)
2. Create EventGrid trigger (When a resource event occurs)
3. Select KeyVaults resource type and subscription
4. Attempt to select Keyvault

Workaround: Using the KV full URI works, the trigger does not fail.

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

Standard (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
{
"definition": {
"$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
"actions": {},
"contentVersion": "1.0.0.0",
"outputs": {},
"triggers": {
"When_a_resource_event_occurs": {
"type": "ApiConnectionWebhook",
"inputs": {
"host": {
"connection": {
"referenceName": "azureeventgrid"
}
},
"body": {
"properties": {
"topic": "XXX",
"destination": {
"endpointType": "webhook",
"properties": {
"endpointUrl": "@listCallbackUrl()"
}
},
"filter": {
"includedEventTypes": [
"Microsoft.KeyVault.KeyExpired"
]
}
}
},
"path": "/subscriptions/@{encodeURIComponent('SUBSCRIPTIONID')}/providers/@{encodeURIComponent('Microsoft.KeyVault.vaults')}/resource/eventSubscriptions",
"queries": {
"x-ms-api-version": "2017-09-15-preview"
}
},
"splitOn": "@triggerBody()"
}
}
},
"kind": "Stateful"
}
```

### Screenshots or Videos

Not all Keyvaults are listed.
After a certain number, the API is paging the resources and the UI is not listing the KeyVaults as expected.
Example, KV 6 and 7 are listed only in NextLink, but UI is not picking them up.

UI:

![Image](https://github.com/user-attachments/assets/5cc22e0a-8f4b-4b66-b33a-97a016fa0870)

API Results:

![Image](https://github.com/user-attachments/assets/51566a5d-13f1-4f16-be86-8c3d43204740)
NextLink:

![Image](https://github.com/user-attachments/assets/b515c7f0-ea05-4568-9a23-9df520ddd43c)

KeyVault Listing:

![Image](https://github.com/user-attachments/assets/e4c2ff4b-3ab7-49e1-b178-a0535e1cc9d8)

### Browser

Edge

### Additional context

_No response_

Contributor guide

No contributing guide indexed for this repository

Research direction

No repository files or tests are named. Reproduce the EventGrid trigger resource selection with enough KeyVaults to produce a NextLink, then trace the UI's KeyVault listing and pagination response; done when all resources returned across pages, including KV 6 and 7, are selectable.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, react, typescript
Domain
cloud, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.