Connection Target does not give me any subscription

NM 1 Reputation point
2024-05-20T21:40:24.7333333+00:00

Hello,

I followed the instructions at https://learn.microsoft.com/en-us/training/modules/dotnet-debug-visual-studio-azure-web-apps/4-attach-to-process.

At step Attach the debugger to the App Service, I clicked the Find button, but the Subscription name does not list any subscription I have access too. Any idea why? Please note I'm in a corporate VPN.

.NET Training
.NET Training
.NET: Microsoft Technologies based on the .NET software framework.Training: Instruction to develop new skills.
15 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Pradeep M 4,560 Reputation points Microsoft Vendor
    2024-05-21T04:21:17.33+00:00

    Hi NM,

    Thank you for reaching out to Microsoft Q & A forum.   

    If you're having trouble seeing your Azure subscriptions when trying to attach the Visual Studio debugger to your App Service, please follow these troubleshooting steps: 

    1.Sign in to the Correct Azure Account: Ensure you are logged into the correct Azure account in Visual Studio. You can verify this by navigating to View > Cloud Explorer and checking if your Azure resources are listed. 

    2.Check Network Connectivity: Corporate VPNs can sometimes restrict access to certain services. Try disconnecting from the VPN to see if your Azure subscriptions appear. 

    3.Verify Subscription Permissions: Confirm that your user account has the necessary permissions (at least "Reader" access) for the Azure subscription. You can check this by logging into the Azure Portal and reviewing the "Subscriptions" section. 

    4.Refresh the Subscription List: In the "Attach to Process" dialog in Visual Studio, click the Refresh button next to the Connection Target field after selecting Microsoft Azure App Services. 

    5.Check Azure Service Authentication Settings: Go to Tools > Options > Azure Service Authentication in Visual Studio and verify that the correct account is selected. 

    6.Update Visual Studio: Ensure that your Visual Studio installation is up-to-date, as updates can often resolve connectivity issues. 

    7.Install the Latest Azure SDK: Confirm that you have the latest Azure SDK and tools installed in Visual Studio. You can check this by going to Tools > Get Tools and Features. 

    8.Verify Azure Active Directory Configuration: If your organization uses Azure Active Directory (AAD), ensure that your AAD tenant is properly configured and that your account has the appropriate roles. 

    9.Use Azure CLI or PowerShell: You can use Azure CLI or PowerShell to list your subscriptions and check for accessibility. 

    using Azure CLI: 

    az login
    az account list
    
    

    with PowerShell: 

    Connect-AzAccount
    Get-AzSubscription
    
    

    Please feel free to contact us if you have any additional questions. 

    If you have found the answer provided to be helpful, please click on the "Accept answer/Upvote" button so that it is useful for other members in the Microsoft Q&A community.   

    Thank you.   

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.