Skip to main content

Set-AzureApplication

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

Command

Set-AzureApplication

Description

Modifies a previously saved Azure AD application authentication object. Identify it by name or ID, then change one or more of its properties: rename it with NewName, update its client (application) ID, or replace its credential with a new certificate or certificate thumbprint.

Examples

Rename

Set-AzureApplication -Name "Contoso Migration" -NewName "Contoso Prod"

Update the client ID

Set-AzureApplication -Name "Contoso Migration" -ClientId 22222222-3333-4444-5555-666666666666

Replace the credential with a thumbprint from LocalMachine

Set-AzureApplication -Name "Contoso Migration" -CertificateThumbprint 1A2B3C4D5E6F7A8B9C0D1E2F3A4B5C6D7E8F9A0B -StoreLocation LocalMachine -StoreName My

Syntax

Set-AzureApplication
-Name <String>
[-NewName <String>]
[-ClientId <String>]
[-StoreLocation <StoreLocation>]
[-StoreName <StoreName>]
Set-AzureApplication
-Name <String>
-Certificate <X509Certificate2>
[-NewName <String>]
[-ClientId <String>]
[-StoreLocation <StoreLocation>]
[-StoreName <StoreName>]
Set-AzureApplication
-Name <String>
-CertificateThumbprint <String>
[-NewName <String>]
[-ClientId <String>]
[-StoreLocation <StoreLocation>]
[-StoreName <StoreName>]
Set-AzureApplication
-Id <Guid>
[-NewName <String>]
[-ClientId <String>]
[-StoreLocation <StoreLocation>]
[-StoreName <StoreName>]
Set-AzureApplication
-Id <Guid>
-Certificate <X509Certificate2>
[-NewName <String>]
[-ClientId <String>]
[-StoreLocation <StoreLocation>]
[-StoreName <StoreName>]
Set-AzureApplication
-Id <Guid>
-CertificateThumbprint <String>
[-NewName <String>]
[-ClientId <String>]
[-StoreLocation <StoreLocation>]
[-StoreName <StoreName>]

Parameters

-Certificate <X509Certificate2>

The new certificate. Its thumbprint and store coordinates replace the existing credential.

Required?

True

Default value

None

Accept pipeline input?

False

Accept wildcard characters?

False

Parameter set name

ByNameCertificate, ByIdCertificate

Aliases

None

-CertificateThumbprint <String>

The new certificate thumbprint referencing a certificate in the Windows Certificate Store.

Required?

True

Default value

None

Accept pipeline input?

False

Accept wildcard characters?

False

Parameter set name

ByNameThumbprint, ByIdThumbprint

Aliases

None

-ClientId <String>

The new client (application) ID.

Required?

False

Default value

None

Accept pipeline input?

False

Accept wildcard characters?

False

Parameter set name

(All)

Aliases

None

-Id <Guid>

Updates the Azure application with the specified ID.

Required?

True

Default value

None

Accept pipeline input?

False

Accept wildcard characters?

False

Parameter set name

ById, ByIdCertificate, ByIdThumbprint

Aliases

None

-Name <String>

Updates the Azure application with the specified name.

Required?

True

Default value

None

Accept pipeline input?

False

Accept wildcard characters?

False

Parameter set name

ByName, ByNameCertificate, ByNameThumbprint

Aliases

None

-NewName <String>

Renames the Azure application. Must not collide with an existing application.

Required?

False

Default value

None

Accept pipeline input?

False

Accept wildcard characters?

False

Parameter set name

(All)

Aliases

None

-StoreLocation <StoreLocation>

The store location the certificate is read from.

Required?

False

Default value

None

Accept pipeline input?

False

Accept wildcard characters?

False

Parameter set name

(All)

Aliases

None

-StoreName <StoreName>

The store name the certificate is read from.

Required?

False

Default value

None

Accept pipeline input?

False

Accept wildcard characters?

False

Parameter set name

(All)

Aliases

None

Did this answer your question?