Share via


Remove-AzureAutomationAccount

Remove-AzureAutomationAccount

Removes an Automation account.

Syntax

Parameter Set: Default
Remove-AzureAutomationAccount [-ResourceGroupName] <String> [-Name] <String> [-Force] [-Profile <AzureProfile> ] [ <CommonParameters>]

Detailed Description

The Remove-AzureAutomationAccount cmdlet removes an Azure Automation account from a resource group.

For more information about Automation accounts, type Get-Help New-AzureAutomationAccount.

Parameters

-Force

Forces the command to run without asking for user confirmation.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Name<String>

Specifies the name of the Automation account that this cmdlet removes.

Aliases

AutomationAccountName

Required?

true

Position?

2

Default Value

none

Accept Pipeline Input?

true(ByPropertyName)

Accept Wildcard Characters?

false

-Profile<AzureProfile>

Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-ResourceGroupName<String>

Specifies the name of the resource group from which this cmdlet removes an Automation account.

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

true(ByPropertyName)

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see    about_CommonParameters.

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

Example 1: Remove an automation account

This command removes an automation account named MyAutomationAccount without prompting for user validation.

PS C:\> Remove-AzureAutomationAccount -Name "MyAutomationAccount" -Force -ResourceGroupName "ResourceGroup01"

Get-AzureAutomationAccount

New-AzureAutomationAccount

Set-AzureAutomationAccount