New-​Azure​Rm​Data​Lake​Analytics​Catalog​Secret

Creates a Data Lake Analytics catalog secret.

Syntax

New-AzureRmDataLakeAnalyticsCatalogSecret
   [-Account] <String>
   [-DatabaseName] <String>
   [-Secret] <PSCredential>
   [-DatabaseHost] <String>
   [-Port] <Int32>
   [<CommonParameters>]
New-AzureRmDataLakeAnalyticsCatalogSecret
   [-Account] <String>
   [-DatabaseName] <String>
   [-Secret] <PSCredential>
   [-Uri] <Uri>
   [<CommonParameters>]

Description

The New-AzureRmDataLakeAnalyticsCatalogSecret cmdlet creates a secret to use in an Azure Data Lake Analytics catalog.

Examples

Example 1: Get the secret for a catalog

PS C:\>New-AzureRmDataLakeAnalyticsCatalogSecret -Account "ContosoAdlAccount" -DatabaseName "databaseName" -Secret (Get-Credential) -Host "https://example.contoso.com" -Port 8080

This command gets the secret corresponding to the specified account, database, credential, and host.

Required Parameters

-Account

Specifies the name of the Data Lake Analytics account.

Type:String
Aliases:AccountName
Position:0
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-DatabaseHost

Specifies the host name for the database the secret is associated with in the format 'mydatabase.contoso.com'.

Type:String
Aliases:Host
Position:3
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-DatabaseName

Specifies the name of the database that holds the secret.

Type:String
Position:1
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Port

Specifies the port number of the secret.

Type:Int32
Position:4
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Secret

Specifies the name and password of the secret.

Type:PSCredential
Position:2
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Uri

Specifies the Uniform Resource Identifier (URI) of the secret.

Type:Uri
Position:3
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Outputs

None