Coder Social home page Coder Social logo

contoso-airlines-azure-functions-sample's Introduction

Contoso Airlines Flight Team Provisioning Sample

IMPORTANT

This sample has been archived and is no longer being maintained. For a more current sample using Microsoft Graph from Azure Functions, please see https://github.com/microsoftgraph/msgraph-training-azurefunction-csharp.

This sample app implements Azure functions designed to be invoked via a Graph webhook to provision a Microsoft Team when a new flight is added to a master list in SharePoint. The sample uses Microsoft Graph to do the following provisioning tasks:

Prerequisites

  • Visual Studio Code with Azure Functions extension installed.
  • Office 365 tenant
  • Azure subscription if you want to publish the functions. You can run this locally in Visual Studio Code but will need further requirements.

Prerequisites to run locally

  • ngrok
  • Azure Cosmos DB Emulator
  • Azure Storage Emulator

Setup

To setup the sample, see Set up for end-to-end demo

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

contoso-airlines-azure-functions-sample's People

Contributors

jackson-woods avatar jasonjoh avatar nokafor avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

contoso-airlines-azure-functions-sample's Issues

Action 'CreateFlightTeam' failed

When we insert a new item into the list the flow throws an error at step "CreateFlightTeam"

{"result":"failed","details":{"ClassName":"System.TypeInitializationException","Message":"The type initializer for 'create_flight_team.AuthProvider' threw an exception.","Data":null,"InnerException":{"ClassName":"System.ArgumentNullException","Message":"Value cannot be null.","Data":null,"InnerException":null,"HelpURL":null,"StackTraceString":" at Microsoft.IdentityModel.Clients.ActiveDirectory.ClientCredential..ctor(String clientId, String clientSecret)\r\n at create_flight_team.AuthProvider..cctor() in C:\Akshay\contoso_airlines\contoso-airlines-azure-functions-sample-master\create-flight-team\AuthProvider.cs:line 13","RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":null,"HResult":-2147467261,"Source":"Microsoft.IdentityModel.Clients.ActiveDirectory","WatsonBuckets":"AQAAAEMATABSADIAMAByADMAA ......

,"ParamName":"clientId"},"HelpURL":null,"StackTraceString":" at create_flight_team.AuthProvider.GetTokenOnBehalfOfAsync(String authHeader) in C:\Akshay\contoso_airlines\contoso-airlines-azure-functions-sample-master\create-flight-team\AuthProvider.cs:line 35\r\n at create_flight_team.CreateFlightTeam.Run(HttpRequest req, TraceWriter log) in C:\Akshay\contoso_airlines\contoso-airlines-azure-functions-sample-master\create-flight-team\CreateFlightTeam.cs:line 39","RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":null,"HResult":-2146233036,"Source":"create-flight-team","WatsonBuckets":"AQAAAEMATABSADIAMAByADMAA","TypeName":"create_flight_team.AuthProvider"}}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.