Book Image

Building Hybrid Clouds with Azure Stack

Book Image

Building Hybrid Clouds with Azure Stack

Overview of this book

Azure Stack is all about creating fewer gaps between on-premise and public cloud application deployment. Azure Stack is the logical progression of Microsoft Cloud Services to create a true hybrid cloud-ready application. This book provides an introduction to Azure Stack and the cloud-first approach. Starting with an introduction to the architecture of Azure Stack, the book will help you plan and deploy your Azure Stack. Next, you will learn about the network and storage options in Azure Stack and you'll create your own private cloud solution. Finally, you will understand how to integrate public cloud using the third-party resource provider. After reading the book, you will have a good understanding of the end-to-end process of designing, offering, and supporting cloud solutions for enterprises or service providers.
Table of Contents (19 chapters)
Title Page
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface

A simple hello world Azure Stack Function


To provide a smart overview how Azure Stack Functions work and how to use them, a simple hello world function is described here.

To start, you just have to deploy the corresponding Function App:

For being deployed, you will have to set a unique name and a storage account. After it has been deployed, you can set your function type:

And now you can start writing your code:

In the function detail, you will find the following view:

As you can see, you can define the Triggers, the Inputs, and the Outputs:

You can write the code for your function in a language of your choice and save the code and configuration files in the same folder. The JSON configuration data is being named function.json. It defines the bindings and other configuration settings. The function uses this file to determine how to send data into and return it from function execution.

This is a sample JSON file:

The code for the functions in a defined Function App has to be saved in a root folder...