Get-CrmInstanceTypes

Retrieves information about all the environment types available, such as production, sandbox, support, preview, and trial, in the Dataverse tenant.

Syntax

Get-CrmInstanceTypes
   [-ApiUrl] <Uri>
   [[-Credential] <PSCredential>]
   [-MaxCrmConnectionTimeOutMinutes <Int32>]

Description

The Get-CrmInstanceTypes cmdlet retrieves information about all the environment types available, such as production, sandbox, support, preview, and trial, in the Dataverse tenant.

Examples

Example 1

PS C:\> Get-CrmInstanceTypes -ApiUrl $connectionhost -Credential $cred

Retrieves information about all the environment types available in the Dataverse tenant.

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

-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.Uri

System.Management.Automation.PSCredential System.Int32

Outputs

System.Object