Skip to main content

Add-MsIdClientSecretToAgentIdentityBlueprint

SYNOPSIS

Adds a client secret to the current Agent Identity Blueprint

SYNTAX

Add-MsIdClientSecretToAgentIdentityBlueprint [[-AgentBlueprintId] <String>]
[-ProgressAction <ActionPreference>] [<CommonParameters>]

DESCRIPTION

Creates an application password for the most recently created Agent Identity Blueprint using New-MgApplicationPassword. Uses the stored AgentBlueprintId from the last New-AgentIdentityBlueprint call.

EXAMPLES

EXAMPLE 1

New-MsIdAgentIdentityBlueprint -DisplayName "My Blueprint" -SponsorUserIds @("user1")
Add-MsIdClientSecretToAgentIdentityBlueprint # Uses the stored blueprint ID

EXAMPLE 2

Add-MsIdClientSecretToAgentIdentityBlueprint -AgentBlueprintId "12345678-1234-1234-1234-123456789012"  # Uses specific ID

PARAMETERS

-AgentBlueprintId

Optional. The ID of the Agent Identity Blueprint to add the secret to. If not provided, uses the stored ID from the last blueprint creation.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 1
Default value: None
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

NOTES