Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Serverless computing in Azure with .NET
Serverless computing in Azure with .NET

Serverless computing in Azure with .NET: Build, test, and automate deployment

eBook
$9.99 $43.99
Paperback
$54.99
Subscription
Free Trial
Renews at $19.99p/m

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Table of content icon View table of contents Preview book icon Preview Book

Serverless computing in Azure with .NET

Getting Started with the Azure Environment

This chapter will cover the full setup and configuration of the Azure serverless computing environment (Azure Functions) and deploying our first “Hello World” application into it.

The first part of this chapter will cover the basics of getting access to the Microsoft Azure Cloud. If you are already familiar with Microsoft Azure and have access to an Azure account and a subscription, you may choose to skip to Azure serverless computing section.

During the course of this chapter, we will cover the following topics:

  • Learning how to set up a new Azure account and subscription and accessing the Management Portal
  • Understanding the Azure serverless computing environment
  • Deploying an HTTP-triggered Azure Function using the Functions Portal
  • Understanding environment settings and the definition of a function
  • Learning how to clean...

Microsoft Azure Cloud

Azure is a public cloud computing platform powered by Microsoft. Microsoft Azure was first made available to the public in February 2010. Azure data centers are currently available in 40 regions across many countries and are expanding at a rapid rate. Azure offers a variety of IaaS, PaaS, and SaaS products. In addition to native Azure products and services, thousands of third-party products can be hosted on the Azure platform.

In this book, we will focus on a native Azure service called the Azure Functions, which is Microsoft' s primary offer for serverless computing.

The Azure Functions is a Functions as a Service (FaaS) offering. As discussed earlier, in a typical Platform as a Service (PaaS) offering, you are responsible for managing your application and data layers, while the vendor manages the hardware, middleware, OS, servers, and networking. In...

Azure serverless computing

The Azure serverless computing offering is called Azure Functions.

Azure offers a number of other "compute-on-demand" services in which you aren't required to manage servers, such as Azure WebJobs and Azure Batch. These services are not Functions as a Service, and are best suited for background or batch processing. These services will be covered in the Appendix A, Azure Compute On-Demand Options.

Hosting Plan

There are two options for hosting plans for the Azure Functions: the Consumption Plan and the App Service Plan.

With an App Service plan, you host the application on Azure App Service.

In general, App Service is a Platform as a Service offering for hosting web or mobile applications...

Deploying a function

In this section, we will walk through the step-by-step deployment of our first serverless Azure Function using the Azure Management Portal.

Creating an Azure serverless environment

To create your first Azure Function, navigate to Azure Management Portal at https://portal.azure.com. In the left-hand side pane, navigate to New | Compute | Function App. The parameters in the following screenshot will be explained next:

Let's take a moment to elaborate on the Function App deployment parameters.

The App name parameter

The App name parameter is the...

Clean up Azure resources

If you have been experimenting with deploying different resources, you may want to delete some of them to keep things organized and to avoid being charged for resources you don' t use. This section will describe the procedure of resource deletion at various levels. Be careful--the delete procedure is irreversible.

Deleting a function

One way to delete a specific function inside the Function App, is to delete it from the function's app Functions list as shown in the following screenshot:

Alternatively, you can also delete by navigating to Functions State | Manage | Delete function:

Deleting the...

Summary

This chapter provided us with a solid introduction to the Azure serverless computing environment and walked us through the deployment of our first Azure Functions application.

In this chapter, we covered the basics of Microsoft Azure cloud and created our first serverless computing environment and a "Hello World" function. We also walked through application settings and environment configuration.

In the next chapter, we will walk through creating an Azure Functions project in Visual Studio and deploying it to our existing Azure environment. We will also set up two other application components: the database and the Web UI to demonstrate a real-world example of serverless computing utilization.

Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • ? Take advantage of the agility, scale, and cost-effectiveness of the cloud using Azure Serverless compute
  • ? Build scalable, reliable, and cost-effecient applications with Serverless architecture and .NET
  • ? Learn to use Azure functions to their fullest potential in .NET

Description

Serverless architecture allows you to build and run applications and services without having to manage the infrastructure. Many companies have started adopting serverless architecture for their applications to save cost and improve scalability. This book will be your companion in designing Serverless architecture for your applications using the .NET runtime, with Microsoft Azure as the cloud service provider. You will begin by understanding the concepts of Serverless architecture, its advantages and disadvantages. You will then set up the Azure environment and build a basic application using a sample text sentiment evaluation function. From here, you will be shown how to run services in a Serverless environment. We will cover the integration with other Azure and 3rd party services such as Azure Service Bus, as well as configuring dependencies on NuGet libraries, among other topics. After this, you will learn about debugging and testing your Azure functions, and then automating deployment from source control. Securing your application and monitoring its health will follow from there, and then in the final part of the book, you will learn how to Design for High Availability, Disaster Recovery and Scale, as well as how to take advantage of the cloud pay-as-you-go model to design cost-effective services. We will finish off with explaining how azure functions scale up against AWS Lambda, Azure Web Jobs, and Azure Batch compare to other types of compute-on-demand services. Whether you’ve been working with Azure for a while, or you’re just getting started, by the end of the book you will have all the information you need to set up and deploy applications to the Azure Serverless Computing environment.

Who is this book for?

This book is for .NET developers who would like to learn about serverless architecture. Basic C# programming knowledge is assumed.

What you will learn

  • • Understand the best practices of Serverless architecture
  • • Learn how how to deploy a Text Sentiment Evaluation application in an Azure Serverless environment
  • • Implement security, identity, and access control
  • • Take advantage of the speed of deployment in the cloud
  • • Configure application health monitoring, logging, and alerts
  • • Design your application to ensure cost effectiveness, high availability, and scale

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Aug 17, 2017
Length: 468 pages
Edition : 1st
Language : English
ISBN-13 : 9781787281561
Vendor :
Microsoft
Category :
Languages :
Tools :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Publication date : Aug 17, 2017
Length: 468 pages
Edition : 1st
Language : English
ISBN-13 : 9781787281561
Vendor :
Microsoft
Category :
Languages :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
$199.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts
$279.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total $ 152.97
Azure Serverless Computing Cookbook
$48.99
Azure for Architects
$48.99
Serverless computing in Azure with .NET
$54.99
Total $ 152.97 Stars icon
Banner background image

Table of Contents

15 Chapters
Understanding Serverless Architecture Chevron down icon Chevron up icon
Getting Started with the Azure Environment Chevron down icon Chevron up icon
Setting Up the Development Environment Chevron down icon Chevron up icon
Configuring Endpoints, Triggers, Bindings, and Scheduling Chevron down icon Chevron up icon
Integrations and Dependencies Chevron down icon Chevron up icon
Integrating Azure Functions with Cognitive Services API Chevron down icon Chevron up icon
Debugging Your Azure Functions Chevron down icon Chevron up icon
Testing Your Azure Functions Chevron down icon Chevron up icon
Configuring Continuous Delivery Chevron down icon Chevron up icon
Securing Your Application Chevron down icon Chevron up icon
Monitoring Your Application Chevron down icon Chevron up icon
Designing for High Availability, Disaster Recovery, and Scale Chevron down icon Chevron up icon
Designing Cost-Effective Services Chevron down icon Chevron up icon
C# Script-Based Functions Chevron down icon Chevron up icon
Azure Compute On-Demand Options Chevron down icon Chevron up icon

Customer reviews

Rating distribution
Full star icon Full star icon Full star icon Full star icon Half star icon 4.3
(3 Ratings)
5 star 66.7%
4 star 0%
3 star 33.3%
2 star 0%
1 star 0%
Steve Harshbarger Aug 24, 2017
Full star icon Full star icon Full star icon Full star icon Full star icon 5
This book is about the next step in architectures that let you build more scalable software applications with less effort that are less costly to run. It starts at the conceptual level, gets specific about serverless architecture, then dives into how to implement it on Microsoft's Azure platform.Azure Functions are the new idea here: stateless microservices that run devoid of any infrastructure or monolithic application framework. What the book does a great job at is three things: First, it helps you think through how functions may (or may not) add value to your specific situation. Second, it presents functions in the context of an entire application so you can see where it fits within other services ranging from data persistence to RESTful API endpoints to user interface to machine intelligence to security. Third, it guides you through the process of cost engineering your solution, taking into account the various trade-offs that entails.The book is well organized with a clear and direct writing style. It's easy to both skim for the big ideas as well as dive into details and sample code for the areas you want to get hands on experience with. If you are interested in serverless on the Microsoft platform, this is a valuable read.Full disclosure: I had the honor of writing the foreword for this book.
Amazon Verified review Amazon
Igor Papirov Sep 19, 2017
Full star icon Full star icon Full star icon Full star icon Full star icon 5
An excellent introduction to development on Azure without worrying about underlying platform. Whether you're new to Azure or you've been developing apps using server-based technologies (ie: VMs, Service Fabric, WebApps, or Cloud Services), you should check this book out
Amazon Verified review Amazon
Michael C. Gamble Jan 16, 2018
Full star icon Full star icon Full star icon Empty star icon Empty star icon 3
So far has been an informative book. I have to admit that Azure Functions are a moving target. .NET Standard is now available and of course no mention of it or the changes it has brought.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.