VS 2022 Azure publish configuration doesn't seem to work

leo del ciello 66 Reputation points
2025-01-20T05:30:41.9466667+00:00

I am new to Azure App Service .

I am strictly following Microsoft's instructions on :

https://learn.microsoft.com/en-us/azure/app-service/quickstart-dotnetcore?tabs=net80&pivots=development-environment-vs

I own a free Azure Account .

I set up a basic VS 2022 web application that I want to publish on Azure

When I follow Microsoft's instructions I can select , on VS 2022 publishing configuration, the section "Target : Azure", and then "App Service" .If I select "Open Account Settings" I can see my free Azure account, but there is no way to select it : I just see the "close" button and if I click it , it goes back to the App Service page, and from there I can only go back or cancel the operation . What should I do to set my free Azure account on the publishing configuration ?

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,258 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Divyesh Govaerdhanan 1,200 Reputation points
    2025-01-23T16:45:31.5133333+00:00

    Hello,

    Welcome to Microsoft Q&A,

    Did you sign in and is your account showing in the dropdown instead of the Sign in button as shown in the image below? If its still showing Sign in, please sign in and then try again.Screenshot of Visual Studio - Select sign in to Azure dialog.

    Please Upvote and accept the answer if it helps!

    0 comments No comments

  2. Harshitha Veeramalla 1 Reputation point Microsoft Vendor
    2025-02-04T07:08:18.53+00:00

    Hi @leo del ciello,

    Thank you for reaching out to MS Q&A.

    In Visual Studio, Open Tools => Options => Azure Service Authentication => Account Selection

    Make sure you have logged in to the same account.

    enter image description here

    If you see any re-enter credentials option, click on it and filter with the required Tenant and login again.

    enter image description here

    enter image description here

    • Now check the App service options in Publish profile, you will be able to see the available subscriptions enabling you to select one.

    enter image description here

    If you are still facing issue with the above deployment process, as an alternative approach you can use Import Profile option to deploy the app.

    enter image description here

    • Create an App Service in Azure Portal with the required Runtime stack.

    enter image description here

    • Enable the Basic Authentication under Configuration section.

    enter image description here

    • Download the Publish profile from App Service overview.

    enter image description here

    • Now in Visual Studio, select the Import Profile and attach the downloaded publish profile and continue with the next steps.

    enter image description here

    Output:

    enter image description here

    Hope this helps.

    If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.

    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.