From the course: SharePoint Framework for Developers: 2 Authoring and Debugging Solutions

Unlock the full course today

Join today to access over 22,700 courses taught by industry experts or purchase this course individually.

Manage Office 365 CDN using PowerShell

Manage Office 365 CDN using PowerShell

From the course: SharePoint Framework for Developers: 2 Authoring and Debugging Solutions

Start my 1-month free trial

Manage Office 365 CDN using PowerShell

- [Sahil] Let's talk about setting up a simple document library in a SharePoint online site to act as a CDN. So this is the document library I'll be using. Note the URL, /sites/cdn/CDNDocs. Also at this time, I assume that you have downloaded and installed SharePoint Online Management Shell. So, let's go ahead and launch the SharePoint Online Management Shell. Once the SharePoint Online Management Shell launches, you need to connect to the admin site. So we say Connect-SPOService https, your tenant name, mine is winsmartsdev, dash admin.sharepoint.com, so note that you're connecting to tenant/admin. This should ask you to authenticate. So go ahead and authenticate as a tenant admin. Now that you're authenticated, now let's check and see the status of CDN on my tenancy. Get-SPOTenantCdnEnabled dash CdnType Public. So it tells me that, currently, CDN capabilities are off on my environment. Okay, how do we enable it? Set-SPOTenantCdnEnabled CdnType Public, and hit Enter. So at this…

Contents