-
Start Visual Studio as Administrator, then open 10_Demos_Deployment.sln solution. Note: if you get an error saying that Visual Studio cannot open that type of project, make sure Microsoft Azure SDK is installed.
-
Right click on MyHealth project. Click on Deploy>New Deployment.
-
You will be prompted to connect to your Azure Subscription.
-
Create a new Resource Group to contain all the backend services. The name must be unique in the selected subscription.
-
Click on “Deploy” (make sure Visual Studio runs as administrator, otherwise the deploy script will fail).
-
After completing the task, all the resources will be created inside the selected Resource Group. Sign in into the Azure Portal, click on "Resource Groups", click on the Resource Group that was just created. Under "Summary", you will see all the resources created.
-
Open the 01_Demos_ASPNET5.sln solution to deploy the backend services.
-
In the appsettings.json files it´s possible to change the default credentials that are needed to connect to the private web site.
-
Make sure packages for the solution are restored, and that MyHealth.Web project builds successfully. Select MyHealth.Web project and click on “publish”. Select "Microsoft Azure App Service" as publish target.
-
Select the right Azure Subscription and navigate to the Azure WebApp created in the first steps. Select the website.
-
Click on “Ok”.
-
In the Settings page, set the right DNX version: rc1-update1.
-
After completing the deployment a new browser will be opened with the HealthClinic WebSite.
-
Click on “private area” and use the credentials stored in the settings file to access to this area.
-
Open the 06_Demos_MobileApp.sln solution to deploy the MobileApp backend.
-
Click on “Publish”. A new browser will be opened after completing the deployment.
-
Now that the entire backend was deployed, the URL's of the services created must be used in the client apps:
In file [src\MyHealth.Client.Core\AppSettings.cs] (https://github.com/Microsoft/HealthClinic.biz/blob/master/src/MyHealth.Client.Core/AppSettings.cs), set "ServerlUrl" to the website URL, and "MobileAPIUrl" to the mobile app URL.
In the Cordova app, set the Azure API_URL in src\MyHealth.Client.Cordova\content\app\modules\shared\services\configService.ts to the value of the mobile service URL.