Skip to content

Commit 06d7178

Browse files
authored
Merge pull request #12699 from ghogen/publish-profile
Review and update credentials information for Azure App Service publish
2 parents dbf51a0 + 1b4191f commit 06d7178

File tree

3 files changed

+14
-10
lines changed

3 files changed

+14
-10
lines changed

docs/azure/how-to-get-publish-profile-from-azure-app-service.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: ghogen
55
manager: mijacobs
66
ms.subservice: azure-development
77
ms.topic: how-to
8-
ms.date: 05/16/2024
8+
ms.date: 06/18/2024
99
ms.author: ghogen
1010
monikerRange: ">=vs-2019"
1111
---
@@ -15,7 +15,8 @@ monikerRange: ">=vs-2019"
1515
A publish profile is a file that contains information and settings that Visual Studio uses to deploy applications and services to Azure.
1616

1717
1. In the Azure portal, open the Azure App Service.
18-
2. Go to **Download publish profile** and save the profile locally.
18+
1. Make sure that **Basic authentication** is enabled. Go to **Configuration**, **General settings**, **SCM Basic Auth Publishing Credentials**, and choose **On**.
19+
1. Go to **Download publish profile** and save the profile locally.
1920

2021
:::image type="content" source="./media/app-service-get-publish-profile.png" alt-text="Screenshot showing how to get the publish profile from Azure App Service." lightbox="./media/app-service-get-publish-profile.png":::
2122

@@ -25,3 +26,4 @@ See also [Azure App Service](/azure/app-service).
2526

2627
> [!NOTE]
2728
> When [basic authentication is disabled](/azure/app-service/configure-basic-auth-disable), **Download publish profile** and **Reset publish profile** are disabled.
29+
Loading

docs/deployment/tutorial-import-publish-settings-azure.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "Publish to Azure by importing publish settings"
33
description: Create and import publish settings to deploy ASP.NET and ASP.NET Core web applications from Visual Studio to Azure App Service.
4-
ms.date: 10/22/2021
4+
ms.date: 06/18/2024
55
ms.topic: tutorial
66
helpviewer_keywords:
77
- "deployment, publish settings"
@@ -15,11 +15,11 @@ ms.subservice: deployment
1515
You can use the **Publish** tool to import publish settings and then deploy your app. In this article, we use publish settings for Azure App Service. These steps apply to ASP.NET and ASP.NET Core web apps.
1616

1717
> [!NOTE]
18-
> A publish settings file (*\*.publishsettings*) is different than a publishing profile (*\*.pubxml*) created in Visual Studio. A publish settings file is created by Azure App Service, and then it can be imported into Visual Studio.
18+
> A publish settings file (`*.publishsettings`) is different than a publishing profile (`*.pubxml`) created in Visual Studio. A publish settings file is created by Azure App Service, and then it can be imported into Visual Studio.
1919
2020
## Prerequisites
2121

22-
* You must have Visual Studio 2019 installed and the **ASP.NET and web development** workload.
22+
* You must have Visual Studio installed and the **ASP.NET and web development** workload.
2323

2424
If you haven't already installed Visual Studio, go to the [Visual Studio downloads](https://visualstudio.microsoft.com/downloads/?cid=learn-onpage-download-cta) page to install it for free.
2525

@@ -35,7 +35,7 @@ You can use the **Publish** tool to import publish settings and then deploy your
3535

3636
The project template you choose (ASP.NET or ASP.NET Core) must correspond to the version of ASP.NET installed on the web server.
3737

38-
1. Choose either **MVC** (.NET Framework) or **Web Application (Model-View-Controller)** (for .NET Core), and make sure that **No Authentication** is selected, and then select **OK**.
38+
1. Choose either **MVC** (.NET Framework) or **Web Application (Model-View-Controller)** (for .NET Core or .NET 5 and later), and make sure that **No Authentication** is selected, and then select **OK**.
3939

4040
1. Type a name like **MyWebApp** and select **OK**.
4141

@@ -47,11 +47,13 @@ You can use the **Publish** tool to import publish settings and then deploy your
4747

4848
1. In the Azure portal, open the Azure App Service.
4949

50-
1. Go to **Get publish profile** and save the profile locally.
50+
1. Go to **Download publish profile** and save the profile locally.
5151

52-
![Get the publish profile](../deployment/media/tutorial-azure-app-service-get-publish-profile.png)
52+
![Screenshot showing how to download the publish profile in Azure App Service.](../deployment/media/tutorial-azure-app-service-download-publish-profile.png)
5353

54-
A file with a *.publishsettings* file extension has been generated in the location where you saved it. The following code shows a partial example of the file (in a more readable formatting).
54+
In order to deploy with Web Deploy, you need to enable **Basic authentication**, which is what Web Deploy uses. In Azure App Service, go to **Configuration**, **General settings**, **SCM Basic Auth Publishing Credentials**, and enable Web Deploy. You can't download a publish profile if this setting is not enabled.
55+
56+
A file with a `.publishsettings` file extension has been generated in the location where you saved it. The following code shows a partial example of the file (in a more readable formatting).
5557

5658
```xml
5759
<publishData>
@@ -73,7 +75,7 @@ You can use the **Publish** tool to import publish settings and then deploy your
7375
</publishData>
7476
```
7577

76-
Typically, the preceding *.publishsettings file contains two publishing profiles that you can use in Visual Studio, one to deploy using Web Deploy, and one to deploy using FTP. The preceding code shows the Web Deploy profile. Both profiles will be imported later when you import the profile.
78+
Typically, the preceding `.publishsettings` file contains two publishing profiles that you can use in Visual Studio, one to deploy using Web Deploy, and one to deploy using FTP. The preceding code shows the Web Deploy profile. Both profiles will be imported later when you import the profile.
7779

7880
## Import the publish settings in Visual Studio and deploy
7981

0 commit comments

Comments
 (0)