Get-AzureAutomationCredential
Gets an Azure Automation credential.
Syntax
Get-AzureAutomationCredential
-AutomationAccountName <String>
-Name <String>
[-Profile <AzureSMProfile>]
[<CommonParameters>]
Description
The Get-AzureAutomationCredential cmdlet gets one or more Microsoft Azure Automation credentials. By default, all credentials are returned. To get a specific credential, specify its name.
Examples
Example 1: Get all credentials
PS C:\> Get-AzureAutomationCredential -AutomationAccountName "Contoso17"
This command gets all credentials in the Automation account named Contoso17.
Example 2: Get a credential
PS C:\> Get-AzureAutomationCredential -AutomationAccountName "Contoso17" -Name "MyCredential"
This command gets the credential named MyCredential.
Required Parameters
-AutomationAccountName
Specifies the name of the automation account with the credential to retrieve.
| Type: | String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | True (ByPropertyName) |
| Accept wildcard characters: | False |
-Name
Specifies the name of a credential to retrieve.
| Type: | String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | True (ByPropertyName) |
| Accept wildcard characters: | False |
Optional Parameters
-Profile
Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.
| Type: | AzureSMProfile |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Outputs
Microsoft.Azure.Commands.Automation.Model.CredentialInfo