Skip to content

Commit

Permalink
Merge pull request #559 from rob-foulkrod/robfoulkrod/Lab16
Browse files Browse the repository at this point in the history
Lab16 - Include appsettings in deployment
  • Loading branch information
LuizMacedo committed Feb 29, 2024
2 parents 6ed2714 + 65be4e5 commit f635657
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ In this task, you will add a YAML build definition to the existing project.
- Validate **App Service Type** points to Web App on Windows.
- in the **App Service name** dropdown list, select the name of the web app you deployed earlier in the lab (**az400eshoponweb...).
- in the **Package or folder** text box, **update** the Default Value to `$(Build.ArtifactStagingDirectory)/**/Web.zip`.
- Expand **Application and Configuration Settings** and add the value `-UseOnlyInMemoryDatabase true -ASPNETCORE_ENVIRONMENT Development`
1. Confirm the settings from the Assistant pane by clicking the **Add** button.

> **Note**: This will automatically add the deployment task to the YAML pipeline definition.
Expand All @@ -206,6 +207,7 @@ In this task, you will add a YAML build definition to the existing project.
appType: 'webApp'
WebAppName: 'az400eshoponWeb369825031'
packageForLinux: '$(Build.ArtifactStagingDirectory)/**/Web.zip'
AppSettings: '-UseOnlyInMemoryDatabase true -ASPNETCORE_ENVIRONMENT Development'
```

> **Note**: The **packageForLinux** parameter is misleading in the context of this lab, but it is valid for Windows or Linux.
Expand Down

0 comments on commit f635657

Please sign in to comment.