top of page

How To Enable App SideLoading On Your Non-Developer Office 365 Site Collection On Azure

Welcome to an article on “How to Enable App SideLoading on your Non-Developer Office 365 Site Collection on Azure”. Now for people who are not aware what side loading is,  let’s talk about that first.

App SideLoading

App Sideloading is the ability to install a SharePoint app directly into a site to explicitly bypass the regular governance controls of SharePoint. When you want an app directly to be deployed on Office 365 site rather than making it a package and uploading it to the app catalogue, we use this feature. These apps are a developer feature which is just used for test purposes.

The developer site is used for app development which is used for deploying the solutions before adding them to the store so this feature is mostly activated on the Dev site but if not and if you want to activate this feature on another site collection, follow the article below and learn how to do it.


  1. $programFiles = [environment]::getfolderpath("programfiles")  

  2. add-type -Path 

  3. $programFiles'\SharePoint Online Management Shell\' + `   'Microsoft.Online.SharePoint.PowerShell\Microsoft.SharePoint.Client.dll'

  4. Write-Host `   'To enable SharePoint app sideLoading, ' + `   'enter Site Url, username and password'

  5. $siteurl = Read-Host 'Site Url'

  6. $username = Read-Host "User Name"

  7. $password = Read-Host -AsSecureString 'Password'

  8. if ($siteurl -eq '') 

  9. {      

  10. $siteurl = 'SiteUrl'     

  11. $username = 'Username'     

  12. $password = ConvertTo-SecureString -String 'Password'` -AsPlainText -Force  

  13. }  

  14. $outfilepath = $siteurl -replace ':', '_' -replace '/', '_'

  15. try

  16. {      

  17. [Microsoft.SharePoint.Client.ClientContext]

  18. $cc = `New-Object Microsoft.SharePoint.Client.ClientContext($siteurl)   [Microsoft.SharePoint.Client.SharePointOnlineCredentials]

  19. $spocreds = `New-Object `        

  20. Microsoft.SharePoint.Client.SharePointOnlineCredentials($username, $password)       

  21. $cc.Credentials = $spocreds      

  22. $sideLoadingEnabled = ` [Microsoft.SharePoint.Client.appcatalog]::IsAppSideloadingEnabled($cc);     

  23. $cc.ExecuteQuery()  

  24. if($sideLoadingEnabled.value -eq $false) 

  25. {          

  26. Write-Host -ForegroundColor Yellow `   'SideLoading feature is not enabled on the site:' 

  27. $siteurl          

  28. $site = $cc. Site;              

  29. $sideLoadingGuid = `   new-object System.Guid "AE3A1339-61F5-4f8f-81A7-ABD2DA956A7D"         

  30. $site.Features.Add($sideLoadingGuid, 

  31. $false, `              

  32. [Microsoft.SharePoint.Client.FeatureDefinitionScope]::None);              

  33. $cc.ExecuteQuery();             

  34. Write-Host -ForegroundColor Green `  

  35. 'SideLoading feature enabled on site' $siteurl      

  36. }       

  37. Else 

  38. {          

  39. Write-Host -ForegroundColor Green `  

  40. 'SideLoading feature is already enabled on site' $siteurl      

  41.  }  

  42. Catch 

  43. {       

  44. Write-Host -ForegroundColor Red `  

  45. 'Error encountered when trying to enable SideLoading feature' `        

  46. $siteurl, ':' 

  47. $Error[0].ToString();  


  • On this code just add the following inputs : Site URL, Username & Password

  • Once you update them, save the file as a .ps1 file

  • Run this .ps1 file on the installed SPO Management Shell

  • Kindly remember you should be a tenant admin to run this script

Once the execution is completed the App SideLoading feature will get enabled on the site and now you will be able to deploy the app directly from Visual Studio.

This error is common for all developers trying to do RnD on App Development through Visual Studio on Office 365 Apps. Kindly be a part of the article chain to see more app development articles in my upcoming articles.

Until then, keep reading & keep learning!!



bottom of page