logic apps – deployments

Post on 16-Apr-2017

612 Views

Category:

Technology

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Sponsored & Brought to you by

Logic Apps – Deployments

Mattias Lögdberg

https://twitter.com/MLogdberg

https://se.linkedin.com/in/logdberg

Logic Apps Deployments

Integration Monday DatumMattias Lögdberg 2016-06-27

Mattias Lögdberg

Solution ArchitectAzure Advisor/InsiderTalker/Inspirer at Microsoft Events

MLogdberg

MLogdberg

https://se.linkedin.com/in/logdberg

Agenda

• Setting the Scen• Develpoment• Version control using Visual Studio Team Services (TFS Online)• Build using Visual Studio Team Services (TFS Online) • Deployment and Release Managemet using TFS Online• Deployment using GitHub

• Azure Services– Blobb Storage

• Logic Apps• Visual Studio 2015• Visual Studio Team Services (TFS Online)• PowerShell• Logic Apps Template Creator (@Github by Jeff Hollan)– https://github.com/jeffhollan/LogicAppTemplateCreator

• Azure Deploy @ GitHub

BuildVersion Control

Develop Delpoy

The Logic App

• Recieve HTTP call• Upload content to blobbstorage

Developing Logic Apps

• Browser• Templates• JSON

Demo

• Creating Azure Service, Storage and prepare for blobb upload• Creating a Logic App to send File to Blobb Storage• Preparing for deployment– Identifying the ”hard coded” parts– Parameterize

What we created

App Service PlanResource Group

Logic App

Storage Account

Connection

BuildVersion Control

Develop Delpoy

Version Control

• Keeping track of changes• Build• Test• Deployment and Release handling

Demo – Source Control

• Extracting the Logic App Template• https://github.com/jeffhollan/LogicAppTemplateCreator

• Create Visual Studio Project• Add template, environment and parameter files• Create a script to manipulate the Azure resources– Creating the Container if needed

• Adding the Solution to TFS

What we created

• Template for creating all ”needed” resources– Creating the Storage Account

• Automated creation of Connection(s)– Creating the connection with key and name

• Script for creating Container in Blobb Storage• Version control

BuildVersion Control

Develop Delpoy

Building Logic Apps

• Copy template and parameter files• Copy powershell script files

Demo – Create Build

• Create Build definition• Build

What we created

• Copying Artifacts to be used with deployments

BuildVersion Control

Develop Delpoy

Deployment

• Template deploy– Resource Group– Azure Resources (App Service Plan, Logic App etc)

• Powershell for administrating Azure Resources– Create the Container for Blobb Storage

App Service PlanResource Group

Logic App

Storage Account

Connection

Demo – Create Releases

• Create Release from Build• Add stepp for template deploy• Add Script for creating the container if not created

What we created

• Release handling– Easy release to mutilpe environments

• Control over what is released in what environment• 100% automated deploy

Storage Account Logic App

$(containername)

Summary

• Fully automated Deployment– Logic App– Other Azure Resources

• Unified Deployment regardless of Azure Resource or Logic App.• Reusable templates, parameterize.• Make a plan for shared resources

Alternatives

• Github– Azure Deploy

• Other build engines – Requirements Azure Powershell or Azure CLI– Recomendation: Create login credentials and load in script• Save-AzureRmProfile• Select-AzureRmProfile

– Recomendation: Create small reusable powershell script and execute in sequence at deployment

Github Deployments

• Azure DeployExample athttps://github.com/MLogdberg/LogicAppTemplates

Wrap Up

Pros• Template deploy for unified deployment. (Azure resources)• Once over the ”bump” it’s easy• Everything can be solved via powershellCons• Native template export missed!• Hard to find error causes• Steap learning curve

Thank you for your attention!Mattias Lögdberg, Solutions ArchitectEmail: Mattias. Logdberg@ibiz-solutions.seTel: +46 (0)70 556 75 56

MLogdbergMLogdberghttps://se.linkedin.com/in/logdberg

top related