Skip to main content

New-MsIdClientSecret

SYNOPSIS

Generate Random Client Secret for application registration or service principal in Azure AD.

SYNTAX

New-MsIdClientSecret [[-Length] <Int32>] [-Base64Encode] [-ProgressAction <ActionPreference>]
[<CommonParameters>]

DESCRIPTION

{{ Fill in the Description }}

EXAMPLES

EXAMPLE 1

New-MsIdClientSecret

Generates a new client secret 32 characters long.

EXAMPLE 2

New-MsIdClientSecret -Length 64 -Base64Encode

Generates a new client secret 64 bytes long and then base64 encodes it.

PARAMETERS

-Length

Specifies the number of random characters or bytes to generate.

Type: Int32
Parameter Sets: (All)
Aliases:

Required: False
Position: 1
Default value: 32
Accept pipeline input: False
Accept wildcard characters: False

-Base64Encode

Generate a binary key and encode it to base64.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-ProgressAction

{{ Fill ProgressAction Description }}

Type: ActionPreference
Parameter Sets: (All)
Aliases: proga

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

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

INPUTS

OUTPUTS

System.Security.SecureString

NOTES