Remove-​Azure​Rm​Automation​Credential

Removes an Automation credential.

Syntax

Remove-AzureRmAutomationCredential
      [-ResourceGroupName] <String>
      [-AutomationAccountName] <String>
      [-Name] <String>
      [-Confirm]
      [-WhatIf]
      [<CommonParameters>]

Description

The Remove-AzureRmAutomationCredential cmdlet removes a credential from Azure Automation.

Examples

Example 1: Remove a credential

PS C:\>Remove-AzureRmAutomationCredential -AutomationAccountName "Contoso17" -Name "ContosoCredential" -ResourceGroupName "ResourceGroup01"

This command removes a credential named ContosoCredential in the Azure Automation account named Contoso17.

Required Parameters

-AutomationAccountName

Specifies the name of the Automation account from which this cmdlet removes a credential.

Type:String
Position:1
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Name

Specifies the name of the credential that this cmdlet removes.

Type:String
Position:2
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-ResourceGroupName

Specifies the name of the resource group for which this cmdlet removes a credential.

Type:String
Position:0
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False