Tag: Azure Functions

AzureCloud NativeServerless

Azure Functions: Extend Execution Timeout Past 5 Minutes

Azure Functions is the Serverless compute option within the Microsoft Azure platform. One of the biggest benefits of Azure Functions, and Serverless …

Azure Functions: Extend Execution Timeout Past 5 Minutes
AzureCloud NativeServerless

Go serverless: Real-time applications with Azure SignalR Service | Azure Friday

Modern applications light up with real-time information. In this episode of Azure Friday, Anthony Chu joins Donovan Brown to show how to deliver live updates from Azure Functions to web, mobile, and desktop apps with Azure SignalR Service. Learn how to send real-time messages over WebSockets from your serverless apps with a few lines of code.

[0:03:00] – Demo

Source: Channel 9

Resources

AzureCloud NativeServerless

Go serverless: Event-driven applications with Azure Functions | Azure Friday

In this episode of Azure Friday, Jeff Hollan joins Scott Hanselman to show how you can quickly develop and deploy code to run in the cloud with Azure Functions. Functions can be written in a variety of languages, and will automatically trigger and scale based on your application needs.

[0:01:53] – Demo

Source: Channel 9

Resources

Azure

Azure Apps Demo Map is now live!

Source: Azure Apps Demo Map, Microsoft

Earlier this week I noticed that Microsoft launched the Azure Apps Demo Map website, a centralized way to see a some awesome resources available by Microsoft for building enterprise applications that leverage Azure technologies..

Most of the scenarios include an interactive user experience to explore the solution – including solution diagrams, live demos, source code and additional resources.

When exploring a scenario you can click on sections to see what technologies were used for that particular application. In the case of the Rewards application, it uses Azure Functions, Logic Apps, and App Service.

After exploring the interactive model you can head over to the GitHub project to download and run the code so that you can dig really deep in how the solution was built.

Let’s take a brief look at each of the projects.

Projects

Currently the Azure Apps Demo Map contains four applications as listed below.

Tailwind Traders

Tailwind Traders is a fictitious retail company showcasing the future of intelligent application experiences. These reference apps are all powered by the Azure cloud, built with best-in-class tools, and made smarter through data and AI.

Source: Azure Apps Demo Map, Microsoft

Visit the GitHub Project

SmartHotel360

SmartHotel360 is a fictitious smart hospitality company showcasing the future of connected travel. Their vision is to provide an intelligent and personalized experience to the guests.

Source: Azure Apps Demo Map, Microsoft

Visit the GitHub Project

Rock, Paper, Scissors, Lizard, Spock

The geek version of the classic game. This sample shows a multilanguage application running on AKS with a front-end developed in Blazor and integrated with Azure Machine Learning and Azure Cognitive Services. Start the battle and find if you can beat our bot! VISIT PROJECT

Source: Azure Apps Demo Map, Microsoft

Visit the GitHub Project

Contoso Air

Contoso Air is a fictitious airline company. This lab shows how to create a website application that runs Node.JS Server that stores customer booked flights in an Azure Cosmos DB.

Unfortunately this project has no diagram and has been archived. However this project still contains valuable information for building a Node.JS + Cosmos DB application and running it on Azure.

Visit the GitHub Project

Wrap-up

This is a great resource to learn how Azure can be used for an end to end solution for your business.

They have a feedback link so if you found the resource useful or you have suggestions please let them know. It would be cool to see this resource be expanded to include other applications that include Power BI, Power Apps, Azure DevOps, Dynamics, etc.

Enjoy!

References

https://azureappsdemomap.com/

https://azure.microsoft.com/

AzureDeveloperDevelopment

25 days of serverless

Azure Advocates’ 25 Days of Serverless

December 1st sparks the start of Microsoft’s 25 days of serverless challanges. Each day throughout the month of December a new challenge will be published from the Microsoft Cloud Advocates. Your goal is to solve it in the programming language of your choice and then submit your solution via GitHub.

If you don’t know anything about Azure or serverless then no problem. Each challenge will provide hints to get your started

The Premise

Oh no! An evil grinch has stolen all of the world’s servers! Travel around the world helping everyone replace their current solutions to common tasks with serverless technology in time for the holiday rush.

Each day’s puzzle will bring you to a new location somewhere in the world! You’ll be helping local folks in that location with some problem they have, showing how moving to serverless can help things get done! Each day’s puzzle will bring you to a new location somewhere in the world! You’ll be helping local folks in that location with some problem they have, showing how moving to serverless can help things get done!

Join the Microsoft @AzureAdvocates and puzzle solvers all over the world for #25DaysOfServerless adventures!

Enjoy!

References

https://25daysofserverless.com/

https://dev.to/azure/merry-and-bright-with-azure-advocates-25-days-of-serverless-1hi0

Azure

Getting started with Azure Event Grid Extension for Visual Studio Code

I love Visual Studio Code and all the extensions that are available. It has become my preferred editor for almost everything (replacing Notepad++), except for when developing in Visual Studio.

Recently there is a new extension that was made available for working with Azure Event Grid. Typically when working with Azure Event Grid I use a tool called Postman to send test messages to my Azure Event Grid resource. But now with this latest extension you can use Visual Studio Code.

In this post I’ll walk through how to get started and use the Azure Event Grid extension for Visual Studio Code. Let’s get started.

Prerequisites

Before we can begin we need to make sure we have the following installed and setup:

  1. An Azure Subscription. If you don’t have an Azure Account, you can sign up for one today for free and receive $200 in credits by selecting "Create a Free Azure Account…" or selecting "View->Command Palette" and searching for "Azure: Create an Account"
  2. Install Visual Studio Code
  3. Visual Studio Code Extensions:
    • Install extension Azure Tools for Visual Studio Code
    • Install extension Azure Event Grid

Connecting to your Azure Subscription

First thing we need to do is connect to your Azure subscription. This will happen automatically when you go to the Azure tab in Visual Studio Code. You can also sign in from the Command palette and searching for “Azure: Login”.

image

image

image

Create an Event Grid Topic

Now that you’re signed in, let’s go ahead and create an Event Grid topic.

1. In the Event Grid Topics pane, click on the + button to create a new topic:

image

2. Then select your Azure Subscription to associate this topic with:

image

3. Now provide a topic name. I will use “VSCodeEventGridTopicDemo” for my demo:

image

4. Next select a resource group for your topic. I will use  “RGVSCodeEventGridDemo” for my demo:

image

5. Select your location for the resources:

sshot-636

6. Done. In a few seconds your Azure Event Grid will be created and displayed in Visual Studio Code:

image

image

You can login to your Azure Subscription and see everything we just created. Keep your Azure Subscription loaded in the browser as we’ll use it for the next section.

image

Create Event Grid Subscription

Now that we have an Event Grid Topic setup we need to create a subscription to receive the events we send it.

1. Here I will create a new Azure Function app:

image

2. Now create a new Event Grid Trigger function and after it’s created click on the Add Event Grid subscription link:

image

3. Fill in the details relating to the Azure Event Grid Topic we created earlier and then press the Create button:

image

Your Event Grid Topic now has an Event Grid Subscription and is ready to test!

Generating Mock Events

Apart from managing your Event Grids resources in Visual Studio Code, you can also generate and send mock events which is great for testing purposes. Instead of using Postman to do this, I find the Event Grid Extension better and mocking and sending events. So let’s get started now mocking some events.

1. To generate a mocked event, right click on your Event Grid Subscription in Visual Studio Code and select Create Mock Event Generator:

image

2. A new file will be created with all the details for generating mocked events for this subscription. The pattern property is defined with regex patterns for generating random data. You will noticed I changed the data section pattern value with regex pattern to generate the mocked data for my event:

image

3. At the top of the event generator file will be two links: Send Events and Preview Events. The actions do exactly as they say and are what you want to use when generating your mocked events.

image

4. If we click on Preview Events, another file is created with a preview of mocked event data to be sent. Notice the different values between the events. This is from the regex logic defined in the event generator. This can be customized to generate data appropriate for your needs.

image

5. Now click on Send Events link at the top of the event generator file and go to your Azure Portal where you previously defined your Azure Function for your Event Grid Topic, and you will see in the logs your mocked events:

sshot-647

As you can see the Azure Event Grid extension for Visual Studio Code is very powerful and is a handy tool to use in your Azure development.

Enjoy!

Reference

Create your free Azure account

Azure Event Grid Overview

Azure Event Grid Documentation

Introduction to Azure serverless with Azure Functions, Logic Apps and Azure Event Grid

AIAzureDevelopmentEventsProductivity

Microsoft Build 2018–Day 2 Highlights

Today’s keynote by Joe Belfiore was focused on Multi-sense + Multi-device for Microsoft 365, which is Windows, Office and EMS

Image showing how Microsoft 365 brings together Office 365, Windows 10, and Enterprise Mobility + Security (EMS), a complete, intelligent, and secure solution to empower employees.

Announcements

  • Fluent Design System updates.
  • UWP XAML Islands, which lets you incorporate UWP into WinForms, WPF and Win32 applications. This also means you can start to bring in the Fluent Design System into these UI frameworks.
  • Windows UI Library, which brings native platform controls as NuGet packages instead of being tied to the OS version. This will work from the Windows Anniversary Update and newer.
  • .NET Core 3.0, which will support side-by-side runtimes, along with support for WinForms, WPF and UWP.
  • MSIX, which is dubbed the best technology for installing applications on Windows. This inherits the Universal Windows Platform (UWP) features, works across Enterprise or Store distributions, and supports all Windows applications.
  • Windows SDK Insider Preview – https://aka.ms/winsdk
  • New developer revenue sharing model. Developers will get 85% when their app is found in the Microsoft store, and 95% when you provide your customers to your app in the Microsoft store.
  • Microsoft Launcher on Android will support Timeline for cross-device application launching. On iOS this will be supported through Microsoft Edge.
  • A new “Your Phone” experience coming soon to Windows 10 that enables you to see your connected phone text messages, photos and notifications and then interact with them without having to use your phone. Really neat experience – now if only they support Windows Mobile 10 Smile
  • Microsoft Sets was officially shown and demonstrated how it can be used for an easier way to organize your work and allow you to get back to work where you left off when ready. This means not having to have 25+ tabs open in Chrome or Edge. Nice!
  • Adaptive Cards is being added to Microsoft 365, which will enable developers to create rich interactive content within conversations. They demonstrated a GitHub Adaptive Card for Outlook (365) where you could comment and close an issue. Another example shown was paying for your invoice from an email.
  • There was a lot of buzz for Microsoft Graph, which is core to the Microsoft 365 platform. Microsoft Graph helps developers connect the dots between people, schedules, conversations, and content within the Microsoft cloud.
  • Cortana and Alexa start speaking to one another. Sometime in the future you will be able to access your Alexa device through Windows 10 and likewise on an Amazon Echo you will ne able to speak to Cortana.

Enjoy!

References

https://developer.microsoft.com/en-us/events/build

Modernizing applications for our multi-sense, multi-device world

Microsoft 365 empowers developers to build intelligent apps for where and how the world works