< Back

New-AzureRmDataLakeAnalyticsCatalogSecret

Tue Jan 29, 2019 9:43 pm

NAME New-AzureRmDataLakeAnalyticsCatalogSecret



SYNOPSIS

Creates a Data Lake Analytics catalog secret.





SYNTAX

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

<Int32> [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]



New-AzureRmDataLakeAnalyticsCatalogSecret [-Account] <String> [-DatabaseName] <String> [-Secret] <PSCredential> [-Uri] <Uri> [-DefaultProfile

<IAzureContextContainer>] [<CommonParameters>]





DESCRIPTION

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





PARAMETERS

-Account <String>

Specifies the name of the Data Lake Analytics account.



Required? true

Position? 0

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-DatabaseHost <String>

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



Required? true

Position? 3

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-DatabaseName <String>

Specifies the name of the database that holds the secret.



Required? true

Position? 1

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-DefaultProfile <IAzureContextContainer>

The credentials, account, tenant, and subscription used for communication with azure



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Port <Int32>

Specifies the port number of the secret.



Required? true

Position? 4

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Secret <PSCredential>

Specifies the name and password of the secret.



Required? true

Position? 2

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Uri <Uri>

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



Required? true

Position? 3

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

None

This cmdlet does not accept any input.





OUTPUTS

None







NOTES









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.







RELATED LINKS

Online Version: https://docs.microsoft.com/en-us/powers ... alogsecret

Remove-AzureRmDataLakeAnalyticsCatalogSecret

Set-AzureRmDataLakeAnalyticsCatalogSecret