sharepoint & azure jan steenbeek, martijn duiveman

Post on 21-Dec-2015

218 Views

Category:

Documents

3 Downloads

Preview:

Click to see full reader

TRANSCRIPT

SharePoint & AzureJan Steenbeek, Martijn Duiveman

– New development models– No more full trust or sandbox

– How are we going to create the same or better solutions in the cloud as we do on premise?

Introduction

Demo

– Architecture– Azure Web Jobs SDK– Web Job registration– Demo– Graph API– Registration in Active Directory– Demo– Questions

Contents

Architecture

Active Directory

SharePoint Online tenant Azure Subscription

Web Job

Provider hosted appSharePoint Site

App

New Site

Queue

Graph API

Database

Comparable with TimerJob’sScheduled / On Demand / Continuous Runs in an Azure Website– .exe, .cmd, .bat– Zip and upload

Triggers en Model BindingWorks with Azure Storage– Azure Blob Storage– Azure Table Storage – Azure Queues

Azure WebJobs SDKAnd Azure Storage

Goal of the SDK“Provide a way to make it easier to use Azure Storage when doing any background processing work.”

Azure StorageTable’s, Blobs en Queue’s

Table Storage Blob Storage Queue Storage

• Stuctured data• Max 252 properties• Max 1MB per entity• Inherit from

Microsoft.WindowsAzure.Storage.Table.TableEntity

• Unstructured data• Large files (100+ Gb per file)• Add using FileStream etc.

• Unstructured data• Small messages (64 KB each)• Millions of messages in queue• Create backlog of tasks to perform

Tables Entities

Customers

Orders

Name = …Email = …

Name = …Email = …

OrderId = …Date = …

Containers Blobs

Pictures

Movies

Img001.jpg

Img002.jpg

Mov1.avi

Queue’s Messages

CreateSiteQueue

ResizeImageQueue

{name: ..., url: ...}

{name: ..., url: ...}

{image: ..., format: ...}

Demo

Registering WebJob in SharePoint (1 / 4)

https://projectb.sharepoint.com/_layouts/15/AppRegNew.aspx

Register an App

Registering WebJob in SharePoint (2 / 4)

https://projectb.sharepoint.com/_layouts/15/AppInv.aspx

Grant Permission to an App

Registering WebJob in SharePoint (3 / 4)

https://projectb.sharepoint.com/_layouts/15/AppPrincipals.aspx

Get Tenant ID

Registering WebJob in SharePoint (4 / 4)

App.Config

– Install-Package Microsoft.Azure.WebJobs –Pre

– Current version 1.0.0.0 RC1– Storage Account – ConnectionString

– Naam: AzureWebJobsStorage – DefaultEndpointsProtocol=https;

AccountName=[ACCOUNTNAME];AccountKey=[ACCESSKEY]

– Always On

Setup Development Environment

– CRUD operations on directory data and objects– REST API– Useful in SharePoint context, for example when

– Authorizing users for multiple sites– Delegating authorization management– Getting to properties that are not exposed via the

SharePoint User Profiles

Graph API

Graph APIMapped properties in SharePoint online

Demo

– Install-Package– Microsoft.IdentityModel.Clients.ActiveDirectory– Microsoft.Azure.ActiveDirectory.GraphClient

– Grant App permissions on Azure AD

Setup Development Environment

Vragen?

top related