You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/azure/how-to-get-publish-profile-from-azure-app-service.md
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ author: ghogen
5
5
manager: mijacobs
6
6
ms.subservice: azure-development
7
7
ms.topic: how-to
8
-
ms.date: 05/16/2024
8
+
ms.date: 06/18/2024
9
9
ms.author: ghogen
10
10
monikerRange: ">=vs-2019"
11
11
---
@@ -15,7 +15,8 @@ monikerRange: ">=vs-2019"
15
15
A publish profile is a file that contains information and settings that Visual Studio uses to deploy applications and services to Azure.
16
16
17
17
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.
19
20
20
21
:::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":::
21
22
@@ -25,3 +26,4 @@ See also [Azure App Service](/azure/app-service).
25
26
26
27
> [!NOTE]
27
28
> When [basic authentication is disabled](/azure/app-service/configure-basic-auth-disable), **Download publish profile** and **Reset publish profile** are disabled.
Copy file name to clipboardExpand all lines: docs/deployment/tutorial-import-publish-settings-azure.md
+10-8Lines changed: 10 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: "Publish to Azure by importing publish settings"
3
3
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
5
5
ms.topic: tutorial
6
6
helpviewer_keywords:
7
7
- "deployment, publish settings"
@@ -15,11 +15,11 @@ ms.subservice: deployment
15
15
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.
16
16
17
17
> [!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.
19
19
20
20
## Prerequisites
21
21
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.
23
23
24
24
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.
25
25
@@ -35,7 +35,7 @@ You can use the **Publish** tool to import publish settings and then deploy your
35
35
36
36
The project template you choose (ASP.NET or ASP.NET Core) must correspond to the version of ASP.NET installed on the web server.
37
37
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**.
39
39
40
40
1. Type a name like **MyWebApp** and select **OK**.
41
41
@@ -47,11 +47,13 @@ You can use the **Publish** tool to import publish settings and then deploy your
47
47
48
48
1. In the Azure portal, open the Azure App Service.
49
49
50
-
1. Go to **Get publish profile** and save the profile locally.
50
+
1. Go to **Download publish profile** and save the profile locally.
51
51
52
-

52
+

53
53
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).
55
57
56
58
```xml
57
59
<publishData>
@@ -73,7 +75,7 @@ You can use the **Publish** tool to import publish settings and then deploy your
73
75
</publishData>
74
76
```
75
77
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.
77
79
78
80
## Import the publish settings in Visual Studio and deploy
0 commit comments