-
Open the SkiResort.DataGeneration.sln solution. (src\SkiResort.DataGeneration directory)
-
Set
gen-skiretals
as StartUp project.gen-skirentals generates ski rentals records for the last few years into an SQL table.
-
Click on App.config file. The ConnectionString uses the SQL Server hosted on Azure.
-
Click on F5.
-
Wait to finish.
-
Set
gen-skilocations
as the StartUp project.gen-skilocations simulates skiers movements around the mountain by continuously moving them from the bottom of chairlifts to the top and back. The location events are pushed to an event hub that is then consumed by Stream Analytics.
-
Click on App.config file to check that the EventHub connectionstring is configured.
-
Click on
Ctrl + F5
to run the application without debugging.The application will continuously send the events without stopping.
-
Stream Analytics consumes the events to process and store them in three different outputs.
-
Set
gen-recomodel
as StartUp project.geo-recomodel: giving 2 inputs (restaurant list, user restaurant attendance) creates a recommendations model in the pre-built Cognitive Services recommendations API. It uses the recommendations data service created in the first steps.
-
Click on App.config file to check that the connectionstring and recommendations key are configured.
-
Click on
Ctrl + F5
to run the application without debugging. -
Copy the modelId. You will need it later.
-
After creating the model the application is able to read the RestaurantId and search for the service recommendations.
-
Click
1
. -
Click
2
. -
Set
gen- restaurantsearch
as the StartUp project.geo-restaurantsearch runs all restaurants by the recommendations API, retrieves a list of recommended restaurants for each one, and pushes the list of recommended/related restaurants to the Azure Search index.
-
Click on App.config file.
-
Update the RecoModelId with the value copied in the previous step.
-
Click on
F5
. -
Open SQL Server Management Studio.
-
Connect your database using SQL Server Authentication.
- Username: skiresort
- Password: P2ssw0rd@1
-
Run the store procedure
TrainRentalModel
.