- •2. Launch Visual Studio 2013 as administrator.
- •Implementing a product recommendation solution using Microsoft Azure Overview Problem statement
- •Solution
- •Solution architecture
- •Setting up the Azure services Prerequisites
- •Deploying the Azure landscape using PowerShell
- •Publishing the retailer demo website using Visual Studio
- •Testing the product recommendation site
- •Verifying execution of the Azure Data Factory workflow
- •Viewing product-to-product recommendations
- •Deep dive into the solution
- •Prepare
- •Analyze
- •Publish
- •Consume
- •Next steps
- •Useful resources
- •Roll back Azure changes
- •Terms of use
Setting up the Azure services Prerequisites
You will find that all prerequisites are already installed on the hands-on lab virtual machine system. If you want to run the scenario on your own computer, you will need to have the following components installed:
Microsoft Azure PowerShell: Install and configure PowerShell to execute the demo scripts.
Microsoft Visual Studio 2013: Install Visual Studio to deploy the demo retailer website.
While carrying out the exercises within this hands-on lab, you will either use the Azure portal at https://manage.windowsazure.com/ or the Preview portal at https://portal.azure.com/.
To perform this lab, you will need a Microsoft Azure account.
If you do not have an Azure account, you can request a free trial version by going to http://azure.microsoft.com/en-us/pricing/free-trial/.
Within the one-month trial version, you can perform other Microsoft SQL Server 2014 hands-on labs, along with other tutorials available on Azure.
Note: To sign up for a free trial, you will need a valid credit card and a mobile device that can receive text messages.
To make the most use of your free $200 Azure credit, be sure to follow the Roll back Azure changes section at the end of this exercise after creating the Azure database.
Deploying the Azure landscape using PowerShell
In your subscription, a setup script is included that will create all the Azure services (like Azure SQL Database, Azure Blob, and Azure Data Factory) needed for the demo. The script will prompt you to select the subscription and populate the services (database tables, data factory pipelines, and so on) with everything needed for the use case. The setup script takes about 10 minutes to complete.
1. Open the File Explorer and navigate to C:\HOLs\Cortana Analytics\ProductRecommendations. Then right-click setup.ps1 and click Edit.
2. Within the command line area of the Windows PowerShell ISE, type the command Get-AzureSubscription to verify the trust relationship between your computer and Azure.
You should see your subscription information as shown in the following. If not, you will need to type the Add-AzureAcount command to set up your subscription.
3. Run the setup.ps1 script by either pressing F5 or clicking the Run Script toolbar button.
4. For the –mode parameter, type deploy and press Enter. For the –usecase parameter, type productrec and press Enter.
5. Type the row number value that represents your Azure subscription and press Enter. This value will always be 1 for the hands-on lab virtual machine environment.
Note: You could have also executed the setup.ps1 script through the Windows PowerShell console from the C:\HOLs\Cortana Analytics\ProductRecommendations directory using the following command:
.\setup.ps1 -mode deploy – usecase productrec |
Once the script completes successfully, you will see these messages on the PowerShell command prompt.
Note: During deployment, you might get a security warning asking if you trust the script. Click Run once on the pop-up to continue.
6. To verify the deployment, navigate to https://portal.azure.com—the Azure Preview Portal (bookmark in Internet Explorer). Click Browse Data factories <Name of the created data factory> to see the data factory that has been created in your subscription.
7. To see the overall pipeline for the deployment of the productrec data factory, click the Diagram tile.
8. Within the diagram, note the various pipeline components and their data sources and sinks. Feel free to double-click the objects to explore the deployed pipeline. (The details are located in the section of this document.)
