2. Contents
MS Exam 70-533: Implementing Microsoft Azure Infrastructure Solutions.................................................5
Implement websites .....................................................................................................................................5
Deploy websites........................................................................................................................................5
To Add a Deployment Slot to a Website...................................................................................................6
About Configuration for Deployment Slots ..............................................................................................9
To Swap Deployment Slots .....................................................................................................................10
To Rollback a Production Site to Staging ................................................................................................10
To Delete a Site Slot................................................................................................................................11
Azure PowerShell cmdlets for Site Slots .................................................................................................11
Get-AzureWebsite...............................................................................................................................11
New-AzureWebsite.............................................................................................................................12
Publish-AzureWebsiteProject .............................................................................................................12
Show-AzureWebsite............................................................................................................................12
Switch-AzureWebsiteSlot....................................................................................................................12
Remove-AzureWebsite .......................................................................................................................12
Azure Cross-Platform Command-Line Interface (xplat-cli) commands for Site Slots .............................13
azure site list .......................................................................................................................................13
azure site create..................................................................................................................................13
azure site swap....................................................................................................................................13
azure site delete..................................................................................................................................13
Azure Websites Backups.............................................................................................................................14
What Gets Backed Up.............................................................................................................................14
Requirements and Restrictions...............................................................................................................14
To Create a Manual Backup....................................................................................................................14
To Configure Automated Backups ..........................................................................................................16
How Backups Are Stored.........................................................................................................................19
Notes.......................................................................................................................................................20
Restore a Microsoft Azure website.............................................................................................................20
To Restore an Azure website from a previously made backup ..............................................................20
To Restore an Azure website directly from a storage account...............................................................21
Choose Your Website Restore Settings and Start the Restore Operation..............................................24
View the Operation Logs.........................................................................................................................29
How to Deploy an Azure Website...............................................................................................................31
Deploying from a cloud-hosted source control system..........................................................................32
3. Visual Studio Online (VSO)..................................................................................................................32
Repository websites using Git.............................................................................................................32
Repository websites using Mercurial..................................................................................................33
Dropbox...............................................................................................................................................33
Deploying from an IDE ............................................................................................................................33
Visual Studio........................................................................................................................................33
WebMatrix ..........................................................................................................................................34
Deploying by using an FTP utility............................................................................................................34
Deploying from an on-premises source control system.........................................................................35
Team Foundation Server (TFS)............................................................................................................35
On-premises Git or Mercurial repositories.........................................................................................35
Using command-line tools and the Azure REST management API .........................................................35
MSBuild...............................................................................................................................................35
FTP scripts ...........................................................................................................................................36
Windows PowerShell ..........................................................................................................................36
.NET management API ........................................................................................................................36
Cross-platform command line (xpat-cli) .............................................................................................37
Web Deploy command line.................................................................................................................37
Use WebJobs to run background tasks in Azure Websites.........................................................................37
Acceptable File Types for Scripts or Programs........................................................................................37
Create an On Demand Task ....................................................................................................................38
Create a Continuously Running Task ......................................................................................................39
Create a Scheduled Task.........................................................................................................................40
Scheduled jobs and Azure Scheduler..................................................................................................45
View the Job History ...............................................................................................................................48
Configure websites .................................................................................................................................50
How to Configure Websites........................................................................................................................50
ow to: Change configuration options for a website ...............................................................................50
General................................................................................................................................................51
Certificates..........................................................................................................................................51
Domain names ....................................................................................................................................52
SSL Bindings.........................................................................................................................................52
Deployments.......................................................................................................................................52
Application diagnostics .......................................................................................................................52
Site diagnostics ...................................................................................................................................53
4. Monitoring ..........................................................................................................................................53
Developer analytics.............................................................................................................................54
App settings ........................................................................................................................................54
Connection strings ..............................................................................................................................54
Default documents..............................................................................................................................55
Handler mappings...............................................................................................................................55
Virtual applications and directories....................................................................................................55
How to: Configure a website to use a SQL database..............................................................................55
Overview.................................................................................................................................................62
DNS record types ....................................................................................................................................62
Find the virtual IP address ......................................................................................................................63
Create the DNS records...........................................................................................................................64
Create an “awverify” record (A records only).........................................................................................65
Enable the domain name on your website.............................................................................................65
Enable HTTPS for an Azure website............................................................................................................67
HTTPS for the *.azurewebsites.net domain............................................................................................67
Enable SSL for your custom domain .......................................................................................................67
Get an SSL certificate ..............................................................................................................................68
Get a certificate using Certreq.exe (Windows only)...........................................................................69
Get a certificate using OpenSSL..........................................................................................................74
Get a certificate using the IIS Manager...............................................................................................76
Get a SubjectAltName certificate using OpenSSL...............................................................................77
Generate a self-signed certificate (for testing only)...........................................................................79
Configure Standard mode.......................................................................................................................81
Configure SSL ..........................................................................................................................................82
Enforce HTTPS on your Azure website....................................................................................................84
.NET.....................................................................................................................................................86
PHP......................................................................................................................................................86
Node.js, Python Django, and Java.......................................................................................................86
Create Your Sites.................................................................................................................................87
Create Your ATM Profile .....................................................................................................................87
Adding Endpoints................................................................................................................................88
Configuring Your ATM Profile .............................................................................................................89
Testing Things So Far...........................................................................................................................91
Using a Custom Domain......................................................................................................................92
5. Load Balancing Methods.....................................................................................................................93
Configure diagnostics, monitoring, and analytics...................................................................................93
Configure scale and resilience ................................................................................................................93
How to Scale Websites................................................................................................................................94
Scaling to Shared or Basic Plan mode.....................................................................................................94
Scaling to Standard Plan Mode...............................................................................................................98
Scaling a SQL Server Database connected to your site.........................................................................103
Developer Features...............................................................................................................................104
Manage hosting plans...........................................................................................................................104
What is a Web Hosting Plan?....................................................................................................................104
Features in Web Hosting Plans .............................................................................................................104
Web Hosting Plans and Capacity ..........................................................................................................105
Web Hosting Plans and the new Azure Preview Portal ....................................................................105
Azure Websites Web Hosting Plans In-Depth Overview...........................................................................110
Websites, Web Hosting Plans, and Resource Groups...........................................................................110
When should I create a new resource group and when should I create a new web hosting plan?.....111
Existing resources group in the Azure Preview portal..........................................................................113
Web Hosting Plan F.A.Q........................................................................................................................115