About the Author |
|
xv | |
About the Technical Reviewer |
|
xvii | |
Acknowledgments |
|
xix | |
Introduction |
|
xxi | |
|
Chapter 1 Introducing Azure |
|
|
1 | (18) |
|
|
1 | (1) |
|
Cloud-Based Compute-on-Demand Services |
|
|
1 | (1) |
|
Infrastructure-as-a-Service vs. Platform-as-a-Service |
|
|
2 | (1) |
|
Setting Up Your Machine for Azure Development |
|
|
3 | (1) |
|
Visual Studio 2015 Community Edition |
|
|
3 | (1) |
|
|
4 | (1) |
|
SQL Server 2016 Express Edition |
|
|
4 | (8) |
|
SQL Server Management Studio |
|
|
12 | (1) |
|
Microsoft Azure Storage Explorer |
|
|
12 | (1) |
|
|
12 | (1) |
|
Setting Up Your Azure Account |
|
|
13 | (1) |
|
|
13 | (2) |
|
Purchasing an Azure Subscription |
|
|
15 | (2) |
|
|
17 | (1) |
|
|
18 | (1) |
|
Chapter 2 Web Applications |
|
|
19 | (42) |
|
Introducing the Verify App |
|
|
20 | (1) |
|
Building the Verify Web Application |
|
|
21 | (1) |
|
Creating the Database and Person Tables |
|
|
21 | (1) |
|
Creating the Web Application |
|
|
22 | (1) |
|
Adding a SQL Server Database Project |
|
|
23 | (1) |
|
Adding Entity Framework Core to Verify.Web |
|
|
24 | (1) |
|
Generating the Entity Framework DbContext and Models Classes |
|
|
25 | (1) |
|
Creating the Service Layer |
|
|
26 | (3) |
|
Specifying Our Application Settings |
|
|
29 | (1) |
|
Setting Up Dependency Injection |
|
|
29 | (2) |
|
Adding the Front-End Controllers |
|
|
31 | (2) |
|
|
33 | (1) |
|
Provisioning an Azure SQL Instance |
|
|
33 | (4) |
|
Deploying the Verify Database |
|
|
37 | (2) |
|
Creating Our App Services Web App |
|
|
39 | (2) |
|
Publishing the Verify Application to Azure |
|
|
41 | (3) |
|
|
44 | (1) |
|
Intelligent Use of Threads |
|
|
44 | (1) |
|
|
45 | (1) |
|
|
46 | (1) |
|
|
47 | (4) |
|
|
51 | (1) |
|
|
52 | (3) |
|
|
55 | (1) |
|
Viewing Load Test Results |
|
|
55 | (3) |
|
Setting Appropriate Autoscale Rules |
|
|
58 | (1) |
|
|
59 | (2) |
|
Chapter 3 Azure Data Storage Overview |
|
|
61 | (16) |
|
|
61 | (1) |
|
|
62 | (1) |
|
|
62 | (1) |
|
|
63 | (1) |
|
|
63 | (2) |
|
|
65 | (1) |
|
|
66 | (2) |
|
|
68 | (1) |
|
Other Azure Relational Database Offerings |
|
|
68 | (1) |
|
|
68 | (1) |
|
|
69 | (2) |
|
|
71 | (2) |
|
|
73 | (2) |
|
|
75 | (1) |
|
|
75 | (1) |
|
|
75 | (1) |
|
|
76 | (1) |
|
|
76 | (1) |
|
Chapter 4 Azure SQL Databases |
|
|
77 | (62) |
|
Introducing Azure SQL Database |
|
|
78 | (2) |
|
|
80 | (1) |
|
Single Database vs. Elastic Pool |
|
|
81 | (1) |
|
|
81 | (1) |
|
TaskZilla: Our Example Application |
|
|
82 | (1) |
|
Creating the TaskZilla Project |
|
|
82 | (2) |
|
|
84 | (5) |
|
|
89 | (5) |
|
|
94 | (8) |
|
|
102 | (5) |
|
|
107 | (1) |
|
|
107 | (1) |
|
|
108 | (1) |
|
Creating an Azure SQL Database Instance |
|
|
109 | (2) |
|
|
111 | (2) |
|
Connecting to the New Instance |
|
|
113 | (1) |
|
|
114 | (8) |
|
Publishing Schema Changes |
|
|
122 | (2) |
|
Rolling Back Schema Changes |
|
|
124 | (1) |
|
|
124 | (3) |
|
|
127 | (3) |
|
|
130 | (1) |
|
|
131 | (1) |
|
Performance Recommendations |
|
|
131 | (1) |
|
Automating Performance Tuning |
|
|
132 | (1) |
|
Query Performance Insight |
|
|
133 | (1) |
|
|
133 | (4) |
|
|
137 | (2) |
|
Chapter 5 Azure Table Storage |
|
|
139 | (48) |
|
|
139 | (2) |
|
|
141 | (1) |
|
Transaction Support and Batching |
|
|
141 | (1) |
|
|
141 | (1) |
|
Working with Azure Table Storage |
|
|
142 | (1) |
|
|
142 | (1) |
|
Azure Storage Client Library |
|
|
143 | (1) |
|
|
143 | (1) |
|
|
144 | (1) |
|
Walkthrough: Restaurant Finder |
|
|
145 | (1) |
|
Restaurant Finder Requirements |
|
|
145 | (1) |
|
Designing Our Data Storage |
|
|
146 | (1) |
|
|
147 | (1) |
|
Creating Our Restaurant Data Class |
|
|
148 | (3) |
|
|
151 | (5) |
|
|
156 | (1) |
|
|
157 | (1) |
|
Loading Demo Data with the RestaurantData Controller |
|
|
158 | (3) |
|
|
161 | (1) |
|
|
162 | (3) |
|
|
165 | (3) |
|
Partition Range Scan Queries |
|
|
168 | (4) |
|
|
172 | (2) |
|
|
174 | (4) |
|
|
178 | (1) |
|
Provisioning an Azure Storage Service |
|
|
179 | (5) |
|
Using Your Azure Storage Service |
|
|
184 | (1) |
|
|
185 | (1) |
|
|
185 | (2) |
|
|
187 | (70) |
|
|
188 | (1) |
|
Congo, the (Hopefully) Up-and-Coming Online Retail Giant |
|
|
189 | (1) |
|
|
190 | (1) |
|
|
190 | (1) |
|
The Cosmos DB Resource Model |
|
|
191 | (2) |
|
Partitions: How Cosmos DB Scales to Unlimited Storage |
|
|
193 | (1) |
|
|
193 | (1) |
|
Determining Document Schemas |
|
|
194 | (3) |
|
Determining Partition Keys |
|
|
197 | (3) |
|
A Single Collection or Multiple Collections |
|
|
200 | (1) |
|
Using the Cosmos DB Emulator for Local Development |
|
|
201 | (1) |
|
Creating a Collection in the Emulator |
|
|
201 | (4) |
|
Importing Congo Data Using the DocumentDB Data Migration Tool |
|
|
205 | (1) |
|
|
205 | (7) |
|
|
212 | (1) |
|
Creating the Congo Example Application |
|
|
213 | (1) |
|
Creating the Project and Solution |
|
|
214 | (1) |
|
Creating the Model Classes |
|
|
215 | (4) |
|
Creating View Model Classes |
|
|
219 | (3) |
|
|
222 | (12) |
|
|
234 | (3) |
|
|
237 | (3) |
|
|
240 | (3) |
|
|
243 | (3) |
|
|
246 | (3) |
|
Creating a Cosmos DB Account, Database, and Collection |
|
|
249 | (5) |
|
|
254 | (1) |
|
|
255 | (2) |
|
|
257 | (44) |
|
|
259 | (1) |
|
|
260 | (1) |
|
Example Project: TechStore |
|
|
260 | (1) |
|
|
261 | (1) |
|
|
262 | (6) |
|
|
268 | (3) |
|
|
271 | (3) |
|
Creating the Service Layer |
|
|
274 | (4) |
|
Creating the Controller and Views |
|
|
278 | (4) |
|
Running the TechStore Application |
|
|
282 | (2) |
|
Create an Azure Redis Cache Resource |
|
|
284 | (1) |
|
Implementing the Cache Aside Pattern with Redis Cache |
|
|
285 | (9) |
|
Handling Stale Cache Records |
|
|
294 | (1) |
|
Dealing with a Full Cache |
|
|
294 | (1) |
|
|
295 | (1) |
|
Viewing Redis Cache Contents |
|
|
295 | (1) |
|
|
296 | (1) |
|
|
297 | (1) |
|
|
298 | (1) |
|
Scaling Azure Redis Cache |
|
|
298 | (1) |
|
|
299 | (1) |
|
|
299 | (1) |
|
|
299 | (1) |
|
|
300 | (1) |
|
|
301 | (42) |
|
|
302 | (2) |
|
The WebJob Demo Application |
|
|
304 | (1) |
|
Creating Our Solution and WebJob Project |
|
|
304 | (3) |
|
Running Our WebJob Locally |
|
|
307 | (1) |
|
Creating Our WebJobDemo Web Application |
|
|
308 | (14) |
|
Running Our WebJob Locally: Part II |
|
|
322 | (3) |
|
Running a WebJob on a Schedule |
|
|
325 | (6) |
|
Handling Exceptions with the ErrorTriggerAttribute |
|
|
331 | (4) |
|
Deploying WebJobs to Azure |
|
|
335 | (1) |
|
|
335 | (1) |
|
|
336 | (2) |
|
Publishing via Visual Studio |
|
|
338 | (1) |
|
Monitoring a WebJob in the Cloud |
|
|
339 | (2) |
|
|
341 | (2) |
|
|
343 | (38) |
|
Benefits of Using Message Queues |
|
|
345 | (1) |
|
Types of Azure Message Queues |
|
|
346 | (1) |
|
|
346 | (2) |
|
|
348 | (1) |
|
|
349 | (1) |
|
Provisioning a Service Bus Resource |
|
|
349 | (4) |
|
Creating the Sender Console Application |
|
|
353 | (22) |
|
Using Message Queues to Build Azure Web Applications |
|
|
375 | (5) |
|
|
380 | (1) |
|
Chapter 10 Other Tips and Tricks |
|
|
381 | (34) |
|
The Turtles Web Application |
|
|
381 | (1) |
|
Creating the Solution and Project |
|
|
382 | (2) |
|
|
384 | (4) |
|
|
388 | (1) |
|
|
388 | (1) |
|
|
388 | (1) |
|
Page Parsing and Rendering |
|
|
389 | (1) |
|
Measuring Page Performance |
|
|
389 | (2) |
|
Combining and Minifying JavaScript and CSS Files |
|
|
391 | (1) |
|
|
392 | (3) |
|
|
395 | (1) |
|
|
395 | (1) |
|
|
396 | (1) |
|
|
397 | (1) |
|
Using Appropriately Sized and Optimized Images |
|
|
398 | (1) |
|
Using External CSS and JavaScript Files |
|
|
399 | (1) |
|
Moving External JavaScript Files to the Bottom of the Page |
|
|
399 | (1) |
|
Using Async for Certain External JavaScript Files |
|
|
400 | (1) |
|
Using a Content Distribution Network |
|
|
400 | (1) |
|
|
401 | (1) |
|
Creating a CDN for the Turtles Web Application |
|
|
402 | (5) |
|
Integrating a CDN with an ASP.NET MVC App |
|
|
407 | (7) |
|
|
414 | (1) |
|
Chapter 11 Troubleshooting Web Applications |
|
|
415 | (28) |
|
An Overview of Available Tools |
|
|
415 | (1) |
|
|
415 | (2) |
|
|
417 | (1) |
|
Awful App: Our Example Application |
|
|
418 | (1) |
|
|
418 | (1) |
|
Browsing Web Server Logs Written to the File System |
|
|
419 | (1) |
|
|
420 | (1) |
|
|
421 | (1) |
|
|
422 | (1) |
|
|
422 | (1) |
|
|
423 | (1) |
|
|
424 | (1) |
|
|
425 | (1) |
|
|
425 | (1) |
|
Failed Request Tracing Logs |
|
|
426 | (3) |
|
|
429 | (1) |
|
|
430 | (1) |
|
|
431 | (1) |
|
Installing Application Insights |
|
|
432 | (2) |
|
|
434 | (4) |
|
|
438 | (3) |
|
|
441 | (2) |
|
|
443 | (64) |
|
Proper Deployment Practices |
|
|
444 | (1) |
|
Follow a Proper Code Promotion Strategy |
|
|
444 | (1) |
|
Prevent Environment Drift by Treating Infrastructure as Code |
|
|
445 | (1) |
|
|
445 | (1) |
|
|
445 | (3) |
|
|
448 | (3) |
|
|
451 | (1) |
|
Downloading ARM Templates for Preexisting Resources in the Azure Portal |
|
|
452 | (4) |
|
Choosing a Gallery Template |
|
|
456 | (1) |
|
Creating Templates with a Visual Studio Azure Resource Group Project |
|
|
456 | (2) |
|
The Deployment Web Application |
|
|
458 | (1) |
|
|
458 | (1) |
|
|
459 | (2) |
|
The Deployment Web Application |
|
|
461 | (4) |
|
|
465 | (3) |
|
Deploying Azure Resources Using an Azure Resource Group Project |
|
|
468 | (1) |
|
Creating the Azure Resource Group Project |
|
|
468 | (2) |
|
|
470 | (4) |
|
Deploying from Visual Studio |
|
|
474 | (3) |
|
Improving Our ARM Template |
|
|
477 | (3) |
|
Adding Service Bus Resources |
|
|
480 | (1) |
|
|
480 | (1) |
|
|
481 | (9) |
|
Creating a Production Environment |
|
|
490 | (1) |
|
Deploying the Application |
|
|
491 | (1) |
|
Setting Up Build Configurations and Configuration Transforms |
|
|
491 | (4) |
|
Building and Deploying with Visual Studio Team Services |
|
|
495 | (11) |
|
|
506 | (1) |
|
|
506 | (1) |
Index |
|
507 | |