Get-AzureSqlJobCredential

Gets one or multiple database credentials to use when connecting to databases for execution of jobs.

Syntax

Get-AzureSqlJobCredential
   [[-AzureSqlJobConnection] <AzureSqlJobConnection>]
   [<CommonParameters>]
Get-AzureSqlJobCredential
   -CredentialName <String[]>
   [[-AzureSqlJobConnection] <AzureSqlJobConnection>]
   [<CommonParameters>]

Description

The Get-AzureSqlJobCredential cmdlet gets one or multiple database credentials to use when connecting to databases for execution of jobs. Passwords are encrypted prior to transmission within creation and are not returned through get requests.

Examples

Example 1: Get the credential stored within the system using the provided name

PS C:\>Get-AzureSqlJobCredential -CredentialName MyCredential
CredentialName                                              UserName
--------------                                              --------
MyCredential                                                MyUsername

This command gets the credential stored within the system using the provided name.

Example 2: Get all credentials stored within the system

PS C:\>Get-AzureSqlJobCredential
CredentialName                                              UserName
--------------                                              --------
MyCredential                                                MyUsername
MyCredential2                                               MyUsername2

Get all credentials stored within the system.

Parameters

-AzureSqlJobConnection

Specifies the connection state object for the job. You can get the connection state object through the New-AzureSqlJobConnection cmdlet. If you do not specify this parameter, the connection state is used from a prior call to the Use-AzureSqlJobConnection cmdlet.

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

-CredentialName

Specifies the name of the credential.

Type:String[]
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False