Azure / logicapps

Azure Logic Apps labs, samples, and tools
MIT License
368 stars 302 forks source link

The subscription drop down did not list the subscription #1245

Open Durga-S1 opened 1 week ago

Durga-S1 commented 1 week ago

Describe the Bug with repro steps

The sign in would be successful with Managed Identity but the subscription drop down did not list the subscription where cx creating the Logic app.

I reproduced the issue in my lab and noticed the same behavior. For troubleshooting purposes, I tried both the old and new Logic Apps, but it did not work.

What type of Logic App Is this happening in?

Standard (Portal)

Which operating system are you using?

Windows

Are you using new designer or old designer

New Designer

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

Yes

Workflow 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": "",
                            "destination": {
                                "endpointType": "webhook",
                                "properties": {
                                    "endpointUrl": "@listCallbackUrl()"
                                }
                            }
                        }
                    },
                    "path": "/subscriptions/@{encodeURIComponent('')}/providers/@{encodeURIComponent('Microsoft.Storage.StorageAccounts')}/resource/eventSubscriptions",
                    "queries": {
                        "x-ms-api-version": "2017-09-15-preview"
                    }
                },
                "splitOn": "@triggerBody()"
            }
        }
    },
    "kind": "Stateful"
}

Screenshots or Videos

Image

Browser

Additional context

No response

StephenWThomas commented 1 week ago

I ran into this same issue twice, and here are the two solutions in case one helps you out:

Approach One: If you use MFA, you might need to log in using Azure: Sign in to Directory from the Command Palette.

Approach Two: I had a similar issue, and it was related to my account having access to more than one Azure account (Tenant). It could also be that the wrong Tenant value has been set by a logon in the past.

Did you check to make sure you're in the right tenant?
On the Azure Account extension, right-click on the gear icon and go to Settings. Check the last value for Azure: Tenant.

You can visit the Command Palette, Azure: Select Tenant, or try Azure: Select Subscription. To set them.

Durga-S1 commented 1 week ago

Hi Stephen,

I have checked the tenant, and it is the correct one.

Thanks, Durga


From: Stephen W. Thomas @.> Sent: Wednesday, November 13, 2024 7:13 PM To: Azure/LogicAppsUX @.> Cc: Durga Sharma (Insight Global LLC) @.>; Author @.> Subject: Re: [Azure/LogicAppsUX] The subscription drop down did not list the subscription (Issue Azure/logicapps#1245)

I had a similar issue, and it was related to my account having access to more than one Azure account (Tenant). It could also be that the wrong Tenant value has been set by a logon in the past.

Did you check to ensure you're in the right tenant? On the Azure Account extension, right-click on the gear icon and go to Settings. Check the last value for Azure: Tenant.

You can visit the Command Palette, Azure: Select Tenant, or try Azure: Select Subscription. To set them.

— Reply to this email directly, view it on GitHubhttps://github.com/Azure/logicapps/issues/1245, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BMTV3KBD44QBADQRLNUVPIL2AP2KBAVCNFSM6AAAAABRXVKY7SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINZVGE2DKOBSGI. You are receiving this because you authored the thread.

ccastrotrejo commented 6 days ago

Hi all thanks for keeping it up in this issue. @Durga-S1 Is this happening in Azure portal or vscode extension?

Durga-S1 commented 6 days ago

Hi,

In Azure portal.

Regards​

Durga Sharma

Azure Logic Apps

Support Engineer

Hours: Monday – Friday; 9:00 AM – 6:00 PM CST

Manager: Yolanda Briggs @.**@.>


From: Carlos Emiliano Castro Trejo @.> Sent: Friday, November 15, 2024 9:12 AM To: Azure/LogicAppsUX @.> Cc: Durga Sharma (Insight Global LLC) @.>; Mention @.> Subject: Re: [Azure/LogicAppsUX] The subscription drop down did not list the subscription (Issue Azure/logicapps#1245)

Hi all thanks for keeping it up in this issue. @Durga-S1https://github.com/Durga-S1 Is this happening in Azure portal or vscode extension?

— Reply to this email directly, view it on GitHubhttps://github.com/Azure/logicapps/issues/1245, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BMTV3KA5AWFEW6CBFOSJHOL2AYFNJAVCNFSM6AAAAABRXVKY7SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINZZGEYDSMRYHE. You are receiving this because you were mentioned.Message ID: @.***>

ccastrotrejo commented 6 days ago

Hi @Durga-S1 do you see any API call failing? This might be related to the connection or the settings of the logic app

Durga-S1 commented 6 days ago

Could you please confirm if there are any specific settings I need to check.

ccastrotrejo commented 3 days ago

@Durga-S1 I am not aware of any specific settings. I will take some time and look for anything in our documentation

StephenWThomas commented 3 days ago

Does your account have access to more than one Tenant?

I ran into issues again tonight, and nothing could get it moved to my 2nd tenant.

Finally, I signed in and ran Azure: Sign in to Directory from the Command Palette.

If you aren't part of more than one tenant, this probably won't help. I just wanted to throw this out again after I ran into issues again.

Elaina-Lee commented 16 hours ago

From the attached information on ICM open, this is happening due to the API call failing. Transferring the ticket to backend.