Saturday, November 3, 2018

Enable Office 365 CDN (Content Delivery Network)

I recently had a user complain that their Picture Library Slideshow Web Part stopped working in the SharePoint Online instance. After some research, I stumbled across a MS Support article that Non-CDN enabled picture libraries would no longer switch pictures automatically.

You can find more information on CDN here.

After looking into information on public and private CDN, we decided to go with the private CDN option as our site hosting the picture library is a private SharePoint site.

Solution: While the solution to activate and configure the CDN can be easily found on MS Support site, below are the steps for your reference.

In SharePoint Online Management Shell:

Step 1: Activating CDN in your SharePoint Online Tenant.
  1. Connect-SPOService 
    1. Type tenant admin URL – https://www.<tenant-url>-admin.sharepoint.com
    2. Enter administration credentials
  2. Get-SPOTenantCdnEnabled
    1. Type “Private” and press Enter (Type Public if you want to enable public CDN)
  3. Set-SPOTenantCdnEnabled -CdnType private -Enable $true (Type Public if you want to enable public CDN)
    1. Press Y to confirm
Step 2: Configuring the CDN Origin
  1. Add-SPOTenantCdnOrigin -CdnType private -OriginUrl */<picture-library-url> (Type Public if you want to enable public CDN)
    1. Press Y to confirm
    2. Wait 15 minutes for the configuration to take effect.
Step 3: Configuring the CDN Origin Policy
  1. Set-SPOTenantCdnPolicy -CdnType Private -PolicyType IncludeFileExtensions -PolicyValue "gif,ico,jpeg,jpg,js,png" (Type Public if you want to enable public CDN)
Step 4: Deleting the default origins (Optional. Use only if you intend to delete the default origins paths)
  1.  Get-SPOTenantCdnOrigins 
    1. Type “Private” and press Enter (Type Public if you want to enable public CDN origin). Determine the origins you intend to delete
  2. Remove-SPOTenantCdnOrigin -CdnType Private -OriginUrl */<origin-path>
Please report any issues in the comments section.


7 comments:

  1. i have followed your article, it's quite informative. I have been able enable cdn on my tenant, on Documents/Images folder, how do i get the right url to the photos in the images folder?

    ReplyDelete
  2. I admire this article for the well-researched content and excellent wording. I got so involved in this material that I couldn’t stop reading. I am impressed with your work and skill. Thank you so much. Read more info about microsoft office 365 for students

    ReplyDelete
  3. I admire this article for the well-researched content and excellent wording. I got so involved in this material that I couldn’t stop reading. I am impressed with your work and skill. Thank you so much. Read more info about aml risk assessment software

    ReplyDelete
  4. Play live blackjack in Michigan - Mapyro
    Explore and 김포 출장안마 compare the live blackjack tables available 논산 출장샵 on Mapyro. 제주 출장안마 Game type: Progressive, Progressive. Card games: 광명 출장마사지 21; Hold 'Em, Progressive 경주 출장안마

    ReplyDelete
  5. In the 2020 election, Colorado expanded both the number and kind of casino video games it in a position to|is prepared to} offer. Most on-line casinos present a delegated promo or coupon code area if you end up} initially creating your account. Obviously, a much bigger|an even bigger} bonus increases your potential to 카지노 not solely lengthen gameplay, but money out a reasonable amount of bonus money as well. So, we studied the size of a bonus from an internet casino before deciding occasion that they} made the cut.

    ReplyDelete
  6. Prior to the Persian discovery, the oldest board recreation sets had been present in Ur and are regarded as round one hundred to 200 years later. They have been used for the Royal Game of Ur, performed in historical Mesopotamia. These finds are significant because of two Babylonian tablets with cuneiform descriptions of the game performed on these recreation sets, the later one dated c. 우리카지노 177 BC and the opposite one relationship to quantity of} centuries earlier. These represent the oldest rule sets of any race recreation and clearly show this Sumerian recreation to be ancestral to the tables recreation family. These bilateral race video games nicely be|might be|could be} the ancestors of the tables recreation family.

    ReplyDelete

I may not be able to get back to you immediately so please be patient.