Export logic app doesn't fetch subscriptions from second tenant
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 42/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- azure, typescript, vscode
Research direction
Start with the VS Code Azure "Export Logic App" flow and reproduce the POST to Azure Resource Graph shown in the issue, using Developer: Toggle Developer Tools or Postman. Trace how the request is scoped to tenants; done means subscriptions from the second visible tenant are returned as well as those from the primary tenant.
Written by the indexing model from the issue text.
Description
Hi,
I’m trying to export a Logic App (Consumption to Standard) using the "Export Logic App" feature in VS Code (Azure > Workspace > Export Logic App...). However, I’m unable to see any subscriptions from my second tenant, even though that tenant is visible under Accounts & Tenants in the Azure extension.
To investigate further, I used Developer: Toggle Developer Tools to inspect the request being made by VS Code. I replicated the same request in Postman and got the same result — only the subscriptions from my primary tenant are returned.
Here are the request details:
Method: POST
URL: https://management.azure.com/providers/Microsoft.ResourceGraph/resources?api-version=2021-03-01
Request Body:
{
"query": "resourcecontainers | where type == 'microsoft.resources/subscriptions' | join kind=leftouter (securityresources | where properties.environment == 'Azure' and properties.displayName == 'ASC score') on subscriptionId | extend subscriptionName=name | project id, subscriptionId, subscriptionName|sort by (tolower(tostring(subscriptionName))) asc"
}
It seems the request is only scoped to the default tenant. Could you please advise how to include subscriptions from the second tenant, or if there’s a way to explicitly scope the request across tenants?
Thanks.
- Dominant language
- TypeScript
- Stars
- 144
- Forks
- 82
- Avg merge
- 18h 7m
- Merged PRs (30d)
- 8
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/vscode-azuretools
-
engineering
microsoft/vscode-azuretools#2286 · 1 assignee ·
-
engineering investigate
microsoft/vscode-azuretools#2264 · 1 assignee ·
-
engineering
microsoft/vscode-azuretools#2177 · 1 comment · 1 reaction · 2 assignees ·
-
Difficulty 4/5 3-5 days Newbie friendliness 30/100
microsoft/vscode-azuretools#1877 ·
-
auth
Difficulty 5/5 Over a week Newbie friendliness 30/100
microsoft/vscode-azuretools#1826 · 1 comment ·
All issues in microsoft/vscode-azuretools
Similar issues
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P3
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficulty 1/5 Under an hour Newbie friendliness 76/100
-
code-quality refactoring
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
github/gh-aw-firewall#8816 ·
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/deepagents#6450 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
vercel/react-tweet#225 ·