TABLE OF CONTENT

LAB 1 Building a simple Hello

LAB 2 Create an SMS Service

Part 1: Signing up for the service

Part 2: Configuring your service.

Part 3: Create the Logic App

Part 4: Using the Logic App

LAB 1Building a simple Hello

The goal of this lab is to make the first Logic App, call it and walk thru some of the capabilities that comes out of the box with Logic Apps.

You will build a very simple, serverless, web service with logging capabilities and deploy it within minutes.

  1. Login to the Azure Portal,
  2. Go to the search option at the top, and type “Logic Apps”
  3. You should find it under Services
  4. Select it and wait for the page to load.
  5. To the top left you will find the Add-button. Click it.
  6. Fill in the properties

    Make sure you select a new resource group and name it GlobalBootcamp. Set the location to wherever you want, it’s Azure.
  7. Click the Create button.
  8. Wait for the toaster notification and click go to resource.
  9. The portal will notice that the Logic App is empty and take you to a landing page.
  10. Take some time to look at the available templates. Scroll down until you find HTTP Request-Response and click it.
  11. When you get access to the designer surface, you can save, and you have a secure HTTP endpoint, but it should do something.

The cloud in general and especially Logic Apps run on JSON. The rest of the lab will use JSON to receive information, use it and send a response. If you do not have Postman installed, this might be a good time to do that. Postman is very useful for testing APIs. Download it from

  1. First you will define a contract for the POST that will be sent to your service.
    Find the “Use payload to generate schema”-link in the Request action at the top and click it.
  2. Fill in the following JSON payload in the textbox and click Done.
  3. The FirstName and LastName properties will now be easily accessible to you in the response action.
  4. Go to the Response action and click in the Body textbox. The Dynamic Content menu will pop up.
  5. You can edit the response by combining text and values from the menu. Say hello to the person posting by editing the textbox to look like this
  6. Click save at the top and look in the HTTP POST URL of the Request Action at the top. That is the unique URL you can call using Postman. Simply copy and paste it into a new POST in postman. Define the body like the payload above and Click Send.

  7. Done!

For further study, try sending a JSON response. It is as simple as typing it out and use values from the dynamic content menu.

LAB 2 Create an SMS Service

The goal of this lab is to make use of one of the many 3rd party connectors that is available to you in Logic Apps. The lab calls you to sign up for a free account in Twilio, an API-provider that lets you send SMS. You can use their APIs but they have a connector available in Logic Apps. Much easier and faster to use.

Part 1: Signing up for the service

  1. Go to
  2. Fill in the form.
  3. You need to supply your Phone Number. Note that you can easily opt out of any contact from Twilio.
  4. Wait for the SMS to arrive and supply the verification code.
    You will only be able to send messages to this phone number with a free account.
  5. Give your project a name, perhaps GlobalAzureBootcamp.

Part 2: Configuring your service.

Now you need to claim a phone number that will represent your account, and after that you need to get API-keys for use in your Logic Apps.

  1. Click the menu to the left to find the “Build” as in the picture
  2. Click the Get a number button and copy the number that will be given to you.
  3. Now click the menu to the left to get to the Dashboard.
  4. To the top right, you will find the “Show API Credentials” link. Click it to find the keys you need to use the Twilio connector from Logic Apps.
  5. You need to copy both the ACCOUNT SID and AUTH TOKEN.

Part 3: Create the Logic App

Now you will create the Logic App and have it send you and SMS.

  1. Go back to the resource group you created before (GlobalBootcamp) and click the add button to the top left.
  2. In the search box, enter “logic app” and click it in the list below. Make sure to choose the one marked just “Logic Apps”. When the create button appears, click Create.
  3. Name it SendSMS and place it in the GlobalBootcamp, resource group. Click create.
  4. After creation navigate back to the GlobalBootcampresourcegroup and open the newly created SendSMS. You might need to refresh for it to show up in the list.
  5. In the “template selector” that opens for every new Logic App, choose “When a HTTP request is received”.
  6. Time to add the call to Twilio. Under the first action click “New step” and the “Add an action”.
  7. In the search box type twilio and the choose “Send text message” in the list below.
  8. Now you need to enter your credentials and name the connection.
  9. Give it a name and copy and paste the values you got from Configuring your service above.
    Twilio Account Id is the ACCOUNT SID and Twilio Access Token is AUTHTOKEN.
    End by clicking create.
  10. When authentication is done, you can fill in the other fields.
  11. Choose the phone number you got in “Configuring your service” step 2. It is in a dropdown list.
  12. Put in your phone number under “To Phone Number”. A trail account can only send messages to the number used to verify.
  13. Enter a text under Text and Save the Logic App.

Part 4: Using the Logic App

Executing a Logic app during development can be done in different ways. You used postman before, but if you have no payload you can execute it right from the designer surface.

You will now execute the Logic App and after that, take a look at debugging capabilities, logging and execution reports available to you.

  1. At the top of the designer surface there is a run button. Click it to execute the Logic App.
  2. The Logic App designer surface will now go into execution mode.
  3. If everything works you should get an SMS with the text you decided to send.
  4. When execution is done, you can view the execution report directly in the designer surface. Click the Send SMS action.
  5. You can view exactly what values where used in the execution.

Part 5: Expanding the Logic App

You should now have a good basic understanding of how you create Logic Apps. Shuld you feel you want to expand your knowledge, here are a couple of useful things to build.

Send a POST body: Rebuild your Logic App to accept a POST body and use it to set the Text message.

Look at past executions: In the overview of the Logic App you can access all kinds of useful information. Look at the execution history.

Conditions: Try to rebuild the Logic App to handle different execution paths. Use the Condition Action.

Errorhandling: You can route execution paths to take different actions depending on the status of the preceding action. Build a new Logic App that takes a HTTP Request, validates the input in some way, and then return either a 400 response or a 200 response.

Sida 1