Windows 10 Development - Cloud Services



As a developer, you may require data other than that available on your desktop. Cloud services can help you to access that data. This chapter gives a better understanding of the cloud services, which you may require.

Microsoft has provided a cloud-computing platform and the infrastructure, which is known as Microsoft Azure, where you can build, deploy and manage all the applications and services.

Azure was first released on 1 February 2010, as Windows Azure. Later it was renamed to Microsoft Azure on 25 March 2014.

It provides both, PaaS and IaaS services and supports many different programming languages, tools and frameworks, including both Microsoft-specific and third party software and systems.

Microsoft has upgraded the cloud services with Windows 10. The Microsoft account integration was introduced in Windows 8, though OneDrive has been around since 2007. For Windows 10, both services have been updated with increased integration and new functionality, which are attracting more users.

Microsoft Account

You can use Microsoft’s Azure cloud offerings with your Microsoft account. Of course, it is not free but you can use a free 30 days trial.

When you first set up a machine with Windows 10 and login with Microsoft account, you can use the same account for Microsoft Azure subscription. To sign up for Microsoft Azure click here https://azure.microsoft.com/.

Once you subscribe for Microsoft Azure, go to the Azure Portal https://portal.azure.com/. You will see the following page.

Microsoft Azure

You can store in the databases, use Virtual machines etc. You can also build and host the back end of your mobile app.

Let us try this with an example by following the below mention steps.

  • Click on the New option in the left pane.

New Microsoft Azure
  • Select Web + Mobile > Mobile App and give a name to your Web app.

Mobile App
  • It will take some time for submitting and deploying your app. Once this process is completed, you will see the following page. Here, you can select the different kinds of mobile apps such Windows(C#), iOS Android, etc.

Select Mobile App
  • Since, we are talking about Windows 10, select Windows (C#), which will open the following page.

Select Window
  • Here, you can see the two download options. These are sample projects, you can simply download and build in Visual Studio and then you can easily publish to Microsoft Azure.

  • Let us download the first one, which is a server project. It is a zip file.

  • When downloading is complete, unzip this and open in Visual Studio.

  • Now, build this application. If some errors are listed then build it again.

  • Run the application. You will see the following webpage, which is now on localhost.

Run Application
  • Now to host this application on the cloud, right click on the Project option in Solution Explore as shown below.

Project Option
  • Select Publish option from the menu. You will see the following dialog.

Publish Option
  • Select the first option − Microsoft Azure Web Apps. The following dialog box will open.

Microsoft Azure Web Apps
  • Now click on the Add an account option from the menu to add Microsoft Azure account.

Add Microsoft Azure Account
  • Specify your credentials and click Sign in. The following dialog window will open.

  • After signing in, select your application from the menu Existing Web Apps and click Ok.

Existing Web Apps
  • The dialog shown below displays some information related to your application such as name, server name, URL, etc.

UWP Cloud Demo
  • Now, click on the Validate Connection button. After validation, click the Publish button and you will see that your application is now hosted on Microsoft Azure.

Validate Connection
Advertisements