Enable-CrmManagementApp

Enables the specified registered Azure Active Directory Web app/API application.

Syntax

Enable-CrmManagementApp
      -Id <Guid>
      [-ApiUrl] <Uri>
      [[-Credential] <PSCredential>]
      [-MaxCrmConnectionTimeOutMinutes <Int32>]

Description

The Enable-CrmManagementApp cmdlet enables the specified registered Azure Active Directory Web app/API application for use with the Microsoft.Xrm.OnlineManagementAPI PowerShell module.

Examples

Example 1

PS C:\> Enable-CrmManagementApp -Id <RegistrationGuid> -ApiUrl $connectionhost -Credential $cred

Enables the specified registered Azure Active Directory Web app/API application.

Parameters

-ApiUrl

URL of the Dataverse root service endpoint. For information about this parameter see Establish your credentials and connection.

Type:Uri
Position:0
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-Credential

User credential for signing in to Dataverse. For information about this parameter see Establish your credentials and connection.

Type:PSCredential
Position:1
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-Id

The registration id for the app. You can find the registration ids for all registered Azure Active Directory Web app/API applications by running the Get-CrmManagementApps cmdlet.

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

-MaxCrmConnectionTimeOutMinutes

Maximum number in minutes to wait before quitting the operation.

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

Inputs

System.Guid

System.Uri System.Management.Automation.PSCredential System.Int32

Outputs

System.Object