Set-AzureSqlJobCredential
Updates the username or password within an existing credential.
Syntax
Set-AzureSqlJobCredential
-CredentialName <String>
-Credential <PSCredential>
[[-AzureSqlJobConnection] <AzureSqlJobConnection>]
[<CommonParameters>]
Set-AzureSqlJobCredential
-CredentialName <String>
[-UserName <String>]
[-Password <SecureString>]
[[-AzureSqlJobConnection] <AzureSqlJobConnection>]
[<CommonParameters>]
Description
The Set-AzureJobCredential cmdlet updates the username or password within an existing credential.
Examples
Example 1: Update an existing credential
PS C:\>Set-AzureSqlJobCredential -CredentialName "MyCredential" -Credential (Get-Credential)
CredentialName UserName
-------------- --------
MyCredential MyUsername
This command updates the credential named MyCredential with the provided credentials.
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 |
-Credential
Specifies the PSCredential object containing the username and password.
Type: | PSCredential |
Position: | Named |
Default value: | None |
Required: | True |
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: | False |
Accept wildcard characters: | False |
-Password
Specifies the new password for the updated credentials.
Type: | SecureString |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-UserName
Specifies the user name for the updated credential.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Related Links
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for