Share via


Add-PowerAppsCustomBrandingAssets

Uploads tenant level custom assets. Note the following:

  • The mobile parameter is required in the request body.
  • The tenantSplashImagePath and tenantWelcomeImagePath parameters should contain the file paths to the image you would like to upload.
  • The tenantSplashImage can't exceed dimensions 384 x 384 and the tenantWelcomeImage can't exceed dimensions 1335 x 1491.
  • The tenantSplashImage file size can't exceed 3 MB and the tenantWelcomeImage can't exceed 5 MB

Syntax

Default (Default)

Add-PowerAppsCustomBrandingAssets
    [-RequestBody] <Object>
    [[-ApiVersion] <String>]
    [<CommonParameters>]

Description

The Add-PowerAppsCustomBrandingAssets cmdlet uploads custom assets for a tenant. These assets enable customization of icons and color preferences on opening of the Power Apps mobile app. Use Get-Help Add-PowerAppsCustomBrandingAssets -Examples for more detail.

Examples

EXAMPLE 1

Add-PowerAppsCustomBrandingAssets -AssetInfo @{

"mobile"= "default"; "fillColor"="#CCCCCC"; "actionButtonHighlight"= "#C43E1C"; "hyperlinkColor"= "#FF6709"; "headingTextColor"= "#FFFFFF"; "statusBarContentColorMode"= "Dark"; "tenantSplashImagePath"= "./Resources/image1.png"; "tenantWelcomeImagePath"= "./Resources/image2.png"; "defaultAppIds"= @("2b9a6e99-7722-4cba-bbdd-190748b47a66") }

Parameters

-ApiVersion

The api version to call with. Default 2018-01-01.

Parameter properties

Type:String
Default value:2021-02-01
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:2
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-RequestBody

The JSON object containing the custom asset info parameters. Go to examples for an example of the parameters.

Parameter properties

Type:Object
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:1
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.