Skip to main content

Save-AzureApplication

Note: PowerShell integration requires a ShareGate Migrate Pro or Enterprise subscription. It is not available on the Essentials plan.

Command

Save-AzureApplication

Description

Persists an Azure AD application authentication object created with New-AzureApplication so it can be reused in later sessions and retrieved with Get-AzureApplication. By default it is stored under the name set on the application; use the Name parameter to override it.

Examples

Create and save in one pipeline

$cert = Get-Item Cert:\CurrentUser\My\1A2B3C4D5E6F7A8B9C0D1E2F3A4B5C6D7E8F9A0B
New-AzureApplication -ClientId 11111111-2222-3333-4444-555555555555 -Certificate $cert | Save-AzureApplication -Name "Contoso Migration"

Save an existing application object

$azureApp = New-AzureApplication -ClientId 11111111-2222-3333-4444-555555555555 -Thumbprint 1A2B3C4D5E6F7A8B9C0D1E2F3A4B5C6D7E8F9A0B
Save-AzureApplication -AzureApplication $azureApp -Name "Contoso Migration"

Syntax

Save-AzureApplication
-AzureApplication <AzureApplication>
[-Name <String>]

Parameters

-AzureApplication <AzureApplication>

The Azure application to persist, as returned by New-AzureApplication.

Required?

True

Default value

None

Accept pipeline input?

True (ByValue)

Accept wildcard characters?

False

Parameter set name

(All)

Aliases

None

-Name <String>

The name to store the Azure application under. Defaults to the name set on the Azure application.

Required?

False

Default value

None

Accept pipeline input?

False

Accept wildcard characters?

False

Parameter set name

(All)

Aliases

None

Did this answer your question?