You are on page 1of 32

Module 8

Implementing PaaS Cloud Services


and Mobile Services
Module Overview

Planning and Deploying PaaS Cloud Services


Configuring Cloud Services
Implementing Mobile Services
• Monitoring and Diagnostics
Lesson 1: Planning and Deploying PaaS Cloud Services

Demonstration: Preparing the Environment


PaaS Cloud Services and Mobile Services as
Components of Azure
PaaS Cloud Services Overview
PaaS Cloud Service Deployment
Deployment Environments
Discussion: Deployment Methods
Demonstration: Creating and Deploying Cloud
Services
• Upgrading Cloud Services
Demonstration: Preparing the Environment

To prepare the lab environment for this module,


you must:
• Sign in to Your Microsoft Azure subscription
• Prepare the Azure environment
PaaS Cloud Services and Mobile Services as
Components of Azure

Compute Data Services Network Services


Virtual Machines Storage Virtual Networks

PaaS Cloud Services SQL Database Traffic Manager

Websites Backup ExpressRoute

Mobile Services Site Recovery

App Services
Media Services Active Directory Automation

Service Bus MFA CDNs

Push Notifications
PaaS Cloud Services Overview

Worker
Role
Instances

PaaS
Web Cloud
Role Service
Instances
PaaS Cloud Service Deployment

PaaS
Cloud
Service

Package Configuration
File File

Visual Studio Azure Portal Visual Studio Online


Deployment Environments

• During Development
• Cloud service is run on developers’ local computers
• Azure Compute Emulator runs cloud service code
• Azure Storage Emulator stores blobs and other data

• During Staging
• Cloud service is deployed to a staging slot
• Azure runs code
• Azure hosts storage

• For Production
• Cloud service is deployed to a production slot
• Azure runs code
• Azure hosts storage
Discussion: Deployment Methods

• How are testing, staging, and production


deployments separated in your organization for
on-premises applications?
• How are testing, staging, and production
deployments separated in your organization for
cloud applications?
• How will Azure modify your approach to testing,
staging, and production deployment?
Demonstration: Creating and Deploying Cloud Services

In this demonstration, you will see how to:


• Create a new PaaS cloud service by using
PowerShell
• Configure and package a cloud service project in
Visual Studio 2013
• Deploy a packaged cloud service project by using
the Azure portal
Upgrading Cloud Services

• Uploading a new package and configuration file


• Using continuous deployment for upgrades
• Swapping deployments

PaaS Cloud Service

Production Slot Staging Slot

Swap
Lesson 2: Configuring Cloud Services

Modifying Configuration Files


Managing Endpoints and Queues
Adding a PaaS Cloud Service to a Virtual Network
Discussion: Scaling Services
• Demonstration: Scaling Cloud Services
Modifying Configuration Files

<ServiceConfiguration serviceName="ExampleCloudService" >


<Role name="MyWebRole">
<Instances count="2" />
<ConfigurationSettings>
<Setting name="StorageConnectionString"
value="UseDevelopmentStorage=true" />
</ConfigurationSettings>
</Role>
<Role name="MyWorkerRole">
<Instances count="3" />
<ConfigurationSettings>
<Setting name="DbConnectionString"
value="{insert your connection string}" />
</ConfigurationSettings>
</Role>
</ServiceConfiguration>
Managing Endpoints and Queues

• Direct Communication
• Endpoints

• Storage Queues
• Low latency
• Up to 64 KB in each message
• Up to 1 TB in each queue
• Each message has 7 days TTL

• Service Bus Queues


• Higher latency
• Up to 256 KB in each message
• Up to 80 GB in each queue
• Unlimited message TTL
Adding a PaaS Cloud Service to a Virtual Network

Azure
Local Network
VNet PaaS
Cloud Service

VPN

VMs
Discussion: Scaling Services

How would you configure instances of web roles


and worker roles in the following scenarios?

• Scenario: Ensure a PaaS Cloud Service qualifies


for the 99.95 percent uptime SLA
• Scenario: Scale for an expected demand peak
• Scenario: Respond to an unexpected demand
peak
Demonstration: Scaling Cloud Services

In this demonstration, you will see how to:


• Set the default instance count for a cloud service
• Schedule a larger instance count for an expected
load peak
Lesson 3: Implementing Mobile Services

Discussion: Mobile Apps


Overview of Mobile Services
Creating and Configuring a Mobile Service
Configuring Authentication
Deploying a Mobile Service
• Demonstration: Implementing a Mobile Service
Discussion: Mobile Apps

How does a typical app use:

• Data
• Authentication
• Communication
• Business Logic
Overview of Mobile Services

• Client Libraries for Windows 8, Windows Phone 8,


iPhone, iPad, Android, PhoneGap, Xamarin
• Simple data management
• Easy push notifications
• Integration with identity providers
• Server-side business logic scripts
Creating and Configuring a Mobile Service

Administration Tasks:
• Creating a Mobile Service
• SQL Database
• Notification hub

• Managing access keys


• Application Key
• Master Key

• Scaling a Mobile Service


Configuring Authentication

1. Register with a provider:


• Microsoft Account
• Facebook
• Twitter
• Google
• Azure Active Directory

2. Obtain app credentials


3. Configure credentials in the mobile service
Deploying a Mobile Service

• Using a Publish Profile


1. Download the profile from the portal
2. Import the profile into Visual Studio
3. Complete the Publishing Wizard
• Using a Git Repository
• Setting credentials
• Configuring continuous deployment
Demonstration: Implementing a Mobile Service

In this demonstration, you will see how to:


• Create a new mobile service
• Configure push notification settings for a mobile
service
• Configure database settings for a mobile service
• Download a Visual Studio starter project for the
mobile service
Lesson 4: Monitoring and Diagnostics

Configuring Verbose Monitoring


Monitoring Metrics and Alerts
• Monitoring Mobile Services
Configuring Verbose Monitoring

• Minimal Monitoring
• CPU Percentage, Data In, Data Out, Disk Read
Throughput, Disk Write Throughput
• Verbose Monitoring
• Requires a storage account
• Requires a diagnostic connection string
• Provides a much wider range of performance metrics
• Incurs storage costs
Monitoring Metrics and Alerts

• Adding Metrics to the Monitoring Table


1. Choose an instance
2. Choose a counter

• Adding an Alert to a Metric


1. Choose the service, deployment, and role
2. Set the condition and threshold
3. Specify email addresses to receive the alert
Monitoring Mobile Services

• Monitoring Databases
• Successful Connections
• Failed Connections
• Deadlocks

• Monitoring Notification Hubs


• Incoming messages
• Errors
• Registrations
• Successful Operations

• Mobile Service Diagnostic Logs


• Record messages logged by code
Lab: Implementing PaaS Cloud Services

Exercise 1: Deploying a PaaS Cloud Service


Exercise 2: Configuring Deployment Slots and
Remote Desktop Protocol
• Exercise 3: Monitoring Cloud Services

Logon Information
Virtual Machine: 20533B-MIA-CL1
User Name: Student
Password: Pa$$w0rd

Estimated Time: 60 minutes


Lab Scenario

You want to evaluate the potential of PaaS cloud


services to host A. Datum web applications. Your
development team has provided a simple cloud
service project that you can use to investigate
Azure functionality. You want to show how staging
and production slots can be used to ease the
deployment of new versions of the PaaS cloud
service. You also want to demonstrate that you
can monitor the service to get clear information
on resource usage. This will help the
administration team evaluate service performance
during its staged deployment.
Lab Review

In Exercise 2, you enabled RDP access and used the


RDP client to connect to an instance of a web role.
Why would administrators connect to cloud service
role instances with RDP?
• You want to ensure you can always see the
network traffic your PaaS cloud service has used
over the last hour. Should you configure a
monitoring metric or an alert?
Module Review and Takeaways

• Review Question(s)

You might also like