-
Notifications
You must be signed in to change notification settings - Fork 76
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.