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

14
14
15
-
## 3. Choose Microsoft Azure App Service.
15
+
## 3. From the Publish screen, select `+ New profile`
16
16
17
-
Leave the option to `Create New` selected. Click `Publish`.
17
+

## 4. In the Publish dialog, select `Azure` as the target.
20
20
21
-
## 4. Choose an App Name, Subscription, Resource Group, and App Service Plan.
21
+

22
22
23
-
Create a new Resource Group, if desired. You can specify a Free App Service Plan, if desired, as shown.
23
+
## 5. Select `Azure App Service (Linux)` for the Specific target.

26
26
27
-
## 5. Click Create.
27
+
## 6. Select the subscription and app service.
28
28
29
-
The Publish profile will be saved and the eShopOnWeb sample will be published to the Azure App Service.
29
+
In the upper-right corner of the dialog, select your Microsoft account. Then, select your **Subscription name**. For this walkthrough, we'll create a new App Service, so select **+ Create new**.

32
32
33
-
Once the publish process has completed, your deployed app will launch in your browser.
On the **App Service (Linux)** dialog, make sure that the following details are correct:
36
36
37
-
[Learn more about Azure deployment options in the official documentation](https://docs.microsoft.com/en-us/azure/app-service-web/web-sites-deploy).
37
+
- Microsoft account
38
+
-**Name** - This is for the App Service's name. This is unique for app services.
39
+
-**Subscription name**
40
+
-**Resource group** - If needed, create a new resource group.
41
+
-**Hosting Plan** - You can create a Linux hosting plan here.
42
+
43
+
If all looks well, then select **Create**. This will create the Azure resources.
38
44
39
-
## Optional
45
+

40
46
41
-
If you are not seeing data initially in the store, the most likely reason is that the Azure App Service is configured for `Production`, not `Development` (Note: This is not the same as `Debug` vs. `Release` configuration). The sample data is only seeded in the `Development` environment. You can configure the App Service to run in `Development` as follows:
In order to populate the seed data, we need to set the `ASPNETCORE_ENVIRONMENT` variable to `Development`. (Note: This is not the same as `Debug` vs. `Release` configuration). The sample data is only seeded in the `Development` environment. You can configure the App Service to run in `Development` as follows:
1. In the **App settings** section, add a new key `ASPNETCORE_ENVIRONMENT` with value `Development`.
56
+
57
+
1. Select **Apply**.
58
+
59
+

60
+
61
+
## 9. Publish the app.
46
62
47
-
1. Scroll down to App settings.
63
+
Once the Azure resources are created, the Publish dialog will appear for you to select an existing or new Azure resource. Select the new Azure App Service (Linux) that you created above. Then, select **Finish**.
48
64
49
-
1. Add a new key `ASPNETCORE_ENVIRONMENT` with value `Development`.
65
+

66
+
67
+
The Publish profile will be saved.
68
+
69
+
You will then need to select the **Publish** button to publish the app to the App Service.
0 commit comments