|
| 1 | +--- |
| 2 | +external help file: Microsoft.Online.SharePoint.PowerShell.dll-Help.xml |
| 3 | +Module Name: Microsoft.Online.SharePoint.PowerShell |
| 4 | +online version: https://learn.microsoft.com/powershell/module/sharepoint-online/add-spofilerequestbrandingprofile |
| 5 | +applicable: SharePoint Online |
| 6 | +title: Add-SPOFileRequestBrandingProfile |
| 7 | +author: nabeelnaiyer |
| 8 | +ms.author: nabeelnaiyer |
| 9 | +ms.reviewer: |
| 10 | +manager: ahackett |
| 11 | +schema: 2.0.0 |
| 12 | +--- |
| 13 | + |
| 14 | +# Add-SPOFileRequestBrandingProfile |
| 15 | + |
| 16 | +## SYNOPSIS |
| 17 | + |
| 18 | +Adds a branding profile for the file request feature by specifying logo and background assets from an existing organization asset library. |
| 19 | + |
| 20 | +## SYNTAX |
| 21 | + |
| 22 | +``` |
| 23 | +Add-SPOFileRequestBrandingProfile -AssetLibraryUrl <String> -IsPrimary <Boolean> [-LogoFileUrl <String>] [-BackgroundFileUrl <String>] |
| 24 | + [<CommonParameters>] |
| 25 | +``` |
| 26 | + |
| 27 | +## DESCRIPTION |
| 28 | + |
| 29 | +This cmdlet registers a branding profile to be used for the file request feature across the tenant. You must specify an existing organization asset library URL where the branding assets are stored and indicate whether the profile should be designated as primary. Each tenant can have one primary and one secondary profile. The organization asset library being used must be configured with the CdnType being "Public" (see [Add-SPOOrgAssetsLibrary](/powershell/module/sharepoint-online/add-spoorgassetslibrary) for more info). |
| 30 | + |
| 31 | +## EXAMPLES |
| 32 | + |
| 33 | +### Example 1 |
| 34 | + |
| 35 | +```powershell |
| 36 | +Add-SPOFileRequestBrandingProfile -AssetLibraryUrl "https://contoso.sharepoint.com/sites/branding/Assets" -LogoFileUrl "/sites/branding/Assets/LogoA.jpg" -BackgroundFileUrl "/sites/branding/Assets/BackgroundA.jpg" -IsPrimary $true |
| 37 | +``` |
| 38 | + |
| 39 | +This example sets https://contoso.sharepoint.com/sites/branding/Assets/ as the organization asset library containing branding images for file request pages. It adds a branding profile using LogoA.jpg and BackgroundA.jpg, whose server-relative paths are provided via the LogoFileUrl and BackgroundFileUrl parameters. The `-IsPrimary` flag indicates whether this profile should be treated as the primary branding profile for the tenant. In this example, the profile is being set as the primary profile. |
| 40 | + |
| 41 | +### Example 2 |
| 42 | + |
| 43 | +```powershell |
| 44 | +Add-SPOFileRequestBrandingProfile -AssetLibraryUrl "https://contoso.sharepoint.com/sites/branding/Assets" -LogoFileUrl "/sites/branding/Assets/LogoB.jpg" -BackgroundFileUrl "/sites/branding/Assets/BackgroundB.jpg" -IsPrimary $false |
| 45 | +``` |
| 46 | + |
| 47 | +This example sets https://contoso.sharepoint.com/sites/branding/Assets/ as the organization asset library containing branding images for file request pages. It adds a branding profile using LogoB.jpg and BackgroundB.jpg, whose server-relative paths are provided via the LogoFileUrl and BackgroundFileUrl parameters. The `-IsPrimary` flag indicates whether this profile should be treated as the primary branding profile for the tenant. In this example, the profile is NOT being set as the primary profile. |
| 48 | + |
| 49 | +## PARAMETERS |
| 50 | + |
| 51 | +### -AssetLibraryUrl |
| 52 | + |
| 53 | +> Applicable: SharePoint Online |
| 54 | +
|
| 55 | +Specifies the absolute URL of the asset library containing the branding assets. |
| 56 | + |
| 57 | +```yaml |
| 58 | +Type: System.String |
| 59 | +Parameter Sets: (All) |
| 60 | +Aliases: |
| 61 | + |
| 62 | +Required: True |
| 63 | +Position: Named |
| 64 | +Default value: None |
| 65 | +Accept pipeline input: False |
| 66 | +Accept wildcard characters: False |
| 67 | +``` |
| 68 | +
|
| 69 | +### -LogoFileUrl |
| 70 | +
|
| 71 | +Specifies the relative URL of the logo image file. |
| 72 | +
|
| 73 | +```yaml |
| 74 | +Type: System.String |
| 75 | +Parameter Sets: (All) |
| 76 | +Aliases: |
| 77 | + |
| 78 | +Required: False |
| 79 | +Position: Named |
| 80 | +Default value: None |
| 81 | +Accept pipeline input: False |
| 82 | +Accept wildcard characters: False |
| 83 | +``` |
| 84 | +
|
| 85 | +### -BackgroundFileUrl |
| 86 | +
|
| 87 | +Specifies the relative URL of the background image file. |
| 88 | +
|
| 89 | +```yaml |
| 90 | +Type: System.String |
| 91 | +Parameter Sets: (All) |
| 92 | +Aliases: |
| 93 | + |
| 94 | +Required: False |
| 95 | +Position: Named |
| 96 | +Default value: None |
| 97 | +Accept pipeline input: False |
| 98 | +Accept wildcard characters: False |
| 99 | +``` |
| 100 | +
|
| 101 | +### -IsPrimary |
| 102 | +Specifies if this branding profile configuration is the primary profile. |
| 103 | +
|
| 104 | +```yaml |
| 105 | +Type: System.Boolean |
| 106 | +Parameter Sets: (All) |
| 107 | +Aliases: |
| 108 | + |
| 109 | +Required: False |
| 110 | +Position: Named |
| 111 | +Default value: None |
| 112 | +Accept pipeline input: False |
| 113 | +Accept wildcard characters: False |
| 114 | +``` |
| 115 | +
|
| 116 | +### CommonParameters |
| 117 | +
|
| 118 | +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](https://go.microsoft.com/fwlink/p/?LinkID=113216). |
| 119 | +
|
| 120 | +## INPUTS |
| 121 | +
|
| 122 | +### None |
| 123 | +
|
| 124 | +## OUTPUTS |
| 125 | +
|
| 126 | +### System.Object |
| 127 | +
|
| 128 | +## NOTES |
| 129 | +
|
| 130 | +## RELATED LINKS |
| 131 | +
|
| 132 | +[Get-SPOFileRequestBrandingProfiles](/powershell/module/sharepoint-online/get-spofilerequestbrandingprofiles) |
| 133 | +
|
| 134 | +[Remove-SPOFileRequestBrandingProfile](/powershell/module/sharepoint-online/remove-spofilerequestbrandingprofile) |
| 135 | +
|
| 136 | +[Switch-SPOFileRequestBrandingProfiles](/powershell/module/sharepoint-online/switch-spofilerequestbrandingprofiles) |
0 commit comments