Genpact Cora Knowledge Center

Support

PowerShell Function: Set-ManagedIdentity

V10.7

Module

CoraSeQuence

Description

Sets the AD Managed Identity object during Cora Orchestration deployment. This identity can be used for setting up connection with the database, Azure storage, Azure Message Bus, and Azure Key Vault.

Syntax

Set-ManagedIdentity -Enabled [$True | $False] -ManagedIdentityId <String> [<CommonParameters>]
Set-CoraSeQuenceConnectionString -SQLServer <String> -Database <String> [-EncryptedCredentials <String>] [-Properties <Hashtable>] [<CommonParameters>]

Parameters

-Enabled [<SwitchParameter>]

Enables or disables the Managed Identity configuration.

Required? true
Position?  named
Default value -
Accept pipeline input?  false
Accept wildcard characters?   false


-ManagedIdentityId <String>

The Id of the AD Managed Identity object.

Required? true
Position?  named
Default value -
Accept pipeline input?  false
Accept wildcard characters?   false


<CommonParameters>

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

Example

PS C:\>Set-ManagedIdentity -Enabled $True -ManagedIdentityId 4d664c3b-10a9-4fb6-bd76-7da707ee5fd8

PS C:\>Set-ManagedIdentity -Enabled $False -ManagedIdentityId 0