external help file | Module Name | online version | schema |
---|---|---|---|
Microsoft.Azure.PowerShell.Cmdlets.Sql.dll-Help.xml |
Az.Sql |
2.0.0 |
Gets one or more credentials
Get-AzSqlElasticJobCredential [-ResourceGroupName] <String> [-ServerName] <String> [-AgentName] <String>
[-Name <String>] [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
Get-AzSqlElasticJobCredential [-ParentObject] <AzureSqlElasticJobAgentModel> [-Name <String>]
[-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
Get-AzSqlElasticJobCredential [-ParentResourceId] <String> [-Name <String>]
[-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
The Get-AzSqlElasticJobCredential cmdlet gets one or more job credentials
$agent = Get-AzSqlElasticJobAgent -ResourceGroupName rg -ServerName elasticjobserver -Name agent
$agent | Get-AzSqlElasticJobCredential -Name cred1
CredentialName UserName
-------------- --------
cred1 user1
Gets a job credential
Gets one or more credentials. (autogenerated)
Get-AzSqlElasticJobCredential -AgentName agent -ResourceGroupName rg -ServerName elasticjobserver
The agent name
Type: System.String
Parameter Sets: DefaultSet
Aliases:
Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The credentials, account, tenant, and subscription used for communication with Azure.
Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer
Parameter Sets: (All)
Aliases: AzContext, AzureRmContext, AzureCredential
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The job credential name
Type: System.String
Parameter Sets: (All)
Aliases: CredentialName
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The agent object
Type: Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobAgentModel
Parameter Sets: ObjectSet
Aliases:
Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
The agent resource id
Type: System.String
Parameter Sets: ResourceIdSet
Aliases:
Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
The resource group name
Type: System.String
Parameter Sets: DefaultSet
Aliases:
Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The server name
Type: System.String
Parameter Sets: DefaultSet
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.