Can't publish to B1 Linux App Service Plan from Visual Studio

Daniel Stout 6 Reputation points
2023-01-17T20:34:46.05+00:00

I created a B1 Linux app service plan in the Azure Portal.

I then tried to publish a new ASP.Net site to that app service plan, but it doesn't appear in the "Hosting Plan" dropdown in Visual Studio.

I clicked "New" instead and created a new hosting plan, but only standard and premium options are available - none of the basic ones:

User's image

I created a new S1 plan from this interface in Visual Studio and publishing the site worked fine - I then went into Azure Portal and downsized this S1 plan to B1, but now it also doesn't show up in the Visual Studio publish dialog.

What's going on here? I haven't read any thing about being unable to publish to basic Linux app service plans from Visual Studio.

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

1 answer

Sort by: Most helpful
  1. SanthiSwaroopNaikBukke-4908 595 Reputation points
    2023-01-20T17:45:33.3133333+00:00

    There can be a few reasons why you may be unable to publish to a B1 Linux App Service Plan from Visual Studio 2022 version 17.4.3. Some of the possible causes are:

    1. Insufficient permissions: Make sure that you have the necessary permissions to publish to the B1 Linux App Service Plan, you may need to check with your Azure administrator.
    2. Incorrect publish profile: Verify that you are using the correct publish profile for the B1 Linux App Service Plan. You can create a new publish profile in Visual Studio by right-clicking on the project and selecting "Publish..."
    3. Incompatible runtime: Verify that the runtime of your app is compatible with the B1 Linux App Service Plan. Linux App Service Plans only support .NET Core and Node.js runtimes.
    4. Network connectivity issues: Check your network connectivity and make sure that you have a stable connection to the Azure portal.
    5. Incorrect version of the Azure SDK: Verify that you have the correct version of the Azure SDK installed in Visual Studio. You can check this by going to the "Help" menu and selecting "About Microsoft Visual Studio."
    6. Incorrect version of .NET Core runtime: Verify that you have the correct version of the .NET Core runtime installed on your development machine.
    7. Problem with the Visual Studio: Sometimes, issues with Visual Studio can cause problems with publishing, try repairing or reinstalling it.
    8. Incorrect configuration of the B1 Linux App Service Plan: Verify the configuration of the B1 Linux App Service Plan, make sure that the app service plan is properly configured to run Linux container.

    Troubleshoot and resolve the issue by checking the above points. If the problem persists, you can also check the Azure portal for any error messages or check the Azure App Service logs for more information.