Skip to content

Commit 562b9a7

Browse files
committed
Adding notes for multiple environment variables
1 parent 6eadf18 commit 562b9a7

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

docs/walkthroughs/deploy-to-azure-app-service-from-visual-studio.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ To deploy the eShopOnWeb sample application to an Azure App Service (assuming yo
2828

2929
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**.
3030

31-
![On the Publis dialog, confirm the Microsoft account and subscription. "+ Create new" is highlighted. ](../assets/images/walkthroughs/app-service-from-visual-studio/select-subscription.jpg)
31+
![On the Publish dialog, confirm the Microsoft account and subscription. "+ Create new" is highlighted. ](../assets/images/walkthroughs/app-service-from-visual-studio/select-subscription.jpg)
3232

3333
## 7. Add the app services details.
3434

@@ -54,11 +54,15 @@ In order to populate the seed data, we need to set the `ASPNETCORE_ENVIRONMENT`
5454

5555
1. In the **App settings** section, add a new key `ASPNETCORE_ENVIRONMENT` with value `Development`.
5656

57+
1. Select **Apply**.
58+
5759
1. Add another key for `UseOnlyInMemoryDatabase` with the value of `true`.
5860

5961
1. Select **Apply**.
6062

61-
![Add the ASPNETCORE_ENVIRONMENT variable in the Azure Portal.](../assets/images/walkthroughs/app-service-from-visual-studio/azure-app-service-environment-variables.jpg)
63+
![Add the ASPNETCORE_ENVIRONMENT variable in the Azure Portal.](../assets/images/walkthroughs/app-service-from-visual-studio/azure-app-service-environment-variables.jpg)
64+
65+
1. Finally, select **Apply** to apply all of these changes to the App Service.
6266

6367
## 9. Publish the app.
6468

@@ -79,11 +83,6 @@ Once the publish process has completed, your deployed app will launch in your br
7983
[Learn more about Azure deployment options in the official documentation](https://docs.microsoft.com/en-us/azure/app-service-web/web-sites-deploy).
8084

8185

82-
83-
At this point, you should be able to refresh the site and see it loaded with data (if not, publish once more from Visual Studio).
84-
85-
![image](https://github.com/user-attachments/assets/df803021-8c30-4038-a963-b6e2ce1a16ab)
86-
8786
## Notes
8887

8988
- You may need to ensure you have the [Bundler and Minifier extension](https://docs.microsoft.com/en-us/aspnet/core/client-side/bundling-and-minification) installed in Visual Studio, otherwise your CSS may not be minified and referenced correctly in the deployed version of the application. Alternately, you can modify `_Layout.cshtml` to use app.css instead of `app.css.min` in Production.

0 commit comments

Comments
 (0)