Skip to content

Export logic app doesn't fetch subscriptions from second tenant #1971

@Venkat-AG

Description

@Venkat-AG

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions