This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"[email protected]": "https://graph.microsoft.com/beta/teamsTemplates/standard", | |
"visibility": "Private", | |
"displayName": "Sample Engineering Team", | |
"description": "This is a sample engineering team, used to showcase the range of properties supported by this API", | |
"channels": [ | |
{ | |
"displayName": "Announcements 📢", | |
"isFavoriteByDefault": true, | |
"description": "This is a sample announcements channel that is favorited by default. Use this channel to make important team, product, and service announcements." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<pnp:Provisioning | |
xmlns:pnp="http://schemas.dev.office.com/PnP/2018/01/ProvisioningSchema" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://schemas.dev.office.com/PnP/2018/01/ProvisioningSchema https://raw.githubusercontent.com/OfficeDev/PnP-Provisioning-Schema/master/OfficeDevPnP.ProvisioningSchema/ProvisioningSchema-2018-01.xsd" xmlns:xi="http://www.w3.org/2001/XInclude"> | |
<pnp:Preferences Generator="OfficeDevPnP.Core, Version=2.22.1801.0, Culture=neutral, PublicKeyToken=3751622786b357c2" /> | |
<pnp:Templates ID="COB-TEMPLATES"> | |
<pnp:ProvisioningTemplate ID="COB-TEAMSITE" Version="1" BaseSiteTemplate="GROUP#0" Scope="RootSite"> | |
<pnp:RegionalSettings AdjustHijriDays="0" AlternateCalendarType="None" CalendarType="Gregorian" Collation="25" FirstDayOfWeek="Monday" FirstWeekOfYear="0" LocaleId="2057" ShowWeeks="false" Time24="false" TimeZone="2" WorkDayEndHour="5:00PM" WorkDays="62" WorkDayStartHour="8:00AM" /> | |
<pnp:ClientSidePages> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# site script ID is obtained from previous output.. | |
$cobProjectSiteScriptIdAsString = "be7c02a8-9134-4961-921a-cffc4772e97c" | |
Add-SPOSiteDesign ` | |
-Title "COB project site" ` | |
-WebTemplate "64" ` | |
-SiteScripts $cobProjectSiteScriptIdAsString ` | |
-Description "Creates a COB project site with a theme applied" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$creds = Get-Credential | |
$tenantAdminUrl = "https://[TENANT]-admin.sharepoint.com" | |
Connect-SPOService -Url $tenantAdminUrl -Credential $creds | |
Get-Content 'C:\[PATH]\COB_ProjectSite.json' -Raw | Add-SPOSiteScript -Title "COB project site script" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "schema.json", | |
"actions": [ | |
{ | |
"verb": "applyTheme", | |
"themeName": "COB purple" | |
}, | |
{ | |
"verb": "triggerFlow", | |
"url": "https://prod-48.westeurope.logic.azure.com:443/workflows/791dab19ffb3455cbfe58b6ac556e37c/triggers/manual/paths/invoke?api-version=2016-06-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=ZfoL7_0JXwg_Mv3_BmyCN-Z5W-l2eehRI8Ga0jWzPH4", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"type": "object", | |
"properties": { | |
"webUrl": { | |
"type": "string" | |
} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "schema.json", | |
"actions": [ | |
{ | |
"verb": "createSPList", | |
"listName": "CLIENT SHARED DOCUMENTS", | |
"templateType": 101, | |
"subactions": [ | |
{ | |
"verb": "SetDescription", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
If(Connection.Connected, Color.Green, Color.Red) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
If(Connection.Connected, "Connection status - connected", "Connection status - NOT connected") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using Microsoft.Azure.WebJobs; | |
using Microsoft.Azure.WebJobs.Host; | |
using Microsoft.SharePoint.Client; | |
using OfficeDevPnP.Core; | |
using OfficeDevPnP.Core.Framework.Provisioning.ObjectHandlers; | |
using OfficeDevPnP.Core.Framework.Provisioning.Connectors; | |
using OfficeDevPnP.Core.Framework.Provisioning.Model; | |
using OfficeDevPnP.Core.Framework.Provisioning.Providers.Xml; | |
using System.IO; |