New-​Azure​Automation​Account

Creates an Automation account.

Syntax

New-AzureAutomationAccount
   -Location <String>
   -Name <String>
   [-Profile <AzureSMProfile>]
   [<CommonParameters>]

Description

The New-AzureAutomationAccount cmdlet creates a new account in Microsoft Azure Automation.

Examples

Example 1: Create an Automation account

PS C:\> New-AzureAutomationAccount -Name "MyAutomationAccount" -Location "East US"

This command creates an Automation account named MyAutomationAccount in the East US region.

Required Parameters

-Location

Specifies the location of the account.

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

Specifies the name of the account.

Type:String
Aliases:AutomationAccountName
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.AutomationAccount