Azure Functions UX
TypeScript HTML C# CSS JavaScript Batchfile Other

AzureFunctions UX

Getting started

  1. Building

    > git clone
    > cd AzureFunctionsPortal
    > nuget restore
    > msbuild AzureFunctions.sln
    > npm install -g angular-cli
    > cd AzureFunctions.AngularClient
    > npm install
    > ng build --watch
  2. Needed environment variables You'll need to create an AAD web application and set https://localhost:44300 as a reply URI, then configure the following environment variable.

    AADClientId = <GUID>
    AADClientSecret = <string>
    aiInstrumentationKey = <GUID> (optional to track AppInsights events)
  3. Create a new IIS site from inetmgr with https binding on 44300 that points to ..\\AzureFunctionsPortal\\AzureFunctions for root path.

  4. Create app_data\\templates folder under ..\\AzureFunctionsPortal\\AzureFunctions and clone to default folder in there. Ensure the casing is correct for the new folders.

  5. Run iisreset from an elevated cmd.

  6. Visit https://localhost:44300 (note that logins only work with accounts in your AAD tenant used above)

  7. Optional: You can run ng build --watch in ..\\AzureFunctionsPortal\\AzureFunctions.AngularClient to launch ng builder in watch mode.

Code and branches


master: (

This is connected to staging. After all scenarios are validated on staging we swap by running tools\SwapWithStagingSlots.ps1

dev: (

This is the next environment. This is never swapped, instead changes from dev get merged into master.

Development workflow

# make sure you're working on the dev branch
> git checkout dev

# create your own personal branch based on dev
> git checkout -b ahmels-work

# make all your changes in your branch
# commit and push these changes to github
> git push origin ahmels-work -u

# open a pull request.
# once everything is good, merge, rebase and push
> git checkout dev
> git merge ahmels-work
> git pull --rebase

# fix any conflicts
> git push origin dev

Angular 2 coding style

Code layout


Language: C#

Framework: ASP.NET WebAPI

The API surface is very limited:

# used while in Azure Portal

# Used before user gets to Azure Portal

# health pings by traffic manager and monitoring


This is a bit of a complicated subject:

For external sites (i.e:,, authentication is done on the frontEnd and we get the token passed to us. Logic to handle that is in \Authentication\FrontEndAuthProvider.cs

For local development (i.e: https://localhost:44300) authentication is handled by the app itself, code in \Authentication\LocalhostAuthProvider.cs

When in Azure Portal authentication is always handled by Azure Portal itself and we just get the token.


Language: TypeScript

Framework: angular2

Check out