Share via


Get-AzureAutomationAccount

Get-AzureAutomationAccount

Gets Automation accounts in a resource group.

Syntax

Parameter Set: ByAll
Get-AzureAutomationAccount [[-ResourceGroupName] <String> ] [-Profile <AzureProfile> ] [ <CommonParameters>]

Parameter Set: ByAutomationAccountName
Get-AzureAutomationAccount [-ResourceGroupName] <String> [-Name] <String> [-Profile <AzureProfile> ] [ <CommonParameters>]

Detailed Description

The Get-AzureAutomationAccount cmdlet gets Azure Automation accounts in a resource group.

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

Parameters

-Name<String>

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

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 a resource group in which this cmdlet gets Automation accounts.

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: Get all accounts

This command gets all Automation accounts in the resource group named MyResourceGroup.

PS C:\> Get-AzureAutomationAccount -ResourceGroupName "MyResourceGroup" -Name "MyAutomationAccount"

Example 2: Get an account

This command gets the Automation account named MyAutomationAccount in the resource group named MyResourceGroup.

PS C:\> Get-AzureAutomationAccount -ResourceGroupName "MyResourceGroup" -Name "MyAutomationAccount"

New-AzureAutomationAccount

Remove-AzureAutomationAccount

Set-AzureAutomationAccount