New-AzureBatchAccount

New-AzureBatchAccount

Creates a new Batch account.

Syntax

Parameter Set: Default
New-AzureBatchAccount [-AccountName] <String> [-Location] <String> [-ResourceGroupName] <String> [-Profile <AzureProfile> ] [-Tag <Hashtable[]> ] [ <CommonParameters>]

Detailed Description

The New-AzureBatchAccount cmdlet creates a new Azure Batch account under the specified resource group and location.

Parameters

-AccountName<String>

Specifies the name of the Batch account to create.

Aliases

Name

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

true(ByPropertyName)

Accept Wildcard Characters?

false

-Location<String>

Specifies the region where the account will be created.

Aliases

none

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 where the account will be created.

Aliases

none

Required?

true

Position?

3

Default Value

none

Accept Pipeline Input?

true(ByPropertyName)

Accept Wildcard Characters?

false

-Tag<Hashtable[]>

Specifies tags in an array of hash tables to set on the account.

Aliases

Tags

Required?

false

Position?

named

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.

  • BatchAccountContext

Examples

Example 1: Create a new Batch account

This command creates a new Batch account named cmdletexample using the CmdletExampleRG resource group in the WestUS location.

PS C:\> New-AzureBatchAccount -AccountName "cmdletexample" -ResourceGroupName "CmdletExampleRG" -Location "WestUS"

Get-AzureBatchAccount

Remove-AzureBatchAccount

Set-AzureBatchAccount

RMAzure_Batch_Cmdlets