Skip to content

Latest commit

 

History

History
128 lines (93 loc) · 3.25 KB

Get-AzureRmAutomationAccount.md

File metadata and controls

128 lines (93 loc) · 3.25 KB
external help file Module Name ms.assetid online version schema
Microsoft.Azure.Commands.ResourceManager.Automation.dll-Help.xml
AzureRM.Automation
B32A8423-A7AA-418E-A95D-6C18566741AB
2.0.0

Get-AzureRmAutomationAccount

SYNOPSIS

Gets Automation accounts in a resource group.

SYNTAX

ByAll (Default)

Get-AzureRmAutomationAccount [[-ResourceGroupName] <String>] [-DefaultProfile <IAzureContextContainer>]
 [<CommonParameters>]

ByAutomationAccountName

Get-AzureRmAutomationAccount [-ResourceGroupName] <String> [-Name] <String>
 [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]

DESCRIPTION

The Get-AzureRmAutomationAccount cmdlet gets Azure Automation accounts in a resource group. For more information about Automation accounts, see the New-AzureRmAutomationAccount cmdlet.

EXAMPLES

Example 1: Get all accounts

PS C:\>Get-AzureRmAutomationAccount -ResourceGroupName "ResourceGroup03"

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

Example 2: Get an account

PS C:\>Get-AzureRmAutomationAccount -ResourceGroupName "ResourceGroup03" -Name "ContosoAutomationAccount"

This command gets the Automation account named ContosoAutomationAccount in the resource group named ContosoResourceGroup.

PARAMETERS

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with azure

Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContextContainer
Parameter Sets: (All)
Aliases: AzureRmContext, AzureCredential

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Name

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

Type: System.String
Parameter Sets: ByAutomationAccountName
Aliases: AutomationAccountName

Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-ResourceGroupName

Specifies the name of a resource group in which this cmdlet gets Automation accounts.

Type: System.String
Parameter Sets: ByAll
Aliases:

Required: False
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
Type: System.String
Parameter Sets: ByAutomationAccountName
Aliases:

Required: True
Position: 0
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 (http://go.microsoft.com/fwlink/?LinkID=113216).

INPUTS

System.String

OUTPUTS

Microsoft.Azure.Commands.Automation.Model.AutomationAccount

NOTES

RELATED LINKS

New-AzureRmAutomationAccount

Remove-AzureRmAutomationAccount

Set-AzureRmAutomationAccount