Connect-UdmServer

Connect to a Ranger server for the purposes of using other cmdlets from the Ranger PowerShell module.

ItemComment
Availability versionVersion 1.0
Initial release dateJune 27, 2017
Last updated onJune 27, 2017
Related toRanger Documentation

Syntax

Connect-UdmServer -Tenant <String> [-Credentials <PSCredential>] [<CommonParameters>]

Parameters

ParameterDescriptionClassAccepted optionsConstraintsUsageUniqueAvailable from version
TenantIndicates the FQDN identity of the Ranger server to connect to.System.String
If not specified a EzUdmTenants.xml file is searched for before prompting for the tenant nameOptional
v1.0
Credentials

Enables you to run this cmdlet under alternate credentials. To use the Credential parameter you must first create a PSCredential object by using the Get-Credential cmdlet. For more information on using the Get-Credential cmdlet, see https://technet.microsoft.com/en-us/library/hh849815.aspx.   

System.Management.Automation.PSCredential

Optional
 v1.0

Examples

Example 1 

In example 1, the Connect-UdmServer cmdlet connects to the Ranger server contoso.enoten.com and you are prompted to enter credentials

Connect-UdmServer -tenant contoso.enoten.com 

Example 2

In example 2, the connection is made to the same Ranger server as example 1, but uses credentials from Get-Credential 

$cred = Get-Credential
Connect-UdmServer -tenant contoso.enoten.com -Credentials $cred

See Also